/* Cipher — matches the Geneticker product family: Google Sans + Material Icons
   on a light Google-Material surface. Cipher's own accent is a teal-green so it
   reads as a sibling of Vault (green) and Lab (blue), not a different product. */
:root {
  --bg:      #f8f9fa;
  --panel:   #ffffff;
  --panel2:  #f1f3f4;
  --ink:     #202124;
  --ink2:    #5f6368;
  --ink3:    #80868b;
  --line:    #dadce0;
  --line2:   #e8eaed;
  --blue:    #1a73e8;
  --blue-h:  #1557b0;
  --green:   #0d904f;
  --teal:    #0ca678;   /* Cipher accent */
  --teal-h:  #0b8f68;
  --red:     #d93025;
  --amber:   #e37400;
  --violet:  #8b5cf6;
  --display: 'Google Sans','Google Sans Text','Roboto','Helvetica Neue',Arial,sans-serif;
  --body:    'Google Sans Text','Google Sans','Roboto','Helvetica Neue',Arial,sans-serif;
  --mono:    'Roboto Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --radius:  14px;
  --shadow:  0 1px 3px rgba(60,64,67,.12), 0 4px 12px rgba(60,64,67,.10);
  --shadow-lg: 0 8px 28px -8px rgba(60,64,67,.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  letter-spacing: .1px;
}
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink2); }
.dim { color: var(--ink3); }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--teal);
  display: grid; place-items: center; color: #fff;
}
.brand .logo .material-icons-outlined { font-size: 18px; }
.brand small { font-family: var(--mono); font-weight: 500; color: var(--ink3); font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; }
.topbar .spacer { flex: 1; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 999px; border: none;
  background: transparent; color: var(--ink2); display: grid; place-items: center;
  transition: .15s;
}
.icon-btn:hover { color: var(--ink); background: var(--panel2); }
.chip-user { display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 13px; color: var(--ink); white-space: nowrap; }
.chip-user .av { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; }
.chip-user .av img { width: 100%; height: 100%; display: block; image-rendering: pixelated; border-radius: 50%; }

/* ---------------------------------------------------------------- 9-dot launcher */
.apps-wrap { position: relative; }
.apps-popover {
  position: absolute; right: 0; top: 48px; width: 300px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 14px; display: none;
}
.apps-popover.open { display: block; }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.apps-grid a { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 6px; border-radius: 12px; color: var(--ink); transition: .15s; }
.apps-grid a:hover { background: var(--panel2); }
.apps-grid .app-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 21px; }
.apps-grid .app-name { font-size: 12px; color: var(--ink2); }
.apps-footer { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; text-align: center; }
.apps-footer a { font-size: 12.5px; }

/* ---------------------------------------------------------------- layout */
.stage { max-width: 940px; margin: 0 auto; padding: 40px 22px 100px; }
.stage.narrow { max-width: 460px; }
.center-wrap { min-height: calc(100vh - 63px); display: grid; place-items: center; padding: 30px 20px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card.pad-lg { padding: 32px; }
.card.flat { box-shadow: none; }

h1.title { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -.4px; color: var(--ink); }
h2.title { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.2px; }
.eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.lead { color: var(--ink2); font-size: 15px; margin-top: 8px; }

/* ---------------------------------------------------------------- auth */
/* Side-tab layout mirroring the app shell: brand rail on the left with
   Create account / Sign in as side tabs (.side-item), form on the right. */
.auth-card { display: flex; align-items: stretch; width: 100%; max-width: 780px; padding: 0; overflow: hidden; }
.auth-side { flex: none; width: 264px; padding: 26px 22px; background: var(--bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.auth-logo { width: 52px; height: 52px; border-radius: 14px; background: var(--teal); display: grid; place-items: center; color: #fff; margin-bottom: 14px; }
.auth-logo .material-icons-outlined { font-size: 28px; }
.ab-name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.2px; color: var(--ink); }
.ab-sub { color: var(--ink2); font-size: 12.5px; line-height: 1.55; margin-top: 6px; }
.auth-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; }
.auth-main { flex: 1; min-width: 0; padding: 26px 30px 30px; }
.auth-main .auth-head { font-size: 22px; margin-top: 2px; }
@media (max-width: 680px) {
  .auth-card { flex-direction: column; }
  .auth-side { width: 100%; border-right: none; border-bottom: 1px solid var(--line); }
  .auth-nav { flex-direction: row; }
  .auth-nav .side-item { flex: 1; justify-content: center; white-space: nowrap; padding: 10px 8px; gap: 8px; }
}

/* username forge — vault-style: lock the parts you like, roll the die */
.forge-row { display: flex; align-items: center; gap: 12px; }
.forge-slots { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.forge-slot { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.forge-lock { border: none; background: none; padding: 3px 5px; border-radius: 6px; color: var(--ink3); display: grid; place-items: center; transition: .13s; }
.forge-lock:hover { color: var(--ink); background: var(--panel2); }
.forge-slot.locked .forge-lock { color: var(--blue); }
.forge-lock .material-icons-outlined { font-size: 16px; }
.forge-word { width: 100%; text-align: center; padding: 9px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-family: var(--mono); font-weight: 700; font-size: 11.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: .15s; }
.forge-slot.locked .forge-word { border-color: rgba(26,115,232,.45); background: #e8f0fe; color: var(--blue); }
.forge-part { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--ink3); }
.forge-die { flex: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--blue); display: grid; place-items: center; transition: .15s; }
.forge-die:hover:not(:disabled) { background: var(--bg); border-color: rgba(26,115,232,.5); }
.forge-die:disabled { opacity: .45; cursor: not-allowed; }
.forge-die .material-icons-outlined { font-size: 24px; }
.forge-die.rolling .material-icons-outlined { animation: spin .8s linear infinite; }
.forge-hint { margin-top: 9px; font-size: 11.5px; color: var(--ink3); line-height: 1.55; }
.forge-hint .mono { color: var(--ink); font-weight: 700; }
.field { margin-top: 16px; }
.field label { display: block; font-size: 11px; font-weight: 700; color: var(--ink2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.input {
  width: 100%; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font-size: 14px; font-family: var(--body); transition: .15s;
}
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.input.mono { font-family: var(--mono); font-size: 12px; }
.keybox { padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: 11px; color: var(--ink2); word-break: break-all; line-height: 1.6; max-height: 84px; overflow-y: auto; position: relative; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 8px; border: 1px solid transparent;
  font-family: var(--display); font-weight: 600; font-size: 14px; transition: .15s;
}
.btn .material-icons-outlined { font-size: 18px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-h); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-h); }
.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--panel2); }
.btn-soft { background: var(--bg); border-color: var(--line); color: var(--ink2); }
.btn-soft:hover { background: var(--panel2); color: var(--ink); }
.btn-danger { background: var(--panel); border-color: rgba(217,48,37,.4); color: var(--red); }
.btn-danger:hover { background: rgba(217,48,37,.06); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hr-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.hr-or::before, .hr-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.hr-or span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink3); }
.check-row { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; cursor: pointer; font-size: 13px; color: var(--ink); }
.check-row input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--blue); }

.err { margin-top: 14px; padding: 10px 13px; border-radius: 8px; background: #fce8e6; border: 1px solid #f5c6c2; color: #c5221f; font-size: 13px; }
.note { margin-top: 14px; padding: 11px 13px; border-radius: 8px; background: #e8f0fe; border: 1px solid #d2e3fc; color: #174ea6; font-size: 12.5px; line-height: 1.5; }
.note.warn { background: #fef7e0; border-color: #feefc3; color: #b06000; }
.note .material-icons-outlined { font-size: 15px; vertical-align: -3px; margin-right: 4px; }

/* ---------------------------------------------------------------- tier bars */
.tiers { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.tier {
  display: flex; align-items: center; gap: 16px; text-align: left; width: 100%;
  padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel); transition: .15s; box-shadow: var(--shadow);
}
.tier:hover { border-color: var(--ink3); }
.tier.selected { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow); background: #f7faff; }
.tier .t-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 23px; }
.tier .t-body { flex: 1; }
.tier .t-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tier .t-name { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); }
.tier .t-tag { font-family: var(--display); font-size: 10.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink2); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.tier .t-tag.pay { color: var(--teal); border-color: rgba(12,166,120,.4); background: rgba(12,166,120,.08); }
.tier .t-tag.free { color: var(--blue); border-color: rgba(26,115,232,.35); background: #e8f0fe; }
.tier .t-desc { color: var(--ink2); font-size: 13px; margin-top: 4px; max-width: 620px; }
.tier .t-check { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; transition: .15s; }
.tier.selected .t-check { border-color: var(--blue); background: var(--blue); color: #fff; }
.tier .t-check .material-icons-outlined { font-size: 15px; }

/* ---------------------------------------------------------------- upload */
.drop {
  border: 2px dashed var(--line); border-radius: 16px; padding: 42px 24px; text-align: center;
  transition: .15s; background: var(--panel); cursor: pointer; margin-top: 22px;
}
.drop:hover, .drop.drag { border-color: var(--blue); background: #f7faff; }
.drop .up-ic { width: 58px; height: 58px; border-radius: 15px; margin: 0 auto 14px; display: grid; place-items: center; background: #e8f0fe; color: var(--blue); }
.drop .up-ic .material-icons-outlined { font-size: 30px; }
.progress { height: 8px; border-radius: 999px; background: var(--panel2); overflow: hidden; margin-top: 6px; }
.progress > span { display: block; height: 100%; background: var(--blue); width: 0; transition: width .2s; }

/* ---------------------------------------------------------------- chunked-pin progress card */
.pin-card { padding: 18px 20px; }
.pin-file { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pin-file .material-icons-outlined { font-size: 22px; }
.pin-name { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin-bar-head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 4px; gap: 10px; }
.pin-bar-head .pin-stage-label { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin-bar-head #pin-pct { color: var(--ink2); flex: none; }
.pin-detail { font-size: 11.5px; margin-top: 7px; min-height: 15px; }
.pin-stages { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.pin-stage { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink2); }
.pin-stage .material-icons-outlined { font-size: 17px; }
.pin-stage.sr-pending { color: var(--ink3); }
.pin-stage.sr-pending .material-icons-outlined { color: var(--line); }
.pin-stage.sr-active { color: var(--ink); font-weight: 600; }
.pin-stage.sr-active .material-icons-outlined { color: var(--blue); }
.pin-stage.sr-done { color: var(--ink); }
.pin-stage.sr-done .material-icons-outlined { color: var(--teal); }
.mi-spin { animation: spin .8s linear infinite; transform-origin: 50% 50%; }

/* ---------------------------------------------------------------- categories */
.cat { display: flex; align-items: flex-start; gap: 14px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-top: 12px; transition: .15s; box-shadow: var(--shadow); }
.cat.on { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow); }
.cat .cb { width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 6px; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; cursor: pointer; }
.cat.on .cb { background: var(--blue); border-color: var(--blue); color: #fff; }
.cat .cb .material-icons-outlined { font-size: 15px; }
.cat .c-name { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink); }
.cat .c-desc { color: var(--ink2); font-size: 12.5px; margin-top: 3px; }
.cat .c-count { font-family: var(--mono); font-size: 12px; color: var(--ink2); margin-left: auto; white-space: nowrap; padding-left: 12px; }
.risk { font-size: 10px; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; padding: 2px 8px; border-radius: 999px; }
.risk.low { color: var(--green); background: rgba(13,144,79,.1); }
.risk.med { color: var(--amber); background: rgba(227,116,0,.1); }
.risk.high { color: var(--red); background: rgba(217,48,37,.1); }

/* ---------------------------------------------------------------- dashboard */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px,1fr)); gap: 14px; margin-top: 20px; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.metric .m-label { font-size: 12px; color: var(--ink2); display: flex; align-items: center; gap: 7px; }
.metric .m-value { font-family: var(--display); font-weight: 700; font-size: 25px; margin-top: 8px; color: var(--ink); }
.metric .m-sub { font-size: 12px; color: var(--ink3); margin-top: 2px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 4px; }
.section-head h2 { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); }

.trait { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-top: 10px; box-shadow: var(--shadow); }
.trait .tr-geno { font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--blue); background: #e8f0fe; padding: 4px 10px; border-radius: 7px; min-width: 52px; text-align: center; }
.trait .tr-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.trait .tr-rs { font-family: var(--mono); font-size: 11px; color: var(--ink3); }
.trait .tr-read { color: var(--ink2); font-size: 12.5px; margin-top: 2px; }
.trait .tr-tag { margin-left: auto; }

.sub-banner { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); margin-top: 20px; box-shadow: var(--shadow); }
.sub-banner .sb-badge { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-size: 25px; background: rgba(139,92,246,.1); color: var(--violet); }
.sub-banner .sb-name { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); }
.sub-banner .sb-meta { color: var(--ink2); font-size: 13px; }

table.assets { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
table.assets th { text-align: left; color: var(--ink2); font-weight: 500; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.assets td { padding: 11px 10px; border-bottom: 1px solid var(--line); color: var(--ink); }
table.assets td.cid { font-family: var(--mono); font-size: 11.5px; color: var(--blue); }
.kind-pill { font-family: var(--display); font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink2); }

/* ---------------------------------------------------------------- misc */
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-ghost .spinner, .btn-soft .spinner, .btn-danger .spinner { border: 2px solid rgba(95,99,104,.3); border-top-color: var(--ink2); }
@keyframes spin { to { transform: rotate(360deg); } }
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { padding: 10px 18px; border-radius: 8px; background: #202124; color: #fff; font-size: 13.5px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 9px; animation: rise .2s ease; }
.toast .material-icons-outlined { font-size: 18px; }
.toast.ok .material-icons-outlined { color: #81c995; } .toast.bad .material-icons-outlined { color: #f28b82; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.steps { display: flex; gap: 8px; margin: 0 0 16px; }
.step-dot { flex: 1; height: 4px; border-radius: 999px; background: var(--line); }
.step-dot.done { background: var(--blue); }
.callout { margin-top: 18px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: 12.5px; color: var(--ink2); line-height: 1.6; }
.callout strong { color: var(--ink); }
.footer-honest { max-width: 940px; margin: 36px auto 0; padding: 0 22px; color: var(--ink3); font-size: 12px; line-height: 1.7; }
.footer-honest a { color: var(--ink2); text-decoration: underline; }

/* ---------------------------------------------------------------- tiered sharing controls */
.tier-section { margin-top: 26px; }
.tier-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tier-head strong { font-family: var(--display); font-size: 15.5px; color: var(--ink); }
.tier-badge { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .5px; padding: 3px 9px; border-radius: 6px; border: 1px solid; }
.tier-reveal { color: var(--ink2); font-size: 12.5px; margin: 4px 0 10px; }
.mini-toggle { margin-left: auto; font-family: var(--display); font-size: 12px; font-weight: 600; color: var(--blue); background: none; border: none; padding: 2px 6px; border-radius: 6px; }
.mini-toggle:hover { background: var(--panel2); }
.feat-row.disabled { opacity: .5; pointer-events: none; }
.feat-row.disabled .cb { border-style: dashed; }

.share-summary {
  position: sticky; top: 74px; z-index: 20;
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  padding: 12px 16px; margin-top: 22px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line2); box-shadow: var(--shadow);
}
.share-summary .ss-count { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); }
.share-summary .ss-meter { display: flex; gap: 3px; margin-top: 6px; }
.share-summary .meter-seg { width: 22px; height: 6px; border-radius: 2px; }
.share-summary .ss-right { font-size: 12.5px; color: var(--ink2); text-align: right; }
.share-summary .ss-right.warn { color: var(--amber); }
.share-summary .ss-right.danger { color: var(--red); }
.share-summary .ss-right strong { color: inherit; }
@media (max-width: 560px) { .share-summary { flex-direction: column; align-items: flex-start; gap: 8px; } .share-summary .ss-right { text-align: left; } }

/* ---------------------------------------------------------------- group-first sharing (panels + bundles + search) */
.share-tools { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.share-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); }
.share-search .material-icons-outlined { font-size: 20px; color: var(--ink3); }
.share-search input { flex: 1; border: none; outline: none; background: transparent; padding: 12px 0; font-family: var(--body); font-size: 14px; color: var(--ink); }
.bundles { display: flex; flex-wrap: wrap; gap: 8px; }
.bundle { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 12.5px; transition: .15s; }
.bundle:hover { border-color: var(--teal); color: var(--teal-h); }
.bundle .material-icons-outlined { font-size: 16px; }
.bundle .bundle-n { font-family: var(--mono); font-size: 11px; color: var(--ink2); background: var(--panel2); padding: 1px 7px; border-radius: 999px; }
.bundle:disabled { opacity: .45; cursor: not-allowed; }
.bundle.clear { color: var(--ink2); } .bundle.clear:hover { color: var(--red); border-color: rgba(217,48,37,.4); }

.grp { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-top: 12px; box-shadow: var(--shadow); overflow: hidden; }
.grp.open { border-color: var(--ink3); }
.grp-head { display: flex; align-items: center; }
.grp-cb { width: 24px; height: 24px; flex: none; margin-left: 15px; border-radius: 6px; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; cursor: pointer; transition: .12s; }
.grp-cb .material-icons-outlined { font-size: 16px; }
.grp-cb.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.grp-cb.some { background: var(--panel2); border-color: var(--blue); color: var(--blue); }
.grp-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: none; border: none; text-align: left; }
.grp-ic { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 21px; }
.grp-body { flex: 1; min-width: 0; }
.grp-name { display: block; font-family: var(--display); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.grp-sub { display: block; color: var(--ink2); font-size: 12px; margin-top: 3px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.grp-count { font-family: var(--mono); font-size: 12.5px; color: var(--ink2); flex: none; padding: 0 4px; }
.grp-caret { flex: none; color: var(--ink3); transition: transform .18s; }
.grp.open .grp-caret { transform: rotate(180deg); }
.grp-rows { padding: 4px 16px 16px 53px; }
.grp-rows .feat-row { margin-top: 8px; }
.grp-more { margin-top: 10px; padding: 9px 12px; border-radius: 8px; background: var(--bg); border: 1px dashed var(--line); color: var(--ink2); font-size: 12px; }
.grp-warn { color: var(--red); background: rgba(217,48,37,.08); font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.warn-note { display: flex; align-items: flex-start; gap: 5px; margin-top: 6px; padding: 7px 10px; border-radius: 8px; background: #fef7e0; border: 1px solid #feefc3; color: #b06000; font-size: 11px; line-height: 1.45; }
.warn-note .material-icons-outlined { font-size: 13px; margin-top: 1px; flex: none; }
@media (max-width: 560px) { .grp-rows { padding-left: 16px; } .grp-sub { font-size: 11.5px; } }

/* ================================================================ app shell (sidebar + content) */
.shell { display: flex; align-items: flex-start; gap: 26px; max-width: 1140px; margin: 0 auto; padding: 26px 22px 90px; }
.sidebar { position: sticky; top: 87px; flex: none; width: 268px; display: flex; flex-direction: column; gap: 6px; }
.side-profile { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); margin-bottom: 6px; }
.side-profile .av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; }
.side-profile .sp-name { font-family: var(--mono); font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; line-height: 1.3; }
.side-profile .sp-mode { font-size: 11px; color: var(--teal); font-weight: 600; margin-top: 2px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; border: none; background: none; width: 100%; text-align: left; color: var(--ink2); font-family: var(--display); font-weight: 600; font-size: 14px; transition: .13s; }
.side-item .material-icons-outlined { font-size: 20px; }
.side-item:hover { background: var(--panel2); color: var(--ink); }
.side-item.active { background: rgba(12,166,120,.1); color: var(--teal-h); }
.side-item .si-badge { margin-left: auto; font-family: var(--mono); font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--panel2); color: var(--ink2); }
.side-item.active .si-badge { background: rgba(12,166,120,.16); color: var(--teal-h); }
.content { flex: 1; min-width: 0; }
.content .stage { max-width: none; margin: 0; padding: 0; }
.tab-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.tab-head .eyebrow { margin-bottom: 2px; }

/* mobile: sidebar becomes a horizontal scroller on top */
@media (max-width: 820px) {
  .shell { flex-direction: column; gap: 16px; padding-top: 18px; }
  .sidebar { position: static; width: 100%; }
  .side-profile { margin-bottom: 2px; }
  .side-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .side-item { flex: none; width: auto; padding: 9px 13px; }
  .side-item .si-badge { display: none; }
}

/* ================================================================ analytics (diseases by severity) */
.dz-list { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.dz-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.dz-sev { width: 6px; align-self: stretch; border-radius: 999px; flex: none; }
.dz-main { flex: 1; min-width: 0; }
.dz-name { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--ink); }
.dz-meta { font-size: 11.5px; color: var(--ink3); margin-top: 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dz-cat { text-transform: capitalize; }
.dz-prob { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.prob-chip { font-family: var(--mono); font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 999px; line-height: 1; }
.prob-chip.low { color: var(--green); background: rgba(13,144,79,.12); }
.prob-chip.med { color: var(--amber); background: rgba(227,116,0,.13); }
.prob-chip.high { color: var(--red); background: rgba(217,48,37,.12); }
.prob-track { width: 74px; height: 5px; border-radius: 999px; background: var(--panel2); overflow: hidden; }
.prob-track > span { display: block; height: 100%; border-radius: 999px; }
.dz-empty { margin-top: 16px; padding: 26px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; color: var(--ink2); background: var(--panel); }
.dz-empty .material-icons-outlined { font-size: 34px; color: var(--ink3); }
.upgrade-card { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 18px; border: 1px solid rgba(12,166,120,.35); border-radius: 14px; background: rgba(12,166,120,.06); }
.upgrade-card .material-icons-outlined { font-size: 26px; color: var(--teal); flex: none; }
.upgrade-card .uc-body { flex: 1; min-width: 0; }
.upgrade-card .uc-title { font-family: var(--display); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.upgrade-card .uc-sub { font-size: 12.5px; color: var(--ink2); margin-top: 2px; }

/* ================================================================ ancestry */
.anc-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 14px; margin-top: 16px; }
.anc-card { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); padding: 18px; }
.anc-card .ac-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink3); font-weight: 700; }
.anc-card .ac-value { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); margin-top: 6px; }
.anc-comp { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); padding: 18px; }
.anc-bar-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.anc-bar-row:first-of-type { margin-top: 4px; }
.anc-bar-name { width: 120px; flex: none; font-size: 13px; color: var(--ink); }
.anc-bar { flex: 1; height: 12px; border-radius: 999px; background: var(--panel2); overflow: hidden; }
.anc-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--teal); }
.anc-bar-pct { width: 44px; flex: none; text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--ink2); }

/* ================================================================ vault + decoys tables */
.asset-actions { display: flex; gap: 6px; }
.mini-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink2); font-family: var(--display); font-weight: 600; font-size: 11.5px; transition: .13s; }
.mini-btn:hover { background: var(--panel2); color: var(--ink); border-color: var(--ink3); }
.mini-btn.danger:hover { color: var(--red); border-color: rgba(217,48,37,.4); }
.mini-btn .material-icons-outlined { font-size: 15px; }
.mini-btn:disabled { opacity: .5; cursor: not-allowed; }
.stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button { width: 38px; height: 38px; border: none; background: var(--panel); color: var(--ink); display: grid; place-items: center; }
.stepper button:hover { background: var(--panel2); }
.stepper .step-val { min-width: 46px; text-align: center; font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--ink); border-left: 1px solid var(--line); border-right: 1px solid var(--line); height: 38px; display: grid; place-items: center; }
.decoy-panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); padding: 20px; margin-top: 16px; }
.decoy-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tier-pill { font-family: var(--mono); font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--panel2); color: var(--ink2); }

/* ================================================================ settings */
.set-section { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); padding: 20px; margin-top: 16px; }
.set-section h3 { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.set-section h3 .material-icons-outlined { font-size: 19px; color: var(--ink2); }
.set-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.set-row .sr-body { flex: 1; min-width: 200px; }
.set-row .sr-title { font-weight: 600; font-size: 14px; color: var(--ink); }
.set-row .sr-sub { font-size: 12.5px; color: var(--ink2); margin-top: 2px; }
.switch { position: relative; width: 44px; height: 25px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: .18s; }
.switch .track::before { content: ''; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .18s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--teal); }
.switch input:checked + .track::before { transform: translateX(19px); }
.mode-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(12,166,120,.1); color: var(--teal-h); font-family: var(--display); font-weight: 600; font-size: 12.5px; }

/* undo / back button on onboarding steps */
.btn-row .btn-back { margin-right: auto; }
.step-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--ink2); font-family: var(--display); font-weight: 600; font-size: 13px; padding: 4px 6px; border-radius: 8px; margin-bottom: 10px; }
.step-back:hover { background: var(--panel2); color: var(--ink); }
.step-back .material-icons-outlined { font-size: 18px; }

/* ================================================================================
   FLUID WIDTH — the layout expands to fill wide monitors and contracts on small
   screens instead of sitting in a fixed centred column. Later rules override the
   fixed caps above; higher-specificity rules (.stage.narrow, .content .stage) win.
   ============================================================================== */
.stage         { max-width: min(1160px, 94vw); }
.footer-honest { max-width: min(1160px, 94vw); }
.shell         { max-width: min(1720px, 94vw); }

/* ═══════════════════════════════════════════════════════════════════════════
   Traits — the reference-catalog product. Its accent is a warm amber so it
   reads as a sibling of Cipher (teal) and Decipher (indigo), not a clone.
   Everything below overrides / extends the shared Cipher stylesheet above.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --trait:    #d97706;   /* Traits accent (amber-600) */
  --trait-h:  #b45309;   /* hover (amber-700) */
  --trait-bg: rgba(217,119,6,.10);
}

/* Re-skin the shared chrome from teal -> amber */
.brand .logo      { background: var(--trait); }
.eyebrow          { color: var(--trait); }
.side-item.active { background: var(--trait-bg); color: var(--trait-h); }
.side-item.active .si-badge { background: rgba(217,119,6,.16); color: var(--trait-h); }

/* Product links on the right of the top bar (replaces the user chip) */
.top-links { display: flex; align-items: center; gap: 20px; font-family: var(--display); font-weight: 500; font-size: 13.5px; }
.top-links a { color: var(--ink2); transition: color .15s; }
.top-links a:hover { color: var(--trait-h); }
/* On phones, hide only the bare-domain "Home" link (keep Cipher/Decipher).
   Must be an exact match, not `$=`, or it would also hide the two product
   links (both hrefs also end in "geneticker.com"). */
@media (max-width: 560px) { .top-links a[href="https://geneticker.com"] { display: none; } }

/* ---------------------------------------------------------------- hero */
.tx-hero { margin-bottom: 22px; }
.tx-hero h1 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.4px; color: var(--ink); }
.tx-hero p  { color: var(--ink2); font-size: 14px; margin-top: 6px; max-width: 640px; }

/* ---------------------------------------------------------------- stat strip */
.tx-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 720px) { .tx-stats { grid-template-columns: repeat(4, 1fr); } }
.tx-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.tx-stat .n { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1; color: var(--ink); }
.tx-stat .l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink3); margin-top: 6px; }

/* ---------------------------------------------------------------- source pills */
.tx-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 18px; }
.tx-sources .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; color: var(--ink3); }
.tx-badge { font-size: 10.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); color: var(--ink2); white-space: nowrap; }
.tx-badge.src-clinvar   { background: #fdecef; border-color: #f6c9d3; color: #b02a4a; }
.tx-badge.src-gwas      { background: #eceefc; border-color: #c9cef4; color: #3d3ab0; }
.tx-badge.src-gwas-nc   { background: #e6f6f3; border-color: #bfe8de; color: #0b7a63; }
.tx-badge.src-curated   { background: var(--panel2); border-color: var(--line); color: var(--ink2); }
.tx-badge.noncoding     { background: #e6f6f3; border-color: #bfe8de; color: #0b7a63; }

/* inheritance codes */
.tx-inh { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel2); color: var(--ink2); }
.tx-inh.AD  { background: #f3ecfd; border-color: #ddc9f7; color: #6d28d9; }
.tx-inh.AR  { background: #e8f0fe; border-color: #c6dafc; color: #1557b0; }
.tx-inh.XL, .tx-inh.XLR, .tx-inh.XLD { background: #fdecf5; border-color: #f6c9e2; color: #b0367e; }
.tx-inh.MT  { background: #fef3e2; border-color: #f7ddb0; color: #b45309; }
.tx-inh.POLYGENIC { background: #e6f6ee; border-color: #bfe8d2; color: #0b8f52; }
.tx-inh.COMPLEX   { background: var(--panel2); border-color: var(--line); color: var(--ink2); }
.tx-inh.SOMATIC   { background: #feeee2; border-color: #f7cdae; color: #b5560a; }

/* gene / rsid chips */
.tx-gene { font-family: var(--mono); font-size: 10px; font-weight: 500; padding: 1px 7px; border-radius: 5px; background: var(--panel2); color: var(--ink2); }
.tx-rsid { font-family: var(--mono); font-size: 10.5px; font-weight: 500; padding: 2px 8px; border-radius: 5px; background: var(--trait-bg); color: var(--trait-h); border: 1px solid rgba(217,119,6,.25); }

/* ---------------------------------------------------------------- search */
.tx-search { position: relative; margin-bottom: 18px; }
.tx-search .material-icons-outlined.lead-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink3); font-size: 20px; }
.tx-search input { width: 100%; padding: 12px 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 14px; font-family: var(--body); transition: .15s; }
.tx-search input:focus { outline: none; border-color: var(--trait); box-shadow: 0 0 0 1px var(--trait); }
.tx-search .clr { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: none; background: none; border-radius: 999px; color: var(--ink3); display: grid; place-items: center; }
.tx-search .clr:hover { background: var(--panel2); color: var(--ink); }

/* ---------------------------------------------------------------- browse layout */
.tx-browse { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 860px) { .tx-browse { grid-template-columns: 232px 1fr; align-items: start; } }

.tx-rail { display: flex; flex-direction: column; gap: 3px; }
@media (min-width: 860px) { .tx-rail { position: sticky; top: 78px; } }
.tx-group { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 9px 12px; border: none; border-radius: 9px; background: none; color: var(--ink2); font-family: var(--display); font-weight: 600; font-size: 13px; transition: .13s; }
.tx-group:hover { background: var(--panel2); color: var(--ink); }
.tx-group.active { background: var(--trait); color: #fff; }
.tx-group .cnt { font-family: var(--mono); font-size: 10.5px; color: var(--ink3); }
.tx-group.active .cnt { color: rgba(255,255,255,.85); }
.tx-group span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tx-cats { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tx-cat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.tx-cat-head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 16px; border: none; background: none; text-align: left; transition: .13s; }
.tx-cat-head:hover { background: var(--panel2); }
.tx-cat-head .t { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tx-cat-head .t .material-icons-outlined { font-size: 17px; color: var(--trait); }
.tx-cat-head .t b { font-family: var(--display); font-size: 13.5px; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-cat-head .t .cnt { font-family: var(--mono); font-size: 11px; color: var(--ink3); }
.tx-cat-head .chev { color: var(--ink3); font-size: 20px; }
.tx-cat-body { padding: 4px 14px 14px; border-top: 1px solid var(--line2); display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .tx-cat-body { grid-template-columns: 1fr 1fr; } }
.tx-cat-more { padding: 2px 16px 14px; }
.tx-cat-more button { border: none; background: none; color: var(--trait); font-family: var(--display); font-weight: 600; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 0; }
.tx-cat-more button:hover { color: var(--trait-h); text-decoration: underline; }
.tx-cat-more button:disabled { opacity: .5; }
.tx-cat-more .note { font-size: 11px; color: var(--ink3); }

/* trait chip (grid card) */
.tx-chip { text-align: left; padding: 11px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); transition: .13s; display: flex; gap: 9px; align-items: flex-start; min-width: 0; }
.tx-chip:hover { border-color: var(--trait); background: var(--trait-bg); }
.tx-chip .material-icons-outlined { font-size: 16px; color: var(--trait); margin-top: 1px; flex: none; }
.tx-chip .body { min-width: 0; flex: 1; }
.tx-chip .nm { font-family: var(--display); font-weight: 600; font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-chip:hover .nm { color: var(--trait-h); }
.tx-chip .meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; align-items: center; }
.tx-chip .more { font-size: 10px; color: var(--ink3); }

/* flat search result row */
.tx-results { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.tx-results .rhead { padding: 10px 16px; border-bottom: 1px solid var(--line2); font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; color: var(--ink3); }
.tx-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 16px; border: none; border-bottom: 1px solid var(--line2); background: none; transition: .12s; }
.tx-row:last-child { border-bottom: none; }
.tx-row:hover { background: var(--panel2); }
.tx-row > .material-icons-outlined { font-size: 18px; color: var(--trait); flex: none; }
.tx-row .body { flex: 1; min-width: 0; }
.tx-row .nm { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-row .path { font-size: 11px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-row .tags { display: none; gap: 5px; }
@media (min-width: 620px) { .tx-row .tags { display: flex; } }

/* ---------------------------------------------------------------- states */
.tx-loading, .tx-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 60px 20px; color: var(--ink3); text-align: center; }
.tx-empty .material-icons-outlined { font-size: 34px; color: var(--line); }
.tx-empty b { color: var(--ink2); font-size: 14px; font-family: var(--display); }
.tx-empty p { font-size: 12px; color: var(--ink3); }
.tx-spin { width: 22px; height: 22px; border: 2.5px solid var(--line); border-top-color: var(--trait); border-radius: 50%; animation: spin .7s linear infinite; }

/* ---------------------------------------------------------------- detail drawer */
.tx-drawer-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(32,33,36,.34); display: flex; justify-content: flex-end; animation: fadein .15s ease; }
.tx-drawer { position: relative; width: 100%; max-width: 460px; height: 100%; background: var(--panel); box-shadow: -12px 0 40px -12px rgba(0,0,0,.35); overflow-y: auto; animation: slidein .22s cubic-bezier(.4,0,.2,1); }
.tx-drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
.tx-drawer-head .eyebrow { font-size: 10.5px; letter-spacing: 1.2px; }
.tx-drawer-head .x { width: 32px; height: 32px; border: none; background: none; border-radius: 999px; color: var(--ink3); display: grid; place-items: center; }
.tx-drawer-head .x:hover { background: var(--panel2); color: var(--ink); }
.tx-drawer-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.tx-drawer-body h3 { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.3px; color: var(--ink); }
.tx-drawer-body .path { font-size: 12px; color: var(--ink3); margin-top: 3px; }
.tx-drawer-body .tagrow { display: flex; flex-wrap: wrap; gap: 6px; }
.tx-sec h4 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .7px; font-weight: 700; color: var(--ink3); margin-bottom: 5px; }
.tx-sec p { font-size: 13px; color: var(--ink); line-height: 1.6; white-space: pre-wrap; }
.tx-sec .chips { display: flex; flex-wrap: wrap; gap: 6px; }

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes slidein { from { transform: translateX(30px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }
