:root {
  --bg: #f2f5f9;
  --panel: #fff;
  --ink: #0f172a;
  --muted: #667085;
  --line: #d8e0ea;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --nav: #07111f;
  --nav-2: #111c2e;
  --radius-control: 10px;
  --radius-panel: 18px;
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #f7f9fc 0, var(--bg) 360px);
  color: var(--ink);
}
button, input, select, textarea { font: inherit; }
button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-control);
  padding: 9px 12px;
  font-weight: 750;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
button:hover { transform: none; border-color: #93b4f5; color: #1d4ed8; box-shadow: 0 4px 12px rgba(37,99,235,.10); }
button.primary { color: #fff; border-color: var(--blue); background: var(--blue); }
button.primary:hover { color: #fff; border-color: #1d4ed8; background: #1d4ed8; }
button.danger { color: var(--red); border-color: #fecaca; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 10px 12px;
  background: #fff;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
label { display: block; color: #475467; font-size: 12px; font-weight: 850; margin: 8px 0 5px; }
code, pre, textarea { font-family: "SF Mono", Consolas, monospace; }
.hidden { display: none !important; }
.calendar-schedules { display: grid; gap: 3px; margin-top: 5px; text-align: left; }
.calendar-schedules small { display: block; padding: 3px 6px; border-radius: 7px; background: #e7f4ff; color: #145c8d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-effective-shift { display: grid; gap: 3px; padding: 7px 8px; border: 1px solid #bae6fd; border-radius: 10px; background: linear-gradient(135deg,#eff6ff,#ecfeff); color: #0f3d61; }
.calendar-effective-shift b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-effective-shift small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #47627a; }
.muted { color: var(--muted); }
.error { color: var(--red); min-height: 20px; }
.eyebrow { margin: 0 0 7px; color: #1d4ed8; text-transform: uppercase; letter-spacing: .09em; font-weight: 950; font-size: 11px; }

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(59,130,246,.42), transparent 24rem),
    radial-gradient(circle at 80% 30%, rgba(6,182,212,.24), transparent 26rem),
    linear-gradient(135deg, #020617, #0f172a 50%, #1e3a8a);
}
.login-card {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 30px;
  padding: 36px;
  box-shadow: 0 30px 100px rgba(0,0,0,.32);
}
.lang-toggle,
.login-language-selector {
  position: absolute;
  top: 18px;
  right: 18px;
}
.lang-toggle {
  padding: 7px 10px;
  border-radius: 999px;
}
.lang-selector {
  width: auto;
  min-width: 108px;
  padding: 9px 34px 9px 12px;
  border-radius: 11px;
  background-color: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.login-language-selector {
  width: 112px;
  padding-top: 7px;
  padding-bottom: 7px;
  border-radius: 999px;
}
.login-card h1 { margin: 0; font-size: 34px; line-height: 1.05; letter-spacing: -.03em; }
.login-form { margin-top: 24px; }
.login-utility-row { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:10px 0 14px; }
.login-remember { display:flex; align-items:center; gap:8px; margin:0; color:#475467; cursor:pointer; }
.login-remember input { width:17px; height:17px; margin:0; }
.login-text-button { width:auto; padding:3px 0; border:0; color:#2563eb; background:transparent; box-shadow:none; font-size:12px; font-weight:850; }
.login-text-button:hover { color:#1d4ed8; text-decoration:underline; transform:none; box-shadow:none; }
.login-manual-link {
  display: block; width: max-content; margin: 16px auto 0; padding: 2px 4px;
  color: #64748b; font-size: 13px; font-weight: 750; text-decoration: none;
}
.login-manual-link:hover { color: var(--blue); text-decoration: underline; }
.app-version { display: block; color: #94a3b8; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.login-card > .app-version { margin-top: 8px; text-align: center; }
.password-recovery-dialog {
  width:min(470px,calc(100vw - 32px)); padding:0; border:0; border-radius:24px;
  color:var(--ink); background:#fff; box-shadow:0 28px 90px rgba(15,23,42,.38);
}
.password-recovery-dialog::backdrop { background:rgba(2,6,23,.58); backdrop-filter:blur(4px); }
.password-recovery-card { padding:30px; text-align:center; }
.password-recovery-card h2 { margin:8px 0 12px; font-size:25px; }
.password-recovery-card p { margin:10px 0; color:#475467; line-height:1.6; }
.password-recovery-card code { padding:2px 6px; border-radius:6px; background:#f1f5f9; font-size:12px; }
.password-recovery-card button { margin-top:12px; }
.password-recovery-icon { width:58px; height:58px; margin:0 auto; display:grid; place-items:center; border-radius:18px; background:linear-gradient(135deg,#dbeafe,#cffafe); font-size:28px; }

.brand-mark {
  width: 46px; height: 46px; border-radius: 16px;
  display: grid; place-items: center;
  color: #fff; font-weight: 950; letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 34px rgba(37,99,235,.28);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; background: #fff; }
input[type="color"] { min-height: 42px; padding: 5px; cursor: pointer; }
.app {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}
.sidebar {
  position: relative;
  z-index: 2;
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, var(--nav), #0b1220);
  color: #dbeafe;
  padding: 22px;
  display: flex; flex-direction: column; gap: 22px;
  box-shadow: 14px 0 40px rgba(15, 23, 42, .08);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand strong { display: block; color: #fff; font-size: 16px; }
.brand span { display: block; color: #93c5fd; font-size: 12px; }
#nav { display: grid; gap: 5px; }
.nav-group {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}
.nav-group-toggle {
  width: 100%;
  min-height: 44px;
  margin-top: 0;
  padding: 8px 10px;
  border: 1px solid rgba(125, 211, 252, .12);
  border-radius: var(--radius-control);
  background: rgba(30, 41, 59, .72);
  color: #d6e4f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: none;
  box-shadow: none;
}
.nav-group-toggle:hover {
  border-color: rgba(125, 211, 252, .24);
  background: rgba(30, 64, 91, .78);
  color: #fff;
  transform: none;
  box-shadow: none;
}
.nav-group.current .nav-group-toggle {
  border-color: rgba(56, 189, 248, .3);
  background: rgba(8, 47, 73, .82);
  color: #fff;
}
.nav-group-label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-group-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0;
}
.nav-group.current .nav-group-icon {
  background: transparent;
  filter: saturate(1.2);
}
.nav-group-chevron {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #7dd3fc;
  display: inline-grid;
  place-items: center;
  font-size: 16px;
  transition: transform .18s ease;
}
.nav-group-items {
  display: grid;
  gap: 4px;
  margin-left: 15px;
  padding-left: 10px;
  border-left: 1px solid rgba(148, 163, 184, .2);
}
.nav-group.collapsed .nav-group-items { display: none; }
.nav-group.collapsed .nav-group-chevron { transform: rotate(-90deg); }
.nav-item {
  width: 100%; border: 0; text-align: left;
  background: transparent; color: #b9c7db;
  padding: 9px 10px; border-radius: var(--radius-control);
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.nav-icon {
  width: 24px; height: 24px; border-radius: 8px;
  display: inline-grid; place-items: center;
  background: rgba(255,255,255,.07);
  font-size: 14px;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; transform: none; box-shadow: none; }
.nav-item.active { color: #fff; background: var(--blue); }
.nav-item.active .nav-icon { background: rgba(255,255,255,.18); }
.nav-item.disabled, .nav-item:disabled {
  opacity: .42;
  cursor: not-allowed;
  filter: grayscale(.6);
}
.nav-item.disabled:hover, .nav-item:disabled:hover { background: transparent; color: #b9c7db; }
.nav-item small { margin-left: auto; font-size: 11px; }
.sidebar-footer { margin-top: auto; display: grid; gap: 10px; color: #93c5fd; font-size: 13px; }
.sidebar-footer .app-version { color: #7dd3fc; }

.main {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
}
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
.topbar h1 { margin: 0; font-size: 32px; letter-spacing: -.03em; }
.top-actions, .filters { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.module-help-button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-control);
  border-color: var(--blue);
  color: #fff;
  font-size: 21px;
  font-weight: 950;
  background: var(--blue);
  box-shadow: 0 4px 12px rgba(37,99,235,.18);
}
.module-help-button:hover { color:#fff; border-color:transparent; }
.module-help-dialog {
  width: min(820px, calc(100vw - 30px));
  max-height: min(84vh, 860px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-panel);
  overflow: hidden;
  color: var(--ink);
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 70px rgba(15,23,42,.28);
}
.module-help-dialog::backdrop { background: rgba(2,6,23,.58); backdrop-filter: blur(5px); }
.module-help-shell { max-height: min(84vh, 860px); overflow: auto; }
.module-help-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 26px;
  color: #fff;
  background: #163866;
}
.module-help-head h2 { margin: 3px 0 0; font-size: 26px; }
.module-help-head .eyebrow { color:#bae6fd; }
.module-help-close { min-width:42px; height:42px; padding:0; font-size:24px; color:#fff; background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.32); }
.module-help-close:hover { color:#fff; background:rgba(255,255,255,.23); border-color:#fff; }
.module-help-body { padding: 24px 26px 28px; display:grid; gap:18px; }
.module-help-purpose { margin:0; padding:16px 18px; border-radius:16px; color:#164e63; background:linear-gradient(120deg,#eff6ff,#ecfeff); border:1px solid #bae6fd; line-height:1.65; }
.module-help-section h3 { margin:0 0 10px; font-size:16px; }
.module-help-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.module-help-field { padding:12px 14px; border:1px solid var(--line); border-radius:14px; background:#f8fafc; }
.module-help-field b { display:block; margin-bottom:4px; color:#1d4ed8; }
.module-help-field span { color:#475467; font-size:13px; line-height:1.5; }
.module-help-steps { margin:0; padding:0; list-style:none; counter-reset:help-step; display:grid; gap:9px; }
.module-help-steps li { counter-increment:help-step; display:flex; align-items:flex-start; gap:10px; color:#334155; line-height:1.55; }
.module-help-steps li::before { content:counter(help-step); flex:0 0 27px; height:27px; display:grid; place-items:center; border-radius:9px; color:#fff; font-size:12px; font-weight:900; background:linear-gradient(135deg,var(--blue),var(--cyan)); }
.module-help-note { padding:13px 15px; border-radius:14px; color:#854d0e; background:#fffbeb; border:1px solid #fde68a; line-height:1.55; }
.module-help-manual-link {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:15px 17px; color:#1e3a8a; font-weight:850; text-decoration:none;
  border:1px solid #bfdbfe; border-radius:15px; background:#eff6ff;
}
.module-help-manual-link:hover { color:#1d4ed8; border-color:#60a5fa; background:#dbeafe; }
.module-help-manual-link small { color:#64748b; font-weight:650; }
@media (max-width:680px) {
  .module-help-fields { grid-template-columns:1fr; }
  .module-help-head,.module-help-body { padding-left:18px; padding-right:18px; }
  .module-help-button { width:38px; height:38px; }
}
.connection {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 13px;
  box-shadow: var(--shadow);
}
.connection i { display: inline-block; width: 10px; height: 10px; border-radius: 999px; background: var(--red); }
.connection i.ok { background: var(--green); box-shadow: 0 0 0 5px rgba(22,163,74,.12); }

.hero-panel {
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border-radius: 20px;
  padding: 26px;
  color: #fff;
  background: linear-gradient(125deg, #14213b, #244b93);
  box-shadow: var(--shadow);
}
.operation-screen {
  display: grid;
  gap: 16px;
}
.operation-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  border-radius: var(--radius-panel);
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.operation-head h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -.035em;
}
.operation-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 760px;
}
.operation-form {
  max-width: 1180px;
}
.operation-form.compact-form {
  max-width: 780px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.hero-panel h2 { margin: 0; font-size: 30px; letter-spacing: -.03em; }
.hero-panel p { color: #cbd5e1; max-width: 760px; }
.hero-panel .eyebrow { color: #93c5fd; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.card {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 18px;
  box-shadow: var(--shadow);
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.card h2 { margin: 0 0 14px; font-size: 18px; letter-spacing: -.02em; }
.card h2, .operation-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-title-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-control);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #dbeafe;
  font-size: 17px;
}
.operation-head .panel-title-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e8f1ff;
}
.metric span { color: var(--muted); font-size: 13px; }
.metric b { display: block; font-size: 36px; line-height: 1.05; letter-spacing: -.04em; margin: 6px 0; }
.metric { position: relative; overflow: hidden; }
.metric::after {
  content: "";
  position: absolute; right: -36px; top: -36px;
  width: 100px; height: 100px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(6,182,212,.08));
}
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 13px; }
.form-grid.dense { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full, button.full, .full { grid-column: 1 / -1; width: 100%; }
.employee-editor-form { gap: 14px; }
.employee-form-section {
  overflow: hidden;
  border: 1px solid #d8e4f1;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
}
.employee-form-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.employee-form-section > summary::-webkit-details-marker { display: none; }
.employee-form-section > summary span { display: grid; gap: 3px; }
.employee-form-section > summary b { color: var(--ink); font-size: 15px; }
.employee-form-section > summary small { color: var(--muted); font-size: 12px; font-weight: 600; }
.employee-form-section > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #075985;
  background: #e0f2fe;
  font-size: 20px;
  font-weight: 800;
}
.employee-form-section[open] > summary::after { content: "−"; }
.employee-form-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 13px;
  padding: 17px;
  border-top: 1px solid #e2e8f0;
}
.employee-form-section-grid .full { grid-column: 1 / -1; width: 100%; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; border-bottom: 1px solid #eef2f7; padding: 10px 9px; white-space: nowrap; vertical-align: middle; }
th { color: #64748b; background: #f8fafc; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
tr:hover td { background: #f8fbff; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 850; background: #eef2ff; color: #3730a3; }
.pill.green { background: #dcfce7; color: #166534; }
.pill.red { background: #fee2e2; color: #991b1b; }
.pill.amber { background: #fef3c7; color: #92400e; }
.module-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}
.log-detail-cell {
  display: inline-block;
  min-width: 320px;
  max-width: 620px;
  white-space: normal;
  line-height: 1.45;
  color: #475467;
}
.stack { display: grid; gap: 10px; }
.notice { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.events { display: grid; gap: 10px; max-height: 580px; overflow: auto; }
.event { border: 1px solid var(--line); border-radius: 15px; background: #fff; padding: 12px; }
.event header { display: flex; justify-content: space-between; gap: 10px; color: #64748b; font-size: 12px; }
.event pre { margin: 8px 0 0; white-space: pre-wrap; word-break: break-word; color: var(--muted); font-size: 12px; }
.info-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-line span { color: var(--muted); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; background: #0f172a; color: #fff; padding: 13px 16px; border-radius: 16px; box-shadow: var(--shadow); }
.notice.error-notice { border-color: #fecaca; background: #fff1f2; color: #991b1b; }
.notice.success-notice { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.pager button { padding: 7px 10px; }
.calendar-toolbar { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.month-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.calendar-weekday { color: #64748b; font-size: 11px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; padding: 0 4px; }
.calendar-day {
  min-height: 118px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
  padding: 10px; text-align: left; display: flex; flex-direction: column; gap: 8px;
}
.calendar-day:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(15,23,42,.10); }
.calendar-day.out-month { opacity: .42; }
.calendar-date { display: flex; justify-content: space-between; align-items: center; font-weight: 950; }
.calendar-meta { display: grid; gap: 5px; margin-top: auto; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.permission-grid label { display: flex; gap: 8px; align-items: center; margin: 0; }
.permission-grid input { width: auto; }
.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}
.row-actions button {
  padding: 7px 9px;
  border-radius: 9px;
}
.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.command-grid button {
  min-height: 44px;
}
.device-command-result {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid #bae6fd;
  border-radius: 15px;
  background: linear-gradient(135deg,#eff6ff,#ecfeff);
}
.device-command-result > span { color: #0369a1; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.device-command-result > strong { color: #0f172a; font-size: 20px; }
.capacity-result > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.capacity-result p { margin: 0; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.8); }
.capacity-result small { display: block; color: #64748b; font-size: 10px; }
.capacity-result b { display: block; margin-top: 2px; color: #0f172a; font-size: 13px; }
.sync-error-detail { display: block; margin-top: 10px; color: #b42318 !important; line-height: 1.45; }
.health-meter {
  position: relative;
  width: 86px;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
.health-meter span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.health-score {
  font-size: 12px;
  vertical-align: middle;
}
.health-score.green { color: var(--green); }
.health-score.amber { color: var(--amber); }
.health-score.red { color: var(--red); }
.device-big-health {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f8fbff);
  margin-bottom: 10px;
}
.device-big-health .health-meter {
  width: 72%;
  height: 14px;
}
.device-big-health .health-score {
  font-size: 20px;
}
.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
}
.capability-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: #64748b;
  background: #f8fafc;
  font-weight: 850;
  font-size: 12px;
}
.capability-tags span.on {
  color: #075985;
  border-color: #bae6fd;
  background: linear-gradient(135deg, #e0f2fe, #ecfeff);
}
.capability-tags.compact {
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  max-width: 270px;
  margin: 0;
  white-space: nowrap;
}
.capability-tags.compact span {
  flex: 0 0 auto;
  padding: 4px 7px;
  font-size: 10px;
  line-height: 1.2;
}
.capability-tags.compact span.biometric {
  color: #075985;
  border-color: #bae6fd;
  background: #e0f2fe;
}
.capability-tags.compact span.other {
  color: #475569;
  border-color: #d8e1ea;
  background: #f8fafc;
}
.capability-tags.compact .capability-overflow {
  color: #334155;
  border-color: #cbd5e1;
  background: #eef2f7;
  cursor: help;
}
.biometric-credential-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 210px;
}
.biometric-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid #dbe5ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #7b8796;
  font-size: 11px;
  font-weight: 800;
}
.biometric-chip b {
  display: inline-flex;
  align-items: center;
  min-width: 18px;
  min-height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e8eef5;
  color: #607086;
  font-size: 10px;
}
.biometric-chip.active {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}
.biometric-chip.active b {
  color: #fff;
  background: #10b981;
}
.biometric-status-panel {
  padding: 16px;
  border: 1px solid #cfe1ef;
  border-radius: 17px;
  background: linear-gradient(135deg, #f8fbff, #effcf9);
}
.biometric-status-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.biometric-status-heading > div {
  display: grid;
  gap: 3px;
}
.biometric-status-heading b {
  color: var(--ink);
  font-size: 14px;
}
.biometric-status-heading small,
.biometric-status-card small,
.biometric-status-panel > p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.privacy-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.biometric-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.biometric-status-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dde6ef;
  border-radius: 13px;
  background: rgba(255, 255, 255, .86);
}
.biometric-status-card > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.biometric-status-card > b {
  color: #64748b;
  font-size: 13px;
}
.biometric-status-card.registered {
  border-color: #a7f3d0;
  background: rgba(236, 253, 245, .9);
}
.biometric-status-card.registered > b {
  color: #047857;
}
.biometric-status-panel > p {
  margin: 11px 0 0;
}
.device-biometric-panel {
  margin-bottom: 13px;
}
@media (max-width: 760px) {
  .biometric-status-heading {
    flex-direction: column;
  }
  .biometric-status-grid {
    grid-template-columns: 1fr;
  }
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.detail-actions button {
  padding: 8px 10px;
}
.toolbar-actions { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; }
.schedule-view-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px;
  margin-bottom: 18px;
  border: 1px solid #d6e3ee;
  border-radius: 16px;
  background: #f2f7fb;
}
.schedule-view-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.schedule-view-button {
  min-width: 150px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.schedule-view-button.active {
  color: #08749a;
  border-color: #c7dfeb;
  background: #fff;
  box-shadow: 0 5px 14px rgba(18, 69, 96, .10);
}
.schedule-list-toolbar h2 {
  display: flex;
  align-items: center;
  gap: 7px;
}
.filter-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 9px 12px;
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}
.filter-panel label { margin: 0; }
.filter-panel input,.filter-panel select { padding: 8px 10px; }
.personnel-control-panel {
  display: grid;
  gap: 12px;
  margin: 12px 0 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.94), rgba(239, 246, 255, 0.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
.personnel-control-panel .personnel-filter-panel {
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  gap: 10px 12px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.personnel-control-panel .personnel-filter-panel label {
  min-width: 0;
}
.personnel-bulk-panel {
  display: grid;
  grid-template-columns: max-content minmax(320px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
}
.bulk-selection-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}
.bulk-action-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.bulk-selected-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.10);
  color: #0369a1;
  font-weight: 700;
  white-space: nowrap;
}
.bulk-action-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
.bulk-action-label span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.bulk-action-label select {
  flex: 1;
  width: 100%;
  min-width: 0;
}
.personnel-group-row td {
  position: sticky;
  left: 0;
  z-index: 1;
  padding: 8px 14px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.10), rgba(14, 165, 233, 0.04));
  color: #1d4ed8;
  font-weight: 800;
  letter-spacing: .01em;
  border-top: 1px solid rgba(37, 99, 235, .18);
  border-bottom: 1px solid rgba(37, 99, 235, .12);
}
.personnel-group-row span::before {
  content: "▸";
  margin-right: 7px;
  color: #0ea5e9;
}
.log-filter-panel { margin-top: 14px; }
.log-filter-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--muted);
}
.log-filter-heading b { color: var(--text); }
.log-filter-actions { align-self: end; justify-content: flex-end; }
.report-toolbar { align-items: flex-end; }
.report-title-block { display: grid; gap: 10px; min-width: max-content; }
.report-title-block h2 { margin: 0; }
.report-filter-panel { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.report-columns {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.report-columns summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}
.report-columns summary::-webkit-details-marker { display: none; }
.report-columns summary::after { content: "＋"; color: var(--blue); font-size: 18px; }
.report-columns[open] summary::after { content: "−"; }
.report-columns summary b {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e7f3ff;
  color: #075985;
  font-size: 11px;
}
.report-column-body { padding-top: 10px; }
.report-columns .permission-grid { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
.report-columns .form-actions { justify-content: flex-end; margin-top: 12px; }
.rule-builder {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #cfe0ee;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #f2f8fc);
}
.rule-builder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dbe7f0;
}
.rule-builder-head h3 { margin: 0 0 5px; font-size: 18px; }
.rule-builder-head p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.rule-config-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe7f0;
  border-radius: 15px;
  background: #fff;
}
.rule-config-section h4 { margin: 0; color: #0f2740; font-size: 14px; }
.rule-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rule-field-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rule-workdays { display: grid; grid-template-columns: repeat(7, minmax(90px, 1fr)); gap: 8px; }
.rule-workdays label,
.rule-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #dbe7f0;
  border-radius: 12px;
  background: #f8fbff;
}
.rule-workdays input,
.rule-toggle input { width: auto; margin: 0; accent-color: var(--blue); }
.rule-toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rule-summary { display: grid; gap: 4px; min-width: 220px; color: #475569; font-size: 12px; line-height: 1.45; }
.rule-summary span::before { content: "•"; margin-right: 6px; color: var(--blue); }
.rule-template-link {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(180px, auto);
  align-items: end;
  gap: 10px 12px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 15px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}
.rule-template-link > label { margin: 0; }
.rule-template-link-status { display: grid; gap: 4px; align-self: center; }
.rule-template-link-status small { color: var(--muted); font-size: 11px; }
.rule-template-link-status b { color: #075985; font-size: 13px; }
.rule-template-link > p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.inline-select { margin: 0; min-width: 230px; }
.inline-select select { padding: 8px 10px; }
.person-avatar {
  width: 36px; height: 48px; aspect-ratio: 3 / 4; border-radius: 11px; object-fit: cover; display: inline-grid; place-items: center;
  vertical-align: middle; border: 2px solid #fff; box-shadow: 0 8px 20px rgba(15,23,42,.14); background: #dbeafe;
}
.avatar-fallback { color: #1d4ed8; font-weight: 950; background: linear-gradient(135deg,#dbeafe,#cffafe); }
.avatar-xl { width: 120px; height: 160px; aspect-ratio: 3 / 4; border-radius: 24px; font-size: 34px; }
.photo-uploader {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 18px;
  border: 1px dashed #93c5fd; border-radius: 20px; background: linear-gradient(135deg,#eff6ff,#ecfeff);
}
.photo-uploader label { margin: 0; }
.photo-uploader label b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.photo-uploader label span { display: block; font-weight: 500; color: var(--muted); margin-bottom: 10px; }
.photo-status { align-self: start; }
.photo-status small { display: block; margin-top: 8px; color: #547084; font-size: 11px; font-weight: 800; }
.import-dropzone { max-width: 820px; padding: 34px; text-align: center; border: 2px dashed #93c5fd; }
.import-icon { width: 78px; height: 78px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 24px; color: #fff; background: linear-gradient(135deg,#16a34a,#06b6d4); font-weight: 950; box-shadow: 0 18px 35px rgba(6,182,212,.22); }
.import-dropzone input[type=file] { margin: 18px 0; padding: 18px; background: #f8fafc; }
.import-dropzone .form-actions { justify-content: center; }
.button-link { display: inline-flex; align-items: center; text-decoration: none; border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; color: var(--ink); font-weight: 750; background: #fff; }
.import-summary { margin-top: 18px; padding: 16px; border-radius: 16px; text-align: left; background: #ecfdf5; color: #166534; }
.import-summary b, .import-summary span { display: block; }
.holiday-hero {
  background:
    radial-gradient(circle at 88% -20%,rgba(103,232,249,.20),transparent 25rem),
    linear-gradient(128deg,#123b72 0%,#0d5d82 58%,#08758a 100%);
  border: 1px solid rgba(125,211,252,.22);
  box-shadow: 0 22px 55px rgba(15,64,105,.16);
}
.holiday-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.holiday-card { display: grid; grid-template-columns: 92px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid #dbe6f2; border-radius: 20px; background: linear-gradient(135deg,#fff,#f7fbff); transition: transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.holiday-card:hover { transform: translateY(-3px); border-color: #a9cce7; box-shadow: 0 18px 45px rgba(14,116,144,.10); }
.holiday-card.inactive { opacity: .6; filter: grayscale(.35); }
.holiday-date { min-height: 78px; display: grid; place-content: center; text-align: center; border-radius: 18px; color: #fff; background: linear-gradient(145deg,#2563a8,#0891a6); box-shadow: 0 14px 30px rgba(14,116,144,.18); }
.holiday-date b { font-size: 19px; }
.holiday-date span { font-size: 11px; opacity: .82; margin-top: 3px; }
.holiday-card h3 { margin: 3px 0 4px; font-size: 19px; }
.holiday-card p,.holiday-card small { margin: 0; color: var(--muted); }

.live-wall { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; margin: -22px; height: calc(100vh - 112px); min-height: 680px; padding: 20px 22px; color: #e2e8f0; background: radial-gradient(circle at 70% 0%,rgba(14,165,233,.18),transparent 35rem), radial-gradient(circle at 0% 75%,rgba(37,99,235,.17),transparent 32rem), #07111f; }
.live-wall::before { content: ""; position: absolute; z-index: -2; width: 34rem; height: 34rem; right: -12rem; top: -15rem; border-radius: 50%; background: radial-gradient(circle,rgba(34,211,238,.20),rgba(37,99,235,.07) 45%,transparent 68%); filter: blur(8px); animation: ambient-orbit 14s ease-in-out infinite alternate; }
.live-wall::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .16; background-image: linear-gradient(rgba(56,189,248,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(56,189,248,.14) 1px,transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom,rgba(0,0,0,.75),transparent 72%); animation: grid-drift 22s linear infinite; }
.live-wall-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 12px; }
.live-wall-head h2 { margin: 0; color: #fff; font-size: 28px; }
.live-wall-head p { color: #94a3b8; margin: 4px 0 0; }
.live-clock { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px; padding: 12px 16px; border: 1px solid rgba(148,163,184,.22); border-radius: 16px; background: rgba(15,23,42,.72); box-shadow: inset 0 0 28px rgba(34,211,238,.03),0 0 28px rgba(34,211,238,.05); animation: clock-glow 3.6s ease-in-out infinite; }
.live-clock small { grid-column: 2; color: #94a3b8; }
.live-head-actions { display: flex; align-items: center; gap: 10px; }
.live-calc { color: #e0f2fe; border-color: rgba(56,189,248,.36); background: rgba(14,116,144,.18); }
.live-calc:hover { color: #fff; border-color: #22d3ee; background: rgba(14,116,144,.34); }
.live-fullscreen { display: inline-flex; align-items: center; gap: 7px; color: #07111f; border-color: #67e8f9; background: linear-gradient(135deg,#67e8f9,#22d3ee); box-shadow: 0 0 26px rgba(34,211,238,.18); font-weight: 950; }
.live-fullscreen:hover { transform: translateY(-2px); border-color: #fff; background: linear-gradient(135deg,#cffafe,#22d3ee); box-shadow: 0 0 34px rgba(34,211,238,.32); }
.live-pulse { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 7px rgba(34,197,94,.12); animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 13px rgba(34,197,94,0); } }
.live-kpis { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: 12px; }
.live-kpi { position: relative; overflow: hidden; display: flex; align-items: center; gap: 13px; padding: 12px 16px; min-height: 72px; border: 1px solid rgba(148,163,184,.18); border-radius: 18px; background: linear-gradient(135deg,rgba(15,23,42,.92),rgba(30,41,59,.74)); box-shadow: 0 18px 50px rgba(0,0,0,.16); transition: transform .24s ease,border-color .24s ease,box-shadow .24s ease; }
.live-kpi::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg,transparent 15%,rgba(255,255,255,.08) 42%,transparent 67%); transform: translateX(-120%); transition: transform .7s ease; }
.live-kpi:hover { transform: translateY(-4px); border-color: rgba(56,189,248,.4); box-shadow: 0 22px 55px rgba(2,132,199,.12); }
.live-kpi:hover::after { transform: translateX(120%); }
.live-kpi-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; font-size: 21px; font-weight: 950; background: rgba(37,99,235,.18); color: #60a5fa; }
.live-kpi.cyan .live-kpi-icon { background: rgba(6,182,212,.16); color: #22d3ee; }
.live-kpi.green .live-kpi-icon { background: rgba(34,197,94,.14); color: #4ade80; }
.live-kpi.red .live-kpi-icon { background: rgba(239,68,68,.14); color: #f87171; }
.live-kpi.amber .live-kpi-icon { background: rgba(245,158,11,.15); color: #fbbf24; }
.live-kpi-icon { animation: icon-float 3.2s ease-in-out infinite; }
.live-kpi:nth-child(2) .live-kpi-icon { animation-delay: -.8s; }
.live-kpi:nth-child(3) .live-kpi-icon { animation-delay: -1.6s; }
.live-kpi:nth-child(4) .live-kpi-icon { animation-delay: -2.4s; }
.live-kpi small { display: block; color: #94a3b8; }
.live-kpi b { display: block; color: #fff; font-size: 26px; margin-top: 2px; }
.live-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); grid-template-rows: minmax(220px,.9fr) minmax(250px,1.1fr); grid-template-areas: "feature feature feature feature trend trend trend trend trend access access access" "feature feature feature feature dept dept dept dept feed feed feed feed"; gap: 12px; }
.live-card { position: relative; overflow: hidden; min-width: 0; min-height: 0; border: 1px solid rgba(148,163,184,.18); border-radius: 20px; padding: 15px; background: linear-gradient(145deg,rgba(15,23,42,.94),rgba(15,32,54,.84)); box-shadow: 0 20px 60px rgba(0,0,0,.18); transition: border-color .25s ease,box-shadow .25s ease; }
.live-card:hover { border-color: rgba(56,189,248,.3); box-shadow: 0 24px 65px rgba(2,132,199,.10); }
.live-feature::after { content: ""; position: absolute; pointer-events: none; left: -40%; top: -80%; width: 28%; height: 260%; transform: rotate(18deg); background: linear-gradient(90deg,transparent,rgba(125,211,252,.10),transparent); animation: verification-scan 5.8s ease-in-out infinite; }
.live-feature { grid-area: feature; display: flex; flex-direction: column; }
.live-trend { grid-area: trend; }
.live-dept { grid-area: dept; }
.access-visual { grid-area: access; }
.live-feed-card { grid-area: feed; }
.live-card-title { display: flex; justify-content: space-between; gap: 10px; color: #fff; font-weight: 900; margin-bottom: 17px; }
.live-card-title small { color: #64748b; font-weight: 700; }
.verification-person { flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(220px,1fr) auto; gap: 12px; align-items: stretch; }
.verification-person .avatar-xl { width: auto; height: clamp(220px,36vh,420px); aspect-ratio: 3 / 4; justify-self: center; border-radius: 22px; object-fit: cover; border-color: rgba(103,232,249,.55); box-shadow: 0 0 0 1px rgba(34,211,238,.18),0 20px 50px rgba(0,0,0,.35); font-size: 76px; }
.live-wall:not(.kiosk-mode):not(:fullscreen) .verification-person > .person-avatar.avatar-xl {
  display: block;
  width: auto;
  height: clamp(220px,36vh,420px);
  max-width: 100%;
  aspect-ratio: 3 / 4;
  align-self: start;
  justify-self: center;
  object-fit: cover;
  box-sizing: border-box;
}
.verification-person h3 { font-size: clamp(27px,2vw,38px); line-height: 1.05; color: #fff; margin: 7px 0 4px; }
.verification-person p { color: #94a3b8; margin: 0 0 14px; }
.verification-meta span + span::before { content: " · "; }
.live-success { color: #4ade80; font-weight: 900; }
.verification-place { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 13px; background: rgba(30,41,59,.9); }
.verification-place span { color: #94a3b8; }
.bar-chart { height: 190px; display: flex; align-items: end; gap: 8px; padding-top: 8px; border-bottom: 1px solid rgba(148,163,184,.2); }
.bar-col { height: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 7px; }
.bar-col b { width: 70%; height: var(--bar-height); min-height: 4px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg,#67e8f9,#22d3ee 28%,#2563eb); background-size: 100% 180%; box-shadow: 0 0 18px rgba(34,211,238,.18); animation: bar-energy 2.8s ease-in-out infinite alternate; }
.motion-enter .bar-col b { animation: bar-rise .85s cubic-bezier(.2,.8,.2,1) both,bar-energy 2.8s 1s ease-in-out infinite alternate; animation-delay: calc(var(--i) * 45ms),calc(1s + var(--i) * 45ms); }
.bar-col span { color: #64748b; font-size: 10px; }
.dept-bars { display: grid; gap: 12px; }
.dept-bars header { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.dept-bars i { display: block; height: 8px; overflow: hidden; border-radius: 99px; background: #1e293b; }
.dept-bars em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2563eb,#22d3ee); }
.access-visual { text-align: center; }
.access-donut { position: relative; width: 164px; height: 164px; margin: 4px auto 18px; padding: 17px; border-radius: 50%; background: conic-gradient(#22c55e 0 var(--grant-angle),#ef4444 var(--grant-angle) 360deg); box-shadow: 0 0 36px rgba(34,197,94,.12); }
.access-donut::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid transparent; border-top-color: rgba(103,232,249,.75); border-right-color: rgba(59,130,246,.25); filter: drop-shadow(0 0 7px rgba(34,211,238,.35)); animation: ring-spin 8s linear infinite; }
.access-donut > div { width: 100%; height: 100%; display: grid; place-content: center; border-radius: 50%; background: #0f172a; }
.access-donut b { color: #fff; font-size: 29px; }
.access-donut span { color: #94a3b8; font-size: 12px; }
.donut-legend { display: flex; justify-content: center; gap: 17px; font-size: 12px; }
.donut-legend span { display: flex; align-items: center; gap: 6px; }
.donut-legend i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.donut-legend i.deny { background: #ef4444; }
.live-feed { display: grid; gap: 7px; max-height: calc(100% - 30px); overflow: auto; }
.feed-row { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto auto; gap: 11px; align-items: center; padding: 9px 11px; border: 1px solid transparent; border-radius: 14px; outline: none; cursor: pointer; background: rgba(30,41,59,.55); transition: transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease; }
.feed-row .person-avatar { width: 48px; height: 64px; aspect-ratio: 3 / 4; border-radius: 14px; border-color: rgba(255,255,255,.72); }
.feed-row:hover, .feed-row:focus-visible { transform: translateX(3px); background: rgba(30,58,83,.72); }
.feed-row.is-preview { transform: translateX(3px); border-color: rgba(34,211,238,.82); background: linear-gradient(90deg,rgba(8,145,178,.25),rgba(30,58,83,.78)); box-shadow: inset 3px 0 0 #22d3ee,0 0 22px rgba(34,211,238,.10); }
.feed-row:focus-visible { border-color: #67e8f9; box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.feed-row.new { border: 1px solid rgba(34,211,238,.35); background: linear-gradient(90deg,rgba(8,145,178,.16),rgba(30,41,59,.55)); animation: latest-breathe 2.6s ease-in-out infinite; }
.feed-row.new::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,transparent,rgba(103,232,249,.10),transparent); transform: translateX(-110%); animation: row-sweep 3.4s ease-in-out infinite; }
.feed-row b, .feed-row span { display: block; }
.feed-row span { color: #94a3b8; font-size: 11px; margin-top: 2px; }
.feed-row time { color: #94a3b8; font-size: 12px; }
.feed-row .feed-ok { color: #4ade80; font-size: 18px; }
.live-empty { min-height: 130px; display: grid; place-items: center; color: #64748b; }

.motion-enter .live-kpi { animation: motion-up .55s cubic-bezier(.2,.8,.2,1) both; }
.motion-enter .live-kpi:nth-child(2) { animation-delay: 70ms; }
.motion-enter .live-kpi:nth-child(3) { animation-delay: 140ms; }
.motion-enter .live-kpi:nth-child(4) { animation-delay: 210ms; }
.motion-enter .live-card { animation: motion-up .62s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(160ms + var(--i) * 90ms); }
.motion-enter .feed-row { animation: feed-arrive .42s ease both; animation-delay: calc(420ms + var(--i) * 45ms); }
.motion-enter .feed-row.new { animation: feed-arrive .42s ease both,latest-breathe 2.6s 1s ease-in-out infinite; animation-delay: calc(420ms + var(--i) * 45ms),1s; }

@keyframes ambient-orbit { from { transform: translate3d(-4%,0,0) scale(.92); } to { transform: translate3d(-18%,16%,0) scale(1.12); } }
@keyframes grid-drift { to { background-position: 42px 42px; } }
@keyframes clock-glow { 50% { border-color: rgba(34,211,238,.38); box-shadow: inset 0 0 34px rgba(34,211,238,.06),0 0 30px rgba(34,211,238,.10); } }
@keyframes icon-float { 50% { transform: translateY(-3px) rotate(2deg); } }
@keyframes verification-scan { 0%,55% { left: -40%; opacity: 0; } 62% { opacity: 1; } 88%,100% { left: 125%; opacity: 0; } }
@keyframes bar-rise { from { height: 4px; opacity: .25; } to { height: var(--bar-height); opacity: 1; } }
@keyframes bar-energy { from { filter: saturate(.92); background-position: 0 0; } to { filter: saturate(1.3); background-position: 0 100%; } }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes latest-breathe { 50% { border-color: rgba(34,211,238,.7); box-shadow: inset 0 0 24px rgba(6,182,212,.06); } }
@keyframes row-sweep { 0%,45% { transform: translateX(-110%); } 78%,100% { transform: translateX(110%); } }
@keyframes motion-up { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes feed-arrive { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }

@media (prefers-reduced-motion: reduce) {
  .live-wall::before, .live-wall::after, .live-clock, .live-pulse, .live-kpi, .live-kpi-icon,
  .live-card, .live-feature::after, .bar-col b, .access-donut::before, .feed-row, .feed-row.new,
  .feed-row.new::after { animation: none !important; transition: none !important; }
}

@media (max-width: 1180px) {
  .app { grid-template-columns: 240px minmax(0, 1fr); }
  .sidebar { padding: 17px 15px; }
  .main { padding: 18px; }
  .topbar, .hero-panel { flex-direction: column; align-items: flex-start; }
  .command-grid { grid-template-columns: 1fr; }
  .live-wall { margin: -18px; padding: 18px; }
  .live-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .live-wall-head, .live-head-actions { align-items: flex-start; flex-direction: column; }
  .report-toolbar { align-items: flex-start; flex-direction: column; }
  .report-title-block { min-width: 0; }
  .rule-workdays { grid-template-columns: repeat(4, minmax(90px, 1fr)); }
  .rule-template-link { grid-template-columns: 1fr auto; }
  .rule-template-link-status { grid-column: 1 / -1; }
  .live-card, .live-feature, .live-trend, .live-feed-card { grid-column: span 12; }
}

@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; height: auto; overflow: visible; }
  .sidebar { position: relative; height: auto; max-height: none; overflow: visible; }
  .main { height: auto; overflow: visible; padding: 14px; }
  #nav { grid-template-columns: 1fr; }
  .nav-group-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: 1fr; }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-12 { grid-column: span 1; }
  .form-grid { grid-template-columns: 1fr; }
  .month-calendar { grid-template-columns: 1fr; }
  .permission-grid { grid-template-columns: 1fr; }
  .rule-field-grid,.rule-field-grid-3,.rule-toggle-grid,.rule-workdays { grid-template-columns: 1fr; }
  .rule-template-link { grid-template-columns: 1fr; }
  .rule-template-link-status { grid-column: auto; }
  .live-wall { margin: -14px; padding: 14px; }
  .live-kpis { grid-template-columns: 1fr; }
  .photo-uploader { grid-template-columns: 1fr; }
  .holiday-cards { grid-template-columns: 1fr; }
  .holiday-card { grid-template-columns: 76px minmax(0,1fr); }
  .holiday-card .row-actions { grid-column: 1 / -1; }
}

/* Security-room wall mode: the dashboard itself becomes the fullscreen surface,
   so navigation and the application header never compete with live events. */
body.dashboard-kiosk { overflow: hidden; }
body.dashboard-kiosk .sidebar,
body.dashboard-kiosk .topbar { visibility: hidden; }
.live-wall.kiosk-mode { position: fixed; inset: 0; z-index: 9999; }
:is(.live-wall:fullscreen,.live-wall.kiosk-mode) {
  width: 100vw;
  height: 100vh;
  min-height: 0;
  margin: 0;
  padding: clamp(14px,1.25vw,24px);
  border-radius: 0;
}
:is(.live-wall:fullscreen,.live-wall.kiosk-mode) .live-wall-head { flex-direction: row; align-items: center; margin-bottom: 10px; }
:is(.live-wall:fullscreen,.live-wall.kiosk-mode) .live-head-actions { flex-direction: row; align-items: center; }
:is(.live-wall:fullscreen,.live-wall.kiosk-mode) .live-kpis { grid-template-columns: repeat(5,minmax(0,1fr)); }
:is(.live-wall:fullscreen,.live-wall.kiosk-mode) .live-grid {
  grid-template-columns: repeat(12,minmax(0,1fr));
  grid-template-rows: minmax(210px,.9fr) minmax(235px,1.1fr);
  grid-template-areas: "feature feature feature feature trend trend trend trend trend access access access" "feature feature feature feature dept dept dept dept feed feed feed feed";
}
:is(.live-wall:fullscreen,.live-wall.kiosk-mode) .live-feature { grid-area: feature; }
:is(.live-wall:fullscreen,.live-wall.kiosk-mode) .live-trend { grid-area: trend; }
:is(.live-wall:fullscreen,.live-wall.kiosk-mode) .live-dept { grid-area: dept; }
:is(.live-wall:fullscreen,.live-wall.kiosk-mode) .access-visual { grid-area: access; }
:is(.live-wall:fullscreen,.live-wall.kiosk-mode) .live-feed-card { grid-area: feed; }
:is(.live-wall:fullscreen,.live-wall.kiosk-mode) .verification-person {
  grid-template-rows: auto minmax(0,1fr);
  align-content: start;
  justify-items: center;
  gap: clamp(12px,1.4vh,20px);
}
:is(.live-wall:fullscreen,.live-wall.kiosk-mode) .verification-person .avatar-xl {
  max-height: none;
  align-self: start;
}
:is(.live-wall:fullscreen,.live-wall.kiosk-mode) .verification-details {
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}
:is(.live-wall:fullscreen,.live-wall.kiosk-mode) .verification-details .live-success {
  font-size: clamp(15px,1vw,19px);
  letter-spacing: .02em;
}
:is(.live-wall:fullscreen,.live-wall.kiosk-mode) .verification-details h3 {
  margin: 6px 0 8px;
  font-size: clamp(36px,2.7vw,54px);
  line-height: 1;
  text-shadow: 0 5px 24px rgba(0,0,0,.35);
}
:is(.live-wall:fullscreen,.live-wall.kiosk-mode) .verification-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  color: #cbd5e1;
  font-size: clamp(15px,1.15vw,20px);
  font-weight: 800;
}
:is(.live-wall:fullscreen,.live-wall.kiosk-mode) .verification-meta span {
  padding: 5px 12px;
  border: 1px solid rgba(103,232,249,.18);
  border-radius: 999px;
  background: rgba(15,40,65,.72);
}
:is(.live-wall:fullscreen,.live-wall.kiosk-mode) .verification-meta span + span::before { content: none; }
:is(.live-wall:fullscreen,.live-wall.kiosk-mode) .verification-place {
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
}

@media (max-height: 760px) and (orientation: landscape) {
  :is(.live-wall:fullscreen,.live-wall.kiosk-mode) { padding: 12px 16px; }
  :is(.live-wall:fullscreen,.live-wall.kiosk-mode) .live-wall-head { margin-bottom: 8px; }
  :is(.live-wall:fullscreen,.live-wall.kiosk-mode) .live-wall-head > div:first-child > p:last-child { display: none; }
  :is(.live-wall:fullscreen,.live-wall.kiosk-mode) .live-kpi { min-height: 62px; padding: 8px 13px; }
  :is(.live-wall:fullscreen,.live-wall.kiosk-mode) .live-kpi-icon { width: 42px; height: 42px; }
  :is(.live-wall:fullscreen,.live-wall.kiosk-mode) .live-grid { grid-template-rows: minmax(190px,.9fr) minmax(205px,1.1fr); }
  :is(.live-wall:fullscreen,.live-wall.kiosk-mode) .live-card { padding: 12px; }
  :is(.live-wall:fullscreen,.live-wall.kiosk-mode) .live-card-title { margin-bottom: 10px; }
  :is(.live-wall:fullscreen,.live-wall.kiosk-mode) .verification-person { grid-template-rows: auto minmax(0,1fr); gap: 9px; }
  :is(.live-wall:fullscreen,.live-wall.kiosk-mode) .verification-person .avatar-xl { height: clamp(160px,34vh,360px); }
  :is(.live-wall:fullscreen,.live-wall.kiosk-mode) .verification-details h3 { margin: 4px 0 5px; font-size: clamp(30px,2.45vw,44px); }
  :is(.live-wall:fullscreen,.live-wall.kiosk-mode) .verification-meta { margin-bottom: 7px; padding: 3px 9px; }
  :is(.live-wall:fullscreen,.live-wall.kiosk-mode) .verification-place { padding: 7px 10px; }
  :is(.live-wall:fullscreen,.live-wall.kiosk-mode) .bar-chart { height: 150px; }
  :is(.live-wall:fullscreen,.live-wall.kiosk-mode) .access-donut { width: 128px; height: 128px; margin-bottom: 8px; }
}

/* Visitor operations: calm security blue, designed for reception and guard-room use. */
.visitor-hero { background: linear-gradient(118deg,#0b3153 0%,#075985 56%,#08799a 100%); color: #fff; overflow: hidden; position: relative; }
.visitor-hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; top: -180px; border: 54px solid rgba(255,255,255,.08); border-radius: 50%; pointer-events: none; }
.visitor-hero h2,.visitor-hero p { color: #fff; }
.visitor-hero .eyebrow { color: #8ee8ff; }
.visitor-hero button { position: relative; z-index: 1; background: rgba(255,255,255,.94); border-color: rgba(255,255,255,.44); }
.visitor-hero button.primary { background: #10a7c8; color: #fff; border-color: #43d4ed; }
.visitor-grid .metric { border-top: 3px solid #1595b8; }
.self-service-card { display: grid; grid-template-columns: minmax(0,1fr) 230px; align-items: center; gap: 28px; margin: 16px 0; border-top: 3px solid #0b91ad; background: linear-gradient(125deg,#fff 0%,#f0f9fb 100%); }
.self-service-card .eyebrow { color: #0784a0; }
.self-service-copy > p:not(.eyebrow) { max-width: 720px; color: #607489; line-height: 1.65; }
.self-service-info { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 17px 0; }
.self-service-info span { padding: 11px 13px; border-radius: 13px; background: #e9f4f8; color: #61778b; font-size: 11px; }
.self-service-info b { display: block; margin-top: 5px; color: #17364f; font-size: 12px; word-break: break-all; }
.self-service-qr { padding: 13px; border: 1px solid #c9dce8; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 12px 30px rgba(14,68,96,.08); }
.self-service-qr img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.self-service-qr small { display: block; margin-top: 7px; color: #72879a; font-size: 9px; word-break: break-all; }
.visit-window { white-space: nowrap; line-height: 1.55; font-size: 12px; color: #3d536b; }
.door-chip { display: inline-flex; margin: 2px; padding: 4px 8px; border-radius: 999px; color: #075985; background: #e6f7fb; border: 1px solid #b8e7f0; font-size: 11px; font-weight: 700; }
.empty-state { min-height: 110px; display: grid; place-items: center; text-align: center; color: #64748b; border: 1px dashed #c8d6e5; border-radius: 16px; background: #f8fbfd; padding: 24px; }
.field-help { display: block; margin-top: 5px; color: #718096; font-size: 11px; font-weight: 500; }
.field-label-text { display:inline-flex; align-items:center; gap:6px; min-height:20px; }
.field-help-button {
  display:inline-grid;
  place-items:center;
  width:19px;
  height:19px;
  min-width:19px;
  padding:0;
  border:1px solid #93c5fd;
  border-radius:50%;
  color:#1d4ed8;
  background:#eff6ff;
  font-size:11px;
  font-weight:950;
  line-height:1;
  vertical-align:middle;
  cursor:pointer;
}
.field-help-button:hover,.field-help-button:focus-visible {
  color:#fff;
  border-color:#2563eb;
  background:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,.13);
  transform:none;
}
.field-help-shell { max-width:680px; }
.field-help-example {
  padding:15px 17px;
  border-left:4px solid #0ea5e9;
  border-radius:12px;
  color:#0f4660;
  background:#ecfeff;
  line-height:1.65;
}
.device-check-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 8px; }
.device-check-grid > label { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 10px; padding: 12px; border: 1px solid #cfdeeb; border-radius: 14px; background: #f8fbfd; cursor: pointer; transition: border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.device-check-grid > label:hover { transform: translateY(-1px); border-color: #39a9c5; box-shadow: 0 7px 20px rgba(8,89,126,.09); }
.device-check-grid input { width: 17px; height: 17px; accent-color: #0987a5; }
.device-check-grid span,.device-check-grid small { display: block; min-width: 0; }
.device-check-grid small { margin-top: 4px; color: #718096; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.access-zone-hero { background: linear-gradient(120deg,#0b2b4b 0%,#0d6f8f 58%,#0aa6a6 100%); color: #fff; }
.access-zone-hero h2,.access-zone-hero p { color: #fff; }
.access-zone-hero .eyebrow { color: #8ee9ff; }
.access-zone-hero .hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.access-zone-hero .hero-actions button { background: rgba(255,255,255,.94); border-color: rgba(255,255,255,.72); }
.access-zone-hero .hero-actions .primary { background: linear-gradient(90deg,#2563eb,#06b6d4); color: #fff; border-color: transparent; }
.access-zone-card .table-wrap { max-height: 440px; overflow: auto; }
.zone-slot { display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 8px; border-radius: 10px; color: #075985; background: #e0f2fe; font-weight: 900; }
.interval-chip-list { display: flex; flex-wrap: wrap; gap: 5px; min-width: 150px; }
.interval-chip-list span { padding: 5px 8px; border-left: 3px solid var(--zone-color,#2563eb); border-radius: 7px; background: #f1f5f9; color: #334155; font-size: 11px; font-weight: 800; white-space: nowrap; }
.week-zone-preview { display: grid; grid-template-columns: repeat(7,minmax(28px,1fr)); gap: 3px; min-width: 224px; }
.week-zone-preview span { padding: 5px 2px; border-radius: 7px; text-align: center; background: #f1f5f9; }
.week-zone-preview b,.week-zone-preview small { display: block; }
.week-zone-preview b { color: #475569; font-size: 10px; }
.week-zone-preview small { margin-top: 2px; color: #0284c7; font-size: 9px; font-weight: 900; }
.zone-reference { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.zone-reference b { display: inline-grid; place-items: center; min-width: 30px; height: 25px; border-radius: 8px; color: #fff; background: #0e7490; }
.sync-guidance { margin: -4px 0 14px; }
.time-interval-editor { padding: 18px; border: 1px solid #d7e4ef; border-radius: 18px; background: linear-gradient(145deg,#f8fbff,#f0fdfa); }
.interval-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.interval-editor-head b { display:inline-flex; align-items:center; gap:6px; color: #0f172a; font-size: 17px; }
.interval-editor-head span { color: #64748b; font-size: 12px; }
.time-interval-row { display: grid; grid-template-columns: minmax(130px,1fr) minmax(120px,.7fr) 24px minmax(120px,.7fr); align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed #cbd5e1; }
.time-interval-row:first-of-type { border-top: 0; }
.time-interval-row .interval-enable { display: flex; align-items: center; gap: 8px; margin: 0; }
.time-interval-row .interval-enable input,.check-field input { width: auto; accent-color: #0891b2; }
.time-interval-row > span { color: #0e7490; text-align: center; font-weight: 900; }
.time-interval-row input:disabled { opacity: .45; background: #e2e8f0; }
.week-assignment-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 18px; border: 1px solid #d7e4ef; border-radius: 18px; background: #f8fbff; }
.week-assignment-title { grid-column:1/-1; display:flex; align-items:center; gap:6px; color:#334155; font-weight:900; }
.week-assignment-grid label { margin: 0; }
.week-assignment-grid b { display: block; margin-bottom: 6px; color: #334155; }
.check-field { display: flex; align-items: center; gap: 8px; align-self: end; min-height: 44px; }
.access-time-editor label small { display: block; margin-top: 5px; color: #64748b; font-weight: 600; }
.visitor-credential-center { margin-top: 18px; }
.visitor-qr-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 16px; }
.visitor-qr-card { padding: 16px; border: 1px solid #cbddea; border-radius: 18px; background: linear-gradient(180deg,#fff,#f3f9fc); box-shadow: 0 12px 34px rgba(17,59,91,.08); text-align: center; }
.visitor-qr-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; text-align: left; }
.visitor-qr-card header b,.visitor-qr-card header small { display: block; }
.visitor-qr-card header small { margin-top: 4px; color: #6b7d90; font-size: 11px; }
.visitor-qr-card img { display: block; width: min(100%,300px); aspect-ratio: 1; object-fit: contain; margin: 16px auto; padding: 8px; background: #fff; border: 1px solid #dbe7ef; border-radius: 14px; }
.dynamic-pass-panel { position: relative; display: grid; grid-template-columns: 66px minmax(0,1fr) auto; align-items: center; gap: 18px; margin: 16px 0 22px; padding: 22px; overflow: hidden; border: 1px solid #74d4e3; border-radius: 20px; background: linear-gradient(120deg,#082d48,#086b81); color: #fff; box-shadow: 0 16px 42px rgba(7,73,105,.18); }
.dynamic-pass-panel h3,.dynamic-pass-panel p { margin: 3px 0; color: #fff; }
.dynamic-pass-panel .eyebrow { color: #77e9f5; }
.dynamic-pass-panel p:not(.eyebrow) { color: #b9dce7; line-height: 1.5; }
.dynamic-pass-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: linear-gradient(135deg,#22d3ee,#2563eb); font-size: 34px; font-weight: 900; box-shadow: 0 12px 30px rgba(34,211,238,.25); }
.dynamic-pass-link { max-width: 720px; margin: 12px 0; padding: 9px 11px; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(0,0,0,.14); color: #d8f8ff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dynamic-pass-panel .button-link.primary { background: #16b9d2; color: #fff; border-color: #45d9eb; }
.dynamic-mode-badge { align-self: start; padding: 8px 11px; border: 1px solid rgba(99,241,218,.55); border-radius: 999px; background: rgba(5,55,61,.65); color: #8ff6e5; font-size: 10px; font-weight: 900; white-space: nowrap; }
.qr-meta { display: grid; gap: 6px; padding: 10px; margin-bottom: 12px; border-radius: 12px; background: #eaf4f8; text-align: left; font-size: 11px; color: #53677b; }
.qr-meta b { color: #102a43; word-break: break-all; }
button.success { background: #0f9f72; color: #fff; border-color: #0f9f72; }
.view-switch { display: inline-flex; padding: 3px; border: 1px solid #cfdeea; border-radius: 13px; background: #eef4f8; }
.view-switch button { border: 0; background: transparent; box-shadow: none; }
.view-switch button.active { background: #fff; color: #076f94; box-shadow: 0 4px 12px rgba(20,70,100,.10); }
.punch-record-card .toolbar { align-items: flex-start; }
.punch-record-card .table-wrap { max-height: 640px; overflow: auto; border-color: #d8e3ee; }
.punch-record-card table { min-width: 1080px; }
.punch-record-card table th {
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
  background: linear-gradient(180deg,#f8fafc,#eef2f7);
}
.punch-record-card table td { vertical-align: middle; }
.punch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 4px;
  border-bottom: 1px solid #d8e3ee;
}
.punch-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: #1667aa;
  box-shadow: none;
  padding: 10px 14px;
}
.punch-tabs button.active {
  background: #fff;
  border: 1px solid #cbd8e6;
  border-bottom-color: #fff;
  color: #0f172a;
  box-shadow: 0 -2px 0 #0ea5e9 inset;
}
.punch-tabs button:disabled { opacity: .45; cursor: not-allowed; }
.record-source-tabs { margin-top: 14px; }
.field-record-notice { display:flex; gap:12px; align-items:center; margin:14px 0; padding:12px 14px; border:1px solid #bfdbfe; border-radius:12px; background:#eff6ff; color:#1e3a5f; }
.field-record-notice b { color:#0b6f96; white-space:nowrap; }
.field-record-photo { width:72px; height:54px; border-radius:9px; object-fit:cover; background:#eef3f8; }
.field-record-location { display:grid; gap:4px; min-width:240px; }
.field-record-location b { font-weight:700; }
.field-record-location small { color:#718096; }
@media (max-width:720px) { .field-record-notice { align-items:flex-start; flex-direction:column; gap:4px; } }
.punch-times {
  display: grid;
  gap: 3px;
  min-width: 44px;
  align-items: start;
  justify-items: start;
}
.punch-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: #00a65a;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}
.punch-badge.red { background: #e74c3c; }
.punch-badge.green { background: #00a65a; }
.punch-photo-thumb {
  width: 42px;
  height: 56px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid #d8e3ee;
  background: #f8fafc;
}
.photo-hidden {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  padding: 6px 9px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}
.dept-tree-name {
  display: inline-block;
  white-space: pre;
  font-weight: 900;
  color: #0f172a;
}
.batch-action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.batch-employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #d8e3ee;
  border-radius: 16px;
  background: #f8fbff;
}
.batch-employee-grid label {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid #d8e3ee;
  border-radius: 13px;
  background: #fff;
}
.batch-employee-grid input { width: 17px; height: 17px; accent-color: #2563eb; }
.batch-employee-grid b,.batch-employee-grid small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-employee-grid small { margin-top: 4px; color: #64748b; font-size: 11px; }
.mini-form { display:grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap:12px; align-items:end; }
.mini-form button { min-height:44px; }
.sync-filter-row { display:grid; grid-template-columns: 1.3fr 1fr 1fr; gap:12px; margin-bottom:14px; }
.sync-dual-list { display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.sync-dual-list h3 { margin:0 0 8px; display:flex; justify-content:space-between; align-items:center; }
.sync-list { max-height:430px; overflow:auto; grid-template-columns:1fr; padding-right:6px; }
.sync-group-console .table-wrap { max-height:520px; }
.permission-subject-grid { max-height: 360px; }
.permission-device-selector .device-check-grid {
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #d8e3ee;
  border-radius: 16px;
  background: #f8fbff;
}
.punch-footer {
  padding: 12px 2px 0;
  color: #475467;
  font-size: 13px;
}
.punch-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 2px 0;
  color: #475467;
  font-size: 13px;
}
.punch-pager > span:first-child { margin-right: auto; }
.punch-pager label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #475467;
}
.punch-pager select {
  width: auto;
  min-width: 70px;
  padding: 6px 8px;
  border-radius: 7px;
}
.punch-pager button {
  min-width: 34px;
  height: 32px;
  padding: 0 10px;
}
.row-check { width: 16px; height: 16px; accent-color: #0ea5e9; }
.mini-json {
  max-width: 380px;
  max-height: 150px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid #d8e3ee;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.leave-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 8px;
  min-width: 840px;
}
.leave-calendar-scroll { overflow-x: auto; padding-bottom: 2px; }
.leave-calendar-head { margin-bottom: 14px; }
.leave-calendar-head .calendar-toolbar label { min-width: 180px; }
.leave-day {
  min-height: 86px;
  padding: 10px;
  border: 1px solid #d8e3ee;
  border-radius: 14px;
  background: linear-gradient(180deg,#fff,#f8fbff);
}
.leave-day.out-month { opacity: .38; background: #f8fafc; }
.leave-day.today { border-color: #0ea5e9; box-shadow: inset 0 0 0 1px #0ea5e9; }
.leave-day b { display: block; margin-bottom: 6px; color: #0f172a; }
.leave-day span {
  display: block;
  margin: 3px 0;
  padding: 4px 6px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leave-day small { color: #64748b; font-weight: 800; }

.temporal-input {
  cursor: pointer;
}
.temporal-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .85;
}
.temporal-input:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}
.adjusted-workday-editor {
  display: grid;
  gap: 10px;
}
.adjusted-workday-editor .field-title {
  color: #475467;
  font-weight: 800;
}
.adjusted-workday-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.adjusted-workday-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.adjusted-workday-row button {
  color: #dc2626;
}

.event-center-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(120deg,#f8fbff,#eef9fb);
  border-color: #cfe4ee;
}
.event-center-head h2,.event-center-head p { margin: 3px 0; }
.event-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border: 1px solid #d7e4ed; border-radius: 15px; background: #edf4f8; }
.event-tabs button { border: 0; background: transparent; box-shadow: none; }
.event-tabs button.active { background: #fff; color: #087ba0; box-shadow: 0 5px 16px rgba(15,80,110,.12); }
.event-filter-bar { justify-content: flex-start; align-items: end; margin-bottom: 14px; }
.event-filter-bar label { min-width: 150px; margin: 0; }
.event-filter-bar label:first-child { min-width: 280px; flex: 1; }
.event-type-code { display: block; margin-top: 4px; color: #7a8da1; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 10px; font-weight: 600; }
.event-message { display: block; max-width: 420px; color: #475569; line-height: 1.45; }
.event-assignee { min-width: 135px; max-width: 190px; padding: 7px 28px 7px 9px; font-size: 13px; }
.portal-account-box { display:grid; grid-template-columns:minmax(220px,1fr) minmax(180px,.7fr) minmax(210px,1fr); gap:14px; align-items:end; padding:16px; border:1px solid #cfe0f4; border-radius:16px; background:#f6faff; }
.portal-account-box > div:first-child { grid-column:1/-1; display:flex; flex-direction:column; gap:3px; }
.portal-account-box label { margin:0; }
.remote-credential-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #bae6fd;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0f9ff, #ecfeff);
}
.remote-credential-heading div { display: grid; gap: 4px; }
.remote-credential-heading small { color: var(--muted); font-weight: 600; }
.remote-credential-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}
.remote-credential-grid label { margin: 0; }
.remote-credential-grid button { min-height: 42px; white-space: nowrap; }
.remote-credential-box > p { margin: 0; }
@media (max-width: 760px) { .portal-account-box { grid-template-columns:1fr; } }
@media (max-width: 760px) {
  .employee-form-section-grid { grid-template-columns: 1fr; }
  .employee-form-section > summary { align-items: flex-start; }
  .remote-credential-grid { grid-template-columns: 1fr; }
}
.employee-portal-hero { background: linear-gradient(120deg,#082f49,#075985 58%,#0891b2); color:#fff; }
.employee-portal-hero h2,.employee-portal-hero p { color:#fff; }
.employee-portal-hero .eyebrow { color:#a5f3fc; }
.employee-portal-hero .hero-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; }
.employee-portal-hero .hero-actions button { background:rgba(255,255,255,.94); border-color:rgba(255,255,255,.65); }
.employee-portal-hero .hero-actions .primary { color:#fff; background:linear-gradient(90deg,#2563eb,#06b6d4); border-color:transparent; }
.employee-portal-grid { margin-top:16px; }
.employee-portal-link-card { align-self:stretch; background:linear-gradient(140deg,#fff,#f0f9ff); border-top:3px solid #0891b2; }
.employee-portal-url { margin:16px 0 10px; padding:14px 16px; overflow:auto; border:1px solid #bae6fd; border-radius:14px; background:#e0f2fe; color:#075985; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-weight:800; white-space:nowrap; user-select:all; }
.employee-portal-qr { text-align:center; border-top:3px solid #2563eb; }
.employee-portal-qr img { display:block; width:min(100%,280px); aspect-ratio:1; object-fit:contain; margin:12px auto; padding:10px; border:1px solid #dbeafe; border-radius:18px; background:#fff; }
.employee-portal-qr small { display:block; color:#64748b; font-size:10px; word-break:break-all; }
.employee-portal-guide ol { display:grid; gap:12px; margin:18px 0 0; padding-left:24px; }
.employee-portal-guide li { padding-left:5px; color:#475569; line-height:1.65; }
@media (max-width: 760px) {
  .employee-portal-hero { grid-template-columns:1fr; }
  .employee-portal-hero .hero-actions { justify-content:flex-start; }
}
.empty-state { padding: 44px 20px; border: 1px dashed #cbdbe6; border-radius: 15px; background: #f8fbfd; color: #64748b; text-align: center; font-weight: 800; }
.integration-notice { display: flex; align-items: center; gap: 14px; background: linear-gradient(120deg,#eefbf9,#eef7ff); border-color: #bce5df; }
.integration-notice b { color: #0f766e; white-space: nowrap; }
.integration-notice span { color: #526579; line-height: 1.55; }
.integration-demo-card { border-color: #b9ddf5; background: linear-gradient(135deg,rgba(239,248,255,.98),rgba(238,252,248,.98)); }
.integration-provider-fields { padding: 14px; border: 1px solid #cfe1ee; border-radius: 16px; background: rgba(255,255,255,.72); }
.integration-credentials { margin: -8px; }
.integration-demo-result { margin-top: 14px; padding: 13px 15px; border: 1px solid #9ee5bd; border-radius: 14px; background: #ecfdf3; color: #166534; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.integration-demo-result code { padding: 5px 8px; border-radius: 8px; background: #fff; color: #14532d; }
.notification-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.notification-nav button { flex: 1 1 150px; min-height: 46px; border-color: #cfe2ef; background: #f7fbfe; }
.notification-nav button.active { color: #fff; border-color: transparent; background: linear-gradient(135deg,#2563eb,#06b6d4); box-shadow: 0 8px 20px rgba(37,99,235,.18); }
.notification-subnav { padding: 10px; background: #f6fafc; }
.notification-subnav button { min-height: 40px; }
.notification-quickstart { overflow: hidden; }
.notification-step-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.notification-step-card { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 10px; min-height: 112px; padding: 18px; text-align: left; border: 1px solid #cfe1ed; background: linear-gradient(145deg,#fff,#f2f9fc); }
.notification-step-card:hover { transform: translateY(-2px); border-color: #62b8d5; box-shadow: 0 10px 25px rgba(15,80,110,.12); }
.notification-step-number { position: absolute; top: 10px; right: 12px; color: #8aa1b2; font-size: 12px; font-weight: 800; }
.notification-step-icon { grid-row: 1 / 3; align-self: center; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #e0f4fb; font-size: 21px; }
.notification-step-card b { align-self: end; color: #12233a; }
.notification-step-card small { color: #65788c; }
.notification-provider-fields { padding: 14px; border: 1px solid #d8e7f1; border-radius: 14px; background: #f8fbfd; }
.notification-channel-guide { padding:18px; border:1px solid #b9daec; border-radius:18px; background:linear-gradient(135deg,#f4faff,#f3fcf9); }
.channel-guide-head { display:flex; align-items:flex-start; gap:13px; padding-bottom:15px; border-bottom:1px solid #d5e5ee; }
.channel-guide-head > span { display:grid; width:45px; height:45px; flex:0 0 45px; place-items:center; border-radius:14px; background:#fff; font-size:22px; box-shadow:0 7px 20px #285c7b18; }
.channel-guide-head b { display:block; color:#0f4f6d; font-size:17px; }
.channel-guide-head p { margin:5px 0 0; color:#526579; font-size:13px; line-height:1.55; }
.channel-guide-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; padding:16px 0; }
.channel-guide-grid h3 { margin:0 0 10px; color:#334155; font-size:14px; }
.channel-guide-grid ol { display:grid; gap:8px; margin:0; padding-left:23px; color:#475569; font-size:13px; line-height:1.5; }
.channel-guide-grid li::marker { color:#0284c7; font-weight:900; }
.channel-guide-grid dl { display:grid; gap:8px; margin:0; }
.channel-guide-grid dl > div { padding:10px 12px; border:1px solid #d8e6ee; border-radius:12px; background:rgba(255,255,255,.75); }
.channel-guide-grid dt { color:#155e75; font-size:12px; font-weight:900; }
.channel-guide-grid dd { margin:3px 0 0; color:#5b6878; font-size:12px; line-height:1.45; }
.channel-guide-warning { display:flex; align-items:flex-start; gap:12px; padding:12px 14px; border:1px solid #f1d28a; border-radius:13px; background:#fffbea; color:#7c4a03; font-size:12px; line-height:1.5; }
.channel-guide-warning b { flex:0 0 auto; }
.channel-guide-footer { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:14px; }
.channel-guide-footer > div:first-child { min-width:0; }
.channel-guide-footer b,.channel-guide-footer span { display:block; }
.channel-guide-footer b { color:#334155; font-size:13px; }
.channel-guide-footer span { margin-top:3px; color:#64748b; font-size:11px; line-height:1.45; }
.channel-guide-links { display:flex; flex:0 0 auto; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.channel-guide-links a { padding:9px 12px; border:1px solid #9ed6ec; border-radius:11px; background:#fff; color:#0369a1; font-size:12px; font-weight:850; text-decoration:none; }
.channel-guide-links a:hover { border-color:#0ea5e9; background:#eaf8ff; }
@media (max-width: 880px) {
  .channel-guide-grid { grid-template-columns:1fr; gap:16px; }
  .channel-guide-footer { align-items:flex-start; flex-direction:column; }
  .channel-guide-links { justify-content:flex-start; }
}
@media (max-width: 560px) {
  .notification-channel-guide { padding:14px; }
  .channel-guide-warning { display:block; }
  .channel-guide-warning span { display:block; margin-top:5px; }
}
.message-template-preview { display: block; max-width: 560px; white-space: pre-line; line-height: 1.45; }
.template-purpose-explanation { display:flex; align-items:flex-start; gap:12px; margin-top:15px; padding:14px 16px; border:1px solid #bce6d7; border-radius:16px; background:linear-gradient(120deg,#eefcf6,#f2f9ff); }
.template-purpose-explanation > span { display:grid; width:36px; height:36px; flex:0 0 36px; place-items:center; border-radius:12px; background:#fff; box-shadow:0 6px 16px #2f6f5a18; }
.template-purpose-explanation b { color:#0f766e; }
.template-purpose-explanation p { margin:4px 0 0; color:#475569; font-size:13px; line-height:1.55; }
.template-builder-steps { display:flex; align-items:center; gap:10px; margin:16px 0 18px; padding:12px 14px; overflow:auto; border:1px solid #cfe3f3; border-radius:16px; background:linear-gradient(110deg,#f4f9ff,#f0fcfa); }
.template-builder-steps span { display:flex; align-items:center; gap:8px; min-width:max-content; color:#334155; font-size:12px; font-weight:850; }
.template-builder-steps span b { display:grid; width:27px; height:27px; place-items:center; border-radius:9px; background:linear-gradient(135deg,#2563eb,#06b6d4); color:#fff; }
.template-builder-steps i { color:#91a8ba; font-size:22px; font-style:normal; }
.template-builder-form { gap:14px; }
.template-purpose-panel { display:grid; grid-template-columns:minmax(240px,.75fr) auto minmax(320px,1.25fr); align-items:end; gap:14px; padding:16px; border:1px solid #bcdff0; border-radius:17px; background:linear-gradient(120deg,#eef8ff,#effcf8); }
.template-purpose-panel > div { display:grid; gap:6px; }
.template-purpose-panel label { color:#334155; font-size:13px; font-weight:850; }
.template-purpose-panel select { width:100%; }
.template-purpose-panel > button { min-height:44px; white-space:nowrap; }
.template-purpose-panel p { margin:0; color:#334155; font-size:13px; font-weight:750; line-height:1.45; }
.template-purpose-panel p small { display:block; margin-top:4px; color:#64748b; font-weight:600; }
.template-builder-workspace { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr); gap:16px; align-items:stretch; }
.template-message-editor { display:grid; gap:14px; min-width:0; }
.template-message-editor > label { display:grid; gap:6px; }
.template-message-editor textarea { min-height:205px; resize:vertical; line-height:1.55; }
.template-variable-picker { padding:15px; border:1px solid #d5e4ee; border-radius:16px; background:#f8fbfd; }
.template-variable-picker > div:first-child { display:flex; justify-content:space-between; gap:12px; align-items:baseline; margin-bottom:11px; }
.template-variable-picker small { color:#64748b; font-size:11px; }
.template-variable-buttons { display:flex; flex-wrap:wrap; gap:8px; }
.template-variable-buttons button { min-height:34px; padding:7px 10px; border:1px solid #bfdaeb; border-radius:10px; background:#fff; color:#155e75; font-size:12px; font-weight:800; }
.template-variable-buttons button:hover { border-color:#38bdf8; background:#eaf8ff; transform:translateY(-1px); }
.template-live-preview { display:flex; flex-direction:column; min-height:100%; padding:17px; border:1px solid #b8d8ea; border-radius:18px; background:linear-gradient(145deg,#edf7ff,#f4fbff 55%,#effcf8); }
.template-preview-head { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.template-preview-head > span { display:grid; width:39px; height:39px; place-items:center; border-radius:13px; background:#fff; box-shadow:0 6px 18px #3d749520; }
.template-preview-head b,.template-preview-head small { display:block; }
.template-preview-head small,.template-live-preview > small { color:#64748b; font-size:11px; }
.template-preview-message { flex:1; padding:17px; border:1px solid #d8e6ef; border-radius:16px; background:#fff; box-shadow:0 12px 30px #28587812; }
.template-preview-message strong { display:block; margin-bottom:12px; color:#0f172a; font-size:16px; line-height:1.4; overflow-wrap:anywhere; }
.template-preview-message p { margin:0; color:#334155; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
.template-live-preview > small { margin-top:11px; line-height:1.45; }
.template-advanced-variables { padding:12px 14px; border:1px solid #d8e4ec; border-radius:14px; background:#fbfdff; }
.template-advanced-variables summary { cursor:pointer; color:#475569; font-weight:850; }
.template-advanced-variables p { color:#64748b; font-size:12px; }
.template-advanced-variables code { display:block; padding:11px; overflow:auto; border-radius:10px; background:#eef3f7; color:#475569; line-height:1.7; }
@media (max-width: 980px) {
  .template-purpose-panel { grid-template-columns:1fr auto; }
  .template-purpose-panel p { grid-column:1/-1; }
  .template-builder-workspace { grid-template-columns:1fr; }
  .template-live-preview { min-height:320px; }
}
@media (max-width: 620px) {
  .template-purpose-panel { grid-template-columns:1fr; align-items:stretch; }
  .template-purpose-panel p { grid-column:auto; }
  .template-variable-picker > div:first-child { display:block; }
  .template-variable-picker small { display:block; margin-top:4px; }
}
.compact-notice { margin: 0 0 14px; padding: 11px 13px; }
.secret-reveal { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-color: #f2cf74; background: #fffbeb; }
.secret-reveal > div { min-width: 0; }
.secret-reveal b { display: block; margin-bottom: 8px; color: #92400e; }
.secret-reveal code { display: block; max-width: 100%; overflow: auto; padding: 10px 12px; border: 1px solid #f4d98a; border-radius: 10px; background: #fff; color: #713f12; user-select: all; }
.url-cell { display: block; max-width: 420px; overflow: hidden; color: #075985; text-overflow: ellipsis; white-space: nowrap; }

.payroll-info {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 5px 18px;
  border-color: #bfe4da;
  background: linear-gradient(120deg,#effcf7,#eff8ff);
}
.payroll-info b { grid-row: span 2; color: #047857; font-size: 17px; }
.payroll-info span { color: #334155; font-weight: 750; }
.payroll-info small { color: #64748b; }
.payroll-handover {
  display:grid;
  grid-template-columns:minmax(270px,.9fr) minmax(520px,1.7fr) auto;
  align-items:center;
  gap:20px;
  border-color:#b9ddec;
  background:linear-gradient(125deg,#f7fbff,#effbf7);
}
.payroll-handover-copy h2,.payroll-handover-copy p { margin:4px 0; }
.payroll-handover-copy p { color:#475569; line-height:1.5; }
.payroll-handover-copy small { display:block; margin-top:7px; color:#64748b; }
.payroll-workflow { display:flex; align-items:center; justify-content:center; gap:8px; }
.payroll-workflow > span { display:flex; align-items:center; gap:7px; min-height:44px; padding:8px 10px; border:1px solid #cfe1e8; border-radius:13px; background:#fff; color:#334155; font-size:12px; font-weight:850; }
.payroll-workflow i { display:grid; width:24px; height:24px; place-items:center; border-radius:8px; background:linear-gradient(135deg,#2563eb,#06b6d4); color:#fff; font-style:normal; }
.payroll-workflow > b { color:#8aa1b5; }
.payroll-quick-export { white-space:nowrap; }
.payroll-export-note { margin-bottom:14px; align-items:flex-start; }
.payroll-run-form .notice { align-items: flex-start; line-height: 1.5; }
.payroll-summary {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  margin: 0 0 14px;
}
.payroll-summary span {
  padding: 15px;
  border: 1px solid #d5e5ed;
  border-radius: 16px;
  background: linear-gradient(135deg,#f8fbff,#effaf8);
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}
.payroll-summary b { display: block; margin-top: 7px; color: #0f172a; font-size: 22px; }
.payroll-detail { scroll-margin-top: 20px; }
.payroll-detail .table-wrap { max-height: 620px; }
.payroll-component-summary { display:flex; flex-wrap:wrap; gap:5px; max-width:440px; }
.payroll-component-summary span { display:inline-flex; gap:5px; padding:4px 8px; border-radius:999px; background:#eef6ff; color:#334155; font-size:11px; }
.payroll-component-selector { margin-top:8px; padding:16px; border:1px solid #cfe0ec; border-radius:18px; background:#f8fbff; }
.payroll-component-selector h3 { margin:0 0 5px; }
.payroll-component-selector > div > p { margin:0 0 14px; color:#64748b; }
.payroll-component-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.payroll-component-option { display:grid; grid-template-columns:auto minmax(0,1fr) 120px; align-items:center; gap:10px; margin:0; padding:11px; border:1px solid #d8e4ed; border-radius:14px; background:#fff; }
.payroll-component-option > input[type="checkbox"] { width:17px; height:17px; accent-color:#2563eb; }
.payroll-component-option > input[type="number"] { padding:9px; }
.payroll-component-option b,.payroll-component-option small { display:block; }
.payroll-component-option small { margin-top:3px; color:#64748b; font-size:10px; }
.payroll-line-stack { display:grid; gap:4px; min-width:210px; white-space:normal; }
.payroll-line-stack span { display:grid; grid-template-columns:minmax(90px,1fr) auto auto; align-items:center; gap:7px; padding:5px 7px; border-radius:8px; background:#f8fafc; }
.payroll-line-stack b { font-size:11px; color:#334155; }
.payroll-line-stack small { color:#64748b; font-size:10px; }
.payroll-line-stack strong { color:#0f766e; font-size:11px; }
.payrollOtRuleForm { display:grid; gap:12px; }
.payrollOtRuleForm p { margin:-8px 0 2px; }

.database-hero {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-color:#c8e1df;
  background:linear-gradient(120deg,#f1fbf8,#eef6ff);
}
.database-hero h2,.database-hero p { margin:3px 0; }
.database-restore-panel {
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);
  gap:24px;
  border:1px solid #f0b6b6;
  background:linear-gradient(120deg,#fff7f7,#fffaf2);
  scroll-margin-top:20px;
}
.database-restore-panel h2 { color:#991b1b; }
.database-restore-panel p { color:#7f1d1d; line-height:1.55; }
.database-policy-card,.database-health-card,.database-photo-card { align-content:start; }
.database-health-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:10px 0 14px; }
.database-health-grid > div { min-width:0; padding:13px 14px; border:1px solid #d8e6ed; border-radius:14px; background:#f8fbfd; }
.database-health-grid span,.database-health-grid b { display:block; overflow:hidden; text-overflow:ellipsis; }
.database-health-grid span { color:#64748b; font-size:11px; font-weight:800; }
.database-health-grid b { margin-top:5px; color:#0f172a; font-size:15px; }
.danger-text { color:#b91c1c; }

.assistant-page { display:grid; gap:18px; }
.assistant-mode-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:6px; border:1px solid #d6e3ee; border-radius:18px; background:#f4f8fb; }
.assistant-mode-tabs button { display:flex; align-items:center; justify-content:center; gap:9px; min-height:52px; border-color:transparent; background:transparent; color:#526176; box-shadow:none; }
.assistant-mode-tabs button span { font-size:18px; }
.assistant-mode-tabs button.active { border-color:#bdd7eb; background:#fff; color:#174a7c; box-shadow:0 7px 18px rgba(15,23,42,.07); }
.assistant-function-panel,.assistant-data-panel,#assistantNavigationResults { display:grid; gap:18px; }
.assistant-function-search { display:grid; gap:16px; padding:22px; }
.assistant-function-search h2,.assistant-function-search p { margin:3px 0; }
.assistant-function-search > label { display:grid; gap:7px; color:#526176; font-weight:800; }
.assistant-function-search > label > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; }
.assistant-function-search input { min-height:50px; font-size:16px; }
.assistant-function-search > label button { min-width:120px; }
.assistant-quick-tasks { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.assistant-quick-tasks > b { margin-right:3px; color:#475569; font-size:13px; }
.assistant-quick-tasks button { min-height:34px; padding:6px 11px; border-color:#cddfeb; border-radius:999px; background:#f8fbfd; color:#31597a; font-size:13px; }
.assistant-workflows,.assistant-search-results,.assistant-module-browser { display:grid; gap:13px; }
.assistant-workflow-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.assistant-workflow-card { --workflow-accent:#2186b8; position:relative; overflow:hidden; padding:18px; border:1px solid #d7e4ed; border-radius:18px; background:#fff; box-shadow:0 8px 20px rgba(15,23,42,.045); }
.assistant-workflow-card::before { position:absolute; inset:0 0 auto; height:3px; background:var(--workflow-accent); content:""; }
.assistant-workflow-tone-2 { --workflow-accent:#0f9f84; }
.assistant-workflow-tone-3 { --workflow-accent:#6d78c5; }
.assistant-workflow-tone-4 { --workflow-accent:#d98a31; }
.assistant-workflow-tone-5 { --workflow-accent:#5c7693; }
.assistant-workflow-card > header { display:flex; align-items:flex-start; gap:11px; }
.assistant-workflow-card > header > span { display:grid; width:40px; height:40px; flex:0 0 40px; place-items:center; border-radius:12px; background:color-mix(in srgb,var(--workflow-accent) 11%,#fff); font-size:20px; }
.assistant-workflow-card h3,.assistant-workflow-card p { margin:0; }
.assistant-workflow-card p { margin-top:4px; color:#64748b; line-height:1.5; }
.assistant-process-lane { display:flex; align-items:stretch; margin-top:16px; }
.assistant-process-node { position:relative; display:grid; flex:1 1 0; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:8px; min-width:0; min-height:70px; padding:13px 10px 10px; border-color:#d3e1ea; border-radius:14px; background:#fbfdff; text-align:left; box-shadow:none; }
.assistant-process-node:hover:not(:disabled) { border-color:color-mix(in srgb,var(--workflow-accent) 55%,#d3e1ea); background:color-mix(in srgb,var(--workflow-accent) 5%,#fff); }
.assistant-process-step { position:absolute; top:-9px; left:10px; display:grid; width:22px; height:22px; place-items:center; border:2px solid #fff; border-radius:50%; background:var(--workflow-accent); color:#fff; font-size:10px; font-weight:900; box-shadow:0 3px 8px rgba(15,23,42,.16); }
.assistant-process-icon { display:grid; width:30px; height:30px; place-items:center; border-radius:10px; background:color-mix(in srgb,var(--workflow-accent) 10%,#fff); font-size:16px; }
.assistant-process-copy { min-width:0; }
.assistant-process-copy b,.assistant-process-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.assistant-process-copy b { color:#173c5e; font-size:12px; }
.assistant-process-copy small { margin-top:3px; color:#7890a3; font-size:10px; }
.assistant-process-connector { position:relative; flex:0 0 24px; min-width:24px; }
.assistant-process-connector::before { position:absolute; top:50%; right:4px; left:4px; height:2px; background:color-mix(in srgb,var(--workflow-accent) 38%,#d8e4ec); content:""; }
.assistant-process-connector::after { position:absolute; top:calc(50% - 4px); right:4px; width:7px; height:7px; border-top:2px solid var(--workflow-accent); border-right:2px solid var(--workflow-accent); transform:rotate(45deg); content:""; }
.assistant-category-tabs { display:flex; flex-wrap:wrap; gap:8px; }
.assistant-category-tabs button { min-height:35px; padding:7px 11px; border-radius:999px; background:#fff; color:#526176; }
.assistant-category-tabs button.active { border-color:#93c5df; background:#edf8fc; color:#0f5d78; }
.assistant-navigation-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.assistant-module-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.assistant-navigation-result { display:grid; align-content:start; gap:12px; min-width:0; padding:18px; border:1px solid #d7e3ec; border-radius:18px; background:#fff; box-shadow:0 7px 18px rgba(15,23,42,.04); }
.assistant-navigation-result > header { display:flex; align-items:flex-start; gap:10px; min-width:0; }
.assistant-navigation-result > header > div { min-width:0; flex:1; }
.assistant-navigation-result h3,.assistant-navigation-result p { margin:0; }
.assistant-navigation-result h3 { margin-top:2px; overflow:hidden; color:#173c5e; text-overflow:ellipsis; white-space:nowrap; }
.assistant-navigation-result header small { color:#7890a3; }
.assistant-menu-path { display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-width:0; padding-top:2px; }
.assistant-menu-path span,.assistant-menu-path b { display:inline-flex; align-items:center; min-height:28px; padding:5px 9px; border-radius:9px; font-size:12px; }
.assistant-menu-path span { background:#f1f5f9; color:#64748b; }
.assistant-menu-path b { max-width:100%; background:#eaf5fb; color:#174a7c; }
.assistant-menu-path-arrow { color:#4d8aac; font-style:normal; font-weight:900; }
.assistant-navigation-result > p { color:#526176; line-height:1.55; }
.assistant-navigation-icon { display:grid; width:38px; height:38px; flex:0 0 38px; place-items:center; border-radius:12px; background:#eef6fb; font-size:19px; }
.assistant-navigation-steps { padding:12px 14px; border-radius:14px; background:#f8fafc; }
.assistant-navigation-steps > b { color:#334155; font-size:12px; }
.assistant-step-timeline { display:grid; gap:0; margin:10px 0 0; padding:0; list-style:none; }
.assistant-step-timeline li { position:relative; display:grid; grid-template-columns:24px minmax(0,1fr); gap:9px; min-height:36px; padding-bottom:9px; color:#526176; }
.assistant-step-timeline li:last-child { min-height:24px; padding-bottom:0; }
.assistant-step-timeline li::before { position:absolute; top:22px; bottom:-2px; left:11px; width:2px; background:#c9dfeb; content:""; }
.assistant-step-timeline li:last-child::before { display:none; }
.assistant-step-timeline li > span { position:relative; z-index:1; display:grid; width:24px; height:24px; place-items:center; border:2px solid #fff; border-radius:50%; background:#3a82a8; color:#fff; font-size:10px; font-weight:900; box-shadow:0 0 0 1px #bcd8e7; }
.assistant-step-timeline li > p { margin:2px 0 0; line-height:1.45; }
.assistant-navigation-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; }
.assistant-navigation-actions button { flex:1; min-width:112px; }
.assistant-permission-required { align-self:flex-start; padding:5px 8px; border-radius:999px; background:#fff7ed; color:#9a5b14; font-size:11px; font-weight:850; white-space:nowrap; }
.assistant-navigation-result.disabled { background:#f8fafc; opacity:.72; }
.assistant-module-grid .assistant-navigation-result { padding:14px; }
.assistant-module-grid .assistant-navigation-result > p { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; font-size:13px; }
.assistant-hero {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:26px 30px;
  border:1px solid #b9ddec;
  border-radius:26px;
  background:
    radial-gradient(circle at 88% 10%,rgba(34,211,238,.2),transparent 28%),
    linear-gradient(125deg,#f6f9ff,#edfbf8);
  box-shadow:0 18px 45px rgba(30,64,175,.09);
}
.assistant-hero h2,.assistant-hero p { margin:4px 0; }
.assistant-hero h2 { font-size:30px; }
.assistant-hero p { color:#334155; font-size:16px; }
.assistant-hero small { display:block; margin-top:8px; color:#64748b; }
.assistant-lock,.assistant-readonly {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:9px 13px;
  border:1px solid #a7e3d3;
  border-radius:999px;
  background:#ecfdf5;
  color:#047857;
  font-weight:850;
  white-space:nowrap;
}
.assistant-composer { display:grid; gap:14px; }
.assistant-help { display:grid; gap:18px; border-color:#c7dcef; background:linear-gradient(145deg,#fff,#f8fbff); }
.assistant-help-title { display:flex; align-items:center; gap:12px; }
.assistant-help-title > span { display:grid; width:44px; height:44px; place-items:center; border-radius:14px; background:#e0f2fe; font-size:22px; }
.assistant-help-title h2,.assistant-help-title p { margin:0; }
.assistant-help-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.assistant-help-grid > div { padding:17px; border:1px solid #d9e6f2; border-radius:17px; background:#fff; }
.assistant-help-grid h3 { margin:10px 0 6px; color:#0f172a; }
.assistant-help-grid p { margin:0; color:#526176; line-height:1.55; }
.assistant-help-icon { display:grid; width:36px; height:36px; place-items:center; border-radius:11px; background:#eef6ff; }
.assistant-help-note { display:flex; align-items:flex-start; gap:14px; padding:13px 16px; border:1px solid #bae6d3; border-radius:14px; background:#f0fdf7; color:#315b4c; }
.assistant-help-note b { color:#047857; white-space:nowrap; }
.assistant-example-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.assistant-example-group { padding:14px; border:1px solid #dbe7f1; border-radius:16px; background:#fbfdff; }
.assistant-example-group h3 { display:flex; align-items:center; gap:7px; margin:0 0 11px; font-size:15px; }
.assistant-prompts { display:flex; flex-wrap:wrap; gap:9px; }
.assistant-prompts button { border-color:#c7dcef; background:#f5f9ff; color:#1d4ed8; }
#assistantForm { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; }
#assistantForm textarea { min-height:68px; resize:vertical; }
#assistantForm button { min-width:110px; }
.assistant-results { display:grid; gap:16px; }
.assistant-result { display:grid; gap:14px; }
.assistant-question { display:flex; align-items:flex-start; gap:10px; color:#1e293b; }
.assistant-question > span { display:grid; width:30px; height:30px; place-items:center; border-radius:10px; background:#1d4ed8; color:#fff; font-weight:900; }
.assistant-question b { padding-top:5px; }
.assistant-answer-head { display:flex; align-items:center; justify-content:space-between; gap:16px; border-top:1px solid #e2e8f0; padding-top:14px; }
.assistant-answer-head h2 { margin:2px 0; }
.assistant-answer-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.assistant-module-button { display:inline-flex; align-items:center; gap:8px; min-height:43px; padding:9px 14px; white-space:nowrap; box-shadow:0 8px 20px #2563eb26; }
.assistant-module-button span { font-size:16px; }
.assistant-module-button b { margin-left:3px; font-size:18px; }
.assistant-answer { margin:0; color:#334155; font-size:16px; line-height:1.6; }
.assistant-parsed { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:10px 12px; border:1px solid #d8e5ef; border-radius:13px; background:#f8fbff; }
.assistant-parsed > span { color:#64748b; font-size:12px; font-weight:800; }
.assistant-filter-chip { display:inline-flex; align-items:center; gap:6px; padding:6px 9px; border:1px solid #bfdbfe; border-radius:999px; background:#eff6ff; }
.assistant-filter-chip small { color:#64748b; font-weight:700; }
.assistant-filter-chip b { color:#1d4ed8; font-size:12px; }
.assistant-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; }
.assistant-metric { padding:13px 15px; border:1px solid #d8e5ef; border-radius:14px; background:linear-gradient(135deg,#f8fbff,#f2fbf8); }
.assistant-metric span,.assistant-metric b { display:block; }
.assistant-metric span { color:#64748b; font-size:12px; font-weight:750; }
.assistant-metric b { margin-top:5px; color:#0f172a; font-size:24px; }
.assistant-table { max-height:460px; }
.assistant-navigation-note { margin:0; padding:10px 13px; border:1px solid #bfe4d8; border-radius:12px; background:#f0fdf7; color:#376456; font-size:12px; }
.assistant-notice { margin:0; color:#64748b; font-size:12px; }

@media (max-width: 980px) { .device-check-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .week-assignment-grid { grid-template-columns: 1fr; } .time-interval-row { grid-template-columns: 1fr 1fr 24px 1fr; } }
@media (max-width: 820px) { .self-service-card { grid-template-columns: 1fr; } .self-service-qr { width: min(240px,100%); } }
@media (max-width: 1280px) { .personnel-control-panel .personnel-filter-panel { grid-template-columns: repeat(3,minmax(160px,1fr)); } .personnel-bulk-panel { grid-template-columns:1fr; align-items:stretch; } }
@media (max-width: 760px) { .personnel-control-panel .personnel-filter-panel { grid-template-columns:1fr; } .bulk-selection-tools,.bulk-action-tools,.bulk-action-label { width:100%; } .bulk-action-tools { grid-template-columns:1fr; } .bulk-action-label { min-width:0; } .bulk-action-tools button { width:100%; } }
@media (max-width: 760px) { .dynamic-pass-panel { grid-template-columns: 52px 1fr; } .dynamic-mode-badge { grid-column: 1 / -1; justify-self: start; } .dynamic-pass-icon { width: 50px; height: 50px; border-radius: 16px; } }
@media (max-width: 620px) { .device-check-grid { grid-template-columns: 1fr; } .visitor-qr-grid { grid-template-columns: 1fr; } .self-service-info { grid-template-columns:1fr; } .time-interval-row { grid-template-columns: 1fr 1fr; } .time-interval-row > span { display:none; } .adjusted-workday-list { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .event-center-head,.secret-reveal { align-items: stretch; flex-direction: column; } .event-tabs { width: 100%; } .event-tabs button { flex: 1; } .event-filter-bar label,.event-filter-bar label:first-child { width: 100%; min-width: 0; } }
@media (max-width: 980px) { .notification-step-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .notification-step-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .payroll-info { grid-template-columns:1fr; } .payroll-info b { grid-row:auto; } .payroll-summary { grid-template-columns:1fr; } }
@media (max-width: 1180px) { .payroll-handover { grid-template-columns:1fr; } .payroll-workflow { justify-content:flex-start; flex-wrap:wrap; } }
@media (max-width: 620px) { .payroll-workflow > b { display:none; } .payroll-workflow > span { width:100%; } }
@media (max-width: 900px) { .payroll-component-grid { grid-template-columns:1fr; } }
@media (max-width: 620px) { .payroll-component-option { grid-template-columns:auto minmax(0,1fr); } .payroll-component-option > input[type="number"] { grid-column:1/-1; } }
@media (min-width: 761px) and (max-width: 1366px) {
  .database-grid > .metric.span-3 { grid-column:span 6; }
  .database-grid > .span-6 { grid-column:span 12; }
}
@media (max-width: 760px) { .database-hero { align-items:stretch; flex-direction:column; } .database-restore-panel { grid-template-columns:1fr; } .database-health-grid { grid-template-columns:1fr; } }
@media (max-width: 900px) { .assistant-help-grid,.assistant-example-groups,.assistant-workflow-grid,.assistant-navigation-grid { grid-template-columns:1fr; } .assistant-module-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) { .assistant-hero,.assistant-answer-head,.assistant-help-note { align-items:flex-start; flex-direction:column; } .assistant-answer-actions { width:100%; justify-content:space-between; } .assistant-module-button { flex:1; justify-content:center; } .assistant-mode-tabs,.assistant-function-search > label > div,.assistant-module-grid,#assistantForm { grid-template-columns:1fr; } .assistant-mode-tabs button,#assistantForm button { width:100%; } .assistant-process-lane { display:grid; grid-template-columns:1fr; } .assistant-process-node { width:100%; min-height:62px; } .assistant-process-connector { width:100%; min-width:0; height:22px; } .assistant-process-connector::before { top:3px; bottom:3px; left:50%; width:2px; height:auto; } .assistant-process-connector::after { top:auto; right:auto; bottom:3px; left:calc(50% - 4px); border-top:0; border-right:2px solid var(--workflow-accent); border-bottom:2px solid var(--workflow-accent); transform:rotate(45deg); } }

/* Duty and shift handover module */
.duty-hero { background:linear-gradient(135deg,#0f2748,#0e7490 58%,#0f766e); color:#fff; }
.duty-hero .eyebrow,.duty-hero p { color:#d5f6ff; }
.duty-guide-card { border-color:#b9dff0; background:linear-gradient(135deg,#f8fcff,#eef9ff 55%,#f7fff9); }
.duty-guide-head { align-items:flex-start; }
.duty-guide-head p { max-width:1120px; color:#526176; line-height:1.65; }
.duty-guide-flow { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:16px; }
.duty-guide-step { position:relative; min-height:128px; padding:18px 18px 16px 58px; border:1px solid #cfe2ef; border-radius:18px; background:rgba(255,255,255,.78); box-shadow:0 10px 24px rgba(15,23,42,.05); }
.duty-guide-step span { position:absolute; left:16px; top:17px; display:grid; place-items:center; width:30px; height:30px; border-radius:10px; background:#0ea5e9; color:#fff; font-size:12px; font-weight:900; }
.duty-guide-step b { display:block; margin-bottom:8px; color:#0f172a; }
.duty-guide-step p,.duty-guide-fields p { margin:0; color:#526176; line-height:1.55; }
.duty-guide-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:14px; padding-top:14px; border-top:1px solid #d7e7f0; }
.duty-guide-fields > div { padding:13px 14px; border-radius:15px; background:#fff; border:1px solid #dce8f0; }
.duty-guide-fields b { display:block; margin-bottom:5px; color:#0369a1; }
.duty-guide-scenarios { margin-top:14px; padding:16px; border:1px dashed #9ccbe2; border-radius:18px; background:#f8feff; }
.duty-guide-scenarios > b { display:block; margin-bottom:10px; color:#0f172a; }
.duty-guide-scenarios div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.duty-guide-scenarios span { display:block; padding:12px 14px; border-radius:14px; background:#eaf8ff; color:#42526b; line-height:1.5; }
.duty-guide-scenarios strong { display:block; margin-bottom:4px; color:#0f172a; }
.duty-question-panel { padding:18px; border:1px solid #cfe2ef; border-radius:18px; background:linear-gradient(145deg,#f8fbff,#f3fbf8); }
.duty-question-panel h3 { margin:0 0 13px; }
.duty-question-list { display:grid; gap:9px; }
.duty-question-row { display:grid; grid-template-columns:34px minmax(0,1fr) 180px; gap:10px; align-items:end; }
.duty-question-row > span { display:grid; place-items:center; width:34px; height:34px; margin-bottom:3px; border-radius:11px; background:#e0f2fe; color:#0369a1; font-weight:900; }
.duty-evidence { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.duty-evidence > span { padding:13px; border:1px solid #d9e6ef; border-radius:14px; background:#f8fbff; }
.duty-evidence b { display:block; margin-bottom:5px; color:#64748b; font-size:12px; }
.duty-answer-list { display:grid; gap:10px; margin-bottom:18px; }
.duty-answer-row { display:grid; grid-template-columns:minmax(0,1fr) 180px; gap:16px; align-items:center; padding:14px 16px; border:1px solid #d8e6ef; border-radius:15px; background:#fff; }
.duty-answer-row small { display:block; margin-top:4px; color:#64748b; }
.duty-check-form { max-width:1100px; }
.duty-view-switch { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.duty-report-filters { margin-top:18px; padding-top:18px; border-top:1px solid #dce7f0; }
.duty-report-filters .check-field { align-self:end; min-height:46px; }
.duty-report-results .table-wrap { overflow:auto; }
.duty-report-results table { min-width:1780px; }
.duty-report-results td small { display:block; margin-top:3px; color:#64748b; white-space:nowrap; }
.duty-answer-summary { display:block; max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.duty-report-results .report-pager { margin-top:16px; }
@media (max-width:1100px) { .duty-guide-flow,.duty-guide-fields,.duty-guide-scenarios div { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:900px) { .duty-question-row { grid-template-columns:34px 1fr; } .duty-question-row label:last-child { grid-column:2; } .duty-evidence { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:620px) { .duty-answer-row,.duty-evidence,.duty-guide-flow,.duty-guide-fields,.duty-guide-scenarios div { grid-template-columns:1fr; } }

/* Venue management and commercial extension boundary */
.venue-hero { background:linear-gradient(135deg,#12345b,#0e7490 56%,#0f766e); color:#fff; }
.venue-hero .eyebrow,.venue-hero p { color:#dff8ff; }
.venue-module .table-wrap { max-height:520px; }
.extension-overview { border-color:#a7e3d3; background:linear-gradient(135deg,#f0fdf7,#eff9ff); }
.extension-overview h2,.extension-card h2 { margin:10px 0 7px; }
.extension-overview p,.extension-card p { margin:0; color:#526176; line-height:1.65; }
.extension-card { border:1px dashed #a9bfd6; background:linear-gradient(145deg,#fff,#f7faff); }
.extension-badge { display:inline-flex; padding:6px 10px; border-radius:999px; background:#dcfce7; color:#047857; font-size:12px; font-weight:850; }
.extension-badge.paid { background:#e8efff; color:#1d4ed8; }
.duty-extension { margin-top:4px; }
.wechat-extension-card { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr); gap:22px; align-items:center; border-style:dashed; background:linear-gradient(135deg,#fff,#f4fbf8); }
.wechat-extension-card h2 { margin:10px 0 7px; }
.wechat-extension-card p { margin:0; color:#526176; line-height:1.6; }
.wechat-extension-contract { display:grid; gap:7px; padding:15px 17px; border:1px solid #bfe4d8; border-radius:15px; background:#f0fdf7; }
.wechat-extension-contract b { color:#047857; }
.wechat-extension-contract span { color:#334155; line-height:1.55; }
.wechat-extension-contract small { color:#64748b; }
@media (max-width:760px) { .venue-hero { align-items:flex-start; flex-direction:column; } .venue-hero .hero-actions { width:100%; } .venue-hero .hero-actions button { flex:1; } }
@media (max-width:820px) { .wechat-extension-card { grid-template-columns:1fr; } }

/* Global device map */
.hero-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; flex-wrap:wrap; }
.device-view-switch { display:flex; padding:4px; border:1px solid #c9dce8; border-radius:13px; background:#edf5f8; }
.device-view-switch button { border:0; background:transparent; box-shadow:none; color:#557083; }
.device-view-switch button.active { background:#fff; color:#075985; box-shadow:0 4px 12px #0f27451a; }
.device-map-summary { margin-top:16px; }
.device-map-card { overflow:hidden; padding:0; box-shadow:0 22px 55px #163d5c1f; }
.device-map-toolbar { margin-bottom:0; padding:18px 20px; border-bottom:1px solid #d7e5ed; }
.device-map-toolbar h2 { margin:0 0 4px; }
.device-map-toolbar-actions { display:flex; align-items:end; justify-content:flex-end; gap:16px; margin-left:auto; }
.device-map-toolbar-actions .filters { flex-wrap:nowrap; }
.device-map-fullscreen { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:42px; border-color:#9fc9dc; background:#f7fbfd; color:#075985; font-weight:850; white-space:nowrap; }
.device-map-fullscreen:hover { border-color:#38a3c7; background:#eaf7fb; color:#0c4a6e; }
.device-map-fullscreen[aria-pressed="true"] { border-color:#0e7490; background:#0e7490; color:#fff; }
.device-map-workspace { display:grid; grid-template-columns:minmax(0,1fr) 330px; min-height:610px; background:#e7f0f4; }
.device-map-canvas-wrap { position:relative; min-width:0; }
.device-map-canvas { width:100%; height:610px; background:linear-gradient(135deg,#dcebf1,#c7dce6); animation:device-map-canvas-in .38s ease-out both; }
.device-map-legend { position:absolute; z-index:500; right:14px; bottom:14px; display:flex; gap:12px; padding:9px 12px; border:1px solid #ffffffb8; border-radius:999px; background:linear-gradient(135deg,#fffffff2,#f4faffea); color:#385365; font-size:12px; font-weight:800; box-shadow:0 10px 30px #0f27452e; }
.device-map-legend span { display:flex; align-items:center; gap:6px; }
.device-map-status { display:inline-block; width:10px; height:10px; flex:0 0 10px; border:2px solid #fff; border-radius:50%; box-shadow:0 0 0 1px #64748b55; }
.device-map-status.online { background:#16a34a; fill:#16a34a; }
.device-map-status.offline { background:#ef4444; fill:#ef4444; }
.device-map-marker { position:absolute; border:0; background:transparent; }
.device-map-marker-pulse,.device-map-marker-core { position:absolute; left:50%; top:50%; display:block; border-radius:50%; transform:translate(-50%,-50%); }
.device-map-marker-pulse { width:30px; height:30px; border:1px solid #16a34a66; background:#16a34a24; }
.device-map-marker-core { width:17px; height:17px; border:3px solid #fff; background:#16a34a; box-shadow:0 3px 12px #0f513c66; transition:width .2s ease,height .2s ease,box-shadow .2s ease; }
.device-map-marker.online .device-map-marker-pulse { animation:device-map-online-pulse 2.2s ease-out infinite; }
.device-map-marker.offline .device-map-marker-pulse { border-color:#ef444477; background:#ef444424; }
.device-map-marker.offline .device-map-marker-core { background:#ef4444; box-shadow:0 3px 12px #7f1d1d52; }
.device-map-marker.active .device-map-marker-pulse { width:34px; height:34px; border:2px solid #2563ebaa; background:#3b82f622; animation:none; }
.device-map-marker.active .device-map-marker-core { width:21px; height:21px; box-shadow:0 0 0 5px #ffffffa8,0 6px 18px #1d4ed86b; }
@keyframes device-map-online-pulse { 0% { opacity:.85; transform:translate(-50%,-50%) scale(.72); } 72%,100% { opacity:0; transform:translate(-50%,-50%) scale(1.38); } }
@keyframes device-map-canvas-in { from { opacity:.35; } to { opacity:1; } }
.device-map-side { display:grid; grid-template-rows:auto minmax(0,1fr) auto; min-width:0; border-left:1px solid #c9dce6; background:#fff; }
.device-map-side-head { display:flex; align-items:center; justify-content:space-between; padding:16px 18px; border-bottom:1px solid #dce8ee; }
.device-map-side-head span { min-width:28px; padding:4px 8px; border-radius:999px; background:#e0f2fe; color:#0369a1; text-align:center; font-weight:900; }
.device-map-device-list { min-height:0; overflow:auto; padding:10px 12px; background:linear-gradient(180deg,#fff,#f8fbfd); }
.device-map-device { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; align-items:center; margin:5px 0; padding:10px 9px; border:1px solid #e2ebf1; border-left:3px solid #94a3b8; border-radius:14px; background:linear-gradient(135deg,#fff,#f9fcfd); box-shadow:0 3px 12px #17384b0a; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.device-map-device.online { border-left-color:#16a34a; }
.device-map-device.offline { border-left-color:#ef4444; }
.device-map-device:hover { transform:translateY(-1px); border-color:#bfd5e1; box-shadow:0 9px 22px #17384b16; }
.device-map-device.active { border-color:#7fb0e8; border-left-color:#2563eb; background:linear-gradient(135deg,#eef6ff,#f8fbff); box-shadow:0 0 0 2px #dbeafe,0 12px 26px #1d4ed81c; }
.device-map-device > button:first-child { display:grid; grid-template-columns:auto minmax(0,1fr); gap:9px; align-items:center; min-width:0; border:0; background:transparent; box-shadow:none; color:#17384b; text-align:left; }
.device-map-device > button:last-child { padding:7px 9px; font-size:11px; }
.device-map-device span,.device-map-device b,.device-map-device small { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.device-map-device small { margin-top:3px; color:#78909f; }
.device-map-unpositioned { padding:14px 18px; border-top:1px solid #dce8ee; background:#fff8e8; color:#7c5b16; }
.device-map-unpositioned p,.device-map-unpositioned span { display:block; margin:5px 0 0; font-size:11px; }
.device-map-attribution { margin:0; padding:8px 16px; border-top:1px solid #d7e5ed; background:#f8fbfc; color:#64748b; font-size:11px; text-align:right; }
.device-map-attribution a { color:#0369a1; }
.device-map-popup { display:grid; gap:3px; min-width:150px; color:#334155; }
.device-map-popup b { color:#0f172a; font-size:14px; }
.device-map-popup span { font-size:11px; }
.device-map-popup strong { margin-top:5px; font-size:11px; }.device-map-popup strong.online { color:#15803d; }.device-map-popup strong.offline { color:#dc2626; }
.device-map-canvas .leaflet-popup-content-wrapper { border:1px solid #d7e5ed; border-radius:16px; box-shadow:0 16px 42px #0f274538; }
.device-map-canvas .leaflet-popup-content { margin:14px 16px; }
.device-map-canvas .leaflet-popup-tip { box-shadow:3px 3px 8px #0f27451f; }
.device-map-canvas .leaflet-tooltip { padding:7px 10px; border:1px solid #d7e5ed; border-radius:9px; background:#fffffff4; color:#17384b; font-weight:800; box-shadow:0 8px 22px #0f274524; }
.device-map-unavailable { display:grid; width:100%; height:100%; place-content:center; justify-items:center; gap:7px; padding:30px; color:#526d7d; text-align:center; }
.device-map-unavailable > span { font-size:44px; }.device-map-unavailable small { color:#78909f; }
body.device-map-kiosk { overflow:hidden; }
.device-map-card:fullscreen,.device-map-card.kiosk-mode { display:grid; grid-template-rows:auto minmax(0,1fr) auto; width:100vw; height:100vh; margin:0; border:0; border-radius:0; background:#fff; }
.device-map-card.kiosk-mode { position:fixed; inset:0; z-index:10000; }
.device-map-card:fullscreen .device-map-workspace,.device-map-card.kiosk-mode .device-map-workspace { min-height:0; height:100%; }
.device-map-card:fullscreen .device-map-canvas,.device-map-card.kiosk-mode .device-map-canvas { height:100%; min-height:0; }
.device-map-card:fullscreen .device-map-side,.device-map-card.kiosk-mode .device-map-side { min-height:0; }
.device-location-editor { overflow:hidden; border:1px solid #cfdee7; border-radius:16px; background:#f7fbfc; }
.device-location-editor .toolbar { padding:12px 14px; }.device-location-editor .toolbar span { display:block; margin-top:3px; }
.device-location-picker { width:100%; height:360px; border-top:1px solid #cfdee7; background:#dcebf1; }
.device-picker-pin { position:absolute; }
.device-picker-pin span { display:block; width:26px; height:26px; border:4px solid #fff; border-radius:50% 50% 50% 0; background:#0284c7; box-shadow:0 5px 14px #0f274566; transform:rotate(-45deg); }
.device-picker-pin span::after { content:""; position:absolute; left:7px; top:7px; width:5px; height:5px; border-radius:50%; background:#fff; }
@media (max-width:1050px) { .device-map-workspace { grid-template-columns:1fr; }.device-map-side { max-height:430px; border-top:1px solid #c9dce6; border-left:0; }.device-map-canvas { height:520px; }.device-map-card:fullscreen .device-map-workspace,.device-map-card.kiosk-mode .device-map-workspace { grid-template-rows:minmax(0,1fr) minmax(180px,34vh); }.device-map-card:fullscreen .device-map-side,.device-map-card.kiosk-mode .device-map-side { max-height:none; } }
@media (max-width:760px) { .hero-actions { align-items:stretch; flex-direction:column; width:100%; }.device-view-switch { width:100%; }.device-view-switch button { flex:1; }.device-map-toolbar { align-items:stretch; flex-direction:column; }.device-map-toolbar-actions { align-items:stretch; flex-direction:column; margin-left:0; }.device-map-toolbar-actions .filters,.device-map-toolbar .filters,.device-map-toolbar label,.device-map-toolbar input,.device-map-toolbar select { width:100%; }.device-map-canvas { height:430px; }.device-map-device { grid-template-columns:1fr; }.device-map-device > button:last-child { width:100%; }.device-location-picker { height:300px; }.device-map-card:fullscreen .device-map-toolbar,.device-map-card.kiosk-mode .device-map-toolbar { padding:10px 12px; }.device-map-card:fullscreen .device-map-toolbar > div:first-child span,.device-map-card.kiosk-mode .device-map-toolbar > div:first-child span { display:none; }.device-map-card:fullscreen .device-map-toolbar-actions,.device-map-card.kiosk-mode .device-map-toolbar-actions { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:end; }.device-map-card:fullscreen .device-map-toolbar-actions .filters,.device-map-card.kiosk-mode .device-map-toolbar-actions .filters { display:grid; grid-template-columns:minmax(0,1fr) minmax(110px,.45fr); }.device-map-card:fullscreen .device-map-fullscreen,.device-map-card.kiosk-mode .device-map-fullscreen { width:auto; }.device-map-card:fullscreen .device-map-workspace,.device-map-card.kiosk-mode .device-map-workspace { grid-template-rows:minmax(0,1fr) minmax(150px,30vh); } }
@media (prefers-reduced-motion:reduce) { .device-map-marker-pulse { animation:none !important; }.device-map-canvas,.device-map-device,.device-map-marker { animation:none !important; transition:none !important; } }

/* Access-control electronic map */
.emap-hero { background:linear-gradient(135deg,#082f49,#075985 52%,#0f766e); color:#fff; }
.emap-hero .eyebrow,.emap-hero p { color:#d8f7ff; }
.emap-workspace { overflow:hidden; border:1px solid #bcd8e8; border-radius:24px; background:#071827; box-shadow:0 22px 60px #0f27452e; color:#e5f4ff; }
.emap-workspace:fullscreen,.emap-workspace.kiosk-mode { width:100vw; height:100vh; border:0; border-radius:0; background:#061421; }
.emap-workspace:fullscreen .emap-layout,.emap-workspace.kiosk-mode .emap-layout { height:calc(100vh - 84px); }
.emap-toolbar { display:flex; align-items:end; gap:12px; padding:14px 18px; border-bottom:1px solid #18435b; background:linear-gradient(90deg,#091b2d,#0a293c); }
.emap-toolbar label { display:grid; gap:5px; color:#a8c4d6; font-size:11px; font-weight:800; }
.emap-toolbar select,.emap-toolbar input { min-width:180px; min-height:39px; border-color:#31556d; background:#10283b; color:#effaff; }
.emap-toolbar label:nth-child(2) { flex:1; }
.emap-toolbar label:nth-child(2) input { width:100%; }
.emap-legend { display:flex; gap:12px; margin-left:auto; padding:8px 12px; border:1px solid #294d62; border-radius:999px; background:#0a2234; font-size:12px; white-space:nowrap; }
.emap-legend .online { color:#4ade80; }.emap-legend .offline { color:#94a3b8; }.emap-legend .denied { color:#fb7185; }
.emap-layout { display:grid; grid-template-columns:minmax(0,1fr) 390px; min-height:650px; }
.emap-canvas-wrap { min-width:0; padding:18px; background:radial-gradient(circle at 30% 20%,#0c3650,#071827 70%); }
.emap-canvas { position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; border:1px solid #2b617b; border-radius:20px; background:#eef5f8; box-shadow:inset 0 0 0 1px #ffffff10,0 15px 36px #0006; }
.emap-background { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:#f8fafc; user-select:none; pointer-events:none; }
.emap-placeholder { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:12px; color:#5c7182; text-align:center; background:linear-gradient(135deg,#eef6f9,#dceaf0); }
.emap-placeholder > span { font-size:64px; opacity:.65; }
.emap-placeholder button { width:max-content; }
.emap-no-map { background:#10283b; }.emap-no-map .emap-placeholder { background:linear-gradient(135deg,#10283b,#14374c); color:#b7d0df; }
.emap-marker { position:absolute; z-index:2; display:grid; grid-template-columns:32px minmax(70px,auto); grid-template-rows:auto auto; gap:0 7px; align-items:center; max-width:190px; padding:7px 10px 7px 7px; border:2px solid #64748b; border-radius:14px; background:#10283bee; color:#eaf7ff; box-shadow:0 8px 22px #00182775; transform:translate(-50%,-50%); cursor:pointer; }
.emap-marker > span { grid-row:1/3; display:grid; width:32px; height:32px; place-items:center; border-radius:10px; background:#334155; font-size:16px; }
.emap-marker b,.emap-marker small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:left; }.emap-marker b { font-size:12px; }.emap-marker small { color:#9db6c6; font-size:9px; }
.emap-marker.online { border-color:#22c55e; }.emap-marker.online > span { background:#14532d; }.emap-marker.offline { opacity:.78; }
.emap-marker.denied { border-color:#fb7185; animation:emapAlarm 1.3s ease-in-out infinite; }.emap-marker.denied > span { background:#7f1d1d; color:#fff; font-weight:900; }
.emap-marker.selected { z-index:4; outline:3px solid #38bdf866; transform:translate(-50%,-50%) scale(1.06); }
.emap-marker[draggable="true"] { cursor:grab; }.emap-marker[draggable="true"]:active { cursor:grabbing; }
@keyframes emapAlarm { 50% { box-shadow:0 0 0 9px #fb718526,0 8px 24px #0008; } }
.emap-empty-overlay { position:absolute; left:50%; top:50%; padding:10px 14px; border-radius:12px; background:#0f2941d9; color:#d9edf7; transform:translate(-50%,-50%); }
.emap-drag-help { margin:10px 4px 0; color:#8fb0c4; font-size:12px; }
.emap-side { display:grid; grid-template-rows:auto minmax(0,1fr); min-width:0; border-left:1px solid #18435b; background:#091b2d; }
.emap-detail,.emap-event-feed { padding:18px; }.emap-detail { border-bottom:1px solid #18435b; }
.emap-side h2 { color:#f0f9ff; }.emap-side .muted { color:#8ca8ba; }
.emap-live-person { display:grid; grid-template-columns:88px minmax(0,1fr); gap:14px; align-items:center; margin-top:14px; }
.emap-live-person .person-avatar,.emap-door-icon { width:88px; height:112px; border:2px solid #38bdf8; border-radius:16px; object-fit:cover; }
.emap-door-icon { display:grid; place-items:center; height:88px; background:#0d3349; font-size:36px; }
.emap-live-person h3 { margin:8px 0 3px; color:#fff; font-size:21px; }.emap-live-person p,.emap-live-person small { display:block; margin:0; color:#9db5c5; }
.emap-control-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:15px; }.emap-control-actions button { border-color:#37647c; background:#102c42; color:#edfaff; }.emap-control-actions button.primary { background:linear-gradient(135deg,#2563eb,#06b6d4); }
.emap-event-feed { min-height:0; }.emap-event-list { display:grid; gap:8px; max-height:440px; overflow:auto; padding-right:4px; }
.emap-event { display:grid; grid-template-columns:30px minmax(0,1fr) auto; gap:9px; align-items:center; width:100%; padding:10px; border:1px solid #294b60; border-radius:13px; background:#102538; color:#e8f6ff; text-align:left; }
.emap-event > span { display:grid; width:28px; height:28px; place-items:center; border-radius:9px; background:#14532d; color:#4ade80; }.emap-event.denied > span { background:#7f1d1d; color:#fda4af; }
.emap-event b,.emap-event small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.emap-event small,.emap-event time { color:#8da9ba; font-size:10px; }
.capability-permissions small { display:block; margin-top:3px; color:#64748b; font-weight:500; }
@media (max-width:1100px) { .emap-layout { grid-template-columns:1fr; }.emap-side { grid-template-columns:1fr 1fr; grid-template-rows:auto; border-left:0; border-top:1px solid #18435b; }.emap-detail { border-bottom:0; border-right:1px solid #18435b; } }
@media (max-width:760px) { .emap-toolbar { align-items:stretch; flex-direction:column; }.emap-toolbar label,.emap-toolbar select,.emap-toolbar input { width:100%; }.emap-legend { margin-left:0; }.emap-layout { min-height:0; }.emap-side { grid-template-columns:1fr; }.emap-detail { border-right:0; border-bottom:1px solid #18435b; }.emap-marker { grid-template-columns:28px minmax(55px,auto); padding:5px; }.emap-marker > span { width:28px; height:28px; }.emap-marker small { display:none; } }
