:root {
  --bg: #f4efe4;
  --bg-strong: #e3dac9;
  --panel: rgba(255, 252, 246, 0.86);
  --panel-strong: #fffaf1;
  --line: rgba(49, 42, 31, 0.12);
  --text: #1f1a14;
  --muted: #685f53;
  --accent: #0e8f74;
  --accent-strong: #0a6c58;
  --accent-soft: rgba(14, 143, 116, 0.12);
  --warm: #c9732d;
  --warm-soft: rgba(201, 115, 45, 0.12);
  --danger: #bf4c32;
  --danger-soft: rgba(191, 76, 50, 0.12);
  --shadow: 0 22px 45px rgba(58, 44, 17, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 143, 116, 0.15), transparent 28%),
    radial-gradient(circle at top right, rgba(201, 115, 45, 0.18), transparent 24%),
    linear-gradient(135deg, #f6f2e8, #ede6d8 52%, #f0ebe2);
}

.auth-gate {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(25, 22, 18, 0.38);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.auth-gate[hidden] {
  display: none;
}

.auth-card {
  width: min(460px, 100%);
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.94);
  box-shadow: var(--shadow);
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.auth-input {
  width: 100%;
}

.auth-message {
  min-height: 1.4rem;
  margin: 14px 0 0;
  color: var(--muted);
}

.auth-link {
  display: inline-flex;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 800;
  cursor: pointer;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(25, 22, 18, 0.46);
  backdrop-filter: blur(8px);
  z-index: 70;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(440px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.modal-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 28px 22px;
  background: rgba(34, 31, 26, 0.96);
  color: #f5efe1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-stack {
  display: grid;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #10a386, #0c6f5b);
  font-size: 1.5rem;
  font-weight: 800;
}

.brand h1,
.topbar h2,
.panel h3,
.hero-panel h3,
.side-panel h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
}

.sidebar .eyebrow {
  color: rgba(255, 240, 218, 0.66);
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  background: transparent;
  color: #e9dfca;
  text-align: left;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
  transform: translateX(2px);
}

.sidebar-card,
.panel,
.hero-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.sidebar-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4ebdc;
  box-shadow: none;
}

.sidebar-muted {
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-title {
  margin: 0 0 8px;
  font-weight: 700;
}

.sidebar-copy {
  margin: 0;
  color: rgba(255, 240, 218, 0.74);
  line-height: 1.5;
}

.main {
  padding: 28px;
}

.topbar,
.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.topbar {
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.topbar-copy {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 720px;
}

.topbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.topbar-nav {
  flex: 1 1 520px;
  justify-content: center;
  margin: 0;
}

.profile-menu {
  position: relative;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px 7px 7px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.profile-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fffaf1;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.profile-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.profile-menu-panel[hidden] {
  display: none;
}

.menu-action {
  width: 100%;
  display: block;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 750;
  cursor: pointer;
}

.menu-action:hover {
  background: var(--accent-soft);
}

.menu-action-danger {
  color: var(--danger);
}

.panel-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: #f6f4ee;
}

.button-secondary {
  background: rgba(255,255,255,0.82);
  color: var(--text);
  border: 1px solid var(--line);
}

.button-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

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

.time-review-summary {
  margin: 18px 0;
}

.time-review-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
}

.time-review-metric,
.time-review-side-item,
.time-review-entry {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
}

.time-review-metric {
  padding: 14px;
}

.time-review-metric span,
.time-review-side-item span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.time-review-metric strong {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
}

.time-review-side-list,
.time-review-queue,
.activity-audit-queue {
  display: grid;
  gap: 12px;
}

.time-review-side-item {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.time-review-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
}

.activity-audit-summary {
  margin: 18px 0;
}

.activity-audit-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
}

.activity-audit-entry-main {
  min-width: 0;
}

.time-review-entry h4,
.activity-audit-entry h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.time-review-entry p,
.activity-audit-entry p {
  margin: 4px 0;
  color: var(--muted);
}

.activity-audit-detail {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: rgba(255, 252, 246, 0.74);
}

.activity-audit-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.activity-audit-detail-grid > div,
.activity-audit-interaction {
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.activity-audit-detail-grid span,
.activity-audit-interaction span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.activity-audit-detail-grid strong {
  overflow-wrap: anywhere;
}

.activity-audit-detail-grid p,
.activity-audit-interaction p {
  margin: 6px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.activity-audit-interactions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.time-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-content: start;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 20px;
  margin-bottom: 20px;
}

.hero-panel,
.side-panel,
.panel {
  padding: 22px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-kicker {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-kicker > div {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(247,241,230,0.92));
  border: 1px solid var(--line);
}

.hero-kicker-label {
  margin: 0 0 8px;
  color: var(--muted);
}

.hero-kicker strong {
  font-size: 1.8rem;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.pill-warm {
  background: var(--warm-soft);
  color: var(--warm);
}

.section-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.switch-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.74);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.switch-chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.section-panel {
  display: none;
}

.section-panel.is-active {
  display: block;
}

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

.stat-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.stat-card strong {
  font-size: 1.8rem;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.58fr;
  gap: 20px;
}

.panel-wide {
  min-width: 0;
  grid-column: 1 / -1;
}

.group-list,
.leader-list,
.approval-list,
.identity-list,
.schedule-list,
.schedule-counts {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.group-item,
.leader-item,
.approval-item,
.identity-item,
.schedule-item,
.schedule-count-card {
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.group-item-top,
.leader-item-top,
.approval-item-top,
.identity-item-top,
.schedule-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.leader-item-meta,
.approval-item-meta,
.identity-item-meta,
.schedule-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.schedule-count-card span,
.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.schedule-count-card strong {
  font-size: 1.7rem;
}

.schedule-help {
  margin-top: 16px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(14, 143, 116, 0.08), rgba(201, 115, 45, 0.08));
}

.schedule-help p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.schedule-import-status {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.82);
}

.schedule-import-header,
.schedule-reference-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.schedule-import-header h3 {
  margin: 0;
}

.schedule-import-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.schedule-import-grid-secondary {
  margin-top: 12px;
}

.schedule-import-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.schedule-import-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.schedule-import-card strong {
  display: block;
  font-size: 1.55rem;
}

.schedule-import-card p,
.schedule-import-note p,
.schedule-reference-item p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.schedule-import-note {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.schedule-import-note code {
  display: inline-block;
  margin-left: 8px;
  color: var(--accent-strong);
}

.schedule-reference-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.schedule-reference-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.schedule-board-wrap {
  margin-top: 18px;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.86);
}

.schedule-board {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.schedule-board th,
.schedule-board td {
  min-width: 180px;
  vertical-align: top;
}

.schedule-worker-column {
  min-width: 220px;
  width: 220px;
  background: #f7f2e8;
}

.schedule-day-header {
  display: grid;
  gap: 4px;
}

.schedule-day-header span {
  color: var(--muted);
  font-size: 0.82rem;
}

.schedule-cell {
  min-height: 124px;
  background: rgba(255, 255, 255, 0.72);
}

.schedule-chip,
.schedule-add-button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
  background: rgba(14, 143, 116, 0.08);
  cursor: pointer;
}

.schedule-chip + .schedule-chip {
  margin-top: 8px;
}

.schedule-chip strong {
  display: block;
  margin-bottom: 6px;
}

.schedule-chip span {
  color: var(--muted);
  font-size: 0.84rem;
}

.schedule-chip-draft {
  background: rgba(201, 115, 45, 0.1);
}

.schedule-add-button {
  min-height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--muted);
  background: transparent;
}

.schedule-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

.schedule-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.schedule-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  resize: vertical;
}

.schedule-surface {
  padding: 0;
  overflow: hidden;
}

.schedule-toolbar-top,
.schedule-toolbar-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px 0;
}

.schedule-toolbar-main {
  padding-bottom: 16px;
}

.schedule-toolbar-left,
.schedule-nav-strip,
.schedule-view-strip,
.schedule-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.schedule-meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.schedule-meta-links strong {
  color: #2d6fd2;
  text-transform: none;
  font-size: 1rem;
  font-weight: 500;
}

.schedule-meta-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.schedule-filter-popovers {
  position: relative;
  padding: 0 20px;
}

.schedule-filter-panel {
  position: absolute;
  top: 8px;
  left: 20px;
  z-index: 5;
  width: 320px;
  max-height: 380px;
  overflow: auto;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.98);
  box-shadow: var(--shadow);
}

#scheduleMembersFilterPanel {
  left: 210px;
}

.schedule-filter-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.schedule-status-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.schedule-status-toggle .button {
  justify-content: center;
}

.schedule-filter-options {
  display: grid;
  gap: 8px;
}

.schedule-filter-heading {
  margin: 8px 0 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-filter-option {
  display: flex;
  gap: 10px;
  align-items: center;
}

.schedule-filter-option-muted {
  cursor: not-allowed;
  opacity: 0.58;
}

.schedule-filter-option-warning {
  color: #b42318;
}

.schedule-worker-status-action {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  font-size: 0.75rem;
  font-weight: 800;
}

.schedule-mode-toggle {
  display: inline-flex;
  border-radius: 12px;
  overflow: hidden;
}

.schedule-mode-toggle .button {
  border-radius: 0;
}

.schedule-dropdown-pair {
  display: flex;
  align-items: center;
  gap: 12px;
}

.schedule-inline-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.schedule-inline-field span {
  white-space: nowrap;
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.schedule-layout.editor-open {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.schedule-board-pane {
  min-width: 0;
  padding: 0 0 14px;
}

.schedule-editor-pane {
  border-left: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.92);
  padding: 18px;
}

.schedule-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.schedule-editor-header h3 {
  margin: 0;
}

.schedule-check-row {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.schedule-check-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.schedule-worker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 24px;
}

.schedule-worker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(14, 143, 116, 0.12);
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.schedule-worker-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.schedule-chip-placeholder {
  color: var(--muted);
  font-size: 0.88rem;
}

.schedule-editor-actions {
  justify-content: flex-end;
}

.schedule-counts {
  padding: 0 20px 16px;
  margin-top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.schedule-count-card {
  padding: 12px 14px;
  box-shadow: none;
}

.schedule-board-wrap {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.schedule-board {
  background: #fff;
}

.schedule-board th,
.schedule-board td {
  padding: 0;
  border-bottom: 1px solid rgba(49, 42, 31, 0.1);
  border-right: 1px solid rgba(49, 42, 31, 0.08);
  white-space: normal;
}

.schedule-board thead th {
  padding: 10px 12px 6px;
  background: #f1f1f1;
  position: sticky;
  top: 0;
  z-index: 2;
}

.schedule-worker-column {
  min-width: 280px;
  width: 280px;
  background: #fafafa;
}

.schedule-day-header strong {
  font-size: 0.96rem;
}

.schedule-day-header span {
  font-weight: 700;
}

.schedule-today-column {
  background: #fff6d8 !important;
}

.schedule-row-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.schedule-row-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #d9d9d9;
  color: #4b4b4b;
  font-weight: 700;
  flex: none;
}

.schedule-row-label strong {
  display: block;
  margin-bottom: 4px;
}

.schedule-row-label span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.schedule-cell {
  padding: 8px 6px;
  min-height: 78px;
}

.schedule-chip,
.schedule-add-button {
  color: white;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.14);
}

.schedule-add-button {
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  min-height: 62px;
}

.schedule-chip strong,
.schedule-chip span {
  color: inherit;
}

.schedule-chip strong {
  font-size: 0.84rem;
  line-height: 1.15;
}

.schedule-chip span {
  font-size: 0.76rem;
  line-height: 1.2;
  opacity: 0.95;
}

.schedule-chip-draft {
  outline: 2px dashed rgba(255,255,255,0.65);
  outline-offset: -3px;
}

.schedule-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.schedule-item-source {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.schedule-item-source p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  white-space: pre-wrap;
}

.schedule-actions {
  flex-wrap: wrap;
}

.item-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(27, 25, 22, 0.94);
  color: #f7f3ea;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.2);
  z-index: 20;
}

.bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--bg-strong);
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d9823b, #0e8f74);
}

.nextcloud-status {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.report-banner {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(14, 143, 116, 0.12), rgba(201, 115, 45, 0.12));
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.report-banner-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.timesheet-import-status {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.82);
}

.timesheet-import-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.timesheet-import-header h3 {
  margin: 0;
}

.timesheet-import-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.timesheet-import-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.timesheet-import-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.timesheet-import-card strong {
  display: block;
  font-size: 1.45rem;
}

.timesheet-import-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.timesheet-year-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.timesheet-year-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.timesheet-year-item span {
  color: var(--muted);
}

.search {
  min-width: 260px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.72);
}

.search-small {
  min-width: 180px;
}

.search-compact {
  min-width: 150px;
}

.search-select {
  min-width: 180px;
  cursor: pointer;
}

.table-wrap {
  margin-top: 16px;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 252, 247, 0.82);
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

thead th {
  position: sticky;
  top: 0;
  background: #f7f2e8;
  z-index: 1;
}

tbody tr:hover {
  background: rgba(14, 143, 116, 0.06);
}

.user-name {
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-warm {
  background: var(--warm-soft);
  color: var(--warm);
}

.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.policy-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.policy-card {
  padding: 18px;
  border-radius: 16px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.policy-card strong {
  display: block;
  margin-bottom: 8px;
}

.policy-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.empty-state {
  padding: 18px;
  border-radius: 16px;
  background: var(--panel-strong);
  border: 1px dashed var(--line);
  color: var(--muted);
}

@media (max-width: 1200px) {
  .content-grid,
  .hero-grid,
  .policy-grid,
  .schedule-counts {
    grid-template-columns: 1fr;
  }

  .schedule-import-grid {
    grid-template-columns: 1fr;
  }

  .timesheet-import-grid,
  .timesheet-year-list {
    grid-template-columns: 1fr;
  }

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

  .schedule-layout.editor-open {
    grid-template-columns: 1fr;
  }

  .schedule-editor-pane {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .main {
    padding: 18px;
  }

  .topbar,
  .panel-header,
  .report-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .schedule-toolbar-top,
  .schedule-toolbar-main,
  .schedule-nav-strip,
  .schedule-view-strip,
  .schedule-toolbar-left,
  .schedule-dropdown-pair {
    flex-direction: column;
    align-items: stretch;
  }

  .schedule-filter-panel,
  #scheduleMembersFilterPanel {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .hero-kicker,
  .stats-grid,
  .schedule-item-grid {
    grid-template-columns: 1fr;
  }

  .schedule-time-grid {
    grid-template-columns: 1fr;
  }

  .search {
    min-width: 0;
    width: 100%;
  }
}
