.wc-page {
  padding: 5.75rem 0 3rem;
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(135, 169, 107, 0.14), transparent 55%),
    var(--bg, #fdfcf8);
  min-height: 100vh;
  color: var(--text, #1f2a1a);
}

.wc-page-fullscreen {
  --wc-nav-h: 74px;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--wc-nav-h);
  bottom: 0;
  padding: 0;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 40;
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(135, 169, 107, 0.14), transparent 55%),
    var(--bg, #fdfcf8);
}

.wc-page-fullscreen .wc-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

.wc-page-fullscreen .wc-toolbar {
  position: relative;
  top: auto;
  z-index: 50;
  flex: 0 0 auto;
  flex-shrink: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  padding: 0.65rem 1rem;
  background: color-mix(in srgb, var(--bg, #fdfcf8) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(135, 169, 107, 0.22);
}

.wc-page-fullscreen .wc-session,
.wc-page-fullscreen .wc-error,
.wc-page-fullscreen .wc-loading {
  padding: 0.35rem 1rem;
  flex-shrink: 0;
}

.wc-page-fullscreen .wc-board {
  flex: 1;
  min-height: 0;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(135, 169, 107, 0.2);
  display: flex;
  flex-direction: column;
}

.wc-page-fullscreen .wc-scroll {
  flex: 1;
  max-height: none;
  min-height: 0;
}

.wc-intro {
  margin-bottom: 1.25rem;
}

.wc-shell {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(135, 169, 107, 0.25);
  position: sticky;
  top: 4.5rem;
  z-index: 20;
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .wc-toolbar {
  background: rgba(24, 28, 22, 0.88);
}

.wc-toolbar-nav,
.wc-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.wc-icon-btn {
  min-width: 2.25rem;
  padding-inline: 0.55rem;
  font-size: 1.25rem;
  line-height: 1;
}

.wc-week-label {
  font-weight: 700;
  margin-left: 0.35rem;
}

.wc-session {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted, #5c6b57);
}

.wc-link {
  background: none;
  border: none;
  color: #5b6b4a;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.wc-error {
  color: #b91c1c;
  margin: 0;
  font-size: 0.9rem;
}

.wc-status {
  color: #3f6212;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

[data-theme="dark"] .wc-status {
  color: #b7e063;
}

.wc-loading,
.wc-empty {
  color: var(--muted, #5c6b57);
  padding: 1rem 0;
}

.wc-board {
  border-radius: 16px;
  border: 1px solid rgba(135, 169, 107, 0.25);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .wc-board {
  background: rgba(20, 24, 18, 0.7);
}

.wc-dayheads {
  display: grid;
  grid-template-columns: 56px repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid rgba(135, 169, 107, 0.2);
  flex-shrink: 0;
}

.wc-day-head-cell {
  border-left: 1px solid rgba(135, 169, 107, 0.15);
  padding: 0.45rem 0.35rem;
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
  font-size: 0.75rem;
  color: var(--muted, #5c6b57);
}

.wc-day-head-cell.is-today {
  background: rgba(135, 169, 107, 0.06);
}

.wc-day-head-cell strong {
  font-size: 0.95rem;
  color: inherit;
}

.wc-google-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.wc-google-btn {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.wc-google-btn iframe {
  margin: 0 auto !important;
}

.wc-auth-sep {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--muted, #5c6b57);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wc-auth-sep::before,
.wc-auth-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(135, 169, 107, 0.35);
}

.wc-auth-sep span {
  white-space: nowrap;
}

.wc-sync-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0.5rem 0 1rem;
}

.wc-sync-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  text-align: left;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(135, 169, 107, 0.35);
  background: rgba(135, 169, 107, 0.06);
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.wc-sync-option:hover:not(:disabled) {
  background: rgba(135, 169, 107, 0.14);
  border-color: rgba(135, 169, 107, 0.55);
}

.wc-sync-option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wc-sync-option strong {
  font-size: 0.95rem;
}

.wc-sync-option span {
  font-size: 0.8rem;
  line-height: 1.35;
  opacity: 0.75;
}

.wc-sync-option-both {
  border-color: rgba(255, 191, 0, 0.45);
  background: rgba(255, 191, 0, 0.08);
}

.wc-sync-option-both:hover:not(:disabled) {
  background: rgba(255, 191, 0, 0.16);
  border-color: rgba(255, 191, 0, 0.65);
}

[data-theme="dark"] .wc-sync-option {
  background: rgba(168, 197, 140, 0.08);
  border-color: rgba(168, 197, 140, 0.3);
}

.wc-origin-hint {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  opacity: 0.7;
}

.wc-dump-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.wc-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #87a96b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.wc-dump-add {
  margin-bottom: 1rem;
}

.wc-dump-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 280px;
  overflow: auto;
  margin-bottom: 0.75rem;
}

.wc-dump-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(135, 169, 107, 0.1);
  border: 1px solid rgba(135, 169, 107, 0.2);
}

.wc-dump-title {
  font-weight: 600;
  flex: 1;
  min-width: 120px;
}

.wc-dump-actions {
  display: flex;
  gap: 0.35rem;
}

.wc-allday {
  display: grid;
  grid-template-columns: 56px repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid rgba(135, 169, 107, 0.2);
  min-height: 72px;
}

.wc-gutter-label {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.4rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted, #5c6b57);
}

.wc-allday-cell {
  border-left: 1px solid rgba(135, 169, 107, 0.15);
  padding: 0.35rem;
  min-height: 72px;
}

.wc-allday-cell.is-today,
.wc-day-col.is-today {
  background: rgba(135, 169, 107, 0.06);
}

.wc-day-head {
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
  color: var(--muted, #5c6b57);
}

.wc-day-head strong {
  font-size: 0.95rem;
  color: inherit;
}

.wc-allday-tasks {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wc-chip {
  font-size: 0.7rem;
  color: #fff;
  border-radius: 6px;
  padding: 0.2rem 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
}

.wc-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  border: 1px solid rgba(135, 169, 107, 0.35);
}

.wc-back:hover {
  background: rgba(135, 169, 107, 0.12);
}

.wc-scroll {
  overflow: auto;
  max-height: min(70vh, 820px);
}

.wc-grid {
  display: grid;
  grid-template-columns: 56px repeat(7, minmax(0, 1fr));
  position: relative;
  min-width: 720px;
}

.wc-hours {
  position: relative;
}

.wc-hour {
  position: absolute;
  right: 6px;
  transform: translateY(-50%);
  font-size: 0.68rem;
  color: var(--muted, #5c6b57);
  font-variant-numeric: tabular-nums;
}

.wc-day-col {
  position: relative;
  border-left: 1px solid rgba(135, 169, 107, 0.15);
}

.wc-day-col.is-dragging-over {
  outline: 1px dashed transparent;
}

.wc-day-col.is-drop-target {
  background: rgba(135, 169, 107, 0.12);
  box-shadow: inset 0 0 0 2px rgba(135, 169, 107, 0.45);
}

.wc-band {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  overflow: hidden;
}

.wc-band-empty {
  border-top: 1px dashed rgba(135, 169, 107, 0.35);
  border-bottom: 1px dashed rgba(135, 169, 107, 0.2);
}

.wc-band-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.2rem 0.35rem;
  color: rgba(31, 42, 26, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-band-label-empty {
  font-size: 0.55rem;
  font-weight: 600;
  opacity: 0.72;
  line-height: 1.1;
  padding: 0.12rem 0.3rem;
}

[data-theme="dark"] .wc-band-label {
  color: rgba(240, 244, 236, 0.55);
}

[data-theme="dark"] .wc-band-empty {
  border-top-color: rgba(168, 197, 140, 0.35);
  border-bottom-color: rgba(168, 197, 140, 0.18);
}

.wc-hour-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(135, 169, 107, 0.12);
  pointer-events: none;
}

.wc-event {
  position: absolute;
  left: 3px;
  right: 3px;
  border-radius: 8px;
  padding: 0.15rem 0.4rem;
  color: #fff;
  font-size: 0.72rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 2;
  line-height: 1.2;
  border: none;
  cursor: grab;
  text-align: left;
  font: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0.05rem;
  width: auto;
  min-height: 0;
  touch-action: none;
  user-select: none;
}

.wc-event.is-compact {
  padding: 0 0.4rem;
}

.wc-event:active {
  cursor: grabbing;
}

.wc-event.is-dragging {
  opacity: 0.35;
  cursor: grabbing;
  z-index: 5;
}

.wc-drag-ghost {
  position: fixed;
  z-index: 120;
  pointer-events: none;
  max-width: 180px;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: #5b6b4a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-event-time {
  display: block;
  flex-shrink: 0;
  opacity: 0.85;
  font-size: 0.65rem;
  line-height: 1.1;
}

.wc-event-title {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.wc-event.is-compact .wc-event-title {
  font-size: 0.7rem;
  line-height: 1.15;
}

.wc-convert {
  margin-top: 0.5rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(135, 169, 107, 0.18), rgba(255, 191, 0, 0.12));
  border: 1px solid rgba(135, 169, 107, 0.28);
}

.wc-convert p {
  margin: 0 0 0.85rem;
  font-weight: 600;
}

/* Modals */
.wc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 18, 0.45);
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.wc-modal {
  width: min(440px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: var(--bg, #fdfcf8);
  color: var(--text, #1f2a1a);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .wc-modal {
  background: #1a1f18;
}

.wc-modal-wide {
  width: min(520px, 100%);
}

.wc-modal h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.wc-modal-sub,
.wc-hint {
  margin: 0 0 1rem;
  color: var(--muted, #5c6b57);
  font-size: 0.9rem;
  line-height: 1.45;
}

.wc-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wc-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.wc-form input,
.wc-form select {
  font: inherit;
  font-weight: 500;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(135, 169, 107, 0.35);
  background: rgba(255, 255, 255, 0.8);
  color: inherit;
}

[data-theme="dark"] .wc-form input,
[data-theme="dark"] .wc-form select {
  background: rgba(0, 0, 0, 0.25);
}

.wc-check {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
  font-weight: 500 !important;
}

.wc-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.wc-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.wc-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.wc-map-legend-item i,
.wc-map-row i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.wc-map-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  max-height: 220px;
  overflow: auto;
}

.wc-map-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(135, 169, 107, 0.08);
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.wc-map-row.is-selected {
  border-color: #87a96b;
  background: rgba(135, 169, 107, 0.18);
}

.wc-map-swatches {
  display: flex;
  gap: 0.5rem;
}

.wc-swatch {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
}

.wc-swatch.is-on {
  border-color: #1f2a1a;
  box-shadow: 0 0 0 2px #fff;
}

.wc-map-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.wc-slot-hint {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(135, 169, 107, 0.45);
  background: rgba(135, 169, 107, 0.1);
  font-size: 0.85rem;
  line-height: 1.35;
}

.wc-slot-hint i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.wc-slot-hint strong {
  display: block;
  margin-bottom: 0.15rem;
}

.wc-slot-hint span {
  color: var(--muted, #5c6b57);
  font-size: 0.8rem;
}

.wc-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wc-field-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted, #5c6b57);
}

.wc-slot-select {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(135, 169, 107, 0.35);
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.wc-slot-select.is-open {
  border-color: rgba(135, 169, 107, 0.7);
  box-shadow: 0 0 0 2px rgba(135, 169, 107, 0.18);
}

.wc-slot-select-text,
.wc-slot-select-placeholder {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.wc-slot-select-placeholder {
  color: var(--muted, #5c6b57);
}

.wc-slot-caret {
  flex-shrink: 0;
  opacity: 0.55;
  font-size: 0.75rem;
}

.wc-slot-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.wc-slot-menu {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  max-height: 14rem;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(135, 169, 107, 0.35);
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 42, 26, 0.14);
}

.wc-slot-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.6rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}

.wc-slot-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wc-slot-option:hover,
.wc-slot-option.is-active {
  background: rgba(135, 169, 107, 0.12);
}

[data-theme="dark"] .wc-slot-select,
[data-theme="dark"] .wc-slot-menu {
  background: #1f2a1a;
  border-color: rgba(168, 197, 140, 0.28);
  color: #f0f4ec;
}

[data-theme="dark"] .wc-slot-option:hover,
[data-theme="dark"] .wc-slot-option.is-active {
  background: rgba(168, 197, 140, 0.16);
}

.wc-detail-list {
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wc-detail-list div {
  display: grid;
  gap: 0.2rem;
}

.wc-detail-list dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #5c6b57);
}

.wc-detail-list dd {
  margin: 0;
  font-size: 0.95rem;
}

.wc-energy-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.wc-energy-pill i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.wc-muted {
  color: var(--muted, #5c6b57);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .wc-page-fullscreen {
    --wc-nav-h: 74px;
  }

  html.mobile-app-banner-visible .wc-page-fullscreen {
    --wc-nav-h: 138px;
  }

  .wc-toolbar {
    top: 3.75rem;
  }

  .wc-page-fullscreen .wc-toolbar {
    top: auto;
  }

  .wc-dayheads,
  .wc-allday {
    min-width: 720px;
  }

  .wc-board {
    overflow-x: auto;
  }
}
