/* 226 Retouch Notes 04: shared look. Colors match the Photo Compressor app (main.rs). */
:root {
  --bg: #1D2120;          /* app background (primary) */
  --bg-2: #252A28;        /* raised gray: tiles, inputs on gray */
  --bg-3: #2F3532;        /* hover on gray */
  --emerald: #023B2C;     /* panels, cards */
  --emerald-lift: #0C4C3B;
  --emerald-line: #1A5545;
  --ink: #04281E;         /* text on gold, inset fields */
  --gold: #E5BA21;        /* buttons, links, selection */
  --gold-hover: #F0C93A;
  --gold-text: #E2A60E;   /* eyebrows */
  --hunter: #3F6C49;      /* dividers, card edges */
  --copper: #BA601C;      /* alert markers (never text) */
  --line: #7C988E;        /* control outlines */
  --sand: #F7F4F0;        /* main text */
  --muted: #ADACA9;       /* secondary text */
  --panel-sub: #8FB8AA;
  --blue: #B7E2D6;        /* French Blue: "sent to client" */
  --green: #7DD69B;       /* "retouching complete" */
  --warn-text: #F2B27A;   /* readable copper tint for warning text */
  --danger: #F08A7E;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font: 'PT Serif', Georgia, serif;
  --font-ui: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--sand); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.eyebrow { font-family: var(--font-ui); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.muted { color: var(--muted); }
.ui { font-family: var(--font-ui); }

/* top bar */
.bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: var(--emerald); border-bottom: 1px solid var(--emerald-line); min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sand); flex: none; }
.brand-mark { font-family: var(--font-ui); font-weight: 700; font-size: 15px; background: var(--gold); color: var(--ink); border-radius: 6px; padding: 3px 7px; letter-spacing: .02em; }
.brand-name { font-family: var(--font-ui); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); }
.bar .spacer { flex: 1; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: transparent; color: var(--sand);
  border-radius: 8px; padding: 8px 14px; font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; letter-spacing: .02em; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { background: rgba(247,244,240,.07); }
.btn:disabled { opacity: .45; cursor: default; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.gold:hover { background: var(--gold-hover); }
.btn.text { border-color: transparent; color: var(--muted); padding-left: 8px; padding-right: 8px; }
.btn.text:hover { color: var(--sand); }
.btn.small { padding: 5px 10px; font-size: 11.5px; }
.btn.big { padding: 12px 20px; font-size: 14px; }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn.icon { padding: 7px; }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; font-family: var(--font-ui); font-size: 12px; font-weight: 600; }

/* fields */
.field { display: flex; flex-direction: column; gap: 5px; }
.flabel { font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--panel-sub); }
.flabel .opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
input[type=text], input[type=url], input[type=search], input[type=number], input[type=email], select, textarea {
  background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; color: var(--sand); width: 100%; min-width: 0; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #8b9a94; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(229,186,33,.18); }
.hint { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.err { color: var(--danger); font-size: 13.5px; margin: 6px 0 0; }

/* dialogs */
.modal { position: fixed; inset: 0; background: rgba(8,12,10,.66); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 60; }
.dialog { background: var(--emerald); border: 1px solid var(--emerald-line); border-radius: 14px; box-shadow: var(--shadow); padding: 22px 22px 18px; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; }
.dialog.wide { max-width: 720px; }
.dialog h2 { margin: 0 0 8px; font-family: var(--font-ui); font-weight: 700; font-size: 19px; }
.dialog p { margin: 0 0 12px; color: #dfe6e2; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.dialog .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog .stack { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 560px) { .dialog .grid2 { grid-template-columns: 1fr; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: var(--sand); color: var(--ink); padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow);
  font-family: var(--font-ui); font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 80; max-width: min(560px, calc(100vw - 32px)); display: flex; gap: 12px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: none; border: 0; color: var(--emerald); font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }

/* status dots (dashboard + project bar) */
.dots { display: inline-flex; gap: 7px; align-items: center; flex: none; }
.dot { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--c); background: transparent; padding: 0; cursor: pointer; position: relative; }
.dot.on { background: var(--c); }
.dot:hover { box-shadow: 0 0 0 3px rgba(247,244,240,.14); }
.dot:disabled { cursor: default; }
.dot:disabled:hover { box-shadow: none; }
.dot[data-k=sent] { --c: var(--blue); }
.dot[data-k=submitted] { --c: var(--sand); }
.dot[data-k=reviewed] { --c: var(--gold); }
.dot[data-k=complete] { --c: var(--green); }

/* hover tip */
.tip { position: fixed; z-index: 90; background: #0b120f; color: var(--sand); border: 1px solid var(--emerald-line); border-radius: 8px; padding: 7px 10px; font-family: var(--font-ui); font-size: 12px; max-width: 280px; pointer-events: none; box-shadow: var(--shadow); }
.tip b { font-weight: 700; }
.tip .t2 { color: var(--muted); display: block; margin-top: 2px; }

/* menus */
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: #0f1714; border: 1px solid var(--emerald-line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; z-index: 40; }
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 11px; border-radius: 7px; cursor: pointer; font-family: var(--font-ui); font-size: 13px; color: var(--sand); }
.menu button:hover, .menu button:focus-visible { background: var(--emerald); }
.menu .danger { color: var(--danger); }
.menu .sep { height: 1px; background: var(--emerald-line); margin: 5px 4px; }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(247,244,240,.25); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
