/* ── Google Fonts ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ── Palette CSS variables (pastel default) ───────────────────────────── */
:root {
  --c-bg:     #FFF7F0;
  --c-surf:   #FFFFFF;
  --c-surface:#FFFFFF;
  --c-ink:    #2A2233;
  --c-mute:   #6E6478;
  --c-line:   #EDE4DA;
  --c-blush:  #FFD6DE;
  --c-butter: #FFF0B3;
  --c-sky:    #C7E6FF;
  --c-mint:   #C9F0D4;
  --c-lilac:  #E4D4FF;
  --c-coral:  #FFB8A3;
  --c-success:#1FA463;
  --c-success-soft:#DDF8E7;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-sans:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --ease-pop: cubic-bezier(.18,.89,.32,1.28);
  --ease-soft: cubic-bezier(.22,1,.36,1);
  --motion-fast: 140ms;
  --motion-mid: 260ms;
  --motion-slow: 520ms;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; font-family: var(--font-sans); background: var(--c-bg); color: var(--c-ink); }
a { color: inherit; text-decoration: none; }
button  { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
#root { height: 100%; display: flex; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
* { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.15) transparent; }

/* ── Layout shell ─────────────────────────────────────────────────────── */
#app     { display: flex; height: 100vh; overflow: hidden; }
#sidebar { width: 240px; flex-shrink: 0; background: var(--c-surf); border-right: 1.5px solid var(--c-ink); display: flex; flex-direction: column; }
#main    { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
#topbar  { height: 52px; flex-shrink: 0; background: var(--c-surf); border-bottom: 1.5px solid var(--c-ink); display: flex; align-items: center; padding: 0 22px; gap: 14px; }
#content { flex: 1; overflow-y: auto; }

/* ── Sidebar sections ─────────────────────────────────────────────────── */
.sb-brand  { padding: 20px 18px 14px; border-bottom: 1.5px dashed var(--c-line); display: flex; align-items: center; gap: 10px; }
.sb-qlog   { padding: 12px 12px 8px; }
.sb-nav    { flex: 1; padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.sb-label  { font-family: var(--font-mono); font-size: 9px; color: var(--c-mute); letter-spacing: 1.5px; padding: 8px 8px 4px; }
.sb-bottom { border-top: 1px dashed var(--c-line); padding: 10px 12px; }
.sb-me     { margin: 10px 12px 12px; padding: 10px 12px; background: var(--c-bg); border: 1.5px solid var(--c-ink); border-radius: 12px; display: flex; align-items: center; gap: 10px; box-shadow: 2px 2px 0 var(--c-ink); }
.sb-logout { width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid transparent; display: flex; align-items: center; justify-content: center; color: var(--c-mute); flex-shrink: 0; transition: all 0.12s; }
.sb-logout:hover { border-color: var(--c-ink); background: var(--c-blush); color: var(--c-ink); box-shadow: 1px 1px 0 var(--c-ink); }
.sb-logout .ph { font-size: 15px; }
.sb-section-title { font-family: var(--font-mono); font-size: 8px; color: var(--c-mute); letter-spacing: 1.2px; margin-bottom: 7px; }
.sb-section-title-user { margin-bottom: 6px; }
.sb-me-copy { flex: 1; min-width: 0; }
.sb-name { font-size: 12px; font-weight: 700; }
/* ── Sidebar component classes ────────────────────────────────────────── */
.brand-mascot   { width: 36px; height: 36px; position: relative; }
.brand-mood     { font-size: 11px; }
.brand-title    { font-family: var(--font-display); font-style: italic; font-size: 22px; line-height: 1; }
.brand-dot      { color: var(--c-coral); }
.brand-subtitle { margin-top: 2px; font-family: var(--font-mono); font-size: 9px; color: var(--c-mute); letter-spacing: 1.4px; }
.sb-section-title { font-family: var(--font-mono); font-size: 8px; color: var(--c-mute); letter-spacing: 1.2px; margin-bottom: 7px; }
.sb-name        { font-size: 12px; font-weight: 700; }
.sb-role        { font-family: var(--font-mono); font-size: 9px; color: var(--c-mute); letter-spacing: .5px; }
.sb-me-copy     { flex: 1; min-width: 0; }
.sb-chevron     { font-size: 14px; color: var(--c-mute); }
.sb-logout      { display: flex; align-items: center; color: var(--c-mute); font-size: 16px; transition: color .15s; }
.sb-logout:hover{ color: var(--c-coral); }

/* ── Topbar / nav helpers ─────────────────────────────────────────────── */
.topbar-spacer,
.nav-text { flex: 1; }
.topbar-date { font-family: var(--font-mono); font-size: 10px; color: var(--c-mute); letter-spacing: 1px; }

/* ── Mascot sizes ─────────────────────────────────────────────────────── */
.mascot-md { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; }
.mascot-xl { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }

/* ── Mascot mood icon sizes ───────────────────────────────────────────── */
.icon-mood-xl { font-size: 23px; }

/* ── Avatar sizes ─────────────────────────────────────────────────────── */
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }

/* ── Nav item ─────────────────────────────────────────────────────────── */
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 1.5px solid transparent; background: transparent; color: var(--c-ink); text-align: left; width: 100%; font-size: 13px; font-weight: 500; transition: all 0.12s; }
.nav-item:hover { background: rgba(0,0,0,0.04); }
.nav-item.active { background: var(--c-butter); border-color: var(--c-ink); box-shadow: 2px 2px 0 var(--c-ink); font-weight: 700; }
.nav-icon { font-size: 16px; width: 22px; text-align: center; }
.nav-note { font-family: var(--font-mono); font-size: 9px; color: var(--c-mute); letter-spacing: 0.4px; margin-left: auto; }
.nav-badge { background: var(--c-coral); color: #fff; border-radius: 999px; padding: 1px 7px; font-family: var(--font-mono); font-size: 9px; font-weight: 700; border: 1.5px solid var(--c-ink); margin-left: auto; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn-primary { background: var(--c-mint); color: var(--c-ink); border: 1.5px solid var(--c-ink); border-radius: 999px; padding: 10px 18px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 1px; box-shadow: 3px 3px 0 var(--c-ink); }
.btn-ghost   { background: var(--c-surf); color: var(--c-ink); border: 1.5px solid var(--c-ink); border-radius: 999px; padding: 10px 14px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; box-shadow: 2px 2px 0 var(--c-ink); }
.btn-icon    { background: transparent; border: 1.5px solid var(--c-ink); border-radius: 999px; padding: 5px 12px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--c-ink); }
.btn-qlog    { width: 100%; padding: 10px 14px; background: var(--c-coral); color: #fff; border: 1.5px solid var(--c-ink); border-radius: 12px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 1px; box-shadow: 3px 3px 0 var(--c-ink); display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-chip    { padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--c-ink); font-family: var(--font-mono); font-size: 12px; font-weight: 600; background: var(--c-surf); color: var(--c-ink); transition: all 0.12s; }
.btn-chip.active { box-shadow: 2px 2px 0 var(--c-ink); }

/* ── Quick Log button in sidebar ─────────────────────────────────────── */
.qlog-chips { display: flex; gap: 6px; }
.qlog-chip  { position: relative; overflow: visible; flex: 1; padding: 7px 0; border: 1.5px solid var(--c-ink); border-radius: 999px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; background: var(--c-surf); color: var(--c-ink); }
.qlog-chip.pulse-log { animation: qlogChipPulse 360ms var(--ease-pop); }
.qlog-float {
  position: fixed;
  z-index: 9999;
  left: var(--qlog-x);
  top: var(--qlog-y);
  pointer-events: none;
  min-width: 46px;
  padding: 4px 9px;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  background: var(--c-success-soft);
  color: var(--c-success);
  box-shadow: 3px 3px 0 var(--c-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transform: translate(-50%, -50%) translateY(8px) rotate(var(--qlog-tilt, -2deg)) scale(.9);
  animation: qlogFloatUp 920ms var(--ease-soft) forwards;
}

/* ── Cards ────────────────────────────────────────────────────────────── */
.card        { background: var(--c-surf); border: 1.5px solid var(--c-ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--c-ink); }
.card-sm     { background: var(--c-surf); border: 1.5px solid var(--c-ink); border-radius: 12px; box-shadow: 2px 2px 0 var(--c-ink); }
.card-hd     { padding: 14px 20px; border-bottom: 1.5px solid var(--c-ink); background: rgba(255,255,255,0.4); display: flex; align-items: center; gap: 10px; }
.card-hd-icon{ width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,0.6); border: 1.5px solid var(--c-ink); display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* ── Page header ──────────────────────────────────────────────────────── */
.page-wrap  { padding: 28px 36px; min-height: 100%; position: relative; overflow: hidden; }
.page-wrap.with-sticky-save {
  padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
}
.page-hd    { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; position: relative; z-index: 2; }
.page-title { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: 42px; line-height: 1; margin: 0; }
.page-sub   { font-family: var(--font-mono); font-size: 11px; color: var(--c-mute); letter-spacing: 1px; margin-top: 10px; }
.crumb      { font-family: var(--font-mono); font-size: 11px; color: var(--c-mute); letter-spacing: 0.5px; margin-bottom: 4px; position: relative; z-index: 2; }
.crumb-sep  { margin: 0 6px; opacity: 0.5; }
.crumb-active { color: var(--c-ink); }

/* ── Sticker / pill / label ───────────────────────────────────────────── */
.sticker    { display: inline-block; border: 1.5px solid var(--c-ink); border-radius: 999px; padding: 3px 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; box-shadow: 2px 2px 0 var(--c-ink); }
.pill       { display: inline-flex; align-items: center; padding: 4px 10px; border: 1.5px solid var(--c-ink); border-radius: 999px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.6px; }

/* ── KPI card ─────────────────────────────────────────────────────────── */
.kpi        { border: 1.5px solid var(--c-ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--c-ink); padding: 14px 16px; }
.kpi-label  { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; color: var(--c-mute); }
.kpi-value  { font-family: var(--font-display); font-style: italic; font-size: 36px; line-height: 1; margin-top: 4px; }
.kpi-sub    { font-family: var(--font-mono); font-size: 10px; color: var(--c-mute); margin-top: 4px; letter-spacing: 0.4px; }
.kpi-mint { background: var(--c-mint); }
.kpi-butter { background: var(--c-butter); }
.kpi-lilac { background: var(--c-lilac); }
.kpi-blush { background: var(--c-blush); }
.kpi-sky { background: var(--c-sky); }
.kpi-label-ink { color: var(--c-ink); }

/* ── Avatar ───────────────────────────────────────────────────────────── */
.avatar { border-radius: 50%; border: 1.5px solid var(--c-ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; flex-shrink: 0; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }

/* ── Progress bar ─────────────────────────────────────────────────────── */
.bar-wrap { background: var(--c-line); border: 1.5px solid var(--c-ink); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; transition: width 0.3s; }

/* ── Table ────────────────────────────────────────────────────────────── */
.tbl-hd  { display: grid; gap: 12px; padding: 14px 18px; background: var(--c-butter); border-bottom: 1.5px solid var(--c-ink); font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1.3px; }
.tbl-row { display: grid; gap: 12px; padding: 14px 18px; align-items: center; border-bottom: 1px dashed var(--c-line); transition: background 0.1s; }
.tbl-row:last-child { border-bottom: none; }
.tbl-row:hover { background: rgba(0,0,0,0.02); }

/* ── Dashed border box ────────────────────────────────────────────────── */
.dashed { border: 2px dashed var(--c-ink); border-radius: 14px; }

/* ── Topbar search ────────────────────────────────────────────────────── */
.search-bar { display: flex; align-items: center; gap: 8px; padding: 7px 14px; background: var(--c-bg); border: 1.5px solid var(--c-ink); border-radius: 999px; width: 320px; font-family: var(--font-mono); font-size: 11px; color: var(--c-mute); }
.search-kbd { font-family: var(--font-mono); font-size: 9px; color: var(--c-mute); padding: 2px 6px; border: 1px solid var(--c-line); border-radius: 4px; margin-left: auto; }
.notif-btn  { width: 34px; height: 34px; border-radius: 10px; background: var(--c-butter); border: 1.5px solid var(--c-ink); box-shadow: 2px 2px 0 var(--c-ink); display: flex; align-items: center; justify-content: center; font-size: 16px; position: relative; }
.notif-badge{ position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-coral); color: #fff; border: 1.5px solid var(--c-ink); font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); }
.notif-badge.is-hidden { display: none; }

/* ── Background doodles ───────────────────────────────────────────────── */
.bg-doodle { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.3; }

/* ── Scribble underline ───────────────────────────────────────────────── */
.scribble-wrap { position: relative; display: inline-block; }
.scribble      { position: absolute; bottom: -8px; left: 0; display: block; }

/* ── Mascot ───────────────────────────────────────────────────────────── */
.mascot { position: relative; flex-shrink: 0; }
.mascot svg { overflow: visible; }
.mascot-mood { position: absolute; right: -4px; bottom: -2px; filter: drop-shadow(0 1px 0 rgba(0,0,0,0.1)); }

/* Mood check-in card */
.page-hd > .card.rel-z2 {
  width: 256px !important;
  padding: 15px !important;
  overflow: visible;
  isolation: isolate;
  background:
    radial-gradient(circle at 87% 12%, color-mix(in srgb, var(--c-coral) 48%, transparent) 0 28px, transparent 29px),
    radial-gradient(circle at 8% 92%, color-mix(in srgb, var(--c-sky) 46%, transparent) 0 34px, transparent 35px),
    linear-gradient(135deg, var(--c-surf) 0%, color-mix(in srgb, var(--c-butter) 42%, var(--c-surf)) 100%);
}
.page-hd > .card.rel-z2::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px dashed color-mix(in srgb, var(--c-ink) 36%, transparent);
  border-radius: 14px;
  pointer-events: none;
  z-index: -1;
}
.page-hd > .card.rel-z2::after {
  content: "studio weather";
  position: absolute;
  right: 15px;
  top: -12px;
  padding: 3px 9px;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  background: var(--c-blush);
  box-shadow: 2px 2px 0 var(--c-ink);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
  rotate: 2deg;
}
.page-hd > .card.rel-z2 .kpi-label {
  color: var(--c-ink);
  margin-bottom: 4px;
}
.page-hd > .card.rel-z2 .kpi-label::after {
  content: "Pick a creative mode for the day";
  display: block;
  margin-top: 4px;
  color: var(--c-mute);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.page-hd > .card.rel-z2 .flex.flex-wrap {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px !important;
  margin-top: 10px !important;
}
.page-hd > .card.rel-z2 button {
  width: 100% !important;
  height: 40px !important;
  position: relative;
  border-color: var(--c-ink) !important;
  background: color-mix(in srgb, var(--c-surf) 72%, var(--c-bg)) !important;
  box-shadow: 2px 2px 0 var(--c-ink);
  display: grid;
  place-items: center;
  filter: saturate(.94);
  animation: popIn 380ms var(--ease-pop) both;
}
.page-hd > .card.rel-z2 button:nth-child(2n) { animation-delay: 45ms; }
.page-hd > .card.rel-z2 button:nth-child(3n) { animation-delay: 90ms; }
.page-hd > .card.rel-z2 button[title="Sparkly"] {
  grid-column: span 3;
  height: 58px !important;
  grid-template-columns: auto 1fr;
  justify-content: start;
  padding: 0 15px;
  gap: 10px;
  background:
    radial-gradient(circle at 15% 40%, #fff 0 12px, transparent 13px),
    linear-gradient(135deg, var(--c-butter), var(--c-blush)) !important;
  font-size: 30px !important;
  filter: saturate(1.12);
  rotate: -1deg;
}
.page-hd > .card.rel-z2 button[title="Sparkly"]::after {
  content: "Sparkly focus";
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  line-height: 1;
}
.page-hd > .card.rel-z2 button:not([title="Sparkly"]):hover {
  translate: -2px -4px;
  rotate: -2deg;
  background: var(--c-sky) !important;
  filter: saturate(1.18);
}
.page-hd > .card.rel-z2 button[title="Sparkly"]:hover {
  translate: -3px -4px;
  box-shadow: 6px 6px 0 var(--c-ink);
}
.page-hd > .card.rel-z2 button:not([title="Sparkly"]):hover::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  translate: -50% 0;
  padding: 3px 7px;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  background: var(--c-ink);
  color: var(--c-bg);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 4;
}

/* ── Week chart ───────────────────────────────────────────────────────── */
.week-chart { display: flex; gap: 6px; align-items: flex-end; height: 80px; }
.week-col   { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.week-bar   { width: 100%; height: 64px; background: var(--c-line); border: 1.5px solid var(--c-ink); border-radius: 5px; position: relative; overflow: hidden; }
.week-fill  { position: absolute; bottom: 0; left: 0; right: 0; }
.week-lbl   { font-family: var(--font-mono); font-size: 9px; color: var(--c-mute); }

/* ── Streak dots ──────────────────────────────────────────────────────── */
.streak-dots { display: flex; gap: 3px; margin-top: 12px; }
.streak-dot  { flex: 1; height: 12px; border-radius: 3px; border: 1.5px solid var(--c-ink); }

/* ── Dashboard metric row ─────────────────────────────────────────────── */
.dash-metric-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, .9fr);
  gap: 16px;
  margin-bottom: 22px;
}
.dash-metric-card {
  min-height: 178px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.dash-metric-hours { background: var(--c-sky); }
.dash-metric-streak { background: var(--c-butter); }
.dash-metric-kudos { background: var(--c-blush); }
.dash-metric-head,
.dash-metric-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.dash-metric-main {
  align-items: flex-end;
  margin-top: 12px;
}
.dash-metric-icon {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--c-ink);
  border-radius: 10px;
  background: var(--c-surf);
  box-shadow: 2px 2px 0 var(--c-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.dash-metric-icon .ph { font-size: 17px; }
.dash-metric-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--c-mute);
  letter-spacing: 1px;
}
.dash-metric-value {
  font-family: var(--font-display);
  font-size: 54px;
  line-height: .9;
  font-style: italic;
  color: var(--c-ink);
}
.dash-metric-note {
  max-width: 125px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.35;
  color: var(--c-mute);
  text-align: right;
}
.dash-week-chart {
  height: 58px;
  margin-top: 12px;
}
.dash-week-chart .week-bar {
  height: 42px;
  background: rgba(255,255,255,.45);
}
.dash-kudos-pulse {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-mute);
}
.dash-kudos-pulse .ph {
  width: 23px;
  height: 23px;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  background: var(--c-surf);
  color: var(--c-coral);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: moodPop 1.5s var(--ease-pop) infinite;
}
.dash-kudos-action {
  width: 100%;
  margin-top: 14px;
  padding: 9px 12px;
  border: 1.5px solid var(--c-ink);
  border-radius: 12px;
  background: var(--c-surf);
  color: var(--c-ink);
  box-shadow: 3px 3px 0 var(--c-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  cursor: pointer;
}
.dash-kudos-action:hover {
  translate: -1px -1px;
  background: var(--c-butter);
  box-shadow: 4px 4px 0 var(--c-ink);
}
.dash-kudos-action:disabled {
  opacity: .55;
  cursor: not-allowed;
  translate: none;
}
.dash-count-pop {
  animation: kudosCountPop 520ms var(--ease-pop);
}

/* ── Kudos modal ──────────────────────────────────────────────────────── */
.kudos-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(42,34,51,.55);
  backdrop-filter: blur(6px);
}
.kudos-modal-overlay.open {
  display: flex;
  animation: kudosModalIn .24s var(--ease-soft) both;
}
.kudos-modal {
  width: min(100%, 430px);
  background: var(--c-surf);
  border: 1.5px solid var(--c-ink);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--c-ink);
  overflow: hidden;
}
.kudos-modal-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  background: var(--c-blush);
  border-bottom: 1.5px dashed var(--c-ink);
}
.kudos-modal-title {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  font-style: italic;
}
.kudos-modal-body {
  padding: 20px 22px;
}
.kudos-modal-body .field-label + .field-input {
  margin-bottom: 14px;
}
.kudos-select,
.kudos-message {
  background: var(--c-bg);
}
.kudos-message {
  min-height: 104px;
  resize: vertical;
  line-height: 1.45;
}
.kudos-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 18px;
  margin-top: -6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--c-mute);
}
#kudos-error {
  color: var(--c-coral);
  font-weight: 700;
}
.kudos-modal-ft {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 22px 20px;
  border-top: 1.5px solid var(--c-ink);
  background: var(--c-bg);
}
.kudos-modal-ft .btn-primary,
.kudos-modal-ft .btn-ghost {
  justify-content: center;
}

/* Compact PMS work-mode card */
.page-hd > .mood-card.card.rel-z2 {
  width: 214px !important;
  padding: 12px 14px !important;
  overflow: hidden;
  background: var(--c-surf);
  isolation: auto;
}
.page-hd > .mood-card.card.rel-z2::before {
  content: none;
}
.page-hd > .mood-card.card.rel-z2::after {
  content: "today";
  top: 10px;
  right: 12px;
  padding: 2px 7px;
  background: var(--c-bg);
  box-shadow: none;
  font-size: 8px;
  rotate: 0deg;
}
.page-hd > .mood-card.card.rel-z2 .kpi-label {
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}
.page-hd > .mood-card.card.rel-z2 .kpi-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  background: var(--c-mint);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-mint) 45%, transparent), 1.5px 1.5px 0 var(--c-ink);
  animation: workModeBeacon 1.6s ease-out infinite;
}
.page-hd > .mood-card.card.rel-z2 .kpi-label::after {
  content: "Set current availability";
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
}
.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.page-hd > .mood-card.card.rel-z2 .mood-btn {
  width: 100% !important;
  height: 44px !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1.5px solid var(--c-ink) !important;
  border-radius: 10px !important;
  background: var(--c-bg) !important;
  box-shadow: 2px 2px 0 var(--c-ink);
  color: var(--c-ink);
  font-size: 15px !important;
  rotate: 0deg !important;
}
.page-hd > .mood-card.card.rel-z2 .mood-btn span {
  display: inline-block;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  animation: moodIconFloat 2.2s ease-in-out infinite;
}
.page-hd > .mood-card.card.rel-z2 .mood-btn:nth-child(2n) span {
  animation-delay: .25s;
}
.page-hd > .mood-card.card.rel-z2 .mood-btn:nth-child(3n) span {
  animation-delay: .5s;
}
.page-hd > .mood-card.card.rel-z2 .mood-btn.active span {
  animation-name: moodIconTick;
  animation-duration: 1.25s;
}
.page-hd > .mood-card.card.rel-z2 .mood-btn b {
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1;
  letter-spacing: .2px;
}
.page-hd > .mood-card.card.rel-z2 .mood-btn.active {
  background: var(--c-butter) !important;
}
.page-hd > .mood-card.card.rel-z2 .mood-btn::after {
  content: none !important;
}
.page-hd > .mood-card.card.rel-z2 .mood-btn:hover {
  translate: -1px -2px;
  rotate: 0deg !important;
  background: var(--c-sky) !important;
  box-shadow: 3px 3px 0 var(--c-ink);
}

/* Themed animated work-mode icons */
.mood-icon {
  width: 23px;
  height: 23px;
  display: inline-block;
  color: transparent;
  font-size: 0;
  line-height: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  animation: moodIconFloat 2.2s ease-in-out infinite;
  flex-shrink: 0;
  vertical-align: middle;
}
.mood-icon-focus {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 32h11v-7h3.5c1.4 0 2.5-1.1 2.5-2.5v-4.2l1.5-.9-2.2-6.6C32 5.8 27.6 3 22.5 3 16 3 11.1 7.5 11.1 13.7c0 2.3.7 4.1 1.7 6.1L17 32Z' fill='none' stroke='%232A2233' stroke-width='2.3' stroke-linejoin='round' stroke-linecap='round'/%3E%3Ccircle cx='12.5' cy='13.5' r='8.7' fill='%23C7E6FF' stroke='%232A2233' stroke-width='1.9'/%3E%3Ccircle cx='12.5' cy='13.5' r='2.3' fill='%23FFF7F0' stroke='%232A2233' stroke-width='1.7'/%3E%3Cpath d='M12.5 3.8v5.1M12.5 18.1v5.1M2.8 13.5h5.1M17.1 13.5h5.1' stroke='%23FF7A45' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  animation-name: focusLock;
}
.mood-icon-open {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='18' cy='18' r='12.5' fill='%23C9F0D4' stroke='%232A2233' stroke-width='2.3'/%3E%3Cpath d='M11 18.2l4.5 4.5L25.5 13' fill='none' stroke='%232A2233' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='28' cy='9' r='3.3' fill='%23FFF0B3' stroke='%232A2233' stroke-width='1.8'/%3E%3C/svg%3E");
  animation-name: openPulse;
}
.mood-icon-busy {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='10' y='5' width='16' height='26' rx='5' fill='%23FFF0B3' stroke='%232A2233' stroke-width='2.3'/%3E%3Cpath d='M13 9h10M13 27h10M15 12c0 3.4 6 3.4 6 6s-6 2.6-6 6' fill='none' stroke='%23FF7A45' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  animation-name: busyTilt;
}
.mood-icon-meet {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 9.5h18c2 0 3.5 1.6 3.5 3.5v7.5c0 2-1.6 3.5-3.5 3.5h-8l-5.2 4.5V24H7c-2 0-3.5-1.6-3.5-3.5V13c0-2 1.6-3.5 3.5-3.5Z' fill='%23E4D4FF' stroke='%232A2233' stroke-width='2.2' stroke-linejoin='round'/%3E%3Ccircle cx='11.5' cy='17' r='1.7' fill='%232A2233'/%3E%3Ccircle cx='17' cy='17' r='1.7' fill='%232A2233'/%3E%3Ccircle cx='22.5' cy='17' r='1.7' fill='%232A2233'/%3E%3C/svg%3E");
}
.mood-icon-block {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 5l13 23H5L18 5Z' fill='%23FFB8A3' stroke='%232A2233' stroke-width='2.3' stroke-linejoin='round'/%3E%3Cpath d='M18 13v7' stroke='%232A2233' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='18' cy='25' r='1.7' fill='%232A2233'/%3E%3C/svg%3E");
  animation-name: blockNudge;
}
.mood-icon-slow {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 16h15v6.5c0 3.6-2.9 6.5-6.5 6.5h-2c-3.6 0-6.5-2.9-6.5-6.5V16Z' fill='%23FFF0B3' stroke='%232A2233' stroke-width='2.3'/%3E%3Cpath d='M25 18h2.5a3.5 3.5 0 0 1 0 7H25' fill='none' stroke='%232A2233' stroke-width='2.3'/%3E%3Cpath d='M13 10c-1.6-1.6 1.6-2.8 0-4.4M18 10c-1.6-1.6 1.6-2.8 0-4.4M23 10c-1.6-1.6 1.6-2.8 0-4.4' fill='none' stroke='%23FF7A45' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  animation-name: slowSteam;
}
.mood-icon-chip {
  width: 19px;
  height: 19px;
}
.mood-icon-mini {
  width: 17px;
  height: 17px;
}
.mood-icon-stamp {
  width: 34px;
  height: 34px;
  display: block;
  margin: 0 auto 2px;
  animation: moodIconTick 1.25s ease-in-out infinite;
}
.mood-icon-stamp + small {
  display: block;
  margin-top: 1px;
}
.page-hd > .mood-card.card.rel-z2 .mood-btn .mood-emoji {
  width: 23px;
  height: 23px;
  display: block;
  color: transparent;
  font-size: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  animation: moodIconFloat 2.2s ease-in-out infinite;
}
.page-hd > .mood-card.card.rel-z2 .mood-btn:nth-child(1) .mood-emoji {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 32h11v-7h3.5c1.4 0 2.5-1.1 2.5-2.5v-4.2l1.5-.9-2.2-6.6C32 5.8 27.6 3 22.5 3 16 3 11.1 7.5 11.1 13.7c0 2.3.7 4.1 1.7 6.1L17 32Z' fill='none' stroke='%232A2233' stroke-width='2.3' stroke-linejoin='round' stroke-linecap='round'/%3E%3Ccircle cx='12.5' cy='13.5' r='8.7' fill='%23C7E6FF' stroke='%232A2233' stroke-width='1.9'/%3E%3Ccircle cx='12.5' cy='13.5' r='2.3' fill='%23FFF7F0' stroke='%232A2233' stroke-width='1.7'/%3E%3Cpath d='M12.5 3.8v5.1M12.5 18.1v5.1M2.8 13.5h5.1M17.1 13.5h5.1' stroke='%23FF7A45' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  animation-name: focusLock;
}
.page-hd > .mood-card.card.rel-z2 .mood-btn:nth-child(2) .mood-emoji {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='18' cy='18' r='12.5' fill='%23C9F0D4' stroke='%232A2233' stroke-width='2.3'/%3E%3Cpath d='M11 18.2l4.5 4.5L25.5 13' fill='none' stroke='%232A2233' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='28' cy='9' r='3.3' fill='%23FFF0B3' stroke='%232A2233' stroke-width='1.8'/%3E%3C/svg%3E");
  animation-name: openPulse;
}
.page-hd > .mood-card.card.rel-z2 .mood-btn:nth-child(3) .mood-emoji {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='10' y='5' width='16' height='26' rx='5' fill='%23FFF0B3' stroke='%232A2233' stroke-width='2.3'/%3E%3Cpath d='M13 9h10M13 27h10M15 12c0 3.4 6 3.4 6 6s-6 2.6-6 6' fill='none' stroke='%23FF7A45' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  animation-name: busyTilt;
}
.page-hd > .mood-card.card.rel-z2 .mood-btn:nth-child(4) .mood-emoji {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 9.5h18c2 0 3.5 1.6 3.5 3.5v7.5c0 2-1.6 3.5-3.5 3.5h-8l-5.2 4.5V24H7c-2 0-3.5-1.6-3.5-3.5V13c0-2 1.6-3.5 3.5-3.5Z' fill='%23E4D4FF' stroke='%232A2233' stroke-width='2.2' stroke-linejoin='round'/%3E%3Ccircle cx='11.5' cy='17' r='1.7' fill='%232A2233'/%3E%3Ccircle cx='17' cy='17' r='1.7' fill='%232A2233'/%3E%3Ccircle cx='22.5' cy='17' r='1.7' fill='%232A2233'/%3E%3C/svg%3E");
}
.page-hd > .mood-card.card.rel-z2 .mood-btn:nth-child(5) .mood-emoji {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 5l13 23H5L18 5Z' fill='%23FFB8A3' stroke='%232A2233' stroke-width='2.3' stroke-linejoin='round'/%3E%3Cpath d='M18 13v7' stroke='%232A2233' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='18' cy='25' r='1.7' fill='%232A2233'/%3E%3C/svg%3E");
  animation-name: blockNudge;
}
.page-hd > .mood-card.card.rel-z2 .mood-btn:nth-child(6) .mood-emoji {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 16h15v6.5c0 3.6-2.9 6.5-6.5 6.5h-2c-3.6 0-6.5-2.9-6.5-6.5V16Z' fill='%23FFF0B3' stroke='%232A2233' stroke-width='2.3'/%3E%3Cpath d='M25 18h2.5a3.5 3.5 0 0 1 0 7H25' fill='none' stroke='%232A2233' stroke-width='2.3'/%3E%3Cpath d='M13 10c-1.6-1.6 1.6-2.8 0-4.4M18 10c-1.6-1.6 1.6-2.8 0-4.4M23 10c-1.6-1.6 1.6-2.8 0-4.4' fill='none' stroke='%23FF7A45' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  animation-name: slowSteam;
}
.page-hd > .mood-card.card.rel-z2 .mood-btn.active .mood-emoji,
.pi-mood-btn.active .mood-icon {
  animation-name: moodIconTick;
  animation-duration: 1.25s;
}

/* ── Section header ───────────────────────────────────────────────────── */
.sect-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.sect-hd-label { font-family: var(--font-mono); font-size: 9px; color: var(--c-mute); letter-spacing: 1.4px; }
.sect-hd-title { font-weight: 800; font-size: 15px; }

/* ── Modal ────────────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-box     { background: var(--c-surf); border: 1.5px solid var(--c-ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--c-ink); width: 540px; max-height: 90vh; overflow-y: auto; }
.modal-hd      { padding: 18px 22px; border-bottom: 1.5px solid var(--c-ink); display: flex; justify-content: space-between; align-items: center; }
.modal-body    { padding: 22px; display: grid; gap: 14px; }
.modal-ft      { padding: 14px 22px; border-top: 1.5px solid var(--c-ink); display: flex; justify-content: flex-end; gap: 10px; }
.field-label   { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.3px; font-weight: 700; margin-bottom: 6px; }
.field-input   { width: 100%; padding: 9px 12px; border: 1.5px solid var(--c-ink); border-radius: 10px; background: var(--c-bg); color: var(--c-ink); font-size: 13px; outline: none; }

/* ── Toast ────────────────────────────────────────────────────────────── */
.toast { position: fixed; top: 24px; right: 24px; z-index: 9999; background: var(--c-ink); color: var(--c-bg); padding: 10px 18px; border-radius: 999px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.5px; box-shadow: 4px 4px 0 var(--c-coral); animation: toastIn 0.2s ease; pointer-events: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Theme switcher ───────────────────────────────────────────────────── */
.theme-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.theme-btn  { padding: 3px 8px; border-radius: 999px; border: 1.5px solid var(--c-ink); font-family: var(--font-mono); font-size: 8px; font-weight: 700; cursor: pointer; background: var(--c-surf); color: var(--c-ink); transition: all 0.12s; }
.theme-btn.active { background: var(--c-coral); color: #fff; }

/* ── User switcher ────────────────────────────────────────────────────── */
.user-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.user-btn  { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid transparent; font-family: var(--font-mono); font-size: 8px; font-weight: 700; color: var(--c-ink); cursor: pointer; transition: all 0.12s; }
.user-btn.active { border-color: var(--c-ink); box-shadow: 2px 2px 0 var(--c-ink); }

/* ── Revenue chart bars ───────────────────────────────────────────────── */
.rev-bar-wrap { display: flex; align-items: flex-end; gap: 4px; }
.rev-bar      { flex: 1; border: 1.5px solid var(--c-ink); border-radius: 6px 6px 0 0; box-shadow: 2px 0 0 var(--c-ink); }

/* ── Responsive (utility) ─────────────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.grid-2r{ display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center  { display: flex; align-items: center; }
.rel-z2 { position: relative; z-index: 2; }

/* Holiday calendar */
.holiday-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 360px;
  gap: 18px;
  align-items: start;
}
.holiday-calendar-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}
.holiday-calendar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 15px, color-mix(in srgb, var(--c-butter) 26%, transparent) 15px 17px),
    linear-gradient(180deg, color-mix(in srgb, var(--c-surf) 82%, transparent), var(--c-surf));
  pointer-events: none;
}
.holiday-calendar-card > * { position: relative; z-index: 1; }
.holiday-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.holiday-month-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  background: var(--c-butter);
  box-shadow: 3px 3px 0 var(--c-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .8px;
}
.holiday-month-nav {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-surf);
  box-shadow: 2px 2px 0 var(--c-ink);
}
.holiday-weekdays,
.holiday-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.holiday-weekdays {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--c-mute);
  text-align: center;
}
.hday {
  --holiday-accent: var(--c-mint);
  position: relative;
  min-height: 96px;
  padding: 10px;
  border: 1.5px solid var(--c-ink);
  border-radius: 14px;
  background: color-mix(in srgb, var(--c-surf) 86%, var(--c-bg));
  color: var(--c-ink);
  box-shadow: 2px 2px 0 var(--c-ink);
  text-align: left;
  overflow: hidden;
}
.hday::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  right: 9px;
  top: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--c-ink);
  background: transparent;
  opacity: .36;
}
.hday-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}
.hday.is-muted {
  opacity: .42;
  background: var(--c-line);
}
.hday.is-weekend {
  background: color-mix(in srgb, var(--c-sky) 34%, var(--c-surf));
}
.hday.is-today .hday-num {
  background: var(--c-ink);
  color: var(--c-bg);
}
.hday.is-holiday {
  background: color-mix(in srgb, var(--holiday-accent) 64%, var(--c-surf));
}
.hday.is-holiday::after {
  opacity: 1;
  background: var(--holiday-accent);
  animation: holidayBeat 1.8s var(--ease-soft) infinite;
}
.hday.holiday-public { --holiday-accent: var(--c-coral); }
.hday.holiday-company { --holiday-accent: var(--c-mint); }
.hday.holiday-optional { --holiday-accent: var(--c-lilac); }
.hday.holiday-restricted { --holiday-accent: var(--c-butter); }
.hday.is-selected {
  translate: -3px -3px;
  box-shadow: 6px 6px 0 var(--c-ink);
  outline: 3px solid color-mix(in srgb, var(--c-coral) 45%, transparent);
  outline-offset: 2px;
}
.hday-tag,
.hday-name {
  display: block;
  font-family: var(--font-mono);
  position: relative;
  z-index: 1;
}
.hday-tag {
  width: max-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 3px 7px;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  background: var(--c-surf);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .7px;
  white-space: nowrap;
}
.hday-name {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.25;
}
.holiday-editor-card {
  padding: 18px;
  position: sticky;
  top: 18px;
}
.holiday-editor-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 34px;
  line-height: .95;
  margin: 8px 0 4px;
}
.holiday-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.holiday-type {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1.5px solid var(--c-ink);
  border-radius: 12px;
  background: var(--c-surf);
  box-shadow: 2px 2px 0 var(--c-ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .4px;
}
.holiday-type input { accent-color: var(--c-coral); }
.holiday-type[data-type="public"] { background: color-mix(in srgb, var(--c-coral) 38%, var(--c-surf)); }
.holiday-type[data-type="company"] { background: color-mix(in srgb, var(--c-mint) 56%, var(--c-surf)); }
.holiday-type[data-type="optional"] { background: color-mix(in srgb, var(--c-lilac) 52%, var(--c-surf)); }
.holiday-type[data-type="restricted"] { background: color-mix(in srgb, var(--c-butter) 62%, var(--c-surf)); }
.holiday-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.holiday-summary-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.holiday-feed-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1.5px solid var(--c-ink);
  border-radius: 14px;
  background: var(--c-surf);
  box-shadow: 2px 2px 0 var(--c-ink);
}
.holiday-feed-day {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--c-ink);
  border-radius: 12px;
  background: var(--holiday-accent, var(--c-mint));
  font-family: var(--font-display);
  font-size: 25px;
  font-style: italic;
  line-height: 1;
}
.holiday-feed-title {
  font-size: 12px;
  font-weight: 800;
}
.holiday-feed-meta {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--c-mute);
  letter-spacing: .4px;
}
.holiday-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.holiday-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--c-mute);
}
.holiday-legend i {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--c-ink);
  border-radius: 50%;
}
.holiday-stamp {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  padding: 6px 12px;
  border: 2px solid var(--c-ink);
  border-radius: 999px;
  background: var(--c-mint);
  color: var(--c-ink);
  box-shadow: 3px 3px 0 var(--c-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  transform: translate(-50%, -50%) rotate(-6deg) scale(.85);
  animation: holidayStamp 780ms var(--ease-soft) forwards;
}

/* Attendance calendar */
.attendance-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 370px;
  gap: 18px;
  align-items: start;
}
.attendance-title-mascot {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-mood-lg { font-size: 17px; }
.attendance-kpis { margin-bottom: 18px; }
.attendance-calendar-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}
.attendance-calendar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--c-mint) 38%, transparent) 0 70px, transparent 72px),
    radial-gradient(circle at 88% 16%, color-mix(in srgb, var(--c-sky) 42%, transparent) 0 58px, transparent 60px),
    linear-gradient(180deg, color-mix(in srgb, var(--c-surf) 88%, transparent), var(--c-surf));
  pointer-events: none;
}
.attendance-calendar-card > * { position: relative; z-index: 1; }
.attendance-status-dot {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--c-ink);
  border-radius: 50%;
  background: var(--att-accent, var(--c-line));
  box-shadow: 1px 1px 0 var(--c-ink);
}
.attendance-status-dot.is-idle { --att-accent: var(--c-line); }
.is-present { --att-accent: var(--c-mint); }
.is-late { --att-accent: var(--c-butter); }
.is-half { --att-accent: var(--c-lilac); }
.is-absent { --att-accent: var(--c-blush); }
.is-leave { --att-accent: var(--c-sky); }
.is-active { --att-accent: var(--c-coral); }
.legend-dot { background: var(--att-accent, var(--c-line)); }
.hday.att-present { --att-accent: var(--c-mint); background: color-mix(in srgb, var(--c-mint) 58%, var(--c-surf)); }
.hday.att-late { --att-accent: var(--c-butter); background: color-mix(in srgb, var(--c-butter) 62%, var(--c-surf)); }
.hday.att-half { --att-accent: var(--c-lilac); background: color-mix(in srgb, var(--c-lilac) 54%, var(--c-surf)); }
.hday.att-absent { --att-accent: var(--c-blush); background: color-mix(in srgb, var(--c-blush) 66%, var(--c-surf)); }
.hday.att-leave { --att-accent: var(--c-sky); background: color-mix(in srgb, var(--c-sky) 58%, var(--c-surf)); }
.hday.att-active { --att-accent: var(--c-coral); background: color-mix(in srgb, var(--c-coral) 45%, var(--c-surf)); }
.hday.att-present::after,
.hday.att-late::after,
.hday.att-half::after,
.hday.att-absent::after,
.hday.att-leave::after,
.hday.att-active::after {
  opacity: 1;
  background: var(--att-accent);
}
.hday.att-active::after { animation: attendancePulse 1.2s var(--ease-soft) infinite; }
.att-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  color: var(--c-mute);
}
.att-hours {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-top: 5px;
  padding: 3px 7px;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  background: var(--c-surf);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .6px;
}
.attendance-editor-card {
  padding: 18px;
  position: sticky;
  top: 18px;
}
.attendance-clock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--c-ink);
  border-radius: 16px;
  background: var(--c-butter);
  box-shadow: 3px 3px 0 var(--c-ink);
}
.attendance-clock-time {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 44px;
  line-height: .88;
}
.attendance-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  padding: 6px 11px;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  background: var(--c-surf);
  box-shadow: 2px 2px 0 var(--c-ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .8px;
}
.attendance-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.attendance-page-hd {
  z-index: 80;
  gap: 16px;
}
.attendance-page-hd:has(.pms-select.open),
.attendance-page-hd:focus-within {
  z-index: 220;
}
.attendance-hd-actions {
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
}
.attendance-hd-actions .btn-primary,
.attendance-hd-actions .btn-ghost {
  min-height: 44px;
  padding: 0 14px;
  white-space: nowrap;
}
.pms-select {
  position: relative;
  width: clamp(218px, 26vw, 252px);
  min-width: 218px;
  z-index: 90;
}
.pms-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.pms-select-trigger {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1.5px solid var(--c-ink);
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--c-butter) 35%, var(--c-surf)) 0%, var(--c-surf) 72%);
  color: var(--c-ink);
  box-shadow: 3px 3px 0 var(--c-ink);
  text-align: left;
}
.pms-select-trigger::after {
  content: "";
  position: absolute;
  right: 38px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--c-ink);
  background: var(--c-mint);
}
.pms-select-avatar,
.pms-select-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--c-ink);
  color: var(--c-ink);
}
.pms-select-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--c-lilac);
  box-shadow: 1.5px 1.5px 0 var(--c-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
}
.pms-select-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-coral);
}
.pms-select-copy {
  min-width: 0;
}
.pms-select-label {
  display: block;
  margin-bottom: 1px;
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--c-mute);
}
.pms-select-value,
.pms-select-meta,
.pms-select-option b,
.pms-select-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pms-select-value {
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: .4px;
}
.pms-select-meta {
  display: none;
  margin-top: 2px;
  color: var(--c-mute);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4px;
}
.pms-select:focus-within {
  z-index: 120;
}
.pms-select-trigger:focus-visible {
  outline: 3px solid var(--c-coral);
  outline-offset: 3px;
}
.pms-select:hover .pms-select-trigger {
  translate: -1px -1px;
  box-shadow: 4px 4px 0 var(--c-ink);
}
.pms-select:hover .pms-select-arrow,
.pms-select.open .pms-select-arrow {
  rotate: -8deg;
  background: var(--c-butter);
}
.pms-select.open .pms-select-trigger {
  border-radius: 14px 14px 10px 10px;
  box-shadow: 4px 4px 0 var(--c-ink);
}
.pms-select-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  display: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  max-height: 286px;
  overflow-y: auto;
  padding: 7px;
  border: 1.5px solid var(--c-ink);
  border-radius: 16px;
  background: var(--c-surf);
  box-shadow: 5px 5px 0 var(--c-ink);
  z-index: 240;
}
.pms-select.open .pms-select-menu {
  display: grid;
  gap: 6px;
  animation: pmsMenuIn 180ms var(--ease-soft) both;
}
.pms-select-option {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--c-ink);
  text-align: left;
}
.pms-select-option .pms-select-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 10px;
}
.pms-select-option b {
  font-size: 11px;
  line-height: 1.05;
}
.pms-select-option small {
  margin-top: 2px;
  color: var(--c-mute);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
}
.pms-select-option > .ph {
  opacity: 0;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-mint);
}
.pms-select-option:hover {
  background: color-mix(in srgb, var(--c-butter) 34%, var(--c-surf));
  border-color: var(--c-line);
}
.pms-select-option.active {
  background: var(--c-butter);
  border-color: var(--c-ink);
  box-shadow: 2px 2px 0 var(--c-ink);
}
.pms-select-option.active > .ph {
  opacity: 1;
}
.emp-aanya { background: #FFB8C8; }
.emp-rohan { background: #C7E6FF; }
.emp-meher { background: #FFE29A; }
.emp-dev { background: #C9F0D4; }
.emp-priya { background: #E0CFFF; }
.emp-kabir { background: #FFD9B8; }
.emp-ira { background: #FFC9E0; }
.emp-nikhil { background: #B8E6E0; }
.attendance-actions button:disabled {
  opacity: .42;
  cursor: not-allowed;
  translate: 0 0 !important;
  box-shadow: 1px 1px 0 var(--c-ink) !important;
}
.attendance-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.attendance-detail-card,
.attendance-feed-card {
  padding: 14px;
}
.attendance-detail-card { background: var(--c-butter); }
.attendance-feed-card { background: var(--c-sky); }
.attendance-mini {
  padding: 10px;
  border: 1.5px solid var(--c-ink);
  border-radius: 12px;
  background: var(--c-surf);
}
.attendance-mini b {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.attendance-feed {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.attendance-feed-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1.5px solid var(--c-ink);
  border-radius: 14px;
  background: var(--c-surf);
  box-shadow: 2px 2px 0 var(--c-ink);
}
.attendance-feed-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--c-ink);
  border-radius: 50%;
  background: var(--att-accent, var(--c-mint));
}
.attendance-feed-item .pill {
  background: var(--att-accent, var(--c-mint));
}
.attendance-stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 20;
  pointer-events: none;
  padding: 7px 12px;
  border: 2px solid var(--c-ink);
  border-radius: 999px;
  background: var(--c-mint);
  color: var(--c-ink);
  box-shadow: 3px 3px 0 var(--c-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  transform: translate(-50%, -50%) rotate(-6deg) scale(.85);
  animation: attendanceStamp 820ms var(--ease-soft) forwards;
}
.attendance-stamp.is-out { background: var(--c-blush); }
.attendance-stamp.is-in { background: var(--c-mint); }

/* Interactive motion */
@keyframes pageRise {
  from { opacity: 0; translate: 0 14px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes popIn {
  0%   { opacity: 0; scale: .94; }
  70%  { scale: 1.025; }
  100% { opacity: 1; scale: 1; }
}
@keyframes barGrowX {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes barGrowY {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes mascotBob {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50%      { translate: 0 -3px; rotate: -1deg; }
}
@keyframes moodPop {
  0%, 100% { scale: 1; rotate: 0deg; }
  50%      { scale: 1.18; rotate: 8deg; }
}
@keyframes kudosModalIn {
  from { opacity: 0; transform: scale(.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes kudosCountPop {
  0%, 100% { transform: scale(1); }
  45%      { transform: scale(1.16) rotate(-2deg); }
}
@keyframes workModeBeacon {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-mint) 45%, transparent), 1.5px 1.5px 0 var(--c-ink);
  }
  70% {
    box-shadow: 0 0 0 7px transparent, 1.5px 1.5px 0 var(--c-ink);
  }
  100% {
    box-shadow: 0 0 0 0 transparent, 1.5px 1.5px 0 var(--c-ink);
  }
}
@keyframes moodIconFloat {
  0%, 100% { translate: 0 0; rotate: 0deg; scale: 1; }
  50%      { translate: 0 -2px; rotate: -4deg; scale: 1.08; }
}
@keyframes moodIconTick {
  0%, 100% { scale: 1; }
  50%      { scale: 1.16; }
}
@keyframes focusLock {
  0%, 100% { translate: 0 0; scale: 1; }
  45%      { translate: 0 -1px; scale: 1.08; }
}
@keyframes openPulse {
  0%, 100% { scale: 1; filter: saturate(1); }
  50%      { scale: 1.1; filter: saturate(1.2); }
}
@keyframes busyTilt {
  0%, 100% { rotate: -3deg; }
  50%      { rotate: 3deg; }
}
@keyframes blockNudge {
  0%, 100% { translate: 0 0; }
  25%      { translate: -1px 0; }
  50%      { translate: 1px 0; }
}
@keyframes slowSteam {
  0%, 100% { translate: 0 0; opacity: .95; }
  50%      { translate: 0 -2px; opacity: 1; }
}
@keyframes qlogFloatUp {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(10px) rotate(var(--qlog-tilt, -2deg)) scale(.88);
  }
  14% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) rotate(var(--qlog-tilt, -2deg)) scale(1);
  }
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-62px) rotate(var(--qlog-tilt, -2deg)) scale(1.08);
  }
}
@keyframes qlogChipPulse {
  0%, 100% {
    scale: 1;
    background: var(--c-surf);
    color: var(--c-ink);
  }
  45% {
    scale: 1.06;
    background: var(--c-success-soft);
    color: var(--c-success);
  }
}
@keyframes holidayBeat {
  0%, 100% { scale: 1; }
  50% { scale: 1.22; }
}
@keyframes holidayStamp {
  0% { opacity: 0; transform: translate(-50%, -50%) translateY(12px) rotate(-7deg) scale(.8); }
  18% { opacity: 1; transform: translate(-50%, -50%) translateY(0) rotate(-7deg) scale(1); }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) translateY(-42px) rotate(-3deg) scale(1.05); }
}
@keyframes attendancePulse {
  0%, 100% { scale: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-coral) 48%, transparent); }
  50% { scale: 1.2; box-shadow: 0 0 0 7px transparent; }
}
@keyframes attendanceStamp {
  0% { opacity: 0; transform: translate(-50%, -50%) translateY(12px) rotate(7deg) scale(.82); }
  18% { opacity: 1; transform: translate(-50%, -50%) translateY(0) rotate(7deg) scale(1); }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) translateY(-44px) rotate(3deg) scale(1.05); }
}
@keyframes pmsMenuIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

#content {
  scroll-behavior: smooth;
}

.page-wrap > .crumb,
.page-wrap > .page-hd,
.page-wrap > .rel-z2,
.page-wrap > .grid,
.page-wrap > .grid-2,
.page-wrap > .grid-2r,
.page-wrap > .grid-4 {
  animation: pageRise var(--motion-slow) var(--ease-soft) both;
}
.page-wrap > .page-hd { animation-delay: 40ms; }
.page-wrap > .rel-z2,
.page-wrap > .grid,
.page-wrap > .grid-2,
.page-wrap > .grid-2r,
.page-wrap > .grid-4 { animation-delay: 100ms; }

.card,
.card-sm,
.kpi,
.dashed,
.sb-me,
.search-bar,
.notif-btn,
.nav-item,
.btn-primary,
.btn-ghost,
.btn-icon,
.btn-qlog,
.btn-chip,
.qlog-chip,
.theme-btn,
.user-btn,
.pms-select,
.pms-select-trigger,
.pms-select-option,
.pill,
.sticker,
.avatar,
.tbl-row {
  transition:
    translate var(--motion-mid) var(--ease-pop),
    scale var(--motion-mid) var(--ease-pop),
    rotate var(--motion-mid) var(--ease-pop),
    box-shadow var(--motion-mid) var(--ease-soft),
    background-color var(--motion-mid) var(--ease-soft),
    border-color var(--motion-mid) var(--ease-soft),
    color var(--motion-mid) var(--ease-soft),
    filter var(--motion-mid) var(--ease-soft);
}

.card:hover,
.card-sm:hover,
.kpi:hover,
.dashed:hover {
  translate: -3px -3px;
  box-shadow: 7px 7px 0 var(--c-ink);
}
.card-sm:hover { box-shadow: 4px 4px 0 var(--c-ink); }
.kpi:hover .kpi-value { color: var(--c-coral); }

.nav-item:hover {
  translate: 2px 0;
  background: var(--c-bg);
  border-color: var(--c-line);
}
.nav-item:hover .nav-icon {
  scale: 1.12;
}
.nav-item.active:hover {
  border-color: var(--c-ink);
  box-shadow: 4px 4px 0 var(--c-ink);
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-qlog:hover,
.notif-btn:hover,
.theme-btn:hover,
.user-btn:hover,
.btn-chip:hover,
.qlog-chip:hover {
  translate: -2px -2px;
  box-shadow: 5px 5px 0 var(--c-ink);
}
.btn-icon:hover {
  translate: -1px -1px;
  background: var(--c-ink);
  color: var(--c-bg);
  box-shadow: 3px 3px 0 var(--c-coral);
}
.btn-primary:active,
.btn-ghost:active,
.btn-qlog:active,
.notif-btn:active,
.theme-btn:active,
.user-btn:active,
.btn-chip:active,
.qlog-chip:active,
.btn-icon:active,
.nav-item:active {
  translate: 2px 2px;
  scale: .98;
  box-shadow: 1px 1px 0 var(--c-ink);
}

.search-bar:hover,
.search-bar:focus-within {
  translate: 0 -1px;
  border-color: var(--c-coral);
  box-shadow: 3px 3px 0 var(--c-ink);
}
.field-input:focus {
  border-color: var(--c-coral);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-coral) 28%, transparent);
}
:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--c-coral);
  outline-offset: 3px;
}

.tbl-row:hover {
  translate: 4px 0;
  background: color-mix(in srgb, var(--c-butter) 34%, transparent);
}
.tbl-row:hover .pill,
.tbl-row:hover .avatar {
  scale: 1.04;
}

.avatar:hover,
.user-btn:hover {
  scale: 1.1;
  z-index: 3;
}
.sticker:hover,
.pill:hover {
  translate: 0 -2px;
  filter: saturate(1.08);
}
.mascot svg {
  animation: mascotBob 3.6s ease-in-out infinite;
}
.mascot:hover .mascot-mood {
  animation: moodPop 460ms var(--ease-pop);
}
.card:hover .card-hd-icon {
  scale: 1.1;
  rotate: -4deg;
}

.bar-fill {
  transform-origin: left center;
  animation: barGrowX 760ms var(--ease-soft) both;
}
.week-fill,
.rev-bar {
  transform-origin: bottom center;
  animation: barGrowY 760ms var(--ease-soft) both;
}
.streak-dot {
  animation: popIn 420ms var(--ease-pop) both;
}
.streak-dot:nth-child(2n) { animation-delay: 45ms; }
.streak-dot:nth-child(3n) { animation-delay: 90ms; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* ── Search input & dropdown ──────────────────────────────────────────── */
.search-bar       { position: relative; }
#search-input     { flex: 1; border: none; outline: none; background: transparent;
                    font-family: var(--font-mono); font-size: 11px; color: var(--c-ink); min-width: 0; }
#search-input::placeholder { color: var(--c-mute); }

#search-dropdown {
  display: none;
  position: fixed;      /* fixed so #main overflow:hidden can't clip it */
  width: 440px;
  background: var(--c-surf);
  border: 1.5px solid var(--c-ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--c-ink);
  z-index: 800;
  overflow: hidden;
}
#search-dropdown.open { display: block; }

.sd-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px 8px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 1.3px; color: var(--c-mute);
  border-bottom: 1px dashed var(--c-line);
}
.sd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px dashed var(--c-line);
  text-decoration: none; color: var(--c-ink);
  transition: background 0.1s;
  cursor: pointer;
}
.sd-item:last-of-type { border-bottom: none; }
.sd-item:hover,
.sd-item.active { background: color-mix(in srgb, var(--c-butter) 40%, var(--c-surf)); }

.sd-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--c-bg); border: 1.5px solid var(--c-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.sd-body { flex: 1; min-width: 0; }
.sd-title {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sd-hl { background: var(--c-butter); color: var(--c-ink); border-radius: 2px; padding: 0 1px; }
.sd-meta {
  display: flex; align-items: center; gap: 5px; margin-top: 3px;
  font-family: var(--font-mono); font-size: 10px; color: var(--c-mute);
}
.sd-client-dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--c-ink); flex-shrink: 0; }
.sd-id { opacity: 0.6; }
.sd-pill {
  padding: 3px 9px; border: 1.5px solid var(--c-ink); border-radius: 999px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.6px; white-space: nowrap; flex-shrink: 0;
}

.sd-empty {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px;
  font-family: var(--font-mono); font-size: 12px; color: var(--c-mute);
}
.sd-empty .ph { font-size: 18px; }

.sd-footer {
  display: flex; gap: 14px; padding: 9px 16px;
  background: var(--c-bg); border-top: 1.5px solid var(--c-ink);
  font-family: var(--font-mono); font-size: 9px; color: var(--c-mute);
}
.sd-footer kbd {
  display: inline-block; padding: 1px 5px;
  background: var(--c-surf); border: 1.5px solid var(--c-line); border-radius: 4px;
  font-family: var(--font-mono); font-size: 9px;
}

/* ── Phosphor icon sizing ─────────────────────────────────────────────── */
.ph, .ph-bold, .ph-fill { line-height: 1; display: inline-flex; align-items: center; }
.nav-icon .ph,
.nav-icon .ph-bold     { font-size: 18px; }
.card-hd-icon .ph,
.card-hd-icon .ph-bold { font-size: 15px; }
.btn-qlog .ph-bold     { font-size: 16px; }
.notif-btn .ph         { font-size: 18px; pointer-events: none; }
.search-bar .ph        { font-size: 15px; flex-shrink: 0; }
.btn-ghost .ph,
.btn-primary .ph,
.btn-ghost .ph-bold,
.btn-primary .ph-bold  { font-size: 13px; }
.btn-icon .ph          { font-size: 13px; }

/* ── Notification drawer ──────────────────────────────────────────────── */
#notif-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 900;
  background: rgba(42,34,51,0.25);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s var(--ease-soft);
}
#notif-overlay.open {
  display: block;
  opacity: 1;
}

#notif-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 380px; z-index: 901;
  background: var(--c-surf);
  border-left: 1.5px solid var(--c-ink);
  box-shadow: -6px 0 0 var(--c-ink);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s var(--ease-soft);
}
#notif-drawer.open { transform: translateX(0); }

#notif-hd {
  padding: 20px 20px 16px;
  border-bottom: 1.5px dashed var(--c-line);
  display: flex; align-items: flex-start; justify-content: space-between;
  background: linear-gradient(135deg, var(--c-surf) 0%,
    color-mix(in srgb, var(--c-butter) 30%, var(--c-surf)) 100%);
  flex-shrink: 0;
}
.notif-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
#notif-title {
  font-family: var(--font-display); font-style: italic;
  font-size: 24px; line-height: 1;
}
#notif-count {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--c-mute); letter-spacing: 1.2px; margin-top: 3px;
}
#notif-mark-all {
  background: transparent; border: 1.5px solid var(--c-ink);
  border-radius: 999px; padding: 5px 10px;
  font-family: var(--font-mono); font-size: 8px; font-weight: 700;
  letter-spacing: 0.8px; color: var(--c-mute);
  transition: all 0.12s;
}
#notif-mark-all:hover { background: var(--c-butter); color: var(--c-ink); }
#notif-close {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1.5px solid var(--c-ink); background: var(--c-bg);
  font-size: 18px; line-height: 1; color: var(--c-ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 2px 0 var(--c-ink);
  transition: all 0.12s;
}
#notif-close:hover { background: var(--c-blush); }

#notif-list {
  flex: 1; overflow-y: auto;
  padding: 8px 0;
}

.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px dashed var(--c-line);
  cursor: pointer;
  transition: background 0.1s;
  position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(0,0,0,0.025); }
.notif-item.unread { background: color-mix(in srgb, var(--c-butter) 22%, var(--c-surf)); }
.notif-item.unread:hover { background: color-mix(in srgb, var(--c-butter) 34%, var(--c-surf)); }

.notif-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--c-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  flex-shrink: 0;
}
.notif-body { flex: 1; min-width: 0; }
.notif-msg  { font-size: 13px; line-height: 1.45; color: var(--c-ink); }
.notif-msg-icon { margin-right: 4px; vertical-align: -2px; }
.notif-time { font-family: var(--font-mono); font-size: 10px; color: var(--c-mute); margin-top: 4px; }

.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-coral); border: 1.5px solid var(--c-ink);
  flex-shrink: 0; margin-top: 4px;
}

#notif-ft {
  padding: 14px 20px;
  border-top: 1.5px solid var(--c-ink);
  background: var(--c-bg);
  flex-shrink: 0;
}
#notif-view-all {
  width: 100%; padding: 10px 0;
  background: var(--c-surf); color: var(--c-ink);
  border: 1.5px solid var(--c-ink); border-radius: 12px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.8px; box-shadow: 3px 3px 0 var(--c-ink);
  transition: all 0.12s;
}
#notif-view-all:hover { background: var(--c-mint); }

/* ── Media query ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  #app { overflow: auto; }
  #sidebar { width: 210px; }
  #main { min-width: 760px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2,
  .grid-2r { grid-template-columns: 1fr !important; }
  .dash-metric-row { grid-template-columns: 1fr !important; }
  .dash-metric-card { min-height: auto; }
  .holiday-hero-grid { grid-template-columns: 1fr; }
  .holiday-editor-card { position: static; }
  .attendance-hero-grid { grid-template-columns: 1fr; }
  .attendance-editor-card { position: static; }
  .hday { min-height: 82px; }
  .page-hd { gap: 16px; }
}

/* Responsive PMS shell and page patterns */
@media (max-width: 1180px) {
  .page-wrap { padding: 24px; }

  .grid-2,
  .grid-2r,
  .holiday-hero-grid,
  .attendance-hero-grid,
  .ec-grid,
  .pc-grid,
  .tc-grid,
  .pd-grid {
    grid-template-columns: 1fr !important;
  }

  .grid-4,
  .pd-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .holiday-editor-card,
  .attendance-editor-card {
    position: static !important;
  }

  .daily-digest-card {
    grid-template-columns: 1fr;
  }

  .workload-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .workload-meter,
  .workload-chip {
    grid-column: 2;
    justify-self: stretch;
  }
}

@media (max-width: 900px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
  }

  #app {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  #sidebar {
    position: sticky;
    top: 0;
    z-index: 700;
    display: block;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1.5px solid var(--c-ink);
    box-shadow: 0 3px 0 var(--c-ink);
  }

  .sb-brand {
    padding: 10px 12px;
    border-bottom: 1px dashed var(--c-line);
  }

  .brand-mascot,
  .brand-mascot svg {
    width: 30px;
    height: 30px;
  }

  .brand-title { font-size: 20px; }
  .brand-subtitle { font-size: 8px; letter-spacing: 1px; }
  .brand-mood { font-size: 9px; }

  .sb-qlog,
  .sb-bottom,
  .sb-me {
    display: none !important;
  }

  .sb-nav {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 10px 10px;
    scroll-snap-type: x proximity;
  }

  .sb-nav .sb-label { display: none; }

  .nav-item {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: 12px;
    scroll-snap-align: start;
  }

  .nav-text { flex: 0; }
  .nav-note,
  .nav-badge { display: none; }

  #main {
    display: block;
    min-width: 0;
    overflow: visible;
  }

  #topbar {
    height: auto;
    min-height: 50px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
  }

  #content { overflow: visible; }

  .topbar-spacer,
  .topbar-date,
  .search-kbd {
    display: none;
  }

  .search-bar {
    order: 0;
    width: auto;
    max-width: none;
    min-width: 0;
    flex: 1 1 0;
  }

  .notif-btn {
    order: 1;
    flex: 0 0 34px;
  }

  #search-dropdown {
    left: 12px !important;
    right: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
  }

  #notif-drawer {
    width: min(100vw - 18px, 380px);
  }

  .page-wrap {
    padding: 18px 14px 28px;
    overflow: visible;
  }

  .page-wrap.with-sticky-save {
    padding-bottom: calc(126px + env(safe-area-inset-bottom, 0px));
  }

  .sticky-save-bar,
  #sticky-save-bar,
  #proj-sticky-bar {
    left: 0 !important;
    padding: 12px 14px !important;
    gap: 12px;
  }

  .bg-doodle { opacity: 0.18; }

  .page-hd,
  .attendance-page-hd {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 18px;
  }

  .page-hd > .flex,
  .attendance-hd-actions {
    flex-wrap: wrap;
  }

  .page-title {
    max-width: 100%;
    font-size: clamp(30px, 8.5vw, 38px) !important;
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  .page-sub {
    font-size: 10px;
    line-height: 1.45;
  }

  .scribble { max-width: 100%; }

  .mascot-xl,
  .mascot-xl svg {
    width: 58px;
    height: 58px;
  }

  .page-hd > .card.rel-z2,
  .page-hd > .mood-card.card.rel-z2 {
    width: min(100%, 260px) !important;
  }

  .grid-4,
  .pd-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  .grid-2,
  .grid-2r,
  .holiday-hero-grid,
  .attendance-hero-grid,
  .ec-grid,
  .pc-grid,
  .tc-grid,
  .pd-grid,
  .pd-field-row,
  .pd-field-row.cols-3,
  .field-group.cols-2,
  .field-group.cols-3 {
    grid-template-columns: 1fr !important;
  }

  .pd-kpi-row,
  .pd-grid,
  .ec-grid,
  .pc-grid,
  .tc-grid {
    gap: 16px !important;
  }

  .form-section,
  .pd-section {
    padding: 16px;
  }

  .billing-grid,
  .holiday-actions,
  .attendance-actions {
    grid-template-columns: 1fr !important;
    flex-direction: column;
  }

  .type-card,
  .btn-primary,
  .btn-ghost,
  .btn-icon {
    max-width: 100%;
    justify-content: center;
    text-align: center;
  }

  .btn-primary,
  .btn-ghost {
    white-space: normal;
  }

  .pms-select,
  .pms-select-trigger,
  .pms-select-menu {
    width: 100%;
    min-width: 0;
  }

  .pms-select-menu {
    max-height: min(320px, 58vh);
  }

  .tbl-hd,
  .pd-task-hd {
    display: none !important;
  }

  .tbl-row,
  .pd-task-row {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 8px !important;
    padding: 14px !important;
  }

  .tbl-row > *,
  .pd-task-row > * {
    min-width: 0;
  }

  .tbl-row .btn-icon,
  .pd-task-row .btn-icon {
    width: max-content;
    margin-left: 0 !important;
  }

  .pd-task-row {
    display: grid !important;
    white-space: normal;
  }

  .pd-task-name { white-space: normal; }

  .card,
  .card-sm,
  .dash-metric-card,
  .kpi,
  .form-card,
  .pd-card {
    max-width: 100%;
  }

  .daily-digest-card {
    grid-template-columns: 1fr;
  }

  .dash-presence-board {
    grid-template-columns: 1fr;
  }

  .dash-presence-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-digest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workload-planner-head {
    flex-direction: column;
  }

  .workload-planner-summary {
    justify-content: flex-start;
  }

  .workload-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .workload-meter,
  .workload-chip {
    grid-column: 2;
    justify-self: stretch;
  }

  .holiday-toolbar,
  .pd-tasks-hd {
    flex-wrap: wrap;
    gap: 10px;
  }

  .holiday-calendar-card,
  .attendance-calendar-card {
    overflow-x: auto;
  }

  .holiday-weekdays,
  .holiday-calendar {
    min-width: 620px;
  }

  .hday { min-height: 82px; }

  .attendance-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lcard {
    width: min(100%, 820px);
  }
}

@media (max-width: 640px) {
  body { overflow-y: auto; }

  .page-wrap { padding: 16px 12px 26px; }

  .page-wrap.with-sticky-save {
    padding-bottom: calc(138px + env(safe-area-inset-bottom, 0px));
  }

  .sticky-save-bar,
  #sticky-save-bar,
  #proj-sticky-bar {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .sticky-save-bar > .flex,
  #sticky-save-bar > .flex,
  #proj-sticky-bar > .flex {
    width: 100%;
    flex-wrap: wrap;
  }

  .page-hd > .flex { gap: 12px; }

  .mascot-md,
  .mascot-md svg {
    width: 46px;
    height: 46px;
  }

  .grid-4,
  .pd-kpi-row,
  .attendance-detail-grid,
  .holiday-type-grid,
  .task-type-grid {
    grid-template-columns: 1fr !important;
  }

  .kpi { padding: 12px 14px; }
  .kpi-value { font-size: 31px; }

  .card-hd {
    padding: 12px 14px;
    flex-wrap: wrap;
  }

  .search-bar input,
  #search-input {
    width: 100% !important;
  }

  .holiday-calendar-card,
  .attendance-calendar-card {
    margin-inline: -4px;
  }

  .holiday-weekdays,
  .holiday-calendar {
    min-width: 560px;
  }

  .holiday-toolbar {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
  }

  .hday {
    min-height: 74px;
    padding: 7px;
  }

  .holiday-month-chip {
    width: 100%;
    justify-content: center;
  }

  .holiday-month-nav {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    justify-content: center;
  }

  .attendance-clock { padding: 16px; }
  .attendance-clock-time { font-size: 48px; }

  .attendance-state,
  .holiday-feed-title,
  .attendance-feed-item {
    overflow-wrap: anywhere;
  }

  .flex-between {
    gap: 8px;
    flex-wrap: wrap;
  }

  .qlog-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-digest-grid,
  .leave-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-whoin-hd {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-whoin-actions {
    justify-content: space-between;
  }

  .dash-presence-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .dash-presence-summary-grid {
    grid-template-columns: 1fr;
  }

  .dash-stamp-wall {
    gap: 10px;
    padding: 4px 14px 18px;
  }

  .leave-balance-meta {
    flex-wrap: wrap;
  }

  .emp-leave-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .emp-leave-ft {
    align-items: stretch;
    flex-direction: column;
  }

  .workload-row {
    grid-template-columns: 1fr;
  }

  .workload-avatar,
  .workload-meter,
  .workload-chip {
    grid-column: auto;
  }

  .workload-chip {
    justify-self: stretch;
  }

  .lcard {
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-height: calc(100vh - 28px);
    border-radius: 20px;
  }

  .lbrand {
    width: 100% !important;
    min-height: 0;
    padding: 24px !important;
  }

  .lbrand-copy,
  .lbrand-quote {
    margin-top: 14px;
  }

  .lform {
    padding: 26px 22px !important;
  }

  .lquick {
    flex-wrap: wrap;
  }
}

/* ── layouts/app.blade.php — sidebar me-link & notif dropdown ─────────── */
.sb-me-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.avatar-sky { background: var(--c-sky); }

.notif-wrap { position: relative; }

.notif-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 340px;
  background: var(--c-surf);
  border: 1.5px solid var(--c-ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--c-ink);
  z-index: 900;
  overflow: hidden;
}

.notif-drop-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--c-line);
}

.notif-drop-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.notif-read-all {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-mute);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.notif-list {
  max-height: 360px;
  overflow-y: auto;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line);
}

.notif-item-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  background: var(--c-line);
}

.notif-dot--unread { background: var(--c-coral); }

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.4;
}

.notif-item-body {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--c-mute);
  margin-top: 2px;
  line-height: 1.4;
}

.notif-item-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-mute);
  margin-top: 4px;
}

.notif-action-link {
  font-size: 14px;
  color: var(--c-mute);
  flex-shrink: 0;
}

.notif-empty {
  padding: 24px 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-mute);
}

/* ── dashboard/index.blade.php ────────────────────────────────────────── */
.dash-page-title-xl { font-size: 44px; }
.dash-title-dash    { color: #FFB8A3; }

.dash-sticker-streak  { background: #FFF0B3; transform: rotate(-2deg); }
.dash-sticker-pending { background: #FFD6DE; transform: rotate(2deg); }
.dash-sticker-today   { background: #C7E6FF; transform: rotate(-1deg); }

/* Who's In card */
.dash-whoin-card {
  position: relative;
  overflow: visible;
  padding: 0;
  margin-bottom: 24px;
  background: color-mix(in srgb, var(--c-sky) 24%, var(--c-surf));
}
.dash-whoin-card::before {
  content: "";
  position: absolute;
  right: -44px;
  top: -54px;
  width: 180px;
  height: 180px;
  border: 1.5px dashed var(--c-ink);
  border-radius: 50%;
  opacity: .12;
}
.dash-whoin-hd {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 0;
  margin-bottom: 16px;
}
.dash-whoin-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-live-dot {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-mint);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-mint) 70%, transparent);
  animation: dashLivePulse 1.6s ease-out infinite;
  flex: 0 0 auto;
}
.dash-whoin-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-mute);
}
.dash-whoin-actions { display: flex; align-items: center; gap: 10px; }
.dash-checkout-btn  { font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 6px 14px; display: flex; align-items: center; gap: 6px; }
.dash-people-count  {
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  background: var(--c-surf);
  box-shadow: 2px 2px 0 var(--c-ink);
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--c-mute);
}
.dash-presence-active,
.dash-presence-present { --presence-bg: var(--c-mint); --presence-accent: #22c55e; }
.dash-presence-wfh { --presence-bg: var(--c-lilac); --presence-accent: #a855f7; }
.dash-presence-late,
.dash-presence-half { --presence-bg: var(--c-butter); --presence-accent: #f59e0b; }
.dash-presence-leave { --presence-bg: var(--c-blush); --presence-accent: #f43f5e; }
.dash-presence-absent { --presence-bg: var(--c-line); --presence-accent: #6E6478; }
.dash-presence-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(230px, .78fr) minmax(0, 1.42fr);
  gap: 16px;
  padding: 0 22px 18px;
}
.dash-presence-board-hidden { display: none; }
.dash-presence-hero {
  border: 1.5px solid var(--c-ink);
  border-radius: 18px;
  background: var(--c-surf);
  box-shadow: 4px 4px 0 var(--c-ink);
  padding: 14px;
  display: grid;
  grid-template-columns: 126px 1fr;
  align-items: center;
  gap: 12px;
}
.dash-presence-orbit {
  position: relative;
  width: 126px;
  height: 126px;
  border: 1.5px dashed var(--c-ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--c-mint) 0 36%, transparent 37%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.64) 0 100%);
}
.dash-presence-orbit::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px solid color-mix(in srgb, var(--c-ink) 20%, transparent);
  border-radius: 50%;
  animation: dashOrbitPulse 2.5s ease-in-out infinite;
}
.dash-presence-core {
  position: absolute;
  inset: 35px;
  z-index: 2;
  border: 1.5px solid var(--c-ink);
  border-radius: 18px;
  background: var(--c-butter);
  box-shadow: 3px 3px 0 var(--c-ink);
  display: grid;
  place-items: center;
  text-align: center;
  transform: rotate(-2deg);
}
.dash-presence-core i { font-size: 17px; margin-bottom: -3px; }
.dash-presence-core b {
  font-family: var(--font-display);
  font-size: 31px;
  line-height: .78;
  font-style: italic;
}
.dash-presence-core span {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--c-mute);
}
.dash-presence-face {
  position: absolute;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--c-ink);
  border-radius: 50%;
  background: var(--avatar-bg, var(--c-sky));
  box-shadow: 2px 2px 0 var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
}
.dash-presence-face-1 { left: 50%; top: -7px; translate: -50% 0; }
.dash-presence-face-2 { right: 0; top: 24px; }
.dash-presence-face-3 { right: 9px; bottom: 12px; }
.dash-presence-face-4 { left: 50%; bottom: -8px; translate: -50% 0; }
.dash-presence-face-5 { left: 7px; bottom: 15px; }
.dash-presence-face-6 { left: -7px; top: 26px; }
.dash-presence-caption-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: .95;
  font-style: italic;
  color: var(--c-ink);
}
.dash-presence-caption-copy {
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.45;
  color: var(--c-mute);
}
.dash-presence-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.dash-presence-summary {
  min-height: 70px;
  border: 1.5px solid var(--c-ink);
  border-radius: 16px;
  background: color-mix(in srgb, var(--presence-bg) 62%, var(--c-surf));
  box-shadow: 3px 3px 0 var(--c-ink);
  padding: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  align-items: center;
}
.dash-presence-summary i {
  color: var(--presence-accent);
  font-size: 18px;
}
.dash-presence-summary span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--c-mute);
  letter-spacing: .08em;
}
.dash-presence-summary b {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 31px;
  line-height: .9;
  font-style: italic;
}
/* ── Stamp Wall (WHO'S IN TODAY) ─────────────────────────────────── */
.dash-stamp-wall {
  display: grid;
  gap: 18px;
  padding: 2px 22px 22px;
  position: relative;
  z-index: 1;
}
.dash-stamp-section {
  min-width: 0;
}
.dash-stamp-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-top: 3px;
}
.dash-stamp-section-hd > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.dash-stamp-section-hd span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--c-mute);
}
.dash-stamp-section-hd b {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: .85;
  font-style: italic;
  color: var(--c-ink);
}
.dash-stamp-alert {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  background: var(--c-butter);
  box-shadow: 2px 2px 0 var(--c-ink);
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: var(--c-ink);
}
.dash-stamp-grid {
  display: grid;
  gap: 12px;
  align-items: start;
}
.dash-stamp-grid-office {
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
}
.dash-stamp-grid-away {
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
}
.dash-away-layout {
  border-top: 1.5px solid var(--c-line);
  padding-top: 16px;
}
.dash-stamp-card {
  width: 100%;
  max-width: 92px;
  border: 1.5px solid var(--c-ink);
  border-radius: 4px;
  background: var(--c-surf);
  box-shadow: 3px 3px 0 var(--c-ink);
  position: relative;
  transition: transform .18s cubic-bezier(.34,1.4,.64,1), box-shadow .18s ease, opacity .18s ease, filter .18s ease;
}
.dash-stamp-card:nth-child(4n+1) { transform: rotate(-1.8deg); }
.dash-stamp-card:nth-child(4n+2) { transform: rotate(1.4deg); }
.dash-stamp-card:nth-child(4n+3) { transform: rotate(-0.6deg); }
.dash-stamp-card:nth-child(4n)   { transform: rotate(2deg); }
.dash-stamp-card:hover,
.dash-stamp-card:focus-visible {
  transform: rotate(0deg) translateY(-5px) !important;
  box-shadow: 5px 5px 0 var(--c-ink);
  outline: none;
  z-index: 5;
}
.dash-stamp-card::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  transform: translateY(4px);
  width: max-content;
  max-width: 260px;
  border: 1.5px solid var(--c-ink);
  border-radius: 10px;
  background: var(--c-ink);
  color: var(--c-bg);
  box-shadow: 3px 3px 0 rgba(42,34,51,.24);
  padding: 7px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}
.dash-stamp-card:hover::after,
.dash-stamp-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.dash-stamp-card.is-current {
  box-shadow: 4px 4px 0 var(--c-ink);
}
.dash-stamp-card.is-current::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1.5px dashed var(--c-coral);
  border-radius: 7px;
  pointer-events: none;
}
.dash-stamp-card.is-late .dash-stamp-photo {
  background: color-mix(in srgb, var(--c-butter) 64%, var(--c-surf));
}
.dash-stamp-flag {
  position: absolute;
  top: -9px;
  left: 6px;
  z-index: 3;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  background: var(--c-coral);
  box-shadow: 2px 2px 0 var(--c-ink);
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--c-ink);
}
.dash-stamp-flag-warn {
  background: var(--c-butter);
}
.dash-stamp-photo {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--stamp-avatar, var(--c-sky)) 55%, var(--c-surf));
}
.dash-stamp-card.dash-stamp-out .dash-stamp-photo {
  background: color-mix(in srgb, var(--c-line) 70%, var(--c-surf));
}
.dash-stamp-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--c-ink);
  background: var(--stamp-avatar, var(--c-sky));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--c-ink);
  flex-shrink: 0;
}
.dash-stamp-card.dash-stamp-out .dash-stamp-avatar {
  opacity: .46;
  filter: grayscale(.6);
}
.dash-stamp-mood {
  position: absolute;
  bottom: 5px;
  right: 4px;
  width: 16px;
  height: 16px;
  transform: scale(.85);
}
.dash-stamp-caption {
  background: var(--c-surf);
  border-top: 1.5px solid var(--c-ink);
  padding: 5px 5px 7px;
  text-align: center;
}
.dash-stamp-name {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: .05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-stamp-time {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--c-mute);
  margin-top: 1px;
  letter-spacing: .04em;
}
.dash-stamp-seal {
  position: absolute;
  top: 11px;
  right: -12px;
  padding: 2px 14px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .14em;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  transform: rotate(26deg);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .14s ease;
}
.dash-stamp-card:hover .dash-stamp-seal,
.dash-stamp-card:focus-visible .dash-stamp-seal,
.dash-stamp-card.is-current .dash-stamp-seal,
.dash-stamp-card.is-late .dash-stamp-seal,
.dash-stamp-card.is-recent .dash-stamp-seal {
  opacity: .82;
}
.dash-stamp-seal-out {
  color: var(--c-mute);
  background: color-mix(in srgb, var(--c-line) 90%, transparent);
}
.dash-stamp-seal-leave {
  color: #7c3aed;
  background: color-mix(in srgb, var(--c-lilac) 85%, transparent);
}
.dash-stamp-card.dash-stamp-leave .dash-stamp-photo {
  background: color-mix(in srgb, var(--c-lilac) 55%, var(--c-surf));
}
.dash-stamp-card.dash-stamp-leave .dash-stamp-avatar {
  opacity: .65;
}
@media (max-width: 640px) {
  .dash-stamp-section-hd {
    align-items: flex-start;
    flex-direction: column;
  }

  .dash-stamp-grid-office,
  .dash-stamp-grid-away {
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  }

  .dash-stamp-card {
    max-width: 86px;
  }

}
@keyframes dashLivePulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-mint) 72%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes dashOrbitPulse {
  0%, 100% { scale: .94; opacity: .34; }
  50% { scale: 1.03; opacity: .7; }
}

/* Daily digest */
.daily-digest-card {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.6fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 22px;
  background: color-mix(in srgb, var(--c-mint) 42%, var(--c-surf));
}
.daily-digest-lead {
  display: flex;
  align-items: center;
  gap: 12px;
}
.daily-digest-icon {
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--c-ink);
  border-radius: 14px;
  background: var(--c-butter);
  box-shadow: 3px 3px 0 var(--c-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  flex: 0 0 auto;
}
.daily-digest-title {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
  font-style: italic;
  color: var(--c-ink);
}
.daily-digest-hint {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-mute);
  line-height: 1.35;
}
.daily-digest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}
.daily-digest-pill {
  min-height: 66px;
  border: 1.5px solid var(--c-ink);
  border-radius: 14px;
  background: var(--c-surf);
  box-shadow: 3px 3px 0 var(--c-ink);
  color: var(--c-ink);
  text-decoration: none;
  padding: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  align-items: center;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.daily-digest-pill:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--c-ink);
  background: var(--c-butter);
}
.daily-digest-pill.is-hot { background: var(--c-blush); }
.daily-digest-pill i { font-size: 18px; }
.daily-digest-pill span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--c-mute);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.daily-digest-pill b {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: .9;
  font-style: italic;
}

/* Kudos card */
.dash-kudos-card         { display: flex; flex-direction: column; gap: 0; }
.dash-kudos-head-right   { display: flex; align-items: center; gap: 8px; }
.dash-kudos-action-inline{ position: static; margin: 0; }
.dash-kudos-empty        { padding: 16px 20px; font-family: var(--font-mono); font-size: 11px; color: var(--c-mute); text-align: center; }
.dash-kudos-empty-icon   { font-size: 20px; display: block; margin-bottom: 6px; }
.dash-kudos-feed         { padding: 16px 18px; }
.dash-kudos-recipient    { font-family: var(--font-sans); font-size: 15px; font-weight: 700; color: var(--c-ink); margin-bottom: 6px; }
.dash-kudos-msg          { font-family: var(--font-sans); font-size: 14px; color: var(--c-ink); line-height: 1.6; }

/* Section header */
.dash-sect-hd    { margin-bottom: 14px; }
.dash-sect-icon  { font-size: 18px; margin-right: 8px; }
.dash-add-task-btn { padding: 5px 14px; font-size: 10px; text-decoration: none; }

/* Task cards */
.dash-task-card      { padding: 16px; }
.dash-task-icon      { width: 44px; height: 44px; border-radius: 12px; background: #FFB8C8; border: 1.5px solid #2A2233; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.dash-task-body      { flex: 1; }
.dash-task-note      { font-size: 12px; color: #6E6478; font-style: italic; }
.dash-task-bar       { height: 8px; }
.dash-task-bar-fill  { background: #FFB8C8; }
.dash-task-hours     { font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.dash-task-view-btn  { font-size: 9px; }
.dash-qlog-chips     { margin-top: 12px; }

.dash-empty-card  { padding: 32px; text-align: center; }
.dash-empty-emoji { font-size: 32px; margin-bottom: 8px; }
.dash-empty-sub   { font-size: 13px; color: #6E6478; margin-top: 4px; }

/* Projects this week */
.dash-projects-card  { padding: 20px; }
.dash-proj-row-hd    { align-items: baseline; margin-bottom: 5px; }
.dash-proj-name      { font-size: 13px; }
.dash-proj-client    { font-family: var(--font-mono); font-size: 10px; color: #6E6478; margin-left: 6px; }
.dash-proj-hours     { font-family: var(--font-mono); font-size: 11px; color: #6E6478; }
.dash-proj-bar       { height: 10px; }
.dash-poc-row        { display: flex; align-items: center; gap: 5px; }
.dash-poc-label      { font-family: var(--font-mono); font-size: 9px; color: #6E6478; letter-spacing: .05em; }
.dash-poc-name       { font-size: 11px; color: #6E6478; }
.dash-mini-avatar    { width: 22px; height: 22px; font-size: 8px; }
.dash-members-row    { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.dash-members-overflow { font-family: var(--font-mono); font-size: 9px; color: #6E6478; }
.dash-no-projects    { font-size: 13px; color: #6E6478; font-style: italic; }

/* Mentions in task comments */
.mention-chip {
  display: inline-block;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  background: var(--c-butter);
  box-shadow: 2px 2px 0 var(--c-ink);
  padding: 0 6px;
  margin: 0 1px;
  font-family: var(--font-mono);
  font-size: .86em;
  font-weight: 700;
  color: var(--c-ink);
}

/* Leave balance */
.leave-balance-card {
  border: 1.5px solid var(--c-ink);
  border-radius: 16px;
  background: var(--c-mint);
  box-shadow: 3px 3px 0 var(--c-ink);
  padding: 12px;
  margin-bottom: 10px;
}
.leave-balance-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.leave-balance-period {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-mute);
}
.leave-balance-value {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: .9;
  font-style: italic;
  color: var(--c-ink);
}
.leave-balance-bar {
  height: 10px;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  overflow: hidden;
  margin-top: 10px;
}
.leave-balance-bar span {
  display: block;
  height: 100%;
  background: var(--c-coral);
  transition: width .24s ease;
}
.leave-balance-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--c-mute);
}
.leave-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.leave-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: 1.5px solid var(--c-line);
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.leave-type-btn input { display: none; }
.leave-type-btn i { font-size: 20px; }
.leave-type-btn:hover {
  transform: translateY(-1px);
  border-color: var(--c-ink);
}
.leave-type-btn.is-selected {
  border-color: var(--c-ink);
  box-shadow: 2px 2px 0 var(--c-ink);
}
.leave-type-btn[data-type="paid"].is-selected { background: var(--c-mint); }
.leave-type-btn[data-type="sick"].is-selected { background: var(--c-blush); }
.leave-type-btn[data-type="casual"].is-selected { background: var(--c-sky); }
.leave-type-btn[data-type="half_day"].is-selected { background: var(--c-butter); }

/* Employee leave balance controls */
.emp-leave-chip {
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  background: var(--c-mint);
  color: var(--c-ink);
  box-shadow: 2px 2px 0 var(--c-ink);
  padding: 4px 9px 4px 5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.emp-leave-chip:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--c-ink);
  background: var(--c-butter);
}
.emp-leave-chip span {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-surf);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.emp-leave-chip b {
  font-family: var(--font-mono);
  font-size: 11px;
}
.emp-leave-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(42,34,51,.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.emp-leave-modal-overlay[hidden] { display: none; }
.emp-leave-modal {
  width: min(100%, 430px);
  border: 1.5px solid var(--c-ink);
  border-radius: 20px;
  background: var(--c-surf);
  box-shadow: 6px 6px 0 var(--c-ink);
  padding: 22px;
  display: grid;
  gap: 14px;
}
.emp-leave-hd,
.emp-leave-ft {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.emp-leave-title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  font-style: italic;
  color: var(--c-ink);
  margin-top: 3px;
}
.emp-leave-name,
.emp-leave-help {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-mute);
  line-height: 1.45;
  margin-top: 5px;
}
.emp-leave-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.emp-leave-summary span {
  border: 1.5px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-bg);
  padding: 8px 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--c-mute);
  text-align: center;
}
.emp-leave-summary b {
  display: block;
  color: var(--c-ink);
  font-size: 13px;
  margin-top: 2px;
}
.emp-leave-input {
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
}
.emp-leave-error {
  border: 1.5px solid var(--c-ink);
  border-radius: 12px;
  background: var(--c-blush);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.emp-leave-ft {
  align-items: center;
}

/* Workload planner */
.workload-planner-card {
  padding: 20px;
  margin-bottom: 22px;
  background: color-mix(in srgb, var(--c-lilac) 34%, var(--c-surf));
}
.workload-planner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.workload-planner-icon {
  font-size: 18px;
  margin-right: 8px;
}
.workload-planner-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.workload-planner-summary span {
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  background: var(--c-surf);
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-mute);
  box-shadow: 2px 2px 0 var(--c-ink);
}
.workload-planner-summary .is-hot { background: var(--c-blush); color: var(--c-ink); }
.workload-grid {
  display: grid;
  gap: 10px;
}
.workload-row {
  display: grid;
  grid-template-columns: 38px minmax(160px, 1fr) minmax(190px, 1fr) 116px;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--c-ink);
  border-radius: 16px;
  background: var(--c-surf);
  box-shadow: 3px 3px 0 var(--c-ink);
  padding: 10px;
}
.workload-over { background: color-mix(in srgb, var(--c-blush) 55%, var(--c-surf)); }
.workload-steady { background: color-mix(in srgb, var(--c-butter) 45%, var(--c-surf)); }
.workload-open { background: color-mix(in srgb, var(--c-mint) 45%, var(--c-surf)); }
.workload-avatar {
  width: 34px;
  height: 34px;
  font-size: 11px;
}
.workload-person {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.workload-person b {
  font-size: 13px;
  color: var(--c-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workload-person span,
.workload-meter small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-mute);
}
.workload-meter {
  display: grid;
  gap: 5px;
}
.workload-meter-track {
  height: 11px;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  overflow: hidden;
}
.workload-meter-track span {
  display: block;
  height: 100%;
  transition: width .24s ease;
}
.workload-chip {
  justify-self: end;
  min-width: 106px;
  border: 1.5px solid var(--c-ink);
  border-radius: 12px;
  background: rgba(255,255,255,.66);
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.workload-chip span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--c-mute);
  text-transform: uppercase;
}
.workload-chip b {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-ink);
}
.workload-empty {
  padding: 18px;
  font-size: 13px;
  color: var(--c-mute);
  font-style: italic;
}

/* ── projects/form.blade.php ──────────────────────────────────────────── */
.form-hidden-textarea  { display: none; }
.form-hidden-checkbox  { display: none; }

/* ── projects/show.blade.php — shared icon colour helpers ────────────── */
.icon-coral { color: var(--c-coral); }
.icon-sky   { color: var(--c-sky); }
.pd-task-empty-link { color: var(--c-ink); font-weight: 700; }

/* ── projects/index.blade.php ─────────────────────────────────────────── */
.proj-kpi-row   { margin-bottom: 18px; }
.proj-table-card { overflow: hidden; }
.flash-success {
  margin-bottom: 14px;
  padding: 12px 18px;
  background: var(--c-mint);
  border: 1.5px solid var(--c-ink);
  border-radius: 12px;
  box-shadow: 2px 2px 0 var(--c-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.flash-error {
  margin-bottom: 14px;
  padding: 12px 18px;
  background: var(--c-blush);
  border: 1.5px solid var(--c-ink);
  border-radius: 12px;
  box-shadow: 2px 2px 0 var(--c-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.proj-filter-chip-active {
  background: #2A2233;
  color: #FFF7F0;
}

.tbl-hd-right { text-align: right; }

/* ── projects/show.blade.php — inline styles ──────────────────────────── */
.pd-billing-badge-internal { background: var(--c-mint); }

.pd-bar-fill--danger { background: var(--c-coral); }

.pd-task-empty {
  padding: 28px 22px;
  text-align: center;
}

.pd-task-empty-text {
  font-family: var(--font-mono);
  color: var(--c-mute);
  font-size: 12px;
}

.pd-no-poc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-mute);
}

.pd-unassigned {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-mute);
}

.pd-desc-muted {
  color: var(--c-mute);
  font-style: italic;
}

/* ── projects/form.blade.php — textarea hidden, field label span ──────── */
.field-label-muted {
  font-weight: 400;
  opacity: .6;
}

/* ── notifications/index.blade.php ───────────────────────────────────────*/
.notif-list-card { padding: 0; overflow: hidden; }
.notif-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-line);
}

.notif-row--unread { background: rgba(255, 184, 163, .08); }

.notif-row-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
  background: var(--c-line);
  border: 1.5px solid var(--c-ink);
}

.notif-row-dot--unread { background: var(--c-coral); }

.notif-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--c-ink);
  background: var(--c-butter);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-row-icon i { font-size: 16px; color: var(--c-ink); }

.notif-row-content { flex: 1; min-width: 0; }

.notif-row-title {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--c-ink);
  line-height: 1.4;
}

.notif-row-title--read   { font-weight: 500; }
.notif-row-title--unread { font-weight: 700; }

.notif-row-body {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-mute);
  margin-top: 3px;
  line-height: 1.5;
}

.notif-row-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-mute);
  margin-top: 6px;
}

.notif-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.notif-row-action-btn {
  width: 30px;
  height: 30px;
}

.notif-mark-all-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.notif-empty-state {
  padding: 48px 24px;
  text-align: center;
}

.notif-empty-icon { font-size: 32px; margin-bottom: 8px; }

.notif-empty-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-mute);
}

.notif-pagination {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* ── profile/edit.blade.php ───────────────────────────────────────────── */
.profile-wrap { max-width: 720px; }

.profile-avatar {
  width: 52px;
  height: 52px;
  font-size: 18px;
  background: var(--c-sky);
  border: 1.5px solid var(--c-ink);
  box-shadow: 3px 3px 0 var(--c-ink);
}

.profile-flash {
  padding: 12px 16px;
  background: var(--c-mint);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.profile-flash-icon { font-size: 18px; color: var(--c-ink); }

.profile-flash-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.profile-card { padding: 24px; margin-bottom: 20px; }

.profile-card-hd { margin-bottom: 20px; }

.profile-card-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.profile-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.profile-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--c-mute);
  display: block;
  margin-bottom: 6px;
}

.profile-input {
  width: 100%;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  background: var(--c-bg);
  color: var(--c-ink);
  outline: none;
  border: 1.5px solid var(--c-ink);
}

.profile-input--sans  { font-family: var(--font-sans); }
.profile-input--mono  { font-family: var(--font-mono); text-transform: uppercase; }
.profile-input--error { border-color: var(--c-coral); }

.profile-error {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-coral);
  margin-top: 4px;
}

.profile-info-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--c-line);
  border-radius: 10px;
  margin-bottom: 20px;
}

.profile-info-item-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--c-mute);
  font-weight: 700;
}

.profile-info-item-value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-ink);
  font-weight: 600;
}

.profile-divider {
  width: 1px;
  background: var(--c-ink);
  opacity: .15;
}

.profile-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.profile-pw-card { padding: 24px; }

.profile-pw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.profile-pw-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

/* ── Notification unread state ───────────────────────────────────── */
.notif-unread { background: #FFFBF0; }
.notif-unread:hover { background: #FFF8E7; }


/* ── Form label optional hint ────────────────────────────────────── */
.field-label-opt { font-weight: 400; opacity: 0.6; }
