:root {
  color-scheme: dark;
  --bg: #090c10;
  --surface: rgba(29, 34, 41, .72);
  --surface-strong: rgba(36, 41, 49, .92);
  --glass: rgba(38, 43, 51, .58);
  --text: #f4f6f7;
  --muted: #a4abb4;
  --quiet: #7e8791;
  --line: rgba(225, 236, 247, .12);
  --line-bright: rgba(241, 247, 255, .22);
  --green: #92d5b1;
  --red: #f0a3a3;
  --yellow: #e5c994;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 42% at 12% -8%, rgba(109, 127, 146, .18), transparent 70%),
    radial-gradient(ellipse 55% 34% at 100% 100%, rgba(70, 104, 115, .11), transparent 75%),
    var(--bg);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible,
summary:focus-visible { outline: 2px solid #c9e6ef; outline-offset: 2px; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.app { width: min(100%, 1120px); min-height: 100vh; margin: auto; padding: calc(12px + var(--safe-top)) 16px calc(114px + var(--safe-bottom)); }
.topline {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  height: 56px;
  margin-bottom: 17px;
}
.round-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .055);
  transition: transform .18s ease, background-color .18s ease;
}
.round-btn svg { width: 21px; height: 21px; }
.round-btn:active { transform: scale(.94); background: rgba(255, 255, 255, .12); }
.wordmark { justify-self: center; text-align: center; line-height: 1.1; }
.wordmark strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.065em; }
.wordmark strong span { color: #a6b5bd; }
.wordmark small { display: block; margin-top: 3px; color: var(--quiet); font-size: 10px; letter-spacing: .03em; }
.rail { display: none; }

.glass, .modal, .dock, .profile-pill, .hero {
  background: linear-gradient(135deg, rgba(72, 80, 90, .28), rgba(27, 31, 38, .67) 48%, rgba(43, 48, 57, .52));
  border: 1px solid var(--line-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 20px 50px rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  backdrop-filter: blur(20px) saturate(130%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .modal, .dock, .profile-pill, .hero { background: #222832; }
}
.screen { animation: screen-in .25s cubic-bezier(.2,.8,.2,1) both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.kicker { display: inline-block; color: #aeb8c0; font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }

.boot-screen, .auth-error { min-height: 65dvh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 20px; }
.boot-screen h1, .auth-error h1 { margin: 15px 0 24px; font-size: clamp(36px, 9vw, 58px); line-height: 1.05; letter-spacing: -.055em; }
.boot-screen p, .auth-error p { max-width: 440px; color: var(--muted); line-height: 1.55; }
.loading-line { width: min(100%, 370px); height: 3px; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.12); }
.loading-line span { display: block; width: 35%; height: 100%; border-radius: inherit; background: #e7f1f3; animation: loading 1.1s ease-in-out infinite; }
@keyframes loading { from { transform: translateX(-110%); } to { transform: translateX(390%); } }

.profile-pill { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 12px; align-items: center; margin-bottom: 15px; padding: 9px; border-radius: 21px; }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; color: #172129; background: linear-gradient(145deg, #eff4f5, #91a4ae); font-size: 15px; font-weight: 800; }
.profile-pill div:nth-child(2) { min-width: 0; }
.profile-pill strong, .profile-pill small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.profile-pill strong { font-size: 14px; font-weight: 750; }
.profile-pill small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.plan-chip { flex: none; max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 9px 11px; border: 1px solid rgba(255,255,255,.24); border-radius: 12px; color: #f3f7f7; background: rgba(255,255,255,.1); font-size: 11px; font-weight: 750; }

.hero { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 290px; overflow: hidden; padding: 27px; border-radius: 30px; }
.hero::after { content: ""; position: absolute; inset: auto -10% -68% 35%; height: 110%; border-radius: 50%; background: radial-gradient(ellipse, rgba(184,202,210,.15), transparent 65%); pointer-events: none; }
.hero h1 { position: relative; z-index: 1; margin: 17px 0 12px; font-size: clamp(40px, 8vw, 63px); line-height: .99; letter-spacing: -.07em; font-weight: 740; }
.hero h1 i { font-style: normal; color: #d0dee1; }
.hero-copy { position: relative; z-index: 1; max-width: 500px; margin: 0; color: #b2bbc3; font-size: 14px; line-height: 1.55; }
.hero-cta { position: relative; z-index: 1; align-self: flex-start; min-width: 170px; margin-top: 26px; background: #edf2f3 !important; color: #172129 !important; }
.hero-cta span { margin-left: 18px; }

.section-line { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 29px 2px 14px; }
.section-line h2 { margin: 5px 0 0; font-size: clamp(21px, 5vw, 27px); line-height: 1.18; letter-spacing: -.045em; }
.section-line > span { color: var(--quiet); font-size: 12px; }
.text-link { border: 0; background: transparent; color: #c7dce1; padding: 7px 0; font-size: 13px; font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.metric { min-height: 116px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.metric:first-child { grid-column: span 2; }
.metric small { display: block; color: var(--muted); font-size: 12px; }
.metric strong { display: block; margin-top: 12px; font-size: clamp(25px, 7vw, 35px); font-weight: 750; line-height: 1; letter-spacing: -.06em; }
.metric strong span { color: var(--quiet); font-size: .6em; }
.metric em { display: block; margin-top: 6px; color: var(--quiet); font-size: 11px; font-style: normal; }
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.action-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 155px; padding: 18px; border: 1px solid var(--line); border-radius: 23px; background: var(--surface); text-align: left; transition: transform .18s ease, border-color .18s ease, background-color .18s ease; }
.action-card svg { width: 27px; height: 27px; margin-bottom: auto; color: #d7e5e7; }
.action-card b { margin-top: 15px; font-size: 17px; letter-spacing: -.03em; }
.action-card small { margin-top: 4px; max-width: 190px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.action-card .arrow { position: absolute; top: 16px; right: 18px; color: var(--quiet); font-size: 18px; }
.action-card .number { display: none; }
.action-card:active, .btn:active { transform: scale(.98); }

.page-title { padding: 10px 2px 22px; }
.page-title h1 { margin: 8px 0 9px; font-size: clamp(34px, 8vw, 48px); letter-spacing: -.058em; line-height: 1.02; }
.page-title p { max-width: 610px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.toolbar { display: flex; gap: 9px; margin-bottom: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 9px 16px; border: 1px solid var(--line-bright); border-radius: 15px; background: rgba(255,255,255,.085); color: var(--text); text-align: center; font-size: 13px; font-weight: 700; line-height: 1.2; transition: transform .17s ease, background-color .17s ease, border-color .17s ease; }
.btn.primary { background: #eaf1f2; border-color: #eaf1f2; color: #172028; }
.btn.green { color: #c5efd7; border-color: rgba(146,213,177,.35); background: rgba(111,197,146,.14); }
.btn.danger { color: #ffc2c2; border-color: rgba(240,163,163,.24); background: rgba(221,81,81,.13); }
.btn.slim { min-height: 40px; padding: 8px 12px; font-size: 12px; }
.btn.wide { width: 100%; margin-top: 11px; }
.toolbar .primary { flex: 1; }

.list { display: grid; gap: 9px; }
.row, .panel, .empty, .job-card { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.row { min-width: 0; padding: 17px; transition: background-color .18s ease, border-color .18s ease; }
.row.selected { border-color: rgba(194,225,231,.48); background: rgba(52,65,74,.74); }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row-title { min-width: 0; flex: 1; }
.row-title strong, .row-title small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.row-title strong { font-size: 15px; font-weight: 730; }
.row-title small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.row-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); }
.row-stats span { min-width: 0; color: var(--muted); font-size: 11px; }
.row-stats b { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; color: var(--text); font-size: 14px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.row-actions .btn { flex: 1; min-width: 90px; }
.status { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--quiet); }
.status.on { background: var(--green); }.status.warn { background: var(--yellow); }.status.off { background: var(--red); }
.state-badge { flex: none; padding: 6px 8px; border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.07); font-size: 10px; font-weight: 700; }
.state-badge.on { color: var(--green); background: rgba(111,197,146,.12); }
.state-badge.warn { color: var(--yellow); background: rgba(229,201,148,.1); }
.state-badge.off { color: var(--red); background: rgba(221,81,81,.12); }
.inline-alert { margin: 12px 0 0; padding: 10px 12px; border-radius: 11px; color: #e8b7b7; background: rgba(221,81,81,.09); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.select-check { position: relative; flex: none; display: grid; place-items: center; width: 42px; height: 42px; margin: -5px 0 -5px -5px; cursor: pointer; }
.select-check input, .picker-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.select-check > span, .picker-tick { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line-bright); border-radius: 7px; background: rgba(255,255,255,.06); transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.select-check input:checked + span, .picker-option input:checked + .picker-tick { background: #d9e8eb; border-color: #d9e8eb; color: #142027; }
.select-check input:checked + span::after, .picker-option input:checked + .picker-tick::after { content: "✓"; font-size: 15px; font-weight: 900; }
.select-check input:focus-visible + span, .picker-option input:focus-visible + .picker-tick { outline: 2px solid #c9e6ef; outline-offset: 2px; }
.select-check input:disabled + span { opacity: .3; }

.account-toolbar { display: grid; gap: 12px; margin-bottom: 20px; }
.reply-search { margin-bottom: 16px; }
.search-field { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 13px; border: 1px solid var(--line-bright); border-radius: 15px; background: rgba(255,255,255,.065); }
.search-field svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.search-field input { width: 100%; min-width: 0; min-height: 46px; border: 0; outline: 0; background: transparent; font-size: 15px; }
.search-field input::placeholder { color: var(--quiet); }
.filter-scroll { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-chip { flex: none; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.05); color: var(--muted); font-size: 12px; font-weight: 700; }
.filter-chip.active { border-color: #d7e4e6; background: #d7e4e6; color: #172028; }
.list-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin: 0 2px 11px; }
.list-heading b { font-size: 18px; letter-spacing: -.03em; }.list-heading span { color: var(--quiet); font-size: 12px; }
.selection-tools { margin-bottom: 13px; padding: 15px; border: 1px solid var(--line-bright); border-radius: 21px; background: rgba(48,58,67,.45); }
.selection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.selection-heading b { font-size: 14px; }.selection-heading span { color: var(--muted); font-size: 11px; text-align: right; }
.selection-buttons, .bulk-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.bulk-actions { padding-top: 12px; border-top: 1px solid var(--line); }
.bulk-actions .btn { flex: 1 1 175px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; }
.pager span { color: var(--muted); font-size: 13px; }

.job-card { overflow: hidden; }
.job-card summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 69px; padding: 13px 16px; list-style: none; cursor: pointer; }
.job-card summary::-webkit-details-marker { display: none; }
.job-card summary b, .job-card summary small { display: block; }.job-card summary b { font-size: 14px; }.job-card summary small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.job-chevron { color: var(--quiet); font-size: 25px; transition: transform .2s ease; }.job-card[open] .job-chevron { transform: rotate(180deg); }
.job-detail { padding: 0 16px 16px; }.progress-track { display: block; width: 100%; height: 6px; appearance: none; border: 0; border-radius: 6px; background: rgba(255,255,255,.1); }.progress-track::-webkit-progress-bar { border-radius: 6px; background: rgba(255,255,255,.1); }.progress-track::-webkit-progress-value { border-radius: 6px; background: #b2d3d7; }.progress-track::-moz-progress-bar { border-radius: 6px; background: #b2d3d7; }
.issue-list { display: grid; gap: 8px; max-height: 230px; overflow: auto; margin: 13px 0; }.issue-list p { margin: 0; padding: 10px; border-radius: 10px; background: rgba(239,126,126,.09); font-size: 12px; line-height: 1.4; }.issue-list b, .issue-list span { display: block; overflow-wrap: anywhere; }.issue-list span { margin-top: 3px; color: #e1afb0; }.job-ok { color: var(--muted); font-size: 12px; }

.empty { padding: 35px 19px; border-style: dashed; text-align: center; }.empty strong { display: block; font-size: 16px; }.empty p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.panel { padding: 20px; }.panel.spaced { margin-top: 8px; }.panel h3 { margin: 8px 0 13px; font-size: 19px; }.panel p { color: var(--muted); font-size: 13px; line-height: 1.5; }.big-number { font-size: clamp(28px,7vw,38px) !important; letter-spacing: -.06em; }.code-box { margin-top: 12px; padding: 12px; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 13px; color: #d3dde0; background: rgba(0,0,0,.13); font: 12px/1.5 ui-monospace, SFMono-Regular, monospace; }
.database-description { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }.inline-form input { min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.06); }
.plan-row { width: 100%; text-align: left; }.faq-list, .chat-switches { display: grid; gap: 8px; }.faq-item { border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }.faq-item summary { position: relative; padding: 16px 42px 16px 16px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 700; }.faq-item summary::-webkit-details-marker { display: none; }.faq-item summary::after { content: "+"; position: absolute; right: 17px; top: 12px; color: var(--muted); font-size: 24px; font-weight: 400; transition: transform .18s ease; }.faq-item[open] summary::after { transform: rotate(45deg); }.faq-item p { margin: 0; padding: 0 16px 16px; color: var(--muted); font-size: 13px; line-height: 1.55; white-space: pre-line; }
.result-list, .preview-list { display: grid; gap: 7px; margin: 12px 0; }.result-check { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 9px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.045); }.result-check input { width: 19px; height: 19px; accent-color: #d5e7e8; }.result-check b, .result-check small, .mini-entry b, .mini-entry small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.result-check b, .mini-entry b { font-size: 13px; }.result-check small, .mini-entry small { margin-top: 3px; color: var(--muted); font-size: 11px; }.mini-entry { padding: 10px; border-bottom: 1px solid var(--line); }.db-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0; }.db-meta span { flex: 1; min-width: 100px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); font-size: 12px; }.db-meta b { display: block; margin-top: 5px; color: var(--text); font-size: 15px; }.owned-mark { padding: 12px; border-radius: 13px; background: rgba(111,197,146,.14); color: #bdebd2; font-size: 13px; font-weight: 700; }
.chat-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 60px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.045); text-align: left; }.chat-switch span { min-width: 0; }.chat-switch b, .chat-switch small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.chat-switch b { font-size: 13px; }.chat-switch small { margin-top: 3px; color: var(--muted); font-size: 11px; }.chat-switch i { flex: none; padding: 7px 9px; border-radius: 9px; color: var(--red); background: rgba(221,81,81,.12); font-size: 11px; font-style: normal; }.chat-switch.active i { color: var(--green); background: rgba(111,197,146,.12); }
.preset-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }.preset-row .btn { min-width: 0; padding: 8px 5px; }

.dock { position: fixed; z-index: 60; left: 50%; bottom: calc(9px + var(--safe-bottom)); display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 2px; width: min(calc(100% - 18px), 720px); min-height: 72px; padding: 6px; border-radius: 25px; transform: translateX(-50%); }
.dock-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 58px; padding: 3px 1px; border: 0; border-radius: 19px; background: transparent; color: #929ba4; transition: color .17s ease, background-color .17s ease, transform .17s ease; }
.dock-item svg { width: 20px; height: 20px; }.dock-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 650; }.dock-item.active { color: #f5fafb; background: rgba(235,245,247,.15); box-shadow: inset 0 1px rgba(255,255,255,.13); }.dock-item:active { transform: scale(.94); }

.modal-layer { position: fixed; z-index: 100; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.modal-shade { position: absolute; inset: 0; border: 0; background: rgba(1,4,7,.72); }
.modal { position: relative; width: min(100%, 710px); max-height: min(90dvh,900px); overflow: auto; overscroll-behavior: contain; padding: 12px 18px calc(24px + var(--safe-bottom)); border-radius: 28px 28px 0 0; background-color: #20262d; animation: modal-in .25s cubic-bezier(.2,.8,.2,1) both; }
@keyframes modal-in { from { opacity: .6; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
.modal-grip { width: 38px; height: 4px; margin: 0 auto 6px; border-radius: 4px; background: rgba(255,255,255,.3); }.modal-close { float: right; display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.08); color: var(--text); font-size: 26px; line-height: 1; }
.modal h2 { clear: both; margin: 9px 0; font-size: clamp(25px,7vw,33px); letter-spacing: -.05em; line-height: 1.12; }.modal p { color: var(--muted); font-size: 13px; line-height: 1.5; }.modal #modalContent > p { margin: 0 0 16px; }
.field { display: block; margin: 15px 0; }.field > span { display: block; margin: 0 0 7px 2px; color: #bbc4ca; font-size: 12px; font-weight: 650; }.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 12px 14px; outline: 0; border: 1px solid var(--line-bright); border-radius: 14px; background: rgba(255,255,255,.06); font-size: 16px; }.field textarea { min-height: 112px; resize: vertical; line-height: 1.5; }.field input:focus, .field textarea:focus, .field select:focus { border-color: #bcd9dd; }.field input::placeholder, .field textarea::placeholder { color: var(--quiet); }
.check { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 2px; color: #d4dce0; font-size: 14px; }.check input { appearance: none; flex: none; width: 44px; height: 26px; padding: 3px; border: 1px solid var(--line); border-radius: 99px; background: #4a5259; transition: background-color .16s ease; }.check input::after { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .16s ease; }.check input:checked { background: #86bd9f; }.check input:checked::after { transform: translateX(18px); }
.form-section { margin: 20px 0; }.form-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 9px; }.form-section-head b { font-size: 16px; }.form-section-head small { color: var(--muted); font-size: 11px; text-align: right; }
.picker { padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: rgba(0,0,0,.12); }.picker-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 3px 8px; color: var(--muted); font-size: 12px; }.picker-toolbar > div { display: flex; gap: 12px; }.picker-toolbar .text-link { padding: 4px; }
.picker-list { display: grid; gap: 5px; max-height: 240px; overflow: auto; overscroll-behavior: contain; }.picker-option { position: relative; display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 11px; align-items: center; min-height: 52px; padding: 8px 10px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; }.picker-option:has(input:checked) { border-color: rgba(197,226,231,.25); background: rgba(230,242,244,.07); }.picker-option > span:last-child { min-width: 0; }.picker-option b, .picker-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.picker-option b { font-size: 13px; }.picker-option small { margin-top: 3px; color: var(--muted); font-size: 11px; }.template-list { padding: 7px; border: 1px solid var(--line); border-radius: 16px; background: rgba(0,0,0,.12); }
.advanced { margin: 17px 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 15px; }.advanced summary { padding: 15px 0; cursor: pointer; color: #d6e4e6; font-size: 13px; font-weight: 700; }.advanced[open] { padding-bottom: 12px; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: calc(96px + var(--safe-bottom)); max-width: min(90%,500px); padding: 12px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: #e8f0f1; color: #182228; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%,12px); transition: opacity .2s ease, transform .2s ease; }.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 380px) {
  .app { padding-left: 12px; padding-right: 12px; }
  .hero { min-height: 280px; padding: 22px; }
  .hero h1 { font-size: 39px; }
  .action-grid { grid-template-columns: 1fr; }
  .action-card { min-height: 112px; }
  .action-card svg { margin-bottom: 0; }
  .action-card b { margin-top: 11px; }
  .state-badge { font-size: 9px; }
  .row { padding: 14px; }
  .dock-item span { font-size: 9px; }
}
@media (min-width: 680px) {
  .app { padding-left: 24px; padding-right: 24px; }
  .metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .metric:first-child { grid-column: auto; }
  .action-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .list.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero { min-height: 320px; }
}
@media (min-width: 820px) {
  .app { padding-bottom: 70px; }
  .rail { display: flex; gap: 5px; width: max-content; max-width: 100%; overflow: auto; margin: 3px auto 28px; padding: 5px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.045); }
  .rail-link { min-height: 38px; padding: 0 16px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 680; white-space: nowrap; }
  .rail-link.active { background: rgba(231,243,245,.16); color: #fff; }
  .dock { display: none; }
  .modal-layer { align-items: center; padding: 20px; }
  .modal { max-height: min(90dvh,850px); border-radius: 26px; padding: 20px 26px 26px; }
  .modal-grip { display: none; }
}
@media (max-width: 520px) {
  .split { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr; }
  .toolbar .btn { min-width: 0; }
}
@media (hover: hover) and (pointer: fine) {
  .action-card:hover, .row:hover { border-color: rgba(225,236,247,.24); background-color: rgba(43,51,60,.78); }
  .btn:hover:not(:disabled) { background-color: rgba(255,255,255,.16); }
  .btn.primary:hover:not(:disabled) { background-color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
