:root { --ink: #142033; --muted: #66748a; --line: #d9e0e8; --surface: #ffffff; --canvas: #f5f7fa; --navy: #101b2d; --teal: #087f70; --teal-bright: #34c2ae; --danger: #aa3541; }
html, body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
a { color: #086e77; }
h1, h2, h3, p { margin-top: 0; }
h1:focus { outline: none; }
h1 { font-size: clamp(2.1rem, 4.2vw, 4.25rem); line-height: 1.02; letter-spacing: -.055em; font-weight: 750; }
h2 { font-size: 1.15rem; letter-spacing: -.02em; }
code, .code-input { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
button, input, select, textarea { font: inherit; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.65rem; padding: .58rem 1rem; border: 1px solid transparent; border-radius: .38rem; font-weight: 680; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.btn:focus-visible, .form-control:focus, .form-select:focus { outline: 3px solid rgba(8,127,112,.25); outline-offset: 2px; box-shadow: none; }
.btn-primary { color: white; background: var(--teal); border-color: var(--teal); }
.btn-primary:hover { color: white; background: #066a5e; }
.btn-quiet { color: #344257; background: white; border-color: var(--line); }
.btn-quiet:hover { background: #eef2f6; }
.btn-danger-quiet { color: var(--danger); background: transparent; border-color: transparent; }
.btn-danger-quiet:hover { background: #fff0f1; }
.hero-block { display: grid; grid-template-columns: 4.5rem minmax(0, 54rem); gap: 2rem; align-items: start; padding-top: clamp(2rem, 8vh, 6rem); }
.status-mark { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border: 1px solid #a9e1d8; border-radius: 50%; background: #e4f7f3; }
.status-mark span { width: .9rem; height: .9rem; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 .4rem rgba(8,127,112,.12); }
.status-line { margin-bottom: 1.5rem; color: var(--teal); font-weight: 700; }
.hero-copy { max-width: 41rem; margin: 1.8rem 0; color: var(--muted); font-size: 1.15rem; line-height: 1.65; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.endpoint-strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; margin-top: clamp(4rem, 10vw, 8rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.endpoint-strip div { padding: 1.35rem 1.2rem; border-right: 1px solid var(--line); min-width: 0; }
.endpoint-strip div:first-child { padding-left: 0; }.endpoint-strip div:last-child { border-right: 0; }
.endpoint-strip span { display: block; margin-bottom: .4rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
.endpoint-strip code { display: block; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.page-heading { display: flex; align-items: start; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.page-heading h1 { margin-bottom: .65rem; font-size: clamp(2rem, 3.5vw, 3.4rem); }.page-heading p { color: var(--muted); }
.editor-panel, .data-panel { margin-bottom: 1.5rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); }
.editor-panel { padding: clamp(1.25rem, 3vw, 2rem); }.compact-panel { margin: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }.section-heading h2 { margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }.field-wide { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 720; }.field-help { color: var(--muted); font-size: .8rem; }
.form-control, .form-select { width: 100%; min-height: 2.75rem; padding: .6rem .72rem; border: 1px solid #b9c4d0; border-radius: .35rem; background: white; color: var(--ink); }
.secret-control { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .4rem; }.secret-control .btn { min-height: 2.75rem; }.secret-visibility { min-width: 4.25rem; }
textarea.form-control { min-height: 5.5rem; }.form-actions { display: flex; justify-content: flex-end; margin-top: .6rem; }
.notice { margin-bottom: 1rem; padding: .85rem 1rem; border-left: 4px solid; background: white; }.notice-success { border-color: var(--teal); }.notice-error { border-color: var(--danger); color: #761f29; }
.admin-table { width: 100%; border-collapse: collapse; }.admin-table th, .admin-table td { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }.admin-table th { color: var(--muted); font-size: .78rem; font-weight: 750; }.admin-table tr:last-child td { border-bottom: 0; }.admin-table td > code { display: block; margin-top: .25rem; color: #42526a; font-size: .8rem; }
.type-badge { display: inline-block; padding: .22rem .5rem; border-radius: 2rem; background: #eaf0f5; color: #415169; font-size: .75rem; }.uri-list code { display: block; max-width: 24rem; overflow: hidden; text-overflow: ellipsis; }.row-actions { white-space: nowrap; text-align: right !important; }.row-actions .btn { min-height: 2rem; padding: .35rem .5rem; font-size: .82rem; }
.table-toolbar { display: flex; align-items: center; gap: 1rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }.search-input { max-width: 24rem; }.result-count { margin-left: auto; color: var(--muted); font-size: .82rem; white-space: nowrap; }.secondary-value { display: block; margin-top: .25rem; color: var(--muted); font-size: .82rem; }.status-badge { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 680; }.status-badge span { width: .5rem; height: .5rem; border-radius: 50%; }.status-active span { background: var(--teal); }.status-disabled { color: var(--muted); }.status-disabled span { background: #8995a5; }.optional-label { color: var(--muted); font-size: .78rem; font-weight: 500; }.toggle-field { display: grid; grid-template-columns: auto 1fr; column-gap: .65rem; align-items: center; }.toggle-field .field-help { grid-column: 2; }.toggle-field .form-check-input { margin: 0; }
.empty-state, .state-message { padding: 4rem 2rem; text-align: center; }.empty-state p, .state-message { color: var(--muted); }.split-layout { display: grid; grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr); gap: 1.5rem; align-items: start; }.validation-message { color: var(--danger); }
.login-shell { max-width: 30rem; margin: clamp(2rem, 10vh, 7rem) auto 0; }.login-shell h1 { font-size: 2.4rem; }.login-shell .hero-copy { margin: 0 0 1.5rem; font-size: 1rem; }
.registration-shell { margin-top: clamp(1.5rem, 6vh, 4rem); }.auth-switch { margin: 1.4rem 0 0; padding-top: 1.15rem; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }.auth-switch a { font-weight: 700; }.password-guidance { margin: -.2rem 0 1rem; line-height: 1.5; }
.checkbox { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }.checkbox .form-label { margin: 0; }.forgot-password-link { font-size: .9rem; font-weight: 650; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.valid.modified:not([type=checkbox]) { border-color: var(--teal); }.invalid { border-color: var(--danger); }
@media (max-width: 900px) { .split-layout { grid-template-columns: 1fr; }.endpoint-strip { grid-template-columns: 1fr; }.endpoint-strip div { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }.endpoint-strip div:last-child { border-bottom: 0; } }
@media (max-width: 640px) { .hero-block { grid-template-columns: 1fr; gap: 1.2rem; }.status-mark { width: 3.25rem; height: 3.25rem; }.form-grid { grid-template-columns: 1fr; }.field-wide { grid-column: auto; }.toggle-field .field-help { grid-column: 2; }.secret-control { grid-template-columns: minmax(0, 1fr) auto; }.secret-control .form-control { grid-column: 1 / -1; }.page-heading { display: block; }.page-heading .btn { width: 100%; }.table-toolbar { align-items: stretch; flex-direction: column; }.search-input { max-width: none; }.result-count { margin-left: 0; }.table-responsive { overflow-x: auto; }.admin-table { min-width: 46rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
