:root {
  color-scheme: dark;
  --bg: #0a0e14;
  --surface: #111720;
  --surface-2: #151e29;
  --surface-3: #192330;
  --line: rgb(223 234 255 / 8%);
  --text: #f3f6fb;
  --muted: #a5b0bf;
  --quiet: #748092;
  --blue: #a9caff;
  --mint: #9be2c3;
  --amber: #f0ca8d;
  --rose: #f3a8ba;
  --violet: #c8b3fb;
  --radius: 24px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse 54% 35% at 50% -12%, rgb(89 130 189 / 18%), transparent 78%),
    radial-gradient(ellipse 35% 25% at 100% 35%, rgb(52 91 133 / 8%), transparent 80%),
    var(--bg);
  font: 14px/1.48 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: min(1660px, calc(100% - 72px)); margin: 0 auto; padding: 26px 0 34px; }

.topbar, .brand, .topbar-right, .welcome-row, .section-heading, .heading-title, .system-summary,
.service-card, .calendar-actions, .calendar-toolbar, .week-controls, .homelab-meta, .runtime-row,
.read-only-note, .footer { display: flex; align-items: center; }
.topbar, .welcome-row, .section-heading, .calendar-toolbar, .footer { justify-content: space-between; }
.topbar { min-height: 52px; }
.brand { gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid rgb(206 228 255 / 18%); border-radius: 14px; color: #eff6ff; background: linear-gradient(145deg, #426a9b, #263b55); box-shadow: 0 8px 26px rgb(30 73 124 / 25%), inset 0 1px rgb(255 255 255 / 15%); }
.brand-mark svg { width: 19px; height: 19px; }
.brand strong, .brand small, .summary-copy strong, .summary-copy small { display: block; }
.brand strong { font-size: 14px; font-weight: 680; letter-spacing: -.2px; }
.brand small { margin-top: 1px; color: #8090a3; font-size: 8px; font-weight: 650; letter-spacing: 1.55px; }
.topbar-right { gap: clamp(12px, 2.5vw, 32px); }
.live-chip, .data-badge, .connect-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: #a9c6eb; background: rgb(255 255 255 / 3%); font-size: 8px; font-weight: 700; letter-spacing: 1.05px; white-space: nowrap; }
.live-chip i { width: 6px; height: 6px; border-radius: 50%; background: #72d4a7; box-shadow: 0 0 10px rgb(114 212 167 / 70%); }
.clock { color: #e8eef7; font-size: clamp(27px, 3vw, 42px); font-weight: 520; letter-spacing: -1.8px; font-variant-numeric: tabular-nums; }

.welcome-row { margin: 37px 0 22px; gap: 20px; }
.eyebrow { margin: 0 0 5px; color: #95b8e3; font-size: 8px; font-weight: 720; letter-spacing: 1.55px; }
.welcome-row h1 { margin: 0; font-size: clamp(27px, 3.1vw, 38px); font-weight: 610; letter-spacing: -1.7px; line-height: 1.08; }
.welcome-row h1 span { color: #9ec7fb; }
.welcome-note { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.system-summary { min-width: 206px; gap: 11px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgb(23 33 45 / 82%), rgb(17 23 32 / 88%)); }
.system-summary strong, .system-summary small { display: block; }
.system-summary strong { font-size: 11px; font-weight: 620; }
.system-summary small { margin-top: 2px; color: var(--quiet); font-size: 9px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #848b96; }
.pulse-dot.online { background: #6bd3a1; box-shadow: 0 0 0 4px rgb(107 211 161 / 10%), 0 0 13px rgb(107 211 161 / 50%); }
.pulse-dot.partial { background: #eec37c; box-shadow: 0 0 0 4px rgb(238 195 124 / 10%); }
.pulse-dot.unknown { background: #848b96; }

.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 16px; }
.service-card { min-width: 0; min-height: 70px; gap: 11px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgb(23 31 42 / 92%), rgb(16 22 30 / 96%)); box-shadow: 0 10px 30px rgb(0 0 0 / 12%), inset 0 1px rgb(255 255 255 / 3%); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.service-card:hover { transform: translateY(-2px); border-color: rgb(173 207 247 / 24%); background: linear-gradient(145deg, #1a2736, #131b26); }
.service-copy { flex: 1; min-width: 0; }
.service-copy strong, .service-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.service-copy strong { font-size: 12px; font-weight: 650; letter-spacing: -.1px; }
.service-copy small { margin-top: 3px; color: var(--quiet); font-size: 10px; }
.service-icon, .heading-icon { display: grid; place-items: center; flex: 0 0 auto; width: 37px; height: 37px; border-radius: 13px; border: 1px solid rgb(255 255 255 / 5%); background: #202a38; color: #cadcf5; }
.service-icon svg { width: 18px; height: 18px; }
.purple { color: #cab5fa !important; background: #28243a !important; }
.mint { color: #a3e1c5 !important; background: #1d302d !important; }
.amber { color: #f3cb91 !important; background: #342b20 !important; }
.blue { color: #a9cbfa !important; background: #202d40 !important; }
.sky { color: #b2d8ff !important; background: #203249 !important; }
.violet { color: #cab7fb !important; background: #2a253b !important; }
.rose { color: #f1afc0 !important; background: #35252e !important; }
.slate { color: #c0ccdc !important; background: #252e3b !important; }
.service-status { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #76808c; }
.service-status.online { background: #62d19a; box-shadow: 0 0 9px rgb(98 209 154 / 55%); }
.service-status.degraded { background: #edbd72; box-shadow: 0 0 9px rgb(237 189 114 / 38%); }
.service-status.offline { background: #eb7777; box-shadow: 0 0 9px rgb(235 119 119 / 50%); }
.service-status.unknown { background: #8993a1; }
.external { width: 13px; height: 13px; color: #78889b; }

.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgb(20 28 38 / 95%), rgb(15 21 29 / 98%) 75%); box-shadow: 0 17px 46px rgb(0 0 0 / 14%), inset 0 1px rgb(255 255 255 / 3%); }
.section-heading { min-width: 0; gap: 12px; }
.heading-title { min-width: 0; gap: 11px; }
.heading-icon { width: 36px; height: 36px; }
.heading-icon svg { width: 17px; height: 17px; }
.heading-icon.rose { font-size: 13px; font-weight: 760; }
.heading-title .eyebrow { margin-bottom: 2px; }
.section-heading h2 { margin: 0; font-size: 16px; font-weight: 630; letter-spacing: -.35px; }
.data-badge { max-width: 180px; overflow: hidden; color: #9aa6b5; font-size: 7px; text-overflow: ellipsis; }
.loading { display: flex; align-items: center; gap: 9px; min-height: 75px; color: var(--muted); font-size: 11px; }
.spinner { width: 13px; height: 13px; border: 2px solid #303c4c; border-top-color: #a6c9f6; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { color: var(--muted); font-size: 11px; line-height: 1.55; }

.inspiration-panel { margin-bottom: 15px; padding: 17px 19px 18px; }
.inspiration-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 10px; margin-top: 15px; }
.inspire-card { min-width: 0; min-height: 115px; padding: 13px 14px; border: 1px solid rgb(255 255 255 / 5%); border-radius: 17px; background: linear-gradient(145deg, rgb(255 255 255 / 3.5%), rgb(255 255 255 / 1.6%)); }
.inspire-card.word-card { background: linear-gradient(130deg, rgb(104 94 152 / 15%), rgb(255 255 255 / 2%)); }
.inspire-label { color: #adbbd0; font-size: 7px; font-weight: 740; letter-spacing: 1.4px; }
.inspire-card h3 { margin: 7px 0 0; font-size: 16px; font-weight: 660; letter-spacing: -.3px; }
.pronunciation { margin-top: 1px; color: #8f9aad; font-size: 9px; }
.inspire-card blockquote { margin: 8px 0 0; color: #e0e5ed; font-size: 11px; line-height: 1.48; }
.inspire-card .example { margin: 8px 0 0; padding-left: 8px; border-left: 2px solid #8caef0; color: #aab6c6; font-size: 9px; line-height: 1.4; }
.author { margin-top: 7px; color: #92a1b5; font-size: 9px; }

.primary-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .88fr); gap: 14px; align-items: start; }
.primary-main, .primary-side { display: grid; gap: 14px; min-width: 0; }
.weather-panel, .calendar-panel, .news-panel, .integration-panel, .homelab-panel { padding: 18px; }
.weather-content { margin-top: 14px; }
.weather-hero { display: grid; grid-template-columns: minmax(220px, .95fr) minmax(0, 1.5fr); gap: 16px; align-items: center; }
.weather-current { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 13px; min-width: 0; padding: 4px 0 8px; }
.weather-symbol { width: 68px; text-align: center; font-size: 47px; line-height: 1; filter: drop-shadow(0 6px 16px rgb(199 219 248 / 14%)); }
.weather-readout { min-width: 0; }
.temperature { color: #f4f7fc; font-size: clamp(46px, 5vw, 66px); font-weight: 350; line-height: .96; letter-spacing: -4px; font-variant-numeric: tabular-nums; }
.condition { margin-top: 4px; color: #ced7e3; font-size: 12px; }
.weather-place { margin-top: 2px; color: #8392a5; font-size: 9px; }
.weather-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 15px; border-top: 1px solid var(--line); padding-top: 12px; }
.weather-metric { padding: 0 11px; border-right: 1px solid var(--line); }
.weather-metric:first-child { padding-left: 0; }
.weather-metric:last-child { border-right: 0; }
.weather-metric span, .weather-metric strong { display: block; }
.weather-metric span { color: #8290a2; font-size: 8px; }
.weather-metric strong { margin-top: 4px; color: #e4eaf2; font-size: 13px; font-weight: 620; }
.forecast-panel { min-width: 0; padding: 12px; border: 1px solid rgb(255 255 255 / 5%); border-radius: 16px; background: rgb(0 0 0 / 12%); }
.subsection-label { margin-bottom: 9px; color: #8795a8; font-size: 7px; font-weight: 740; letter-spacing: 1.25px; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.day { min-width: 0; padding: 7px 2px; border-radius: 11px; text-align: center; }
.day:first-child { background: rgb(255 255 255 / 4%); }
.day-name { overflow: hidden; color: #aeb9c7; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.day-icon { margin: 7px 0; font-size: 17px; line-height: 1; }
.day-temps { color: #e6ebf1; font-size: 9px; font-weight: 640; white-space: nowrap; }
.day-temps span { margin-left: 2px; color: #8290a2; font-weight: 450; }
.day-rain { margin-top: 5px; color: #82baf4; font-size: 7px; }
.hourly-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.hourly { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
.hour { flex: 1 0 59px; padding: 7px 4px; border: 1px solid rgb(255 255 255 / 4%); border-radius: 11px; background: rgb(255 255 255 / 2%); color: #9ba8b8; font-size: 8px; text-align: center; }
.hour span { display: block; margin: 5px 0; font-size: 16px; }
.hour b { color: #e2e8f0; font-size: 10px; font-weight: 650; }
.weather-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; color: #748295; font-size: 8px; }
.weather-alert-note, .sample-banner { padding: 7px 9px; border: 1px solid rgb(239 195 124 / 13%); border-radius: 10px; color: #b8a47f; background: rgb(239 195 124 / 4%); font-size: 8px; }
.weather-alert { margin-bottom: 10px; padding: 10px 11px; border: 1px solid rgb(242 158 113 / 24%); border-radius: 12px; background: rgb(242 158 113 / 8%); color: #f0cfaa; font-size: 9px; line-height: 1.45; }
.weather-alert strong { display: block; margin-bottom: 2px; }
.weather-empty { padding: 22px 5px; color: var(--muted); font-size: 11px; }

.news-panel { padding-bottom: 12px; }
.tabs { display: flex; gap: 4px; margin: 14px 0 6px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: rgb(0 0 0 / 18%); }
.tab { flex: 1; min-width: 0; padding: 8px 5px; border: 0; border-radius: 9px; color: #8d9aab; background: transparent; font-size: 9px; font-weight: 620; cursor: pointer; transition: background .16s ease, color .16s ease; }
.tab:hover { color: var(--text); }
.tab.active { color: #edf4ff; background: #273446; box-shadow: inset 0 1px rgb(255 255 255 / 6%); }
.tab:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, .import-button:focus-visible { outline: 2px solid #9bc4f8; outline-offset: 3px; }
.news-list { min-height: 190px; max-height: 510px; overflow: auto; }
.news-source { padding: 11px 1px 10px; border-bottom: 1px solid var(--line); }
.news-source:last-child { border-bottom: 0; }
.source-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 5px; }
.source-name { color: #a8b6c8; font-size: 8px; font-weight: 730; letter-spacing: .6px; text-transform: uppercase; }
.feed-link { color: #a2c6f0; font-size: 8px; white-space: nowrap; }
.news-item { display: block; padding: 5px 0; color: #e0e6ee; font-size: 10px; line-height: 1.4; transition: color .15s ease; }
.news-item:hover, .feed-link:hover { color: #afd0f8; }
.feed-message { margin: 6px 0 0; color: #8491a1; font-size: 9px; line-height: 1.45; }
.news-note { margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: #778597; font-size: 8px; }

.calendar-panel { padding-bottom: 14px; }
.calendar-actions { gap: 7px; }
.quiet-button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: #c4d0df; background: rgb(255 255 255 / 4%); font-size: 8px; font-weight: 640; cursor: pointer; white-space: nowrap; }
.quiet-button:hover { background: rgb(255 255 255 / 8%); }
.quiet-button[aria-disabled="true"] { opacity: .55; cursor: default; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.calendar-toolbar { min-height: 34px; margin: 11px 0 9px; }
.week-controls { gap: 6px; }
.icon-button, .today-button, .text-button { border: 1px solid var(--line); color: #d5dee9; background: rgb(255 255 255 / 3%); cursor: pointer; }
.icon-button { width: 29px; height: 29px; border-radius: 50%; font-size: 18px; line-height: 1; }
.today-button { padding: 6px 9px; border-radius: 999px; font-size: 8px; font-weight: 640; }
.text-button { padding: 6px 9px; border-radius: 999px; color: #a6b3c4; font-size: 8px; }
.icon-button:hover, .today-button:hover, .text-button:hover { background: #263344; }
.week-label { margin-left: 5px; color: #c4cfdd; font-size: 10px; font-weight: 630; }
.calendar-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-day { min-width: 0; min-height: 103px; padding: 8px 6px; border: 1px solid rgb(255 255 255 / 5%); border-radius: 13px; background: rgb(255 255 255 / 1.5%); }
.calendar-day.is-today { border-color: rgb(140 188 248 / 32%); background: linear-gradient(170deg, rgb(73 112 166 / 15%), rgb(255 255 255 / 1%)); }
.calendar-day-head { display: flex; justify-content: space-between; gap: 3px; margin-bottom: 9px; color: #8997a8; font-size: 8px; }
.calendar-day-head strong { color: #d9e0e9; font-size: 9px; font-weight: 640; }
.calendar-day.is-today .calendar-day-head strong { color: #a9cffc; }
.event-chip { margin: 5px 0 0; padding: 5px 6px; border-left: 2px solid #8db8ec; border-radius: 6px; color: #dce8f7; background: rgb(116 162 214 / 12%); font-size: 8px; line-height: 1.34; overflow-wrap: anywhere; }
.event-chip time { display: block; margin-bottom: 2px; color: #92b5de; font-size: 7px; }
.calendar-empty { padding: 6px 0; color: #657386; font-size: 8px; }
.calendar-note { display: flex; align-items: start; gap: 7px; margin: 11px 0 0; color: #7d8a9a; font-size: 8px; line-height: 1.45; }
.calendar-note svg { flex: 0 0 13px; width: 13px; height: 13px; color: #86a7cd; }
.family-panel { padding: 18px; }
.board-storage-note { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; color: #8f9daf; font-size: 9px; }
.board-storage-note svg { flex: 0 0 14px; width: 14px; height: 14px; color: #a9caff; }
.family-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.board-card { min-width: 0; padding: 15px; border: 1px solid rgb(255 255 255 / 6%); border-radius: 17px; background: linear-gradient(145deg, rgb(255 255 255 / 2.5%), rgb(255 255 255 / 1%)); }
.board-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.board-card-heading > div > span { color: #9cb5d4; font-size: 8px; font-weight: 740; letter-spacing: 1.25px; }
.board-card h3 { margin: 3px 0 0; color: #e7edf6; font-size: 12px; font-weight: 620; letter-spacing: -.15px; }
.board-action { min-height: 30px; padding: 5px 9px; font-size: 9px; cursor: pointer; }
.board-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 3px; }
.board-actions button:disabled { opacity: .38; cursor: default; }
.note-threads { display: flex; gap: 6px; overflow-x: auto; margin: 13px 0 10px; padding-bottom: 3px; scrollbar-width: thin; }
.note-thread { flex: 0 0 auto; max-width: 145px; overflow: hidden; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: #99a8ba; background: rgb(255 255 255 / 2%); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.note-thread[aria-selected="true"] { border-color: rgb(157 193 236 / 25%); color: #dceaff; background: rgb(107 153 209 / 13%); }
.board-entry-form { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; }
.board-entry-form textarea, .todo-entry-form input, .note-editor { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 11px; outline: none; color: #eaf0f8; background: #111821; font-size: 10px; resize: vertical; }
.board-entry-form textarea:focus, .todo-entry-form input:focus, .note-editor:focus { border-color: rgb(153 191 239 / 45%); }
.board-entry-form textarea::placeholder, .todo-entry-form input::placeholder { color: #68778a; }
.primary-button { flex: 0 0 auto; min-height: 34px; padding: 0 12px; border: 1px solid rgb(172 205 247 / 16%); border-radius: 11px; color: #dceaff; background: linear-gradient(145deg, #263d59, #1b2b40); font-size: 9px; font-weight: 650; cursor: pointer; }
.todo-entry-form { display: flex; gap: 7px; margin-top: 15px; }
.todo-entry-form input { height: 36px; }
.todo-entry-form .primary-button { width: 36px; padding: 0; font-size: 16px; }
.board-empty { margin: 11px 0 0; color: #77879a; font-size: 9px; }
.board-empty[hidden] { display: none; }
.note-list, .todo-list { display: grid; gap: 7px; margin-top: 9px; }
.note-item, .todo-item { display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px; border: 1px solid rgb(255 255 255 / 5%); border-radius: 12px; background: rgb(7 11 16 / 26%); }
.note-item p { flex: 1; min-width: 0; margin: 0; color: #c8d2df; font-size: 10px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-item time { display: block; margin-top: 4px; color: #78889a; font-size: 8px; }
.item-actions { display: flex; flex: 0 0 auto; gap: 3px; }
.item-action { padding: 3px 5px; border: 0; border-radius: 7px; color: #91a4bc; background: transparent; font-size: 8px; cursor: pointer; }
.item-action:hover { color: #e2eeff; background: rgb(255 255 255 / 6%); }
.note-editor { flex: 1; }
.todo-item { align-items: center; }
.todo-check { flex: 0 0 auto; width: 15px; height: 15px; accent-color: #8dc7a9; cursor: pointer; }
.todo-title { flex: 1; min-width: 0; color: #d1dbe8; font-size: 10px; overflow-wrap: anywhere; }
.todo-item.is-done .todo-title { color: #778596; text-decoration: line-through; }
.todo-item.is-done { opacity: .72; }
.thread-tools { display: flex; gap: 4px; margin-left: auto; }
.todo-item input.todo-edit { flex: 1; min-width: 0; padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: #111821; font-size: 10px; }

.integration-panel { padding: 0; overflow: hidden; }
.pve-panel { padding: 18px; }
.integration-panel summary { display: flex; align-items: center; gap: 10px; padding: 15px 17px; list-style: none; cursor: pointer; }
.integration-panel summary::-webkit-details-marker { display: none; }
.summary-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 12px; color: #a3c9f6; background: #223145; font-size: 16px; }
.summary-copy { flex: 1; min-width: 0; }
.summary-copy .eyebrow { margin: 0 0 2px; font-size: 7px; }
.summary-copy strong { font-size: 11px; font-weight: 650; }
.summary-copy small { margin-top: 2px; color: #7c8999; font-size: 8px; }
.connect-badge { padding: 5px 7px; color: #a9a296; border-color: rgb(239 195 124 / 12%); background: rgb(239 195 124 / 4%); font-size: 6px; letter-spacing: .8px; }
.summary-chevron { width: 14px; height: 14px; color: #758496; transition: transform .18s ease; }
.integration-panel[open] .summary-chevron { transform: rotate(90deg); }
.integration-body { padding: 0 17px 16px 61px; color: #a1adbb; font-size: 9px; line-height: 1.5; }
.integration-body p { margin: 0 0 11px; }
.integration-requirements { padding: 10px 11px; border: 1px solid var(--line); border-radius: 12px; background: rgb(255 255 255 / 2%); }
.integration-requirements span { color: #d4deea; font-size: 8px; font-weight: 650; }
.integration-requirements ul { margin: 6px 0 0; padding-left: 15px; color: #8997a8; font-size: 8px; }
.read-only-note { gap: 6px; margin-top: 10px; color: #8593a3; font-size: 8px; }
.read-only-note svg { flex: 0 0 13px; width: 13px; height: 13px; color: #8faed2; }
.pve-panel .section-heading { gap: 7px; }
.pve-message { min-height: 25px; margin: 12px 0 9px; color: #9ba8b7; font-size: 9px; line-height: 1.5; }
.pve-message.error { color: #e3ad9f; }
.pve-message.success { color: #a8ddbd; }
.pve-data { display: grid; gap: 12px; }
.pve-host-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.pve-stat, .pve-guest-summary article { min-width: 0; padding: 9px 10px; border: 1px solid rgb(255 255 255 / 6%); border-radius: 12px; background: rgb(255 255 255 / 2%); }
.pve-stat > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.pve-stat span, .pve-guest-summary article > span { color: #8291a4; font-size: 7px; font-weight: 700; letter-spacing: .75px; }
.pve-stat strong { color: #e0e8f2; font-size: 11px; font-weight: 620; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pve-track { height: 4px; overflow: hidden; margin-top: 8px; border-radius: 99px; background: rgb(255 255 255 / 8%); }
.pve-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6e9ed8, #9fc7f5); transition: width .3s ease; }
.pve-fill-0 { width: 0%; }.pve-fill-10 { width: 10%; }.pve-fill-20 { width: 20%; }.pve-fill-30 { width: 30%; }.pve-fill-40 { width: 40%; }.pve-fill-50 { width: 50%; }.pve-fill-60 { width: 60%; }.pve-fill-70 { width: 70%; }.pve-fill-80 { width: 80%; }.pve-fill-90 { width: 90%; }.pve-fill-100 { width: 100%; }
.pve-uptime strong { display: block; margin-top: 5px; }
.pve-guest-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.pve-guest-summary article strong { display: block; margin-top: 4px; color: #dbe7f7; font-size: 10px; font-weight: 580; }
.pve-subheading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; color: #91a5bf; font-size: 7px; font-weight: 730; letter-spacing: .95px; }
.pve-subheading small { color: #728093; font-size: 7px; font-weight: 450; letter-spacing: 0; }
.pve-storage-list, .pve-guest-list { display: grid; gap: 5px; }
.pve-storage-row, .pve-guest-row { min-width: 0; padding: 7px 8px; border: 1px solid rgb(255 255 255 / 5%); border-radius: 9px; background: rgb(0 0 0 / 12%); }
.pve-storage-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; color: #b7c2d0; font-size: 8px; }
.pve-storage-row strong { color: #d6e0ee; font-size: 8px; font-weight: 580; font-variant-numeric: tabular-nums; }
.pve-mini-track { grid-column: 1 / -1; height: 3px; margin-top: -2px; overflow: hidden; border-radius: 99px; background: rgb(255 255 255 / 8%); }
.pve-mini-track i { display: block; height: 100%; border-radius: inherit; background: #829fbe; }
.pve-guest-list { max-height: 200px; overflow-y: auto; }
.pve-guest-row { display: grid; grid-template-columns: minmax(50px, .65fr) auto minmax(80px, 1fr) auto; align-items: center; gap: 7px; color: #bdc8d6; font-size: 8px; }
.pve-guest-row strong { color: #dfe7f2; font-size: 8px; font-weight: 600; }
.pve-guest-row .guest-state { color: #7d8998; font-size: 7px; text-transform: uppercase; }
.pve-guest-row .guest-state.running { color: #92d5ad; }
.pve-guest-row .guest-metric { color: #9baabd; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pve-empty { margin: 0; padding: 7px; color: #78879a; font-size: 8px; }
.pve-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 9px; }
.pve-footer .read-only-note { margin: 0; font-size: 7px; }
.pve-footer .read-only-note svg { flex-basis: 12px; width: 12px; height: 12px; }
.pve-footer > small { flex: 0 0 auto; color: #738094; font-size: 7px; }
.pve-panel .connect-badge.connected { color: #9be2c3; }
.pve-panel .connect-badge.partial { color: #f0ca8d; }

.homelab-panel { margin-top: 14px; }
.homelab-meta { gap: 10px; }
.homelab-meta > span:last-child { color: #738194; font-size: 8px; }
.homelab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.homelab-service { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 11px; border: 1px solid rgb(255 255 255 / 5%); border-radius: 14px; background: rgb(255 255 255 / 2%); }
.homelab-service > span:last-child { min-width: 0; }
.homelab-service strong, .homelab-service small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.homelab-service strong { font-size: 9px; font-weight: 650; }
.homelab-service small { margin-top: 2px; color: #8390a0; font-size: 8px; }
.runtime-row { gap: 9px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.runtime-mark { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 9px; color: #adc5e4; background: #202c3a; }
.runtime-mark svg { width: 14px; height: 14px; }
.runtime-row > span:nth-child(2) { flex: 1; }
.runtime-row strong, .runtime-row small { display: block; }
.runtime-row strong { font-size: 8px; font-weight: 650; }
.runtime-row small { margin-top: 2px; color: #748294; font-size: 7px; }
.runtime-values { color: #9cabc0; font-size: 8px; font-variant-numeric: tabular-nums; }
.status-disclaimer { margin: 9px 0 0; color: #718093; font-size: 7px; line-height: 1.4; }
.footer { gap: 10px; padding: 18px 3px 0; color: #6f7b8b; font-size: 8px; }
.footer span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.footer svg { width: 12px; height: 12px; color: #cf8da0; }

@media (min-width: 1600px) {
  .shell { width: min(1740px, calc(100% - 96px)); }
  .panel { padding: 21px; }
  .weather-panel, .calendar-panel, .news-panel { padding: 21px; }
  .inspiration-panel { padding: 20px 22px; }
  .service-card { min-height: 78px; }
  .calendar-day { min-height: 116px; }
}
@media (max-width: 1050px) {
  .shell { width: calc(100% - 44px); }
  .primary-grid { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr); gap: 11px; }
  .primary-main, .primary-side { gap: 11px; }
  .weather-hero { grid-template-columns: 1fr; }
  .weather-current { grid-template-columns: auto 1fr; }
  .forecast-panel { padding: 10px; }
  .service-card { padding: 10px; gap: 8px; }
  .service-icon { width: 33px; height: 33px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 30px); padding-top: 17px; }
  .topbar { min-height: 43px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 12px; }
  .live-chip { display: none; }
  .clock { font-size: 29px; }
  .welcome-row { align-items: flex-start; margin: 27px 0 17px; }
  .system-summary { min-width: 0; padding: 9px 10px; }
  .system-summary small { max-width: 125px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 11px; }
  .service-card { min-height: 65px; padding: 9px 10px; }
  .service-copy strong { font-size: 10px; }
  .service-copy small { font-size: 8px; }
  .external { width: 11px; height: 11px; }
  .inspiration-panel { margin-bottom: 11px; padding: 14px; }
  .inspiration-grid { grid-template-columns: 1fr; gap: 7px; margin-top: 10px; }
  .inspire-card { min-height: auto; padding: 11px; }
  .inspire-card blockquote { margin-top: 6px; }
  .primary-grid { grid-template-columns: 1fr; gap: 11px; }
  .primary-main, .primary-side { gap: 11px; }
  .weather-panel, .calendar-panel, .news-panel, .homelab-panel { padding: 14px; }
  .weather-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 9px; }
  .weather-symbol { width: 48px; font-size: 35px; }
  .temperature { font-size: 49px; }
  .weather-metrics { margin-top: 12px; padding-top: 9px; }
  .weather-metric { padding: 0 7px; }
  .weather-metric strong { font-size: 11px; }
  .days { gap: 2px; }
  .day { padding: 6px 1px; }
  .day-name { font-size: 7px; }
  .day-icon { font-size: 14px; }
  .day-temps { font-size: 8px; }
  .calendar-section-heading { align-items: flex-start; }
  .calendar-actions { flex-direction: column; align-items: flex-end; gap: 5px; }
  .calendar-week { grid-template-columns: repeat(7, minmax(96px, 1fr)); overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .calendar-day { min-height: 106px; scroll-snap-align: start; }
  .homelab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family-grid { grid-template-columns: 1fr; }
  .homelab-meta { flex-direction: column; align-items: flex-end; gap: 4px; }
}
@media (max-width: 460px) {
  .shell { width: calc(100% - 22px); }
  .brand { gap: 8px; }
  .brand strong { font-size: 12px; }
  .brand small { font-size: 6px; letter-spacing: 1px; }
  .brand-mark { width: 32px; height: 32px; }
  .topbar-right { gap: 0; }
  .clock { font-size: 26px; }
  .welcome-row { flex-direction: column; gap: 12px; }
  .welcome-row h1 { font-size: 29px; }
  .welcome-note { font-size: 10px; }
  .system-summary { width: 100%; }
  .system-summary small { max-width: none; }
  .service-grid { gap: 6px; }
  .service-card { gap: 7px; min-height: 61px; padding: 8px; }
  .service-icon { flex-basis: 29px; width: 29px; height: 29px; border-radius: 10px; }
  .service-icon svg { width: 15px; height: 15px; }
  .service-status { flex-basis: 6px; width: 6px; height: 6px; }
  .external { display: none; }
  .section-heading h2 { font-size: 14px; }
  .heading-icon { flex-basis: 31px; width: 31px; height: 31px; border-radius: 11px; }
  .data-badge { max-width: 112px; padding: 5px 7px; font-size: 6px; }
  .weather-hero { grid-template-columns: 1fr; }
  .weather-current { padding: 4px 0 0; }
  .forecast-panel { padding: 9px 7px; }
  .weather-foot { align-items: flex-start; flex-direction: column; }
  .news-list { max-height: 420px; }
  .tab { font-size: 8px; }
  .integration-panel summary { gap: 7px; padding: 13px; }
  .summary-icon { flex-basis: 30px; width: 30px; height: 30px; }
  .connect-badge { font-size: 5px; }
  .integration-body { padding-left: 50px; padding-right: 13px; }
  .pve-panel .section-heading { align-items: flex-start; }
  .pve-footer { align-items: flex-start; flex-direction: column; }
  .pve-guest-row { grid-template-columns: minmax(0, 1fr) auto; }
  .homelab-grid { gap: 6px; }
  .homelab-service { gap: 7px; padding: 9px 8px; }
  .homelab-service strong { font-size: 8px; }
  .homelab-service small { font-size: 7px; }
  .footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Household services: three-column desktop layout */
@media (min-width: 900px) {
  .service-grid[aria-label="Household services"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
