:root {
  --ink: #14213d;
  --muted: #6d7891;
  --line: #e5eaf2;
  --surface: #ffffff;
  --canvas: #f4f7fb;
  --blue: #246bfd;
  --blue-dark: #1552ce;
  --blue-soft: #eaf1ff;
  --green: #15956b;
  --green-soft: #e7f8f1;
  --amber: #b7791f;
  --amber-soft: #fff6df;
  --red: #c2414a;
  --red-soft: #fff0f1;
  --shadow: 0 16px 40px rgba(28, 45, 82, .08);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }

.app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 250px; padding: 28px 22px;
  background: #101c35; color: #fff; display: flex; flex-direction: column; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 38px; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
.brand small, .sidebar-footer small { display: block; color: #8e9ab4; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center;
  background: linear-gradient(145deg, #3d84ff, #1854d8); color: #fff; font-weight: 800;
  box-shadow: 0 8px 22px rgba(36, 107, 253, .3);
}
.nav-list { display: grid; gap: 8px; }
.nav-item { padding: 12px 13px; border-radius: 11px; color: #aeb8cc; display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 600; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.08); color: #fff; }
.nav-icon { width: 21px; color: #6da0ff; text-align: center; font-size: 18px; }
.sidebar-footer { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; gap: 10px; font-size: 13px; }
.system-dot { width: 9px; height: 9px; border-radius: 50%; background: #31d69b; box-shadow: 0 0 0 5px rgba(49,214,155,.1); }

.main-content { grid-column: 2; min-width: 0; padding: 34px clamp(24px, 4vw, 64px) 70px; max-width: 1500px; width: 100%; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.topbar h1 { margin: 2px 0 0; font-size: 28px; letter-spacing: -.035em; }
.eyebrow { margin-bottom: 5px; color: #8190aa; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }

.button { border: 0; border-radius: 10px; min-height: 42px; padding: 0 17px; font-weight: 750; font-size: 13px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; display: inline-flex; align-items: center; justify-content: center; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(36,107,253,.25); outline-offset: 2px; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 7px 18px rgba(36,107,253,.2); }
.button-primary:hover:not(:disabled) { background: var(--blue-dark); box-shadow: 0 10px 23px rgba(36,107,253,.25); }
.button-secondary { color: #244064; background: #eef3fa; }
.button-secondary:hover:not(:disabled) { background: #e3eaf4; }
.button-quiet { color: #65728b; background: #fff; border: 1px solid var(--line); }
.button-full { width: 100%; }

.flash-stack { display: grid; gap: 8px; margin-bottom: 18px; }
.flash { border-radius: 10px; padding: 12px 14px; font-size: 13px; font-weight: 650; }
.flash-error { background: var(--red-soft); color: var(--red); border: 1px solid #ffdadd; }
.flash-success { background: var(--green-soft); color: #087654; border: 1px solid #c9f0e1; }

.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; }
.customer-search { scroll-margin-top: 20px; padding: clamp(25px, 4vw, 40px); background: radial-gradient(circle at 92% 5%, rgba(68,126,255,.1), transparent 32%), #fff; }
.search-intro { display: flex; align-items: center; gap: 17px; }
.search-intro h2 { margin: 0 0 7px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.04em; }
.search-intro p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.search-icon { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 16px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 27px; font-weight: 800; }
.customer-search-form { margin-top: 26px; padding: 18px; border: 1px solid #dce4ef; border-radius: 14px; background: #f8fafd; }
.customer-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.customer-filter-grid label { color: #526078; font-size: 11px; font-weight: 750; }
.customer-search-form input { display: block; width: 100%; min-width: 0; height: 46px; margin-top: 7px; padding: 0 13px; border: 1px solid #dce3ee; border-radius: 10px; outline: 0; background: #fff; color: var(--ink); }
.customer-search-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 17px; }
.search-hints { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.search-hints span { padding: 6px 9px; border-radius: 999px; background: #f2f5fa; color: #728097; font-size: 10px; font-weight: 700; }
.search-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 18px 2px 9px; color: var(--muted); font-size: 12px; }
.search-summary strong { color: var(--ink); }
.filter-chip { padding: 5px 8px; border-radius: 999px; background: var(--blue-soft); color: #245ebd; font-size: 10px; font-weight: 750; }
.search-results { display: grid; border-top: 1px solid var(--line); }
.search-result { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 15px 2px; border-bottom: 1px solid var(--line); }
.search-result:hover .result-copy strong { color: var(--blue); }
.result-avatar { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 850; }
.result-copy { min-width: 0; }
.result-copy strong, .result-copy small { display: block; }
.result-copy strong { margin-bottom: 4px; font-size: 13px; }
.result-copy small { color: #78859a; font-size: 11px; line-height: 1.45; }
.result-arrow { color: var(--blue); font-weight: 800; }
.search-empty { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #8390a5; }
.search-empty > span { font-size: 28px; }
.search-empty strong { margin-top: 7px; color: #44516a; font-size: 13px; }
.search-empty p { margin: 5px 0 0; font-size: 11px; }

.hero-strip { min-height: 190px; padding: 33px 38px; border-radius: 22px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; position: relative; background: radial-gradient(circle at 82% 10%, rgba(116,166,255,.38), transparent 31%), linear-gradient(120deg, #142b58, #245fc8); box-shadow: 0 20px 50px rgba(35,72,139,.18); }
.hero-strip::after { content: ""; position: absolute; width: 230px; height: 230px; right: -70px; bottom: -145px; border: 28px solid rgba(255,255,255,.08); border-radius: 50%; }
.hero-strip h2 { margin: 16px 0 8px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.045em; }
.hero-strip p { margin: 0; color: #d8e5ff; max-width: 680px; line-height: 1.6; }
.pill { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.pill-blue { background: rgba(255,255,255,.14); color: #fff; }
.hero-stat { position: relative; z-index: 1; min-width: 150px; border-left: 1px solid rgba(255,255,255,.22); padding-left: 30px; }
.hero-stat strong { display: block; font-size: 38px; line-height: 1; letter-spacing: -.05em; }
.hero-stat span { display: block; color: #c3d5f8; font-size: 12px; margin-top: 8px; }

.section-block { margin-top: 38px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 13px; }
.section-heading.compact { align-items: center; }
.card { background: var(--surface); border: 1px solid rgba(222,228,239,.9); border-radius: var(--radius); box-shadow: var(--shadow); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.account-card { padding: 24px; }
.card-topline, .account-identity, .account-actions, .form-footer, .output-hero, .job-hero, .log-header { display: flex; align-items: center; }
.card-topline { justify-content: space-between; gap: 20px; }
.account-identity { gap: 12px; }
.account-identity h3 { margin: 0 0 3px; font-size: 17px; }
.account-identity p { margin: 0; color: var(--muted); font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.avatar { width: 45px; height: 45px; border-radius: 14px; display: grid; place-items: center; font-weight: 850; }
.avatar-manager { background: #eaf1ff; color: #2363e6; }
.avatar-agent { background: #e8f8f4; color: #128366; }
.status-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .055em; white-space: nowrap; }
.status-badge.large { padding: 8px 13px; font-size: 11px; }
.status-good, .status-succeeded { color: #087654; background: var(--green-soft); }
.status-warn, .status-failed { color: var(--red); background: var(--red-soft); }
.status-running { color: #185fce; background: var(--blue-soft); }
.status-queued { color: var(--amber); background: var(--amber-soft); }
.profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 8px; }
.profile-facts div { background: #f7f9fc; border-radius: 11px; padding: 11px 12px; }
.profile-facts dt { color: #8792a7; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.profile-facts dd { margin: 4px 0 0; font-size: 12px; font-weight: 700; }
.timestamp { margin: 8px 0 0; color: #9aa4b6; font-size: 10px; }
.account-actions { justify-content: flex-end; gap: 9px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.access-note { margin-right: auto; color: #8a95a8; font-size: 10px; }
.inline-job-form { display: flex; gap: 7px; align-items: center; }
.otp-input { width: 120px; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 11px; font-size: 12px; }

.two-column { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); gap: 18px; }
.settings-card, .jobs-card { padding: 24px; min-width: 0; }
.count-badge { width: 30px; height: 30px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.field-label { display: block; margin-bottom: 8px; color: #59667d; font-size: 12px; font-weight: 700; }
textarea, .login-form input { width: 100%; border: 1px solid #dce3ee; background: #fbfcfe; border-radius: 11px; padding: 13px 14px; color: var(--ink); resize: vertical; }
textarea { min-height: 155px; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.form-footer { justify-content: space-between; gap: 14px; margin-top: 11px; }
.form-footer span { color: #8a95a8; font-size: 10px; }
.job-list { display: grid; }
.job-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px 3px; border-bottom: 1px solid var(--line); }
.job-row:last-child { border-bottom: 0; }
.job-row:hover strong { color: var(--blue); }
.job-icon { width: 31px; height: 31px; border-radius: 9px; background: #f1f5fa; display: grid; place-items: center; color: #6f7e96; }
.job-main { min-width: 0; }
.job-main strong, .job-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-main strong { font-size: 12px; }
.job-main small { margin-top: 3px; color: #929cad; font-size: 9px; }
.empty-state { min-height: 225px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #7d899e; }
.empty-state span { font-size: 28px; color: #a8b2c3; }
.empty-state strong { margin-top: 8px; color: #46536c; font-size: 13px; }
.empty-state p { margin: 5px 0 0; font-size: 11px; }
.empty-state.roomy { min-height: 210px; }

.table-card { overflow: hidden; }
.data-table { width: 100%; }
.table-row { display: grid; grid-template-columns: 1.15fr 1.4fr .8fr 65px; gap: 18px; align-items: center; min-height: 65px; padding: 12px 21px; border-top: 1px solid var(--line); font-size: 12px; }
.customer-table .table-row { grid-template-columns: .75fr 1.35fr 1fr 1.3fr .8fr 1fr; min-width: 1050px; }
.table-row:first-child { border-top: 0; }
.table-head { min-height: 42px; background: #f8fafd; color: #8c96a8; text-transform: uppercase; letter-spacing: .075em; font-size: 9px; font-weight: 800; }
.table-row strong, .table-row small { display: block; }
.table-row small { margin-top: 3px; color: #9aa4b5; font-size: 9px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #68758a; }
.text-link, .back-link { color: var(--blue); font-weight: 750; }
.back-link { display: inline-flex; margin-bottom: 22px; font-size: 13px; }

.job-hero, .output-hero { justify-content: space-between; gap: 25px; margin-bottom: 18px; }
.job-hero h2, .output-hero h2 { margin: 0; font-size: 26px; letter-spacing: -.035em; }
.job-hero p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.log-card { overflow: hidden; }
.log-header { justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.log-header h3 { margin: 0; font-size: 14px; }
.log-header span { color: #8f99aa; font-size: 10px; }
.log-card pre { margin: 0; min-height: 330px; max-height: 560px; overflow: auto; padding: 22px; background: #10192d; color: #c5d4ec; font: 12px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.content-card { padding: 0; overflow: hidden; }
.content-label { padding: 15px 20px; border-bottom: 1px solid var(--line); color: #7f8a9d; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 800; }
.content-card pre { margin: 0; padding: 24px; max-height: 65vh; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; color: #35425a; }

.profile-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.profile-editor { overflow: hidden; }
.editor-heading { display: flex; align-items: center; gap: 14px; padding: 25px 27px; border-bottom: 1px solid var(--line); }
.editor-heading h2 { margin: 0 0 5px; font-size: 24px; letter-spacing: -.035em; }
.editor-heading p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.profile-form { padding: 3px 27px 27px; }
.form-section { padding: 23px 0; border-bottom: 1px solid var(--line); }
.form-section h3 { margin: 0 0 13px; font-size: 14px; }
.profile-form label { display: block; color: #526078; font-size: 11px; font-weight: 750; }
.profile-form input:not([type="checkbox"]) { width: 100%; height: 48px; margin-top: 7px; border: 1px solid #dce3ee; background: #fbfcfe; border-radius: 11px; padding: 0 14px; color: var(--ink); }
.field-help { margin: -5px 0 15px; color: #8994a6; font-size: 11px; line-height: 1.5; }
.generated-otp-control { margin-bottom: 20px; padding: 15px; border: 1px solid #dce4ef; border-radius: 12px; background: #f8fafd; }
.generated-otp-control .field-label { margin-bottom: 0; }
.otp-generator { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; }
.profile-form .generated-otp-code { font: 800 20px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .28em; text-align: center; background: #fff; }
.otp-generator-status { min-height: 16px; margin: 8px 1px 0; color: #7c899e; font-size: 10px; }
.profile-form .check-row { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-weight: 650; }
.check-row input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.confirmation-section { border-bottom: 0; }
.editor-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 2px; }
.security-panel { padding: 24px; position: sticky; top: 25px; }
.security-shield { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: 24px; font-weight: 850; }
.security-panel h3 { margin: 16px 0 12px; font-size: 15px; }
.security-panel ul { margin: 0; padding-left: 17px; color: #6f7c91; font-size: 11px; line-height: 1.75; }

.cron-overview { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 27px; }
.cron-overview h2 { margin: 0 0 7px; font-size: 25px; letter-spacing: -.035em; }
.cron-overview p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.cron-status-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.cron-status-grid div { padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cron-status-grid small, .cron-status-grid strong { display: block; }
.cron-status-grid small { margin-bottom: 6px; color: #8a95a8; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.cron-status-grid strong { overflow: hidden; text-overflow: ellipsis; color: #34425b; font-size: 11px; white-space: nowrap; }
.cron-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cron-mode-card { padding: 24px; }
.cron-mode-heading { display: flex; align-items: center; gap: 12px; }
.cron-mode-heading h3 { margin: 0; font-size: 18px; }
.cron-mode-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 900; }
.cron-mode-icon.simulator { background: var(--green-soft); color: var(--green); }
.cron-mode-card > p { margin: 17px 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.cron-schedule { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.cron-schedule li { display: flex; justify-content: space-between; gap: 15px; padding: 9px 10px; border-radius: 9px; background: #f7f9fc; color: #7d899c; font-size: 10px; }
.cron-schedule strong { color: #42516b; }
.cron-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.cron-log-card { margin-top: 16px; overflow: hidden; }
.cron-log-card pre { margin: 0; min-height: 180px; max-height: 340px; overflow: auto; padding: 20px; background: #10192d; color: #c5d4ec; font: 11px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }

.login-shell { background: #fff; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(430px, .9fr); }
.login-story { min-height: 100vh; padding: clamp(45px, 8vw, 110px); display: flex; align-items: flex-end; color: #fff; position: relative; overflow: hidden; background: radial-gradient(circle at 20% 10%, rgba(85,143,255,.42), transparent 29%), radial-gradient(circle at 90% 90%, rgba(55,210,167,.18), transparent 32%), linear-gradient(145deg, #0e1a32, #153c77); }
.login-story::before, .login-story::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.login-story::before { width: 580px; height: 580px; right: -300px; top: -180px; }
.login-story::after { width: 330px; height: 330px; left: -180px; bottom: -120px; }
.story-content { max-width: 680px; position: relative; z-index: 1; }
.story-kicker { display: inline-flex; padding: 7px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #d6e4ff; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.story-content h1 { margin: 24px 0 18px; max-width: 650px; font-size: clamp(38px, 5vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
.story-content > p { color: #bdcbe2; max-width: 560px; line-height: 1.7; font-size: 16px; }
.story-points { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 38px; color: #d5e0f2; font-size: 11px; font-weight: 700; }
.story-points span { display: flex; align-items: center; gap: 8px; }
.story-points i { width: 7px; height: 7px; border-radius: 50%; background: #48d9ae; box-shadow: 0 0 0 5px rgba(72,217,174,.1); }
.login-panel { display: grid; place-items: center; padding: 50px; background: #fff; }
.login-card { width: min(100%, 400px); }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 56px; font-size: 16px; }
.login-card h2 { margin: 7px 0 8px; font-size: 32px; letter-spacing: -.045em; }
.muted { color: var(--muted); font-size: 13px; }
.login-form { display: grid; gap: 17px; margin-top: 28px; }
.login-form label { color: #526078; font-size: 11px; font-weight: 750; }
.login-form input { height: 48px; margin-top: 7px; }
.password-field { display: block; position: relative; }
.password-field input { padding-right: 66px; }
.password-toggle { position: absolute; right: 8px; top: 14px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: #eef3fa; color: #385172; font-size: 11px; font-weight: 800; cursor: pointer; }
.setup-note { display: grid; gap: 4px; margin-top: 24px; padding: 13px 14px; border-radius: 11px; background: var(--amber-soft); color: #8a5b16; font-size: 11px; }
.setup-note code { font-weight: 750; }
.login-footnote { text-align: center; color: #9ba4b4; font-size: 10px; margin: 23px 0 0; }

@media (max-width: 1050px) {
  .account-grid, .two-column, .profile-editor-layout, .cron-mode-grid { grid-template-columns: 1fr; }
  .cron-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security-panel { position: static; }
  .login-story { padding: 55px; }
  .story-content h1 { font-size: 46px; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: auto; height: auto; padding: 15px 18px; flex-direction: row; align-items: center; }
  .brand { margin: 0; }
  .brand small, .nav-list, .sidebar-footer { display: none; }
  .main-content { padding: 24px 16px 50px; }
  .topbar { margin-bottom: 22px; }
  .hero-strip { padding: 28px; align-items: flex-start; flex-direction: column; }
  .hero-stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.2); padding: 18px 0 0; }
  .account-grid { grid-template-columns: 1fr; }
  .account-actions, .form-footer { align-items: stretch; flex-direction: column; }
  .access-note { margin: 0 0 4px; }
  .customer-search { padding: 24px 20px; }
  .search-intro { align-items: flex-start; }
  .customer-filter-grid { grid-template-columns: 1fr; }
  .customer-search-actions { align-items: stretch; flex-direction: column-reverse; }
  .cron-overview { align-items: flex-start; }
  .cron-status-grid { grid-template-columns: 1fr; }
  .inline-job-form { flex-wrap: wrap; }
  .otp-input { flex: 1; }
  .data-table { overflow-x: auto; }
  .table-row { min-width: 760px; }
  .login-layout { display: block; }
  .login-story { min-height: 38vh; padding: 45px 28px; align-items: center; }
  .story-content h1 { font-size: 36px; }
  .story-content > p, .story-points { display: none; }
  .login-panel { padding: 45px 25px; }
  .login-brand { margin-bottom: 38px; }
}
