:root {
  color-scheme: dark;
  --bg: #0b111b;
  --panel: #111a28;
  --panel-soft: #141f2f;
  --line: rgba(181, 200, 224, 0.1);
  --text: #eef3f9;
  --muted: #94a3b8;
  --subtle: #6f8199;
  --accent: #a6efd0;
  --accent-dark: #142f2a;
  --peach: #ffc89f;
  --danger: #ffb1a8;
  --accent-rgb: 166, 239, 208;
  --accent-glow: rgba(166, 239, 208, 0.13);
  --surface-alpha: 0.65;
  --wallpaper-overlay-alpha: 0.65;
  --grain-alpha: 0.06;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
}

[data-theme="blue"] {
  --accent: #a9d8ff;
  --accent-dark: #172a3c;
  --accent-rgb: 169, 216, 255;
  --accent-glow: rgba(169, 216, 255, 0.13);
}

[data-theme="violet"] {
  --accent: #d0b6ff;
  --accent-dark: #30244a;
  --accent-rgb: 208, 182, 255;
  --accent-glow: rgba(208, 182, 255, 0.13);
}

[data-theme="rose"] {
  --accent: #ffb9cc;
  --accent-dark: #402531;
  --accent-rgb: 255, 185, 204;
  --accent-glow: rgba(255, 185, 204, 0.13);
}

[data-theme="amber"] {
  --accent: #ffd166;
  --accent-dark: #3a2c13;
  --accent-rgb: 255, 209, 102;
  --accent-glow: rgba(255, 209, 102, 0.13);
}

[data-theme="coral"] {
  --accent: #ff9b85;
  --accent-dark: #3b211d;
  --accent-rgb: 255, 155, 133;
  --accent-glow: rgba(255, 155, 133, 0.13);
}

[data-theme="lime"] {
  --accent: #c8ef78;
  --accent-dark: #29341a;
  --accent-rgb: 200, 239, 120;
  --accent-glow: rgba(200, 239, 120, 0.13);
}

[data-theme="ice"] {
  --accent: #a7f0ed;
  --accent-dark: #173231;
  --accent-rgb: 167, 240, 237;
  --accent-glow: rgba(167, 240, 237, 0.13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 83% 4%, rgba(73, 108, 142, 0.14), transparent 27rem),
    linear-gradient(155deg, #0d1521 0%, var(--bg) 44rem);
}

.wallpaper-layer {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
}

.wallpaper-layer[hidden] { display: none; }
.wallpaper-layer img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8); }
.wallpaper-layer::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 10, 15, var(--wallpaper-overlay-alpha)),
    rgba(7, 10, 15, var(--wallpaper-overlay-alpha))
  );
  content: '';
}

button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell { position: relative; z-index: 1; width: min(1192px, calc(100% - 48px)); margin: 0 auto; }

.topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 700 18px 'Manrope', sans-serif;
  letter-spacing: -0.7px;
}

.brand-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: #12221e;
  font-size: 15px;
}

.brand-period { color: var(--accent); }
.topbar-date { color: var(--muted); font-size: 13px; }

.outline-button, .icon-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.shortcut-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: #c2cfdd;
  font-size: 12px;
}

.topbar-actions { display: flex; align-items: center; gap: 9px; }
.settings-open { padding: 9px 12px; font-size: 11px; }
.notification-toggle { padding: 9px 12px; font-size: 11px; }
.notification-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #12221e;
  font-size: 10px;
  font-weight: 800;
}
.notification-count[hidden] { display: none; }
.notification-panel { margin: 14px 0; padding: 18px; }
.notification-panel .section-heading { margin-bottom: 12px; }
.notification-panel .source-note { margin-bottom: 12px; }
.notification-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.notification-actions label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.notification-actions input { accent-color: var(--accent); }
.community-notification-list { display: grid; max-height: 340px; gap: 7px; overflow: auto; }
.shared-dashboard-panel { margin: 14px 0; padding: 18px; }
.shared-dashboard-panel .section-heading { margin-bottom: 12px; }
.shared-dashboard-panel > .source-note { margin: 0 0 10px; }
.shared-data-feed { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.shared-data-empty { grid-column: 1 / -1; color: var(--subtle); font-size: 12px; }
.shared-profile-card { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.035); }
.shared-profile-card h3 { margin: 0 0 10px; color: var(--text); font-size: 13px; }
.shared-profile-group + .shared-profile-group { margin-top: 11px; }
.shared-profile-group strong { display: block; margin-bottom: 4px; color: var(--accent); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.shared-profile-group ul { display: grid; gap: 5px; margin: 0; padding-left: 17px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.shared-profile-group a { color: var(--text); overflow-wrap: anywhere; }
.shared-data-meta { display: block; margin-top: 3px; color: var(--subtle); font-size: 10px; }
.shared-data-status.error { color: var(--danger, #ff938c); }
.community-notification {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.community-notification.is-unread { border-color: rgba(var(--accent-rgb), 0.5); background: rgba(var(--accent-rgb), 0.08); }
.community-notification strong { color: var(--accent); font-size: 11px; }
.community-notification span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.community-notification time { color: var(--subtle); font-size: 9px; }
.notification-empty { margin: 0; padding: 12px; color: var(--muted); font-size: 11px; }

.outline-button:hover, .icon-button:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(181, 200, 224, 0.23);
}

kbd {
  padding: 3px 5px;
  border: 1px solid rgba(181, 200, 224, 0.18);
  border-radius: 5px;
  color: #bdcada;
  font: 10px 'DM Sans', sans-serif;
  white-space: nowrap;
}

.action-center-icon {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  position: relative;
}

.action-center-icon::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  top: 2px;
  right: -3px;
  border-radius: 50%;
  background: var(--peach);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(20, 31, 47, 0.94), rgba(15, 24, 37, 0.96));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.13);
}

.welcome {
  position: relative;
  overflow: hidden;
  min-height: 228px;
  margin: 26px 0 18px;
  padding: 28px 32px 20px;
  background:
    radial-gradient(ellipse at 88% 38%, var(--accent-glow), transparent 14rem),
    linear-gradient(114deg, #172539, #121e2e 62%, #162735);
}

.welcome-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: 'Segoe UI', Arial, sans-serif; letter-spacing: -1px; }
h1 { margin-bottom: 8px; font-size: clamp(25px, 4vw, 37px); line-height: 1.2; }
h2 { margin-bottom: 0; font-size: 19px; line-height: 1.3; }
h3 { margin-bottom: 10px; color: #bdcada; font-size: 12px; font-weight: 600; }

.welcome-subtitle { margin: 0; color: #a6b5c7; font-size: 13px; }
.welcome-foot { position: absolute; right: 32px; bottom: 20px; left: 32px; display: flex; align-items: center; gap: 8px; color: #93a3b6; font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.65); }
.privacy-label { margin-left: auto; color: #8193a8; }

.welcome-orbit { position: absolute; width: 196px; height: 196px; top: 0; right: 11%; }
.orbit-ring { position: absolute; border: 1px solid rgba(var(--accent-rgb), 0.14); border-radius: 50%; }
.orbit-ring-one { inset: 10px; }
.orbit-ring-two { inset: 33px; }
.orbit-sun { position: absolute; top: 74px; left: 76px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 60px rgba(var(--accent-rgb), 0.38); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(275px, 0.83fr); gap: 18px; align-items: start; }
.main-column, .side-column { display: grid; gap: 18px; min-width: 0; }
.section-panel, .weather-panel, .news-panel { padding: 22px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading-compact { margin-bottom: 16px; }

.count-pill { display: grid; min-width: 27px; height: 27px; padding: 0 8px; place-items: center; border: 1px solid rgba(var(--accent-rgb), 0.15); border-radius: 99px; background: rgba(var(--accent-rgb), 0.08); color: var(--accent); font-size: 11px; font-weight: 700; }
.count-pill-muted { border-color: var(--line); background: rgba(255, 255, 255, 0.035); color: #9aabc0; }

.priority-list { display: grid; }
.priority-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.priority-item:first-child { border-top: 0; padding-top: 0; }
.priority-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--accent); background: rgba(var(--accent-rgb), 0.08); font-size: 14px; }
.priority-icon.mail { color: #b8ccff; background: rgba(133, 165, 240, 0.1); }
.priority-icon.event { color: var(--peach); background: rgba(255, 200, 159, 0.09); }
.priority-title { overflow: hidden; margin: 0 0 4px; color: #e4ebf3; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.priority-detail { margin: 0; color: var(--muted); font-size: 10px; }
.priority-badge { color: #a6b7ca; font-size: 10px; white-space: nowrap; }
.empty-state { display: none; margin: 0; padding: 19px 0 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.empty-state.is-visible { display: block; }

.reminder-form { display: grid; grid-template-columns: minmax(100px, 1fr) 120px 100px auto; gap: 8px; }
.reminder-form input {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1623;
  color: var(--text);
  font-size: 11px;
}

.reminder-form input::placeholder { color: #687b92; }
.reminder-notify {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}
.reminder-notify input { width: auto; accent-color: var(--accent); }
.reminder-notify-toggle {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}
.reminder-notify-toggle.is-off { opacity: 0.55; }
.reminder-notify-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.date-input { color-scheme: dark; }
.time-input { color-scheme: dark; }
.primary-button { padding: 0 12px; border: 0; border-radius: 8px; background: var(--accent); color: #12221e; cursor: pointer; font-size: 11px; font-weight: 700; white-space: nowrap; }
.primary-button:hover { filter: brightness(1.08); }
.primary-button span { margin-left: 4px; font-size: 15px; }

.reminder-list, .compact-list, .news-list { display: grid; gap: 0; margin: 13px 0 0; padding: 0; list-style: none; }
.reminder-list:empty { display: none; }
.reminder-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.check-button { display: grid; flex: 0 0 18px; width: 18px; height: 18px; padding: 0; place-items: center; border: 1px solid #5e7087; border-radius: 6px; background: transparent; color: #10201a; cursor: pointer; }
.check-button:hover { border-color: var(--accent); }
.reminder-row.done .check-button { border-color: var(--accent); background: var(--accent); }
.reminder-row.done .reminder-title { color: var(--subtle); text-decoration: line-through; }
.reminder-copy { min-width: 0; flex: 1; }
.reminder-title { overflow: hidden; margin: 0 0 3px; color: #dce5ef; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.reminder-meta { margin: 0; color: var(--muted); font-size: 10px; }
.reminder-meta.overdue { color: var(--danger); }
.delete-button { border: 0; background: transparent; color: var(--subtle); cursor: pointer; font-size: 17px; }
.delete-button:hover { color: var(--danger); }

.outline-button { padding: 8px 10px; border-radius: 8px; color: #cad6e3; font-size: 10px; }
.outlook-actions { display: flex; gap: 7px; }
.outlook-setup { margin-bottom: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8, 15, 24, 0.4); }
.client-id-label { display: block; margin-bottom: 7px; color: #bdcada; font-size: 10px; font-weight: 600; }
.client-id-row { display: grid; grid-template-columns: minmax(120px, 1fr) auto; gap: 8px; }
.client-id-row input { min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: #0d1623; color: var(--text); font-size: 11px; }
.client-id-row input::placeholder { color: #687b92; }
.client-id-row .primary-button { min-height: 36px; }
.setup-link { display: inline-block; margin-top: 9px; color: var(--accent); font-size: 10px; text-decoration: none; }
.setup-link:hover { text-decoration: underline; }
.outlook-auth-status { margin: -4px 0 14px; }
.source-note { margin: -7px 0 16px; color: var(--subtle); font-size: 10px; line-height: 1.55; }
.outlook-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.outlook-columns > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.compact-list { margin-top: 0; }
.compact-item { padding: 9px 0; border-top: 1px solid var(--line); }
.compact-item:first-child { border-top: 0; }
.compact-item strong { display: block; overflow: hidden; margin-bottom: 3px; color: #dfe7f0; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.compact-item span { color: var(--muted); font-size: 10px; }
.inline-status { margin: 0; color: var(--subtle); font-size: 10px; line-height: 1.5; }
.inline-status.error { color: var(--danger); }

.assistant-panel { padding: 18px; }
.assistant-panel .section-heading { align-items: flex-start; }
.assistant-panel .section-heading .outline-button { flex: 0 0 auto; }
.assistant-intro { margin: -4px 0 12px; }
.assistant-messages {
  display: grid;
  max-height: 280px;
  gap: 8px;
  overflow-y: auto;
  margin: 0 0 12px;
  padding: 0 3px 0 0;
  list-style: none;
}
.assistant-message {
  max-width: 96%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}
.assistant-message-user {
  justify-self: end;
  border-color: rgba(var(--accent-rgb), 0.2);
  background: rgba(var(--accent-rgb), 0.07);
}
.assistant-message-label { color: var(--accent); font-size: 9px; font-weight: 700; }
.assistant-message p { margin: 4px 0 0; color: #dce5ef; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.assistant-form { display: grid; gap: 8px; }
.assistant-form textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1623;
  color: var(--text);
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
}
.assistant-form textarea::placeholder { color: #687b92; }
.assistant-form .primary-button { justify-self: end; min-height: 34px; }
.assistant-panel button:disabled { cursor: wait; opacity: 0.6; }
.assistant-status { margin-top: 9px; }
.assistant-privacy { margin: 7px 0 0; }

.weather-panel { min-height: 203px; }
.weather-content { min-height: 82px; display: flex; align-items: center; gap: 13px; }
.weather-panel > .inline-status { margin: 0 0 10px; }
.weather-sun { color: #f5d092; font-size: 37px; line-height: 1; }
.weather-reading { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 9px; }
.weather-temperature { grid-row: span 2; color: #f4f6fa; font: 500 35px 'Segoe UI', Arial, sans-serif; letter-spacing: -2px; }
.weather-condition { color: #d6e0eb; font-size: 12px; }
.weather-range { margin-top: 3px; color: var(--muted); font-size: 10px; }
.weather-location { grid-column: 2; margin-top: 3px; color: var(--subtle); font-size: 9px; }
.weather-panel > .source-note { margin: 5px 0 0; }
.icon-button { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; color: #9daec0; font-size: 18px; }

.news-list { margin-top: -5px; }
.news-item { padding: 11px 0; border-top: 1px solid var(--line); }
.news-item:first-child { border-top: 0; }
.news-item a { display: block; color: #dce5ef; font-size: 11px; font-weight: 500; line-height: 1.5; text-decoration: none; }
.news-item a:hover { color: var(--accent); }
.news-date { display: block; margin-top: 4px; color: var(--subtle); font-size: 9px; }
.news-list:empty { display: none; }
.news-list:not(:empty) + .inline-status { display: none; }
.news-panel .source-note { margin: 12px 0 0; }

.settings-panel { margin: 18px 0; padding: 24px; scroll-margin-top: 16px; }
.settings-live-note { margin: -5px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.settings-panel .section-heading { margin-bottom: 20px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.settings-field { display: grid; align-content: start; gap: 7px; color: #cad6e3; font-size: 10px; font-weight: 600; }
.settings-field input, .settings-field select, .quicklink-form input {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1623;
  color: var(--text);
  font-size: 11px;
  font-weight: 400;
}
.settings-field input::placeholder, .quicklink-form input::placeholder { color: #687b92; }
.settings-field small { color: var(--subtle); font-size: 9px; font-weight: 400; line-height: 1.4; }
.settings-field-wide { grid-column: 1 / -1; }
.settings-field input[type="file"] { width: 100%; padding: 8px; }
.wallpaper-actions { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.wallpaper-actions > span, .wallpaper-actions .inline-status { grid-column: 1 / -1; }
.wallpaper-actions .inline-status { margin: 0; }
.wallpaper-actions .outline-button { min-height: 39px; padding: 8px 11px; color: var(--muted); font-size: 10px; }
.settings-section { display: grid; grid-template-columns: minmax(145px, 0.55fr) minmax(0, 1.45fr); gap: 18px; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.settings-section h3 { margin: 0 0 5px; }
.settings-section .source-note { margin: 0; }
.storage-section { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.storage-section .inline-status { margin: 9px 0 4px; font-size: 10px; }
.storage-total-line { margin: 8px 0 4px; color: var(--muted); font-size: 10px; }
.storage-total-line strong { color: var(--accent); font-variant-numeric: tabular-nums; }
.storage-files { display: grid; max-height: 170px; overflow: auto; margin: 0 0 10px; padding: 0; list-style: none; }
.storage-file-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.storage-file-row span:first-child { overflow-wrap: anywhere; }
.storage-file-size { flex: 0 0 auto; color: var(--text); font-variant-numeric: tabular-nums; }
.storage-section code { color: var(--accent); font-size: 0.95em; }
.widget-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; }
.toggle-option { display: flex; align-items: center; gap: 8px; color: #c7d3df; font-size: 10px; cursor: pointer; }
.toggle-option input { width: 15px; height: 15px; accent-color: var(--accent); }
.order-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.order-row, .saved-link-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); color: #cbd7e3; font-size: 10px; }
.order-actions { display: flex; gap: 5px; }
.icon-button.order-button { width: 26px; height: 26px; font-size: 14px; }
.order-button:disabled { opacity: 0.35; cursor: default; }
.quicklink-form { display: grid; grid-template-columns: minmax(100px, 0.8fr) minmax(130px, 1.3fr) auto; gap: 8px; align-items: center; }
.quicklink-form .outline-button { min-height: 36px; white-space: nowrap; }
.saved-links-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 8px 0 0; padding: 0; list-style: none; }
.saved-link-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quicklinks-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quicklink-item { display: flex; min-width: 0; align-items: center; gap: 6px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.025); }
.quicklink-anchor { overflow: hidden; flex: 1; color: #dce5ef; font-size: 11px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.quicklink-anchor:hover { color: var(--accent); }
.quicklink-remove { border: 0; background: none; color: var(--subtle); cursor: pointer; }
.settings-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 21px; padding-top: 17px; border-top: 1px solid var(--line); }
.settings-footer-actions { display: flex; gap: 8px; }
.settings-save { min-height: 37px; }
.settings-message { min-height: 14px; margin: 10px 0 0; color: var(--accent); font-size: 10px; }
.settings-message.error { color: var(--danger); }
.quicklinks-panel { padding: 22px; }

.action-hint { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(17, 26, 40, 0.58); }
.hint-key { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255, 200, 159, 0.22); border-radius: 9px; background: rgba(255, 200, 159, 0.08); color: var(--peach); font-size: 13px; font-weight: 700; }
.action-hint strong { color: #dce5ef; font-size: 11px; }
.action-hint p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }

.footer { display: flex; justify-content: space-between; gap: 14px; padding: 24px 2px 30px; color: #6e8096; font-size: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 820px) {
  .content-grid { grid-template-columns: 1fr; }
  .side-column { grid-template-columns: 1fr; }
  .action-hint { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 520px); }
  .topbar { min-height: 66px; gap: 8px; }
  .brand { gap: 7px; font-size: 15px; }
  .topbar-date { display: none; }
  .topbar-actions { gap: 5px; }
  .shortcut-pill { display: none; }
  .settings-open { padding: 7px 9px; }
  .welcome { min-height: 210px; margin-top: 16px; padding: 24px 20px 18px; }
  .welcome-orbit { right: -56px; opacity: 0.65; }
  .welcome-foot { right: 20px; bottom: 17px; left: 20px; }
  .privacy-label { font-size: 9px; }
  .section-panel, .weather-panel, .news-panel { padding: 17px; }
  .reminder-form { grid-template-columns: minmax(80px, 1fr) 110px; }
  .reminder-form .primary-button { grid-column: 1 / -1; min-height: 37px; }
  .client-id-row, .quicklink-form { grid-template-columns: 1fr; }
  .client-id-row .primary-button { min-height: 37px; }
  .quicklink-form .outline-button { min-height: 37px; }
  .settings-panel { padding: 17px; }
  .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-section { grid-template-columns: 1fr; gap: 12px; }
  .order-options { grid-template-columns: 1fr; }
  .widget-options { grid-template-columns: 1fr 1fr; }
  .saved-links-list { grid-template-columns: 1fr; }
  .settings-footer { align-items: stretch; flex-direction: column; }
  .settings-footer-actions { flex-wrap: wrap; }
  .settings-save { min-height: 39px; }
  .side-column { grid-template-columns: 1fr; }
  .action-hint { grid-column: auto; }
  .outlook-columns { grid-template-columns: 1fr; gap: 14px; }
  .outlook-columns > div + div { padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .orbit-ring-one { animation: orbit 28s linear infinite; }
  .orbit-ring-two { animation: orbit 19s linear infinite reverse; }
  @keyframes orbit { to { transform: rotate(360deg); } }
}

:root {
  color-scheme: dark;
  --bg: #090708;
  --panel: #151012;
  --panel-soft: #1d1418;
  --line: rgba(255, 242, 247, 0.2);
  --text: #fff4f6;
  --muted: #d3bfc7;
  --subtle: #aa939c;
  --accent: #ff397f;
  --accent-dark: #3a0c20;
  --peach: #d9ff5b;
  --danger: #ff8e9b;
  --accent-rgb: 255, 57, 127;
  --accent-glow: rgba(255, 57, 127, 0.22);
  font-family: 'Segoe UI', Arial, sans-serif;
}

[data-theme="mint"] {
  --accent: #ff397f;
  --accent-dark: #3a0c20;
  --accent-rgb: 255, 57, 127;
  --accent-glow: rgba(255, 57, 127, 0.22);
}

[data-theme="blue"] {
  --accent: #66e4ed;
  --accent-dark: #0e3338;
  --accent-rgb: 102, 228, 237;
  --accent-glow: rgba(102, 228, 237, 0.18);
}

[data-theme="violet"] {
  --accent: #c493ff;
  --accent-dark: #2e1744;
  --accent-rgb: 196, 147, 255;
  --accent-glow: rgba(196, 147, 255, 0.18);
}

[data-theme="rose"] {
  --accent: #ff786b;
  --accent-dark: #421b18;
  --accent-rgb: 255, 120, 107;
  --accent-glow: rgba(255, 120, 107, 0.18);
}

body {
  position: relative;
  background:
    radial-gradient(ellipse at 9% 12%, rgba(255, 57, 127, 0.1), transparent 25rem),
    radial-gradient(ellipse at 93% 48%, rgba(99, 69, 89, 0.15), transparent 34rem),
    repeating-linear-gradient(117deg, transparent 0 42px, rgba(255, 255, 255, 0.012) 43px 44px),
    #090708;
}

body::before {
  position: fixed;
  z-index: 5;
  inset: 0;
  background-image: radial-gradient(rgba(255, 245, 248, 0.28) 0.55px, transparent 0.75px);
  background-size: 4px 4px;
  content: '';
  opacity: 0.09;
  pointer-events: none;
}

button, input, select { font-family: 'Segoe UI', Arial, sans-serif; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline-color: var(--peach);
}

.shell { width: min(1210px, calc(100% - 48px)); }

.topbar {
  min-height: 76px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.5);
}

.brand {
  gap: 12px;
  font-family: Impact, 'Arial Narrow', sans-serif;
  font-size: 22px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid #fff4f6;
  border-radius: 0;
  background: var(--accent);
  box-shadow: 3px 3px 0 #f7e9ed;
  color: #090708;
  font: 900 20px Impact, 'Arial Narrow', sans-serif;
  transform: rotate(-5deg);
}

.brand-period { color: var(--peach); }
.topbar-date { color: #e4cdd5; font-size: 12px; text-transform: uppercase; }
.topbar-actions { gap: 11px; }

.outline-button, .icon-button {
  border: 1px solid rgba(var(--accent-rgb), 0.72);
  border-radius: 2px;
  background: rgba(15, 10, 12, 0.92);
}

.outline-button {
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.outline-button:hover, .icon-button:hover {
  border-color: var(--peach);
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--peach);
}

.settings-open {
  padding: 10px 14px;
  box-shadow: 3px 3px 0 rgba(var(--accent-rgb), 0.65);
}

.shortcut-pill {
  border: 1px dashed rgba(255, 244, 246, 0.3);
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.035);
  color: #ecd9df;
  font-size: 10px;
  text-transform: uppercase;
}

kbd {
  border-color: rgba(var(--accent-rgb), 0.55);
  border-radius: 1px;
  background: rgba(var(--accent-rgb), 0.09);
  color: var(--accent);
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 800;
}

.panel {
  position: relative;
  border: 1px solid rgba(255, 244, 246, 0.32);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(33, 22, 27, 0.97), rgba(15, 11, 13, 0.98)),
    #151012;
  box-shadow: 5px 5px 0 rgba(var(--accent-rgb), 0.72);
}

.welcome {
  min-height: 250px;
  margin: 26px 0 21px;
  padding: 35px 36px 22px;
  border-color: rgba(var(--accent-rgb), 0.8);
  background:
    linear-gradient(90deg, rgba(8, 6, 8, 0.95) 0%, rgba(8, 6, 8, 0.82) 52%, rgba(8, 6, 8, 0.28) 100%),
    repeating-linear-gradient(135deg, rgba(var(--accent-rgb), 0.13) 0 2px, transparent 2px 8px),
    #110b0e;
  box-shadow: 8px 8px 0 rgba(var(--accent-rgb), 0.8);
}

.welcome::after {
  position: absolute;
  top: 17px;
  right: 20px;
  padding: 6px 9px;
  border: 1px solid var(--peach);
  background: #10100b;
  color: var(--peach);
  content: 'VOL. 01  /  DAILY BRIEF';
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.2px;
  transform: rotate(3deg);
}

.welcome-copy { max-width: 720px; }
.eyebrow {
  color: var(--peach);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: Impact, 'Arial Narrow', 'Segoe UI', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  max-width: 700px;
  margin-bottom: 10px;
  color: #fff2f5;
  font-size: clamp(36px, 6.4vw, 72px);
  letter-spacing: 0.2px;
  line-height: 0.98;
  text-shadow: 3px 3px 0 var(--accent);
}

h2 {
  color: #fff0f3;
  font-size: 22px;
  letter-spacing: 0.3px;
}

h3 { color: var(--peach); font-size: 13px; letter-spacing: 0.3px; }
.welcome-subtitle { color: #e4cfd5; font-size: 13px; }
.welcome-foot { color: #d1b8c2; }
.privacy-label { color: #b89da7; }
.status-dot { background: var(--peach); box-shadow: 0 0 11px rgba(217, 255, 91, 0.6); }

.welcome-orbit {
  top: 18px;
  right: 10%;
  width: 238px;
  height: 216px;
  opacity: 0.82;
}

.orbit-ring { border-color: rgba(var(--accent-rgb), 0.4); border-style: dashed; }
.orbit-ring-one { inset: 2px; }
.orbit-ring-two { inset: 30px; border-color: rgba(217, 255, 91, 0.45); }

.orbit-sun {
  top: 74px;
  left: 86px;
  width: 66px;
  height: 66px;
  border: 2px solid #fff1f4;
  border-radius: 0;
  background:
    radial-gradient(#180d12 1px, transparent 1.5px) 0 0 / 5px 5px,
    var(--accent);
  box-shadow: 4px 4px 0 #f7e9ed, 0 0 48px var(--accent-glow);
  clip-path: polygon(50% 0, 62% 31%, 94% 16%, 76% 45%, 100% 55%, 69% 65%, 86% 96%, 54% 76%, 42% 100%, 34% 68%, 2% 83%, 25% 52%, 0 35%, 34% 34%);
}

.content-grid {
  grid-template-columns: minmax(0, 1.62fr) minmax(280px, 0.86fr);
  gap: 20px;
}

.main-column, .side-column { gap: 20px; }
.section-panel, .weather-panel, .news-panel, .quicklinks-panel { padding: 23px; }
.section-heading { margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 6px; }

.count-pill {
  min-width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background:
    radial-gradient(rgba(var(--accent-rgb), 0.45) 0.7px, transparent 0.9px) 0 0 / 4px 4px,
    rgba(var(--accent-rgb), 0.12);
  color: #fff4f6;
  font-family: Impact, 'Arial Narrow', sans-serif;
  font-size: 14px;
}

.count-pill-muted {
  border-color: rgba(255, 244, 246, 0.38);
  background: rgba(255, 255, 255, 0.04);
  color: #ead9df;
}

.priority-item, .reminder-row, .news-item, .compact-item { border-color: rgba(255, 244, 246, 0.18); }
.priority-item { padding: 15px 0; }
.priority-icon {
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  border-radius: 0;
  background:
    radial-gradient(rgba(var(--accent-rgb), 0.5) 0.65px, transparent 0.9px) 0 0 / 4px 4px,
    rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}

.priority-icon.mail { color: #91e8ee; background-color: rgba(102, 228, 237, 0.12); }
.priority-icon.event { color: var(--peach); background-color: rgba(217, 255, 91, 0.1); }
.priority-title, .reminder-title { color: #fff0f3; font-weight: 700; }
.priority-detail, .reminder-meta { color: #c6aeb8; }
.priority-badge { color: var(--peach); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.empty-state { color: #c6aeb8; }

.reminder-form input, .client-id-row input, .settings-field input, .settings-field select, .quicklink-form input {
  border: 1px solid rgba(255, 244, 246, 0.3);
  border-radius: 1px;
  background: #0c090a;
  color: var(--text);
}

.reminder-form input:focus, .client-id-row input:focus, .settings-field input:focus,
.settings-field select:focus, .quicklink-form input:focus {
  border-color: var(--accent);
  box-shadow: 3px 3px 0 rgba(var(--accent-rgb), 0.42);
}

.reminder-form input::placeholder, .client-id-row input::placeholder,
.settings-field input::placeholder, .quicklink-form input::placeholder { color: #a68d98; }
.date-input, .time-input { color-scheme: dark; }

.primary-button {
  min-height: 38px;
  border: 1px solid #fff1f4;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 3px 3px 0 #f5e7eb;
  color: #10080b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.primary-button:hover { filter: brightness(1.13) saturate(1.1); transform: translate(-1px, -1px); }
.reminder-row { padding: 12px 0; }
.check-button { border-color: rgba(255, 244, 246, 0.6); border-radius: 0; }
.reminder-row.done .check-button { border-color: var(--accent); }
.delete-button { color: #c4aab4; }
.delete-button:hover { color: var(--accent); }

.outlook-setup {
  border: 1px dashed rgba(var(--accent-rgb), 0.65);
  border-radius: 1px;
  background:
    radial-gradient(rgba(var(--accent-rgb), 0.17) 0.7px, transparent 1px) 0 0 / 5px 5px,
    rgba(8, 6, 8, 0.7);
}

.client-id-label { color: #f0dce3; }
.setup-link { color: var(--accent); font-weight: 700; }
.source-note { color: #ad97a0; }
.compact-item strong { color: #fff0f3; font-weight: 700; }
.compact-item span, .inline-status { color: #c0aab3; }
.inline-status.error { color: #ff9aa4; }

.weather-panel {
  min-height: 220px;
  background:
    radial-gradient(rgba(var(--accent-rgb), 0.12) 0.8px, transparent 1px) 0 0 / 6px 6px,
    linear-gradient(145deg, #1d1217, #100c0e 74%);
}

.weather-sun { color: var(--peach); text-shadow: 2px 2px 0 rgba(var(--accent-rgb), 0.75); }
.weather-temperature { color: #fff3f5; font-family: Impact, 'Arial Narrow', sans-serif; font-size: 43px; }
.weather-condition { color: var(--accent); font-weight: 800; text-transform: uppercase; }
.weather-range { color: #d1b7c1; }
.weather-location { color: #a9949d; }

.news-panel {
  border-color: rgba(var(--accent-rgb), 0.6);
  box-shadow: 5px 5px 0 rgba(217, 255, 91, 0.52);
}

.news-item { padding: 12px 0; }
.news-item a { color: #f7e8ed; font-size: 12px; font-weight: 700; }
.news-item a:hover { color: var(--accent); }
.news-date { color: #a9919b; }
.news-panel .source-note { margin-top: 14px; }

.quote-panel {
  position: relative;
  min-height: 188px;
  overflow: hidden;
  padding: 22px 72px 20px 23px;
  border-color: rgba(var(--accent-rgb), 0.62);
  background:
    radial-gradient(rgba(var(--accent-rgb), 0.2) 0.7px, transparent 1px) 0 0 / 6px 6px,
    linear-gradient(138deg, #26141c, #110d10 76%);
  box-shadow: 5px 5px 0 rgba(var(--accent-rgb), 0.54);
}

.quote-panel .section-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  padding-right: 66px;
}
.quote-panel .eyebrow { color: var(--peach); }
.quote-panel h2 { max-width: 72%; }
.quote-sparkle { color: var(--peach); font-size: 30px; transform: rotate(-12deg); }

.daily-quote {
  position: relative;
  z-index: 1;
  max-width: 31rem;
  margin: 0 12px 14px 0;
  color: #fff2f5;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(17px, 2vw, 21px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: pretty;
}

.quote-refresh {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px dashed rgba(var(--accent-rgb), 0.72);
  border-radius: 1px;
  background: rgba(8, 6, 8, 0.72);
  color: var(--accent);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.quote-refresh:hover { border-style: solid; color: var(--peach); }
.quote-refresh span { font-size: 14px; }

.quote-sticker, .quote-sticker-small {
  position: absolute;
  z-index: 2;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: Impact, 'Arial Narrow', sans-serif;
  font-weight: 900;
  line-height: 0.94;
  pointer-events: none;
}

.quote-sticker {
  top: 14px;
  right: 15px;
  width: 58px;
  height: 54px;
  border: 2px solid #fff3f5;
  background:
    radial-gradient(#181014 0.8px, transparent 1px) 0 0 / 5px 5px,
    var(--accent);
  box-shadow: 3px 3px 0 #fff0f3;
  color: #12090d;
  font-size: 12px;
  transform: rotate(8deg);
  clip-path: polygon(50% 0, 60% 13%, 77% 5%, 82% 23%, 100% 27%, 90% 44%, 100% 59%, 81% 66%, 83% 86%, 62% 83%, 50% 100%, 38% 84%, 17% 91%, 15% 70%, 0 61%, 11% 44%, 1% 27%, 21% 22%, 26% 4%, 42% 13%);
}

.quote-sticker-small {
  right: 18px;
  bottom: 12px;
  width: 46px;
  height: 46px;
  border: 1px solid #13100b;
  background: var(--peach);
  box-shadow: 2px 2px 0 #fff0f3;
  color: #15100b;
  font-size: 8px;
  letter-spacing: 0.4px;
  transform: rotate(-7deg);
}

.quicklinks-panel { border-style: dashed; }
.quicklink-item {
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 1px;
  background: rgba(var(--accent-rgb), 0.06);
}

.quicklink-anchor { color: #f5e4e9; font-weight: 700; }
.quicklink-remove { color: #c9aeb9; }
.action-hint {
  border: 1px solid rgba(217, 255, 91, 0.56);
  border-radius: 1px;
  background: #11100a;
  box-shadow: 4px 4px 0 rgba(var(--accent-rgb), 0.6);
}

.hint-key {
  border: 1px solid var(--peach);
  border-radius: 0;
  background:
    radial-gradient(rgba(217, 255, 91, 0.6) 0.7px, transparent 0.9px) 0 0 / 4px 4px,
    rgba(217, 255, 91, 0.09);
  color: var(--peach);
  font-family: Impact, 'Arial Narrow', sans-serif;
}

.action-hint strong { color: #fff0f3; font-size: 12px; text-transform: uppercase; }
.action-hint p { color: #c7b2ba; }

.settings-panel {
  border-color: rgba(var(--accent-rgb), 0.7);
  background:
    radial-gradient(rgba(var(--accent-rgb), 0.1) 0.7px, transparent 1px) 0 0 / 6px 6px,
    #151012;
}

.settings-section { border-color: rgba(255, 244, 246, 0.18); }
.settings-section h3 { color: var(--peach); }
.settings-field, .toggle-option { color: #f0dce3; }
.settings-field small { color: #b49ca6; }
.toggle-option input { accent-color: var(--accent); }
.order-row, .saved-link-row { border-color: rgba(255, 244, 246, 0.2); color: #ead8df; }
.icon-button { color: #ead8df; }
.settings-message { color: var(--peach); }
.settings-message.error { color: #ff9aa4; }
.footer { color: #a38b95; }

@media (max-width: 820px) {
  .content-grid { grid-template-columns: 1fr; }
  .welcome-orbit { right: 3%; opacity: 0.55; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 520px); }
  .topbar { min-height: 66px; }
  .brand { font-size: 18px; }
  .welcome { min-height: 0; margin-top: 18px; padding: 30px 20px 20px; }
  .welcome::after { display: none; }
  .welcome-copy { max-width: 100%; }
  h1 { margin-bottom: 12px; font-size: clamp(32px, 10vw, 44px); line-height: 1.08; }
  .welcome-subtitle { max-width: 34ch; line-height: 1.5; }
  .welcome-orbit { top: 41px; right: -79px; opacity: 0.42; }
  .welcome-foot {
    position: relative;
    inset: auto;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 24px;
    line-height: 1.4;
  }
  .privacy-label { margin-left: 0; }
  .section-panel, .weather-panel, .news-panel, .quicklinks-panel { padding: 17px; }
  .quote-panel { min-height: 177px; padding: 19px 68px 19px 18px; }
  .daily-quote { max-width: calc(100% - 32px); font-size: 17px; }
  .quote-sticker { top: 10px; right: 10px; transform: scale(0.86) rotate(8deg); }
  .quote-sticker-small { right: 11px; bottom: 10px; transform: scale(0.9) rotate(-7deg); }
  .settings-panel { padding: 17px; }
  .shortcut-pill { display: none; }
  .settings-open { padding: 9px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

.settings-toggle-copy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #d3bac4;
  font-size: 10px;
  line-height: 1.45;
}

.settings-toggle-copy input {
  width: auto !important;
  min-width: 15px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.planner-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px 92px auto;
  gap: 9px;
}

.planner-form input, .planner-form select,
.people-form input, .people-form select,
.wellbeing-form select {
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 244, 246, 0.3);
  border-radius: 1px;
  background: #0c090a;
  color: var(--text);
  font: inherit;
  font-size: 11px;
}

.planner-form input:focus, .planner-form select:focus,
.people-form input:focus, .people-form select:focus,
.wellbeing-form select:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(var(--accent-rgb), 0.4);
  outline-offset: 1px;
}

.planner-form input[type="time"] { color-scheme: dark; }
.planner-form .primary-button { padding: 0 11px; }
.planner-list, .people-list, .music-playlist {
  display: grid;
  gap: 0;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.planner-item {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 244, 246, 0.16);
}

.planner-check, .people-done {
  display: grid;
  min-width: 25px;
  min-height: 25px;
  place-items: center;
  border: 1px solid rgba(255, 244, 246, 0.5);
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
}

.planner-copy, .people-copy { display: grid; min-width: 0; gap: 4px; }
.planner-copy strong, .people-copy strong { overflow-wrap: anywhere; color: #fff0f3; font-size: 11px; }
.planner-copy span, .people-copy span { color: #c6aeb8; font-size: 9px; }
.planner-item.done .planner-copy strong { color: #aa949d; text-decoration: line-through; }
.planner-item.done .planner-check { border-color: var(--accent); }
.planner-empty { margin: 14px 0 0; }
.planner-note { margin-top: 15px; }

.people-panel, .wellbeing-panel, .music-panel {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 1px;
  background: linear-gradient(145deg, rgba(33, 18, 25, 0.97), rgba(15, 11, 13, 0.98));
}

.section-heading-compact { margin-bottom: 12px; }
.people-prompt { margin: 0; color: #ddc8d0; font-size: 11px; line-height: 1.55; }
.people-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.people-form input:first-of-type { grid-column: 1 / -1; }
.people-form .outline-button { grid-column: 1 / -1; justify-self: start; }
.people-form select { font-size: 10px; }
.people-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 8px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 244, 246, 0.16);
}

.people-item.is-due .people-copy strong { color: var(--accent); }
.people-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.people-contact-link, .people-done {
  padding: 5px 7px;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  border-radius: 0;
  background: rgba(var(--accent-rgb), 0.08);
  color: #fff0f3;
  cursor: pointer;
  font-size: 9px;
  text-decoration: none;
  white-space: nowrap;
}

.people-done { min-height: 25px; padding: 4px 6px; }
.people-note { margin-top: 12px; }
.wellbeing-sparkle, .music-note { color: var(--peach); font-size: 26px; }
.wellbeing-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
.wellbeing-form label { color: #e2cbd3; font-size: 10px; }
.wellbeing-form .outline-button { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.wellbeing-status { margin: 12px 0 0; font-size: 10px; line-height: 1.5; }
.wellbeing-delete { margin-top: 8px; border: 0; background: none; color: #d1a6b3; cursor: pointer; font-size: 9px; text-decoration: underline; }
.wellbeing-panel > .source-note { margin: 8px 0 0; line-height: 1.5; }

.music-panel > .source-note { margin: 0 0 14px; line-height: 1.5; }
.music-picker {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  padding: 0 10px;
  border: 1px dashed rgba(var(--accent-rgb), 0.7);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.music-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.music-picker:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.music-status { margin: 10px 0 0; font-size: 9px; line-height: 1.5; }
.music-track { display: flex; align-items: center; gap: 8px; border-top: 1px solid rgba(255, 244, 246, 0.16); }
.music-track-button {
  min-width: 0;
  flex: 1;
  padding: 10px 0;
  border: 0;
  background: none;
  color: #fff0f3;
  cursor: pointer;
  font-size: 10px;
  text-align: left;
  overflow-wrap: anywhere;
}

.music-track-button:hover { color: var(--accent); }
.music-panel audio { width: 100%; margin-top: 12px; }
.people-panel .delete-button, .planner-panel .delete-button { min-width: 24px; min-height: 24px; }

@media (max-width: 820px) {
  .planner-form { grid-template-columns: minmax(0, 1fr) 108px 92px; }
  .planner-form .primary-button { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .planner-form { grid-template-columns: minmax(0, 1fr) 1fr; }
  .planner-form .primary-button { grid-column: 1 / -1; }
  .people-panel, .wellbeing-panel, .music-panel { padding: 17px; }
  .people-item { grid-template-columns: minmax(0, 1fr) auto; }
  .people-item > .delete-button { grid-column: 2; justify-self: end; }
  .people-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .people-form { grid-template-columns: 1fr; }
  .people-form input:first-of-type, .people-form .outline-button { grid-column: auto; }
}

/* Let the dashboard read as one editorial page instead of a wall of cards. */
.content-grid {
  position: relative;
  grid-template-columns: minmax(0, 1.65fr) minmax(275px, 0.8fr);
  gap: 48px;
}

.main-column, .side-column {
  gap: 0;
  align-content: start;
}

.main-column {
  padding-right: 32px;
  border-right: 1px solid rgba(255, 244, 246, 0.2);
}

.content-grid [data-widget] {
  position: relative;
  margin: 0;
  padding: 27px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 244, 246, 0.19);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.content-grid [data-widget]::before {
  position: absolute;
  top: 31px;
  left: -12px;
  width: 4px;
  height: 24px;
  background: var(--accent);
  content: '';
  transform: skewY(-22deg);
}

.content-grid [data-widget]:last-child { border-bottom: 0; }
.content-grid .section-heading { align-items: flex-start; margin-bottom: 16px; }
.content-grid .section-heading-compact { margin-bottom: 13px; }
.content-grid h2 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.1; }
.content-grid .eyebrow { color: var(--peach); }
.content-grid .count-pill {
  min-width: 34px;
  height: 34px;
  border: 0;
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font: 900 17px Impact, 'Arial Narrow', sans-serif;
}

.content-grid .count-pill-muted { color: #fff0f3; border-color: rgba(255, 244, 246, 0.42); }
.content-grid .empty-state { border-top: 0; }

.content-grid .planner-form {
  grid-template-columns: minmax(0, 1fr) 92px 84px auto;
  gap: 7px;
}

.content-grid .planner-form input,
.content-grid .planner-form select,
.content-grid .people-form input,
.content-grid .people-form select,
.content-grid .wellbeing-form select {
  border-color: rgba(255, 244, 246, 0.25);
  background: rgba(255, 244, 246, 0.045);
}

.content-grid .planner-form .primary-button {
  min-height: 36px;
  border: 0;
  box-shadow: none;
}

.planner-item, .people-item, .music-track { border-color: rgba(255, 244, 246, 0.16); }
.planner-item:first-child { border-top: 0; }
.people-item:first-child, .music-track:first-child { border-top: 0; }
.planner-note, .people-note { max-width: 34rem; }
.content-grid .people-panel { padding-right: 0; padding-left: 0; }
.people-form { grid-template-columns: 1fr 1fr; }
.people-form input:first-of-type { grid-column: 1 / -1; }
.people-form .outline-button { grid-column: 1 / -1; }
.people-actions { justify-content: flex-start; }

.content-grid .wellbeing-panel {
  margin: 12px -16px;
  padding: 25px 16px;
  border: 0;
  border-left: 3px solid var(--peach);
  background:
    linear-gradient(105deg, rgba(255, 200, 159, 0.1), transparent 72%);
}

.content-grid .wellbeing-panel::before { display: none; }
.content-grid .wellbeing-panel .section-heading { padding-left: 4px; }
.content-grid .wellbeing-panel .wellbeing-form,
.content-grid .wellbeing-panel .wellbeing-status,
.content-grid .wellbeing-panel .wellbeing-delete,
.content-grid .wellbeing-panel > .source-note { margin-left: 4px; }

.content-grid .weather-panel {
  min-height: 0;
  padding-top: 30px;
}

.weather-panel .weather-temperature { font-size: clamp(50px, 7vw, 76px); line-height: 0.95; }
.weather-panel .weather-condition { letter-spacing: 1px; }
.weather-panel .weather-content { gap: 12px; }
.weather-panel .weather-sun { font-size: 34px; }

.content-grid .quote-panel {
  margin: 16px -16px;
  padding: 24px 64px 24px 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 0;
  background:
    radial-gradient(rgba(var(--accent-rgb), 0.16) 0.7px, transparent 1px) 0 0 / 6px 6px,
    linear-gradient(135deg, rgba(38, 20, 28, 0.9), rgba(17, 13, 16, 0.78));
  box-shadow: 5px 5px 0 rgba(var(--accent-rgb), 0.45);
  transform: rotate(-1deg);
}

.content-grid .quote-panel::before { display: none; }
.content-grid .news-panel { border-top: 2px solid var(--accent); }
.content-grid .news-panel .section-heading { align-items: center; }
.content-grid .news-item { border-color: rgba(255, 244, 246, 0.16); }
.content-grid .quicklinks-panel { border-top: 1px dashed rgba(var(--accent-rgb), 0.6); }
.content-grid .music-panel { border-top: 1px solid rgba(255, 244, 246, 0.19); }
.content-grid .music-picker { border-style: solid; }
.content-grid .outlook-panel { border-top: 2px solid var(--peach); }
.content-grid .outlook-setup { margin-bottom: 14px; }

@media (max-width: 820px) {
  .content-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .main-column { padding-right: 0; border-right: 0; }
  .content-grid .planner-form { grid-template-columns: minmax(0, 1fr) 92px 84px; }
  .content-grid .planner-form .primary-button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 560px) {
  .content-grid { gap: 0; }
  .main-column { padding-right: 0; border-right: 0; }
  .content-grid [data-widget] { padding: 23px 0; }
  .content-grid [data-widget]::before { top: 28px; left: -8px; width: 3px; height: 20px; }
  .content-grid h2 { font-size: 23px; }
  .content-grid .planner-form { grid-template-columns: minmax(0, 1fr) 1fr; }
  .content-grid .planner-form .primary-button { grid-column: 1 / -1; justify-self: stretch; }
  .content-grid .wellbeing-panel { margin: 10px 0; padding: 22px 14px; }
  .content-grid .quote-panel { margin: 12px 0; transform: rotate(-0.5deg); }
  .people-item { grid-template-columns: minmax(0, 1fr) auto; }
  .people-item > .delete-button { grid-column: 2; justify-self: end; }
  .people-actions { grid-column: 1 / -1; }
  .people-form { grid-template-columns: 1fr; }
  .people-form input:first-of-type,
  .people-form .outline-button { grid-column: auto; }
}

/* A small collage of silhouettes keeps the punk palette without repeating cards. */
.brand-mark {
  border: 1px solid #fff1f4;
  border-radius: 2px;
  box-shadow: 3px 3px 0 var(--peach);
  transform: rotate(-8deg);
}

.welcome {
  border-radius: 2px 42px 2px 2px;
  box-shadow: 10px 10px 0 rgba(var(--accent-rgb), 0.78);
}

.welcome-orbit {
  right: 7%;
  transform: rotate(12deg);
}

.orbit-ring-one { border-radius: 41% 59% 55% 45% / 50% 40% 60% 50%; }
.orbit-ring-two { border-radius: 52% 48% 40% 60% / 40% 59% 41% 60%; }

.content-grid [data-widget]::before {
  width: 7px;
  height: 22px;
  clip-path: polygon(20% 0, 100% 0, 78% 100%, 0 100%);
}

.content-grid .main-column [data-widget]:nth-child(2)::before {
  width: 13px;
  height: 13px;
  top: 33px;
  left: -16px;
  clip-path: polygon(50% 0, 100% 100%, 0 78%);
  background: var(--peach);
}

.content-grid .main-column [data-widget]:nth-child(3)::before {
  width: 9px;
  height: 24px;
  clip-path: polygon(0 0, 100% 12%, 64% 100%, 0 86%);
  background: var(--peach);
}

.content-grid .count-pill {
  min-width: 39px;
  height: 39px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  transform: rotate(8deg);
}

.content-grid .count-pill-muted {
  min-width: 58px;
  height: 36px;
  border: 1px solid rgba(255, 244, 246, 0.48);
  border-radius: 50% 42% 48% 44%;
  transform: rotate(-4deg);
}

.planner-check {
  border-color: var(--accent);
  border-radius: 50% 50% 2px 50%;
  transform: rotate(-10deg);
}

.planner-item.done .planner-check { border-radius: 50%; transform: none; }

.people-item:nth-child(odd) .people-copy strong::before,
.people-item:nth-child(even) .people-copy strong::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 7px 1px 0;
  background: var(--accent);
  content: '';
  transform: rotate(45deg);
}

.people-item:nth-child(even) .people-copy strong::before {
  border-radius: 50%;
  background: var(--peach);
  transform: none;
}

.people-contact-link, .people-done {
  border-radius: 999px;
}

.content-grid .weather-panel {
  padding-left: 24px;
  border-left: 2px solid rgba(var(--accent-rgb), 0.35);
}

.weather-panel .weather-sun {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px dashed var(--peach);
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.08);
  transform: rotate(-9deg);
}

.content-grid .quote-panel {
  clip-path: polygon(0 0, 96% 2%, 100% 8%, 99% 94%, 94% 100%, 3% 98%, 0 91%);
}

.content-grid .quote-panel .quote-sticker {
  transform: rotate(13deg) scale(1.05);
}

.content-grid .wellbeing-panel {
  border-left: 0;
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 95%);
  transform: rotate(1deg);
}

.content-grid .wellbeing-panel > * { transform: rotate(-1deg); }
.content-grid .wellbeing-panel::before { display: none; }

.content-grid .news-panel {
  border-top: 0;
  border-left: 2px solid var(--peach);
}

.content-grid .news-date {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid rgba(255, 200, 159, 0.35);
  border-radius: 999px;
}

.content-grid .music-note {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50% 50% 4px 50%;
  transform: rotate(12deg);
}

.content-grid .music-picker {
  border-radius: 999px 4px 999px 4px;
}

.content-grid .outlook-panel {
  border-top: 0;
  border-left: 3px solid var(--peach);
}

.content-grid .quicklinks-panel { border-top: 0; }
.content-grid .quicklink-item { border-radius: 999px 4px 4px 999px; }

@media (max-width: 560px) {
  .welcome { border-radius: 2px 30px 2px 2px; }
  .welcome-orbit { right: -15%; opacity: 0.72; }
  .content-grid .quote-panel { clip-path: polygon(0 0, 96% 2%, 100% 8%, 99% 94%, 94% 100%, 3% 98%, 0 91%); }
}

/* Keep the collage energy, but let the content stay practical and readable. */
h1 {
  max-width: 760px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1.02;
  text-shadow: 2px 2px 0 rgba(var(--accent-rgb), 0.75);
  text-transform: none;
}

.welcome {
  min-height: 224px;
  padding: 32px 34px 22px;
  border-radius: 2px 28px 2px 2px;
  box-shadow: 5px 5px 0 rgba(var(--accent-rgb), 0.72);
}

.welcome::after {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.8px;
  transform: none;
}

.welcome-orbit { right: 7%; transform: none; opacity: 0.6; }
.orbit-ring-one, .orbit-ring-two { border-radius: 50%; }
.orbit-sun { clip-path: none; border-radius: 50%; box-shadow: 0 0 35px var(--accent-glow); }

.content-grid h2 {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 750;
  letter-spacing: -0.45px;
  line-height: 1.2;
  text-transform: none;
}

.content-grid h3 { font-family: 'Segoe UI', Arial, sans-serif; font-size: 13px; font-weight: 650; }
.content-grid .eyebrow { font-size: 9px; letter-spacing: 1.5px; }
.content-grid .section-heading { margin-bottom: 14px; }
.content-grid [data-widget] { padding-top: 23px; padding-bottom: 23px; }
.content-grid [data-widget]::before { top: 28px; }
.content-grid .count-pill { min-width: 32px; height: 32px; font: 700 13px 'Segoe UI', Arial, sans-serif; }
.content-grid .count-pill-muted { min-width: 55px; height: 32px; }

.content-grid .people-panel {
  padding: 25px 0 25px 16px;
  border-left: 2px solid rgba(var(--accent-rgb), 0.65);
}

.content-grid .people-panel::before { display: none; }
.people-prompt { font-size: 12px; line-height: 1.6; }
.people-form { margin-top: 16px; gap: 9px; }

.planner-form input, .planner-form select,
.people-form input, .people-form select,
.wellbeing-form select {
  min-height: 42px;
  padding: 9px 11px;
  font-size: 12px;
}

.content-grid .weather-panel {
  margin: 8px -12px 8px -20px;
  padding: 26px 26px 25px 32px;
  border: 0;
  border-radius: 34px 8px 30px 8px;
  background:
    radial-gradient(ellipse at 72% 45%, rgba(var(--accent-rgb), 0.13), transparent 68%),
    linear-gradient(120deg, rgba(255, 244, 246, 0.035), transparent 78%);
}

.content-grid .weather-panel::before { display: none; }
.weather-panel .weather-temperature { font-size: clamp(48px, 5vw, 64px); }
.weather-panel .weather-content { gap: 10px; }
.weather-panel .weather-sun { width: 48px; height: 48px; border-style: solid; }

.content-grid .quote-panel {
  margin: 13px -10px 18px -18px;
  padding: 24px 58px 23px 24px;
  border: 0;
  border-left: 3px solid var(--accent);
  border-radius: 0 26px 4px 0;
  background:
    linear-gradient(115deg, rgba(var(--accent-rgb), 0.1), rgba(38, 20, 28, 0.28) 62%, transparent);
  box-shadow: none;
  clip-path: none;
  transform: none;
}

.content-grid .quote-panel .section-heading { margin-bottom: 10px; }
.content-grid .quote-panel h2 { font-size: 18px; }
.daily-quote { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.5; }
.content-grid .quote-panel .quote-sticker { transform: rotate(5deg) scale(0.9); }

.content-grid .wellbeing-panel {
  margin: 10px 0 16px;
  padding: 23px 20px;
  border: 0;
  border-left: 3px solid var(--peach);
  border-radius: 0 24px 4px 0;
  background: linear-gradient(105deg, rgba(255, 200, 159, 0.09), transparent 85%);
  clip-path: none;
  transform: none;
}

.content-grid .wellbeing-panel > * { transform: none; }
.content-grid .wellbeing-panel .section-heading,
.content-grid .wellbeing-panel .wellbeing-form,
.content-grid .wellbeing-panel .wellbeing-status,
.content-grid .wellbeing-panel .wellbeing-delete,
.content-grid .wellbeing-panel > .source-note { margin-left: 0; padding-left: 0; }
.wellbeing-form { gap: 10px; }
.wellbeing-form label, .wellbeing-status { font-size: 12px; }

.content-grid .news-panel {
  margin-left: -10px;
  padding-left: 22px;
  border: 0;
  border-left: 2px solid var(--peach);
  background: transparent;
}

.content-grid .news-date { border-radius: 3px 999px 999px 3px; font-size: 10px; }
.news-item { padding: 13px 0; }
.news-item a { font-size: 14px; line-height: 1.45; }
.news-panel .source-note { font-size: 11px; line-height: 1.55; }

.content-grid .music-panel {
  margin: 8px -8px 12px -18px;
  padding: 22px 20px 22px 24px;
  border: 0;
  border-top: 1px solid rgba(255, 244, 246, 0.18);
  border-radius: 22px 0 0 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.06), transparent 70%);
}

.music-panel > .source-note, .music-status, .people-note,
.planner-note, .wellbeing-panel > .source-note {
  font-size: 11px;
  line-height: 1.55;
}

.music-picker {
  min-height: 39px;
  padding: 0 14px;
  border-radius: 999px 4px 999px 4px;
  font-size: 10px;
}

.people-contact-link, .people-done { min-height: 30px; padding: 6px 10px; font-size: 10px; }
.planner-copy strong, .people-copy strong { font-size: 13px; }
.planner-copy span, .people-copy span { font-size: 11px; }
.planner-item, .people-item { padding-top: 13px; padding-bottom: 13px; }
.content-grid .quicklinks-panel { border-top: 1px dashed rgba(var(--accent-rgb), 0.45); }
.content-grid .outlook-panel { border-top: 2px solid var(--peach); }

@media (max-width: 820px) {
  .content-grid .weather-panel { margin-left: 0; margin-right: 0; }
  .content-grid .quote-panel, .content-grid .music-panel { margin-left: 0; margin-right: 0; }
}

@media (max-width: 560px) {
  .welcome { min-height: 220px; padding: 27px 20px 20px; border-radius: 2px 22px 2px 2px; }
  h1 { max-width: 78%; font-size: clamp(34px, 9.5vw, 44px); letter-spacing: -1px; }
  .welcome::after { top: 12px; right: 10px; font-size: 7px; }
  .welcome-orbit { right: -18%; opacity: 0.35; }
  .welcome-foot { right: 20px; bottom: 17px; left: 20px; }
  .content-grid [data-widget] { padding-top: 21px; padding-bottom: 21px; }
  .content-grid h2 { font-size: 21px; }
  .content-grid .weather-panel { margin: 5px -5px; padding: 23px 18px 22px 24px; }
  .content-grid .quote-panel { margin: 12px 0; padding: 21px 58px 21px 18px; }
  .content-grid .wellbeing-panel { margin: 10px 0; padding: 20px 15px; }
  .content-grid .news-panel { margin-left: 0; padding-left: 18px; }
  .content-grid .music-panel { margin: 8px 0; padding: 20px 16px; }
  .daily-quote { font-size: 16px; }
}

.action-hint {
  margin-top: 20px;
  padding: 15px 20px;
  border: 0;
  border-left: 3px solid var(--accent);
  border-radius: 0 24px 4px 0;
  background: linear-gradient(100deg, rgba(var(--accent-rgb), 0.1), transparent 78%);
  box-shadow: none;
}

.hint-key {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50% 50% 4px 50%;
  background: var(--accent);
  color: #14100e;
  font-size: 14px;
  transform: rotate(-6deg);
}

.action-hint strong { font-size: 12px; text-transform: none; }
.action-hint p { font-size: 11px; }
.action-hint kbd { border-radius: 4px 999px 999px 4px; }

@media (max-width: 560px) {
  .action-hint { margin-top: 12px; padding: 14px 12px; }
}

@media (pointer: fine) and (forced-colors: none) {
  body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='38' viewBox='0 0 32 38'%3E%3Cpath d='M4 3v24l6-6 4 10 5-2-4-10h9z' fill='%23ffb9cc' stroke='%230b111b' stroke-linejoin='round' stroke-width='2'/%3E%3Cpath d='M25 3v8m-4-4h8m-6-3-4 6m5 0 4-6' fill='none' stroke='%23ffc89f' stroke-linecap='round' stroke-width='1.5'/%3E%3C/svg%3E") 4 3, auto;
  }
}

.thoughts-panel {
  margin: 22px 0;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: 3px 28px 4px 22px;
  background:
    radial-gradient(ellipse at 100% 0, rgba(var(--accent-rgb), 0.09), transparent 44%),
    linear-gradient(145deg, #171019, #100e15 72%);
  box-shadow: 6px 6px 0 rgba(var(--accent-rgb), 0.1);
}

.thoughts-panel .section-heading { align-items: flex-start; }
.thoughts-panel h2 { max-width: 620px; }
.thoughts-intro { max-width: 680px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.thought-form {
  display: grid;
  gap: 14px;
  margin: 20px 0;
  padding: clamp(14px, 2.5vw, 22px);
  border-left: 3px solid var(--accent);
  border-radius: 2px 18px 4px 18px;
  background: rgba(0, 0, 0, 0.2);
}
.thought-mode { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0; padding: 0; border: 0; }
.thought-mode legend { margin-bottom: 10px; color: var(--text); font-size: 12px; font-weight: 700; }
.thought-mode label { display: flex; min-height: 44px; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; cursor: pointer; }
.thought-mode input { width: 18px; height: 18px; accent-color: var(--accent); }
.thought-privacy-warning { margin: -5px 0 0; color: var(--accent); font-size: 11px; line-height: 1.5; }
.thought-label, .thought-field > span { color: var(--text); font-size: 11px; font-weight: 700; }
.thought-form textarea, .thought-form input:not([type="radio"]), .thought-form select,
.comment-form textarea, .comment-form input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: 3px 12px 3px 3px;
  background: #0b0a10;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.thought-form textarea, .comment-form textarea { min-height: 104px; resize: vertical; line-height: 1.55; }
.thought-form textarea::placeholder, .thought-form input::placeholder,
.comment-form textarea::placeholder, .comment-form input::placeholder { color: #8c8494; }
.thought-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.thought-field { display: grid; min-width: 0; gap: 7px; }
.thought-field small { color: var(--subtle); font-size: 10px; font-weight: 400; }
.thought-nickname-field[hidden] { display: none; }
.thought-photo-field { max-width: 680px; }
.thought-submit { min-height: 46px; justify-self: start; padding: 11px 18px; }
.emoji-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.emoji-picker > span { width: 100%; color: var(--subtle); font-size: 10px; }
.emoji-picker button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50% 50% 4px 50%;
  background: rgba(255, 255, 255, 0.04);
  font-size: 19px;
  cursor: pointer;
}
.emoji-picker button:hover { border-color: var(--accent); transform: translateY(-2px); }
.thoughts-status { margin: 12px 0; }
.thought-feed-section { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.thought-feed-section h3 { margin: 0 0 8px; color: var(--text); font-size: 16px; }
.thought-feed-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.thought-feed-heading p, .thought-safety-note { max-width: 700px; margin: 0 0 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.public-label, .review-label { flex: 0 0 auto; padding: 6px 9px; border: 1px solid rgba(var(--accent-rgb), 0.45); border-radius: 999px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.review-label { color: var(--peach); border-color: rgba(255, 200, 159, 0.4); }
.thought-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.thought-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 3px 17px 3px 15px;
  background: rgba(255, 255, 255, 0.035);
}
.thought-card-private { border-color: rgba(var(--accent-rgb), 0.24); }
.thought-card-pending { border-color: rgba(255, 200, 159, 0.35); }
.thought-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.thought-author { color: var(--accent); font-size: 11px; font-weight: 700; }
.thought-meta { color: var(--subtle); font-size: 10px; }
.thought-content { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--text); font-size: 13px; line-height: 1.65; }
.thought-note { margin: 12px 0 0; padding: 9px 11px; border-left: 2px solid var(--peach); background: rgba(255, 200, 159, 0.06); color: #f5d2bf; font-size: 11px; font-style: italic; line-height: 1.55; }
.thought-actions, .review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.thought-actions button, .review-actions button, .comment-form button, .comment-delete {
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px 4px 999px 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.thought-actions button:hover, .review-actions button:hover, .comment-form button:hover { border-color: var(--accent); }
.thought-actions .danger-action { color: var(--danger); }
.thought-comments { margin-top: 14px; padding-top: 11px; border-top: 1px dashed var(--line); }
.thought-comments h4 { margin: 0 0 8px; color: var(--muted); font-size: 10px; }
.thought-comment { padding: 9px 0; border-bottom: 1px solid var(--line); }
.thought-comment-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.thought-comment-header strong { color: var(--peach); font-size: 10px; }
.thought-comment p { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--text); font-size: 11px; line-height: 1.5; }
.comment-form { display: grid; gap: 8px; margin-top: 10px; }
.comment-form textarea { min-height: 70px; font-size: 12px; }
.comment-photo-label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.comment-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.thought-empty { color: var(--subtle); font-size: 12px; line-height: 1.55; }
.thought-safety-note { margin: 24px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }

.footer { flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 760px) {
  .thought-feed { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .side-column { grid-template-columns: minmax(0, 1fr); }
  .side-column > * { min-width: 0; }
}

@media (max-width: 560px) {
  body { min-width: 0; }
  .shell { width: calc(100% - 28px); }
  .welcome { overflow: hidden; }
  .content-grid, .main-column, .side-column { min-width: 0; }
  .content-grid .weather-panel { margin-right: 0; margin-left: 0; }
  .topbar { flex-wrap: wrap; gap: 8px; padding: 14px 0; }
  .topbar-date { order: 3; width: 100%; font-size: 11px; }
  .topbar-actions { margin-left: auto; }
  .shortcut-pill { display: none; }
  .settings-open { min-height: 44px; }
  .thoughts-panel { margin: 14px 0; padding: 16px 13px; border-radius: 3px 20px 3px 16px; }
  .thoughts-panel .section-heading { gap: 8px; }
  .thoughts-panel .section-heading h2 { font-size: 21px; }
  #thoughts-refresh { flex: 0 0 auto; min-height: 44px; padding: 8px 10px; font-size: 10px; }
  .thought-form { padding: 13px 10px; gap: 12px; }
  .thought-form-row { grid-template-columns: minmax(0, 1fr); }
  .thought-mode { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .thought-mode label { min-height: 46px; padding: 0 9px; border: 1px solid var(--line); border-radius: 2px 12px 2px 2px; }
  .thought-submit { width: 100%; justify-self: stretch; }
  .thought-feed-heading { flex-direction: column; }
  .thought-card { padding: 13px; }
  .thought-actions button, .review-actions button, .comment-form button { min-height: 44px; }
}

.community-offline { color: var(--peach); }

.custom-select {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  min-width: 0;
}

.custom-select:focus-within { z-index: 30; }
.custom-select-native { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }

.custom-select-trigger {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(var(--accent-rgb), 0.62);
  border-radius: 2px 13px 2px 2px;
  background:
    linear-gradient(110deg, rgba(var(--accent-rgb), 0.09), transparent 72%),
    #100b0e;
  box-shadow: 3px 3px 0 rgba(var(--accent-rgb), 0.27);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-align: left;
}

.custom-select-trigger:hover,
.custom-select-trigger[aria-expanded="true"] {
  border-color: var(--peach);
  box-shadow: 3px 3px 0 rgba(var(--accent-rgb), 0.66), 0 0 16px rgba(var(--accent-rgb), 0.16);
}

.custom-select-trigger:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 3px;
}

.custom-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-arrow { flex: 0 0 auto; color: var(--peach); font-size: 18px; line-height: 0.7; transition: transform 140ms ease; }
.custom-select-trigger[aria-expanded="true"] .custom-select-arrow { transform: rotate(180deg); }

.custom-select-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  width: max(100%, 170px);
  max-width: min(280px, calc(100vw - 32px));
  max-height: min(50vh, 360px);
  gap: 4px;
  overflow: auto;
  padding: 9px;
  border: 1px solid rgba(var(--accent-rgb), 0.85);
  border-radius: 2px 17px 3px 10px;
  background:
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, 0.035) 6px 7px),
    radial-gradient(ellipse at 100% 0, rgba(102, 228, 237, 0.15), transparent 58%),
    #120b10;
  box-shadow: 5px 5px 0 var(--peach), 9px 9px 22px rgba(0, 0, 0, 0.58);
  overscroll-behavior: contain;
  scrollbar-color: var(--accent) #1a1016;
}

.custom-select-menu[hidden] { display: none; }
.custom-select-menu--up { top: auto; bottom: calc(100% + 8px); }

.custom-select-option {
  position: relative;
  display: block;
  min-height: 36px;
  padding: 9px 12px 9px 32px;
  border: 1px solid transparent;
  border-radius: 2px 10px 2px 2px;
  color: #f7e8ed;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.35;
  outline: none;
  transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.custom-select-option::before {
  position: absolute;
  top: 50%;
  left: 11px;
  color: var(--peach);
  content: '✦';
  font-size: 11px;
  opacity: 0;
  transform: translateY(-50%) scale(0.6);
  transition: opacity 120ms ease, transform 120ms ease;
}

.custom-select-option[aria-selected="true"] {
  border-color: rgba(var(--accent-rgb), 0.46);
  background: rgba(var(--accent-rgb), 0.13);
  color: var(--peach);
  font-weight: 750;
}

.custom-select-option[aria-selected="true"]::before { opacity: 1; transform: translateY(-50%) scale(1); }
.custom-select-option:hover, .custom-select-option:focus-visible {
  border-color: rgba(102, 228, 237, 0.56);
  background: rgba(102, 228, 237, 0.12);
  color: #fff;
  transform: translateX(2px);
}

.custom-select--planner .custom-select-trigger {
  border-radius: 12px 2px 12px 2px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), #100b0e 72%);
}

.custom-select--planner .custom-select-menu { border-radius: 15px 3px 15px 3px; }
.custom-select--social .custom-select-trigger { border-radius: 999px 5px 999px 5px; }
.custom-select--social .custom-select-menu { border-radius: 20px 5px 20px 5px; }
.custom-select--social .custom-select-option { border-radius: 999px 6px 999px 6px; }
.custom-select--wellbeing .custom-select-trigger { border-radius: 999px; }
.custom-select--wellbeing .custom-select-menu { border-radius: 22px; }
.custom-select--wellbeing .custom-select-option { border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
  .custom-select-arrow, .custom-select-option, .custom-select-option::before { transition: none; }
}

.content-grid .meme-panel {
  margin: 14px -10px 18px -15px;
  padding: 22px 18px 22px 24px;
  border: 0;
  border-top: 1px dashed rgba(102, 228, 237, 0.62);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 3px 24px 4px 18px;
  background:
    radial-gradient(ellipse at 92% 6%, rgba(102, 228, 237, 0.1), transparent 55%),
    linear-gradient(140deg, rgba(var(--accent-rgb), 0.055), transparent 70%);
}

.meme-panel .section-heading { align-items: center; }
.content-grid .meme-panel h2 { max-width: 230px; }
.meme-panel .eyebrow { color: #66e4ed; }
.meme-panel .icon-button {
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  border-color: rgba(102, 228, 237, 0.52);
  border-radius: 50% 4px 50% 50%;
  color: #66e4ed;
}

.meme-panel .icon-button:hover { color: var(--peach); }
.meme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 9px; }

.meme-tile {
  position: relative;
  display: grid;
  min-width: 0;
  height: 124px;
  align-content: start;
  gap: 6px;
  padding: 14px 13px;
  border: 1px solid rgba(var(--accent-rgb), 0.48);
  border-radius: 2px 17px 3px 13px;
  background:
    repeating-linear-gradient(0deg, transparent 0 6px, rgba(255, 255, 255, 0.025) 7px 8px),
    rgba(19, 11, 16, 0.78);
  box-shadow: 2px 3px 0 rgba(var(--accent-rgb), 0.28);
}

.meme-image-frame {
  position: relative;
  display: block;
  height: 36px;
  margin: -14px -13px 0;
  overflow: hidden;
  border-radius: inherit;
}

.meme-image-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.2), transparent 70%);
  content: '';
}

.meme-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.meme-photo-placeholder { display: grid; width: 100%; height: 100%; place-items: center end; padding-right: 12px; background: linear-gradient(115deg, rgba(var(--accent-rgb), 0.2), rgba(16, 12, 19, 0.75)); color: var(--accent); font-size: 23px; }

.meme-tile-1 {
  border-color: rgba(102, 228, 237, 0.55);
  border-radius: 17px 3px 14px 3px;
  background-color: rgba(102, 228, 237, 0.055);
}

.meme-tile-2 {
  border-color: rgba(217, 255, 91, 0.43);
  border-radius: 22px 5px 5px 22px;
  background-color: rgba(217, 255, 91, 0.035);
}

.meme-tile-3 {
  border-style: dashed;
  border-radius: 3px 3px 18px 3px;
}

.meme-tile-4 {
  border-color: rgba(196, 147, 255, 0.54);
  border-radius: 4px 19px 4px 19px;
  background-color: rgba(196, 147, 255, 0.055);
}

.meme-tag {
  color: var(--peach);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1px;
}

.meme-tile-1 .meme-tag { color: #66e4ed; }
.meme-tile-2 .meme-tag { color: #d9ff5b; }
.meme-tile-4 .meme-tag { color: #c493ff; }

.meme-caption {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #fff0f3;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.meme-note { margin: 13px 0 0; font-size: 10px; }

@media (max-width: 820px) {
  .content-grid .meme-panel { margin-right: 0; margin-left: 0; }
}

@media (max-width: 560px) {
  .content-grid .meme-panel { margin: 12px 0; padding: 20px 14px; }
  .meme-grid { gap: 9px 7px; }
  .meme-tile { height: 118px; gap: 5px; padding: 10px; }
  .meme-image-frame { height: 31px; margin: -10px -10px 0; }
  .meme-caption { font-size: 10px; }
}

.content-grid .pinterest-panel {
  margin: 12px -8px 18px -14px;
  padding: 22px 18px 22px 23px;
  border: 0;
  border-left: 2px solid rgba(255, 57, 127, 0.62);
  border-radius: 2px 22px 4px 18px;
  background:
    radial-gradient(ellipse at 94% 7%, rgba(255, 57, 127, 0.1), transparent 58%),
    linear-gradient(150deg, rgba(255, 244, 246, 0.035), transparent 72%);
}

.pinterest-panel .section-heading { align-items: center; }
.content-grid .pinterest-panel h2 { font-size: 19px; }
.pinterest-panel .eyebrow { color: #ff397f; }
.pinterest-pin-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 57, 127, 0.65);
  border-radius: 50% 50% 50% 6px;
  background: rgba(255, 57, 127, 0.12);
  color: #ff9ac0;
  font: 900 18px Georgia, serif;
  transform: rotate(-8deg);
}

.pinterest-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pinterest-image-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 57, 127, 0.28);
  border-radius: 3px 13px 3px 10px;
  background: rgba(255, 57, 127, 0.05);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.pinterest-image-card:hover { border-color: var(--peach); transform: translateY(-2px); }
.pinterest-image { display: block; width: 100%; height: 80px; object-fit: cover; }
.pinterest-image-label { display: block; overflow: hidden; padding: 6px; color: #ffb1ca; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.pinterest-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.pinterest-note { margin: 8px 0 0; font-size: 10px; line-height: 1.5; }
.gmail-panel .section-heading { align-items: center; }
.gmail-list { margin-top: 12px; }
.gmail-message-link { display: block; overflow: hidden; color: #e7eef8; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.gmail-message-link:hover { color: var(--accent); }

@media (max-width: 820px) {
  .content-grid .pinterest-panel { margin-right: 0; margin-left: 0; }
  .side-column > .quote-panel,
  .side-column > .meme-panel,
  .side-column > .pinterest-panel { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .content-grid .pinterest-panel { margin: 10px 0 16px; padding: 20px 14px; }
  .pinterest-image { height: 72px; }
  .wallpaper-actions { grid-template-columns: minmax(0, 1fr); }
}

[data-font="rounded"] body,
[data-font="rounded"] :is(button, input, select, textarea, h1, h2, h3, .brand) {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

[data-font="serif"] body,
[data-font="serif"] :is(button, input, select, textarea, h1, h2, h3, .brand) {
  font-family: Georgia, "Times New Roman", serif;
}

[data-font="mono"] body,
[data-font="mono"] :is(button, input, select, textarea, h1, h2, h3, .brand) {
  font-family: "Consolas", "Courier New", monospace;
}

@media (min-width: 821px) {
  [data-width="narrow"] .shell { width: min(980px, calc(100% - 48px)); }
  [data-width="standard"] .shell { width: min(1210px, calc(100% - 48px)); }
  [data-width="wide"] .shell { width: min(1440px, calc(100% - 48px)); }

  [data-layout="focus"] .content-grid { grid-template-columns: minmax(0, 2fr) minmax(275px, 0.8fr); }
  [data-layout="equal"] .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-layout="stacked"] .content-grid { grid-template-columns: minmax(0, 1fr); }
  [data-layout="stacked"] .main-column { padding-right: 0; border-right: 0; }
}

[data-density="compact"] .content-grid [data-widget] { padding-block: 15px; }
[data-density="comfortable"] .content-grid [data-widget] { padding-block: 23px; }
[data-density="spacious"] .content-grid [data-widget] { padding-block: 32px; }

.panel,
.people-panel,
.wellbeing-panel,
.music-panel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(255, 255, 255, 0.13), transparent 38%),
    radial-gradient(ellipse at 100% 0%, rgba(var(--accent-rgb), 0.12), transparent 48%),
    linear-gradient(145deg, rgba(48, 34, 46, 0.76), rgba(20, 15, 23, 0.74));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 20px 48px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
}

.welcome {
  border-color: rgba(var(--accent-rgb), 0.48);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 78% 12%, rgba(255, 255, 255, 0.18), transparent 34%),
    radial-gradient(ellipse at 92% 70%, rgba(var(--accent-rgb), 0.2), transparent 38%),
    linear-gradient(112deg, rgba(38, 27, 38, 0.83), rgba(15, 14, 22, 0.68));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 24px 58px rgba(0, 0, 0, 0.32);
}

.topbar {
  border-bottom-color: rgba(255, 255, 255, 0.13);
}

.shortcut-pill,
.outline-button,
.icon-button,
.thought-actions button,
.review-actions button,
.comment-form button,
.comment-delete {
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 72%),
    rgba(34, 25, 35, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.thought-card,
.action-hint,
.outlook-setup {
  border-color: rgba(255, 255, 255, 0.15);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    rgba(31, 23, 33, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
}

@media (prefers-reduced-transparency: reduce) {
  .panel,
  .people-panel,
  .wellbeing-panel,
  .music-panel,
  .shortcut-pill,
  .outline-button,
  .icon-button,
  .thought-actions button,
  .review-actions button,
  .comment-form button,
  .comment-delete,
  .thought-card,
  .action-hint,
  .outlook-setup {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-color: #211922;
  }
}

[data-font="display"] body,
[data-font="display"] :is(button, input, select, textarea, h1, h2, h3, .brand) {
  font-family: "Arial Black", "Franklin Gothic Heavy", Impact, sans-serif;
}

[data-font="script"] body,
[data-font="script"] :is(button, input, select, textarea, h1, h2, h3, .brand) {
  font-family: "Segoe Script", "Brush Script MT", cursive;
}

[data-font="pixel"] body,
[data-font="pixel"] :is(button, input, select, textarea, h1, h2, h3, .brand) {
  font-family: "Courier New", monospace;
  letter-spacing: 0.025em;
}

[data-button-shape="rounded"] :is(.outline-button, .icon-button, .primary-button, .thought-actions button, .review-actions button, .comment-form button, .comment-delete, .emoji-picker button) {
  border-radius: 12px;
}

[data-button-shape="pill"] :is(.outline-button, .icon-button, .primary-button, .thought-actions button, .review-actions button, .comment-form button, .comment-delete, .emoji-picker button) {
  border-radius: 999px;
}

[data-button-shape="square"] :is(.outline-button, .icon-button, .primary-button, .thought-actions button, .review-actions button, .comment-form button, .comment-delete, .emoji-picker button) {
  border-radius: 2px;
}

[data-icon-shape="rounded"] :is(.brand-mark, .priority-icon, .action-center-icon, .icon-button, .check-button, .count-pill) {
  border-radius: 9px;
}

[data-icon-shape="circle"] :is(.brand-mark, .priority-icon, .action-center-icon, .icon-button, .check-button, .count-pill) {
  border-radius: 50%;
}

[data-icon-shape="square"] :is(.brand-mark, .priority-icon, .action-center-icon, .icon-button, .check-button, .count-pill) {
  border-radius: 2px;
}

[data-icon-style="mono"] :is(.brand-mark, .priority-icon, .action-center-icon, .icon-button, .check-button, .count-pill) {
  filter: grayscale(1);
}

[data-icon-style="color"] :is(.brand-mark, .priority-icon, .action-center-icon, .icon-button, .check-button, .count-pill) {
  filter: none;
}

[data-panel-shape="rounded"] :is(.panel, .thought-card, .thought-form, .outlook-setup) {
  border-radius: 18px;
}

[data-panel-shape="soft"] :is(.panel, .thought-card, .thought-form, .outlook-setup) {
  border-radius: 30px;
}

[data-panel-shape="square"] :is(.panel, .thought-card, .thought-form, .outlook-setup) {
  border-radius: 2px;
}

.photo-upload-preview {
  display: block;
  max-width: min(100%, 360px);
  max-height: 220px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: contain;
}

.photo-upload-preview[hidden] { display: none; }

.thought-photo-frame {
  position: relative;
  display: grid;
  width: fit-content;
  max-width: 100%;
  margin-top: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
}

.thought-photo {
  display: block;
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  transition: filter 180ms ease, transform 180ms ease;
}

.thought-photo-frame.is-blurred .thought-photo {
  filter: blur(20px);
  transform: scale(1.06);
}

.photo-reveal {
  position: absolute;
  inset: 50% auto auto 50%;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(10, 9, 14, 0.82);
  color: #fff;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce) {
  .thought-photo { transition: none; }
}

html {
  background: #090708;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse at 9% 12%, rgba(255, 57, 127, 0.1), transparent 25rem),
    radial-gradient(ellipse at 93% 48%, rgba(99, 69, 89, 0.15), transparent 34rem),
    repeating-linear-gradient(117deg, transparent 0 42px, rgba(255, 255, 255, 0.012) 43px 44px),
    rgba(9, 7, 8, var(--surface-alpha));
}

body::before { opacity: var(--grain-alpha); }

.topbar {
  position: sticky;
  z-index: 6;
  top: 0;
  padding: 10px 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: rgba(9, 7, 8, var(--surface-alpha));
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
  transition:
    background-color 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 300ms ease,
    box-shadow 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.header-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.topbar-actions .outline-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background-color: rgba(15, 10, 12, var(--surface-alpha));
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.topbar .brand-mark {
  border-radius: 11px;
  box-shadow: 0 5px 16px rgba(var(--accent-rgb), 0.28);
  transform: none;
}

body .panel,
body .content-grid [data-widget],
body .people-panel,
body .wellbeing-panel,
body .music-panel,
body .thought-card,
body .thought-form,
body .outlook-setup,
body .action-hint,
body .shared-profile-card,
body .community-notification {
  border-color: rgba(var(--accent-rgb), 0.25);
  background: linear-gradient(
    145deg,
    rgba(38, 24, 31, var(--surface-alpha)),
    rgba(13, 9, 11, var(--surface-alpha))
  );
  box-shadow: 0 18px 44px rgba(0, 0, 0, var(--surface-alpha));
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
  transition:
    background 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 300ms ease,
    box-shadow 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 300ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body .welcome.panel {
  background:
    radial-gradient(ellipse at 92% 70%, rgba(var(--accent-rgb), var(--surface-alpha)), transparent 38%),
    linear-gradient(
      112deg,
      rgba(38, 27, 38, var(--surface-alpha)),
      rgba(15, 14, 22, var(--surface-alpha))
    );
}

.panel:focus-within,
.quicklink-item:focus-within,
.music-panel:focus-within {
  border-color: rgba(var(--accent-rgb), 0.58);
  box-shadow: 0 22px 48px rgba(0, 0, 0, var(--surface-alpha));
  transform: translateY(-2px);
}

button,
.quicklink-item,
.music-track-button,
.quicklink-anchor,
.brand-mark {
  transition:
    background-color 300ms ease,
    border-color 300ms ease,
    box-shadow 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    color 240ms ease,
    opacity 240ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

button:not(:disabled):active,
.quicklink-item:active,
.music-track-button:active {
  transform: scale(0.97);
}

.topbar-actions .outline-button:hover,
.quicklink-item:hover {
  border-color: rgba(var(--accent-rgb), 0.65);
  box-shadow: 0 10px 26px rgba(var(--accent-rgb), 0.12);
  transform: translateY(-2px);
}

.topbar-actions .outline-button:active { transform: scale(0.96); }

.widget-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 13px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

.widget-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.content-grid .quicklinks-panel,
.content-grid .music-panel {
  padding: 22px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 20px;
}

.quicklinks-panel .section-heading,
.music-panel .section-heading { align-items: center; }
.music-panel .music-note { font-size: inherit; }

.quicklinks-grid { gap: 10px; }
.quicklink-item {
  min-height: 45px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 12px;
  background: rgba(15, 10, 12, var(--surface-alpha));
}

.quicklink-anchor { color: var(--text); }

.music-picker {
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
}

.music-track {
  margin-top: 7px;
  padding: 4px 9px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 12px;
  background: rgba(15, 10, 12, var(--surface-alpha));
  transition: background-color 300ms ease, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.music-track:hover { background-color: rgba(var(--accent-rgb), 0.1); }

.settings-field output {
  float: right;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.settings-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

body .settings-field input:not([type="range"]),
body .settings-field select,
body .reminder-form input,
body .client-id-row input,
body .quicklink-form input,
body .content-grid .planner-form input,
body .content-grid .planner-form select,
body .content-grid .people-form input,
body .content-grid .people-form select,
body .content-grid .wellbeing-form select,
body .custom-select-trigger,
body .assistant-form textarea {
  background-color: rgba(15, 10, 12, var(--surface-alpha));
}

.content-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(275px, 0.8fr);
  gap: 24px;
}

.main-column,
.side-column {
  min-width: 0;
  gap: 18px;
  align-content: start;
}

.main-column {
  padding-right: 0;
  border-right: 0;
}

.content-grid [data-widget] {
  min-width: 0;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgba(38, 24, 31, var(--surface-alpha)),
    rgba(13, 9, 11, var(--surface-alpha))
  );
  box-shadow: 0 18px 44px rgba(0, 0, 0, calc(0.24 * var(--surface-alpha)));
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
}

.content-grid [data-widget]::before { display: none; }
.content-grid [data-widget]:last-child { border-bottom: 1px solid rgba(var(--accent-rgb), 0.25); }

body .panel,
body .content-grid [data-widget],
body .people-panel,
body .wellbeing-panel,
body .music-panel,
body .thought-card,
body .thought-form,
body .outlook-setup,
body .action-hint,
body .shared-profile-card,
body .community-notification,
body .settings-section,
body .quicklink-item,
body .music-track,
body .pinterest-image-card,
body .meme-tile,
body .quote-card,
body .thought-mode label,
body .custom-select-menu {
  border-radius: 22px !important;
}

body .thought-card,
body .outlook-setup,
body .shared-profile-card,
body .settings-section,
body .quicklink-item,
body .music-track,
body .pinterest-image-card,
body .meme-tile,
body .quote-card,
body .thought-mode label,
body .custom-select-menu {
  border-radius: 16px !important;
}

body .thought-form { border-radius: 20px !important; }

body :is(
  .outline-button,
  .icon-button,
  .primary-button,
  .check-button,
  .delete-button,
  .people-contact-link,
  .people-done,
  .music-picker,
  .reminder-notify-toggle,
  .custom-select-trigger,
  .comment-form button,
  .thought-actions button,
  .review-actions button,
  .comment-delete,
  .emoji-picker button
) {
  border-radius: 999px;
}

body :is(
  .settings-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  .settings-field select,
  .reminder-form input:not([type="checkbox"]),
  .client-id-row input,
  .quicklink-form input,
  .planner-form input,
  .planner-form select,
  .people-form input,
  .people-form select,
  .wellbeing-form select,
  .assistant-form textarea,
  .thought-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  .thought-form textarea,
  .thought-form select,
  .comment-form textarea,
  .comment-form input:not([type="file"])
) {
  min-width: 0;
  border-radius: 14px;
}

.welcome.panel { margin: 22px 0; }
.shared-dashboard-panel,
.settings-panel,
.thoughts-panel { margin: 18px 0; }
.thought-feed-section { margin-top: 20px; }
.content-grid .section-heading { align-items: center; margin-bottom: 16px; }
.content-grid .section-heading-compact { margin-bottom: 14px; }
.reminder-list { grid-template-columns: minmax(0, 1fr); }
.reminder-row { min-width: 0; }
.content-grid .people-panel { padding-right: 22px; padding-left: 22px; }
.content-grid .wellbeing-panel { margin: 0; padding: 22px; }
.content-grid .quote-panel { margin: 0; padding: 22px 64px 22px 22px; transform: none; }
.content-grid .music-panel { margin: 0; padding: 22px; }
.content-grid .quicklinks-panel { padding: 22px; }
.content-grid .news-panel { margin: 0; padding: 22px; }
.content-grid .news-panel .section-heading { align-items: center; }
.content-grid .weather-panel { margin: 0; }
.content-grid .outlook-panel { border-top-width: 1px; }
.content-grid .quicklinks-panel { border-top-style: solid; }
.content-grid .music-panel { border-top-width: 1px; }
.content-grid .music-picker { border-radius: 999px; }
.settings-grid { gap: 14px; }
.settings-section { padding: 16px; }
.thought-form { gap: 16px; padding: 18px; }
.thought-mode { gap: 8px; }
.thought-mode label { min-height: 46px; padding: 0 14px; }
.thought-feed { gap: 14px; }
.quicklinks-grid { gap: 10px; }
.music-track { margin-top: 8px; padding: 5px 10px; }

@media (max-width: 560px) {
  .topbar { padding: 8px; border-radius: 0 0 18px 18px; }
  .topbar-actions .outline-button { min-height: 36px; gap: 6px; padding: 7px 9px; font-size: 9px; }
  .header-icon { width: 14px; height: 14px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .main-column,
  .side-column { gap: 16px; }
  .content-grid [data-widget],
  .content-grid .quicklinks-panel,
  .content-grid .music-panel,
  .content-grid .wellbeing-panel,
  .content-grid .news-panel,
  .content-grid .quote-panel,
  .content-grid .people-panel,
  .content-grid .weather-panel { margin: 0; padding: 18px; }
  .content-grid .quote-panel { padding-right: 58px; }
  .welcome.panel { margin: 18px 0; padding: 24px 20px 20px; }
  .shared-dashboard-panel,
  .settings-panel,
  .thoughts-panel { margin: 16px 0; padding: 18px; }
  .thoughts-panel .thought-form { padding: 14px; }
  .content-grid [data-widget]::before { display: none; }
  .content-grid h2 { font-size: 21px; }
}

@media (min-width: 561px) and (max-width: 820px) {
  .content-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .main-column,
  .side-column { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
