:root {
  color-scheme: light;
  --navy: #102f5b;
  --navy-deep: #0b2345;
  --blue: #087bb5;
  --blue-light: #eaf5fb;
  --ink: #192b42;
  --muted: #6d7b8d;
  --line: #e6ebf0;
  --surface: #fff;
  --canvas: #f5f7fa;
  --green: #18865b;
  --green-light: #e9f7f0;
  --amber: #a9650c;
  --amber-light: #fff5e8;
  --red: #b83d45;
  --red-light: #fff0f0;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }
.prototype-banner { position: sticky; top: 0; z-index: 20; min-height: 32px; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 6px 16px; color: #704608; background: #fff4d9; border-bottom: 1px solid #f3e1b6; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-align: center; }
.prototype-dot { width: 7px; height: 7px; border-radius: 50%; background: #e4a42b; }
.app-shell { min-height: calc(100vh - 32px); display: flex; }
.sidebar { width: 254px; flex: 0 0 254px; display: flex; flex-direction: column; padding: 23px 14px 14px; color: #d6e4f3; background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%); }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 11px 28px; }
.brand-lockup img { width: 43px; height: 43px; border-radius: 11px; object-fit: contain; background: #fff; padding: 3px; }
.brand-lockup div, .profile-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-lockup strong { color: #fff; font-family: Manrope, sans-serif; font-size: 15px; letter-spacing: .045em; }
.brand-lockup span { margin-top: 3px; color: #b4c9df; font-size: 8px; font-weight: 700; letter-spacing: .11em; white-space: nowrap; }
.workspace-label { padding: 0 12px 10px; color: #89a5c2; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.primary-nav { display: grid; gap: 4px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 8px; color: #c7d7e8; background: transparent; text-align: left; font-size: 12px; font-weight: 600; transition: background .16s ease, color .16s ease; }
.nav-item:hover { color: white; background: rgba(255,255,255,.08); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.14); box-shadow: inset 3px 0 0 #5ab5e1; }
.nav-icon { display: inline-flex; width: 19px; justify-content: center; color: #a9c7e1; font-size: 17px; }
.nav-item.active .nav-icon { color: #8dd1f2; }
.nav-count { margin-left: auto; min-width: 21px; padding: 2px 6px; border-radius: 20px; color: #d8e8f7; background: rgba(255,255,255,.13); font-size: 10px; text-align: center; }
.alert-count { color: #ffe4b5; background: rgba(240,169,65,.2); }
.sidebar-bottom { margin-top: auto; }
.help-card { margin: 0 3px 16px; padding: 15px 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(5,19,40,.18); }
.help-mark { width: 22px; height: 22px; display: grid; place-items: center; margin-bottom: 9px; border: 1px solid #9cb9d5; border-radius: 50%; color: #c5d9ed; font-size: 12px; font-weight: 700; }
.help-card strong { color: #f3f7fb; font-size: 11px; }
.help-card p { margin: 5px 0 9px; color: #a9bfd5; font-size: 10px; line-height: 1.5; }
.help-link { display: flex; justify-content: space-between; width: 100%; padding: 0; border: 0; color: #91d0f0; background: none; font-size: 10px; font-weight: 700; }
.sidebar-profile { display: flex; align-items: center; gap: 9px; padding: 12px 7px 2px; border-top: 1px solid rgba(255,255,255,.14); }
.sidebar-profile .profile-copy strong { color: #f5f8fb; }
.sidebar-profile .profile-copy span { color: #9eb4cb; }
.profile-copy strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy span { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.logout-button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; color: #52677d; background: white; font-size: 10px; font-weight: 700; }
.logout-button:hover { color: var(--navy); background: #f5f8fb; }
.avatar { width: 33px; height: 33px; flex: 0 0 33px; display: grid; place-items: center; border: 1px solid #c9deed; border-radius: 50%; color: var(--navy); background: #e4f2fa; font-size: 10px; font-weight: 700; }
.avatar-small { width: 30px; height: 30px; flex-basis: 30px; color: #dcebf7; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); }
.profile-menu { margin-left: auto; color: #b1c5d9 !important; }
.main-area { min-width: 0; flex: 1; }
.topbar { height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid var(--line); background: #fff; }
.topbar-left, .topbar-actions, .top-profile, .breadcrumb { display: flex; align-items: center; }
.breadcrumb { gap: 9px; color: #77869a; font-size: 11px; }
.breadcrumb strong { color: #263b54; font-weight: 700; }
.crumb-separator { color: #c5cdd6; }
.topbar-actions { gap: 18px; }
.top-profile { gap: 9px; padding-left: 18px; border-left: 1px solid var(--line); }
.chevron { margin-left: 5px; color: #7e8b9b; font-size: 18px; }
.icon-button { position: relative; width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; color: #718197; background: transparent; font-size: 17px; }
.icon-button:hover { color: var(--navy); background: #f1f5f8; }
.notification-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notification-button i { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border: 1px solid white; border-radius: 50%; background: #e26d54; }
.mobile-menu { display: none; margin-right: 8px; }
.content { width: min(1180px, 100%); margin: 0 auto; padding: 30px 34px 46px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-heading-action { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.eyebrow { margin: 0 0 7px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; color: #18314f; font-family: Manrope, sans-serif; font-size: clamp(22px, 2.6vw, 29px); line-height: 1.2; letter-spacing: -.04em; }
.page-subtitle { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.date-chip { display: flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; color: #596b80; background: white; font-size: 10px; white-space: nowrap; }
.date-chip svg { width: 14px; height: 14px; fill: none; stroke: #7e8da0; stroke-width: 1.7; }
.demo-note { display: flex; align-items: center; gap: 10px; margin-bottom: 19px; padding: 11px 13px; border: 1px solid #d4e9f7; border-radius: 8px; color: #34617e; background: #f0f8fd; font-size: 10px; line-height: 1.45; }
.demo-note svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: #3f8ab5; stroke-width: 1.8; }
.demo-note strong { color: #244e6a; }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 13px; margin-bottom: 17px; }
.stat-card, .panel { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 3px 12px rgba(29,55,82,.025); }
.stat-card { min-height: 120px; padding: 16px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: var(--blue-light); font-size: 15px; }
.stat-icon.green { color: var(--green); background: var(--green-light); }
.stat-icon.amber { color: var(--amber); background: var(--amber-light); }
.stat-icon.violet { color: #6e60ae; background: #f1effb; }
.stat-label { color: #718096; font-size: 9px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.stat-value { margin: 10px 0 2px; color: #173457; font-family: Manrope, sans-serif; font-size: 25px; font-weight: 800; line-height: 1; }
.stat-foot { color: #8a97a7; font-size: 9px; }
.stat-foot .positive { color: var(--green); font-weight: 700; }
.alert-panel { display: flex; align-items: center; gap: 13px; margin-bottom: 17px; padding: 14px 16px; border: 1px solid #f1dbba; border-left: 3px solid #e3a23d; border-radius: 9px; background: #fffaf1; }
.alert-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; color: #a56411; background: #fff0d4; font-size: 16px; font-weight: 800; }
.alert-copy { flex: 1; }
.alert-copy strong { display: block; margin-bottom: 3px; color: #6e4b1a; font-size: 11px; }
.alert-copy span { color: #8c714c; font-size: 10px; }
.button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border: 1px solid transparent; border-radius: 7px; color: white; background: var(--blue); font-size: 10px; font-weight: 700; transition: background .16s ease, transform .16s ease; }
.button:hover { background: #066b9c; transform: translateY(-1px); }
.button.secondary { color: #39536c; border-color: #dfe6ed; background: white; }
.button.secondary:hover { background: #f6f8fa; }
.button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .8fr); gap: 15px; }
.panel { min-width: 0; padding: 17px 17px 10px; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.panel-header h2 { margin-bottom: 4px; color: #253c56; font-family: Manrope, sans-serif; font-size: 13px; letter-spacing: -.02em; }
.panel-header p { margin-bottom: 0; color: #8b98a7; font-size: 9px; }
.text-link { padding: 4px 0; border: 0; color: var(--blue); background: none; font-size: 9px; font-weight: 700; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 9px 8px; border-bottom: 1px solid var(--line); color: #8997a7; font-size: 8px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; white-space: nowrap; }
td { padding: 12px 8px; border-bottom: 1px solid #edf0f3; color: #526378; font-size: 9px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: #29415d; font-weight: 700; }
.subtle { color: #8c99a8; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 20px; font-size: 8px; font-weight: 700; }
.status::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ''; }
.status.pending { color: #a26412; background: #fff3de; }
.status.review { color: #316e9a; background: #eaf5fb; }
.status.done { color: #1d7c56; background: #e8f6ef; }
.status.returned { color: #9a5658; background: #fff0f0; }
.side-stack { display: grid; align-content: start; gap: 15px; }
.capacity-card { padding: 17px; border-radius: 10px; color: #e5f0fb; background: linear-gradient(135deg, #133d70, #102b52); }
.capacity-card .panel-header h2 { color: #fff; }
.capacity-card .panel-header p { color: #b3c7dd; }
.capacity-value-row { display: flex; align-items: end; justify-content: space-between; margin: 17px 0 9px; }
.capacity-value { color: white; font-family: Manrope, sans-serif; font-size: 30px; font-weight: 800; line-height: 1; }
.capacity-value span { color: #b3cadf; font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; }
.capacity-tag { padding: 4px 7px; border-radius: 5px; color: #bce4d0; background: rgba(73,175,125,.18); font-size: 8px; font-weight: 700; }
.progress-track { height: 6px; overflow: hidden; border-radius: 9px; background: rgba(255,255,255,.14); }
.progress-fill { width: 64%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3eadd2, #71d0db); }
.capacity-help { margin: 8px 0 0; color: #adc4da; font-size: 8px; }
.quick-actions { display: grid; gap: 7px; }
.quick-action { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 8px; border: 1px solid #edf0f3; border-radius: 7px; color: #344b64; background: #fff; text-align: left; font-size: 9px; font-weight: 700; }
.quick-action:hover { border-color: #c5dfed; background: #f7fbfd; }
.quick-action-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: var(--blue); background: var(--blue-light); font-size: 13px; }
.quick-action .arrow { margin-left: auto; color: #8a9aaa; font-size: 14px; }
.search-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.request-filters { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.search-box { position: relative; width: min(340px, 100%); }
.search-box svg { position: absolute; top: 10px; left: 11px; width: 14px; height: 14px; fill: none; stroke: #8b99aa; stroke-width: 1.8; }
.search-box input { width: 100%; height: 35px; padding: 0 12px 0 33px; border: 1px solid #e1e7ed; border-radius: 7px; outline: none; color: #334b65; background: white; font-size: 10px; }
.search-box input:focus { border-color: #7dbbd9; box-shadow: 0 0 0 3px rgba(8,123,181,.1); }
.filter-select { height: 35px; padding: 0 9px; border: 1px solid #e1e7ed; border-radius: 7px; color: #5f7084; background: white; font-size: 9px; }
.empty-state { padding: 36px 16px; color: #8190a0; text-align: center; font-size: 10px; }
.empty-state strong { display: block; margin-bottom: 5px; color: #425a73; font-size: 12px; }
.detail-button { padding: 4px 7px; border: 0; border-radius: 5px; color: var(--blue); background: #eef7fb; font-size: 8px; font-weight: 700; }
.detail-button[href] { display: inline-flex; text-decoration: none; }
.cell-subtext { display: block; margin-top: 4px; color: #8b98a7; font-size: 8px; }
.deadline-cell { min-width: 120px; white-space: nowrap; }
.deadline-cell .status { margin-top: 5px; }
.status.neutral { color: #53677b; background: #eff2f5; }
.admin-update-cell { min-width: 200px; }
.admin-update-cell select, .admin-update-cell input { display: block; width: 100%; min-width: 170px; min-height: 28px; margin: 0 0 5px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; color: #526378; background: white; font-size: 8px; }
.admin-update-cell .deadline-editor { display: grid; gap: 3px; margin: 3px 0 6px; color: #718096; font-size: 8px; font-weight: 700; }
.admin-update-cell .deadline-editor input { margin: 0; }
.error-panel { padding: 22px; }
.error-panel h2 { margin-bottom: 6px; font-size: 14px; }
.error-panel p { color: var(--muted); font-size: 11px; }
.auth-screen { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 15px; padding: 28px 16px; background: radial-gradient(circle at top left, #e3f3fb, transparent 44%), linear-gradient(145deg, #f7f9fc, #edf3f8); }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 9px; color: #44617d; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.auth-brand img { width: 56px; height: 56px; padding: 4px; border-radius: 15px; background: white; box-shadow: 0 8px 24px rgba(29,55,82,.08); object-fit: contain; }
.auth-card { width: min(430px, 100%); padding: 28px; border: 1px solid #e1e8ef; border-radius: 15px; background: white; box-shadow: 0 18px 55px rgba(26,52,78,.1); }
.auth-lock { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 11px; color: var(--blue); background: var(--blue-light); font-size: 20px; }
.auth-card h1 { font-size: 23px; }
.auth-card .page-subtitle { margin-bottom: 19px; line-height: 1.6; }
.auth-form, .request-form { display: grid; gap: 13px; }
.auth-form label, .request-form label, .modal-body label { display: grid; gap: 6px; color: #4a5e73; font-size: 10px; font-weight: 700; }
.auth-form input, .request-form input, .request-form textarea, .request-form select, .modal-body input { width: 100%; min-height: 38px; padding: 9px 10px; border: 1px solid #dfe6ed; border-radius: 7px; outline: none; color: #2c4259; background: white; font-size: 11px; }
.auth-form input:focus, .request-form input:focus, .request-form textarea:focus, .request-form select:focus, .modal-body input:focus { border-color: #75b7d5; box-shadow: 0 0 0 3px rgba(8,123,181,.1); }
.request-form textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
.auth-submit { width: 100%; min-height: 40px; margin-top: 3px; }
.auth-form button:disabled, .modal-actions button:disabled { opacity: .55; cursor: wait; }
.auth-footer { margin: 0; color: #7e8c9b; font-size: 9px; text-align: center; }
.auth-hint { margin: 15px 0 0; color: #8491a0; font-size: 9px; line-height: 1.5; }
.auth-message { margin: 0 0 14px; padding: 9px 10px; border: 1px solid #cce2ef; border-radius: 7px; color: #335e77; background: #f0f8fc; font-size: 10px; line-height: 1.45; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; background: rgba(13,31,50,.45); }
.modal-card { width: min(540px, 100%); max-height: min(88vh, 740px); overflow: auto; border: 1px solid #dfe6ed; border-radius: 12px; background: white; box-shadow: 0 22px 70px rgba(16,35,54,.25); }
.modal-card > header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); background: white; }
.modal-card > header h2 { margin: 0; color: #263f59; font-family: Manrope, sans-serif; font-size: 14px; }
.modal-body { padding: 18px; }
.modal-body > p { color: #617387; font-size: 10px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.modal-actions .button.secondary { color: #52677d; }
.form-privacy { margin: 0; padding: 9px 10px; border-radius: 6px; color: #62778a; background: #f2f6f8; font-size: 9px; line-height: 1.5; }
.request-form input[type="file"] { height: auto; min-height: 44px; padding: 6px; background: #f9fbfc; }
.request-form input[type="file"]::file-selector-button { min-height: 29px; margin-right: 8px; padding: 0 9px; border: 1px solid #d9e3eb; border-radius: 5px; color: #39536c; background: white; font: inherit; font-weight: 700; }
.invite-url { margin: 5px 0 9px; font-size: 9px !important; }
.request-detail { display: grid; gap: 10px; margin: 0 0 20px; }
.request-detail > div { display: grid; grid-template-columns: 115px 1fr; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid #eef1f4; }
.request-detail dt { color: #8794a2; font-size: 9px; font-weight: 700; }
.request-detail dd { margin: 0; color: #425a73; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.modal-body h3 { color: #2d4661; font-size: 11px; }
.event-list { display: grid; gap: 10px; margin: 0; padding: 0 0 0 17px; color: #7c8998; }
.event-list li { padding-left: 3px; font-size: 9px; }
.event-list li > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.event-actor { margin-left: auto; color: #738498; font-size: 8px; white-space: nowrap; }
.event-list time { color: #8996a4; font-size: 8px; }
.event-list p { margin: 6px 0 0; color: #566b81; line-height: 1.5; }
.document-list { display: grid; gap: 7px; margin: -7px 0 20px; padding: 0; list-style: none; }
.document-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 9px; border: 1px solid #e8edf1; border-radius: 6px; color: #52677d; font-size: 9px; overflow-wrap: anywhere; }
.document-list li small { display: block; margin-top: 3px; color: #8b98a7; font-size: 8px; }
.checkout-callout { display: flex; gap: 15px; align-items: flex-start; max-width: 720px; padding: 20px; border: 1px solid #dce8ef; border-radius: 10px; background: white; }
.checkout-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: var(--blue); background: var(--blue-light); font-size: 20px; }
.checkout-callout h2 { margin: 1px 0 7px; color: #29415d; font-family: Manrope, sans-serif; font-size: 14px; }
.checkout-callout p { margin: 0 0 8px; color: #708094; font-size: 10px; line-height: 1.6; }
.checkout-list { display: grid; gap: 9px; margin-top: 18px; }
.checkout-list span { display: flex; gap: 8px; color: #566a80; font-size: 10px; }
.checkout-list b { color: var(--green); }
.help-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.help-topic { padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.help-topic strong { display: block; margin-bottom: 6px; color: #2c4560; font-size: 11px; }
.help-topic p { margin: 0; color: #7b8999; font-size: 9px; line-height: 1.6; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 40; max-width: calc(100vw - 40px); padding: 10px 14px; border: 1px solid #d6e8f1; border-radius: 8px; color: #284d68; background: white; box-shadow: 0 8px 30px rgba(25,47,69,.14); font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.scrim { display: none; }

@media (max-width: 1000px) {
  .sidebar { width: 225px; flex-basis: 225px; }
  .topbar { padding: 0 23px; }
  .content { padding: 25px 23px 38px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; z-index: 31; inset: 32px auto 0 0; width: 270px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 14px 0 35px rgba(12,34,60,.18); }
  .sidebar.open { transform: translateX(0); }
  .scrim.show { position: fixed; z-index: 30; inset: 32px 0 0; display: block; background: rgba(12,27,45,.34); }
  .mobile-menu { display: inline-grid; }
  .topbar { height: 57px; padding: 0 16px; }
  .topbar-actions { gap: 8px; }
  .top-profile { padding-left: 10px; }
  .top-profile .profile-copy, .chevron { display: none; }
  .content { padding: 22px 16px 34px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quick-panel { grid-column: span 2; }
  .alert-panel { align-items: flex-start; flex-wrap: wrap; }
  .alert-panel .button { margin-left: 43px; }
}
@media (max-width: 520px) {
  .prototype-banner { font-size: 9px; }
  .topbar { padding: 0 10px; }
  .breadcrumb { font-size: 10px; }
  .content { padding: 18px 12px 28px; }
  .page-heading { align-items: flex-start; }
  .date-chip { display: none; }
  .stats-grid { gap: 9px; }
  .stat-card { min-height: 108px; padding: 12px; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 8px; }
  .side-stack { grid-template-columns: 1fr; }
  .quick-panel { grid-column: auto; }
  .panel { padding: 14px 11px 8px; }
  .search-row { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .request-filters { display: grid; grid-template-columns: 1fr; }
  .filter-select { width: 100%; }
  .help-grid { grid-template-columns: 1fr; }
  .checkout-callout { padding: 15px; }
  th, td { padding-right: 12px; padding-left: 7px; }
  .auth-card { padding: 22px 18px; }
  .modal-backdrop { padding: 9px; }
  .modal-body { padding: 14px; }
  .request-detail > div { grid-template-columns: 90px 1fr; }
  .logout-button { min-height: 32px; padding: 5px 7px; }
}
