:root {
  color-scheme: light;
  --ink: #17333a;
  --muted: #64777a;
  --teal: #0b7568;
  --teal-strong: #075d54;
  --mint: #e9f5f1;
  --line: #dbe6e3;
  --paper: #f4f7f5;
  --white: #fff;
  --amber: #a7690b;
  --amber-soft: #fff1d8;
  --red: #b73c3c;
  --shadow: 0 14px 36px rgb(25 64 61 / 10%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, a { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100%, 520px); min-height: 100vh; margin: 0 auto; padding: 24px 20px 112px; background: var(--paper); }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.brand { display: block; color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: .11em; }
h1 { margin: 3px 0 0; font-size: 28px; letter-spacing: -.035em; }
.icon-button { position: relative; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); color: var(--teal); }
.notification-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #e86b4f; border: 2px solid white; }
.person-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.person-row div:nth-child(2) { display: grid; gap: 3px; flex: 1; }
.person-row span { color: var(--muted); font-size: 13px; }
.avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #d5ebe5; color: var(--teal-strong); font-weight: 800; }
.badge { padding: 7px 10px; border-radius: 999px; font-weight: 700; font-size: 12px !important; }
.badge.online { color: var(--teal-strong); background: #dff1eb; }
.badge.offline { color: var(--amber); background: var(--amber-soft); }
.install-panel { position: relative; display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; margin: -4px 0 16px; padding: 12px 34px 12px 12px; border: 1px solid #cfe4de; border-radius: 16px; background: #eef8f5; box-shadow: 0 8px 24px rgb(24 57 50 / 7%); }
.install-panel[hidden] { display: none; }
.install-panel img { width: 42px; height: 42px; border-radius: 11px; }
.install-panel div { display: grid; gap: 3px; }
.install-panel strong { font-size: 13px; }
.install-panel span { color: var(--muted); font-size: 11px; line-height: 1.3; }
.install-panel > button { min-height: 34px; padding: 0 10px; border: 0; border-radius: 10px; color: white; background: var(--teal); font-size: 11px; font-weight: 800; }
.install-panel #installDismiss { position: absolute; top: 2px; right: 3px; min-height: 28px; padding: 0 8px; color: var(--muted); background: transparent; font-size: 18px; }
.project-card, .status-card, .today { background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.project-card { padding: 20px; margin-bottom: 14px; background: linear-gradient(135deg, #e3f3ee 0%, #f8fbfa 72%); }
.eyebrow, .status-label { color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: .11em; }
.project-card select { width: 100%; margin: 7px 0; padding: 0; border: 0; color: var(--ink); background: transparent; font-size: 19px; font-weight: 800; }
.project-card p, .status-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.location-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgb(11 117 104 / 14%); color: var(--teal-strong); font-size: 13px; font-weight: 650; }
.status-card { padding: 24px 20px 20px; text-align: center; }
.timer { margin: 12px 0 4px; font-variant-numeric: tabular-nums; font-size: clamp(46px, 14vw, 64px); line-height: 1; font-weight: 760; letter-spacing: -.06em; }
.primary-action, .secondary-action { width: 100%; min-height: 56px; border-radius: 16px; font-weight: 800; border: 0; }
.primary-action { margin-top: 24px; color: white; background: var(--teal); box-shadow: 0 9px 20px rgb(11 117 104 / 22%); }
.primary-action.stop { background: var(--red); box-shadow: 0 9px 20px rgb(183 60 60 / 18%); }
.secondary-action { margin-top: 10px; color: var(--teal); background: transparent; border: 1px solid var(--teal); }
.sync-panel { margin: 14px 0; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; border-radius: 16px; color: var(--amber); background: var(--amber-soft); font-size: 13px; }
.sync-panel div { display: flex; gap: 8px; align-items: center; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgb(167 105 11 / 12%); }
.today { margin-top: 18px; padding: 20px; box-shadow: none; }
.section-heading { display: flex; align-items: center; justify-content: space-between; }
.section-heading h2 { margin: 0; font-size: 18px; }
.section-heading button { border: 0; background: none; color: var(--teal); font-weight: 750; }
.timeline-item { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; margin-top: 18px; }
.timeline-item div { display: grid; gap: 3px; }
.timeline-item span, .timeline-item time { color: var(--muted); font-size: 12px; }
.timeline-mark { width: 9px; height: 9px; border-radius: 50%; background: #9fb0ad; }
.timeline-mark.active { background: var(--teal); }
.bottom-nav { position: fixed; z-index: 5; left: 50%; bottom: 0; width: min(100%, 520px); transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgb(255 255 255 / 94%); backdrop-filter: blur(15px); }
.bottom-nav button { display: grid; justify-items: center; gap: 4px; border: 0; background: transparent; color: #83918f; font-size: 10px; font-weight: 700; }
.bottom-nav button span { font-size: 21px; line-height: 1; }
.bottom-nav button.active { color: var(--teal); }
.profile-select { flex: 1; display: grid; gap: 2px; }.profile-select span { font-size: 11px; }.profile-select select { max-width: 240px; border: 0; background: transparent; color: var(--ink); font-weight: 750; }
.view { display: none; }.view.active { display: block; }
.panel { padding: 20px; margin-top: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; }.panel h2 { margin: 0 0 14px; font-size: 18px; }
.stack { display: grid; gap: 10px; margin-top: 14px; }.stack.compact { margin-top: 10px; }
.list-card { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px; border-radius: 15px; background: #f3f7f5; }.list-card strong { font-size: 14px; }.list-card span,.muted-text { color: var(--muted); font-size: 12px; }.list-card .state { grid-row: span 2; align-self: center; color: var(--teal); font-weight: 800; }.list-card.attention { background: var(--amber-soft); }
.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }.metric-grid div { padding: 16px 8px; text-align: center; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }.metric-grid strong { display: block; color: var(--teal); font-size: 26px; }.metric-grid span { color: var(--muted); font-size: 11px; }
.field { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--ink); }textarea.field { min-height: 92px; resize: vertical; }select[multiple].field { min-height: 120px; }.form-grid { display: grid; gap: 10px; }.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.primary-action.small { min-height: 49px; margin-top: 3px; }
.upload { display: block; padding: 14px; border: 1px dashed var(--teal); border-radius: 13px; color: var(--teal); text-align: center; font-weight: 750; }.upload input { display:none; }.segmented { display:flex; gap:3px; padding:3px; border-radius:10px; background:var(--paper); }.segmented button { border:0; padding:6px 8px; border-radius:8px; background:transparent; color:var(--muted); font-size:11px; }.segmented button.selected { color:var(--teal); background:white; font-weight:800; }
.toast { position:fixed; z-index:20; top:18px; left:50%; width:min(calc(100% - 32px),460px); transform:translateX(-50%); padding:14px 16px; border-radius:14px; color:white; background:var(--ink); box-shadow:var(--shadow); }
.decision-row { grid-column:1 / -1; display:flex; gap:8px; }.decision-row button { flex:1; padding:9px; border:1px solid var(--teal); border-radius:10px; color:var(--teal); background:white; font-weight:750; }
dialog { width: min(calc(100% - 32px), 440px); border: 0; border-radius: 24px; padding: 0; box-shadow: 0 20px 70px rgb(0 0 0 / 24%); }
dialog::backdrop { background: rgb(10 30 28 / 55%); backdrop-filter: blur(3px); }
dialog form { padding: 26px 22px 20px; text-align: center; }
dialog h2 { margin: 14px 0 8px; font-size: 22px; }
dialog p { margin: 0; color: var(--muted); }
.dialog-icon { width: 54px; height: 54px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--teal); font-size: 26px; font-weight: 900; }
@media (min-width: 760px) {
  body { background: #e8efec; }
  .shell { min-height: calc(100vh - 40px); margin-top: 20px; border-radius: 28px 28px 0 0; }
}
@media (max-width: 390px) {
  .install-panel { grid-template-columns: 38px 1fr; }
  .install-panel img { width: 38px; height: 38px; }
  .install-panel > button:not(#installDismiss) { grid-column: 1 / -1; }
}
@media (display-mode: standalone) {
  .install-panel { display: none !important; }
  .shell { padding-top: calc(18px + env(safe-area-inset-top)); }
}
@media (prefers-reduced-motion: no-preference) {
  button { transition: transform .14s ease, filter .14s ease; }
  button:active { transform: scale(.98); }
}

/* Visual system v2: mobile-first working surface */
:root {
  --ink: #172321;
  --muted: #6e7b77;
  --teal: #087667;
  --teal-strong: #075f54;
  --mint: #e8f5f0;
  --line: #dce6e2;
  --paper: #f3f6f4;
  --red: #c6463c;
  --shadow: 0 18px 45px rgb(24 57 50 / 9%);
}

body { min-width: 320px; background: #e8eeeb; }
.shell { padding: 26px 18px 118px; }
.topbar { align-items: flex-start; margin-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .16em; }
.brand i { width: 16px; height: 4px; border-radius: 4px; background: #ef6a3f; box-shadow: 8px 0 0 var(--teal); transform: skewX(-22deg); }
h1 { margin-top: 7px; font-size: 30px; line-height: 1.05; font-weight: 800; }
.today-label { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.icon-button { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; box-shadow: 0 8px 24px rgb(27 52 47 / 6%); }
.icon-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-dot { top: 10px; right: 10px; }
.person-row { min-height: 62px; margin-bottom: 15px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 18px; background: rgb(255 255 255 / 72%); }
.avatar { width: 42px; height: 42px; border-radius: 14px; }
.profile-select select { max-width: 230px; font-size: 13px; }
.badge { white-space: nowrap; }

.project-card { position: relative; overflow: hidden; padding: 20px; border: 0; border-radius: 24px; color: white; background: linear-gradient(145deg, #096d61 0%, #07594f 100%); box-shadow: 0 18px 42px rgb(7 95 84 / 20%); }
.project-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -80px; top: -90px; border: 34px solid rgb(255 255 255 / 5%); border-radius: 50%; }
.project-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.project-card .eyebrow { color: #bde2d8; }
.assignment-chip { padding: 5px 8px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 999px; color: #d9efe9; background: rgb(255 255 255 / 8%); font-size: 10px; font-weight: 750; }
.select-wrap { position: relative; z-index: 1; padding-right: 22px; }
.select-wrap::after { content: "⌄"; position: absolute; right: 0; top: 9px; color: #bde2d8; font-size: 20px; pointer-events: none; }
.project-card select { appearance: none; margin: 8px 0 5px; color: white; font-size: 21px; line-height: 1.25; }
.project-card select option { color: var(--ink); background: white; }
.project-card p { position: relative; z-index: 1; color: #c8ded8; }
.location-note { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; margin-top: 17px; padding-top: 15px; border-top-color: rgb(255 255 255 / 13%); color: white; }
.location-note > span:last-child { display: grid; gap: 2px; }
.location-note strong { font-size: 12px; }
.location-note small { color: #b8d4cc; font-size: 10px; }
.location-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; background: rgb(255 255 255 / 11%); font-size: 17px; }

.status-card { position: relative; margin-top: 14px; padding: 25px 20px 20px; border: 0; border-radius: 24px; box-shadow: var(--shadow); }
.status-orbit { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 50%; background: var(--mint); }
.status-orbit span { width: 15px; height: 15px; border: 4px solid white; border-radius: 50%; background: #9eaaa7; box-shadow: 0 0 0 1px #9eaaa7; }
.status-card[data-state="working"] .status-orbit span { background: #10a087; box-shadow: 0 0 0 1px #10a087, 0 0 0 8px rgb(16 160 135 / 10%); }
.status-card[data-state="break"] .status-orbit { background: var(--amber-soft); }
.status-card[data-state="break"] .status-orbit span { background: #d08a1b; box-shadow: 0 0 0 1px #d08a1b; }
.status-label { color: var(--muted); font-size: 10px; }
.timer { margin: 9px 0 8px; font-size: clamp(44px, 13vw, 62px); font-weight: 720; }
.status-card p { min-height: 20px; }
.primary-action, .secondary-action { min-height: 58px; border-radius: 17px; }
.primary-action { font-size: 15px; box-shadow: 0 12px 25px rgb(8 118 103 / 22%); }
.secondary-action { background: #f4faf8; }
.today { margin-top: 15px; padding: 19px; border: 0; border-radius: 24px; }
.section-kicker { color: var(--teal); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.section-heading h2 { margin-top: 3px; font-size: 17px; }
.section-heading button { padding: 8px 0 8px 8px; font-size: 12px; }
.list-card { padding: 14px 15px; border: 1px solid #e5ece9; border-radius: 16px; background: #f7f9f8; }
.list-card .inline-edit { grid-column: 1 / -1; width: max-content; margin-top: 7px; padding: 7px 9px; border: 1px solid var(--teal); border-radius: 9px; color: var(--teal); background: white; font-size: 9px; font-weight: 800; }

.bottom-nav { gap: 3px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 0; box-shadow: 0 -12px 38px rgb(29 55 50 / 9%); }
.bottom-nav button { min-height: 54px; gap: 3px; border-radius: 15px; }
.bottom-nav button span { width: 25px; height: 25px; display: grid; place-items: center; }
.bottom-nav svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav button.active { background: var(--mint); }

.calendar-hero { padding-bottom: 16px; }
.calendar-modes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.calendar-modes button { min-height: 36px; }
.calendar-date-input { margin-top: 12px; font-weight: 750; }
.calendar-picker[hidden] { display: none; }
.week-picker { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; margin-top: 13px; }
.calendar-day { min-width: 0; padding: 8px 2px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: white; }
.calendar-day small { display: block; overflow: hidden; font-size: 9px; text-transform: uppercase; }
.calendar-day strong { display: block; margin-top: 5px; color: var(--ink); font-size: 14px; }
.calendar-day.active { border-color: var(--teal); background: var(--teal); }
.calendar-day.active small,.calendar-day.active strong { color: white; }
.month-picker { margin-top: 14px; }
.month-title { margin-bottom: 12px; font-size: 14px; font-weight: 800; text-align: center; text-transform: capitalize; }
.month-weekdays,.month-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; text-align: center; }
.month-weekdays span { padding: 4px; color: var(--muted); font-size: 9px; font-weight: 800; }
.month-days button,.month-days i { aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: 10px; color: var(--ink); background: transparent; font-size: 12px; font-style: normal; }
.month-days button:hover { background: var(--mint); }
.month-days button.active { color: white; background: var(--teal); font-weight: 800; }
.field-label { display: grid; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 800; }
.field-label small { color: var(--muted); font-size: 10px; font-weight: 500; }
.field-label .field { font-weight: 500; }
.form-note { margin: 0; padding: 10px 12px; border-radius: 12px; color: var(--muted); background: #f3f7f5; font-size: 11px; line-height: 1.45; }
.assignment-team-tools { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.assignment-team-tools[hidden] { display: none; }
.assignment-team-tools .secondary-action { width: auto; min-width: 108px; margin: 0; padding-inline: 10px; }
.count-chip { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--teal); background: var(--mint); font-size: 12px; font-weight: 900; }
.assignment-card { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #fafcfb; }
.assignment-avatar { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: var(--teal-strong); background: var(--mint); font-size: 11px; font-weight: 900; }
.assignment-card div:nth-child(2) { display: grid; gap: 3px; }
.assignment-card strong { font-size: 13px; }
.assignment-card span { color: var(--muted); font-size: 11px; }
.assignment-card time { grid-column: 2; color: var(--teal); font-size: 11px; font-weight: 750; }
.assignment-actions { display: flex; grid-row: 1 / span 2; grid-column: 3; gap: 5px; }
.assignment-actions button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 10px; color: var(--teal); background: white; font-size: 14px; line-height: 1; }
.assignment-actions .assignment-delete { border-color: #e5c2be; color: var(--red); font-size: 19px; }
.assignment-day-group { display: grid; gap: 8px; }
.assignment-day-group + .assignment-day-group { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.assignment-day-group > header { display: flex; align-items: center; justify-content: space-between; padding: 0 3px; text-transform: capitalize; }
.assignment-day-group > header strong { font-size: 12px; }
.assignment-day-group > header span { min-width: 23px; padding: 3px 6px; border-radius: 7px; color: var(--teal); background: var(--mint); font-size: 9px; font-weight: 900; text-align: center; }
.history-card { padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: #fafcfb; }
.history-card header,.history-time { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.history-card header > div { min-width: 0; display: grid; gap: 3px; }
.history-card header span,.history-card p { color: var(--muted); font-size: 9px; }
.history-card header strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.history-card header em { padding: 4px 6px; border-radius: 7px; color: var(--muted); background: #edf1ef; font-size: 8px; font-style: normal; font-weight: 900; white-space: nowrap; }
.history-card header em.active { color: var(--teal); background: var(--mint); }
.history-time { margin-top: 12px; }
.history-time strong { font-size: 14px; }
.history-time span { color: var(--teal); font-size: 11px; font-weight: 800; }
.history-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 11px; }
.history-summary > span { display: grid; gap: 3px; padding: 9px; border-radius: 10px; background: #f0f5f2; }
.history-summary small { color: var(--muted); font-size: 8px; }
.history-summary strong { font-size: 12px; }
.history-card p { margin: 9px 0 0; }
.history-card.compact { padding: 12px; }
.history-card.compact .history-time { margin-top: 8px; }
.empty-state { padding: 28px 12px; display: grid; justify-items: center; gap: 7px; text-align: center; }
.empty-state > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: var(--teal); background: var(--mint); font-size: 24px; }
.empty-state strong { font-size: 14px; }
.empty-state p { max-width: 250px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.team-editor { margin: 16px 0 18px; padding: 14px; border-radius: 17px; background: #f5f8f7; }
.team-editor[hidden] { display: none; }
.check-row { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 12px; font-weight: 700; }
.check-row input { width: 18px; height: 18px; accent-color: var(--teal); }
.team-card { padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: #fafcfb; }
.team-card > div:first-child { display: grid; gap: 4px; }
.team-kind { width: max-content; padding: 4px 7px; border-radius: 7px; color: var(--teal); background: var(--mint); font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.team-card strong { margin-top: 3px; font-size: 14px; }
.team-card p { margin: 0; color: var(--muted); font-size: 11px; }
.team-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.team-actions button { min-height: 38px; border: 1px solid var(--teal); border-radius: 11px; color: var(--teal); background: white; font-size: 11px; font-weight: 800; }
.team-actions button:last-child { border-color: #e1b7b3; color: var(--red); }
.team-actions button.danger { border-color: #e1b7b3; color: var(--red); }
.employee-editor { margin: 14px 0 17px; padding: 14px; border-radius: 17px; background: #f5f8f7; }
.employee-card { display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: #fafcfb; }
.employee-card.inactive { opacity: .62; }
.employee-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: var(--teal-strong); background: var(--mint); font-size: 11px; font-weight: 900; }
.employee-card > div:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.employee-card strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.employee-card span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.employee-actions { display: flex; gap: 5px; }
.employee-actions button { width: 36px; height: 36px; border: 1px solid var(--teal); border-radius: 11px; color: var(--teal); background: white; font-size: 11px; font-weight: 900; }
.device-state { width: max-content; margin-top: 3px; padding: 3px 6px; border-radius: 6px; color: var(--muted); background: #edf1ef; font-size: 9px; font-style: normal; font-weight: 800; }
.device-state.ok { color: var(--teal); background: var(--mint); }
.device-state.wait { color: var(--amber); background: var(--amber-soft); }
.device-state.disabled { color: var(--red); background: #fbe7e5; }
.employee-dialog { display: grid; gap: 12px; padding: 25px 22px 20px; }
.employee-dialog h2 { margin: 0 0 4px; }
.qr-dialog { padding: 27px 22px 21px; text-align: center; }
.qr-print-brand { display: none; }
.qr-dialog h2 { margin: 7px 0 8px; }
.qr-dialog p { line-height: 1.45; }
.qr-dialog .qr-personnel { margin: 0; color: var(--muted); font-size: 12px; }
.qr-dialog img { width: min(100%, 260px); margin: 18px auto 10px; display: block; border: 10px solid white; border-radius: 16px; box-shadow: 0 8px 30px rgb(25 54 48 / 10%); }
.qr-dialog .qr-instruction { max-width: 290px; margin: 8px auto 12px; color: var(--ink); font-size: 12px; }
.qr-dialog small { display: block; color: var(--muted); font-size: 10px; line-height: 1.45; }
.qr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.qr-actions button { margin: 0; }
.request-card { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fafcfb; }
.request-card header { display: flex; justify-content: space-between; gap: 12px; }
.request-card header > div { display: grid; gap: 3px; }
.request-card header span,.request-card header small { color: var(--muted); font-size: 10px; }
.request-card header strong { font-size: 14px; }
.request-card > p { margin: 12px 0; padding: 10px 11px; border-radius: 10px; color: var(--muted); background: #f1f5f3; font-size: 11px; line-height: 1.45; }
.correction-change { display: grid; gap: 6px; margin-top: 12px; }
.correction-change > div { display: grid; grid-template-columns: minmax(88px,.7fr) 1.3fr; gap: 9px; align-items: start; padding: 8px 10px; border-radius: 10px; background: #f2f7f5; }
.correction-change span { color: var(--muted); font-size: 9px; }
.correction-change strong { font-size: 10px; line-height: 1.4; }
.request-status { height: max-content; padding: 5px 7px; border-radius: 8px; color: var(--amber); background: var(--amber-soft); font-size: 9px; font-style: normal; font-weight: 900; text-align: right; }
.request-status.approved { color: var(--teal); background: var(--mint); }
.request-status.rejected { color: var(--red); background: #fbe7e5; }
.photo-button { padding: 7px 0; border: 0; color: var(--teal); background: transparent; font-size: 11px; font-weight: 800; }
.request-photos { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.request-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.request-photos span { grid-column: 1/-1; color: var(--muted); font-size: 10px; }
.approval-track { display: grid; gap: 8px; margin: 12px 0; }
.approval-track div { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.approval-track i { width: 21px; height: 21px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 9px; font-style: normal; font-weight: 900; }
.approval-track .approved { color: var(--teal); }
.approval-track .approved i { border-color: var(--teal); color: white; background: var(--teal); }
.approval-track .rejected { color: var(--red); }
.decision-dialog { padding: 25px 22px 20px; text-align: center; }
.decision-dialog textarea { margin-top: 17px; text-align: left; }
.decision-preview { display: grid; gap: 4px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #f7faf8; text-align: left; }
.decision-preview > strong { font-size: 13px; }
.decision-preview > span { color: var(--muted); font-size: 10px; }
.request-details { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: #f7faf8; }
.anomaly-card { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid #f0d9b6; border-radius: 15px; background: #fff9ee; }
.anomaly-card > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--amber); background: var(--amber-soft); font-size: 15px; font-style: normal; font-weight: 900; }
.anomaly-card > div { display: grid; gap: 3px; }
.anomaly-card strong { font-size: 12px; }
.anomaly-card span,.anomaly-card small { color: var(--muted); font-size: 10px; }
.anomaly-card > button { padding: 7px 8px; border: 1px solid var(--amber); border-radius: 9px; color: #8a5a00; background: white; font-size: 9px; font-weight: 800; }
.anomaly-card.resolved { border-color: var(--line); background: #f5f8f7; }
.anomaly-card.resolved > i { color: var(--teal); background: var(--mint); }
.audit-card { display: grid; gap: 3px; padding: 12px 13px; border-left: 3px solid var(--teal); border-radius: 3px 13px 13px 3px; background: #f6f9f8; }
.audit-card span,.audit-card small { color: var(--muted); font-size: 10px; }
.audit-card strong { font-size: 12px; }
.sync-panel { cursor: pointer; }
.sync-panel.has-error { color: var(--red); background: #fbe9e7; }
.sync-panel.has-error .pulse { background: var(--red); box-shadow: 0 0 0 5px rgb(183 60 60 / 10%); }
.sync-dialog { max-height: min(80vh, 640px); overflow: auto; padding: 25px 22px 20px; }
.sync-dialog h2 { margin: 6px 0 14px; }
.sync-dialog article { display: grid; gap: 4px; margin-top: 8px; padding: 11px; border-radius: 12px; background: #f4f7f5; }
.sync-dialog article strong { font-size: 12px; }
.sync-dialog article span,.sync-dialog article small { color: var(--muted); font-size: 10px; }
.notification-dot[data-count]::after { content: attr(data-count); position: absolute; top: -7px; left: 7px; min-width: 15px; height: 15px; display: grid; place-items: center; padding: 0 3px; border-radius: 8px; color: white; background: #e86b4f; font-size: 8px; font-weight: 900; }
.notification-tools { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.notification-tools > button { border: 0; color: var(--teal); background: transparent; font-size: 11px; font-weight: 800; }
.notification-card { grid-template-columns: 28px 1fr auto; align-items: center; }
.notification-card > button { min-height: 34px; padding: 0 9px; border: 1px solid var(--teal); border-radius: 9px; color: var(--teal); background: white; font-size: 10px; font-weight: 800; }
.notification-card.unread > button { color: white; background: var(--teal); }
.notification-card { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #fafcfb; cursor: pointer; }
.notification-card > i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); background: #eef2f0; font-style: normal; font-weight: 900; }
.notification-card > div { display: grid; gap: 4px; }
.notification-card strong { font-size: 12px; }
.notification-card span,.notification-card time { color: var(--muted); font-size: 10px; line-height: 1.4; }
.notification-card.unread { border-color: #b7ddd4; background: #f1faf7; }

.activation-mode > .shell,.activation-mode > .bottom-nav { display:none; }
.activation-screen { min-height:100vh; display:grid; place-items:center; padding:24px; background:linear-gradient(155deg,#e8f5f0 0%,#f7faf8 52%,#e6efec 100%); }
.activation-card { width:min(100%,420px); padding:30px 24px 25px; border:1px solid rgb(8 118 103 / 13%); border-radius:28px; background:white; box-shadow:0 24px 70px rgb(24 57 50 / 14%); text-align:center; }
.activation-card .brand { justify-content:center; margin-bottom:25px; color:var(--teal); }
.activation-icon { width:68px; height:68px; display:grid; place-items:center; margin:0 auto 18px; border-radius:22px; color:white; background:linear-gradient(145deg,var(--teal),#0ca18c); box-shadow:0 14px 30px rgb(8 118 103 / 22%); font-size:31px; font-weight:900; }
.activation-card h1 { margin:7px 0 11px; font-size:27px; }
.activation-card p { margin:0 0 22px; color:var(--muted); font-size:13px; line-height:1.55; }
.activation-card small { display:block; margin-top:15px; color:var(--muted); font-size:10px; line-height:1.5; }
.notification-card.unread > i { color: white; background: var(--teal); }
.project-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 16px 0 12px; padding: 4px; border-radius: 12px; background: var(--paper); }
.project-tabs button { min-height: 35px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }
.project-tabs button.selected { color: var(--teal); background: white; box-shadow: 0 3px 10px rgb(28 61 55 / 6%); }
.project-create,.geofence-form { padding: 13px; border-radius: 16px; background: #f6f9f7; }
.project-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #fafcfb; }
.project-row > div { min-width: 0; display: grid; gap: 3px; }
.project-row span { width: max-content; padding: 3px 6px; border-radius: 6px; color: var(--teal); background: var(--mint); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.project-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.project-row small { color: var(--muted); font-size: 9px; }
.project-row > button,.geofence-card > button { padding: 8px; border: 1px solid var(--teal); border-radius: 9px; color: var(--teal); background: white; font-size: 9px; font-weight: 800; }
.geofence-card { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #fafcfb; }
.geofence-card > i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: var(--teal); background: var(--mint); font-size: 17px; font-style: normal; }
.geofence-card > div { min-width: 0; display: grid; gap: 3px; }
.geofence-card strong { font-size: 12px; }
.geofence-card span,.geofence-card small { color: var(--muted); font-size: 9px; }
.geofence-preview { --zone-size: 126px; min-height: 180px; display: grid; place-items: center; position: relative; overflow: hidden; border: 1px solid #d7e4df; border-radius: 16px; background: radial-gradient(circle at 20% 25%,#fff 0 2px,transparent 3px),linear-gradient(35deg,transparent 48%,#e4ece8 49% 51%,transparent 52%),linear-gradient(145deg,transparent 48%,#e4ece8 49% 51%,transparent 52%),#eef4f1; background-size: 33px 33px,52px 52px,60px 60px; }
.geofence-radius { width: var(--zone-size); height: var(--zone-size); display: grid; place-items: center; align-content: center; gap: 4px; border: 2px solid var(--teal); border-radius: 50%; color: var(--teal-strong); background: rgb(197 236 220 / 68%); box-shadow: 0 0 0 7px rgb(24 128 106 / 7%); transition: width .2s,height .2s; }
.geofence-radius i { font-size: 22px; font-style: normal; }
.geofence-radius strong { font-size: 11px; }
.geofence-preview > span { position: absolute; right: 8px; bottom: 8px; left: 8px; padding: 5px 8px; border-radius: 8px; color: var(--muted); background: rgb(255 255 255 / 88%); font-size: 9px; text-align: center; }
.google-panel { border-color: #cfded8; background: linear-gradient(180deg,#fff 0%,#f7fbf9 100%); }
.rules-panel { border-color: #d7e5df; }
.rules-note { margin: 12px 0; padding: 10px 11px; border-radius: 11px; color: var(--muted); background: #f3f7f5; font-size: 10px; line-height: 1.5; }
.setting-switch { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin: 12px 0; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.setting-switch > span { display: grid; gap: 4px; }
.setting-switch strong { font-size: 12px; }
.setting-switch small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.setting-switch input { position: absolute; opacity: 0; }
.setting-switch i { width: 44px; height: 25px; position: relative; border-radius: 20px; background: #ccd6d2; transition: .2s; }
.setting-switch i::after { content:""; width: 19px; height: 19px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgb(0 0 0 / 18%); transition: .2s; }
.setting-switch input:checked + i { background: var(--teal); }
.setting-switch input:checked + i::after { transform: translateX(19px); }
.connection-chip { padding: 5px 7px; border-radius: 8px; color: var(--amber); background: var(--amber-soft); font-size: 9px; font-weight: 900; white-space: nowrap; }
.google-note { margin: 14px 0; padding: 11px; border-left: 3px solid #f2bf49; border-radius: 3px 11px 11px 3px; color: var(--muted); background: #fffbef; font-size: 10px; line-height: 1.5; }
.sync-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 12px; }
.sync-metrics div { padding: 11px 5px; border: 1px solid var(--line); border-radius: 13px; background: white; text-align: center; }
.sync-metrics strong { display: block; color: var(--teal); font-size: 20px; }
.sync-metrics span { color: var(--muted); font-size: 9px; }
.google-panel .two-fields .secondary-action { min-height: 49px; margin-top: 3px; font-size: 10px; }
.google-panel .two-fields .primary-action { font-size: 10px; }
.sheet-card { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.sheet-card > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--teal); background: var(--mint); font-size: 13px; font-style: normal; font-weight: 900; }
.sheet-card > div { display: grid; gap: 3px; }
.sheet-card strong { font-size: 12px; }
.sheet-card span,.sheet-card small { color: var(--muted); font-size: 9px; }
.sheet-card small { color: var(--amber); }

@media (min-width: 760px) {
  .shell { min-height: calc(100vh - 32px); margin-top: 16px; padding-inline: 24px; border-radius: 30px 30px 0 0; box-shadow: 0 18px 70px rgb(30 53 49 / 10%); }
}

@media print {
  body > *:not(#qrDialog) { display: none !important; }
  #qrDialog { width: 100%; max-width: none; position: static; display: block; border: 0; background: white; }
  #qrDialog::backdrop { display: none; }
  .qr-dialog { width: 92mm; margin: 12mm auto; padding: 10mm; border: 1px solid #cad6d2; border-radius: 6mm; color: #17231f; }
  .qr-print-brand { display: flex; justify-content: center; margin-bottom: 10mm; color: #087667; }
  .qr-dialog img { width: 64mm; margin: 7mm auto 4mm; border: 0; border-radius: 0; box-shadow: none; }
  .qr-actions { display: none; }
}
