:root {
  --bg: #f5f6f8;
  --text: #202027;
  --muted: #6d707a;
  --line: rgba(32, 32, 39, 0.13);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-bg: rgba(255, 255, 255, 0.18);
  --glass-bg-strong: rgba(255, 255, 255, 0.32);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-highlight: rgba(255, 255, 255, 0.75);
  --glass-text: #1a1a1f;
  --glass-text-on-primary: #ffffff;
  --glass-grad-primary: linear-gradient(135deg, #ff7a3d 0%, #ff4d4d 55%, #ff8a6b 100%);
  --glass-grad-info: linear-gradient(135deg, #6fb3ff 0%, #2f6dff 55%, #6aa9ff 100%);
  --glass-halo:
    0 6px 24px -6px rgba(255, 120, 80, 0.35),
    0 10px 40px -10px rgba(120, 160, 255, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.08);
  --glass-halo-primary:
    0 8px 28px -6px rgba(255, 90, 50, 0.55),
    0 14px 50px -10px rgba(255, 140, 90, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.12);
  --dark: #202027;
  --red: #c75245;
  --red-soft: #ffe3df;
  --office: #5dac79;
  --office-deep: #367c55;
  --office-rgb: 93, 172, 121;
  --remote: #536cff;
  --remote-deep: #2536bd;
  --remote-rgb: 83, 108, 255;
  --vacation: #d69a38;
  --vacation-deep: #8f5e16;
  --vacation-rgb: 214, 154, 56;
  --sick: #c85b4f;
  --sick-deep: #8f2e28;
  --sick-rgb: 200, 91, 79;
  --approved: #242329;
  --approved-rgb: 36, 35, 41;
  --shadow: 0 24px 80px rgba(25, 26, 32, 0.11);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Arial, Tahoma, Verdana, sans-serif;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 202, 180, 0.20), transparent 25rem),
    radial-gradient(circle at 78% 6%, rgba(255, 131, 93, 0.16), transparent 24rem),
    radial-gradient(circle at 88% 22%, rgba(67, 16, 25, 0.58), transparent 28rem),
    radial-gradient(circle at 46% 88%, rgba(83, 108, 255, 0.10), transparent 30rem),
    linear-gradient(135deg, #6b1e29 0%, #8c3440 42%, #54202c 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

.shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 18px;
  overflow-x: hidden;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.auth-card {
  width: min(460px, 100%);
  display: grid;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.78), transparent 28%),
    radial-gradient(circle at 90% 100%, rgba(120,160,255,0.14), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.72), rgba(255,255,255,0.30));
}

.auth-card h1 {
  font-size: clamp(34px, 8vw, 48px);
}

.auth-subtitle,
.auth-hint {
  margin-bottom: 4px;
  color: #3f414b;
  font-size: 14px;
  line-height: 1.45;
}

.auth-hint {
  min-height: 20px;
  margin-bottom: 0;
  font-weight: 600;
}

.auth-hint.is-error {
  color: #8f2e28;
}

.auth-submit {
  justify-self: start;
  margin-top: 4px;
}

.auth-submit.liquid-btn--dark {
  --lg-base-top: rgba(118, 40, 54, 0.90);
  --lg-base-bottom: rgba(75, 18, 32, 0.98);
  --lg-color-rgb: 106, 30, 45;
  --lg-color-mid: rgba(129, 45, 60, 0.84);
  --lg-color-deep: rgba(72, 16, 30, 0.98);
  --lg-shadow-color: rgba(86, 20, 34, 0.38);
  --lg-glow: rgba(145, 52, 70, 0.42);
}

.setup-field {
  display: grid;
  gap: 7px;
}

.glass {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.70);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.34)),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.88), transparent 31%),
    radial-gradient(circle at 94% 100%, rgba(199, 82, 69, 0.16), transparent 36%),
    radial-gradient(circle at 70% 12%, rgba(83, 108, 255, 0.09), transparent 34%);
  box-shadow:
    var(--glass-halo),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 0 0 1px rgba(255, 255, 255, 0.30),
    inset 10px 10px 26px rgba(255, 255, 255, 0.24),
    inset -14px -18px 34px rgba(32, 32, 39, 0.14),
    inset 0 -34px 58px rgba(32, 32, 39, 0.12),
    0 28px 86px rgba(38, 12, 18, 0.32),
    0 12px 32px rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(34px) saturate(2.05);
  backdrop-filter: blur(34px) saturate(2.05);
}

.glass::before {
  content: '';
  position: absolute;
  inset: 1px 1px auto;
  height: 42%;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.08) 68%, rgba(255,255,255,0));
  pointer-events: none;
  z-index: 0;
}

.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.24), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(32,32,39,0.10), transparent 34%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.32),
    inset 10px 10px 22px rgba(255,255,255,0.20),
    inset -14px -18px 30px rgba(32,32,39,0.13);
  pointer-events: none;
  z-index: 0;
}

.glass > * {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-content: start;
  gap: 16px;
  min-height: 132px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.topbar,
.toolbar {
  background:
    radial-gradient(circle at 16% 0%, rgba(255,255,255,0.78), transparent 26%),
    radial-gradient(circle at 88% 100%, rgba(120,160,255,0.14), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,0.70), rgba(255,255,255,0.28));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.15;
}

.subtitle,
.panel-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.session-panel {
  display: grid;
  gap: 7px;
  width: min(380px, 100%);
  min-width: 0;
}

.session-panel .small-button {
  justify-self: start;
}

.session-panel label,
.checkline,
.field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.glass-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.92), transparent 28%),
    radial-gradient(circle at 88% 100%, rgba(83,108,255,0.11), transparent 38%),
    radial-gradient(circle at 10% 90%, rgba(199,82,69,0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.32));
  box-shadow:
    0 18px 36px -23px rgba(32,32,39,0.34),
    0 6px 18px -16px rgba(255,255,255,0.34),
    inset 0 1px 0 rgba(255,255,255,0.96),
    inset 0 0 0 1px rgba(255,255,255,0.18),
    inset 0 -16px 28px rgba(32,32,39,0.10),
    inset 0 0 22px rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.82);
  backdrop-filter: blur(24px) saturate(1.82);
  outline: none;
}

.session-panel .glass-input {
  min-height: 44px;
  max-width: 380px;
  font-size: 16px;
  font-weight: 500;
}

.static-user {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.glass-input:focus {
  border-color: rgba(199, 82, 69, 0.48);
  box-shadow:
    0 0 0 4px rgba(199, 82, 69, 0.12),
    0 16px 34px -22px rgba(199, 82, 69, 0.26),
    inset 0 1px 0 rgba(255,255,255,0.96),
    inset 0 -13px 24px rgba(32,32,39,0.08),
    inset 0 0 20px rgba(255,255,255,0.16);
}

.workspace {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  min-width: 0;
}

.toolbar {
  position: sticky;
  top: 166px;
  z-index: 29;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  min-width: 0;
}

.toolbar-main {
  display: grid;
  gap: 10px;
}

.export-tools {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.export-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.export-tools .glass-input {
  min-width: 150px;
  min-height: 42px;
}

.month-switcher,
.status-tools,
.view-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.month-title {
  min-width: 178px;
  text-align: center;
  font-weight: 800;
  color: var(--dark);
}

.department-filter {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 260px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.department-filter::after {
  content: '›';
  position: absolute;
  right: 8px;
  bottom: 7px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 999px;
  color: #202027;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
  transform: rotate(90deg);
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 0%, rgba(255,255,255,0.88), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.34));
  box-shadow:
    0 12px 24px -18px rgba(32,32,39,0.30),
    inset 0 1px 0 rgba(255,255,255,0.94),
    inset 0 -10px 18px rgba(32,32,39,0.08),
    inset 0 0 16px rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  backdrop-filter: blur(18px) saturate(1.7);
}

.department-filter .glass-input {
  padding-right: 58px;
  color: #202027;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  appearance: none;
  -webkit-appearance: none;
}

.auth-user-filter {
  min-width: 0;
}

.icon-button,
.pill,
.tab,
.primary-button {
  min-height: 42px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.glass-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--glass-text);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(1.8);
  box-shadow:
    var(--glass-halo),
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  isolation: isolate;
}

.glass-btn::before {
  content: '';
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 45%;
  border-radius: 9999px 9999px 50% 50% / 9999px 9999px 100% 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

.glass-btn > * {
  position: relative;
  z-index: 1;
}

.glass-btn:hover {
  transform: translateY(-1px);
  background: var(--glass-bg-strong);
}

.glass-btn:active {
  transform: translateY(0) scale(0.98);
}

.glass-btn:focus-visible {
  outline: 2px solid rgba(120, 160, 255, 0.6);
  outline-offset: 3px;
}

.glass-btn--primary {
  color: var(--glass-text-on-primary);
  background: var(--glass-grad-primary);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    var(--glass-halo-primary),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.glass-btn--info {
  color: var(--glass-text-on-primary);
  background: var(--glass-grad-info);
  border-color: rgba(255, 255, 255, 0.45);
}

.glass-btn--icon {
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.glass-btn--icon::before {
  border-radius: 14px 14px 50% 50% / 14px 14px 100% 100%;
}

.icon-button:hover,
.pill:hover,
.tab:hover,
.primary-button:hover {
  transform: translateY(-1px);
}

.glass-button,
.pill,
.tab {
  border: 1px solid rgba(32, 32, 39, 0.12);
  color: var(--dark);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,255,255,0.46)),
    radial-gradient(circle at 28% 10%, rgba(255,255,255,0.90), transparent 28%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -8px 18px rgba(32, 32, 39, 0.06),
    0 10px 24px rgba(32, 32, 39, 0.08);
}

.icon-button {
  width: 46px;
  font-size: 28px;
  line-height: 1;
}

.month-switcher .icon-button {
  width: 56px;
  height: 56px;
  min-height: 56px;
  border-radius: 18px;
  color: #242630;
  background:
    radial-gradient(circle at 30% 0%, rgba(255,255,255,0.94), transparent 30%),
    radial-gradient(circle at 84% 100%, rgba(83,108,255,0.12), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.34));
  box-shadow:
    0 18px 36px -22px rgba(32,32,39,0.32),
    inset 0 1px 0 rgba(255,255,255,0.98),
    inset 0 -15px 26px rgba(32,32,39,0.08),
    inset 0 0 20px rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.75);
  backdrop-filter: blur(22px) saturate(1.75);
}

.month-switcher .icon-button::before {
  inset: 1px 6px auto;
  height: 48%;
  border-radius: 16px 16px 42% 42% / 16px 16px 100% 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.08) 72%, transparent);
}

.month-switcher .icon-button:hover {
  border-color: rgba(255,255,255,0.86);
  box-shadow:
    0 20px 40px -22px rgba(32,32,39,0.36),
    0 8px 22px -18px rgba(83,108,255,0.34),
    inset 0 1px 0 rgba(255,255,255,0.98),
    inset 0 -15px 26px rgba(32,32,39,0.09),
    inset 0 0 22px rgba(255,255,255,0.20);
}

.pill,
.tab {
  padding: 0.75rem 1.25rem;
  font-weight: 700;
}

.tab.active,
.primary-button {
  color: #fff;
  background: var(--glass-grad-primary);
  box-shadow:
    var(--glass-halo-primary),
    inset 0 1px 0 rgba(255,255,255,0.62),
    inset 0 -14px 24px rgba(62, 0, 0, 0.18);
}

.pill {
  --pill-rgb: 32, 32, 39;
  --pill-color: #202027;
  --pill-deep: #111116;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(var(--pill-rgb), 0.28);
  color: var(--pill-deep);
  background:
    radial-gradient(circle at 28% 10%, rgba(255, 255, 255, 0.88), transparent 24%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(var(--pill-rgb), 0.16)),
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.38));
}

.pill[data-tool="office"] {
  --pill-rgb: var(--office-rgb);
  --pill-color: var(--office);
  --pill-deep: var(--office-deep);
}

.pill[data-tool="remote"] {
  --pill-rgb: var(--remote-rgb);
  --pill-color: var(--remote);
  --pill-deep: var(--remote-deep);
  color: #2636a5;
  border-color: rgba(var(--remote-rgb), 0.36);
  background:
    radial-gradient(circle at 28% 8%, rgba(255, 255, 255, 0.92), transparent 24%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.80), rgba(var(--remote-rgb), 0.24)),
    linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.42));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.94),
    inset 0 -10px 20px rgba(var(--remote-rgb), 0.10),
    0 10px 26px rgba(var(--remote-rgb), 0.18);
}

.pill[data-tool="vacation"] {
  --pill-rgb: var(--vacation-rgb);
  --pill-color: var(--vacation);
  --pill-deep: var(--vacation-deep);
}

.pill[data-tool="sick"] {
  --pill-rgb: var(--sick-rgb);
  --pill-color: var(--sick);
  --pill-deep: var(--sick-deep);
}

.pill[data-tool="approved"] {
  --pill-rgb: var(--approved-rgb);
  --pill-color: var(--approved);
  --pill-deep: #101015;
  color: #fff;
}

.pill[data-tool="approved"]:not(.active) {
  border-color: rgba(var(--approved-rgb), 0.42);
  background:
    radial-gradient(circle at 30% 4%, rgba(255,255,255,0.36), transparent 26%),
    linear-gradient(155deg, #50515a, var(--approved));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.38),
    inset 0 -12px 22px rgba(0,0,0,0.22),
    0 10px 24px rgba(32,32,39,0.14);
}

.pill[data-tool="unapprove"],
.pill[data-tool="clear"] {
  --pill-rgb: 166, 170, 179;
  --pill-color: #eef0f4;
  --pill-deep: #606571;
  color: #606571;
  background:
    radial-gradient(circle at 28% 10%, rgba(255,255,255,0.92), transparent 24%),
    linear-gradient(160deg, rgba(255,255,255,0.86), rgba(166,170,179,0.20));
}

.pill.active {
  color: #fff;
  border-color: rgba(var(--pill-rgb), 0.92);
  background:
    radial-gradient(circle at 24% 0%, rgba(255,255,255,0.84), transparent 28%),
    radial-gradient(circle at 78% 100%, rgba(255,255,255,0.16), transparent 36%),
    linear-gradient(155deg, rgba(var(--pill-rgb), 0.72), rgba(var(--pill-rgb), 0.98) 46%, var(--pill-deep));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.62),
    inset 0 -16px 26px rgba(34, 12, 0, 0.18),
    0 0 0 4px rgba(var(--pill-rgb), 0.16),
    0 0 24px rgba(var(--pill-rgb), 0.46),
    0 16px 34px rgba(var(--pill-rgb), 0.24);
  text-shadow: 0 1px 1px rgba(0,0,0,0.18);
}

.pill.active::before,
.tab.active::before,
.primary-button::before,
.small-button::before {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0) 100%);
}

.pill.dark {
  color: #fff;
}

.pill.ghost {
  color: #606571;
}

/* Liquid glass buttons: reusable capsule component for status actions. */
.liquid-btn {
  --lg-height: 42px;
  --lg-radius: 999px;
  --lg-font-size: 15px;
  --lg-text: #353944;
  --lg-text-selected: #ffffff;
  --lg-rim-light: hsla(0, 0%, 100%, 0.68);
  --lg-border: var(--lg-rim-light);
  --lg-base-top: rgba(255, 255, 255, 0.66);
  --lg-base-bottom: rgba(255, 255, 255, 0.24);
  --lg-glass-tint: rgba(255, 255, 255, 0.08);
  --lg-color-rgb: 92, 99, 115;
  --lg-color-soft: rgba(var(--lg-color-rgb), 0.22);
  --lg-color-mid: rgba(var(--lg-color-rgb), 0.46);
  --lg-color-deep: rgba(var(--lg-color-rgb), 0.84);
  --lg-depth: rgba(28, 31, 42, 0.18);
  --lg-shadow-color: rgba(35, 39, 50, 0.18);
  --lg-glow: rgba(var(--lg-color-rgb), 0.32);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--lg-height);
  padding: 0 22px;
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius);
  color: var(--lg-text);
  font-size: var(--lg-font-size);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  isolation: isolate;
  -webkit-backdrop-filter: blur(22px) saturate(1.55);
  backdrop-filter: blur(22px) saturate(1.55);
  /* glass base: several translucent layers create the capsule body. */
  background:
    radial-gradient(circle at 28% 0%, rgba(255,255,255,0.92), transparent 26%),
    radial-gradient(circle at 82% 100%, rgba(var(--lg-color-rgb), 0.32), transparent 40%),
    radial-gradient(circle at 12% 86%, rgba(var(--lg-color-rgb), 0.14), transparent 38%),
    linear-gradient(180deg, var(--lg-base-top), var(--lg-base-bottom)),
    linear-gradient(135deg, var(--lg-glass-tint), var(--lg-color-soft));
  /* external shadow: soft lift without heavy black shadow. */
  box-shadow:
    0 16px 34px -18px var(--lg-shadow-color),
    0 10px 24px -15px rgba(var(--lg-color-rgb), 0.46),
    inset 0 1px 0 rgba(255,255,255,0.92),
    inset 0 -13px 22px var(--lg-depth),
    inset 0 0 18px rgba(255,255,255,0.14);
  transition:
    transform 0.18s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.18s ease,
    background 0.22s ease,
    opacity 0.18s ease;
}

/* top highlight: glossy reflection on the upper edge. */
.liquid-btn::before {
  content: '';
  position: absolute;
  inset: 1px 8px auto;
  height: 48%;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.15) 68%, transparent);
  opacity: 0.94;
  pointer-events: none;
  z-index: 0;
}

/* internal depth: bottom shade and subtle inner glow. */
.liquid-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 100%, rgba(var(--lg-color-rgb), 0.34), transparent 46%),
    linear-gradient(180deg, transparent 42%, rgba(20, 24, 34, 0.13));
  box-shadow:
    inset 0 -1px 0 rgba(20,24,34,0.16),
    inset 0 0 22px rgba(255,255,255,0.18);
  opacity: 0.90;
  pointer-events: none;
  z-index: 0;
}

.liquid-btn__label {
  position: relative;
  z-index: 1;
}

.liquid-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.82);
  box-shadow:
    0 19px 38px -18px var(--lg-shadow-color),
    0 12px 28px -14px rgba(var(--lg-color-rgb), 0.54),
    inset 0 1px 0 rgba(255,255,255,0.94),
    inset 0 -13px 22px var(--lg-depth),
    inset 0 0 20px rgba(255,255,255,0.16);
}

.liquid-btn:active {
  transform: translateY(0) scale(0.985);
  box-shadow:
    0 10px 24px -18px var(--lg-shadow-color),
    inset 0 1px 0 rgba(255,255,255,0.72),
    inset 0 8px 18px rgba(24, 28, 38, 0.07),
    inset 0 -8px 16px var(--lg-depth);
}

.liquid-btn:focus-visible {
  outline: 2px solid rgba(var(--lg-color-rgb), 0.38);
  outline-offset: 3px;
}

.liquid-btn.active,
.liquid-btn.selected,
.liquid-btn.is-selected,
.liquid-btn[aria-pressed="true"] {
  color: var(--lg-text-selected);
  border-color: rgba(255,255,255,0.72);
  background:
    radial-gradient(circle at 27% 0%, rgba(255,255,255,0.90), transparent 28%),
    radial-gradient(circle at 78% 92%, rgba(255,255,255,0.22), transparent 34%),
    radial-gradient(circle at 22% 88%, rgba(var(--lg-color-rgb), 0.36), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.34), transparent 34%),
    linear-gradient(155deg, var(--lg-color-mid), var(--lg-color-deep) 52%, rgba(var(--lg-color-rgb), 0.98));
  /* active glow: colored light under glass, not a flat fill. */
  box-shadow:
    0 0 0 1px rgba(var(--lg-color-rgb), 0.24),
    0 0 30px -4px var(--lg-glow),
    0 18px 38px -17px rgba(var(--lg-color-rgb), 0.68),
    inset 0 1px 0 rgba(255,255,255,0.78),
    inset 0 -18px 28px rgba(16, 18, 26, 0.24),
    inset 0 0 24px rgba(255,255,255,0.16);
  text-shadow: 0 1px 1px rgba(20, 24, 34, 0.22);
}

.liquid-btn:disabled,
.liquid-btn.disabled,
.liquid-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow:
    0 8px 18px -16px rgba(35,39,50,0.16),
    inset 0 1px 0 rgba(255,255,255,0.68),
    inset 0 -8px 14px rgba(35,39,50,0.08);
}

.liquid-btn--neutral {
  --lg-text: #5e6470;
  --lg-color-rgb: 138, 145, 158;
  --lg-color-soft: rgba(138, 145, 158, 0.22);
  --lg-color-mid: rgba(138, 145, 158, 0.44);
  --lg-color-deep: rgba(94, 101, 115, 0.82);
  --lg-shadow-color: rgba(74, 82, 98, 0.18);
  --lg-glow: rgba(138, 145, 158, 0.30);
}

.liquid-btn--blue {
  --lg-text: #2538a8;
  --lg-color-rgb: 73, 101, 255;
  --lg-color-soft: rgba(73, 101, 255, 0.24);
  --lg-color-mid: rgba(73, 101, 255, 0.58);
  --lg-color-deep: rgba(34, 52, 184, 0.92);
  --lg-shadow-color: rgba(73, 101, 255, 0.26);
  --lg-glow: rgba(73, 101, 255, 0.52);
}

.liquid-btn--green {
  --lg-text: #326f50;
  --lg-color-rgb: 79, 168, 116;
  --lg-color-soft: rgba(79, 168, 116, 0.25);
  --lg-color-mid: rgba(79, 168, 116, 0.56);
  --lg-color-deep: rgba(47, 125, 82, 0.88);
  --lg-shadow-color: rgba(79, 168, 116, 0.24);
  --lg-glow: rgba(79, 168, 116, 0.48);
}

.liquid-btn--amber {
  --lg-text: #8a5a16;
  --lg-color-rgb: 215, 156, 59;
  --lg-color-soft: rgba(215, 156, 59, 0.26);
  --lg-color-mid: rgba(215, 156, 59, 0.56);
  --lg-color-deep: rgba(150, 93, 23, 0.88);
  --lg-shadow-color: rgba(215, 156, 59, 0.24);
  --lg-glow: rgba(215, 156, 59, 0.46);
}

.liquid-btn--red {
  --lg-text: #9d362f;
  --lg-color-rgb: 204, 86, 76;
  --lg-color-soft: rgba(204, 86, 76, 0.24);
  --lg-color-mid: rgba(204, 86, 76, 0.54);
  --lg-color-deep: rgba(145, 48, 42, 0.88);
  --lg-shadow-color: rgba(204, 86, 76, 0.24);
  --lg-glow: rgba(204, 86, 76, 0.46);
}

.liquid-btn--dark {
  --lg-text: #ffffff;
  --lg-text-selected: #ffffff;
  --lg-border: rgba(255,255,255,0.36);
  --lg-base-top: rgba(96, 98, 108, 0.82);
  --lg-base-bottom: rgba(23, 24, 30, 0.94);
  --lg-glass-tint: rgba(255,255,255,0.10);
  --lg-color-rgb: 42, 43, 50;
  --lg-color-soft: rgba(255,255,255,0.12);
  --lg-color-mid: rgba(76, 79, 90, 0.84);
  --lg-color-deep: rgba(23, 24, 30, 0.96);
  --lg-depth: rgba(0, 0, 0, 0.26);
  --lg-shadow-color: rgba(33, 34, 40, 0.30);
  --lg-glow: rgba(76, 80, 94, 0.38);
  text-shadow: 0 1px 1px rgba(0,0,0,0.20);
}

.toolbar-note {
  grid-column: 1 / -1;
  margin: 2px 2px 0;
  color: #3f414b;
  font-size: 13px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
}

.panel {
  min-height: 460px;
  padding: 18px;
  border-radius: var(--radius-lg);
  min-width: 0;
}

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

.reminder-card {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(199,82,69,0.24);
  border-radius: 20px;
  color: #7a271f;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,0.82), transparent 26%),
    linear-gradient(145deg, rgba(255,237,230,0.88), rgba(255,255,255,0.54));
  box-shadow: 0 12px 30px rgba(199,82,69,0.12);
}

.reminder-card strong {
  font-size: 15px;
}

.reminder-card span {
  color: #7b6260;
  font-size: 13px;
}

.panel-head.compact {
  margin-bottom: 10px;
}

.checkline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.74);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(245,226,231,0.86), rgba(214,181,191,0.72));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.88),
    inset 0 -24px 42px rgba(70,24,37,0.10),
    0 18px 46px rgba(55,18,30,0.14);
}

.schedule-table,
.admin-table {
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.schedule-table {
  width: max-content;
  border-spacing: 6px;
  padding: 6px;
}

.admin-table {
  width: 100%;
}

.schedule-table th,
.schedule-table td,
.admin-table th,
.admin-table td {
  border-right: 1px solid rgba(32,32,39,0.10);
  border-bottom: 1px solid rgba(32,32,39,0.10);
}

.schedule-table th,
.schedule-table td {
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 15px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.74),
    0 6px 16px rgba(32,32,39,0.045);
}

.schedule-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  min-width: 58px;
  padding: 8px 4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.68));
  color: var(--muted);
}

.schedule-table th.rest-day {
  color: #6d5f66;
  background:
    linear-gradient(180deg, rgba(232,218,224,0.96), rgba(203,181,191,0.80));
}

.schedule-table th.holiday {
  color: #78382f;
}

.schedule-table .person-head,
.schedule-table .person-cell {
  position: sticky;
  left: 0;
  z-index: 4;
  min-width: 190px;
  max-width: 190px;
  text-align: left;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(255,255,255,0.70));
}

.schedule-table .person-cell {
  z-index: 2;
  padding: 8px 10px;
}

.person-name {
  display: inline;
  padding: 0;
  color: #22242b;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.person-name:hover {
  color: var(--red);
}

.manager-name {
  color: #1f3f7a;
}

.person-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.day-cell {
  position: relative;
  min-width: 58px;
  height: 44px;
  padding: 4px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255,244,247,0.76), rgba(236,218,225,0.48));
  cursor: pointer;
  overflow: hidden;
}

.day-cell:not(.disabled):hover {
  border-color: rgba(32,32,39,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.86),
    0 8px 20px rgba(32,32,39,0.09);
}

.day-cell.locked,
.day-cell.disabled {
  cursor: not-allowed;
}

.day-cell.disabled {
  opacity: 0.62;
}

.day-cell.rest-day {
  background:
    linear-gradient(145deg, rgba(213,197,206,0.82), rgba(185,160,173,0.68));
  border-color: rgba(255,255,255,0.48);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.46),
    inset 0 -16px 30px rgba(76,38,52,0.10);
}

.day-cell.holiday {
  background:
    linear-gradient(145deg, rgba(219,190,194,0.86), rgba(176,129,142,0.70));
}

.status-chip {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.48),
    inset 0 -12px 20px rgba(34,12,0,0.16),
    0 8px 16px rgba(32,32,39,0.12);
  overflow: hidden;
}

.department-row td {
  position: sticky;
  left: 0;
  z-index: 5;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.department-row span {
  display: block;
  width: max-content;
  min-width: 190px;
  padding: 8px 12px;
  border: 1px solid rgba(31,63,122,0.16);
  border-radius: 16px;
  color: #1f3f7a;
  background:
    linear-gradient(145deg, rgba(235,241,255,0.88), rgba(255,255,255,0.62));
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-office {
  background:
    radial-gradient(circle at 30% 0%, rgba(255,255,255,0.58), transparent 24%),
    linear-gradient(155deg, #83c998, var(--office) 48%, var(--office-deep));
}

.status-remote {
  background:
    radial-gradient(circle at 30% 0%, rgba(255,255,255,0.56), transparent 24%),
    linear-gradient(155deg, #93a0ef, var(--remote) 48%, var(--remote-deep));
}

.status-vacation {
  color: #352100;
  background:
    radial-gradient(circle at 30% 0%, rgba(255,255,255,0.62), transparent 24%),
    linear-gradient(155deg, #f2c66a, var(--vacation) 50%, var(--vacation-deep));
}

.status-sick {
  background:
    radial-gradient(circle at 30% 0%, rgba(255,255,255,0.56), transparent 24%),
    linear-gradient(155deg, #df8173, var(--sick) 48%, var(--sick-deep));
}

.lock {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,0.50), transparent 24%),
    linear-gradient(155deg, #45464d, var(--approved));
  border: 1px solid rgba(255,255,255,0.52);
  box-shadow: 0 4px 10px rgba(32,32,39,0.22);
  font-size: 10px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.admin-table-wrap {
  max-height: 62vh;
}

.admin-table th,
.admin-table td {
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table select,
.admin-table input {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 10px;
  background: rgba(255,255,255,0.72);
}

.admin-table input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}

.small-button {
  min-height: 36px;
  border-radius: 14px;
  padding: 0 12px;
  color: #fff;
  background: var(--dark);
  cursor: pointer;
}

.small-button.glass-btn {
  padding: 0 14px;
  min-height: 36px;
  border-radius: 14px;
}

.small-button.glass-btn::before {
  border-radius: 14px 14px 50% 50% / 14px 14px 100% 100%;
}

.small-button.glass-btn--primary {
  color: var(--glass-text-on-primary);
  background: var(--glass-grad-primary);
  box-shadow:
    var(--glass-halo-primary),
    inset 0 1px 0 rgba(255,255,255,0.62),
    inset 0 -12px 22px rgba(62, 0, 0, 0.18);
}

.side-card {
  align-self: start;
  padding: 18px;
  border-radius: 24px;
}

.stack {
  display: grid;
  gap: 10px;
}

.admin-create-form {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(32,32,39,0.10);
}

.primary-button {
  padding: 0 18px;
  font-weight: 800;
}

.department-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.department-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 12px;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(420px, calc(100% - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(199,82,69,0.28);
  border-radius: 18px;
  color: #7b251e;
  background:
    radial-gradient(circle at 14% 0%, rgba(255,255,255,0.78), transparent 28%),
    linear-gradient(145deg, rgba(255,237,232,0.96), rgba(255,246,244,0.90));
  box-shadow:
    0 16px 40px rgba(199,82,69,0.16),
    inset 0 1px 0 rgba(255,255,255,0.84);
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(32,32,39,0.22);
  backdrop-filter: blur(10px);
}

.person-modal {
  width: min(440px, 100%);
  padding: 24px;
  border-radius: 28px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #4f535d;
  background: rgba(255,255,255,0.56);
  cursor: pointer;
  pointer-events: auto;
}

.person-modal dl {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.person-modal div {
  display: grid;
  gap: 4px;
}

.person-modal dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.person-modal dd {
  margin: 0;
  color: var(--text);
}

@media (max-width: 980px) {
  .topbar,
  .toolbar,
  .panel-head {
    align-items: stretch;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .schedule-table .person-head,
  .schedule-table .person-cell {
    min-width: 168px;
    max-width: 168px;
  }

  .department-row span {
    min-width: 168px;
  }
}
