/* Shared visual language for the working hub. The entrance keeps its 3D stage. */
:root {
  --bg: #f7f6f2; --surface: #ffffff; --surface2: #eeede8; --deep: #e9e9e4;
  --text: #172639; --text2: #52616f; --text3: #63707d; --muted: #63707d;
  --line: #dcdedc; --hair: rgba(22,39,57,.10);
  --red: #bf303b; --red-soft: #bf303b0b; --red-line: #bf303b45;
  --blue: #276789; --blue-soft: #eaf1f5; --blue-line: #adc7d6;
  --accent: #82622e; --accent-soft: #82622e10; --accent-line: #82622e45;
  --green: #167349; --green-soft: #16734910;
  --r: 10px; --r-lg: 14px; --shadow: 0 7px 22px #1726390a; --shadow-lg: 0 20px 55px #17263926;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b111d; --surface: #141e2d; --surface2: #1a2739; --deep: #0e1725;
  --text: #edf2f8; --text2: #b2bfd0; --text3: #9aaabd; --muted: #9aaabd;
  --line: #2c3b4e; --hair: rgba(216,230,247,.10);
  --red: #f1787e; --red-soft: #f1787e10; --red-line: #f1787e50;
  --blue: #93c7e7; --blue-soft: #1b3247; --blue-line: #376587;
  --accent: #e7c48a; --accent-soft: #e7c48a10; --accent-line: #e7c48a45;
  --green: #74d7a5; --green-soft: #74d7a515;
  --shadow: 0 7px 22px #02071224; --shadow-lg: 0 20px 55px #02071266;
}
[data-theme="light"] { color-scheme: light; }
::selection { background: var(--blue-soft); color: var(--text); }
html { scroll-padding-top: 96px; }
body { accent-color: var(--blue); }
input, select, textarea { caret-color: var(--red); min-width: 0; }
input::placeholder, textarea::placeholder { color: var(--text3); opacity: 1; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
label input:focus-visible, .dacy-input input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
svg { flex-shrink: 0; vertical-align: middle; }
button:disabled { opacity: .55; cursor: not-allowed; }
.page { max-width: 1440px; padding: 34px 40px 115px; gap: 30px; }
.page h1 { font-size: 32px; letter-spacing: -.025em; line-height: 1.2; }
.page h2 { line-height: 1.3; }
.page p { overflow-wrap: anywhere; }
.mono { letter-spacing: .06em; }
.eyebrow { font-family: var(--font); letter-spacing: .06em; }
.btn { min-height: 42px; height: auto; padding-block: 11px; border-radius: 8px; font-family: var(--font); font-size: 14px; }
.btn-primary { background: #bf303b; border-color: #bf303b; color: #fff; box-shadow: 0 5px 14px #75132113; }
.btn-primary:hover { background: #a92934; border-color: #a92934; }
.btn-sm { min-height: 36px; padding-block: 8px; font-size: 13px; }
.btn-lg { min-height: 48px; }
.btn-xl { min-height: 58px; font-size: 17px; }
.btn-ghost:hover { background: var(--surface2); }
.chip.on { background: var(--blue); border-color: var(--blue); color: var(--surface); }
[data-theme="dark"] .chip.on { color: #102337; }
.lnk { display: inline-flex; gap: 7px; align-items: center; color: var(--blue); }
.lnk:hover { text-decoration: underline; text-underline-offset: 4px; color: var(--blue); }
.icon-btn { width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0; }
.icon-btn:hover { background: var(--surface2); }
.avatar { flex-shrink: 0; background: var(--blue-soft); color: var(--blue); }
.tag { font-family: var(--font); font-size: 11px; letter-spacing: .04em; }
.tag.red { background: #bf303b; }
.hdr { height: 76px; gap: 24px; padding-inline: 32px; border-color: var(--line); }
.hdr-brand { gap: 9px; flex-shrink: 0; }
.hdr-brand .logo { height: 20px; }
.hdr .pill-mono { display: inline-flex; font: 500 10px/1.3 var(--font); letter-spacing: .09em; padding: 5px 7px; color: var(--text2); border-color: var(--line); }
.hdr-nav { align-self: stretch; align-items: center; gap: 21px; }
.hdr-nav a { display: inline-flex; align-items: center; height: 100%; padding: 0; position: relative; font-size: 13px; border-bottom: 0; }
.hdr-nav a.is-active::after { content: ''; position: absolute; height: 2px; background: var(--red); left: 0; right: 0; bottom: 17px; border-radius: 2px; }
.hdr .search { max-width: 260px; min-width: 38px; width: auto; flex: 1; font-size: 12px; }
.hdr .seg { flex-shrink: 0; }
.hdr .seg > * { font-family: var(--font); font-size: 11px; padding-inline: 8px; }
.hdr .badge-red { display: none; }
.tabbar .tab-dacy { color: var(--text); }
.tabbar .tab-dacy .dcai-symbol { margin-top: -13px; }
.tabbar .tab-dacy .tab-soon { display: block; margin-top: -2px; font-family: var(--mono); font-size: 8px; font-weight: 600; letter-spacing: .08em; line-height: 1; text-transform: uppercase; color: var(--text2); white-space: nowrap; }
label { font-family: var(--font); font-size: 13px; letter-spacing: 0; color: var(--text2); }
label input, label textarea, label select { font-family: var(--font); color: var(--text); font-size: 15px; background: var(--surface); }
.search-box { box-shadow: var(--shadow-lg); }
.matrix-page .detail { border-color: var(--line); }
/* DockingMatrix: the code of a combination never breaks at its hyphen and its
   tag sits under it, so neither runs out of a narrow card (owner, 2026-10-22). */
.combo > .row-between { flex-direction: column; align-items: flex-start; gap: 6px; }
.combo b { white-space: nowrap; }
.combo .tag { max-width: 100%; line-height: 1.25; }
/* `.line` is also the row of a list (padding 10px 0): a tag in the style
   `line` keeps the padding of a tag. */
.tag.line { padding: 4px 7px; }
.detail > .row-between { flex-wrap: wrap; gap: 8px 12px; }
.detail > .row-between .chip { max-width: 100%; white-space: normal; }
@media (max-width: 1180px) and (min-width: 769px) {
  .hdr { gap: 15px; padding-inline: 23px; }
  .hdr-nav { gap: 17px; }
  .hdr .search { flex: 0 0 38px; margin-left: auto; padding: 0; justify-content: center; }
  .hdr .search span, .hdr .search kbd { display: none; }
  .hdr .pill-mono { display: inline-flex; }
  .page { padding-inline: 28px; }
}
@media (max-width: 940px) and (min-width: 769px) {
  .hdr { gap: 12px; padding-inline: 18px; }
  .hdr-brand { flex-direction: column; gap: 5px; align-items: start; }
  .hdr .pill-mono { border: 0; padding: 0; font-size: 9px; }
  .hdr-nav { gap: 13px; }
  .hdr-nav a { font-size: 12px; }
  .hdr .seg > * { padding-inline: 6px; }
}
@media (max-width: 768px) {
  .hdr { height: 66px; padding-inline: 18px; gap: 12px; }
  .hdr .pill-mono { display: inline-flex; }
  .page { padding: 25px 18px 110px; gap: 25px; }
  .page h1 { font-size: 28px; }
  .page > .row-between { flex-wrap: wrap; gap: 15px; }
  .btn { white-space: normal; }
  label input, label textarea, label select { font-size: 16px; }
  .tabbar { height: calc(66px + env(safe-area-inset-bottom)); }
  .tabbar > * { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
