/* Interlock Desk website. One stylesheet for every page. */
:root {
  --ink: #12161C; --ink2: #4F5866; --ink3: #8A919C; --paper: #F1F3F6; --white: #FFFFFF; --rule: #DCE0E6;
  --cobalt: #2446A6; --cobalt-d: #1A3478; --cobalt-l: #A3B8F5; --gain: #1E7044; --loss: #B42318; --amber: #935F00;
  --night: #0E1217; --night2: #171C24; --night-rule: #2A313C; --night-ink: #E9EBEE; --night-ink2: #A9B0BB;
  --max: 1160px; --r: 10px;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img, video { display: block; max-width: 100%; }
a { color: var(--cobalt); }
a:hover { color: var(--cobalt-d); }
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -0.2px; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--cobalt); margin-bottom: 14px; }
.dark .eyebrow { color: var(--cobalt-l); }
.muted { color: var(--ink2); }
.mono { font-family: var(--mono); }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--ink2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 600; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu .panel { position: absolute; right: 0; top: 52px; width: 230px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 16px 40px rgba(18, 22, 28, .14); padding: 8px; display: grid; }
.menu .panel a { color: var(--ink); text-decoration: none; padding: 12px 14px; border-radius: 6px; font-size: 16px; }
.menu .panel a:hover { background: var(--paper); }
@media (max-width: 760px) { .nav { display: none; } .menu { display: block; } }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 8px; font: inherit; font-size: 15.5px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-primary:hover { background: var(--cobalt-d); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #C5CBD3; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.dark .btn-ghost { color: var(--night-ink); border-color: #3A424F; }
.dark .btn-ghost:hover { border-color: var(--night-ink); color: var(--white); }
.btn-light { background: var(--cobalt-l); color: var(--ink); }
.btn-light:hover { background: #C3D1FA; color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- dark hero */
.dark { background: var(--night); color: var(--night-ink); }
.dark .muted { color: var(--night-ink2); }
.hero { padding: 88px 0 80px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 480px; min-width: 0; }
.hero h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -0.8px; margin-bottom: 20px; }
.hero .lead { font-size: 19px; max-width: 540px; margin-bottom: 32px; }
.hero-side { flex: 1 1 380px; min-width: 0; }
.home-hero .hero-side { max-width: 460px; }
@media (max-width: 760px) { .hero { padding: 56px 0 56px; } .hero .lead { font-size: 17px; } .home-hero .hero-side { display: none; } }

/* paths: the two doors on the home page */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 620px; }
.path { display: block; padding: 20px 22px; border: 1px solid var(--night-rule); border-radius: var(--r); background: var(--night2); color: var(--night-ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.path:hover { border-color: var(--cobalt-l); color: var(--night-ink); transform: translateY(-2px); }
.path b { display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 600; margin-bottom: 6px; color: var(--white); }
.path span { font-size: 14.5px; color: var(--night-ink2); line-height: 1.45; display: block; }
@media (max-width: 520px) { .paths { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- sections */
.sec { padding: 88px 0; }
.sec-tight { padding: 64px 0; }
.sec.paper { background: var(--paper); }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; }
.sec-head p { margin-top: 12px; color: var(--ink2); }
@media (max-width: 760px) { .sec { padding: 60px 0; } .sec-head { margin-bottom: 32px; } }

/* three steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--cobalt); border: 1px solid var(--cobalt); border-radius: 999px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 15.5px; color: var(--ink2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; } .step { display: grid; grid-template-columns: 44px 1fr; } .step .n { grid-row: span 2; margin: 2px 0 0; } }

/* pillars strip */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pillar { padding: 26px 22px 26px 0; }
.pillar + .pillar { padding-left: 22px; border-left: 1px solid var(--rule); }
.pillar svg { margin-bottom: 12px; }
.pillar h3 { font-size: 16px; margin-bottom: 4px; }
.pillar p { font-size: 14.5px; color: var(--ink2); line-height: 1.45; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pillar:nth-child(3) { padding-left: 0; border-left: 0; } .pillar:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 520px) { .pillar { padding: 18px 12px 18px 0; } .pillar + .pillar { padding-left: 12px; } .pillar:nth-child(3) { padding-left: 0; } .pillar svg { margin-bottom: 8px; } }

/* feature rows */
.rows { display: grid; gap: 80px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.row.flip { flex-direction: row-reverse; }
.row .pic { flex: 1.4 1 480px; min-width: 0; }
.row .pic.phone { flex: 0 1 300px; }
.row .txt { flex: 1 1 320px; min-width: 0; }
.row h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; margin-bottom: 12px; }
.row .txt p { color: var(--ink2); }
.shot { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 18px 44px rgba(18, 22, 28, .10); }
.shot.phone { border-radius: 26px; max-width: 300px; margin: 0 auto; }
@media (max-width: 760px) { .rows { gap: 56px; } .row, .row.flip { flex-direction: column; align-items: stretch; gap: 22px; } .row .pic, .row .pic.phone { flex: none; } .shot.phone { max-width: 240px; } }

/* video */
.video { width: 100%; height: auto; border-radius: var(--r); background: var(--ink); aspect-ratio: 16 / 9; }

/* FAQ accordion */
.faq { max-width: 820px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--cobalt); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--ink2); max-width: 700px; }

/* call to action band */
.cta { padding: 72px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; max-width: 620px; }

/* footer */
.foot { background: var(--night); color: var(--night-ink2); font-size: 14.5px; }
.foot .wrap { padding-top: 48px; padding-bottom: 36px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--night-rule); }
.foot a { color: var(--night-ink); text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot .legal { padding-top: 22px; font-size: 12.5px; line-height: 1.6; max-width: 900px; }

/* approval card (illustration, animated) */
.card { background: var(--white); color: var(--ink); border-radius: 14px; padding: 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.card-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.card-top b { font-size: 18px; font-weight: 600; }
.badge-stack { display: inline-grid; justify-items: end; }
.badge { grid-area: 1 / 1; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge.wait { color: var(--amber); background: rgba(147, 95, 0, .10); }
.badge.run { color: var(--gain); background: rgba(30, 112, 68, .10); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.tile { background: var(--paper); border-radius: 8px; padding: 12px; }
.tile small { display: block; font-size: 12.5px; color: var(--ink2); }
.tile span { font-weight: 600; font-size: 15px; line-height: 1.35; display: block; }
.risk-l { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.risk { border: 1px solid #C5CBD3; border-radius: 8px; padding: 11px 13px; margin-bottom: 14px; display: grid; }
.risk > span { grid-area: 1 / 1; }
.risk .ph { color: var(--ink2); }
.risk .val { font-family: var(--mono); font-weight: 500; justify-self: start; }
.go { position: relative; overflow: hidden; display: grid; text-align: center; font-weight: 600; background: var(--cobalt); color: var(--white); border-radius: 8px; padding: 13px; }
.go > span { grid-area: 1 / 1; position: relative; }
.go .fill { position: absolute; inset: 0; background: rgba(0, 0, 0, .24); transform: scaleX(0); transform-origin: left; }
.card .note { margin-top: 12px; font-size: 12.5px; color: var(--ink2); }

/* motion: the finished state is the default; html.anim (motion allowed) plays into it */
.wait, .ph, .go-a { opacity: 0; }
.anim .ring-a { animation: ringA .95s cubic-bezier(.2, .9, .25, 1.15) .15s both; }
.anim .ring-b { animation: ringB .95s cubic-bezier(.2, .9, .25, 1.15) .15s both; }
@keyframes ringA { from { transform: translateX(-10px); opacity: .25; } }
@keyframes ringB { from { transform: translateX(10px); opacity: .25; } }
.anim .card .wait { animation: hOut 3.9s step-end both; }
.anim .card .run { animation: hIn .45s ease 3.9s both; }
.anim .card .ph { animation: hOut 1.4s ease both; }
.anim .card .val { animation: hType .6s steps(4, end) 1.4s both; }
.anim .card .fill { animation: hFill 1.45s linear 2.4s both; }
.anim .card .go-a { animation: hOut 3.75s step-end both; }
.anim .card .go-b { animation: hIn .35s ease 3.75s both; }
@keyframes hOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes hIn { from { opacity: 0; transform: translateY(4px); } }
@keyframes hType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hFill { 0% { transform: scaleX(0); opacity: 1; } 88% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* the ladder drawing */
.lad { width: 100%; height: auto; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); }
.lad text { font-family: var(--sans); font-size: 19px; }
.lad .lp { stroke-dasharray: 100; stroke-dashoffset: 0; }
.anim .lad:not(.play) .lp { stroke-dashoffset: 100; }
.anim .lad.play .lp { animation: ldDraw 6s linear .6s both; }
@keyframes ldDraw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.anim .lad:not(.play) .ld-dot { fill: var(--white); }
.anim .lad.play .ld-d1 { animation: ldFill .35s ease 1.93s both; }
.anim .lad.play .ld-d2 { animation: ldFill .35s ease 2.22s both; }
.anim .lad.play .ld-d3 { animation: ldFill .35s ease 2.46s both; }
@keyframes ldFill { from { fill: #FFFFFF; } }
.ld-stop { transform: translateY(-130px); }
.anim .lad:not(.play) .ld-stop { transform: translateY(0); }
.anim .lad.play .ld-stop { animation: ldStop 7s ease-in-out both; }
@keyframes ldStop { 0%, 56% { transform: translateY(0); } 61%, 73% { transform: translateY(-70px); } 79%, 91% { transform: translateY(-100px); } 100% { transform: translateY(-130px); } }
.ld-s1, .ld-s2 { opacity: 0; }
.anim .lad:not(.play) .ld-s1 { opacity: 1; }
.anim .lad:not(.play) .ld-s3 { opacity: 0; }
.anim .lad.play .ld-s1 { animation: ldL1 7s both; }
.anim .lad.play .ld-s2 { animation: ldL2 7s both; }
.anim .lad.play .ld-s3 { animation: ldL3 7s both; }
@keyframes ldL1 { 0%, 55% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes ldL2 { 0%, 57% { opacity: 0; } 61%, 76% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes ldL3 { 0%, 78% { opacity: 0; } 83%, 100% { opacity: 1; } }
@media (max-width: 640px) { .lad text { font-size: 26px; } }

/* forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #C5CBD3; border-radius: 8px; background: var(--white); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
.form textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; }
#f-status { margin-top: 14px; font-size: 15px; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.form label.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; font-weight: 400 !important; color: var(--ink2); line-height: 1.5; margin: 4px 0 18px; cursor: pointer; }
.form label.consent input { width: 20px !important; height: 20px; flex: none; margin: 2px 0 0; padding: 0 !important; accent-color: var(--cobalt); }

/* prose (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 20px; margin: 32px 0 8px; }
.prose p { color: var(--ink2); margin-bottom: 10px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .path { transition: none; } }

/* ---------------------------------------------------------------- practice desk (/try) */
.try-hero { padding: 64px 0 40px; }
.try-hero h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.1; letter-spacing: -0.6px; margin-bottom: 14px; }
.try-hero .lead { font-size: 18px; max-width: 640px; }
.try-sec { padding: 0 0 88px; background: linear-gradient(var(--night) 0 120px, var(--white) 120px); }
.dm { background: var(--white); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 24px 60px rgba(18, 22, 28, .14); overflow: hidden; scroll-margin-top: 80px; }
.dm-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 0 8px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.dm-tabs { display: flex; gap: 2px; overflow-x: auto; }
.dm-tab { font: inherit; font-size: 15px; font-weight: 600; color: var(--ink2); background: none; border: 0; border-bottom: 2px solid transparent; padding: 16px 14px 14px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.dm-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--cobalt); }
.dm-badge { background: var(--amber); color: #fff; font-size: 11.5px; border-radius: 10px; padding: 1px 7px; }
.dm-sim { font-size: 12.5px; color: var(--ink2); white-space: nowrap; display: flex; gap: 12px; align-items: center; }
.dm-sim button { font: inherit; font-size: 13px; color: var(--cobalt); background: none; border: 0; cursor: pointer; padding: 6px 0; }
.dm-view { padding: 28px; }
.dm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.dm-head h3 { font-size: 22px; line-height: 1.25; }
.dm-k { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink3); margin-bottom: 6px; }
.dm-note { font-size: 14px; color: var(--ink2); margin-top: 10px; }
.dm-empty { margin: 0 0 20px; padding: 14px 16px; background: var(--paper); border-radius: 8px; }
.dm-link { font: inherit; font-size: 14px; color: var(--cobalt); background: none; border: 0; cursor: pointer; padding: 4px 0; }
.dm-banner { padding: 12px 16px; border-radius: 8px; font-size: 14.5px; margin-bottom: 18px; }
.dm-banner.bad { background: #FDECEA; color: #7A1A12; }
.dm-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dm-pick { font: inherit; text-align: left; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 20px; cursor: pointer; display: grid; gap: 10px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.dm-pick:hover, .dm-pick:focus-visible { border-color: var(--cobalt); box-shadow: 0 8px 24px rgba(36, 70, 166, .12); }
.dm-pick-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 16.5px; }
.dm-tag { font-size: 12px; font-weight: 600; color: var(--gain); background: #E6F3EC; border-radius: 20px; padding: 3px 10px; }
.dm-tag.dim { color: var(--ink2); background: var(--paper); }
.dm-px { font-family: var(--mono); font-size: 26px; }
.dm-why { display: grid; gap: 6px; font-size: 14px; color: var(--ink2); }
.dm-why span::before { content: "·"; margin-right: 8px; color: var(--cobalt); font-weight: 700; }
.dm-pick-go { font-weight: 600; color: var(--cobalt); font-size: 15px; margin-top: 4px; }
.dm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: start; }
.dm-col { min-width: 0; }
.dm-grid.wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.dm-f { display: block; margin-bottom: 18px; }
.dm-f > span:first-child { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.dm-f small { display: block; font-size: 13px; color: var(--ink2); margin-top: 6px; }
.dm-f select { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #C5CBD3; border-radius: 8px; width: 100%; background: #fff; }
.dm-money { display: flex; align-items: center; border: 1px solid #C5CBD3; border-radius: 8px; background: #fff; max-width: 240px; }
.dm-money:focus-within { outline: 2px solid var(--cobalt); outline-offset: 1px; }
.dm-money i { font-style: normal; padding: 0 4px 0 14px; color: var(--ink2); font-family: var(--mono); font-size: 20px; }
.dm-money input { font: inherit; font-family: var(--mono); font-size: 22px; border: 0; padding: 10px 12px 10px 2px; width: 100%; background: none; outline: none; }
.dm-seg { display: inline-flex; border: 1px solid #C5CBD3; border-radius: 8px; overflow: hidden; }
.dm-seg button, .dm-speed button { font: inherit; font-size: 15px; font-weight: 600; background: #fff; color: var(--ink2); border: 0; border-right: 1px solid #C5CBD3; min-width: 52px; min-height: 42px; cursor: pointer; }
.dm-seg button:last-child, .dm-speed button:last-child { border-right: 0; }
.dm-seg button[aria-pressed="true"], .dm-speed button[aria-pressed="true"] { background: var(--cobalt); color: #fff; }
.dm-seg button:disabled, .dm-step button:disabled { opacity: .45; cursor: default; }
.dm-speed { display: inline-flex; border: 1px solid #C5CBD3; border-radius: 8px; overflow: hidden; }
.dm-speed button { min-width: 46px; min-height: 36px; font-size: 14px; }
.dm-step { display: inline-flex; align-items: center; border: 1px solid #C5CBD3; border-radius: 8px; overflow: hidden; }
.dm-step button { font: inherit; font-size: 22px; width: 46px; height: 44px; border: 0; background: #fff; cursor: pointer; color: var(--ink); }
.dm-step b { font-family: var(--mono); font-weight: 500; font-size: 18px; min-width: 120px; text-align: center; border-left: 1px solid #C5CBD3; border-right: 1px solid #C5CBD3; line-height: 44px; color: var(--loss); }
.dm-t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dm-t th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink2); padding: 8px 10px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.dm-t td { padding: 9px 10px; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; vertical-align: top; }
.dm-t tfoot td { font-weight: 600; border-bottom: 0; background: #FDF3F2; color: #7A1A12; }
.dm-t tfoot td:last-child { font-family: var(--mono); }
.dm-t td small { display: block; color: var(--ink2); font-size: 12.5px; }
.dm-t .mono { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }
.dm-tw { overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; }
.dm-tw .dm-t td:first-child, .dm-tw .dm-t th:first-child { padding-left: 14px; }
.dm-tw tr:last-child td { border-bottom: 0; }
.dm-copy tr.off td { color: var(--ink3); }
.g { color: var(--gain); } .r { color: var(--loss); } .a { color: var(--amber); }
.dm-chart { border: 1px solid var(--rule); border-radius: 10px; background: #FBFCFD; padding: 6px 4px 2px; }
.dm-chart svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.dm-chart .z { fill: #2446A6; fill-opacity: .07; }
.dm-chart .e { stroke: #2446A6; stroke-opacity: .5; stroke-dasharray: 4 5; stroke-width: 1.2; }
.dm-chart .ef { stroke: #2446A6; stroke-width: 1.6; }
.dm-chart .ex { stroke: #8A919C; stroke-opacity: .5; stroke-dasharray: 2 6; stroke-width: 1; }
.dm-chart .iv { stroke: #B42318; stroke-width: 1.6; stroke-dasharray: 7 5; } .dm-chart .iv-t { fill: #B42318; font-size: 12.5px; font-weight: 600; }
.dm-chart .st { stroke: #2446A6; stroke-width: 2.4; } .dm-chart .st-t { fill: #2446A6; font-size: 12.5px; font-weight: 600; }
.dm-chart .tg { stroke: #1E7044; stroke-width: 1.6; stroke-dasharray: 7 5; } .dm-chart .tg-t { fill: #1E7044; font-size: 12.5px; font-weight: 600; }
.dm-chart .sm { fill: #4F5866; font-size: 11.5px; }
.dm-log { max-height: 340px; }
.dm-chart .pl { fill: none; stroke: #12161C; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dm-chart .dot { fill: #12161C; } .dm-chart .fd { fill: #fff; stroke: #2446A6; stroke-width: 2.2; }
.dm-chart .pxb { fill: #12161C; } .dm-chart .pxt { fill: #fff; font-family: var(--mono); font-size: 12px; }
.dm-gate { font-size: 14.5px; padding: 12px 14px; border-radius: 8px; background: var(--paper); margin: 16px 0 12px; color: var(--ink); }
.dm-gate.bad { background: #FDECEA; color: #7A1A12; } .dm-gate.good { background: #E6F3EC; color: #14532D; } .dm-gate.wait { background: #FBF3E2; color: #5C3D00; }
.dm-hint { display: block; margin-top: 4px; color: var(--ink2); font-size: 13.5px; }
.dm-hold { position: relative; overflow: hidden; width: 100%; min-height: 52px; border: 0; border-radius: 8px; background: var(--cobalt); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.dm-hold-fill { position: absolute; inset: 0; background: var(--cobalt-d); transform: scaleX(0); transform-origin: left; }
.dm-hold.on .dm-hold-fill { transform: scaleX(1); transition: transform 1s linear; }
.dm-hold-t { position: relative; }
.dm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; margin-top: 14px; }
.dm-stats div { background: #fff; padding: 10px 12px; }
.dm-stats small, .dm-result small, .dm-req-grid small { display: block; font-size: 12px; color: var(--ink2); }
.dm-stats b { font-family: var(--mono); font-weight: 500; font-size: 17px; }
.dm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.dm-actions .btn { min-height: 42px; font-size: 14.5px; padding: 0 16px; }
.dm-danger { color: var(--loss) !important; border-color: #E8B4AE !important; }
.dm-editbox { margin-top: 16px; padding: 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); }
.dm-log { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: 10px; overflow-y: auto; }
.dm-log li { display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--rule); font-size: 14px; animation: dmIn .3s ease-out; }
.dm-log li:last-child { border-bottom: 0; }
.dm-log time { font-family: var(--mono); font-size: 12.5px; color: var(--ink3); padding-top: 1px; }
.dm-log li.good span { color: #14532D; } .dm-log li.bad span { color: #7A1A12; }
@keyframes dmIn { from { background: #EEF2FC; } to { background: #fff; } }
.dm-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.dm-result div { border: 1px solid var(--rule); border-radius: 10px; padding: 14px; }
.dm-result b { display: block; font-family: var(--mono); font-weight: 500; font-size: 26px; margin: 2px 0; }
.dm-result span { font-size: 13.5px; color: var(--ink2); }
.dm-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: 10px; }
.dm-list li { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.dm-list li:last-child { border-bottom: 0; }
.dm-list b { font-family: var(--mono); font-weight: 500; }
.dm-req { border: 1px solid #E9C98A; background: #FFFBF2; border-radius: 12px; padding: 18px; margin-bottom: 22px; }
.dm-req-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.dm-req-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.dm-req-grid b { font-size: 15px; }
.dm-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.dm-checks li { display: flex; gap: 10px; align-items: baseline; }
.dm-checks i { width: 16px; height: 16px; border-radius: 50%; flex: none; position: relative; top: 2px; }
.dm-checks li.ok i { background: var(--gain); } .dm-checks li.no i { background: var(--loss); } .dm-checks li.w i { background: var(--amber); }
.dm-checks em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--amber); }
.dm-pill { font-size: 12.5px; font-weight: 600; border-radius: 20px; padding: 3px 10px; background: var(--paper); color: var(--ink2); white-space: nowrap; }
.dm-pill.a { background: #FBF3E2; color: var(--amber); } .dm-pill.bad { background: #FDECEA; color: var(--loss); }
.dm-board td b { font-weight: 600; }
.dm-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.dm-ctlbox { border: 1px solid var(--rule); border-radius: 10px; padding: 18px; }
.dm-ctlbox .btn { min-height: 42px; font-size: 14.5px; }
.dm-sw { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.dm-sw input { width: 18px; height: 18px; accent-color: var(--cobalt); }
.try-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.try-notes h3 { font-size: 17px; margin-bottom: 6px; }
.try-notes p { font-size: 15px; color: var(--ink2); }
@media (max-width: 860px) {
  .dm-grid, .dm-grid.wide, .dm-ctl, .try-notes { grid-template-columns: 1fr; }
  .dm-req-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .dm-view { padding: 20px 16px; }
  .dm-picks, .dm-result { grid-template-columns: 1fr; }
  .dm-stats { grid-template-columns: 1fr 1fr; }
  .dm-sim span { display: none; }
  .dm-tab { padding: 14px 10px 12px; font-size: 14.5px; }
  .try-sec { background: linear-gradient(var(--night) 0 60px, var(--white) 60px); }
}
