/* Shared product foundations. Workflow-specific drawing colors and overlays are intentionally untouched. */
@font-face {
  font-family: Inter;
  src: url('/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root, html.h2-design {
  --ink: #111111;
  --ink-2: #333333;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --surface: #ffffff;
  --canvas: #f3f3f1;
  --soft: #ececec;
  --soft-2: #e3e3e3;
  --header-h: 60px;
  font-family: Inter, Arial, sans-serif;
}
/* Extend states on the existing button system, rather than creating page-specific variants. */
.btn { font-family: inherit; line-height: 1.4; }
.btn-primary:not(:disabled):not(.looks-disabled):hover { background: var(--ink-2); }
.btn-primary:not(:disabled):not(.looks-disabled):active { background: var(--ink); }
.btn-soft:not(:disabled):active { background: var(--line); }
.btn:disabled { color: var(--muted-2); background: var(--soft-2); }
.btn:focus-visible, .tab:focus-visible, .gnb-item:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.btn-text:disabled { background: transparent; }
.gnb, .h2-design .gnb { padding: 0 24px; gap: 24px; }
.gnb-menu, .h2-design .gnb-menu {
  position: static; left: auto; transform: none; align-self: stretch;
  display: flex; align-items: stretch; gap: 4px; margin-left: 20px;
}
.gnb-item, .h2-design .gnb-item {
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 0 14px; border-bottom: 2px solid transparent;
}
.gnb-item:hover { color: var(--ink); background: var(--canvas); }
.gnb-item.current, .h2-design .gnb-item.current {
  color: var(--ink); font-weight: 600; border-bottom-color: var(--ink);
}
.gnb-divider { display: none; }
.account-trigger[aria-expanded="true"] { background: var(--soft-2); }
.account-trigger .account-avatar { width: 22px; height: 22px; background: transparent; color: var(--ink-2); }
.account-menu { top: calc(100% + 12px); border-radius: var(--radius); box-shadow: 0 8px 24px #00000012; background: var(--surface); }
.account-menu .btn { width: 100%; justify-content: flex-start; }
.account-menu .btn:hover { background: var(--soft); }
.account-menu .account-email { line-height: 1.6; }
.account-summary { padding: 12px 14px; }
.account-settings-page { color: var(--ink); }
.settings-header { padding: 18px 24px; border-color: var(--line); }
.settings-content h1 { font-size: 24px; font-weight: 700; }
.settings-card { border-color: var(--line); border-radius: var(--radius); }
.settings-card p, .settings-intro, .settings-card dt { color: var(--muted); }
.auth-card input { font-family: inherit; }
.auth-card input:focus { outline-color: var(--accent); }
.auth-card label { font-weight: 600; }
.auth-description, .auth-hint, .auth-switch, .auth-footer { color: var(--muted); }
/* Give upload prompts the same scale and spacing in both tools. */
.canvas-area .upload-prompt { padding: 80px 24px; gap: 0; text-align: center; }
.upload-title, #dcc-intro h1 { font-size: 18px; line-height: 1.5; font-weight: 600; margin: 0 0 10px; }
.upload-sub, #dcc-intro p { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 0 0 28px; max-width: 400px; }
#stage-dcc .dcc-intro { left: 50%; }
#dcc-choose { margin-top: 0; }
#stage-dcc .canvas-area { background: var(--canvas); }
.side-panel, #stage-dcc .side-panel { gap: 16px; padding: 20px 16px 16px; }
.panel-title, #stage-dcc .panel-title { font-size: 14px; font-weight: 600; margin-bottom: 24px; }
.panel-subtitle, #stage-dcc .panel-subtitle { font-size: 12px; line-height: 1.5; font-weight: 600; margin-bottom: 10px; }
.panel-divider, #stage-dcc .panel-divider { margin: 20px 0; background: var(--line); }
.hint-box, .dcc-empty-slot { padding: 14px; font-size: 12px; line-height: 1.7; color: var(--muted); background: var(--canvas); border-radius: 8px; }
.candidate-item { padding: 10px; border-radius: 8px; }
.colors-selected { font-size: 11px; }
.bottom-bar, #stage-dcc #dcc-view-controls { border: 1px solid var(--line); box-shadow: 0 2px 6px #00000008; }
/* The existing panel width is retained to maximize the drawing canvas. */
@media (max-width: 760px) {
  .gnb, .h2-design .gnb { gap: 12px; padding: 12px 16px; }
  .gnb-menu, .h2-design .gnb-menu, html.h2-responsive .gnb-menu {
    margin-left: 0; justify-content: flex-start; gap: 4px; min-height: 40px;
  }
  .gnb-item, .h2-design .gnb-item { padding: 0 10px; font-size: 12px; }
  .settings-layout { width: calc(100% - 32px); margin: 28px auto; }
}
/* Active tools use the existing header and back button; the global tabs remain on main pages. */
.tool-navigation { display: flex; align-items: center; gap: 16px; min-width: 0; }
.tool-navigation-title { color: var(--ink-2); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .tool-navigation { order: 3; flex: 1 0 100%; padding-bottom: 4px; }
}
.drawing-picker{width:min(480px,calc(100vw - 32px));max-height:75vh;border:1px solid var(--line);border-radius:var(--radius);padding:24px;color:var(--ink);box-shadow:0 12px 40px #0002}.drawing-picker::backdrop{background:#0006}.drawing-picker h2{font-size:16px;margin:0 0 14px}.drawing-picker p{color:var(--muted);font-size:13px}.drawing-picker #picker-list{display:grid;gap:8px;max-height:45vh;overflow:auto;margin-bottom:20px}.drawing-picker .picker-file{justify-content:flex-start;text-align:left;overflow-wrap:anywhere}#dcc-library,#clash-library{margin-top:12px}
