/* Hyde client portal. Same brand system as DataLink (tokens.css is DataLink's own file, served as-is): royal blue pill buttons, navy chips, hairline panels,
   Helvetica Neue Light titles over Inter text, a frosted header with the logo. Scaled up for people in their 80s: large type, big targets, strong contrast. */
:root { --fs: 21px; --nav-h: 60px; --dock-h: 74px; }
html[data-size="0"] { --fs: 18px; } html[data-size="1"] { --fs: 21px; } html[data-size="2"] { --fs: 25px; } html[data-size="3"] { --fs: 30px; }
html[data-contrast="1"] { --bg: #000; --panel: #0B0B0B; --ink: #fff; --ink-2: #F2F2F2; --muted: #E6E6E6; --faint: #CFCFCF; --line: #fff; --line-2: #fff; --navy: #fff; --blue: #8EB4FF; --blue-soft: #0A1633;
  --sky-soft: #0F1A24; --ok: #6DFFA3; --watch: #FFD27A; --bad: #FF9A9A; --ok-bg: #062B14; --watch-bg: #2B1C00; --bad-bg: #340608; }
* { box-sizing: border-box; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--font-ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; color: inherit; } button { cursor: pointer; } a { color: var(--blue); text-decoration: none; } a:hover { text-decoration: underline; }
::selection { background: var(--blue-soft); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
html[data-contrast="1"] :focus-visible { outline-color: #FFE066; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6em 1em; z-index: 9999; } .skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .num { font-variant-numeric: tabular-nums; }

/* loading screen: the DataLink one */
#loading { position: fixed; inset: 0; z-index: 9000; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .7s var(--ease), visibility .7s; }
#loading.done { opacity: 0; visibility: hidden; }
#loading .mark { width: min(340px, 62vw); opacity: 0; transform: translateY(6px); animation: fadeUp .6s var(--ease) .1s forwards; }
#loading .ltag { position: absolute; bottom: 34px; left: 0; right: 0; text-align: center; font: 300 1rem var(--font-display); letter-spacing: .01em; color: var(--muted); opacity: 0; animation: fadeUp .8s var(--ease) .5s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* shell: frosted header exactly like DataLink */
#nav { position: sticky; top: 0; z-index: 800; min-height: var(--nav-h); display: flex; align-items: center; gap: 16px; padding: 0 20px; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); border-bottom: 1px solid var(--line); }
html[data-contrast="1"] #nav { background: rgba(0,0,0,.9); }
#nav .brand { display: flex; align-items: center; gap: 12px; flex: none; color: var(--ink); text-decoration: none; }
#nav .brand img { height: 22px; display: block; } html[data-contrast="1"] #nav .brand img { filter: invert(1) hue-rotate(180deg) brightness(1.4); }
#nav .brand span { font: 300 .6rem var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line-2); white-space: nowrap; }
#tabs { display: none; gap: 4px; flex: 1; justify-content: center; }
#tabs a { position: relative; padding: 8px 16px; font-size: .72rem; color: var(--ink-2); border-radius: 999px; text-decoration: none; }
#tabs a:hover { color: var(--ink); background: rgba(14,17,22,.04); } #tabs a.on { color: var(--blue); font-weight: 600; }
#tabs a.on::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--blue); }
.hact { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: none; }
html, body { overflow-x: clip; }
@media (max-width: 640px) { #nav { padding: 0 14px; gap: 10px; } #nav .brand span { display: none; } #nav .brand img { height: 20px; } .title { font-size: 1.3rem; letter-spacing: .07em; } .title.sm { font-size: 1.15rem; letter-spacing: .05em; } }
.btn.ghost.inline { padding-left: 0; padding-right: .6rem; justify-content: flex-start; min-height: 2.6rem; }
.hbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: .62rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
html[data-contrast="1"] .hbtn { background: #000; } .hbtn:hover { border-color: var(--navy); text-decoration: none; } .hbtn.dark { background: var(--navy); border-color: var(--navy); color: #fff; } html[data-contrast="1"] .hbtn.dark { background: #fff; color: #000; }
.hbtn svg { width: 1.1em; height: 1.1em; }
.practice { background: var(--navy); color: #fff; text-align: center; font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; } html[data-contrast="1"] .practice { background: #FFE066; color: #000; }
@media (min-width: 900px) { #tabs { display: flex; } #dock { display: none !important; } #nav { padding: 0 28px; } .hbtn .lbl-long { display: inline; } }

/* the bottom dock on phones and tablets */
#dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; display: flex; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
html[data-contrast="1"] #dock { background: rgba(0,0,0,.94); }
#dock a { flex: 1; min-height: var(--dock-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-2); font-size: .58rem; font-weight: 600; text-decoration: none; position: relative; }
#dock a svg { width: 1.5rem; height: 1.5rem; } #dock a.on { color: var(--blue); } #dock a.on::before { content: ""; position: absolute; top: 0; left: 24%; right: 24%; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); }
#dock .dot { position: absolute; top: 8px; right: 26%; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px; background: var(--bad); color: #fff; font-size: .5rem; display: grid; place-items: center; }

/* page: a quiet lowercase lead line over one strong capitalised line */
.wrap { max-width: 860px; margin: 0 auto; padding: 28px 20px calc(var(--dock-h) + 40px); }
@media (min-width: 900px) { .wrap { padding: 44px 28px 90px; } }
.lead { font: 300 .8rem var(--font-display); color: var(--muted); letter-spacing: .01em; margin: 0 0 4px; }
.title { font: 300 1.7rem/1.1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; color: var(--ink); word-break: break-word; }
.title.sm { font-size: 1.35rem; letter-spacing: .08em; }
.sub { font-size: .85rem; color: var(--ink-2); margin: 0 0 14px; font-weight: 350; }
.rule { height: 1px; background: var(--line); margin: 26px 0; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .72rem; font-weight: 600; color: var(--blue); margin: 0 0 4px; }
.back svg { width: 1em; height: 1em; }
h2.sec { margin: 30px 0 10px; font: 600 .56rem var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* panels: hairlines, not boxes */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem 1rem; margin: 0 0 14px; position: relative; }
.panel > h3 { margin: 0 0 4px; font: 600 .56rem var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.panel .head { font: 300 1.2rem/1.25 var(--font-display); letter-spacing: .005em; margin: 2px 0 8px; color: var(--ink); }
.panel p { margin: .4rem 0; } .panel.act { border-color: var(--blue); background: var(--blue-soft); } .panel.flat { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 22px 0 8px; }
.status-line { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--sky-soft); margin: 0 0 12px; font-size: .85rem; }
.status-line.ok { background: var(--ok-bg); } .status-line.watch { background: var(--watch-bg); } .status-line.bad { background: var(--bad-bg); } .status-line.sale { background: var(--blue-soft); }
.status-line svg { flex: none; width: 1.4rem; height: 1.4rem; margin-top: 2px; } .status-line.ok svg { color: var(--ok); } .status-line.watch svg { color: var(--watch); } .status-line.bad svg { color: var(--bad); } .status-line.sale svg { color: var(--blue); }
.note { font-size: .62rem; color: var(--muted); margin: 10px 0 0; } .empty { padding: 22px 4px; color: var(--muted); font: 300 .9rem var(--font-display); }
.tag { display: inline-flex; align-items: center; min-height: 1.6rem; padding: 0 .75rem; border-radius: 999px; font-size: .6rem; font-weight: 600; background: var(--sky-soft); color: var(--navy); }
.tag.ok { background: var(--ok-bg); color: var(--ok); } .tag.watch { background: var(--watch-bg); color: var(--watch); } .tag.bad { background: var(--bad-bg); color: var(--bad); } .tag.blue { background: var(--blue-soft); color: var(--blue); }
html[data-contrast="1"] .tag { border: 1px solid #fff; }
.chip { display: inline-flex; align-items: center; min-height: 1.9rem; padding: 0 .9rem; border: 1px solid var(--navy); border-radius: 999px; background: transparent; color: var(--navy); font-size: .62rem; font-weight: 500; }

/* buttons: DataLink's pills, made big */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 28rem; min-height: 3.1rem; margin: .6rem 0 0; padding: 0 1.4rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-size: .8rem; font-weight: 600; color: var(--ink); text-align: center; text-decoration: none; transition: all .15s; }
.btn:hover { border-color: var(--navy); text-decoration: none; } .btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn.primary, .btn.go { background: var(--blue); border-color: var(--blue); color: #fff; } .btn.primary:hover, .btn.go:hover { background: #150FDB; border-color: #150FDB; }
html[data-contrast="1"] .btn.primary, html[data-contrast="1"] .btn.go { color: #000; }
.btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; } html[data-contrast="1"] .btn.dark { color: #000; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--blue); } .btn.alt { background: var(--panel); }
.btn.no { background: var(--panel); border-color: var(--bad); color: var(--bad); }
.btn[disabled] { opacity: .45; cursor: not-allowed; } .btn.inline { display: inline-flex; width: auto; }
.actions { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
label.fl { display: block; font: 600 .6rem var(--font-ui); letter-spacing: .06em; color: var(--ink-2); margin: 1.1rem 0 .35rem; }
input, select, textarea { width: 100%; min-height: 3rem; padding: 0 1rem; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); outline: none; font-size: .85rem; }
textarea { padding: .8rem 1rem; min-height: 9rem; } input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27,22,251,.10); }
input[type=checkbox] { width: 1.5rem; height: 1.5rem; min-height: 0; accent-color: var(--blue); } input[type=range] { padding: 0; accent-color: var(--blue); }
.code { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.chk { display: flex; gap: 12px; align-items: center; margin: .8rem 0; font-size: .8rem; }

/* tiles, stats, steps, timeline, messages */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 8rem; padding: 1rem .6rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); font-size: .68rem; font-weight: 600; text-align: center; text-decoration: none; transition: all .15s; }
.tile:hover { border-color: var(--blue); box-shadow: var(--shadow); text-decoration: none; } .tile svg { width: 2rem; height: 2rem; color: var(--navy); } .tile:hover svg { color: var(--blue); }
.badge { position: absolute; top: 10px; right: 12px; min-width: 1.5rem; height: 1.5rem; padding: 0 .4rem; border-radius: 999px; background: var(--blue); color: #fff; font-size: .55rem; display: grid; place-items: center; }
html[data-contrast="1"] .badge { color: #000; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 12px; margin: 4px 0 6px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.1rem; } .stat .n { font: 300 1.7rem/1.1 var(--font-display); letter-spacing: -.01em; } .stat .l { font-size: .58rem; color: var(--muted); margin-top: 4px; font-weight: 500; }
.track { height: .55rem; background: var(--line); border-radius: 99px; overflow: hidden; margin: 10px 0; } .track > i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.steps { list-style: none; padding: 0; margin: .4rem 0; } .steps li { display: flex; gap: 14px; align-items: center; padding: .7rem .2rem; border-bottom: 1px solid var(--line); font-size: .78rem; } .steps li:last-child { border: 0; }
.steps .dot { width: 1.9rem; height: 1.9rem; flex: none; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 600; font-size: .62rem; color: var(--muted); } .steps .dot svg { width: 1rem; height: 1rem; }
.steps li.done .dot { background: var(--navy); border-color: var(--navy); color: #fff; } html[data-contrast="1"] .steps li.done .dot { color: #000; }
.steps li.now { font-weight: 600; background: var(--blue-soft); border-radius: 14px; border: 0; padding: .7rem .7rem; margin: 2px -.5rem; } .steps li.now .dot { background: var(--blue); border-color: var(--blue); color: #fff; } html[data-contrast="1"] .steps li.now .dot { color: #000; }
.steps li.next { color: var(--muted); }
.tl { list-style: none; padding: 0; margin: 0; } .tl li { padding: .8rem 0 .8rem 1.1rem; border-left: 1px solid var(--line-2); position: relative; font-size: .8rem; } .tl li::before { content: ""; position: absolute; left: -5px; top: 1.15rem; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.tl .when { display: block; font-size: .56rem; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.msg { max-width: 88%; padding: .8rem 1rem; border-radius: 20px 20px 20px 6px; margin: .7rem 0; background: var(--sky-soft); font-size: .8rem; } .msg.me { margin-left: auto; background: var(--blue-soft); border-radius: 20px 20px 6px 20px; }
.msg .who { font-size: .54rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .7rem; } .tbl th { font: 600 .5rem var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 0 8px 10px; border-bottom: 1px solid var(--line-2); } .tbl td { padding: .7rem 8px; border-bottom: 1px solid var(--line); } .tbl tr:last-child td { border: 0; }
.row2 { display: grid; gap: 0 14px; } @media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
svg text { fill: var(--ink); font-family: var(--font-ui); } .ico { width: 1.2em; height: 1.2em; vertical-align: -.2em; }
details { margin: .5rem 0; } summary { cursor: pointer; font-weight: 600; min-height: 2.6rem; display: flex; align-items: center; } ul { padding-left: 1.2rem; } li { margin: .25rem 0; }

/* feedback layers */
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--dock-h) + 14px); max-width: 640px; margin: 0 auto; padding: 1rem 1.2rem; border-radius: 18px; z-index: 1500; font-size: .78rem; font-weight: 600; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); } .toast.err { background: var(--bad); }
html[data-contrast="1"] .toast { background: #fff; color: #000; } @media (min-width: 900px) { .toast { bottom: 24px; } }
.modal { position: fixed; inset: 0; background: rgba(11,31,58,.55); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 2000; padding: 16px; } .modal .panel { max-width: 560px; width: 100%; margin: 0; max-height: 92vh; overflow: auto; box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition: none !important; } }
@media print { #nav, #dock, .btn, .toast, .practice, .back { display: none !important; } body { background: #fff; color: #000; } .wrap { max-width: none; padding: 0; } .panel, .stat { border-color: #000; break-inside: avoid; } }
