:root {
  color-scheme: light;
  --bg-deep: #f9f6f0;       /* Claude Warm Off-white / Cream */
  --bg-glow: #f4f0e6;
  --surface: #ffffff;       /* Pure White Card */
  --surface-2: #fcfbfa;     /* Ivory Secondary */
  --surface-3: #f5f2eb;     /* Soft warm grey/sand */
  --ink: #1d1b18;           /* Deep Charcoal with warm undertone */
  --muted: #706a60;         /* Muted Warm Grey / Sand */
  --faint: #a19a8e;         /* Light Sand / Warm Grey border */
  --hairline: rgba(217, 212, 199, 0.6);      /* Subtle border */
  --hairline-strong: rgba(184, 178, 163, 0.8);
  
  --accent-primary: #d96245;    /* Claude Brand Terracotta Coral */
  --accent-secondary: #6b7f67;  /* Sage Green */
  --accent-glow: rgba(217, 98, 69, 0.15);
  
  --green: #4d7c5a;         /* Muted Sage Green */
  --red: #cc4c3d;           /* Terracotta Red */
  --orange: #c7961a;        /* Ochre / Warm Gold */
  
  --shadow-soft: 0 4px 20px rgba(43, 42, 39, 0.04), 0 2px 8px rgba(43, 42, 39, 0.02);
  --shadow-pop: 0 12px 32px rgba(43, 42, 39, 0.08), 0 2px 4px rgba(43, 42, 39, 0.02);
  --shadow-neon: 0 0 12px rgba(217, 98, 69, 0.25);
  
  --mono: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, Menlo, monospace;
  --sans: "Inter", "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg-deep);
  font-family: var(--sans);
  font-size: 14px;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at 85% 15%, rgba(217, 98, 69, 0.05), transparent 45rem);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: 
    linear-gradient(rgba(217, 212, 199, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 212, 199, 0.15) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 95%);
}

button, input, select, textarea { font: inherit; }
button, input, select, textarea, code, .eyebrow, .status-pill, .mini-pill, .timer, .clock-card strong, .banner-clock-card strong { font-family: var(--mono); }
a { color: inherit; text-decoration: none; }

button {
  min-height: 34px;
  padding: 0 16px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent-primary);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(217, 98, 69, 0.12), 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
button:hover { 
  transform: translateY(-1px); 
  box-shadow: 0 4px 12px rgba(217, 98, 69, 0.2), 0 2px 4px rgba(0, 0, 0, 0.06);
  background: #e26e52; /* Slightly lighter terracotta */
}
a:hover {
  color: var(--accent-primary);
}
button:disabled { cursor: wait; filter: grayscale(0.4) opacity(0.7); transform: none; box-shadow: none; }

/* Page Shell - Fluid, Modern Layout Container */
.page-shell {
  display: grid;
  grid-template-rows: 60px minmax(0, 1fr);
  width: 95%;
  max-width: 1540px;
  min-height: 90vh;
  margin: 32px auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--hairline-strong);
  border-radius: 24px;
  box-shadow: var(--shadow-pop);
}

.topbar, .brand, .topbar-actions, .widget-head, .widget-actions, .split-actions, .shortcut-row, .filter-row, .timer-actions, .feed-meta { display: flex; align-items: center; }

.topbar {
  position: relative;
  z-index: 20;
  justify-content: flex-start;
  gap: 18px;
  padding: 0 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--hairline);
}

.window-controls {
  position: absolute;
  left: 24px;
  display: flex;
  gap: 8px;
}

.window-controls span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: opacity 180ms ease, transform 180ms ease;
}
.window-controls span:nth-child(1) { background: #d96245; } /* Claude Terracotta */
.window-controls span:nth-child(2) { background: #e2b05c; } /* Warm Amber */
.window-controls span:nth-child(3) { background: #8b9e85; } /* Sage Green */
.window-controls:hover span { opacity: 0.85; transform: scale(1.05); }

.brand { gap: 12px; margin-left: 80px; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; font-weight: 900; background: var(--accent-primary); border: 1px solid rgba(0,0,0,0.05); border-radius: 11px; box-shadow: 0 2px 6px rgba(217, 98, 69, 0.2); }
.brand strong, .brand small { display: block; }
.brand strong { line-height: 1; font-weight: 700; letter-spacing: 0.5px; }
.brand small { margin-top: 4px; color: var(--muted); font-family: var(--mono); font-size: 0.72rem; }
.topbar-actions { margin-left: auto; gap: 10px; }

.status-pill, .mini-pill { display: inline-flex; align-items: center; width: fit-content; min-height: 28px; padding: 0 12px; color: var(--muted); font-size: 0.74rem; font-weight: 600; background: var(--bg-deep); border: 1px solid var(--hairline); border-radius: 999px; }
.status-pill::before, .mini-pill::before { width: 8px; height: 8px; margin-right: 8px; content: ""; background: var(--faint); border-radius: 999px; }
.status-pill.is-ok::before, .mini-pill.is-ok::before { background: var(--green); }
.status-pill.is-error::before, .mini-pill.is-error::before { background: var(--red); }

.ghost-button, .danger-button { color: var(--ink); background: #ffffff; border-color: var(--hairline-strong); box-shadow: 0 1px 2px rgba(0,0,0,0.02); font-weight: 500; }
.ghost-button:hover { background: var(--bg-deep); border-color: var(--faint); box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.danger-button { color: var(--red); border-color: rgba(204, 76, 61, 0.2); background: rgba(204, 76, 61, 0.05); }
.danger-button:hover { background: rgba(204, 76, 61, 0.1); border-color: var(--red); box-shadow: 0 2px 6px rgba(204, 76, 61, 0.1); }
.small { min-height: 30px; padding: 0 12px; font-size: 0.78rem; border-radius: 8px; }

/* Main Section Layout */
.app-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}

/* Horizontal Hero Welcome Banner */
.hero-banner {
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) minmax(360px, 2fr) minmax(280px, 1.5fr);
  gap: 24px;
  align-items: center;
  padding: 16px 24px;
  background: #ffffff;
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  position: absolute;
  top: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  content: "";
  background: radial-gradient(circle, rgba(217, 98, 69, 0.04), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.banner-welcome {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.banner-date-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

#dateLabel {
  font-family: var(--mono);
}

.weekday-tag {
  background: rgba(217, 98, 69, 0.08);
  color: var(--accent-primary);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

.clock-tag {
  background: var(--ink);
  color: #ffffff;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--mono);
}

#heroTitle {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--ink);
}

/* Middle Column: Search in Banner */
.banner-search-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.banner-search-box {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 560px;
  height: 38px;
  padding: 0 4px 0 12px;
  background: var(--surface-2);
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  gap: 10px;
  transition: all 180ms ease;
}

.banner-search-box:focus-within {
  border-color: var(--accent-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.banner-search-box .prompt-symbol {
  color: var(--accent-primary);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  font-family: var(--mono);
}

.banner-search-box input {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.88rem;
  color: var(--ink);
}

.banner-search-box input:focus {
  box-shadow: none;
  border: none;
  background: transparent;
}

.banner-search-box select {
  width: auto;
  height: 28px;
  padding: 0 24px 0 8px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
  line-height: 1;
}

.banner-search-box button {
  height: 28px;
  min-height: auto;
  padding: 0 12px;
  font-size: 0.78rem;
  border-radius: 6px;
}

.banner-shortcut-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
}

.banner-shortcut-row code {
  color: var(--accent-primary);
  background: rgba(217, 98, 69, 0.05);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.68rem;
}

/* Right Column: Weather & Metrics */
.banner-right-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: 100%;
}

.banner-right-group .weather-display {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: none;
  font-size: 0.78rem;
}

.banner-right-group .weather-display:hover {
  border-color: var(--accent-primary);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(217,98,69,0.06);
}

.banner-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: rgba(255, 255, 255, 0.5);
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 3px rgba(43, 42, 39, 0.02);
  min-width: 320px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.metric-item span {
  display: block;
  color: var(--faint);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-item strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 700;
}

/* 2-Columns Layout Grid */
.dashboard-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: start;
}

.main-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card General Style */
.command-center, .setup-panel, .widget, .settings-card { 
  background: #ffffff; 
  border: 1px solid var(--hairline-strong); 
  border-radius: 20px; 
  box-shadow: var(--shadow-soft); 
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; 
}
.command-center:hover, .setup-panel:hover, .widget:hover { 
  border-color: var(--faint); 
  box-shadow: 0 8px 30px rgba(43, 42, 39, 0.08); 
  transform: translateY(-1px);
}

/* App Footer Quote Styles */
.app-footer {
  margin-top: 32px;
  padding: 24px 0;
  border-top: 1px dashed var(--hairline-strong);
  display: flex;
  justify-content: center;
  width: 100%;
}
.app-footer .quote-container {
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-footer .quote-text {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.app-footer .quote-author {
  font-size: 0.7rem;
  color: var(--faint);
  font-weight: 500;
  font-family: var(--mono);
}

input, select, textarea { 
  width: 100%; 
  color: var(--ink); 
  background: #ffffff; 
  border: 1px solid var(--hairline-strong); 
  border-radius: 10px; 
  outline: 0; 
  transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1); 
}

input, select { height: 40px; padding: 0 12px; }
textarea { min-height: 256px; padding: 14px; line-height: 1.6; resize: vertical; }
input:focus, select:focus, textarea:focus { 
  background: #ffffff; 
  border-color: var(--accent-primary); 
  box-shadow: 0 0 0 3px var(--accent-glow); 
}
input::placeholder, textarea::placeholder { color: var(--faint); }

.shortcut-row { 
  padding: 0 0 0 24px;
  flex-wrap: wrap; 
  gap: 12px; 
  color: var(--muted); 
  font-size: 0.78rem; 
}
code { color: var(--accent-primary); background: rgba(217, 98, 69, 0.06); padding: 2px 6px; border-radius: 4px; }

/* Setup Panel */
.setup-panel { padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 280px 280px; gap: 16px; }
.setup-panel p, .form-hint { color: var(--muted); line-height: 1.6; }
.panel-form, .inline-form { display: grid; gap: 10px; }
.panel-form label { display: grid; gap: 8px; }
.panel-form span, .settings-list dt { color: var(--muted); font-size: .85rem; font-weight: 600; }
.split-actions { gap: 10px; }
.split-actions > * { flex: 1; }

/* Widget Styles */
.widget { padding: 20px; min-width: 0; }
.widget-head { justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.widget-actions, .timer-actions { gap: 10px; }

/* Queue & Launch Row (Split Grid) */
.split-widgets-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.inline-form { grid-template-columns: minmax(0, 1fr) 100px 76px; margin-bottom: 16px; }
#linkForm { grid-template-columns: minmax(120px, 1fr) minmax(170px, 1.3fr) 120px 76px; }
#sourceForm { grid-template-columns: minmax(140px, 1fr) minmax(210px, 1.4fr) 120px 90px 76px; }
.filter-row { flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-row button { min-height: 30px; padding: 0 12px; color: var(--muted); background: var(--bg-deep); border-color: var(--hairline); box-shadow: none; border-radius: 8px; }
.filter-row button.is-active { color: #fff; background: var(--accent-primary); border-color: transparent; box-shadow: 0 2px 8px rgba(217, 98, 69, 0.2); }

/* Grid of launch links */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 12px; }
.link-card, .source-item, .feed-item, .task-item { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 14px; transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1); }
.link-card:hover, .source-item:hover, .task-item:hover, .feed-item:hover { background: #ffffff; border-color: var(--hairline-strong); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(43, 42, 39, 0.03); }

.link-card, .source-item, .feed-item {
  position: relative;
  cursor: pointer;
}

/* Link stretching trick to make the whole card clickable */
.link-card a::after, .source-item .source-actions a::after, .feed-item a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.link-card {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 12px;
  border-radius: 8px;
}
.link-card::before {
  display: none !important;
}
.link-card a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-width: 0;
}
.link-card strong {
  display: block;
  font-size: 0.85rem;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-favicon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
}
.delete-badge {
  position: absolute !important;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  min-height: auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  background: var(--red) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 50% !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(204, 76, 61, 0.3) !important;
}
.delete-badge:hover {
  transform: scale(1.1);
  background: #e55c4c !important;
}
.link-card:hover .delete-badge, 
.source-item:hover .delete-badge, 
.task-item:hover .delete-badge {
  opacity: 1;
}

.source-item strong, .feed-item strong { display: block; line-height: 1.4; font-weight: 600; }
.source-item span, .source-item p, .feed-item p, .feed-meta, .task-item em { color: var(--muted); font-size: .82rem; line-height: 1.5; }

.task-list, .source-list, .feed-list { display: grid; gap: 10px; }
.task-item { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px; }
.task-item input { width: 18px; height: 18px; accent-color: var(--accent-primary); cursor: pointer; }
.task-item.is-done span { color: var(--faint); text-decoration: line-through; }
.task-item em { font-style: normal; }

/* Radar Layout (Wide Bottom Section) */
.radar-columns { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; }
.subhead { margin-bottom: 12px; }
.source-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; }
.source-item p, .feed-item p { margin: 6px 0 0; }
.source-item a { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; color: #fff; font-size: .8rem; font-weight: 600; background: var(--accent-secondary); border-radius: 999px; }
.source-actions { display: grid; gap: 8px; justify-items: end; }
.feed-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.section-title.compact { margin-bottom: 12px; }
.feed-item { display: grid; gap: 8px; padding: 14px; }
.feed-meta { flex-wrap: wrap; gap: 10px; }

.task-item em { font-style: normal; }

.priority-tag {
  font-style: normal !important;
  font-size: 0.72rem !important;
  font-weight: 700;
  font-family: var(--mono);
  padding: 2px 6px;
  border-radius: 4px;
}
.priority-tag.is-high {
  color: var(--red) !important;
  background: rgba(204, 76, 61, 0.08);
}
.priority-tag.is-normal {
  color: var(--orange) !important;
  background: rgba(199, 150, 26, 0.08);
}
.priority-tag.is-low {
  color: var(--muted) !important;
  background: rgba(112, 106, 96, 0.08);
}

/* Notes Scratchpad Widget */
.side-column textarea {
  min-height: 280px;
}

/* Weather Widget Styles */
.command-right-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  width: 100%;
}
.weather-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 180ms ease;
  box-shadow: 0 1px 2px rgba(43,42,39,0.02);
}
.weather-display:hover {
  border-color: var(--accent-primary);
  background: var(--bg-glow);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(217,98,69,0.08);
}
.weather-icon {
  font-size: 1.1rem;
}
.weather-temp {
  font-weight: 700;
  color: var(--ink);
}
.weather-loc {
  color: var(--muted);
  font-weight: 500;
}

/* Calendar Widget Styles */
.calendar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.calendar-month-label {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 86px;
  text-align: center;
  color: var(--ink);
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 700;
  font-family: var(--mono);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  transition: all 150ms ease;
  border: 1px solid transparent;
}
.calendar-day:hover {
  background: var(--bg-glow);
  border-color: var(--hairline-strong);
}
.calendar-day.is-today {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  font-weight: 700;
  background: rgba(217, 98, 69, 0.05);
}
.calendar-day.is-today:hover {
  background: rgba(217, 98, 69, 0.1);
}
.calendar-day.is-selected {
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
}
.calendar-day.is-selected:hover {
  background: var(--ink);
  opacity: 0.9;
}
.calendar-day.is-empty {
  cursor: default;
  pointer-events: none;
  opacity: 0.2;
}
.calendar-dot {
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  background-color: var(--accent-primary);
  border-radius: 50%;
}
.calendar-day.is-selected .calendar-dot {
  background-color: #ffffff;
}
.calendar-day-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--hairline-strong);
}
.calendar-details-list {
  margin: 8px 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.calendar-details-list li {
  font-size: 0.8rem;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calendar-details-list li em {
  font-style: normal;
  font-size: 0.72rem;
  font-family: var(--mono);
  color: var(--muted);
}

/* Habit Tracker Styles */
.habits-list {
  display: grid;
  gap: 8px;
}
.habit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  transition: all 180ms ease;
  cursor: pointer;
  position: relative;
}
.habit-item:hover {
  background: #ffffff;
  border-color: var(--hairline-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(43,42,39,0.03);
}
.habit-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.habit-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.habit-title {
  font-weight: 600;
  color: var(--ink);
}
.habit-streak {
  font-size: 0.72rem;
  color: var(--accent-primary);
  font-family: var(--mono);
  font-weight: 700;
}
.habit-history-dots {
  display: flex;
  gap: 3px;
}
.habit-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--hairline);
}
.habit-dot.is-done {
  background: var(--accent-secondary);
  border-color: transparent;
}
.habit-check-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px dashed var(--hairline-strong);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 180ms ease;
  padding: 0;
  min-height: auto;
  box-shadow: none;
}
.habit-check-btn:hover {
  background: var(--bg-glow);
  border-color: var(--accent-primary);
  transform: none;
  box-shadow: none;
}
.habit-item.is-checked .habit-check-btn {
  background: var(--accent-primary);
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(217, 98, 69, 0.2);
}
.habit-check-btn svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  stroke-width: 3;
  fill: none;
  opacity: 0;
  transition: opacity 120ms ease;
}
.habit-item.is-checked .habit-check-btn svg {
  opacity: 1;
}
.habit-delete-btn {
  position: absolute;
  top: 50%;
  right: 50px;
  transform: translateY(-50%);
  min-height: auto;
  padding: 2px 6px;
  font-size: 0.72rem;
  color: var(--red);
  background: rgba(204, 76, 61, 0.06);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 150ms ease;
  z-index: 2;
  box-shadow: none;
}
.habit-delete-btn:hover {
  background: rgba(204, 76, 61, 0.12);
  transform: translateY(-50%);
  box-shadow: none;
}
.habit-item:hover .habit-delete-btn {
  opacity: 1;
}


/* Empty & Settings State */
.empty-state { min-height: 90px; display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--hairline-strong); border-radius: 14px; background: var(--surface-2); }

.settings-panel { position: fixed; inset: 0; z-index: 50; display: grid; align-items: start; justify-items: end; padding: 24px; background: rgba(29, 27, 24, 0.35); backdrop-filter: blur(8px); }
.settings-card { width: 480px; padding: 20px; background: #ffffff; border: 1px solid var(--hairline-strong); box-shadow: var(--shadow-pop); }
.settings-list { display: grid; gap: 14px; margin: 0 0 20px; }
.settings-list dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 1200px) {
  .hero-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }
  .banner-welcome {
    align-items: center;
    text-align: center;
  }
  .banner-right-group {
    justify-content: center;
    flex-wrap: wrap;
  }
  .banner-metrics {
    min-width: auto;
    width: 100%;
  }
  .dashboard-content {
    grid-template-columns: 1fr;
  }
  .side-column {
    position: static;
  }
}

@media (max-width: 768px) {
  .banner-search-box {
    flex-direction: column;
    height: auto;
    padding: 10px;
    gap: 8px;
  }
  .banner-search-box input, .banner-search-box select, .banner-search-box button {
    width: 100%;
  }
  .banner-search-box select {
    padding: 0 12px;
  }
  .banner-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .split-widgets-row {
    grid-template-columns: 1fr;
  }
  .radar-columns {
    grid-template-columns: 1fr;
  }
}
