:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-muted: #eef3f1;
  --line: #dfe7e3;
  --text: #12211d;
  --muted: #71807b;
  --accent: #13866a;
  --accent-dark: #0f6b55;
  --accent-soft: #dff3eb;
  --warning: #b7791f;
  --danger: #b84c4c;
  --shadow: 0 20px 45px -28px rgba(21, 45, 36, .28);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.is-hidden { display: none !important; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.icon { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; }
.icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255,255,255,.38); border-radius: 14px; color: #fff; background: var(--accent); font-size: 13px; font-weight: 850; letter-spacing: -.08em; box-shadow: 0 12px 24px -14px rgba(19, 134, 106, .8); }
.brand-mark.small { width: 34px; height: 34px; border-radius: 10px; font-size: 10px; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 10px; padding: 0 15px; font-size: 13px; font-weight: 750; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 10px 20px -14px rgba(19, 134, 106, .9); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { color: var(--accent-dark); border-color: #b8dcd0; background: var(--accent-soft); }
.button-quiet { color: #52635d; border-color: var(--line); background: transparent; }
.button-quiet:hover { background: var(--surface); }
.button-wide { width: 100%; }.button-compact { min-height: 32px; padding: 0 11px; font-size: 11px; }.panel-header-copy, .panel-header-actions, .mapping-actions { display: inline-flex; align-items: center; }.panel-header-copy, .panel-header-actions { gap: 10px; }.mapping-actions { gap: 6px; white-space: nowrap; }.form-help { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.device-user-list { display: grid; gap: 6px; min-width: 160px; }.device-user-item { display: grid; gap: 2px; color: var(--text); font-size: 11px; }.device-user-item strong { color: var(--accent-dark); font-size: 11px; }.device-user-item small { color: var(--muted); font-size: 10px; }.user-device-list { display: grid; gap: 6px; min-width: 130px; }.user-device-item { display: grid; gap: 2px; }.user-device-item strong { color: var(--text); font-size: 11px; }.user-device-item small { color: var(--accent-dark); font-size: 10px; }
.icon-button { display: inline-grid; width: 36px; height: 36px; place-items: center; border: 1px solid transparent; border-radius: 10px; color: var(--muted); background: transparent; }
.icon-button:hover { color: var(--text); background: var(--surface-muted); }
.mobile-only { display: none; }

.login-shell { display: grid; min-height: 100dvh; grid-template-columns: minmax(0, 1fr) minmax(360px, 42%); background: var(--bg); }
.login-panel { display: flex; max-width: 520px; flex-direction: column; justify-content: center; padding: 72px clamp(28px, 8vw, 120px); }
.login-panel h1 { margin: 25px 0 18px; font-size: clamp(36px, 5vw, 64px); letter-spacing: -.06em; line-height: .98; }
.login-panel h1 span { color: var(--accent); }
.login-copy { max-width: 460px; margin: 0 0 34px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.login-form { display: grid; gap: 17px; max-width: 380px; }
label { display: grid; gap: 8px; color: #53645e; font-size: 12px; font-weight: 750; }
input, select { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px; outline: none; padding: 0 13px; color: var(--text); background: var(--surface); font-size: 14px; transition: border-color .18s, box-shadow .18s; }
input:focus, select:focus { border-color: #8dc8b7; box-shadow: 0 0 0 3px rgba(19, 134, 106, .1); }
.form-error { min-height: 18px; margin: 0; color: var(--danger); font-size: 12px; }
.login-aside { position: relative; display: grid; min-height: 100dvh; place-items: center; overflow: hidden; background: #12382f; }
.login-aside::before { position: absolute; inset: 0; background: radial-gradient(circle at 20% 22%, rgba(103, 198, 159, .24), transparent 33%), radial-gradient(circle at 80% 76%, rgba(19, 134, 106, .42), transparent 36%); content: ""; }
.aside-orbit { position: absolute; border: 1px solid rgba(196, 248, 225, .18); border-radius: 50%; transform: rotate(-22deg); }
.orbit-one { width: 680px; height: 300px; }
.orbit-two { width: 420px; height: 660px; transform: rotate(37deg); }
.signal-card { position: relative; width: min(390px, 78%); border: 1px solid rgba(222, 255, 242, .16); border-radius: 22px; padding: 26px; color: #e6f6ef; background: rgba(7, 31, 26, .58); box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); backdrop-filter: blur(14px); }
.signal-header { display: flex; align-items: center; gap: 8px; color: #91b8aa; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.signal-header strong { margin-left: auto; color: #7fe1b8; font-size: 10px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #55d69c; box-shadow: 0 0 0 5px rgba(85, 214, 156, .12); }
.signal-grid { display: grid; grid-template-columns: 1fr auto; gap: 17px 20px; margin: 44px 0 30px; }
.signal-grid span { color: #8eafa4; font-size: 12px; }.signal-grid strong { font-size: 27px; letter-spacing: -.05em; }
.signal-wave { display: flex; height: 64px; align-items: center; gap: 5px; }
.signal-wave i { display: block; width: 7%; border-radius: 4px; background: #50c892; opacity: .65; animation: wave 1.7s ease-in-out infinite; }.signal-wave i:nth-child(2n) { animation-delay: -.6s; }.signal-wave i:nth-child(3n) { animation-delay: -.2s; }.signal-wave i:nth-child(1) { height: 28%; }.signal-wave i:nth-child(2) { height: 55%; }.signal-wave i:nth-child(3) { height: 38%; }.signal-wave i:nth-child(4) { height: 83%; }.signal-wave i:nth-child(5) { height: 48%; }.signal-wave i:nth-child(6) { height: 71%; }.signal-wave i:nth-child(7) { height: 33%; }.signal-wave i:nth-child(8) { height: 92%; }.signal-wave i:nth-child(9) { height: 58%; }.signal-wave i:nth-child(10) { height: 42%; }.signal-wave i:nth-child(11) { height: 75%; }.signal-wave i:nth-child(12) { height: 32%; }.signal-wave i:nth-child(13) { height: 65%; }.signal-wave i:nth-child(14) { height: 43%; }.signal-wave i:nth-child(15) { height: 80%; }
@keyframes wave { 0%, 100% { transform: scaleY(.76); opacity: .42; } 50% { transform: scaleY(1.07); opacity: .9; } }
.aside-caption { position: absolute; bottom: 32px; margin: 0; color: #8eafa4; font-size: 12px; letter-spacing: .02em; }

.app-shell { display: grid; min-height: 100dvh; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: 24px 14px 16px; background: #fbfcfc; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 34px; }.sidebar-brand strong { display: block; font-size: 14px; letter-spacing: -.02em; }.sidebar-brand span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.primary-nav { display: grid; gap: 5px; }.nav-item { display: flex; width: 100%; min-height: 43px; align-items: center; gap: 12px; border: 0; border-radius: 10px; padding: 0 12px; color: #74827d; background: transparent; font-size: 13px; font-weight: 700; text-align: left; }.nav-item:hover { color: var(--text); background: var(--surface-muted); }.nav-item.is-active { color: var(--accent-dark); background: var(--accent-soft); }.nav-item .icon { width: 17px; }
.sidebar-bottom { display: grid; gap: 16px; margin-top: auto; }.system-note { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 18px 12px 4px; }.system-note strong { display: block; font-size: 11px; }.system-note small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }.nav-logout { color: #9a6a6a; }
.main-content { width: 100%; min-width: 0; }.topbar { display: flex; min-height: 94px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 18px clamp(20px, 4vw, 52px); background: rgba(245,247,246,.84); }.topbar h2 { margin: 0; font-size: 24px; letter-spacing: -.045em; }.topbar-actions { display: flex; align-items: center; gap: 13px; }.profile-chip { display: flex; align-items: center; gap: 9px; color: #52635d; font-size: 12px; font-weight: 750; }.profile-avatar { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: var(--accent-dark); background: var(--accent-soft); font-size: 10px; font-weight: 850; }
.content-area { width: 100%; max-width: none; margin: 0; padding: 38px clamp(20px, 3vw, 56px) 70px; }
.section-heading { display: flex; min-width: 0; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }.section-heading > :first-child { min-width: 0; }.section-heading h3 { margin: 0; font-size: 18px; letter-spacing: -.035em; }.section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }.toolbar { display: flex; max-width: 100%; flex-wrap: wrap; align-items: center; gap: 10px; }.toolbar input, .toolbar select { width: 220px; height: 40px; }.filter-select { min-width: 220px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-bottom: 34px; }.metric { min-width: 0; min-height: 142px; border: 1px solid var(--line); border-radius: 16px; padding: 21px; background: var(--surface); box-shadow: var(--shadow); }.metric-label { color: var(--muted); font-size: 11px; font-weight: 750; }.metric-value { margin-top: 23px; font-size: 32px; font-weight: 750; letter-spacing: -.07em; }.metric-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 11px; }.metric-foot .live-dot { width: 5px; height: 5px; box-shadow: none; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .9fr); gap: 18px; }.dashboard-grid > .panel { min-width: 0; }.panel { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }.panel-header { display: flex; min-width: 0; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 18px 20px; }.panel-header h3 { margin: 0; font-size: 14px; letter-spacing: -.02em; }.panel-header span { color: var(--muted); font-size: 11px; }.health-list { display: grid; gap: 4px; padding: 10px; }.health-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 13px 10px; }.health-row span:nth-child(2) { font-size: 12px; font-weight: 700; }.health-row small { color: var(--muted); font-size: 11px; }.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #b9c7c1; }.status-dot.good { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }.status-dot.warn { background: #d99b45; box-shadow: 0 0 0 5px #fff1d9; }.mini-chart { display: flex; height: 164px; align-items: end; gap: 8px; padding: 24px; }.bar { flex: 1; min-width: 8px; border-radius: 5px 5px 2px 2px; background: var(--accent-soft); }.bar.active { background: var(--accent); }.chart-caption { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 13px 20px; color: var(--muted); font-size: 11px; }
.dashboard-grid .panel:first-child .panel-header { justify-content: flex-start; gap: 12px; }.dashboard-grid .panel:first-child .panel-header > .badge { margin-left: 2px; }.dashboard-grid .panel:first-child .panel-header > .panel-header-actions { margin-left: auto; }
.user-attendance-panel { margin-top: 18px; }.user-attendance-header { align-items: end; gap: 20px; }.user-attendance-toolbar { display: flex; align-items: end; gap: 8px; }.date-filter { min-width: 170px; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.date-filter input { height: 36px; margin-top: 0; font-size: 12px; }.user-attendance-content { min-height: 100px; padding: 10px; }.user-attendance-table-wrap { box-shadow: none; }.attendance-loading, .attendance-inline-error { display: flex; min-height: 164px; align-items: center; justify-content: center; gap: 12px; padding: 28px 20px; color: var(--muted); font-size: 12px; text-align: center; }.attendance-inline-error { flex-direction: column; color: var(--danger); }.user-attendance-toolbar .button:disabled { cursor: default; opacity: .5; transform: none; }
.attendance-filter-panel { display: grid; gap: 14px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--surface); box-shadow: var(--shadow); }.attendance-filter-grid { display: grid; grid-template-columns: minmax(230px, 1.6fr) repeat(4, minmax(140px, 1fr)); gap: 10px; }.attendance-filter-field { display: grid; min-width: 0; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.attendance-filter-field input, .attendance-filter-field select { width: 100%; height: 40px; font-size: 12px; }.attendance-filter-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 13px; }.attendance-filter-hint { color: var(--muted); font-size: 11px; }.attendance-filter-hint strong { color: var(--accent-dark); }.attendance-filter-actions { display: flex; flex: none; gap: 8px; }
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }.data-table th { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-align: left; text-transform: uppercase; }.data-table td { padding: 15px 18px; border-bottom: 1px solid #edf1ef; color: #40514b; font-size: 12px; }.data-table tr:last-child td { border-bottom: 0; }.data-table tbody tr:hover { background: #fbfdfc; }.primary-text { color: var(--text); font-weight: 750; }.secondary-text { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }.table-actions { display: inline-flex; align-items: center; gap: 4px; }.table-action { border: 0; color: var(--accent-dark); background: none; font-size: 12px; font-weight: 750; }.table-action:hover { text-decoration: underline; }.table-action.icon-only { display: inline-grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; padding: 0; }.table-action.icon-only:hover { background: var(--surface-muted); text-decoration: none; }.table-action.icon-only.danger { color: var(--danger); }.table-action.icon-only.danger:hover { background: #fbe7e7; }.action-icon { width: 16px; height: 16px; }
.user-table { min-width: 820px; }.pin-list { display: flex; flex-wrap: wrap; gap: 6px; }.pin-value { display: inline-flex; align-items: center; border: 1px solid #d8e9e2; border-radius: 7px; padding: 4px 7px; color: var(--accent-dark); background: var(--accent-soft); font-size: 11px; font-weight: 750; }
.device-table { min-width: 1180px; }.device-table th:last-child, .device-table td:last-child { text-align: right; }.device-metrics { margin-bottom: 22px; }.device-dialog { width: min(700px, calc(100% - 32px)); }.device-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 20px; }.device-summary-item { display: grid; gap: 6px; min-height: 58px; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; background: var(--surface-muted); }.device-summary-item > span { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }.device-summary-item > strong { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 9px; color: #66756f; background: #eef2f0; font-size: 10px; font-weight: 800; }.badge.good { color: var(--accent-dark); background: var(--accent-soft); }.badge.warn { color: var(--warning); background: #fff1d9; }.badge.danger { color: var(--danger); background: #fbe7e7; }.badge .status-dot { width: 5px; height: 5px; box-shadow: none; }
.empty-state, .loading-state, .error-state { display: grid; min-height: 180px; place-items: center; padding: 30px; color: var(--muted); font-size: 13px; text-align: center; }.error-state { color: var(--danger); }.skeleton { min-height: 180px; border-radius: 16px; background: linear-gradient(100deg, #edf2ef 30%, #f8faf9 50%, #edf2ef 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }@keyframes shimmer { to { background-position: -200% 0; } }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }.photo-tile { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }.photo-preview { display: grid; height: 170px; place-items: center; overflow: hidden; color: #91a29b; background: var(--surface-muted); }.photo-preview img { width: 100%; height: 100%; object-fit: cover; }.photo-meta { padding: 13px; }.photo-meta strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.photo-meta small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.modal-dialog { width: min(620px, calc(100% - 32px)); border: 0; border-radius: 18px; padding: 0; color: var(--text); box-shadow: 0 30px 80px -30px rgba(0,0,0,.3); }.modal-dialog::backdrop { background: rgba(11, 31, 25, .42); backdrop-filter: blur(4px); }.modal-dialog form { padding: 24px; }.modal-header { display: flex; align-items: start; justify-content: space-between; margin-bottom: 24px; }.modal-header h3 { margin: 0; font-size: 22px; letter-spacing: -.04em; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.mapping-section { display: grid; gap: 13px; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 20px; }.field-label { margin: 0 0 9px; color: #53645e; font-size: 12px; font-weight: 750; }.field-label span { color: var(--muted); font-weight: 500; }.mapping-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }.mapping-list { display: flex; flex-wrap: wrap; gap: 7px; }.mapping-chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; padding: 7px 9px; color: var(--accent-dark); background: var(--accent-soft); font-size: 11px; font-weight: 700; }.mapping-chip button { border: 0; color: var(--accent-dark); background: none; font-size: 14px; }.modal-actions { display: flex; justify-content: end; gap: 9px; margin-top: 24px; }
.toast { position: fixed; z-index: 20; top: 20px; right: 20px; max-width: 340px; border: 1px solid #b8dcd0; border-radius: 10px; padding: 12px 15px; color: var(--accent-dark); background: var(--accent-soft); box-shadow: var(--shadow); font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s; }.toast.toast-error { border-color: #e5b7b7; color: var(--danger); background: #fff1f1; }.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) { .metric-grid { grid-template-columns: repeat(2, 1fr); }.dashboard-grid { grid-template-columns: 1fr; }.photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1199px) { .section-heading { align-items: start; flex-direction: column; }.toolbar { width: 100%; }.toolbar input, .toolbar select { flex: 1 1 220px; } }
@media (max-width: 760px) { .login-shell { display: block; }.login-panel { max-width: none; min-height: 100dvh; padding: 34px 24px; }.login-panel h1 { font-size: 43px; }.login-aside { display: none; }.app-shell { display: block; }.sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: 240px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 20px 0 40px -30px rgba(0,0,0,.35); }.sidebar.is-open { transform: translateX(0); }.mobile-only { display: inline-grid; }.topbar { align-items: start; gap: 12px; }.topbar-actions .button-quiet { width: 38px; padding: 0; font-size: 0; }.topbar-actions .button-quiet .icon { width: 17px; }.profile-chip span:last-child { display: none; }.content-area { padding: 28px 16px 50px; }.section-heading { align-items: start; flex-direction: column; }.toolbar { width: 100%; }.toolbar input { width: 100%; }.metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.metric { min-height: 120px; padding: 16px; }.metric-value { margin-top: 17px; font-size: 26px; }.photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }.photo-preview { height: 130px; }.form-grid { grid-template-columns: 1fr; }.mapping-row { grid-template-columns: 1fr 1fr; }.mapping-row .button { grid-column: 1 / -1; }.modal-dialog form { padding: 20px; } }
@media (max-width: 420px) { .metric-grid { grid-template-columns: 1fr; }.photo-grid { grid-template-columns: 1fr 1fr; }.photo-preview { height: 115px; } }

@media (max-width: 760px) { .device-summary-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .device-summary-grid { grid-template-columns: 1fr; } }

.photo-people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }.photo-person-card { display: block; overflow: hidden; width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 0; color: var(--text); background: var(--surface); box-shadow: var(--shadow); text-align: left; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }.photo-person-card:hover { border-color: #b8dcd0; box-shadow: 0 18px 32px -22px rgba(19, 83, 67, .42); transform: translateY(-2px); }.photo-person-preview { position: relative; display: grid; height: 184px; place-items: center; overflow: hidden; color: #91a29b; background: var(--surface-muted); }.photo-person-image { width: 100%; height: 100%; object-fit: cover; }.photo-person-count { position: absolute; top: 12px; right: 12px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 5px 8px; color: #fff; background: rgba(11, 31, 25, .72); font-size: 10px; font-weight: 800; backdrop-filter: blur(8px); }.photo-person-meta { display: grid; gap: 8px; padding: 14px 16px 16px; }.photo-person-meta strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.photo-person-meta small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.photo-person-meta > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.photo-person-meta em { overflow: hidden; color: var(--muted); font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }.photo-missing { padding: 18px; color: var(--muted); font-size: 11px; text-align: center; }.photo-person-dialog { width: min(900px, calc(100% - 32px)); padding: 24px; }.photo-event-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-height: min(66vh, 640px); overflow-y: auto; padding: 1px 4px 4px 1px; }.photo-event-card { display: block; overflow: hidden; width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 0; color: var(--text); background: var(--surface); text-align: left; cursor: pointer; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }.photo-event-card:hover { border-color: #b8dcd0; box-shadow: 0 14px 26px -22px rgba(19, 83, 67, .5); transform: translateY(-1px); }.photo-event-card:disabled { cursor: not-allowed; opacity: .7; }.photo-event-preview { display: grid; height: 160px; place-items: center; overflow: hidden; background: var(--surface-muted); }.photo-event-image { width: 100%; height: 100%; object-fit: cover; }.photo-event-meta { display: grid; gap: 6px; padding: 11px 12px 12px; }.photo-event-meta strong { font-size: 12px; }.photo-event-meta small { color: var(--muted); font-size: 10px; }.photo-event-meta .badge { justify-self: start; }.photo-viewer-dialog { width: min(1120px, calc(100% - 32px)); max-width: none; border: 0; border-radius: 18px; padding: 0; color: #fff; background: #0b1f19; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }.photo-viewer-dialog::backdrop { background: rgba(3, 12, 9, .78); backdrop-filter: blur(7px); }.photo-viewer-shell { display: grid; min-height: min(82vh, 780px); grid-template-rows: auto minmax(0, 1fr) auto; padding: 14px; }.photo-viewer-bar { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 4px 4px 12px; }.photo-viewer-bar strong, .photo-viewer-bar span { display: block; }.photo-viewer-bar strong { font-size: 14px; }.photo-viewer-bar span { margin-top: 4px; color: #a9beb7; font-size: 11px; }.photo-viewer-close { color: #dce9e4; }.photo-viewer-close:hover { color: #fff; background: rgba(255,255,255,.12); }.photo-viewer-image-wrap { display: grid; min-height: 0; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #06130f; }.photo-viewer-image { display: block; max-width: 100%; max-height: 70vh; object-fit: contain; }.photo-viewer-footer { display: flex; justify-content: end; padding: 12px 4px 2px; }.photo-viewer-footer .badge { color: #dce9e4; background: rgba(255,255,255,.12); }.password-field { position: relative; display: block; }
.password-field input { padding-right: 48px; }
.password-toggle { position: absolute; top: 50%; right: 7px; display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 8px; color: var(--muted); background: transparent; transform: translateY(-50%); }
.password-toggle:hover { color: var(--text); background: var(--surface-muted); }
.password-toggle:focus-visible { outline: 3px solid rgba(19, 134, 106, .16); outline-offset: 1px; }

@media (min-width: 761px) {
  .login-panel { max-width: none; }
  .login-panel h1 { max-width: 620px; font-size: clamp(40px, 4.4vw, 58px); }
}

@media (max-width: 1050px) { .photo-people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .photo-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.photo-person-preview { height: 150px; }.photo-event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .photo-people-grid, .photo-event-list { grid-template-columns: 1fr; }.photo-person-preview { height: 180px; }.photo-viewer-shell { min-height: 78vh; padding: 10px; }.photo-viewer-image { max-height: 64vh; } }
@media (max-width: 760px) { .toolbar input, .toolbar select { width: 100%; } .user-attendance-header { align-items: start; flex-direction: column; }.user-attendance-toolbar { width: 100%; align-items: end; flex-wrap: wrap; }.date-filter { flex: 1 1 170px; }.date-filter input { width: 100%; } }
@media (max-width: 1200px) { .attendance-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.attendance-search-field { grid-column: span 3; } }
@media (max-width: 760px) { .attendance-filter-grid { grid-template-columns: 1fr; }.attendance-search-field { grid-column: auto; }.attendance-filter-footer { align-items: start; flex-direction: column; }.attendance-filter-actions { width: 100%; }.attendance-filter-actions .button { flex: 1; } }
#content:has(#attendance-search) .data-table thead th:nth-child(5),
#content:has(#attendance-search) .data-table tbody td:nth-child(5),
#content:has(#attendance-search) .data-table tbody td:first-child .secondary-text,
#content .user-attendance-panel .data-table thead th:last-child,
#content .user-attendance-panel .data-table tbody td:last-child,
#content .user-attendance-panel .data-table tbody td:first-child .secondary-text {
  display: none;
}

.import-dialog { width: min(980px, calc(100% - 32px)); }
.import-form-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr); gap: 16px; }
.import-file-field { min-width: 0; }
.import-file-field input[type="file"] { width: 100%; min-height: 42px; padding: 9px; border: 1px dashed #acd6c8; background: #fbfefd; }
.import-file-name { display: block; margin-top: 7px; color: var(--accent-dark); font-size: 11px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-helper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; color: var(--muted); font-size: 11px; }
.import-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.import-summary > div { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fbfdfc; }
.import-summary span { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.import-summary strong { font-size: 18px; letter-spacing: -.04em; }
.import-summary-good { color: var(--accent-dark); }.import-summary-danger { color: var(--danger); }
.import-preview-wrap { max-height: 390px; margin-top: 16px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.import-preview-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.import-preview-table th { position: sticky; top: 0; z-index: 1; padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--muted); background: #f7faf8; font-size: 10px; text-align: left; text-transform: uppercase; letter-spacing: .08em; }
.import-preview-table td { padding: 11px 12px; border-bottom: 1px solid #edf1ef; color: #40514b; font-size: 11px; vertical-align: top; }
.import-preview-table tr:last-child td { border-bottom: 0; }.import-row-invalid td { background: #fff9f9; }.import-row-errors { color: var(--danger); line-height: 1.45; }
.import-pin-generated { display: inline-block; margin-left: 6px; border-radius: 5px; padding: 3px 5px; color: var(--accent-dark); background: var(--accent-soft); font-size: 9px; font-weight: 800; text-transform: uppercase; }
@media (max-width: 760px) { .import-form-grid { grid-template-columns: 1fr; }.import-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }.import-helper-row { align-items: start; flex-direction: column; }.import-dialog { width: min(100% - 20px, 980px); } }
.table-action.icon-only:disabled { opacity: .45; cursor: not-allowed; }
