/* Zeromis client portal — "Atelier" design system
   Warm ivory, espresso ink, brass accents. Editorial, not blocky. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ivory: #FAF6EF;
  --ivory-deep: #F3EDE1;
  --paper: #FFFDF8;
  --ink: #221A12;
  --ink-soft: #4A3F33;
  --muted: #8D7E6A;
  --faint: #B9AC97;
  --line: rgba(34, 26, 18, 0.09);
  --brass: #B8862F;
  --brass-deep: #96690F;
  --brass-wash: rgba(184, 134, 47, 0.12);
  --forest: #234034;
  --forest-deep: #182B24;
  --sage: #7A8B6F;
  --blush: #F5E6D8;
  --rose: #C4705A;
  --green: #4E7C59;
  --blue: #4A6FA5;
  --danger: #B3402E;
  --shadow-sm: 0 1px 2px rgba(34, 26, 18, 0.05), 0 4px 14px -6px rgba(34, 26, 18, 0.10);
  --shadow-md: 0 1px 2px rgba(34, 26, 18, 0.05), 0 16px 40px -16px rgba(34, 26, 18, 0.18);
  --shadow-lg: 0 2px 4px rgba(34, 26, 18, 0.06), 0 28px 64px -20px rgba(34, 26, 18, 0.25);
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-ui: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(1100px 500px at 85% -5%, rgba(184, 134, 47, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(35, 64, 52, 0.08), transparent 60%),
    var(--ivory);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brass-wash); }

/* ---------- layout ---------- */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 248px;
  flex-shrink: 0;
  margin: 18px 0 18px 18px;
  background: linear-gradient(165deg, #2A2118 0%, #1B140D 70%, #241B12 100%);
  border-radius: 26px;
  color: #EDE4D3;
  display: flex;
  flex-direction: column;
  padding: 26px 18px;
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at 20% 0%, rgba(184, 134, 47, 0.22), transparent 65%);
  pointer-events: none;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 22px; position: relative; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brass) 0%, #8A5F14 100%);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 20px; color: #FFF8EA;
  box-shadow: 0 6px 16px -6px rgba(184, 134, 47, 0.7);
}
.brand-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: 0.2px; }
.brand-sub { font-size: 11px; color: #A89880; letter-spacing: 1.6px; text-transform: uppercase; margin-top: 1px; }

.nav { display: flex; flex-direction: column; gap: 4px; position: relative; }
.nav-label { font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: #8A775C; padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 14px; border-radius: 14px;
  color: #CDBFA8; text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: all 0.18s ease; position: relative;
}
.nav a svg { width: 19px; height: 19px; flex-shrink: 0; opacity: 0.75; }
.nav a:hover { background: rgba(255, 248, 234, 0.07); color: #F5EDDD; }
.nav a.active {
  background: linear-gradient(135deg, rgba(184, 134, 47, 0.28), rgba(184, 134, 47, 0.12));
  color: #FFF6E3;
  box-shadow: inset 0 0 0 1px rgba(184, 134, 47, 0.35);
}
.nav a.active svg { opacity: 1; color: var(--brass); }
.nav a.active::before {
  content: ""; position: absolute; left: -18px; top: 20%;
  width: 4px; height: 60%; border-radius: 0 4px 4px 0;
  background: var(--brass);
}

.sidebar-foot { margin-top: auto; position: relative; padding: 0 4px; }
.user-chip { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 14px; background: rgba(255,248,234,0.06); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brass), #7A5410);
  display: grid; place-items: center; color: #FFF8EA;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
}
.user-meta { min-width: 0; flex: 1; }
.user-name { font-size: 13.5px; font-weight: 600; color: #F2EAD8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: #9A886C; }
.signout {
  background: none; border: none; cursor: pointer; color: #8A775C;
  padding: 8px; border-radius: 10px; display: grid; place-items: center;
  transition: all 0.15s;
}
.signout:hover { color: #F5EDDD; background: rgba(255,248,234,0.08); }
.signout svg { width: 17px; height: 17px; }

.main { flex: 1; min-width: 0; padding: 34px 40px 90px; max-width: 1180px; }

/* mobile tab bar */
.tabbar {
  display: none;
  position: fixed; bottom: 14px; left: 14px; right: 14px; z-index: 50;
  background: rgba(27, 20, 13, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 22px; padding: 8px;
  box-shadow: var(--shadow-lg);
}
.tabbar nav { display: flex; justify-content: space-around; }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: #A89880; text-decoration: none; font-size: 10px; font-weight: 600;
  letter-spacing: 0.4px; padding: 8px 10px; border-radius: 14px; min-width: 58px;
}
.tabbar a svg { width: 21px; height: 21px; }
.tabbar a.active { color: #F5EDDD; background: rgba(184, 134, 47, 0.25); }

/* ---------- typography & headers ---------- */

.page-head { margin: 6px 0 28px; animation: rise 0.5s ease both; }
.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--brass-deep); margin-bottom: 8px;
}
.page-head h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.5px;
}
.page-head h1 em { font-style: italic; color: var(--brass-deep); }
.page-sub { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 560px; }

/* ---------- cards ---------- */

.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.7);
  outline: 1px solid var(--line);
  outline-offset: -1px;
  padding: 26px;
  position: relative;
  animation: rise 0.55s ease both;
}
.card.tint-gold { background: linear-gradient(150deg, #FFFDF6 0%, #FBF3E2 100%); }
.card.tint-forest { background: linear-gradient(150deg, #234034 0%, #182B24 100%); color: #F2EAD8; }
.card.tint-forest .card-label { color: #B9AC97; }

.card-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.card-label svg { width: 15px; height: 15px; }

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

/* dashboard grid */
.dash-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px;
}
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-12 { grid-column: span 12; }

/* ---------- dashboard widgets ---------- */

.big-number {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(44px, 5vw, 64px); letter-spacing: -1.5px; line-height: 1;
  margin: 6px 0 4px;
}
.big-number small { font-size: 0.45em; color: var(--muted); letter-spacing: 0; font-family: var(--font-ui); font-weight: 500; }
.delta-note { font-size: 13px; color: var(--muted); }

.gauge-wrap { display: flex; align-items: center; gap: 20px; }
.gauge { position: relative; width: 118px; height: 118px; flex-shrink: 0; }
.gauge svg { transform: rotate(-90deg); }
.gauge .gauge-val {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 27px; font-weight: 600;
}
.gauge-cap { font-size: 13.5px; color: var(--muted); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.person-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ivory); border: 1px solid var(--line);
  padding: 8px 16px 8px 8px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
.person-chip .avatar { width: 30px; height: 30px; font-size: 11px; }
.person-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(78, 124, 89, 0.18); }
.empty-note {
  color: var(--muted); font-size: 14px; font-style: italic;
  font-family: var(--font-display);
}

/* time clock */
.clock-form { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.select-wrap { position: relative; flex: 1; min-width: 200px; }
.select-wrap svg {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
select, textarea, input[type="text"], input[type="email"], input[type="password"] {
  width: 100%; font-family: var(--font-ui); font-size: 15px; color: var(--ink);
  background: var(--ivory); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; appearance: none; -webkit-appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
select { padding-right: 42px; cursor: pointer; }
select:focus, textarea:focus, input:focus {
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-wash);
}
textarea { min-height: 130px; resize: vertical; }

.btn {
  font-family: var(--font-ui); font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; border-radius: 999px;
  padding: 14px 28px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: #F5EDDD; box-shadow: 0 10px 24px -10px rgba(35, 64, 52, 0.6);
}
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(35, 64, 52, 0.7); transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(135deg, #D9AC4E 0%, var(--brass) 100%);
  color: #2A1F08; box-shadow: 0 10px 24px -10px rgba(184, 134, 47, 0.65);
}
.btn-gold:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink-soft);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { background: rgba(34, 26, 18, 0.045); }
.btn:disabled { opacity: 0.55; cursor: wait; transform: none; }
.btn-block { width: 100%; }

/* calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; display: grid; place-items: center;
  color: var(--ink-soft); transition: all 0.15s;
}
.cal-nav button:hover { background: var(--ivory); border-color: var(--brass); color: var(--brass-deep); }
.cal-nav button svg { width: 16px; height: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.cal-dow {
  text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px;
  color: var(--faint); text-transform: uppercase; padding: 6px 0;
}
.cal-day {
  aspect-ratio: 1 / 1; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  background: rgba(34, 26, 18, 0.025);
  transition: transform 0.12s;
  min-height: 52px;
}
.cal-day.has-bookings { background: var(--brass-wash); color: var(--ink); font-weight: 700; cursor: default; }
.cal-day.has-bookings:hover { transform: scale(1.05); }
.cal-day .count {
  font-size: 11px; font-weight: 700; color: #FFF8EA;
  background: linear-gradient(135deg, #D9AC4E, var(--brass-deep));
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center;
}
.cal-day.today { box-shadow: inset 0 0 0 2px var(--brass); font-weight: 700; color: var(--ink); }
.cal-day.off { background: transparent; color: var(--faint); }
.cal-day.off .off-tag { font-size: 9px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--faint); }
.cal-day.blank { background: transparent; }
.cal-legend { display: flex; gap: 18px; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-swatch { width: 12px; height: 12px; border-radius: 4px; }
.cal-day[data-date] { cursor: pointer; }

/* ---------- day detail sheet ---------- */
body.no-scroll { overflow: hidden; }
.day-sheet-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(34, 26, 18, 0.45);
  display: none; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.18s ease;
}
.day-sheet-backdrop.open { display: flex; }
.day-sheet {
  background: var(--paper); color: var(--ink);
  width: 100%; max-width: 560px; max-height: 78vh;
  border-radius: 26px 26px 0 0;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  animation: sheetUp 0.24s ease;
}
@media (min-width: 720px) {
  .day-sheet-backdrop { align-items: center; padding: 24px; }
  .day-sheet { border-radius: 26px; max-height: 70vh; }
}
.day-sheet-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 22px 24px 14px; border-bottom: 1px solid var(--line);
}
.day-sheet-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.day-sheet-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.day-sheet-close {
  border: none; background: var(--ivory-deep); color: var(--ink-soft);
  width: 34px; height: 34px; border-radius: 999px; font-size: 15px; cursor: pointer;
}
.day-sheet-list { overflow-y: auto; padding: 8px 12px 20px; }
.day-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 12px; border-bottom: 1px solid var(--line);
}
.day-row:last-child { border-bottom: none; }
.day-time {
  font-weight: 700; font-size: 14px; color: var(--brass-deep);
  min-width: 74px; font-variant-numeric: tabular-nums;
}
.day-main { flex: 1; min-width: 0; }
.day-name { font-weight: 600; font-size: 15px; }
.day-service { font-size: 13px; color: var(--muted); margin-top: 2px; }
.day-status {
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--brass-deep); background: var(--brass-wash);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.day-empty { text-align: center; color: var(--muted); padding: 36px 16px; font-size: 14px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(24px); opacity: 0.6; } }

/* ---------- schedule ---------- */
.sched-scroll { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.sched-grid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 660px; }
.sched-grid th, .sched-grid td { padding: 6px; }
.sched-grid thead th {
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--faint); padding-bottom: 10px; text-align: center;
}
.sched-grid tbody th {
  text-align: left; font-size: 14px; font-weight: 600; color: var(--ink);
  white-space: nowrap; padding-right: 14px;
  position: sticky; left: 0; background: var(--paper); z-index: 1;
}
.sched-grid tbody td { text-align: center; }
.shift-cell {
  width: 100%; border: 1px solid var(--line); background: var(--brass-wash);
  color: var(--ink); border-radius: var(--r-sm); padding: 10px 6px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  font-family: var(--font-ui); transition: border-color 0.12s;
}
.shift-cell.is-off { background: transparent; color: var(--faint); border-style: dashed; font-weight: 500; }
.shift-cell:hover { border-color: var(--brass); }

/* ---------- requests ---------- */

.req-layout { display: grid; grid-template-columns: 5fr 6fr; gap: 20px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.6px; margin-bottom: 9px; color: var(--ink-soft); }
.type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-opt {
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--ivory);
  padding: 15px 14px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  display: flex; align-items: center; gap: 10px; transition: all 0.15s; text-align: left;
  font-family: var(--font-ui); width: 100%;
}
.type-opt svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.type-opt:hover { border-color: var(--brass); }
.type-opt.selected {
  border-color: var(--brass); background: var(--brass-wash); color: var(--ink);
  box-shadow: 0 0 0 3px rgba(184, 134, 47, 0.12);
}
.type-opt.selected svg { color: var(--brass-deep); }

.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(var(--brass), var(--line));
  border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 22px; animation: rise 0.5s ease both; }
.tl-item::before {
  content: ""; position: absolute; left: -24px; top: 5px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--paper);
  border: 2.5px solid var(--brass);
}
.tl-item:last-child { padding-bottom: 2px; }
.tl-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.tl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.tl-type { font-weight: 700; font-size: 14.5px; }
.tl-date { font-size: 12px; color: var(--muted); }
.tl-details { font-size: 14px; color: var(--ink-soft); white-space: pre-wrap; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.pill .pdot { width: 7px; height: 7px; border-radius: 50%; }
.pill-new { background: var(--brass-wash); color: var(--brass-deep); }
.pill-new .pdot { background: var(--brass); }
.pill-progress { background: rgba(74, 111, 165, 0.13); color: var(--blue); }
.pill-progress .pdot { background: var(--blue); }
.pill-done { background: rgba(78, 124, 89, 0.13); color: var(--green); }
.pill-done .pdot { background: var(--green); }

/* ---------- documents ---------- */

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.doc-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.16s ease, box-shadow 0.2s ease;
  animation: rise 0.5s ease both;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.doc-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, var(--blush), #EBD3B8);
  display: grid; place-items: center; color: var(--brass-deep);
}
.doc-icon svg { width: 24px; height: 24px; }
.doc-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.doc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.type-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--muted); background: var(--ivory); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 999px;
}
.download-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--forest);
  text-decoration: none; padding: 9px 16px; border-radius: 999px;
  background: rgba(35, 64, 52, 0.08); transition: all 0.15s;
}
.download-btn:hover { background: rgba(35, 64, 52, 0.15); }
.download-btn svg { width: 15px; height: 15px; }

/* ---------- misc pages ---------- */

.placeholder-hero { text-align: center; padding: 60px 20px; }
.placeholder-hero .doc-icon { margin: 0 auto 20px; width: 68px; height: 68px; border-radius: 22px; }
.placeholder-hero h2 { font-family: var(--font-display); font-size: 28px; font-weight: 500; margin-bottom: 10px; }
.placeholder-hero p { color: var(--muted); max-width: 420px; margin: 0 auto; }

.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.help-card { text-align: left; }
.help-card .contact-big {
  font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 8px 0 4px;
  letter-spacing: -0.3px;
}
.help-card .contact-sub { font-size: 13.5px; color: var(--muted); }

/* ---------- login ---------- */

.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  position: relative; overflow: hidden;
}
.login-card {
  width: 100%; max-width: 420px; background: var(--paper);
  border-radius: 28px; padding: 44px 40px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.7); outline: 1px solid var(--line); outline-offset: -1px;
  animation: rise 0.6s ease both; position: relative; z-index: 2;
}
.login-card .brand { padding: 0 0 8px; justify-content: center; }
.login-card .brand-mark { width: 52px; height: 52px; font-size: 26px; border-radius: 18px; }
.login-title { font-family: var(--font-display); font-size: 27px; font-weight: 500; text-align: center; margin: 14px 0 6px; }
.login-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.login-card .field label { font-size: 12px; }
.login-error {
  display: none; background: rgba(179, 64, 46, 0.08); color: var(--danger);
  border: 1px solid rgba(179, 64, 46, 0.25); border-radius: var(--r-sm);
  padding: 12px 15px; font-size: 13.5px; font-weight: 600; margin-bottom: 16px;
}
.login-error.show { display: block; animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); } 75% { transform: translateX(7px); }
}
.login-foot { text-align: center; margin-top: 22px; font-size: 12.5px; color: var(--faint); }

/* ---------- toast ---------- */

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--forest-deep); color: #F5EDDD;
  padding: 15px 24px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); z-index: 100; opacity: 0;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 40px);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast svg { width: 17px; height: 17px; color: #9CC184; flex-shrink: 0; }
.toast.error svg { color: #E89B8B; }

/* skeleton */
.skel {
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(34,26,18,0.06) 25%, rgba(34,26,18,0.11) 50%, rgba(34,26,18,0.06) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .dash-grid .span-7, .dash-grid .span-5, .dash-grid .span-6 { grid-column: span 12; }
  .req-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .sidebar { display: none; }
  .tabbar { display: block; }
  .main { padding: 24px 18px 120px; }
  .card { padding: 22px 20px; }
  .cal-day { border-radius: 12px; min-height: 46px; font-size: 13px; }
  .type-options { grid-template-columns: 1fr; }
  .clock-form { flex-direction: column; }
  .login-card { padding: 36px 28px; }
}
