:root {
  color-scheme: light;
  --blue: #2563eb;
  --blue-deep: #1947ad;
  --blue-soft: #edf4ff;
  --orange: #ea580c;
  --green: #16835e;
  --ink: #17243b;
  --text: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e5eaf2;
  --paper: #ffffff;
  --canvas: #f5f7fb;
  --navy: #101c33;
  --navy-soft: #1a2944;
  --radius: 14px;
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--canvas); }
button, input { font: inherit; }
button, a, label[for="siteBundle"] { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid rgba(37, 99, 235, .62); outline-offset: 3px; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 48%) 1fr; background: var(--paper); }
.login-card { width: min(100%, 480px); margin: auto; padding: 58px 52px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #4382fa, #1e50c4); box-shadow: 0 7px 16px rgba(23, 84, 210, .28); font-size: 13px; font-weight: 800; letter-spacing: -.06em; }
.brand-name { display: grid; gap: 0; color: var(--ink); font-size: 16px; font-weight: 750; line-height: 1.1; letter-spacing: -.035em; }
.brand-name span { color: #748198; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.login-intro { margin-top: 74px; }
.eyebrow { margin: 0 0 13px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.login-intro h1 { margin: 0; font-size: clamp(28px, 3vw, 36px); line-height: 1.18; letter-spacing: -.05em; }
.login-intro > p:last-child { max-width: 330px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.login-form { display: grid; margin-top: 34px; }
.login-form label, .field-label { margin: 0 0 8px; color: #35435a; font-size: 12px; font-weight: 700; }
.login-form input, .text-input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #d9e0eb; border-radius: 9px; color: var(--ink); background: #fff; font-size: 14px; transition: border-color .18s, box-shadow .18s; }
.login-form input { margin-bottom: 18px; }
.login-form input:focus, .text-input:focus { border-color: #76a1f6; outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.form-error { min-height: 18px; margin: -6px 0 10px; color: #c24135; font-size: 12px; line-height: 1.5; }
.login-foot { margin: 58px 0 0; color: #8a96a8; font-size: 11px; }
.login-art { position: relative; display: grid; min-height: 100vh; overflow: hidden; place-items: center; color: white; background: radial-gradient(circle at 68% 36%, #244b83 0, #172d50 32%, #101c33 75%); }
.login-art::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(130deg, #000, transparent 82%); content: ""; }
.art-orbit { position: absolute; border: 1px solid rgba(136, 176, 255, .14); border-radius: 50%; transform: rotate(-27deg); }
.orbit-one { width: 620px; height: 340px; }
.orbit-two { width: 810px; height: 450px; }
.art-window { position: relative; z-index: 1; width: min(72%, 500px); overflow: hidden; border: 1px solid rgba(255,255,255,.27); border-radius: 15px; background: #f8fbff; box-shadow: 0 36px 90px rgba(0,0,0,.38); transform: rotate(-2deg); }
.window-top { display: flex; align-items: center; gap: 6px; height: 39px; padding: 0 15px; border-bottom: 1px solid #e8edf4; background: #fff; }
.window-top i { width: 7px; height: 7px; border-radius: 50%; background: #d5deea; }
.window-top i:first-child { background: #f08a73; }
.window-top i:nth-child(2) { background: #f4c566; }
.window-top i:nth-child(3) { background: #71c6a0; }
.window-top span { margin-left: 12px; color: #94a0b1; font-size: 9px; }
.window-content { padding: 34px 38px 35px; color: #152641; }
.window-brand { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.window-brand span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; color: white; background: var(--blue); font-size: 8px; font-weight: 800; }
.window-line { height: 11px; margin-top: 22px; border-radius: 9px; background: #dfe7f2; }
.line-wide { width: 72%; height: 19px; margin-top: 32px; background: #1c3152; }
.line-short { width: 48%; height: 9px; margin-top: 11px; }
.window-button { width: 105px; height: 27px; margin-top: 20px; border-radius: 7px; background: #f07939; }
.window-picture { display: flex; gap: 9px; margin-top: 30px; }
.window-picture div { height: 74px; flex: 1; border-radius: 8px; background: linear-gradient(135deg, #cfe2fa, #9bbbe4); }
.window-picture div:nth-child(2) { background: linear-gradient(135deg, #f7d9c4, #e7aa7c); }
.window-picture div:nth-child(3) { background: linear-gradient(135deg, #d7e6d9, #9eb9a1); }
.floating-tag { position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; color: #f7fbff; background: rgba(24, 44, 76, .78); box-shadow: 0 12px 32px rgba(0,0,0,.22); backdrop-filter: blur(12px); font-size: 11px; font-weight: 650; }
.tag-live { top: 29%; right: 12%; }
.tag-live > span { width: 7px; height: 7px; border-radius: 50%; background: #54d6a2; box-shadow: 0 0 0 4px rgba(84,214,162,.13); }
.tag-link { bottom: 27%; left: 11%; }
.tag-link svg { width: 16px; height: 16px; color: #95b9ff; }
.art-caption { position: absolute; bottom: 35px; left: 0; width: 100%; margin: 0; color: #9fb2ce; text-align: center; font-size: 11px; letter-spacing: .04em; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 3; inset: 0 auto 0 0; display: flex; width: 248px; flex-direction: column; padding: 25px 17px 16px; color: #d9e4f5; background: var(--navy); }
.sidebar .brand { padding: 0 10px; }
.sidebar .brand-name { color: #f8fbff; }
.sidebar .brand-name span { color: #90a1bc; }
.sidebar-label { margin: 46px 11px 13px; color: #8494ad; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.sidebar nav { display: grid; gap: 5px; }
.nav-item { display: flex; min-height: 43px; align-items: center; gap: 12px; padding: 0 12px; border-radius: 8px; color: #aebbd0; font-size: 12px; font-weight: 620; transition: color .18s, background .18s; }
.nav-item svg { width: 17px; height: 17px; color: #8294b1; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(45,108,232,.26), rgba(45,108,232,.13)); box-shadow: inset 2px 0 #5590ff; }
.nav-item.active svg { color: #80aaff; }
.sidebar-bottom { display: grid; gap: 18px; margin-top: auto; }
.help-card { padding: 15px 13px; border: 1px solid rgba(164,185,216,.14); border-radius: 10px; background: rgba(255,255,255,.035); }
.help-icon { display: grid; width: 29px; height: 29px; place-items: center; margin-bottom: 12px; border-radius: 8px; color: #95b8ff; background: rgba(58,120,242,.18); }
.help-icon svg { width: 16px; height: 16px; }
.help-card b { color: #f0f5ff; font-size: 11px; }
.help-card p { margin: 6px 0 0; color: #9eacc2; font-size: 10px; line-height: 1.55; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 13px 4px 1px; border-top: 1px solid rgba(193,207,230,.13); }
.avatar, .top-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: #fff; background: linear-gradient(145deg, #3f74d5, #244a95); font-size: 9px; font-weight: 800; }
.user-copy { display: grid; min-width: 0; gap: 4px; }
.user-copy b { overflow: hidden; color: #eef4ff; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.user-copy span { color: #8d9bb2; font-size: 9px; }
.icon-button { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 9px; color: #8090a8; background: transparent; cursor: pointer; transition: color .18s, background .18s; }
.icon-button:hover { color: var(--blue); background: #edf4ff; }
.sidebar .icon-button { margin-left: auto; color: #94a3b8; }
.sidebar .icon-button:hover { color: white; background: rgba(255,255,255,.08); }
.icon-button svg { width: 17px; height: 17px; }

.main-area { min-height: 100vh; margin-left: 248px; }
.topbar { display: flex; height: 65px; align-items: center; justify-content: space-between; padding: 0 39px; border-bottom: 1px solid #e9edf4; background: rgba(255,255,255,.83); }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: #8995a8; font-size: 11px; }
.breadcrumb svg { width: 13px; height: 13px; color: #b2bdcc; }
.breadcrumb b { color: #34435a; font-weight: 680; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.secure-label { display: flex; align-items: center; gap: 7px; color: #728199; font-size: 10px; }
.secure-label svg { width: 14px; height: 14px; color: #4c9a78; }
.top-avatar { width: 31px; height: 31px; border: 0; border-radius: 9px; font-size: 8px; }
.content { width: min(100%, 1320px); margin: 0 auto; padding: 39px 40px 24px; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.welcome-row .eyebrow { margin-bottom: 9px; }
.welcome-row h1 { margin: 0; color: #182742; font-size: clamp(25px, 2.2vw, 32px); font-weight: 750; letter-spacing: -.055em; line-height: 1.18; }
.title-dot { color: var(--orange); }
.welcome-copy { margin: 11px 0 0; color: #6c7a90; font-size: 12px; line-height: 1.6; }
.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-size: 11px; font-weight: 720; transition: transform .18s, background .18s, box-shadow .18s, border-color .18s; }
.button svg { width: 15px; height: 15px; stroke-width: 2; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 5px 13px rgba(37,99,235,.19); }
.button-primary:hover { background: var(--blue-deep); box-shadow: 0 7px 17px rgba(37,99,235,.24); }
.button-primary:disabled { opacity: .65; cursor: wait; transform: none; }
.button-quiet { color: #54637a; border-color: #e0e6ef; background: #fff; }
.button-quiet:hover { border-color: #c8d5e7; background: #f8fafc; }
.button-full { width: 100%; min-height: 48px; margin-top: 4px; font-size: 12px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 32px; }
.stat-card { position: relative; display: flex; min-height: 102px; align-items: center; gap: 13px; padding: 18px 19px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 3px 12px rgba(35,56,88,.025); }
.stat-icon { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 11px; }
.stat-icon svg { width: 19px; height: 19px; }
.icon-blue { color: #3572e5; background: #edf4ff; }
.icon-orange { color: #df7835; background: #fff3e9; }
.icon-green { color: #178460; background: #e9f7f1; }
.stat-card p { margin: 0 0 5px; color: #75839a; font-size: 10px; font-weight: 650; }
.stat-card strong { color: #1d2c45; font-size: 20px; font-weight: 760; letter-spacing: -.035em; }
.stat-card .stat-word { font-size: 16px; }
.stat-note { position: absolute; right: 16px; bottom: 14px; color: #97a3b5; font-size: 9px; }

.projects-section { margin-top: 37px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; color: #1e2d46; font-size: 17px; letter-spacing: -.035em; }
.section-heading p { margin: 6px 0 0; color: #7b879a; font-size: 11px; }
.search-box { display: flex; width: min(240px, 42vw); height: 38px; align-items: center; gap: 8px; padding: 0 9px 0 11px; border: 1px solid #dfe5ee; border-radius: 8px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.search-box:focus-within { border-color: #87aaf1; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.search-box svg { width: 15px; height: 15px; flex: 0 0 auto; color: #8b98ac; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }
.search-box input::placeholder { color: #a0aabb; }
.search-box kbd { display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; border: 1px solid #e2e7ef; border-radius: 4px; color: #9aa5b4; background: #f8fafc; font-size: 10px; }
.projects-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(35,56,88,.025); }
.table-head, .site-row { display: grid; grid-template-columns: minmax(160px, 1.2fr) minmax(210px, 1.65fr) minmax(145px, 1.1fr) minmax(105px, .75fr) 110px; align-items: center; gap: 14px; }
.table-head { min-height: 44px; padding: 0 22px; border-bottom: 1px solid #edf0f5; color: #8b97a9; background: #fbfcfe; font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.sites-list:empty + .empty-state { display: grid; }
.site-row { min-height: 74px; padding: 0 22px; border-bottom: 1px solid #eff2f6; transition: background .15s; }
.site-row:last-child { border-bottom: 0; }
.site-row:hover { background: #fbfdff; }
.project-name { display: flex; min-width: 0; align-items: center; gap: 11px; }
.project-favicon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid #e4ecf8; border-radius: 10px; color: #326bce; background: #f1f6ff; font-size: 9px; font-weight: 800; letter-spacing: -.03em; }
.project-copy { display: grid; min-width: 0; gap: 4px; }
.project-copy b { overflow: hidden; color: #26354e; font-size: 11px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.project-copy small { color: #8d99aa; font-size: 9px; }
.project-address { display: flex; min-width: 0; align-items: center; gap: 7px; color: #65748b; font-size: 10px; }
.project-address svg { width: 14px; height: 14px; flex: 0 0 auto; color: #8da0bd; }
.project-address a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-address a:hover { color: var(--blue); text-decoration: underline; }
.project-date { color: #78869a; font-size: 10px; }
.status-pill { display: inline-flex; width: fit-content; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 20px; color: #27835f; background: #edf8f3; font-size: 9px; font-weight: 700; }
.status-pill span { width: 6px; height: 6px; border-radius: 50%; background: #2bb47f; }
.row-actions { display: flex; justify-content: flex-end; gap: 4px; }
.row-actions .icon-button { width: 34px; height: 34px; }
.row-actions .icon-button svg { width: 15px; height: 15px; }
.row-actions .delete-button:hover { color: #c24135; background: #fff0ee; }
.empty-state { display: none; min-height: 335px; align-content: center; justify-items: center; padding: 32px 24px; text-align: center; }
.empty-illustration { position: relative; display: grid; width: 120px; height: 90px; place-items: center; margin-bottom: 15px; }
.empty-browser { position: relative; width: 105px; height: 72px; overflow: hidden; border: 1px solid #dbe5f2; border-radius: 9px; background: #f8fbff; box-shadow: 0 12px 28px rgba(57,91,145,.12); transform: rotate(-4deg); }
.empty-browser > span { display: inline-block; width: 5px; height: 5px; margin: 8px 0 0 8px; border-radius: 50%; background: #c1cfe2; }
.empty-screen { display: grid; width: 65%; gap: 5px; margin: 9px auto 0; }
.empty-screen i { height: 5px; border-radius: 6px; background: #d7e2f1; }
.empty-screen i:first-child { width: 80%; height: 8px; background: #9db9e5; }
.empty-screen i:nth-child(2) { width: 58%; }
.empty-screen b { width: 35px; height: 10px; margin-top: 2px; border-radius: 4px; background: #f2a16f; }
.empty-plus { position: absolute; right: 2px; bottom: 4px; display: grid; width: 27px; height: 27px; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--blue); box-shadow: 0 5px 12px rgba(37,99,235,.25); font-size: 18px; line-height: 1; }
.empty-state h3 { margin: 0; color: #263650; font-size: 14px; letter-spacing: -.025em; }
.empty-state > p { max-width: 360px; margin: 8px 0 18px; color: #7f8ba0; font-size: 11px; line-height: 1.65; }
.no-results { padding: 32px; color: #78869a; text-align: center; font-size: 11px; }
.no-results p { margin: 0; }
.list-footer { display: flex; min-height: 43px; align-items: center; justify-content: space-between; padding: 0 20px; border-top: 1px solid #edf0f5; color: #8a96a8; font-size: 9px; }
.footer-domain { display: flex; align-items: center; gap: 6px; }
.footer-domain span { width: 6px; height: 6px; border-radius: 50%; background: #41ae7e; }
.page-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 25px; color: #98a2b2; font-size: 9px; }

.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 22px; background: rgba(12, 24, 43, .54); backdrop-filter: blur(5px); animation: fade-in .16s ease-out; }
.modal { width: min(100%, 570px); padding: 28px; border: 1px solid rgba(255,255,255,.72); border-radius: 16px; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.23); animation: modal-in .22s ease-out; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 23px; }
.modal-header .eyebrow { margin-bottom: 8px; }
.modal-header h2 { margin: 0; color: #192944; font-size: 21px; letter-spacing: -.04em; }
.modal-subtitle { margin: 7px 0 0; color: #7e8a9c; font-size: 11px; }
.modal-close { width: 34px; height: 34px; margin: -5px -5px 0 0; color: #7e8a9c; }
.modal form { display: grid; }
.text-input { height: 44px; margin-bottom: 16px; border-radius: 8px; font-size: 12px; }
.field-label { margin-bottom: 7px; }
.slug-field { position: relative; display: flex; align-items: center; margin-bottom: 3px; }
.slug-field .text-input { min-width: 0; margin-bottom: 0; padding-right: 200px; }
.slug-field > span { position: absolute; right: 12px; overflow: hidden; max-width: 55%; color: #8d9aaf; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.field-hint { margin: 5px 0 17px; color: #909bad; font-size: 9px; }
.upload-zone { display: flex; min-height: 83px; align-items: center; gap: 13px; padding: 14px; border: 1px dashed #c9d6e8; border-radius: 10px; background: #f9fbfe; cursor: pointer; transition: border .18s, background .18s; }
.upload-zone:hover, .upload-zone.dragging { border-color: #6c9cf1; background: #f2f7ff; }
.upload-zone:focus-within { outline: 3px solid rgba(37, 99, 235, .58); outline-offset: 3px; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border: 1px solid #e0e9f6; border-radius: 10px; color: #4e83dd; background: #edf4ff; }
.upload-icon svg { width: 19px; height: 19px; }
.upload-copy { display: grid; min-width: 0; gap: 5px; }
.upload-copy b { overflow: hidden; color: #34445e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.upload-copy small { color: #8a97aa; font-size: 9px; line-height: 1.4; }
.upload-browse { margin-left: auto; padding: 8px 10px; border: 1px solid #dfe7f2; border-radius: 7px; color: #52627b; background: #fff; font-size: 9px; font-weight: 700; }
.modal-error { margin: 9px 0 0; }
.modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; padding-top: 17px; border-top: 1px solid #edf0f5; }
.modal-footer p { max-width: 195px; margin: 0; color: #929daf; font-size: 9px; line-height: 1.5; }
.modal-footer > div { display: flex; gap: 8px; }
.modal-footer .button { min-height: 39px; padding: 0 13px; font-size: 10px; }
.toast { position: fixed; z-index: 20; right: 25px; bottom: 25px; display: flex; min-height: 45px; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid #d8eee4; border-radius: 10px; color: #266d52; background: #f1fbf6; box-shadow: 0 9px 30px rgba(30,66,56,.12); font-size: 11px; font-weight: 650; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-check { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; background: #38a779; }
.toast-check svg { width: 13px; height: 13px; stroke-width: 2.5; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(7px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1180px) {
  .content { padding-right: 27px; padding-left: 27px; }
  .topbar { padding: 0 27px; }
  .table-head, .site-row { grid-template-columns: minmax(140px, 1.2fr) minmax(190px, 1.6fr) minmax(125px, 1fr) 95px 86px; gap: 9px; padding-right: 14px; padding-left: 14px; }
  .row-actions .icon-button { width: 31px; }
}
@media (max-width: 980px) {
  .sidebar { width: 212px; }
  .main-area { margin-left: 212px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-highlight { grid-column: span 2; }
  .table-head { display: none; }
  .site-row { grid-template-columns: minmax(150px, 1fr) minmax(160px, 1.2fr) 100px; row-gap: 8px; padding: 14px 16px; }
  .project-date { display: none; }
  .status-pill { justify-self: start; }
  .row-actions { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 700px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-card { width: min(100%, 500px); padding: 38px 25px; }
  .login-intro { margin-top: 52px; }
  .login-foot { margin-top: 42px; }
  .login-art { display: none; }
  .sidebar { position: static; width: auto; min-height: 61px; flex-direction: row; align-items: center; padding: 10px 16px; }
  .sidebar .brand { padding: 0; }
  .sidebar .brand-mark { width: 36px; height: 36px; }
  .sidebar-label, .sidebar nav, .help-card { display: none; }
  .sidebar-bottom { display: block; margin: 0 0 0 auto; }
  .sidebar-user { gap: 8px; padding: 0; border: 0; }
  .sidebar-user .avatar, .sidebar-user .user-copy { display: none; }
  .sidebar .icon-button { width: 40px; height: 40px; }
  .main-area { margin-left: 0; }
  .topbar { height: 53px; padding: 0 17px; }
  .breadcrumb { font-size: 10px; }
  .secure-label { display: none; }
  .content { padding: 28px 17px 20px; }
  .welcome-row { align-items: flex-start; flex-direction: column; gap: 17px; }
  .welcome-row h1 { font-size: 25px; }
  .welcome-copy { max-width: 400px; font-size: 11px; }
  .welcome-row > .button { min-height: 41px; }
  .stats-grid { gap: 9px; margin-top: 23px; }
  .stat-card { min-height: 90px; gap: 10px; padding: 12px; }
  .stat-icon { width: 33px; height: 33px; border-radius: 9px; }
  .stat-card p { font-size: 9px; }
  .stat-card strong { font-size: 18px; }
  .stat-card .stat-word { font-size: 14px; }
  .stat-note { right: 10px; bottom: 8px; max-width: 80%; font-size: 8px; text-align: right; }
  .projects-section { margin-top: 27px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .search-box { width: 100%; max-width: 360px; }
  .site-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 13px; }
  .project-name { grid-column: 1; }
  .project-address { grid-column: 1; padding-left: 45px; }
  .status-pill { grid-column: 1; margin-left: 45px; }
  .row-actions { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .row-actions .icon-button { width: 35px; height: 35px; }
  .empty-state { min-height: 310px; padding-right: 17px; padding-left: 17px; }
  .page-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
  .modal { padding: 23px 18px 18px; }
  .modal-footer { align-items: flex-start; flex-direction: column; }
  .modal-footer p { max-width: none; }
  .modal-footer > div { width: 100%; justify-content: flex-end; }
}
@media (max-width: 390px) {
  .content { padding-right: 13px; padding-left: 13px; }
  .topbar { padding-right: 13px; padding-left: 13px; }
  .breadcrumb { gap: 5px; font-size: 9px; }
  .top-avatar { width: 28px; height: 28px; }
  .stat-card { align-items: flex-start; flex-direction: column; min-height: 120px; }
  .stat-note { left: 12px; right: auto; bottom: 10px; text-align: left; }
  .slug-field .text-input { padding-right: 12px; }
  .slug-field > span { display: none; }
  .upload-zone { gap: 9px; padding: 10px; }
  .upload-browse { padding: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
