:root {
  color-scheme: light;
  --oat: #f6f1e7;
  --espresso: #392a22;
  --roast: #a36847;
  --sage: #8b9b79;
  --white: #fffdf8;
  --rule: #ded3c4;
  --body-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display-font: Georgia, "Times New Roman", serif;
  --field-font: Consolas, "Courier New", monospace;
}
.admin-page { min-width: 320px; margin: 0; background: var(--oat); color: var(--espresso); font-family: var(--body-font); font-size: 14px; line-height: 1.5; font-synthesis: none; text-rendering: optimizeLegibility; }
.admin-page *, .admin-page *::before, .admin-page *::after { box-sizing: border-box; }
.admin-page [hidden] { display: none !important; }
.admin-page button, .admin-page input, .admin-page select { font: inherit; }
.admin-page button, .admin-page a, .admin-page input, .admin-page select { -webkit-tap-highlight-color: transparent; }
.admin-page :focus-visible { outline: 3px solid #71825e; outline-offset: 4px; }
.admin-page button { cursor: pointer; }
.admin-page button:disabled, .admin-page input:disabled, .admin-page select:disabled { cursor: default; opacity: .6; }
.admin-page a { color: inherit; }
.admin-header { display: flex; width: min(100% - 80px, 1120px); min-height: 84px; align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto; border-bottom: 1px solid var(--rule); }
.admin-brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 12px; color: var(--espresso); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-decoration: none; }
.admin-brand > span:last-child { display: flex; align-items: baseline; gap: 8px; }
.admin-brand small { color: #786755; font-family: var(--field-font); font-size: 9px; font-weight: 400; letter-spacing: .04em; }
.admin-bean { position: relative; display: inline-grid; width: 34px; height: 34px; place-items: center; border: 1px solid #92765e; border-radius: 50%; }
.admin-bean::before { width: 12px; height: 19px; border: 1.5px solid var(--roast); border-radius: 60% 42% 58% 42%; content: ""; transform: rotate(34deg); }
.admin-bean::after { position: absolute; width: 1px; height: 14px; background: var(--roast); content: ""; transform: rotate(34deg); }
.admin-nav { display: flex; align-items: center; gap: 24px; font-size: 12px; }
.admin-nav a { padding: 9px 0; color: #6d5d4f; text-decoration: none; }
.admin-nav a[aria-current="page"] { color: var(--espresso); font-weight: 700; box-shadow: 0 2px 0 var(--roast); }
.admin-nav a:hover, .text-button:hover, .quiet-button:hover { color: #583921; }
.quiet-button { min-height: 36px; padding: 7px 13px; border: 1px solid #c9b59e; border-radius: 24px; background: transparent; color: #6d4b35; font-size: 12px !important; }
.admin-main { width: min(100% - 80px, 1080px); margin: 52px auto 0; }
.page-intro { margin-bottom: 26px; }
.admin-eyebrow, .section-kicker, .header-caption { margin: 0 0 15px; color: #80674f; font-family: var(--field-font); font-size: 10px; font-weight: 400; letter-spacing: .11em; }
.admin-page h1 { margin: 0; font-family: var(--display-font); font-size: clamp(40px, 5vw, 60px); font-weight: 400; line-height: 1.06; letter-spacing: -.045em; }
.admin-page h1 em { color: var(--roast); font-weight: 400; }
.page-intro > p:last-child { margin: 17px 0 0; color: #706255; line-height: 1.7; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 294px; align-items: start; gap: 32px; }
.settings-form { min-width: 0; }
.settings-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.settings-section { padding: 30px; border: 1px solid var(--rule); background: var(--white); }
.settings-section + .settings-section { margin-top: 20px; }
.section-heading { margin-bottom: 25px; }
.section-kicker { margin-bottom: 8px; font-size: 9px; }
.admin-page h2 { margin: 0; font-family: var(--display-font); font-size: 27px; font-weight: 400; letter-spacing: -.025em; line-height: 1.2; }
.section-heading > p:last-child { max-width: 480px; margin: 10px 0 0; color: #756557; font-size: 12px; line-height: 1.7; }
.mode-options { min-width: 0; margin: 0; padding: 0; border: 0; }
.mode-options legend, .field-block > label, .field-block > div > label, .field-heading > label { margin-bottom: 9px; padding: 0; color: #4c392a; font-size: 12px; font-weight: 600; }
.mode-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px 15px; border: 1px solid var(--rule); background: #fcf9f2; cursor: pointer; }
.mode-option + .mode-option { margin-top: 8px; }
.mode-option:has(input:checked) { border-color: #a18b73; background: #f1eade; box-shadow: inset 3px 0 0 var(--roast); }
.mode-option input { width: 16px; height: 16px; flex: 0 0 auto; margin: 2px 0 0; accent-color: #805638; }
.mode-option strong { display: block; font-size: 13px; font-weight: 600; }
.mode-option small { display: block; margin-top: 3px; color: #756557; font-size: 11px; line-height: 1.6; }
.model-field { margin-top: 23px; }
.field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.field-heading > label { margin: 0; }
.admin-page input:not([type="radio"]), .admin-page select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cdbca6; border-radius: 2px; background: var(--white); color: var(--espresso); }
.admin-page select { padding-right: 30px; font-size: 12px; text-overflow: ellipsis; }
.admin-page input:not([type="radio"]):focus, .admin-page select:focus { border-color: #8d684a; }
.field-help { margin: 7px 0 0; color: #776656; font-size: 11px; line-height: 1.6; }
.field-help.is-error { color: #8a392d; }
.field-block > label { display: block; }
.ratio-field { display: grid; grid-template-columns: minmax(0, 1fr) 84px; align-items: center; gap: 20px; margin-top: 27px; }
.ratio-field .field-help { max-width: 340px; margin-top: 4px; }
.number-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 23px 20px; }
.number-fields > .field-block:last-child { grid-column: 1 / -1; }
.number-fields > .field-block:last-child input { max-width: 145px; }
.label-unit { color: #776656; font-weight: 400; }
.rebuild-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px dashed #d9c7b3; color: #7a5b40; }
.rebuild-note > span { font-size: 24px; line-height: 1; }
.rebuild-note p { margin: 0; font-size: 11px; line-height: 1.7; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }
.form-actions p { margin: 0; color: #776656; font-size: 11px; }
.primary-button { display: inline-flex; min-height: 45px; align-items: center; justify-content: space-between; gap: 30px; padding: 12px 19px; border: 1px solid #825137; border-radius: 2px; background: #8d583c; color: var(--white); font-size: 12px !important; font-weight: 600 !important; transition: background .15s ease; }
.primary-button:not(:disabled):hover { background: #70432c; }
.primary-button > span { font-size: 17px; font-weight: 400; }
.text-button { min-height: 32px; padding: 3px 0; border: 0; background: transparent; color: #855137; font-size: 11px !important; text-decoration: underline; text-underline-offset: 3px; }
#retry-settings { margin: -3px 0 20px; }
.notice { margin: 0 0 20px; padding: 12px 15px; border: 1px solid #d6c6ae; background: #eee7d9; color: #675440; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.notice--error { border-color: #d3ac9f; background: #fbefea; color: #813c30; }
.notice--success { border-color: #bdc5ae; background: #edf0e6; color: #4f6243; }
.notice--warning { border-color: #d6bfa1; background: #f6eddd; color: #78583a; }
.model-field .notice { margin: 13px 0 0; font-size: 11px; }
.admin-page code { font-family: var(--field-font); font-size: .95em; }
.live-panel { position: sticky; top: 25px; min-width: 0; padding: 25px; border: 1px solid #d5c6ae; background: #eee8da; }
.live-panel::before { position: absolute; top: -1px; left: 25px; width: 45px; height: 3px; background: var(--sage); content: ""; }
.live-panel__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live-panel__heading .section-kicker { margin: 0 0 14px; font-size: 8px; }
.live-indicator { width: 6px; height: 6px; margin-bottom: 14px; border-radius: 50%; background: #778861; box-shadow: 0 0 0 4px rgb(139 155 121 / 15%); }
.live-panel h2 { font-size: 25px; }
.live-description { margin: 11px 0 23px; color: #74614e; font-size: 11px; line-height: 1.7; }
.active-details { margin: 0; }
.active-details > div { padding: 11px 0; border-top: 1px solid #d9ccb9; }
.active-details dt { color: #7d6955; font-family: var(--field-font); font-size: 9px; }
.active-details dd { margin: 4px 0 0; color: #4d3a29; font-size: 12px; overflow-wrap: anywhere; }
.provider-status { display: flex; align-items: flex-start; gap: 9px; margin-top: 21px; padding-top: 18px; border-top: 1px solid #d9ccb9; }
.provider-dot { width: 6px; height: 6px; flex: 0 0 auto; margin-top: 6px; border-radius: 50%; background: #a38b71; }
.provider-dot.is-configured { background: #78875f; }
.provider-status strong { font-size: 11px; font-weight: 600; }
.provider-status p { margin: 3px 0 0; color: #74614e; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.update-panel { margin: 22px -25px 0; padding: 18px 25px; border-top: 1px solid #d9ccb9; border-bottom: 1px solid #d9ccb9; background: #e5e7da; }
.update-panel.is-indexing { background: #f0e2ca; }
.update-panel.is-failed { background: #f0ded4; }
.update-label { color: #4f6042; font-family: var(--field-font); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.is-indexing .update-label { color: #80603a; }
.is-failed .update-label { color: #853e30; }
.update-panel p { margin: 6px 0 0; color: #605a48; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.update-panel .task-reference { color: #786451; font-family: var(--field-font); font-size: 9px; }
.live-footnote { margin: 15px 0 0; color: #7e6c59; font-size: 10px; }
.admin-footer { display: flex; justify-content: space-between; gap: 20px; margin: 45px 0 0; padding: 22px 0 25px; border-top: 1px solid var(--rule); color: #8a7764; font-family: var(--field-font); font-size: 8px; letter-spacing: .05em; }
.skip-link { position: absolute; z-index: 10; top: 10px; left: 15px; padding: 10px; transform: translateY(-150%); background: var(--white); }
.skip-link:focus { transform: translateY(0); }
.admin-page noscript { display: block; padding: 20px; background: #fbefea; color: #813c30; text-align: center; }
.login-page { display: flex; min-height: 100vh; min-height: 100dvh; flex-direction: column; }
.header-caption { margin: 0; font-size: 9px; }
.login-main { display: grid; width: min(100% - 80px, 980px); flex: 1; grid-template-columns: 1fr minmax(0, 410px); align-content: center; align-items: center; gap: 75px; margin: 0 auto; padding: 55px 0; }
.login-intro h1 { font-size: clamp(60px, 7vw, 87px); line-height: .94; letter-spacing: -.05em; }
.login-intro .admin-eyebrow { margin-bottom: 26px; font-size: 9px; }
.login-intro > p:not(.admin-eyebrow) { max-width: 335px; margin: 28px 0 0; color: #756353; font-size: 13px; line-height: 1.9; }
.login-note { display: flex; align-items: center; gap: 10px; margin-top: 31px; color: #6c785a; font-family: var(--display-font); font-size: 14px; font-style: italic; }
.note-rule { width: 25px; height: 1px; background: #8b9b79; }
.login-card { padding: 36px; border: 1px solid #d9c8b2; background: var(--white); box-shadow: 8px 8px 0 #e9e1d2; }
.login-card h2 { font-size: 32px; }
.login-description { margin: 14px 0 23px; color: #766354; font-size: 12px; line-height: 1.7; }
.login-card .field-block + .field-block { margin-top: 20px; }
.login-card .primary-button { width: 100%; margin-top: 26px; }
.admin-page .code-input { max-width: 210px; font-family: var(--field-font); font-size: 21px; letter-spacing: .25em; }
.code-input::placeholder { color: #b6a691; opacity: 1; }
.login-footnote { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); color: #897764; font-size: 10px; }
.login-footer { width: min(100% - 80px, 1120px); margin: 0 auto; }
.setup-panel h3 { margin: 0; font-size: 15px; font-weight: 600; }
.setup-panel p { color: #766354; font-size: 12px; line-height: 1.7; }
.setup-panel pre { max-width: 100%; padding: 13px; border: 1px solid var(--rule); background: #f1ebdf; color: #5c4432; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; line-height: 1.7; }
.demo-admin-nav { display: flex; align-items: center; gap: 12px; }
.demo-admin-nav a, .demo-admin-nav button { min-height: 34px; padding: 8px 0; border: 0; background: transparent; color: #735039; font: 10px var(--body-font); text-decoration: none; cursor: pointer; }
.demo-admin-nav a:hover, .demo-admin-nav button:hover { text-decoration: underline; text-underline-offset: 3px; }
.demo-admin-nav button:disabled { opacity: .5; cursor: default; }
@media (max-width: 900px) {
  .admin-header, .admin-main { width: calc(100% - 48px); }
  .settings-layout { grid-template-columns: minmax(0, 1fr) 255px; gap: 20px; }
  .settings-section { padding: 23px; }
  .live-panel { padding: 22px; }
  .update-panel { margin-right: -22px; margin-left: -22px; padding-right: 22px; padding-left: 22px; }
  .number-fields { grid-template-columns: 1fr; gap: 18px; }
  .number-fields input { max-width: 145px; }
  .login-main { gap: 40px; width: calc(100% - 64px); grid-template-columns: minmax(0, 1fr) minmax(0, 370px); }
  .login-card { padding: 28px; }
}
@media (max-width: 700px) {
  .admin-header { width: calc(100% - 36px); min-height: 76px; flex-wrap: wrap; gap: 12px; padding: 18px 0; }
  .admin-brand { font-size: 11px; }
  .admin-brand small { font-size: 8px; }
  .admin-nav { width: 100%; justify-content: space-between; gap: 14px; font-size: 11px; }
  .admin-nav .quiet-button { min-height: 33px; font-size: 11px !important; }
  .admin-main { width: calc(100% - 36px); margin-top: 32px; }
  .page-intro { margin-bottom: 23px; }
  .page-intro > p:last-child { max-width: 380px; font-size: 12px; }
  .settings-layout { grid-template-columns: 1fr; }
  .live-panel { position: static; }
  .settings-section { padding: 23px 20px; }
  .number-fields { grid-template-columns: 1fr 1fr; }
  .number-fields input { max-width: none; }
  .form-actions { align-items: flex-start; flex-direction: column-reverse; gap: 12px; }
  .form-actions .primary-button { width: 100%; }
  .form-actions p { align-self: center; }
  .admin-footer { margin-top: 30px; font-size: 7px; }
  .admin-footer > span:last-child { max-width: 190px; text-align: right; }
  .login-main { width: min(100% - 44px, 430px); grid-template-columns: 1fr; gap: 32px; padding: 36px 0; }
  .login-intro h1 { font-size: 60px; }
  .login-intro h1 br { display: none; }
  .login-intro > p:not(.admin-eyebrow) { max-width: none; margin-top: 19px; font-size: 12px; line-height: 1.8; }
  .login-intro .admin-eyebrow { margin-bottom: 17px; font-size: 8px; }
  .login-note { display: none; }
  .login-card { padding: 26px; box-shadow: 5px 5px 0 #e9e1d2; }
  .login-footer { width: calc(100% - 36px); margin: 0 auto; }
  .header-caption { font-size: 8px; }
  .demo-page .topbar { min-height: 61px; height: auto; flex-wrap: wrap; gap: 7px; padding-top: 12px; padding-bottom: 12px; }
  .demo-page .topbar__actions { flex-wrap: wrap; gap: 12px; }
  .demo-page .topbar__status, .demo-page .topbar__divider { display: none; }
}
@media (max-width: 380px) {
  .number-fields { grid-template-columns: 1fr; }
  .ratio-field { gap: 12px; grid-template-columns: minmax(0, 1fr) 76px; }
  .login-card { padding: 22px; }
  .header-caption { display: none; }
  .admin-brand small { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) { .admin-page *, .admin-page *::before, .admin-page *::after { scroll-behavior: auto !important; transition: none !important; } }
