:root {
  --bg: #eef1f8;
  --bg-glow-a: rgba(79, 109, 245, 0.16);
  --bg-glow-b: rgba(34, 197, 155, 0.1);
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.28);
  --brand: #3b5bdb;
  --brand2: #7386ff;
  --brand-soft: #eef2ff;
  --green: #0f9f6e;
  --green-soft: #e7f8f1;
  --amber: #d97706;
  --amber-soft: #fff7e8;
  --danger: #dc4b4b;
  --danger-soft: #fff1f1;
  --nav: #0b1220;
  --nav-2: #121a2b;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius: 22px;
  --radius-sm: 14px;
  --ring: 0 0 0 4px rgba(59, 91, 219, 0.12);
  --font: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--bg-glow-a), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, var(--bg-glow-b), transparent 50%),
    linear-gradient(180deg, #f7f8fc 0%, var(--bg) 40%, #e9eef8 100%);
  min-width: 1024px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Seasonal theme: enabled by the server from 10–16 August in India time. */
body.theme-independence-week {
  --bg: #f4f6ef;
  --bg-glow-a: rgba(255, 153, 51, 0.2);
  --bg-glow-b: rgba(19, 136, 75, 0.16);
  --brand: #d96f16;
  --brand2: #13884b;
  --brand-soft: #fff2e3;
  --green: #08783d;
  --green-soft: #e8f7ee;
  --nav: #082f5b;
  --nav-2: #0b4938;
  --ring: 0 0 0 4px rgba(217, 111, 22, 0.16);
  background:
    radial-gradient(1000px 520px at 8% -8%, rgba(255, 153, 51, 0.22), transparent 58%),
    radial-gradient(900px 500px at 100% 0%, rgba(19, 136, 75, 0.17), transparent 54%),
    linear-gradient(180deg, #fffaf4 0%, #ffffff 42%, #f0f8f2 100%);
}

body.theme-independence-week::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 10000;
  height: 5px;
  pointer-events: none;
  background: linear-gradient(90deg, #ff9933 0 33.333%, #ffffff 33.333% 66.666%, #138808 66.666% 100%);
  box-shadow: 0 1px 0 rgba(0, 0, 128, 0.16);
}

body.theme-independence-week .sidebar {
  background:
    radial-gradient(480px 260px at 0% 0%, rgba(255, 153, 51, 0.3), transparent 62%),
    linear-gradient(180deg, var(--nav) 0%, var(--nav-2) 100%);
}

body.theme-independence-week .brand-mark {
  box-shadow: 0 10px 24px rgba(8, 47, 91, 0.28);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.muted { color: var(--muted); }
code.mono, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  letter-spacing: 0.01em;
}
.block { display: block; }

.kicker,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--brand);
  margin: 0 0 10px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand2));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(59, 91, 219, 0.35);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28), transparent 70%);
}

.brand strong,
.brand span { display: block; }

.brand strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand span {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
  font-weight: 600;
}

/* ── App shell ─────────────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: 268px 1fr;
  min-height: 100vh;
}

.sidebar {
  background:
    radial-gradient(500px 280px at 0% 0%, rgba(79, 109, 245, 0.22), transparent 60%),
    linear-gradient(180deg, var(--nav) 0%, var(--nav-2) 100%);
  color: #fff;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 268px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 20;
}

.sidebar-top { padding: 4px 8px 22px; }

.sidebar .brand span { color: #7c8aa0; }

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
  padding-right: 2px;
}

.nav-label {
  margin: 14px 12px 6px;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #66758c;
  font-weight: 800;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  color: #9eabc0;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.18s ease;
}

.sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.sidebar nav a.active {
  background: linear-gradient(135deg, rgba(79, 109, 245, 0.28), rgba(115, 134, 255, 0.12));
  color: #fff;
  border-color: rgba(115, 134, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.nav-ico {
  width: 22px;
  display: inline-grid;
  place-items: center;
  opacity: 0.85;
  font-size: 0.9rem;
}

.sidebar-user {
  margin-top: auto;
  padding: 14px 10px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02));
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e8edff, #dfe7ff);
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(59, 91, 219, 0.12);
}

.avatar.sm { width: 34px; height: 34px; border-radius: 10px; }
.avatar.md { width: 44px; height: 44px; border-radius: 14px; }
.avatar.lg { width: 56px; height: 56px; border-radius: 18px; }
.avatar.xl { width: 88px; height: 88px; border-radius: 28px; font-size: 1.8rem; }
.avatar.avatar-photo,
.avatar.avatar-preset { padding: 0; overflow: hidden; background: #e8edff; }
.avatar img,
.avatar svg { width: 100%; height: 100%; display: block; object-fit: cover; }

.user-copy { min-width: 0; flex: 1; }
.user-copy strong,
.user-copy span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-copy strong { font-size: 0.82rem; }
.user-copy span {
  font-size: 0.68rem;
  color: #7c8aa0;
  margin-top: 3px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #9eabc0;
  cursor: pointer;
  font-size: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  transition: 0.15s ease;
}
.icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.main-content {
  margin-left: 268px;
  padding: 30px 36px 64px;
  width: calc(100vw - 268px);
  min-height: 100vh;
}

/* ── Policy banner ─────────────────────────────────────── */
.policy-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  margin: 0 0 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef2ff, #f5f7ff);
  border: 1px solid rgba(165, 180, 252, 0.45);
  box-shadow: var(--shadow-sm);
}

.policy-banner-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand2));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
}

.policy-banner-copy strong {
  display: block;
  font-size: 0.84rem;
  color: #2a3f8f;
  margin-bottom: 3px;
}

.policy-banner-copy span {
  display: block;
  font-size: 0.8rem;
  color: #536078;
  line-height: 1.45;
  font-weight: 600;
}

.policy-banner-copy em {
  font-style: normal;
  color: var(--brand);
  font-weight: 800;
}

/* ── Topbar / cards ────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.topbar h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.topbar p { margin-top: 7px; }

.live-clock {
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  text-align: right;
  min-width: 140px;
}

.live-clock span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.live-clock strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel,
.status-card,
.metric,
.glass-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.status-card {
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #ffffff 48%, #f1f5f9);
  position: relative;
  overflow: hidden;
  border-width: 1px;
  border-left-width: 5px;
  border-left-color: #94a3b8;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.status-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -70px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.18), transparent 70%);
  pointer-events: none;
}

.status-card.status-idle {
  border-left-color: #94a3b8;
  background: linear-gradient(135deg, #fff 45%, #f8fafc);
}

.status-card.status-working {
  border-left-color: var(--green);
  background: linear-gradient(135deg, #ffffff 40%, #e7f8f1 100%);
  box-shadow: 0 16px 40px rgba(15, 159, 110, 0.12);
}

.status-card.status-working::before {
  background: radial-gradient(circle, rgba(15, 159, 110, 0.2), transparent 70%);
}

.status-card.status-break {
  border-left-color: var(--blue);
  background: linear-gradient(135deg, #ffffff 40%, #eff6ff 100%);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
}

.status-card.status-break::before {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 70%);
}

.status-card.status-lunch {
  border-left-color: var(--amber);
  background: linear-gradient(135deg, #ffffff 40%, #fff7e8 100%);
  box-shadow: 0 16px 40px rgba(217, 119, 6, 0.12);
}

.status-card.status-lunch::before {
  background: radial-gradient(circle, rgba(217, 119, 6, 0.18), transparent 70%);
}

.status-card.status-done {
  border-left-color: #64748b;
  background: linear-gradient(135deg, #ffffff 40%, #f1f5f9 100%);
}

.status-card h2 {
  font-size: 1.6rem;
  margin: 10px 0 4px;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.status-main { position: relative; z-index: 1; min-width: 0; }

.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: #edf1f7;
  color: #536078;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.status-idle .status-pill { background: #f1f5f9; color: #64748b; }

.status-working .status-pill,
.badge.good {
  background: var(--green-soft);
  color: #0b7a54;
  box-shadow: 0 0 0 4px rgba(15, 159, 110, 0.1);
  animation: pulse-soft 2.2s ease-in-out infinite;
}

.status-break .status-pill {
  background: var(--blue-soft);
  color: #1d4ed8;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.status-lunch .status-pill,
.badge.warn {
  background: var(--amber-soft);
  color: #a76b08;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

.status-done .status-pill {
  background: #e2e8f0;
  color: #475569;
}

.badge.admin {
  background: var(--brand-soft);
  color: #3b4fc9;
}

.badge.muted-badge {
  background: #f1f5f9;
  color: #8b93a0;
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 4px rgba(15, 159, 110, 0.08); }
  50% { box-shadow: 0 0 0 8px rgba(15, 159, 110, 0.14); }
}

.session-timer { text-align: right; position: relative; z-index: 1; }

.session-timer > span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.session-timer strong {
  display: block;
  font-size: 2.05rem;
  letter-spacing: -0.04em;
  margin-top: 4px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
}

.status-working .session-timer strong { color: #0b7a54; }
.status-break .session-timer strong { color: #1d4ed8; }
.status-lunch .session-timer strong { color: #b45309; }

.timer-sub {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.45);
}

.timer-sub span {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.timer-sub strong {
  font-size: 1.05rem !important;
  margin-top: 0 !important;
  font-family: var(--mono);
}

/* ── Metrics ───────────────────────────────────────────── */
.metric-grid {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.metric-grid.four { grid-template-columns: repeat(4, 1fr); }
.metric-grid.three { grid-template-columns: repeat(3, 1fr); }
.metric-grid.five { grid-template-columns: repeat(5, 1fr); }
.metric-grid.six { grid-template-columns: repeat(6, 1fr); }

.metric {
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  opacity: 0.55;
}

.metric-session::after { background: linear-gradient(90deg, #0f9f6e, #34d399); }
.metric-lunch::after { background: linear-gradient(90deg, #d97706, #fbbf24); }
.metric-break::after { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.metric-status-working::after { background: linear-gradient(90deg, #0f9f6e, #34d399); }
.metric-status-break::after { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.metric-status-lunch::after { background: linear-gradient(90deg, #d97706, #fbbf24); }
.metric-status-idle::after,
.metric-status-done::after { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.metric strong {
  display: block;
  font-size: 1.5rem;
  margin: 8px 0 6px;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.metric small { color: #94a3b8; font-weight: 600; }
.status-text { font-size: 1.12rem !important; }

/* ── Panels / tables ───────────────────────────────────── */
.panel {
  margin-top: 18px;
  padding: 22px 24px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.panel-head h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.panel-head .kicker { margin-bottom: 5px; }

.action-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.18s transform, 0.18s box-shadow, 0.18s background;
  letter-spacing: -0.01em;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #5d6ff0);
  color: white;
  box-shadow: 0 10px 24px rgba(59, 91, 219, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(59, 91, 219, 0.34);
}

.btn-success {
  background: linear-gradient(135deg, #0f9f6e, #14b882);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 159, 110, 0.28);
}

.btn-success:hover {
  box-shadow: 0 14px 28px rgba(15, 159, 110, 0.34);
}

.btn-info {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.btn-info:hover {
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.34);
}

.btn-amber {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

.btn-amber:hover {
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.34);
}

.btn-secondary {
  background: #eef2f8;
  color: #334155;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.btn-ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: #475569;
}

.btn-danger-soft {
  background: var(--danger-soft);
  color: #b63e3e;
  border: 1px solid #ffd6d6;
}

.btn-lg { padding: 13px 18px; }
.btn-xl { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 12px; font-size: 0.78rem; }

.timeline { display: flex; flex-direction: column; }

.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child { border-top: 0; }

.timeline-item.timeline-live {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.05), transparent 70%);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 12px;
}
.timeline-item strong,
.timeline-item small { display: block; }
.timeline-item small {
  color: var(--muted);
  margin-top: 3px;
  font-weight: 600;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.16);
}

.dot.green {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 159, 110, 0.14);
}
.dot.amber {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(217, 145, 20, 0.14);
}
.dot.blue {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(59, 91, 219, 0.14);
}

.timeline-duration {
  color: #475569;
  font-weight: 700;
  font-size: 0.82rem;
  font-family: var(--mono);
}

.table-panel {
  padding: 0;
  overflow: hidden;
}

.table-panel .panel-head { padding: 22px 24px 0; }

.table-wrap { overflow: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  white-space: nowrap;
}

thead th {
  border-top: 0;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.68rem;
  font-weight: 800;
  position: sticky;
  top: 0;
}

tbody tr {
  transition: background 0.15s ease;
}

tbody tr:hover { background: rgba(238, 242, 255, 0.45); }

.person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.person strong,
.person small { display: block; }

.person small {
  color: var(--muted);
  margin-top: 3px;
  font-weight: 600;
}

.empty {
  padding: 36px 28px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.filter-panel { padding: 18px 20px; }

.filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #5f6b7e;
  font-weight: 700;
  font-size: 0.75rem;
}

.filters input,
.filters select {
  min-width: 180px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  outline: none;
  transition: 0.15s border, 0.15s box-shadow;
}

.filters input:focus,
.filters select:focus {
  border-color: #93a4f5;
  box-shadow: var(--ring);
}

.alert {
  padding: 12px 14px;
  border-radius: 14px;
  margin: 12px 0 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.alert.danger {
  background: var(--danger-soft);
  color: #a73a3a;
  border: 1px solid #ffd6d6;
}

.alert.success {
  background: var(--green-soft);
  color: #0b7a54;
  border: 1px solid #c9efdd;
}

/* ── Auth ──────────────────────────────────────────────── */
.ems-announce {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 16px 18px;
  margin: 0 0 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8eb, #fff1d6);
  border: 1px solid #f0d9a4;
  box-shadow: 0 8px 22px rgba(217, 145, 20, 0.12);
}

.ems-announce-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #d99114, #f0b429);
  color: #fff;
  font-weight: 900;
}

.ems-announce-copy { min-width: 0; flex: 1; }

.ems-announce-copy strong {
  display: block;
  font-size: 0.98rem;
  color: #8a5a08;
  margin-bottom: 6px;
}

.ems-announce-copy p {
  margin: 0 0 12px;
  color: #7a5a20;
  font-size: 0.84rem;
  line-height: 1.55;
  font-weight: 600;
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8b95a7;
  line-height: 1.4;
}

.otp-input {
  letter-spacing: 0.35em;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  font-family: var(--mono);
}

.resend-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #fff;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 500px at 80% 10%, rgba(99, 120, 255, 0.35), transparent 55%),
    radial-gradient(700px 420px at 10% 90%, rgba(34, 197, 155, 0.22), transparent 50%),
    linear-gradient(155deg, #0b1220 0%, #152038 55%, #1b2d5c 100%);
  padding: 44px;
  color: white;
}

.visual-mesh,
.visual-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.visual-mesh {
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 40% 40%, #000 20%, transparent 75%);
  opacity: 0.7;
}

.visual-grid {
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08), transparent 40%);
}

.visual-content {
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.brand-light span { color: #9eabc1; }

.visual-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.4;
}

.orb-a {
  width: 460px;
  height: 460px;
  background: #6178ff;
  right: -180px;
  top: -110px;
}

.orb-b {
  width: 380px;
  height: 380px;
  background: #26b482;
  left: -170px;
  bottom: -150px;
}

.hero-copy {
  margin: auto 0;
  max-width: 640px;
}

.hero-copy h1 {
  font-size: 4rem;
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 12px 0 22px;
  font-weight: 800;
}

.hero-copy p,
.hero-notice {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #c5cee0;
  max-width: 560px;
  margin: 0;
  font-weight: 600;
}

.hero-notice {
  display: inline-block;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8edf8;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.visual-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 24px;
}

.pill-soft {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b8c4d8;
  font-size: 0.78rem;
  font-weight: 700;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 40px;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(79, 109, 245, 0.08), transparent 60%),
    linear-gradient(180deg, #f7f8fc, #eef2f8);
}

.auth-card {
  width: min(440px, 92%);
  padding: 8px;
}

.auth-card.wide { width: min(560px, 94%); }

.glass-card.auth-card,
.auth-card.glass-card {
  padding: 28px 28px 26px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  border-radius: 24px;
}

.auth-card h2 {
  font-size: 2.15rem;
  letter-spacing: -0.05em;
  margin: 0 0 8px;
  font-weight: 800;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 26px;
}

.form-stack label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #526078;
}

.form-stack input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
  background: white;
  outline: none;
  transition: 0.15s border, 0.15s box-shadow;
  font-weight: 600;
  color: var(--text);
}

.form-stack input:focus {
  border-color: #8ea1f4;
  box-shadow: var(--ring);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
  font-weight: 600;
}

.auth-footer a {
  color: var(--brand);
  font-weight: 800;
}

.mobile-brand { display: none; }

.register-layout { grid-template-columns: 0.85fr 1.15fr; }

.compact-visual .hero-copy h1 { font-size: 3.3rem; }

.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 400px at 20% 0%, var(--bg-glow-a), transparent 55%),
    var(--bg);
  padding: 40px;
}

.blocked-card {
  max-width: 520px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 42px;
  text-align: center;
}

.blocked-card h1 {
  font-size: 2rem;
  margin: 14px 0 8px;
  letter-spacing: -0.04em;
}

.device-check-card { min-height: 270px; }

.device-check-spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border: 5px solid #e0e7ff;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: device-check-spin 0.8s linear infinite;
}

.device-check-help {
  margin-top: 18px;
  color: #94a3b8 !important;
  font-size: 0.76rem;
}

.device-check-failed .device-check-spinner {
  border-color: var(--danger-soft);
  border-top-color: var(--danger);
  animation: none;
}

@keyframes device-check-spin { to { transform: rotate(360deg); } }

.blocked-card p {
  color: var(--muted);
  line-height: 1.7;
  font-weight: 600;
}

.blocked-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #eef1ff, #e0e7ff);
  color: var(--brand);
  font-size: 1.5rem;
  margin: auto;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(59, 91, 219, 0.12);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1250px) {
  .metric-grid.six { grid-template-columns: repeat(3, 1fr); }
  .metric-grid.five { grid-template-columns: repeat(3, 1fr); }
  .hero-copy h1 { font-size: 3.2rem; }
}

@media (max-width: 1050px) {
  body { min-width: 1024px; }
  .main-content { padding: 26px 24px; }
  .metric-grid.four { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   Modern attendance UI — icons, motion, safer clock-out
   ═══════════════════════════════════════════════════════════ */

.anim-fade-up {
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.12s; }
.delay-3 { animation-delay: 0.18s; }
.delay-4 { animation-delay: 0.24s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-8deg); }
  60% { transform: rotate(10deg); }
  80% { transform: rotate(-4deg); }
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave 1.8s ease-in-out 0.6s 2;
}

.with-dot::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  margin-right: 8px;
  box-shadow: 0 0 0 4px rgba(59, 91, 219, 0.15);
  vertical-align: 1px;
}

/* Topbar */
.topbar-modern { align-items: center; }
.topbar-copy h1 { display: flex; align-items: center; gap: 8px; }
.topbar-weather { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.live-clock-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.live-clock-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #eef2ff, #e0e7ff);
  color: var(--brand);
}
.live-clock-modern span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.live-clock-modern strong {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 1.15rem;
}

/* Hero status */
.hero-status {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  min-height: 200px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.55;
  animation: floatY 7s ease-in-out infinite;
}
.hero-bg .blob-a {
  width: 220px;
  height: 220px;
  right: -40px;
  top: -60px;
  background: radial-gradient(circle, rgba(99, 120, 255, 0.28), transparent 70%);
}
.hero-bg .blob-b {
  width: 180px;
  height: 180px;
  left: 18%;
  bottom: -70px;
  background: radial-gradient(circle, rgba(15, 159, 110, 0.18), transparent 70%);
  animation-delay: -2s;
}
.hero-bg .grid-shine {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 70% 40%, #000 10%, transparent 70%);
  opacity: 0.5;
}

.hero-status.status-working {
  border-color: rgba(15, 159, 110, 0.25);
  background: linear-gradient(135deg, #ffffff 35%, #e9faf3 100%);
  box-shadow: 0 20px 50px rgba(15, 159, 110, 0.12);
}
.hero-status.status-break {
  border-color: rgba(37, 99, 235, 0.22);
  background: linear-gradient(135deg, #ffffff 35%, #eef5ff 100%);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
}
.hero-status.status-lunch {
  border-color: rgba(217, 119, 6, 0.22);
  background: linear-gradient(135deg, #ffffff 35%, #fff8eb 100%);
  box-shadow: 0 20px 50px rgba(217, 119, 6, 0.12);
}
.hero-status.status-done {
  border-color: rgba(100, 116, 139, 0.25);
  background: linear-gradient(135deg, #ffffff 35%, #f1f5f9 100%);
}
.hero-status.status-idle {
  background: linear-gradient(135deg, #ffffff 40%, #f8fafc 100%);
}

.hero-left {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.hero-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}
.hero-icon-idle { background: linear-gradient(145deg, #64748b, #94a3b8); }
.hero-icon-working { background: linear-gradient(145deg, #0f9f6e, #34d399); }
.hero-icon-break { background: linear-gradient(145deg, #2563eb, #60a5fa); }
.hero-icon-lunch { background: linear-gradient(145deg, #d97706, #fbbf24); }
.hero-icon-done { background: linear-gradient(145deg, #475569, #94a3b8); }

.hero-ring {
  position: absolute;
  inset: -6px;
  border-radius: 26px;
  border: 2px dashed rgba(255,255,255,0.55);
  animation: spinSlow 12s linear infinite;
  opacity: 0.7;
}
.status-working .hero-ring { border-color: rgba(15, 159, 110, 0.35); }
.status-break .hero-ring { border-color: rgba(37, 99, 235, 0.35); }
.status-lunch .hero-ring { border-color: rgba(217, 119, 6, 0.4); }

.hero-copy { min-width: 0; }
.hero-copy h2 {
  margin: 10px 0 6px;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.hero-hint {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 420px;
}

.status-pill-lg {
  gap: 8px;
  padding: 7px 12px 7px 10px;
  font-size: 0.76rem;
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
.status-working .status-pill-lg .pill-dot {
  animation: pulse-soft 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 4px rgba(15, 159, 110, 0.18);
}

/* Timer ring */
.hero-timer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.timer-ring {
  position: relative;
  width: 148px;
  height: 148px;
}
.timer-ring svg {
  width: 148px;
  height: 148px;
  transform: rotate(-90deg);
}
.ring-track {
  fill: none;
  stroke: rgba(148, 163, 184, 0.22);
  stroke-width: 8;
}
.ring-progress {
  fill: none;
  stroke: url(#none);
  stroke: #0f9f6e;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}
.status-break .ring-progress { stroke: #2563eb; }
.status-lunch .ring-progress { stroke: #d97706; }
.status-idle .ring-progress,
.status-done .ring-progress { stroke: #94a3b8; }

.timer-core {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
}
.timer-core span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.timer-core strong {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.status-working .timer-core strong { color: #0b7a54; }
.status-break .timer-core strong { color: #1d4ed8; }
.status-lunch .timer-core strong { color: #b45309; }

.timer-sub-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-width: 160px;
}
.timer-sub-card[hidden] { display: none !important; }
.timer-sub-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
}
.status-lunch .timer-sub-icon {
  background: var(--amber-soft);
  color: var(--amber);
}
.timer-sub-card span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.timer-sub-card strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.98rem;
  margin-top: 2px;
}

/* Metric cards */
.metric-modern { margin-top: 18px; }
.metric-card {
  padding: 18px 18px 16px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}
.metric-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.metric-top span {
  margin: 0 !important;
  font-size: 0.78rem !important;
}
.metric-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.ico-green { background: var(--green-soft); color: #0b7a54; }
.ico-amber { background: var(--amber-soft); color: #b45309; }
.ico-blue { background: var(--blue-soft); color: #1d4ed8; }
.ico-brand { background: var(--brand-soft); color: var(--brand); }

/* Action layout — clock out separated */
.action-panel-modern {
  padding: 22px 24px 24px;
  background:
    linear-gradient(180deg, #ffffff, #fbfcfe);
}
.panel-note {
  margin: 0;
  font-size: 0.8rem;
  max-width: 280px;
  text-align: right;
  font-weight: 600;
}
.action-layout {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.action-primary {
  flex: 1 1 420px;
  min-width: 280px;
}
.action-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.action-help {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.chip-done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--green-soft);
  color: #0b7a54;
  font-weight: 700;
  font-size: 0.86rem;
  border: 1px solid #c9efdd;
}

.action-danger-zone {
  flex: 1 1 440px;
  margin-left: auto;
  min-width: 360px;
  max-width: 560px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px dashed #f0b4b4;
  background:
    linear-gradient(160deg, #fff7f7 0%, #fff 55%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: inset 0 0 0 1px rgba(220, 75, 75, 0.04);
}

.clock-out-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.daily-update-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #713434;
  font-size: 0.78rem;
  font-weight: 800;
}

.daily-update-label em {
  padding: 3px 7px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.64rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.clock-out-form textarea {
  width: 100%;
  min-height: 122px;
  padding: 12px 13px;
  border: 1px solid #efcaca;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.55;
  resize: vertical;
  outline: none;
}

.clock-out-form textarea:focus {
  border-color: #e88b8b;
  box-shadow: 0 0 0 4px rgba(220, 75, 75, 0.1);
}

.daily-update-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #a16a6a;
  font-size: 0.68rem;
  font-weight: 700;
}

.daily-update-meta strong { font-family: var(--mono); }

.daily-update-submitted p,
.daily-update-cell p,
.daily-update-details p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.daily-update-submitted p {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
}

.daily-update-details { min-width: 120px; }
.daily-update-details summary {
  color: var(--brand);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}
.daily-update-details p {
  width: min(420px, 45vw);
  margin-top: 8px;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.76rem;
  white-space: pre-wrap;
}

.daily-update-cell {
  min-width: 340px;
  max-width: 600px;
  white-space: normal;
}

.daily-update-cell p {
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
}
.danger-copy strong {
  display: block;
  font-size: 0.9rem;
  color: #9f2d2d;
  margin-bottom: 4px;
}
.danger-copy span {
  display: block;
  font-size: 0.76rem;
  color: #b06a6a;
  font-weight: 600;
  line-height: 1.4;
}
.btn-clock-out {
  width: 100%;
  background: #fff;
  color: #b63e3e;
  border: 1.5px solid #f0b4b4;
  box-shadow: none;
}
.btn-clock-out:hover {
  background: #fff0f0;
  border-color: #e88b8b;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(220, 75, 75, 0.12);
}

.btn-iconic {
  gap: 10px;
}
.btn-ico {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255,255,255,0.18);
}
.btn-secondary .btn-ico,
.btn-ghost .btn-ico {
  background: rgba(15, 23, 42, 0.06);
}

/* Timeline modern */
.timeline-modern .timeline-item {
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  padding: 14px 8px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.timeline-modern .timeline-item:last-child { border-bottom: 0; }
.timeline-modern .timeline-item:hover {
  background: rgba(238, 242, 255, 0.45);
  border-radius: 12px;
}
.tl-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.tl-green { background: var(--green-soft); color: #0b7a54; }
.tl-blue { background: var(--blue-soft); color: #1d4ed8; }
.tl-amber { background: var(--amber-soft); color: #b45309; }
.tl-slate { background: #f1f5f9; color: #64748b; }

.live-tag {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.empty-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 42px 20px !important;
}
.empty-ico {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: var(--brand);
  margin-bottom: 8px;
}
.empty-modern strong {
  color: var(--text);
  font-size: 1rem;
}
.empty-modern span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.86rem;
}

/* Sidebar SVG icons */
.nav-ico {
  width: 28px !important;
  height: 28px;
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 auto;
}
.sidebar nav a.active .nav-ico {
  background: rgba(255,255,255,0.1);
}
.sidebar nav a {
  gap: 12px !important;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
}

/* Hide old status-card styles conflicts when using hero */
.status-card { /* keep for any other pages */ }

@media (max-width: 1100px) {
  .hero-status {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-timer { align-self: center; }
  .action-danger-zone {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
  .panel-note { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   Wordmark logo + richer auth visual
   ═══════════════════════════════════════════════════════════ */

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}
.wordmark-name {
  font-family: "Syne", "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.06em;
}
.wordmark-tag {
  font-family: "Syne", "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 8px 4px;
  border-radius: 999px;
  position: relative;
  top: -2px;
}
.wordmark-dark .wordmark-name { color: #fff; }
.wordmark-dark .wordmark-tag {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(165, 180, 252, 0.28);
}
.wordmark-light .wordmark-name { color: #fff; }
.wordmark-light .wordmark-tag {
  color: #e0e7ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.wordmark.compact .wordmark-name { font-size: 1.25rem; }
.wordmark.compact .wordmark-tag { font-size: 0.66rem; }

.sidebar-top {
  padding: 8px 12px 26px !important;
}
.sidebar .wordmark {
  padding: 4px 4px 0;
}

/* Auth visual v2 */
.auth-visual-v2 {
  background:
    radial-gradient(900px 520px at 85% 15%, rgba(99, 120, 255, 0.45), transparent 55%),
    radial-gradient(700px 420px at 10% 85%, rgba(20, 184, 166, 0.28), transparent 50%),
    radial-gradient(600px 360px at 50% 50%, rgba(167, 139, 250, 0.16), transparent 60%),
    linear-gradient(155deg, #070b16 0%, #111b33 48%, #182a55 100%) !important;
  padding: 40px 44px !important;
}
.visual-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.visual-aurora .aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: floatY 9s ease-in-out infinite;
}
.visual-aurora .a1 {
  width: 380px;
  height: 380px;
  background: #6366f1;
  right: -80px;
  top: -60px;
}
.visual-aurora .a2 {
  width: 320px;
  height: 320px;
  background: #14b8a6;
  left: -100px;
  bottom: -40px;
  animation-delay: -3s;
}
.visual-aurora .a3 {
  width: 240px;
  height: 240px;
  background: #a78bfa;
  left: 40%;
  top: 35%;
  opacity: 0.28;
  animation-delay: -5s;
}
.visual-aurora .visual-mesh {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 45% 40%, #000 15%, transparent 75%);
  opacity: 0.7;
}

.visual-content-v2 {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-copy-v2 {
  margin: auto 0;
  max-width: 560px;
  padding: 28px 0 18px;
}
.hero-copy-v2 h1 {
  font-family: "Syne", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(2.6rem, 4.2vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin: 12px 0 18px;
  font-weight: 800;
  color: #fff;
}
.hero-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #c5d0e6;
  font-weight: 600;
  max-width: 440px;
}

.auth-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
  max-width: 520px;
}
.auth-feature-grid.single-col {
  grid-template-columns: 1fr;
  max-width: 380px;
}
.auth-feature-grid .card-3 {
  grid-column: 1 / -1;
}
.auth-feature-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-feature-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}
.auth-feature-card.card-1 { animation-delay: 0.08s; }
.auth-feature-card.card-2 { animation-delay: 0.14s; }
.auth-feature-card.card-3 { animation-delay: 0.2s; }
.auth-feature-card strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.auth-feature-card span {
  display: block;
  margin-top: 2px;
  color: #9eacc5;
  font-size: 0.76rem;
  font-weight: 600;
}
.af-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.af-green { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
.af-blue { background: rgba(59, 130, 246, 0.18); color: #93c5fd; }
.af-amber { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }

.visual-footer-v2 {
  margin-top: auto;
  padding-top: 28px;
}

.auth-panel-v2 {
  background:
    radial-gradient(700px 360px at 100% 0%, rgba(99, 102, 241, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f8fc, #eef2f8) !important;
}
.auth-card-v2 {
  width: min(420px, 92%) !important;
}
.auth-card-v2.wide {
  width: min(560px, 94%) !important;
}
.auth-card-v2 h2 {
  font-family: "Syne", "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: -0.04em;
}
.btn-block { width: 100%; }

.compact-visual .hero-copy-v2 h1 {
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
}
.compact-visual .auth-feature-grid {
  margin-top: 10px;
}

.mobile-brand {
  margin-bottom: 8px;
}

@media (max-width: 980px) {
  .auth-feature-grid { grid-template-columns: 1fr; }
  .auth-feature-grid .card-3 { grid-column: auto; }
}

/* ═══════════════════════════════════════════════════════════
   Leave management
   ═══════════════════════════════════════════════════════════ */

.leave-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-bottom: 18px;
}
.leave-calendar-panel,
.leave-form-panel {
  margin-top: 0 !important;
}
.cal-head { align-items: center; }
.cal-nav { display: flex; gap: 8px; flex-wrap: wrap; }

.leave-cal-weekdays,
.leave-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.leave-cal-weekdays {
  margin-bottom: 8px;
}
.leave-cal-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 4px 0;
}
.cal-cell {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  min-height: 64px;
  padding: 10px 8px;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: 0.15s ease;
  font: inherit;
  color: var(--text);
}
.cal-cell:hover:not(.empty) {
  border-color: #a5b4fc;
  box-shadow: 0 8px 18px rgba(59, 91, 219, 0.1);
  transform: translateY(-1px);
}
.cal-cell.empty {
  border: 0;
  background: transparent;
  cursor: default;
  min-height: 64px;
}
.cal-cell strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
}
.cal-dot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}
.cal-cell.is-today {
  border-color: #6366f1;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.25);
}
.cal-cell.is-pending {
  background: linear-gradient(160deg, #fffbeb, #fff);
  border-color: #fcd34d;
}
.cal-cell.is-pending .cal-dot { background: #d97706; }
.cal-cell.is-approved {
  background: linear-gradient(160deg, #ecfdf5, #fff);
  border-color: #6ee7b7;
}
.cal-cell.is-approved .cal-dot { background: #0f9f6e; }
.cal-cell.is-selected {
  background: linear-gradient(160deg, #eef2ff, #fff) !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.cal-legend .lg {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
}
.lg-today { background: #6366f1; }
.lg-pending { background: #d97706; }
.lg-approved { background: #0f9f6e; }

.leave-form textarea,
.leave-form select,
.form-stack select,
.form-stack textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
  background: #fff;
  outline: none;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  resize: vertical;
  transition: 0.15s border, 0.15s box-shadow;
}
.leave-form textarea:focus,
.leave-form select:focus,
.form-stack select:focus,
.form-stack textarea:focus {
  border-color: #8ea1f4;
  box-shadow: var(--ring);
}

.reason-cell {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leave-badge.leave-pending { background: #fff7e8; color: #a76b08; }
.leave-badge.leave-approved { background: #e7f8f1; color: #0b7a54; }
.leave-badge.leave-rejected { background: #fff0f0; color: #b63e3e; }
.leave-badge.leave-cancelled { background: #f1f5f9; color: #64748b; }

.leave-admin-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}
.leave-decision-form {
  display: flex;
  gap: 6px;
  align-items: center;
}
.leave-decision-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Attendance correction requests */
.correction-date-panel { padding: 18px 20px; }

.correction-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 18px;
  align-items: start;
}

.correction-layout > .panel { margin-top: 0; }

.correction-current-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.correction-current-times > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
}

.correction-current-times span,
.correction-current-times strong { display: block; }

.correction-current-times span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.correction-current-times strong {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 1.05rem;
}

.correction-no-record {
  padding: 22px;
  border: 1px dashed #f0b95b;
  border-radius: 16px;
  background: var(--amber-soft);
}

.correction-no-record strong,
.correction-no-record span { display: block; }
.correction-no-record span {
  margin-top: 6px;
  color: #806137;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
}

.correction-time-line {
  display: block;
  margin: 3px 0;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 600;
  white-space: nowrap;
}

.correction-time-line strong {
  color: var(--text);
  font-family: var(--mono);
}

.correction-admin-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-color: rgba(59, 91, 219, 0.22);
  background: var(--brand-soft);
  color: #465375;
  font-size: 0.8rem;
  line-height: 1.5;
}

.correction-admin-guide strong {
  flex: 0 0 auto;
  color: #3045ad;
}

.correction-admin-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 280px;
}

.correction-apply-form {
  flex-direction: column;
  align-items: stretch;
}

.correction-apply-times {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr;
  gap: 8px;
}

.correction-apply-times label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.correction-apply-times input,
.correction-apply-times select {
  width: 100%;
  min-width: 72px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
}

.correction-record-link {
  display: block;
  margin-top: 7px;
  color: var(--brand);
  font-size: 0.73rem;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .correction-layout { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .leave-layout { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   Admin live attendance dashboard
   ═══════════════════════════════════════════════════════════ */

.admin-dashboard-topbar { margin-bottom: 12px; }

.dashboard-clock-wrap {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.dashboard-date {
  min-width: 190px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.dashboard-date span,
.dashboard-date strong { display: block; }

.dashboard-date span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-date strong {
  margin-top: 4px;
  font-size: 0.82rem;
}

.dashboard-metrics .metric { min-height: 118px; }
.dashboard-metrics .metric-headcount::after {
  background: linear-gradient(90deg, var(--brand), var(--brand2));
}

.away-panel {
  overflow: hidden;
  border-color: rgba(148, 163, 184, 0.34);
  background: linear-gradient(135deg, #fff 45%, #f8fafc);
}

.away-panel.has-away {
  border-color: rgba(217, 119, 6, 0.25);
  background:
    radial-gradient(500px 180px at 100% 0%, rgba(251, 191, 36, 0.09), transparent 65%),
    #fff;
}

.away-count {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: #a75b05;
  font-size: 0.75rem;
  vertical-align: 2px;
}

.dashboard-refresh {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.dashboard-refresh strong {
  min-width: 24px;
  margin-left: 4px;
  color: #475569;
  font-family: var(--mono);
}

.live-indicator {
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(15, 159, 110, 0.1);
  animation: pulse-live 1.8s ease-in-out infinite;
}

@keyframes pulse-live {
  50% { box-shadow: 0 0 0 8px rgba(15, 159, 110, 0.03); }
}

.away-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.away-card {
  position: relative;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.away-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
}

.away-card.away-break::before { background: var(--blue); }
.away-card.away-lunch::before { background: var(--amber); }

.away-person {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.away-person > div:last-child { min-width: 0; }
.away-person strong,
.away-person small { display: block; }
.away-person small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.away-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}

.away-since {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.away-duration {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding: 12px 13px;
  border-radius: 13px;
  background: #f8fafc;
}

.away-duration span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.away-duration strong {
  font-family: var(--mono);
  font-size: 1rem;
}

.away-break .away-duration strong { color: #1d4ed8; }
.away-lunch .away-duration strong { color: #b45309; }

.away-edit {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
}

.all-available {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px dashed rgba(15, 159, 110, 0.35);
  border-radius: 16px;
  background: var(--green-soft);
}

.all-available-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-weight: 900;
}

.all-available strong,
.all-available small { display: block; }
.all-available small {
  margin-top: 3px;
  color: #477766;
  font-weight: 600;
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.dashboard-status.status-working { background: var(--green-soft); color: #0b7a54; }
.dashboard-status.status-break { background: var(--blue-soft); color: #1d4ed8; }
.dashboard-status.status-lunch { background: var(--amber-soft); color: #a75b05; }
.dashboard-status.status-completed { background: #e9eef5; color: #536078; }
.dashboard-status.status-not-started { background: #f3f4f6; color: #8b93a0; }
.dashboard-status.status-working .status-dot { animation: pulse-live 1.8s ease-in-out infinite; }

.employee-status-row.row-break { background: rgba(239, 246, 255, 0.5); }
.employee-status-row.row-lunch { background: rgba(255, 247, 232, 0.55); }

.status-duration,
.status-since { display: block; }
.status-duration {
  color: #334155;
  font-family: var(--mono);
  font-size: 0.82rem;
}
.status-since {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

@media (max-width: 1250px) {
  .away-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .dashboard-date { display: none; }
  .away-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   Employee portal visual refresh
   ═══════════════════════════════════════════════════════════ */

.employee-portal .topbar {
  margin-bottom: 16px;
}

.employee-portal .topbar h1 {
  font-family: "Syne", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 2.15rem;
  letter-spacing: -0.055em;
}

.employee-dashboard-page .hero-status {
  min-height: 230px;
  padding: 32px 36px;
  border: 0;
  color: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.employee-dashboard-page .hero-status.status-idle {
  background: linear-gradient(135deg, #111827 0%, #27345d 62%, #3b5bdb 130%);
}
.employee-dashboard-page .hero-status.status-working {
  background: linear-gradient(135deg, #0d1823 0%, #123b38 62%, #0f9f6e 135%);
}
.employee-dashboard-page .hero-status.status-break {
  background: linear-gradient(135deg, #101827 0%, #183862 62%, #2563eb 135%);
}
.employee-dashboard-page .hero-status.status-lunch {
  background: linear-gradient(135deg, #1d1710 0%, #5b3719 62%, #d97706 140%);
}
.employee-dashboard-page .hero-status.status-done {
  background: linear-gradient(135deg, #111827 0%, #28384f 68%, #64748b 140%);
}

.employee-dashboard-page .hero-copy h2 { color: #fff; font-size: 2rem; }
.employee-dashboard-page .hero-hint { color: #bdc8da; }
.employee-dashboard-page .status-pill-lg {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
  backdrop-filter: blur(10px);
}
.employee-dashboard-page .timer-core span { color: #9facbf; }
.employee-dashboard-page .timer-core strong,
.employee-dashboard-page .status-working .timer-core strong,
.employee-dashboard-page .status-break .timer-core strong,
.employee-dashboard-page .status-lunch .timer-core strong { color: #fff; }
.employee-dashboard-page .ring-track { stroke: rgba(255, 255, 255, 0.16); }
.employee-dashboard-page .ring-progress { stroke: #47d7a5; }
.employee-dashboard-page .status-break .ring-progress { stroke: #72a7ff; }
.employee-dashboard-page .status-lunch .ring-progress { stroke: #ffc461; }
.employee-dashboard-page .status-done .ring-progress,
.employee-dashboard-page .status-idle .ring-progress { stroke: #b7c3d4; }
.employee-dashboard-page .hero-bg .grid-shine { opacity: 0.8; }
.employee-dashboard-page .hero-bg .blob-a { opacity: 0.75; }

.employee-dashboard-page .metric-card {
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}
.employee-dashboard-page .metric-card:nth-child(1) { background: linear-gradient(145deg, #fff, #effcf7); }
.employee-dashboard-page .metric-card:nth-child(2) { background: linear-gradient(145deg, #fff, #fff8ea); }
.employee-dashboard-page .metric-card:nth-child(3) { background: linear-gradient(145deg, #fff, #f0f6ff); }
.employee-dashboard-page .metric-card:nth-child(4) { background: linear-gradient(145deg, #fff, #f2f4ff); }

.employee-dashboard-page .action-panel-modern {
  border-color: rgba(99, 102, 241, 0.18);
  background:
    radial-gradient(500px 180px at 0% 0%, rgba(99, 102, 241, 0.08), transparent 68%),
    #fff;
}

.employee-dashboard-page .end-day-card {
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: linear-gradient(155deg, #f7f8ff 0%, #fff 68%);
  box-shadow: 0 12px 30px rgba(59, 91, 219, 0.07);
}
.employee-dashboard-page .end-day-card .danger-copy strong,
.employee-dashboard-page .end-day-card .daily-update-label { color: #3045ad; }
.employee-dashboard-page .end-day-card .danger-copy span { color: #6c78a0; }
.employee-dashboard-page .end-day-card .clock-out-form textarea { border-color: #cfd6f5; }
.employee-dashboard-page .end-day-card .clock-out-form textarea:focus {
  border-color: #7b8ee8;
  box-shadow: 0 0 0 4px rgba(59, 91, 219, 0.1);
}
.employee-dashboard-page .end-day-card .daily-update-meta { color: #7883a4; }

.employee-history-metrics { margin-top: 0; }
.employee-history-page .table-panel,
.employee-corrections-page .table-panel,
.employee-leave-page .table-panel {
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.employee-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, #f7f8ff, #fff);
}
.employee-steps > div { display: flex; align-items: center; gap: 11px; min-width: 0; }
.employee-steps > div > strong {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  box-shadow: 0 7px 16px rgba(59, 91, 219, 0.2);
}
.employee-steps span,
.employee-steps b,
.employee-steps small { display: block; }
.employee-steps b { font-size: 0.78rem; }
.employee-steps small { margin-top: 3px; color: var(--muted); font-size: 0.68rem; font-weight: 600; }
.employee-steps > i { color: #a5b4d0; font-style: normal; }

.employee-corrections-page .correction-current-panel,
.employee-corrections-page .correction-form-panel,
.employee-leave-page .leave-calendar-panel,
.employee-leave-page .leave-form-panel {
  border-color: rgba(99, 102, 241, 0.16);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

@media (max-width: 1150px) {
  .employee-steps { grid-template-columns: 1fr; }
  .employee-steps > i { display: none; }
}

/* Admin attendance policy settings */
.settings-form { max-width: 1080px; }
.settings-section { margin-top: 0; }
.settings-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.settings-section-head .kicker { margin-bottom: 5px; }
.settings-section-head h3 { margin: 0; font-size: 1.12rem; }
.settings-section-head > div:last-child > span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.settings-icon {
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 14px;
}
.settings-icon-blue { background: var(--blue-soft); color: var(--blue); }
.settings-icon-amber { background: var(--amber-soft); color: var(--amber); }
.settings-icon-green { background: var(--green-soft); color: var(--green); }
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.workday-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 9px;
}
.workday-option { cursor: pointer; }
.workday-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.workday-option > span {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  transition: 0.16s ease;
}
.workday-option strong,
.workday-option small { display: block; }
.workday-option strong { font-size: 0.9rem; }
.workday-option small { margin-top: 4px; font-size: 0.62rem; font-weight: 700; }
.workday-option input:checked + span {
  border-color: #8698ee;
  background: linear-gradient(145deg, #eef2ff, #fff);
  color: #3448b5;
  box-shadow: 0 8px 18px rgba(59, 91, 219, 0.1);
}
.settings-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
}
.settings-toggle > input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track {
  flex: 0 0 44px;
  width: 44px;
  height: 24px;
  padding: 3px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: 0.18s ease;
}
.toggle-track i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  transition: 0.18s ease;
}
.settings-toggle > input:checked + .toggle-track { background: var(--green); }
.settings-toggle > input:checked + .toggle-track i { transform: translateX(20px); }
.settings-toggle > span:last-child strong,
.settings-toggle > span:last-child small { display: block; }
.settings-toggle > span:last-child strong { font-size: 0.8rem; }
.settings-toggle > span:last-child small { margin-top: 3px; color: var(--muted); font-size: 0.68rem; font-weight: 600; }
.settings-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
  color: #526078;
  font-size: 0.78rem;
  font-weight: 800;
}
.settings-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.settings-field input:focus { border-color: #8ea1f4; box-shadow: var(--ring); }
.settings-note {
  margin-top: 15px;
  padding: 11px 12px;
  border-radius: 11px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.55;
}
.settings-last-run {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}
.settings-last-run span,
.settings-last-run strong,
.settings-last-run small { display: block; }
.settings-last-run span { color: var(--muted); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.settings-last-run strong { margin-top: 7px; font-size: 0.88rem; }
.settings-last-run small { margin-top: 4px; color: var(--muted); font-size: 0.7rem; font-weight: 600; }
.settings-save-bar {
  position: sticky;
  bottom: 16px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 16px 14px 20px;
  border: 1px solid rgba(99, 102, 241, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
}
.settings-save-bar strong,
.settings-save-bar span { display: block; }
.settings-save-bar span { margin-top: 3px; color: var(--muted); font-size: 0.72rem; font-weight: 600; }
.dashboard-row-actions { display: flex; align-items: center; gap: 6px; }
.force-clock-out-panel {
  max-width: 920px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  border-color: rgba(220, 75, 75, 0.24);
  background: linear-gradient(145deg, #fff, #fff7f7);
}
.force-clock-out-panel h3 { margin: 4px 0 5px; }
.force-clock-out-panel p:last-child { margin: 0; font-size: 0.78rem; }
.force-clock-out-form { display: flex; align-items: center; gap: 8px; }
.force-clock-out-form input {
  min-width: 240px;
  padding: 10px 12px;
  border: 1px solid #efcaca;
  border-radius: 10px;
  outline: none;
}
.force-clock-out-form input:focus { border-color: #e88b8b; box-shadow: 0 0 0 4px rgba(220, 75, 75, 0.08); }
@media (max-width: 1150px) {
  .settings-grid { grid-template-columns: 1fr; }
  .force-clock-out-panel { flex-direction: column; align-items: stretch; }
}

/* EMS hero title on auth screens */
.ems-hero-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 18px !important;
}
.ems-hero-acronym {
  font-family: "Syne", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(3.2rem, 5.5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
  color: #fff;
  background: linear-gradient(120deg, #ffffff 10%, #c7d2fe 55%, #99f6e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ems-hero-full {
  font-family: "Syne", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c5d0e6;
  line-height: 1.25;
  max-width: 14ch;
}

.btn.is-busy,
.btn:disabled.is-busy {
  opacity: 0.75;
  cursor: wait;
  transform: none !important;
  pointer-events: none;
}

.btn.is-cooldown,
.btn:disabled.is-cooldown {
  background: #d7dbe3 !important;
  color: #6b7280 !important;
  border: 1px solid #c5cad3 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none !important;
  pointer-events: none;
  filter: grayscale(0.2);
}
.action-cooldown-hint {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 700;
}
.action-cooldown-hint strong {
  font-variant-numeric: tabular-nums;
  color: #374151;
}

/* ═══════════════════════════════════════════════════════════
   Modern login / auth motion + button loaders
   ═══════════════════════════════════════════════════════════ */

@keyframes authIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}
@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.35; }
  50% { transform: translateY(-18px) translateX(8px); opacity: 0.9; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}
@keyframes shakeIn {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

.anim-auth-in {
  animation: authIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.anim-auth-in.delay-a { animation-delay: 0.08s; }
.anim-auth-in.delay-b { animation-delay: 0.16s; }
.anim-auth-card {
  animation: cardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.shake-in { animation: shakeIn 0.45s ease; }

.auth-visual-modern .orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  pointer-events: none;
}
.auth-visual-modern .o1 {
  width: 320px;
  height: 320px;
  right: 8%;
  top: 18%;
  animation: orbitSpin 28s linear infinite;
  border-style: dashed;
}
.auth-visual-modern .o2 {
  width: 460px;
  height: 460px;
  right: 2%;
  top: 8%;
  animation: orbitSpin 42s linear infinite reverse;
  opacity: 0.55;
}
.auth-visual-modern .float-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(199, 210, 254, 0.85);
  box-shadow: 0 0 18px rgba(129, 140, 248, 0.7);
  animation: floatParticle 5.5s ease-in-out infinite;
}
.auth-visual-modern .p1 { left: 18%; top: 28%; }
.auth-visual-modern .p2 { left: 42%; top: 62%; animation-delay: -1.2s; width: 6px; height: 6px; }
.auth-visual-modern .p3 { left: 68%; top: 36%; animation-delay: -2.1s; background: rgba(94, 234, 212, 0.85); }
.auth-visual-modern .p4 { left: 28%; top: 74%; animation-delay: -3s; width: 5px; height: 5px; }

.auth-panel-modern {
  position: relative;
  overflow: hidden;
}
.auth-panel-modern::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -120px;
  background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 68%);
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite;
}

.auth-card-modern {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow:
    0 30px 70px rgba(15, 23, 42, 0.12),
    0 2px 0 rgba(255,255,255,0.8) inset !important;
  border-radius: 28px !important;
  padding: 32px 30px 28px !important;
}
.auth-card-glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(99,102,241,0.16), transparent 70%);
  pointer-events: none;
}
.auth-card-head { position: relative; z-index: 1; }
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: #3730a3;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.auth-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.form-modern .field-float {
  position: relative;
}
.form-modern .field-label {
  display: block;
  margin-bottom: 7px;
}
.form-modern input {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.form-modern label.is-focused input,
.form-modern input:focus {
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14) !important;
  transform: translateY(-1px);
}

.btn-login {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  overflow: hidden;
}
.btn-login .btn-label {
  position: relative;
  z-index: 1;
}
.btn-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  display: none;
  flex: 0 0 auto;
  animation: spin 0.7s linear infinite;
}
.btn-ghost .btn-spinner {
  border-color: rgba(15,23,42,0.15);
  border-top-color: #334155;
}
.btn-login.is-loading .btn-spinner,
.btn.is-loading .btn-spinner {
  display: inline-block;
}
.btn-login.is-loading,
.btn.is-loading {
  cursor: wait;
  opacity: 0.92;
  pointer-events: none;
  transform: none !important;
}
.btn-login::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.22), transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn-login:hover::after {
  transform: translateX(120%);
}

/* Notice board */
.notice-admin-topbar { align-items: center; }
.notice-admin-summary {
  min-width: 132px;
  padding: 15px 18px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f5f7ff);
  box-shadow: 0 12px 28px rgba(43, 57, 138, 0.08);
}
.notice-admin-summary span,
.notice-admin-summary strong { display: block; }
.notice-admin-summary span { color: var(--muted); font-size: 0.7rem; font-weight: 700; }
.notice-admin-summary strong { margin-top: 4px; color: #3549ba; font-size: 1.7rem; }
.notice-admin-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(470px, 1.22fr);
  align-items: start;
  gap: 20px;
}
.notice-composer-panel {
  position: sticky;
  top: 18px;
  margin-top: 0;
  padding: 24px;
  border-color: rgba(99, 102, 241, 0.18);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}
.notice-composer-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 22px; }
.notice-composer-head h3 { margin: 3px 0 4px; font-size: 1.2rem; }
.notice-composer-head > div:last-child > span { color: var(--muted); font-size: 0.73rem; font-weight: 600; }
.notice-composer-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #4f46e5;
  background: linear-gradient(145deg, #eef2ff, #e0e7ff);
}
.notice-composer-form { display: flex; flex-direction: column; gap: 15px; }
.notice-composer-form > label,
.notice-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #46546d;
  font-size: 0.74rem;
  font-weight: 800;
}
.notice-composer-form input[type="text"],
.notice-composer-form input[type="datetime-local"],
.notice-composer-form select,
.notice-composer-form textarea {
  width: 100%;
  border: 1px solid #dfe4ee;
  border-radius: 12px;
  background: #fbfcff;
  color: var(--text);
  outline: none;
  font: inherit;
  transition: 0.18s ease;
}
.notice-composer-form input[type="text"],
.notice-composer-form input[type="datetime-local"],
.notice-composer-form select { min-height: 43px; padding: 10px 12px; }
.notice-composer-form textarea { min-height: 150px; padding: 12px 13px; resize: vertical; line-height: 1.6; }
.notice-composer-form input:focus,
.notice-composer-form select:focus,
.notice-composer-form textarea:focus { border-color: #8695eb; background: #fff; box-shadow: var(--ring); }
.notice-composer-form .field-hint { align-self: flex-end; margin-top: -3px; font-size: 0.64rem; }
.notice-composer-form .field-hint b { color: #4f5fc8; }
.notice-form-grid { display: grid; grid-template-columns: 0.8fr 1.25fr 1.25fr; gap: 10px; }
.notice-audience-grid { grid-template-columns: 1fr 0.9fr 1.15fr 1.15fr; }
.notice-recipient-wrap { padding: 12px; border: 1px solid #dfe4ee; border-radius: 14px; background: #f7f8ff; }
.notice-recipient-wrap[hidden] { display: none; }
.notice-recipient-wrap select[multiple] { min-height: 140px; }
.notice-audience {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #35507a;
  background: #e8eef8;
}
.notice-audience.audience-individual { color: #8a4b12; background: #ffe8c7; }
.notice-upload-zone {
  min-height: 108px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 13px !important;
  padding: 18px;
  border: 1.5px dashed #bdc7e7;
  border-radius: 15px;
  background: linear-gradient(145deg, #fafbff, #f5f7ff);
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}
.notice-upload-zone:hover { border-color: #7c8fe8; background: #f5f7ff; transform: translateY(-1px); }
.notice-upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.notice-upload-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 13px;
  color: #5264ca;
  background: #e9edff;
}
.notice-upload-zone strong,
.notice-upload-zone small { display: block; }
.notice-upload-zone small { margin-top: 5px; color: var(--muted); font-size: 0.65rem; font-weight: 600; }
.notice-image-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.notice-image-preview[hidden] { display: none; }
.notice-image-preview > div { position: relative; min-width: 0; }
.notice-image-preview img { width: 100%; height: 78px; display: block; border-radius: 11px; object-fit: cover; }
.notice-image-preview span { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 0.61rem; text-overflow: ellipsis; white-space: nowrap; }
.notice-publish-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.settings-toggle.compact { padding: 11px; }
.notice-check-option {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 9px !important;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
}
.notice-check-option > input { accent-color: #4f46e5; }
.notice-check-option strong,
.notice-check-option small { display: block; }
.notice-check-option small { margin-top: 3px; color: var(--muted); font-size: 0.62rem; font-weight: 600; }
.notice-submit { width: 100%; justify-content: center; margin-top: 2px; }
.notice-manage-section { min-width: 0; }
.notice-manage-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 4px 2px 15px; }
.notice-manage-head h3 { margin: 4px 0 0; }
.notice-admin-list { display: flex; flex-direction: column; gap: 13px; }
.notice-admin-card {
  --notice-color: #5366d6;
  position: relative;
  margin-top: 0;
  padding: 21px 22px;
  overflow: hidden;
  border-color: rgba(83, 102, 214, 0.13);
}
.notice-admin-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--notice-color);
}
.priority-important { --notice-color: #e49122; }
.priority-urgent { --notice-color: #e14d5a; }
.notice-admin-card-top,
.notice-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notice-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.notice-priority,
.notice-state,
.notice-pin {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.notice-priority { color: var(--notice-color); background: color-mix(in srgb, var(--notice-color) 11%, white); }
.notice-pin { color: #6d52b5; background: #f1edff; }
.notice-state { color: #526078; background: #edf1f6; }
.notice-state.state-live { color: #15855d; background: #e8f8f1; }
.notice-state.state-scheduled { color: #2764b8; background: #eaf2ff; }
.notice-state.state-expired { color: #a64d55; background: #ffedef; }
.notice-created { color: var(--muted); font-size: 0.64rem; font-weight: 700; }
.notice-admin-card h3 { margin: 14px 0 7px; font-size: 1.04rem; }
.notice-admin-body {
  display: -webkit-box;
  overflow: hidden;
  color: #667085;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.notice-admin-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 13px; }
.notice-admin-images img { width: 100%; height: 90px; display: block; border-radius: 11px; object-fit: cover; transition: 0.18s ease; }
.notice-admin-images a:hover img { transform: scale(1.02); filter: brightness(0.96); }
.notice-admin-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 14px; color: var(--muted); font-size: 0.64rem; font-weight: 600; }
.notice-admin-meta strong { color: #445068; }
.notice-admin-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.notice-empty-admin { margin-top: 0; padding: 54px 20px; text-align: center; }
.notice-empty-admin > span { display: block; color: #5c6ed2; font-size: 1.7rem; }
.notice-empty-admin strong { display: block; margin-top: 8px; }
.notice-empty-admin p { margin-top: 5px; color: var(--muted); font-size: 0.75rem; }

/* Employee notice board */
.notice-board-hero {
  position: relative;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 35px 40px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(125deg, #18204f 0%, #3348a9 55%, #566be0 100%);
  box-shadow: 0 24px 55px rgba(42, 57, 143, 0.22);
}
.notice-board-hero-copy { position: relative; z-index: 2; max-width: 650px; }
.notice-board-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #dfe5ff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.notice-board-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #8af0ca; box-shadow: 0 0 0 5px rgba(138, 240, 202, 0.14); }
.notice-board-hero h1 { margin: 14px 0 8px; color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.045em; }
.notice-board-hero p { max-width: 570px; color: rgba(236, 240, 255, 0.82); font-size: 0.88rem; font-weight: 600; line-height: 1.65; }
.notice-board-count {
  position: relative;
  z-index: 2;
  min-width: 135px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  text-align: center;
}
.notice-board-count span,
.notice-board-count strong { display: block; }
.notice-board-count span { color: #dce3ff; font-size: 0.67rem; font-weight: 700; }
.notice-board-count strong { margin-top: 3px; color: #fff; font-size: 2.15rem; }
.notice-board-orb { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.notice-board-orb.orb-one { width: 220px; height: 220px; top: -110px; right: 120px; background: rgba(133, 154, 255, 0.25); }
.notice-board-orb.orb-two { width: 150px; height: 150px; bottom: -90px; left: 38%; background: rgba(89, 230, 193, 0.16); }
.notice-board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.notice-card {
  --notice-color: #5366d6;
  position: relative;
  min-width: 0;
  padding: 25px;
  overflow: hidden;
  border: 1px solid rgba(83, 102, 214, 0.13);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.notice-card:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1); }
.notice-card-accent { position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--notice-color), color-mix(in srgb, var(--notice-color) 35%, white)); }
.notice-card-head time { color: var(--muted); font-size: 0.64rem; font-weight: 700; }
.notice-card h2 { margin: 18px 0 9px; color: #1e293b; font-size: 1.24rem; line-height: 1.3; letter-spacing: -0.025em; }
.notice-card-body { color: #5f6c82; font-size: 0.79rem; font-weight: 600; line-height: 1.72; white-space: pre-line; }
.notice-card-images { display: grid; gap: 7px; margin-top: 17px; overflow: hidden; border-radius: 14px; }
.notice-card-images.count-1 { grid-template-columns: 1fr; }
.notice-card-images.count-2 { grid-template-columns: repeat(2, 1fr); }
.notice-card-images.count-3 { grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, 95px); }
.notice-card-images.count-3 a:first-child { grid-row: 1 / 3; }
.notice-card-images img { width: 100%; height: 180px; display: block; object-fit: cover; transition: 0.2s ease; }
.notice-card-images.count-2 img { height: 145px; }
.notice-card-images.count-3 img { height: 100%; }
.notice-card-images a:hover img { transform: scale(1.025); filter: brightness(0.94); }
.notice-card-footer { display: flex; align-items: center; gap: 9px; margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); }
.notice-author-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: #4053bd; background: #edf0ff; font-size: 0.72rem; font-weight: 800; }
.notice-card-footer span,
.notice-card-footer strong { display: block; }
.notice-card-footer span { color: var(--muted); font-size: 0.59rem; font-weight: 600; }
.notice-card-footer strong { margin-top: 2px; color: #445068; font-size: 0.68rem; }
.notice-board-empty { padding: 72px 24px; text-align: center; }
.notice-empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto; border-radius: 18px; color: #5366d6; background: #edf0ff; }
.notice-board-empty h2 { margin: 16px 0 6px; }
.notice-board-empty p { color: var(--muted); font-size: 0.8rem; }

/* Employee dashboard notice preview */
.portal-notice-preview {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 18px;
  background: linear-gradient(135deg, #fbfcff, #f2f5ff);
  box-shadow: 0 11px 27px rgba(37, 48, 111, 0.06);
}
.portal-notice-preview-head,
.portal-notice-preview-head > div { display: flex; align-items: center; }
.portal-notice-preview-head { justify-content: space-between; gap: 15px; }
.portal-notice-preview-head > div { gap: 10px; }
.notice-preview-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #4f5fc8; background: #e5e9ff; }
.portal-notice-preview-head strong,
.portal-notice-preview-head small { display: block; }
.portal-notice-preview-head strong { color: #344054; font-size: 0.76rem; }
.portal-notice-preview-head small { margin-top: 2px; color: var(--muted); font-size: 0.61rem; font-weight: 600; }
.portal-notice-preview-head > a { color: #4b5dc2; font-size: 0.68rem; font-weight: 800; }
.portal-notice-preview-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.portal-notice-preview-item {
  --notice-color: #5366d6;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(83, 102, 214, 0.12);
  border-radius: 11px;
  background: #fff;
  transition: 0.16s ease;
}
.portal-notice-preview-item:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--notice-color) 35%, white); box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06); }
.notice-preview-priority { padding: 3px 6px; border-radius: 6px; color: var(--notice-color); background: color-mix(in srgb, var(--notice-color) 10%, white); font-size: 0.52rem; font-weight: 800; text-transform: uppercase; }
.portal-notice-preview-item > strong { overflow: hidden; color: #455269; font-size: 0.67rem; text-overflow: ellipsis; white-space: nowrap; }
.notice-preview-arrow { color: #8791a5; }

.add-activity-panel {
  border-color: rgba(234, 179, 8, 0.35);
  background: linear-gradient(180deg, #fffdf4, #fff);
}

.personal-notice-stack { display: flex; flex-direction: column; gap: 14px; margin: 0 0 18px; }
.personal-notice-banner {
  --notice-color: #1e2a78;
  padding: 28px 32px;
  border: 3px solid var(--notice-color);
  border-radius: 22px;
  background: linear-gradient(145deg, #fff8d4 0%, #ffe58a 100%);
  box-shadow: 0 18px 40px rgba(120, 80, 0, 0.14);
}
.personal-notice-banner.priority-important {
  --notice-color: #b45309;
  background: linear-gradient(145deg, #fff1d6, #ffd089);
}
.personal-notice-banner.priority-urgent {
  --notice-color: #b91c1c;
  background: linear-gradient(145deg, #ffe4e6, #fecaca);
}
.personal-notice-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.personal-notice-flag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.personal-notice-banner h2 {
  margin: 12px 0 10px;
  color: #111827;
  font-size: clamp(1.85rem, 4.4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.personal-notice-banner > p {
  margin: 0;
  color: #1f2937;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.45;
  white-space: pre-line;
}
.personal-notice-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 16px; }
.personal-notice-images img { width: 100%; height: 140px; object-fit: cover; border-radius: 14px; }

@media (max-width: 1200px) {
  .notice-admin-layout { grid-template-columns: 1fr; }
  .notice-composer-panel { position: static; }
  .portal-notice-preview-list { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  .notice-board-grid { grid-template-columns: 1fr; }
  .notice-board-hero { padding: 28px; }
  .notice-form-grid,
  .notice-audience-grid,
  .notice-publish-options { grid-template-columns: 1fr; }
  .personal-notice-banner { padding: 20px 18px; }
}

/* Playful status rabbit — employee attendance hero */
.status-mascot {
  position: relative;
  z-index: 1;
  flex: 0 0 220px;
  width: 220px;
  align-self: flex-end;
  margin: -16px 2px -24px;
  pointer-events: none;
  user-select: none;
}
.mascot-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mascot-stage::before {
  content: "";
  position: absolute;
  width: 172px;
  height: 172px;
  top: 2px;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, rgba(255,255,255,0.12), rgba(255,255,255,0.025) 66%, transparent 68%);
  transform: translateX(-50%);
}
.rabbit-mascot {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 180px;
  overflow: visible;
  filter: drop-shadow(0 14px 14px rgba(2, 8, 23, 0.2));
}
.rabbit-shadow { fill: rgba(2, 8, 23, 0.25); }
.rabbit-body,
.rabbit-head,
.rabbit-ear,
.rabbit-arm,
.rabbit-foot,
.rabbit-tail {
  fill: #f5f7ff;
  stroke: #cbd5f1;
  stroke-width: 2;
}
.rabbit-tail { fill: #fff; }
.rabbit-ear-inner { fill: #f2a9bd; opacity: 0.8; }
.rabbit-cheek { fill: #f8a8b8; opacity: 0.72; }
.rabbit-eye { fill: #25324b; }
.rabbit-sleep-eye { display: none; fill: none; stroke: #38445c; stroke-width: 3; stroke-linecap: round; }
.rabbit-nose { fill: #e9819a; }
.rabbit-mouth { fill: none; stroke: #536078; stroke-width: 1.8; stroke-linecap: round; }
.rabbit-tooth { fill: #fff; stroke: #d6dcec; stroke-width: 1; }

/* Tuesday Panda */
.panda-ear,
.panda-patch,
.panda-limb { fill: #202938; stroke: #111827; stroke-width: 2; }
.panda-body { fill: #f4f5f7; stroke: #cbd5e1; stroke-width: 2; }
.panda-head { fill: #fafafa; stroke: #cbd5e1; stroke-width: 2; }
.panda-muzzle { fill: #e8ebef; }
.mascot-animal-panda .typing-paw { fill: #202938; stroke: #111827; }

/* Wednesday Fox */
.fox-body,
.fox-head,
.fox-ear,
.fox-limb { fill: #ed7b32; stroke: #ffc078; stroke-width: 2; }
.fox-ear-inner { fill: #6f3540; }
.fox-face-white,
.fox-foot { fill: #fff1df; stroke: #ffd2a3; stroke-width: 1.5; }
.fox-tail { fill: #ed7b32; stroke: #ffc078; stroke-width: 2; }
.fox-nose { fill: #273142; }
.mascot-animal-fox .typing-paw { fill: #ed7b32; stroke: #ffc078; }

/* Thursday Penguin */
.penguin-body,
.penguin-flipper { fill: #202b3b; stroke: #67758c; stroke-width: 2; }
.penguin-belly { fill: #f5f7fb; stroke: #d3dbe8; stroke-width: 1.5; }
.penguin-beak,
.penguin-foot { fill: #f6a83b; stroke: #ffd17a; stroke-width: 1.5; }
.mascot-animal-penguin .typing-paw { fill: #202b3b; stroke: #67758c; }

/* Friday Capybara */
.capybara-body,
.capybara-head,
.capybara-ear,
.capybara-limb,
.capybara-foot { fill: #a66f4c; stroke: #d7a47c; stroke-width: 2; }
.capybara-snout { fill: #c28c64; }
.capybara-nose { fill: #49352e; }
.mascot-animal-capybara .typing-paw { fill: #a66f4c; stroke: #d7a47c; }
.rabbit-character,
.rabbit-ears,
.rabbit-arm,
.rabbit-mouth,
.rabbit-tooth,
.carrot,
.coffee-steam,
.work-sparkles,
.break-sweat,
.done-stars,
.alarm-clock,
.sleep-letters text,
.lunch-heart {
  transform-box: fill-box;
  transform-origin: center;
}
.mascot-caption {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 25px;
  margin-top: -7px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #e8edfa;
  background: rgba(7, 15, 32, 0.34);
  box-shadow: 0 8px 20px rgba(2, 8, 23, 0.14);
  backdrop-filter: blur(9px);
  white-space: nowrap;
}
.mascot-caption strong {
  color: #fff;
  font-size: 0.51rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-transform: uppercase;
}
.mascot-caption em {
  margin-top: 2px;
  color: #dce4f5;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.025em;
}

/* Working: speedy paws, blinking laptop and a heroic coffee. */
.rabbit-laptop path { fill: #253759; stroke: #8fa5d8; stroke-width: 1.5; }
.rabbit-laptop .laptop-lid { fill: #253759; }
.rabbit-laptop .laptop-screen { fill: #33486f; stroke: #526b98; stroke-width: 1; opacity: 0.96; }
.rabbit-laptop .laptop-logo { fill: #aebddd; stroke: none; }
.rabbit-laptop .laptop-hinge { fill: none; stroke: #9aaed3; stroke-width: 2.5; stroke-linecap: round; }
.rabbit-laptop .laptop-base { fill: #17243f; stroke: #6f82a8; }
.rabbit-laptop .laptop-keys { fill: none; stroke: #53688f; stroke-width: 1.2; stroke-linecap: round; }
.typing-paw { fill: #f5f7ff; stroke: #cbd5f1; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.coffee-mug { fill: #f0b85b; stroke: #ffe1a6; stroke-width: 1.5; }
.coffee-handle,
.coffee-steam { fill: none; stroke: #ffe5b4; stroke-width: 2; stroke-linecap: round; }
.work-sparkles path { fill: none; stroke: #79e5bd; stroke-width: 2; stroke-linecap: round; }
.mascot-state-working .rabbit-character,
.mascot-state-working .rabbit-arm-left,
.mascot-state-working .rabbit-arm-right { animation: none; }
.mascot-state-working .typing-paw-left { animation: typingPaw 0.42s ease-in-out infinite alternate; }
.mascot-state-working .typing-paw-right { animation: typingPaw 0.42s ease-in-out infinite alternate-reverse; }
.mascot-state-working .laptop-logo { animation: laptopGlow 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.mascot-state-working .rabbit-eye { animation: workBlink 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.mascot-state-working .steam-one { animation: steamRise 1.9s ease-out infinite; }
.mascot-state-working .steam-two { animation: steamRise 1.9s ease-out 0.7s infinite; }
.mascot-state-working .work-sparkles { animation: sparklePop 1.4s ease-in-out infinite; }

/* Break: a dramatic stretch with tea waiting nearby. */
.rabbit-break-props .stretch-line { fill: none; stroke: #83b6ff; stroke-width: 3; stroke-linecap: round; }
.break-sweat { fill: #83c5ff; }
.break-mug path:first-child { fill: #71a9f8; stroke: #bfdaff; stroke-width: 1.5; }
.break-mug path:nth-child(2) { fill: none; stroke: #bfdaff; stroke-width: 2; }
.break-mug .coffee-steam { stroke: #d9eaff; }
.mascot-state-break .rabbit-character { animation: rabbitStretchBody 2.8s ease-in-out infinite; }
.mascot-state-break .rabbit-arm-left { animation: stretchArmLeft 2.8s ease-in-out infinite; }
.mascot-state-break .rabbit-arm-right { animation: stretchArmRight 2.8s ease-in-out infinite; }
.mascot-state-break .rabbit-ears { animation: earWiggle 2.8s ease-in-out infinite; }
.mascot-state-break .break-sweat { animation: sweatDrop 2.8s ease-in-out infinite; }
.mascot-state-break .coffee-steam { animation: steamRise 2s ease-out infinite; }

/* Lunch: carrot crunches, crumbs and a happy little heart. */
.carrot-body { fill: #ff942f; stroke: #ffc06e; stroke-width: 2; }
.carrot-leaf { fill: #62cf7b; stroke: #a4efaa; stroke-width: 1.5; }
.carrot-line { fill: none; stroke: #d86920; stroke-width: 2; stroke-linecap: round; }
.lunch-crumb { fill: #ffc06e; }
.lunch-heart { fill: #ff839b; }
.mascot-state-lunch .rabbit-character { animation: lunchHappyBounce 1.5s ease-in-out infinite; }
.mascot-state-lunch .carrot { animation: carrotNibble 0.48s ease-in-out infinite alternate; }
.mascot-state-lunch .mascot-food { animation: carrotNibble 0.55s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.mascot-state-lunch .rabbit-mouth,
.mascot-state-lunch .rabbit-tooth { animation: rabbitMunch 0.48s ease-in-out infinite alternate; }
.mascot-state-lunch .rabbit-cheek { animation: cheekPuff 0.48s ease-in-out infinite alternate; }
.mascot-state-lunch .crumb-one { animation: crumbHop 1.2s ease-out infinite; }
.mascot-state-lunch .crumb-two { animation: crumbHop 1.2s ease-out 0.5s infinite; }
.mascot-state-lunch .lunch-heart { animation: heartFloat 1.8s ease-in-out infinite; }
.bamboo-stalk { fill: none; stroke: #77c66e; stroke-width: 9; stroke-linecap: round; }
.bamboo-joint { fill: none; stroke: #d2ef9c; stroke-width: 2; }
.bamboo-leaf { fill: #57b85e; stroke: #9de29c; stroke-width: 1.5; }
.ramen-bowl { fill: #df5a54; stroke: #ffc1a8; stroke-width: 2; }
.ramen-rim,
.ramen-noodle,
.ramen-stick { fill: none; stroke-linecap: round; }
.ramen-rim { stroke: #ffd1b5; stroke-width: 4; }
.ramen-noodle { stroke: #ffd56f; stroke-width: 3; }
.ramen-stick { stroke: #9a5d3e; stroke-width: 2; }
.fish-body { fill: #85c7e8; stroke: #c5edff; stroke-width: 2; }
.fish-tail { fill: #5ca8d2; stroke: #c5edff; stroke-width: 2; }
.fish-eye { fill: #20324a; }
.melon-rind { fill: #54b96b; stroke: #a9e89b; stroke-width: 2; }
.melon-flesh { fill: #f56f78; }
.melon-seed { fill: #492f38; }

/* Idle: breathing on a pillow while the alarm complains. */
.rabbit-pillow path:first-child { fill: #8796d8; stroke: #bbc5f1; stroke-width: 2; }
.rabbit-pillow path:last-child { fill: none; stroke: #cbd3f4; stroke-width: 1.5; }
.alarm-clock circle { fill: #f6c760; stroke: #ffe2a0; stroke-width: 2; }
.alarm-clock path { fill: none; stroke: #fff0c5; stroke-width: 2.5; stroke-linecap: round; }
.sleep-letters text { fill: #b7c8ff; font: 800 20px "Plus Jakarta Sans", sans-serif; }
.mascot-state-idle .rabbit-eye { display: none; }
.mascot-state-idle .rabbit-sleep-eye { display: block; }
.mascot-state-idle .rabbit-character { animation: sleepyBreathe 3.2s ease-in-out infinite; }
.mascot-state-idle .rabbit-ear-left { animation: sleepyEarLeft 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.mascot-state-idle .rabbit-ear-right { animation: sleepyEarRight 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.mascot-state-idle .alarm-clock { animation: alarmNudge 4s ease-in-out infinite; }
.mascot-state-idle .sleep-letters text:nth-child(1) { animation: zzzFloat 2.6s ease-out infinite; }
.mascot-state-idle .sleep-letters text:nth-child(2) { animation: zzzFloat 2.6s ease-out 0.8s infinite; }
.mascot-state-idle .sleep-letters text:nth-child(3) { animation: zzzFloat 2.6s ease-out 1.6s infinite; }

/* Done: packed up, waving, and ready to hop home. */
.done-bag rect { fill: #6e7d99; stroke: #aebbd0; stroke-width: 2; }
.done-bag path { fill: none; stroke: #cbd5e1; stroke-width: 2; }
.done-stars path { fill: #ffe487; }
.mascot-state-done .rabbit-eye { display: none; }
.mascot-state-done .rabbit-sleep-eye { display: block; }
.mascot-state-done .rabbit-character { animation: doneHop 2.2s ease-in-out infinite; }
.mascot-state-done .rabbit-arm-right { animation: rabbitWave 1.05s ease-in-out infinite; transform-origin: top center; }
.mascot-state-done .done-stars path:first-child { animation: sparklePop 1.3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.mascot-state-done .done-stars path:last-child { animation: sparklePop 1.3s ease-in-out 0.55s infinite; transform-box: fill-box; transform-origin: center; }

@keyframes typingPaw {
  from { transform: translateY(-1px); }
  to { transform: translateY(1px); }
}
@keyframes laptopGlow {
  0%, 100% { opacity: 0.65; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes workBlink {
  0%, 44%, 48%, 100% { transform: scaleY(1); }
  46% { transform: scaleY(0.12); }
}
@keyframes steamRise {
  0% { opacity: 0; transform: translateY(5px) scale(0.85); }
  35% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-10px) scale(1.08); }
}
@keyframes sparklePop {
  0%, 100% { opacity: 0.35; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.12); }
}
@keyframes rabbitStretchBody {
  0%, 100% { transform: translateY(2px) scaleY(0.98); }
  45%, 60% { transform: translateY(-7px) scaleY(1.05); }
}
@keyframes stretchArmLeft {
  0%, 100% { transform: translate(0, 0) rotate(28deg); }
  45%, 60% { transform: translate(-13px, -37px) rotate(155deg); }
}
@keyframes stretchArmRight {
  0%, 100% { transform: translate(0, 0) rotate(-28deg); }
  45%, 60% { transform: translate(13px, -37px) rotate(-155deg); }
}
@keyframes earWiggle {
  0%, 100% { transform: rotate(0); }
  45% { transform: rotate(-5deg); }
  60% { transform: rotate(5deg); }
}
@keyframes sweatDrop {
  0%, 35% { opacity: 0; transform: translateY(-6px); }
  55% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(8px); }
}
@keyframes lunchHappyBounce {
  0%, 100% { transform: translateY(1px) rotate(-1deg); }
  50% { transform: translateY(-4px) rotate(1deg); }
}
@keyframes carrotNibble {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(-5px, -3px) rotate(-5deg); }
}
@keyframes rabbitMunch {
  from { transform: translateY(0) scaleY(1); }
  to { transform: translateY(2px) scaleY(0.75); }
}
@keyframes cheekPuff {
  from { transform: scale(0.9); }
  to { transform: scale(1.12); }
}
@keyframes crumbHop {
  0% { opacity: 0; transform: translate(0, 5px); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(9px, -12px); }
}
@keyframes heartFloat {
  0%, 100% { opacity: 0.45; transform: translateY(3px) scale(0.85); }
  50% { opacity: 1; transform: translateY(-5px) scale(1.08); }
}
@keyframes sleepyBreathe {
  0%, 100% { transform: translateY(5px) rotate(-3deg) scaleY(0.98); }
  50% { transform: translateY(2px) rotate(-3deg) scaleY(1.02); }
}
@keyframes sleepyEarLeft {
  0%, 100% { transform: rotate(-28deg); }
  50% { transform: rotate(-24deg); }
}
@keyframes sleepyEarRight {
  0%, 100% { transform: rotate(25deg); }
  50% { transform: rotate(21deg); }
}
@keyframes alarmNudge {
  0%, 72%, 100% { transform: rotate(0); }
  76% { transform: rotate(-7deg); }
  80% { transform: rotate(7deg); }
  84% { transform: rotate(-6deg); }
  88% { transform: rotate(5deg); }
  92% { transform: rotate(0); }
}
@keyframes zzzFloat {
  0% { opacity: 0; transform: translate(-3px, 7px) scale(0.7); }
  30%, 70% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(4px, -9px) scale(1.05); }
}
@keyframes doneHop {
  0%, 100% { transform: translateY(2px); }
  45% { transform: translateY(-5px); }
  55% { transform: translateY(-5px); }
}
@keyframes rabbitWave {
  0%, 100% { transform: translate(-3px, -11px) rotate(-50deg); }
  50% { transform: translate(-5px, -14px) rotate(-92deg); }
}

@media (max-width: 1260px) {
  .status-mascot { flex-basis: 190px; width: 190px; }
  .rabbit-mascot { width: 190px; }
}
@media (max-width: 1100px) {
  .status-mascot { align-self: center; margin: -12px auto -18px; }
}
@media (prefers-reduced-motion: reduce) {
  .status-mascot *,
  .status-mascot *::before,
  .status-mascot *::after { animation: none !important; }
}

/* Live break/lunch strip on the employee dashboard */
.team-away-strip {
  margin-bottom: 16px;
  padding: 15px 17px 16px;
  overflow: hidden;
  border: 1px solid rgba(72, 99, 184, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f5f8ff);
  box-shadow: 0 12px 29px rgba(20, 33, 79, 0.07);
}
.team-away-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.team-away-head > div:first-child > strong { display: block; margin-top: 4px; color: #334155; font-size: 0.81rem; }
.team-away-live { display: inline-flex; align-items: center; gap: 7px; color: #64748b; font-size: 0.56rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.team-away-live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.13); animation: pulse-live 1.8s ease-in-out infinite; }
.team-away-counts { display: flex; gap: 7px; }
.team-away-counts span { padding: 5px 9px; border-radius: 999px; font-size: 0.57rem; font-weight: 700; }
.team-away-counts b { margin-right: 3px; }
.away-count-break { color: #2563a8; background: #eaf3ff; }
.away-count-lunch { color: #a35b0d; background: #fff1dc; }
.team-away-tabs { display: flex; gap: 9px; margin-top: 12px; overflow-x: auto; padding: 1px 1px 3px; scrollbar-width: thin; }
.team-away-tab {
  flex: 0 0 auto;
  min-width: 190px;
  display: grid;
  grid-template-columns: 42px minmax(110px, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(37, 99, 235, 0.13);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 17px rgba(15, 23, 42, 0.05);
}
.team-away-tab.away-lunch { border-color: rgba(217, 119, 6, 0.17); background: linear-gradient(145deg, #fff, #fffaf1); }
.team-away-person { min-width: 0; }
.team-away-person strong,
.team-away-person span { display: block; }
.team-away-person strong { overflow: hidden; color: #38465e; font-size: 0.69rem; text-overflow: ellipsis; white-space: nowrap; }
.team-away-person strong em { margin-left: 4px; padding: 2px 5px; border-radius: 5px; color: #4055bc; background: #e9edff; font-size: 0.48rem; font-style: normal; text-transform: uppercase; }
.team-away-person span { margin-top: 3px; color: #8993a5; font-size: 0.55rem; font-weight: 650; }
.mini-break-bunny { position: relative; width: 40px; height: 40px; border-radius: 12px; background: #ebf3ff; }
.away-lunch .mini-break-bunny { background: #fff0d9; }
.mini-break-bunny i { position: absolute; display: block; }
.mini-ear { width: 6px; height: 15px; top: 3px; border-radius: 6px; background: #f7f8ff; border: 1px solid #aebce1; transform-origin: bottom; }
.mini-ear.ear-left { left: 12px; transform: rotate(-9deg); }
.mini-ear.ear-right { right: 12px; transform: rotate(9deg); }
.mini-head { width: 21px; height: 19px; left: 10px; top: 12px; border-radius: 50%; background: #f7f8ff; border: 1px solid #aebce1; }
.mini-head::before,
.mini-head::after { content: ""; position: absolute; width: 2px; height: 2px; top: 7px; border-radius: 50%; background: #334155; }
.mini-head::before { left: 5px; }
.mini-head::after { right: 5px; }
.mini-body { width: 24px; height: 15px; left: 8px; bottom: 3px; border-radius: 50% 50% 42% 42%; background: #eef1fa; border: 1px solid #aebce1; }
.mini-arm { width: 6px; height: 13px; top: 24px; border-radius: 6px; background: #f7f8ff; border: 1px solid #aebce1; transform-origin: top; }
.mini-arm.arm-left { left: 8px; transform: rotate(25deg); }
.mini-arm.arm-right { right: 8px; transform: rotate(-25deg); }
.mini-food { --food-angle: 35deg; width: 7px; height: 15px; right: 2px; top: 21px; border-radius: 5px 5px 8px 8px; background: #f28a2d; transform: rotate(var(--food-angle)); }
.mini-food::before { content: ""; position: absolute; width: 7px; height: 6px; top: -4px; left: 0; border-radius: 50%; background: #57b968; }

/* The live away icon follows the same Monday–Friday character crew. */
.mini-panda .mini-ear { width: 9px; height: 9px; top: 7px; border: 0; border-radius: 50%; background: #202938; }
.mini-panda .mini-ear.ear-left { left: 8px; }
.mini-panda .mini-ear.ear-right { right: 8px; }
.mini-panda .mini-head { background: #f8fafc; border-color: #9aa7bb; }
.mini-panda .mini-head::before,
.mini-panda .mini-head::after { width: 5px; height: 7px; top: 5px; background: #202938; transform: rotate(22deg); }
.mini-panda .mini-head::after { transform: rotate(-22deg); }
.mini-panda .mini-body { background: linear-gradient(90deg, #202938 0 25%, #f5f6f8 25% 75%, #202938 75%); }
.mini-panda .mini-arm { background: #202938; border-color: #111827; }
.mini-panda .mini-food { --food-angle: 25deg; width: 5px; height: 20px; top: 18px; border-radius: 3px; background: #67b968; }
.mini-panda .mini-food::before { width: 11px; height: 6px; top: 2px; left: -7px; border-radius: 80% 10%; background: #8bd17e; transform: rotate(-25deg); }

.mini-fox .mini-ear { width: 10px; height: 13px; top: 3px; border: 0; border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: #ed7b32; }
.mini-fox .mini-ear.ear-left { left: 8px; transform: rotate(-8deg); }
.mini-fox .mini-ear.ear-right { right: 8px; transform: rotate(8deg); }
.mini-fox .mini-head,
.mini-fox .mini-body,
.mini-fox .mini-arm { background: #ed7b32; border-color: #c76029; }
.mini-fox .mini-head { border-radius: 50% 50% 60% 60%; }
.mini-fox .mini-food { --food-angle: 0deg; width: 15px; height: 8px; top: 27px; right: -2px; border-radius: 2px 2px 9px 9px; background: #dc5d55; }
.mini-fox .mini-food::before { width: 11px; height: 8px; top: -7px; left: 2px; border: 0; border-radius: 50%; background: repeating-linear-gradient(90deg, #f4c95d 0 2px, transparent 2px 4px); }

.mini-penguin .mini-ear { display: none; }
.mini-penguin .mini-head,
.mini-penguin .mini-body,
.mini-penguin .mini-arm { background: #263244; border-color: #526079; }
.mini-penguin .mini-head::before,
.mini-penguin .mini-head::after { background: #fff; }
.mini-penguin .mini-body::after { content: ""; position: absolute; width: 12px; height: 10px; left: 5px; top: 1px; border-radius: 50%; background: #f7f9fc; }
.mini-penguin .mini-food { --food-angle: -8deg; width: 15px; height: 8px; top: 24px; right: -3px; border-radius: 50%; background: #69b7dc; }
.mini-penguin .mini-food::before { width: 8px; height: 9px; top: 0; left: 12px; border-radius: 0; clip-path: polygon(0 50%, 100% 0, 100% 100%); background: #4e96be; }

.mini-capybara .mini-ear { width: 7px; height: 7px; top: 8px; border-color: #80553d; border-radius: 50%; background: #a66f4c; }
.mini-capybara .mini-ear.ear-left { left: 8px; }
.mini-capybara .mini-ear.ear-right { right: 8px; }
.mini-capybara .mini-head,
.mini-capybara .mini-body,
.mini-capybara .mini-arm { background: #a66f4c; border-color: #80553d; }
.mini-capybara .mini-head { width: 24px; left: 8px; border-radius: 45%; }
.mini-capybara .mini-food { --food-angle: -10deg; width: 15px; height: 9px; top: 25px; right: -2px; border: 3px solid #55ad62; border-top: 0; border-radius: 0 0 14px 14px; background: #f36d75; }
.mini-capybara .mini-food::before { display: none; }
.mini-break-bunny.is-stretching .arm-left { animation: miniStretchLeft 1.8s ease-in-out infinite; }
.mini-break-bunny.is-stretching .arm-right { animation: miniStretchRight 1.8s ease-in-out infinite; }
.mini-break-bunny.is-munching { animation: miniMunch 0.65s ease-in-out infinite alternate; }
.mini-break-bunny.is-munching .mini-food { animation: miniCarrot 0.65s ease-in-out infinite alternate; }
@keyframes miniStretchLeft { 0%,100% { transform: rotate(25deg); } 50% { transform: translate(-3px,-10px) rotate(145deg); } }
@keyframes miniStretchRight { 0%,100% { transform: rotate(-25deg); } 50% { transform: translate(3px,-10px) rotate(-145deg); } }
@keyframes miniMunch { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes miniCarrot { from { transform: translate(0,0) rotate(var(--food-angle)); } to { transform: translate(-4px,-2px) rotate(calc(var(--food-angle) - 6deg)); } }

/* Immediate, truthful feedback for attendance actions */
.attendance-action-feedback {
  position: absolute;
  z-index: 5;
  top: 15px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 14, 29, 0.68);
  box-shadow: 0 10px 26px rgba(2, 8, 23, 0.22);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}
.attendance-action-feedback[hidden] { display: none; }
.attendance-action-feedback strong { font-size: 0.64rem; font-weight: 800; }
.attendance-action-spinner {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn .attendance-action-spinner { width: 16px; height: 16px; }
.hero-status.is-action-pending .status-mascot { opacity: 0.82; }

@media (prefers-reduced-motion: reduce) {
  .mini-break-bunny,
  .mini-break-bunny *,
  .team-away-live i,
  .attendance-action-spinner,
  .atm-rain-layer,
  .atm-rain-layer .drop,
  .atm-rain-layer .stem,
  .atm-rain-layer .splat,
  .atm-clouds i,
  .atm-lightning,
  .atm-stars,
  .atm-sun,
  .atm-sun i { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   Kolkata weather scenes — rain is the CodePen drop/stem/splat
   ═══════════════════════════════════════════════════════════ */
.atm-stage,
.atm-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.atm-stage { z-index: 0; }
.atm-fx { z-index: 24; }
.app-shell,
.auth-shell,
.main-content { position: relative; z-index: 1; }

.atm-wash,
.atm-moon,
.atm-stars,
.atm-clouds,
.atm-haze,
.atm-lightning,
.atm-rain-layer { position: absolute; inset: 0; }
.atm-sun,
.atm-moon,
.atm-stars,
.atm-clouds,
.atm-haze,
.atm-lightning { opacity: 0; }

body.atm-period-dawn {
  background: linear-gradient(180deg, #ffd7b8 0%, #f3c4c8 42%, #c9b8d4 100%);
}
body.atm-period-day {
  background: linear-gradient(180deg, #8ec8f0 0%, #c5e4f8 46%, #e7f3fb 100%);
}
body.atm-period-evening {
  background: linear-gradient(180deg, #ffb07a 0%, #e8898c 48%, #6d4d78 100%);
}
body.atm-period-night {
  --nav: #070b14;
  --nav-2: #0c1220;
  background: linear-gradient(180deg, #141a2e 0%, #0d1322 55%, #090d18 100%);
}

body.atm-weather-rain,
body.atm-weather-storm {
  background: linear-gradient(180deg, #4a5b74 0%, #35455c 48%, #2a3648 100%);
}
body.atm-period-day.atm-weather-clear {
  background: linear-gradient(180deg, #6eb6ea 0%, #b9e0f8 48%, #eaf6fd 100%);
}
body.atm-weather-cloudy {
  background: linear-gradient(180deg, #8ea0b5 0%, #b7c3d1 50%, #d5dce5 100%);
}
body.atm-weather-haze {
  background: linear-gradient(180deg, #d9c49a 0%, #e6d6b4 50%, #efe4c8 100%);
}

/* Light titles on dark weather so they don't vanish into the sky */
body.atm-weather-rain .main-content > .topbar h1,
body.atm-weather-storm .main-content > .topbar h1,
body.atm-period-night .main-content > .topbar h1,
body.atm-period-evening .main-content > .topbar h1 {
  color: #f7f9fc;
  text-shadow: 0 1px 12px rgba(15, 23, 42, 0.28);
}
body.atm-weather-rain .main-content > .topbar .muted,
body.atm-weather-storm .main-content > .topbar .muted,
body.atm-period-night .main-content > .topbar .muted,
body.atm-period-evening .main-content > .topbar .muted {
  color: #d5deea;
}
body.atm-weather-rain .main-content > .topbar .kicker,
body.atm-weather-storm .main-content > .topbar .kicker,
body.atm-period-night .main-content > .topbar .kicker,
body.atm-period-evening .main-content > .topbar .kicker {
  color: #c7d7f5;
}
body.atm-weather-rain .kicker.with-dot::before,
body.atm-weather-storm .kicker.with-dot::before,
body.atm-period-night .kicker.with-dot::before,
body.atm-period-evening .kicker.with-dot::before {
  background: #93c5fd;
  box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.2);
}

.atm-sun {
  position: absolute;
  top: 36px;
  right: 8%;
  width: 140px;
  height: 140px;
}
.atm-sun b {
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffce3 0 42%, #ffd56a 70%, transparent 72%);
  box-shadow: 0 0 50px 18px rgba(255, 214, 100, 0.45);
}
.atm-sun i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 170px;
  margin: -85px 0 0 -2px;
  background: linear-gradient(to bottom, transparent, rgba(255, 230, 140, 0.0) 18%, rgba(255, 220, 120, 0.55) 50%, transparent 82%);
  transform-origin: center;
  animation: atmRay 18s linear infinite;
}
.atm-sun i:nth-child(3) { transform: rotate(60deg); animation-delay: -6s; }
.atm-sun i:nth-child(4) { transform: rotate(120deg); animation-delay: -12s; }
body.atm-period-dawn .atm-sun { top: 18%; }
body.atm-period-dawn .atm-sun b { background: radial-gradient(circle, #ffe4c8 0 42%, #ff9d6c 72%, transparent 74%); }
body.atm-period-evening .atm-sun { top: 34%; right: 5%; }
body.atm-period-evening .atm-sun b { background: radial-gradient(circle, #ffd1a0 0 40%, #ff7a3c 72%, transparent 74%); }
body.atm-period-day.atm-weather-clear .atm-sun,
body.atm-period-dawn.atm-weather-clear .atm-sun,
body.atm-period-evening.atm-weather-clear .atm-sun { opacity: 1; }

.atm-moon {
  width: 86px;
  height: 86px;
  top: 48px;
  right: 8%;
  left: auto;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #f6f1df, #c9d2e4 74%);
  box-shadow: 0 0 28px rgba(210, 220, 255, 0.35);
}
body.atm-period-night.atm-weather-clear .atm-moon,
body.atm-period-night.atm-weather-cloudy .atm-moon { opacity: 0.85; }

.atm-stars {
  background-image:
    radial-gradient(1.2px 1.2px at 12% 14%, #fff, transparent),
    radial-gradient(1px 1px at 28% 32%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 46% 18%, #fff, transparent),
    radial-gradient(1px 1px at 63% 40%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 78% 22%, #fff, transparent),
    radial-gradient(1px 1px at 88% 48%, #fff, transparent),
    radial-gradient(1px 1px at 18% 58%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 54% 70%, #fff, transparent);
  animation: atmTwinkle 4.8s ease-in-out infinite;
}
body.atm-period-night .atm-stars { opacity: 0.75; }

.atm-clouds i {
  position: absolute;
  display: block;
  height: 70px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  filter: blur(2px);
  box-shadow: 30px 12px 0 -8px rgba(255,255,255,0.55), -28px 16px 0 -12px rgba(255,255,255,0.45);
  animation: atmCloud 70s linear infinite;
}
.atm-clouds i:nth-child(1) { width: 220px; top: 2%; left: -12%; }
.atm-clouds i:nth-child(2) { width: 240px; top: 5%; left: 38%; animation-duration: 88s; }
.atm-clouds i:nth-child(3) { width: 170px; top: 1%; left: 72%; animation-duration: 76s; }
.atm-clouds i:nth-child(4) { width: 200px; top: 8%; left: 86%; animation-duration: 96s; }
body.atm-weather-cloudy .atm-clouds { opacity: 0.55; }
body.atm-weather-rain .atm-clouds,
body.atm-weather-storm .atm-clouds { opacity: 0.28; }
body.atm-weather-rain .atm-clouds i,
body.atm-weather-storm .atm-clouds i {
  filter: blur(10px);
  background: rgba(186, 198, 216, 0.35);
  box-shadow: none;
}

.atm-haze {
  background: linear-gradient(180deg, rgba(214, 186, 130, 0.22), rgba(190, 170, 130, 0.12));
}
body.atm-weather-haze .atm-haze { opacity: 1; }

.atm-lightning { background: rgba(236, 244, 255, 0.42); }
body.atm-weather-storm .atm-lightning { animation: atmFlash 7s ease-in-out infinite; }

/* CodePen-style rain: https://codepen.io/arickle/pen/XKjMZY */
.atm-rain-layer {
  display: none;
  z-index: 2;
}
.atm-rain-layer.back-row {
  z-index: 1;
  bottom: 40px;
  opacity: 0.5;
}
body.atm-weather-rain .atm-rain-layer,
body.atm-weather-storm .atm-rain-layer { display: block; }

.atm-rain-layer .drop {
  position: absolute;
  bottom: 100%;
  width: 15px;
  height: 120px;
  pointer-events: none;
  animation: drop 0.5s linear infinite;
}
.atm-rain-layer .stem {
  width: 1px;
  height: 60%;
  margin-left: 7px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.28));
  animation: stem 0.5s linear infinite;
}
.atm-rain-layer .splat {
  width: 15px;
  height: 10px;
  border-top: 2px dotted rgba(255,255,255,0.45);
  border-radius: 50%;
  opacity: 1;
  transform: scale(0);
  animation: splat 0.5s linear infinite;
}

@keyframes drop {
  0% { transform: translateY(0vh); }
  75% { transform: translateY(90vh); }
  100% { transform: translateY(90vh); }
}
@keyframes stem {
  0%, 65% { opacity: 1; }
  75%, 100% { opacity: 0; }
}
@keyframes splat {
  0%, 80% { opacity: 1; transform: scale(0); }
  90% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}
@keyframes atmCloud {
  from { transform: translateX(0); }
  to { transform: translateX(22vw); }
}
@keyframes atmTwinkle {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}
@keyframes atmFlash {
  0%, 90%, 100% { opacity: 0; }
  92% { opacity: 0.45; }
  93.5% { opacity: 0.06; }
  95% { opacity: 0.32; }
  96.5% { opacity: 0; }
}
@keyframes atmRay {
  to { transform: rotate(360deg); }
}

.weather-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.weather-chip-ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #2f4f86;
  background: #e7eefc;
}
.weather-chip.weather-rain .weather-chip-ico,
.weather-chip.weather-storm .weather-chip-ico { color: #35598a; background: #e4eefb; }
.weather-chip.weather-clear.period-day .weather-chip-ico { color: #b45309; background: #fff3d6; }
.weather-chip.period-night .weather-chip-ico { color: #334155; background: #e8eef8; }
.weather-chip strong,
.weather-chip small { display: block; }
.weather-chip strong { font-size: 0.78rem; letter-spacing: -0.02em; }
.weather-chip small { margin-top: 2px; color: var(--muted); font-size: 0.62rem; font-weight: 700; }

@keyframes atmRain {
  to { transform: translateY(22px); }
}
@keyframes atmCloud {
  from { transform: translateX(0); }
  to { transform: translateX(18vw); }
}
@keyframes atmTwinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.5; }
}
@keyframes atmFlash {
  0%, 93%, 100% { opacity: 0; }
  94.5% { opacity: 0.18; }
  96% { opacity: 0; }
}

.profile-incomplete-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #f3d19a;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff8eb, #fff);
  box-shadow: var(--shadow-sm);
  color: inherit;
}
.profile-incomplete-meter {
  flex: 0 0 54px;
  height: 6px;
  align-self: stretch;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff3d6;
  position: relative;
  overflow: hidden;
}
.profile-incomplete-meter i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  background: #f59e0b;
  opacity: 0.85;
}
.profile-incomplete-banner > div { flex: 1; min-width: 0; }
.profile-incomplete-banner strong,
.profile-incomplete-banner span { display: block; }
.profile-incomplete-banner strong { color: #92400e; font-size: 0.92rem; }
.profile-incomplete-banner span { margin-top: 3px; color: #78716c; font-size: 0.76rem; font-weight: 600; }
.profile-incomplete-banner em { color: #b45309; font-style: normal; font-size: 0.78rem; font-weight: 800; white-space: nowrap; }
.profile-incomplete-banner:hover { border-color: #e8b86a; transform: translateY(-1px); }

.profile-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(340px, 1.05fr);
  gap: 18px;
  align-items: start;
}
.profile-complete-card {
  min-width: 120px;
  padding: 12px 16px;
  border: 1px solid #f3d19a;
  border-radius: 16px;
  background: #fff8eb;
  text-align: right;
}
.profile-complete-card.is-complete { border-color: #b7e4cd; background: #edfaf3; }
.profile-complete-card span,
.profile-complete-card strong { display: block; }
.profile-complete-card span { color: var(--muted); font-size: 0.66rem; font-weight: 700; }
.profile-complete-card strong { margin-top: 2px; font-size: 1.5rem; }
.profile-privacy-note { margin: 0 0 16px; font-size: 0.78rem; }
.profile-preview-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.profile-preview-lg .avatar { box-shadow: var(--shadow-sm); }
.profile-look-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.profile-tab {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #475569;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
}
.profile-tab.active { background: #111827; color: #fff; border-color: #111827; }
.profile-look-pane { display: none; }
.profile-look-pane.is-open { display: block; }
.profile-photo-actions,
.profile-form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.avatar-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.avatar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fbfcff;
  cursor: pointer;
}
.avatar-option input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-option em { font-style: normal; font-size: 0.68rem; font-weight: 700; color: #64748b; }
.avatar-option.is-selected,
.avatar-option:has(input:checked) { border-color: #4f46e5; background: #eef2ff; }
.profile-admin-card { padding: 24px; }
.profile-admin-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.profile-admin-head strong,
.profile-admin-head small { display: block; }
.profile-admin-head strong { font-size: 1.2rem; }
.profile-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.profile-admin-grid article {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}
.profile-admin-grid .span-2 { grid-column: 1 / -1; }
.profile-admin-grid span,
.profile-admin-grid strong,
.profile-admin-grid small { display: block; }
.profile-admin-grid span { color: var(--muted); font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.profile-admin-grid strong { margin-top: 5px; font-size: 0.95rem; white-space: pre-wrap; }
.profile-admin-grid small { margin-top: 4px; color: #64748b; }

@media (max-width: 980px) {
  .profile-layout,
  .profile-admin-grid,
  .avatar-picker { grid-template-columns: 1fr 1fr; }
}

.request-count-card {
  min-width: 88px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: right;
}
.request-count-card span,
.request-count-card strong { display: block; }
.request-count-card span { color: var(--muted); font-size: 0.66rem; font-weight: 700; }
.request-count-card strong { margin-top: 2px; font-size: 1.45rem; }
.request-ask-panel { padding: 18px 20px; }
.request-ask-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.request-ask-field { flex: 1 1 280px; margin: 0; }
.request-ask-field input {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}
.request-urgent-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 0 4px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}
.request-urgent-toggle input { accent-color: #dc4b4b; }
.request-list { list-style: none; margin: 0; padding: 0; }
.request-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.request-row:first-child { border-top: 0; padding-top: 2px; }
.request-row.is-urgent { background: linear-gradient(90deg, rgba(220, 75, 75, 0.06), transparent 55%); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 12px; }
.request-copy strong,
.request-copy span { display: block; }
.request-copy strong { font-size: 1rem; }
.request-copy span { margin-top: 4px; color: var(--muted); font-size: 0.74rem; font-weight: 600; }
.request-urgent-tag {
  display: inline-flex;
  margin-right: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ffecec;
  color: #b42318;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.request-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.request-done-list { list-style: none; margin: 0; padding: 0; color: var(--muted); }
.request-done-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}
.request-done-list li:first-child { border-top: 0; }
.request-done-list strong { color: #475569; font-weight: 700; }

.cash-balance-card {
  min-width: 180px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: right;
}
.cash-balance-card span,
.cash-balance-card strong { display: block; }
.cash-balance-card span { color: var(--muted); font-size: 0.66rem; font-weight: 700; }
.cash-balance-card strong { margin-top: 4px; font-size: 1.45rem; letter-spacing: -0.03em; }
.cash-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.cash-forms .panel { padding: 20px 22px; }
.cash-in { color: #0f9f6e; font-weight: 800; white-space: nowrap; }
.cash-out { color: #b42318; font-weight: 800; white-space: nowrap; }
@media (max-width: 980px) {
  .cash-forms { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   Login portal v2 — one floating board over the weather sky
   ═══════════════════════════════════════════════════════════ */
.login-portal {
  --login-ink: #0c1220;
  --login-muted: #5a6a80;
  --login-line: rgba(15, 23, 42, 0.1);
  --login-card: rgba(255, 255, 255, 0.78);
  --login-brand: rgba(248, 250, 252, 0.55);
  --login-field: rgba(255, 255, 255, 0.92);
  --login-field-line: rgba(15, 23, 42, 0.12);
  --login-accent: #3b5bdb;
  --login-accent-2: #5b6ff0;
  --login-veil: linear-gradient(180deg, rgba(255,255,255,0.22), transparent 36%);
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 26px 40px 36px;
  color: var(--login-ink);
}
.login-portal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--login-veil);
}
.login-top,
.login-stage { position: relative; z-index: 1; }

.login-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(980px, 100%);
  margin: 0 auto 10px;
}
.login-portal .login-wordmark .wordmark-name { color: var(--login-ink); }
.login-portal .login-wordmark .wordmark-tag {
  color: var(--login-accent);
  background: color-mix(in srgb, var(--login-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--login-accent) 22%, transparent);
}
.login-top-note {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--login-muted);
}

.login-stage {
  display: grid;
  place-items: center;
  width: 100%;
}

.login-board {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  width: min(980px, 100%);
  min-height: 540px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--login-card);
  border: 1px solid var(--login-line);
  box-shadow:
    0 40px 90px rgba(15, 23, 42, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.45) inset;
  backdrop-filter: blur(28px) saturate(1.35);
}
.login-board::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.login-brand,
.login-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.login-brand {
  padding: 28px 28px 24px;
  overflow: hidden;
  background:
    radial-gradient(420px 220px at 0% 0%, color-mix(in srgb, var(--login-accent) 16%, transparent), transparent 70%),
    var(--login-brand);
  border-right: 1px solid var(--login-line);
}
.login-orbit {
  position: absolute;
  inset: -18% -30% auto -40%;
  height: 130%;
  pointer-events: none;
  z-index: 0;
}
.login-orbit .mesh {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle, #000 30%, transparent 72%);
  opacity: 0.55;
}
.login-orbit .ring {
  position: absolute;
  left: 50%;
  top: 48%;
  border: 1px dashed color-mix(in srgb, var(--login-accent) 35%, transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.login-orbit .r1 { width: 220px; height: 220px; animation: loginSpin 28s linear infinite; }
.login-orbit .r2 { width: 320px; height: 320px; animation: loginSpin 42s linear infinite reverse; opacity: 0.7; }
.login-orbit .r3 { width: 430px; height: 430px; border-style: solid; border-color: color-mix(in srgb, var(--login-accent) 16%, transparent); opacity: 0.8; }
.login-orbit .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.55;
}
.login-orbit .o-a {
  width: 180px;
  height: 180px;
  right: 12%;
  top: 18%;
  background: var(--login-accent);
  animation: loginPulse 6s ease-in-out infinite;
}
.login-orbit .o-b {
  width: 140px;
  height: 140px;
  left: 8%;
  bottom: 22%;
  background: var(--login-accent-2);
  animation: loginPulse 7.5s ease-in-out infinite reverse;
}
@keyframes loginSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes loginPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.08); opacity: 0.7; }
}
.login-mark {
  display: flex;
  align-items: center;
  gap: 0;
  width: 54px;
  height: 22px;
  margin-bottom: 28px;
}
.login-mark i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--login-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--login-accent) 16%, transparent);
}
.login-mark i:nth-child(2) {
  width: 32px;
  height: 2px;
  border-radius: 2px;
  margin: 0 -1px;
  box-shadow: none;
  background: linear-gradient(90deg, var(--login-accent), var(--login-accent-2));
  opacity: 0.7;
}
.login-mark i:nth-child(3) {
  background: var(--login-accent-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--login-accent-2) 16%, transparent);
}
.login-eyebrow {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--login-accent);
}
.login-brand h1 {
  margin: 0;
  font-family: "Syne", var(--font);
  font-size: clamp(2.15rem, 3.4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
  color: var(--login-ink);
}
.login-lead {
  margin: 16px 0 0;
  max-width: 34ch;
  font-size: 0.98rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--login-muted);
}
.login-mark,
.login-eyebrow { position: relative; z-index: 1; }
.login-dial-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 4px 0 10px;
}
.login-dial {
  --dial: 236px;
  position: relative;
  width: var(--dial);
  height: var(--dial);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--login-accent) 18%, transparent), transparent 58%),
    color-mix(in srgb, var(--login-ink) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--login-accent) 28%, transparent);
  box-shadow:
    0 18px 50px color-mix(in srgb, var(--login-accent) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.login-dial .tick {
  position: absolute;
  inset: 12px;
  transform: rotate(calc(var(--i) * 30deg));
}
.login-dial .tick::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 9px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--login-muted);
  opacity: 0.55;
}
.login-dial .tick:nth-child(1)::before,
.login-dial .tick:nth-child(4)::before,
.login-dial .tick:nth-child(7)::before,
.login-dial .tick:nth-child(10)::before {
  height: 13px;
  background: var(--login-accent);
  opacity: 0.9;
}
.login-dial .hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: 50% 100%;
  border-radius: 4px;
  background: var(--login-ink);
}
.login-dial .hand.hour {
  width: 4px;
  height: 58px;
  margin-left: -2px;
  background: var(--login-ink);
}
.login-dial .hand.minute {
  width: 3px;
  height: 78px;
  margin-left: -1.5px;
  opacity: 0.82;
}
.login-dial .hand.second {
  width: 2px;
  height: 86px;
  margin-left: -1px;
  background: var(--login-accent);
}
.login-dial .dial-cap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--login-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--login-card) 80%, #000 0%);
  z-index: 2;
}
.login-clock {
  text-align: center;
}
.login-clock time {
  display: block;
  font-family: "Syne", var(--font);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.login-clock span,
.login-wx small {
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--login-muted);
}
.login-wx {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  text-align: left;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--login-ink);
}

.login-panel {
  padding: 40px 40px 32px;
  justify-content: center;
}
.login-card-head { margin-bottom: 6px; }
.login-card-head h2 {
  font-family: "Syne", var(--font);
  font-size: 1.85rem;
  letter-spacing: -0.05em;
  margin: 0 0 6px;
  font-weight: 800;
}
.login-card-head p {
  margin: 0;
  color: var(--login-muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.login-panel .alert { margin-top: 16px; }

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}
.login-field {
  position: relative;
  display: block;
}
.login-field input {
  width: 100%;
  height: 56px;
  padding: 22px 16px 8px;
  border: 1px solid var(--login-field-line);
  border-radius: 14px;
  background: var(--login-field);
  color: var(--login-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.login-field span {
  position: absolute;
  left: 16px;
  top: 18px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--login-muted);
  pointer-events: none;
  transform-origin: left center;
  transition: transform 0.16s ease, font-size 0.16s ease, top 0.16s ease, color 0.16s ease;
}
.login-field input::placeholder { color: transparent; }
.login-field input:focus,
.login-field input:not(:placeholder-shown) {
  padding-top: 24px;
  padding-bottom: 8px;
}
.login-field input:focus + span,
.login-field input:not(:placeholder-shown) + span {
  top: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--login-accent);
}
.login-field input:focus {
  border-color: var(--login-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--login-accent) 18%, transparent);
}

.login-password input { padding-right: 48px; }
.login-peek {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--login-muted);
  cursor: pointer;
}
.login-peek:hover { background: color-mix(in srgb, var(--login-accent) 10%, transparent); color: var(--login-accent); }
.login-peek .peek-hide { display: none; }
.login-peek.is-on .peek-show { display: none; }
.login-peek.is-on .peek-hide { display: block; }

.login-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--login-accent-2), var(--login-accent));
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--login-accent) 32%, transparent);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px color-mix(in srgb, var(--login-accent) 40%, transparent);
}
.login-submit .btn-label,
.login-submit-arrow { position: relative; z-index: 1; }
.login-submit .btn-spinner { display: none; }
.login-submit.is-loading {
  cursor: wait;
  pointer-events: none;
  opacity: 0.92;
  transform: none;
}
.login-submit.is-loading .btn-spinner { display: inline-block; }
.login-submit.is-loading .login-submit-arrow { display: none; }

.login-card-foot {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--login-muted);
}
.login-card-foot a {
  color: var(--login-accent);
  font-weight: 800;
  text-decoration: none;
}
.login-card-foot a:hover { text-decoration: underline; }

body.atm-period-night .login-portal,
body.atm-period-evening .login-portal,
body.atm-weather-rain .login-portal,
body.atm-weather-storm .login-portal {
  --login-ink: #f4f7fb;
  --login-muted: #9aa8bd;
  --login-line: rgba(255, 255, 255, 0.1);
  --login-card: rgba(10, 14, 26, 0.72);
  --login-brand: rgba(255, 255, 255, 0.04);
  --login-field: rgba(255, 255, 255, 0.06);
  --login-field-line: rgba(255, 255, 255, 0.14);
  --login-accent: #8ea2ff;
  --login-accent-2: #6d82f5;
  --login-veil: linear-gradient(180deg, rgba(7,11,20,0.28), rgba(7,11,20,0.08) 40%, rgba(7,11,20,0.32));
}
body.atm-period-night .login-board,
body.atm-period-evening .login-board,
body.atm-weather-rain .login-board,
body.atm-weather-storm .login-board {
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
body.atm-period-night .login-submit,
body.atm-period-evening .login-submit,
body.atm-weather-rain .login-submit,
body.atm-weather-storm .login-submit {
  background: linear-gradient(180deg, #7b90ff, #4f63e6);
  color: #fff;
}

@media (max-width: 980px) {
  .login-board {
    grid-template-columns: 1fr;
    min-height: 0;
    width: min(460px, 100%);
  }
  .login-brand {
    border-right: 0;
    border-bottom: 1px solid var(--login-line);
    padding: 28px 28px 22px;
  }
  .login-panel { padding: 28px; }
  .login-brand h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .login-orbit .ring,
  .login-orbit .orb { animation: none !important; }
  .login-board,
  .login-submit { animation: none !important; transition: none !important; }
}
