@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #132336;
  --muted: #54697f;

  --glass-bg: linear-gradient(140deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.26));
  --glass-bg-strong: linear-gradient(140deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
  --glass-border: rgba(255, 255, 255, 0.84);
  --glass-shadow: 0 12px 24px rgba(12, 29, 48, 0.1);
  --glass-shadow-soft: 0 6px 14px rgba(20, 38, 60, 0.08);
  --glass-inner: inset 0 1px 0 rgba(255, 255, 255, 0.42);

  --accent-start: rgba(55, 122, 182, 0.9);
  --accent-end: rgba(38, 93, 147, 0.88);

  --surface-blue: rgba(212, 232, 255, 0.28);
  --surface-blue-strong: rgba(192, 220, 252, 0.36);
  --border: rgba(104, 137, 178, 0.58);
  --border-strong: rgba(86, 122, 168, 0.72);

  /* Legacy fallbacks for compatibility */
  --brand: #264f78;
  --brand-soft: #dde8f2;
  --warn: #9a6a21;
  --danger: #933f46;
  --bg: #eef3f7;
  --card: #ffffff;
  --line: #cfd8e4;
  --line-soft: #e4ebf3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.52;
  letter-spacing: 0.01em;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(116, 162, 238, 0.08), transparent 40%),
    radial-gradient(circle at 85% 12%, rgba(92, 164, 229, 0.09), transparent 42%),
    radial-gradient(circle at 55% 88%, rgba(86, 168, 232, 0.05), transparent 44%),
    linear-gradient(155deg, #f5f9ff 0%, #edf4ff 56%, #e5f0ff 100%);
  background-attachment: fixed;
}

h1,
h2,
h3,
h4 {
  font-family: "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0.015em;
  margin: 0 0 0.45rem;
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.35rem;
}

h4 {
  font-size: 1.05rem;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.12;
  pointer-events: none;
  animation: drift 12s ease-in-out infinite alternate;
}

.bg-orb-1 {
  width: 340px;
  height: 340px;
  background: #6aa4ff;
  left: -110px;
  top: -80px;
}

.bg-orb-2 {
  width: 300px;
  height: 300px;
  background: #57c6ff;
  right: -100px;
  top: 80px;
}

.shell {
  max-width: 1720px;
  margin: 0 auto;
  padding: 1.6rem 2rem;
}

.glass,
.glass-strong {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: var(--glass-shadow), var(--glass-inner);
  outline: 1px solid rgba(98, 136, 182, 0.2);
  outline-offset: 0;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}

.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(18px) saturate(132%);
  -webkit-backdrop-filter: blur(18px) saturate(132%);
}

.card {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: var(--glass-shadow), var(--glass-inner);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  padding: 1.3rem;
}

.auth-card {
  max-width: 1180px;
  margin: 7vh auto;
  padding: 0;
  overflow: hidden;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 720px;
}

.landing-copy {
  padding: 3.6rem 3.2rem;
  background:
    radial-gradient(circle at top left, rgba(109, 165, 255, 0.2), transparent 28%),
    linear-gradient(180deg, #f4f8fc 0%, #e9f0f7 100%);
  border-right: 1px solid var(--line-soft);
  display: grid;
  align-content: center;
  gap: 1.2rem;
}

.landing-kicker {
  display: inline-flex;
  width: fit-content;
  border: 1px solid #c9d6e4;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #244766;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.landing-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.72;
  color: #4a627b;
  max-width: 28rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.landing-illustration {
  position: relative;
  min-height: 360px;
  margin-top: 0.2rem;
}

.illustration-card {
  border: 1px solid rgba(203, 216, 230, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 48px rgba(34, 53, 73, 0.1);
  backdrop-filter: blur(6px);
}

.illustration-card-main {
  width: min(470px, 100%);
  padding: 1.1rem;
}

.illustration-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}

.illustration-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  background: #edf3fb;
  color: #2f5477;
  font-size: 0.78rem;
  font-weight: 700;
}

.illustration-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2e7d32;
  box-shadow: 0 0 0 6px rgba(46, 125, 50, 0.12);
}

.illustration-grid {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.illustration-bar {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dce7f4 0%, #edf2f8 100%);
}

.illustration-bar-wide {
  width: 84%;
  background: linear-gradient(90deg, #5c7ea5 0%, #8ca8c4 100%);
}

.illustration-bar-soft {
  width: 64%;
}

.illustration-bar-short {
  width: 42%;
}

.illustration-calendar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.cal {
  height: 42px;
  border-radius: 10px;
  background: #edf2f8;
}

.cal.ok {
  background: linear-gradient(180deg, rgba(46, 125, 50, 0.28), rgba(46, 125, 50, 0.12));
}

.cal.warn {
  background: linear-gradient(180deg, rgba(255, 152, 0, 0.3), rgba(255, 152, 0, 0.12));
}

.cal.danger {
  background: linear-gradient(180deg, rgba(154, 61, 61, 0.3), rgba(154, 61, 61, 0.12));
}

.cal.soft {
  background: linear-gradient(180deg, rgba(92, 126, 165, 0.2), rgba(92, 126, 165, 0.08));
}

.illustration-card-float {
  position: absolute;
  padding: 0.85rem 0.9rem;
  width: 210px;
}

.illustration-card-review {
  right: 2.4rem;
  top: 2rem;
}

.illustration-card-status {
  right: 0.6rem;
  bottom: 1.2rem;
}

.mini-title {
  color: #203649;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.mini-line {
  height: 10px;
  width: 72%;
  border-radius: 999px;
  background: #e6edf5;
  margin-bottom: 0.55rem;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.45rem;
}

.mini-row > span:first-child {
  height: 9px;
  flex: 1;
  border-radius: 999px;
  background: #edf2f7;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.mini-badge.ok {
  background: #e3eee5;
  color: #3f6950;
}

.mini-badge.warn {
  background: #f5ead7;
  color: #8c6123;
}

.mini-badge.soft {
  background: #e9eef5;
  color: #4a647e;
}

.status-stack {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.landing-note {
  margin-top: 0.4rem;
  max-width: 28rem;
}

.auth-panel-wrap {
  padding: 2.4rem 2.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  display: grid;
  align-content: center;
}

.auth-panel {
  width: min(460px, 100%);
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  box-shadow: 0 22px 50px rgba(27, 42, 59, 0.1);
}

.auth-panel-head {
  margin-bottom: 1rem;
}

.auth-panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.9rem;
}

.note {
  margin-top: 1rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.8rem;
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
  font-size: 0.94rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 1rem 0.9rem;
  animation: rise 0.5s ease;
  position: relative;
  z-index: 3000;
  overflow: visible;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #fdfefe 100%);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.notif-badge {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  padding: 0 0.35rem;
  align-items: center;
  justify-content: center;
  background: #9a3d3d;
  color: #fff;
  font-size: 0.74rem;
  margin-left: 0.35rem;
}

.decision-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfd8e4;
  background: #f7fafc;
  color: #27435f;
  border-radius: 999px;
  padding: 0.33rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.notification-panel {
  position: fixed;
  top: 78px;
  right: 1.1rem;
  width: min(440px, 92vw);
  max-height: 420px;
  overflow: auto;
  background: linear-gradient(160deg, rgba(10, 18, 32, 0.72), rgba(14, 24, 42, 0.64)) !important;
  border: 1px solid rgba(120, 180, 255, 0.22) !important;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 32px rgba(60, 130, 220, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(32px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
  padding: 0.7rem;
  z-index: 2147483647;
  color: #dce9f6;
}

.notification-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #f0f6ff;
}

.notification-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.notification-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.5rem 0.58rem;
  cursor: pointer;
  color: #d8e6f2;
}

.notification-item:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.13);
}

.notification-item:focus-visible {
  outline: 2px solid #97adc4;
  outline-offset: 2px;
}

.notification-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
}

.notification-type {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #7aadce;
}

.notification-time {
  font-size: 0.78rem;
  color: #7a96ae;
  white-space: nowrap;
}

.notification-text {
  margin-top: 0.2rem;
  color: #cee0f2;
  font-size: 0.9rem;
}

.notification-empty {
  color: #7a96ae;
  font-size: 0.9rem;
  padding: 0.2rem 0;
}

.pulse {
  animation: pulse-glow 0.9s ease;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(55, 93, 134, 0.35);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(55, 93, 134, 0);
  }
}

.tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid rgba(111, 146, 189, 0.56);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 16px rgba(18, 39, 61, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  margin: 1rem 0;
}

.tab-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(155deg, var(--accent-start), var(--accent-end));
  box-shadow: 0 6px 12px rgba(28, 84, 141, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  pointer-events: none;
  z-index: 0;
  will-change: transform, width, height;
  transition: transform 380ms cubic-bezier(0.25, 0.46, 0.45, 0.94), width 380ms cubic-bezier(0.25, 0.46, 0.45, 0.94), height 380ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tab-btn {
  position: relative;
  z-index: 1;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #24384d;
  padding: 0.52rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 220ms ease;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  box-shadow: none;
}

.tab-btn.active {
  color: #f6fbff;
}

.tab-btn.roster-tool-start {
  margin-left: auto;
}

.tab-content {
  min-height: 420px;
  padding: 1.15rem;
  animation: rise 0.45s ease;
}

/* Liquid glass themed overrides */
.auth-panel,
.topbar,
.tab-content,
.table-wrap,
.month-card,
.request-card,
.request-item,
.request-panel,
.decision-history-item,
.decision-history-row,
.decision-history-content,
.request-content,
.edit-popup,
.history-item,
.admin-create-user,
.profile-section-card,
.profile-box,
.profile-push-box,
.profile-notification-item,
.log-box,
.role-option-card-body,
.draft-item {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inner);
  backdrop-filter: blur(26px) saturate(165%);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
}

.landing-copy,
.auth-panel-wrap {
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.weekday-cell,
thead th,
.month-title,
.request-item[open] .request-content,
.request-item[open] .request-summary,
.decision-history-item[open] .decision-history-row {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.22));
}

.profile-push-debug {
  border-left-color: #2a84b8;
  background: linear-gradient(145deg, rgba(218, 242, 255, 0.65), rgba(196, 233, 255, 0.3));
  color: #0f3b57;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6edf6;
    --muted: #afbfce;
    --glass-bg: linear-gradient(150deg, rgba(23, 31, 46, 0.58), rgba(20, 29, 42, 0.36));
    --glass-bg-strong: linear-gradient(150deg, rgba(24, 34, 52, 0.66), rgba(20, 29, 42, 0.44));
    --glass-border: rgba(255, 255, 255, 0.42);
    --glass-shadow: 0 18px 44px rgba(3, 9, 17, 0.45);
    --glass-shadow-soft: 0 10px 22px rgba(3, 9, 17, 0.35);
    --glass-inner: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    --accent-start: rgba(72, 149, 219, 0.92);
    --accent-end: rgba(35, 107, 175, 0.92);
    --border: rgba(174, 196, 223, 0.36);
    --border-strong: rgba(192, 211, 236, 0.5);

    /* Legacy fallbacks */
    --line: rgba(255, 255, 255, 0.2);
    --line-soft: rgba(255, 255, 255, 0.14);
  }

  body {
    background:
      radial-gradient(circle at 12% 10%, rgba(72, 125, 201, 0.34), transparent 32%),
      radial-gradient(circle at 85% 12%, rgba(66, 131, 201, 0.3), transparent 34%),
      radial-gradient(circle at 55% 88%, rgba(50, 160, 204, 0.24), transparent 35%),
      linear-gradient(155deg, #1a2331 0%, #172130 50%, #141d2a 100%);
  }

  .tab-slider {
    background: linear-gradient(155deg, var(--accent-start), var(--accent-end));
    box-shadow: 0 6px 12px rgba(19, 62, 104, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  .landing-copy,
  .auth-panel-wrap,
  .request-item,
  .month-card,
  .notification-item,
  .weekday-cell,
  .month-title,
  .decision-history-item[open] .decision-history-row,
  .request-item[open] .request-content,
  .request-item[open] .request-summary {
    color: var(--ink);
  }

  .topbar,
  .notification-panel,
  .table-wrap,
  .request-panel,
  .profile-section-card,
  .profile-box,
  .profile-push-box,
  .profile-notification-item,
  .log-box,
  .admin-create-user,
  .history-item,
  .subtle,
  .meta-value,
  .history-text,
  .notification-text,
  .summary-name,
  .summary-period,
  .summary-type {
    color: var(--ink);
  }

  input,
  select,
  textarea {
    color: #f1f6fc;
    border-color: rgba(167, 194, 225, 0.5);
  }

  input::placeholder,
  textarea::placeholder {
    color: #afbfce;
  }

  .notification-panel {
    background: linear-gradient(160deg, rgba(8, 15, 28, 0.68), rgba(12, 20, 38, 0.6)) !important;
    border-color: rgba(100, 165, 255, 0.24) !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 36px rgba(50, 120, 210, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  }

  .flatpickr-calendar {
    border-color: rgba(255, 255, 255, 0.24);
    background: linear-gradient(155deg, rgba(26, 38, 54, 0.88), rgba(20, 29, 42, 0.82));
    box-shadow: 0 22px 42px rgba(2, 10, 18, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  .flatpickr-month,
  .flatpickr-current-month,
  .flatpickr-current-month .flatpickr-monthDropdown-months,
  .flatpickr-current-month input.cur-year,
  .flatpickr-weekday,
  .flatpickr-day {
    color: #d8e8f9;
    fill: #d8e8f9;
  }

  .flatpickr-weekdays {
    background: rgba(255, 255, 255, 0.08);
  }

  .flatpickr-day:hover {
    background: rgba(116, 167, 238, 0.22);
    border-color: rgba(123, 174, 243, 0.42);
  }

  .flatpickr-day.today {
    border-color: rgba(136, 188, 255, 0.9);
    color: #e9f4ff;
  }

  .flatpickr-day.inRange {
    background: rgba(111, 155, 219, 0.2);
    border-color: rgba(126, 171, 236, 0.34);
  }

  .flatpickr-day.flatpickr-disabled,
  .flatpickr-day.flatpickr-disabled:hover {
    color: rgba(168, 194, 223, 0.34);
  }
}


.form-stack {
  display: grid;
  gap: 0.7rem;
}

.form-stack label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.date-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: end;
}

.session-label {
  display: block;
  font-size: 0.8rem;
  color: #5f7285;
  margin-bottom: 0.2rem;
}

.session-toggle {
  display: inline-flex;
  border: 1px solid #c7d3e0;
  border-radius: 6px;
  overflow: hidden;
}

.session-btn {
  border: 0;
  border-right: 1px solid #c7d3e0;
  background: #f2f6fa;
  color: #36526e;
  padding: 0.42rem 0.75rem;
  font-weight: 700;
}

.session-btn:last-child {
  border-right: 0;
}

.session-btn.active {
  background: #375d86;
  color: #fff;
}

.draft-list {
  display: grid;
  gap: 0.45rem;
}

.draft-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  background: #fafbfd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
}

.draft-main {
  display: grid;
  gap: 0.1rem;
}

.draft-item .danger {
  padding: 0.3rem 0.55rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(117, 151, 189, 0.62);
  border-radius: 9px;
  padding: 9px 11px;
  font: inherit;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(241, 248, 255, 0.48), rgba(232, 242, 255, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(14px) saturate(155%);
  -webkit-backdrop-filter: blur(14px) saturate(155%);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(98, 148, 218, 0.9);
  box-shadow: 0 0 0 3px rgba(141, 187, 255, 0.22);
}

.auth-panel input,
.auth-panel select,
.auth-panel textarea {
  border-color: rgba(110, 142, 182, 0.78);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 250, 255, 0.88));
}

.auth-panel input:focus,
.auth-panel select:focus,
.auth-panel textarea:focus {
  border-color: rgba(82, 130, 197, 0.95);
  box-shadow: 0 0 0 3px rgba(128, 177, 247, 0.24);
}

/* Themed date picker popup */
.flatpickr-calendar {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(241, 249, 255, 0.52));
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  box-shadow: 0 18px 34px rgba(15, 34, 54, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: 0.35rem;
}

.flatpickr-months {
  margin-bottom: 0.3rem;
}

.flatpickr-month {
  color: #173451;
  fill: #173451;
}

.flatpickr-current-month {
  font-weight: 800;
  color: #173451;
}

.flatpickr-weekdays {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  margin: 0 0.15rem 0.2rem;
}

span.flatpickr-weekday {
  color: #35546e;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.flatpickr-day {
  border-radius: 10px;
  border: 1px solid transparent;
  color: #1b3b57;
  transition: all 140ms ease;
}

.flatpickr-day:hover {
  background: rgba(147, 189, 245, 0.25);
  border-color: rgba(113, 158, 220, 0.45);
}

.flatpickr-day.today {
  border-color: rgba(78, 135, 203, 0.85);
  color: #0f3d6f;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: linear-gradient(155deg, var(--accent-start), var(--accent-end));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px rgba(29, 79, 130, 0.25);
}

.flatpickr-day.inRange {
  background: rgba(121, 171, 239, 0.2);
  border-color: rgba(111, 155, 219, 0.38);
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: rgba(78, 102, 124, 0.38);
  background: transparent;
}

.flatpickr-prev-month,
.flatpickr-next-month {
  border-radius: 10px;
  color: #224767;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background: rgba(146, 189, 241, 0.25);
}

button {
  border: 0;
  border-radius: 9px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(160deg, var(--accent-start), var(--accent-end));
  box-shadow: 0 12px 26px rgba(20, 43, 69, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

button:hover:not(:disabled) {
  background: linear-gradient(160deg, rgba(67, 132, 191, 0.92), rgba(44, 99, 154, 0.9));
}

.button-secondary {
  color: #173452;
  background: rgba(240, 247, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

button.secondary {
  background: linear-gradient(180deg, #5e7590 0%, #435f7e 100%);
  color: white;
}

button.warn {
  background: linear-gradient(180deg, #b07d2f 0%, var(--warn) 100%);
  color: white;
}

button.danger {
  background: linear-gradient(180deg, #ab5058 0%, var(--danger) 100%);
  color: white;
}

.grid-two {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.2rem;
}

.grid-two > :first-child {
  border-right: 1px solid var(--line-soft);
  padding-right: 1rem;
}

.subtle {
  color: var(--muted);
  margin: 0.4rem 0 0.9rem;
  font-size: 0.93rem;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line-soft);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: #244a7b;
}

.legend-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
  background: linear-gradient(to bottom, var(--am-color, #eee) 50%, var(--pm-color, #eee) 50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.legend-square {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

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

.month-card {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow: var(--glass-shadow), var(--glass-inner);
}

.month-title {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
  color: #153251;
  text-align: center;
  font-weight: 700;
  padding: 0.55rem;
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.weekday-row,
.week-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-cell {
  text-align: center;
  font-size: 0.78rem;
  color: #2c4a62;
  padding: 0.38rem 0;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.3);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.day-cell {
  min-height: 38px;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  transition: background 120ms ease;
}

.day-cell:hover {
  background: rgba(255, 255, 255, 0.28);
}

.week-row .day-cell:last-child,
.weekday-row .weekday-cell:last-child {
  border-right: 0;
}

.day-num {
  font-size: 0.85rem;
  color: #334155;
}

.day-num.out {
  color: #a0adb2;
}

.day-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.day-dot.past {
  background: #b7bec7;
}

.day-dot .day-num {
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
}

.status-ok {
  background: #2e7d32;
}

.status-low {
  background: #ff9800;
}

.status-deficit {
  background: #ff0033;
}

.status-deficit-heavy {
  background: #5e0b15;
}

.status-empty {
  background: #c0c8d2;
}

.stack {
  display: grid;
  gap: 0.85rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

thead th {
  background: #f8fafd;
  color: #425267;
  font-size: 0.85rem;
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}

th,
td {
  padding: 0.62rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line-soft);
  text-align: left;
}

th:last-child,
td:last-child {
  border-right: 0;
}

.request-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  display: grid;
  gap: 0.65rem;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  box-shadow: 0 10px 24px rgba(26, 40, 58, 0.05);
}

.decision-history-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(26, 40, 58, 0.05);
}

.decision-history-item + .decision-history-item {
  margin-top: 0.45rem;
}

.decision-history-row {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(260px, 2fr) minmax(140px, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.58rem 0.7rem;
  font-size: 0.9rem;
  background: #fff;
  cursor: pointer;
}

.decision-history-row::-webkit-details-marker {
  display: none;
}

.decision-history-item[open] .decision-history-row {
  border-bottom: 1px solid #d3dde8;
  background: #f4f8fc;
}

.decision-history-name,
.decision-history-period,
.decision-history-type {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.decision-history-name {
  color: #21364a;
  font-weight: 700;
}

.decision-history-period {
  color: #355d86;
}

.decision-history-type {
  color: #556b83;
}

.decision-history-status {
  justify-self: end;
}

.decision-history-content {
  padding: 0.55rem 0.7rem 0.7rem;
  background: #eef4fa;
}

.decision-history-content .request-panel {
  margin: 0;
}

.decision-history-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.decision-history-size {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.decision-history-size select {
  padding: 0.25rem 0.4rem;
  border-radius: 5px;
  font-size: 0.82rem;
}

.decision-nav-btn {
  padding: 0.28rem 0.5rem;
  font-size: 0.8rem;
  min-width: 1.9rem;
  background: #eef3f8;
  color: #3e556d;
}

.decision-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.decision-page-info {
  color: var(--muted);
  font-size: 0.82rem;
  margin-left: 0.1rem;
}

.request-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(26, 40, 58, 0.04);
}

.request-item[open] {
  border-color: #b8cadd;
  box-shadow: 0 6px 18px rgba(55, 93, 134, 0.08);
}

.request-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

.request-summary::-webkit-details-marker {
  display: none;
}

.summary-main {
  display: grid;
  gap: 0.12rem;
}

.request-summary-compact {
  align-items: center;
}

.summary-main-compact {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(260px, 2fr) minmax(150px, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.summary-main-compact .summary-name,
.summary-main-compact .summary-period,
.summary-main-compact .summary-type {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-name {
  font-size: 0.9rem;
  color: #3d546d;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.summary-period {
  color: #2f5d8a;
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.summary-type {
  color: #536982;
  font-size: 0.85rem;
}

.summary-status {
  flex-shrink: 0;
}

.summary-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.edit-inline-btn {
  display: none;
  padding: 0.38rem 0.6rem;
  font-size: 0.82rem;
}

.request-item[open] .edit-inline-btn {
  display: inline-flex;
}

.request-content {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0.95rem;
  display: grid;
  gap: 0.7rem;
}

.request-item[open] .request-content {
  background: #eef4fa;
}

.request-item[open] .request-summary {
  border-bottom-color: var(--line-soft);
}

.request-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.request-meta > div {
  display: grid;
  gap: 0.12rem;
  border-left: 1px solid var(--line-soft);
  padding-left: 0.55rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.request-meta > div:nth-child(odd) {
  border-left: 0;
  padding-left: 0;
}

.request-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  background: #f7fbff;
}

.activation-notice {
  background: #fff8e8;
  border-color: #ead6aa;
}

.request-panel + .request-panel {
  margin-top: 0.2rem;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.panel-date {
  color: #315a83;
  font-weight: 700;
  font-size: 0.92rem;
}

.edit-popup {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(460px, 92vw);
  border: 1px solid #c5d4e4;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 34, 49, 0.14);
  padding: 0.6rem;
  z-index: 12;
}

.edit-popup.open {
  display: grid;
  gap: 0.5rem;
}

.panel-title {
  font-size: 0.82rem;
  color: #425b74;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.edit-row {
  gap: 0.45rem;
}

.edit-popup .edit-row input,
.edit-popup .edit-row select {
  min-width: 110px;
}

.comment-input-lg {
  min-width: 340px;
  width: min(520px, 100%);
}

.request-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.request-main {
  display: grid;
  gap: 0.25rem;
}

.request-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem 0.75rem;
}

.request-line {
  display: grid;
  gap: 0.1rem;
}

.meta-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #62788f;
  font-weight: 700;
}

.meta-value {
  font-size: 0.88rem;
  color: #182a3c;
}

.period-text {
  color: #355d86;
  font-weight: 600;
}

.type-text {
  color: #5e7290;
}

.request-actions {
  gap: 0.45rem;
}

.compact-input {
  min-width: 220px;
}

.request-details {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  background: #f8fbff;
}

.request-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #2f4862;
}

.request-details[open] summary {
  margin-bottom: 0.55rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 0.2rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-pending {
  background: #f2ece1;
  color: #7a5a2f;
}

.status-under_review {
  background: #e8edf5;
  color: #415b79;
}

.status-approved {
  background: #e3eee5;
  color: #3f6950;
}

.status-declined {
  background: #f2e2e2;
  color: #7f4040;
}

.history {
  border-top: 1px dashed #cad6e3;
  padding-top: 0.5rem;
  display: grid;
  gap: 0.45rem;
}

.history-item {
  font-size: 0.94rem;
  color: #183044;
  background: #ffffff;
  border-radius: 4px;
  padding: 0.5rem 0.55rem;
  border: 1px solid #d8e2ec;
}

.history-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}

.history-left {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.history-time {
  font-size: 0.8rem;
  color: #5a7188;
  white-space: nowrap;
}

.history-text {
  margin-top: 0.3rem;
  color: #22384a;
  line-height: 1.55;
}

.history-tag {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  padding: 0.08rem 0.35rem;
  margin-right: 0.45rem;
  font-weight: 700;
}

.tag-create {
  background: #e5edf7;
  color: #375d86;
}

.tag-edit {
  background: #f6ede2;
  color: #8b5e2a;
}

.tag-status {
  background: #e8efe6;
  color: #46704d;
}

.tag-message {
  background: #ececf2;
  color: #61657b;
}

.history-accordion summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: #3f5a74;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.history-accordion[open] summary {
  margin-bottom: 0.45rem;
}

.history-item strong {
  color: #1f3347;
}

@media (max-width: 700px) {
  .history-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .history-time {
    white-space: normal;
  }
}

.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.form-inline input {
  min-width: 140px;
}

.admin-create-user {
  display: grid;
  gap: 0.65rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #fcfeff 0%, #f3f8fc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.admin-create-user-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.admin-create-user-fields label {
  display: grid;
  gap: 0.22rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #35506b;
}

.admin-create-user-fields input {
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.68rem;
  font-size: 0.9rem;
}

.admin-create-user-roles {
  display: grid;
  gap: 0.4rem;
}

.admin-create-user-heading {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #506881;
}

.admin-create-user-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.role-option-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.role-option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-option-card-body {
  display: grid;
  gap: 0.16rem;
  min-height: 100%;
  padding: 0.58rem 0.7rem;
  border: 1px solid #cfdbe7;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #eef5fb 100%);
  box-shadow: 0 6px 12px rgba(28, 45, 64, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.role-option-card:hover .role-option-card-body {
  border-color: #8ea9c5;
  transform: translateY(-1px);
}

.role-option-card input:checked + .role-option-card-body {
  border-color: #2d5a86;
  background: linear-gradient(180deg, #eef5fd 0%, #dfeaf6 100%);
  box-shadow: 0 8px 14px rgba(38, 79, 120, 0.1);
}

.role-option-card-admin input:checked + .role-option-card-body {
  border-color: #7c4a18;
  background: linear-gradient(180deg, #fff5e7 0%, #f9ead3 100%);
  box-shadow: 0 8px 14px rgba(154, 106, 33, 0.11);
}

.role-option-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1f3851;
}

.role-option-copy {
  font-size: 0.76rem;
  line-height: 1.32;
  color: #597086;
}

.admin-create-user-note {
  font-size: 0.76rem;
}

.admin-create-user-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-create-user-actions button {
  min-width: 132px;
  padding: 0.62rem 0.9rem;
}

.profile-box {
  display: grid;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  background: linear-gradient(180deg, #fbfdff 0%, #f6fafe 100%);
}

.profile-notification-form {
  margin-top: 0.1rem;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.profile-layout {
  align-items: start;
  gap: 1rem;
}

.profile-column {
  display: grid;
  gap: 0.9rem;
}

.profile-section-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfeff 0%, #f4f9fd 100%);
  padding: 0.85rem;
  box-shadow: 0 8px 20px rgba(22, 70, 112, 0.05);
}

.profile-section-title {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}

.profile-notification-top-actions {
  display: flex;
  justify-content: flex-end;
}

.profile-notification-list {
  display: grid;
  gap: 0.7rem;
}

.profile-notification-group {
  display: grid;
  gap: 0.45rem;
}

.profile-notification-group-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  color: #2f4961;
  letter-spacing: 0.01em;
}

.profile-notification-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem 0.6rem;
}

.profile-notification-body {
  display: grid;
  gap: 0.18rem;
}

.profile-notification-switch {
  position: relative;
  width: 42px;
  height: 24px;
  display: inline-block;
}

.profile-notification-switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.profile-notification-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #c6d4e0;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.profile-notification-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.profile-notification-switch-input:checked + .profile-notification-slider {
  background: #2e7d32;
}

.profile-notification-switch-input:checked + .profile-notification-slider::before {
  transform: translateX(18px);
}

.profile-notification-switch-input:focus-visible + .profile-notification-slider {
  outline: 2px solid #2f6a98;
  outline-offset: 2px;
}

.profile-push-box {
  margin-top: 0.25rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.7rem;
  background: #fff;
  display: grid;
  gap: 0.55rem;
}

.profile-push-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-push-debug {
  font-size: 0.84rem;
  color: #21455f;
  font-weight: 500;
  border-left: 4px solid #1f6b9d;
  background: rgba(236, 245, 252, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
}

.push-debug-grid {
  display: grid;
  gap: 0.4rem;
}

.push-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #23445c;
}

.push-inline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #23445c;
}

.push-segment {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.push-inline .push-badge {
  margin: 0;
}

.push-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: #d4e3f2;
  color: #1e5a8a;
  box-shadow: 0 2px 4px rgba(30, 90, 138, 0.12);
}

.push-badge.push-granted {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  color: #fff;
}

.push-badge.push-denied {
  background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
  color: #fff;
}

.push-badge.push-default {
  background: linear-gradient(135deg, #757575 0%, #616161 100%);
  color: #fff;
}

.push-badge.push-unsupported {
  background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
  color: #fff;
}

.push-badge.push-yes {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  color: #fff;
}

.push-badge.push-no {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: #fff;
}

.push-warning {
  margin-top: 0.5rem;
  padding: 0.5rem 0.6rem;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.1));
  border-left: 3px solid #ff9800;
  border-radius: 6px;
  color: #e65100;
  font-size: 0.8rem;
  font-weight: 600;
}

.profile-push-help {
  font-size: 0.8rem;
  color: #3f5b70;
  line-height: 1.35;
}

.profile-push-help a {
  color: #1d5f8a;
  text-decoration: underline;
}

.profile-notification-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #213a52;
}

.profile-notification-copy {
  font-size: 0.79rem;
  color: #61778a;
  line-height: 1.32;
}

.log-box {
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem;
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbfe 100%);
  display: grid;
  gap: 0.45rem;
}

.log-row {
  font-size: 0.9rem;
  border-left: 3px solid #99acc1;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.32rem;
  padding-left: 0.5rem;
  color: #42586d;
}

.log-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 980px) {
  .admin-create-user-fields,
  .admin-create-user-role-grid {
    grid-template-columns: 1fr;
  }

  .admin-create-user-actions {
    justify-content: stretch;
  }

  .admin-create-user-actions button {
    width: 100%;
  }
}

.hidden {
  display: none !important;
}

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

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(20px, -16px, 0);
  }
}

@media (max-width: 980px) {
  .topbar {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
  }

  .topbar > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }

  .topbar h2 {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.2;
  }

  .topbar p {
    font-size: 0.74rem;
    margin: 0;
    line-height: 1.2;
  }

  .topbar-actions {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
  }

  .topbar-actions button,
  .topbar-actions .decision-pill {
    font-size: 0.78rem;
    padding: 0.38rem 0.6rem;
    max-width: 100%;
    white-space: nowrap;
  }

  #logout-btn {
    margin-left: auto;
  }

  .tabs {
    overflow-x: auto;
    overflow-y: visible;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.28rem;
    margin: 0.6rem 0;
    gap: 0.22rem;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.42rem 0.72rem;
    font-size: 0.8rem;
  }

  .tab-btn.roster-tool-start {
    margin-left: 0;
  }

  .notification-panel {
    top: 72px;
    left: 0.9rem;
    right: 0.9rem;
    width: auto;
  }

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

  .grid-two > :first-child {
    border-right: 0;
    padding-right: 0;
  }

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

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

  .summary-main-compact {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .summary-main-compact .summary-name,
  .summary-main-compact .summary-period,
  .summary-main-compact .summary-type {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .request-meta {
    grid-template-columns: 1fr;
  }

  .request-meta > div,
  .request-meta > div:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .comment-input-lg {
    min-width: 0;
    width: 100%;
  }

  .edit-popup {
    left: auto;
    right: 0;
    width: 100%;
  }

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

  .shell {
    padding: 1rem;
  }

  .auth-card {
    margin-top: 2rem;
  }

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

  .landing-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 2rem 1.4rem;
  }

  .landing-illustration {
    min-height: 320px;
  }

  .illustration-card-main {
    width: 100%;
  }

  .illustration-card-review {
    right: 0.8rem;
    top: 1.2rem;
  }

  .illustration-card-status {
    right: 0;
    bottom: 0.6rem;
  }

  .auth-panel-wrap {
    padding: 1.4rem;
  }

  .auth-panel {
    padding: 1.4rem;
  }

  .auth-panel-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 700px) {
  .topbar {
    align-items: stretch;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  .topbar-actions button,
  .topbar-actions .decision-pill {
    width: 100%;
    justify-content: center;
  }

  #logout-btn {
    margin-left: 0;
  }

  .landing-copy {
    padding: 1.4rem 1rem;
    border-bottom: 0;
  }

  .landing-illustration {
    display: none;
    min-height: 0;
  }

  .landing-note {
    display: none;
  }

  .landing-copy h1 {
    font-size: 1.78rem;
    line-height: 1.2;
    color: #132336 !important;
    margin-bottom: 0.2rem;
  }

  .illustration-card-float {
    position: static;
    width: 100%;
    margin-top: 0.7rem;
  }

  .decision-history-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    white-space: normal;
  }

  .decision-history-status {
    justify-self: start;
  }

  .decision-history-name,
  .decision-history-period,
  .decision-history-type {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

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

  .tab-content {
    padding: 0.85rem;
  }
}
