:root {
    --orange: #f57c00;
    --orange-strong: #e96700;
    --orange-soft: #fff3e7;
    --navy: #101a2b;
    --navy-2: #17243a;
    --ink: #172033;
    --muted: #6f7788;
    --line: #e5e8ee;
    --surface: #ffffff;
    --canvas: #f4f6f9;
    --success: #23866b;
    --danger: #c14949;
    --shadow: 0 10px 30px rgba(28, 38, 56, .07);
    --radius: 14px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--canvas);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--canvas); color: var(--ink); }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.eyebrow { color: var(--orange-strong); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.eyebrow.light { color: #ffd0a1; }

/* Login */
.guest-body { background: var(--navy); }
.guest-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.08fr) minmax(460px, .92fr); }
.guest-brand { background: linear-gradient(142deg, #0d1728 0%, #172a45 58%, #1d3452 100%); color: white; padding: 62px 8vw 48px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.guest-brand::after { content: ""; position: absolute; width: 430px; height: 430px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -190px; bottom: -150px; box-shadow: 0 0 0 65px rgba(255,255,255,.025), 0 0 0 130px rgba(255,255,255,.02); }
.brand-glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(245,124,0,.16); filter: blur(90px); top: 28%; left: 5%; }
.guest-logo { width: min(360px, 80%); height: auto; object-fit: contain; object-position: left; z-index: 1; }
.guest-brand-copy { max-width: 620px; margin: auto 0; z-index: 1; }
.guest-brand-copy h1 { font-size: clamp(38px, 4vw, 60px); line-height: 1.06; letter-spacing: -.045em; margin: 20px 0 22px; }
.guest-brand-copy p { color: #c8d0dc; font-size: 17px; line-height: 1.7; max-width: 570px; }
.guest-foot { color: #8694a8; font-size: 11px; letter-spacing: .14em; z-index: 1; }
.guest-panel { background: #f8f9fb; display: grid; place-items: center; padding: 56px; }
.guest-card { width: min(430px, 100%); }
.login-heading h2 { font-size: 31px; letter-spacing: -.035em; margin: 12px 0 8px; }
.login-heading p { color: var(--muted); margin: 0 0 32px; line-height: 1.55; }
.form-stack { display: grid; gap: 19px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 12px; font-weight: 700; color: #3c4555; }
.field input { width: 100%; height: 52px; border: 1px solid #d9dee7; background: white; border-radius: 10px; padding: 0 15px; outline: none; transition: .2s ease; }
.field input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245,124,0,.12); }
.primary-button { height: 54px; border: 0; border-radius: 10px; color: white; background: linear-gradient(120deg, var(--orange), #f18e27); font-weight: 750; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; cursor: pointer; box-shadow: 0 8px 20px rgba(245,124,0,.22); }
.primary-button:hover { background: var(--orange-strong); transform: translateY(-1px); }
.security-note { display: flex; gap: 12px; padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); color: var(--muted); }
.security-note span { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: #e6f4ef; color: var(--success); font-weight: 800; font-size: 11px; }
.security-note p { margin: 0; font-size: 12px; line-height: 1.55; }

/* Estrutura da aplicação */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, #101a2a, #111d30); color: #dbe1ea; display: flex; flex-direction: column; z-index: 20; }
.sidebar-brand { height: 90px; padding: 22px 22px 15px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-brand img { width: 174px; max-height: 48px; object-fit: contain; object-position: left; }
.sidebar-brand span { margin-left: auto; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.sidebar-context { margin: 17px 14px 9px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.055); border-radius: 9px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; }
.sidebar-context small { color: #78889d; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.sidebar-context strong { color: #ffae5e; font-size: 11px; }
.sidebar-nav { padding: 8px 12px; overflow-y: auto; }
.nav-section { display: block; margin: 22px 12px 9px; color: #647288; font-size: 8px; letter-spacing: .16em; font-weight: 800; }
.nav-link { min-height: 43px; padding: 8px 11px; margin: 3px 0; border-radius: 8px; display: flex; align-items: center; gap: 11px; font-size: 12px; color: #aeb8c7; transition: .18s; }
.nav-link:hover { background: rgba(255,255,255,.05); color: white; }
.nav-link.active { background: rgba(245,124,0,.15); color: #ffae5e; box-shadow: inset 3px 0 0 var(--orange); }
.nav-link.disabled { opacity: .52; cursor: default; }
.nav-link small { margin-left: auto; font-size: 7px; color: #6e7b8e; }
.nav-icon { width: 24px; height: 24px; border-radius: 6px; background: rgba(255,255,255,.05); display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.sidebar-footer { margin-top: auto; padding: 16px 18px 20px; border-top: 1px solid rgba(255,255,255,.07); }
.user-mini { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-mini div { min-width: 0; }
.user-mini strong, .user-mini small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-mini strong { color: white; font-size: 11px; }
.user-mini small { color: #7e8ca0; font-size: 9px; margin-top: 3px; }
.avatar { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--orange), #ffac58); color: white; display: grid; place-items: center; flex: 0 0 auto; font-weight: 800; }
.avatar.small { width: 31px; height: 31px; font-size: 11px; }
.text-button { margin: 12px 0 0 44px; background: none; border: none; color: #7e8ca0; font-size: 9px; padding: 0; cursor: pointer; }
.text-button:hover { color: white; }
.main-column { min-width: 0; }
.admin-mode-banner { background: #7e3510; color: #ffe3cb; text-align: center; height: 25px; display: grid; place-items: center; font-size: 9px; letter-spacing: .06em; }
.topbar { height: 72px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; z-index: 15; backdrop-filter: blur(12px); }
.is-admin-mode .topbar { top: 25px; }
.global-search { width: min(480px, 46vw); height: 40px; border: 1px solid #e1e5eb; background: #f7f8fa; border-radius: 9px; padding: 0 12px; display: flex; align-items: center; gap: 9px; color: #9098a5; }
.global-search input { border: none; outline: none; background: transparent; min-width: 0; flex: 1; font-size: 11px; }
.global-search kbd { background: white; border: 1px solid #e2e5ea; border-radius: 4px; padding: 2px 5px; font-size: 8px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.context-switcher { height: 38px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; background: white; }
.context-switcher select { max-width: 180px; border: 0; background: transparent; outline: 0; color: #3d4657; font-size: 10px; font-weight: 650; cursor: pointer; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #3cb28c; box-shadow: 0 0 0 3px #e4f6f0; }
.mode-button { height: 38px; border: 1px solid #f0d1b5; color: #c45c00; background: #fff8f1; border-radius: 8px; padding: 0 12px; font-size: 9px; font-weight: 750; cursor: pointer; }
.mode-button.active { background: #8f3c12; color: white; border-color: #8f3c12; }
.mobile-menu { display: none; }
.content { padding: 30px clamp(22px, 3vw, 44px) 60px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; margin-bottom: 25px; }
.page-heading h1 { margin: 8px 0 6px; font-size: 27px; letter-spacing: -.035em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.phase-pill { border: 1px solid #e3e7ed; background: white; border-radius: 999px; padding: 8px 12px; color: #4b5666; font-size: 9px; font-weight: 700; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.phase-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }

/* Conteúdo */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.metric-card { min-height: 135px; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.metric-card::after { content: ""; width: 75px; height: 75px; position: absolute; border-radius: 50%; right: -28px; top: -28px; background: currentColor; opacity: .06; }
.metric-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 650; }
.metric-top i { width: 9px; height: 9px; border-radius: 3px; background: currentColor; }
.metric-card strong { display: block; font-size: 31px; letter-spacing: -.04em; margin: 18px 0 4px; color: var(--ink); }
.metric-card small { color: #959ca8; font-size: 9px; }
.metric-card.orange { color: var(--orange); } .metric-card.blue { color: #397cb5; } .metric-card.green { color: #27896e; } .metric-card.violet { color: #745ab5; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(350px,.82fr); gap: 16px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 21px; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.panel-heading h2 { font-size: 16px; margin: 5px 0 0; letter-spacing: -.02em; }
.panel-heading > span, .panel-heading a { color: #8a92a0; font-size: 9px; }
.status-badge { display: inline-flex; align-items: center; border-radius: 999px; background: #f2f4f7; color: #6e7684; padding: 5px 8px; font-size: 8px; font-weight: 700; white-space: nowrap; }
.status-badge.active { background: #e8f6f0; color: #237a62; }
.phase-list, .activity-list { display: grid; gap: 4px; }
.phase-row { display: flex; gap: 13px; padding: 13px 4px; border-top: 1px solid #f0f2f5; }
.phase-number { width: 30px; height: 30px; display: grid; place-items: center; background: #f6f7f9; border-radius: 8px; color: #8a92a0; font-size: 9px; font-weight: 800; }
.phase-content { flex: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; }
.phase-content strong, .phase-content small { display: block; }
.phase-content strong { font-size: 11px; }
.phase-content small { font-size: 8px; color: #949ba7; margin-top: 3px; }
.phase-content > span { font-size: 9px; font-weight: 800; color: var(--orange); }
.progress { grid-column: 1 / -1; height: 3px; border-radius: 4px; background: #eceff3; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #ffae5d); border-radius: inherit; }
.activity-item { display: flex; gap: 11px; padding: 12px 4px; border-top: 1px solid #f0f2f5; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: #ffb76e; box-shadow: 0 0 0 4px #fff2e6; margin: 4px 3px; flex: 0 0 auto; }
.activity-item strong, .activity-item small { display: block; }
.activity-item strong { font-size: 10px; line-height: 1.4; }
.activity-item small { color: #949ba7; font-size: 8px; margin-top: 4px; }
.empty-state { text-align: center; color: #959ca8; padding: 35px; font-size: 11px; }
.alert { padding: 12px 14px; border-radius: 9px; margin: 0 0 18px; font-size: 11px; line-height: 1.45; }
.alert.success { color: #246f5b; background: #e9f7f1; border: 1px solid #cdeadd; }
.alert.warning { color: #8b5c12; background: #fff7e3; border: 1px solid #f1dfae; }
.alert.danger { color: #9a3e3e; background: #fff0f0; border: 1px solid #f1cccc; }

/* Fundação */
.summary-strip { display: grid; grid-template-columns: 1.35fr repeat(4,1fr); background: var(--navy); color: white; border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.summary-strip > div { padding: 18px 20px; border-right: 1px solid rgba(255,255,255,.08); }
.summary-strip small, .summary-strip strong, .summary-strip span { display: block; }
.summary-strip small { font-size: 7px; letter-spacing: .13em; color: #8090a7; font-weight: 800; }
.summary-strip strong { font-size: 17px; margin: 8px 0 3px; }
.summary-strip span { font-size: 8px; color: #9da9b9; }
.foundation-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 16px; }
.span-5 { grid-column: span 5; } .span-7 { grid-column: span 7; } .span-12 { grid-column: 1 / -1; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 9px; }
th { text-align: left; color: #929aa7; font-size: 7px; letter-spacing: .08em; border-bottom: 1px solid var(--line); padding: 9px; }
td { padding: 12px 9px; border-bottom: 1px solid #f0f2f5; color: #596273; }
td strong { color: #273143; font-size: 9px; }
td code { color: #bd5d0a; background: var(--orange-soft); border-radius: 4px; padding: 3px 5px; font-size: 8px; }
.table-user { display: flex; align-items: center; gap: 9px; }
.table-user strong, .table-user small { display: block; }
.table-user small { font-size: 7px; color: #969da8; margin-top: 3px; }
.department-list, .role-list { display: grid; }
.department-list > div { display: flex; align-items: center; gap: 10px; padding: 9px 3px; border-top: 1px solid #f1f2f5; }
.department-list span { color: #a1a8b2; font-size: 8px; }
.department-list strong { font-size: 9px; }
.department-list i { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: #4caf8d; }
.role-list > div { display: flex; gap: 10px; align-items: center; padding: 9px 3px; border-top: 1px solid #f1f2f5; }
.role-list strong, .role-list small { display: block; }
.role-list strong { font-size: 9px; }
.role-list small { color: #969da8; font-size: 7px; margin-top: 3px; }
.role-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #f1f4f8; color: #69778b; font-size: 10px; }
.role-mark.privileged { background: var(--orange-soft); color: var(--orange); }
.tag-row { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { padding: 3px 5px; border-radius: 4px; background: #f0f3f7; color: #586476; font-size: 7px; }
.settings-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.settings-grid > div { border: 1px solid var(--line); border-radius: 9px; padding: 13px; }
.settings-grid small, .settings-grid strong, .settings-grid span { display: block; }
.settings-grid small { color: var(--orange); font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.settings-grid strong { font-size: 9px; margin: 8px 0; line-height: 1.4; }
.settings-grid span { font-size: 8px; color: #8a92a0; }
.search-results { padding: 8px 21px; }
.search-results article { min-height: 66px; display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 18px; border-top: 1px solid #f0f2f5; }
.search-results article:first-child { border-top: 0; }
.search-results article > span { color: var(--orange); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.search-results strong, .search-results small { display: block; }
.search-results strong { font-size: 11px; }
.search-results small { color: #9098a5; font-size: 8px; margin-top: 4px; }
.search-results i { color: #a8afb9; font-style: normal; }

/* Administração */
.primary-link, .secondary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; border-radius: 8px; padding: 0 14px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.primary-link { background: var(--orange); color: white; box-shadow: 0 7px 18px rgba(245,124,0,.18); }
.primary-link:hover { background: var(--orange-strong); }
.secondary-link { border: 1px solid var(--line); background: white; color: #596273; }
.admin-module-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.admin-module-card { min-height: 155px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 14px; position: relative; transition: transform .18s, border-color .18s; }
.admin-module-card:hover { transform: translateY(-2px); border-color: #f0c79f; }
.admin-module-card h2 { font-size: 16px; margin: 5px 0 7px; }
.admin-module-card small { color: #949ba8; font-size: 7px; letter-spacing: .12em; font-weight: 800; }
.admin-module-card p { color: #858d9a; font-size: 9px; line-height: 1.5; margin: 0; }
.admin-module-card > strong { font-size: 22px; color: #d1d5dc; }
.admin-module-card em { position: absolute; right: 18px; bottom: 16px; color: var(--danger); background: #fff0f0; border-radius: 99px; padding: 4px 7px; font-size: 7px; font-style: normal; }
.module-symbol { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; }
.module-symbol.orange { color: var(--orange); background: var(--orange-soft); }.module-symbol.blue { color:#397cb5;background:#eaf4fb }.module-symbol.green { color:#27896e;background:#e8f6f0 }.module-symbol.violet { color:#745ab5;background:#f1edfb }.module-symbol.grey { color:#657184;background:#f0f3f7 }.module-symbol.red { color:#b45151;background:#fff0f0 }
.management-table td { vertical-align: middle; }
.management-table td > strong, .management-table td > small { display: block; }
.management-table td > small { color: #999faa; font-size: 7px; margin-top: 4px; max-width: 300px; line-height: 1.4; }
.archived-row { opacity: .56; }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions a, .row-actions button { color: #59687a; border: 0; background: none; padding: 4px 5px; font-size: 8px; cursor: pointer; }
.row-actions a:hover { color: var(--orange); }.row-actions button:hover { color: var(--danger); }
.row-actions form { display: inline; }
.status-badge.danger { background: #fff0f0; color: #ac4545; }
.management-form { padding: 0; overflow: hidden; }
.management-form.narrow { max-width: 820px; }
.form-section { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 30px; padding: 28px; border-bottom: 1px solid var(--line); }
.form-section h2, .matrix-heading h2 { font-size: 15px; margin: 6px 0; }
.form-section > div:first-child p { color: #8d95a1; font-size: 9px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field select, .field textarea { width: 100%; border: 1px solid #d9dee7; background: white; border-radius: 10px; padding: 10px 13px; outline: none; color: var(--ink); }
.field select { height: 46px; }.field textarea { resize: vertical; }
.field select:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245,124,0,.1); }
.form-options { min-height: 60px; padding: 17px 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 20px; border-bottom: 1px solid var(--line); color: #5d6675; font-size: 9px; }
.form-options label { display: flex; align-items: center; gap: 7px; font-weight: 650; }.form-options span { color: #9299a5; margin-left: auto; }
.form-options input, .choice-card input, .permission-grid input { accent-color: var(--orange); }
.form-actions { padding: 18px 28px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; background: #fafbfc; }
.primary-button.compact { width: auto; min-width: 160px; height: 40px; justify-content: center; padding: 0 16px; font-size: 10px; }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.choice-card { border: 1px solid var(--line); border-radius: 9px; padding: 11px; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 9px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: #f0bf8f; background: #fffaf5; }
.choice-card strong, .choice-card small { display: block; }.choice-card strong { font-size: 9px; }.choice-card small { font-size: 7px; color: #949ba7; margin-top: 3px; }
.role-admin-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.role-admin-card h2 { font-size: 15px; margin: 8px 0 5px; }.role-admin-card > code { color: #b45a0e; background: var(--orange-soft); font-size: 7px; padding: 3px 5px; border-radius: 4px; }.role-admin-card > p { color: #8b929e; font-size: 9px; line-height: 1.5; min-height: 40px; }
.role-card-foot { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 8px; color: #8e96a2; }.role-card-foot a { color: var(--orange); font-weight: 700; }
.permission-matrix { padding: 28px; }.matrix-heading { margin-bottom: 16px; }.permission-matrix section { border-top: 1px solid var(--line); padding: 17px 0; }.permission-matrix h3 { text-transform: uppercase; font-size: 8px; letter-spacing: .12em; color: #697587; }
.permission-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }.permission-grid label { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; align-items: center; gap: 8px; cursor: pointer; }.permission-grid label:has(input:checked) { background: #fff9f3; border-color: #f0c69c; }.permission-grid strong,.permission-grid small { display: block; }.permission-grid strong { font-size: 8px; }.permission-grid small { color: #969da8; font-size: 7px; margin-top: 3px; }
.settings-admin-list { display: grid; gap: 15px; }.setting-row { display: grid; grid-template-columns: minmax(250px,1fr) minmax(180px,320px) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }.setting-row strong,.setting-row small { display:block }.setting-row strong { font-size: 9px; }.setting-row small { color:#939aa6;font-size:7px;margin-top:4px }.setting-row input { height:38px;border:1px solid var(--line);border-radius:8px;padding:0 11px;font-size:9px }.setting-row button,.filter-button { height:38px;border:0;border-radius:8px;background:var(--navy);color:white;padding:0 13px;font-size:8px;font-weight:700;cursor:pointer }
.filter-bar { display: grid; grid-template-columns: repeat(4,minmax(130px,1fr)) auto; gap: 10px; align-items: end; margin-bottom: 15px; padding: 15px; }.filter-bar .field select,.filter-bar .field input { height:38px;font-size:8px;padding:0 9px }.audit-table { padding: 10px 20px 15px; }.pagination-bar { display:flex;justify-content:space-between;align-items:center;padding:14px 5px 3px;color:#8b929e;font-size:8px }.pagination-bar a { border:1px solid var(--line);border-radius:6px;padding:6px 9px;margin-left:4px;background:white }

@media (max-width: 1100px) {
    .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .summary-strip { grid-template-columns: repeat(3,1fr); }
    .summary-strip > div:first-child { grid-column: span 2; }
    .span-5, .span-7 { grid-column: 1 / -1; }
    .settings-grid { grid-template-columns: repeat(2,1fr); }
    .mode-button { max-width: 130px; }
    .admin-module-grid, .role-admin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .permission-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .filter-bar { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 780px) {
    .guest-shell { grid-template-columns: 1fr; }
    .guest-brand { min-height: 330px; padding: 35px; }
    .guest-logo { width: 230px; }
    .guest-brand-copy h1 { font-size: 34px; }
    .guest-brand-copy p { font-size: 14px; }
    .guest-foot { display: none; }
    .guest-panel { padding: 38px 26px; }
    .app-shell { display: block; }
    .sidebar { position: fixed; left: -270px; width: 258px; transition: left .22s ease; }
    .sidebar.open { left: 0; box-shadow: 20px 0 50px rgba(0,0,0,.25); }
    .mobile-menu { display: block; background: none; border: 0; font-size: 20px; }
    .global-search { display: none; }
    .topbar { padding: 0 14px; }
    .topbar-actions { margin-left: auto; }
    .mode-button { display: none; }
    .context-switcher select { max-width: 145px; }
    .content { padding: 25px 16px 50px; }
    .page-heading { display: block; }
    .phase-pill { display: inline-flex; margin-top: 16px; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .summary-strip { grid-template-columns: 1fr 1fr; }
    .summary-strip > div:first-child { grid-column: 1 / -1; }
    .settings-grid { grid-template-columns: 1fr; }
    .admin-module-grid, .role-admin-grid { grid-template-columns: 1fr; }
    .form-section { grid-template-columns: 1fr; gap: 15px; padding: 20px; }
    .choice-grid, .permission-grid { grid-template-columns: 1fr; }
    .setting-row { grid-template-columns: 1fr; }
}

@media (max-width: 470px) {
    .metric-grid { grid-template-columns: 1fr; }
    .summary-strip { grid-template-columns: 1fr; }
    .summary-strip > div:first-child { grid-column: auto; }
    .guest-brand { min-height: 285px; }
    .guest-brand-copy h1 { font-size: 29px; }
    .guest-brand-copy p { display: none; }
    .form-grid, .filter-bar { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: auto; }
}
