:root {
  --bg: #f0f4f8;
  --panel: #ffffff;
  --line: #bcccdc;
  --line-strong: #829ab1;
  --text: #102a43;
  --accent: #486581;
  --green: #90ee90;
  --orange: #fff44f;
  --red: #102a43;
  --fixed-border: #102a43;
  --duration-border: #486581;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 5% 10%, #ffffff 0%, var(--bg) 52%, #bcccdc 100%);
}

body.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-card {
  width: min(480px, 100%);
  border: 1px solid #bcccdc;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(16, 42, 67, 0.08);
  padding: 26px 24px;
  display: grid;
  gap: 14px;
}

.auth-card h1 {
  margin: 0;
  font-size: 1.45rem;
}

.auth-subtitle {
  margin: 0;
  color: #486581;
}

.auth-primary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border: 1px solid #1d4f91;
  background: #1d4f91;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 14px;
}

.auth-primary-btn:hover {
  background: #163d70;
}

.auth-note {
  margin: 0;
  font-size: 0.9rem;
  color: #627d98;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 100;
  overflow: visible;
  padding: 10px 16px;
  background: #f0f4f8;
  border-bottom: 1px solid #bcccdc;
}
.topbar h1 { margin: 0; font-size: 1.2rem; }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  overflow: visible;
}

.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  padding: 12px;
  height: calc(100vh - 58px);
  min-height: 0;
}

.left-nav {
  background: #ffffff;
  border: 1px solid #bcccdc;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.nav-item {
  width: 100%;
  text-align: left;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #d9e2ec;
  background: #f8fbff;
  font-weight: 700;
  color: #334e68;
}
.nav-item.active {
  border-color: #1d4f91;
  background: #ebf8ff;
  color: #1d4f91;
}

.view-stack {
  min-height: 0;
}

.app-view {
  height: 100%;
  min-height: 0;
}

.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.view-header h2 {
  margin: 0;
  font-size: 1.12rem;
}

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

.dashboard-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
}
.dashboard-filter-icon {
  font-size: 0.9rem;
  color: #486581;
}
.dashboard-filter span {
  font-weight: 700;
}

.dashboard-table-wrap {
  height: calc(100% - 42px);
  overflow: auto;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #ffffff;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
.dashboard-table th,
.dashboard-table td {
  border-bottom: 1px solid #e6edf4;
  border-right: 1px solid #f0f4f8;
  padding: 8px;
  font-size: 0.83rem;
  text-align: right;
  white-space: nowrap;
}
.dashboard-table th:first-child,
.dashboard-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: #ffffff;
  z-index: 3;
}
.dashboard-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f8fbff;
}
.dashboard-table .client-row td {
  background: #f0f4f8;
  font-weight: 700;
  color: #243b53;
}
.dashboard-table .project-row td:first-child {
  font-weight: 700;
}
.dashboard-table .package-row td:first-child {
  padding-left: 30px;
  color: #486581;
}
.dashboard-toggle {
  margin-right: 6px;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.8rem;
  color: #486581;
}

.projects-hint {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: #486581;
}

.projects-list {
  height: calc(100% - 72px);
  overflow: auto;
  display: grid;
  gap: 10px;
  align-content: start;
}

.project-card {
  border: 1px solid #d9e2ec;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 10px;
}

.project-card h3 {
  margin: 0;
  font-size: 0.95rem;
}

.project-meta {
  font-size: 0.8rem;
  color: #627d98;
}

.project-users {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 6px;
}

.project-user-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  border: 1px solid #e6edf4;
  border-radius: 8px;
  padding: 6px;
  background: #f8fbff;
}

.project-package-list {
  display: grid;
  gap: 4px;
}

.project-package-item {
  font-size: 0.8rem;
  color: #334e68;
}

.add-workpackage-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.view-empty {
  padding: 10px;
  font-size: 0.86rem;
  color: #627d98;
}

.settings-shell {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  height: calc(100% - 44px);
  min-height: 0;
}

.settings-menu {
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.settings-tab {
  width: 100%;
  text-align: left;
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid #d9e2ec;
  background: #f8fbff;
  font-weight: 700;
}
.settings-tab.active {
  border-color: #1d4f91;
  color: #1d4f91;
  background: #ebf8ff;
}

.settings-content {
  min-height: 0;
}

.settings-panel {
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
  height: 100%;
  min-height: 0;
  display: grid;
  gap: 8px;
  grid-template-rows: auto auto auto 1fr;
}
.settings-panel h3 {
  margin: 0;
  font-size: 0.98rem;
}

.settings-add-user-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.settings-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 10px;
}

.settings-user-list {
  border: 1px solid #e6edf4;
  border-radius: 8px;
  padding: 6px;
  overflow: auto;
  min-height: 0;
  display: grid;
  gap: 6px;
  align-content: start;
}

.settings-user-item {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 8px;
  background: #f8fbff;
  cursor: pointer;
}
.settings-user-item.active {
  border-color: #1d4f91;
  background: #ebf8ff;
}
.settings-user-item-title {
  font-size: 0.86rem;
  font-weight: 700;
}
.settings-user-item-sub {
  font-size: 0.76rem;
  color: #627d98;
}

.settings-user-detail {
  border: 1px solid #e6edf4;
  border-radius: 8px;
  padding: 10px;
  overflow: auto;
  min-height: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}

.settings-detail-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px 10px;
  font-size: 0.84rem;
}

.settings-projects-list {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #f8fbff;
  padding: 8px;
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 6px;
}

.settings-project-row {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 0.82rem;
}

.active-user-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #ffffff;
  position: relative;
  z-index: 110;
  overflow: visible;
}
.active-user-label {
  font-size: 0.74rem;
  color: #486581;
  font-weight: 700;
}
.active-user-trigger {
  border: none;
  background: transparent;
  color: #1d4f91;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: underline;
  padding: 2px 3px;
}
.active-user-trigger:hover {
  background: transparent;
  color: #102a43;
}
.active-user-trigger:focus-visible {
  outline: 2px solid #486581;
  outline-offset: 2px;
  border-radius: 4px;
}
.user-picker-dialog {
  width: min(560px, calc(100vw - 24px));
}
.user-picker-list {
  display: grid;
  gap: 6px;
}
.user-picker-list h4 {
  margin: 10px 0 4px;
  font-size: 0.78rem;
  color: #486581;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.user-picker-item {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #f8fbff;
  padding: 8px 10px;
  text-align: left;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.user-picker-item.active {
  border-color: #2b6cb0;
  background: #ebf8ff;
}
.user-picker-actions {
  display: inline-flex;
  gap: 6px;
}
.allowlist-add-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.allowlist-add-row input[type="email"] {
  min-width: 0;
}
.hidden {
  display: none !important;
}

button {
  border: 1px solid #829ab1;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
button:hover { background: #f0f4f8; }

.layout {
  display: grid;
  grid-template-columns: 15% 1fr;
  gap: 12px;
  height: 100%;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.sidebar, .week-panel {
  background: var(--panel);
  border: 1px solid #bcccdc;
  border-radius: 12px;
  padding: 10px;
  min-height: 0;
}
.sidebar {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.month-nav, .week-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.week-nav {
  justify-content: center;
  gap: 14px;
}
.week-view-mode {
  margin: 6px 0 10px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}
.week-view-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #bcccdc;
  border-radius: 999px;
  padding: 2px;
  background: #f8fbff;
}
.week-view-mode-btn {
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: #486581;
  background: transparent;
}
.week-view-mode-btn.active {
  background: #2b6cb0;
  color: #ffffff;
}
.week-view-mode-btn:hover {
  background: #d9e2ec;
}
.week-view-mode-btn.active:hover {
  background: #245f99;
}
.week-nav-arrow {
  font-size: 2.35rem;
  line-height: 1;
  color: #486581;
  cursor: pointer;
  user-select: none;
}
.week-nav-arrow:hover {
  color: #102a43;
}
.week-nav-arrow:focus-visible {
  outline: 2px solid #486581;
  outline-offset: 2px;
  border-radius: 4px;
}
.week-clipboard-btn {
  border: 1px solid #c1121f;
  background: #fff5f5;
  color: #c1121f;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}
.week-clipboard-btn:hover {
  background: #fee2e2;
}
.week-clipboard-btn[hidden] {
  display: none !important;
}
.month-actions {
  margin-top: 4px;
}
.month-actions button {
  width: 100%;
  padding: 4px 6px;
  font-size: 0.62rem;
}
.month-nav h2, .week-nav h2 {
  font-size: 1rem;
  margin: 0;
  text-align: center;
}
.sidebar .month-nav h2 {
  font-size: 0.72rem;
}
.month-section {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 4px;
}

.weekday-row {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.58rem;
  color: #486581;
}

.month-grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.month-day {
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid #bcccdc;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.56rem;
  padding: 0;
}
.month-day.empty { opacity: 0.2; cursor: default; }
.month-day.selected {
  outline: none;
  border-color: #2b6cb0;
  box-shadow: inset 0 0 0 2px #2b6cb0;
}
.month-day.selected.today {
  box-shadow:
    inset 0 0 0 2px #2b6cb0,
    0 0 0 1px #2b6cb0;
}
.month-day.today {
  border: 2px solid #c1121f;
  border-radius: 50%;
}
.month-day.red {
  color: #102a43;
  background: #e5e7eb;
  font-weight: 700;
}
.month-day.orange {
  color: #102a43;
  background: #fff44f;
  font-weight: 700;
}
.month-day.green {
  color: #102a43;
  background: #90ee90;
  font-weight: 700;
}

.legend {
  display: none;
  margin-top: 6px;
  font-size: 0.62rem;
}
.legend p { margin: 4px 0; }
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dot.red { background: #e5e7eb; border: 1px solid #829ab1; }
.dot.orange { background: #fff44f; }
.dot.green { background: #90ee90; }

.gap-summary {
  display: none;
}
.filter-panels {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.filter-panel {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #f8fbff;
  padding: 6px;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  overflow: hidden;
}
.filter-panel h3 {
  margin: 0 0 6px;
  font-size: 0.66rem;
  color: #334e68;
}
.filter-list {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 4px;
}
.filter-client {
  font-size: 0.58rem;
  color: #486581;
  padding: 2px 2px 0;
  font-weight: 700;
}
.filter-item {
  border: none;
  background: transparent;
  padding: 2px 2px;
  font-size: 0.58rem;
  text-align: left;
  cursor: pointer;
  color: #334e68;
}
.filter-item:hover {
  text-decoration: underline;
}
.filter-item.active {
  color: #1d4f91;
  font-weight: 700;
  text-decoration: underline;
}
.filter-empty {
  font-size: 0.58rem;
  color: #627d98;
  padding: 4px 2px;
}

.week-view {
  display: grid;
  grid-template-columns: 70px repeat(7, 1fr);
  gap: 6px;
  min-height: 760px;
}

.time-col {
  position: relative;
  border-right: 1px solid #bcccdc;
}
.time-label {
  position: absolute;
  left: 0;
  width: 100%;
  font-size: 0.75rem;
  color: #486581;
  transform: translateY(-50%);
}

.day-col {
  position: relative;
  border: 1px solid #bcccdc;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(#f8fbff, #ffffff);
}
.day-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  z-index: 6;
  background: #f0f4f8;
  border-bottom: 1px solid #bcccdc;
  font-size: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.day-header-title {
  display: inline-block;
}
.day-header-total {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  color: #486581;
}
.day-header.today {
  color: #c1121f;
  font-weight: 800;
}
.day-body {
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  bottom: 0;
}
.day-body.clipboard-active {
  cursor: copy;
}
.business-band {
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(72, 101, 129, 0.08);
  z-index: 1;
}
.week-more-marker {
  position: absolute;
  right: 4px;
  z-index: 4;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.62rem;
  font-weight: 700;
  color: #c1121f;
  text-decoration: underline;
  cursor: pointer;
}
.week-more-marker.before {
  transform: translateY(0);
}
.week-more-marker.after {
  transform: translateY(-100%);
}
.week-more-marker:hover {
  color: #8a0f19;
}
.current-time-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 2px solid #c1121f;
  z-index: 4;
  pointer-events: none;
}
.grid-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
  z-index: 1;
}
.grid-line.hour { border-top-color: var(--line-strong); }

.day-columns {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  z-index: 2;
}
.day-columns.mixed {
  grid-template-columns: 1fr 1fr;
}
.entry-col {
  position: relative;
}
.entry-col + .entry-col {
  border-left: 1px dashed #bcccdc;
}

.entry-block {
  position: absolute;
  left: 4px;
  right: 4px;
  border-radius: 6px;
  padding: 4px;
  background: #ffffff;
  font-size: 0.72rem;
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
}
.entry-block.draggable-local {
  cursor: grab;
}
.entry-block.dragging {
  opacity: 0.85;
  box-shadow: 0 2px 10px rgba(16, 42, 67, 0.2);
}
.entry-block.dimmed-by-filter {
  opacity: 0.42;
}
.entry-block.fixed {
  border: 2px solid var(--fixed-border);
}
.entry-block.duration {
  border: 2px dashed var(--duration-border);
}
.entry-block.sent {
  background: #90ee90;
  border-color: #4caf50;
}
.entry-block.local { background: #e9f0f7; }
.entry-block.error {
  background: #dfe9f2;
  border-color: #102a43;
}
.entry-label {
  display: block;
  line-height: 1.1;
  padding-right: 30px;
}
.copy-icon {
  position: absolute;
  bottom: 1px;
  left: 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1;
  color: #102a43;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.entry-block:hover .copy-icon,
.entry-block:focus-within .copy-icon {
  opacity: 1;
  pointer-events: auto;
}
.clipboard-preview {
  position: absolute;
  left: 4px;
  right: 4px;
  border-radius: 6px;
  border: 2px dashed #2b6cb0;
  background: rgba(43, 108, 176, 0.2);
  z-index: 3;
  pointer-events: none;
}
.clipboard-preview.hidden {
  display: none;
}
.send-icon {
  position: absolute;
  top: 1px;
  right: 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  color: #102a43;
}
.delete-icon {
  position: absolute;
  right: 2px;
  bottom: 1px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  color: #102a43;
}
.edit-icon {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1;
  color: #102a43;
}
.resize-handle {
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  z-index: 5;
}
.resize-handle.top {
  top: -4px;
  cursor: ns-resize;
}
.resize-handle.bottom {
  bottom: -4px;
  cursor: ns-resize;
}

#entryForm {
  display: grid;
  gap: 8px;
}
.mode-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}
.mode-label {
  min-width: 56px;
  font-weight: 600;
}
.mode-option {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
label {
  display: grid;
  gap: 3px;
  font-size: 0.82rem;
}
.field-hidden {
  display: none;
}
input, select, textarea {
  border: 1px solid #829ab1;
  border-radius: 6px;
  padding: 6px;
  font-size: 0.88rem;
  background: #fff;
}
.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}
.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.entry-form-actions {
  display: grid;
  gap: 8px;
}
.inline-error {
  color: #102a43;
  font-size: 0.85rem;
  min-height: 16px;
}
.entry-state {
  font-size: 0.82rem;
  margin-bottom: 8px;
}
.push-result-message {
  margin: 0 0 10px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 300px;
  overflow: auto;
  background: #f0f4f8;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 8px;
  font-size: 0.82rem;
  color: #102a43;
}
.confirm-message {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #102a43;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.modal.hidden {
  display: none;
}
.is-hidden {
  display: none !important;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 42, 67, 0.35);
}
.modal-dialog {
  position: relative;
  z-index: 1001;
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  margin: 12px auto;
  background: #fff;
  border: 1px solid #bcccdc;
  border-radius: 12px;
  padding: 12px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  margin: 0 0 10px;
}

.sync-progress-lines {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.sync-progress-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #f8fbff;
  font-size: 0.86rem;
}
.sync-progress-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sync-progress-item-btn {
  min-width: 70px;
  padding: 4px 8px;
}
.sync-progress-row.running {
  border-color: #829ab1;
  background: #f0f4f8;
}
.sync-progress-row.ok {
  border-color: #2f855a;
  background: #f0fff4;
}
.sync-progress-row.error {
  border-color: #c53030;
  background: #fff5f5;
}
.sync-progress-status {
  font-weight: 700;
}
.sync-progress-actions {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 58px);
  }
  .left-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: stretch;
  }
  .nav-item {
    text-align: center;
    padding: 8px;
  }
  .app-view {
    min-height: 70vh;
  }
  .settings-shell {
    grid-template-columns: 1fr;
    height: auto;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .week-view {
    min-height: 680px;
  }
  .topbar h1 {
    font-size: 1.04rem;
  }
  .active-user-controls {
    padding: 4px 6px;
  }
}
