/* Sully: Quin-style layout in Coast brand colors (ocean blue #1E71C0, orange #EB602A, navy #1A2E44). */
:root {
  --bg: #f4f5f7;
  --bg-glow: #e6f0fa;
  --panel: #ffffff;
  --panel-2: #f8f9fb;
  --text: #1a2e44;
  --muted: #6b7a8c;
  --faint: #9aa6b4;
  --border: #e3e7ec;
  --accent: #1e71c0;
  --accent-soft: #e3effa;
  --orange: #eb602a;
  --ink: #1a2e44;          /* primary pill buttons */
  --ink-text: #ffffff;
  --ok: #18865a;
  --ok-soft: #e2f5ec;
  --warn: #a86a00;
  --warn-soft: #fdf1d8;
  --danger: #c0392b;
  --shadow: 0 1px 2px rgba(26, 46, 68, .04), 0 6px 24px rgba(26, 46, 68, .06);
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f151c; --bg-glow: #12243a; --panel: #18212b; --panel-2: #1d2733; --text: #e6ecf2;
    --muted: #93a1b1; --faint: #6c7a8a; --border: #2a3542; --accent: #5ea6e6; --accent-soft: #1c3550;
    --ink: #e6ecf2; --ink-text: #0f151c; --ok: #4cc38a; --ok-soft: #173a2b; --warn: #e0a83a;
    --warn-soft: #3a2e14; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --bg: #0f151c; --bg-glow: #12243a; --panel: #18212b; --panel-2: #1d2733; --text: #e6ecf2;
  --muted: #93a1b1; --faint: #6c7a8a; --border: #2a3542; --accent: #5ea6e6; --accent-soft: #1c3550;
  --ink: #e6ecf2; --ink-text: #0f151c; --ok: #4cc38a; --ok-soft: #173a2b; --warn: #e0a83a;
  --warn-soft: #3a2e14; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 15px/1.55 "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}
body.assistant-mode {
  background: radial-gradient(1200px 500px at 50% -10%, var(--bg-glow), transparent 70%), var(--bg);
}
a { color: var(--accent); text-decoration: none; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 6px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 28px 0 10px; font-weight: 650; }
.sub { color: var(--muted); margin: 0; max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8;
        stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---- top bar ---- */
.topbar { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr;
          align-items: start; padding: 0 20px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.mode-switch { display: flex; gap: 4px; padding: 6px 10px 8px; background: var(--panel);
               border-radius: 0 0 22px 22px; box-shadow: var(--shadow); }
.mode-switch a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.mode-switch a.on { background: var(--ink); color: var(--ink-text); }
.mode-switch a svg.i { width: 20px; height: 20px; }
.top-right { justify-self: end; display: flex; align-items: center; gap: 12px; padding-top: 12px; }
.brand { font-weight: 800; letter-spacing: .08em; color: var(--accent); font-size: 13px; }
.brand em { font-style: normal; font-weight: 600; letter-spacing: 0; color: var(--orange); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
          display: grid; place-items: center; font-weight: 700; font-size: 13px; }

/* ---- layout ---- */
.layout { display: flex; gap: 32px; max-width: 1240px; margin: 0 auto; padding: 24px 24px 60px; }
#nav { width: 240px; flex: none; }
#view { flex: 1; min-width: 0; }
body.assistant-mode #nav { width: 56px; }

.side-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; padding-top: 20px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 12px; color: var(--muted); font-weight: 500; }
.side-nav a:hover { background: var(--panel-2); color: var(--text); }
.side-nav a.on { background: var(--border); color: var(--text); }
.side-nav .label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 18px 14px 6px; }

.rail { position: sticky; top: 200px; display: flex; flex-direction: column; gap: 6px; padding: 8px;
        background: var(--panel); border-radius: 28px; box-shadow: var(--shadow); width: 56px; }
.rail a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.rail a:hover { background: var(--panel-2); }
.rail a.on { background: var(--accent-soft); color: var(--accent); }

/* ---- page header ---- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
             padding-bottom: 22px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin-bottom: 14px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--panel);
       color: var(--text); padding: 9px 16px; border-radius: 999px; font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--panel-2); }
.btn.primary { background: var(--ink); color: var(--ink-text); border-color: var(--ink); padding: 11px 22px; }
.btn.primary:hover { opacity: .9; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.small { padding: 5px 12px; font-size: 13px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--border);
            background: var(--panel); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); background: var(--panel-2); }
.plus { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--ink-text); display: grid; place-items: center; border: 0; cursor: pointer; }

.tabs { display: flex; gap: 10px; margin-bottom: 26px; }
.tabs .btn.on { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }

/* ---- list rows & cards ---- */
.rows { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--border);
       border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; }
.row:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 620; }
.row .desc { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
        background: var(--accent-soft); color: var(--accent); font-weight: 750; }
.tile.orange { background: color-mix(in srgb, var(--orange) 14%, var(--panel)); color: var(--orange); }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 600;
        background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.pill.on { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.draft { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.blue { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 24px; padding: 22px; box-shadow: var(--shadow);
        display: flex; flex-direction: column; gap: 8px; min-height: 190px; }
.card .bolt { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #3d8fd8, var(--accent));
              color: #fff; display: grid; place-items: center; margin-bottom: 8px; }
.card h3 { margin: 0; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.card .foot { display: flex; justify-content: flex-end; }

.empty { background: var(--panel-2); border: 1px solid var(--border); border-radius: 28px; padding: 60px 24px; text-align: center; }
.empty .tile { margin: 0 auto 18px; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #3aa6b9, var(--accent)); color: #fff; }
.empty h3 { margin: 0 0 6px; font-size: 20px; }
.empty p { color: var(--muted); margin: 0 auto 20px; max-width: 420px; }

/* ---- forms ---- */
label.field { display: block; margin-bottom: 22px; }
label.field > span { display: block; font-weight: 620; margin-bottom: 8px; }
label.field > small { display: block; color: var(--muted); margin-top: 6px; font-size: 13px; }
input[type=text], input[type=email], input[type=tel], input[type=datetime-local], input[type=time], textarea, select {
  width: 100%; font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 14px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice label { display: flex; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px;
                background: var(--panel); cursor: pointer; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: .15s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { left: 21px; }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.days { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.days label { border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 13px; background: var(--panel); }
.days input { display: none; }
.days label:has(input:checked) { background: var(--accent); color: #fff; border-color: var(--accent); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--border); }

/* ---- home + chat ---- */
.home { text-align: center; padding-top: 30px; }
.logo-mark { width: 74px; height: 74px; margin: 0 auto 14px; color: var(--accent); }
.home h1 { font-size: 42px; font-weight: 600; color: var(--text); }
.composer { max-width: 760px; margin: 28px auto 0; background: var(--panel); border-radius: 28px; box-shadow: 0 10px 40px rgba(30, 113, 192, .12);
            border: 1px solid var(--border); padding: 18px 18px 12px; text-align: left; }
.composer textarea { border: 0; background: transparent; min-height: 60px; padding: 4px 6px; resize: none; }
.composer textarea:focus { outline: none; }
.composer .bar { display: flex; justify-content: space-between; align-items: center; }
.send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.send:disabled { background: var(--border); color: var(--faint); cursor: default; }
.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px auto 0; max-width: 820px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; background: var(--panel);
        border: 1px solid var(--border); color: var(--accent); font: inherit; font-weight: 550; cursor: pointer; }
.chip:hover { background: var(--accent-soft); }
.home h2 { font-size: 26px; font-weight: 550; margin: 70px 0 26px; }
.home .grid { text-align: left; grid-template-columns: repeat(3, 1fr); max-width: 1000px; margin: 0 auto; }
@media (max-width: 1000px) { .home .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }

.thread { max-width: 820px; margin: 0 auto; padding-bottom: 170px; }
.thread-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.thread-head h1 { font-size: 22px; }
.msg { margin: 0 0 16px; }
.msg.user { display: flex; justify-content: flex-end; }
.msg.user .bubble { background: var(--accent); color: #fff; border-radius: 20px 20px 6px 20px; padding: 10px 16px; max-width: 80%; white-space: pre-wrap; }
.msg.assistant .bubble { background: var(--panel); border: 1px solid var(--border); border-radius: 20px 20px 20px 6px; padding: 14px 18px; box-shadow: var(--shadow); overflow-x: auto; }
.msg.assistant .bubble.err { color: var(--danger); }
.msg .meta { font-size: 12px; color: var(--faint); margin: 4px 6px 0; }
.tools { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tools span { font-size: 12px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; padding: 1px 9px; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 24px 22px; background: linear-gradient(transparent, var(--bg) 35%); }
.dock .composer { margin-top: 0; }
.bubble p { margin: 0 0 10px; } .bubble p:last-child { margin-bottom: 0; }
.bubble h1, .bubble h2, .bubble h3 { font-size: 16px; margin: 14px 0 6px; }
.bubble ul, .bubble ol { margin: 0 0 10px; padding-left: 22px; }
.bubble pre { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; overflow-x: auto; }
.bubble code { font: 13px Consolas, ui-monospace, monospace; }
.bubble table { border-collapse: collapse; margin: 6px 0 12px; font-size: 14px; }
.bubble th, .bubble td { border: 1px solid var(--border); padding: 5px 10px; text-align: left; }
.bubble blockquote { margin: 8px 0 12px; padding: 4px 0 4px 14px; border-left: 3px solid var(--border); color: var(--text); }

/* Draft preview: an open email, in Sully's own colors (light and dark). */
.drafts:empty { display: none; }
.email-card { margin-top: 12px; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-left: 4px solid var(--accent);
              border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; font-family: Aptos, Calibri, "Segoe UI", Arial, sans-serif; }
.email-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; background: var(--panel-2); border-bottom: 1px solid var(--border); }
.email-subject { font-size: 17px; font-weight: 650; padding: 14px 18px 4px; }
.email-row { padding: 2px 18px; font-size: 14px; color: var(--muted); }
.email-row span { display: inline-block; width: 34px; color: var(--faint); }
.email-body { padding: 14px 18px 18px; font-size: 15px; line-height: 1.55; border-top: 1px solid var(--border); margin-top: 10px; }
.email-body p { margin: 0 0 12px; }
.email-sig { margin-top: 6px; color: var(--muted); font-size: 14px; border-top: 1px dashed var(--border); padding-top: 10px; }
/* Proposed change to Wealthbox etc.: Approve / Reject */
.action-card { margin-top: 12px; background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--orange);
               border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); }
.action-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.action-sys { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent);
              background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }
.action-target { color: var(--muted); margin-top: 6px; font-size: 14px; }
.action-fields { margin-top: 10px; border-collapse: collapse; font-size: 14px; }
.action-fields th { text-align: left; color: var(--muted); font-weight: 500; padding: 3px 16px 3px 0; vertical-align: top; white-space: nowrap; }
.action-fields td { padding: 3px 0; }
.action-body { margin-top: 10px; padding: 10px 12px; background: var(--panel-2); border-radius: 10px; font-size: 14px; white-space: normal; }
.action-msg { margin-top: 10px; font-size: 14px; color: var(--muted); }
.action-msg.err { color: var(--danger); }
.action-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.action-foot:empty { display: none; }
.spinner { width: 40px; height: 40px; margin: 6px auto 0; border-radius: 50%; border: 4px solid var(--accent-soft);
           border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.typing::after { content: "●●●"; letter-spacing: 3px; color: var(--faint); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ---- tables (team, usage) ---- */
.table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--panel-2); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: 0; }
.bar-track { height: 6px; background: var(--panel-2); border-radius: 99px; min-width: 120px; }
.bar-fill { height: 6px; background: var(--accent); border-radius: 99px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 28px; font-weight: 650; }
.stat span { color: var(--muted); font-size: 13px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }

/* ---- modal + menu + toast ---- */
.overlay { position: fixed; inset: 0; background: rgba(15, 25, 38, .35); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 20; padding: 20px; }
.modal { background: var(--panel); border-radius: 28px; padding: 28px; width: min(720px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal.wide { width: min(1100px, 100%); }
.modal h2 { margin: 0 0 4px; font-size: 22px; }
.modal .sub { margin-bottom: 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.menu { position: absolute; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; z-index: 30; min-width: 160px; }
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; color: var(--text); padding: 8px 12px; border-radius: 9px; cursor: pointer; }
.menu button:hover { background: var(--panel-2); }
.menu button.danger { color: var(--danger); }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--ink-text);
         padding: 10px 18px; border-radius: 999px; opacity: 0; transition: .2s; pointer-events: none; z-index: 40; }
#toast.show { opacity: 1; transform: translateX(-50%); }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.int { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--panel); }
.int .grow { flex: 1; }
.int .name { font-weight: 620; }
.notice { background: var(--accent-soft); color: var(--text); border-radius: 16px; padding: 14px 18px; margin-bottom: 22px; font-size: 14px; }

@media (max-width: 820px) {
  .layout { flex-direction: column; gap: 10px; padding: 12px 16px 60px; }
  #nav, body.assistant-mode #nav { width: auto; }
  .side-nav { position: static; flex-direction: row; overflow-x: auto; padding-top: 0; }
  .side-nav .label { display: none; }
  .rail { position: static; flex-direction: row; width: auto; display: inline-flex; }
  .brand { display: none; }
  .home h1 { font-size: 30px; }
  .page-head { flex-direction: column; }
  .choice { grid-template-columns: 1fr; }
}
ol.steps { margin: 0 0 20px; padding-left: 22px; line-height: 1.8; }
.auto-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 26px 22px;
             border-radius: 24px; background: linear-gradient(120deg, var(--accent-soft), var(--panel) 70%); border: 1px solid var(--border); }
.choice-col { display: flex; flex-direction: column; gap: 10px; }
.choice-col label { display: flex; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px;
                    background: var(--panel); cursor: pointer; }
.choice-col label:has(input:checked) { border-color: var(--accent); }
/* My profile: the photo you click to change */
.profile-photo { position: relative; width: 84px; height: 84px; border-radius: 50%; cursor: pointer; flex: none; background: var(--accent-soft);
                 color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 26px; overflow: hidden; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo em { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 25, 38, .45); color: #fff; opacity: 0; transition: .15s; }
.profile-photo:hover em { opacity: 1; }
.avatar img { display: block; }
/* "Look in" picker in the message box */
.composer .bar { gap: 12px; }
.composer .bar .hint { margin-right: auto; }
.look { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border: 1px solid var(--border); border-radius: 999px;
        background: var(--panel-2); color: var(--muted); font-size: 13px; cursor: pointer; }
.look svg.i { width: 15px; height: 15px; }
.look select { border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 600; padding: 2px 4px; width: auto; cursor: pointer; }
.look select:focus { outline: none; }
@media (max-width: 820px) { .composer .bar .hint { display: none; } }

/* ---------- Home: today at a glance ---------- */
.home2 { max-width: 1080px; margin: 0 auto; }
.hero { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 26px 0 6px; text-align: left; }
.hero-mark { width: 68px; height: 68px; border-radius: 20px; box-shadow: 0 10px 30px rgba(30, 113, 192, .28); }
.hero h1 { font-size: 38px; font-weight: 650; margin: 0; letter-spacing: -.02em; }
.hero .sub { margin-top: 4px; font-size: 16px; }
.home2 .composer { max-width: 820px; }
.home2 .chips { margin-bottom: 34px; }
.dash { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
.dash-side { display: grid; gap: 18px; }
.dash-card { padding: 18px 20px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dash-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.dash-head h2 svg.i { color: var(--accent); }
.big-num { font-size: 22px; font-weight: 700; }
.dash-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.meets { display: flex; flex-direction: column; gap: 6px; }
.meet { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px;
        border: 1px solid transparent; background: none; color: var(--text); font: inherit; cursor: pointer; }
.meet:hover { background: var(--panel-2); border-color: var(--border); }
.meet.next { background: var(--accent-soft); }
.meet.done .meet-time { color: var(--faint); }
.meet-time { width: 74px; flex: none; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--accent); }
.meet-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.meet-main b { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meet-prep { display: none; align-items: center; gap: 4px; font-size: 13px; color: var(--accent); font-weight: 600; }
.meet-prep svg.i { width: 14px; height: 14px; }
.meet:hover .meet-prep { display: inline-flex; }
.act { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 14px; }
.act:first-of-type { border-top: 0; }
.act-ic { width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.act-ic svg.i { width: 15px; height: 15px; }
.act-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auto-dots { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.auto-dots .dot { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); color: var(--faint); border: 1px solid var(--border); }
.auto-dots .dot.on { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.recent { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.recent-chat { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.recent-chat b { font-weight: 600; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-chat:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.home2 h2.auto-title { text-align: center; font-size: 22px; font-weight: 600; margin: 50px 0 20px; }
.home2 .grid { grid-template-columns: repeat(3, 1fr); }
.logo-mark { width: 74px; height: 74px; border-radius: 22px; display: block; margin: 0 auto 14px; }
/* Header: Sully mark + name */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { width: 26px; height: 26px; border-radius: 8px; }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; } .recent { grid-template-columns: 1fr 1fr; } .home2 .grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column; text-align: center; } .hero h1 { font-size: 28px; }
}

/* ---------- sign-in page ---------- */
body.signin-mode .topbar { display: none; }
body.signin-mode .layout { max-width: none; padding: 0; margin: 0; }
body.signin-mode .layout > aside { display: none; }
body.signin-mode main, body.signin-mode #view { padding: 0; max-width: none; flex: 1; }
.signin { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.signin-story { position: relative; overflow: hidden; color: #fff; padding: 56px 56px 140px;
  background: radial-gradient(700px 400px at 10% 0%, #2a6fb5 0%, transparent 60%), linear-gradient(160deg, #1a2e44 0%, #12233a 100%);
  display: flex; flex-direction: column; justify-content: center; }
.signin-waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 200px; }
.signin-mark { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 800; letter-spacing: .01em; margin-bottom: 34px; }
.signin-mark img { width: 48px; height: 48px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.signin-story h1 { max-width: 560px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; margin: 0 0 16px; font-weight: 750; }
.signin-story > p { color: #c4d3e3; font-size: 16px; line-height: 1.55; max-width: 520px; margin: 0 0 30px; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; max-width: 520px; position: relative; }
.perks li { display: flex; gap: 14px; align-items: flex-start; }
.perk-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 17px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); }
.perks b { display: block; font-size: 15px; margin-bottom: 2px; }
.perks span { color: #a9bdd2; font-size: 14px; line-height: 1.45; }
.signin-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.signin-card { width: min(420px, 100%); background: #fff; color: #1a2e44; border-radius: 22px; padding: 38px 34px 30px; text-align: center;
  box-shadow: 0 24px 60px rgba(16, 34, 56, .18); border-top: 4px solid #eb602a; }
.signin-logo { height: 62px; display: block; margin: 0 auto 26px; }
.signin-card h2 { margin: 0 0 6px; font-size: 24px; color: #1a2e44; }
.signin-card .sub { color: #5b6b7c; margin: 0 0 24px; }
.signin-btn { width: 100%; justify-content: center; font-size: 16px; padding: 14px 20px; }
.signin-note { font-size: 12.5px; color: #6b7a8a; line-height: 1.5; margin: 20px 0 0; }
.signin-foot { color: var(--faint); font-size: 12.5px; margin-top: 22px; }
@media (max-width: 860px) {
  .signin { grid-template-columns: minmax(0, 1fr); }
  .signin-panel { order: -1; }
  .signin-story { padding-top: 28px; }
  .signin-story { padding: 36px 20px 120px; }
  .signin-panel { padding: 28px 16px 40px; }
}
