:root {
    --bg: #f3f5f7;
    --surface: #fff;
    --surface-soft: #f7f8f9;
    --line: #dfe3e7;
    --line-dark: #cbd1d7;
    --text: #20252a;
    --muted: #737c85;
    --accent: #46505e;
    --accent-dark: color-mix(in srgb, var(--accent), #000 24%);
    --success: #167755;
    --success-soft: #e7f6ef;
    --warning: #9b6716;
    --warning-soft: #fff2dc;
    --danger: #b44343;
    --danger-soft: #faeaea;
    --blue: #3f6f9d;
    --blue-soft: #eaf2f9;
    --shadow: 0 1px 2px rgb(18 28 38 / 5%), 0 8px 24px rgb(18 28 38 / 4%);
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--bg); color: var(--text); font-size: 14.4px; line-height: 1.45; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
h1, h2, h3, p { text-wrap: pretty; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { height: 100vh; display: flex; flex-direction: column; position: sticky; top: 0; z-index: 20; border-right: 1px solid var(--line); background: #fbfbfc; }
.brand { min-height: 78px; padding: 18px 22px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--accent); color: #fff; font-size: 21.6px; font-weight: 900; transform: skew(-5deg); }
.brand-mark.large { width: 48px; height: 48px; font-size: 28.8px; border: 1px solid rgb(255 255 255 / 15%); }
.brand strong, .login-brand strong { display: block; font-size: 15.6px; letter-spacing: .16em; }
.brand small, .login-brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 13.2px; }
.tenant-switcher { margin: 20px 14px 10px; padding: 10px; display: grid; grid-template-columns: 30px minmax(0, 1fr) 24px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tenant-avatar, .tenant-logo { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: #eef0f2; object-fit: contain; font-weight: 800; }
.tenant-switcher div { min-width: 0; }
.tenant-switcher small, .tenant-switcher strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tenant-switcher small { color: var(--muted); font-size: 10.8px; letter-spacing: .12em; text-transform: uppercase; }
.tenant-switcher strong { margin-top: 3px; font-size: 13.2px; }
.tenant-switcher button { width: 24px; height: 24px; border: 0; border-radius: 6px; background: var(--surface-soft); color: var(--muted); }
.main-nav { padding: 7px 12px 18px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.nav-label { margin: 18px 10px 7px; color: #a0a6ad; font-size: 10.8px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.main-nav a { min-height: 40px; padding: 0 11px; display: flex; align-items: center; gap: 11px; border-radius: 8px; color: #59626a; font-size: 13.2px; font-weight: 600; }
.main-nav a > span { width: 17px; color: #737d87; font-size: 19.2px; text-align: center; }
.main-nav a:hover { background: #f1f3f5; color: var(--text); }
.main-nav a.active { background: #e9ebed; color: var(--text); font-weight: 800; }
.nav-notification-badge { min-width: 17px; margin-left: auto; padding: 2px 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 10.8px; line-height: 1.2; text-align: center; }
.profile-card { min-height: 76px; margin-top: auto; padding: 14px 17px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); background: #fbfbfc; }
.profile-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13.2px; font-weight: 800; }
.profile-card > span:nth-child(2) { min-width: 0; flex: 1; }
.profile-card strong, .profile-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-card strong { font-size: 13.2px; }
.profile-card small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.profile-card button { padding: 6px; border: 0; background: transparent; color: var(--muted); }

.workspace { min-width: 0; }
.topbar { height: 65px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 18px; position: sticky; top: 0; z-index: 15; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 88%); backdrop-filter: blur(12px); }
.breadcrumbs { display: flex; align-items: center; gap: 12px; font-size: 13.2px; }
.breadcrumbs span { color: var(--muted); }
.breadcrumbs b { color: #b6bcc2; font-weight: 400; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.system-dot { width: 9px; height: 9px; border: 2px solid #d5eee4; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.notification-button { min-height: 32px; padding: 0 9px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #dbe5eb; border-radius: 7px; background: #fff; color: #4f5962; font-size: 12px; font-weight: 750; }
.notification-button > span { color: var(--warning); font-size: 16.8px; line-height: 1; }
.notification-button b { min-width: 17px; padding: 2px 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 10.8px; text-align: center; }
.compact-filter-panel { margin-bottom: 18px; padding: 13px 16px; display: flex; align-items: end; gap: 14px; box-shadow: var(--shadow); }
.compact-filter-panel label { min-width: min(360px, 100%); display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 750; }
.compact-filter-panel select { min-height: 36px; padding: 0 9px; border: 1px solid var(--line-dark); border-radius: 7px; background: #fff; }
.compact-filter-panel small { color: var(--muted); font-size: 12px; }
.logbook-vehicle-panel { margin-bottom: 18px; }
.mobile-menu { display: none; padding: 8px; border: 0; background: transparent; font-size: 24px; }
.content { width: min(1440px, 100%); margin: 0 auto; padding: 30px 32px 54px; }
.legal-footer { margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.legal-links { display: inline-flex; gap: 12px; }
.legal-links a { color: inherit; text-decoration: none; }
.legal-links a:hover { color: var(--accent); text-decoration: underline; }
.auth-legal { margin-top: 22px; text-align: center; font-size: 14.4px; color: var(--muted); }
.platform-operator { display: grid; gap: 2px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.2px; text-align: center; }
.platform-operator small { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.platform-operator strong { color: var(--ink); font-size: 14.4px; }
.form-section-divider { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin: 28px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-section-divider strong { color: var(--ink); font-size: 16.8px; }
.form-section-divider span { color: var(--muted); font-size: 14.4px; }
.legal-page { min-height: 100vh; background: #f5f7fa; color: #1d2631; }
.legal-document { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 64px; }
.legal-document h1 { margin: 8px 0 26px; font-size: clamp(36px, 6vw, 55.2px); }
.legal-back { color: var(--accent); font-size: 16.8px; text-decoration: none; }
.legal-identity, .legal-text { display: grid; gap: 7px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 26px rgba(28, 42, 58, .05); }
.legal-identity { margin-bottom: 18px; }
.legal-identity strong { font-size: 20.4px; }
.legal-text { line-height: 1.65; white-space: normal; }
.legal-document > footer { display: flex; gap: 18px; margin-top: 28px; font-size: 15.6px; }
.legal-document > footer a { color: var(--accent); }

.eyebrow { display: block; margin-bottom: 8px; color: #818a93; font-size: 10.8px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.page-heading { margin-bottom: 23px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-heading h1, .page-hero h1 { margin: 0; font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -.045em; }
.page-heading p, .page-hero p { margin: 8px 0 0; color: var(--muted); font-size: 13.2px; line-height: 1.65; }
.page-hero { min-height: 154px; margin-bottom: 18px; padding: 29px 30px; display: flex; align-items: center; justify-content: space-between; gap: 25px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(120deg, #fff, #f4f6f7); }
.page-hero::after { width: 270px; height: 270px; position: absolute; right: 7%; border: 1px solid var(--line); border-radius: 50%; content: ""; opacity: .7; }
.page-hero::before { width: 150px; height: 150px; position: absolute; right: 12%; border: 1px solid var(--line); border-radius: 50%; content: ""; opacity: .55; }
.page-hero > * { position: relative; z-index: 1; }
.date-card { min-width: 190px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 11px; background: rgb(255 255 255 / 82%); }
.date-card > * { display: block; }
.date-card small, .date-card span { color: var(--muted); font-size: 12px; }
.date-card strong { margin: 5px 0; font-size: 15.6px; }

.primary-button, .secondary-button, .danger-button { min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; font-size: 13.2px; font-weight: 750; transition: .15s ease; }
.primary-button { background: var(--accent); color: #fff; box-shadow: 0 5px 14px rgb(44 55 68 / 16%); }
.primary-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.secondary-button { border-color: var(--line-dark); background: #fff; color: #4f5962; }
.secondary-button:hover { background: var(--surface-soft); }
.danger-button { border-color: #e6bcbc; background: #fff; color: var(--danger); }
.danger-button:hover { background: var(--danger-soft); }
.compact { min-height: 34px; padding: 0 11px; }
.full { width: 100%; }
.text-button { padding: 5px; border: 0; background: transparent; color: var(--blue); font-weight: 700; }
.text-button.danger { color: var(--danger); }
.disabled-link { cursor: default; opacity: .6; pointer-events: none; }

.flash { margin-bottom: 17px; padding: 12px 15px; display: flex; align-items: center; gap: 10px; border: 1px solid; border-radius: 9px; font-size: 13.2px; }
.flash.success { border-color: #c8eadc; background: var(--success-soft); color: var(--success); }
.flash.error { border-color: #f0caca; background: var(--danger-soft); color: var(--danger); }
.flash strong { font-size: 10.8px; letter-spacing: .08em; text-transform: uppercase; }

.notification-stack { width: min(420px, calc(100vw - 40px)); display: grid; gap: 9px; position: fixed; top: 78px; right: 28px; z-index: 30; }
.notification-card { padding: 14px 14px 14px 16px; display: flex; justify-content: space-between; gap: 13px; border: 1px solid #ead9b1; border-left: 4px solid var(--warning); border-radius: 10px; background: #fffdf7; box-shadow: 0 15px 35px rgb(20 29 38 / 16%); }
.notification-card .eyebrow { margin-bottom: 5px; color: #9b6d17; }
.notification-card h2 { margin: 0; color: var(--text); font-size: 15.6px; }
.notification-card p { margin: 5px 0 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.notification-card a { color: var(--accent); font-size: 12px; font-weight: 800; }
.notification-card form { flex: 0 0 auto; }
.notification-card button { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #f3eee0; color: #8a6d35; font-size: 21.6px; line-height: 1; }
.notification-card button:hover { background: #ead9b1; }

.kpi-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi-card { min-height: 125px; padding: 18px; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto auto; column-gap: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.kpi-icon { grid-row: 1 / 4; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; font-size: 21.6px; }
.kpi-icon.green { background: var(--success-soft); color: var(--success); }
.kpi-icon.blue { background: var(--blue-soft); color: var(--blue); }
.kpi-icon.gray { background: #f0f2f4; color: var(--accent); }
.kpi-icon.amber { background: var(--warning-soft); color: var(--warning); }
.kpi-card > small { color: var(--muted); font-size: 12px; }
.kpi-card > strong { margin-top: 2px; font-size: 30px; line-height: 1; }
.kpi-card > strong.status-word { font-size: 20.4px; }
.kpi-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

.panel { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.panel-heading { min-height: 70px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.panel-heading .eyebrow { margin-bottom: 4px; }
.panel-heading h2 { margin: 0; font-size: 15.6px; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.panel-heading > a { color: var(--muted); font-size: 12px; font-weight: 750; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 14px; }
.dashboard-main { display: grid; gap: 14px; }
.module-grid { padding: 15px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.module-card { min-height: 115px; padding: 16px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(135deg, #fff, #f8f9fa); transition: .15s ease; }
.module-card:hover { border-color: var(--line-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.module-card > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-soft); color: var(--accent); font-size: 24px; }
.module-card small, .module-card strong { display: block; }
.module-card small { color: var(--muted); font-size: 10.8px; letter-spacing: .09em; text-transform: uppercase; }
.module-card strong { margin-top: 3px; font-size: 15.6px; }
.module-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.module-card > b { color: var(--muted); font-size: 21.6px; }
.empty-state { min-height: 175px; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-state strong { font-size: 14.4px; }
.empty-state p { max-width: 460px; margin: 6px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.empty-symbol { width: 38px; height: 38px; margin-bottom: 12px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-soft); color: var(--accent); font-size: 21.6px; }
.empty-symbol.success { border-radius: 50%; background: var(--success-soft); color: var(--success); }
.compact-empty { min-height: 145px; }
.compact-empty p { margin-bottom: 0; }
.quick-empty { min-height: 105px; padding: 20px; display: flex; align-items: center; gap: 14px; }
.quick-empty > span { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 1px dashed var(--line-dark); border-radius: 10px; color: var(--muted); font-size: 21.6px; }
.quick-empty strong { font-size: 13.2px; }
.quick-empty p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.quick-link-grid { padding: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.quick-link { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.quick-link > a { min-width: 0; padding: 11px; display: flex; align-items: center; gap: 9px; }
.quick-link > a > span { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 7px; background: #fff; color: var(--accent); }
.quick-link div { min-width: 0; }
.quick-link strong, .quick-link small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-link strong { font-size: 12px; }
.quick-link small { margin-top: 3px; color: var(--muted); font-size: 10.8px; }
.quick-link form button { width: 24px; height: 24px; border: 0; background: transparent; color: var(--muted); }
.dashboard-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.activity-line { min-height: 66px; padding: 12px 17px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #edf0f2; }
.activity-line:last-child { border: 0; }
.activity-line > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--success-soft); color: var(--success); }
.activity-line strong, .activity-line small { display: block; }
.activity-line strong { font-size: 12px; }
.activity-line small { margin-top: 3px; color: var(--muted); font-size: 10.8px; }
.news-column { position: sticky; top: 80px; overflow: hidden; }
.news-list { max-height: calc(100vh - 190px); overflow-y: auto; }
.news-card { padding: 18px; border-bottom: 1px solid var(--line); }
.news-card:last-child { border-bottom: 0; }
.news-card > div { display: flex; justify-content: space-between; color: var(--muted); font-size: 10.8px; text-transform: uppercase; letter-spacing: .08em; }
.news-card h3 { margin: 10px 0 6px; font-size: 15.6px; line-height: 1.35; }
.news-card p { margin: 0; color: #59626a; font-size: 12px; line-height: 1.65; white-space: pre-line; }
.news-card > small { display: block; margin-top: 12px; color: var(--muted); font-size: 10.8px; }

.info-banner, .module-safety { margin-bottom: 16px; padding: 15px 17px; display: flex; align-items: center; gap: 13px; border: 1px solid #d3e1eb; border-radius: 11px; background: #f0f6fa; color: var(--blue); }
.info-banner > span:first-child, .module-safety > span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 9px; background: #fff; font-size: 20.4px; }
.info-banner div, .module-safety div { flex: 1; }
.info-banner strong, .module-safety strong { display: block; font-size: 13.2px; }
.info-banner p, .module-safety p { margin: 3px 0 0; color: #55758c; font-size: 12px; }
.module-safety { border-color: #c8eadc; background: var(--success-soft); color: var(--success); }
.module-safety p { color: #4f7768; }
.module-safety .retention-note { color: #4f7768; font-size: 10.8px; font-weight: 750; white-space: nowrap; }
.module-safety.file-scan-warning { border-color: #f0d6a5; background: var(--warning-soft); color: var(--warning); }
.module-safety.file-scan-warning p { color: #856522; }

.heading-actions { display: flex; gap: 8px; }
.system-update-card { margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.system-update-summary { min-height: 92px; padding: 18px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; }
.system-update-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 11px; background: var(--accent); color: #fff; font-size: 26.4px; font-weight: 900; }
.system-update-summary .eyebrow { margin-bottom: 3px; }
.system-update-summary h2 { margin: 0; font-size: 18px; }
.system-update-summary p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.system-update-safety { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); background: var(--surface-soft); }
.system-update-safety > div { min-width: 0; padding: 15px 18px; border-right: 1px solid var(--line); }
.system-update-safety > div:last-child { border-right: 0; }
.system-update-safety small, .system-update-safety strong { display: block; }
.system-update-safety small { color: var(--muted); font-size: 9.6px; letter-spacing: .08em; text-transform: uppercase; }
.system-update-safety strong { margin-top: 4px; font-size: 12px; overflow-wrap: anywhere; }
.system-update-safety p { margin: 5px 0 0; color: var(--muted); font-size: 10.8px; line-height: 1.5; overflow-wrap: anywhere; }
.system-update-safety code { user-select: all; }
.system-version-history { padding: 14px 18px; border-top: 1px solid var(--line); }
.system-version-history > strong { display: block; margin-bottom: 8px; font-size: 12px; }
.system-version-row { min-height: 51px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.system-version-row > span:first-child small, .system-version-row > span:first-child strong { display: block; }
.system-version-row > span:first-child small { color: var(--muted); font-size: 9.6px; }
.system-version-row > span:first-child strong { margin-top: 2px; font-size: 12px; }
.module-version-panel { border-top: 1px solid var(--line); }
.module-version-panel > summary { min-height: 46px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; cursor: pointer; font-size: 12px; font-weight: 750; list-style: none; }
.module-version-panel > summary::-webkit-details-marker { display: none; }
.module-version-panel > summary::after { margin-left: 8px; color: var(--muted); content: "âŒ„"; }
.module-version-panel[open] > summary::after { content: "âŒƒ"; }
.module-version-panel > summary small { margin-left: auto; color: var(--muted); font-weight: 500; }
.module-version-list { padding: 0 18px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.module-version-row { min-height: 58px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.module-version-row.invalid { color: var(--danger); }
.version-symbol { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: #fff; color: var(--accent); font-weight: 850; }
.module-version-row > div strong, .module-version-row > div small { display: block; }
.module-version-row > div strong { font-size: 12px; }
.module-version-row > div small { margin-top: 3px; color: var(--muted); font-size: 9.6px; }
.module-version-panel > footer { padding: 11px 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: var(--surface-soft); }
.module-version-panel > footer p { margin: 0; color: var(--muted); font-size: 10.8px; }
.module-data-cleanup-option { margin-left: auto; }
.module-data-cleanup-option > summary { color: var(--danger); cursor: pointer; font-size: 10.8px; font-weight: 750; }
.module-data-cleanup-option form { display: grid; gap: 8px; width: min(360px, 100%); margin-top: 10px; padding: 12px; border: 1px solid #efc3c3; border-radius: 9px; background: #fff7f7; }
.module-data-cleanup-option .acknowledgement { margin-top: 0; padding-top: 0; border-top: 0; }
.acknowledgement { margin-top: 14px; padding-top: 13px; display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 8px; border-top: 1px solid var(--line); color: var(--text); font-size: 10.8px; font-weight: 650; }
.acknowledgement input { min-height: 0; margin: 1px 0 0; }

.module-runtime-hero { min-height: 185px; }
.module-runtime-hero > div:first-child { max-width: 760px; }
.module-runtime-badge { min-width: 245px; padding: 14px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgb(255 255 255 / 88%); }
.module-runtime-badge > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: #fff; font-size: 20.4px; }
.module-runtime-badge small, .module-runtime-badge strong, .module-runtime-badge em { display: block; }
.module-runtime-badge small { color: var(--muted); font-size: 10.8px; text-transform: uppercase; letter-spacing: .08em; }
.module-runtime-badge strong { margin-top: 2px; font-size: 14.4px; }
.module-runtime-badge em { margin-top: 3px; color: var(--muted); font-size: 10.8px; font-style: normal; }
.module-runtime-status { margin-bottom: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.module-runtime-card { min-height: 125px; padding: 17px; display: grid; grid-template-columns: 38px 1fr; align-items: start; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.module-runtime-card > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #f0f2f4; color: var(--accent); font-weight: 850; }
.module-runtime-card.success > span { background: var(--success-soft); color: var(--success); }
.module-runtime-card.info > span { background: var(--blue-soft); color: var(--blue); }
.module-runtime-card.warning > span { background: var(--warning-soft); color: var(--warning); }
.module-runtime-card.danger > span { background: var(--danger-soft); color: var(--danger); }
.module-runtime-card small, .module-runtime-card strong { display: block; }
.module-runtime-card small { color: var(--muted); font-size: 10.8px; letter-spacing: .08em; text-transform: uppercase; }
.module-runtime-card strong { margin-top: 4px; font-size: 18px; }
.module-runtime-card p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.module-runtime-layout { display: grid; grid-template-columns: minmax(0, 1fr) 315px; align-items: start; gap: 14px; }
.module-runtime-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.module-runtime-section { min-height: 220px; padding: 20px; }
.module-runtime-section header { display: flex; align-items: center; gap: 10px; }
.module-runtime-section header > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-soft); color: var(--accent); }
.module-runtime-section h2 { margin: 0; font-size: 15.6px; }
.module-runtime-section > p { margin: 15px 0 0; color: #59626a; font-size: 12px; line-height: 1.7; }
.module-runtime-section ul { margin: 16px 0 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.module-runtime-section li { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 8px; color: #59626a; font-size: 12px; line-height: 1.55; }
.module-runtime-section li > span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 10.8px; font-weight: 850; }
.module-runtime-context { position: sticky; top: 80px; overflow: hidden; }
.module-runtime-context > header { padding: 18px; border-bottom: 1px solid var(--line); }
.module-runtime-context h2 { margin: 0; font-size: 15.6px; }
.module-runtime-context dl { margin: 0; }
.module-runtime-context dl > div { min-height: 62px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.module-runtime-context dt { color: var(--muted); font-size: 10.8px; text-transform: uppercase; letter-spacing: .08em; }
.module-runtime-context dd { margin: 4px 0 0; font-size: 13.2px; font-weight: 750; overflow-wrap: anywhere; }
.module-runtime-context > p { margin: 0; padding: 16px 18px; background: var(--surface-soft); color: var(--muted); font-size: 12px; line-height: 1.6; }

.area-grid, .role-grid, .news-admin-grid, .tenant-admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.area-card, .role-card, .news-admin-card, .tenant-admin-card, .empty-card { min-height: 190px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.area-card { display: grid; grid-template-columns: 38px 1fr; gap: 12px; }
.area-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: #f0f2f4; color: var(--accent); font-size: 21.6px; }
.area-card small { color: var(--muted); font-size: 10.8px; letter-spacing: .09em; text-transform: uppercase; }
.area-card h2 { margin: 4px 0 8px; font-size: 16.8px; }
.area-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.area-card footer { grid-column: 1 / -1; margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.empty-card { display: flex; flex-direction: column; align-items: center; justify-content: center; grid-column: 1 / -1; text-align: center; }
.empty-card > span { font-size: 30px; color: var(--muted); }
.empty-card strong { margin-top: 12px; }
.empty-card p { max-width: 530px; margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.table-panel { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 16px; background: #f7f8f9; color: #8a9299; font-size: 10.8px; letter-spacing: .09em; text-align: left; text-transform: uppercase; }
td { padding: 12px 16px; border-top: 1px solid #edf0f2; font-size: 12px; vertical-align: middle; }
td strong { font-size: 12px; }
.primary-cell { min-width: 210px; display: flex; align-items: center; gap: 10px; }
.primary-cell strong, .primary-cell small { display: block; }
.primary-cell small { margin-top: 3px; color: var(--muted); font-size: 10.8px; }
.table-avatar { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--accent); font-weight: 800; }
.actions { text-align: right; }
.icon-button { width: 31px; height: 31px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--muted); }
.icon-button:hover { border-color: var(--line-dark); color: var(--text); }
.icon-button.danger:hover { border-color: #edc9c9; background: var(--danger-soft); color: var(--danger); }
.badge, .role-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; font-size: 10.8px; font-weight: 800; white-space: nowrap; }
.badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.badge.confirmed { background: var(--success-soft); color: var(--success); }
.badge.cancelled { background: #f0f2f4; color: var(--muted); }
.badge.warning { background: var(--warning-soft); color: var(--warning); }
.role-pill { border: 1px solid var(--line); background: var(--surface-soft); color: #59626a; }
.pill-row, .assignment-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.muted, .block { color: var(--muted); font-size: 10.8px; }
.block { display: block; margin-top: 3px; }
code { color: #52606d; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10.8px; }
.audit-action { font-weight: 750; }

.form-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.form-panel > header { min-height: 67px; padding: 16px 19px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.form-panel > header > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }
.form-panel h2 { margin: 0; font-size: 15.6px; }
.form-panel p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.form-grid { padding: 19px; display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-two { grid-column: 1 / -1; }
label { color: #555f68; font-size: 12px; font-weight: 750; }
label em { display: block; margin-top: 5px; color: #9ba2a8; font-size: 10.8px; font-style: normal; font-weight: 500; }
input, select, textarea { width: 100%; min-height: 40px; margin-top: 6px; padding: 9px 11px; border: 1px solid var(--line-dark); border-radius: 7px; outline: 0; background: #fff; font-size: 12px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #8d98a4; box-shadow: 0 0 0 3px rgb(70 80 94 / 9%); }
.form-footer { min-height: 65px; padding: 12px 19px; display: flex; justify-content: flex-end; border-top: 1px solid var(--line); }
.narrow-panel { max-width: 850px; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: 16px; min-height: 16px; margin: 0; }
.field-heading { display: block; margin-bottom: 8px; color: #555f68; font-size: 12px; font-weight: 750; }
.check-grid { display: grid; gap: 7px; }
.checkbox-card, .permission-check { margin: 0; padding: 10px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); cursor: pointer; }
.checkbox-card input, .permission-check input { width: 15px; min-height: 15px; margin: 2px 0 0; }
.checkbox-card strong, .checkbox-card small, .permission-check strong, .permission-check small { display: block; }
.checkbox-card strong, .permission-check strong { font-size: 12px; }
.checkbox-card small, .permission-check small { margin-top: 3px; color: var(--muted); font-size: 10.8px; font-weight: 500; }
.checkbox-card:has(input:checked), .permission-check:has(input:checked) { border-color: color-mix(in srgb, var(--accent), #fff 45%); background: color-mix(in srgb, var(--accent), #fff 94%); }
.search-form { display: flex; gap: 7px; }
.search-form input { width: 250px; margin: 0; }

.role-card header { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.role-card header > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 900; }
.role-card small { color: var(--muted); font-size: 10.8px; text-transform: uppercase; letter-spacing: .08em; }
.role-card h2 { margin: 3px 0 0; font-size: 15.6px; }
.role-card > p { min-height: 45px; margin: 14px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.permission-summary { padding: 12px; display: flex; align-items: baseline; gap: 7px; border-radius: 8px; background: var(--surface-soft); }
.permission-summary strong { font-size: 22.8px; }
.permission-summary span { color: var(--muted); font-size: 10.8px; }
.role-card > form { margin-top: 9px; text-align: right; }
.permission-groups { padding: 0 19px 19px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.permission-groups section { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.permission-groups section > header { min-height: 46px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; background: var(--surface-soft); }
.permission-groups section > header strong { font-size: 12px; }
.permission-groups section > header small { color: var(--muted); font-size: 10.8px; }
.permission-groups section > div { padding: 8px; display: grid; gap: 6px; }

.news-admin-card { min-height: 220px; display: flex; flex-direction: column; }
.news-admin-card > header { display: flex; align-items: center; justify-content: space-between; }
.news-admin-card time { color: var(--muted); font-size: 10.8px; }
.news-admin-card h2 { margin: 16px 0 7px; font-size: 16.8px; }
.news-admin-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.news-admin-card footer { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .7fr); gap: 14px; }
.settings-note { padding: 30px; text-align: center; }
.settings-preview-mark { width: 60px; height: 60px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 15px; color: #fff; font-size: 33.6px; font-weight: 900; transform: skew(-5deg); }
.settings-note small { color: var(--muted); font-size: 10.8px; letter-spacing: .1em; text-transform: uppercase; }
.settings-note h2 { margin: 5px 0 8px; font-size: 21.6px; }
.settings-note p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.preview-elements { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.preview-elements span { padding: 9px 13px; border-radius: 7px; color: #fff; font-size: 12px; font-weight: 750; }
.preview-elements i { font-size: 12px; font-style: normal; font-weight: 700; }
.color-field { display: flex; align-items: center; gap: 9px; }
.color-field input { width: 62px; padding: 4px; }
.logo-preview { max-width: 220px; max-height: 100px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; object-fit: contain; }
.top-gap { margin-top: 14px; }

.tenant-admin-card header { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px; }
.tenant-admin-card header > span:first-child { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: #fff; font-weight: 900; }
.tenant-admin-card small { color: var(--muted); font-size: 10.8px; }
.tenant-admin-card h2 { margin: 3px 0 0; font-size: 15.6px; }
.tenant-admin-card dl { margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tenant-admin-card dl div { padding: 12px; border-radius: 8px; background: var(--surface-soft); }
.tenant-admin-card dt { color: var(--muted); font-size: 10.8px; }
.tenant-admin-card dd { margin: 3px 0 0; font-size: 21.6px; font-weight: 800; }
.tenant-admin-card footer { display: flex; align-items: center; justify-content: space-between; }

.installed-module-list { display: grid; gap: 13px; }
.installed-module-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.module-head { padding: 18px; display: grid; grid-template-columns: 45px minmax(0, 1fr) auto; align-items: center; gap: 13px; }
.module-head > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-soft); color: var(--accent); font-size: 25.2px; }
.module-head small { color: var(--muted); font-size: 10.8px; letter-spacing: .08em; }
.module-head h2 { margin: 3px 0; font-size: 16.8px; }
.module-head p { margin: 0; color: var(--muted); font-size: 12px; }
.module-head > b { padding: 6px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 10.8px; }
.module-meta { padding: 11px 18px; display: flex; gap: 30px; border-block: 1px solid var(--line); background: var(--surface-soft); }
.module-meta span { min-width: 100px; }
.module-meta small, .module-meta strong { display: block; }
.module-meta small { color: var(--muted); font-size: 9.6px; text-transform: uppercase; letter-spacing: .08em; }
.module-meta strong { margin-top: 3px; font-size: 12px; }
.module-assignments { padding: 15px 18px; }
.module-assignments > strong { display: block; margin-bottom: 9px; font-size: 12px; }
.assignment-form { display: grid; grid-template-columns: minmax(160px, 1fr) 120px minmax(180px, 1.35fr) minmax(170px, 1fr) auto; gap: 7px; align-items: end; }
.assignment-form input, .assignment-form select { margin: 0; min-height: 36px; }
.assignment-form .secondary-button { min-height: 36px; }
.assignment-pills { margin-top: 10px; }
.assignment-pills span { padding: 6px 9px; display: inline-flex; flex-direction: column; gap: 2px; border-radius: 8px; background: #f0f2f4; color: var(--muted); font-size: 10.8px; }
.assignment-pills strong, .assignment-pills small { display: block; }
.assignment-pills strong { color: inherit; font-size: 10.8px; }
.assignment-pills small { font-size: 9.6px; }
.assignment-pills span.confirmed { background: var(--success-soft); color: var(--success); }
.full-empty { min-height: 245px; }
.upload-zone { margin: 19px; padding: 28px; display: flex; flex-direction: column; align-items: center; border: 1px dashed var(--line-dark); border-radius: 10px; background: var(--surface-soft); text-align: center; }
.upload-zone > span { font-size: 31.2px; color: var(--accent); }
.upload-zone strong { margin-top: 9px; font-size: 14.4px; }
.upload-zone p { margin: 6px 0 15px; color: var(--muted); font-size: 12px; }
.upload-zone input { max-width: 430px; margin: 0; background: #fff; }
.install-checklist { margin: 0 19px 19px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; }
.install-checklist strong { font-size: 12px; }
.install-checklist ol { margin: 9px 0 0; padding-left: 20px; color: var(--muted); font-size: 12px; line-height: 1.8; }

.app-dialog { width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; overflow: auto; border: 1px solid var(--line-dark); border-radius: 14px; background: var(--surface); box-shadow: 0 25px 80px rgb(20 29 39 / 24%); }
.app-dialog.small-dialog { width: min(510px, calc(100vw - 24px)); }
.app-dialog.wide-dialog { width: min(920px, calc(100vw - 24px)); }
.app-dialog::backdrop { background: rgb(24 31 39 / 48%); backdrop-filter: blur(2px); }
.app-dialog > header, .app-dialog > form > header { min-height: 72px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.app-dialog h2 { margin: 0; font-size: 19.2px; }
.app-dialog header > button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 20.4px; }
.dialog-body { max-height: calc(100vh - 190px); overflow-y: auto; }
.app-dialog > footer, .app-dialog > form > footer { min-height: 66px; padding: 13px 20px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }
.dialog-secondary-action { padding: 0 20px 16px; display: flex; justify-content: flex-end; }
.tenant-list { padding: 10px; }
.tenant-list form { margin: 0; }
.tenant-option { width: 100%; padding: 10px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; border: 0; border-radius: 9px; background: transparent; text-align: left; }
.tenant-option:hover, .tenant-option.active { background: var(--surface-soft); }
.tenant-option > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 800; }
.tenant-option strong, .tenant-option small { display: block; }
.tenant-option small { margin-top: 3px; color: var(--muted); font-size: 10.8px; }
.tenant-option b { color: var(--muted); }
.shortcut-suggestions { padding: 19px 19px 0; }
.shortcut-suggestions > button { width: 100%; padding: 9px 10px; display: grid; grid-template-columns: 28px 1fr; gap: 9px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; }
.shortcut-suggestions > button:hover { background: var(--surface-soft); }
.shortcut-suggestions > button > span { grid-row: 1 / 3; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: var(--surface-soft); color: var(--accent); }
.shortcut-suggestions strong, .shortcut-suggestions small { display: block; }
.shortcut-suggestions strong { font-size: 12px; }
.shortcut-suggestions small { color: var(--muted); font-size: 10.8px; }

.login-page { min-height: 100vh; background: #edf0f2; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, .8fr) minmax(520px, 1.2fr); }
.login-branding { padding: clamp(45px, 7vw, 90px); display: flex; flex-direction: column; justify-content: center; background: #29313b; color: #fff; position: relative; overflow: hidden; }
.login-branding::after { width: 430px; height: 430px; position: absolute; right: -190px; bottom: -170px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 50%; content: ""; }
.login-brand { display: flex; align-items: center; gap: 13px; }
.login-brand small { color: rgb(255 255 255 / 55%); }
.login-branding h1 { max-width: 600px; margin: 65px 0 18px; font-size: clamp(44.4px, 6vw, 74.4px); line-height: 1.05; letter-spacing: -.055em; }
.login-branding > p { max-width: 520px; margin: 0 0 45px; color: rgb(255 255 255 / 62%); font-size: 14.4px; line-height: 1.7; }
.login-feature-row { margin-top: 10px; display: flex; align-items: center; gap: 9px; color: rgb(255 255 255 / 72%); font-size: 12px; }
.login-feature-row span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 10%); color: #bce7d3; }
.login-panel { padding: 30px; display: grid; place-items: center; }
.login-card { width: min(430px, 100%); padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 20px 55px rgb(31 42 53 / 9%); }
.login-card h2 { margin: 0; font-size: 34.8px; letter-spacing: -.04em; }
.login-card > p { margin: 9px 0 25px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.stack-form { display: grid; gap: 14px; }
.inline-error { margin-bottom: 15px; padding: 10px 12px; border: 1px solid #efcaca; border-radius: 7px; background: var(--danger-soft); color: var(--danger); font-size: 12px; }
.entra-placeholder { margin-top: 22px; padding: 12px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; border: 1px dashed var(--line-dark); border-radius: 8px; color: var(--muted); }
.entra-placeholder > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: #f1f3f4; font-size: 18px; }
.entra-placeholder strong, .entra-placeholder small { display: block; }
.entra-placeholder strong { color: #59626b; font-size: 12px; }
.entra-placeholder small { margin-top: 3px; font-size: 10.8px; }
.entra-placeholder em { padding: 4px 7px; border-radius: 99px; background: var(--surface-soft); font-size: 9.6px; font-style: normal; }

.installer-page { min-height: 100vh; padding: 34px 18px; background: #eef1f3; }
.installer-shell { width: min(920px, 100%); margin: 0 auto; }
.installer-header { margin-bottom: 25px; display: flex; align-items: center; gap: 11px; }
.installer-header > div { margin-right: auto; }
.installer-header strong, .installer-header small { display: block; }
.installer-header strong { font-size: 14.4px; letter-spacing: .16em; }
.installer-header small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.installer-header > b { padding: 6px 9px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--muted); font-size: 10.8px; }
.installer-intro { margin-bottom: 25px; text-align: center; }
.installer-intro h1 { margin: 0; font-size: clamp(36px, 6vw, 54px); letter-spacing: -.05em; }
.installer-intro p { max-width: 610px; margin: 10px auto 0; color: var(--muted); font-size: 13.2px; line-height: 1.65; }
.installer-form { display: grid; gap: 14px; }
.installer-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.installer-card > header { min-height: 67px; padding: 15px 18px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.installer-card > header > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }
.installer-card h2 { margin: 0; font-size: 15.6px; }
.installer-card header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.check-list { padding: 10px 18px; }
.check-list > div { min-height: 42px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 9px; border-bottom: 1px solid #edf0f2; }
.check-list > div:last-of-type { border-bottom: 0; }
.check-list > div > span { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 900; }
.check-list strong, .check-list small { font-size: 12px; }
.check-list small { color: var(--muted); }
.check-list .passed > span { background: var(--success-soft); color: var(--success); }
.check-list .failed > span { background: var(--danger-soft); color: var(--danger); }
.check-list .failed strong, .check-list .failed small { color: var(--danger); }
.installer-hint { margin: 8px 0; padding: 9px 11px; border-radius: 7px; background: var(--danger-soft); color: var(--danger); font-size: 12px; }
.installer-actions { padding: 6px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.installer-actions p { max-width: 520px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.installer-actions button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.installer-complete { min-height: 480px; padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: center; box-shadow: var(--shadow); }
.installer-complete > span { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 36px; }
.installer-complete h1 { margin: 23px 0 0; font-size: 36px; letter-spacing: -.04em; }
.installer-complete p { max-width: 560px; margin: 9px 0 24px; color: var(--muted); font-size: 13.2px; }

nav[role="navigation"] { margin-top: 15px; font-size: 12px; }
nav[role="navigation"] > div:first-child { display: none; }
nav[role="navigation"] > div:last-child { display: flex; justify-content: space-between; align-items: center; }
nav[role="navigation"] svg { width: 14px; }

/* Fuhrparkverwaltung */
.fleet-table td { vertical-align: middle; }
.fleet-table td strong, .fleet-table td small { display: block; }
.fleet-table td small { margin-top: 3px; color: var(--muted); font-size: 10.8px; line-height: 1.4; }
.fleet-table th:last-child, .fleet-table td:last-child { text-align: right; }
.fleet-actions { min-width: 116px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.fleet-actions form { margin: 0; }
.reservation-note { max-width: 180px; margin-top: 6px !important; color: var(--danger) !important; }
.inline-details { position: relative; display: inline-block; }
.inline-details > summary { color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 750; list-style: none; }
.inline-details > summary::-webkit-details-marker { display: none; }
.inline-details[open] > form { width: 225px; padding: 10px; display: grid; gap: 7px; position: absolute; right: 0; top: 22px; z-index: 8; border: 1px solid var(--line-dark); border-radius: 9px; background: #fff; box-shadow: 0 12px 24px rgb(33 43 51 / 14%); }
.inline-details input { min-height: 33px; padding: 0 9px; font-size: 12px; }
.fleet-inline-form { width: min(700px, 72vw); margin-top: 10px; padding: 11px; display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 8px; position: absolute; right: 0; z-index: 8; border: 1px solid var(--line-dark); border-radius: 9px; background: #fff; box-shadow: 0 12px 24px rgb(33 43 51 / 14%); }
.fleet-inline-form input, .fleet-inline-form select { min-height: 33px; padding: 0 8px; font-size: 12px; }
.fleet-booking-form { overflow: hidden; }
.fleet-form-body { padding: 21px; }
.form-footer { padding: 15px 19px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.availability-box { min-height: 42px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--muted); font-size: 12px; line-height: 1.45; }
.availability-box.available { border-color: #c8eadc; background: var(--success-soft); color: var(--success); }
.availability-box.unavailable { border-color: #efcccc; background: var(--danger-soft); color: var(--danger); }
.fleet-pagination { margin-top: 4px; }
.module-subnavigation { min-height: 48px; padding: 0 32px; display: flex; align-items: center; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); background: #fff; }
.module-subnavigation a { padding: 8px 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 7px; color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.module-subnavigation a:hover { background: var(--surface-soft); color: var(--text); }
.module-subnavigation a.active { background: var(--accent-soft); color: var(--accent); }
.fleet-dashboard-grid { display: grid; grid-template-columns: minmax(290px, .84fr) minmax(450px, 1.16fr); gap: 18px; align-items: start; }
.fleet-quick-booking { padding: 20px; }
.fleet-quick-booking h2, .fleet-calendar-panel h2 { margin: 0; font-size: 16.8px; }
.fleet-quick-booking > p, .fleet-calendar-panel > p { margin: 5px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.fleet-quick-booking .form-grid { margin-bottom: 11px; }
.fleet-calendar-panel { overflow: hidden; }
.fleet-calendar-heading { margin-bottom: 13px; display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; gap: 7px; text-align: center; }
.fleet-calendar-heading h2 { font-size: 15.6px; }
.fleet-calendar-heading .icon-button { text-decoration: none; }
.fleet-calendar-weekdays, .fleet-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.fleet-calendar-weekdays { margin-bottom: 5px; color: var(--muted); font-size: 10.8px; font-weight: 800; text-align: center; text-transform: uppercase; }
.fleet-calendar { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fleet-calendar-day { min-height: 88px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.fleet-calendar-day.outside { background: var(--surface-soft); color: var(--muted); }
.fleet-calendar-day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.fleet-calendar-date { margin-bottom: 5px; display: block; font-size: 10.8px; font-weight: 800; }
.fleet-calendar-event { margin: 3px 0; padding: 3px 4px; display: block; overflow: hidden; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 9.6px; font-weight: 750; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.fleet-calendar-event.approved, .fleet-calendar-event.active { background: var(--success-soft); color: var(--success); }
.fleet-calendar-event.pending { background: #fff4d6; color: #9a6810; }
.fleet-calendar-more { display: block; color: var(--muted); font-size: 9.6px; }
.fleet-two-panels { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 18px; align-items: start; }
.fleet-two-panels > .panel, .fleet-two-panels > form.panel { overflow: hidden; }
.fleet-two-panels > form.panel { padding: 20px; }
.fleet-two-panels > form.panel h2 { margin: 0 0 16px; font-size: 16.8px; }
.checklist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; }
.checkbox { min-height: 32px; display: flex; align-items: center; gap: 7px; color: var(--text); font-size: 12px; font-weight: 650; }
.checkbox input { width: auto; min-height: 0; margin: 0; }
.file-link { color: var(--blue); font-size: 12px; font-weight: 750; text-decoration: none; }
.file-link:hover { text-decoration: underline; }
.inline-select-form { display: inline-flex; align-items: flex-end; gap: 7px; }
.inline-select-form label { display: grid; gap: 3px; color: var(--muted); font-size: 10.8px; font-weight: 750; }
.inline-select-form select { min-height: 33px; padding: 0 8px; font-size: 12px; }
.form-hint { padding: 9px 10px; border-radius: 7px; background: var(--surface-soft); color: var(--muted); font-size: 12px; line-height: 1.45; }
.area-module-summary { margin: 2px 0 0 42px; display: flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: 10.8px; }
.area-module-summary strong { color: var(--text); font-size: 19.2px; }
.area-actions { display: flex; align-items: center; gap: 10px; }
.area-actions form { margin: 0; }
.area-policy-intro { margin: 16px 0 11px; padding: 11px 13px; border-radius: 8px; background: var(--surface-soft); }
.area-policy-intro strong { font-size: 13.2px; }
.area-policy-intro p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.area-module-policies { display: grid; gap: 10px; }
.area-module-policy { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.area-module-policy > header { min-height: 54px; padding: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-soft); }
.area-module-policy > header > small { color: var(--muted); font-size: 10.8px; white-space: nowrap; }
.area-role-policies { padding: 9px; display: grid; gap: 7px; }
.area-role-policy { border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.area-role-policy > summary { min-height: 38px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 12px; font-weight: 750; list-style: none; }
.area-role-policy > summary::-webkit-details-marker { display: none; }
.area-role-policy > summary small { color: var(--muted); font-weight: 500; }
.area-role-policy > div { padding: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; border-top: 1px solid var(--line); }
.module-department-picker { min-height: 36px; margin: 0; padding: 6px 8px 7px; border: 1px solid var(--line-dark); border-radius: 7px; background: #fff; }
.module-department-picker:disabled { opacity: .72; background: var(--surface-soft); }
.module-department-picker legend { padding: 0 3px; color: var(--muted); font-size: 9.6px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.module-department-picker > p { margin: 1px 0; color: var(--muted); font-size: 10.8px; }
.module-department-checkboxes { display: flex; flex-wrap: wrap; gap: 5px; }
.module-department-checkboxes .checkbox-card { min-height: 26px; padding: 5px 7px; align-items: center; border-radius: 6px; }
.module-department-checkboxes .checkbox-card input { margin: 0; }
.module-department-checkboxes .checkbox-card strong { font-size: 10.8px; }
.assignment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.assignment-card { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.compact-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; }
.auth-link { margin: 15px 0 0; text-align: center; font-size: 13.2px; font-weight: 700; }
.auth-link a { color: var(--accent); text-decoration: none; }
.notification-preference-grid { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.notification-preference-head, .notification-preference-row { display: grid; grid-template-columns: 1fr 84px 72px; align-items: center; gap: 8px; padding: 10px 12px; }
.notification-preference-head { background: var(--surface-soft); color: var(--muted); font-size: 10.8px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.notification-preference-row { border-top: 1px solid var(--line); font-size: 12px; }
.notification-preference-row strong, .notification-preference-row small { display: block; }
.notification-preference-row small { margin-top: 2px; color: var(--muted); font-size: 10.8px; }
.notification-preference-row input[type="checkbox"] { width: auto; min-height: 0; }
.platform-notification-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 18px; align-items: start; }
.platform-notification-layout > .form-panel { margin: 0; }
.notification-policy-panel { padding: 0; overflow: hidden; }
.notification-policy-panel > summary { min-height: 82px; padding: 16px 18px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.notification-policy-panel > summary::-webkit-details-marker, .notification-module-group > summary::-webkit-details-marker { display: none; }
.notification-policy-panel[open] > summary { border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.panel-step { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }
.notification-policy-panel summary strong, .notification-policy-panel summary small { display: block; }
.notification-policy-panel summary strong { font-size: 14.4px; }
.notification-policy-panel summary small { margin-top: 3px; color: var(--muted); font-size: 10.8px; font-weight: 500; }
.notification-policy-preview { max-width: 230px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.notification-policy-preview em { max-width: 105px; padding: 3px 5px; overflow: hidden; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 9.6px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.details-toggle { color: var(--accent); font-size: 10.8px; font-weight: 800; }
.notification-policy-panel[open] .details-toggle { font-size: 0; }
.notification-policy-panel[open] .details-toggle::after { content: "SchlieÃŸen"; font-size: 10.8px; }
.notification-policy-panel > form { display: grid; gap: 12px; }
.notification-policy-panel .form-hint { margin: 0 18px; }
.notification-module-groups { padding: 0 18px; display: grid; gap: 7px; }
.notification-module-group { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.notification-module-group > summary { min-height: 46px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; background: #fff; list-style: none; color: var(--muted); font-size: 10.8px; }
.notification-module-group > summary strong, .notification-module-group > summary small { display: block; }
.notification-module-group > summary strong { color: var(--text); font-size: 12px; }
.notification-module-group > summary small { margin-top: 2px; font-size: 9.6px; }
.notification-module-group[open] > summary { border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.push-device-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 0; }
.push-device-panel p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.push-subscription-list { display: grid; gap: 7px; margin-top: 10px; }
.push-subscription-list > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 8px; background: var(--surface-soft); }
.push-subscription-list strong, .push-subscription-list small { display: block; }
.push-subscription-list small { margin-top: 2px; color: var(--muted); font-size: 10.8px; }
.notification-list { display: grid; gap: 0; }
.notification-list-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 2px; border-bottom: 1px solid var(--line); }
.notification-list-item:last-child { border-bottom: 0; }
.notification-list-item.unread { margin: 0 -16px; padding-right: 18px; padding-left: 18px; background: var(--accent-soft); }
.notification-list-item h2 { margin: 4px 0; font-size: 16.8px; }
.notification-list-item p { margin: 0; font-size: 13.2px; line-height: 1.5; }
.notification-list-item small { color: var(--muted); font-size: 10.8px; }
.notification-list-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.notification-list-actions form { margin: 0; }

@media (max-width: 850px) {
    .fleet-inline-form { width: min(560px, 78vw); grid-template-columns: repeat(2, minmax(120px, 1fr)); }
    .fleet-dashboard-grid, .fleet-two-panels { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-layout { grid-template-columns: 1fr; }
    .news-column { position: static; }
    .news-list { max-height: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-card { border-right: 1px solid var(--line); }
    .area-grid, .role-grid, .news-admin-grid, .tenant-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .module-runtime-layout { grid-template-columns: 1fr; }
    .module-runtime-context { position: static; }
    .platform-notification-layout { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { width: min(290px, 88vw); position: fixed; left: 0; transform: translateX(-102%); box-shadow: 12px 0 40px rgb(20 29 38 / 18%); transition: transform .2s ease; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open::after { position: fixed; inset: 0; z-index: 19; background: rgb(20 28 36 / 42%); content: ""; }
    .mobile-menu { display: block; }
    .topbar { height: 58px; padding: 0 16px; }
    .notification-stack { top: 66px; right: 16px; }
    .module-subnavigation { padding: 0 16px; }
    .breadcrumbs { margin-right: auto; }
    .content { padding: 22px 16px 40px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .module-grid, .dashboard-columns { grid-template-columns: 1fr; }
    .quick-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .settings-grid { grid-template-columns: 1fr; }
    .assignment-form { grid-template-columns: 1fr 1fr; }
    .notification-policy-panel > summary { grid-template-columns: 30px minmax(0, 1fr) auto; }
    .notification-policy-preview { grid-column: 2 / 4; justify-content: flex-start; }
    .login-shell { grid-template-columns: 1fr; }
    .login-branding { min-height: 340px; padding: 36px; }
    .login-branding h1 { margin: 42px 0 15px; font-size: 48px; }
    .login-branding > p { margin-bottom: 20px; }
    .login-panel { padding: 22px 14px; }
    .module-runtime-status, .module-runtime-sections { grid-template-columns: 1fr; }
    .system-update-safety { grid-template-columns: 1fr; }
    .system-update-safety > div { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 590px) {
    .kpi-grid, .area-grid, .role-grid, .news-admin-grid, .tenant-admin-grid, .form-grid.two, .permission-groups { grid-template-columns: 1fr; }
    .span-two { grid-column: auto; }
    .page-hero { min-height: 210px; padding: 23px; align-items: flex-start; flex-direction: column; }
    .date-card { min-width: 0; }
    .quick-link-grid, .news-list { grid-template-columns: 1fr; }
    .news-card { border-right: 0; }
    .module-meta { flex-wrap: wrap; gap: 15px; }
    .assignment-form { grid-template-columns: 1fr; }
    .notification-policy-panel > summary { grid-template-columns: 30px minmax(0, 1fr); }
    .notification-policy-preview { grid-column: 1 / 3; }
    .details-toggle { grid-column: 2; justify-self: start; }
    .search-form { width: 100%; }
    .search-form input { width: 100%; }
    .login-branding { min-height: 310px; }
    .login-branding h1 { font-size: 40.8px; }
    .login-feature-row { display: none; }
    .login-card { padding: 27px 22px; }
    .legal-footer { flex-direction: column; }
    .heading-actions { width: 100%; }
    .heading-actions > * { flex: 1; }
    .system-update-summary { grid-template-columns: 44px 1fr; }
    .system-update-summary > .badge { grid-column: 1 / 3; justify-self: start; }
    .system-version-row { padding: 9px 0; grid-template-columns: 1fr auto; }
    .system-version-row form { grid-column: 1 / 3; }
    .module-version-panel > footer { align-items: stretch; flex-direction: column; }
    .fleet-inline-form { width: 80vw; grid-template-columns: 1fr; }
    .topbar-actions .notification-button { padding: 0 7px; font-size: 0; }
    .topbar-actions .notification-button > span { font-size: 16.8px; }
    .topbar-actions .notification-button b { font-size: 10.8px; }
    .fleet-actions { min-width: 95px; }
    .form-footer { justify-content: stretch; }
    .form-footer > * { flex: 1; }
    .fleet-calendar-day { min-height: 68px; padding: 4px; }
    .fleet-calendar-event { padding: 2px 3px; font-size: 8.4px; }
    .checklist-grid { grid-template-columns: 1fr; }
    .inline-select-form { width: 100%; }
    .inline-select-form label { flex: 1; }
    .area-role-policy > div { grid-template-columns: 1fr; }
    .assignment-grid { grid-template-columns: 1fr; }
    .notification-preference-head, .notification-preference-row { grid-template-columns: 1fr 62px 52px; padding: 9px; }
    .push-device-panel, .push-subscription-list > div, .notification-list-item { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Plattform: E-Mail, Push und Hintergrundaufgaben */
.platform-settings-panel { display: grid; gap: 18px; }
.platform-settings-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.platform-settings-split > section { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.platform-settings-split h3 { margin: 0; font-size: 14.4px; }
.platform-settings-split > section > p { margin: 5px 0 13px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.platform-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.platform-status-row form, .platform-danger-inline { margin: 0; }
.email-test-status { margin: 0 18px 12px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.email-test-status small { color: var(--muted); font-size: 10.8px; }
.platform-danger-inline { padding-top: 12px; display: flex; justify-content: flex-end; }
.platform-cron-note { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px; padding: 13px 15px; border: 1px solid #d9e6f4; border-radius: 10px; background: #f2f7fb; }
.platform-cron-note > span { width: 22px; height: 22px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13.2px; font-weight: 850; }
.platform-cron-note strong { font-size: 13.2px; }
.platform-cron-note p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.cron-job-list { display: grid; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.cron-job-list article { min-height: 59px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.cron-job-list article:last-child { border-bottom: 0; }
.cron-job-list label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.cron-job-list input[type="checkbox"] { width: auto; min-height: 0; margin: 0; }
.cron-job-list strong, .cron-job-list small { display: block; }
.cron-job-list strong { font-size: 12px; }
.cron-job-list small { margin-top: 3px; color: var(--muted); font-size: 10.8px; line-height: 1.35; }
.cron-command-list { display: grid; gap: 10px; }
.cron-command-list > div { display: grid; gap: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.cron-command-list strong { font-size: 12px; }
.cron-command-list code { display: block; overflow-x: auto; padding: 8px; border-radius: 5px; background: #1d2831; color: #dce9ef; font-size: 10.8px; white-space: nowrap; }
.cron-command-list small { color: var(--muted); font-size: 10.8px; line-height: 1.45; }
.cron-command-list form { margin: 0; }
.cron-result { display: block; max-width: 340px; overflow: hidden; color: var(--muted); font-size: 10.8px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.approval-list { display: grid; padding: 0; overflow: hidden; }
.approval-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.approval-item:last-child { border-bottom: 0; }
.approval-main { display: grid; gap: 6px; }
.approval-main h2 { margin: 0; font-size: 16.8px; }
.approval-main p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.approval-main small { color: var(--muted); font-size: 10.8px; }
.approval-head { display: flex; align-items: center; gap: 8px; }
.approval-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 7px; }
.approval-actions form { margin: 0; }
.session-list { display: grid; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.session-list-item { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.session-list-item:last-child { border-bottom: 0; }
.session-list-item > span:first-child { min-width: 0; display: grid; gap: 3px; }
.session-list-item strong, .session-list-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-list-item small { color: var(--muted); font-size: 10.8px; }
.session-table td:nth-child(2) { max-width: 330px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.danger-zone { border-color: #efc6c3; }

@media (max-width: 850px) {
    .platform-settings-split { grid-template-columns: 1fr; }
}

@media (max-width: 590px) {
    .platform-status-row, .cron-job-list article, .approval-item { align-items: flex-start; flex-direction: column; }
    .session-list-item { align-items: flex-start; flex-direction: column; }
}
