:root {
  color-scheme: light;
  font: 15px/1.55 Inter, "Segoe UI", system-ui, sans-serif;
  color: #24211c;
  background: #f8f8f6;
  --ink: #24211c;
  --muted: #5e584e;
  --line: #e6e3db;
  --surface: #fff;
  --accent: #f5c24a;
  --dark: #201c17;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; }
h1, h2, p, dl, dd { margin: 0; }
h1 { font-size: clamp(1.85rem, 5vw, 2.65rem); line-height: 1.18; letter-spacing: -.038em; overflow-wrap: anywhere; }
h2 { font-size: 1.14rem; }
p { color: var(--muted); }
:focus-visible { outline: 3px solid #936310; outline-offset: 3px; }

.skip { position: fixed; z-index: 2; left: 10px; top: 8px; transform: translateY(-200%); padding: 9px 14px; background: white; }
.skip:focus { transform: none; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 680; white-space: nowrap; }
.mark { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: #15110c; }
.mark img { width: 21px; height: 21px; }
.access { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.access-main { display: grid; place-items: center; min-width: 0; padding: 42px 28px; }
.access-inner { width: min(100%, 390px); }
.access-inner .brand { margin-bottom: 44px; }
.access h1 { margin-bottom: 10px; }
.access form { margin-top: 22px; }
.access .primary { width: 100%; margin-top: 8px; }
.account-link { font-size: .9rem; margin-top: 15px; }
.access-aside { background: var(--dark); color: #fcfaf4; display: grid; place-items: center; padding: 48px 30px; }
.aside-inner { width: min(100%, 342px); }
.aside-label { color: var(--accent); font-size: .84rem; margin-bottom: 14px; }
.access-aside h2 { font-size: clamp(1.55rem, 3.6vw, 2.65rem); max-width: 460px; line-height: 1.22; letter-spacing: -.035em; margin-bottom: 26px; }
.access-aside dl div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #524a3c; padding: 12px 0; }
.access-aside dt { color: #dbd2c1; }

label { display: block; font-size: .9rem; font-weight: 650; margin-bottom: 6px; }
input:not([type="hidden"]) { width: 100%; padding: 10px 12px; min-height: 44px; background: white; border: 1px solid #c4beb1; border-radius: 7px; }
.button { display: inline-flex; align-items: center; justify-content: center; background: white; color: var(--ink); border: 1px solid #d6d1c6; border-radius: 8px; padding: 9px 15px; font-weight: 650; min-height: 44px; cursor: pointer; }
.button:hover { background: #efede8; }
.button.primary { background: var(--dark); color: white; border-color: var(--dark); }
.button.primary:hover { background: #463926; }
.button.compact { min-height: 38px; font-size: .86rem; white-space: nowrap; }
.alert { border: 1px solid #dfb892; background: #fff3e8; color: #742e16; border-radius: 8px; margin: 14px 0; padding: 12px 14px; }

.console-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; min-height: 66px; padding: 10px clamp(14px, 4vw, 40px); border-bottom: 1px solid var(--line); background: white; }
.console-bar nav { margin-inline-start: 5px; }
.console-bar nav a { color: var(--muted); }
.identity { display: flex; align-items: center; margin-inline-start: auto; gap: 12px; }
.account { color: var(--muted); font-size: .87rem; overflow-wrap: anywhere; }
.main { max-width: 1080px; margin: 0 auto; padding: 33px clamp(14px, 5vw, 42px); }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 19px; }
.back { display: inline-block; margin-bottom: 12px; font-size: .91rem; color: var(--muted); }
.chip { display: inline-block; border-radius: 999px; padding: 3px 9px; background: #f3ecda; color: #62480f; font-size: .81rem; font-weight: 650; white-space: nowrap; }
.chip.success { background: #e7f4ec; color: #205641; }
.panel, .workspace-card { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; margin: 0 0 14px; padding: 20px; }
.panel p { margin-top: 5px; }
.panel form { max-width: 440px; margin-top: 16px; }
.panel .button { margin-top: 10px; }
.workspace-list { list-style: none; padding: 0; margin: 0; }
.workspace-card { display: flex; gap: 10px; justify-content: space-between; align-items: center; text-decoration: none; overflow-wrap: anywhere; }
.workspace-card:hover { border-color: #9b7a40; }
.caption { display: block; color: var(--muted); font-size: .88rem; }
.workspace-state div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.workspace-state dt { color: var(--muted); }

.workspace-context { margin-top: 4px; font-size: .9rem; }
.workspace-tabs, .segments { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 17px; }
.workspace-tabs { border-bottom: 1px solid var(--line); }
.workspace-tabs a, .segments a { padding: 9px 12px; color: var(--muted); text-decoration: none; }
.workspace-tabs a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px #9b7130; font-weight: 680; }
.segments a { border: 1px solid var(--line); border-radius: 8px; font-size: .86rem; }
.segments a[aria-current="page"] { background: #f3ecda; color: #62480f; border-color: #e8d8b1; font-weight: 680; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: #f8f7f3; font-size: .82rem; color: var(--muted); }
td { overflow-wrap: anywhere; }
td a { font-weight: 630; }
.more { display: inline-block; margin-top: 12px; }
.context-list { padding-left: 20px; margin-top: 8px; }
.context-list li { padding-bottom: 10px; }
.panel h3 { margin: 15px 0 6px; }
select { display: block; min-height: 42px; max-width: 100%; width: 100%; font: inherit; color: var(--ink); padding: 6px 10px; border-radius: 7px; border: 1px solid #c4beb1; background: white; }
fieldset { padding: 13px; margin: 14px 0; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
legend { padding: 0 5px; font-weight: 670; }
.panel .policy-form { max-width: 680px; }
.choice input[type="checkbox"] { width: auto; min-height: auto; }
.signal-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.panel .inline-form, .panel .inline-form .button { margin: 0; }
.button.danger { color: #882f23; }
.button:disabled { opacity: .48; cursor: default; }
.chip.neutral { background: #eeede8; color: #3c392f; }
.secret { padding: 12px; border: 1px solid #e8d8b1; border-radius: 8px; background: #f8f3e6; white-space: pre-wrap; overflow-wrap: anywhere; }
.workspace-state div { overflow-wrap: anywhere; }
.support-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.panel .staff-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; max-width: none; }
.staff-form div:first-of-type { flex: 1 1 215px; }
.staff-form input[type="number"] { max-width: 135px; }
.panel .staff-form .button { margin: 0; }
.staff-identifier { overflow-wrap: anywhere; }
.access-aside p:not(.aside-label) { color: #dbd2c1; }

.setup-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; padding: 0; }
.setup-steps a { display: block; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; text-decoration: none; }
.setup-steps a:hover { border-color: #9b7a40; }
.setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.setup-actions, .setup-link { margin: 12px 0; }
.setup-actions a, .setup-link { text-decoration: none; }
.backend-form select { width: auto; min-width: min(100%, 180px); flex: 1; }
.backend-form .button { margin-top: 0; }
.success-text { color: #205641; font-weight: 650; }
.field-note { font-size: .89rem; margin: 4px 0; }
.instruction-list { padding-left: 19px; }
.instruction-list li { margin-bottom: 9px; }
.example { padding: 12px; border-radius: 8px; background: #f1eee5; white-space: pre-wrap; overflow-wrap: anywhere; }
textarea { display: block; width: 100%; font: inherit; padding: 8px 10px; border: 1px solid #c4beb1; border-radius: 7px; }

@media (max-width: 660px) {
  .setup-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-grid { grid-template-columns: minmax(0, 1fr); }
  .access { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .access-main { padding: 32px 18px; }
  .access-inner .brand { margin-bottom: 24px; }
  .access-aside { padding: 26px 18px; }
  .aside-inner { width: min(100%, 390px); }
  .console-bar { gap: 10px; }
  .identity { flex: 1 1 100%; justify-content: space-between; }
}
