/* Approved Garda glass environment; content stays opaque and readable. */
:root {
  --font-ui: Inter, system-ui, sans-serif;
  --ink: #102b47;
  --muted: #48627c;
  --navy: #0a4174;
  --primary: #0758af;
  --primary-hover: #06478e;
  --primary-fill: #0758af;
  --primary-soft: #dcebf9;
  --surface: #edf4fb;
  --canvas: #bdd8e9;
  --border: #d1dfed;
  --input-surface: #e6eef7;
  --dialog-surface: #edf4fb;
  --shadow: 0 5px 20px #123a6108;
  --glass-surface: #eaf5ff52;
  --glass-border: #ffffff80;
  --glass-shadow: inset 0 1px 1px #ffffffa6, 0 8px 25px #174b820c;
  --button-texture: #0758af;
  --radius: 21px;
  --control-radius: 13px;
  --dialog-radius: 24px;
}
html[data-theme="dark"] {
  --ink: #e6f1ff;
  --muted: #a6bed8;
  --navy: #d1e8ff;
  --primary: #a7d4ff;
  --primary-hover: #d1e8ff;
  --primary-soft: #284b6b;
  --surface: #182e48;
  --canvas: #07172b;
  --border: #35516e;
  --input-surface: #10263f;
  --success: #87dbb5;
  --danger: #ffacb5;
  --warning: #edc584;
  --dialog-surface: #182e48;
  --shadow: inset 0 1px 1px #97c7f51a, 0 8px 24px #00000012;
  --glass-surface: #bedfff0c;
  --glass-border: #b9dfff30;
  --glass-shadow: inset 0 1px 1px #cce8ff42, 0 9px 26px #00000014;
}
html { min-width: 320px; }
html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body.glass-v2 { min-width: 320px; position: relative; isolation: isolate; background: transparent; color: var(--ink); }
a, button { touch-action: manipulation; }
.glass-atmosphere { position: fixed; inset: 0; width: 100%; height: 100svh; z-index: -1; overflow: hidden; pointer-events: none; }
.glass-atmosphere img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: fill; }
.glass-atmosphere img[data-theme="dark"], html[data-theme="dark"] .glass-atmosphere img[data-theme="light"] { display: none; }
html[data-theme="dark"] .glass-atmosphere img[data-theme="dark"] { display: block; }
.app-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 38px; max-width: 1540px; margin-inline: auto; min-height: 100dvh; padding: 30px 38px 28px 26px; }
.workspace { min-width: 0; min-height: calc(100dvh - 58px); }
.content { padding: 0; }
.sidebar { position: sticky; top: 30px; align-self: start; display: flex; flex-direction: column; width: 100%; height: calc(100dvh - 60px); min-height: 0; padding: 26px 16px 20px; border: 1px solid var(--glass-border); border-radius: 25px; background: var(--glass-surface); box-shadow: var(--glass-shadow); backdrop-filter: blur(18px); color: var(--ink); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 27px; color: var(--ink); }
.brand img { width: 40px; height: 44px; object-fit: contain; }
.brand strong { display: block; font-size: 24px; line-height: 1.3; letter-spacing: -.7px; }
.brand small { display: block; font-size: 8px; letter-spacing: .6px; color: var(--muted); }
.sidebar nav { position: relative; flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #7098b677 transparent; }
.sidebar-section { position: relative; margin-bottom: 17px; }
.nav-label { font-size: 9px; letter-spacing: 1.4px; color: var(--muted); margin: 0 12px 7px; font-weight: 500; }
.nav-link, .nav-group > summary { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 11px 12px; border-radius: 15px; color: var(--muted); font-size: 13px; font-weight: 500; list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: ''; flex: none; width: 14px; height: 14px; margin-left: auto; background: currentColor; opacity: .55; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 160ms ease; }
.nav-group[open] > summary::after { transform: rotate(180deg); }
.sidebar nav { padding-bottom: 20px; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); }
.nav-group .nav-link { margin-left: 15px; }
.nav-link:hover, .nav-group > summary:hover { background: color-mix(in srgb, var(--surface) 45%, transparent); }
.nav-link.active, .nav-link[aria-current="page"] { background: transparent; color: var(--navy); font-weight: 600; }
.nav-link .icon, .dock-link .icon { fill: none; stroke: currentColor; stroke-width: 1.7; }
.nav-link.active .icon, .dock-link.active .icon { stroke-width: 2.15; }
.glass-nav-indicator { position: absolute; left: 0; top: 0; border-radius: 15px; border: 1px solid var(--glass-border); background: color-mix(in srgb, var(--surface) 24%, transparent); box-shadow: var(--glass-shadow); pointer-events: none; z-index: 1; }
.sidebar-profile { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 18px; }
.sidebar-account { display: flex; align-items: center; gap: 6px; }
.profile-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--ink); }
.sidebar-account-copy { min-width: 0; }
.sidebar-account-copy strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-copy small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.sidebar-account-exit { display: grid; place-items: center; width: 34px; height: 40px; padding: 8px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 58px; margin-bottom: 29px; }
.workspace-title { display: flex; align-items: center; gap: 12px; }
.workspace-title small { display: block; font-size: 10px; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 5px; }
.workspace-title strong { font-size: 18px; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn { min-height: 44px; padding: 10px 16px; background: #0758af; color: #fff; border-radius: var(--control-radius); }
.btn:hover { background: #06478e; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--border); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn:is(.secondary,.ghost,.tonal):hover { color: var(--navy); background: var(--primary-soft); }
.btn.danger { background: #a52e40; color: #fff; }
.btn.icon-btn { width: 42px; height: 42px; padding: 10px; }
.btn.icon-btn .icon { width: 21px; height: 21px; }
.header-actions > a { position: relative; }
.pill-count { position: absolute; top: 0; right: 0; min-width: 16px; padding: 1px 4px; border-radius: 20px; font-size: 9px; line-height: 14px; background: #b92d42; color: #fff; }
.mobile-greeting, .mobile-dock, .mobile-menu, .drawer-close, .drawer-scrim { display: none; }
.page-heading, .standalone-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 25px; }
.page-heading h1 { font-size: 27px; }
.page-heading p { margin-top: 8px; color: var(--muted); line-height: 1.7; }
.standalone-heading h1 { font-size: 20px; line-height: 1.35; letter-spacing: -.4px; font-weight: 600; }
.standalone-back { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); color: var(--navy); }
.app-version-footer { text-align: center; color: var(--muted); font-size: 10px; padding: 30px 0 6px; margin-top: auto; }
.emergency-call { position: fixed; right: 24px; bottom: 22px; z-index: 20; display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 11px 17px; border: 1px solid #ffb4b480; border-radius: 25px; background: linear-gradient(145deg,#f04444f2 0%,#dc2626ed 48%,#a91020f2 100%); backdrop-filter: blur(12px) saturate(130%); -webkit-backdrop-filter: blur(12px) saturate(130%); color: #fff; font: inherit; font-size: 12px; box-shadow: inset 0 1px 1px #ffffff59,0 5px 20px #b91c1c38; }
.emergency-call .icon { width: 18px; height: 18px; }
.glass-home { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: start; gap: 30px; }
.daily-overview { position: relative; isolation: isolate; text-align: center; min-width: 0; min-height: 421px; padding: 28px 27px 31px; border: 1px solid var(--glass-border); border-radius: 26px; background: var(--glass-surface); box-shadow: var(--glass-shadow); overflow: hidden; }
.daily-date { display: block; font-size: 15px; font-weight: 500; }
.daily-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); max-width: 380px; margin: 25px auto 31px; gap: 5px; }
.daily-week-day { display: grid; justify-items: center; gap: 10px; min-width: 0; color: var(--muted); }
.daily-week-day small { font-size: 8px; font-weight: 500; letter-spacing: .3px; white-space: nowrap; }
.daily-week-day time { display: grid; place-items: center; width: 35px; height: 35px; font-size: 14px; border-radius: 50%; }
.daily-week-day.today time { background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--navy); font-weight: 600; }
.daily-overview h1 { font-size: 16px; letter-spacing: -.2px; font-weight: 500; }
.daily-number { display: block; font-size: 54px; letter-spacing: -2px; font-weight: 600; line-height: 1.25; margin: 14px 0 17px; }
.daily-number span { font-size: 19px; letter-spacing: -.4px; font-weight: 500; }
.daily-note { color: var(--muted); font-size: 13px; margin-bottom: 27px; }
.daily-create { min-width: 206px; min-height: 49px; border-radius: 25px; font-size: 14px; box-shadow: 0 6px 17px #0758af21; }
.home-secondary { display: grid; min-width: 0; gap: 24px; }
.home-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; margin-bottom: 16px; }
.home-section-head h2 { font-size: 19px; letter-spacing: -.4px; font-weight: 600; }
.home-section-head a { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; }
.home-section-head a .icon { width: 14px; height: 14px; }
.incident-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.incident-action { display: flex; flex-direction: column; align-items: start; justify-content: space-between; gap: 16px; min-width: 0; min-height: 112px; padding: 16px 13px; border: 1px solid var(--glass-border); border-radius: 19px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.incident-action:hover { background: var(--input-surface); }
.incident-action strong { font-size: 12px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.incident-action > span, .guide-mark, .profile-row-icon { display: grid; place-items: center; flex: none; width: 35px; height: 35px; border-radius: 10px; color: #fff; background: linear-gradient(155deg,#62adff,#2878e7); box-shadow: inset 0 1px 1px #ffffff70, 0 3px 7px #173d6310; }
.incident-action .icon, .guide-mark .icon, .profile-row-icon .icon { width: 24px; height: 24px; stroke-width: 1.9; }
.home-guide-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 21px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.home-guide-card > span:nth-child(2) { flex: 1; min-width: 0; }
.home-guide-card strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.5; }
.home-guide-card small { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.75; }
.home-guide-card > .icon { flex: none; width: 17px; height: 17px; }
.home-recent { grid-column: 1/-1; min-width: 0; }
.recent-list { display: flex; gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 1px 10px; scrollbar-width: thin; }
.recent-list > .news-story { flex: 0 0 calc((100% - 15px) / 2); min-width: 0; scroll-snap-align: start; }
.recent-list > .report-empty-state { flex: 0 0 100%; }
.recent-list .report-empty-state { grid-column: 1/-1; }
.glass-home .personal-report { border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.card, .news-story, .personal-report, .profile-settings-group, .application-setting-list { border-radius: 20px; }
.report-page, .incident-detail, .account-page, .guide-page, .features-page { width: 100%; }
.page-surface { padding: 24px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.report-editor-section:first-of-type { border-top: 0; padding-top: 5px; }
.field > span { font-size: 13px; }
.report-editor .field,
.report-editor .field > span,
.report-editor .field > label { font-size:14px; line-height:1.5; font-weight:500; }
.report-editor .field :is(input,select,textarea),
.report-editor .select-input-row input { font-size:16px; line-height:1.5; font-weight:400; }
.report-editor .field :is(input,textarea)::placeholder { font-size:16px; font-weight:400; }
.field :is(input,select,textarea), .input { border-radius: var(--control-radius); background-color: var(--input-surface); color: var(--ink); min-height: 46px; }
.notice-list { padding: 24px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
input::placeholder, textarea::placeholder { color: var(--muted); }
dialog { background: var(--dialog-surface); color: var(--ink); border-color: var(--border); border-radius: var(--dialog-radius); }
.flash { background: color-mix(in srgb,var(--success) 10%,var(--surface)); color: var(--success); border-color: color-mix(in srgb,var(--success) 35%,var(--border)); }
.flash.error { background: color-mix(in srgb,var(--danger) 9%,var(--surface)); color: var(--danger); border-color: color-mix(in srgb,var(--danger) 35%,var(--border)); }
.notice, .wa-setup-help { background: var(--primary-soft); color: var(--navy); border-color: var(--border); }
.table-wrap { border-color: var(--border); border-radius: 15px; }
button.copy, .category-icon-grid button { background: var(--surface); color: var(--navy); border-color: var(--border); }
.evidence-grid :is(img,video) { background: var(--input-surface); }
.profile-screen { background: transparent; overflow: visible; }
.profile-hero { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; }
.profile-settings-group { overflow: hidden; }
.report-evidence-sources { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.report-evidence-trigger { width:100%; text-align:left; font:inherit; color:var(--ink); cursor:pointer; }
.report-evidence-sources .report-file-picker { min-width:0; height:100%; }
#report-evidence-dialog > header { padding-bottom:12px; }
#report-evidence-dialog > .report-evidence-sources { padding-top:8px; align-content:start; }
@media(max-width:600px) { .report-evidence-sources { grid-template-columns:minmax(0,1fr); } }
.report-management-panel { margin-top:20px; }
.report-management-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:16px; }
.report-management-actions > form { margin:0; min-width:0; }
.report-management-actions .btn { width:100%; height:100%; min-height:46px; justify-content:center; white-space:normal; text-align:center; }
.report-archive-toolbar { margin-bottom:20px; }
.report-management-panel > header { margin-bottom:18px; }
.report-management-panel > header h3 { margin:0; font-size:16px; font-weight:600; }
.sidebar .admin-user-menu > summary { gap:8px; padding-inline:8px; }
.sidebar .admin-user-menu > summary > span { white-space:nowrap; font-size:13px; }
.sidebar .admin-user-menu > summary > .icon { flex-shrink:0; width:18px; height:18px; }
.shift-metric-button { width:100%; text-align:left; font:inherit; color:var(--ink); cursor:pointer; }
.shift-metric-button:hover { border-color:var(--navy); }
.shift-refresh-status { padding:0 24px 20px; font-size:12px; color:var(--muted); }
.shift-officers { padding:20px; margin-bottom:20px; min-width:0; }
.home-secondary > .shift-officers { margin-bottom:0; }
.danru-dashboard { margin-top:28px; min-width:0; }
.danru-calendar-column { min-width:0; display:flex; flex-direction:column; gap:20px; }
.danru-calendar-column .danru-dashboard { margin-top:0; display:grid; gap:20px; }
.danru-calendar-column .daily-overview { flex-shrink:0; }
.danru-dashboard .ad-panel { min-width:0; overflow:hidden; }
.danru-dashboard .ad-panel-head h2 { font-size:16px; }
.danru-dashboard .ad-pie-legend li > span:not(.ad-pie-dot) { flex:1; min-width:0; overflow-wrap:anywhere; }
.danru-dashboard .home-section-head p { font-size:12px; margin-top:6px; }
.danru-chart-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.danru-chart-card { min-width:0; }
.danru-chart-card h3 { font-size:16px; font-weight:600; margin:0; }
.danru-chart-card > p { color:var(--muted); font-size:12px; margin:6px 0 18px; }
.danru-chart-total { display:flex; align-items:baseline; gap:8px; margin-bottom:20px; color:var(--navy); }
.danru-chart-total strong { font-size:32px; font-variant-numeric:tabular-nums; }
.danru-chart-total > span { font-size:13px; color:var(--muted); }
.danru-bar-chart { display:flex; gap:8px; }
.danru-bar-column { flex:1; min-width:0; display:flex; flex-direction:column; text-align:center; gap:8px; }
.danru-bar-column > strong { font-size:12px; color:var(--ink); }
.danru-bar-track { height:125px; display:flex; align-items:flex-end; background:var(--input-surface); border-radius:7px; overflow:hidden; }
.danru-bar-track > span { display:block; width:100%; background:linear-gradient(0deg,#225b94,#6ba5cc); border-radius:7px 7px 0 0; }
.danru-bar-column > small { font-size:10px; line-height:1.5; color:var(--muted); overflow-wrap:anywhere; }
.danru-category-chart { grid-column:1/-1; }
.danru-category-ranking { list-style:none; padding:0; margin:0; display:grid; gap:18px; }
.danru-category-ranking li > div:first-child { display:flex; justify-content:space-between; gap:12px; font-size:13px; margin-bottom:8px; }
.danru-category-ranking strong { flex-shrink:0; color:var(--navy); }
.danru-category-track { height:9px; background:var(--input-surface); border-radius:9px; overflow:hidden; }
.danru-category-track > span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#367eaa,#6eb8ad); }
.danru-chart-empty { color:var(--muted); font-size:13px; line-height:1.7; padding:20px 0; }
@media(max-width:650px) { .danru-chart-grid { grid-template-columns:minmax(0,1fr); } .danru-chart-card { padding:20px 16px; } .danru-bar-chart { gap:6px; } }
.home-report-list { display:grid; gap:10px; margin-bottom:16px; }
.home-report-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px; border:1px solid var(--border); border-radius:16px; background:var(--surface); color:var(--ink); }
.home-report-row > div { display:grid; gap:6px; min-width:0; overflow-wrap:anywhere; }
.home-report-row strong { font-size:14px; font-weight:600; }
.home-report-row span { font-size:13px; }
.home-report-row small { color:var(--muted); font-size:12px; }
.home-report-row > .icon { flex-shrink:0; }
.shift-officers-heading { display:flex; align-items:center; gap:10px; }
.shift-officers-heading h2 { margin:0; font-size:16px; font-weight:600; }
.profile-employee { padding:22px; }
.profile-data-card > .profile-employee { padding:24px 0 0; margin-top:24px; border-top:1px solid var(--border); }
dialog :is(header,.modal-head) button:is([data-close-dialog],[data-cancel]):hover,
dialog :is(header,.modal-head) button:is([data-close-dialog],[data-cancel]):focus-visible { background:#b42318; color:#fff; border-color:#b42318; }
dialog :is(header,.modal-head) button:is([data-close-dialog],[data-cancel]):is(:hover,:focus-visible) .icon { color:#fff; }
.profile-employee > header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:18px; }
.profile-employee h2 { margin:0; font-size:16px; font-weight:600; color:var(--ink); }
.profile-employee-data { display:grid; gap:14px; margin:0; }
.profile-employee-data > div { display:grid; grid-template-columns:minmax(100px,1fr) minmax(0,1.5fr); gap:16px; }
.profile-employee-data dt { font-size:13px; color:var(--muted); }
.profile-employee-data dd { margin:0; font-size:13px; font-weight:600; color:var(--ink); overflow-wrap:anywhere; }
.profile-employee-note { margin:18px 0 0; font-size:12px; line-height:1.6; color:var(--muted); }
.profile-shift-status { padding:5px 10px; border-radius:20px; background:var(--primary-soft); color:var(--navy); font-size:11px; }
@media (max-width:400px) { .profile-employee { padding:18px; } .profile-employee-data > div { grid-template-columns:minmax(0,1fr); gap:4px; } }
/* Only the environment is captured; all forms, labels and links remain live DOM. */
.liquid-plate { position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; }
.glass-foreground { display: contents; }
.glass-foreground > :not(.glass-nav-indicator) { position: relative; z-index: 2; }
.glass-nav-indicator { transform-origin: top left; }
.sidebar.glass-rendered, .daily-overview.glass-rendered, .glass-nav-indicator.glass-rendered { background: transparent; backdrop-filter: none; box-shadow: none; }
.glass-auth { display: grid; grid-template-columns: minmax(0,1fr) 430px; align-items: center; gap: 80px; max-width: 1260px; min-height: 100dvh; padding: 65px 60px; margin-inline: auto; }
.auth-story img { width: 120px; height: 126px; object-fit: contain; margin-bottom: 30px; }
.auth-story h1 { font-size: 48px; letter-spacing: -1.8px; line-height: 1.18; font-weight: 600; }
.auth-story p { max-width: 390px; margin-top: 24px; font-size: 15px; line-height: 1.9; color: var(--muted); }
.auth-story small { display: block; margin-top: 60px; font-size: 9px; letter-spacing: 1.6px; color: var(--muted); }
.auth-theme-control { position: absolute; top: 24px; right: 28px; }
.mobile-auth-brand { display: none; }
.glass-auth { isolation:isolate; }
.glass-auth::before { content:''; position:fixed; inset:0; z-index:-1; pointer-events:none; background:url('../assets/login-building-dusk.webp') center/cover no-repeat; opacity:0; }
.glass-auth.auth-photo::before { opacity:.18; }
.glass-auth .auth-story h1, .glass-auth .mobile-auth-brand h1 { font-weight:800; }
.glass-auth .auth-brand-expansion { font-weight:600; }
.auth-story .auth-brand-expansion { margin-top:8px; font-size:17px; }
.auth-story .auth-brand-expansion + p { margin-top:8px; }
@media (max-width:760px) {
  .glass-auth.auth-photo::before { opacity:.28; background-position:50% center; }
  .mobile-auth-brand .auth-brand-expansion { max-width:320px; margin:6px auto 0; font-size:14px; line-height:1.5; }
  .mobile-auth-brand .auth-brand-expansion + p { margin-top:4px; }
}
.glass-auth-panel { padding: 35px; border: 1px solid var(--border); border-radius: 25px; background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.glass-auth-panel h2 { font-size: 25px; letter-spacing: -.6px; font-weight: 600; }
.glass-auth-panel > header { text-align:center; }
.glass-auth-panel header p { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 10px 0 28px; }
.glass-auth-panel .stack { gap: 20px; }
.auth-password { position: relative; display: block; }
.auth-password input { padding-right: 48px; }
.auth-password button { position: absolute; right: 3px; top: 3px; display: grid; place-items: center; width: 40px; height: 40px; padding: 10px; border: 0; background: transparent; color: var(--muted); }
.auth-submit { width: 100%; min-height: 48px; margin-top: 2px; }
.auth-submit { justify-content:center; }
.auth-submit .icon { margin-left:0; }
#login-success-dialog header { justify-content:center; text-align:center; }
#login-success-dialog { position:fixed; inset:0; margin:auto; max-height:calc(100dvh - 40px); }
#login-success-dialog[open] { animation:login-success-enter 220ms ease-out; }
#login-success-dialog.is-auto-closing { animation:login-success-exit 220ms ease-in forwards; }
.login-success-progress { height:3px; background:var(--primary); transform-origin:left; animation:login-success-progress 5s linear forwards; }
@keyframes login-success-enter { from { opacity:0; transform:translateY(10px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes login-success-exit { to { opacity:0; transform:translateY(-8px) scale(.98); } }
@keyframes login-success-progress { to { transform:scaleX(0); } }
.auth-divider { position: relative; text-align: center; font-size: 11px; color: var(--muted); margin: 25px 0; }
.auth-divider::before { content: ''; position: absolute; inset: 50% 0 auto; height: 1px; background: var(--border); }
.auth-divider span { position: relative; padding-inline: 12px; background: var(--surface); }
.auth-google { width: 100%; }
@media (min-width:761px) and (max-width:1100px) {
  .app-shell { grid-template-columns: 205px minmax(0,1fr); padding: 23px; gap: 26px; }
  .sidebar { top: 23px; height: calc(100dvh - 46px); padding: 23px 12px; }
  .nav-link, .nav-group > summary { font-size: 12px; padding-inline: 10px; }
  .glass-home { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .daily-overview { min-height: 0; padding: 27px 30px 31px; }
  .glass-auth { gap: 35px; padding: 40px; grid-template-columns: minmax(0,1fr) 390px; }
  .auth-story h1 { font-size: 39px; }
}
@media (max-width:760px) {
  .app-shell { display: block; padding: 19px 20px calc(112px + env(safe-area-inset-bottom)); }
  .workspace { min-height: calc(100dvh - 131px); }
  .sidebar { display: none; }
  .topbar { min-height: 48px; margin-bottom: 8px; gap: 8px; }
  .workspace-title { display: none; }
  .mobile-greeting { display: flex; align-items: center; gap: 11px; min-width: 0; color: var(--ink); }
  .mobile-greeting img { width: 34px; height: 38px; object-fit: contain; }
  .mobile-greeting span { min-width: 0; }
  .mobile-greeting strong { display: block; font-size: 18px; letter-spacing: -.4px; }
  .mobile-greeting small { display: block; font-size: 10px; line-height: 1.7; color: var(--muted); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-actions { gap: 3px; }
  .header-actions .icon-btn { width: 36px; height: 40px; padding: 8px; }
  .header-guide { display: none; }
  .mobile-dock { position: fixed; display: flex; align-items: center; justify-content: space-around; bottom: max(12px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 40; width: min(353px,calc(100% - 32px)); height: 61px; padding: 6px; border: 1px solid var(--border); border-radius: 31px; background: var(--surface); backdrop-filter: none; box-shadow: inset 0 1px 1px #ffffff45,0 8px 22px #001d3926; }
  .dock-link { position: relative; z-index: 2; flex: 0 1 auto; display: flex; align-items: center; justify-content: center; gap: 9px; width: 45px; height: 47px; min-width: 44px; border-radius: 25px; color: var(--muted); }
  .dock-link .icon { flex: none; width: 23px; height: 23px; }
  .dock-link > span { display: none; white-space: nowrap; font-size: 12px; }
  .dock-link.active { width: auto; padding-inline: 13px; color: var(--navy); font-weight: 600; }
  .dock-link.active > span { display: block; }
  .mobile-dock .glass-nav-indicator { border-radius: 25px; background: #ffffff0a; border-color: #ffffff70; box-shadow: inset 0 1px 1px #ffffff90,inset 0 -1px 1px #001d391a,0 4px 12px #001d3908; }
  .glass-home { grid-template-columns: minmax(0,1fr); gap: 27px; }
  .daily-overview { margin: 0 -20px; width: calc(100% + 40px); padding: 18px 20px 47px; min-height: 0; border: 0; border-radius: 0 0 50% 50% / 0 0 25px 25px; background: linear-gradient(180deg,#eaf5ff08 0%,#eff7ff73 60%,#f5faffc2 100%); box-shadow: none; }
  .daily-date { font-size: 18px; line-height: 1.5; }
  .daily-week { margin: 26px 0 51px; max-width: none; gap: 4px; }
  .daily-week-day time { width: 42px; height: 42px; font-size: 17px; }
  .daily-week-day.today time { background: #b7d2e784; color: #0a4174; }
  .daily-overview h1 { font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
  .daily-number { font-size: 51px; letter-spacing: -1.8px; margin: 17px 0 25px; }
  .daily-note { font-size: 14px; line-height: 1.7; margin-bottom: 34px; }
  .home-secondary { gap: 20px; }
  .home-section-head { margin-bottom: 13px; }
  .incident-grid { gap: 10px; }
  .recent-list > .news-story { flex-basis: 88%; }
  .incident-action { min-height: 106px; padding: 15px 11px; border-radius: 18px; }
  .incident-action > span { width: 32px; height: 32px; }
  .home-guide-card { padding: 19px 16px; gap: 12px; }
  .home-guide-card strong { font-size: 13px; }
  .emergency-call { right: 18px; bottom: calc(99px + env(safe-area-inset-bottom)); width: 44px; height: 44px; justify-content: center; padding: 12px; }
  .emergency-call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .page-heading h1 { font-size: 24px; }
  .content > :not(.glass-home):first-child { margin-top: 20px; }
  .page-surface, .notice-list { padding: 20px 17px; border-radius: 20px; }
  .glass-auth { display: flex; flex-direction: column; align-items: stretch; justify-content: center; min-height: 100dvh; gap: 28px; padding: 66px 24px 36px; }
  .auth-story { display: none; }
  .mobile-auth-brand { display: block; text-align: center; }
  .mobile-auth-brand img { width: 80px; height: 84px; object-fit: contain; }
  .mobile-auth-brand h1 { font-size: 31px; margin: 12px 0 7px; }
  .mobile-auth-brand p { font-size: 12px; color: var(--muted); }
  .glass-auth-panel { width: 100%; max-width: 430px; margin-inline: auto; padding: 27px 23px; }
  .glass-auth-panel h2 { font-size: 22px; }
  .auth-theme-control { top: 15px; right: 17px; }
  .app-shell:has(.ad-dashboard,.admin-table-page,.admin-history-page,.admin-access-page,.wa-workspace) .mobile-menu { display: inline-flex; }
  .app-shell:has(.sidebar .admin-user-menu) .workspace-title { display: flex; }
  .app-shell:has(.sidebar .admin-user-menu) .mobile-greeting { display: none; }
  .app-shell:has(.sidebar .admin-user-menu) .mobile-menu { display: inline-flex; }
  .drawer-open .sidebar { display: flex; position: fixed; inset: 12px auto 12px 12px; top: 12px; width: min(290px,calc(100vw - 45px)); height: calc(100dvh - 24px); z-index: 60; background: var(--surface); }
  .drawer-open .drawer-scrim { display: block; position: fixed; inset: 0; z-index: 59; border: 0; background: #00122680; backdrop-filter: blur(4px); }
  .drawer-open .drawer-close { display: grid; place-items: center; position: absolute; right: 10px; top: 10px; z-index: 4; }
  html[data-theme="dark"] .daily-overview { background: linear-gradient(180deg,#16365605 0%,#1b3b5980 65%,#254660c9 100%); }
  html[data-theme="dark"] .daily-week-day.today time { background: #638ca943; color: #edf6ff; }
}
@media (max-width:350px) {
  .app-shell { padding-inline: 16px; }
  .daily-overview { margin-inline: -16px; width: calc(100% + 32px); padding-inline: 16px; }
  .daily-week { gap: 2px; margin-bottom: 43px; }
  .daily-week-day time { width: 36px; height: 36px; font-size: 15px; }
  .daily-week-day small { font-size: 7px; }
  .daily-number { font-size: 46px; }
  .mobile-greeting small { max-width: 135px; font-size: 9px; }
  .glass-auth { padding-inline: 16px; }
  .glass-auth-panel { padding: 25px 19px; }
}
@media (prefers-reduced-transparency:reduce) {
  .emergency-call { background:#a62d40; backdrop-filter:none; -webkit-backdrop-filter:none; }
  .sidebar, .mobile-dock, .daily-overview, .glass-nav-indicator { background: var(--surface); backdrop-filter: none; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
