:root {
  color-scheme: light;
  --navy: #111d36;
  --navy-soft: #1a2948;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-pale: #eff6ff;
  --cyan: #38bdf8;
  --ink: #172033;
  --muted: #697386;
  --line: #e5e9f0;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --success: #15803d;
  --warning: #b45309;
  --danger: #c2413b;
  --shadow: 0 12px 30px rgba(28, 45, 79, 0.08);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 18px 20px; background: var(--navy); color: #dce6f9; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 30px; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; background: linear-gradient(145deg, var(--cyan), var(--blue)); box-shadow: 0 8px 22px rgba(37, 99, 235, .36); }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { color: #fff; font-size: 17px; letter-spacing: .01em; }
.brand-copy small { color: #91a1bd; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }

.nav-list { display: grid; gap: 7px; }
.nav-item { width: 100%; min-height: 46px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 9px; padding: 0 13px; border: 0; border-radius: 11px; color: #9fb0cc; background: transparent; text-align: left; transition: .18s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(37,99,235,.38), rgba(37,99,235,.16)); box-shadow: inset 3px 0 var(--cyan); }
.nav-icon { font-size: 18px; text-align: center; }
.nav-count { min-width: 24px; padding: 2px 7px; border-radius: 999px; color: #cceeff; background: rgba(56,189,248,.18); font-size: 11px; text-align: center; }
.sidebar-footer { margin-top: auto; display: grid; gap: 18px; padding: 20px 10px 4px; border-top: 1px solid rgba(255,255,255,.09); }
.sidebar-footer a { color: #8fb3ff; text-decoration: none; font-size: 13px; }
.service-status { display: flex; gap: 10px; align-items: center; }
.service-status div { display: grid; gap: 2px; }
.service-status strong { color: #eaf2ff; font-size: 12px; }
.service-status small { color: #7f91af; font-size: 11px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 5px rgba(74,222,128,.1); }

.workspace { min-width: 0; }
.topbar { min-height: 92px; display: flex; align-items: center; gap: 18px; justify-content: space-between; padding: 20px 32px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.eyebrow, .section-kicker { margin: 0 0 4px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.topbar h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.oncall-pill { display: grid; gap: 1px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfe; }
.oncall-pill span { color: var(--muted); font-size: 10px; }
.oncall-pill strong { font-size: 12px; }
.account-pill { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 5px 7px 5px 5px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.account-avatar { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--navy-soft); font-size: 11px; font-weight: 800; }
.account-pill strong { max-width: 135px; overflow: hidden; text-overflow: ellipsis; color: #344054; font-size: 11px; white-space: nowrap; }
.account-pill button { padding: 4px 6px; border: 0; color: var(--muted); background: transparent; font-size: 11px; }
.account-pill button:hover { color: var(--danger); }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 22px; }

.main-content { padding: 24px 32px 48px; }
.notice { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; padding: 12px 15px; border: 1px solid #f2d6a8; border-radius: 12px; background: #fffaf0; color: #7a4a0b; }
.notice-icon { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: white; background: #d97706; font-weight: 800; }
.notice div { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; line-height: 1.5; }
.notice span { color: #8a632d; }

.view { display: none; }
.view.active { display: block; animation: reveal .2s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.view-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 2px 0 18px; }
.view-toolbar h2 { margin: 0 0 5px; font-size: 22px; }
.view-toolbar p { margin: 0; color: var(--muted); font-size: 13px; }

.button { min-height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; font-size: 12px; transition: .15s ease; }
.button.primary { color: #fff; background: var(--blue); box-shadow: 0 6px 16px rgba(37,99,235,.2); }
.button.primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.button.ghost { color: #344054; background: #fff; border-color: var(--line); }
.button.ghost:hover { border-color: #b8c3d6; background: #f9fafc; }
.button.danger { color: var(--danger); background: #fff; border-color: #f2c8c4; }
.button.small { min-height: 32px; padding: 0 11px; }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.text-button { border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 700; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric { position: relative; min-height: 132px; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 5px 18px rgba(28,45,79,.04); }
.metric::after { content: ""; position: absolute; width: 74px; height: 74px; border-radius: 50%; right: -20px; top: -22px; background: var(--metric-tint, var(--blue-pale)); }
.metric-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.metric-symbol { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--metric-color, var(--blue)); background: var(--metric-tint, var(--blue-pale)); font-weight: 800; }
.metric strong { display: block; margin-top: 13px; font-size: 32px; line-height: 1; letter-spacing: -.04em; }
.metric small { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; }

.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.month-picker { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.month-picker input { min-height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; color: var(--ink); background: #fff; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; color: var(--muted); font-size: 11px; }
.calendar-legend span { padding: 4px 7px; border-radius: 7px; background: #f4f6fb; }
.calendar-legend .holiday { color: #b42318; background: #fee4e2; }.calendar-legend .adjusted { color: #175cd3; background: #eaf2ff; }
.month-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.calendar-weekday { padding: 8px; color: var(--muted); font-size: 11px; font-weight: 700; text-align: center; background: #fafbfe; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar-day { min-height: 104px; padding: 8px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: #fff; text-align: left; }
.calendar-day:hover { outline: 2px solid #93c5fd; outline-offset: -2px; z-index: 1; }
.calendar-day.weekend { background: #fafbfe; }.calendar-day.holiday { background: #fff7f6; }.calendar-day.adjusted_workday { background: #f4f8ff; }
.calendar-date { display: flex; justify-content: space-between; gap: 4px; font-size: 11px; font-weight: 800; }.calendar-label { overflow: hidden; color: var(--danger); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-shift { margin-top: 6px; padding: 4px 5px; overflow: hidden; border-radius: 6px; color: #1d4ed8; background: #eaf2ff; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-empty { min-height: 104px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fbfcfe; }
.panel { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px 13px; }
.panel-header h2 { margin: 0; font-size: 16px; }
.loading-block { min-height: 96px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }

.queue-list { display: grid; min-height: 0; }
.queue-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 15px 20px; border-top: 1px solid var(--line); }
.priority-badge { min-width: 38px; padding: 5px 8px; border-radius: 8px; font-size: 11px; font-weight: 800; text-align: center; }
.priority-P1 { color: #b42318; background: #fee4e2; }
.priority-P2 { color: #b54708; background: #ffead5; }
.priority-P3 { color: #175cd3; background: #eaf2ff; }
.priority-P4 { color: #475467; background: #f2f4f7; }
.queue-copy { min-width: 0; }
.queue-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.queue-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.queue-time { color: #8b95a7; font-size: 11px; white-space: nowrap; }

.integration-list { display: grid; padding: 0 20px 16px; min-height: 0; }
.integration-item { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 12px; }
.integration-item:first-child { border-top: 0; }
.integration-state { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.integration-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; }
.integration-state.ready { color: var(--success); }
.integration-state.ready::before { background: #22c55e; }

.table-wrap { overflow-x: auto; min-height: 0; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 11px 16px; color: #7a8497; background: #fafbfc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcff; }
.clickable-row { cursor: pointer; }
.clickable-row:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.cell-title { max-width: 390px; font-weight: 700; }
.muted { color: var(--muted); }
.tag { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 999px; color: #344054; background: #f2f4f7; font-size: 10px; font-weight: 700; }
.tier-S { color: #7f56d9; background: #f4ebff; }
.tier-A { color: #175cd3; background: #eaf2ff; }
.tier-B { color: #475467; background: #f2f4f7; }
.status-connected { color: #067647; background: #ecfdf3; }
.filter-pill { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: 11px; }

.candidate-list { display: grid; gap: 13px; min-height: 0; }
.candidate-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 6px 20px rgba(28,45,79,.05); }
.candidate-top { display: flex; align-items: start; gap: 12px; }
.candidate-title { flex: 1; min-width: 0; }
.candidate-title h3 { margin: 0; font-size: 15px; line-height: 1.45; }
.candidate-title p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.candidate-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 13px 0 0 50px; }
.candidate-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 15px 0 0 50px; padding-top: 14px; border-top: 1px solid var(--line); }
.candidate-actions select { min-height: 34px; max-width: 190px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #344054; font-size: 11px; }

.timeline { display: grid; padding: 6px 20px 18px; min-height: 0; }
.timeline.compact { padding-top: 0; }
.timeline-item { position: relative; padding: 12px 0 12px 20px; border-top: 1px solid var(--line); }
.timeline-item::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 8px; border: 2px solid white; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px #a8c2ff; }
.timeline-item strong { display: block; font-size: 12px; }
.timeline-item p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.timeline-item small { display: block; margin-top: 5px; color: #929bad; font-size: 10px; }
.draft-editor { margin-top: 8px; min-height: 96px; line-height: 1.55; font-size: 12px; }
.draft-editor[readonly] { background: #f7f9fc; color: #536078; }
.error-text { color: #b42318 !important; }
.empty { min-height: 150px; display: grid; place-items: center; padding: 30px; color: var(--muted); text-align: center; }
.empty strong { display: block; margin-bottom: 5px; color: #344054; }

.dialog { width: min(590px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 24px 80px rgba(17,29,54,.28); }
.dialog.small { width: min(500px, calc(100vw - 32px)); }
.dialog.detail-dialog { width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; }
.dialog::backdrop { background: rgba(11,20,38,.55); backdrop-filter: blur(3px); }
.dialog form { display: grid; gap: 14px; padding: 22px; }
.dialog-header { display: flex; justify-content: space-between; align-items: start; }
.dialog-header h2 { margin: 0; font-size: 20px; }
.dialog-close { border: 0; background: transparent; color: var(--muted); font-size: 26px; line-height: 1; }
.dialog-help { margin: -3px 0 2px; padding: 10px 12px; border-radius: 9px; color: #506078; background: #f3f6fb; font-size: 11px; line-height: 1.5; }
label { display: grid; gap: 6px; color: #344054; font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #d7deea; border-radius: 9px; background: #fff; color: var(--ink); outline: none; }
input, select { min-height: 40px; padding: 0 11px; }
textarea { padding: 10px 11px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #6e9cff; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 5px; }
.compact-actions { padding: 0; }
.checkbox-label { display: flex; align-items: center; gap: 9px; }
.checkbox-label input { width: 16px; min-height: 16px; }
.detail-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.detail-stat { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfe; }
.detail-stat span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 600; }
.detail-stat strong { display: block; overflow: hidden; text-overflow: ellipsis; color: #344054; font-size: 12px; white-space: nowrap; }
.detail-section { display: grid; gap: 12px; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.detail-section-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.detail-section-head h3 { margin: 0; font-size: 14px; }
.detail-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.detail-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.detail-card { position: relative; min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcff; }
.detail-card h4 { margin: 0 54px 7px 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; white-space: nowrap; }
.detail-card p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.detail-card .card-edit { position: absolute; top: 9px; right: 9px; }
.issue-controls { display: grid; grid-template-columns: 120px 160px minmax(180px, 1fr) auto; gap: 10px; align-items: end; }
.issue-timeline { position: relative; display: grid; gap: 0; }
.issue-event { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 0 0 18px; }
.issue-event:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 0; width: 1px; background: #d9e2f1; }
.issue-event-marker { position: relative; z-index: 1; width: 13px; height: 13px; margin-top: 3px; border: 3px solid #dbe8ff; border-radius: 50%; background: var(--blue); }
.issue-event-marker.customer { border-color: #d1fae5; background: #10b981; }
.issue-event-marker.internal { border-color: #f3e8ff; background: #9333ea; }
.issue-event-marker.system { border-color: #e5e7eb; background: #64748b; }
.issue-event-body { min-width: 0; }
.issue-event-body header { display: flex; justify-content: space-between; gap: 12px; }
.issue-event-body strong { font-size: 11px; }
.issue-event-body time { color: #929bad; font-size: 10px; white-space: nowrap; }
.issue-event-body p { margin: 6px 0 0; color: #475467; font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.note-composer { padding: 16px; border: 1px solid #dce6f5; border-radius: 12px; background: #f8faff; }

.login-body { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: #eef3fb; }
.login-shell { width: min(990px, 100%); min-height: 610px; display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 28px 80px rgba(17,29,54,.18); }
.login-brand-panel { display: flex; flex-direction: column; padding: 44px; color: #dfeaff; background: radial-gradient(circle at 90% 5%, rgba(56,189,248,.24), transparent 35%), linear-gradient(150deg, #111d36, #192c51); }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand > div { display: grid; gap: 2px; }
.login-brand strong { color: #fff; font-size: 18px; }
.login-brand span:not(.brand-mark) { color: #8ea5c9; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.login-message { margin: auto 0; }
.login-message .section-kicker { color: #70d0fb; }
.login-message h1 { margin: 12px 0 18px; color: #fff; font-size: clamp(30px, 4vw, 43px); line-height: 1.2; letter-spacing: -.04em; }
.login-message > p:last-child { max-width: 470px; margin: 0; color: #aebdd4; font-size: 13px; line-height: 1.8; }
.login-security-note { display: flex; gap: 10px; align-items: flex-start; padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; background: rgba(255,255,255,.05); }
.login-security-note > span { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #11203a; background: #7dd3fc; font-weight: 800; }
.login-security-note p { margin: 0; color: #9eb0cb; font-size: 10px; line-height: 1.6; }
.login-security-note strong { color: #e6effd; }
.login-form-panel { display: grid; place-items: center; padding: 42px; }
.login-form { width: min(330px, 100%); display: grid; gap: 18px; }
.login-form h2 { margin: 6px 0 7px; color: var(--ink); font-size: 25px; }
.login-form > div > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.login-submit { width: 100%; min-height: 44px; }
.login-error { min-height: 17px; margin: -7px 0; color: var(--danger); font-size: 11px; }
.login-footnote { margin: 0; color: #929bad; font-size: 10px; line-height: 1.6; text-align: center; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: 380px; padding: 12px 16px; border-radius: 10px; color: #fff; background: var(--navy-soft); box-shadow: 0 16px 40px rgba(17,29,54,.28); font-size: 12px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: none; }
.toast.error { background: #a9322a; }

@media (max-width: 1080px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .content-grid { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 2; }
  .oncall-pill { display: none; }
}

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -260px; width: 248px; transition: left .2s ease; box-shadow: 10px 0 30px rgba(17,29,54,.2); }
  .sidebar.open { left: 0; }
  .mobile-menu { display: block; }
  .topbar { min-height: 78px; padding: 14px 16px; }
  .topbar h1 { font-size: 19px; }
  .topbar-actions .ghost { display: none; }
  .topbar-actions .primary { padding: 0 10px; }
  .main-content { padding: 16px 14px 36px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { min-height: 118px; padding: 15px; }
  .metric strong { font-size: 27px; }
  .content-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .candidate-meta, .candidate-actions { margin-left: 0; }
  .candidate-actions { align-items: stretch; }
  .candidate-actions select, .candidate-actions .button { flex: 1 1 130px; max-width: none; }
  .view-toolbar { align-items: start; }
  .notice div { display: grid; gap: 2px; }
  .account-pill strong { display: none; }
  .detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-card-grid { grid-template-columns: 1fr; }
  .issue-controls { grid-template-columns: 1fr 1fr; }
  .login-body { padding: 14px; }
  .login-shell { min-height: 0; grid-template-columns: 1fr; }
  .login-brand-panel { min-height: 260px; padding: 28px; }
  .login-message { margin: 34px 0 0; }
  .login-message h1 { font-size: 29px; }
  .login-message > p:last-child, .login-security-note { display: none; }
  .login-form-panel { padding: 34px 28px; }
}

@media (max-width: 460px) {
  .metric-grid { grid-template-columns: 1fr; }
  .topbar-actions .primary { font-size: 0; width: 38px; padding: 0; }
  .topbar-actions .primary::after { content: "+"; font-size: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .detail-summary, .issue-controls { grid-template-columns: 1fr; }
}
