/* Atlas — Guide School CRM · full semantic token system + app shell
   Dark-native ink, sky accent, Source Serif 4 display + Albert Sans UI. */

.atl {
  font-family: 'Albert Sans', sans-serif;
  width: 100%; height: 100%;
  display: flex; box-sizing: border-box;
  /* knobs (tweaks) */
  --acc: #2e90fa; --acc2: #53b1fd;
  --radius: 18px;
  --pad: 24px; --gap: 14px; --cardpad: 18px; --rowpad: 11px;

  /* ── surfaces ── */
  --bg: #0b1322;
  --side: #101b31; /* a step lighter than the canvas in dark */
  --side-edge: rgba(148, 163, 189, 0.12);
  --card: #101a2e;
  --card2: #15213a;
  --raised: #1b2a47;
  --scrim: rgba(3, 8, 18, 0.62);
  /* ── text ── */
  --text: #eef3fa;
  --muted: #a9b7ce;
  --faint: #7c8ca8;
  --disabled: #3c4a63;
  --on-accent: #ffffff;
  --inverse: #0b1322;
  /* ── borders ── */
  --line: rgba(148, 163, 189, 0.14);
  --line2: rgba(148, 163, 189, 0.09);
  --line3: rgba(148, 163, 189, 0.28);
  --focus: rgba(46, 144, 250, 0.55);
  --chip: rgba(148, 163, 189, 0.1);
  /* ── accent derivatives ── */
  --acc-ink: #6db9ff;
  --acc-soft: rgba(46, 144, 250, 0.16);
  /* ── status ── */
  --ok: #4ade97;       --ok-ink: #4ade97;       --ok-soft: rgba(74, 222, 151, 0.14);
  --warn: #f0b35c;     --warn-ink: #f0b35c;     --warn-soft: rgba(240, 179, 92, 0.14);
  --bad: #f25f5c;      --bad-ink: #f25f5c;      --bad-soft: rgba(242, 95, 92, 0.14);
  --info: #53b1fd;     --info-ink: #53b1fd;     --info-soft: rgba(83, 177, 253, 0.14);
  /* sidebar locals (ink in both modes) */
  --side-text: #dde6f3;
  --side-muted: #8fa0bb;
  --side-faint: #51617e;
  --side-line: rgba(255, 255, 255, 0.08);

  background: var(--bg); color: var(--text);
}
.atl *, .atl *::before, .atl *::after { box-sizing: border-box; }
.atl.density-compact { --pad: 16px; --gap: 9px; --cardpad: 12px; --rowpad: 7px; }

.atl.mode-light {
  --bg: #eef2f8;
  --side: #0a1120;
  --side-edge: transparent;
  --card: #ffffff;
  --card2: #f4f7fc;
  --raised: #e9eef6;
  --scrim: rgba(16, 25, 42, 0.38);
  --text: #131c2e;
  --muted: #475a78;
  --faint: #71829d;
  --disabled: #c0cad9;
  --inverse: #f7fafc;
  --line: #e3e9f2;
  --line2: #edf1f7;
  --line3: #cdd8e6;
  --focus: rgba(46, 144, 250, 0.45);
  --chip: #eef2f8;
  --acc-ink: #1570d6;
  --acc-soft: rgba(46, 144, 250, 0.10);
  --ok-ink: #119a68;   --ok-soft: rgba(17, 154, 104, 0.10);
  --warn-ink: #b97a1e; --warn-soft: rgba(185, 122, 30, 0.10);
  --bad-ink: #cc3340;  --bad-soft: rgba(204, 51, 64, 0.09);
  --info-ink: #1d7fe0; --info-soft: rgba(29, 127, 224, 0.09);
}
.atl .serif { font-family: 'Source Serif 4', serif; }

/* ── stage / segment tones: --tc = dot/meter color, --tc-ink = text-safe ── */
.atl .tone-rose   { --tc: #f4729a; --tc-ink: #f4729a; --tc-soft: rgba(244, 114, 154, 0.13); }
.atl .tone-amber  { --tc: #f0b35c; --tc-ink: #f0b35c; --tc-soft: rgba(240, 179, 92, 0.13); }
.atl .tone-violet { --tc: #a78bfa; --tc-ink: #a78bfa; --tc-soft: rgba(167, 139, 250, 0.13); }
.atl .tone-blue   { --tc: #53b1fd; --tc-ink: #53b1fd; --tc-soft: rgba(83, 177, 253, 0.13); }
.atl .tone-green  { --tc: #4ade97; --tc-ink: #4ade97; --tc-soft: rgba(74, 222, 151, 0.13); }
.atl.mode-light .tone-rose   { --tc-ink: #d23f73; --tc-soft: rgba(210, 63, 115, 0.09); }
.atl.mode-light .tone-amber  { --tc-ink: #b97a1e; --tc-soft: rgba(185, 122, 30, 0.10); }
.atl.mode-light .tone-violet { --tc-ink: #7857e8; --tc-soft: rgba(120, 87, 232, 0.09); }
.atl.mode-light .tone-blue   { --tc-ink: #1d7fe0; --tc-soft: rgba(29, 127, 224, 0.09); }
.atl.mode-light .tone-green  { --tc-ink: #15966b; --tc-soft: rgba(21, 150, 107, 0.10); }

/* ════════ sidebar (always ink) ════════ */
.atl-side { width: 232px; flex: none; background: var(--side); color: var(--side-text); position: relative; transition: width 0.34s cubic-bezier(0.4, 0, 0.2, 1); z-index: 30; border-right: 1px solid var(--side-edge); }
.atl-side.clp { width: 72px; }
.atl-side-inner { height: 100%; display: flex; flex-direction: column; padding: 20px 14px; }
.atl-side.clp .atl-side-inner { padding: 20px 13px; }

.atl-side-toggle { position: absolute; right: -13px; top: 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--side); border: 1px solid rgba(148, 163, 189, 0.3); color: #aebcd4; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 40; padding: 0; transition: background 0.18s, color 0.18s, border-color 0.18s; }
.atl-side-toggle:hover { background: linear-gradient(120deg, var(--acc), var(--acc2)); border-color: transparent; color: #fff; }
.atl-side-toggle .tg-ic { display: inline-flex; transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1); transform: rotate(180deg); }
.atl-side.clp .atl-side-toggle .tg-ic { transform: rotate(0deg); }

.atl-logo { display: flex; align-items: center; gap: 10px; font-family: 'Source Serif 4', serif; font-size: 19px; font-weight: 600; padding: 0 8px 22px; letter-spacing: -0.01em; white-space: nowrap; }
.atl-side.clp .atl-logo { padding: 0 0 22px; gap: 0; justify-content: center; }
.atl-logo-mark { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--acc), var(--acc2)); display: flex; align-items: center; justify-content: center; font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 16px; color: #fff; flex: none; }

.atl-nav { display: flex; flex-direction: column; gap: 3px; }
.atl-nav-it { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 11px; font-size: 13.5px; font-weight: 500; color: var(--side-muted); cursor: pointer; white-space: nowrap; transition: background 0.16s, color 0.16s, gap 0.28s, padding 0.28s; }
.atl-nav-it:hover { color: #fff; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.atl-nav-it:hover .atl-nav-chip { background: color-mix(in oklab, var(--ntc) 32%, transparent); }
.atl-nav-it.on { background: linear-gradient(120deg, color-mix(in oklab, var(--acc) 24%, transparent), color-mix(in oklab, var(--acc2) 11%, transparent)); color: #fff; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--acc2) 28%, transparent); }
.atl-nav-it.on .atl-nav-ic { color: var(--acc2); }
.atl-nav-ic { display: inline-flex; flex: none; }
.atl-nav-chip { width: 27px; height: 27px; border-radius: 8.5px; display: flex; align-items: center; justify-content: center; flex: none; background: color-mix(in oklab, var(--ntc) 17%, transparent); color: var(--ntc); transition: background 0.16s, color 0.16s; }
.atl-nav-it.on .atl-nav-chip { background: linear-gradient(120deg, var(--acc), var(--acc2)); color: #fff; box-shadow: 0 4px 12px -4px color-mix(in oklab, var(--acc) 70%, transparent); }
.atl-side.clp .atl-nav-it { gap: 0; padding: 7px 0; justify-content: center; }
.atl-nav-lbl { opacity: 1; max-width: 150px; overflow: hidden; transition: opacity 0.16s, max-width 0.28s; }
.atl-side.clp .atl-nav-lbl { opacity: 0; max-width: 0; }
.atl-nav-n { margin-left: auto; font-size: 11px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 2px 7px; transition: opacity 0.16s; }
.atl-side.clp .atl-nav-n { position: absolute; top: 1px; right: 3px; margin: 0; font-size: 9.5px; padding: 1px 5px; background: color-mix(in oklab, var(--acc) 45%, var(--side)); color: #fff; }

/* tooltips on the collapsed rail */
.atl-side.clp [data-tip]::after { content: attr(data-tip); position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%) translateX(-4px); background: #111c30; color: #e6edf7; border: 1px solid rgba(148, 163, 189, 0.22); font-size: 11.5px; font-weight: 500; padding: 5px 11px; border-radius: 8px; white-space: nowrap; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s; transition-delay: 0s; z-index: 50; }
.atl-side.clp [data-tip]:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); transition-delay: 0.25s; }

.atl-side-sect { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--side-faint); font-weight: 600; padding: 18px 11px 7px; white-space: nowrap; }
.atl-side.clp .atl-side-sect { padding: 0; height: 1px; width: 28px; margin: 14px auto; background: var(--side-line); overflow: hidden; }
.atl-side.clp .atl-side-sect span { display: none; }

.atl-side-user { position: relative; margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 8px 0; border-top: 1px solid var(--side-line); white-space: nowrap; transition: gap 0.28s, padding 0.28s; }
.atl-side.clp .atl-side-user { gap: 0; padding: 14px 0 0; justify-content: center; }
.atl-side-user-tx { overflow: hidden; max-width: 150px; opacity: 1; transition: opacity 0.16s, max-width 0.28s; }
.atl-side.clp .atl-side-user-tx { opacity: 0; max-width: 0; }
.atl-side-user-nm { font-size: 13px; font-weight: 600; }
.atl-side-user-rl { font-size: 11px; color: #8294b0; }

/* sidebar sign out */
.atl-side-out { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; padding: 7px 8px; border-radius: 11px; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: #8fa0bb; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.atl-side-out:hover { background: rgba(148, 163, 189, 0.1); color: #e6edf7; }
.atl-side-out-ic { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; }
.atl-side.clp .atl-side-out { justify-content: center; padding: 7px 0; }

/* ════════ main ════════ */
.atl-main { flex: 1; min-width: 0; padding: var(--pad); display: flex; flex-direction: column; overflow: auto; }
.atl-head { display: flex; align-items: center; gap: 14px; margin-bottom: var(--pad); flex: none; }
.atl-h1 { font-family: 'Source Serif 4', serif; font-size: 28px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.atl-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.atl-searchpill { display: flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 13px; color: var(--faint); width: 340px; }
.atl-kbd { margin-left: auto; font-size: 10.5px; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.atl-roundbtn { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background 0.15s, color 0.15s; }
.atl-roundbtn:hover { color: var(--text); background: var(--raised); }
.atl-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; font-family: inherit; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; transition: filter 0.15s, background 0.15s; }
.atl-btn:hover { background: var(--raised); }
.atl-btn.pri { background: linear-gradient(120deg, var(--acc), var(--acc2)); border-color: transparent; color: var(--on-accent); box-shadow: 0 6px 18px -6px color-mix(in oklab, var(--acc) 60%, transparent); }
.atl-btn.pri:hover { filter: brightness(1.08); }

/* ── KPI strip ── */
.atl-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); margin-bottom: var(--gap); }
.atl-kpi.atl-card { padding: 13px 16px 12px; }
.atl-kpi-lb { font-size: 12px; color: var(--muted); font-weight: 500; }
.atl-kpi-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.atl-kpi-v { font-family: 'Source Serif 4', serif; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
.atl-kpi-d { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--ok-ink); background: var(--ok-soft); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }

/* ── dashboard widget grid ── */
.atl-widgets { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-flow: dense; gap: var(--gap); flex: 1; align-content: start; min-height: 0; }
.atl-widget { position: relative; }
.atl-wctl { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; opacity: 0; transition: opacity 0.15s; }
.atl-widget:hover .atl-wctl { opacity: 1; }
.atl-wbtn { width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line); background: var(--card2); color: var(--faint); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: color 0.15s, background 0.15s; }
.atl-wbtn:hover { color: var(--text); background: var(--raised); }
.atl-wbtn.grip { cursor: grab; touch-action: none; }
.atl-accent-card .atl-wbtn { background: rgba(255, 255, 255, 0.18); border-color: transparent; color: #fff; }
.atl-widget.dragging { z-index: 60; cursor: grabbing; box-shadow: 0 28px 56px -18px rgba(0, 0, 0, 0.6); transition: none; animation: none !important; }
.atl-widget.droptgt { outline: 2px dashed color-mix(in oklab, var(--acc2) 55%, transparent); outline-offset: 4px; }

/* ── cards / bento ── */
.atl-bento { display: grid; grid-template-columns: 1.55fr 1fr; gap: var(--gap); margin-bottom: var(--gap); }
.atl-bento2 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gap); flex: 1; min-height: 0; align-content: start; }
.atl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--cardpad); }
.atl-card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.atl-card-t { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.atl-card-m { margin-left: auto; font-size: 12px; color: var(--faint); cursor: pointer; display: flex; align-items: center; gap: 4px; }
.atl-card-m:hover { color: var(--text); }

.atl-thead { display: grid; grid-template-columns: 1.4fr 1fr 1fr 60px; gap: 10px; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--line2); }
.atl-trow { display: grid; grid-template-columns: 1.4fr 1fr 1fr 60px; gap: 10px; align-items: center; padding: var(--rowpad) 0; }
.atl-trow + .atl-trow { border-top: 1px solid var(--line2); }
.atl-trow-nm { font-size: 13px; font-weight: 600; line-height: 1.25; }
.atl-trow-seg { font-size: 11px; color: var(--faint); margin-top: 2px; }
.atl-meter { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.atl-meter-track { flex: 1; height: 6px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.atl-meter-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--acc), var(--acc2)); transform-origin: left; }
.atl-trow-val { font-family: 'Source Serif 4', serif; font-size: 15px; font-weight: 600; text-align: right; }

/* donut */
.atl-donut-wrap { display: flex; align-items: center; gap: 20px; }
.atl-donut { width: 148px; height: 148px; border-radius: 50%; position: relative; flex: none; }
.atl-donut::after { content: ''; position: absolute; inset: 17px; border-radius: 50%; background: var(--card); }
.atl-donut-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; }
.atl-donut-v { font-family: 'Source Serif 4', serif; font-size: 27px; font-weight: 600; }
.atl-donut-lb { font-size: 11px; color: var(--faint); }
.atl-leg { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.atl-leg-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); }
.atl-leg-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.atl-leg-v { margin-left: auto; font-family: 'Source Serif 4', serif; font-size: 13.5px; font-weight: 600; color: var(--text); }

/* bars */
.atl-bars { display: flex; align-items: flex-end; gap: 12px; height: 120px; padding: 6px 4px 0; }
.atl-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.atl-bar { width: 100%; border-radius: 7px; background: var(--chip); transform-origin: bottom; }
.atl-bar.hi { background: linear-gradient(180deg, var(--acc2), var(--acc)); box-shadow: 0 4px 14px -4px color-mix(in oklab, var(--acc) 50%, transparent); }
.atl-bar-lb { font-size: 11px; color: var(--faint); }
.atl-conv-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: calc(var(--rowpad) * 0.8) 0; color: var(--muted); }
.atl-conv-row + .atl-conv-row { border-top: 1px solid var(--line2); }
.atl-conv-track { flex: 1; height: 7px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.atl-conv-fill { height: 100%; border-radius: 999px; background: var(--warn); transform-origin: left; }
.atl-conv-v { font-family: 'Source Serif 4', serif; font-size: 13.5px; font-weight: 600; color: var(--text); width: 38px; text-align: right; }

/* accent card */
.atl-accent-card { background: linear-gradient(135deg, var(--acc) 0%, color-mix(in oklab, var(--acc) 60%, #0b3a78) 100%); border: none; color: #fff; position: relative; overflow: hidden; }
.atl-accent-card::before { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); top: -120px; right: -80px; }
.atl-accent-card .atl-card-t, .atl-accent-card .atl-card-m { color: #fff; }
.atl-accent-big { display: flex; align-items: baseline; gap: 14px; margin: 8px 0 10px; }
.atl-accent-v { font-family: 'Source Serif 4', serif; font-size: 40px; font-weight: 600; line-height: 1; }
.atl-accent-lb { font-size: 12px; opacity: 0.85; }
.atl-accent-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); overflow: hidden; margin: 12px 0 8px; }
.atl-accent-fill { height: 100%; border-radius: 999px; background: #fff; transform-origin: left; }
.atl-accent-note { font-size: 12px; opacity: 0.85; line-height: 1.45; }

/* ════════ kanban ════════ */
.atl-board { display: grid; grid-template-columns: repeat(5, minmax(206px, 1fr)); gap: var(--gap); flex: 1; align-items: start; min-height: 0; }
.atl-col { padding: 6px; margin: -6px; border-radius: 16px; transition: background 0.15s, box-shadow 0.15s; }
.atl-col.droptgt { background: var(--acc-soft); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--acc2) 40%, transparent); }
.atl-col-h { display: flex; align-items: center; gap: 8px; padding: 2px 4px 13px; margin-bottom: 11px; border-bottom: 1px solid var(--line); }
.atl-col-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 10px var(--tc); }
.atl-col-t { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; }
.atl-col-n { font-size: 11px; color: var(--muted); background: var(--chip); border-radius: 999px; padding: 2px 8px; }
.atl-col-tot { margin-left: auto; font-family: 'Source Serif 4', serif; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.atl-cards { display: flex; flex-direction: column; gap: calc(var(--gap) * 0.8); }
.atl-kcard { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) - 3px); padding: var(--cardpad); cursor: grab; position: relative; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.atl-kcard:hover { border-color: color-mix(in oklab, var(--acc2) 40%, transparent); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.55); transform: translateY(-2px); }
.atl-kcard.dragging { z-index: 80; cursor: grabbing; transition: none; animation: none !important; border-color: color-mix(in oklab, var(--acc2) 50%, transparent); box-shadow: 0 28px 56px -16px rgba(0, 0, 0, 0.65); }
.atl-kcard-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tc-ink); background: var(--tc-soft); border: 1px solid color-mix(in oklab, var(--tc) 36%, transparent); border-radius: 999px; padding: 3px 9px; }
.atl-kcard-t { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin: 9px 0 4px; }
.atl-kcard-note { font-size: 12px; color: var(--muted); line-height: 1.45; }
.atl-kcard-ft { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line2); }
.atl-kcard-val { font-family: 'Source Serif 4', serif; font-size: 15.5px; font-weight: 600; }
.atl-kcard-close { font-size: 11.5px; color: var(--faint); display: flex; align-items: center; gap: 5px; }
.atl-add { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 13px; border: 1.5px dashed var(--line3); color: var(--faint); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.atl-add:hover { color: var(--acc-ink); border-color: var(--acc2); }

/* ════════ palette page ════════ */
.atl-pal-hero { border-radius: var(--radius); padding: calc(var(--cardpad) + 6px); background: linear-gradient(120deg, var(--acc), var(--acc2)); color: #fff; display: flex; align-items: center; gap: 18px; margin-bottom: var(--gap); }
.atl-pal-hero-t { font-family: 'Source Serif 4', serif; font-size: 21px; font-weight: 600; }
.atl-pal-hero-s { font-size: 12.5px; opacity: 0.9; margin-top: 3px; max-width: 520px; line-height: 1.5; }
.atl-pal-hero-dots { margin-left: auto; display: flex; gap: 10px; flex: none; }
.atl-pal-hero-dots span { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); }
.atl-pal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-content: start; }
.atl-pal-note { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line2); }
.atl-pal-cols { display: grid; grid-template-columns: 1fr 96px 96px; gap: 10px; font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; padding-bottom: 7px; border-bottom: 1px solid var(--line2); }
.atl-pal-row { display: grid; grid-template-columns: 1fr 96px 96px; gap: 10px; align-items: center; padding: 7px 0; }
.atl-pal-row + .atl-pal-row { border-top: 1px solid var(--line2); }
.atl-pal-tk { font-size: 12.5px; font-weight: 600; }
.atl-pal-use { font-size: 11px; color: var(--faint); margin-top: 1px; line-height: 1.35; }
.atl-pal-chipwrap { border-radius: 9px; padding: 3px; border: 1px solid var(--line); }
.atl-pal-chip { height: 34px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 600; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }

/* ════════ placeholder page ════════ */
.atl-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.atl-empty-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--acc-soft); color: var(--acc-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.atl-empty-t { font-family: 'Source Serif 4', serif; font-size: 24px; font-weight: 600; }
.atl-empty-s { font-size: 13px; color: var(--muted); max-width: 380px; line-height: 1.55; }

/* ════════ motion ════════ */
@media (prefers-reduced-motion: no-preference) {
  .atl.motion-medium .anim, .atl.motion-expressive .anim { animation: atl-in 0.5s ease both; animation-delay: var(--d, 0s); }
  .atl.motion-expressive .anim { animation: atl-rise 0.65s cubic-bezier(0.3, 1.45, 0.5, 1) both; animation-delay: var(--d, 0s); }
  .atl.motion-medium .atl-bar, .atl.motion-expressive .atl-bar { animation: atl-bar 0.7s cubic-bezier(0.25, 1, 0.35, 1) both; animation-delay: var(--d, 0s); }
  .atl.motion-medium .atl-meter-fill, .atl.motion-expressive .atl-meter-fill,
  .atl.motion-medium .atl-conv-fill, .atl.motion-expressive .atl-conv-fill,
  .atl.motion-medium .atl-accent-fill, .atl.motion-expressive .atl-accent-fill { animation: atl-grow 0.8s cubic-bezier(0.25, 1, 0.35, 1) both; animation-delay: var(--d, 0s); }
  .atl.motion-expressive .atl-kcard:hover { transform: translateY(-4px) scale(1.015); }
}
@keyframes atl-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes atl-rise { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes atl-bar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes atl-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
