@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root {
  --paper: #f6f7f3;
  --paper-deep: #eef0ea;
  --surface: #ffffff;
  --ink: #121412;
  --muted: #70766f;
  --muted-soft: #9da39b;
  --line: #dfe3dc;
  --line-strong: #cbd1c8;
  --accent: #1c7c5a;
  --accent-bright: #27a36f;
  --accent-soft: #e6f3ed;
  --warning: #bc741b;
  --warning-soft: #fff4e2;
  --shadow: 0 22px 60px rgba(19, 29, 21, 0.08);
  --radius: 12px;
  font-family: 'Manrope', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 30; top: 10px; left: 10px; padding: 9px 12px; border-radius: 5px; color: #fff; background: var(--ink); font-size: 11px; transform: translateY(-150%); transition: transform .2s ease-out; }
.skip-link:focus-visible { transform: none; }

.app-shell { min-height: 100vh; }
.auth-screen { min-height: 100vh; position: relative; display: grid; place-items: center; padding: 40px 20px; overflow: hidden; background: var(--paper); }
.auth-screen::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(21, 29, 23, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 29, 23, .028) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 78%); pointer-events: none; }
.auth-orbit { position: absolute; border: 1px solid rgba(28, 124, 90, .13); border-radius: 50%; pointer-events: none; }
.orbit-a { width: min(55vw, 700px); aspect-ratio: 1; top: -28%; left: -16%; }
.orbit-b { width: min(50vw, 600px); aspect-ratio: 1; right: -20%; bottom: -32%; border-color: rgba(188, 116, 27, .1); }
.auth-card { position: relative; width: min(100%, 490px); padding: 38px 42px 30px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 1; backdrop-filter: blur(10px); }
.auth-brand, .brand-link, .quick-header, .panel-heading, .modal-header { display: flex; align-items: center; }
.auth-brand { gap: 13px; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: var(--ink); border-radius: 7px; font-size: 14px; font-weight: 800; letter-spacing: -.04em; }
.large-mark { width: 42px; height: 42px; border-radius: 10px; font-size: 19px; }
.brand-name { display: block; color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.brand-name span { color: var(--accent); }
.brand-caption { display: block; margin-top: 2px; color: var(--muted-soft); font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .12em; }
.auth-rule { height: 1px; margin: 38px 0 31px; background: var(--line); }
.eyebrow { margin: 0; color: var(--accent); font-family: 'DM Mono', monospace; font-size: 10px; line-height: 1.5; letter-spacing: .12em; }
.auth-card h1 { margin: 12px 0 11px; font-size: clamp(28px, 4vw, 38px); line-height: 1.2; letter-spacing: -.06em; }
.auth-copy { max-width: 365px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.login-form { margin-top: 28px; }
.login-form label, .field label { display: block; margin-bottom: 8px; color: #4a514a; font-size: 12px; font-weight: 700; }
.input-wrap { position: relative; }
.input-wrap input, .field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink); background: var(--surface); outline: 0; transition: border-color .2s, box-shadow .2s; }
.input-wrap input { height: 48px; padding: 0 48px 0 15px; font-family: 'DM Mono', monospace; font-size: 14px; letter-spacing: .08em; }
.input-wrap input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(28, 124, 90, .12); }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; color: var(--muted); border-radius: 7px; background: transparent; transition: color .2s, background .2s; }
.icon-button:hover { color: var(--ink); background: var(--paper-deep); }
.icon-button svg { width: 16px; height: 16px; stroke-width: 1.8; }
.input-toggle { position: absolute; top: 7px; right: 7px; }
.login-error { min-height: 18px; margin: 8px 0 -1px; color: #b05240; font-size: 11px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 42px; border: 1px solid transparent; border-radius: 6px; padding: 0 16px; font-size: 12px; font-weight: 700; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.primary-button { color: white; background: var(--ink); box-shadow: 0 5px 12px rgba(18, 20, 18, .1); }
.primary-button:hover { background: #2d3530; transform: translateY(-1px); box-shadow: 0 8px 17px rgba(18, 20, 18, .16); }
.primary-button svg, .secondary-button svg { width: 15px; height: 15px; }
.login-button { width: 100%; margin-top: 4px; }
.auth-footer { display: flex; align-items: center; gap: 7px; margin-top: 28px; color: var(--muted-soft); font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .02em; }
.secure-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #2cae72; box-shadow: 0 0 0 3px rgba(44, 174, 114, .12); }
.auth-side-note { position: absolute; right: 34px; bottom: 29px; left: 34px; display: flex; justify-content: space-between; color: var(--muted-soft); font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .08em; }

.workspace { display: none; min-height: 100vh; }
.workspace.visible { display: block; animation: appear .45s ease-out; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.topbar { height: 65px; border-bottom: 1px solid var(--line); background: rgba(246, 247, 243, .88); backdrop-filter: blur(13px); }
.topbar-inner { width: min(100% - 56px, 1120px); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand-link { gap: 11px; }
.brand-lockup .brand-name { font-size: 13px; }
.topbar-right { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; }
.system-state { display: flex; align-items: center; gap: 7px; }
.topbar-divider { width: 1px; height: 18px; background: var(--line); }
.account-wrap { position: relative; }
.avatar-button { width: 28px; height: 28px; padding: 0; border: 1px solid #c9d3cb; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-size: 11px; font-weight: 800; }
.account-menu { position: absolute; z-index: 6; top: calc(100% + 10px); right: 0; width: 185px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 12px 30px rgba(19,29,21,.12); }
.account-menu-label { padding: 8px 9px 7px; color: var(--muted-soft); font-family: 'DM Mono', monospace; font-size: 9px; }
.account-menu button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px; border: 0; border-radius: 5px; color: var(--ink); background: transparent; font-size: 11px; text-align: left; }
.account-menu button:hover { color: var(--accent); background: var(--paper-deep); }
.account-menu button svg { width: 14px; height: 14px; color: var(--muted); }
.logout-button { width: 28px; height: 28px; }
.main-content { width: min(100% - 56px, 1120px); margin: 0 auto; }
.hero-section { min-height: 275px; display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 65px 0 50px; }
.hero-copy h1 { max-width: 720px; margin: 12px 0 14px; font-size: clamp(35px, 5.1vw, 62px); line-height: 1.12; letter-spacing: -.075em; font-weight: 800; }
.hero-description { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.hero-aside { width: 240px; flex: 0 0 240px; align-self: center; padding: 15px 0 13px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.aside-label { color: var(--muted); font-size: 11px; }
.aside-domain { margin: 7px 0 12px; font-family: 'DM Mono', monospace; font-size: 18px; font-weight: 500; letter-spacing: -.05em; }
.aside-meta { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 11px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.stat-cell { min-height: 89px; display: grid; grid-template-columns: auto 1fr; align-content: center; column-gap: 11px; padding: 17px 20px; border-right: 1px solid var(--line); }
.stat-cell:first-child { padding-left: 0; }
.stat-cell:last-child { border-right: 0; }
.stat-label { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.stat-cell strong { margin-top: 5px; font-family: 'DM Mono', monospace; font-size: 25px; letter-spacing: -.07em; }
.stat-cell .stat-text { font-family: 'Manrope', sans-serif; font-size: 18px; letter-spacing: -.04em; color: var(--accent); }
.stat-note { align-self: end; margin-bottom: 3px; color: var(--muted-soft); font-size: 10px; }
.server-status-section { padding-top: 50px; }
.server-status-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.server-status-heading h2 { margin: 6px 0 0; font-size: 19px; letter-spacing: -.05em; }
.server-status-actions { display: flex; align-items: center; gap: 12px; color: var(--muted-soft); font-family: 'DM Mono', monospace; font-size: 9px; }
.server-status-state { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); }
.server-status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(44, 174, 114, .1); }
.server-status-dot.loading { color: var(--warning); box-shadow: 0 0 0 3px rgba(188, 116, 27, .1); }
.server-status-dot.offline { color: #b05240; box-shadow: 0 0 0 3px rgba(176, 82, 64, .1); }
.server-status-actions .icon-button { width: 28px; height: 28px; border: 1px solid var(--line); background: var(--surface); }
.server-status-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.server-metric { min-height: 145px; padding: 17px 18px; border-right: 1px solid var(--line); background: rgba(255,255,255,.42); }
.server-metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.server-metric-label { font-size: 11px; }
.server-metric-top svg { width: 15px; height: 15px; color: var(--accent); }
.server-metric strong { display: block; overflow: hidden; margin-top: 19px; color: var(--ink); font-family: 'DM Mono', monospace; font-size: 22px; letter-spacing: -.07em; text-overflow: ellipsis; white-space: nowrap; }
.server-metric-note { display: block; overflow: hidden; margin-top: 6px; color: var(--muted-soft); font-family: 'DM Mono', monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.metric-bar { height: 3px; margin-top: 17px; overflow: hidden; border-radius: 3px; background: var(--paper-deep); }
.metric-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent-bright); transition: width .4s ease-out; }
.services-section { padding-top: 64px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-head h2, .panel-heading h2, .quick-header h2 { margin: 6px 0 0; font-size: 19px; letter-spacing: -.05em; }
.add-service-button { height: 38px; padding: 0 14px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 27px 0 17px; padding-bottom: 13px; border-bottom: 1px solid var(--line-strong); }
.search-field { position: relative; width: min(100%, 320px); display: flex; align-items: center; gap: 9px; }
.search-field svg { width: 15px; height: 15px; color: var(--muted); }
.search-field input { width: 100%; height: 30px; padding: 0 32px 0 0; border: 0; color: var(--ink); background: transparent; outline: none; font-size: 12px; }
.search-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.search-field input::placeholder { color: var(--muted-soft); }
.search-field kbd { position: absolute; right: 0; padding: 2px 5px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted-soft); background: var(--surface); font-family: 'DM Mono', monospace; font-size: 9px; }
.filter-tabs { display: flex; gap: 5px; }
.filter-tab { height: 29px; padding: 0 10px; border: 1px solid transparent; border-radius: 5px; color: var(--muted); background: transparent; font-size: 11px; transition: color .2s, background-color .2s, border-color .2s; }
.filter-tab:hover { color: var(--ink); background: var(--paper-deep); }
.filter-tab.active { border-color: var(--line-strong); color: var(--ink); background: var(--surface); font-weight: 700; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 260px; position: relative; display: flex; flex-direction: column; padding: 20px 20px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .45); transition: background .22s, transform .22s, box-shadow .22s; }
.service-card.stopped { border: 1px solid #d36a59; background: #fff8f6; }
.service-runtime-warning { display: flex; align-items: center; gap: 5px; margin: -4px 0 8px; color: #b74432; font-size: 10px; font-weight: 700; }
.service-runtime-warning svg { width: 14px; height: 14px; }
.service-card:hover { z-index: 1; background: var(--surface); box-shadow: 0 11px 28px rgba(19, 29, 21, .07); transform: translateY(-2px); }
.service-card-top { display: flex; align-items: center; justify-content: space-between; }
.service-index { color: var(--muted-soft); font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .08em; }
.service-menu { width: 27px; height: 27px; }
.service-menu svg { width: 15px; height: 15px; }
.service-icon { width: 36px; height: 36px; display: grid; place-items: center; margin-top: 19px; border-radius: 8px; color: var(--accent); background: var(--accent-soft); }
.service-icon svg { width: 17px; height: 17px; stroke-width: 1.7; }
.service-card h3 { margin: 17px 0 5px; font-size: 16px; letter-spacing: -.045em; }
.service-url { min-height: 28px; overflow-wrap: anywhere; color: var(--accent); font-family: 'DM Mono', monospace; font-size: 10px; line-height: 1.4; }
.service-expiry { margin-top: 6px; color: var(--muted-soft); font-family: 'DM Mono', monospace; font-size: 9px; }
.service-expiry.expired { color: #b05240; }
.service-fee { margin-top: 4px; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 9px; }
.service-fee.due { color: #9a5c1d; font-weight: 700; }
.service-metrics { display: flex; gap: 12px; margin-top: 8px; color: var(--muted-soft); font-family: 'DM Mono', monospace; font-size: 9px; }
.service-description { max-width: 270px; min-height: 36px; margin: 10px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.service-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.service-status { display: flex; align-items: center; gap: 6px; color: var(--accent); font-size: 10px; }
.service-status.paused { color: var(--warning); }
.service-status.expired { color: #b05240; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.service-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.service-control { border: 1px solid var(--line); background: transparent; color: var(--ink-soft); width: 30px; height: 30px; display: inline-grid; place-items: center; cursor: pointer; }
.service-control:hover { color: var(--ink); border-color: var(--ink-soft); }
.service-control.danger-control:hover { color: var(--danger); border-color: var(--danger); }
.visit-link, .edit-service { display: inline-flex; align-items: center; gap: 5px; height: 27px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--surface); font-size: 10px; }
.visit-link:hover, .edit-service:hover { border-color: var(--line-strong); color: var(--ink); }
.visit-link svg, .edit-service svg { width: 12px; height: 12px; }
.empty-state { padding: 60px 20px; border: 1px solid var(--line); border-top: 0; text-align: center; }
.empty-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 50%; color: var(--muted); background: var(--paper-deep); }
.empty-icon svg { width: 18px; }
.empty-state h3 { margin: 0; font-size: 15px; letter-spacing: -.03em; }
.empty-state p { margin: 7px 0 17px; color: var(--muted); font-size: 11px; }
.secondary-button { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.secondary-button:hover { border-color: var(--ink); background: var(--paper-deep); }
.bottom-section { display: grid; grid-template-columns: 1.8fr 1fr; gap: 58px; padding: 70px 0 80px; }
.panel-heading { justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--line-strong); }
.live-indicator { display: flex; align-items: center; gap: 6px; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 9px; }
.live-indicator span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-bright); }
.activity-item { display: flex; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.activity-icon { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 6px; color: var(--accent); background: var(--surface); }
.activity-icon svg { width: 13px; height: 13px; }
.activity-body { min-width: 0; flex: 1; }
.activity-title { margin: 0; color: #303630; font-size: 11px; }
.activity-meta { margin-top: 4px; color: var(--muted-soft); font-family: 'DM Mono', monospace; font-size: 9px; }
.quick-panel { align-self: start; padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.quick-header { gap: 11px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.quick-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 7px; color: var(--accent); background: var(--accent-soft); }
.quick-icon svg { width: 15px; }
.quick-actions { padding: 4px 0; }
.quick-action { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; font-size: 11px; text-align: left; }
.quick-action:last-child { border-bottom: 0; }
.quick-action span { display: flex; align-items: center; gap: 8px; }
.quick-action span svg, .quick-action > svg { width: 14px; height: 14px; color: var(--muted); }
.quick-action:hover { color: var(--accent); }
.quick-action:hover > svg { transform: translate(2px, -2px); color: var(--accent); }
.quick-foot { display: flex; align-items: center; gap: 7px; margin-top: 15px; color: var(--muted-soft); font-family: 'DM Mono', monospace; font-size: 9px; }
.site-footer { width: min(100% - 56px, 1120px); display: flex; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--muted-soft); font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .02em; }
.site-footer a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); }
.site-footer svg { width: 11px; height: 11px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(19, 27, 21, .28); backdrop-filter: blur(5px); animation: fade-in .2s ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(100%, 540px); max-height: calc(100vh - 40px); overflow: auto; overscroll-behavior: contain; padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 25px 90px rgba(17, 26, 18, .22); animation: modal-in .25s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.compact-modal { width: min(100%, 410px); }
.modal-header { align-items: flex-start; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 6px 0 0; font-size: 21px; letter-spacing: -.055em; }
.close-modal { margin-top: -5px; }
.service-form { padding-top: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 14px; }
.full-field { grid-column: 1 / -1; }
.field input, .field select { height: 40px; padding: 0 11px; font-size: 12px; }
.field textarea { min-height: 74px; padding: 10px 11px; resize: vertical; font-size: 12px; line-height: 1.5; }
.field label span { color: var(--muted-soft); font-weight: 400; }
.domain-input { display: flex; align-items: center; overflow: hidden; height: 40px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); }
.domain-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(28, 124, 90, .12); }
.domain-input input { height: 100%; min-width: 0; border: 0; box-shadow: none !important; }
.domain-input span { padding-right: 10px; color: var(--muted-soft); font-family: 'DM Mono', monospace; font-size: 10px; white-space: nowrap; }
.status-field { display: flex; align-items: center; justify-content: space-between; padding-top: 2px; }
.status-field > label:first-child { margin: 0; }
.switch-label { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; color: var(--muted) !important; font-weight: 500 !important; cursor: pointer; }
.switch-label input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 31px; height: 18px; border-radius: 20px; background: var(--line-strong); transition: background-color .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: white; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.switch-label input:checked + .switch { background: var(--accent); }
.switch-label input:checked + .switch::after { transform: translateX(13px); }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 25px; padding-top: 17px; border-top: 1px solid var(--line); }
.modal-actions-spacer { flex: 1; }
.danger-button { display: inline-flex; align-items: center; gap: 6px; height: 35px; padding: 0 8px; border: 0; color: #b05240; background: transparent; font-size: 11px; }
.danger-button:hover { color: #8f3929; }
.danger-button svg { width: 13px; height: 13px; }
.form-hint { min-height: 17px; margin: 10px 0 -7px; color: #b05240; font-size: 11px; }
.form-error { min-height: 17px; margin: 9px 0 -5px; color: #b05240; font-size: 11px; line-height: 1.5; }
.field-error { min-height: 17px; margin: 6px 0 -5px; color: #b05240; font-size: 11px; line-height: 1.5; }
.field-hint { margin: 7px 0 0; color: var(--muted-soft); font-size: 10px; line-height: 1.55; }
.field input[aria-invalid="true"] { border-color: #b05240; }
.field input:disabled { color: var(--muted); background: var(--paper-deep); cursor: not-allowed; }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 9px; min-width: 210px; padding: 12px 15px; border: 1px solid #c5ddcf; border-radius: 7px; color: #236646; background: #f0faf4; box-shadow: 0 10px 30px rgba(19, 29, 21, .13); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: none; }
.toast svg { width: 15px; height: 15px; }

@media (max-width: 880px) {
  .hero-section { align-items: flex-start; flex-direction: column; gap: 34px; padding-top: 50px; }
  .hero-aside { width: 100%; flex-basis: auto; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .bottom-section { grid-template-columns: 1fr; gap: 42px; }
  .server-status-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .topbar-inner, .main-content, .site-footer { width: min(100% - 36px, 1120px); }
  .topbar { height: 60px; }
  .topbar-right { gap: 9px; }
  .system-state, .topbar-divider { display: none; }
  .brand-caption { display: none; }
  .hero-section { min-height: 0; padding: 44px 0 37px; }
  .hero-copy h1 { font-size: clamp(32px, 10.4vw, 45px); }
  .hero-description { font-size: 12px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-cell, .stat-cell:first-child { padding: 14px 14px; }
  .stat-cell:nth-child(2) { border-right: 0; }
  .stat-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .services-section { padding-top: 47px; }
  .server-status-section { padding-top: 42px; }
  .server-status-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .server-status-actions { width: 100%; justify-content: space-between; }
  .server-status-grid { grid-template-columns: 1fr; }
  .server-metric { min-height: 125px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .add-service-button { width: 100%; }
  .toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .search-field { width: 100%; }
  .filter-tabs { overflow-x: auto; }
  .filter-tab { white-space: nowrap; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 238px; }
  .bottom-section { padding: 50px 0 56px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 9px; }
  .auth-card { padding: 30px 25px 25px; }
  .auth-rule { margin: 31px 0 26px; }
  .auth-side-note { right: 20px; bottom: 18px; left: 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .full-field { grid-column: auto; }
  .modal { padding: 22px 18px; }
}

:where(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
html { scroll-padding-top: 75px; }
body { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.stat-cell strong, .server-metric strong { font-variant-numeric: tabular-nums; }
.secure-dot.state-offline { background: #b05240; box-shadow: 0 0 0 3px rgba(176,82,64,.12); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
