* { box-sizing: border-box; }
body { margin: 0; background: var(--or-canvas); color: var(--or-text); font: .875rem/1.5 "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
button, input, select { color: inherit; font: inherit; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
a { color: var(--or-link); }
button, select { cursor: pointer; }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 17px; height: 17px; flex: none; }
.shell { display: grid; grid-template-columns: 166px minmax(0, 1fr); min-height: 100dvh; }
.rail { position: sticky; top: 0; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; background: var(--or-rail); color: var(--or-rail-text); padding: 12px 10px; }
.rail :focus-visible { outline-color: var(--or-rail-accent); }
.brand { display: grid; place-items: center; width: 132px; height: 41px; margin: 0 auto; border-radius: 6px; background: var(--or-brand-plate); }
.brand img { display: block; width: 118px; height: auto; }
.brand .compact-logo { display: none; }
.rail-caption { color: var(--or-rail-muted); margin: 0 8px 5px; font-size: .75rem; }
.nav { display: grid; gap: 3px; }
.nav a, .rail-foot a { display: flex; align-items: center; gap: 8px; min-height: 35px; padding: 5px 8px; border-radius: 6px; text-decoration: none; color: inherit; overflow-wrap: anywhere; transition: background-color 110ms; }
.nav a:hover, .rail-foot a:hover { background: var(--or-rail-hover); }
.nav a[aria-current] { color: var(--or-rail-text); background: var(--or-rail-active); font-weight: 650; }
.nav a[aria-current] .icon { color: var(--or-rail-accent); }
.nav a:active { background: var(--or-rail-pressed); }
.rail-foot { margin-top: auto; border-top: 1px solid var(--or-rail-edge); padding-top: 8px; font-size: .8125rem; }
.workspace { min-width: 0; }
.top { position: sticky; z-index: 2; top: 0; min-height: 46px; padding: 5px 22px; background: var(--or-surface); border-bottom: 1px solid var(--or-border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.crumb, .top-tools { display: flex; align-items: center; min-width: 0; flex-wrap: wrap; gap: 5px 8px; font-size: .75rem; color: var(--or-text-muted); }
.crumb a { color: var(--or-text-secondary); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb [aria-current] { color: var(--or-text); font-weight: 650; overflow-wrap: anywhere; }
.top-tools button { min-height: 28px; padding: 2px 8px; }
.sample { display: inline-block; font-size: .75rem; color: var(--or-text-secondary); padding: 2px 6px; background: var(--or-surface-muted); border-radius: 4px; }
.mobile-nav { display: none; }
.page { max-width: 1560px; margin-inline: auto; padding: 21px 22px 30px; }
.head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px 14px; margin-bottom: 15px; }
.project-title { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; gap: 7px 10px; }
h1 { font-size: 1.625rem; line-height: 1.25; letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { font-size: 1.0625rem; line-height: 1.35; overflow-wrap: anywhere; }
.kind, .chip { display: inline-flex; align-items: center; gap: 4px; width: fit-content; max-width: 100%; padding: 2px 6px; border-radius: 4px; font-size: .75rem; line-height: 1.4; }
.kind { background: var(--or-selected-bg); color: var(--or-link); font-weight: 650; }
.chip { background: var(--or-pending-bg); color: var(--or-pending-text); }
.chip::before { content: ""; flex: none; inline-size: 5px; block-size: 5px; border-radius: 50%; background: currentColor; }
.chip[data-tone="progress"] { background: var(--or-progress-bg); color: var(--or-progress-text); }
.chip[data-tone="success"] { background: var(--or-success-bg); color: var(--or-success-text); }
.chip[data-tone="danger"] { background: var(--or-danger-bg); color: var(--or-danger-text); }
.chip[data-tone="warning"] { background: var(--or-warning-bg); color: var(--or-warning-text); }
.chip[data-tone="important"] { background: var(--or-important-bg); color: var(--or-important-text); }
.button, .select, .search { min-height: 32px; padding: 5px 9px; border: 1px solid; border-radius: 6px; }
.select, .search { border-color: var(--or-control-border); background: var(--or-surface); color: var(--or-text); }
.button { display: inline-flex; align-items: center; text-decoration: none; justify-content: center; font-weight: 600; font-size: .8125rem; }
.tabs { display: flex; gap: 11px; overflow-x: auto; border-bottom: 1px solid var(--or-border); margin-bottom: 14px; }
.tabs button { position: relative; display: flex; flex: none; align-items: center; justify-content: center; min-height: 38px; background: none; border: 0; border-bottom: 2px solid transparent; padding: 5px 4px; color: var(--or-text-secondary); transition: background-color 110ms; }
.tabs button:hover { background: var(--or-hover-bg); }
.tabs button:active { background: var(--or-pressed-bg); }
.tabs [aria-selected="true"] { background: var(--or-selected-bg); border-bottom-color: var(--or-primary); color: var(--or-link); font-weight: 700; }
.tabs button:focus-visible { outline-offset: -3px; }
.stack { display: grid; gap: 14px; min-width: 0; }
.panel { min-width: 0; padding: 15px 16px; border: 1px solid var(--or-border); border-radius: 8px; background: var(--or-surface); }
.section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin-bottom: 10px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px 20px; }
.facts dt { color: var(--or-text-muted); font-size: .75rem; margin-bottom: 2px; }
.facts dd { font-weight: 600; overflow-wrap: anywhere; }
.context { margin-top: 11px; background: var(--or-agent-bg); color: var(--or-agent-text); padding: 8px 10px; border-radius: 5px; overflow-wrap: anywhere; }
.context b { margin-inline-end: 8px; }
.aux, .date { color: var(--or-text-secondary); }
.aux { font-size: .8125rem; }
.date { font-variant-numeric: tabular-nums; }
.table-box { min-width: 0; overflow-x: auto; border-radius: 7px; border: 1px solid var(--or-border); background: var(--or-surface); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .8125rem; }
th, td { min-height: 42px; padding: 8px 10px; height: 42px; border-bottom: 1px solid var(--or-border); overflow-wrap: anywhere; }
th { background: var(--or-surface-muted); color: var(--or-text-secondary); font-size: .75rem; height: 34px; }
tbody tr:last-child td { border-bottom: 0; }
td a { font-weight: 650; text-decoration: none; }
td a:hover { text-decoration: underline; }
.attention { padding-inline-start: 0; list-style: none; }
.attention li { display: grid; grid-template-columns: max-content minmax(0, 1fr); padding: 8px 0; align-items: baseline; gap: 4px 9px; overflow-wrap: anywhere; }
.attention li + li { border-top: 1px solid var(--or-border); }
.attention li:last-child { padding-bottom: 0; }
.attention strong { display: block; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; }
.toolbar label { font-size: .8125rem; }
.select, .search { max-width: 100%; }
.search { width: min(220px, 100%); }
.search::placeholder { color: var(--or-text-muted); }
.empty { padding: 14px; color: var(--or-text-secondary); }
@media (max-width: 850px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .secondary { display: none; }
}
@media (max-width: 720px) {
  .shell { grid-template-columns: 52px minmax(0, 1fr); }
  .rail { padding: 10px 5px; }
  .brand { width: 35px; height: 35px; }
  .brand .wide-logo, .rail-caption, .nav a span, .rail-foot a span { display: none; }
  .brand .compact-logo { display: block; width: 32px; }
  .nav a, .rail-foot a { justify-content: center; min-height: 42px; padding: 5px; }
  .top, .page { padding-inline: 14px; }
}
@media (max-width: 520px) {
  .shell { display: block; }
  .rail { display: none; }
  .mobile-nav { display: flex; min-width: 0; align-items: center; gap: 6px; }
  .mobile-nav img { width: 29px; height: 29px; object-fit: contain; }
  .mobile-nav select { min-height: 32px; width: auto; max-width: 100%; padding: 3px 4px; }
  .top { top: auto; position: relative; padding-block: 6px; }
  .crumb { flex-basis: 100%; order: 3; }
  .page { padding-block: 14px 24px; }
  .head { margin-bottom: 9px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .facts > div { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: baseline; }
  .panel { padding: 11px; }
  .tabs { gap: 6px; }
  td, th { padding-inline: 7px; }
}
@media (pointer: coarse) {
  .nav a, .rail-foot a, .brand, .tabs button, .button, .select, .search, .mobile-nav select, .top-tools button { min-height: 44px; }
  td a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { transition: none !important; }
}

.setup-page { min-height: 100svh; }
.setup-page small { color: var(--or-text-secondary); }
.setup-callback { color: var(--or-text-secondary); }
.setup-callback code { display: block; overflow-wrap: anywhere; color: var(--or-text); }
