/* ============================================================
   Calmer, easier on the eyes — and a light theme (js/calm.js)
   Dimi, 2 November 2026: "to be easier for the eyes".
   Loaded last, so it can quieten what came before it.
   ============================================================ */

/* ---- Larger text, more room ---- */
body { font-size: 14.5px; line-height: 1.6; }
.btn { font-size: 13px; padding: 9px 16px; }
.content { padding: 34px 44px 70px; }
.card { padding: 22px 24px; }
.page-sub { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.tab { font-size: 13.5px; }

/* ---- Fewer shouting labels: sentence case, plain type ---- */
.nav-label { font-family: var(--sans); text-transform: none; letter-spacing: .01em; font-size: 12px; color: var(--text-3); }
.lg-k, .page-meta div i, .page-meta div > :not(span):first-child { text-transform: none; letter-spacing: .01em; font-family: var(--sans); font-size: 12px; }
.page-meta div { text-transform: none; letter-spacing: .01em; font-family: var(--sans); font-size: 12px; }

/* ---- One main action per screen: the rest step back ---- */
.panel .btn:not(.btn-primary):not(.btn-analyze) { background: transparent; border-color: var(--border); color: var(--text-2); }
.panel .btn:not(.btn-primary):not(.btn-analyze):hover { background: var(--surface-2); color: var(--text); border-color: var(--border-bright); }
/* The gold outline is for the Assistant only; it no longer competes with the gold button. */
.panel .btn-analyze { background: transparent; }
/* Review's toolbar: the tools are a quiet row; Produce is the one action. */
.rv-actions .btn:not(.btn-primary):not(.btn-analyze) { border-color: transparent; padding: 9px 10px; }
.rv-actions .btn:not(.btn-primary):not(.btn-analyze):hover { border-color: var(--border); }

/* ---- A long explanation folds to two lines; "More" opens it ---- */
.calm-fold { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.calm-more { all: unset; cursor: pointer; font-size: 12.5px; color: var(--gold); border-bottom: 1px dotted var(--gold-soft); margin-top: 4px; display: inline-block; }

/* ---- The theme button ---- */
#themeBtn .t-sun { display: none; }
[data-theme="light"] #themeBtn .t-sun { display: block; }
[data-theme="light"] #themeBtn .t-moon { display: none; }

/* ============================================================
   LIGHT THEME — paper and ink, the same gold
   ============================================================ */
[data-theme="light"] {
  color-scheme: light;
  --void: #ebe6dc;
  --bg: #f6f3ec;
  --bg-grain: #f1ede4;
  --surface: rgba(30,25,15,0.028);
  --surface-2: rgba(30,25,15,0.05);
  --surface-3: rgba(30,25,15,0.08);
  --glass: rgba(255,253,248,0.97);
  --border: rgba(30,25,15,0.10);
  --border-bright: rgba(30,25,15,0.18);
  --border-gold: rgba(140,105,40,0.35);
  --text: #1f1c16;
  --text-2: #4d483c;
  --text-3: #7a7466;
  --gold: #8e6c2a;
  --gold-bright: #76581d;
  --gold-soft: rgba(140,105,40,0.35);
  --cyan: #2b7c88;
  --cyan-soft: rgba(43,124,136,0.25);
  --green: #2f7a48;
  --red: #b0463c;
  --amber: #9d6512;
  --violet: #6a52b0;
  --shadow-1: 0 1px 2px rgba(60,45,20,.08), 0 8px 24px rgba(60,45,20,.08);
  --shadow-2: 0 2px 6px rgba(60,45,20,.10), 0 20px 60px rgba(60,45,20,.12);
  --glow-gold: 0 0 0 1px var(--border-gold), 0 4px 30px rgba(140,105,40,.10);
}
[data-theme="light"] body { background: radial-gradient(1200px 700px at 85% -10%, rgba(201,169,98,0.10), transparent 55%), var(--bg); color: var(--text); font-weight: 400; }
[data-theme="light"] header { background: rgba(250,247,240,0.98); }
[data-theme="light"] aside { background: rgba(30,25,15,0.02); }
[data-theme="light"] .toast,
[data-theme="light"] .ml-modal,
[data-theme="light"] .counsel-drawer,
[data-theme="light"] .viewer,
[data-theme="light"] .wt-card,
[data-theme="light"] .gl-tip,
[data-theme="light"] .us { background: #fffdf8; color: var(--text); }
[data-theme="light"] .wlx-picture { background-color: #ece7dd; }
[data-theme="light"] .drop-overlay { background: rgba(246,243,236,0.95); }
[data-theme="light"] select option, [data-theme="light"] select optgroup { background-color: #fffdf8; color: #1f1c16; }
[data-theme="light"] input, [data-theme="light"] select, [data-theme="light"] textarea { color-scheme: light; }
[data-theme="light"] .gp-ctl select, [data-theme="light"] .gp-ctl input, [data-theme="light"] .iv-type select, [data-theme="light"] .iv-type input, [data-theme="light"] #ivFilter { background: #fffdf8; color-scheme: light; }
[data-theme="light"] .fr, [data-theme="light"] .cg, [data-theme="light"] .tg { background: radial-gradient(1200px 600px at 50% -10%, rgba(201,169,98,.16), transparent 60%), var(--bg); }
[data-theme="light"] .fr-card, [data-theme="light"] .cg-card, [data-theme="light"] .tg-card { background: #fffdf8; box-shadow: 0 30px 90px rgba(60,45,20,.15); }
[data-theme="light"] .btn-primary { background: linear-gradient(140deg, #d9b968, #a9853f); color: #17120a; }
[data-theme="light"] .hm-bar, [data-theme="light"] .sh-bar, [data-theme="light"] .tb-bar { background: rgba(30,25,15,.08); }
[data-theme="light"] .sb { background: var(--bg); }
[data-theme="light"] .mt-snip mark, [data-theme="light"] mark { background: rgba(201,169,98,.35); color: var(--text); }
[data-theme="light"] .brand-name, [data-theme="light"] .page-title { color: var(--text); }

/* ---- "What do you want to do?" (js/palette.js) ---- */
.cp { position: fixed; inset: 0; z-index: 250; background: rgba(0,0,0,.45); display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; }
[data-theme="light"] .cp { background: rgba(60,45,20,.18); }
.cp-card { width: min(640px, calc(100vw - 32px)); border-radius: 14px; overflow: hidden; background: #0e1018; border: 1px solid var(--border-gold); box-shadow: 0 30px 90px rgba(0,0,0,.5); }
[data-theme="light"] .cp-card { background: #fffdf8; box-shadow: 0 30px 90px rgba(60,45,20,.18); }
#cpInput { width: 100%; box-sizing: border-box; border: none; outline: none; background: transparent; color: var(--text); font: 400 17px/1.4 var(--sans); padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cp-list { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; }
.cp-group { font-size: 11.5px; color: var(--text-3); padding: 10px 12px 4px; }
.cp-item { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 9px; cursor: pointer; }
.cp-item b { font-weight: 500; font-size: 14px; color: var(--text); }
.cp-item span { font-size: 12.5px; color: var(--text-3); }
.cp-item.cp-sel, .cp-item:hover { background: rgba(201,169,98,.12); }
.cp-none { padding: 16px 12px; color: var(--text-3); font-size: 13px; }
.cp-foot { padding: 8px 16px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-3); }

/* ---- The header has more in it now: the search box gives up some room ---- */
header .search-bar { width: 360px !important; margin-left: 24px !important; }
header .brand-tag { white-space: nowrap; }
@media (max-width: 1360px) { header .brand-tag { display: none; } header .search-bar { width: 300px !important; } }
