:root {
  --bg: #14120f;
  --panel: #1b1916;
  --panel-2: #23201c;
  --panel-3: #2a2621;
  --line: #2f2b25;
  --line-strong: #4a4234;
  --text: #ece5d8;
  --muted: #9a9183;
  --faint: #6f675b;
  --brass: #c9a767;
  --brass-hi: #efdcab;
  --brass-soft: rgba(201, 167, 103, 0.10);
  --danger: #e3907e;
  --radius: 14px;
  --brass-grad: linear-gradient(135deg, #efdcab, #c9a767 45%, #8d6c33);
  --serif: "Cormorant Garamond", Georgia, serif;
}
html { color-scheme: dark; scrollbar-color: #4a4234 #14120f; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #14120f; }
::-webkit-scrollbar-thumb { background: #3a342b; border-radius: 10px; border: 2px solid #14120f; }
::-webkit-scrollbar-thumb:hover { background: #c9a767; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: radial-gradient(900px 500px at 50% -10%, rgba(201,167,103,.06), transparent 70%), var(--bg);
  color: var(--text);
  font: 15px/1.6 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.btn-primary {
  background: var(--brass-grad); color: #1b1712; border: 0; border-radius: 999px;
  padding: 11px 18px; font-weight: 600; cursor: pointer; transition: filter .2s;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:disabled { opacity: .5; cursor: default; }
.btn-primary.sm { padding: 8px 14px; font-size: 13.5px; }
.btn-ghost {
  background: transparent; border: 1px solid var(--line-strong); color: var(--text);
  border-radius: 999px; padding: 10px 16px; cursor: pointer;
}
.btn-ghost:hover { background: var(--panel-2); }
.btn-danger { background: #8e3b2d; color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; font-weight: 600; }
.icon-btn {
  background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: 10px;
  width: 36px; height: 36px; display: inline-grid; place-items: center; font-size: 18px; flex-shrink: 0;
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn.round { border: 1px solid var(--line); border-radius: 50%; width: 34px; height: 34px; font-size: 17px; }
.link { background: none; border: 0; color: var(--brass-hi); cursor: pointer; padding: 0; font-size: 13.5px; }
.chev { color: var(--muted); font-size: 11px; }
.only-mobile { display: none; }

/* ================= Landing / sign in ================= */
.auth-error { color: var(--danger); font-size: 13.5px; }
.auth-foot { color: var(--faint); font: italic 500 15px var(--serif); margin: 26px 0 0; text-align: center; }
.landing {
  min-height: 100%; display: flex; flex-direction: column; align-items: center;
  padding: 0 16px 40px; background: #12110e;
}
.land-head {
  width: 100%; max-width: 1180px; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 8px;
}
.land-brand { display: flex; align-items: center; gap: 12px; }
.land-brand .crest { width: 38px; height: 38px; border-radius: 10px; }
.land-brand .wordmark { height: 27px; }
.pricing-tab {
  color: var(--text); font-weight: 500; font-size: 14.5px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); transition: background .2s, border-color .2s;
}
.pricing-tab:hover { background: var(--panel); border-color: var(--brass); }
.hero { text-align: center; margin: 7vh 0 5vh; }
.hero h1 { font: 500 clamp(52px, 11vw, 96px)/1.02 var(--serif); margin: 0; letter-spacing: -1px; color: #f3ede2; }
.hero-sub { font: 500 clamp(19px, 3.6vw, 26px)/1.35 var(--serif); color: #e4dccd; margin: 22px 0 0; }
.login-card {
  width: 100%; max-width: 560px; background: #151410; border: 1px solid #221f1a; border-radius: 34px;
  padding: 36px 36px 30px; text-align: center;
}
.step { display: grid; gap: 14px; }
.step h2 { font: 500 30px var(--serif); margin: 0; }
.social {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  background: #2c2a26; border: 0; border-radius: 14px; padding: 15px; font-size: 17px; font-weight: 500;
  color: #f3ede2; cursor: pointer; transition: background .2s;
}
.social:hover { background: #36332e; }
.social svg { width: 22px; height: 22px; stroke: none; }
.social svg.apple { width: 20px; height: 22px; }
.or { color: var(--muted); font-size: 14px; letter-spacing: 1px; margin: 4px 0; }
#emailForm { display: grid; gap: 14px; }
.login-card input {
  width: 100%; background: #1d1b17; border: 1px solid #2c2924; border-radius: 14px; padding: 15px 18px;
  color: var(--text); font: inherit; font-size: 17px; outline: none; transition: border-color .2s;
}
.login-card input::placeholder { color: #7f776a; }
.login-card input:focus { border-color: var(--brass); }
.btn-light {
  width: 100%; background: #efe8db; color: #1b1712; border: 0; border-radius: 14px; padding: 15px;
  font-size: 17px; font-weight: 500; cursor: pointer; transition: background .2s;
}
.btn-light:hover { background: #fff7ea; }
.btn-light:disabled { opacity: .6; cursor: default; }
.email-chip { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 14.5px; margin-bottom: 2px; }
.email-chip .who { color: var(--text); }
#authError:not(:empty) { margin-top: 14px; }
.fine { color: #9a9183; font-size: 14px; line-height: 1.55; margin: 20px 0 0; }
.free { color: #b5ad9f; font-size: 15px; margin: 14px 0 0; }

/* ================= Pricing ================= */
.pricing-hero { margin: 5vh 0 4vh; }
.pricing-hero h1 { font-size: clamp(46px, 9vw, 80px); }
.billing-toggle { display: inline-flex; gap: 4px; margin-top: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.billing-toggle button { background: none; border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; color: var(--muted); font-weight: 500; font-size: 14px; }
.billing-toggle button.on { background: var(--panel-3); color: var(--text); }
.billing-toggle .save { color: var(--brass-hi); font-size: 12px; margin-left: 4px; }
.plans { width: 100%; max-width: 1360px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.plan {
  background: #151410; border: 1px solid #262219; border-radius: 26px; padding: 26px 22px 24px;
  display: flex; flex-direction: column; position: relative; text-align: left;
}
.plan.featured { border-color: rgba(201,167,103,.6); box-shadow: 0 0 0 1px rgba(201,167,103,.25), 0 24px 60px rgba(0,0,0,.4); }
.plan .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #2a2416; color: var(--brass-hi); border: 1px solid rgba(201,167,103,.4); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font: 500 32px var(--serif); margin: 0; }
.plan .tag { color: var(--muted); margin: 4px 0 18px; font-size: 14.5px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; min-height: 58px; }
.plan .price b { font: 600 46px/1 var(--serif); color: #f3ede2; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan .billed { color: var(--faint); font-size: 13px; min-height: 20px; margin: 2px 0 18px; }
.plan .cta { width: 100%; border-radius: 14px; padding: 13px; font-size: 15.5px; font-weight: 600; cursor: pointer; border: 1px solid var(--line-strong); background: transparent; color: var(--text); }
.plan .cta:hover { background: var(--panel-2); }
.plan.featured .cta { background: var(--brass-grad); color: #1b1712; border: 0; }
.plan.featured .cta:hover { filter: brightness(1.06); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: #d9d1c3; }
.plan li::before { content: "✓"; color: var(--brass); font-weight: 700; }
.plan .everything { color: var(--muted); font-size: 13.5px; margin: 20px 0 -8px; }
.pricing-note { color: var(--faint); font-size: 13px; margin: 22px 0 0; text-align: center; }

@media (max-width: 1280px) {
  .plans { grid-template-columns: repeat(3, 1fr); max-width: 1080px; }
}
@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 520px) {
  .land-head { padding: 16px 0; }
  .land-brand .crest { width: 32px; height: 32px; }
  .land-brand .wordmark { height: 23px; }
  .hero { margin: 6vh 0 4vh; }
  .login-card { padding: 26px 20px 22px; border-radius: 26px; }
  .social, .btn-light, .login-card input { font-size: 16px; padding: 14px; }
}

/* ================= App layout ================= */
.app { display: flex; height: 100%; overflow: hidden; }
aside#sidebar {
  width: 280px; flex-shrink: 0; background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .25s ease; z-index: 30;
}
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 10px 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.crest { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(201,167,103,.18); }
.wordmark { height: 22px; display: block; }
.new-chat {
  margin: 6px 12px 8px; padding: 10px 14px; display: flex; align-items: center; gap: 10px;
  background: var(--brass-soft); border: 1px solid rgba(201,167,103,.35); border-radius: 12px;
  color: var(--brass-hi); font-weight: 600; cursor: pointer; transition: background .2s;
}
.new-chat:hover { background: rgba(201,167,103,.18); }
.new-chat .plus { width: 22px; height: 22px; border-radius: 50%; background: var(--brass-grad); color: #1b1712; display: grid; place-items: center; font-size: 13px; }
.side-nav { display: grid; padding: 2px 8px 8px; }
.side-nav > * {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  background: none; border: 0; color: #cfc7b8; cursor: pointer; text-align: left; font-size: 14px;
}
.side-nav > *:hover, .side-nav > .active { background: var(--panel-2); color: var(--text); }
.side-nav svg { color: var(--muted); }
.side-scroll { flex: 1; overflow-y: auto; padding: 0 8px 10px; }
.side-section { margin-top: 10px; }
.side-label { color: var(--faint); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.4px; padding: 6px 10px; }
.side-item {
  display: flex; align-items: center; gap: 6px; padding: 7px 6px 7px 10px; border-radius: 10px;
  color: #c4bcae; font-size: 14px; cursor: pointer; position: relative;
}
.side-item span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item:hover { background: var(--panel-2); color: var(--text); }
.side-item.active { background: var(--brass-soft); color: var(--text); }
.side-item .icon-btn { width: 26px; height: 26px; font-size: 15px; opacity: 0; }
.side-item:hover .icon-btn, .side-item.active .icon-btn { opacity: 1; }
.side-empty { color: var(--faint); font-size: 13px; padding: 4px 10px; }
.side-foot { border-top: 1px solid var(--line); padding: 10px; }
.profile {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.profile:hover { background: var(--panel-2); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--brass-grad); color: #1b1712; font-weight: 600; font-size: 13.5px;
}
.profile-text { flex: 1; min-width: 0; display: grid; }
.profile-text b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-text small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.topbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 56px; }
.topbar-spacer { flex: 1; }
.chat-title {
  display: flex; align-items: center; gap: 8px; max-width: 60%; background: none; border: 0;
  padding: 6px 10px; border-radius: 10px; cursor: pointer; font-weight: 500;
}
.chat-title span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-title:hover { background: var(--panel-2); }
.view { flex: 1; min-height: 0; overflow-y: auto; }

/* ================= Home ================= */
#view-home { display: flex; }
.home-inner { width: 100%; max-width: 720px; margin: auto; padding: 0 16px 10vh; text-align: center; }
.home-crest { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(201,167,103,.22), 0 12px 30px rgba(0,0,0,.4); }
.greeting { font: 500 40px/1.15 var(--serif); margin: 16px 0 26px; }
.greeting em { color: var(--brass-hi); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.chips button {
  background: transparent; border: 1px solid var(--line); border-radius: 999px; color: #cfc7b8;
  padding: 7px 14px; font-size: 13.5px; cursor: pointer; transition: border-color .2s, background .2s;
}
.chips button:hover { border-color: var(--line-strong); background: var(--panel); color: var(--text); }

/* ================= Composer ================= */
.composer {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 12px 12px 10px 16px; text-align: left; box-shadow: 0 10px 34px rgba(0,0,0,.35);
  transition: border-color .2s;
}
.composer:focus-within { border-color: var(--line-strong); }
.composer textarea {
  width: 100%; resize: none; border: 0; outline: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 15.5px; max-height: 240px; padding: 4px 0 8px; display: block;
}
.composer textarea::placeholder { color: #7d7466; }
.composer-bar { display: flex; align-items: center; gap: 8px; }
.bar-spacer { flex: 1; }
.model-btn {
  background: none; border: 0; border-radius: 10px; padding: 6px 10px; cursor: pointer;
  color: #cfc7b8; font-size: 13.5px; font-weight: 500;
}
.model-btn:hover { background: var(--panel-2); color: var(--text); }
.send {
  width: 36px; height: 36px; border-radius: 12px; border: 0; background: var(--brass-grad);
  color: #1b1712; font-size: 17px; font-weight: 700; cursor: pointer; display: grid; place-items: center;
}
.send:disabled { opacity: .35; cursor: default; }
.send.stop { background: var(--panel-3); color: var(--text); font-size: 12px; }
.attach-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip-file {
  position: relative; display: flex; align-items: center; gap: 8px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 6px 28px 6px 6px; max-width: 220px; font-size: 13px;
}
.chip-file img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.chip-file .pdf { width: 40px; height: 40px; border-radius: 8px; background: #6b2b22; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.chip-file span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-file button { position: absolute; top: 4px; right: 4px; background: var(--panel-3); border: 0; border-radius: 50%; width: 20px; height: 20px; font-size: 11px; cursor: pointer; color: var(--muted); }

/* ================= Chat thread ================= */
.view-chat { display: flex; flex-direction: column; overflow: hidden; }
.thread-scroll { flex: 1; overflow-y: auto; padding: 10px 16px 20px; }
.thread { max-width: 760px; margin: 0 auto; }
.composer-dock { padding: 0 16px calc(12px + env(safe-area-inset-bottom)); }
.composer-dock .composer-slot { max-width: 760px; margin: 0 auto; }
.disclaimer { text-align: center; color: var(--faint); font-size: 12px; margin-top: 8px; }
.msg { margin: 0 0 26px; }
.msg.user { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.msg.user .bubble {
  background: var(--panel-2); border: 1px solid var(--line); padding: 10px 16px;
  border-radius: 18px 18px 4px 18px; max-width: 85%; white-space: pre-wrap; word-wrap: break-word;
}
.msg-files { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.msg-files img { max-width: 220px; max-height: 180px; border-radius: 12px; border: 1px solid var(--line); display: block; }
.msg-files .chip-file { padding-right: 10px; }
.msg.assistant { display: flex; gap: 14px; }
.msg.assistant .crest { width: 28px; height: 28px; border-radius: 8px; margin-top: 2px; }
.msg.assistant .bubble { flex: 1; min-width: 0; word-wrap: break-word; }
.bubble p { margin: 0 0 12px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble h1, .bubble h2, .bubble h3 { font-family: var(--serif); font-weight: 600; color: var(--brass-hi); margin: 18px 0 6px; font-size: 1.45em; line-height: 1.2; }
.bubble h3 { font-size: 1.25em; }
.bubble ul, .bubble ol { padding-left: 22px; margin: 0 0 12px; }
.bubble li::marker { color: var(--brass); }
.bubble a { color: var(--brass-hi); text-decoration-color: var(--line-strong); }
.bubble strong { color: #fff6e6; }
.bubble code { font: 13px "JetBrains Mono", monospace; background: var(--panel-2); color: #f0dfb8; padding: 2px 6px; border-radius: 5px; }
.bubble pre { position: relative; background: #100e0c; border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px 14px; overflow-x: auto; margin: 0 0 12px; }
.bubble pre code { background: none; padding: 0; color: #e7dccb; }
.copy-btn { position: absolute; top: 7px; right: 7px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; padding: 3px 10px; cursor: pointer; }
.msg-actions { display: flex; gap: 2px; margin-top: 8px; }
.msg-actions button { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 12.5px; padding: 4px 8px; border-radius: 8px; }
.msg-actions button:hover { background: var(--panel-2); color: var(--text); }
.error { color: var(--danger); }
.cursor::after { content: "▍"; color: var(--brass); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.thinking { display: inline-flex; gap: 5px; padding-top: 8px; }
.thinking i { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); animation: pulse 1.2s infinite ease-in-out; }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

/* ================= Pages (chats, projects) ================= */
.page { max-width: 820px; margin: 0 auto; padding: 8px 20px 60px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page h2 { font: 500 34px/1.2 var(--serif); margin: 6px 0 10px; }
.page-sub { color: var(--muted); margin: 0 0 20px; }
.search-input { margin: 6px 0 16px; }
.list { display: grid; }
.list-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-bottom: 1px solid var(--line);
  cursor: pointer; border-radius: 10px;
}
.list-row:hover { background: var(--panel); }
.list-row .t { flex: 1; min-width: 0; }
.list-row b { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row small { color: var(--muted); }
.list-row .star { color: var(--brass); }
.list-empty { color: var(--muted); padding: 30px 0; text-align: center; }
.list-label { margin-top: 22px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.project-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; cursor: pointer;
  min-height: 130px; display: flex; flex-direction: column; transition: border-color .2s, transform .2s;
}
.project-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.project-card .folder { width: 34px; height: 34px; border-radius: 10px; background: var(--brass-soft); color: var(--brass); display: grid; place-items: center; margin-bottom: 12px; }
.project-card b { font: 600 20px var(--serif); color: var(--brass-hi); }
.project-card p { color: var(--muted); font-size: 13.5px; margin: 4px 0 0; flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.project-card small { color: var(--faint); margin-top: 10px; }
.project-instructions { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 4px 0 18px; }
.pi-head { display: flex; justify-content: space-between; align-items: center; }
.project-instructions p { color: var(--muted); margin: 6px 0 0; white-space: pre-wrap; font-size: 14px; }
.back { color: var(--muted); font-size: 13.5px; }
.back:hover { color: var(--text); }

/* ================= Menus & modals ================= */
.menu {
  position: fixed; z-index: 100; min-width: 220px; background: var(--panel-2); border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.55); animation: pop .12s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(.98); } }
.menu button {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: 0;
  padding: 9px 10px; border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--text);
}
.menu button:hover { background: var(--panel-3); }
.menu button.danger { color: var(--danger); }
.menu .sep { height: 1px; background: var(--line); margin: 5px 4px; }
.menu .head { padding: 8px 10px 6px; color: var(--muted); font-size: 12.5px; }
.menu .model-opt { align-items: flex-start; }
.menu .model-opt div { flex: 1; display: grid; }
.menu .model-opt small { color: var(--muted); font-size: 12.5px; }
.menu .check { color: var(--brass); width: 14px; }

.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 20px;
  padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6); max-height: 90vh; overflow-y: auto;
}
.modal h3 { font: 500 26px var(--serif); margin: 0 0 4px; }
.modal .sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--muted); font-weight: 500; }
.field textarea { min-height: 110px; resize: vertical; }
.field input[readonly] { color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.modal-actions .left { margin-right: auto; }
.search-modal { max-width: 560px; align-self: start; margin-top: 10vh; padding: 14px; }
.search-modal .search-input { margin: 0 0 8px; }
.search-results { max-height: 50vh; overflow-y: auto; }
.pick-list { display: grid; gap: 4px; margin-bottom: 14px; }
.pick-list button { text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.pick-list button:hover, .pick-list button.on { border-color: var(--brass); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120;
  background: var(--panel-3); border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 18px; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: pop .15s;
}

.scrim { display: none; }

/* ================= Mobile ================= */
@media (max-width: 800px) {
  .only-mobile { display: inline-grid; }
  aside#sidebar { position: fixed; inset: 0 auto 0 0; width: 86%; max-width: 320px; transform: translateX(-100%); }
  body.nav-open aside#sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 20; }
  .topbar { padding: 8px 8px; min-height: 52px; border-bottom: 1px solid var(--line); }
  .chat-title { max-width: 70%; }
  .greeting { font-size: 34px; }
  .home-inner { padding-bottom: 6vh; }
  .page h2 { font-size: 30px; }
}

/* ================= Plan & usage ================= */
.usage-box { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; }
.usage-line { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text); margin-bottom: 6px; }
.meter { height: 8px; background: var(--panel-3); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brass-grad); border-radius: 999px; transition: width .4s; }
.meter i.hot { background: linear-gradient(90deg, #d9a35a, #d5714f); }
.usage-box small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.upgrade-pill { align-self: center; margin-left: auto; font-size: 11px; font-weight: 600; color: var(--brass-hi); border: 1px solid rgba(201,167,103,.45); border-radius: 999px; padding: 2px 8px; }
.see-plans { color: var(--brass-hi); font-weight: 500; }
.plan.current .cta { opacity: .7; cursor: default; }

/* Form fields in modals and search */
.field input, .field textarea, .search-input {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 13px; color: var(--text); font: inherit; outline: none; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .search-input:focus { border-color: var(--brass); }
.field input::placeholder, .field textarea::placeholder, .search-input::placeholder { color: #7d7466; }

/* ================= Usage panel & limits (Claude-style) ================= */
.btn-light.sm, .btn-ghost.sm, .btn-primary.sm { width: auto; padding: 8px 14px; font-size: 13.5px; border-radius: 999px; display: inline-flex; align-items: center; }
.usage-plan { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.usage-plan b { display: block; font-size: 15px; }
.usage-plan small, .usage-line small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.usage-btns { display: flex; gap: 8px; }
.usage-row { margin-bottom: 14px; }
.usage-line { align-items: flex-end; }
.usage-line b { font-weight: 500; font-size: 14px; }
.usage-line > span:last-child { color: var(--muted); font-size: 13px; white-space: nowrap; }
.usage-note { color: var(--faint); font-size: 12.5px; margin: 4px 0 0; }
.limit-card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 16px; }
.limit-card b { font-weight: 600; color: var(--text); }
.limit-card > span { color: var(--muted); }
.limit-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.limit-notice { font-size: 13px; color: #e2c48a; background: rgba(201,167,103,.08); border: 1px solid rgba(201,167,103,.25); border-radius: 10px; padding: 7px 12px; margin-bottom: 10px; }
.limit-notice a { color: var(--brass-hi); text-decoration: underline; }

/* ================= Drawings (SVG shown as pictures) ================= */
.svg-preview { margin: 4px 0 12px; display: inline-block; max-width: 100%; }
.svg-frame { background: #fff; border-radius: 14px; padding: 18px; border: 1px solid var(--line); display: grid; place-items: center; }
.svg-frame img { display: block; width: 320px; max-width: 100%; height: auto; }
.svg-preview figcaption { display: flex; gap: 6px; margin-top: 8px; }
.svg-preview figcaption button { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; }
.svg-preview figcaption button:hover { border-color: var(--line-strong); }
.svg-drawing { color: var(--muted); font-style: italic; margin: 6px 0 12px; }

/* ================= Mini butler ================= */
.hero-butler { width: 120px; height: auto; display: block; margin: 0 auto 6px; filter: drop-shadow(0 14px 30px rgba(0,0,0,.45)); }
.home-butler { width: 132px; height: auto; display: block; margin: 0 auto -6px; filter: drop-shadow(0 14px 30px rgba(0,0,0,.45)); }
.crest.butler-av { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(201,167,103,.25); }
.crest.butler-av.is-thinking { animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px) rotate(-3deg); } }
.thinking span { color: var(--muted); font-size: 13.5px; margin-right: 6px; font-style: italic; }
.thinking { align-items: center; }

/* ================= Calculators page ================= */
.calc-page { max-width: 1040px; }
.calc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px; }
.calc-tabs button { background: transparent; border: 1px solid var(--line); color: #cfc7b8; border-radius: 999px; padding: 8px 16px; font-size: 14px; cursor: pointer; }
.calc-tabs button.on { background: var(--brass-soft); border-color: rgba(201,167,103,.5); color: var(--brass-hi); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.calc-form, .calc-result { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.calc-form h3 { font: 600 22px var(--serif); color: var(--brass-hi); margin: 0 0 14px; }
.calc-field { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; color: var(--muted); font-weight: 500; }
.calc-input { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; transition: border-color .2s; }
.calc-input:focus-within { border-color: var(--brass); }
.calc-input i { font-style: normal; color: var(--muted); font-size: 14px; }
.calc-input input, .calc-input select { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; padding: 11px 6px; }
.calc-input select { appearance: none; cursor: pointer; }
.calc-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); margin: 4px 0 6px; cursor: pointer; }
.calc-check input { width: 18px; height: 18px; accent-color: #c9a767; }
.calc-big { margin-bottom: 14px; }
.calc-big small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.calc-big b { font: 600 44px/1.05 var(--serif); color: #f6eedd; }
.calc-big b.pos { color: #b7d99a; } .calc-big b.neg { color: var(--danger); }
.calc-big span { color: var(--muted); margin-left: 4px; }
.calc-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--panel-3); margin: 6px 0 8px; }
.calc-bar i { display: block; height: 100%; }
.calc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.calc-legend b { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.calc-rows { margin: 0 0 12px; }
.calc-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.calc-rows dt { color: var(--muted); } .calc-rows dd { margin: 0; color: var(--text); text-align: right; }
.calc-rows .strong dt, .calc-rows .strong dd { color: var(--brass-hi); font-weight: 600; }
.calc-note { color: var(--muted); font-size: 12.5px; margin: 0 0 12px; }
.calc-error { color: var(--danger); font-size: 14px; }
.calc-table { margin-top: 10px; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.calc-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.calc-table th, .calc-table td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--line); }
.calc-table th:first-child, .calc-table td:first-child { text-align: left; }
.calc-table th { position: sticky; top: 0; background: var(--panel-2); color: var(--muted); font-weight: 500; }
.ask-btn { margin-top: 14px; }
.calc-disclaimer { color: var(--faint); font-size: 12.5px; margin-top: 16px; }
@media (max-width: 800px) { .calc-grid { grid-template-columns: 1fr; } .calc-big b { font-size: 38px; } }

/* ================= Calculator cards in chat ================= */
.calcs:empty { display: none; }
.calc-card { background: var(--panel); border: 1px solid rgba(201,167,103,.35); border-radius: 16px; padding: 14px 16px; margin: 0 0 12px; max-width: 520px; }
.calc-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.calc-card-head b { font-weight: 600; flex: 1; }
.calc-card-head .link { font-size: 12.5px; }
.calc-card .calc-big b { font-size: 32px; }
.calc-card .calc-rows div { padding: 6px 0; font-size: 13.5px; }
.calc-card-foot { color: var(--faint); font-size: 11.5px; }
.calc-card.pending { color: var(--muted); font-style: italic; display: flex; gap: 10px; align-items: center; }
.calc-card.pending .calc-ico { animation: bob 1s ease-in-out infinite; font-style: normal; }

/* underwriting checks */
.uw-checks { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; gap: 6px; }
.uw-checks li { display: grid; grid-template-columns: 22px 1fr auto; column-gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.uw-checks li i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--panel-3); color: var(--muted); }
.uw-checks li.ok i { background: rgba(120,170,110,.18); color: #9ccf8f; }
.uw-checks li.review i { background: rgba(201,167,103,.18); color: var(--brass-hi); }
.uw-checks li.over i { background: rgba(227,144,126,.18); color: var(--danger); }
.uw-checks li span { font-size: 13.5px; }
.uw-checks li b { font-variant-numeric: tabular-nums; font-size: 14px; }
.uw-checks li small { grid-column: 2 / 4; color: var(--faint); font-size: 12px; }
.calc-note.warn { color: #e6c98c; border-left: 2px solid var(--brass); padding-left: 8px; }

/* ---- broker pipeline */
.page.wide { max-width: 1040px; }
.pl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.pl-stat { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 12px 14px; }
.pl-stat small { display: block; color: var(--muted); font-size: 12.5px; }
.pl-stat b { font: 600 26px var(--serif); color: var(--brass-hi); font-variant-numeric: tabular-nums; }
.pl-filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: none; }
.pl-filters button { flex: none; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.pl-filters button span { color: var(--faint); margin-left: 2px; }
.pl-filters button.on { background: var(--brass-soft); border-color: var(--brass); color: var(--brass-hi); }
.pl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pl-card { display: block; border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 14px 16px; transition: border-color .15s, transform .15s; }
.pl-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.pl-card.late { border-color: rgba(227,144,126,.45); }
.pl-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pl-card-top b { font: 600 20px/1.2 var(--serif); color: var(--text); }
.pl-meta { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }
.pl-progress { height: 5px; border-radius: 9px; background: var(--panel-3); overflow: hidden; margin: 6px 0 10px; }
.pl-progress i { display: block; height: 100%; background: var(--brass-grad); border-radius: 9px; }
.pl-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--faint); font-size: 12.5px; }
.pl-card.late .pl-foot span:first-child, .cl-sub.late { color: var(--danger); }
.pl-foot em { color: #9ccf8f; font-style: normal; }
.stage-pill { flex: none; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--panel-3); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.stage-pill.s-underwriting, .stage-pill.s-conditional { color: var(--brass-hi); border-color: rgba(201,167,103,.4); }
.stage-pill.s-clear_to_close, .stage-pill.s-closed { color: #9ccf8f; border-color: rgba(120,170,110,.4); }
.stage-pill.s-lost { color: var(--faint); }
.pl-empty { grid-column: 1 / -1; text-align: center; border: 1px dashed var(--line-strong); border-radius: 18px; padding: 30px 20px; }
.pl-empty img { width: 110px; }
.pl-empty b { display: block; font: 600 24px var(--serif); margin: 6px 0; }
.pl-empty p { color: var(--muted); max-width: 440px; margin: 0 auto 14px; }
.cl-head h2 { margin: 6px 0 0; }
.cl-actions { display: flex; gap: 8px; align-items: center; }
.cl-sub { color: var(--muted); margin: 2px 0 16px; }
.stepper { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: none; }
.stepper button { flex: 1 0 auto; min-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: var(--faint); font-size: 12px; cursor: pointer; padding: 4px; position: relative; }
.stepper button i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--panel); font-weight: 600; position: relative; z-index: 1; }
.stepper button::before { content: ""; position: absolute; top: 18px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.stepper button:first-child::before { display: none; }
.stepper button.past, .stepper button.on { color: var(--text); }
.stepper button.past i { background: #2c2619; border-color: var(--brass); color: var(--brass-hi); }
.stepper button.past::before, .stepper button.on::before { background: var(--brass); }
.stepper button.on i { background: var(--brass-grad); color: #1b1916; border-color: transparent; box-shadow: 0 0 0 4px rgba(201,167,103,.15); }
.stepper button.on span { color: var(--brass-hi); font-weight: 600; }
.cl-lost { border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; color: var(--muted); }
.cl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.cl-box { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 16px; min-width: 0; }
.cl-box h3 { font: 600 21px var(--serif); color: var(--brass-hi); margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cl-box h3 small { font: 500 12.5px "Inter", sans-serif; color: var(--muted); }
.cl-box h3 small.ok { color: #9ccf8f; }
.grid2f { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.field select, .cl-form input[type="date"], .modal .field input[type="date"] { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--text); font: inherit; color-scheme: dark; }
.field select:focus { outline: none; border-color: var(--brass); }
.cl-form .field { margin-bottom: 10px; }
.cl-ltv { color: var(--muted); font-size: 13px; min-height: 18px; }
.checklist { list-style: none; margin: 4px 0 10px; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.checklist li label { flex: 1; display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 14px; }
.checklist li input { accent-color: #c9a767; width: 17px; height: 17px; flex: none; }
.checklist li.done span { color: var(--faint); text-decoration: line-through; }
.checklist li button { background: none; border: 0; color: var(--faint); cursor: pointer; opacity: 0; font-size: 12px; }
.checklist li:hover button { opacity: 1; }
@media (hover: none) { .checklist li button { opacity: .6; } }
.add-item { display: flex; gap: 8px; }
.add-item input, .intake-link input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--text); font: inherit; font-size: 13.5px; }
.add-item input:focus { outline: none; border-color: var(--brass); }
.intake-link { display: flex; gap: 8px; margin: 10px 0 8px; }
.intake-link input { color: var(--muted); }
.intake-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; margin-bottom: 6px; }
.intake-group { margin-top: 14px; }
.intake-group > b { display: block; color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.cl-notes { width: 100%; min-height: 170px; resize: vertical; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--text); font: inherit; }
.cl-notes:focus { outline: none; border-color: var(--brass); }
.cl-saved { color: var(--faint); font-size: 12px; }
.modal.wide-modal { max-width: 560px; }
@media (max-width: 820px) {
  .pl-stats { grid-template-columns: 1fr 1fr; }
  .cl-grid { grid-template-columns: 1fr; }
  .cl-head { flex-wrap: wrap; }
}
@media (max-width: 480px) { .grid2f { grid-template-columns: 1fr; } .pl-list { grid-template-columns: 1fr; } }

/* ---- grouped calculator tabs */
.calc-tabs { display: grid; gap: 10px; }
.calc-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.calc-group > span { width: 100%; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 2px 0 0 2px; }
.calc-group button { padding: 6px 13px; font-size: 13.5px; }
.calc-form.quad { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 0 10px; align-content: start; }
.calc-form.quad .calc-input, .calc-form.quad .calc-input input { min-width: 0; }
.calc-form.quad .calc-input input { width: 100%; }
.calc-form.quad > * { min-width: 0; }
.calc-form.quad h3 { grid-column: 1 / -1; }
.calc-form.quad .calc-field:last-child { grid-column: 1 / -1; }
.calc-table.wide { max-height: none; overflow-x: auto; }
.calc-table.wide th, .calc-table.wide td { padding: 7px 7px; font-size: 12.5px; }
.calc-table.wide td small { display: block; color: var(--faint); font-size: 11px; }
.calc-table td.l { color: var(--muted); }
.calc-table .pos { color: #b7d99a; } .calc-table .neg { color: var(--danger); }

/* ---- toolkit */
.tk-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-bottom: 16px; }
.tk-tabs button { text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 10px 14px; cursor: pointer; color: var(--text); }
.tk-tabs button b { display: block; font: 600 18px var(--serif); }
.tk-tabs button small { color: var(--faint); font-size: 12px; }
.tk-tabs button.on { border-color: var(--brass); background: var(--brass-soft); }
.tk-tabs button.on b { color: var(--brass-hi); }
.tk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tk-card { text-align: left; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 16px; cursor: pointer; color: var(--text); transition: border-color .15s, transform .15s; }
.tk-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.tk-ico { font-size: 22px; line-height: 1; margin-bottom: 6px; }
.tk-card b { font: 600 19px/1.2 var(--serif); color: var(--text); }
.tk-card p { color: var(--muted); font-size: 13.5px; margin: 0; flex: 1; }
.tk-tag { align-self: flex-start; margin-top: 10px; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tk-tag.t-upload { color: var(--brass-hi); border-color: rgba(201,167,103,.4); }
.tk-tag.t-calc { color: #9ccf8f; border-color: rgba(120,170,110,.35); }

/* ---- client files & reminders */
.cl-row-btns { margin-top: 10px; }
.cl-files { margin-top: 14px; }
.cl-files-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.cl-files-head b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.file-list label { display: flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; }
.file-list label input { accent-color: #c9a767; }
.file-list .pdf { flex: none; font-size: 10px; font-weight: 700; padding: 3px 5px; border-radius: 5px; background: #6b3a2c; color: #f6e8d5; }
.file-list .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.file-list small { grid-column: 1 / 2; color: var(--faint); font-size: 12px; padding-left: 26px; }
.file-list .link { font-size: 12.5px; }
.link.danger { color: var(--danger); }
.up-tag { font-style: normal; font-size: 11.5px; color: var(--brass-hi); border: 1px solid rgba(201,167,103,.4); border-radius: 999px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; }
.modal-actions .left:has(+ .left) { margin-right: 0; }
@media (max-width: 820px) { .tk-tabs { grid-template-columns: 1fr 1fr; } .calc-form.quad { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.calc-grid > * { min-width: 0; }
@media (max-width: 800px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }

/* tables, rules and quotes in Alfred's answers */
.md-table { overflow-x: auto; margin: 10px 0 14px; border: 1px solid var(--line); border-radius: 12px; }
.md-table table { border-collapse: collapse; width: 100%; font-size: 14px; }
.md-table th, .md-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.md-table th { background: var(--panel-2); color: var(--brass-hi); font-weight: 600; white-space: nowrap; }
.md-table tr:last-child td { border-bottom: 0; }
.md-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.msg hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.msg blockquote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid var(--brass); color: var(--muted); }

/* ---- sworn statements */
.sw-page, .sw-root { --cell: 12.5px; }
.sw-empty { color: var(--muted); padding: 40px 0; text-align: center; }
.sw-head { align-items: flex-start; flex-wrap: wrap; }
.sw-head h2 { margin: 6px 0 2px; }
.sw-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.sw-stats .pl-stat em { display: block; font-style: normal; color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.pl-stat.good { border-color: rgba(120,170,110,.45); } .pl-stat.good b { color: #b7d99a; }
.pl-stat.bad { border-color: rgba(227,144,126,.55); background: rgba(227,144,126,.06); } .pl-stat.bad b, .pl-stat.bad small { color: var(--danger); }
.sw-banner { border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.sw-banner.ok { border-color: rgba(120,170,110,.45); color: #b7d99a; }
.sw-draw { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.sw-draw-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.sw-draw-row > div:first-child { flex: 1; min-width: 240px; font-size: 14px; color: var(--muted); }
.sw-draw-row b { color: var(--text); }
.sw-draw-row.status-submitted { --c: var(--brass); } .sw-draw-row.status-returned b { color: var(--danger); }
.sw-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sw-notes { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.sw-notes li { padding: 6px 0; font-size: 13.5px; color: var(--muted); } .sw-notes b { color: var(--brass-hi); } .sw-notes small { color: var(--faint); margin-left: 6px; }
.sw-final { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.sw-final b { color: var(--text); } .sw-final .ok { color: #9ccf8f; }
.hl-tag, .hl-tag2 { padding: 1px 6px; border-radius: 6px; background: rgba(201,167,103,.16); color: var(--brass-hi); white-space: nowrap; }
.hl-tag2 { background: rgba(120,170,110,.16); color: #b7d99a; }
.sw-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.sw-table { border-collapse: collapse; width: 100%; min-width: 1080px; font-size: var(--cell); }
.sw-table th { position: sticky; top: 0; background: var(--panel-2); color: var(--muted); font-weight: 500; text-align: left; padding: 8px 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.sw-table td { padding: 4px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
.sw-table td.num, .sw-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sw-table input, .sw-table select { width: 100%; min-width: 0; background: var(--bg); border: 1px solid transparent; border-radius: 7px; color: var(--text); font: inherit; padding: 6px 7px; }
.sw-table input:hover, .sw-table select:hover { border-color: var(--line); }
.sw-table input:focus, .sw-table select:focus { outline: none; border-color: var(--brass); }
.sw-table td:nth-child(1) { min-width: 150px; } .sw-table td:nth-child(2) { min-width: 140px; } .sw-table input.num { min-width: 90px; }
.sw-table th.hl, .sw-table td.hl { background: rgba(201,167,103,.07); } .sw-table th.hl2, .sw-table td.hl2 { background: rgba(120,170,110,.08); }
.sw-table td.neg { color: var(--danger); }
.sw-table tr.has-flag td { border-bottom: 0; }
.sw-table tr.flag-row td { border-top: 0; color: #e6c98c; font-size: 12px; padding: 0 8px 6px; }
.sw-table tfoot td { border-top: 1px solid var(--line-strong); background: var(--panel-2); padding: 8px 6px; font-weight: 600; }
.wv { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.wv-final, .wv-unconditional { color: #9ccf8f; border-color: rgba(120,170,110,.4); } .wv-conditional { color: var(--brass-hi); border-color: rgba(201,167,103,.4); }
.sw-under { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 6px; }
.sw-under small { color: var(--faint); }
.sw-flags { margin: 6px 0 14px; }
.sw-details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 10px 16px; margin: 6px 0 14px; }
.sw-details summary { cursor: pointer; color: var(--brass-hi); font-weight: 600; }
.sw-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin-top: 12px; }
.sw-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 14px; }
.sw-up { display: flex; gap: 8px; margin: 8px 0; }
.sw-up select { flex: 1; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--text); font: inherit; font-size: 13.5px; }
.up-label { cursor: pointer; }
.fname-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.file-list li.muted { color: var(--faint); font-size: 13px; display: block; }
.sw-log { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow: auto; }
.sw-log li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text); }
.sw-log b.lender { color: var(--brass-hi); } .sw-log b.party { color: #9cc3cf; }
.sw-log small { display: block; color: var(--faint); font-size: 11.5px; }
.sw-hist { width: 100%; border-collapse: collapse; font-size: 13px; } .sw-hist th, .sw-hist td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sw-hist th { color: var(--muted); font-weight: 500; }
.stage-pill.s-funded { color: #9ccf8f; border-color: rgba(120,170,110,.4); } .stage-pill.s-submitted { color: var(--brass-hi); border-color: rgba(201,167,103,.4); } .stage-pill.s-returned { color: var(--danger); }
.sw-history { overflow-x: auto; }
.sw-consent { margin: 10px 0 14px; }
.neg-t { color: var(--danger); font-style: normal; }
@media (max-width: 820px) { .sw-cols, .sw-form { grid-template-columns: minmax(0, 1fr); } }
.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13.5px; }
.consent input { margin-top: 3px; accent-color: #c9a767; width: 16px; height: 16px; flex: none; }
.page.wide.sw-page { max-width: 1320px; }
.sw-root .sw-head h2 { font: 600 32px/1.1 var(--serif); color: var(--text); }
@media (max-width: 600px) { .sw-root .sw-head h2 { font-size: 26px; } }

/* ---- jobs */
.jb-status { padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--text); font: inherit; font-size: 13.5px; }
.jb-table { min-width: 1100px; }
.jb-table td:nth-child(1), .jb-co td:nth-child(1) { width: 56px; } .jb-item { text-align: center; }
.jb-table td:nth-child(2) { min-width: 200px; }
.jb-co { min-width: 640px; } .jb-days { max-width: 70px; }
.jb-date { background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); padding: 4px 8px; font: inherit; color-scheme: dark; }
.jb-g702 { margin-top: 12px; max-width: 520px; }
.jb-form { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.jb-form input[type="date"] { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--text); font: inherit; color-scheme: dark; }
.sw-table td.muted, .muted { color: var(--faint); font-size: 13px; }
.jb-table tr.has-flag td { background: rgba(227,144,126,.06); }

/* ================= Alfred Vault ================= */
.passkey-btn { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.passkey-btn:hover { border-color: var(--brass); background: var(--brass-soft); }
.passkey-btn svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.passkey-btn span { display: grid; font-weight: 500; }
.passkey-btn small { color: var(--muted); font-weight: 400; font-size: 12px; }
.mfa-head { display: flex; align-items: center; gap: 10px; }
.mfa-head svg { width: 30px; height: 30px; fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mfa-head h2 { margin: 0; }
.mfa-sub { color: var(--muted); font-size: 14px; margin: 6px 0 12px; }
.mfa-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mfa-tabs button { border: 1px solid var(--line-strong); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.mfa-tabs button.on { border-color: var(--brass); color: var(--brass-hi); background: var(--brass-soft); }
.mfa-panel { display: grid; gap: 10px; }
.mfa-panel p { margin: 0; font-size: 14px; color: var(--text); }
.mfa-panel code, .vt-manual code { background: var(--panel-3); padding: 1px 6px; border-radius: 6px; }
.mfa-code, .vt-code { width: 100%; font: 600 24px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 6px; text-align: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--text); }
#mfaCodeWrap { display: grid; gap: 10px; }
.mfa-remember { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }

.vault { max-width: 980px; }
.vt-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.vt-shield { width: 58px; height: 58px; border-radius: 16px; background: var(--brass-soft); border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; }
.vt-shield svg { width: 32px; height: 32px; fill: none; stroke: var(--brass-hi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vt-hero h2 { margin: 0; font: 500 32px var(--serif); }
.vt-hero .page-sub { margin: 2px 0 0; }
.vt-need { border: 1px solid var(--brass); background: var(--brass-soft); color: var(--brass-hi); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.vt-level { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 14px 16px; }
.vt-level b { font-size: 16px; } .vt-level p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.vt-meter { display: flex; gap: 4px; flex: none; }
.vt-meter span { width: 26px; height: 8px; border-radius: 4px; background: var(--panel-3); }
.vt-level.low .vt-meter .lit { background: var(--danger); } .vt-level.mid .vt-meter .lit { background: var(--brass); } .vt-level.high .vt-meter .lit { background: #7fc79a; }
.vt-h { font: 500 22px var(--serif); margin: 26px 0 2px; }
.vt-hsub { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.vt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.vt-card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.vt-card.on { border-color: rgba(127, 199, 154, .45); }
.vt-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; } .vt-card p b { color: var(--text); font-weight: 500; }
.vt-card .btn-primary, .vt-card .btn-ghost { align-self: flex-start; margin-top: auto; }
.vt-card-head { display: flex; gap: 10px; align-items: center; }
.vt-card-head h4 { margin: 0; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.vt-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--panel-3); display: grid; place-items: center; flex: none; }
.vt-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vt-badge { font-size: 11px; color: var(--brass); }
.vt-on { font-size: 11px; font-weight: 600; color: #7fc79a; border: 1px solid rgba(127, 199, 154, .5); border-radius: 999px; padding: 1px 7px; }
.vt-note { display: block; margin-top: 6px; color: var(--faint) !important; font-size: 12px !important; }
.vt-list { list-style: none; padding: 0; margin: 0 0 10px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vt-card .vt-list { margin: 0; border-radius: 10px; }
.vt-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.vt-list li:first-child { border-top: 0; }
.vt-list li > span:first-child { min-width: 0; }
.vt-list small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.vt-list small.inline { display: inline; margin-left: 6px; }
.vt-events li.warn b { color: var(--danger); }
.vt-actions { display: flex; gap: 12px; flex: none; }
.link.danger, .btn-ghost.danger { color: var(--danger); }
.vt-empty { color: var(--muted); font-size: 14px; }
.vt-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vt-toggle { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.vt-steps { padding-left: 20px; margin: 0 0 10px; font-size: 14px; color: var(--text); } .vt-steps li { margin-bottom: 6px; }
.vt-qr { display: grid; place-items: center; background: #fff; border-radius: 14px; padding: 8px; width: 216px; margin: 0 auto 10px; }
.vt-qr svg { display: block; width: 200px; height: 200px; }
.vt-manual { font-size: 13px; color: var(--muted); margin-bottom: 10px; } .vt-manual summary { cursor: pointer; color: var(--brass); }
.vt-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0 14px; }
.vt-codes code { font: 600 17px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px; text-align: center; letter-spacing: 1px; }
.vt-sent { font-size: 13px; color: var(--muted); }
.vt-or { text-align: center; color: var(--faint); font-size: 12px; margin: -6px 0 8px; }
@media (max-width: 560px) { .vt-hero h2 { font-size: 26px; } .vt-list li { flex-wrap: wrap; } .vt-level { flex-direction: column; align-items: flex-start; } }
.vt-qr svg path { fill: #000 !important; stroke: none !important; }
.vt-qr svg rect { fill: #fff !important; stroke: none !important; }
.login-card .mfa-remember { justify-content: center; width: 100%; }
.login-card .mfa-remember input { width: 18px !important; height: 18px; flex: none; margin: 0; padding: 0; accent-color: var(--brass); }
@media (max-width: 560px) { .vt-hero { align-items: flex-start; } .vt-shield { width: 46px; height: 46px; } .vt-shield svg { width: 26px; height: 26px; } }

/* ================= Sign-in page fits on one screen ================= */
#auth.landing { padding-bottom: 18px; }
#auth .login-card { padding: 28px 30px 22px; border-radius: 28px; }
#auth .step, #auth #emailForm { gap: 10px; }
#auth .social, #auth .btn-light { padding: 13px; font-size: 16px; }
#auth .login-card input { padding: 13px 16px; font-size: 16px; }
#auth .or { margin: 2px 0; font-size: 13px; }
#auth .passkey-btn { margin-top: 10px; padding: 10px 14px; }
#auth .fine { font-size: 12.5px; line-height: 1.45; margin: 14px 0 0; }
#auth .free { font-size: 14px; margin: 6px 0 0; }
#auth .auth-foot { margin: 16px 0 0; }

/* Laptops and desktops: welcome on the left, sign-in on the right */
@media (min-width: 900px) {
  #auth.landing {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 470px); grid-template-rows: auto 1fr auto;
    grid-template-areas: "head head" "hero card" "foot foot"; column-gap: clamp(40px, 6vw, 96px);
    align-items: center; justify-content: center; min-height: 100vh; max-width: 1180px; margin: 0 auto; padding: 0 32px 16px;
  }
  #auth .land-head { grid-area: head; padding: 18px 0; max-width: none; }
  #auth .hero { grid-area: hero; margin: 0; text-align: left; }
  #auth .hero-butler { margin: 0 0 10px; width: clamp(84px, 11vh, 120px); }
  #auth .hero h1 { font-size: clamp(56px, 6.4vw, 92px); }
  #auth .hero-sub { font-size: clamp(19px, 1.8vw, 25px); max-width: 30ch; margin-top: 16px; }
  #auth .login-card { grid-area: card; max-width: 470px; justify-self: end; }
  #auth .auth-foot { grid-area: foot; margin: 8px 0 0; }
}
/* Short laptop screens */
@media (min-width: 900px) and (max-height: 760px) {
  #auth .hero-butler { width: 76px; }
  #auth .login-card { padding: 22px 26px 18px; }
  #auth .social, #auth .btn-light, #auth .login-card input { padding-top: 11px; padding-bottom: 11px; }
  #auth .land-head { padding: 12px 0; }
}

/* Phones and small tablets: compact, sign-in box visible right away */
@media (max-width: 899px) {
  #auth .land-head { padding: 14px 4px; }
  #auth .hero { margin: 1.5vh 0 2.2vh; }
  #auth .hero-butler { width: clamp(58px, 9vh, 96px); margin-bottom: 2px; }
  #auth .hero h1 { font-size: clamp(38px, 10.5vw, 72px); }
  #auth .hero-sub { font-size: clamp(16px, 4.2vw, 22px); margin-top: 8px; }
  #auth .login-card { padding: 20px 18px 16px; border-radius: 24px; max-width: 520px; }
  #auth .social, #auth .btn-light { padding: 11px; font-size: 15.5px; }
  #auth .login-card input { padding: 11px 14px; font-size: 16px; }
  #auth .passkey-btn { padding: 8px 12px; }
  #auth .passkey-btn svg { width: 22px; height: 22px; }
}
/* Very short phones (iPhone SE and similar) */
@media (max-width: 899px) and (max-height: 700px) {
  #auth .hero-butler { display: none; }
  #auth .hero h1 { font-size: clamp(34px, 9.5vw, 56px); }
  #auth .hero-sub { display: none; }
  #auth .hero { margin: 0.5vh 0 1.5vh; }
  #auth .fine { margin-top: 10px; }
  #auth .auth-foot { display: none; }
}
@media (max-width: 899px) { #auth.mfa-mode .hero { display: none; } #auth.mfa-mode .login-card { margin-top: 2vh; } }

/* ================= Fill from a document ================= */
.af-btn { display: inline-flex; align-items: center; gap: 7px; border: 1px dashed var(--brass); background: var(--brass-soft); color: var(--brass-hi); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; margin: 0 0 12px; transition: background .2s; }
.af-btn:hover { background: rgba(201, 167, 103, .2); }
.af-btn span { font-size: 15px; }
.modal-actions .af-btn { margin: 0 auto 0 0; }
.calc-form .af-btn { grid-column: 1 / -1; justify-self: start; }
[data-details] .af-btn { grid-column: 1 / -1; justify-self: start; }
.af-note { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border: 1px solid rgba(127, 199, 154, .45); background: rgba(127, 199, 154, .08); color: var(--text); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin: 0 0 12px; grid-column: 1 / -1; }
.af-note.none { border-color: var(--line-strong); background: var(--panel-2); }
.af-note-actions { display: flex; gap: 12px; flex: none; }
.af-filled input, .af-filled select, .af-filled textarea, input.af-filled, select.af-filled { border-color: #7fc79a !important; box-shadow: 0 0 0 3px rgba(127, 199, 154, .18); transition: box-shadow .3s; }
.af-filled .calc-input { border-color: #7fc79a !important; box-shadow: 0 0 0 3px rgba(127, 199, 154, .18); }
.af-busy { position: fixed; inset: 0; z-index: 9998; background: rgba(10, 9, 7, .72); display: grid; place-items: center; padding: 16px; }
.af-busy > div { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 18px; padding: 22px 24px; display: grid; gap: 6px; justify-items: center; text-align: center; max-width: 380px; }
.af-busy small { color: var(--muted); }
.af-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--brass); animation: afspin 0.9s linear infinite; margin-bottom: 6px; }
@keyframes afspin { to { transform: rotate(360deg); } }
@media (max-width: 560px) { .modal-actions { flex-wrap: wrap; } .modal-actions .af-btn { width: 100%; justify-content: center; margin-bottom: 4px; } }
.af-bar { padding-bottom: 0 !important; margin-bottom: -8px; } .af-bar .af-btn { margin: 0; }
.calc-field.af-filled .calc-input input { box-shadow: none !important; border-color: transparent !important; }
.forgot-link { justify-self: center; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.forgot-link:hover { color: var(--brass-hi); }
#auth .fine a { color: var(--brass-hi); text-decoration: underline; text-underline-offset: 2px; }
.pricing-note a { color: var(--brass-hi); }
