/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@16.3.1_@playwright+test@1.56.1_@types+node@22.20.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[2].use[1]!../../node_modules/.pnpm/next@16.3.1_@playwright+test@1.56.1_@types+node@22.20.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[15].oneOf[2].use[2]!../../node_modules/.pnpm/next@16.3.1_@playwright+test@1.56.1_@types+node@22.20.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/font/google/target.css?{"path":"src/app/layout.tsx","import":"Outfit","arguments":[{"subsets":["latin","latin-ext"],"variable":"--font-outfit","display":"swap","weight":["400","500","600","700","800"]}],"variableName":"outfit"} ***!
  \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/98848575513c9742-s.p.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/7b0b24f36b1a6d0b-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/98848575513c9742-s.p.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/7b0b24f36b1a6d0b-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/98848575513c9742-s.p.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/7b0b24f36b1a6d0b-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/98848575513c9742-s.p.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/7b0b24f36b1a6d0b-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_next/static/media/98848575513c9742-s.p.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_next/static/media/7b0b24f36b1a6d0b-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: 'Outfit Fallback';src: local("Arial");ascent-override: 100.18%;descent-override: 26.05%;line-gap-override: 0.00%;size-adjust: 99.82%
}.__className_e31074 {font-family: 'Outfit', 'Outfit Fallback';font-style: normal
}.__variable_e31074 {--font-outfit: 'Outfit', 'Outfit Fallback'
}

/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@16.3.1_@playwright+test@1.56.1_@types+node@22.20.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!../../node_modules/.pnpm/next@16.3.1_@playwright+test@1.56.1_@types+node@22.20.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./src/app/globals.css ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: light;
  --bg: #f3f2ef;
  --surface: #ffffff;
  --surface-2: #f8f7f4;
  --surface-3: #efece7;
  --ink: #191817;
  --ink-2: #504d49;
  --muted: #817d77;
  --line: #e4e0da;
  --line-strong: #cbc5bc;
  --red: #b52b35;
  --red-deep: #8f1f29;
  --red-tint: #fae9eb;
  --gold: #aa792c;
  --gold-tint: #f7eddb;
  --ok: #217b53;
  --ok-tint: #e6f3ec;
  --info: #296b91;
  --info-tint: #e6f1f7;
  --danger: #b52b35;
  --danger-tint: #fae9eb;
  --shadow-sm: 0 1px 2px rgba(34, 29, 24, 0.04), 0 5px 18px rgba(34, 29, 24, 0.04);
  --shadow-lg: 0 28px 80px rgba(22, 17, 13, 0.24);
  --radius: 12px;
  --sidebar: 248px;
  --sidebar-compact: 76px;
  --topbar: 60px;
  --font: var(--font-outfit), "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0e0f;
  --surface: #161617;
  --surface-2: #1c1c1e;
  --surface-3: #242426;
  --ink: #f1efeb;
  --ink-2: #c3beb7;
  --muted: #908b84;
  --line: #29292b;
  --line-strong: #3a393b;
  --red: #df6670;
  --red-deep: #c34b56;
  --red-tint: rgba(223, 102, 112, 0.14);
  --gold: #dab36d;
  --gold-tint: rgba(218, 179, 109, 0.13);
  --ok: #69c997;
  --ok-tint: rgba(105, 201, 151, 0.14);
  --info: #78b4d7;
  --info-tint: rgba(120, 180, 215, 0.14);
  --danger: #ed727d;
  --danger-tint: rgba(237, 114, 125, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 22px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.58);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-width: 320px; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
code, .num { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.88em; }
::selection { background: var(--red-tint); color: var(--ink); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent); outline-offset: 2px; }

.shell { min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar); display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); transition: width 180ms ease, transform 200ms ease; }
.brand { min-height: var(--topbar); display: flex; align-items: center; gap: 11px; padding: 0 17px; border-bottom: 1px solid var(--line); }
.brand:hover { background: var(--surface-2); }
.brand__mark { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 9px 4px 9px 4px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: -0.04em; box-shadow: inset -6px -6px 0 rgba(0,0,0,0.09); }
.brand__copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand__copy b { font-size: 15px; letter-spacing: -0.02em; }
.brand__copy small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.sidebar__nav { display: flex; flex: 1 1; flex-direction: column; gap: 3px; overflow-y: auto; padding: 14px 10px 24px; }
.nav-label { padding: 5px 10px 4px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-label--spaced { margin-top: 14px; }
.navitem { min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 8px; color: var(--ink-2); font-size: 13.5px; font-weight: 550; transition: background 130ms ease, color 130ms ease; }
.navitem:hover { background: var(--surface-2); color: var(--ink); }
.navitem svg { width: 18px; height: 18px; flex: 0 0 18px; stroke-width: 1.8; }
.navitem--active { background: var(--red); color: #fff; }
.navitem--active:hover { background: var(--red-deep); color: #fff; }
.rail-toggle { position: absolute; top: 17px; right: -14px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.rail-toggle:hover { color: var(--red); border-color: var(--red); }
.rail-toggle svg { width: 14px; }
.content { min-height: 100dvh; margin-left: var(--sidebar); transition: margin 180ms ease; }
.topbar { position: sticky; top: 0; z-index: 35; height: var(--topbar); display: flex; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); }
.topbar__context { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-tint); }
.topbar__spacer { flex: 1 1; }
.iconbtn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink-2); transition: background 130ms ease, color 130ms ease, border-color 130ms ease; }
.iconbtn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
.iconbtn svg { width: 17px; height: 17px; }
.iconbtn--bare { width: 34px; height: 34px; border: 0; background: transparent; }
.iconbtn--danger { color: var(--danger); }
.mobile-menu { display: none; }
.user-chip { min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 3px 4px 3px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--red-tint); color: var(--red); font-size: 12px; font-weight: 800; }
.user-chip__copy { display: flex; max-width: 180px; flex-direction: column; line-height: 1.2; }
.user-chip__copy b { font-size: 12px; font-weight: 650; }
.user-chip__copy small { overflow: hidden; color: var(--muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.main { width: 100%; max-width: 1540px; margin: 0 auto; padding: 24px clamp(16px, 2.2vw, 34px) 56px; }
.shell--collapsed .sidebar { width: var(--sidebar-compact); }
.shell--collapsed .content { margin-left: var(--sidebar-compact); }
.shell--collapsed .brand { justify-content: center; padding: 0; }
.shell--collapsed .brand__copy, .shell--collapsed .navitem span, .shell--collapsed .nav-label { display: none; }
.shell--collapsed .navitem { justify-content: center; padding-inline: 0; }

.page-head { min-height: 72px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.page-head h1 { margin-top: 2px; font-size: clamp(24px, 3vw, 32px); line-height: 1.08; letter-spacing: -0.04em; }
.page-head p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.eyebrow { display: block; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 650; transition: background 130ms ease, color 130ms ease, border-color 130ms ease, transform 80ms ease; }
.btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.48; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; }
.btn--primary { border-color: var(--red); background: var(--red); color: #fff; }
.btn--primary:hover { border-color: var(--red-deep); background: var(--red-deep); }
.btn--outline:hover { color: var(--red); border-color: var(--red); }
.btn--danger { border-color: var(--danger); background: var(--danger); color: #fff; }
.btn--danger:hover { background: var(--red-deep); }
.btn--sm { min-height: 34px; padding: 5px 10px; font-size: 12px; }
.button-row, .drawer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.drawer-actions { margin-top: 4px; padding-top: 15px; border-top: 1px solid var(--line); }
.drawer-actions > :first-child:not(:last-child) { margin-right: auto; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.card--flat { box-shadow: none; }
.card--accent { border-top: 3px solid var(--red); }
.card__head { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.card__head h2, .section-title h3 { margin-top: 2px; font-size: 16px; letter-spacing: -0.015em; }
.card__body { padding: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 4px; color: var(--red); font-size: 12px; font-weight: 700; }
.text-link svg { width: 14px; }
.muted { color: var(--muted); }
.danger-text { color: var(--danger); }
.prose-compact { display: grid; gap: 10px; color: var(--ink-2); }
.prose-compact h2 { color: var(--ink); font-size: 18px; }
.prose-compact p { max-width: 68ch; }
.prose-compact .btn { width: max-content; margin-top: 5px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric-card { min-height: 155px; display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 150ms ease, border-color 150ms ease; }
.metric-card:hover { transform: translateY(-2px); border-color: var(--red); }
.metric-card--hero { background: var(--ink); color: var(--bg); }
.metric-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.metric-card__top svg { width: 19px; height: 19px; }
.metric-card strong { margin-top: auto; font-size: 32px; line-height: 1; letter-spacing: -0.04em; }
.metric-card .metric-card__money { font-size: clamp(20px, 2vw, 28px); }
.metric-card small { margin-top: 7px; color: var(--muted); font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); gap: 16px; }
.status-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.status-row { min-height: 92px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 14px; border-right: 1px solid var(--line); }
.status-row:last-child { border-right: 0; }
.status-row strong { font-size: 25px; }

.badge { width: max-content; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--ok { background: var(--ok-tint); color: var(--ok); }
.badge--info { background: var(--info-tint); color: var(--info); }
.badge--warn { background: var(--gold-tint); color: var(--gold); }
.badge--danger { background: var(--danger-tint); color: var(--danger); }

.table-card { overflow: visible; }
.table-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; border-bottom: 1px solid var(--line); }
.table-toolbar > div { display: flex; flex-direction: column; }
.table-toolbar b { font-size: 13px; }
.table-toolbar span { color: var(--muted); font-size: 11px; }
.tablewrap { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
.data-table { width: 100%; min-width: 840px; border-collapse: collapse; font-size: 12.5px; }
.data-table th { padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 10.5px; font-weight: 750; letter-spacing: 0.055em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { max-width: 260px; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background 110ms ease; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table .num { white-space: nowrap; }
.cell-button { min-height: 44px; display: flex; align-items: center; gap: 9px; border: 0; background: none; color: var(--ink); text-align: left; }
.cell-button > span:last-child { display: flex; flex-direction: column; }
.cell-button small, .cell-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.site-monogram { width: 33px; height: 33px; display: grid; flex: 0 0 33px; place-items: center; border-radius: 8px; background: var(--red-tint); color: var(--red); font-size: 10px; font-weight: 800; }
.domain-link { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.domain-link:hover { color: var(--red); }
.domain-link svg { width: 12px; }
.truncate { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.filter-bar { display: flex; align-items: flex-end; gap: 9px; margin-bottom: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.filter-bar label { min-width: 150px; display: flex; flex-direction: column; gap: 4px; }
.filter-bar label span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.filter-bar input, .filter-bar select { min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); color: var(--ink); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 80; width: 100%; height: 100%; border: 0; border-radius: 0; background: rgba(13, 11, 10, 0.54); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 90; width: min(600px, 100vw); display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); animation: drawer-in 180ms ease both; }
.drawer--wide { width: min(1040px, calc(100vw - var(--sidebar-compact))); }
.drawer__head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 17px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 18px; letter-spacing: -0.02em; }
.drawer__head p { margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.drawer__body { flex: 1 1; overflow-y: auto; padding: 17px; }
@keyframes drawer-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: translateX(0); } }
.form-stack { display: grid; gap: 14px; }
.form-grid { display: grid; gap: 11px; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field--span-2 { grid-column: 1 / -1; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.field > span { color: var(--ink-2); font-size: 11px; font-weight: 700; letter-spacing: 0.025em; }
.field > small { color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink); outline: none; transition: border-color 130ms ease, background 130ms ease, box-shadow 130ms ease; }
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); background: var(--surface); box-shadow: 0 0 0 3px var(--red-tint); }
.check-field { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.check-field input { width: 17px; height: 17px; accent-color: var(--red); }
.form-message { padding: 9px 11px; border: 1px solid; border-radius: 8px; font-size: 12px; }
.form-message--success { border-color: color-mix(in srgb, var(--ok) 30%, transparent); background: var(--ok-tint); color: var(--ok); }
.form-message--error { border-color: color-mix(in srgb, var(--danger) 30%, transparent); background: var(--danger-tint); color: var(--danger); }
.input-icon { position: relative; }
.input-icon > svg { position: absolute; top: 50%; left: 12px; z-index: 1; width: 16px; color: var(--muted); transform: translateY(-50%); }
.input-icon input { padding-left: 38px; }
.callout { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border: 1px solid color-mix(in srgb, var(--info) 22%, var(--line)); border-radius: 9px; background: var(--info-tint); color: var(--info); }
.callout > svg { width: 18px; flex: 0 0 18px; margin-top: 1px; }
.callout b { font-size: 12px; }
.callout p { margin-top: 2px; font-size: 11px; }
.spin { animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.7fr); gap: 14px; }
.detail-main, .detail-rail { display: flex; flex-direction: column; gap: 12px; }
.detail-strip { display: grid; grid-template-columns: auto 1fr 1fr; align-items: center; gap: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.detail-strip > span:not(.badge) { display: flex; flex-direction: column; }
.detail-strip small { color: var(--muted); font-size: 10.5px; }
.section-title { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.card--flat > .form-grid, .card--flat > .form-message, .card--flat > .drawer-actions { margin-right: 14px; margin-left: 14px; }
.card--flat > .form-grid { margin-top: 14px; }
.card--flat > .drawer-actions { margin-bottom: 14px; }
.compact-list { display: grid; }
.compact-list > div { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.compact-list > div:last-child { border-bottom: 0; }
.compact-list > div > span:first-child { display: flex; flex-direction: column; }
.compact-list small { color: var(--muted); font-size: 10.5px; }
.compact-list > p { padding: 14px; }
.resource-card { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.resource-card dl { display: grid; gap: 8px; margin-top: 11px; }
.resource-card dl > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 7px; border-bottom: 1px dashed var(--line-strong); }
.resource-card dl > div:last-child { padding-bottom: 0; border: 0; }
.resource-card dt { color: var(--muted); font-size: 11px; }
.resource-card dd { max-width: 65%; overflow-wrap: anywhere; font-size: 11.5px; font-weight: 650; text-align: right; }
.chip-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.chip { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 10.5px; }
.job-list { display: grid; gap: 6px; margin-top: 10px; }
.job-list details { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.job-list summary { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; cursor: pointer; font-size: 11px; font-weight: 650; }
.job-list details > p { padding: 0 9px 7px; color: var(--muted); font-size: 10.5px; }
.log-preview { max-height: 210px; overflow: auto; margin: 0 7px 7px; padding: 8px; border-radius: 6px; background: var(--bg); color: var(--ink-2); font: 10px/1.45 "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; }
.danger-zone { display: grid; gap: 10px; padding: 13px; border: 1px solid color-mix(in srgb, var(--danger) 28%, var(--line)); border-radius: 10px; background: var(--danger-tint); }
.danger-zone p { margin-top: 2px; color: var(--danger); font-size: 10.5px; }
.danger-zone .btn { width: max-content; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 440px)); gap: 14px; }
.plan-card { display: grid; gap: 18px; padding: 18px; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.plan-card header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; }
.plan-card__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--red-tint); color: var(--red); }
.plan-card__icon svg { width: 20px; }
.plan-card h2 { font-size: 17px; }
.plan-price { font-size: 30px; letter-spacing: -0.04em; }
.plan-price small { margin-left: 5px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 11.5px; }
.feature-list svg { width: 14px; color: var(--ok); }

.user-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.user-card { min-height: 112px; display: grid; grid-template-columns: auto 1fr auto; align-items: flex-start; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.user-card__avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--red-tint); color: var(--red); font-size: 12px; font-weight: 800; }
.user-card__copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 3px; }
.user-card__copy h2 { font-size: 14px; }
.user-card__copy p { max-width: 100%; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.user-card__copy small { margin-top: 6px; color: var(--muted); font-size: 10px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 11px; margin-bottom: 16px; }
.setting-card { min-height: 92px; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.setting-card__icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 40px; border-radius: 10px; background: var(--surface-3); color: var(--red); }
.setting-card__icon svg { width: 18px; }
.setting-card > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.setting-card span { color: var(--muted); font-size: 10.5px; font-weight: 650; }
.setting-card code { overflow-wrap: anywhere; font-size: 11.5px; }

.empty-state { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 34px; color: var(--muted); text-align: center; }
.empty-state > svg { width: 38px; height: 38px; opacity: 0.55; }
.empty-state h1, .empty-state h2 { color: var(--ink); font-size: 18px; }
.empty-state p { max-width: 52ch; font-size: 12px; }
.login-page, .state-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--ink); color: var(--bg); }
.login-page { position: relative; overflow: hidden; }
.login-grid { position: absolute; inset: 0; opacity: 0.17; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(circle at center, #000, transparent 72%); mask-image: radial-gradient(circle at center, #000, transparent 72%); }
.login-page::before { content: ""; position: absolute; width: 420px; height: 420px; border: 80px solid var(--red); border-radius: 50%; opacity: 0.18; transform: translate(-45vw, -32vh); }
.login-card { position: relative; z-index: 1; width: min(430px, 100%); display: grid; gap: 15px; padding: 26px; border: 1px solid rgba(255,255,255,0.13); border-radius: 16px; background: color-mix(in srgb, #191817 90%, transparent); box-shadow: 0 35px 100px rgba(0,0,0,0.45); color: #f5f2ed; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.login-brand { display: flex; align-items: center; gap: 11px; }
.login-brand > div { display: flex; flex-direction: column; line-height: 1.25; }
.login-brand small { color: #aaa39a; font-size: 10.5px; }
.login-intro { padding: 17px 0 3px; }
.login-intro > span { color: #df7a83; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.login-intro h1 { margin-top: 7px; font-size: 28px; line-height: 1.08; letter-spacing: -0.045em; }
.login-intro p { margin-top: 7px; color: #aaa39a; font-size: 12px; }
.login-card .field > span { color: #c7c1b9; }
.login-card .field input { border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.07); color: #fff; }
.login-card .field input:focus { border-color: #df7a83; background: rgba(255,255,255,0.09); }
.login-card .btn { width: 100%; }
.login-note { color: #8f8982; font-size: 10.5px; text-align: center; }
.state-card { width: min(620px, 100%); padding: 34px; border: 1px solid rgba(255,255,255,0.13); border-radius: 16px; background: rgba(255,255,255,0.055); }
.state-card__icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 14px; background: rgba(181,43,53,0.28); color: #f08b94; }
.state-card__icon svg { width: 25px; }
.state-card h1 { margin-top: 8px; font-size: clamp(26px, 5vw, 42px); line-height: 1.03; letter-spacing: -0.05em; }
.state-card > p { max-width: 55ch; margin: 14px 0 24px; color: #b3ada5; }
.state-card .button-row { justify-content: flex-start; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .sidebar { width: min(286px, 84vw); transform: translateX(-105%); box-shadow: var(--shadow-lg); }
  .sidebar--open { transform: translateX(0); }
  .shell--collapsed .sidebar { width: min(286px, 84vw); }
  .shell--collapsed .brand__copy, .shell--collapsed .navitem span, .shell--collapsed .nav-label { display: flex; }
  .shell--collapsed .nav-label { display: block; }
  .shell--collapsed .navitem { justify-content: flex-start; padding-inline: 11px; }
  .rail-toggle { display: none; }
  .content, .shell--collapsed .content { margin-left: 0; }
  .mobile-menu { display: inline-grid; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 45; border: 0; background: rgba(0,0,0,.48); }
  .drawer--wide { width: min(100vw, 820px); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-rail { order: -1; }
  .status-list { grid-template-columns: repeat(3, 1fr); }
  .status-row { border-bottom: 1px solid var(--line); }
  .filter-bar { align-items: stretch; flex-wrap: wrap; }
  .filter-bar label { flex: 1 1 170px; }
}

@media (max-width: 640px) {
  .topbar { padding-inline: 12px; }
  .topbar__context { display: none; }
  .user-chip__copy { display: none; }
  .main { padding: 17px 12px 40px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head > .btn, .page-head > button { width: 100%; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 132px; }
  .status-list { grid-template-columns: repeat(2, 1fr); }
  .form-grid--2 { grid-template-columns: 1fr; }
  .field--span-2 { grid-column: auto; }
  .drawer, .drawer--wide { top: 7dvh; width: 100vw; border-top: 1px solid var(--line); border-left: 0; border-radius: 15px 15px 0 0; }
  .drawer__body { padding: 14px 12px 28px; }
  .detail-strip { grid-template-columns: 1fr; gap: 8px; }
  .plan-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .filter-bar label { flex-basis: 100%; }
  .filter-bar .btn { width: 100%; }
  .login-page, .state-page { padding: 14px; }
  .login-card, .state-card { padding: 22px 18px; }
  .drawer-actions { align-items: stretch; flex-direction: column-reverse; }
  .drawer-actions > * { width: 100%; margin-right: 0 !important; }
}

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

