/* Visual tokens from Dolly&me's inventory workspace, maintained in this app. */
:root {
  --surface: #fff;
  --surface-subtle: #fafafa;
  --ink: #171717;
  --text-muted: #626262;
  --line: #dedede;
  --line-strong: #b8b8b8;
  --danger: #a51d2d;
  --radius: 3px;
  --sidebar-width: 228px;
  --sidebar-collapsed-width: 72px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--surface);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
html { scroll-padding-top: 80px; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1 { margin: 0 0 24px; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.3; letter-spacing: -.035em; font-weight: 650; text-wrap: balance; }
h2 { margin: 0 0 14px; font-size: 21px; line-height: 1.4; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 10px 0 16px; text-wrap: pretty; }
small, .muted, .intro { color: var(--text-muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 9px 16px; border: 1px solid var(--ink);
  border-radius: var(--radius); background: var(--ink); color: #fff;
  font: inherit; font-size: 14px; font-weight: 550; line-height: 1.5;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
button:hover, .button:hover { background: #343434; color: #fff; text-decoration: none; }
button:active:not(:disabled), .button:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; }
button[type="button"], .button-secondary {
  background: var(--surface); border-color: var(--line-strong); color: var(--ink);
}
button[type="button"]:hover, .button-secondary:hover { background: var(--surface-subtle); border-color: var(--ink); color: var(--ink); }
input, select, textarea {
  max-width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit; line-height: 1.5;
}
input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; min-height: 0; margin: 0 6px 0 0; vertical-align: middle; accent-color: var(--ink); }
textarea { width: 100%; min-height: 8rem; resize: vertical; }
input[type="number"], input[type="date"], input[type="time"] { font-variant-numeric: tabular-nums; }
input[type="checkbox"] + label, input[type="radio"] + label { min-height: 44px; }
input::placeholder, textarea::placeholder { color: #777; }
label { font-weight: 550; }
.card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: none; }
.card > :last-child { margin-bottom: 0; }
.warning { padding: 16px; border: 1px solid #e5d5ac; border-radius: var(--radius); background: #fffaf0; }
.errorlist, [role="alert"] { color: var(--danger); }
.errorlist { padding-left: 20px; }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 10px 16px; background: var(--ink); color: #fff; z-index: 60; }
.skip-link:focus { top: 12px; }
.workspace-icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) {
  h1 { font-size: 27px; margin-bottom: 20px; }
  h2 { font-size: 19px; }
  .card { padding: 18px; }
  input, select, textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
