/* ============================================================================
 * WeekDone — Authentic Microsoft To Do (Fluent Design / Wunderlist) System
 * 1. Zero Emojis (100% 1.5px Fluent Monoline SVG Icons)
 * 2. Calm, Low-Noise Task Cards (Hover-Reveal Ghost Focus, Drag-and-Drop, Soft Elevation)
 * 3. Borderless Inline Editing (Zero Dashed Boxes or Native Browser Chrome)
 * 4. Acrylic / Mica Material Hierarchy (Translucent Sidebar + Soft Canvas + Borderless Inspector Groups)
 * 5. Quiet Corner Chrome (Options tucked in ••• popover; clean "+ Quick Capture" footer)
 * ============================================================================ */

:root {
  --wd-accent: #2564CF;
  --wd-accent-hover: #1D52AE;
  --wd-accent-soft: rgba(37, 100, 207, 0.08);
  --wd-text: #1F2328;
  --wd-text-secondary: #59636E;
  --wd-muted: #848D97;
  --wd-green: #1A7F37;
  --wd-green-soft: #E6F6EC;
  --wd-blue: #1D58B8;
  --wd-blue-soft: #E8F1FD;
  --wd-danger: #CF222E;
  --wd-danger-soft: #FFEBE9;
  --wd-shadow-window: 0 24px 64px rgba(15, 29, 54, 0.14), 0 2px 8px rgba(15, 29, 54, 0.06);
  --wd-shadow-card: 0 1px 2px rgba(15, 29, 54, 0.05), 0 0 1px rgba(15, 29, 54, 0.04);
  --wd-shadow-card-hover: 0 4px 12px rgba(15, 29, 54, 0.08), 0 1px 2px rgba(15, 29, 54, 0.04);
  --wd-shadow-card-selected: 0 4px 14px rgba(37, 100, 207, 0.12), 0 1px 3px rgba(37, 100, 207, 0.08);
  --wd-shadow-modal: 0 28px 72px rgba(12, 24, 48, 0.22), 0 4px 16px rgba(12, 24, 48, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(145deg, #DDE6F2 0%, #ECEFF5 100%);
  color: var(--wd-text);
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

#app {
  width: 100%;
  max-width: 1360px;
  display: flex;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.wd-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--wd-text-secondary);
}

/* App Shell Window */
.wd-app-shell {
  width: 100%;
  height: calc(100vh - 40px);
  min-height: calc(100vh - 40px);
  max-height: calc(100vh - 40px);
  background: #F4F6F9;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  box-shadow: var(--wd-shadow-window);
  display: grid;
  grid-template-columns: 236px 1fr;
  overflow: hidden;
  position: relative;
}

/* 1. Left Acrylic/Mica Sidebar */
.wd-sidebar {
  background: rgba(244, 246, 249, 0.88);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(15, 29, 54, 0.06);
  padding: 18px 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}

.wd-window-dots {
  display: flex;
  gap: 8px;
  padding: 2px 10px 18px;
}

.wd-win-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.wd-win-dot--red {
  background: #FF5F57;
}

.wd-win-dot--yellow {
  background: #FEBC2E;
}

.wd-win-dot--green {
  background: #28C840;
}

.wd-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.015em;
  padding: 4px 12px 18px;
  color: var(--wd-text);
}

.wd-brand .wd-icon {
  color: var(--wd-accent);
}

.wd-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wd-nav-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--wd-text-secondary);
  position: relative;
  transition: background 0.12s ease, color 0.12s ease, transform 0.1s ease;
}

.wd-nav-list li:active {
  transform: scale(0.985);
}

.wd-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.wd-nav-list li:hover {
  background: rgba(15, 29, 54, 0.04);
  color: var(--wd-text);
}

.wd-nav-item--active {
  background: rgba(37, 100, 207, 0.09) !important;
  color: var(--wd-text) !important;
  font-weight: 600 !important;
}

.wd-nav-item--active::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 99px;
  background: var(--wd-accent);
}

.wd-nav-item--active .wd-icon {
  color: var(--wd-accent);
}

.wd-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--wd-text-secondary);
}

/* Time-Decay Archive Section in Sidebar (Option 2: High-Craft Typographic & Interaction Hierarchy) */
.wd-nav-divider {
  height: 1px;
  background: rgba(15, 29, 54, 0.06);
  margin: 10px 8px 8px;
}

.wd-archive-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 340px);
  overflow-y: auto;
}

/* Current Month Light Header — Clear "Summary ›" affordance without heavy box */
.wd-archive-current-month-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px 4px;
  border: none;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  transition: background 0.12s ease;
}

.wd-archive-current-month-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--wd-text);
  letter-spacing: 0.01em;
}

.wd-archive-current-month-cta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--wd-muted);
  transition: color 0.12s ease, transform 0.12s ease;
}

.wd-archive-current-month-head:hover {
  background: rgba(15, 29, 54, 0.04);
}

.wd-archive-current-month-head:hover .wd-archive-current-month-cta,
.wd-archive-current-month-head--active .wd-archive-current-month-cta {
  color: var(--wd-accent);
  transform: translateX(1px);
}

.wd-archive-current-month-head--active {
  background: rgba(37, 100, 207, 0.09);
}

.wd-archive-current-month-head--active .wd-archive-current-month-title {
  color: var(--wd-accent);
}

.wd-archive-list {
  gap: 1px;
}

.wd-archive-past-list {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(15, 29, 54, 0.06);
}

.wd-archive-years-list {
  margin-top: 6px;
  padding-top: 6px;
}

.wd-archive-week-item {
  padding: 7px 12px !important;
  font-size: 13px !important;
}

.wd-archive-week-item--indent {
  padding-left: 30px !important;
}

.wd-archive-week-label {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.wd-archive-week-code {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wd-text);
}

.wd-archive-week-dates {
  font-size: 12px;
  font-weight: 400;
  color: var(--wd-muted);
}

.wd-nav-item--active .wd-archive-week-code {
  color: var(--wd-accent);
}

.wd-archive-week-ratio {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--wd-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.wd-archive-week-ratio--full {
  color: var(--wd-green);
  font-weight: 600;
}

/* Archived Month / Year Rows — Clear split between Expand Chevron and Open Summary Label */
.wd-archive-folder {
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
}

.wd-archive-folder:hover {
  background: transparent !important;
}

.wd-archive-folder--year {
  margin-top: 2px;
}

.wd-archive-folder--nested .wd-archive-folder-row {
  padding-left: 22px;
}

.wd-archive-folder-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 11px;
  border-radius: 7px;
  position: relative;
  transition: background 0.12s ease;
}

.wd-archive-folder-row:hover {
  background: rgba(15, 29, 54, 0.04);
}

/* Left + Middle: Full-width Expand/Collapse Hit Target (Fitts's Law) */
.wd-archive-expand-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 2px;
  border: none;
  background: transparent;
  color: var(--wd-text);
  cursor: pointer;
  text-align: left;
}

.wd-archive-chevron {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wd-muted);
  flex-shrink: 0;
  transition: transform 0.16s ease, color 0.12s ease;
}

.wd-archive-chevron--open {
  transform: rotate(90deg);
  color: var(--wd-text-secondary);
}

.wd-archive-expand-btn:hover .wd-archive-chevron {
  color: var(--wd-text);
}

.wd-archive-folder-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--wd-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wd-archive-folder-name--year {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wd-nav-item--active .wd-archive-folder-name {
  color: var(--wd-accent);
}

/* Right: Independent Summary Action Button (Shows count at rest, swaps to "汇总 ›" on row hover / active) */
.wd-archive-summary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 3px 7px;
  border: none;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s ease;
}

.wd-archive-summary-btn:hover {
  background: var(--wd-accent-soft);
}

.wd-archive-folder-count {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--wd-muted);
  font-variant-numeric: tabular-nums;
}

.wd-archive-summary-cta {
  display: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--wd-accent);
  white-space: nowrap;
}

.wd-archive-folder-row:hover .wd-archive-folder-count,
.wd-archive-summary-btn--active .wd-archive-folder-count {
  display: none;
}

.wd-archive-folder-row:hover .wd-archive-summary-cta,
.wd-archive-summary-btn--active .wd-archive-summary-cta {
  display: inline-flex;
  align-items: center;
}

.wd-archive-children {
  margin-top: 1px;
}

/* Archive Main View Summary Bar & Period Rows (Matches Existing Flat Cards) */
.wd-archive-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 29, 54, 0.06);
}

.wd-archive-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wd-archive-stat span {
  font-size: 11.5px;
  color: var(--wd-text-secondary);
}

.wd-archive-stat strong {
  font-size: 16px;
  font-weight: 700;
  color: #16325C;
  font-variant-numeric: tabular-nums;
}

.wd-archive-bigwin {
  flex: 1 1 240px;
  padding-left: 16px;
  border-left: 2px solid var(--wd-accent-soft);
  font-size: 13px;
  color: var(--wd-text-secondary);
  line-height: 1.45;
}

.wd-archive-period-row {
  cursor: pointer;
}

.wd-archive-row-chevron {
  display: inline-flex;
  align-items: center;
  color: var(--wd-muted);
}

/* Rich Flat Monthly & Yearly Archive Views */
.wd-archive-metrics-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.wd-archive-metrics-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.wd-archive-metrics-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.wd-archive-metric-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 29, 54, 0.06);
}

.wd-archive-metric-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--wd-text-secondary);
}

.wd-archive-metric-val {
  font-size: 19px;
  font-weight: 700;
  color: #16325C;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.wd-archive-metric-sub {
  font-size: 11.5px;
  color: var(--wd-muted);
  font-variant-numeric: tabular-nums;
}

.wd-archive-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wd-archive-week-card {
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 29, 54, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wd-archive-week-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.wd-archive-week-card-title {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.wd-archive-week-card-title strong {
  font-size: 14.5px;
  font-weight: 700;
  color: #16325C;
}

.wd-archive-week-card-title span {
  font-size: 12px;
  color: var(--wd-muted);
}

.wd-archive-week-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wd-archive-open-week-btn {
  font-weight: 600;
}

.wd-archive-week-quote {
  margin: 0;
  padding: 2px 0 2px 10px;
  border-left: 2px solid var(--wd-accent);
  font-size: 13px;
  color: var(--wd-text-secondary);
  line-height: 1.45;
}

.wd-archive-mini-tasks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wd-archive-mini-task {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--wd-text);
}

.wd-archive-mini-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--wd-accent-soft);
  color: var(--wd-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wd-archive-mini-empty {
  font-size: 12.5px;
  color: var(--wd-muted);
}

/* 12-Month Flat Rhythm Bar Chart in Yearly Summary */
.wd-archive-year-chart-card {
  padding: 15px 18px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 29, 54, 0.06);
}

.wd-year-rhythm-chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  align-items: end;
  margin-top: 12px;
}

.wd-year-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  padding: 2px 0;
}

.wd-year-bar-col--clickable {
  cursor: pointer;
}

.wd-year-bar-val {
  height: 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--wd-text-secondary);
  font-variant-numeric: tabular-nums;
}

.wd-year-bar-wrap {
  width: 100%;
  max-width: 22px;
  height: 76px;
  display: flex;
  align-items: flex-end;
}

.wd-year-bar {
  width: 100%;
  border-radius: 4px 4px 2px 2px;
  transition: opacity 0.12s ease;
}

.wd-year-bar--peak {
  background: var(--wd-accent);
}

.wd-year-bar--active {
  background: var(--wd-accent);
  opacity: 0.52;
}

.wd-year-bar--empty {
  background: rgba(15, 29, 54, 0.08);
}

.wd-year-bar-col--clickable:hover .wd-year-bar {
  opacity: 1;
}

.wd-year-bar-label {
  font-size: 11px;
  color: var(--wd-muted);
}

@media (max-width: 860px) {

  .wd-archive-metrics-grid--3,
  .wd-archive-metrics-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Clean Minimalist Sidebar Footer (Just like Microsoft To Do "+ New list") */
.wd-sidebar-footer {
  padding-top: 8px;
  border-top: 1px solid rgba(15, 29, 54, 0.06);
}

.wd-sidebar-new-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--wd-text-secondary);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.wd-sidebar-new-btn:hover {
  background: rgba(15, 29, 54, 0.045);
  color: var(--wd-text);
}

.wd-sidebar-new-left {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

/* 2. Main Stage Canvas — Atmospheric Sky-Blue Gradient */
.wd-content-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(165deg, #DAE6F5 0%, #E6EFFA 52%, #F1F5FB 100%);
}

.wd-stage-layout {
  display: grid;
  grid-template-columns: 1fr 336px;
  min-height: 0;
  height: 100%;
  flex: 1;
  overflow: hidden;
}

.wd-stage-layout--full {
  grid-template-columns: 1fr;
}

.wd-stage-main,
.wd-garden-main,
.wd-energy-main {
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 32px 38px 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.wd-stage-main:has(.wd-main-scroll-body),
.wd-garden-main {
  overflow: hidden;
}

.wd-main-scroll-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.wd-bottom-dock {
  flex-shrink: 0;
  padding-top: 14px;
  margin-top: auto;
}

.wd-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.wd-page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #16325C;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.wd-page-date-range {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--wd-text-secondary);
  font-variant-numeric: tabular-nums;
}

[class*="wd-theme--wp-"] .wd-page-date-range {
  color: rgba(255, 255, 255, 0.85);
}

.wd-subtitle {
  color: #46618A;
  font-size: 13px;
  margin-top: 2px;
}

.wd-header-right-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wd-slots-indicator {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.wd-slots-count {
  font-size: 12px;
  color: #3E5982;
}

.wd-slot-dots,
.wd-pomo-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.wd-slot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.18s ease;
}

.wd-slot-dot--filled {
  background: var(--wd-accent);
}

.wd-slot-dot--empty {
  background: rgba(22, 50, 92, 0.16);
}

.wd-pomo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.16s ease;
}

.wd-pomo-dot--btn {
  cursor: pointer;
  padding: 0;
  border: none;
}

.wd-pomo-dot--btn:hover {
  transform: scale(1.28);
}

.wd-pomo-dot--btn:active {
  transform: scale(0.9);
}

.wd-pomo-dot--done {
  background: var(--wd-accent);
}

.wd-pomo-dot--pending {
  background: rgba(22, 50, 92, 0.18);
}

/* Top-Right More (•••) Popover Menu */
.wd-more-menu-wrap {
  position: relative;
}

.wd-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  color: #2A4775;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.1s ease;
}

.wd-icon-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.wd-icon-btn:active {
  transform: scale(0.94);
}

.wd-popover-menu {
  position: absolute;
  right: 0;
  top: 38px;
  width: 224px;
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: var(--wd-shadow-modal);
  padding: 10px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform-origin: top right;
  animation: wd-popover-in 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes wd-popover-in {
  0% {
    opacity: 0;
    transform: translateY(-4px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes wd-popover-up {
  0% {
    opacity: 0;
    transform: translateY(4px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wd-popover-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--wd-muted);
  padding: 4px 8px 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wd-theme-swatches {
  display: grid;
  grid-template-columns: repeat(5, 22px);
  justify-content: space-between;
  row-gap: 8px;
  padding: 5px 8px 8px;
}

.wd-theme-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.wd-theme-dot:hover {
  transform: scale(1.12);
}

.wd-theme-dot--active {
  border-color: #FFFFFF;
  box-shadow: 0 0 0 2px var(--wd-accent);
}

.wd-wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px 8px 8px;
}

.wd-wallpaper-thumb {
  height: 36px;
  border-radius: 6px;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  background-color: #DDE5F0;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.wd-wallpaper-thumb:hover {
  transform: scale(1.04);
}

.wd-wallpaper-thumb--active {
  border-color: #FFFFFF;
  box-shadow: 0 0 0 2px var(--wd-accent);
}

.wd-popover-divider {
  height: 1px;
  background: rgba(15, 29, 54, 0.07);
  margin: 4px 0;
}

.wd-popover-item {
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  color: var(--wd-text);
  cursor: pointer;
}

.wd-popover-item:hover {
  background: rgba(37, 100, 207, 0.08);
  color: var(--wd-accent);
}

.wd-popover-item--muted {
  color: var(--wd-text-secondary);
}

/* Today's Energy Ambient Card */
.wd-energy-banner {
  border-radius: 10px;
  padding: 13px 18px 11px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
}

.wd-energy-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.wd-energy-banner-title {
  font-weight: 600;
  font-size: 12.5px;
  color: #26436E;
}

.wd-golden-hint {
  font-size: 12px;
  color: #46618A;
}

.wd-energy-mini-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  align-items: end;
}

.wd-energy-mini-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.wd-energy-dual-bars {
  height: 30px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.wd-energy-mini-bar {
  width: 9px;
  border-radius: 2.5px;
  background: rgba(22, 50, 92, 0.14);
  transform-origin: bottom center;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.18s ease, filter 0.18s ease;
}

.wd-energy-mini-slot:hover .wd-energy-mini-bar {
  transform: scaleY(1.1);
  filter: brightness(1.06);
}

.wd-energy-mini-bar--orange {
  background: #6EA5F0;
}

.wd-energy-mini-bar--red {
  background: var(--wd-accent);
}

.wd-energy-mini-label {
  font-size: 10.5px;
  color: #5C7294;
  transition: color 0.15s ease;
}

.wd-energy-mini-slot:hover .wd-energy-mini-label {
  color: #26436E;
}

/* 3. Calm Elevated Task Cards (Zero visual clutter) */
.wd-task-list,
.wd-garden-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wd-task-row,
.wd-garden-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 29, 54, 0.055);
  border-radius: 8px;
  box-shadow: var(--wd-shadow-card);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.14s ease, box-shadow 0.14s ease, transform 0.12s ease;
}

.wd-task-row:hover,
.wd-garden-row:hover {
  background: #FFFFFF;
  border-color: rgba(15, 29, 54, 0.09);
  box-shadow: var(--wd-shadow-card-hover);
  transform: translateY(-1px);
}

/* Soft subtle elevation on selected row — refined inset accent indicator */
.wd-task-row--selected {
  background: #FFFFFF !important;
  border-color: rgba(37, 100, 207, 0.28) !important;
  box-shadow: var(--wd-shadow-card-selected) !important;
  position: relative;
}

.wd-task-row--selected::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 99px;
  background: var(--wd-accent);
  opacity: 0.9;
}

.wd-task-row-left,
.wd-garden-row-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1;
}

.wd-drag-grip {
  color: var(--wd-muted);
  opacity: 0;
  cursor: grab;
  margin-left: -6px;
  transition: opacity 0.12s ease;
}

.wd-task-row:hover .wd-drag-grip {
  opacity: 0.45;
}

.wd-checkbox {
  position: relative;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1.5px solid #6E7E94;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.14s ease, background-color 0.14s ease;
}

.wd-checkbox:hover {
  border-color: var(--wd-accent);
  transform: scale(1.06);
}

.wd-checkbox:active {
  transform: scale(0.88);
  transition-duration: 0.08s;
}

.wd-check-hover {
  opacity: 0;
  color: var(--wd-accent);
  display: inline-flex;
  transform: scale(0.75);
  transition: opacity 0.14s ease, transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.wd-checkbox:hover .wd-check-hover {
  opacity: 1;
  transform: scale(1);
}

.wd-checkbox--checked {
  background: var(--wd-accent) !important;
  border-color: var(--wd-accent) !important;
  color: #FFFFFF !important;
}

.wd-checkbox--just-checked {
  animation: wd-check-spring 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wd-checkbox--just-checked::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--wd-accent);
  pointer-events: none;
  animation: wd-check-ring 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wd-checkbox--just-checked svg {
  animation: wd-check-mark-pop 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes wd-check-spring {
  0% {
    transform: scale(0.8);
  }

  45% {
    transform: scale(1.16);
  }

  75% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes wd-check-ring {
  0% {
    opacity: 0.5;
    transform: scale(0.9);
  }

  100% {
    opacity: 0;
    transform: scale(1.85);
  }
}

@keyframes wd-check-mark-pop {
  0% {
    opacity: 0;
    transform: scale(0.55) rotate(-10deg);
  }

  65% {
    opacity: 1;
    transform: scale(1.12) rotate(0deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {

  .wd-checkbox,
  .wd-check-hover,
  .wd-step-box,
  .wd-task-row,
  .wd-garden-row,
  .wd-focus-ghost-btn,
  .wd-energy-mini-bar,
  .wd-slot-dot,
  .wd-pomo-dot,
  .wd-icon-btn,
  .wd-mini-btn,
  .wd-suggest-trigger-btn,
  .wd-nav-list li {
    transition: none;
  }

  .wd-checkbox--just-checked,
  .wd-checkbox--just-checked::after,
  .wd-checkbox--just-checked svg,
  .wd-popover-menu,
  .wd-account-popover {
    animation: none;
  }
}

.wd-task-twoline {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.wd-task-title {
  font-size: 14.5px;
  font-weight: 450;
  color: var(--wd-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wd-task-title--strikethrough {
  text-decoration: line-through;
  color: var(--wd-muted);
}

.wd-task-subline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  color: var(--wd-text-secondary);
}

.wd-task-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Focus Action Icon Button — Quiet by default, slides in smoothly on row hover or selection */
.wd-focus-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--wd-accent);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transform: translateX(6px);
  box-shadow: none;
  transition: opacity 0.15s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.12s ease;
}

.wd-task-row:hover .wd-focus-ghost-btn,
.wd-task-row--selected .wd-focus-ghost-btn {
  opacity: 1;
  transform: translateX(0);
}

.wd-focus-ghost-btn:hover {
  background: var(--wd-accent-hover);
}

.wd-focus-ghost-btn:active {
  transform: scale(0.95);
  transition-duration: 0.08s;
}

/* Fluent Category Tags (4px radius, soft pastel fill, dark text, no border, no dot) */
.wd-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(15, 29, 54, 0.06);
  border: none;
  color: #334155;
}

.wd-tag--blue {
  background: #E8F0FE;
  color: #1D4ED8;
}

.wd-tag--amber {
  background: #FEF3C7;
  color: #92400E;
}

.wd-tag--green {
  background: #DCFCE7;
  color: #166534;
}

.wd-reviewed-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(15, 29, 54, 0.05);
  color: var(--wd-text-secondary);
}

/* Completed Section & Collapsible Pill */
.wd-completed-section,
.wd-withered-section {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wd-ms-collapse-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.68);
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #243F6B;
  cursor: pointer;
  margin-bottom: 2px;
}

.wd-ms-collapse-pill:hover {
  background: rgba(255, 255, 255, 0.9);
}

.wd-collapse-chevron {
  display: inline-flex;
  color: #243F6B;
}

.wd-collapse-count {
  color: #4D6791;
  font-weight: 400;
}

/* Docked Bottom Quick-Add Bar (Always Pinned to Viewport Bottom — Authentic Microsoft To Do) */
.wd-inline-stage-add {
  width: 100%;
  min-height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 29, 54, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(15, 29, 54, 0.08), 0 1px 2px rgba(15, 29, 54, 0.04);
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.wd-inline-stage-add:hover {
  background: rgba(255, 255, 255, 0.97);
}

.wd-inline-stage-add:focus-within {
  background: #FFFFFF;
  border-color: rgba(37, 100, 207, 0.35);
  box-shadow: 0 6px 20px rgba(15, 29, 54, 0.12), 0 1px 3px rgba(37, 100, 207, 0.08);
}

.wd-inline-stage-add:has(.wd-inline-stage-input:disabled) {
  background: rgba(255, 255, 255, 0.84);
  border-style: solid;
  border-color: rgba(15, 29, 54, 0.07);
  box-shadow: 0 3px 12px rgba(15, 29, 54, 0.06);
}

.wd-inline-stage-add:has(.wd-inline-stage-input:disabled) .wd-ms-plus-icon {
  color: var(--wd-muted);
}

.wd-inline-stage-input:disabled::placeholder {
  color: var(--wd-text-secondary);
  opacity: 0.8;
}

.wd-ms-plus-icon {
  color: var(--wd-accent);
  display: inline-flex;
}

.wd-inline-stage-input {
  flex: 1;
  min-width: 120px;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: var(--wd-text);
}

.wd-inline-stage-input::placeholder {
  color: var(--wd-accent);
  opacity: 0.85;
}

.wd-remaining-slots-count {
  font-size: 12px;
  color: var(--wd-muted);
  white-space: nowrap;
}

/* 4. Right Inspector Pane — Borderless Clean Grouped Blocks (No Dashed Boxes, No Monospace) */
.wd-drawer {
  background: #F5F6F8;
  border-left: 1px solid rgba(15, 29, 54, 0.06);
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.wd-drawer-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 29, 54, 0.055);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(15, 29, 54, 0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wd-drawer-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.wd-drawer-header .wd-checkbox,
.wd-drawer-header .wd-drawer-close {
  margin-top: 2px;
}

.wd-drawer-title-input {
  flex: 1;
  min-width: 0;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.35;
  border: none;
  background: transparent;
  padding: 0;
  color: var(--wd-text);
  resize: none;
  overflow: hidden;
  field-sizing: content;
  min-height: 24px;
}

.wd-drawer-title-input:focus {
  outline: none;
}

.wd-drawer-close {
  background: transparent;
  border: none;
  color: var(--wd-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 5px;
  display: inline-flex;
}

.wd-drawer-close:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--wd-text);
}

.wd-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wd-step-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

.wd-step-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  flex: 1;
  font-size: 13.5px;
  color: var(--wd-text);
}

.wd-step-box {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.4px solid #7A889B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.14s ease, background-color 0.14s ease;
}

.wd-step-toggle:hover .wd-step-box {
  border-color: var(--wd-accent);
  transform: scale(1.06);
}

.wd-step-toggle:active .wd-step-box {
  transform: scale(0.88);
  transition-duration: 0.08s;
}

.wd-step-box--checked {
  background: var(--wd-accent);
  border-color: var(--wd-accent);
  color: #FFFFFF;
}

.wd-step--done .wd-step-text {
  text-decoration: line-through;
  color: var(--wd-muted);
}

.wd-step-del {
  background: transparent;
  border: none;
  color: var(--wd-muted);
  cursor: pointer;
  font-size: 15px;
  opacity: 0;
  padding: 0 4px;
}

.wd-step-item:hover .wd-step-del {
  opacity: 1;
}

.wd-step-del:hover {
  color: var(--wd-danger);
}

.wd-add-step-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.wd-step-plus {
  color: var(--wd-accent);
  display: inline-flex;
}

.wd-inline-clean-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--wd-text);
  outline: none;
  padding: 4px 0;
}

.wd-inline-clean-input::placeholder {
  color: var(--wd-accent);
}

/* Inspector Action Rows (Clean Borderless List Like Microsoft To Do) */
.wd-drawer-props {
  gap: 0;
  padding: 6px 16px;
}

.wd-prop-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 29, 54, 0.05);
  font-size: 13px;
  cursor: pointer;
}

.wd-prop-action-row:last-child {
  border-bottom: none;
}

.wd-prop-action-row--col {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.wd-prop-icon-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wd-text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Custom Clean Date Display hiding native browser date chrome */
.wd-date-picker-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.wd-date-display {
  font-size: 13px;
  color: var(--wd-accent);
  font-weight: 500;
}

.wd-invisible-date-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}

.wd-pomo-adjust {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.wd-pomo-dots--drawer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-left: 24px;
}

.wd-mini-btn {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: none;
  background: rgba(15, 29, 54, 0.05);
  color: var(--wd-text-secondary);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.12s ease, color 0.12s ease, transform 0.1s ease;
}

.wd-mini-btn:hover {
  background: var(--wd-accent-soft);
  color: var(--wd-accent);
}

.wd-mini-btn:active {
  transform: scale(0.92);
}

.wd-mini-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.wd-tags-edit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-left: 24px;
}

.wd-tag-del {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 12px;
  margin-left: 2px;
  opacity: 0.6;
}

.wd-tag-del:hover {
  opacity: 1;
  color: var(--wd-danger);
}

.wd-inline-tag-form {
  display: inline-flex;
}

.wd-inline-tag-input {
  width: 72px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  color: var(--wd-text);
  outline: none;
}

.wd-inline-tag-input::placeholder {
  color: var(--wd-muted);
}

.wd-prop-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Restrained Image Thumbnail Gallery & Minimalist Document Rows (Cloudflare R2 Backed) */
.wd-drawer--file-drop {
  box-shadow: inset 0 0 0 1.5px var(--wd-accent);
  background: #EDF4FE;
}

.wd-att-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 2px;
}

.wd-att-thumb-card {
  position: relative;
  height: 62px;
  border-radius: 6px;
  overflow: hidden;
  background: #F4F6F9;
  box-shadow: inset 0 0 0 1px rgba(15, 29, 54, 0.07);
  cursor: zoom-in;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.wd-att-thumb-card:hover {
  transform: translateY(-0.5px);
  box-shadow: 0 3px 8px rgba(15, 29, 54, 0.12);
}

.wd-att-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wd-att-sync-dot {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wd-accent);
  box-shadow: 0 0 0 2px #FFFFFF;
}

.wd-att-thumb-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 29, 54, 0.58);
  color: #FFFFFF;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s ease, background 0.12s ease;
}

.wd-att-thumb-card:hover .wd-att-thumb-del {
  opacity: 1;
}

.wd-att-thumb-del:hover {
  background: var(--wd-danger);
}

.wd-att-file-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 2px;
}

.wd-att-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 32px;
  padding: 0 10px;
  border-radius: 5px;
  background: #F5F7FA;
  font-size: 12.5px;
  color: var(--wd-text);
  cursor: pointer;
  transition: background 0.12s ease;
}

.wd-att-file-row:hover {
  background: #EDF2F8;
}

.wd-att-file-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.wd-att-file-icon {
  display: inline-flex;
  color: var(--wd-text-secondary);
  flex-shrink: 0;
}

.wd-att-file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wd-att-file-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.wd-att-file-size {
  font-size: 11px;
  color: var(--wd-muted);
}

.wd-att-file-del {
  border: none;
  background: transparent;
  color: var(--wd-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 0 2px;
  opacity: 0;
  transition: opacity 0.1s ease, color 0.1s ease;
}

.wd-att-file-row:hover .wd-att-file-del {
  opacity: 1;
}

.wd-att-file-del:hover {
  color: var(--wd-danger);
}

/* Fluent Acrylic Lightbox Overlay for Image Preview */
.wd-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(12, 22, 38, 0.76);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
}

.wd-lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  color: #FFFFFF;
}

.wd-lightbox-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wd-lightbox-title {
  font-size: 14px;
  font-weight: 600;
}

.wd-lightbox-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
}

.wd-lightbox-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wd-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.wd-lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px 40px;
  overflow: hidden;
}

.wd-lightbox-img {
  max-width: min(860px, 88vw);
  max-height: 78vh;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  object-fit: contain;
}

/* Clean Proportional Notes Textarea & Borderless Lightweight Markdown Preview */
.wd-notes-card {
  gap: 8px;
}

.wd-notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(15, 29, 54, 0.04);
}

.wd-markdown-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--wd-text);
  cursor: text;
  padding: 2px 0;
  border-radius: 4px;
}

.wd-markdown-preview:hover {
  background: rgba(15, 29, 54, 0.02);
}

.wd-md-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--wd-text);
  margin-top: 2px;
}

.wd-md-bullet {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--wd-text);
}

.wd-md-dot {
  color: var(--wd-accent);
  font-weight: 700;
}

.wd-md-inline-code {
  font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  background: rgba(37, 100, 207, 0.08);
  color: #1A4999;
  padding: 1.5px 6px;
  border-radius: 4px;
}

.wd-md-placeholder {
  color: var(--wd-muted);
  font-size: 13px;
}

.wd-md-spacer {
  height: 4px;
}

.wd-notes-clean-textarea {
  width: 100%;
  border: none;
  background: rgba(15, 29, 54, 0.02);
  border-radius: 5px;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--wd-text);
  resize: none;
  outline: none;
}

/* Microsoft To Do Style "Suggestions (Lightbulb)" Trigger, Minimalist Language Popover & Right Drawer */
.wd-lang-dropdown-wrap {
  position: relative;
  display: inline-flex;
}

.wd-icon-btn--active {
  background: #FFFFFF !important;
  color: var(--wd-accent) !important;
  box-shadow: var(--wd-shadow-card);
}

.wd-lang-popover {
  min-width: 124px;
  padding: 4px;
}

.wd-lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--wd-text);
  font-size: 13px;
  font-weight: 450;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.1s ease;
}

.wd-lang-option:hover {
  background: rgba(15, 29, 54, 0.045);
}

.wd-lang-option--active {
  color: var(--wd-accent);
  font-weight: 600;
}

.wd-lang-option-check {
  width: 13px;
  height: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wd-accent);
}

.wd-suggest-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.65);
  color: #16325C;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.1s ease;
}

.wd-suggest-trigger-btn:active {
  transform: scale(0.95);
}

.wd-suggest-trigger-btn:hover,
.wd-suggest-trigger-btn--active {
  background: #FFFFFF;
  color: var(--wd-accent);
  box-shadow: var(--wd-shadow-card);
}

.wd-suggest-badge {
  font-size: 11px;
  font-weight: 600;
  background: rgba(37, 100, 207, 0.12);
  color: var(--wd-accent);
  padding: 0 6px;
  border-radius: 99px;
}

.wd-suggest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 8px;
}

.wd-suggest-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wd-suggest-bulb {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(37, 100, 207, 0.1);
  color: var(--wd-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wd-suggest-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 650;
  color: var(--wd-text);
}

.wd-suggest-subtitle {
  margin: 1px 0 0;
  font-size: 12px;
  color: var(--wd-text-secondary);
}

.wd-suggest-section {
  gap: 8px;
}

.wd-suggest-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wd-text-secondary);
}

.wd-suggest-ritual-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--wd-text-secondary);
  line-height: 1.45;
}

.wd-suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid rgba(15, 29, 54, 0.05);
}

.wd-suggest-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wd-suggest-item-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--wd-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wd-suggest-item-sub {
  font-size: 11.5px;
  color: var(--wd-muted);
}

.wd-suggest-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wd-suggest-add-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--wd-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s ease;
}

.wd-suggest-add-btn:hover:not(:disabled) {
  background: var(--wd-accent-soft);
}

.wd-suggest-add-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.wd-silent-sync-warn {
  font-size: 11.5px;
  font-weight: 500;
  color: #8A5A10;
  background: rgba(255, 244, 214, 0.85);
  padding: 3px 9px;
  border-radius: 99px;
}

.wd-notes-clean-textarea::placeholder {
  color: var(--wd-muted);
}

.wd-drawer-footer {
  margin-top: auto;
  padding: 12px 4px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wd-btn-text {
  background: transparent;
  border: none;
  font-size: 12.5px;
  color: var(--wd-text-secondary);
  cursor: pointer;
}

.wd-btn-text:hover {
  color: var(--wd-text);
}

.wd-btn-danger-text {
  background: transparent;
  border: none;
  font-size: 12.5px;
  color: var(--wd-danger);
  cursor: pointer;
}

.wd-btn-danger-text:hover {
  text-decoration: underline;
}

/* Garden View */
.wd-tabs-bar {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid rgba(22, 50, 92, 0.12);
  margin-bottom: 14px;
}

.wd-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 6px 2px 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: #46618A;
  cursor: pointer;
}

.wd-tab--active {
  color: #16325C;
  font-weight: 600;
  border-bottom-color: var(--wd-accent);
}

.wd-recur-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--wd-text-secondary);
}

.wd-leaf-icon {
  color: var(--wd-muted);
  display: inline-flex;
}

.wd-garden-row--withered {
  background: rgba(255, 255, 255, 0.7);
}

.wd-garden-row--withered .wd-task-title {
  color: var(--wd-muted);
}

.wd-wither-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wd-days-ago {
  font-size: 12px;
  color: var(--wd-muted);
}

.wd-btn-water {
  background: var(--wd-green-soft);
  color: var(--wd-green);
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.wd-btn-outline,
.wd-btn-outline-sm {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 29, 54, 0.12);
  color: var(--wd-text);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.wd-btn-outline:hover,
.wd-btn-outline-sm:hover {
  background: #FFFFFF;
}

.wd-btn-primary,
.wd-btn-primary-sm {
  background: var(--wd-accent);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.wd-btn-danger-sm {
  background: var(--wd-danger);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.wd-link-small {
  background: transparent;
  border: none;
  color: var(--wd-accent);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

/* Energy Map & Weekly Card */
.wd-insight-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.wd-insight-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: var(--wd-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wd-insight-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--wd-text-secondary);
}

.wd-insight-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #16325C;
}

.wd-insight-note {
  font-size: 12px;
  color: var(--wd-text-secondary);
}

.wd-energy-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.wd-energy-left-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wd-heatmap-card,
.wd-hourly-card,
.wd-weekly-card-container,
.wd-gallery-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: var(--wd-shadow-card);
}

.wd-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.wd-heatmap-card h3,
.wd-hourly-card h3,
.wd-weekly-card-container h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: #16325C;
}

.wd-heat-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--wd-muted);
}

.wd-heat-legend .wd-heat-cell {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.wd-heatmap-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  font-size: 11px;
  font-weight: 500;
  color: var(--wd-muted);
  margin-bottom: 6px;
  padding-left: 34px;
}

.wd-heatmap-body {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: stretch;
}

.wd-heatmap-days {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--wd-muted);
  padding: 2px 0;
}

.wd-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  gap: 4px;
  aspect-ratio: 12 / 5.4;
}

.wd-heat-cell {
  width: 100%;
  height: 100%;
  min-height: 11px;
  border-radius: 3.5px;
  display: block;
  background: rgba(22, 50, 92, 0.055);
  transition: transform 0.14s ease;
}

.wd-heat-cell:hover {
  transform: scale(1.12);
}

.wd-heat-cell--lvl-1 {
  background: #C5DCF8;
}

.wd-heat-cell--lvl-2 {
  background: #89B8F3;
}

.wd-heat-cell--lvl-3 {
  background: #4689E3;
}

.wd-heat-cell--lvl-4 {
  background: var(--wd-accent, #1B52A8);
}

.wd-chart-meta-pill {
  font-size: 11px;
  font-weight: 500;
  color: var(--wd-accent);
  background: rgba(37, 100, 207, 0.07);
  padding: 3px 9px;
  border-radius: 999px;
}

.wd-hourly-chart {
  margin-top: 8px;
  height: 142px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  align-items: end;
}

.wd-hour-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.wd-hour-val {
  font-size: 10px;
  font-weight: 500;
  color: #8798AE;
  font-variant-numeric: tabular-nums;
}

.wd-hour-col--peak .wd-hour-val {
  color: var(--wd-accent);
  font-weight: 700;
}

.wd-hour-bar-wrap {
  width: 100%;
  max-width: 28px;
  height: 98px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(22, 50, 92, 0.045);
  border-radius: 8px;
  overflow: hidden;
  padding: 2px;
}

.wd-hour-bar {
  width: 100%;
  border-radius: 6px;
  background: linear-gradient(180deg, #B9D4F6 0%, #CEE1F9 100%);
  transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.wd-hour-bar--mid {
  background: linear-gradient(180deg, #639FF0 0%, #83B4F5 100%);
}

.wd-hour-bar--peak {
  background: linear-gradient(180deg, var(--wd-accent, #2564CF) 0%, #4C86E8 100%);
  box-shadow: 0 4px 12px rgba(37, 100, 207, 0.25);
}

.wd-hour-label {
  font-size: 11px;
  color: var(--wd-text-secondary);
  font-variant-numeric: tabular-nums;
}

.wd-hour-col--peak .wd-hour-label {
  color: #16325C;
  font-weight: 600;
}

.wd-weekly-card-header {
  margin-bottom: 12px;
}

.wd-art-frame {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.wd-generative-svg {
  width: 100%;
  height: auto;
  display: block;
}

.wd-card-caption {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--wd-text-secondary);
  margin-bottom: 6px;
}

.wd-big-win-quote {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 14px;
  color: var(--wd-text);
}

.wd-card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 29, 54, 0.06);
}

.wd-card-stats-inline {
  font-size: 12px;
  color: var(--wd-text-secondary);
}

.wd-bside-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.wd-bside-metric {
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
  background: #F5F8FC;
  border-radius: 6px;
}

.wd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Quick Capture Floating Spotlight Modal */
.wd-capture-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 54, 0.24);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 90px;
  z-index: 200;
}

.wd-capture-dialog {
  width: 100%;
  max-width: 560px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: var(--wd-shadow-modal);
  padding: 20px 22px 16px;
}

.wd-capture-input {
  width: 100%;
  font-size: 19px;
  font-weight: 500;
  border: none;
  outline: none;
  padding: 4px 0 14px;
  color: var(--wd-text);
}

.wd-capture-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 29, 54, 0.07);
}

.wd-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
}

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

.wd-pill--amber {
  background: #E3F2FD;
  color: #0D47A1;
}

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

.wd-pill--purple {
  background: #EFE7F6;
  color: #5D3C7B;
}

.wd-capture-footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.wd-capture-hint {
  font-size: 12px;
  color: var(--wd-muted);
}

.wd-capture-btns {
  display: flex;
  gap: 8px;
}

/* ============================================================================
 * Fullscreen Flat Translucent Focus View (`.wd-darkroom-overlay`)
 * Microsoft To Do / Fluent Flat Style — Open Fullscreen, Bold Giant Digits,
 * 100% Opaque Deep Darkroom Focus View (Session / Windows Focus Clock Style)
 * Open Fullscreen, Bold Giant Digits, Zero Transparency, Zero Card Boxes, Zero Shadows
 * ============================================================================ */
.wd-darkroom-overlay {
  position: fixed;
  inset: 0;
  background: #0E1917;
  color: #E6EFEA;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 28px 40px 32px;
  gap: 24px;
  z-index: 300;
  overflow-y: auto;
}

.wd-darkroom-overlay.wd-darkroom--entering {
  animation: wd-focus-fade-in 0.16s ease-out both;
}

@keyframes wd-focus-fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.wd-darkroom-top,
.wd-darkroom-center,
.wd-darkroom-footer {
  position: relative;
  z-index: 1;
}

.wd-darkroom-top {
  width: 100%;
  max-width: 960px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.wd-darkroom-exit {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #8CA39D;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.wd-darkroom-exit:hover {
  background: rgba(230, 239, 234, 0.07);
  color: #E6EFEA;
}

.wd-focus-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: #1B212C;
  border-radius: 8px;
}

.wd-focus-mode-tab {
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(241, 245, 249, 0.54);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}

.wd-focus-mode-tab:hover:not(.wd-focus-mode-tab--active) {
  color: rgba(241, 245, 249, 0.9);
}

.wd-focus-mode-tab--active {
  background: #2A3342;
  color: #F8FAFC;
  font-weight: 600;
  cursor: default;
}

.wd-darkroom--break .wd-focus-mode-tab--active {
  background: #1F352E;
  color: #6EE7B7;
}

.wd-darkroom-top-right {
  justify-self: end;
  display: flex;
  align-items: center;
}

.wd-darkroom-dnd-pill {
  font-size: 12.5px;
  font-weight: 500;
  color: #78908A;
}

.wd-darkroom-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  width: 100%;
  max-width: 680px;
  gap: 44px;
}

.wd-darkroom-task-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.wd-timer-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #78908A;
  text-transform: uppercase;
}

.wd-timer-sub--break {
  color: #5BB5A2;
}

.wd-darkroom-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #E6EFEA;
  line-height: 1.4;
  max-width: 560px;
}

.wd-focus-inline-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #8CA39D;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.wd-focus-inline-step:hover {
  background: rgba(230, 239, 234, 0.06);
  color: #E6EFEA;
}

.wd-focus-step-ratio {
  font-size: 12px;
  color: #6B847E;
  font-variant-numeric: tabular-nums;
}

/* Open Flat Ultra-Bold Giant Timer Block with Delicate Per-Digit Micro-Animation */
.wd-timer-block,
.wd-timer-porcelain-dial {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.wd-timer-digits {
  font-family: "Segoe UI Variable Display", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-size: clamp(128px, 16vw, 176px);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: #E6EFEA;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  user-select: none;
}

.wd-digit-cell {
  display: inline-block;
  will-change: transform, opacity;
}

.wd-digit-cell--tick {
  animation: wd-digit-roll 0.32s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

@keyframes wd-digit-roll {
  0% {
    opacity: 0.72;
    transform: translate3d(0, 2px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.wd-digit-colon {
  display: inline-block;
  margin: 0 0.08em;
  opacity: 0.85;
}

.wd-darkroom--running .wd-digit-colon {
  animation: wd-colon-breathe 2.8s ease-in-out infinite;
}

@keyframes wd-colon-breathe {

  0%,
  100% {
    opacity: 0.85;
  }

  50% {
    opacity: 0.52;
  }
}

.wd-timer-bar-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.wd-timer-progress-fill {
  height: 100%;
  background: var(--wd-accent);
  transition: width 0.35s linear, background-color 0.2s ease;
}

.wd-timer-progress-fill--break {
  background: #34D399;
}

.wd-focus-pomo-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wd-focus-pomo-ratio {
  font-size: 12.5px;
  font-weight: 500;
  color: #78908A;
  font-variant-numeric: tabular-nums;
}

.wd-darkroom-overlay .wd-pomo-dot--done {
  background: #5BB5A2;
}

.wd-darkroom-overlay.wd-darkroom--break .wd-pomo-dot--done {
  background: #6EE7B7;
}

.wd-darkroom-overlay .wd-pomo-dot--pending {
  background: rgba(230, 239, 234, 0.2);
}

.wd-darkroom-actions {
  width: 100%;
  max-width: 440px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wd-darkroom-actions--paused {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 20px;
}

.wd-focus-ghost-link--left {
  justify-self: end;
}

.wd-focus-ghost-link--right {
  justify-self: start;
}

/* Fluent 2 Standard Control Button (4px radius, crisp hairline, calm dark-pine fill) */
.wd-focus-pause-btn {
  min-width: 112px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(230, 239, 234, 0.07);
  color: #E6EFEA;
  border: 1px solid rgba(230, 239, 234, 0.14);
  border-radius: 4px;
  padding: 0 22px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.wd-focus-pause-btn:hover {
  background: rgba(230, 239, 234, 0.12);
  border-color: rgba(230, 239, 234, 0.22);
}

/* Fluent 2 Accent Button (4px radius, harmonious pine-teal) */
.wd-focus-primary-pill {
  min-width: 112px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2B8A78;
  color: #FFFFFF;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 24px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.12s ease;
}

.wd-focus-primary-pill:hover {
  background: #339D89;
}

.wd-darkroom--break .wd-focus-primary-pill {
  background: #2B8A78;
}

.wd-darkroom--break .wd-focus-primary-pill:hover {
  background: #339D89;
}

.wd-focus-secondary-actions {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.wd-focus-ghost-link {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: #8CA39D;
  font-size: 13.5px;
  font-weight: 500;
  padding: 0 12px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.wd-focus-ghost-link:hover {
  background: rgba(230, 239, 234, 0.07);
  color: #E6EFEA;
}

.wd-focus-ghost-link--complete:hover {
  color: #6EE7B7;
}

/* Bottom Single-Layer Fluent Soundscape Row */
.wd-darkroom-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.wd-soundscape-bar--minimal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.wd-soundscape-icon {
  display: inline-flex;
  align-items: center;
  color: #6B847E;
  margin-right: 4px;
}

.wd-sound-pill {
  background: transparent;
  border: none;
  border-radius: 4px;
  color: #78908A;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.wd-sound-pill:hover:not(.wd-sound-pill--active) {
  background: rgba(230, 239, 234, 0.06);
  color: #CFE0DA;
}

.wd-sound-pill--active {
  background: rgba(230, 239, 234, 0.1);
  color: #E6EFEA;
  font-weight: 600;
}

@media (max-width: 860px) {
  .wd-darkroom-overlay {
    padding: 18px 18px 24px;
  }

  .wd-darkroom-top {
    grid-template-columns: auto 1fr;
    row-gap: 12px;
  }

  .wd-focus-mode-switch {
    grid-column: 1 / -1;
    justify-self: center;
    order: 3;
  }

  .wd-darkroom-title {
    font-size: 20px;
  }

  .wd-timer-digits {
    font-size: 84px;
  }
}

.wd-pill-group {
  display: flex;
  gap: 5px;
}

/* Monday Judgement Full-Screen Modal */
.wd-judgement-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, #1F4582 0%, #0E1D38 58%, #091224 100%);
  color: #F2F7FE;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  padding: 32px;
}

.wd-judgement-container {
  max-width: 960px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wd-judgement-kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #9AC0F5;
  margin-bottom: 10px;
}

.wd-judgement-heading {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 14px;
}

.wd-judgement-subrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #B4CEF2;
  margin-bottom: 36px;
}

.wd-judgement-stage-pill {
  background: rgba(62, 142, 222, 0.24);
  color: #D2E6FF;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.wd-judgement-stage-arena {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  width: 100%;
  margin-bottom: 26px;
}

.wd-judgement-stack {
  position: relative;
  width: 420px;
  padding-top: 22px;
}

.wd-stack-ghost {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #C4D8F2;
  border-radius: 12px;
  height: 30px;
}

.wd-stack-ghost--2 {
  top: 0;
  width: 340px;
  opacity: 0.45;
}

.wd-stack-ghost--1 {
  top: 10px;
  width: 380px;
  opacity: 0.75;
}

.wd-judgement-card {
  position: relative;
  background: #FFFFFF;
  color: var(--wd-text);
  border-radius: 14px;
  padding: 24px 26px;
  text-align: left;
  box-shadow: 0 24px 60px rgba(4, 15, 36, 0.5);
}

.wd-judgement-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.wd-judgement-card-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #16325C;
}

.wd-judgement-card-notes {
  font-size: 13.5px;
  color: var(--wd-text-secondary);
  margin-bottom: 18px;
}

.wd-judgement-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wd-judgement-bar {
  flex: 1;
  height: 4px;
  background: #E0ECFC;
  border-radius: 99px;
  overflow: hidden;
}

.wd-judgement-bar-fill {
  height: 100%;
  background: var(--wd-accent);
}

.wd-judge-side-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #E5EFFC;
  padding: 11px 18px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.wd-judge-side-btn--primary {
  background: #3E8EDE;
  border-color: #64A8EE;
  color: #FFFFFF;
  font-weight: 600;
}

.wd-judgement-bottom-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.wd-judge-bottom-btn {
  background: transparent;
  border: none;
  color: #A4C0E8;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wd-judge-bottom-btn--danger {
  color: #FF8A8A;
}

.wd-judgement-footer {
  font-size: 12px;
  color: #7794BE;
}

.wd-judgement-celebration {
  animation: wd-fade-in 0.25s ease-out both;
}

.wd-celebration-badge {
  font-size: 32px;
  color: #FBBF24;
  margin-bottom: 8px;
  animation: wd-bounce 1.2s infinite ease-in-out;
}

.wd-judgement-card--celebration {
  max-width: 480px;
  width: 100%;
  margin: 16px 0 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.wd-celebration-enter-btn {
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(62, 142, 222, 0.4);
}

/* Exit Three Questions & Micro-Review Sheet & Toast */
.wd-exit-dialog {
  max-width: 520px;
}

.wd-exit-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wd-exit-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--wd-text-secondary);
}

.wd-modal-clean-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(15, 29, 54, 0.12);
  border-radius: 6px;
  background: #F7F9FC;
  font-size: 13px;
  outline: none;
}

.wd-modal-clean-input:focus {
  border-color: var(--wd-accent);
  background: #FFFFFF;
}

.wd-micro-review-sheet {
  position: fixed;
  bottom: 24px;
  right: 28px;
  width: 420px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: var(--wd-shadow-modal);
  padding: 16px 18px;
  z-index: 180;
}

.wd-micro-review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.wd-micro-q {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
}

/* Unified Floating Glassmorphic Toast System */
.wd-toast,
.wd-toast-pill {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 30, 49, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(4, 15, 36, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 500;
  pointer-events: auto;
  user-select: none;
  animation: wd-toast-spring-up 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes wd-toast-spring-up {
  from {
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.wd-toast-icon {
  display: inline-flex;
  align-items: center;
  color: #60A5FA;
  flex-shrink: 0;
}

.wd-toast-text {
  max-width: 440px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wd-toast-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  padding: 0 4px;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.wd-toast-close:hover {
  color: #FFFFFF;
}

.wd-muted-small {
  font-size: 12px;
  color: var(--wd-muted);
}

.wd-empty-stage {
  padding: 28px 16px;
  text-align: center;
  color: #46618A;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 8px;
}

.wd-file-label {
  cursor: pointer;
}

.wd-hidden-file {
  display: none;
}

.wd-share-dialog {
  max-width: 460px;
}

.wd-share-poster {
  background: #F4F8FD;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 12px;
}

.wd-share-poster-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 29, 54, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: var(--wd-text-secondary);
}

/* 5 Theme Palettes */
.wd-theme--ms-blue {
  --wd-accent: #2564CF;
  --wd-accent-hover: #1D52AE;
}

.wd-theme--ms-sky {
  --wd-accent: #0078D4;
  --wd-accent-hover: #005A9E;
}

.wd-theme--ms-sky .wd-content-area {
  background: linear-gradient(165deg, #C7E6FA 0%, #DFF0FC 55%, #ECF7FE 100%);
}

.wd-theme--ms-purple {
  --wd-accent: #5C4EE5;
  --wd-accent-hover: #4739C9;
}

.wd-theme--ms-purple .wd-content-area {
  background: linear-gradient(165deg, #D9D5F7 0%, #EAE8FC 55%, #F3F2FE 100%);
}

.wd-theme--ms-purple .wd-page-title {
  color: #2A226E;
}

.wd-theme--ms-sage {
  --wd-accent: #217346;
  --wd-accent-hover: #175935;
}

.wd-theme--ms-sage .wd-content-area {
  background: linear-gradient(165deg, #CBE5D6 0%, #E1F1E7 55%, #EEF8F2 100%);
}

.wd-theme--ms-sage .wd-page-title {
  color: #144529;
}

.wd-theme--ms-slate {
  --wd-accent: #3B526B;
  --wd-accent-hover: #2A3C4F;
}

.wd-theme--ms-slate .wd-content-area {
  background: linear-gradient(165deg, #D2DCE8 0%, #E4EBF2 55%, #F0F4F8 100%);
}

.wd-theme--ms-slate .wd-page-title {
  color: #1E2D3D;
}

.wd-theme--ms-amber {
  --wd-accent: #C27803;
  --wd-accent-hover: #9C5F02;
}

.wd-theme--ms-amber .wd-content-area {
  background: linear-gradient(165deg, #F3E5CC 0%, #F8EFE0 55%, #FCF8F0 100%);
}

.wd-theme--ms-amber .wd-page-title {
  color: #5C3A06;
}

.wd-theme--ms-amber .wd-subtitle,
.wd-theme--ms-amber .wd-slots-count {
  color: #7C5A28;
}

.wd-theme--ms-terracotta {
  --wd-accent: #C25238;
  --wd-accent-hover: #9E3F28;
}

.wd-theme--ms-terracotta .wd-content-area {
  background: linear-gradient(165deg, #F1DCD6 0%, #F7EAE6 55%, #FBF4F2 100%);
}

.wd-theme--ms-terracotta .wd-page-title {
  color: #5E2619;
}

.wd-theme--ms-terracotta .wd-subtitle,
.wd-theme--ms-terracotta .wd-slots-count {
  color: #824A3E;
}

.wd-theme--ms-rose {
  --wd-accent: #B84A6E;
  --wd-accent-hover: #963857;
}

.wd-theme--ms-rose .wd-content-area {
  background: linear-gradient(165deg, #F0DAE3 0%, #F7EAF0 55%, #FBF4F7 100%);
}

.wd-theme--ms-rose .wd-page-title {
  color: #5A2036;
}

.wd-theme--ms-rose .wd-subtitle,
.wd-theme--ms-rose .wd-slots-count {
  color: #7F445A;
}

.wd-theme--ms-teal {
  --wd-accent: #0E7C7B;
  --wd-accent-hover: #0A6160;
}

.wd-theme--ms-teal .wd-content-area {
  background: linear-gradient(165deg, #CDE7E6 0%, #E1F2F1 55%, #EFF8F8 100%);
}

.wd-theme--ms-teal .wd-page-title {
  color: #124545;
}

.wd-theme--ms-teal .wd-subtitle,
.wd-theme--ms-teal .wd-slots-count {
  color: #346867;
}

.wd-theme--ms-sand {
  --wd-accent: #8C7355;
  --wd-accent-hover: #705B41;
}

.wd-theme--ms-sand .wd-content-area {
  background: linear-gradient(165deg, #E7DFD3 0%, #F1ECE4 55%, #F8F5F0 100%);
}

.wd-theme--ms-sand .wd-page-title {
  color: #3F3325;
}

.wd-theme--ms-sand .wd-subtitle,
.wd-theme--ms-sand .wd-slots-count {
  color: #6B5C4B;
}

/* 6 Built-In Wallpaper Themes (High-Contrast Header Scrim + Frosted Cards) */
[class*="wd-theme--wp-"] .wd-content-area {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

[class*="wd-theme--wp-"] .wd-page-title {
  color: #FFFFFF;
  text-shadow: 0 1px 10px rgba(10, 20, 38, 0.32);
}

[class*="wd-theme--wp-"] .wd-subtitle,
[class*="wd-theme--wp-"] .wd-slots-count {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 6px rgba(10, 20, 38, 0.28);
}

[class*="wd-theme--wp-"] .wd-slot-dot--filled {
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(10, 20, 38, 0.25);
}

[class*="wd-theme--wp-"] .wd-slot-dot--empty {
  background: rgba(255, 255, 255, 0.35);
}

[class*="wd-theme--wp-"] .wd-energy-banner {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

[class*="wd-theme--wp-"] .wd-task-row,
[class*="wd-theme--wp-"] .wd-garden-row {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

[class*="wd-theme--wp-"] .wd-ms-collapse-pill {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

[class*="wd-theme--wp-"] .wd-tabs-bar {
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

[class*="wd-theme--wp-"] .wd-tab {
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 6px rgba(10, 20, 38, 0.28);
}

[class*="wd-theme--wp-"] .wd-tab--active {
  color: #FFFFFF;
  border-bottom-color: #FFFFFF;
}

[class*="wd-theme--wp-"] .wd-section-divider {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(10, 20, 38, 0.28);
}

[class*="wd-theme--wp-"] .wd-inline-stage-add {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: rgba(255, 255, 255, 0.45);
}

[class*="wd-theme--wp-"] .wd-icon-btn,
[class*="wd-theme--wp-"] .wd-suggest-trigger-btn {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.wd-theme--wp-alpine {
  --wd-accent: #2564CF;
  --wd-accent-hover: #1D52AE;
}

.wd-theme--wp-alpine .wd-content-area {
  background-image: linear-gradient(180deg, rgba(14, 28, 52, 0.34) 0%, rgba(14, 28, 52, 0.08) 45%, rgba(14, 28, 52, 0.14) 100%), url("../../assets/wallpapers/alpine-mist.jpg");
}

.wd-theme--wp-golden {
  --wd-accent: #C27803;
  --wd-accent-hover: #9C5F02;
}

.wd-theme--wp-golden .wd-content-area {
  background-image: linear-gradient(180deg, rgba(42, 26, 12, 0.32) 0%, rgba(42, 26, 12, 0.06) 45%, rgba(42, 26, 12, 0.14) 100%), url("../../assets/wallpapers/golden-horizon.jpg");
}

.wd-theme--wp-forest {
  --wd-accent: #217346;
  --wd-accent-hover: #175935;
}

.wd-theme--wp-forest .wd-content-area {
  background-image: linear-gradient(180deg, rgba(12, 32, 22, 0.36) 0%, rgba(12, 32, 22, 0.08) 45%, rgba(12, 32, 22, 0.16) 100%), url("../../assets/wallpapers/misty-forest.jpg");
}

.wd-theme--wp-ocean {
  --wd-accent: #0E7C7B;
  --wd-accent-hover: #0A6160;
}

.wd-theme--wp-ocean .wd-content-area {
  background-image: linear-gradient(180deg, rgba(10, 32, 44, 0.36) 0%, rgba(10, 32, 44, 0.08) 45%, rgba(10, 32, 44, 0.14) 100%), url("../../assets/wallpapers/still-ocean.jpg");
}

.wd-theme--wp-dunes {
  --wd-accent: #C25238;
  --wd-accent-hover: #9E3F28;
}

.wd-theme--wp-dunes .wd-content-area {
  background-image: linear-gradient(180deg, rgba(46, 26, 16, 0.32) 0%, rgba(46, 26, 16, 0.06) 45%, rgba(46, 26, 16, 0.14) 100%), url("../../assets/wallpapers/warm-dunes.jpg");
}

.wd-theme--wp-aura {
  --wd-accent: #5C4EE5;
  --wd-accent-hover: #4739C9;
}

.wd-theme--wp-aura .wd-content-area {
  background-image: linear-gradient(180deg, rgba(22, 18, 56, 0.34) 0%, rgba(22, 18, 56, 0.08) 45%, rgba(22, 18, 56, 0.14) 100%), url("../../assets/wallpapers/soft-aura.jpg");
}


/* ==========================================================================
   Account Bar & Google OAuth Sign-In (Microsoft To Do Fluent Craft)
   ========================================================================== */
.wd-account-wrap {
  position: relative;
  margin-bottom: 4px;
}

.wd-google-signin-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(15, 29, 54, 0.08);
  background: rgba(255, 255, 255, 0.85);
  color: var(--wd-text);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.wd-google-signin-btn:hover {
  background: #FFFFFF;
  border-color: rgba(37, 100, 207, 0.25);
  box-shadow: 0 2px 8px rgba(15, 29, 54, 0.06);
}

.wd-account-pill {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--wd-text);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease, transform 0.1s ease;
}

.wd-account-pill:hover {
  background: rgba(15, 29, 54, 0.045);
}

.wd-account-pill:active {
  transform: scale(0.985);
}

.wd-google-signin-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid rgba(15, 29, 54, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wd-google-signin-text,
.wd-account-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.wd-google-signin-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wd-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wd-account-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--wd-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.wd-google-signin-sub,
.wd-account-sub {
  font-size: 11px;
  color: var(--wd-text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wd-account-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.wd-account-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wd-accent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
}

.wd-account-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  flex-shrink: 0;
}

.wd-account-popover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  background: #FFFFFF;
  border: 1px solid rgba(15, 29, 54, 0.1);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 10px 28px rgba(15, 29, 54, 0.14);
  z-index: 40;
  transform-origin: bottom left;
  animation: wd-popover-up 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wd-account-popover-head {
  padding: 6px 8px;
}

.wd-account-popover-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--wd-text);
}

.wd-account-popover-email {
  font-size: 11.5px;
  color: var(--wd-text-secondary);
  word-break: break-all;
}

.wd-popover-item--danger {
  color: var(--wd-danger);
}

/* ==========================================================================
   Native Desktop Host (Tauri v2 macOS / Windows) — Full-Bleed Edge-to-Edge
   ========================================================================== */
html:has(body.wd-desktop-body),
body.wd-desktop-body {
  background: #F4F6F9;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: block;
}

body.wd-desktop-body #app,
body.wd-desktop-body #weekdone-desktop-root,
body.wd-desktop-body #wd-desktop-workspace-mount {
  width: 100%;
  height: 100vh;
  max-width: none;
  display: flex;
}

body.wd-desktop-body .wd-app-shell {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  max-width: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

body.wd-desktop-body .wd-sidebar {
  padding-top: 14px;
}

body.wd-desktop-body .wd-window-dots {
  visibility: hidden;
  height: 22px;
  padding: 0;
  margin-bottom: 12px;
}

.wd-desktop-drag-region {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  z-index: 50;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.001);
  -webkit-app-region: drag;
}

body.wd-desktop-body .wd-header-right-tools,
body.wd-desktop-body .wd-window-dots {
  position: relative;
  z-index: 60;
  pointer-events: auto;
}

/* ==========================================================================
   Responsive Mobile Viewport Adaptation (<= 860px) — Microsoft To Do Mobile
   ========================================================================== */
@media (max-width: 860px) {
  body {
    padding: 0;
  }

  .wd-app-shell {
    min-height: 100dvh;
    border-radius: 0;
    border: none;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .wd-window-dots,
  .wd-brand,
  .wd-account-wrap,
  .wd-sidebar-footer,
  .wd-energy-banner {
    display: none;
  }

  .wd-sidebar {
    grid-row: 2;
    flex-direction: row;
    padding: 6px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    border-right: none;
    border-top: 1px solid rgba(15, 29, 54, 0.08);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    z-index: 90;
  }

  .wd-nav-list {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    gap: 4px;
  }

  .wd-nav-list li {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    font-size: 11px;
    text-align: center;
  }

  .wd-nav-label {
    flex-direction: column;
    gap: 3px;
  }

  .wd-nav-item--active::before,
  .wd-badge {
    display: none;
  }

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

  .wd-stage-main,
  .wd-garden-main,
  .wd-energy-main {
    padding: 18px 16px 20px;
  }

  .wd-stage-header {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
  }

  .wd-page-title {
    font-size: 24px;
  }

  .wd-header-right-tools {
    width: 100%;
    justify-content: space-between;
  }

  .wd-inspector-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 78dvh;
    border-left: none;
    border-top: 1px solid rgba(15, 29, 54, 0.1);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(12, 24, 48, 0.22);
    z-index: 160;
  }

  .wd-insight-cards,
  .wd-energy-bottom-grid,
  .wd-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Pure-Flat Fluent 2 About WeekDone Dialog */
.wd-about-dialog {
  width: min(400px, 92vw);
  padding: 22px 24px 20px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(15, 29, 54, 0.08);
  box-shadow: 0 12px 32px rgba(15, 29, 54, 0.14);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wd-about-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wd-about-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wd-about-logo {
  display: inline-flex;
  color: var(--wd-accent);
  flex-shrink: 0;
}

.wd-about-logo .wd-brand-mark {
  width: 38px;
  height: 38px;
}

.wd-about-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wd-about-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wd-about-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #16325C;
}

.wd-about-version {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(15, 29, 54, 0.06);
  color: var(--wd-text-secondary);
  font-variant-numeric: tabular-nums;
}

.wd-about-tagline {
  margin: 0;
  font-size: 12.5px;
  color: var(--wd-text-secondary);
}

.wd-about-quote {
  position: relative;
  margin: 0;
  padding: 10px 14px 10px 20px;
  border-radius: 6px;
  background: #F8FAFC;
  border: 1px solid rgba(15, 29, 54, 0.05);
  font-size: 12.5px;
  line-height: 1.55;
  color: #334155;
}

.wd-about-quote::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 99px;
  background: var(--wd-accent);
}

.wd-about-updater {
  margin-top: 4px;
}

.wd-about-updater-box {
  border: 1px solid rgba(15, 29, 54, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  background: #F8FAFC;
  font-size: 12.5px;
}

.wd-about-updater-box--idle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
}

.wd-btn-check-update {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2564CF;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 7px 18px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.wd-btn-check-update:hover {
  background: #1B51A8;
  box-shadow: 0 2px 6px rgba(37, 100, 207, 0.25);
}

.wd-about-updater-box--checking {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #59636E;
}

.wd-about-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(37, 100, 207, 0.2);
  border-top-color: #2564CF;
  border-radius: 50%;
  animation: wd-spin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes wd-spin {
  to { transform: rotate(360deg); }
}

.wd-about-updater-box--success {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F0FDF4;
  border-color: #BBF7D0;
  color: #166534;
}

.wd-about-updater-status-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wd-badge-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22C55E;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
}

.wd-btn-check-sm {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 13px;
  color: #59636E;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wd-btn-check-sm:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1F2328;
}

.wd-about-updater-box--available {
  background: #EFF6FF;
  border-color: #BFDBFE;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wd-about-updater-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wd-badge-update {
  font-weight: 600;
  color: #1D4ED8;
  font-size: 12px;
}

.wd-about-updater-date {
  font-size: 11px;
  color: #6B7280;
}

.wd-about-updater-notes {
  font-size: 11.5px;
  line-height: 1.5;
  color: #374151;
  white-space: pre-line;
  background: rgba(255, 255, 255, 0.6);
  padding: 6px 10px;
  border-radius: 4px;
}

.wd-about-updater-action-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.wd-btn-download-r2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2564CF;
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.wd-btn-download-r2:hover {
  background: #1B51A8;
}

.wd-about-updater-box--error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FEF2F2;
  border-color: #FECACA;
  color: #991B1B;
}

.wd-about-error-text {
  font-size: 12px;
}

.wd-about-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 29, 54, 0.06);
}

.wd-about-copyright {
  font-size: 11.5px;
  color: var(--wd-muted);
}

/* Status & Exception Center Dialog (404 / Already Signed In / 401 / 403 / Offline / 500) */
.wd-status-dialog {
  width: min(540px, 94vw);
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wd-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(15, 29, 54, 0.045);
}

.wd-status-tab {
  border: none;
  background: transparent;
  color: #46618A;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.wd-status-tab:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #16325C;
}

.wd-status-tab--active {
  background: #FFFFFF;
  color: var(--wd-accent);
  box-shadow: 0 1px 4px rgba(15, 29, 54, 0.08);
}

.wd-status-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 2px;
}

.wd-status-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(37, 100, 207, 0.1);
  color: var(--wd-accent);
}

.wd-status-kicker--ok {
  background: rgba(33, 115, 70, 0.12);
  color: #217346;
}

.wd-status-kicker--warn {
  background: rgba(194, 120, 3, 0.12);
  color: #B4690E;
}

.wd-status-kicker--danger {
  background: rgba(184, 74, 110, 0.12);
  color: #B84A6E;
}

.wd-status-heading {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #16325C;
  line-height: 1.3;
}

.wd-status-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #46618A;
}

.wd-status-user-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 29, 54, 0.035);
  border: 1px solid rgba(15, 29, 54, 0.06);
  margin-top: 2px;
}

.wd-status-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.wd-status-user-meta strong {
  font-size: 13.5px;
  color: #16325C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wd-status-user-meta span {
  font-size: 12px;
  color: #46618A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wd-status-safe-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #46618A;
  background: rgba(33, 115, 70, 0.07);
  border: 1px solid rgba(33, 115, 70, 0.15);
  padding: 5px 11px;
  border-radius: 999px;
  margin-top: 2px;
}

.wd-status-safe-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #217346;
}