:root {
    color-scheme: light;
    --background: #f5f5f6;
    --surface: #fff;
    --ink: #252529;
    --muted: #62636b;
    --line: #e6e3e1;
    --charcoal: #242428;
    --orange: #b44712;
    --orange-bright: #ef771d;
    --red: #a52b34;
    --amber: #8a4b00;
    --green: #136344;
    --shadow: 0 2px 5px rgb(15 35 60 / .045);
    --radius: 15px;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; background: var(--background); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; opacity: .58; }
a { color: inherit; text-decoration: none; }
input, select, textarea { min-width: 0; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #ec7b48; outline-offset: 3px; }
img { display: block; max-width: 100%; }
.icon { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 44px; padding: .64rem .95rem; border: 1px solid transparent; border-radius: 9px; font-size: .9rem; font-weight: 650; line-height: 1.2; }
.button.primary { background: var(--orange); color: #fff; }
.button.primary:hover { background: #9c380d; }
.button.secondary { background: #fff; color: #34343a; border-color: #ddd9d5; box-shadow: 0 1px 2px rgb(42 35 29 / .04); }
.button.secondary:hover, .icon-button:hover { background: #f6f4f2; border-color: #d0c9c4; }
.button.block { width: 100%; }
.button .icon { width: 1.08rem; height: 1.08rem; }
.text-button { display: inline-flex; align-items: center; gap: .45rem; min-height: 32px; color: #9e3709; border: 0; background: transparent; padding: 0; font-weight: 680; font-size: .9rem; text-align: left; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon-button { width: 43px; height: 43px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #40546b; }
.danger-text, .button.danger-text, .red-text { color: var(--red); }

.layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 25px 16px 18px; background: linear-gradient(157deg, #2c2c30, #1b1b1e 70%); color: #f1efec; }
.brand-link { margin: 3px 8px 38px; border-radius: 10px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { flex-shrink: 0; border-radius: 10px; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 1.24rem; font-weight: 740; letter-spacing: -.038em; line-height: 1.16; }
.brand span { margin-top: 3px; font-size: .78rem; color: #aabacb; }
.compact img { width: 36px; height: 36px; }
.compact span { display: none; }
.criou-brand { display: grid; gap: 8px; }
.criou-brand img { width: 161px; height: auto; padding: 5px 7px; background: #fff; border-radius: 7px; }
.criou-brand strong { color: #e9ddd3; font-size: .77rem; text-transform: uppercase; letter-spacing: .11em; }
.criou-brand.compact { display: flex; gap: 9px; }
.criou-brand.compact img { width: clamp(84px, 24vw, 108px); padding: 0; border-radius: 0; }
.criou-brand.compact strong, .auth-mobile-brand .criou-brand strong { color: #893708; }
.side-nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: .75rem .82rem; min-height: 46px; border: 1px solid transparent; border-radius: 9px; color: #dad5d0; font-size: .93rem; font-weight: 580; }
.nav-link:hover { background: rgb(255 255 255 / .07); }
.nav-link.active { border-color: rgb(255 255 255 / .11); background: #3c302a; color: #fff; position: relative; }
.side-nav .nav-link.active::before { content: ''; position: absolute; inset: 10px auto 10px -1px; width: 3px; border-radius: 4px; background: var(--orange-bright); }
.nav-link.active .icon { color: #ff975f; }
.side-bottom { display: grid; gap: 15px; margin-top: auto; }
.install-side { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 6px 9px; color: #f6eee9; text-align: left; font-size: .875rem; font-weight: 590; border: 1px solid #59534f; background: #312e2d; border-radius: 9px; }
.side-phone { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; background: #49382e; color: #ffd2b1; }
.install-side:hover, .side-user:hover { background: #423730; }
.side-user { min-height: 63px; display: grid; grid-template-columns: 37px minmax(0, 1fr) 19px; align-items: center; gap: 9px; color: #f2efeb; padding: 10px 7px; border: 0; border-top: 1px solid #474345; background: transparent; text-align: left; }
.side-user strong, .side-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user strong { font-size: .88rem; }
.side-user small { margin-top: 3px; color: #bdb6b1; font-size: .75rem; }
.side-user .icon { width: 17px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 10px clamp(22px, 3vw, 44px); background: #fff; border-bottom: 1px solid var(--line); }
.top-context { color: #414147; font-size: .94rem; font-weight: 650; }
.top-actions { display: flex; align-items: center; gap: 13px; }
.top-divider { height: 28px; width: 1px; background: var(--line); }
.top-user { display: inline-flex; align-items: center; gap: 9px; padding: 3px 3px 3px 0; border: 0; border-radius: 9px; background: transparent; font-size: .88rem; font-weight: 650; }
.top-user .icon { width: 15px; color: var(--muted); }
.demo-label { font-size: .77rem; padding: 5px 8px; color: #52687e; background: #edf2f8; border-radius: 6px; font-weight: 650; }
.bell { position: relative; }
.notification-count { display: grid; place-content: center; position: absolute; top: -5px; right: -6px; min-width: 19px; min-height: 19px; padding: 0 3px; border: 2px solid #fff; border-radius: 100px; font-size: .66rem; font-weight: 760; color: #fff; background: #ac303b; }
.mobile-nav, .top-mobile-brand, .mobile-install { display: none; }

.avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 35px; height: 35px; border-radius: 50%; font-size: .74rem; font-weight: 720; background: #e8eefb; color: #355179; }
.avatar-1 { background: #fce9dc; color: #8c3e20; }
.avatar-2 { background: #e9edf9; color: #51428e; }
.avatar-3 { background: #e3f1f5; color: #195b6f; }
.avatar-4 { background: #f7e7ef; color: #89416a; }
.avatar-5 { background: #e2f2e9; color: #275e43; }
.glyph { display: inline-grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; }
.glyph.blue { background: #f8ede5; color: #a44419; }
.glyph.green { background: #e7f5ed; color: #1a7551; }
.glyph.red { background: #fcedee; color: #b4313e; }
.glyph.amber { background: #fbe9d3; color: #96510b; }
.glyph .icon { width: 21px; height: 21px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; font-size: .81rem; font-weight: 650; line-height: 1.3; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.green { background: #e8f6ef; color: #126147; }
.badge.red { background: #fce3e7; color: #a12636; }
.badge.amber { background: #fff0db; color: #865019; }
.badge.neutral { background: #edf1f7; color: #425870; }
.badge-group { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 5px; }

.main { width: 100%; max-width: 1600px; margin-inline: auto; padding: 31px clamp(22px, 3vw, 44px) 42px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 23px; }
.page-heading h1, .employee-greet h1 { font-size: clamp(1.85rem, 3vw, 2.32rem); line-height: 1.16; letter-spacing: -.043em; font-weight: 745; }
.page-heading p, .employee-greet p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); line-height: 1.45; margin-top: 7px; font-size: .96rem; }
.page-heading p .icon { width: 17px; height: 17px; }
.heading-controls { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 19px; }
.metric { display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 4px 11px; align-items: center; min-width: 0; padding: 15px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; box-shadow: var(--shadow); }
.metric:hover { border-color: #b4c2d3; }
.metric .glyph { grid-row: span 2; align-self: start; }
.metric-label { font-size: .88rem; color: #56535a; font-weight: 620; }
.metric strong { font-size: 1.92rem; font-weight: 745; line-height: .98; letter-spacing: -.04em; }
.alert-banner { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; margin-bottom: 20px; padding: 13px 15px; background: #fff4e6; border: 1px solid #f0d6b9; border-radius: 12px; }
.alert-banner strong { font-size: 1rem; color: #66401e; }
.alert-banner p { margin-top: 3px; font-size: .86rem; color: #795637; }
.button.alert-button { background: #fff9f0; border-color: #e3c49f; color: #814109; }
.button.alert-button:hover { background: #fff; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 2.45fr) minmax(236px, 1fr); gap: 17px; align-items: start; }
.panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; padding: 17px 18px 15px; }
.panel-heading h2, .punch-panel h2 { font-size: 1.1rem; line-height: 1.2; letter-spacing: -.023em; }
.panel-heading p { color: var(--muted); font-size: .86rem; margin-top: 5px; }
.small-label { padding: 5px 8px; color: #4e6178; background: #f0f4f8; border-radius: 7px; font-size: .78rem; font-weight: 650; white-space: nowrap; }
.panel-footer { display: flex; justify-content: center; padding: 9px 14px; border-top: 1px solid var(--line); }
.panel-note { color: var(--muted); font-size: .83rem; padding: 10px 18px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .89rem; text-align: left; }
th { font-size: .79rem; color: #475c72; background: #f5f7fb; font-weight: 670; }
th, td { padding: 10px 12px; border-top: 1px solid #edf0f5; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
td small { display: block; margin-top: 3px; font-size: .76rem; color: var(--muted); }
td small.red-text { color: var(--red); }
.person-cell { display: flex; align-items: center; gap: 8px; }
.person-cell strong { color: #1b3047; font-weight: 650; }
.time-cell { font-weight: 670; }
.detail-cell { width: 44px; padding: 8px !important; }
.detail-button { width: 34px; height: 34px; background: none; border-color: transparent; }
.detail-button .icon { width: 18px; }
.row-outside { background: #fff8f9; }
.marks-panel td { padding-block: 9px; }
.marks-panel td:first-child { min-width: 128px; }
.marks-panel th, .marks-panel td { padding-inline: 9px; }
.marks-panel th:first-child, .marks-panel td:first-child { padding-left: 16px; }
.site-mini-list, .point-list { padding: 0; margin: 0; list-style: none; }
.site-mini-list li { border-top: 1px solid #edf0f5; }
.site-mini { display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 13px 14px; border: 0; background: transparent; text-align: left; width: 100%; }
.site-mini .glyph { width: 39px; height: 39px; }
.site-mini:hover { background: #f6f8fc; }
.site-mini strong, .site-mini small { display: block; }
.site-mini strong { font-size: .9rem; font-weight: 680; }
.site-mini small { color: var(--muted); font-size: .81rem; margin-top: 4px; }
.mini-people { display: inline-flex; gap: 3px; align-items: center; color: #4d647d; font-size: .84rem; font-weight: 650; }
.mini-people .icon { width: 15px; height: 15px; }
.mobile-points { display: none; }

.form { display: grid; gap: 14px; }
.form label, .filter-bar label { display: grid; align-content: start; gap: 5px; color: #364c63; font-size: .875rem; font-weight: 650; }
.form input, .form select, .form textarea, .filter-bar input, .filter-bar select { display: block; width: 100%; min-height: 44px; padding: .6rem .68rem; color: var(--ink); font-size: .97rem; font-weight: 450; border: 1px solid #cbd7e4; border-radius: 8px; background-color: #fff; }
.form textarea { resize: vertical; }
.form select, .filter-bar select { appearance: none; padding-right: 29px; background-image: linear-gradient(45deg, transparent 50%, #5e7085 50%), linear-gradient(135deg, #5e7085 50%, transparent 50%); background-position: right 15px center, right 10px center; background-size: 5px 5px; background-repeat: no-repeat; }
.form input::placeholder, .form textarea::placeholder { color: #607385; }
.form label small { font-size: .78rem; font-weight: 450; color: var(--muted); }
.form-error { padding: 10px 11px; background: #fff0f2; color: #9c2539; border: 1px solid #f2d0d8; border-radius: 8px; font-size: .9rem; line-height: 1.4; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-bar { display: flex; align-items: end; gap: 11px; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.filter-bar label { flex: 1 1 126px; }
.filter-bar .form-error { flex: 1 0 100%; }
.report-panel, .summary-panel { margin-bottom: 20px; }
.summary-panel .panel-heading .icon { color: #63778c; }
.summary-table { min-width: 550px; }
.sites-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.site-card { display: flex; flex-direction: column; gap: 14px; padding: 17px; }
.site-card-top, .site-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 11px; }
.site-card h2 { font-size: 1.18rem; letter-spacing: -.02em; }
.site-card dl { flex: 1; }
.site-card dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid #edf0f5; }
.site-card dt, .evidence-data dt { color: var(--muted); font-size: .85rem; }
.site-card dd { font-size: .88rem; font-weight: 650; text-align: right; }
.site-card dd.coordinates { font-size: .73rem; }
.site-card-footer { border-top: 1px solid #edf0f5; padding-top: 12px; }
.empty-site { grid-column: 1 / -1; }
.team-table { min-width: 690px; }
.empty { display: grid; justify-items: center; gap: 9px; padding: 36px 20px; text-align: center; }
.empty p { max-width: 33ch; color: var(--muted); font-size: .91rem; }
.error-panel { text-align: center; padding-bottom: 20px; }

.employee-main { max-width: 740px; }
.employee-greet { margin-bottom: 19px; }
.punch-clock { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(131deg, #353034, #242428 75%); color: #fff9f5; border-radius: 15px; padding: 19px 23px 21px; margin-bottom: 15px; box-shadow: 0 5px 14px rgb(40 27 23 / .16); }
.clock-rings, .clock-rings::before, .clock-rings::after { position: absolute; border-radius: 50%; border: 1px solid rgb(238 173 132 / .25); pointer-events: none; }
.clock-rings { width: 350px; height: 350px; top: -162px; right: -61px; z-index: -1; }
.clock-rings::before, .clock-rings::after { content: ''; }
.clock-rings::before { inset: 32px; }
.clock-rings::after { inset: 71px; border-color: rgb(255 131 70 / .43); }
.clock-label, .clock-site { display: flex; align-items: center; gap: 7px; font-size: .89rem; color: #e8dbd3; }
.clock-label .icon, .clock-site .icon { width: 17px; height: 17px; color: #fd9a63; }
.clock-value { font-size: clamp(3.05rem, 8vw, 4.8rem); line-height: 1.12; font-weight: 740; letter-spacing: -.065em; margin: 7px 0 14px; }
.clock-site { gap: 8px; font-weight: 640; color: #fff; }
.clock-radius { font-size: .76rem; color: #f3d6c4; background: #483730; padding: 4px 6px; border-radius: 6px; }
.punch-panel { padding: 17px; margin-bottom: 15px; }
.punch-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.kind-button { display: inline-flex; align-items: center; gap: 7px; min-height: 47px; padding: 7px 9px; background: #fff; border: 1px solid #dce4ee; border-radius: 8px; color: #435b73; font-weight: 660; font-size: .87rem; text-align: left; }
.kind-button[aria-pressed='true'] { background: #fff3ea; border-color: #dd8a60; color: #8e320d; }
.kind-button:hover { border-color: #dd8a60; }
.kind-button .icon { width: 17px; height: 17px; }
.punch-action { min-height: 49px; font-size: .96rem; }
.punch-panel .panel-note { display: flex; gap: 6px; align-items: center; padding: 10px 0 0; }
.punch-panel .panel-note .icon { width: 15px; height: 15px; }
.point-list li { border-top: 1px solid var(--line); }
.point-list li:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.phone-point { display: grid; grid-template-columns: 37px minmax(0,1fr) auto; align-items: start; gap: 10px; width: 100%; background: transparent; border: 0; text-align: left; padding: 11px 14px; }
.phone-point:hover { background: rgb(24 60 94 / .045); }
.phone-point .glyph { width: 37px; height: 37px; }
.phone-point-main strong { display: block; font-size: .93rem; }
.phone-point small { display: block; color: var(--muted); font-size: .79rem; margin-top: 2px; }
.phone-point .badge-group { margin-top: 6px; }
.phone-point-time { text-align: right; }
.phone-point-time b { font-size: .97rem; }

.auth { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(400px, 1fr); min-height: 100dvh; }
.auth-identity { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(145deg, #323035, #1b1b1e 76%); color: #fff; padding: 33px clamp(24px, 5vw, 80px); }
.auth .criou-brand img { width: 184px; }
.auth-radar { position: absolute; inset: 0; display: grid; place-items: center; z-index: -1; }
.radar-ring { position: absolute; width: clamp(200px, 31vw, 450px); aspect-ratio: 1; border: 1px solid #534347; border-radius: 50%; }
.radar-ring:nth-child(2) { transform: scale(.78); border-color: #665152; }
.radar-ring:nth-child(3) { transform: scale(.54); border-color: #9f634f; }
.auth-radar > span { display: grid; place-items: center; width: 105px; height: 105px; border-radius: 29px; background: var(--orange-bright); color: #211d1d; box-shadow: 0 0 50px rgb(255 117 53 / .25); }
.auth-radar .icon { width: 55px; height: 55px; stroke-width: 1.4; }
.auth-form { display: grid; align-items: center; justify-items: center; padding: 35px 26px; background: #fff; }
.auth-inner { width: min(100%, 405px); }
.auth-inner h1 { font-size: clamp(1.85rem, 3vw, 2.25rem); line-height: 1.16; letter-spacing: -.036em; margin: 0 0 22px; }
.auth-inner > p.muted { margin-bottom: 16px; line-height: 1.5; }
.auth-mobile-brand { display: none; }
.login-help { color: var(--muted); font-size: .87rem; margin-top: 13px; }
.demo-box { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #f5f8fc; margin-top: 22px; }
.demo-box strong { display: block; margin-bottom: 8px; font-size: .83rem; color: #455b74; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.loading, .boot-screen { display: grid; place-items: center; place-content: center; gap: 9px; text-align: center; color: var(--muted); }
.loading { min-height: 160px; }
.boot-screen { min-height: 100dvh; padding: 24px; }
.spinner { width: 26px; height: 26px; border: 3px solid #e2e9f1; border-top-color: #b04010; border-radius: 50%; animation: spin .72s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.dialog { width: min(100% - 26px, 590px); max-height: calc(100dvh - 26px); padding: 0; color: var(--ink); border: 1px solid #dee6ee; border-radius: 15px; box-shadow: 0 18px 65px rgb(10 24 45 / .32); }
.dialog::backdrop { background: rgb(10 20 34 / .58); }
.dialog-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px 10px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.dialog-header h2 { font-size: 1.12rem; letter-spacing: -.02em; }
.dialog-body { display: grid; gap: 14px; padding: 17px 18px; }
.dialog-body p { line-height: 1.42; }
.dialog-body .location-button { justify-self: start; }
.worksite-map-dialog { width: min(100% - 26px, 760px); }
.worksite-map { isolation: isolate; height: clamp(220px, 54dvh, 455px); border: 1px solid #cbd7e4; border-radius: 10px; cursor: crosshair; }
.worksite-map:focus-visible { outline: 3px solid #ec7b48; outline-offset: 2px; }
.worksite-map.leaflet-container .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; }
.worksite-map-marker::before { content: ''; position: absolute; top: 2px; left: 3px; width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50% 50% 50% 4px; background: var(--orange); box-shadow: 0 2px 7px #25252966; transform: rotate(-45deg); }
.worksite-map-marker::after { content: ''; position: absolute; top: 10px; left: 11px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.detail-meta { display: flex; justify-content: space-between; align-items: start; gap: 10px; flex-wrap: wrap; }
.detail-meta h3 { font-size: 1.07rem; }
.detail-meta p { color: var(--muted); font-size: .88rem; margin-top: 3px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; align-items: start; }
.evidence-photo { display: grid; place-items: center; min-height: 147px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #ebf0f7; }
.evidence-photo img { width: 100%; max-height: 250px; object-fit: contain; }
.photo-placeholder { display: grid; justify-items: center; gap: 7px; color: var(--muted); font-size: .9rem; }
.evidence-data > div { padding: 7px 0; border-bottom: 1px solid var(--line); }
.evidence-data dd { margin-top: 3px; font-weight: 650; font-size: .94rem; overflow-wrap: anywhere; }
.evidence-data .text-button { min-height: 24px; }
.review-box { padding: 12px; background: #f5f8fc; border: 1px solid var(--line); border-radius: 10px; }
.review-box p { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-box small { display: block; margin-top: 5px; font-size: .79rem; color: var(--muted); }
.account-person { display: flex; align-items: center; gap: 10px; }
.account-person p { font-size: .89rem; color: var(--muted); }
.account-actions { display: grid; gap: 8px; }
.install-guide { display: grid; gap: 13px; }
.install-guide > div { display: flex; gap: 10px; align-items: start; }
.install-guide h3 { font-size: 1rem; margin-bottom: 3px; }
.install-guide p { color: #435a72; }
.capture-frame { overflow: hidden; min-height: 130px; display: grid; justify-items: center; align-items: center; background: var(--charcoal); color: #eee8e3; border-radius: 10px; }
.capture-frame video, .capture-frame img { max-width: 100%; width: 100%; max-height: min(40dvh, 330px); object-fit: contain; }
.capture-frame video { transform: scaleX(-1); }
.camera-placeholder { display: grid; justify-items: center; gap: 8px; padding: 20px; text-align: center; }
.camera-placeholder .icon { width: 30px; height: 30px; }
.capture-tools, .capture-location { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.capture-location { color: var(--muted); font-size: .88rem; }
.capture-location .icon { width: 17px; height: 17px; color: #97502b; }
.file-button { cursor: pointer; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-button:focus-within { outline: 3px solid #ec7b48; outline-offset: 3px; }
.toast { position: fixed; inset: auto max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) auto; z-index: 3; display: flex; align-items: center; gap: 9px; max-width: min(430px, calc(100vw - 36px)); padding: 12px 15px; color: #fff; background: #244c3e; border: 1px solid rgb(255 255 255 / .2); border-radius: 11px; box-shadow: 0 8px 35px rgb(10 24 45 / .22); font-size: .92rem; font-weight: 630; }
.toast.warning { background: #873b18; }

@media (max-width: 1260px) {
    .dashboard-columns { grid-template-columns: minmax(0, 2.55fr) minmax(217px, 1fr); gap: 12px; }
    .layout { grid-template-columns: 209px minmax(0, 1fr); }
    .marks-panel .avatar { width: 29px; height: 29px; font-size: .69rem; }
    .marks-panel table { font-size: .83rem; }
    .marks-panel .badge { font-size: .75rem; }
}

@media (max-width: 1080px) {
    .dashboard-columns { grid-template-columns: 1fr; }
    .sites-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric { padding: 12px 10px; gap: 4px 8px; }
    .metric, .metric .glyph { grid-template-columns: 34px 1fr; }
    .metric .glyph { display: grid; grid-template-columns: auto; width: 34px; height: 34px; }
    .metric .glyph .icon { width: 18px; height: 18px; }
    .metric-label { font-size: .82rem; }
}

@media (max-width: 780px) {
    .layout { display: block; }
    .sidebar, .top-context, .top-divider, .top-user > span:not(.avatar), .top-user .icon { display: none; }
    .top-mobile-brand, .mobile-install { display: inline-grid; }
    .topbar { min-height: 60px; padding: max(10px, env(safe-area-inset-top)) 15px 9px; }
    .top-actions { gap: 8px; }
    .top-user { min-width: 43px; justify-content: center; }
    .topbar .icon-button { width: 38px; height: 38px; }
    .mobile-nav { position: fixed; inset: auto 0 0; z-index: 2; display: flex; justify-content: center; padding: 4px 6px max(4px, env(safe-area-inset-bottom)); background: var(--charcoal); border-top: 1px solid #474044; }
    .mobile-nav .nav-link { flex: 1; max-width: 200px; display: grid; justify-content: center; justify-items: center; gap: 2px; min-height: 48px; padding: 4px 3px; font-size: .74rem; }
    .mobile-nav .nav-link .icon { width: 19px; height: 19px; }
    .main { padding: 20px 15px calc(79px + env(safe-area-inset-bottom)); }
    .page-heading { align-items: start; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
    .page-heading p, .employee-greet p { font-size: .88rem; }
    .metrics { gap: 9px; margin-bottom: 13px; }
    .alert-banner { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 10px; gap: 8px; margin-bottom: 14px; }
    .alert-banner .glyph { width: 36px; height: 36px; }
    .alert-banner strong { font-size: .9rem; }
    .alert-banner p { font-size: .8rem; }
    .panel-heading { padding: 13px 14px; min-height: 56px; }
    .filter-bar { padding: 12px; gap: 8px; }
    .toast { bottom: calc(66px + env(safe-area-inset-bottom)); }
    .form input, .form select, .form textarea, .filter-bar input, .filter-bar select { font-size: 1rem; }
}

@media (max-width: 600px) {
    .auth { display: block; background: #fff; }
    .auth-form { padding: max(30px, env(safe-area-inset-top)) 21px 30px; }
    .auth-identity { display: none; }
    .auth-mobile-brand { display: block; margin-bottom: 28px; }
    .auth-mobile-brand .brand span { color: var(--muted); }
    .metrics, .sites-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .alert-banner { grid-template-columns: 36px 1fr; }
    .alert-banner .alert-button { grid-column: 2; justify-self: start; }
    .alert-banner p { line-height: 1.3; }
    .desktop-points { display: none; }
    .mobile-points { display: block; }
    .sites-grid { grid-template-columns: 1fr; }
    .dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
    .dialog-body { padding: 13px; }
    .detail-grid { gap: 9px; }
    .evidence-data dt { font-size: .8rem; }
    .demo-label { font-size: .69rem; padding: 4px 5px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 360px) {
    .criou-brand.compact strong { display: none; }
}
