/* Token dan komponen bersama, sesuai handoff Claude Design (Design System.dc.html). */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --bg: #f6f2e9;
  --surface: #fffdf8;
  --surface-2: #efe9dc;
  --line: #e2dacb;
  --line-strong: #c9bfab;
  --ink: #10213a;
  --ink-2: #52627a;
  --accent: #0b7a6b;
  --accent-hover: #086a5d;
  --accent-ink: #075c51;
  --accent-wash: #dcefe9;
  --on-accent: #ffffff;
  --warn: #b5560f;
  --warn-ink: #8a420b;
  --warn-text: #7a3a0a;
  --warn-wash: #f8e7d6;
  --danger: #b3261e;
  --danger-text: #7d1b15;
  --danger-wash: #f8dfdc;
  --ticket-bg: #10213a;
  --ticket-fg: #f6f2e9;
  --toast-accent: #7fd6c6;
  --toast-soft: #c3cddb;
  --skeleton: #ebe5d8;
  --scrim: rgba(16, 33, 58, .48);
  --shadow: 0 8px 24px rgba(16, 33, 58, .24);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1626;
    --surface: #142036;
    --surface-2: #1b2a44;
    --line: #26375a;
    --line-strong: #3a4e74;
    --ink: #ede8dc;
    --ink-2: #a3b0c4;
    --accent: #3fb8a5;
    --accent-hover: #55c7b5;
    --accent-ink: #7fd6c6;
    --accent-wash: #123d39;
    --on-accent: #0d1626;
    --warn: #f0a060;
    --warn-ink: #f5bd8a;
    --warn-text: #f5bd8a;
    --warn-wash: #3a2512;
    --danger: #f2867c;
    --danger-text: #f2867c;
    --danger-wash: #3d1a1a;
    --ticket-bg: #ede8dc;
    --ticket-fg: #0d1626;
    --toast-accent: #075c51;
    --toast-soft: #52627a;
    --skeleton: #1b2a44;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font); font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-ink); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 18px; height: 18px; }
.i.md { width: 24px; height: 24px; }
.logo { flex: none; fill: none; stroke: currentColor; }
.soft { color: var(--ink-2); }
.tab { font-variant-numeric: tabular-nums; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.btn:hover:not(:disabled) { background: var(--accent-hover); }
.btn:disabled { cursor: not-allowed; }
.btn.secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn.secondary:hover:not(:disabled) { background: var(--surface-2); }
.btn.report { background: var(--surface); color: var(--danger); box-shadow: inset 0 0 0 1.5px var(--danger); }
.btn.report:hover:not(:disabled) { background: var(--danger-wash); }
.btn.locked, .btn.locked:hover:not(:disabled) { background: var(--line); color: var(--ink-2); }
.btn.sending { opacity: .7; }
.quiet { min-height: 48px; padding: 0 4px; border: 0; background: none; color: var(--accent-ink); font-size: 15px; font-weight: 600; }

.field { display: grid; gap: 8px; }
.field > span:first-child, .field > label { font-size: 15px; font-weight: 600; }
.field input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 17px; outline: none; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-wash); }
.hint { font-size: 13px; color: var(--ink-2); }

.notice { display: flex; gap: 8px; padding: 12px 16px; border-radius: 8px; font-size: 15px; text-align: left; }
.notice .i { margin-top: 1px; }
.notice.warn { background: var(--warn-wash); color: var(--warn-text); }
.notice.error { background: var(--danger-wash); color: var(--danger-text); }
.inline-error { display: flex; gap: 8px; color: var(--danger-text); font-size: 15px; }

.meter { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.meter > i { display: block; height: 100%; width: 100%; background: var(--accent); transition: width 1s linear; }
.meter.low > i { background: var(--warn); }

.round { display: flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; }
.tone-ok { background: var(--accent-wash); color: var(--accent-ink); }
.tone-neutral { background: var(--surface-2); color: var(--ink); }
.tone-danger { background: var(--danger-wash); color: var(--danger); }
.tone-warn { background: var(--warn-wash); color: var(--warn-ink); }

.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: var(--on-accent); animation: ciSpin .8s linear infinite; flex: none; }
.spin.dark { width: 14px; height: 14px; border-color: var(--line-strong); border-top-color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: ciPulse 1.6s ease-in-out infinite; flex: none; }
@keyframes ciPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ciSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
