@font-face {
  font-family: "Inter Variable";
  src: url("./inter-latin.woff2?v=daily-work-stable-v2.1.14") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Inter Variable", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: 100%;
  /* One unified local variable-font stack; avoid network font swaps. */
  --font-body: .9375rem;
  --font-caption: .8125rem;
  --font-control: .875rem;
  --font-heading: 700;
  font-kerning: normal;
  font-optical-sizing: none;
  font-feature-settings: "cv11" 1, "ss01" 1;
  font-synthesis: none;
  text-rendering: auto;

  /* Global color tokens: Royal Blue & Ice White (shared by both portals). */
  --primary: #1F4BA7;
  --primary-hover: #234A81;
  --primary-dark: #234A81;
  --primary-light: #436CB2;
  --accent: #6187BA;
  --background: #FAFCFE;
  --sidebar: #1F3E6D;
  --sidebar-gradient: linear-gradient(165deg, #1B365F 0%, #244D88 46%, #1B3C72 100%);
  --surface: #F5F8FE;
  --surface-dark: #234A81;
  --border: #E6EBF3;
  --border-strong: #CBD2E0;
  --text-primary: #0C1018;
  --text-secondary: #64748B;
  --text-light: #FFFFFF;
  --blue-gradient: linear-gradient(
    120deg,
    #1F3E6D 0%,
    #234A81 35%,
    #2D538F 70%,
    #436CB2 100%
  );
  --soft-gradient: linear-gradient(
    135deg,
    #FFFFFF 0%,
    #F5F8FE 55%,
    #CBD2E0 100%
  );

  /* Component colors and semantic report states (WCAG-friendly on light surfaces). */
  --page: var(--background);
  --surface-soft: #F0F5FC;
  --surface-raised: #FFFFFF;
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --subtle: #71829B;
  --line: var(--border);
  --line-strong: var(--border-strong);
  --blue: var(--primary);
  --blue-dark: var(--primary-hover);
  --blue-soft: #EAF2FF;
  --green: #16724D;
  --green-soft: #EAF8F0;
  --red: #B32C42;
  --red-soft: #FFF0F2;
  --amber: #98600C;
  --amber-soft: #FFF7E9;
  --violet: #6C46A4;
  --violet-soft: #F3EDFF;
  --neutral: #53647C;
  --neutral-soft: #EDF2F8;
  /* Isolated sidebar colors: never inherit into the light header or content. */
  --nav-top: #1B365F;
  --nav-base: var(--sidebar);
  --nav-hover: #FFFFFF1C;
  --nav-active: #2F5A99;
  --nav-line: #DDEBFF2B;
  --nav-ink: #FFFFFF;
  --nav-text: #E8F1FF;
  --nav-muted: #BFCFE6;
  --nav-accent: #FFFFFF;
  --focus: #436CB2;
  --shadow: 0 6px 24px #1737590D, 0 1px 3px #1737590A;
  --radius: 18px;
  --sidebar-width: 256px;
  --ease-ui: cubic-bezier(.2, .75, .25, 1);
  --gutter: clamp(24px, 3vw, 46px);

  color: var(--ink);
  background: var(--page);
}

/* Native document scrolling: a stable viewport width avoids horizontal glyph shifts. */
html {
  scrollbar-gutter: stable;
  scroll-behavior: auto;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 0;
  font-size: var(--font-body);
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: -.009em;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 {
  text-wrap: balance;
  font-weight: var(--font-heading);
  letter-spacing: -.035em;
}
/* Numerals retain width during report counters, clocks, and live durations. */
time, [data-until], .tabular, .stat-value, .break-stopwatch, .hero-metric strong {
  font-variant-numeric: tabular-nums;
}
label, input, select, textarea, button { font-family: inherit; }
/* Preserve human reading order: only compact controls are center-aligned. */
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.icon {
  display: block;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  vertical-align: middle;
  overflow: visible;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tabular, time, .countdown, [data-until] { font-variant-numeric: tabular-nums; }

.boot-state {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  color: var(--muted);
  font-weight: 600;
}

noscript {
  display: block;
  margin: 20px;
  text-align: center;
}

.brand {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.brand-plate {
  display: grid;
  width: min(100%, 173px);
  height: 44px;
  min-width: 0;
  place-items: center;
}

.brand-plate img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

/* Neutral session check: never paint the brand or favicon as a loader. */
.boot-indicator {
  width: 30px;
  height: 30px;
  border: 3px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: boot-turn .8s linear infinite;
}
@keyframes boot-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .boot-indicator { animation: none; } }
.topbar-brand { display: none; }

.auth-layout {
  display: grid;

  min-height: 100dvh;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  padding: clamp(14px, 2vw, 32px);
  
}

/* Auth artwork is a bare Lottie animation, not a framed showcase. */
.auth-visual {
  display: grid;
  min-width: 0;
  min-height: min(630px, calc(100dvh - 38px));
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-animation-player {
  width: min(94%, 560px);
  max-width: 100%;
  aspect-ratio: 1;
  opacity: 0;
  transition: opacity 300ms ease-out;
}

.auth-visual.is-ready .auth-animation-player { opacity: 1; }
.auth-visual.is-error .auth-animation-player { opacity: 0; }

.auth-animation-player > svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* No fallback image: prevents the tiny icon flash during first load. */

.auth-side {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(26px, 5vw, 84px);
  
}

.auth-card { width: min(100%, 420px); }
.auth-brand { margin-bottom: 30px; }
.auth-brand .brand-plate { width: min(100%, 198px); height: 51px; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-bottom: 25px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--neutral-soft);
}

.auth-tab {
  min-height: 41px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
}

.form-head { margin: 0 0 5px; }
.form-head h1 { font-size: clamp(1.75rem, 2.7vw, 2.375rem); line-height: 1.18; font-weight: 720; letter-spacing: -.041em; }
.form-head p { margin-top: 9px; color: var(--muted); line-height: 1.6; }
.auth-card .form-stack { gap: 17px; }
.auth-card .btn-primary { min-height: 48px; margin-top: 3px; }

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  z-index: 12;
  top: 0;
  display: flex;

  height: 100dvh;
  min-width: 0;
  flex-direction: column;
  padding: 24px 14px max(14px, env(safe-area-inset-bottom));
  overflow: hidden;

  color: var(--nav-ink);

}

.sidebar-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 17px;
}

.sidebar-logo {
  width: min(100%, 172px);
  height: 44px;
  min-width: 0;
  object-fit: contain;
  object-position: left center;
}

.side-nav {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 23px;
  padding: 5px 2px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;

}
/* Kelompok navigasi dipisahkan melalui ruang, bukan panel pembungkus. */
.nav-group {
  display: grid;
  min-width: 0;
  flex: 0 0 auto;
  gap: 3px;
  padding: 0 4px;

  border-radius: 0;

}

.nav-group-title {
  margin: 0 9px 7px;

  font-size: .75rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--nav-text);
  font-size: .875rem;
  font-weight: 560;
  text-align: left;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.nav-link .icon { width: 19px; height: 19px; color: var(--nav-muted); }
.nav-link span { min-width: 0; line-height: 1.4; overflow-wrap: anywhere; }

.nav-link:hover .icon, .nav-link[data-current] .icon { color: var(--nav-accent); }
.nav-link[data-current] {

  font-weight: 650;
}

.nav-link[data-current]::after {
  position: absolute;
  inset-inline-start: -1px;
  inset-block: 0;
  margin-block: auto;
  width: 3px;
  height: 19px;
  border-radius: 4px;
  
  content: "";
}
.sidebar-bottom {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--nav-line);
}

.side-account {
  display: flex;
  min-width: 0;
  min-height: 48px;
  flex: 1;
  align-items: center;
  gap: 9px;
  padding: 6px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--nav-ink);
  text-align: left;
  transition: background-color 180ms ease, color 180ms ease;
}

.side-account:hover, .side-account[aria-current] { background: var(--nav-hover); }

.account-avatar {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid #C5D7F1;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--primary);
  font-size: .8125rem;
  font-weight: 760;
  line-height: 1;
  text-align: center;
}

.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.side-account-copy { display: grid; min-width: 0; gap: 2px; }
.side-account-copy strong, .side-account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-account-copy strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.3;
}
.side-account-copy small { color: var(--nav-muted); font-size: .75rem; }
.sidebar .account-avatar { width: 38px; height: 38px;   }
.sidebar .icon-button { color: var(--nav-text); }
.sidebar .icon-button:hover { border-color: var(--nav-line); background: var(--nav-hover); color: var(--nav-ink); }

.sidebar :focus-visible { outline: 2px solid var(--nav-accent); outline-offset: 1px; }

.main-area { min-width: 0; }
.skip-link {
  position: fixed;
  z-index: 30;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface);
  font-weight: 650;
}
.skip-link:focus { transform: none; }

.topbar {
  position: sticky;
  z-index: 9;
  top: 0;
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 8px var(--gutter);
  border-bottom: 1px solid var(--line);

}

.topbar-start, .topbar-end, .breadcrumb { display: flex; min-width: 0; align-items: center; gap: 12px; }
.topbar-end { flex: 0 0 auto; }
.breadcrumb { gap: 10px; color: var(--subtle); font-size: .875rem; }
.breadcrumb-origin .icon { width: 16px; height: 16px; color: var(--subtle); }
.breadcrumb-home { white-space: nowrap; }
.breadcrumb strong { overflow: hidden; color: var(--ink); font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }

.breadcrumb-chevron .icon { width: 13px; height: 13px; }

.server-time {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 24px;

  color: var(--ink);
  white-space: nowrap;
}

.server-time .icon { width: 15px; height: 15px; color: var(--subtle); }
.server-time time { font-size: .8125rem; font-weight: 625; }
.server-time small { padding-left: 7px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: .75rem; font-weight: 600; }
.top-avatar {
  width: 39px;
  height: 39px;
  border-color: #B7CBE9;
  background: linear-gradient(150deg, #F1F7FF, #DFEAFA);
  color: var(--primary);
  box-shadow: inset 0 1px 0 #FFFFFF80;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.top-avatar:hover {
  border-color: var(--primary);
  background: linear-gradient(150deg, #E4EFFF, #D2E3FB);
  color: var(--primary-hover);
  box-shadow: inset 0 1px 0 #FFFFFFB0, 0 0 0 3px #1F4BA714;
}
.top-avatar:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.icon-button {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
}

.icon-button:hover { border-color: var(--line);  color: var(--ink); }
.logout-button:hover { background: var(--red-soft); color: var(--red); }
.mobile-menu, .sidebar-close { display: none; }
.menu-overlay { display: none; }

.content {
  width: min(100%, 1504px);
  margin: 0 auto;
  padding: clamp(24px, 2.75vw, 42px) var(--gutter) 52px;
  scroll-margin-top: 78px;
}

.content:focus { outline: none; }
.page-head {
  display: flex;
  min-height: 64px;
  align-items: end;
  justify-content: space-between;
  gap: 14px 22px;
  margin: 0 0 24px;
}

.page-copy { min-width: 0; }
.page-head h1 {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

.page-head p { max-width: 66ch; margin-top: 8px; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.page-actions { display: flex; min-width: 0; max-width: 100%; flex-wrap: wrap; align-items: end; gap: 8px; }
.page-date {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: .875rem;
  font-weight: 575;
}

.page-date .icon { width: 17px; height: 17px; color: var(--blue); }
.date-field { display: grid; gap: 4px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.date-field input { min-width: 145px; font-weight: 625; }

.btn {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.36;
  text-align: center;
  transition: background-color 190ms ease, border-color 190ms ease,
    color 190ms ease, box-shadow 190ms ease;
}

.btn .icon { width: 17px; height: 17px; }

.btn:disabled { opacity: .55; }
.btn.full { width: 100%; }
.btn-small { min-height: 36px; padding: 6px 10px; border-radius: 8px; font-size: .8125rem; }
.btn-small .icon { width: 15px; height: 15px; }
.btn-quiet { border-color: transparent; background: transparent;  }

.btn-hero {    }
.btn-hero:hover:enabled {    }

.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.loading { pointer-events: none; }
.loading::after, .spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  content: "";
}

.icon-button.loading .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.panel, .stat {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  min-height: 73px;
  align-items: center;
  justify-content: space-between;
  gap: 12px 15px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.panel-head > div:first-child { min-width: 0; }
.panel-head h2 { font-size: 1.125rem; font-weight: 690; line-height: 1.35; letter-spacing: -.025em; overflow-wrap: anywhere; }
.panel-head p { margin-top: 5px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.panel-actions { display: flex; max-width: 100%; flex-wrap: wrap; align-items: center; gap: 6px; }
.panel-actions .btn { min-height: 36px; }
.panel-body { min-width: 0; padding: 22px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.stats--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.stat { padding: 16px 19px 18px; }
.stat-head {
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
}
.stat-head > span:first-child { overflow-wrap: anywhere; }
.stat-value {
  display: block;
  margin: 7px 0 5px;
  font-size: clamp(1.875rem, 2.75vw, 2.5rem);
  font-weight: 640;
  line-height: 1.05;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}

.stat small { display: block; color: var(--subtle); font-size: .8125rem; line-height: 1.45; }
.icon-tile {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
}
.icon-tile .icon { width: 18px; height: 18px; }
.tile--blue { background: var(--blue-soft); color: var(--blue); }
.tile--green { background: var(--green-soft); color: var(--green); }
.tile--red { background: var(--red-soft); color: var(--red); }
.tile--amber { background: var(--amber-soft); color: var(--amber); }
.tile--violet { background: var(--violet-soft); color: var(--violet); }

.shift-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(260px, .87fr);
  align-items: center;
  gap: 24px;
  overflow: hidden;
  margin-bottom: 20px;
  padding: clamp(20px, 2.8vw, 35px);
  border: 1px solid #314c69;
  border-radius: 20px;

  box-shadow: var(--shadow);
}

.hero-rings {
  position: absolute;
  z-index: -1;
  width: 395px;
  height: 395px;
  right: -131px;
  bottom: -232px;
  border: 1px solid #d3e7f62e;
  border-radius: 50%;

}

.hero-copy { min-width: 0; }
.hero-shift {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid #dbeafa4c;
  border-radius: 99px;

  font-size: .8125rem;
  font-weight: 575;
}

.hero-shift .icon { width: 14px; height: 14px; }
.hero-copy h2 {
  margin-top: 11px;
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  font-weight: 650;
  line-height: 1.13;
  letter-spacing: -.054em;
  text-wrap: balance;
}
.hero-copy p { margin-top: 8px; color: #e4eef7; font-size: .875rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.hero-timer { display: flex; align-items: center; gap: 7px; color: #f0f4ff; font-size: .8125rem; }
.hero-timer .icon { width: 16px; height: 16px; }
.hero-timer strong { display: inline-block; min-width: 59px; margin-left: 2px; font-weight: 700; }

.hero-progress {
  min-width: 0;
  padding: 17px 18px 18px;
  border: 1px solid #d9e8f538;
  border-radius: 15px;

}

.hero-progress-head, .hero-metric { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.hero-progress-head { color: #e5eff9; font-size: .875rem; font-weight: 575; }
.hero-progress-head .icon { width: 17px; height: 17px; }
.hero-metric { margin: 5px 0 11px; }
.hero-metric strong { font-size: 32px; font-weight: 750; line-height: 1.1; letter-spacing: -.06em; }
.hero-metric strong span {  font-size: 19px; font-weight: 540; letter-spacing: -.025em; }
.hero-metric > span { font-size: .8125rem; font-weight: 700; }

.progress-segments { display: flex; gap: clamp(2px, .35vw, 4px); }
.segment { flex: 1 1 0; min-width: 0; height: 8px; border-radius: 3px;  }

.hero-legend, .breakdown-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 13px; }
.hero-legend { margin-top: 11px; color: #e2edf7; font-size: .75rem; }
.hero-legend > span, .breakdown-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot, .breakdown-legend i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; }

.dashboard-columns, .work-columns, .account-layout {
  display: grid;
  align-items: start;
  gap: 17px;
}
.dashboard-columns {
  grid-template-columns: minmax(0, 1.37fr) minmax(0, .93fr);
  align-items: stretch;
  margin-bottom: 20px;
}
.work-columns { grid-template-columns: minmax(285px, .77fr) minmax(0, 1.43fr); }
.account-layout { grid-template-columns: minmax(270px, .75fr) minmax(0, 1.25fr); }
.panel-stack { display: grid; min-width: 0; gap: 17px; }

/* Each Control Staff section is an independent panel with a visible gutter. */
.control-panel-stack {
  display: grid;
  min-width: 0;
  gap: clamp(18px, 2vw, 24px);
  align-content: start;
}

/* Safety net for standalone admin panels not enclosed by a layout grid. */
.content > .panel + .panel { margin-block-start: 20px; }

/* Keep data tables comfortable and consistent without affecting the mobile card view. */
.data-table td > .btn { vertical-align: middle; }
.roster-row-actions { display: flex; min-width: 0; justify-content: flex-end; }
#rosterTable .roster-row-actions .btn, #rosterTable .data-table .pill { white-space: nowrap; }
#rosterTable .data-table th:last-child { text-align: right; }
#rosterTable .data-table td { height: 68px; }
#rosterTable .data-table tbody tr:last-child td { border-bottom: 0; }
#rosterTable .list-toolbar { gap: 10px 12px; }
#rosterTable .search-field { min-width: 190px; max-width: 420px; flex: 1 1 260px; }
#rosterTable .list-toolbar select { width: auto; min-width: 160px; min-height: 44px; }
#rosterTable .list-count { font-variant-numeric: tabular-nums; }

.timeline { margin: 0; padding: 6px 20px 9px; list-style: none; }
.timeline-row {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.timeline-row + .timeline-row { border-top: 1px solid var(--line); }
.timeline-index {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 10px;

  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.timeline-row strong, .timeline-row small { display: block; }
.timeline-row strong { font-weight: 710; font-variant-numeric: tabular-nums; }
.timeline-row small { margin-top: 2px; color: var(--subtle); font-size: .75rem; }

.quick-links, .manage-actions { display: grid; gap: 3px; padding: 9px 12px; }
.quick-link {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 11px;

  color: var(--ink);
  text-align: left;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.quick-link > span:nth-child(2) { display: grid; min-width: 0; flex: 1; gap: 2px; }
.quick-link strong { font-size: .875rem; font-weight: 650; }
.quick-link small { color: var(--subtle); font-size: .8125rem; line-height: 1.4; }
.quick-link > .icon { width: 16px; height: 16px; color: var(--subtle); }

.breakdown { display: grid; gap: 17px; }
.breakdown-row { display: grid; gap: 9px; }
.breakdown-title { display: flex; min-width: 0; align-items: center; gap: 9px; }
.breakdown-title > div { display: grid; min-width: 0; flex: 1; }
.breakdown-title strong { font-size: .875rem; font-weight: 625; }
.breakdown-title small { color: var(--subtle); font-size: .75rem; }
.breakdown-count { color: var(--muted); font-size: .8125rem; font-weight: 560; font-variant-numeric: tabular-nums; text-align: end; }
.breakdown-bar { display: flex; height: 7px; overflow: hidden; border-radius: 99px;  }
.breakdown-bar i { min-width: 1px; }

.breakdown-legend { color: var(--muted); font-size: .75rem; }

.pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 20px;
  background: var(--neutral-soft);
  color: var(--neutral);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}
.pill i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.pill--blue { background: var(--blue-soft); color: var(--blue-dark); }
.pill--green { background: var(--green-soft); color: var(--green); }
.pill--red { background: var(--red-soft); color: var(--red); }
.pill--amber { background: var(--amber-soft); color: var(--amber); }
.pill--violet { background: var(--violet-soft); color: var(--violet); }

.slot-grid, .task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.slot-card, .task-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;

}

.slot-card {
  min-block-size: 236px;
}

.slot-top, .task-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.slot-index {  font-size: .8125rem; font-weight: 600; }
.slot-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.slot-card h3 {
  margin: 4px 0 0;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 735;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}

.slot-copy, .task-description {
  margin: 0;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.56;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.slot-card--details {
  position: relative;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.slot-card .slot-copy {
  display: -webkit-box;
  min-block-size: 3.12em;
  max-block-size: 3.12em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.slot-meta, .field-hint { display: block; color: var(--subtle); font-size: .8125rem; line-height: 1.5; }
.slot-support {
  display: flex;
  min-height: 52px;
  align-items: stretch;
}

.slot-support--empty {
  visibility: hidden;
}

.slot-footer {
  display: flex;
  min-height: 43px;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: space-between;
  margin: auto 0 0;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.slot-footer--detail { min-height: 43px; gap: 4px 7px; padding-top: 5px; }

.slot-detail-button {
  display: inline-flex;
  min-height: 32px;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  padding: 3px 0 3px 3px;
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  font-size: .8125rem;
  font-weight: 680;
}

.slot-detail-button .icon { width: 15px; height: 15px; }
.slot-detail-button::after { position: absolute; inset: 0; border-radius: 13px; content: ""; }
.slot-detail-button:focus-visible { outline: none; }
.slot-detail-button:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; }
.slot-clock { display: inline-flex; align-items: center; gap: 5px; color: var(--blue-dark); font-size: .8125rem; font-weight: 680; }
.slot-clock .icon { width: 15px; height: 15px; }

.task-top > span:first-child { display: flex; align-items: center; gap: 5px; color: var(--subtle); font-size: .8125rem; font-weight: 600; }
.task-top .icon { width: 14px; height: 14px; }
.task-card h3 { margin-top: 4px; color: var(--ink); font-size: 16px; letter-spacing: -.023em; overflow-wrap: anywhere; }
.task-action { margin-top: auto; padding-top: 8px; }
.task-result {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .8125rem;
}
.task-result strong { color: var(--ink); font-weight: 680; }
.task-result p { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-result small { color: var(--subtle); font-size: .75rem; }

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}

.search-field {
  position: relative;
  display: flex;
  min-width: 160px;
  max-width: 320px;
  flex: 1 1 190px;
  align-items: center;
  color: var(--subtle);
}
.search-field .icon { position: absolute; left: 11px; width: 16px; height: 16px; pointer-events: none; }
.list-toolbar select { width: auto; max-width: 100%; }
.list-count { margin-left: auto; color: var(--subtle); font-size: .75rem; font-weight: 625; white-space: nowrap; }

.table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; }
.data-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  color: var(--muted);
  font-size: .875rem;
  text-align: left;
}
.data-table th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);

  font-size: .8125rem;
  font-weight: 625;
}
.data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  vertical-align: middle;
}
.data-table td:first-child, .data-table th:first-child { padding-left: 20px; }
.data-table td:last-child, .data-table th:last-child { padding-right: 20px; }

.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius); }
.data-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius); }
.data-table strong { color: var(--ink); font-weight: 700; }
.inline-muted, .cell-stack small { color: var(--subtle); font-size: .75rem; }
.cell-stack { display: grid; justify-items: start; gap: 4px; min-width: 0; }

.identity { display: flex; min-width: 0; align-items: center; gap: 9px; }
.identity-avatar { width: 35px; height: 35px; }
.identity > div { display: grid; min-width: 0; gap: 1px; }
.identity strong, .identity small { overflow-wrap: anywhere; }
.identity strong { color: var(--ink); font-size: .875rem; font-weight: 650; }
.identity small { color: var(--subtle); font-size: .75rem; }

.task-cell { min-width: 0; max-width: 360px; }
.task-cell > p, .task-details > p { font-size: .8125rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.task-details {
  margin-top: 3px;
  padding: 4px 7px;
  border: 1px solid #e4ebf9;
  border-radius: 7px;

}
.task-details summary { cursor: pointer; color: var(--blue-dark); font-size: .75rem; font-weight: 650; }
.task-details > p { margin: 5px 0; }

.empty-state {
  display: grid;
  min-height: 136px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px 16px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong { color: var(--ink); font-size: 14px; font-weight: 700; }
.empty-state p { max-width: 50ch; font-size: .8125rem; }
.empty-state .icon-tile { width: 39px; height: 39px; }

/* Clean in-page loading: no card shell, border or shadow. */
.loading-pane {
  display: flex;
  width: 100%;
  min-height: 166px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 10px auto;
  padding: 24px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  text-align: center;
}
.loading-orbit {
  display: block;
  width: 28px;
  height: 28px;
  border: 2px solid #1F4BA72B;
  border-top-color: var(--primary);
  border-right-color: var(--primary-dark);
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}
.loading-label {
  font-size: .8125rem;
  font-weight: 625;
  letter-spacing: .01em;
}
.loading-track {
  display: block;
  width: 92px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: #DFE9F8;
}
.loading-track::after {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue-gradient);
  content: "";
  animation: loading-sweep 1250ms ease-in-out infinite alternate;
}
@keyframes loading-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(265%); }
}
@media (prefers-reduced-motion: reduce) {
  .loading-orbit, .loading-track::after { animation: none; }
  .loading-orbit { border-color: #1F4BA74D; border-top-color: var(--primary); }
  .loading-track::after { width: 100%; }
}

.error-panel { padding: 4px 15px 23px; text-align: center; }

.form-stack, .field { display: grid; min-width: 0; gap: 14px; }
.form-stack label, .field {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.label-optional { color: var(--subtle); font-weight: 500; }

input:not([type="checkbox"]), select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);

  font-size: var(--font-body);
  font-weight: 450;
  line-height: 1.45;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

select {
  appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 16px center, right 11px center;
  background-repeat: no-repeat;
  background-size: 5px 5px;
}
@media (forced-colors: active) {
  select { appearance: auto; background-image: none; }
  .nav-link[data-current] { border-color: Highlight; }
}
input::placeholder, textarea::placeholder {  opacity: 1; }
textarea { min-height: 98px; resize: vertical; line-height: 1.54; }
input:not([type="checkbox"]):focus, select:focus, textarea:focus {

  outline: 2px solid transparent;
  outline-offset: 1px;

}
input[type="date"], input[type="time"] { font-variant-numeric: tabular-nums; }
input[type="file"] { min-height: 40px; padding: 6px; color: var(--muted); }
input::file-selector-button {
  height: 29px;
  margin-right: 8px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;

  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

.search-field input { padding-left: 35px; }

.password-field { position: relative; min-width: 0; }
.password-field input { padding-right: 48px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  width: 37px;
  height: 35px;
  place-items: center;
  transform: translateY(-50%);
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--subtle);
}
.password-toggle:hover { background: var(--blue-soft); color: var(--blue); }
.password-toggle .icon { width: 17px; height: 17px; }

.form-error {
  margin-top: 3px;
  padding: 10px 11px;
  border: 1px solid #f2cdd5;
  border-radius: 9px;

  font-size: .8125rem;
  font-weight: 625;
  overflow-wrap: anywhere;
}

.recipient-preview, .dialog-context {
  display: flex;
  min-width: 0;
  align-items: start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #cadbe9;
  border-radius: 10px;

  font-size: .8125rem;
  overflow-wrap: anywhere;
}
.recipient-preview strong, .recipient-preview small { display: block; }
.recipient-preview small { margin-top: 3px;  font-size: .75rem; }
.recipient-preview > .icon, .dialog-context > .icon { width: 17px; height: 17px; }

.profile-card { display: flex; align-items: center; gap: 13px; padding-bottom: 19px; }
.profile-card > div { min-width: 0; overflow-wrap: anywhere; }
.profile-card h3 { font-size: 17px; font-weight: 740; letter-spacing: -.027em; }
.profile-card p { color: var(--muted); font-size: .8125rem; }
.profile-avatar { width: 58px; height: 58px; font-size: 18px; }

.dialog {
  width: min(92vw, 528px);
  max-height: calc(100dvh - 40px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 20px;

}
.dialog::backdrop {  animation: backdrop-in 210ms ease-out both; }
/* Animations only use opacity and transform to avoid layout work. */
.dialog[open] { animation: dialog-in 210ms var(--ease-ui) both; }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.dialog-head {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 17px 13px 21px;
  border-bottom: 1px solid var(--line);

}
.dialog-head h2 { font-size: 21px; font-weight: 750; line-height: 1.22; letter-spacing: -.036em; overflow-wrap: anywhere; }
.dialog-body { display: grid; gap: 15px; padding: 18px 21px 21px; }
.dialog-body > p:not(.form-error) { color: var(--muted); overflow-wrap: anywhere; }
.dialog-body > p strong { color: var(--ink); }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 5px; }
.dialog[aria-busy="true"] [data-close] { pointer-events: none; opacity: .55; }
.report-period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.report-period-time { min-width: 0; flex: 1 1 170px; }
.report-period-time strong, .report-period-time small { display: block; }
.report-period-time strong { font-size: 14px; }
.report-period-time small, .report-entry-head small { color: var(--subtle); font-size: .8125rem; }
.report-period-time small { margin-top: 2px; }

.report-entry, .report-empty {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #e2e9f5;
  border-radius: 11px;

}

.report-entry-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 9px; }
.report-entry-head h3 { font-size: .875rem; font-weight: 710; }

.report-entry-text {
  max-block-size: min(43vh, 405px);
  margin-top: 9px;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.staff-dialog-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; }
.manage-actions { gap: 4px; padding: 0; }

.toast {
  position: fixed;
  z-index: 25;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  width: max-content;
  max-width: min(440px, calc(100vw - 36px));
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  transform: translateY(5px);
  border: 1px solid #c3e9d8;
  border-radius: 11px;

  font-size: .875rem;
  font-weight: 650;
  overflow-wrap: anywhere;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show { transform: none; opacity: 1; }

@media (max-width: 1220px) {
  :root { --sidebar-width: 228px; --gutter: 25px; }
  .sidebar { padding-inline: 12px; }
  .stat { padding-inline: 13px; }
  .work-columns { grid-template-columns: minmax(248px, .77fr) minmax(0, 1.43fr); }
  .work-columns .data-table td, .work-columns .data-table th { padding-inline: 8px; }
  .work-columns .data-table td:first-child, .work-columns .data-table th:first-child { padding-left: 14px; }
  .work-columns .data-table td:last-child, .work-columns .data-table th:last-child { padding-right: 14px; }
  .work-columns .list-toolbar { padding-inline: 14px; }
}

@media (max-width: 1100px) {
  .work-columns { grid-template-columns: 1fr; }
  .work-columns form .btn.full { width: fit-content; }
  .work-columns .data-table td, .work-columns .data-table th { padding-inline: 12px; }
  .work-columns .data-table td:first-child, .work-columns .data-table th:first-child { padding-left: 20px; }
  .work-columns .data-table td:last-child, .work-columns .data-table th:last-child { padding-right: 20px; }
  .work-columns .list-toolbar { padding-inline: 20px; }
  .slot-grid, .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-side { padding: clamp(23px, 4vw, 54px); }
}

@media (max-width: 900px) {
  :root { --gutter: 23px; }
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  body.menu-open { overflow: hidden; }
  .sidebar {
    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    width: min(320px, calc(100vw - 42px));
    padding-top: max(17px, env(safe-area-inset-top));
    transform: translateX(-101%);
    visibility: hidden;
    overscroll-behavior: contain;
    transition: transform 240ms var(--ease-ui), visibility 0s linear 240ms;
  }
  .sidebar.open { transform: none; visibility: visible; transition-delay: 0s; }
  .topbar-brand { display: grid; width: 112px; height: 33px; }
  .menu-overlay {
    position: fixed;
    z-index: 19;
    inset: 0;
    display: block;
    
    animation: menu-shade-in 240ms ease-out both;
  }
  .mobile-menu, .sidebar-close { display: grid; }
  .sidebar-head { padding: 2px 6px 14px 10px; }
  .slot-grid, .task-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .auth-layout { grid-template-columns: 1fr; align-content: start; gap: 16px; padding: 12px; }
  .auth-visual {
    --auth-visual-height: clamp(170px, 50vw, 248px);
    height: var(--auth-visual-height);
    min-height: 0;
  }
  .auth-animation-player {
    width: min(86%, var(--auth-visual-height));
  }

  .auth-brand { margin-bottom: 17px; }
  .auth-brand .brand-plate { width: min(100%, 172px); height: 45px; }
  .auth-side { align-content: start; padding: 6px 12px 25px; }
  .auth-tabs { margin-bottom: 17px; }
  .auth-card .form-stack { gap: 13px; }

  .page-head { align-items: start; flex-direction: column; margin-bottom: 18px; }
  .page-head h1 { font-size: clamp(28px, 6vw, 36px); }
  .page-head p { font-size: .875rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shift-hero { grid-template-columns: 1fr; gap: 17px; }
  .hero-progress { max-width: 490px; }
  .hero-rings { right: -198px; bottom: -187px; }
  .dashboard-columns, .account-layout { grid-template-columns: 1fr; gap: 12px; }
  .slot-grid, .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --gutter: 15px; }
  .topbar { min-height: 60px; padding-block: 7px; }
  .topbar-start, .topbar-end { gap: 7px; }
  .breadcrumb { display: none; }
  .topbar-brand { width: 97px; height: 30px; }
  .server-time { gap: 5px; padding-inline: 8px; }
  .server-time .icon { width: 13px; height: 13px; }
  .server-time time { font-size: .8125rem; }
  .server-time small { padding-left: 5px; font-size: .75rem; }
  .content { padding-top: 21px; }
  .page-head { gap: 10px; }
  .page-actions { width: 100%; }
  .stats--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--three .stat:last-child { grid-column: 1 / -1; }
  .panel-head { min-height: 62px; padding: 13px 14px; }
  .panel-head h2 { font-size: 16px; }
  .panel-body { padding: 14px; }
  .list-toolbar, .work-columns .list-toolbar { padding: 10px 13px; gap: 7px; }
  .list-toolbar select { flex: 1 1 auto; }
  .list-count { margin-left: 0; }
  .stat { padding: 12px; }
  .stat-head { align-items: start; font-size: .875rem; }
  .stat .icon-tile, .timeline-index { width: 32px; height: 32px; }
  .stat .icon { width: 16px; height: 16px; }
  .stat-value { font-size: 29px; }
  .timeline { padding-inline: 14px; }
  .timeline-row { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; }

  .table-wrap { overflow: visible; }
  .data-table { display: block; padding: 10px; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .data-table tbody { display: grid; gap: 8px; }
  .data-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 9px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
  }
  .data-table tr td, .work-columns .data-table tr td {
    display: grid;
    justify-items: start;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .data-table td::before {
    color: var(--subtle);
    font-size: .75rem;
    font-weight: 650;
    content: attr(data-label);
  }
  .data-table tr td:first-child {
    grid-column: 1 / -1;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .data-table tr td[data-label="Tugas"], .data-table tr td[data-label="Keterangan"] { grid-column: 1 / -1; }
  .data-table td:first-child:has(.identity)::before, .data-table .empty-row td::before { display: none; }
  .data-table tr.empty-row { padding: 0; border: 0; }
  .data-table tr.empty-row td { justify-items: stretch; padding: 0; border: 0; }
  .data-table .task-cell { max-width: 100%; }
  .data-table .inline-muted { margin-top: -6px; }

  input:not([type="checkbox"]), select, textarea { min-height: 44px; font-size: 16px; }
  .date-field input { min-width: 128px; }
  .btn, .btn-small, .panel-actions .btn { min-height: 44px; }
  .icon-button, .top-avatar { width: 44px; height: 44px; }
  .dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 20px);
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
  }
  .dialog-head { padding: 11px 13px 11px 16px; }
  .dialog-body { padding: 14px 16px max(18px, env(safe-area-inset-bottom)); }
}

@media (max-width: 432px) {
  .slot-grid, .task-grid, .field-row { grid-template-columns: 1fr; }
  .panel-head { flex-wrap: wrap; }
  .panel-actions .btn { padding-inline: 8px; }
  .slot-card, .task-card { padding: 12px; }
  .hero-copy h2 { text-wrap: initial; }
  .hero-progress { padding: 13px; }
  .work-columns form .btn.full { width: 100%; }
}

@media (max-width: 370px) {
  .topbar { gap: 6px; }
  .topbar-start, .topbar-end { gap: 4px; }
  .topbar-brand { width: min(22vw, 82px); }
  .stat-head { flex-wrap: wrap-reverse; column-gap: 4px; }
}

@media (max-height: 320px) {
  .sidebar { overflow-y: auto; }
  .side-nav { flex: 0 0 auto; overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-layout { grid-template-columns: minmax(0, 1fr); align-content: center; }
  .auth-visual { display: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.member-avatar {
  position: relative;
  width: 40px;
  height: 40px;
}

.member-avatar img { position: absolute; inset: 0; }

.team-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
}

.team-filter .search-field { width: min(100%, 310px); }
.team-count { color: var(--subtle); font-size: .8125rem; font-weight: 650; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr));
  gap: 12px;
}

.team-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;

}

.team-card .btn { justify-content: space-between; margin-top: auto; }
.team-identity { display: flex; min-width: 0; flex: 1 0 auto; align-items: center; gap: 10px; }
.team-card .team-identity { flex: 1 1 auto; }
.team-identity strong, .team-identity small { display: block; overflow-wrap: anywhere; }
.team-identity strong { font-size: 14px; font-weight: 720; }
.team-identity small { color: var(--muted); font-size: .8125rem; }
.team-member-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; padding: 15px; }
.team-member-head .team-identity { flex: 1 1 auto; }

.team-view-switch {
  display: flex;
  max-width: 100%;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--neutral-soft);
}

.team-view-switch button {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 680;
}

.team-view-switch .icon { width: 15px; height: 15px; }
.team-task { min-width: 0; }
.team-task h3, .task-notes { overflow-wrap: anywhere; }

.task-notes {
  color: var(--muted);
  font-size: .875rem;
  white-space: pre-wrap;
}

.team-task-result {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
}

.team-task-result summary { cursor: pointer; color: var(--blue-dark); font-weight: 700; }
.team-task-result > div { margin-top: 8px; padding: 8px; border-radius: 8px; background: var(--neutral-soft); }
.team-task-result small { display: block; margin-bottom: 5px; color: var(--subtle); }

.chat-room {
  width: min(100%, 960px);
  overflow: hidden;
}

.chat-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.chat-head p { color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.chat-status { color: var(--amber); font-size: .75rem; font-weight: 670; }
.chat-status::before { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; content: ""; }

.chat-scroll {
  height: clamp(245px, 47dvh, 490px);
  padding: 16px 20px 28px;
  overflow: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;

}

.chat-empty { display: grid; min-height: 100%; place-content: center; }
.chat-older { display: grid; justify-items: center; margin-bottom: 13px; }
.chat-messages { display: grid; gap: 22px; }
.chat-message {
  --chat-avatar-size: 40px;
  display: grid;
  grid-template-columns: var(--chat-avatar-size) minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.chat-message-main { display: grid; min-width: 0; justify-items: start; }
.chat-message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 7px;
  max-width: 100%;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .8125rem;
  overflow-wrap: anywhere;
}
.chat-message-meta strong { color: var(--ink); font-size: .875rem; font-weight: 730; }
.chat-message-meta .pill { min-height: 0; padding: 3px 6px; }

.chat-message--own { grid-template-columns: minmax(0, 1fr) var(--chat-avatar-size); }
.chat-message--own .member-avatar { grid-area: 1 / 2; }
.chat-message--own .chat-message-main { grid-area: 1 / 1; justify-items: end; }
.chat-message--own .chat-message-meta { justify-content: end; }

.chat-bubble {
  position: relative;
  display: grid;
  width: fit-content;
  min-width: 0;
  max-width: min(100%, 600px);
  gap: 5px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 4px 15px 15px 15px;

  font-size: .9375rem;
  line-height: 1.55;
}

.chat-message--own .chat-bubble {

  border-radius: 15px 4px 15px 15px;

}
.chat-text { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-bubble--image { padding: 5px; }
.chat-bubble--image .chat-text { padding: 1px 6px 4px; }

.chat-time {
  position: absolute;
  inset-block-start: calc(100% + 3px);
  inset-inline-start: 8px;
  color: var(--muted);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  pointer-events: none;
  visibility: hidden;
}

.chat-message--own .chat-time { inset-inline-start: auto; inset-inline-end: 8px; }
.chat-bubble:focus-visible .chat-time,
.chat-bubble:has(.chat-image-button:focus-visible) .chat-time,
.chat-bubble--selected .chat-time { visibility: visible; }

@media (hover: hover) {
  .chat-bubble:hover .chat-time { visibility: visible; }
}

.chat-image-button {
  display: block;
  width: fit-content;
  max-width: min(100%, 420px);
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: zoom-in;
}

.chat-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
}

.chat-image-full {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 64dvh;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 10px;
}

.chat-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
}

.chat-form textarea {
  min-height: 44px;
  max-height: 150px;
  overflow-y: auto;
  resize: none;
}

.chat-choose-image { width: 42px; min-width: 0; padding-inline: 0; }
.chat-choose-image .icon, .chat-remove-image .icon { width: 18px; height: 18px; }

.chat-preview {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.chat-preview img {
  width: 54px;
  height: 48px;
  object-fit: cover;
  border-radius: 7px;
}
.chat-preview > div { grid-column: 2; }
.chat-preview strong { display: block; font-size: .8125rem; }
.chat-preview small { display: block; color: var(--muted); font-size: .75rem; }
.chat-remove-image { grid-column: 3; min-height: 34px; padding: 5px 7px; }
.chat-form .form-error { grid-column: 1 / -1; }
.brand-settings { max-width: 870px; }

.brand-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.brand-current {
  display: grid;
  min-height: 128px;
  place-content: center stretch;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.brand-current .brand-plate { width: min(100%, 246px); height: 63px; }
.brand-current small { color: var(--subtle); font-size: .75rem; font-weight: 650; text-align: center; }

@media (max-width: 640px) {
  .brand-settings-layout { grid-template-columns: 1fr; gap: 14px; }
  .chat-head, .chat-scroll, .chat-form { padding-inline: 12px; }
  .chat-scroll { height: clamp(236px, 44dvh, 400px); }
  .chat-message { --chat-avatar-size: 34px; }
  .chat-message .member-avatar { width: 34px; height: 34px; }
}

@media (max-width: 400px) {
  .chat-head { grid-template-columns: auto minmax(0, 1fr); gap: 6px 8px; }
  .chat-status { grid-column: 2; }
  .chat-form button { padding-inline: 10px; }
}

/* Transisi untuk kontrol yang dapat dioperasikan. */
.auth-tab, .icon-button, .password-toggle, .team-view-switch button {
  transition: background-color 180ms ease, border-color 180ms ease,
    color 180ms ease, box-shadow 180ms ease;
}
@keyframes menu-shade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .sidebar {  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar { will-change: auto; }
}

/* Pilihan penerima tugas dan filter laporan. */
.assignment-columns { margin-bottom: 20px; }
@media (min-width: 1101px) {
  .assignment-columns { grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr); }
}
.assign-recipient-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.assign-recipient-bar .search-field { flex: 1 1 220px; }
.assign-list { display: grid; gap: 8px; max-height: 300px; overflow: auto; padding: 4px; border-radius: 12px; }
.form-stack .assign-person { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px;  cursor: pointer; }

.assign-person input { accent-color: var(--blue); width: 18px; height: 18px; flex-shrink: 0; }
.assign-person span { display: grid; gap: 2px; min-width: 0; }
.assign-person strong, .assign-person small { overflow-wrap: anywhere; }
.assign-person small { color: var(--subtle); }
.assign-audience-hint { font-size: .875rem; color: var(--muted); line-height: 1.5; }
.assign-empty { padding: 12px; color: var(--subtle); }
.task-panel-preview { margin-top: 18px; }
@media(max-width: 620px) { .assign-recipient-bar { align-items: stretch; flex-direction: column; } .assign-recipient-bar .search-field { flex-basis: auto; } }

.report-date-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report-date-tools .btn { white-space: nowrap; }
.task-summary { display: grid; gap: 16px; }
.task-summary > .btn { justify-self: start; }
.task-totals { display: grid; gap: 0; }
.task-totals .stat {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 12px;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.task-totals .stat:first-child { padding-top: 0; }
.task-totals .stat + .stat { border-top: 1px solid var(--line); }
.task-totals .stat-head { display: contents; }
.task-totals .stat-head > span:first-child { grid-area: 1 / 2; color: var(--ink); }
.task-totals .icon-tile { grid-area: 1 / 1 / 3 / 2; }
.task-totals .stat-value { grid-area: 1 / 3 / 3 / 4; margin: 0; font-size: 1.6rem; }
.task-totals small { grid-area: 2 / 2; }
@media (max-width: 640px) {
  .report-date-tools { width: 100%; }
  .report-date-tools .date-field { flex: 1 1 170px; }
}

/* Monitoring: filter shift ringan dan progres laporan yang dapat dibaca. */
.monitor-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-bottom: 17px;
  padding: 2px 0 15px;
  border-bottom: 1px solid var(--line);
}
.monitor-controls-label { display: grid; gap: 2px; min-width: 0; }
.monitor-controls-label strong { color: var(--ink); font-size: .93rem; font-weight: 700; }
.monitor-controls-label small { color: var(--subtle); font-size: .79rem; }
.monitor-shift-tabs { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.monitor-shift-button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;

  font-size: .825rem;
  font-weight: 625;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.monitor-shift-button .icon { width: 16px; height: 16px; }

.monitor-shift-count {
  display: inline-grid;
  min-width: 22px;
  min-height: 21px;
  place-items: center;
  padding-inline: 5px;
  border-radius: 6px;

  font-size: .75rem;
}

#monitoringMetrics { display: grid; gap: 15px; margin-bottom: 19px; }
#monitoringMetrics .stats { margin-bottom: 0; }
.monitor-overall-progress {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 9px 16px;
  padding: 16px 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.monitor-overall-copy { display: flex; align-items: center; gap: 11px; min-width: 0; }
.monitor-overall-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 10px;   }
.monitor-overall-icon .icon { width: 18px; height: 18px; }
.monitor-overall-copy > div { display: grid; gap: 2px; min-width: 0; }
.monitor-overall-copy strong { color: var(--ink); font-size: .9rem; }
.monitor-overall-copy small { color: var(--subtle); font-size: .78rem; }
.monitor-overall-percent { color: var(--blue-dark); font-size: 1.28rem; font-weight: 740; }
.monitor-overall-track { grid-column: 1/-1; height: 7px; overflow: hidden; border-radius: 30px; background: #e6ecf3; }
.monitor-overall-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #426f9e, #75a6d5); transition: width 240ms ease; }
.staff-report-progress { display: grid; gap: 8px; width: clamp(140px, 13.5vw, 225px); max-width: 100%; }
.staff-progress-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.staff-progress-copy strong { color: var(--blue-dark); font-size: .88rem; }
.staff-progress-copy small { color: var(--subtle); font-size: .72rem; white-space: nowrap; }
.staff-progress-track { width: 100%; height: 7px; overflow: hidden; border-radius: 30px; background: #e7edf4; }
.staff-progress-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #426f9e, #75a6d5); transition: width 240ms ease; }

.progress-unassigned { color: var(--subtle); font-size: .78rem; }

@media (max-width: 800px) {
  .monitor-controls { align-items: stretch; }
  .monitor-controls-label { width: 100%; }
}
@media (max-width: 640px) {
  .monitor-shift-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; }
  .monitor-shift-button { padding-inline: 4px; gap: 5px; font-size: .72rem; white-space: nowrap; }
  .monitor-shift-button .icon { display: none; }
  .monitor-shift-count { min-width: 19px; padding-inline: 4px; }
  .monitor-overall-progress { padding: 14px; }
  #monitoringTable .data-table tr td[data-label="Progress laporan"] { grid-column: 1 / -1; }
  #monitoringTable .staff-report-progress { width: 100%; }
  #monitoringTable .staff-progress-copy small { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  .monitor-shift-button, .staff-progress-fill, .monitor-overall-track > span { transition: none; }
}

/* Missed-period reasons and admin-managed reason catalog. */
.missed-reason-display {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  gap: 7px;

  border: 1px solid #f1e1cf;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: .78rem;
  line-height: 1.4;
}
.missed-reason-display .icon { width: 15px; height: 15px; flex: 0 0 auto; }

.missed-reason-display strong { color: inherit; font-weight: 720; }
.missed-reason-display span {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.slot-footer--reason { align-items: center; gap: 6px; }
.slot-footer--reason .slot-meta { font-size: .73rem; }

.btn-reason:hover { background: #e5f0f9; }
.reason-explanation { margin: 0; padding: 11px 12px; border-radius: 9px;
    font-size: .8rem; line-height: 1.55; }
.reason-catalog .panel-body { display: grid; min-width: 0; gap: 20px; }
.reason-catalog-list { display: grid; min-width: 0; }
.reason-catalog-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 69px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.reason-catalog-item:first-child { padding-top: 3px; }
.reason-catalog-item--inactive { opacity: .72; }
.reason-catalog-marker {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;

}

.reason-catalog-marker .icon { width: 16px; height: 16px; }
.reason-catalog-info { display: grid; min-width: 0; gap: 3px; overflow-wrap: anywhere; }
.reason-catalog-info strong { color: var(--ink); font-size: .875rem; line-height: 1.35; }
.reason-catalog-info small { color: var(--subtle); font-size: .77rem; line-height: 1.5; }
.reason-catalog-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 9px; }
.reason-catalog-actions .btn { min-height: 38px; white-space: nowrap; }
.reason-active-count {  font-size: .77rem; font-weight: 700; white-space: nowrap; }
.reason-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  min-width: 0;
}
.reason-add-form label { display: grid; min-width: 0; gap: 8px; font-size: .84rem; color: var(--ink); font-weight: 650; }
.reason-add-form .btn { min-height: 44px; white-space: nowrap; }
.reason-catalog .field-hint { max-width: 90ch; }
@media (max-width: 620px) {
  .reason-catalog-item { grid-template-columns: 34px minmax(0, 1fr); gap: 8px 11px; }
  .reason-catalog-actions { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  #rosterTable .list-toolbar select { flex: 1 1 150px; }
  #rosterTable .data-table td { height: auto; }
  #rosterTable .data-table th:last-child { text-align: left; }
  .roster-row-actions { justify-content: flex-start; }
  .reason-add-form { grid-template-columns: minmax(0, 1fr); }
  .reason-add-form .btn { width: 100%; justify-content: center; }
}

/* Compact evidence controls, consistent with hourly report cards. */
.slot-media-hint {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 7px 9px;
  border: 1px dashed #c7d7e8;
  border-radius: 9px;

  font-size: .75rem;
  font-weight: 625;
  line-height: 1.3;
}
.slot-media-hint .icon { width: 15px; height: 15px; flex: 0 0 auto; }
.slot-evidence {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #d6e5f1;
  border-radius: 10px;

}
.slot-evidence img { width: 43px; height: 43px; flex: 0 0 auto; border-radius: 7px; object-fit: cover;  }
.slot-evidence span {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  gap: 6px;

  font-size: .78125rem;
  font-weight: 675;
}
.slot-evidence .icon { width: 15px; height: 15px; flex: 0 0 auto; }
.task-card--read-only { gap: 10px; }
.task-card--read-only .task-description { margin: 0; }

.evidence-composer { display: grid; gap: 10px; min-width: 0; }
.evidence-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.evidence-head > div { display: grid; gap: 2px; }
.evidence-head strong, .report-evidence-heading strong { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 700; font-size: .875rem; }
.evidence-head .icon, .report-evidence-heading .icon { width: 17px; height: 17px; color: var(--blue); }
.evidence-head small { color: var(--muted); font-size: .75rem; }
.evidence-count { flex: 0 0 auto; border-radius: 20px; padding: 5px 9px;   font-size: .75rem; font-weight: 750; }
.evidence-drop {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 17px 12px;
  border: 1.5px dashed #afc6dc;
  border-radius: 13px;

  text-align: center;
  transition: border-color 150ms ease, background 150ms ease;
}
.evidence-drop:focus-visible, .evidence-drop--drag { outline: none;   }
.evidence-drop--full { opacity: .75; }
.evidence-drop[aria-busy="true"] { opacity: .6; pointer-events: none; }
.evidence-drop-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px;   }
.evidence-drop-icon .icon { width: 18px; height: 18px; }
.evidence-drop strong { color: var(--ink); font-size: .85rem; font-weight: 720; }
.evidence-drop small { max-width: 360px; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.evidence-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 5px; }
.evidence-actions .icon { width: 15px; height: 15px; }
.evidence-previews { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.evidence-preview { position: relative; min-width: 0; aspect-ratio: 1; border: 1px solid #d9e4ef; border-radius: 10px; background: var(--surface-soft); overflow: hidden; }
.evidence-preview img { width: 100%; height: 100%; object-fit: cover; }
.evidence-preview button { position: absolute; top: 4px; right: 4px; display: grid; width: 25px; height: 25px; padding: 0; border: 1px solid #fff7; border-radius: 7px; place-items: center; background: #182f45db; color: #fff; }
.evidence-preview button .icon { width: 15px; height: 15px; }
.evidence-preview small { position: absolute; bottom: 4px; left: 4px; padding: 2px 5px; border-radius: 5px; background: #162e46d9; color: #fff; font-size: .6875rem; }
.report-evidence { display: grid; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.report-evidence-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.report-evidence-heading small { color: var(--muted); font-size: .75rem; }
.report-evidence-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.report-evidence-grid a { display: block; min-width: 0; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #eaf0f7; }
.report-evidence-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.report-evidence-grid a:hover img { transform: scale(1.045); }
.report-evidence-grid a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 480px) {
  .slot-media-hint { font-size: .72rem; }
  .evidence-drop { padding: 13px 9px; }
  .evidence-previews, .report-evidence-grid { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .report-evidence-grid img { transition: none; }
}

/* v1.4.15 — stable report card height across different content states. */
@media (max-width: 620px) {
  .slot-card {
    min-block-size: 224px;
  }

  .slot-support,
  .slot-media-hint,
  .slot-evidence,
  .missed-reason-display {
    min-height: 48px;
  }

  .slot-footer,
  .slot-footer--detail {
    min-height: 41px;
  }
}

/* Royal Blue & Ice White: one shared visual system for staff and admin.
   Layout and business logic are defined above; these rules express surface and state. */
body { background: var(--background); color: var(--ink); }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
::selection { color: var(--text-light); background: var(--primary); }
input, select, textarea, button { color-scheme: light; }

/* Royal Navy / Royal Blue navigation for staff and admin; no group cards or harsh glow. */
.sidebar {
  border-inline-end: 1px solid #769BD024;
  background: var(--sidebar-gradient);
}
.side-nav { scrollbar-color: #A9C4E080 transparent; }
.nav-group { background: transparent; border: 0; box-shadow: none; }
.nav-group-title { color: var(--nav-muted); }
.nav-link:hover:not([data-current]) {
  border-color: #DDEBFF14;
  background: var(--nav-hover);
  color: #FFFFFF;
}
.nav-link:hover .icon { color: #FFFFFF; }
.nav-link[data-current] {
  border-color: #B9D4FF45;
  background: linear-gradient(105deg, #2F5A99 0%, #3C69AB 100%);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 #FFFFFF12;
}
.nav-link[data-current] .icon { color: #FFFFFF; }
.nav-link[data-current]::after { background: #E5F1FF; }
.sidebar .logout-button:hover {
  border-color: #FFC5CE55;
  background: #8C23374D;
  color: #FFE2E7;
}
.sidebar .account-avatar {
  border-color: #BBD4F5;
  background: #E7F1FF;
  color: #1F4BA7;
}
.sidebar .side-account-copy strong { color: #FFFFFF; }
.sidebar .side-account-copy small { color: var(--nav-muted); }
.sidebar .nav-link:focus-visible,
.sidebar .icon-button:focus-visible,
.sidebar .side-account:focus-visible {
  outline-color: #E5F1FF;
}

/* Header, profile initials and unified card surfaces. */
.topbar { background: #FFFFFF; border-bottom-color: var(--border); }
.breadcrumb-chevron { color: var(--subtle); }
.server-time { background: var(--surface); border-color: var(--border); }
.icon-button:hover { background: var(--blue-soft); }
.panel, .stat, .monitor-overall-progress { background: #FFFFFF; border-color: var(--border); }
.stat { box-shadow: var(--shadow); }
.stat-value { color: var(--text-primary); }
.icon-button:focus-visible, .btn:focus-visible, .nav-link:focus-visible { outline-color: var(--focus); }

/* Primary actions: royal blue with white foreground, never gold/dark. */
.btn:not(.btn-primary):not(.btn-hero):hover:enabled {
  border-color: #B9CCE8;
  background: var(--blue-soft);
  color: var(--primary-hover);
}
.btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--text-light);
  box-shadow: 0 3px 9px #1F4BA719;
}
.btn-primary:hover:enabled {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
  color: var(--text-light);
}
.btn-hero { border-color: #E1ECFC; background: #EDF5FF; color: #193753; }
.btn-hero:hover:enabled { border-color: #FFFFFF; background: #FFFFFF; color: #112F4B; }
.btn-quiet { color: var(--primary); }
.btn-quiet:hover:enabled { border-color: #C9DAEF; background: var(--blue-soft); color: var(--primary-hover); }
.btn-danger { border-color: #F0C6CA; color: var(--red); }
.btn-danger:hover:enabled { border-color: #E6A6AE; background: var(--red-soft); color: var(--red); }
.btn-danger-solid { border-color: #BA3445; background: #BA3445; color: #FFFFFF; }
.btn-danger-solid:hover:enabled { border-color: #98283A; background: #98283A; color: #FFFFFF; }

/* Sign in: light canvas, border-free animation, clean input states. */
.auth-layout { background: var(--surface); }
.auth-side { background: var(--background); }
.auth-tabs, .team-view-switch { background: var(--surface); border-color: var(--border); }
.auth-tab[aria-pressed="true"] {
  border-color: #D8E5F8;
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 1px 4px #1F4BA710;
}
.auth-tab:hover { color: var(--primary); }
.auth-card .form-head h1 { color: var(--text-primary); }

/* Deep-navy hero is the only large dark gradient area. */
.shift-hero {
  border-color: #31598B;
  background: var(--blue-gradient);
  color: #FFFFFF;
}
.hero-rings { border-color: #DBEBFF30; box-shadow: 0 0 0 30px #FFFFFF08, 0 0 0 64px #FFFFFF08; }
.hero-shift { border-color: #D8E8FF4D; background: #FFFFFF19; color: #FFFFFF; }
.hero-copy p, .hero-timer, .hero-progress-head, .hero-legend { color: #E8F2FF; }
.hero-copy h2, .hero-metric strong { color: #FFFFFF; }
.hero-progress { border-color: #C7DFFF54; background: #09244954; }
.hero-metric strong span { color: #DAE9FF; }
.segment { background: #D4E6FF4D; }
.segment--exempt { background: #D4E6FF26; }
.segment--submitted, .legend-dot--submitted { background: #73DBAF; }
.segment--open, .legend-dot--open { background: #E8F3FF; }
.segment--missed, .legend-dot--missed { background: #FFA6A6; }
.timeline-index { background: var(--blue-soft); color: var(--primary); }
.timeline-index--active { background: #DCEBFF; color: var(--primary-hover); }
.quick-link { background: transparent; }
.quick-link:hover { border-color: var(--border); background: var(--surface); }
.quick-link--danger:hover { border-color: #EFC9CE; background: var(--red-soft); }
.breakdown-panel { background: var(--soft-gradient); border-color: var(--border); }
.breakdown-panel .tile--blue { background: #E3EEFF; color: var(--primary); }
.breakdown-panel .tile--violet { background: var(--violet-soft); color: var(--violet); }
.breakdown-bar { background: #DCE5F1; }
.bar--green { background: var(--green); }
.bar--red { background: var(--red); }
.bar--blue { background: var(--primary); }
.bar--neutral { background: var(--neutral); }

/* Hourly reports and task evidence: soft states, fixed geometry. */
.slot-card, .task-card { border-color: var(--border); background: #FFFFFF; }
.slot--open { border-color: #9BBBE8; background: #F0F6FF; box-shadow: inset 3px 0 var(--primary); }
.slot--missed { border-color: #F1C5CA; background: #FFF7F7; }
.slot--upcoming, .slot--exempt { background: var(--surface); }
.slot-card--details:hover { border-color: #A8BFE2; box-shadow: 0 4px 15px #1F4BA712; }
.slot-index { color: var(--primary); }
.slot-card h3 { color: var(--text-primary); }
.slot-detail-button, .slot-clock { color: var(--primary); }
.slot-footer, .slot-footer--detail { border-color: var(--border); }
.slot-media-hint { border-color: #B9CFEA; background: #F4F8FF; color: var(--primary-hover); }
.slot-evidence { border-color: #C6D8F0; background: var(--surface); }
.slot-evidence img { background: #E9F0F9; }
.slot-evidence span { color: var(--text-primary); }
.missed-reason-display { border-color: #F1D9B4; background: #FFF9ED; color: #875314; }
.missed-reason-display.has-reason { border-color: #A8C5E6; background: #EFF5FF; color: var(--primary-hover); }
.btn-reason { border-color: #B8CEEB; background: #F0F6FF; color: var(--primary); }
.btn-reason:hover:enabled { border-color: var(--primary); background: #E4EFFF; color: var(--primary-hover); }
.reason-explanation { background: #F3F7FD; color: var(--muted); }
.reason-catalog-marker { background: var(--blue-soft); color: var(--primary); }
.reason-catalog-item--inactive .reason-catalog-marker { background: var(--neutral-soft); color: var(--muted); }
.reason-active-count { color: var(--primary); }

/* Lists, switchers, inputs, dialogs and notifications. */
.data-table th { background: #F3F7FC; color: var(--muted); }
.data-table tbody tr:not(.empty-row):hover td { background: #F7FAFF; }
.task-details { border-color: var(--border); background: var(--surface); }
.team-card { background: #FFFFFF; }
.team-view-switch [aria-pressed="true"] { border-color: #D4E2F7; background: #FFFFFF; color: var(--primary); box-shadow: 0 1px 4px #1F4BA70D; }
.form-stack .assign-person { border-color: var(--border); background: #FFFFFF; }
.assign-person:is(:hover, :has(input:checked)) { border-color: #B1CBED; background: var(--blue-soft); }
input:not([type="checkbox"]), select, textarea {
  border-color: var(--line-strong);
  background-color: #FFFFFF;
  color: var(--ink);
  color-scheme: light;
}
input:not([type="checkbox"]):focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #1F4BA721;
}
input::placeholder, textarea::placeholder { color: #8797AB; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); }
input::file-selector-button { border-color: var(--border); background: var(--blue-soft); color: var(--primary); }
.form-error { border-color: #F3C5CB; background: #FFF1F2; color: #A32238; }
.recipient-preview, .dialog-context { border-color: #C8D8F1; background: #F2F7FF; color: var(--primary-hover); }
.recipient-preview small { color: var(--muted); }
.dialog { border-color: var(--border); background: #FFFFFF; color: var(--ink); box-shadow: 0 20px 70px #132B4C30; }
.dialog::backdrop { background: #10233B80; }
.dialog-head { background: #FFFFFF; border-bottom-color: var(--border); }
.report-entry, .report-empty { border-color: var(--border); background: #F8FAFF; }
.toast { border-color: #B7E3CE; background: #EDFAF3; color: #146C43; box-shadow: var(--shadow); }
.toast--error { border-color: #F0BDC3; background: #FFF1F3; color: #9F2435; }

/* Chat bubbles are different enough to identify the speaker. */
.chat-scroll { background: #FAFCFF; }
.chat-bubble { border-color: var(--border); background: #F0F4FA; color: var(--ink); }
.chat-message--own .chat-bubble { border-color: #B4CEEF; background: #E8F1FF; color: var(--text-primary); }
.chat-preview, .report-evidence { background: var(--surface); border-color: var(--border); }
.evidence-count { background: #E4EFFF; color: var(--primary); }
.evidence-drop { border-color: #AFC6DC; background: var(--soft-gradient); }
.evidence-drop:focus-visible, .evidence-drop--drag { border-color: var(--primary); background: #E8F1FF; }
.evidence-drop-icon { background: var(--blue-soft); color: var(--primary); }
.evidence-preview, .report-evidence-grid a { border-color: var(--border); background: #E9F1FA; }
.evidence-preview button, .evidence-preview small { background: #173759E8; color: #FFFFFF; }

/* Monitoring shifts and report totals. */
.monitor-shift-button { border-color: var(--border); background: #FFFFFF; color: var(--muted); }
.monitor-shift-button:hover { border-color: #B8CDE9; background: var(--surface); }
.monitor-shift-button[aria-pressed="true"] { border-color: #AFC7ED; background: var(--blue-soft); color: var(--primary); }
.monitor-shift-count { background: var(--surface); color: var(--text-primary); }
.monitor-shift-button[aria-pressed="true"] .monitor-shift-count { background: #D2E3FC; color: var(--primary); }
.monitor-overall-icon { background: var(--blue-soft); color: var(--primary); }
.monitor-overall-percent, .staff-progress-copy strong { color: var(--primary); }
.monitor-overall-track, .staff-progress-track { background: #E6EBF3; }
.monitor-overall-track > span, .staff-progress-fill { background: var(--blue-gradient); }
.staff-report-progress.is-complete .staff-progress-fill { background: var(--green); }
.staff-report-progress.is-complete .staff-progress-copy strong { color: var(--green); }
.staff-report-progress.has-missed .staff-progress-fill { background: var(--amber); }

/* Mobile drawer uses the same Royal Navy surface as desktop navigation. */
@media (max-width: 900px) {
  .menu-overlay { background: #10233B80; }
  .sidebar { box-shadow: 12px 0 34px #10233B38; }
}

/* ------------------------------------------------------------
   v1.4.20 — Per-shift Tugas Lain and evidence. Minimal surfaces,
   inherits Royal Blue & Ice White tokens; no extra wrapper or glow.
   ------------------------------------------------------------ */
.daily-extra-panel { margin-top: 18px; }
.daily-task-count { color: var(--muted); font-size: .81rem; font-weight: 650; }
.task-grid--daily { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.task-card--daily { min-height: 190px; gap: 11px; }
.task-card--daily .btn { align-self: flex-start; margin-top: auto; }
.task-req-list { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.task-req-list > span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .77rem; }
.task-req-list .icon { width: 15px; height: 15px; color: var(--primary); }
.task-result-summary { display: grid; gap: 9px; margin-top: auto; padding-top: 9px; border-top: 1px solid var(--border); }
.task-result-summary p, .task-result-text { margin: 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.task-result-summary > small { color: var(--muted); font-size: .78rem; }
.task-proof-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 10px; }
.task-proof { display: block; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.task-proof img { display: block; width: 95px; height: 78px; object-fit: cover; }
.task-proof:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.task-requirements { display: grid; min-width: 0; gap: 3px; margin: 0; padding: 14px 0 4px; border: 0; border-top: 1px solid var(--border); }
.task-requirements legend { float: left; width: 100%; margin-bottom: 8px; padding: 0; color: var(--ink); font-size: .87rem; font-weight: 680; }
.task-requirement { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 11px; padding: 9px 2px; cursor: pointer; }
.task-requirement input { margin: 3px 0 0; flex: 0 0 auto; }
.task-requirement span { display: grid; gap: 3px; }
.task-requirement strong { color: var(--ink); font-size: .86rem; font-weight: 650; }
.task-requirement small { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.task-admin-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.task-upload { display: grid; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.task-upload .evidence-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-upload .evidence-toolbar strong { color: var(--primary); font-size: .85rem; }
.task-upload .evidence-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cycle-summary-note { color: var(--muted); font-size: .83rem; max-width: 55ch; }
@media (max-width: 600px) {
  .task-grid--daily { grid-template-columns: minmax(0,1fr); }
  .task-card--daily { min-height: 0; }
  .task-admin-actions { min-width: 120px; }
}

/* ------------------------------------------------------------
   v1.4.21 — Izin Keluar: server-based time tracking.
   Royal Blue light theme, compact controls, no decorative glow.
   ------------------------------------------------------------ */
.break-stats { margin-bottom: 18px; }
.break-create, .break-current, .break-history, .break-admin-live, .break-settings { margin-bottom: 18px; }
.break-kind-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.break-kind-grid { display: grid;   }
.break-kind { position: relative; display: flex !important; align-items: center; flex-direction: row !important; gap: 11px;  border: 1px solid var(--border);   cursor: pointer; transition: border-color .16s, background .16s; }

.break-kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.break-kind-symbol { color: var(--primary); display: inline-flex; flex: 0 0 auto; }
.break-kind-symbol .icon { width: 23px; height: 23px; }
.break-kind-name { font-size: .9rem; font-weight: 650; color: var(--ink); }
.break-kind-select { margin-left: auto;  color: var(--primary); }

.break-kind-fieldset:disabled .break-kind {  cursor: not-allowed; }
.break-time-notice {  align-items: flex-start; gap: 9px; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.break-time-notice .icon { flex: 0 0 18px; }
.break-active-layout { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.break-active-detail { display: grid; gap: 9px; }
.break-active-detail .pill { justify-self: start; }
.break-active-detail small { color: var(--muted); }
.break-stopwatch { font-weight: 730; font-variant-numeric: tabular-nums; font-size: clamp(2.1rem, 5vw, 3.6rem); color: var(--primary); letter-spacing: -.03em; line-height: 1.18; }
.break-return { min-height: 44px; }
.break-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.break-history .panel-body { overflow: hidden; }
.break-ongoing-list { display: grid; gap: 0; }
.break-ongoing-item { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 13px 2px; border-bottom: 1px solid var(--border); }
.break-ongoing-item:last-child { border-bottom: 0; }
.break-ongoing-copy { display: grid; gap: 4px; min-width: 0; }
.break-ongoing-copy strong { color: var(--ink); }
.break-ongoing-copy small { color: var(--muted); overflow-wrap: anywhere; }
.break-ongoing-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.break-ongoing-actions > strong { color: var(--primary); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.break-type-list { display: grid; gap: 0; }
.break-type-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 11px 0; border-bottom: 1px solid var(--border); }
.break-type-label { display: inline-flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.break-type-label .icon { color: var(--primary); }
.break-type-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.break-type-add { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.break-type-add label { min-width: min(100%, 270px); flex: 1; }
.break-type-add button { flex-shrink: 0; }
.break-history .data-table { min-width: 660px; }
@media (max-width: 600px) {
  .break-kind-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr)); }
  .break-kind { padding: 12px !important; }
  .break-active-layout { align-items: stretch; }
  .break-return { width: 100%; }
  .break-type-add button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .break-kind { transition: none; }
}

/* Simple multi-purpose break selectors without decorative SVG. */
.break-kind-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: 9px; }
.break-kind-legend { color: var(--muted); font-size: .84rem; margin-bottom: 11px; }
.break-kind { min-height: 50px; padding: 12px 14px !important; background: transparent; border-color: var(--border); border-radius: 10px; }
.break-kind:hover, .break-kind:has(input:focus-visible) { border-color: var(--primary-dark); }
.break-kind:has(input:checked) { border-color: var(--primary-dark); background: var(--blue-soft); }
.break-kind-select { font-size: .82rem; font-weight: 800; opacity: 0; transform: none; }
.break-kind:has(input:checked) .break-kind-select { opacity: 1; }
.break-kind:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.break-kind-fieldset:disabled .break-kind { opacity: .5; }
.break-time-notice { display: block; }
.break-type-label .icon, .break-kind-symbol { display: none; }

/* v2.1.3 | Unified typography and Lucide-style icon alignment. */
:where(.nav-link, .btn, .icon-button, .quick-link, .server-time,
  .page-date, .hero-shift, .slot-clock, .task-top > span,
  .task-req-list > span, .report-evidence-heading strong,
  .evidence-toolbar, .evidence-head strong, .slot-media-hint,
  .dialog-context, .recipient-preview, .team-view-switch button,
  .monitor-shift-button, .break-type-label, .break-ongoing-actions) > .icon {
  flex-shrink: 0;
}

:where(.btn, .nav-link, .pill, .auth-tab, .team-view-switch button,
  .monitor-shift-button, .server-time, .page-date, .break-kind,
  .sidebar-bottom, .topbar, .panel-actions) {
  font-variant-numeric: tabular-nums;
}
:where(.btn, .pill, .auth-tab, .monitor-shift-button,
  .team-view-switch button, .icon-button, .password-toggle) {
  vertical-align: middle;
}
:where(.icon-button, .password-toggle, .icon-tile, .timeline-index,
  .monitor-overall-icon, .reason-catalog-marker) > svg.icon {
  display: block;
  margin: auto;
}
:where(.quick-link, .team-identity, .identity, .page-head, .panel-head,
  .dialog-head, .stat-head) {
  min-width: 0;
}
:where(.page-copy, .panel-head > div:first-child, .side-account-copy,
  .task-card, .slot-card, .break-ongoing-copy) {
  overflow-wrap: anywhere;
}
/* The three break reasons remain text-only: no pictograms or SVG decorations. */
.break-kind-name { line-height: 1.4; }
.break-kind-select { line-height: 1; }
@media (max-width: 640px) {
  .nav-link { font-size: .9rem; }
  .page-head h1 { line-height: 1.2; }
  .btn { line-height: 1.35; }
}

/* ========================================================================== */
/* v2.1.6 — STAFF PORTFOLIO | consistent container-responsive composition */
/* ========================================================================== */
.pf-shell {
  --pf-navy: #122f62;
  --pf-deep: #102954;
  --pf-blue: #1f4ba7;
  --pf-bright: #3d77d0;
  position: relative;
  isolation: isolate;
  /* Component width, not browser width, governs each adaptive breakpoint. */
  container: pf-portfolio / inline-size;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-block: 0 24px;
  margin-inline: auto;
  padding: 14px;
  overflow: visible; /* upper PNG may cross the panel edge */
  border: 1px solid var(--pf-palette-border, #e5ecf7);
  border-radius: 28px;
  background: linear-gradient(135deg,var(--pf-palette-bg, #fff),color-mix(in srgb, var(--pf-palette-bg, #fff) 92%, var(--pf-blue, #1f4ba7)));
  box-shadow: 0 24px 65px #1b458618, 0 3px 12px #1b45860b;
}
.pf-shell button { font-family: inherit; }
.pf-topline { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px clamp(8px, 1.6cqw, 18px) 9px; }
.pf-topmark { color: var(--pf-palette-ink, #122d5c); font-size: clamp(15px, 1.7cqw, 19px); font-weight: 900; font-style: italic; letter-spacing: -.06em; }
.pf-topmark > span { color: var(--pf-blue); }
.pf-topmark small { font-size: .66em; color: var(--pf-palette-muted, #72839e); letter-spacing: .03em; font-weight: 660; font-style: normal; padding-left: 8px; }
.pf-topline-label { display: inline-flex; align-items: center; gap: 7px; color: var(--pf-palette-muted, #52709b); font-size: .75rem; font-weight: 660; }
.pf-topline-label .icon { width: 16px; height: 16px; }
.pf-typography { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; position: relative; z-index: 1; padding: 9px clamp(7px, 1.5cqw, 18px) 12px; }
.pf-typography > div { display: flex; flex-direction: column; min-width: 0; }
.pf-typography > div:last-child { text-align: right; align-items: flex-end; }
.pf-typography span { font-size: clamp(17px, 3cqw, 34px); font-weight: 850; line-height: 1.03; font-style: italic; letter-spacing: -.065em; color: var(--pf-palette-ink, #071323); }
.pf-typography strong { display: block; max-width: 100%; font-size: clamp(36px, 6.5cqw, 76px); font-weight: 900; line-height: .99; letter-spacing: -.085em; color: var(--pf-blue); white-space: nowrap; }
/* Mask sideways and lower zoom spill but allow the upper silhouette to break through. */
.pf-stage-scene { position: relative; z-index: 2; isolation: isolate; min-width: 0; overflow: visible; clip-path: inset(-160px 0 0 0); --pf-portrait-scale: 1; --pf-portrait-x: 0%; --pf-portrait-y: 0%; }
/* The hero owns the portrait baseline; optional copy and the summary cannot move its anchor. */
.pf-blue-stage { position: relative; isolation: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(205px, .38fr); box-sizing: border-box; width: 100%; min-width: 0; height: clamp(480px, 49cqw, 590px); padding: clamp(20px, 3cqw, 38px); overflow: visible; border-radius: 28px; color: var(--pf-stage-ink, #fff); background: linear-gradient(125deg,var(--pf-stage-start, #265596) 0%,color-mix(in srgb,var(--pf-stage-start, #265596) 65%,var(--pf-stage-end, #122d61)) 40%,var(--pf-stage-end, #122d61) 100%); }
.pf-stage-hero { position: relative; min-width: 0; min-height: 0; grid-column: 1 / -1; grid-row: 1; display: flex; align-items: stretch; }
.pf-stage-hero--no-image .pf-stage-copy { max-width: min(100%, 420px); }
.pf-blue-stage::before { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: radial-gradient(ellipse at 54% 42%,#638ddc3b,transparent 48%),linear-gradient(110deg,#ffffff08,transparent 55%); pointer-events: none; }
/* User-authored white signature text; all effects remain CSS, never rasterized. */
.pf-center-word {
  position: absolute;
  z-index: 1;
  /* The position denotes the centre of the text, not a narrow wrapping column. */
  top: calc(51.5% + var(--pf-center-y, 0%));
  left: clamp(15%, calc(50% + var(--pf-center-x, 0%)), 85%);
  width: max-content;
  max-width: none;
  height: auto;
  display: block;
  text-align: center;
  color: var(--pf-signature, #fff);
  font-size: clamp(18px, calc(6.2cqw * var(--pf-center-size, 1)), 180px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -.045em;
  /* Preserve all words on ONE horizontal line. A measured scale fits the
     rendered width inside the panel without changing user-authored text. */
  white-space: nowrap;
  text-wrap: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  text-shadow:
    0 0 7px color-mix(in srgb, var(--pf-signature, #FFFFFF) calc(var(--pf-center-glow, .6) * 80%), transparent),
    0 0 22px color-mix(in srgb, var(--pf-signature, #FFFFFF) calc(var(--pf-center-glow, .6) * 55%), transparent),
    0 0 42px color-mix(in srgb, var(--pf-signature, #FFFFFF) calc(var(--pf-center-glow, .6) * 42%), transparent);
  /* Scale BEFORE translating: the translated centre remains fixed even
     when the auto-fit factor drops below one on compact screens. */
  transform: scale(
    calc(var(--pf-center-width, 1) * var(--pf-center-fit, 1)),
    calc(var(--pf-center-height, 1) * var(--pf-center-fit, 1))
  ) translate(-50%, -50%);
  transform-origin: top left;
  pointer-events: none;
  user-select: none;
}
.pf-stage-copy { position: relative; z-index: 3; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start; width: min(50%, 340px); min-width: 0; min-height: 0; max-height: 100%; box-sizing: border-box; padding: 0 2px clamp(92px, 10cqw, 112px) 0; overflow: hidden; }
/* Identity stays top-left; only optional copy can scroll, never the identity or bottom card. */
.pf-copy-identity { flex: none; min-width: 0; max-height: 65%; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.pf-copy-details { flex: 0 1 auto; min-width: 0; min-height: 0; padding-top: clamp(14px, 2cqw, 24px); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; overscroll-behavior: contain; }
.pf-copy-details .pf-headline { margin-top: 0; }
.pf-stage-copy .pf-action-row { flex: 0 0 auto; margin-top: clamp(12px, 1.8cqw, 22px); }
.pf-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 22px; font-size: .76rem; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.pf-eyebrow .icon { width: 16px; height: 16px; }
.pf-stage-copy h2 { font-size: clamp(24px, 3.5cqw, 40px); font-weight: 850; line-height: 1.06; letter-spacing: -.065em; overflow-wrap: anywhere; }
.pf-role { margin-top: 6px; font-weight: 750; font-size: .94rem; color: var(--pf-stage-ink, #d8e9ff); opacity: .88; }
.pf-headline { margin-top: 23px; font-size: clamp(16px, 1.9cqw, 21px); line-height: 1.25; font-weight: 750; max-width: 25ch; text-wrap: balance; }
.pf-bio { margin-top: 10px; max-width: 31ch; font-size: .85rem; line-height: 1.6; color: var(--pf-stage-ink, #e1ebfd); opacity: .86; overflow-wrap: anywhere; }
.pf-action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pf-cta { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 43px; padding: 9px 16px; border: 1px solid #061730; border-radius: 999px; background: #081b39; color: white; font-size: .81rem; font-weight: 700; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; box-shadow: 0 7px 15px #05153025; }
.pf-cta .icon { width: 17px; height: 17px; }
.pf-cta:hover { transform: translateY(-2px); background: #020f25; box-shadow: 0 12px 25px #08162b55; }
/* A read-only label retains the exact CTA row geometry across account and peer views. */
.pf-view-note { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 43px; padding: 9px 16px; border: 1px solid #e6efff40; border-radius: 999px; background: #081b3970; color: #e9f1ff; font-size: .81rem; font-weight: 700; }
.pf-view-note .icon { width: 17px; height: 17px; }
.pf-insight { position: absolute; z-index: 4; left: 0; bottom: 0; display: inline-flex; box-sizing: border-box; width: max-content; max-width: min(100%, 286px); min-width: 0; align-items: center; gap: 12px; padding: 11px 14px; margin: 0; border-radius: 17px; border: 1px solid #e9f3ff36; background: linear-gradient(135deg,#e6f3ff35,#d0e1ff13); backdrop-filter: blur(8px); }
.pf-insight-symbol { display: grid; place-items: center; width: 35px; height: 35px; flex-shrink: 0; background: #e8f2ff2b; border-radius: 11px; }
.pf-insight > div { min-width: 0; display: grid; gap: 2px; }
.pf-insight strong { font-size: .8rem; overflow-wrap: anywhere; }
.pf-insight small { color: #e2efff; font-size: .7rem; }
/* Enlarged anchor for real PNG portraits; fallback avatar retains its original geometry. */
.pf-character { position: absolute; bottom: 0; left: 27%; width: 46%; height: calc(100% + clamp(38px, 7cqw, 85px)); z-index: 2; pointer-events: none; display: flex; align-items: flex-end; justify-content: center; }
.pf-character--image { left: 25%; width: 52%; height: calc(100% + clamp(42px, 8cqw, 105px)); }
.pf-halo { position: absolute; top: 22%; left: 6%; width: 92%; aspect-ratio: 1; background: radial-gradient(circle,#9abcff42 0%,#5b90ed20 48%,transparent 69%); border-radius: 50%; }
.pf-figure { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-end; width: 100%; height: 100%; transform: translate3d(var(--pf-portrait-x), var(--pf-portrait-y), 0) scale(var(--pf-portrait-scale)); transform-origin: center bottom; transition: transform 160ms ease-out; }
.pf-portrait-img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(12px 18px 16px #061f4680); }
.pf-stage-aside { position: relative; z-index: 4; grid-column: 2; grid-row: 1; min-width: 0; width: min(100%, 246px); justify-self: end; display: flex; flex-direction: column; align-items: stretch; }
.pf-points { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: auto; text-align: center; }
.pf-points > span { display: flex; align-items: center; flex-direction: column; gap: 6px; }
.pf-points .icon { width: 23px; height: 23px; }
.pf-points small { font-size: .66rem; line-height: 1.28; color: var(--pf-stage-ink, #e8f0ff); opacity: .88; }
.pf-stage-aside > h3 { margin: 22px 0 11px; color: var(--pf-stage-ink, #fff); font-weight: 760; font-size: 1.05rem; }
.pf-featured { padding: 16px 13px; color: var(--pf-card-ink, #132b4e); text-align: center; background: var(--pf-card, #fff); border: 1px solid var(--pf-card-border, #fff); border-radius: 20px; box-shadow: 0 14px 28px #081d3f55; }
.pf-featured-name { display: block; margin-top: 0; font-size: .89rem; font-weight: 820; line-height: 1.2; overflow-wrap: anywhere; }
.pf-featured-role { display: block; margin-top: 4px; font-size: .73rem; color: var(--pf-card-muted, #536985); overflow-wrap: anywhere; }
.pf-status { display: inline-flex; gap: 6px; align-items: center; justify-content: center; margin: 12px auto 14px; padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--pf-blue, #2455a1) 11%, var(--pf-card, #fff)); color: var(--pf-blue, #2455a1); font-weight: 700; font-size: .7rem; }
.pf-status--complete { background: #dff4e9; color: #176648; }
.pf-status .icon { width: 15px; height: 15px; }
.pf-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 5px; text-align: left; margin-bottom: 7px; font-size: .7rem; }
.pf-progress-head strong { color: var(--pf-blue, #194aa2); font-weight: 850; font-size: .89rem; }
.pf-track { overflow: hidden; height: 9px; border-radius: 999px; background: color-mix(in srgb, var(--pf-blue, #e8eef8) 11%, var(--pf-card, #fff)); }
.pf-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--pf-stage-start, #2555b2),var(--pf-blue, #3b78d9)); transition: width .3s ease; }
.pf-editor { margin-bottom: 22px; scroll-margin-top: 20px; }
.pf-editor-grid { display: grid; grid-template-columns: minmax(190px, .65fr) minmax(0, 1.35fr); gap: clamp(20px, 3vw, 37px); }
.pf-editor-photo { display: flex; min-width: 0; flex-direction: column; align-items: stretch; gap: 10px; }
.pf-editor-photo h3 { font-size: 1rem; }
.pf-editor-photo > p { font-size: .81rem; color: var(--muted); line-height: 1.6; }
.pf-upload-thumb { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; height: 205px; background: linear-gradient(135deg,#eef5ff,#d9e8fd); border: 1px dashed #9cb6de; border-radius: 20px; color: #315c9c; font-size: .81rem; font-weight: 740; overflow: hidden; }
/* One image rule controls both containment and the live crop preview. */
.pf-upload-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; transform: translate(var(--pf-portrait-x, 0%), var(--pf-portrait-y, 0%)) scale(var(--pf-portrait-scale, 1)); transform-origin: center bottom; transition: transform 160ms ease-out; }
.pf-upload-thumb > .icon { width: 35px; height: 35px; }
.pf-placement-panel { display: grid; gap: 12px; margin-top: 10px; padding: 15px; background: #f4f8ff; border: 1px solid #dce7f8; border-radius: 16px; }
.pf-placement-panel > h4 { margin: 0; font-size: .91rem; color: #183c70; }
.pf-placement-panel > p { margin: 0; color: #516780; font-size: .75rem; line-height: 1.5; }
.pf-placement-control { display: grid; gap: 5px; }
.pf-placement-control > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .79rem; font-weight: 700; color: #294a78; }
.pf-placement-control output { font-variant-numeric: tabular-nums; font-size: .77rem; color: #1e4ca0; }
.pf-placement-control input[type=range] { width: 100%; margin: 3px 0; cursor: pointer; accent-color: #1f4ba7; }
/* Fast large-portrait presets and range endpoints. */
.pf-zoom-range { display: flex; justify-content: space-between; color: #7488a4; font-weight: 500; }
.pf-zoom-range small { font-size: .69rem; }
.pf-zoom-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-zoom-preset { border: 1px solid #cbdcf4; border-radius: 10px; background: #fff; color: #284d85; padding: 7px 10px; font-size: .73rem; font-weight: 740; cursor: pointer; }
.pf-zoom-preset--max { border-color: #245cba; color: #174994; }
.pf-zoom-preset[aria-pressed="true"] { border-color: #1f4ba7; background: #1f4ba7; color: #fff; }
.pf-zoom-preset:focus-visible { outline: 2px solid #1f4ba7; outline-offset: 2px; }
.pf-placement-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-placement-actions .btn { min-height: 38px; }
.pf-editor-photo .form-stack { margin-top: 4px; }
/* Independent editable signature (no PNG required), with clean responsive sliders. */
.pf-center-editor { display: grid; gap: 14px; margin-top: 22px; padding: 17px; border: 1px solid #dce7f8; border-radius: 17px; background: #f4f8ff; }
.pf-center-editor-head h4 { margin: 0 0 5px; color: #183c70; font-size: .96rem; }
.pf-center-editor-head p { margin: 0; color: #516780; font-size: .78rem; line-height: 1.55; }
.pf-center-editor > label { display: grid; gap: 7px; font-size: .84rem; font-weight: 700; color: #294a78; }
.pf-center-editor > label > input { width: 100%; box-sizing: border-box; }
.pf-center-editor .pf-center-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.pf-center-editor .pf-placement-control { min-width: 0; }
.pf-center-editor .pf-placement-control > span { flex-wrap: wrap; }
@media (max-width: 560px) {
  .pf-center-editor .pf-center-controls { grid-template-columns: 1fr; }
  .pf-center-editor { padding: 13px; }
}

.pf-editor-fields { align-self: start; }
/* Responsive layout follows the actual portfolio container, not the browser or sidebar. */
@container pf-portfolio (max-width: 1000px) {
  .pf-stage-copy { width: min(50%, 300px); }
  .pf-stage-aside { width: min(100%, 220px); }
  .pf-typography strong { font-size: clamp(35px, 6cqw, 64px); }
}
@container pf-portfolio (max-width: 780px) {
  .pf-topline { padding: 7px 8px 9px; }
  .pf-topmark small { font-size: .58em; }
  .pf-topline-label { font-size: .7rem; }
  .pf-typography { padding: 13px 6px 15px; }
  .pf-typography strong { font-size: clamp(28px, 6.3cqw, 48px); }
  .pf-typography span { font-size: clamp(15px, 3.5cqw, 24px); }
  /* Hero and summary become separate grid rows: text never pushes the PNG. */
  .pf-blue-stage { grid-template-columns: minmax(0, 1fr); gap: 18px; height: auto; min-height: 0; padding: 20px; border-radius: 22px; }
  .pf-stage-hero { grid-column: 1; grid-row: 1; height: clamp(400px, calc(14.3cqw + 328.5px), 440px); }
  .pf-stage-copy { width: min(56%, 330px); max-height: 100%; padding: 14px 4px 104px 0; justify-content: flex-start; overflow: hidden; }
  .pf-stage-hero--no-image { height: auto; min-height: 240px; }
  .pf-stage-hero--no-image .pf-stage-copy { width: min(100%, 440px); max-height: none; overflow: hidden; }
  .pf-stage-copy h2 { font-size: clamp(24px, 5cqw, 37px); }
  .pf-headline { font-size: clamp(17px, 3cqw, 21px); }
  .pf-bio { max-width: 30ch; }
  .pf-character, .pf-character--image { bottom: 0; top: auto; left: auto; right: -4%; width: 61%; height: calc(100% + clamp(28px, 5cqw, 70px)); opacity: 1; }
  .pf-halo { top: 10%; }
  .pf-center-word { top: calc(176px + var(--pf-center-y, 0%)); left: clamp(15%, calc(64% + var(--pf-center-x, 0%)), 85%); }
  .pf-stage-aside { grid-column: 1; grid-row: 2; align-self: stretch; justify-self: stretch; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 230px); column-gap: 18px; }
  .pf-points { grid-column: 1; grid-row: 1 / 3; align-self: center; margin: 0; }
  .pf-stage-aside > h3 { grid-column: 2; grid-row: 1; margin: 0 0 8px; }
  .pf-featured { grid-column: 2; grid-row: 2; }
}
@container pf-portfolio (max-width: 500px) {
  .pf-topmark { font-size: 14px; }
  .pf-topmark small { display: none; }
  .pf-topline-label { max-width: 58%; text-align: right; }
  .pf-typography { gap: 5px; }
  .pf-typography strong { font-size: clamp(20px, 7.1cqw, 34px); }
  .pf-typography span { font-size: clamp(12px, 4cqw, 18px); }
  .pf-blue-stage { padding: 18px 14px; gap: 14px; }
  .pf-stage-hero { height: clamp(330px, 82cqw, 425px); }
  .pf-stage-hero--no-image { height: auto; min-height: 220px; }
  .pf-stage-copy { width: 57%; padding: 10px 0 100px; }
  .pf-stage-copy .pf-cta, .pf-stage-copy .pf-view-note { box-sizing: border-box; max-width: 100%; min-height: 36px; padding: 8px 9px; gap: 6px; font-size: .72rem; line-height: 1.2; }
  .pf-stage-copy h2 { max-width: 100%; }
  .pf-role, .pf-headline, .pf-bio { max-width: 100%; }
  .pf-bio { font-size: .75rem; }
  .pf-character, .pf-character--image { right: -7%; width: 72%; height: calc(100% + 30px); }
  .pf-center-word { top: calc(155px + var(--pf-center-y, 0%)); left: clamp(15%, calc(64% + var(--pf-center-x, 0%)), 85%); }
  .pf-insight { max-width: min(90%, 250px); padding: 9px 10px; gap: 9px; }
  .pf-insight strong { font-size: .72rem; }
  .pf-insight small { font-size: .64rem; }
  .pf-stage-aside { display: flex; gap: 8px; }
  .pf-points { order: 1; margin: 0 0 11px; }
  .pf-stage-aside > h3 { order: 2; margin: 0 0 9px; }
  .pf-featured { order: 3; padding: 12px; }
}
@container pf-portfolio (max-width: 345px) {
  .pf-topline-label { font-size: .63rem; }
  .pf-typography strong { font-size: clamp(19px, 6.7cqw, 23px); }
  .pf-typography span { font-size: 12px; }
  .pf-stage-copy h2 { font-size: 22px; }
  .pf-eyebrow { margin-bottom: 12px; }
  .pf-headline { font-size: 15px; }
  .pf-action-row { margin-top: 12px; }
  .pf-insight { max-width: min(95%, 238px); }
  .pf-character--image { right: -10%; }
  .pf-points small { font-size: .61rem; }
}
@media (max-width: 760px) {
  /* The editor stays one column in narrower viewports. */
  .pf-editor-grid { grid-template-columns: 1fr; }
  .pf-upload-thumb { height: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-cta, .pf-track span, .pf-figure, .pf-upload-thumb img { transition: none; }
  .pf-cta:hover { transform: none; }
}

/* ========================================================================== */
/* v2.1.6 — One container/one visual: Akun Staff & Laporan Harian.          */
/* ========================================================================== */
.staff-page-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: clamp(18px, 2.1vw, 26px);
  width: 100%;
  min-width: 0;
  container: pf-account-workspace / inline-size;
}
/* All sections share the available content column; no maximum hero width,
   compact portrait geometry, or additional report-page CSS overrides. */
.staff-page-workspace > * {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
}
.portfolio-workspace .pf-editor { scroll-margin-top: 85px; }
.portfolio-workspace .pf-editor-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(14px, 1.9vw, 24px);
  padding: clamp(14px, 2vw, 22px);
}
.pf-editor-section {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 17px;
  padding: clamp(15px, 1.8vw, 21px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
}
.pf-editor-section-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
}
.pf-editor-step {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border-radius: 11px;
  border: 1px solid #d7e5fa;
  background: #ebf3ff;
  color: #1f4ba7;
  font-weight: 800;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}
.pf-editor-section-head > div { min-width: 0; }
.pf-editor-section-head h3 { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 750; line-height: 1.35; }
.pf-editor-section-head p { margin-top: 5px; color: var(--muted); font-size: .81rem; line-height: 1.55; }
.portfolio-workspace .pf-editor-photo { gap: 17px; }
.pf-portrait-upload-layout {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}
.pf-portrait-upload-layout .pf-upload-thumb { height: 216px; min-width: 0; }
.pf-portrait-upload-layout .form-stack { min-width: 0; margin: 0; }
.pf-portrait-upload-layout .form-stack label { overflow-wrap: anywhere; }
.pf-editor-section .pf-placement-panel { margin-top: 0; }
.pf-editor-section .pf-editor-fields { min-width: 0; width: 100%; margin: 0; }
.pf-editor-section .pf-editor-fields textarea { min-height: 130px; resize: vertical; }
.pf-editor-section .pf-placement-actions { gap: 8px; }
.pf-editor-section .pf-placement-actions .btn { min-height: 42px; }
.account-settings { min-width: 0; }
.account-section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.account-section-head h2 { color: var(--ink); font-size: clamp(1.17rem, 2vw, 1.42rem); line-height: 1.3; letter-spacing: -.03em; }
.account-section-head p { color: var(--muted); max-width: 78ch; margin-top: 5px; font-size: .83rem; line-height: 1.55; }
.account-layout--settings { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 22px); }
.account-layout--settings .panel-stack { gap: clamp(14px, 2vw, 22px); }
.account-layout--settings .panel { min-width: 0; }
.account-layout--settings .profile-card { min-width: 0; }
.account-layout--settings .profile-card > div { min-width: 0; overflow-wrap: anywhere; }
.account-layout--settings .account-security { align-self: start; }
@container pf-account-workspace (max-width: 1000px) {
  .portfolio-workspace .pf-editor-grid { grid-template-columns: 1fr; }
  .pf-portrait-upload-layout { grid-template-columns: minmax(170px, .75fr) minmax(0, 1.25fr); }
}
@container pf-account-workspace (max-width: 780px) {
  .account-layout--settings { grid-template-columns: minmax(0, 1fr); }
}
@container pf-account-workspace (max-width: 530px) {
  .portfolio-workspace .pf-editor-grid { padding: 12px; }
  .pf-editor-section { padding: 13px; gap: 14px; }
  .pf-portrait-upload-layout { grid-template-columns: minmax(0, 1fr); }
  .pf-portrait-upload-layout .pf-upload-thumb { height: 210px; }
  .pf-editor-section-head { gap: 10px; }
  .pf-editor-step { width: 32px; height: 32px; flex-basis: 32px; }
  .account-section-head { margin-bottom: 12px; }
  .portfolio-workspace .pf-editor-fields .field-row { grid-template-columns: 1fr; }
  .account-layout--settings .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .account-layout--settings .panel-head,
  .portfolio-workspace .pf-editor > .panel-head { padding: 14px; }
  .account-layout--settings .panel-body { padding: 15px; }
  .portfolio-workspace .pf-editor-section .btn { max-width: 100%; }
}

/* ========================================================================== */
/* v2.1.14 — Staff-specific colors: only the authenticated staff portal.       */
/* Color values originate from the API whitelist, never from arbitrary CSS.  */
/* ========================================================================== */
html[data-staff-theme="on"] .topbar,
html[data-staff-theme="on"] .panel,
html[data-staff-theme="on"] .stat,
html[data-staff-theme="on"] .monitor-overall-progress {
  background: var(--surface-raised);
  border-color: var(--line);
  color: var(--ink);
}
html[data-staff-theme="on"] .sidebar .nav-link[data-current] {
  background: var(--nav-active);
  border-color: color-mix(in srgb, var(--nav-text) 28%, transparent);
  color: var(--nav-text);
}
html[data-staff-theme="on"] .sidebar .nav-link[data-current] .icon,
html[data-staff-theme="on"] .sidebar .nav-link:hover .icon,
html[data-staff-theme="on"] .sidebar .nav-link:hover:not([data-current]),
html[data-staff-theme="on"] .sidebar .side-account-copy strong {
  color: var(--nav-text);
}
html[data-staff-theme="on"] .sidebar .nav-link[data-current]::after { background: var(--nav-text); }
html[data-staff-theme="on"] .pf-editor-section,
html[data-staff-theme="on"] .pf-placement-panel,
html[data-staff-theme="on"] .pf-center-editor,
html[data-staff-theme="on"] .form-stack .assign-person {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
html[data-staff-theme="on"] .pf-placement-panel > h4,
html[data-staff-theme="on"] .pf-center-editor-head h4,
html[data-staff-theme="on"] .pf-center-editor > label,
html[data-staff-theme="on"] .pf-placement-control > span { color: var(--ink); }
html[data-staff-theme="on"] .pf-placement-panel > p,
html[data-staff-theme="on"] .pf-center-editor-head p { color: var(--muted); }
html[data-staff-theme="on"] .pf-placement-control output,
html[data-staff-theme="on"] .pf-editor-step { color: var(--primary); }
html[data-staff-theme="on"] .pf-editor-step { background: var(--blue-soft); border-color: var(--line); }
html[data-staff-theme="on"] .pf-zoom-preset { background: var(--surface-raised); color: var(--ink); border-color: var(--line); }
html[data-staff-theme="on"] .pf-zoom-preset[aria-pressed="true"] { background: var(--primary); color: var(--text-light); }
html[data-staff-theme="on"] .pf-center-editor input,
html[data-staff-theme="on"] .pf-theme-color input { accent-color: var(--primary); }
html[data-staff-theme="on"] .pf-editor-section .form-stack input:not([type="range"]):not([type="file"]),
html[data-staff-theme="on"] .pf-editor-section .form-stack textarea {
  background: var(--surface-raised); color: var(--ink); border-color: var(--line);
}
html[data-staff-theme="on"] .pf-cta { background: var(--pf-action, #081b39); color: var(--pf-action-ink, #FFFFFF); }
/* Scoped portfolio variables control the stage. Peer navigation temporarily themes the entire portal. */
.pf-center-word { color: var(--pf-signature, #FFFFFF); }
.pf-featured { min-height: 0; }
/* Palette studio: spacious groups, scannable controls and a mobile-friendly grid. */
.pf-theme-section { min-width: 0; display: grid; gap: 18px; }
.pf-theme-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; flex-wrap: wrap; min-width: 0; }
.pf-theme-heading-copy { min-width: 0; flex: 1 1 260px; }
.pf-theme-kicker { display: inline-block; color: var(--primary); font-size: .68rem; font-weight: 800; letter-spacing: .12em; margin-bottom: 6px; }
.pf-theme-heading h3 { color: var(--ink); font-size: clamp(1.06rem, 1.5vw, 1.3rem); font-weight: 820; line-height: 1.3; }
.pf-theme-heading p { color: var(--muted); font-size: .8rem; line-height: 1.6; margin-top: 7px; max-width: 68ch; }
.pf-theme-count { flex: 0 0 auto; padding: 8px 11px; background: var(--blue-soft); border: 1px solid var(--line); border-radius: 100px; color: var(--primary); font-size: .72rem; font-weight: 760; }
.pf-theme-section form { display: grid; gap: 18px; min-width: 0; }
.pf-theme-preset-panel { min-width: 0; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); padding: clamp(13px, 2cqw, 19px); }
.pf-theme-preset-heading { display: flex; flex-wrap: wrap; gap: 5px 14px; align-items: baseline; margin-bottom: 13px; }
.pf-theme-preset-heading strong { font-size: .87rem; color: var(--ink); }
.pf-theme-preset-heading small { font-size: .75rem; color: var(--muted); }
.pf-theme-presets { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.pf-theme-preset { display: flex; min-width: 0; min-height: 62px; align-items: center; gap: 10px; text-align: left; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-raised); color: var(--ink); font-weight: 730; font-size: .78rem; transition: border-color .16s ease, box-shadow .16s ease; }
.pf-theme-preset:hover { border-color: var(--primary); }
.pf-theme-preset[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); background: var(--blue-soft); }
.pf-theme-preset-swatch { flex: 0 0 38px; width: 38px; height: 38px; border: 2px solid color-mix(in srgb, var(--ink) 9%, transparent); border-radius: 12px; background: linear-gradient(125deg,var(--preset-first) 0 36%,var(--preset-second) 37% 68%,var(--preset-third) 69%); }
.pf-theme-preset-check { display: grid; place-items: center; margin-left: auto; color: var(--primary); opacity: 0; }
.pf-theme-preset[aria-pressed="true"] .pf-theme-preset-check { opacity: 1; }
.pf-theme-preset-check .icon { width: 17px; height: 17px; }
.pf-theme-grid { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
.pf-theme-group { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--surface-raised); border-radius: 18px; box-shadow: 0 3px 12px color-mix(in srgb,var(--ink) 3%, transparent); }
.pf-theme-group[open] { border-color: color-mix(in srgb,var(--primary) 30%,var(--line)); }
.pf-theme-group summary { display: flex; min-width: 0; align-items: center; gap: 13px; min-height: 76px; padding: 13px clamp(14px, 2cqw, 21px); cursor: pointer; list-style: none; color: var(--ink); }
.pf-theme-group summary::-webkit-details-marker { display: none; }
.pf-theme-group-symbol { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: var(--blue-soft); color: var(--primary); }
.pf-theme-group-symbol .icon { width: 20px; height: 20px; }
.pf-theme-group-title { display: grid; gap: 4px; min-width: 0; flex: 1 1 auto; }
.pf-theme-group-title strong { color: var(--ink); font-size: .88rem; line-height: 1.3; }
.pf-theme-group-title small { color: var(--muted); font-weight: 540; font-size: .72rem; }
.pf-theme-group-swatches { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.pf-theme-group-swatches i { display: block; width: 16px; height: 24px; border: 1px solid color-mix(in srgb,var(--ink) 14%,transparent); border-radius: 5px; }
.pf-theme-group-chevron { color: var(--muted); transition: transform .16s ease; }
.pf-theme-group-chevron .icon { width: 17px; height: 17px; }
.pf-theme-group[open] .pf-theme-group-chevron { transform: rotate(90deg); }
.pf-theme-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 0 clamp(14px, 2cqw, 21px) clamp(14px, 2cqw, 21px); }
.pf-theme-color { display: flex; min-width: 0; min-height: 58px; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 13px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; }
.pf-theme-color-name { flex: 1 1 auto; min-width: 0; color: var(--ink); font-size: .78rem; font-weight: 690; line-height: 1.35; overflow-wrap: anywhere; }
.pf-color-inputs { display: inline-flex; flex: 0 0 auto; gap: 7px; align-items: center; min-width: 0; }
.pf-theme-color input[type="color"] { flex: 0 0 42px; width: 42px; height: 42px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-raised); cursor: pointer; }
.pf-theme-color .pf-color-hex { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; width: 92px; max-width: 92px; box-sizing: border-box; padding: 10px 7px; min-height: 40px; font-size: .76rem; text-transform: uppercase; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.pf-theme-color .pf-color-hex[aria-invalid="true"] { outline: 2px solid var(--red, #D34545); outline-offset: 1px; }
.pf-theme-notice { padding: 13px 15px; margin: 0; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: .78rem; line-height: 1.55; }
.pf-theme-notice[data-warning="true"] { border-color: color-mix(in srgb,var(--red,#D34545) 45%,var(--line)); color: var(--red, #D34545); }
.pf-theme-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; padding-top: 5px; }
@container pf-account-workspace (max-width: 920px) {
  .pf-theme-presets { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pf-theme-fields { grid-template-columns: minmax(0,1fr); }
}
@container pf-account-workspace (max-width: 450px) {
  .pf-theme-presets { gap: 8px; }
  .pf-theme-preset { padding: 8px; gap: 7px; min-height: 57px; font-size: .72rem; }
  .pf-theme-preset-swatch { flex-basis: 30px; width: 30px; height: 34px; border-radius: 9px; }
  .pf-theme-group summary { gap: 9px; padding-inline: 12px; }
  .pf-theme-group-symbol { width: 33px; height: 33px; flex-basis: 33px; }
  .pf-theme-group-swatches i { width: 11px; height: 19px; }
  .pf-theme-color { flex-wrap: wrap; }
  .pf-theme-color-name { flex: 1 1 100%; }
  .pf-color-inputs { width: 100%; }
  .pf-theme-color .pf-color-hex { flex: 1 1 auto; max-width: none; }
  .pf-theme-actions .btn { flex: 1 1 100%; }
}

/* Portfolio CTA honors the viewed staff palette regardless of the viewer portal. */
.pf-shell .pf-cta { background: var(--pf-action, #081b39); color: var(--pf-action-ink, #FFFFFF); border-color: color-mix(in srgb, var(--pf-action, #081b39) 80%, transparent); }
.pf-shell .pf-cta:hover { background: color-mix(in srgb, var(--pf-action, #081b39) 82%, #000000); }

/* Custom foreground/background shared by staff forms and non-status widgets. */
html[data-staff-theme="on"] input:not([type="color"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]),
html[data-staff-theme="on"] select,
html[data-staff-theme="on"] textarea { background: var(--surface-raised); color: var(--ink); border-color: var(--line); }
html[data-staff-theme="on"] input::placeholder,html[data-staff-theme="on"] textarea::placeholder { color: var(--muted); opacity: .9; }
html[data-staff-theme="on"] .page-date, html[data-staff-theme="on"] .server-time { background: var(--surface); border-color: var(--border); color: var(--muted); }
html[data-staff-theme="on"] .btn-primary { color: var(--text-light); }
html[data-staff-theme="on"] .pf-featured { background: var(--pf-card); color: var(--pf-card-ink); }

/* ========================================================================== */
/* v2.1.14 — Separate Account / Portfolio Studio / Website Theme workspaces.  */
/* ========================================================================== */
.personalization-guide, .peer-theme-banner {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface-raised); color: var(--muted); font-size: .82rem; line-height: 1.55;
}
.personalization-guide > .icon, .peer-theme-banner > .icon { flex: 0 0 20px; color: var(--primary); }
.personalization-guide > span, .peer-theme-banner > span { flex: 1; min-width: 0; }
.personalization-guide strong, .peer-theme-banner strong { color: var(--ink); }
.personalization-guide .btn { flex: 0 0 auto; }
.personalization-shortcuts { display: flex; flex-wrap: wrap; gap: 7px; margin-left: auto; }
.portfolio-workspace .pf-editor-center { grid-column: 1 / -1; }
.portfolio-workspace .pf-editor-center .pf-center-editor { margin-top: 0; border: 0; background: transparent; padding: 0; }
.portfolio-workspace .pf-editor-center .pf-center-controls { grid-template-columns: repeat(3,minmax(0,1fr)); }
.portfolio-workspace .pf-editor { scroll-margin-top: 96px; }
.portfolio-workspace .pf-editor-grid { align-items: start; }
.account-workspace .personalization-guide { margin-bottom: 0; }
.appearance-intro {
  display: flex; justify-content: space-between; align-items: center; gap: 22px;
  min-width: 0; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line);
  border-radius: 22px; background: linear-gradient(135deg,var(--surface-raised),var(--surface));
}
.appearance-kicker { display: inline-block; color: var(--primary); letter-spacing: .12em; font-weight: 800; font-size: .66rem; }
.appearance-intro h2 { font-size: clamp(1.33rem, 2.8vw, 1.9rem); color: var(--ink); margin: 5px 0 9px; }
.appearance-intro p { color: var(--muted); font-size: .84rem; line-height: 1.65; max-width: 75ch; }
.appearance-intro-mark { display: grid; place-items: center; flex: 0 0 70px; width: 70px; height: 70px; border: 1px solid var(--line); border-radius: 22px; background: var(--blue-soft); color: var(--primary); }
.appearance-intro-mark .icon { width: 34px; height: 34px; }
.appearance-preview-panel { border: 1px solid var(--line); border-radius: 22px; padding: clamp(15px,2vw,24px); background: var(--surface-raised); min-width: 0; }
.appearance-preview-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.appearance-preview-head h2, .appearance-portfolio-details h2 { font-size: 1.05rem; color: var(--ink); line-height: 1.4; }
.appearance-preview-head p, .appearance-portfolio-details p { color: var(--muted); font-size: .8rem; margin-top: 5px; }
.appearance-live { display: flex; align-items: center; gap: 7px; font-weight: 650; font-size: .74rem; border: 1px solid var(--line); border-radius: 30px; color: var(--primary); padding: 6px 10px; background: var(--blue-soft); }
.appearance-live .icon { width: 16px; height: 16px; }
.appearance-mock { display: grid; grid-template-columns: minmax(125px, .27fr) minmax(0,1fr); min-height: 238px; width: 100%; border-radius: 15px; border: 1px solid var(--line); overflow: hidden; background: var(--background); }
.appearance-mock-sidebar { display: flex; flex-direction: column; gap: 8px; padding: 17px 13px; background: var(--sidebar-gradient); color: var(--nav-text); }
.appearance-mock-logo { font-size: .9rem; font-weight: 860; letter-spacing: .07em; margin-bottom: 13px; }
.appearance-mock-nav { display: flex; align-items: center; gap: 9px; font-size: .77rem; padding: 7px 8px; border-radius: 8px; }
.appearance-mock-nav .icon { width: 15px; height: 15px; }
.appearance-mock-nav.is-current { background: var(--nav-active); font-weight: 750; }
.appearance-mock-main { min-width: 0; padding: 11px 14px; display: flex; flex-direction: column; gap: 12px; background: var(--page); }
.appearance-mock-top { padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px; display: flex; justify-content: space-between; color: var(--ink); background: var(--surface-raised); font-size: .77rem; font-weight: 650; }
.appearance-mock-top span { color: var(--accent); }
.appearance-mock-body { display: grid; gap: 7px; background: var(--surface-raised); padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.appearance-mock-body small { font-size: .57rem; color: var(--muted); letter-spacing: .07em; }
.appearance-mock-body strong { font-size: .85rem; color: var(--ink); }
.appearance-mock-stats { display: flex; justify-content: space-between; font-size: .73rem; color: var(--muted); }
.appearance-mock-stats b { color: var(--primary); }
.appearance-mock-track { background: var(--surface); height: 7px; border-radius: 8px; overflow: hidden; }
.appearance-mock-track span { display: block; height: 100%; width: 82%; border-radius: inherit; background: var(--primary); }
.appearance-mock-stage { display: grid; place-items: center; min-height: 40px; padding: 7px; border-radius: 9px; background: linear-gradient(120deg,#265596,#122D61); color: white; font-size: .75rem; font-weight: 700; text-align: center; }
.appearance-settings { min-width: 0; }
.appearance-settings .panel-body { padding: clamp(15px,2vw,24px); }
.appearance-portfolio-details { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; padding: 5px 2px 0; }
.peer-theme-banner { margin-bottom: 0; }
html[data-theme-context="peer"] .peer-theme-banner { background: var(--blue-soft); border-color: var(--accent); }
html[data-staff-theme="on"] .slot-card,
html[data-staff-theme="on"] .task-card,
html[data-staff-theme="on"] .team-card { background: var(--surface-raised); border-color: var(--line); color: var(--ink); }
html[data-staff-theme="on"] .side-account-copy small { color: var(--nav-muted); }
@container pf-account-workspace (max-width: 900px) {
  .portfolio-workspace .pf-editor-center .pf-center-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@container pf-account-workspace (max-width: 530px) {
  .portfolio-workspace .pf-editor-center .pf-center-controls { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .personalization-guide { align-items: flex-start; flex-wrap: wrap; }
  .personalization-shortcuts { margin-left: 32px; }
  .appearance-intro-mark { display: none; }
  .appearance-mock { grid-template-columns: minmax(95px,.3fr) minmax(0,1fr); }
  .appearance-mock-sidebar { padding: 12px 7px; }
  .appearance-mock-nav { font-size: .64rem; padding: 7px 4px; gap: 5px; }
  .appearance-mock-nav .icon { width: 12px; }
  .appearance-mock-main { padding: 9px; }
}
