:root {
  --bg: #f4efe5;
  --card: rgba(255, 251, 245, 0.88);
  --card-strong: #fffdf8;
  --ink: #1f2b28;
  --muted: #5c665f;
  --line: rgba(31, 43, 40, 0.12);
  --brand: #0e5a56;
  --brand-soft: #d9ece9;
  --accent: #8d5b28;
  --accent-soft: rgba(141, 91, 40, 0.12);
  --shadow: 0 18px 50px rgba(54, 41, 24, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(14, 90, 86, 0.12), transparent 24rem),
    radial-gradient(circle at top right, rgba(141, 91, 40, 0.12), transparent 18rem),
    linear-gradient(180deg, #f8f3ea 0%, var(--bg) 100%);
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

button,
input,
select {
  font: inherit;
}

img {
  max-width: 100%;
}

.page-shell {
  width: min(1680px, max(calc(100vw - 3in), calc(100vw - 48px)));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero {
  margin-bottom: 20px;
}

.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-copy,
.card,
.controls-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
}

.hero-copy,
.controls-card,
.card {
  padding: 28px 30px;
}

.hero-copy {
  padding: 32px;
}

.card {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(255, 250, 244, 0.9));
}

.sync-card {
  padding: 30px 32px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 251, 245, 0.9));
}

.overview-card {
  padding: 30px 32px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 251, 245, 0.9));
}

.controls-card {
  padding: 30px 32px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 251, 245, 0.9));
}

.controls-card .controls-header {
  align-items: start;
  margin-bottom: 22px;
}

.controls-card .section-kicker {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #063f3c;
}

.controls-card .section-header h2 {
  color: #2b3430;
  font-size: clamp(1.52rem, 1.72vw, 1.84rem);
  font-weight: 700;
  line-height: 1.12;
}

.controls-card .section-subtext {
  max-width: 56rem;
  font-size: 1.02rem;
  line-height: 1.65;
}

.selected-date-card .selected-date-filters {
  margin-bottom: 24px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.selected-date-card .selected-date-filters .controls-header {
  margin-bottom: 18px;
}

.selected-date-card .selected-date-header {
  margin-bottom: 22px;
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #063f3c;
}

.eyebrow,
.sync-card .section-kicker {
  font-weight: 900;
  line-height: 1.2;
  color: #063f3c;
}

.hero h1 {
  margin: 0;
  color: #2b3430;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.logout-button {
  justify-self: end;
  margin: 0;
  color: var(--accent);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
}

.logout-button:hover {
  color: #6e451f;
  text-decoration: underline;
}

.hero-subtitle {
  margin: 18px 0 0;
  color: var(--accent);
  font-size: clamp(1.26rem, 1.45vw, 1.42rem);
  font-weight: 700;
  line-height: 1.5;
}

.hero-tenure {
  margin: 8px 0 0;
  color: var(--brand);
  font-size: clamp(1.08rem, 1.2vw, 1.18rem);
  font-weight: 700;
  line-height: 1.5;
}

.hero-text {
  max-width: none;
  margin: 16px 0 0;
  color: #6a736d;
  font-size: clamp(1.08rem, 1.2vw, 1.18rem);
  font-weight: 500;
  line-height: 1.65;
  white-space: nowrap;
}

.section-subtext {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.login-page {
  display: flex;
}

.auth-page-shell {
  display: grid;
  align-content: center;
  flex: 1;
  min-height: 100vh;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.auth-hero {
  margin-bottom: 0;
}

.auth-hero .hero-copy {
  min-height: 100%;
  display: grid;
  align-content: center;
}

.auth-card {
  min-height: 100%;
  display: grid;
  align-content: center;
}

.auth-intro {
  margin-bottom: 22px;
}

.auth-hero-text {
  white-space: normal;
  max-width: 42rem;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form .field span {
  font-size: 0.96rem;
  font-weight: 700;
  color: #5a665f;
  text-align: left;
  letter-spacing: 0.02em;
}

.auth-form .field input {
  min-height: 54px;
  padding: 12px 16px;
  font-size: 1.08rem;
  border-radius: 16px;
  border-color: rgba(31, 43, 40, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.auth-submit-button {
  width: 100%;
  margin-top: 6px;
}

.auth-card .sync-status {
  margin-top: 16px;
}

.sync-status.is-error {
  color: #9a313d;
}

.sync-status.is-success {
  color: var(--brand);
}

.layout {
  display: block;
}

.primary-column {
  display: grid;
  gap: 20px;
}

.overview-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  align-items: stretch;
}

.overview-item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(14, 90, 86, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.4;
  min-height: 44px;
  padding: 9px 14px;
  white-space: nowrap;
}

.overview-label {
  color: #063f3c;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.overview-value {
  color: var(--ink);
  font-weight: 500;
}

.controls-row,
.sync-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sync-grid {
  grid-template-columns: minmax(280px, 1.5fr) minmax(170px, 0.95fr) minmax(170px, 0.95fr) minmax(210px, 1fr);
  align-items: end;
}

.sync-card .section-header,
.overview-card .section-header {
  align-items: start;
  margin-bottom: 22px;
}

.sync-card .section-kicker,
.overview-card .section-kicker {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #063f3c;
}

.sync-card .section-header h2,
.overview-card .section-header h2 {
  color: #2b3430;
  font-size: clamp(1.52rem, 1.72vw, 1.84rem);
  font-weight: 700;
  line-height: 1.12;
}

.sync-card .sync-grid {
  grid-template-columns: minmax(360px, 1.55fr) minmax(280px, 1.08fr) minmax(220px, 0.92fr);
  gap: 20px 20px;
  align-items: end;
}

.controls-card .controls-row {
  gap: 20px;
  align-items: end;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field span {
  color: var(--muted);
  font-size: 0.9rem;
}

.sync-card .field {
  gap: 10px;
}

.controls-card .field {
  gap: 10px;
}

.sync-card .field span {
  font-size: 0.98rem;
  font-weight: 700;
  color: #5a665f;
  text-align: center;
  letter-spacing: 0.02em;
}

.controls-card .field span {
  font-size: 0.98rem;
  font-weight: 700;
  color: #5a665f;
  text-align: center;
  letter-spacing: 0.02em;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card-strong);
  padding: 10px 14px;
  color: var(--ink);
}

.sync-card .field input,
.sync-card .field select {
  min-height: 54px;
  padding: 12px 16px;
  font-size: 1.1rem;
  border-radius: 16px;
  border-color: rgba(31, 43, 40, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  text-align: center;
}

.sync-card .field select {
  text-align-last: center;
}

.controls-card .field input,
.controls-card .field select {
  min-height: 54px;
  padding: 12px 16px;
  font-size: 1.1rem;
  border-radius: 16px;
  border-color: rgba(31, 43, 40, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  text-align: center;
}

.controls-card .field select {
  text-align-last: center;
}

.date-nav {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
}

.sync-card .date-nav {
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  gap: 10px;
}

.date-nav-button {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(14, 90, 86, 0.16);
  background: rgba(14, 90, 86, 0.08);
  color: var(--brand);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0;
}

.sync-card .date-nav-button {
  min-height: 54px;
  font-size: 1.55rem;
}

.inline-link-button {
  justify-self: start;
  border: none;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-size: 0.88rem;
  margin-top: -2px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.sync-card .inline-link-button {
  font-size: 0.98rem;
  font-weight: 700;
  margin-top: 4px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.section-header > div {
  display: grid;
  gap: 4px;
}

.compact-header {
  margin-top: 22px;
}

.card:not(.sync-card):not(.controls-card) .section-kicker {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #063f3c;
  margin-bottom: 6px;
}

.section-header h2 {
  margin: 0;
  color: #2b3430;
  font-size: clamp(1.38rem, 1.55vw, 1.68rem);
  font-weight: 700;
  line-height: 1.14;
}

.card.overview-card .calendar-section-header {
  margin-bottom: 22px;
}

.card.overview-card .calendar-section-header .section-kicker {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #063f3c;
}

.card.overview-card .calendar-section-header h2 {
  color: #2b3430;
  font-size: clamp(1.52rem, 1.72vw, 1.84rem);
  font-weight: 700;
  line-height: 1.12;
}

.card .dhc-section-header {
  margin-bottom: 22px;
}

.card .dhc-section-header .section-kicker {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #063f3c;
}

.card .dhc-section-header h2 {
  color: #2b3430;
  font-size: clamp(1.52rem, 1.72vw, 1.84rem);
  font-weight: 700;
  line-height: 1.12;
}

.month-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.planner-section {
  display: grid;
  gap: 20px;
}

.planner-main-card,
.planner-horizon-card,
.planner-subcard {
  height: 100%;
}

.planner-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: nowrap;
}

.calendar-grid,
.calendar-reference {
  min-width: 0;
}

.planner-main-header > div:first-child {
  min-width: 0;
  text-align: left;
}

.planner-main-header .planner-month-nav {
  margin-left: auto;
  display: inline-grid;
  grid-template-columns: 36px minmax(170px, auto) 36px;
  align-items: center;
  gap: 10px;
  justify-content: end;
  flex: 0 0 auto;
}

.planner-main-header .planner-month-arrow {
  min-height: 36px;
  min-width: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 43, 40, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.planner-main-header #prevMonthButton {
  border-color: rgba(176, 61, 69, 0.22);
  background: rgba(176, 61, 69, 0.08);
  color: #b03d45;
}

.planner-main-header #nextMonthButton {
  border-color: rgba(46, 143, 121, 0.22);
  background: rgba(46, 143, 121, 0.08);
  color: #2e8f79;
}

.planner-main-header #prevMonthButton:hover {
  background: rgba(176, 61, 69, 0.14);
  border-color: rgba(176, 61, 69, 0.32);
}

.planner-main-header #nextMonthButton:hover {
  background: rgba(46, 143, 121, 0.14);
  border-color: rgba(46, 143, 121, 0.32);
}

.planner-main-header .month-picker {
  min-height: 36px;
  min-width: 170px;
  border: none;
  border-radius: 0;
  padding: 0 6px 2px;
  background:
    linear-gradient(
      90deg,
      rgba(176, 61, 69, 0.18),
      rgba(46, 143, 121, 0.18)
    ) 0 100% / 100% 2px no-repeat;
  color: #2b3430;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
  box-shadow: none;
}

.planner-main-header .month-picker::-webkit-calendar-picker-indicator {
  opacity: 0.72;
}

.planner-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.planner-subcard .planner-panel {
  min-height: 220px;
}

.planner-main-card .metric-card,
.planner-horizon-card .month-card {
  min-height: 100%;
}

.month-picker {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card-strong);
  padding: 10px 14px;
  color: var(--ink);
}

.sync-button {
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #f8f4eb;
  cursor: pointer;
  padding: 12px 18px;
}

.sync-card .sync-button {
  min-height: 52px;
  padding: 12px 20px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(54, 41, 24, 0.08);
}

.secondary-button {
  background: var(--accent);
}

.sync-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.sync-status {
  min-height: 2.5rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.sync-card .sync-status {
  min-height: 2.8rem;
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.65;
}

.subtle-card {
  padding-top: 24px;
}

.history-details[open] {
  padding-top: 4px;
}

.history-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

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

.history-summary::marker {
  display: none;
}

.history-summary::after {
  content: "Show";
  border-radius: 999px;
  background: rgba(14, 90, 86, 0.08);
  color: var(--brand);
  font-size: 0.82rem;
  padding: 8px 12px;
}

.history-details[open] .history-summary::after {
  content: "Hide";
}

.history-panel {
  margin-top: 10px;
}

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

.compact-grid {
  margin-bottom: 18px;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.75);
  padding: 18px;
}

.tone-brand {
  background: rgba(14, 90, 86, 0.08);
}

.tone-accent {
  background: var(--accent-soft);
}

.metric-label {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.metric-detail {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.month-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.month-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.75);
  padding: 18px;
  text-align: left;
  cursor: pointer;
}

.month-card.active {
  border-color: rgba(14, 90, 86, 0.35);
  background: linear-gradient(180deg, rgba(14, 90, 86, 0.1), rgba(255, 255, 255, 0.82));
}

.month-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.planner-panel,
.official-matches,
.captcha-panel,
.empty-state {
  border: 1px dashed rgba(14, 90, 86, 0.25);
  border-radius: var(--radius-md);
  padding: 18px;
  color: var(--muted);
  background: rgba(14, 90, 86, 0.03);
}

.sync-card .official-matches,
.sync-card .captcha-panel {
  font-size: 1rem;
}

.compact-state {
  padding: 16px 18px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.date-chip {
  border: 1px solid rgba(141, 91, 40, 0.2);
  border-radius: 999px;
  background: rgba(141, 91, 40, 0.1);
  color: var(--accent);
  cursor: pointer;
  padding: 10px 14px;
}

.dhc-legend {
  margin-bottom: 14px;
}

.dhc-event-list,
.dhc-day-info {
  display: grid;
  gap: 12px;
}

.dhc-event-item,
.dhc-day-row {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px 16px;
}

.dhc-event-head,
.dhc-day-row {
  display: flex;
  gap: 12px;
  align-items: start;
}

.dhc-event-item h3 {
  margin: 10px 0 6px;
  font-size: 1.05rem;
}

.planner-note {
  margin: 14px 0 0;
}

.sync-card .planner-note {
  font-size: 0.98rem;
  line-height: 1.6;
}

.schedule-list {
  display: grid;
  gap: 10px;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  cursor: pointer;
  padding: 14px 16px;
  text-align: left;
}

.schedule-item.active {
  border-color: rgba(14, 90, 86, 0.35);
  box-shadow: 0 0 0 2px rgba(14, 90, 86, 0.08);
}

.schedule-title {
  margin: 0 0 4px;
  font-weight: 700;
}

.schedule-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.schedule-side {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.sync-actions {
  display: grid;
  gap: 12px;
  align-content: end;
  min-width: 0;
}

.sync-actions .sync-button {
  width: 100%;
  white-space: normal;
}

.sync-card .sync-actions {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: stretch;
  justify-self: center;
  width: min(100%, 520px);
  padding: 0;
  border: none;
  background: transparent;
}

.posting-match-list {
  display: grid;
  gap: 12px;
}

.posting-match {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.posting-match h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.posting-match p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.captcha-panel {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: center;
}

.captcha-panel.hidden {
  display: none;
}

.captcha-image-box {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  padding: 12px;
}

.captcha-image-box img {
  width: min(100%, 340px);
  image-rendering: auto;
  filter: grayscale(1) contrast(1.35);
}

.captcha-controls {
  display: grid;
  gap: 12px;
}

.captcha-helper-actions {
  display: flex;
  justify-content: flex-start;
}

.sync-card .captcha-controls {
  gap: 0;
}

.sync-card .month-import-meta.hidden,
.sync-card .official-matches.hidden,
.sync-card .sync-status.hidden {
  display: none;
}

.compact-note {
  margin: 0;
}

.status-pill,
.source-pill,
.date-badge,
.stage-badge,
.holiday-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
}

.status-pill {
  background: rgba(92, 102, 95, 0.12);
  color: var(--muted);
}

.source-pill {
  justify-self: start;
  background: rgba(92, 102, 95, 0.12);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-pill.official {
  background: rgba(14, 90, 86, 0.14);
  color: var(--brand);
}

.status-pill.pending {
  background: rgba(141, 91, 40, 0.14);
  color: var(--accent);
}

.status-pill.source-live,
.source-pill.live {
  background: rgba(14, 90, 86, 0.14);
  color: var(--brand);
}

.status-pill.source-verified,
.source-pill.verified {
  background: rgba(32, 91, 171, 0.12);
  color: #1f4f95;
}

.status-pill.source-empty,
.source-pill.empty {
  background: rgba(92, 102, 95, 0.14);
  color: #55635c;
}

.date-badge,
.stage-badge {
  background: rgba(14, 90, 86, 0.12);
  color: var(--brand);
}

.holiday-chip {
  border: 1px solid transparent;
  font-size: 0.78rem;
  white-space: nowrap;
}

.holiday-chip.compact {
  padding: 4px 9px;
  font-size: 0.72rem;
}

.holiday-chip.dhc-common {
  background: linear-gradient(135deg, rgba(215, 75, 88, 0.92) 0 48%, rgba(46, 143, 121, 0.92) 52% 100%);
  border-color: rgba(46, 143, 121, 0.28);
  color: #fffdf8;
}

.holiday-chip.dhc-hc-only {
  background: rgba(215, 75, 88, 0.9);
  border-color: rgba(215, 75, 88, 0.3);
  color: #fffdf8;
}

.holiday-chip.dhc-sitting {
  background: rgba(46, 143, 121, 0.9);
  border-color: rgba(46, 143, 121, 0.3);
  color: #fffdf8;
}

.holiday-chip.dhc-vacation {
  background: rgba(211, 171, 87, 0.86);
  border-color: rgba(211, 171, 87, 0.3);
  color: #5f420e;
}

.holiday-chip.dhc-observance {
  background: rgba(124, 105, 209, 0.22);
  border-color: rgba(124, 105, 209, 0.24);
  color: #4f3da8;
}

.calendar-heading {
  margin: 2px 0 12px;
}

.calendar-sheet-heading {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.calendar-heading .calendar-month-subtitle {
  text-align: center;
}

.calendar-month-title {
  margin: 0;
  color: #202927;
  font-size: clamp(2rem, 3vw, 2.85rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.calendar-month-subtitle {
  margin: 0;
  color: #5f685f;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.case-parties,
.case-meta,
.posting-copy,
.timeline-dates {
  color: var(--muted);
}

.calendar-grid {
  display: block;
}

.calendar-reference {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(31, 43, 40, 0.08);
  overflow-x: auto;
  padding-top: 2px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin: 12px 0 20px;
  color: var(--muted);
}

.calendar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

.planner-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.planner-weekday,
.planner-spacer {
  min-height: 46px;
  border-radius: 12px;
}

.planner-weekday {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 43, 40, 0.1);
  background: rgba(255, 253, 248, 0.95);
  color: #24312e;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.planner-weekday.sunday {
  color: #b03d45;
}

.planner-calendar-cell {
  min-height: 146px;
  border-radius: 16px;
  border: 1px solid rgba(31, 43, 40, 0.12);
  background: rgba(255, 253, 248, 0.96);
  padding: 12px;
  display: grid;
  gap: 8px;
  align-content: start;
  text-align: left;
  cursor: pointer;
}

.planner-calendar-cell.active {
  border-color: rgba(14, 90, 86, 0.42);
  box-shadow: 0 0 0 2px rgba(14, 90, 86, 0.12);
}

.planner-calendar-cell.official {
  box-shadow: inset 0 4px 0 rgba(14, 90, 86, 0.22);
}

.planner-calendar-cell.pending {
  box-shadow: inset 0 4px 0 rgba(141, 91, 40, 0.22);
}

.planner-calendar-cell.sample,
.planner-calendar-cell.empty {
  box-shadow: inset 0 4px 0 rgba(31, 43, 40, 0.08);
}

.planner-calendar-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.planner-calendar-dayrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.planner-calendar-day {
  color: #1f2b28;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.planner-calendar-day.dhc-weekend {
  color: #b03d45;
}

.planner-calendar-marker {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
  margin-top: 4px;
}

.planner-calendar-marker.dhc-common {
  background: linear-gradient(135deg, #d74b58 0 48%, #2e8f79 52% 100%);
}

.planner-calendar-marker.dhc-hc-only {
  background: rgba(215, 75, 88, 0.88);
}

.planner-calendar-marker.dhc-sitting {
  background: rgba(46, 143, 121, 0.88);
}

.planner-calendar-marker.dhc-vacation {
  background: rgba(211, 171, 87, 0.92);
}

.planner-calendar-marker.dhc-observance {
  background: rgba(124, 105, 209, 0.72);
}

.planner-calendar-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.planner-calendar-tag.live {
  background: rgba(14, 90, 86, 0.12);
  color: var(--brand);
}

.planner-calendar-tag.verified {
  background: rgba(32, 91, 171, 0.12);
  color: #1f4f95;
}

.planner-calendar-tag.empty {
  background: rgba(92, 102, 95, 0.12);
  color: #55635c;
}

.planner-calendar-tag.pending {
  background: rgba(141, 91, 40, 0.14);
  color: var(--accent);
}

.planner-calendar-count {
  margin: 0;
  color: #263330;
  font-size: 0.96rem;
  font-weight: 700;
}

.planner-calendar-meta {
  margin: 0;
  color: #69736c;
  font-size: 0.78rem;
  line-height: 1.4;
}

.planner-calendar-note {
  margin: 0;
  color: #5f685f;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.calendar-reference-panel {
  display: grid;
  gap: 10px;
}

.calendar-reference-head {
  display: grid;
  gap: 2px;
}

.calendar-reference-title {
  margin: 0;
  color: #2b3430;
  font-size: clamp(1.38rem, 1.55vw, 1.68rem);
  font-weight: 700;
  line-height: 1.14;
}

.calendar-reference-copy {
  margin: 0;
  color: #69736c;
  font-size: 0.92rem;
  line-height: 1.45;
}

.calendar-section-header,
.dhc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: nowrap;
}

.calendar-section-header > div:first-child,
.dhc-section-header > div:first-child {
  min-width: 0;
}

.calendar-section-header .section-month-nav,
.dhc-section-header .section-month-nav {
  margin-left: auto;
}

.section-month-nav {
  display: inline-grid;
  grid-template-columns: 36px minmax(160px, auto) 36px;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.section-month-nav .section-month-arrow {
  min-height: 36px;
  min-width: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 43, 40, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

#prevCalendarMonthButton,
#prevDhcMonthButton {
  border-color: rgba(176, 61, 69, 0.22);
  background: rgba(176, 61, 69, 0.08);
  color: #b03d45;
}

#nextCalendarMonthButton,
#nextDhcMonthButton {
  border-color: rgba(46, 143, 121, 0.22);
  background: rgba(46, 143, 121, 0.08);
  color: #2e8f79;
}

#prevCalendarMonthButton:hover,
#prevDhcMonthButton:hover {
  background: rgba(176, 61, 69, 0.14);
  border-color: rgba(176, 61, 69, 0.32);
}

#nextCalendarMonthButton:hover,
#nextDhcMonthButton:hover {
  background: rgba(46, 143, 121, 0.14);
  border-color: rgba(46, 143, 121, 0.32);
}

.section-month-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 160px;
  padding: 0 6px 2px;
  border: none;
  background:
    linear-gradient(
      90deg,
      rgba(176, 61, 69, 0.18),
      rgba(46, 143, 121, 0.18)
    ) 0 100% / 100% 2px no-repeat;
  color: #2b3430;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.section-month-picker {
  min-height: 36px;
  min-width: 160px;
  border: none;
  border-radius: 0;
  padding: 0 6px 2px;
  background:
    linear-gradient(
      90deg,
      rgba(176, 61, 69, 0.18),
      rgba(46, 143, 121, 0.18)
    ) 0 100% / 100% 2px no-repeat;
  color: #2b3430;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
  box-shadow: none;
}

.section-month-picker::-webkit-calendar-picker-indicator {
  opacity: 0.72;
}

.legend-swatch {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(31, 43, 40, 0.12);
  background: #fffdf8;
}

.legend-swatch.official {
  background: rgba(14, 90, 86, 0.16);
  border-color: rgba(14, 90, 86, 0.2);
}

.legend-swatch.pending {
  background: rgba(141, 91, 40, 0.16);
  border-color: rgba(141, 91, 40, 0.2);
}

.legend-swatch.dhc-common {
  background: linear-gradient(135deg, #d74b58 0 48%, #2e8f79 52% 100%);
  border-color: rgba(46, 143, 121, 0.24);
}

.legend-swatch.dhc-hc-only {
  background: rgba(215, 75, 88, 0.8);
  border-color: rgba(215, 75, 88, 0.28);
}

.legend-swatch.dhc-sitting {
  background: rgba(46, 143, 121, 0.78);
  border-color: rgba(46, 143, 121, 0.28);
}

.legend-swatch.dhc-vacation {
  background: rgba(211, 171, 87, 0.82);
  border-color: rgba(211, 171, 87, 0.26);
}

.calendar-sheet {
  display: grid;
  grid-template-columns: 82px repeat(var(--calendar-week-count), minmax(72px, 1fr));
  gap: 6px;
  min-width: 760px;
}

.calendar-axis-day {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 8px 6px;
  border: 1px solid rgba(31, 43, 40, 0.12);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.96);
  color: #1f2b28;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.calendar-axis-day.sunday {
  color: #b03d45;
}

.calendar-slot {
  min-height: 72px;
  border-radius: 10px;
  border: 1px solid rgba(31, 43, 40, 0.12);
  background: rgba(255, 253, 248, 0.96);
  padding: 6px 7px 8px;
  display: grid;
  gap: 5px;
  align-content: start;
  cursor: pointer;
  text-align: left;
}

.calendar-slot.active {
  border-color: rgba(14, 90, 86, 0.42);
  box-shadow: 0 0 0 2px rgba(14, 90, 86, 0.12);
}

.calendar-slot.official {
  box-shadow: inset 0 4px 0 rgba(14, 90, 86, 0.22);
}

.calendar-slot.pending {
  box-shadow: inset 0 4px 0 rgba(141, 91, 40, 0.22);
}

.calendar-slot.sample,
.calendar-slot.empty {
  box-shadow: inset 0 4px 0 rgba(31, 43, 40, 0.08);
}

.calendar-slot-empty {
  min-height: 72px;
  border-radius: 10px;
  border: 1px solid rgba(31, 43, 40, 0.06);
  background: rgba(255, 253, 248, 0.35);
}

.calendar-slot-head {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.calendar-slot-datebox {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid rgba(31, 43, 40, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.calendar-slot-datebox.dhc-common {
  background: linear-gradient(135deg, #d74b58 0 48%, #2e8f79 52% 100%);
  border-color: rgba(46, 143, 121, 0.24);
}

.calendar-slot-datebox.dhc-hc-only {
  background: rgba(215, 75, 88, 0.78);
  border-color: rgba(215, 75, 88, 0.26);
}

.calendar-slot-datebox.dhc-sitting {
  background: rgba(46, 143, 121, 0.78);
  border-color: rgba(46, 143, 121, 0.24);
}

.calendar-slot-datebox.dhc-vacation {
  background: rgba(211, 171, 87, 0.84);
  border-color: rgba(211, 171, 87, 0.24);
}

.calendar-slot-datebox.dhc-observance {
  background: rgba(124, 105, 209, 0.26);
  border-color: rgba(124, 105, 209, 0.22);
}

.calendar-slot-day {
  font-weight: 800;
  font-size: 1.18rem;
  line-height: 1;
  color: #1f2b28;
}

.calendar-slot-datebox.dhc-common .calendar-slot-day,
.calendar-slot-datebox.dhc-hc-only .calendar-slot-day,
.calendar-slot-datebox.dhc-sitting .calendar-slot-day {
  color: #fffdf8;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.calendar-slot-datebox.dhc-vacation .calendar-slot-day {
  color: #5f420e;
}

.calendar-slot-day.dhc-weekend {
  color: #b03d45;
}

.calendar-slot-body {
  display: grid;
  gap: 1px;
  align-content: start;
  justify-items: center;
  text-align: center;
}

.calendar-source-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.calendar-source-tag.live {
  background: rgba(14, 90, 86, 0.12);
  color: var(--brand);
}

.calendar-source-tag.verified {
  background: rgba(32, 91, 171, 0.12);
  color: #1f4f95;
}

.calendar-source-tag.empty {
  background: rgba(92, 102, 95, 0.12);
  color: #55635c;
}

.calendar-source-tag.pending {
  background: rgba(141, 91, 40, 0.14);
  color: var(--accent);
}

.calendar-slot-count {
  margin: 0;
  color: #263330;
  font-size: 0.9rem;
  font-weight: 700;
}

.calendar-slot-meta {
  margin: 0;
  color: #69736c;
  font-size: 0.72rem;
  line-height: 1.4;
}

.calendar-slot-note {
  margin: 0;
  color: #5f685f;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.groups,
.timeline {
  display: grid;
  gap: 14px;
}

.stage-group,
.timeline-entry {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
}

.stage-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(14, 90, 86, 0.08), rgba(141, 91, 40, 0.04));
}

.stage-header h3,
.timeline-entry h3 {
  margin: 0;
  font-size: 1.1rem;
}

.case-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1.3fr) minmax(160px, 0.8fr) minmax(180px, 1fr);
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.case-serial {
  color: var(--accent);
  font-weight: 700;
}

.case-number {
  margin: 0 0 4px;
  font-weight: 700;
}

.timeline-entry {
  padding: 18px;
}

@media (max-width: 1280px) {
  .sync-card .sync-grid,
  .controls-card .controls-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .planner-main-header,
  .calendar-section-header,
  .dhc-section-header {
    flex-wrap: wrap;
    align-items: start;
  }

  .planner-main-header .planner-month-nav,
  .calendar-section-header .section-month-nav,
  .dhc-section-header .section-month-nav {
    margin-left: 0;
  }
}

@media (max-width: 1120px) {
  .page-shell {
    width: calc(100vw - 28px);
    padding: 22px 0 40px;
  }

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

  .sync-card .sync-actions {
    grid-template-columns: 1fr;
  }

  .overview-bar {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .planner-secondary-grid {
    grid-template-columns: 1fr;
  }

  .sync-card .sync-grid,
  .controls-card .controls-row {
    grid-template-columns: 1fr;
  }

  .section-header,
  .planner-main-header,
  .calendar-section-header,
  .dhc-section-header {
    flex-direction: column;
    align-items: start;
    gap: 14px;
  }

  .planner-main-header .planner-month-nav,
  .calendar-section-header .section-month-nav,
  .dhc-section-header .section-month-nav,
  .section-month-nav {
    width: 100%;
    justify-content: start;
  }

  .sync-card .section-header,
  .overview-card .section-header,
  .controls-card .controls-header {
    margin-bottom: 18px;
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: calc(100vw - 22px);
    padding: 18px 0 32px;
  }

  .hero-copy,
  .controls-card,
  .sync-card,
  .overview-card,
  .card {
    padding: 22px 18px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
    line-height: 1.06;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.45;
  }

  .hero-tenure {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .hero-text {
    white-space: normal;
    font-size: 1rem;
    line-height: 1.6;
  }

  .auth-page-shell {
    min-height: auto;
  }

  .auth-form {
    gap: 14px;
  }

  .controls-row,
  .sync-grid,
  .metric-grid,
  .month-strip,
  .captcha-panel {
    grid-template-columns: 1fr;
  }

  .sync-card .sync-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .controls-card .controls-row {
    gap: 16px;
  }

  .sync-card .sync-actions {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .date-nav {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .sync-card .date-nav {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .date-nav-button,
  .sync-card .date-nav-button {
    min-height: 48px;
    font-size: 1.25rem;
  }

  .planner-calendar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .planner-weekday,
  .planner-spacer {
    display: none;
  }

  .planner-calendar-cell {
    min-height: 0;
    padding: 14px 14px 16px;
    gap: 10px;
  }

  .planner-calendar-day {
    font-size: 1.2rem;
  }

  .planner-calendar-meta {
    font-size: 0.82rem;
  }

  .planner-calendar-note {
    font-size: 0.64rem;
  }

  .calendar-sheet {
    min-width: 540px;
  }

  .section-month-nav {
    grid-template-columns: 34px minmax(140px, auto) 34px;
    justify-content: start;
    width: 100%;
  }

  .case-row {
    grid-template-columns: 1fr;
    padding: 14px 14px 16px;
  }

  .section-header,
  .month-nav {
    flex-direction: column;
    align-items: start;
  }

  .hero-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule-item {
    flex-direction: column;
  }

  .schedule-side {
    justify-items: start;
  }

  .overview-item {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: calc(100vw - 16px);
    padding: 14px 0 24px;
  }

  .hero-copy,
  .controls-card,
  .sync-card,
  .overview-card,
  .card {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .overview-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .overview-item {
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 18px;
    padding: 10px 12px;
    gap: 10px;
    white-space: normal;
  }

  .metric-grid,
  .month-strip,
  .planner-secondary-grid {
    grid-template-columns: 1fr;
  }

  .planner-main-header,
  .section-header,
  .controls-card .controls-header,
  .sync-card .section-header {
    gap: 12px;
  }

  .selected-date-header {
    align-items: flex-start;
  }

  .selected-date-header .status-pill {
    align-self: flex-start;
  }

  .planner-main-header .planner-month-nav,
  .section-month-nav {
    grid-template-columns: 32px minmax(120px, 1fr) 32px;
    gap: 8px;
  }

  .planner-main-header .month-picker,
  .section-month-picker {
    min-width: 0;
    width: 100%;
    font-size: 0.96rem;
  }

  .planner-main-header .planner-month-arrow,
  .section-month-nav .section-month-arrow {
    min-width: 32px;
    width: 32px;
    height: 32px;
    min-height: 32px;
    font-size: 1rem;
  }

  .calendar-legend {
    justify-content: flex-start;
    gap: 8px 10px;
  }

  .calendar-sheet {
    min-width: 500px;
  }

  .planner-calendar-top {
    align-items: flex-start;
  }

  .planner-calendar-tag,
  .calendar-source-tag,
  .holiday-chip,
  .source-pill,
  .status-pill {
    white-space: normal;
    text-align: center;
  }

  .calendar-axis-day,
  .calendar-slot,
  .calendar-slot-empty {
    min-height: 64px;
  }

  .calendar-slot-datebox {
    width: 30px;
    height: 30px;
  }

  .calendar-slot-day {
    font-size: 1.02rem;
  }

  .calendar-slot-meta {
    font-size: 0.68rem;
  }

  .calendar-slot-note {
    font-size: 0.52rem;
  }

  .captcha-image-box {
    min-height: 100px;
    padding: 10px;
  }

  .captcha-image-box img {
    width: min(100%, 280px);
  }

  .field input,
  .field select,
  .sync-card .field input,
  .sync-card .field select,
  .controls-card .field input,
  .controls-card .field select,
  .auth-form .field input {
    min-height: 50px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: calc(100vw - 12px);
    padding: 10px 0 20px;
  }

  .hero-copy,
  .controls-card,
  .sync-card,
  .overview-card,
  .card {
    padding: 16px 12px;
    border-radius: 18px;
  }

  .eyebrow,
  .controls-card .section-kicker,
  .sync-card .section-kicker,
  .overview-card .section-kicker,
  .card .dhc-section-header .section-kicker,
  .card.overview-card .calendar-section-header .section-kicker {
    font-size: 0.92rem;
    letter-spacing: 0.12em;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 10vw, 2.2rem);
  }

  .hero-subtitle,
  .hero-tenure,
  .hero-text,
  .section-subtext,
  .controls-card .section-subtext,
  .sync-card .section-subtext {
    font-size: 0.94rem;
  }

  .sync-card .field input,
  .sync-card .field select,
  .controls-card .field input,
  .controls-card .field select,
  .auth-form .field input {
    min-height: 48px;
    font-size: 0.96rem;
    padding: 10px 12px;
  }

  .sync-card .sync-button,
  .sync-button {
    min-height: 48px;
    font-size: 0.94rem;
    padding: 10px 14px;
  }

  .planner-main-header .planner-month-nav,
  .section-month-nav {
    grid-template-columns: 30px minmax(108px, 1fr) 30px;
    gap: 6px;
  }

  .planner-main-header .planner-month-arrow,
  .section-month-nav .section-month-arrow {
    min-width: 30px;
    width: 30px;
    height: 30px;
    min-height: 30px;
    font-size: 0.92rem;
  }

  .planner-main-header .month-picker,
  .section-month-picker {
    font-size: 0.9rem;
  }

  .calendar-sheet {
    min-width: 460px;
  }
}
