@font-face { font-family: "Manrope"; src: url("fonts/manrope.a859e37863d2.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
* { box-sizing: border-box; }
html { font: 14px/1.6 var(--font-ui); color: var(--ink); background: var(--canvas); font-synthesis: none; text-rendering: optimizeLegibility; }
body { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 30px; line-height: 1.25; font-weight: 650; letter-spacing: -.9px; margin-bottom: 8px; overflow-wrap: anywhere; }
h2 { font-size: 17px; line-height: 1.45; font-weight: 650; letter-spacing: -.35px; margin-bottom: 20px; }
h3 { font-size: 16px; line-height: 1.5; font-weight: 650; margin-bottom: 8px; }
p { margin-bottom: 16px; }
small { display: block; font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 4px; }
strong, b { font-weight: 650; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.strong { font-weight: 600; color: var(--ink); }
.strong:hover { color: var(--accent); }
.icon { height: 20px; width: 20px; flex: 0 0 20px; vertical-align: middle; }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 16px; border: 1px solid transparent; border-radius: var(--radius-control); color: var(--on-accent); background: var(--accent); font-size: 13px; line-height: 1.5; font-weight: 650; cursor: pointer; text-align: center; white-space: nowrap; }
.button:hover, button:hover { background: var(--accent-dark); text-decoration: none; }
.button .icon, button .icon { width: 17px; height: 17px; flex-basis: 17px; }
.button.secondary, button.secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.button.secondary:hover, button.secondary:hover { background: var(--surface-hover); }
.button.danger, button.danger { color: var(--negative); background: var(--negative-soft); border-color: currentColor; }
.button.danger:hover, button.danger:hover { opacity: .85; }
.small-button { min-height: 34px; padding: 6px 11px; font-size: 12px; }
button:disabled { cursor: not-allowed; background: var(--surface-soft); border-color: var(--line); color: var(--muted); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius-control); color: var(--muted); background: var(--surface); }
.icon-button .icon { width: 17px; height: 17px; flex-basis: 17px; }
.icon-button:hover { background: var(--surface-hover); color: var(--accent); text-decoration: none; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 24px; margin-bottom: 24px; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; }
.section-description { font-size: 13px; margin: 6px 0 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading p { margin-bottom: 0; font-size: 13px; color: var(--muted); }
.back { font-size: 12px; display: inline-flex; margin-bottom: 24px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border-radius: var(--radius-label); font-size: 11px; font-weight: 600; line-height: 1.5; padding: 4px 8px; color: var(--muted); background: var(--surface-soft); }
.badge .icon { width: 14px; height: 14px; flex-basis: 14px; }
.positive { color: var(--positive); background: var(--positive-soft); }
.negative { color: var(--negative); background: var(--negative-soft); }
.warning { color: var(--warning); background: var(--warning-soft); }
.neutral { color: var(--muted); background: var(--surface-soft); }
.status-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; }
.count { display: inline-flex; align-items: center; justify-content: center; padding: 1px 7px; background: var(--surface-soft); color: var(--muted); font-size: 12px; border-radius: var(--radius-label); vertical-align: middle; font-weight: 500; margin-left: 6px; font-variant-numeric: tabular-nums; }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border: 1px solid var(--line-strong); background: var(--accent-soft); border-radius: var(--radius-control); margin-bottom: 22px; font-size: 13px; }
.notice .icon { margin-top: 1px; }
.notice p:last-child { margin-bottom: 0; }
.notice.error { background: var(--negative-soft); color: var(--negative); border-color: currentColor; }
.notice.warning { background: var(--warning-soft); color: var(--warning); border-color: currentColor; }
.notice.success { color: var(--positive); }
.context-note { display: flex; align-items: center; gap: 10px; padding: 13px 17px; border: 1px solid var(--line); background: var(--surface-soft); border-radius: var(--radius-control); margin-bottom: 24px; font-size: 12px; color: var(--muted); }
.context-note > .badge { margin-left: auto; }
.context-note .icon { height: 18px; width: 18px; }
.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 8px; color: var(--ink); }
input, select, textarea { display: block; width: 100%; max-width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); padding: 9px 12px; font-size: 13px; line-height: 1.6; min-height: 40px; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; font-family: Consolas, monospace; font-size: 13px; min-height: 80px; }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-soft); color: var(--muted); cursor: not-allowed; }
input[type=checkbox], input[type=radio] { display: inline-block; width: 16px; height: 16px; min-height: 16px; padding: 0; accent-color: var(--accent); flex: none; }
input[type=hidden] { display: none; }
input[type=file] { padding: 12px; background: var(--surface-soft); font-size: 12px; }
input::file-selector-button { border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); padding: 7px 10px; margin-right: 10px; font: inherit; color: var(--ink); cursor: pointer; }
.check-label { display: flex; align-items: center; gap: 10px; }
.helptext, .field-hint { display: block; font-size: 12px; line-height: 1.65; color: var(--muted); margin: 9px 0 0; }
.errorlist { padding-left: 18px; font-size: 12px; color: var(--negative); margin: 7px 0; }
.field-error input, .field-error textarea, .field-error select { border-color: var(--negative); }
.form-surface { max-width: 840px; }
.form-surface form > p { margin-bottom: 22px; }
.table-wrap { overflow: auto; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
th { padding: 13px 16px; font-size: 12px; font-weight: 550; color: var(--muted); white-space: nowrap; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
td { padding: 17px 16px; font-size: 13px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: var(--surface-soft); }
tr:last-child td { border-bottom: 0; }
td small { overflow-wrap: anywhere; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.two-col { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
.two-col > * { min-width: 0; }
.operation { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 17px 0; font-size: 13px; }
.operation:last-child { border-bottom: 0; }
.operation:hover { text-decoration: none; }
.operation .badge { margin-left: auto; }
.operation-leading { display: flex; align-items: center; gap: 13px; }
.operation-leading > .icon { color: var(--muted); }
.operation form { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 17px; }
.empty p { font-size: 13px; max-width: 380px; margin: 0 auto 20px; }
.empty p:last-child { margin-bottom: 0; }
.empty-icon { display: grid; place-items: center; background: var(--surface-soft); color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-panel); width: 48px; height: 48px; margin: 0 auto 18px; }
.empty.compact { padding: 24px 0; }
.wrap { overflow-wrap: anywhere; min-width: 0; }
.nowrap { white-space: nowrap; }
.separator { margin: 0 5px; color: var(--muted); }
code, pre { font: 12px/1.6 Consolas, monospace; }
code { overflow-wrap: anywhere; }
pre { padding: 16px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-control); max-height: 400px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
details[open] > summary { margin-bottom: 18px; }
details[open] > summary > .icon:last-child { transform: rotate(180deg); }
details > summary .icon { width: 16px; height: 16px; flex-basis: 16px; }
.meta-list { margin: 0; }
.meta-list dt, dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.meta-list dd, dd { margin: 0 0 18px; font-size: 13px; overflow-wrap: anywhere; }
.meta-list dd:last-child { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 10px; background: var(--surface); padding: 12px; z-index: var(--layer-tooltip); }
.auth-body { min-height: 100dvh; background: var(--canvas); }
.auth-shell { max-width: 460px; margin: 8vh auto; padding: 24px; }
.auth-brand { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 650; color: var(--ink); margin-bottom: 32px; }
.auth-panel { background: var(--surface); border: 1px solid var(--line); padding: 32px; border-radius: var(--radius-panel); }
.auth-panel h1 { font-size: 26px; }
.auth-panel p { font-size: 13px; }
.auth-panel button { margin-top: 8px; }
.auth-panel form > button { width: 100%; }
.auth-panel svg { max-width: 100%; height: auto; }
.auth-nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; margin-top: 20px; }
.auth-panel ul { padding-left: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .button, button, .icon-button { transition: transform .18s var(--ease-out), opacity .18s var(--ease-out); }
  .button:active, button:active:not(:disabled), .icon-button:active { transform: scale(.98); }
  main > .page-heading { animation: arrive .28s var(--ease-out) both; }
  .profile[open] .profile-menu, .mobile-menu[open] .mobile-menu-body { animation: arrive .18s var(--ease-out); }
  @keyframes arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 1024px) { .two-col { grid-template-columns: 1fr; gap: 0; } .context-note { flex-wrap: wrap; } }
@media (max-width: 640px) {
  h1 { font-size: 26px; } .page-heading { gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
  .surface { padding: 20px; } .section-heading { gap: 12px; flex-wrap: wrap; }
  .notice { padding: 14px; } .auth-shell { margin: 3vh auto; padding: 20px; } .auth-panel { padding: 24px; }
  .operation { align-items: flex-start; flex-wrap: wrap; } .operation form { width: 100%; }
  .context-note > .badge { margin-left: 0; } .context-note { align-items: flex-start; }
}
