:root {
  color-scheme: dark;
  --bg: #0d1017;
  --bg-soft: #121722;
  --surface: rgba(25, 31, 43, .86);
  --surface-solid: #1e2634;
  --line: rgba(232, 238, 247, .12);
  --text: #f2f5f8;
  --muted: #a6b0bf;
  --dim: #6f7b8c;
  --accent: #8fb3ff;
  --danger: #ff8f9a;
  --ok: #89d3ae;
  --warn: #e0b66f;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 143, 154, .13), transparent 30vw),
    radial-gradient(circle at 90% 0%, rgba(143, 179, 255, .16), transparent 34vw),
    radial-gradient(circle at 50% 110%, rgba(164, 137, 255, .10), transparent 36vw),
    linear-gradient(180deg, var(--bg), #101520 68%, #0b0e14);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(95, 128, 173, .35);
  outline-offset: 3px;
}

.page {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(18px, 3vw, 32px) 0 48px;
}

.masthead {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: clamp(12px, 2vw, 20px);
}
h1, h2, h3 { text-wrap: pretty; }
h1 {
  margin: 0;
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: .94;
  letter-spacing: -.06em;
}
h2 {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1;
  letter-spacing: -.05em;
}
h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -.01em;
}
.eyebrow,
.board-kicker {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.masthead-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
html[data-view="landing"] #addOpenBtn,
html[data-view="cozyla"] #addOpenBtn,
html[data-view="avatar-agent"] #addOpenBtn {
  display: none;
}
html[data-view="landing"] #saveStatus,
html[data-view="cozyla"] #saveStatus,
html[data-view="avatar-agent"] #saveStatus {
  display: none;
}
.status {
  width: 100%;
  margin: 2px 0 0;
  color: var(--dim);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}
.status.error { color: var(--danger); }
.status.busy { color: var(--warn); }
.status.ok { display: none; color: var(--dim); }

button, select {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.primary {
  padding: 0 22px;
  border-color: transparent;
  background: #edf3ff;
  color: #111827;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}
.primary:hover { background: #ffffff; transform: translateY(-1px); }
.quiet {
  padding: 0 15px;
  color: var(--muted);
  background: rgba(232, 238, 247, .06);
}
.quiet:hover { color: var(--text); background: rgba(232, 238, 247, .10); }
.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
}
.icon-button:hover { background: rgba(232, 238, 247, .08); color: var(--text); }

.plus-circle {
  display: inline-grid !important;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(248, 215, 122, .22);
  border-radius: 999px;
  color: rgba(248, 250, 252, .86);
  background: rgba(8, 13, 24, .72);
  box-shadow: 0 12px 30px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.05);
  backdrop-filter: blur(12px) saturate(1.1);
  font-size: 0;
  font-weight: 760;
  line-height: 1;
}
.plus-circle::before {
  content: '+';
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 22px;
  line-height: 1;
  text-align: center;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 680;
  transform: none;
}
.plus-circle:hover,
.plus-circle:focus-visible {
  color: #fff;
  border-color: rgba(248, 215, 122, .44);
  background: rgba(14, 20, 33, .88);
  transform: translateY(-1px);
}

.browse { margin-top: 12px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.view-enter {
  animation: softIn .22s ease both;
}
@keyframes softIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hub-sections {
  display: grid;
  gap: clamp(22px, 3vw, 32px);
}
.hub-section {
  display: grid;
  gap: 12px;
}
.hub-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(232, 238, 247, .58);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: none;
}
.hub-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 238, 247, .16), transparent);
}
.board-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.board-card {
  --card-accent: rgba(143, 179, 255, .72);
  --card-accent-soft: rgba(143, 179, 255, .14);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 158px;
  padding: 18px;
  overflow: hidden;
  border-radius: 18px;
  color: var(--text);
  background: linear-gradient(160deg, rgba(31, 42, 59, .86), rgba(17, 24, 39, .90));
  border: 1px solid rgba(232, 238, 247, .14);
  text-align: left;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .04);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.board-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--card-accent-soft), transparent 34%),
    linear-gradient(135deg, rgba(7, 12, 24, .34) 0%, rgba(7, 12, 24, .14) 46%, transparent 78%);
}
.board-card::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--card-accent), transparent 72%);
  opacity: .58;
  pointer-events: none;
}
.board-card:hover,
.board-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(232, 238, 247, .22);
  background: linear-gradient(160deg, rgba(35, 47, 66, .94), rgba(19, 27, 42, .94));
  box-shadow: 0 22px 58px rgba(0, 0, 0, .30), inset 0 1px rgba(255, 255, 255, .06);
}
.board-card .board-kicker,
.board-card .board-title,
.board-card .board-description {
  position: relative;
  z-index: 2;
}
.board-card .board-kicker {
  display: none;
}
.board-title {
  display: block;
  margin-top: 0;
  max-width: 100%;
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.058em;
  text-wrap: balance;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .34);
}
.board-description {
  display: block;
  max-width: 15rem;
  margin-top: 10px;
  color: rgba(232, 238, 247, .74);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.36;
}
.shape {
  display: none !important;
}
.coral { --card-accent: rgba(255, 154, 168, .72); --card-accent-soft: rgba(255, 154, 168, .12); }
.lavender { --card-accent: rgba(189, 168, 255, .72); --card-accent-soft: rgba(189, 168, 255, .12); }
.sky { --card-accent: rgba(147, 215, 255, .72); --card-accent-soft: rgba(147, 215, 255, .12); }
.mint { --card-accent: rgba(123, 231, 195, .72); --card-accent-soft: rgba(123, 231, 195, .12); }
.rose { --card-accent: rgba(255, 159, 180, .72); --card-accent-soft: rgba(255, 159, 180, .12); }
.gold { --card-accent: rgba(248, 215, 122, .72); --card-accent-soft: rgba(248, 215, 122, .12); }
.ember { --card-accent: rgba(255, 184, 107, .72); --card-accent-soft: rgba(255, 184, 107, .12); }

.board-detail {
  display: grid;
  gap: 14px;
}
.detail-shell {
  display: grid;
  gap: 14px;
}
.back-to-boards {
  position: relative;
  z-index: 2;
  min-height: 38px;
  width: fit-content;
  margin: 0 0 12px;
  padding: 0 15px;
  border-color: rgba(232, 238, 247, .16);
  color: var(--text);
  background: rgba(232, 238, 247, .09);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
}
.back-to-boards:hover,
.back-to-boards:focus-visible {
  color: #ffffff;
  border-color: rgba(232, 238, 247, .28);
  background: rgba(232, 238, 247, .14);
  transform: translateY(-1px);
}
.detail-hero {
  position: relative;
  isolation: isolate;
  min-height: 0;
  padding: 22px;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(180deg, var(--card-accent-soft), transparent 42%),
    var(--surface);
  border: 1px solid rgba(232, 238, 247, .10);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .24);
}
.detail-hero::after {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--card-accent), transparent 72%);
  opacity: .56;
  pointer-events: none;
}
.detail-hero h2,
.detail-hero p,
.detail-hero .board-kicker {
  position: relative;
  z-index: 1;
}
.detail-hero p:not(.board-kicker) {
  max-width: 32rem;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.detail-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(232, 238, 247, .06);
}
.tab {
  min-height: 34px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  font-size: 13px;
  font-weight: 760;
}
.tab.active {
  color: #111827;
  background: #edf3ff;
}
.featured-block {
  padding: 2px 4px 6px;
}
.home-hub-detail {
  gap: 16px;
}
.home-hub-lane {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(232, 238, 247, .10);
  border-radius: 22px;
  background: rgba(25, 31, 43, .46);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .14);
}
.home-hub-lane-head {
  margin-bottom: 0;
}
.home-hub-lane-head h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -.04em;
}
.wishlist-lane {
  background: rgba(25, 31, 43, .46);
}
.wishlist-simple-list {
  display: grid;
  gap: 0;
  padding: 0 2px;
}
.wishlist-simple-list .item-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid rgba(232, 238, 247, .10);
}
.wishlist-simple-list .item-row:last-child {
  border-bottom: 0;
}
.wishlist-simple-list .item-row::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-top: .65em;
  border-radius: 999px;
  background: rgba(189, 168, 255, .86);
  box-shadow: 0 0 14px rgba(189, 168, 255, .28);
}
.wishlist-simple-list .item-row:hover,
.wishlist-simple-list .item-row:focus-visible {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}
.done-view {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(25, 31, 43, .66);
}
.calendar-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(25, 31, 43, .66);
}
.calendar-list {
  display: grid;
  gap: 10px;
}
.calendar-event {
  display: grid;
  grid-template-columns: minmax(94px, .35fr) 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(232, 238, 247, .10);
  border-radius: 20px;
  background: rgba(232, 238, 247, .045);
}
.calendar-date strong,
.calendar-date span {
  display: block;
}
.calendar-date strong {
  color: #ffe59f;
  font-size: 14px;
}
.calendar-date span,
.calendar-info p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.calendar-info h3 {
  font-size: 16px;
}
.calendar-refresh {
  justify-self: start;
}
html[data-view="maintenance"],
html[data-view="maintenance"] body {
  width: 100%;
  min-height: 100%;
}
html[data-view="maintenance"] body {
  overflow: auto;
}
html[data-view="maintenance"] .page {
  width: min(1180px, calc(100vw - 40px));
  min-height: auto;
  padding: 28px 0 40px;
}
html[data-view="maintenance"] .masthead {
  display: flex;
}
html[data-view="maintenance"] .browse {
  margin-top: 28px;
}
html[data-view="maintenance"] #boards {
  min-height: auto;
}
html[data-view="maintenance"] #addOpenBtn,
html[data-view="maintenance"] #saveStatus {
  display: none;
}
.maintenance-matrix-screen {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(248px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
  width: 100vw;
  min-height: 100vh;
  padding: clamp(24px, 3.2vw, 46px) clamp(26px, 4vw, 56px);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 14% 10%, rgba(34, 197, 94, .18), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(14, 165, 233, .10), transparent 28%),
    radial-gradient(circle at 46% 86%, rgba(16, 185, 129, .10), transparent 40%),
    linear-gradient(145deg, #02050a 0%, #08111b 48%, #03060b 100%);
  box-shadow: inset 0 0 160px rgba(0, 0, 0, .82);
  overflow: hidden;
}
.maintenance-ambient {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(34,197,94,.08) 24%, transparent 35% 100%),
    radial-gradient(circle at 50% 32%, rgba(255,255,255,.045), transparent 28%);
  filter: blur(4px);
  opacity: .9;
  pointer-events: none;
}
.maintenance-display-head {
  align-self: stretch;
  justify-self: stretch;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: clamp(14px, 2.2vh, 24px);
  width: 100%;
  min-height: min(660px, calc(100vh - clamp(48px, 6.4vw, 92px)));
  padding: clamp(22px, 2.8vw, 34px);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: clamp(24px, 3vw, 42px);
  background:
    linear-gradient(180deg, rgba(18, 27, 42, .78), rgba(6, 12, 22, .66)),
    radial-gradient(circle at 26% 2%, rgba(34, 197, 94, .16), transparent 40%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .38),
    inset 0 1px rgba(255, 255, 255, .08),
    inset 0 -1px rgba(0, 0, 0, .32);
  backdrop-filter: blur(16px) saturate(1.1);
}
.maintenance-display-kicker {
  margin: 0 0 2px;
  color: rgba(167, 243, 208, .68);
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.maintenance-display-head h2 {
  margin: 0;
  color: #f7fff9;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: .88;
  letter-spacing: -.065em;
  text-shadow: 0 0 28px rgba(34, 197, 94, .22), 0 2px 18px rgba(0,0,0,.54);
}
.maintenance-readout {
  align-self: start;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.readout-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 8px 16px rgba(0,0,0,.24);
  font-size: clamp(11px, 1.15vw, 14px);
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.readout-pill.good { color: #bbf7d0; border-color: rgba(34,197,94,.25); background: rgba(5,46,22,.52); }
.readout-pill.warn { color: #fde68a; border-color: rgba(245,158,11,.25); background: rgba(69,42,7,.46); }
.readout-pill.danger { color: #fecaca; border-color: rgba(239,68,68,.24); background: rgba(69,10,10,.46); }
.maintenance-display-status {
  margin: 0;
  max-width: 22ch;
  color: rgba(226, 232, 240, .62);
  font-size: clamp(13px, 1.45vw, 17px);
  font-weight: 760;
  line-height: 1.35;
  letter-spacing: .01em;
}
.maintenance-back,
.maintenance-add-button {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  width: clamp(42px, 5vw, 58px);
  min-height: clamp(42px, 5vw, 58px);
  margin: 0;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 50%;
  color: rgba(242, 245, 248, .84);
  background: linear-gradient(180deg, rgba(24, 34, 49, .82), rgba(5, 8, 15, .90));
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 28px rgba(0,0,0,.46), inset 0 1px rgba(255,255,255,.10), inset 0 -1px rgba(0,0,0,.38);
}
.maintenance-back { top: clamp(16px, 2.1vw, 28px); left: clamp(16px, 2.1vw, 28px); font-size: 0; }
.maintenance-back::before { content: '←'; font-size: clamp(26px, 3vw, 34px); line-height: 1; }
.maintenance-add-button { top: clamp(16px, 2.1vw, 28px); right: clamp(16px, 2.1vw, 28px); font-size: clamp(26px, 3.2vw, 38px); font-weight: 850; }
.maintenance-back:hover,
.maintenance-back:focus-visible,
.maintenance-add-button:hover,
.maintenance-add-button:focus-visible {
  color: #ffffff;
  border-color: rgba(187, 247, 208, .34);
  background: linear-gradient(180deg, rgba(38, 52, 72, .94), rgba(10, 16, 27, .96));
}
.maintenance-led-frame {
  align-self: center;
  justify-self: center;
  display: grid;
  width: min(680px, calc(100vh - clamp(48px, 6.4vw, 92px)), calc(100vw - 430px));
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  padding: clamp(12px, 1.6vw, 22px);
  border-radius: clamp(24px, 3vw, 44px);
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), transparent 24%),
    linear-gradient(180deg, rgba(11, 18, 29, .88), rgba(2, 5, 10, .76));
  border: 1px solid rgba(148, 163, 184, .16);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, .54),
    inset 0 2px rgba(255, 255, 255, .055),
    inset 0 -28px 80px rgba(0, 0, 0, .28);
}
.maintenance-led-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.05vw, 14px);
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(2px, .35vw, 6px);
  border: 0;
  border-radius: clamp(18px, 2.2vw, 34px);
  background: transparent;
  box-shadow: none;
}
.maintenance-led {
  --led-color: #22c55e;
  position: relative;
  display: grid;
  place-items: stretch;
  min-height: 0;
  padding: clamp(4px, .62vw, 8px);
  border: 1px solid rgba(0, 0, 0, .72);
  border-radius: clamp(16px, 2vw, 28px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.018) 18%, rgba(0,0,0,.34)),
    #050911;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .06),
    0 clamp(7px, 1.1vw, 13px) 0 rgba(0,0,0,.46),
    0 18px 30px rgba(0, 0, 0, .48),
    inset 0 1px 2px rgba(255, 255, 255, .06),
    inset 0 -4px 8px rgba(0, 0, 0, .70);
}
.maintenance-led::before {
  content: '';
  position: absolute;
  inset: -10%;
  border-radius: inherit;
  background: radial-gradient(circle, color-mix(in srgb, var(--led-color) 32%, transparent), transparent 72%);
  opacity: .64;
  filter: blur(12px);
}
.maintenance-led.empty-pad::before { opacity: .06; }
.led-button {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--led-color) 44%, rgba(255,255,255,.10));
  border-radius: calc(clamp(16px, 2vw, 28px) - 5px);
  color: #ffffff;
  background: #0b111b;
  text-align: center;
  overflow: hidden;
  transform: translateY(-1px);
  box-shadow:
    0 6px 0 rgba(0, 0, 0, .48),
    0 14px 24px rgba(0, 0, 0, .38),
    inset 0 2px rgba(255, 255, 255, .16),
    inset 0 -18px 30px rgba(0, 0, 0, .26);
  transition: transform .08s ease, box-shadow .08s ease, filter .12s ease;
}
.led-button:active {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, .58),
    0 5px 10px rgba(0, 0, 0, .34),
    inset 0 5px 18px rgba(0, 0, 0, .48),
    inset 0 1px rgba(255, 255, 255, .08);
}
.led-square {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--led-color) 48%, rgba(255,255,255,.12));
  border-radius: inherit;
  background:
    radial-gradient(circle at 30% 16%, rgba(255,255,255,.34), transparent 13%),
    linear-gradient(180deg, color-mix(in srgb, var(--led-color) 86%, white 14%), var(--led-color) 38%, color-mix(in srgb, var(--led-color) 72%, black 28%));
  box-shadow:
    0 0 16px color-mix(in srgb, var(--led-color) 76%, transparent),
    0 0 46px color-mix(in srgb, var(--led-color) 38%, transparent),
    inset 0 3px rgba(255, 255, 255, .25),
    inset 0 -24px 34px rgba(0, 0, 0, .25),
    inset 8px 0 18px rgba(255, 255, 255, .055),
    inset -10px 0 20px rgba(0, 0, 0, .16);
}
.led-square::after {
  content: '';
  position: absolute;
  inset: clamp(5px, .7vw, 10px);
  border-radius: calc(clamp(16px, 2vw, 28px) - 10px);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: inset 0 1px rgba(255, 255, 255, .15), inset 0 -1px rgba(0, 0, 0, .18);
  pointer-events: none;
}
.led-label {
  position: absolute;
  z-index: 2;
  left: clamp(7px, .85vw, 12px);
  right: clamp(7px, .85vw, 12px);
  top: clamp(7px, .85vw, 12px);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: clamp(25px, 3.1vw, 44px);
  padding: clamp(5px, .62vw, 8px) clamp(28px, 2.6vw, 42px) clamp(5px, .62vw, 8px) clamp(7px, .8vw, 11px);
  border-radius: clamp(10px, 1.2vw, 18px);
  color: rgba(255, 255, 255, .97);
  background: linear-gradient(180deg, rgba(5, 44, 24, .58), rgba(3, 24, 15, .74));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, .24),
    inset 0 1px rgba(255, 255, 255, .10),
    inset 0 -1px rgba(0, 0, 0, .34);
  backdrop-filter: blur(10px);
  font-size: clamp(12px, 1.05vw, 18px);
  font-weight: 880;
  line-height: 1.03;
  letter-spacing: -.026em;
  overflow: hidden;
  text-align: center;
  text-shadow: 0 2px 7px rgba(0, 0, 0, .58);
}
.led-mode {
  position: absolute;
  z-index: 2;
  left: clamp(8px, .9vw, 13px);
  bottom: clamp(7px, .8vw, 11px);
  max-width: calc(100% - clamp(16px, 1.8vw, 26px));
  padding: 4px 9px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .80);
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: clamp(8px, .72vw, 11px);
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.empty-pad .led-label {
  left: clamp(10px, 1vw, 16px);
  right: clamp(10px, 1vw, 16px);
  top: auto;
  bottom: clamp(10px, 1vw, 16px);
  display: block;
  min-height: auto;
  padding: clamp(6px, .75vw, 10px) clamp(8px, 1vw, 12px);
  color: rgba(232, 238, 247, .34);
  background: linear-gradient(180deg, rgba(232, 238, 247, .065), rgba(232, 238, 247, .028));
  border-radius: 999px;
  font-size: clamp(22px, 2.2vw, 34px);
  -webkit-line-clamp: 1;
}
.empty-pad .led-square {
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.07), transparent 14%),
    linear-gradient(180deg, #17202e, #111824 42%, #090e16);
  border-color: rgba(232, 238, 247, .09);
  box-shadow:
    0 6px 0 rgba(0, 0, 0, .40),
    inset 0 2px rgba(255, 255, 255, .06),
    inset 0 -22px 34px rgba(0, 0, 0, .34),
    0 10px 24px rgba(0, 0, 0, .26);
}
.empty-pad .led-button { border-color: rgba(148, 163, 184, .13); }
.maintenance-remove {
  position: absolute;
  top: clamp(8px, .85vw, 12px);
  right: clamp(8px, .85vw, 12px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(26px, 2.5vw, 36px);
  min-height: clamp(26px, 2.5vw, 36px);
  padding: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, .62);
  background: rgba(0, 0, 0, .18);
  opacity: .28;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 4px 10px rgba(0,0,0,.24);
  font-size: clamp(19px, 1.7vw, 28px);
  line-height: 1;
}
.maintenance-led:hover .maintenance-remove,
.maintenance-remove:focus-visible {
  opacity: .86;
}
.maintenance-remove:hover,
.maintenance-remove:focus-visible {
  color: #ffffff;
  background: rgba(220, 38, 38, .66);
}
.maintenance-led.warning .led-square,
.maintenance-led.overdue .led-square {
  animation: ledPulse 1.8s ease-in-out infinite;
}
@media (max-width: 850px) {
  .maintenance-matrix-screen {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    padding: 14px;
    gap: 10px;
  }
  .maintenance-display-head {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
    width: calc(100vw - 28px);
    padding: 14px 70px 14px 18px;
    gap: 6px 12px;
  }
  .maintenance-display-head h2 { font-size: clamp(28px, 7vw, 44px); }
  .maintenance-readout { display: flex; justify-content: flex-start; gap: 6px; }
  .maintenance-display-status { grid-column: 1 / -1; max-width: none; }
  .maintenance-led-frame {
    width: min(calc(100vw - 28px), calc(100vh - 156px));
    padding: 10px;
  }
  .maintenance-led-grid { gap: 7px; }
  .led-label { font-size: clamp(8px, 1.8vw, 12px); }
  .empty-pad .led-label { font-size: clamp(11px, 2.2vw, 16px); }
}
.maintenance-detail {
  gap: 22px;
}
.maintenance-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px 18px;
}
.maintenance-hero .back-to-boards,
.maintenance-hero .board-kicker,
.maintenance-hero h2,
.maintenance-hero p {
  grid-column: 1;
}
.maintenance-summary-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.maintenance-summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  background: rgba(15, 23, 42, .58);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.maintenance-summary-chip.good { color: #bbf7d0; border-color: rgba(34,197,94,.25); background: rgba(5,46,22,.42); }
.maintenance-summary-chip.warn { color: #fde68a; border-color: rgba(245,158,11,.28); background: rgba(69,42,7,.38); }
.maintenance-summary-chip.danger { color: #fecaca; border-color: rgba(239,68,68,.28); background: rgba(69,10,10,.38); }
.maintenance-inline-add {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: end;
  white-space: nowrap;
}
.maintenance-section-grid {
  align-items: start;
}
.maintenance-section.warning {
  border-color: rgba(245, 158, 11, .16);
}
.maintenance-section.ok {
  border-color: rgba(34, 197, 94, .14);
}
.maintenance-submit {
  width: 100%;
}

.maintenance-done-card {
  width: min(420px, calc(100vw - 32px));
  max-width: min(420px, calc(100vw - 32px));
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
}

.maintenance-done-head {
  align-items: start;
}

.maintenance-done-card .maintenance-editor-kicker {
  margin-bottom: 6px;
  color: rgba(232, 238, 247, .46);
  font-size: 10px;
  letter-spacing: .14em;
}

.maintenance-done-card .maintenance-editor-head h3 {
  font-size: 20px;
  line-height: 1.05;
}

.maintenance-done-close {
  width: 32px;
  height: 32px;
  min-height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
  color: rgba(203, 213, 225, .78);
  background: rgba(232, 238, 247, .045);
}

.maintenance-done-copy {
  max-width: 34ch;
  color: rgba(188, 198, 214, .72);
  font-size: 12.5px;
}

.maintenance-done-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
}

.maintenance-done-actions .maintenance-done-cancel,
.maintenance-done-actions .maintenance-done-confirm {
  width: auto;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
}

.maintenance-done-actions .maintenance-done-confirm {
  min-width: 124px;
  color: #0f172a;
  font-weight: 800;
}
.maintenance-row {
  --maintenance-color: #64748b;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--maintenance-color) 14%, transparent), transparent 32%),
    rgba(7, 12, 22, .48);
  box-shadow: inset 0 1px rgba(255,255,255,.05);
}
.maintenance-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--maintenance-color);
  box-shadow: 0 0 18px color-mix(in srgb, var(--maintenance-color) 70%, transparent);
}
.maintenance-row-main {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}
.maintenance-row-main strong {
  overflow: hidden;
  color: rgba(248, 250, 252, .95);
  font-size: 15px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.maintenance-row-main small {
  overflow: hidden;
  color: rgba(203, 213, 225, .58);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.maintenance-row-mode {
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: rgba(226,232,240,.68);
  background: rgba(15,23,42,.52);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.maintenance-row-remove {
  display: grid;
  place-items: center;
  width: 28px;
  min-height: 28px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: rgba(226,232,240,.58);
  background: rgba(15,23,42,.48);
  font-size: 20px;
  line-height: 1;
}
.maintenance-row-remove:hover,
.maintenance-row-remove:focus-visible {
  color: #fff;
  border-color: rgba(248,113,113,.35);
  background: rgba(127,29,29,.58);
}
@media (max-width: 720px) {
  .maintenance-hero {
    grid-template-columns: 1fr;
  }
  .maintenance-inline-add {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
  .maintenance-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .maintenance-row-mode {
    display: none;
  }
}
.maintenance-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 5, 10, .68);
  backdrop-filter: blur(16px) saturate(1.08);
}
.maintenance-editor {
  width: min(560px, 100%);
  display: grid;
  gap: 15px;
  padding: 22px;
  border: 1px solid rgba(232, 238, 247, .13);
  border-radius: 30px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(31, 38, 49, .98), rgba(9, 13, 21, .985)),
    #111827;
  box-shadow:
    0 34px 100px rgba(0, 0, 0, .55),
    inset 0 1px rgba(255, 255, 255, .045);
}
.maintenance-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.maintenance-editor-kicker {
  margin: 0 0 4px;
  color: rgba(232, 238, 247, .48);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.maintenance-editor-head h3 {
  font-size: 23px;
  letter-spacing: -.045em;
}
.maintenance-field,
.maintenance-editor label {
  display: grid;
  gap: 7px;
  color: rgba(232, 238, 247, .68);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .01em;
}
.maintenance-field.full { grid-column: 1 / -1; }
.maintenance-field small {
  margin: -4px 0 0;
  color: rgba(232, 238, 247, .42);
  font-size: 11px;
}
.maintenance-editor input {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(232, 238, 247, .11);
  border-radius: 15px;
  color: var(--text);
  background: rgba(5, 9, 16, .72);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .26), inset 0 1px rgba(255, 255, 255, .035);
}
.maintenance-editor input:focus {
  border-color: rgba(143, 179, 255, .42);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(143, 179, 255, .12), inset 0 1px rgba(255,255,255,.04);
}
.recurrence-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.recurrence-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: rgba(232, 238, 247, .58);
  font-size: 12px;
  font-weight: 820;
}
.recurrence-picker label {
  position: relative;
  display: block;
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid rgba(232, 238, 247, .10);
  border-radius: 20px;
  background: rgba(232, 238, 247, .045);
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.recurrence-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.recurrence-picker span { display: grid; gap: 5px; }
.recurrence-picker strong {
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  letter-spacing: -.01em;
}
.recurrence-picker small {
  color: rgba(232, 238, 247, .48);
  font-size: 12px;
  line-height: 1.25;
}
.recurrence-picker label:has(input:checked) {
  border-color: rgba(143, 179, 255, .34);
  background: linear-gradient(145deg, rgba(143, 179, 255, .16), rgba(232, 238, 247, .055));
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 12px 26px rgba(0,0,0,.20);
}
.maintenance-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.maintenance-editor:has(input[name="recurrenceMode"][value="one-time"]:checked) .recurring-field,
.maintenance-editor:has(input[name="recurrenceMode"][value="recurring"]:checked) .one-time-field {
  opacity: .38;
}
.maintenance-form-hint {
  margin: 0;
  color: rgba(232, 238, 247, .48);
  font-size: 13px;
  line-height: 1.42;
}
.maintenance-submit {
  justify-self: stretch;
  min-height: 46px;
}
.maintenance-done-backdrop {
  place-items: center;
  padding: 16px;
  background: rgba(2, 5, 10, .26);
  backdrop-filter: blur(2px) saturate(1.02);
}
.maintenance-editor.maintenance-done-card {
  width: min(340px, calc(100vw - 28px));
  max-width: min(340px, calc(100vw - 28px));
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border-color: rgba(255, 255, 255, .10);
  background:
    linear-gradient(145deg, rgba(27, 24, 20, .98), rgba(10, 13, 19, .985)),
    #101217;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, .42),
    inset 0 1px rgba(255, 255, 255, .045);
}
.maintenance-editor.maintenance-done-card .maintenance-done-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}
.maintenance-done-title-block {
  display: grid;
  gap: 3px;
}
.maintenance-editor.maintenance-done-card .maintenance-done-title-block h3 {
  margin: 0;
  color: rgba(255, 255, 255, .94);
  font-size: 17px;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.maintenance-done-title-block p {
  margin: 0;
  color: rgba(232, 238, 247, .68);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.25;
}
.maintenance-editor.maintenance-done-card .maintenance-done-close {
  width: 26px;
  height: 26px;
  min-height: 26px;
  flex-basis: 26px;
  border-radius: 8px;
  color: rgba(203, 213, 225, .66);
  background: rgba(255, 255, 255, .04);
}
.maintenance-editor.maintenance-done-card .maintenance-done-copy {
  max-width: none;
  margin: 0;
  color: rgba(188, 198, 214, .58);
  font-size: 12px;
  line-height: 1.25;
}
.maintenance-editor.maintenance-done-card .maintenance-done-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.maintenance-editor.maintenance-done-card .maintenance-done-cancel,
.maintenance-editor.maintenance-done-card .maintenance-done-confirm {
  width: auto;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
}
.maintenance-editor.maintenance-done-card .maintenance-done-confirm {
  min-width: 72px;
  justify-self: auto;
  color: #111827;
  font-weight: 850;
}
@keyframes ledPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.035); filter: brightness(1.18); }
}
.section-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.section-label-row span {
  display: none;
  color: var(--dim);
  font-size: 12px;
}
.featured-list,
.section-items,
.done-view {
  display: grid;
  gap: 2px;
}
.item-row {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid rgba(232, 238, 247, .10);
  border-radius: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  line-height: 1.42;
}
.item-row:last-child { border-bottom: 0; }
.item-row:hover,
.item-row:focus-visible {
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 12px;
  background: rgba(232, 238, 247, .07);
}
.item-row span { overflow-wrap: anywhere; }
.item-row small {
  display: block;
  margin-top: 4px;
  color: var(--dim);
  font-size: 12px;
}
.item-row.done {
  color: var(--dim);
  text-decoration: line-through;
}
.featured-list {
  gap: 0;
}
.featured-list .item-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 0;
}
.featured-list .item-row::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-top: .65em;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(143, 179, 255, .38);
}
.featured-list .item-row:hover,
.featured-list .item-row:focus-visible {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}
.section-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.section-card {
  border: 1px solid rgba(232, 238, 247, .11);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(34, 42, 58, .92), rgba(20, 26, 38, .92));
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.section-card:hover,
.section-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(232, 238, 247, .20);
}
.section-card:nth-child(1) { background: linear-gradient(145deg, rgba(48, 42, 62, .94), rgba(24, 27, 40, .94)); }
.section-card:nth-child(2) { background: linear-gradient(145deg, rgba(48, 38, 51, .94), rgba(25, 27, 38, .94)); }
.section-card:nth-child(3) { background: linear-gradient(145deg, rgba(34, 49, 57, .94), rgba(20, 29, 40, .94)); }
.section-card:nth-child(4) { background: linear-gradient(145deg, rgba(47, 46, 35, .94), rgba(27, 29, 37, .94)); }
.section-card:nth-child(5) { background: linear-gradient(145deg, rgba(35, 49, 45, .94), rgba(20, 29, 38, .94)); }
.section-card:nth-child(6) { background: linear-gradient(145deg, rgba(45, 39, 55, .94), rgba(22, 27, 39, .94)); }
.section-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
.section-card summary::-webkit-details-marker { display: none; }
.section-card summary span {
  font-size: 16px;
  font-weight: 790;
}
.section-card summary em {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(232, 238, 247, .08);
  font-style: normal;
  font-size: 13px;
  font-weight: 760;
}
.section-card[open] summary {
  border-bottom: 1px solid rgba(232, 238, 247, .10);
}
.section-card .section-items {
  padding: 0 14px 10px;
}
.empty {
  margin: 0;
  color: var(--dim);
  font-size: 14px;
  padding: 12px 0;
}

.capture-dialog {
  width: min(560px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  color: var(--text);
}
.capture-dialog::backdrop {
  background: rgba(0, 0, 0, .46);
  backdrop-filter: blur(6px);
}
.capture-card {
  padding: 22px;
  border: 1px solid rgba(232, 238, 247, .16);
  border-radius: 28px;
  background: #171d29;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .44);
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.capture-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 860;
}
textarea {
  display: block;
  width: 100%;
  min-height: 118px;
  resize: vertical;
  color: var(--text);
  background: #101722;
  border: 1px solid rgba(232, 238, 247, .16);
  border-radius: 20px;
  padding: 16px;
  line-height: 1.5;
}
textarea::placeholder { color: #6f7b8c; }
.capture-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}
.capture-row .quiet {
  min-height: 38px;
  padding: 0 14px;
}
.advanced-destination {
  margin-top: 14px;
  color: var(--muted);
}
.advanced-destination summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
}
.destination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.destination.home-task-destination {
  grid-template-columns: minmax(0, 1fr);
}
.destination-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.destination-field[hidden] {
  display: none !important;
}

.capture-destination-hidden {
  display: none !important;
}
select {
  width: 100%;
  color: var(--text);
  background: #101722;
  padding: 0 12px;
}
.hint {
  min-height: 20px;
  margin: 12px 2px 0;
  color: var(--dim);
  font-size: 13px;
}
.capture-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.capture-actions .quiet,
.capture-actions .primary {
  min-height: 38px;
  padding: 0 16px;
}
.capture-actions .primary {
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.item-popover {
  position: absolute;
  z-index: 30;
  width: min(286px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid rgba(232, 238, 247, .16);
  border-radius: 18px;
  background: #171d29;
  box-shadow: 0 18px 56px rgba(0, 0, 0, .44);
}
.popover-title {
  padding: 4px 6px 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.32;
}
.popover-actions { display: grid; gap: 7px; }
.popover-action {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(232, 238, 247, .04);
  text-align: left;
}
button.popover-action:hover,
select.popover-action:hover {
  color: var(--text);
  background: rgba(232, 238, 247, .08);
}
.popover-action.danger:hover {
  color: var(--danger);
  background: rgba(177, 75, 75, .08);
}


.cozyla-detail {
  gap: 16px;
}
.cozyla-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "back refresh"
    "title refresh";
  align-items: start;
  gap: 8px 16px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(232, 238, 247, .10);
}
.cozyla-topbar .back-to-boards {
  grid-area: back;
  justify-self: start;
  min-height: 32px;
  margin: 0 0 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(232, 238, 247, .62);
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  font-weight: 820;
}
.cozyla-topbar .back-to-boards:hover,
.cozyla-topbar .back-to-boards:focus-visible {
  color: var(--text);
  background: transparent;
  transform: none;
}
.cozyla-topbar > div {
  grid-area: title;
}
.cozyla-topbar > .quiet {
  grid-area: refresh;
  align-self: start;
}
.cozyla-topbar .board-kicker {
  margin: 0 0 6px;
}
.cozyla-topbar h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: .92;
  letter-spacing: -.065em;
}
.cozyla-panel {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.cozyla-status-list {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(232, 238, 247, .11);
  border-radius: 18px;
  background: rgba(13, 18, 28, .56);
}
.cozyla-status-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  min-height: 48px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(232, 238, 247, .08);
}
.cozyla-status-row:last-child {
  border-bottom: 0;
}
.cozyla-status-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cozyla-status-row strong {
  min-width: 0;
  color: rgba(242, 246, 252, .92);
  font-size: clamp(16px, 2.1vw, 22px);
  line-height: 1.12;
  letter-spacing: -.035em;
  word-break: break-word;
}
.cozyla-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cozyla-actions button {
  justify-content: center;
  min-height: 58px;
  border-radius: 18px;
}
.cozyla-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.smart-home-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(232, 238, 247, .12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 8% 0%, rgba(34, 211, 238, .14), transparent 28%),
    radial-gradient(circle at 100% 18%, rgba(167, 139, 250, .13), transparent 30%),
    linear-gradient(145deg, rgba(28, 36, 50, .94), rgba(16, 21, 31, .94));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .24);
}
.smart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.smart-panel-head h3 { font-size: clamp(22px, 3vw, 31px); letter-spacing: -.04em; }
.smart-refresh { min-height: 36px; }
.smart-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.smart-summary-card {
  min-height: 108px;
  padding: 16px;
  border: 1px solid rgba(232, 238, 247, .10);
  border-radius: 22px;
  background: rgba(232, 238, 247, .06);
}
.smart-summary-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -.045em;
}
.smart-summary-card span { color: var(--muted); font-size: 13px; }
.glow-sky { box-shadow: inset 0 0 34px rgba(34, 211, 238, .08); }
.glow-amber { box-shadow: inset 0 0 34px rgba(245, 158, 11, .08); }
.glow-lavender { box-shadow: inset 0 0 34px rgba(167, 139, 250, .09); }
.glow-coral { box-shadow: inset 0 0 34px rgba(255, 143, 154, .08); }
.smart-attention {
  padding: 14px 16px;
  border: 1px solid rgba(137, 211, 174, .18);
  border-radius: 20px;
  background: rgba(137, 211, 174, .07);
}
.smart-attention.has-alerts {
  border-color: rgba(224, 182, 111, .22);
  background: rgba(224, 182, 111, .08);
}
.smart-attention span { display: block; font-weight: 830; }
.smart-attention p { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
.smart-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 16px;
}
.smart-section {
  padding: 18px;
  border: 1px solid rgba(232, 238, 247, .10);
  border-radius: 24px;
  background: rgba(13, 16, 23, .38);
}
.smart-section.cameras { grid-column: 1 / -1; }
.light-area-grid,
.smart-device-list,
.camera-health-grid { display: grid; gap: 10px; }
.light-area-card,
.smart-device-row,
.camera-health-card {
  border: 1px solid rgba(232, 238, 247, .09);
  border-radius: 18px;
  background: rgba(232, 238, 247, .045);
}
.light-area-card { padding: 14px; }
.light-area-card > div:first-child,
.smart-device-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.light-area-card strong,
.camera-health-card strong { font-size: 15px; }
.light-area-card span,
.smart-device-row span { color: var(--muted); font-size: 13px; }
.light-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.device-pill,
.state-chip,
.camera-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(232, 238, 247, .07);
  font-size: 12px;
  font-style: normal;
}
button.device-pill,
button.state-chip {
  min-height: 26px;
  border: 1px solid rgba(232, 238, 247, .08);
  appearance: none;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
button.device-pill:not(:disabled):hover,
button.state-chip:not(:disabled):hover {
  transform: translateY(-1px);
  color: #ffffff;
  background: rgba(232, 238, 247, .13);
}
button.device-pill.on:not(:disabled):hover,
button.state-chip.on:not(:disabled):hover { color: #101520; background: #ffe39d; }
button.device-pill:disabled,
button.state-chip:disabled { cursor: not-allowed; opacity: .62; }
.device-pill.on,
.state-chip.on { color: #101520; background: #f7d58a; }
.device-pill.unavailable,
.state-chip.unavailable,
.camera-health-card.unavailable { color: var(--danger); border-color: rgba(255, 143, 154, .22); }
.smart-device-row { padding: 13px 14px; }
.camera-health-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.camera-health-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 10px;
  overflow: hidden;
}
.camera-health-body { padding: 0 4px 4px; }
.camera-thumb-button {
  position: relative;
  display: block;
  width: 100%;
  min-height: 132px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(232, 238, 247, .08);
  border-radius: 14px;
  background: rgba(0, 0, 0, .26);
}
.camera-thumb-button:not(:disabled):hover { border-color: rgba(143, 179, 255, .34); }
.camera-thumb-button:disabled { cursor: not-allowed; opacity: .62; }
.camera-thumb {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
}
.camera-thumb-placeholder {
  display: grid;
  min-height: 132px;
  place-items: center;
  color: var(--dim);
  font-size: 13px;
}
.camera-open {
  min-height: 32px;
  margin-top: 10px;
  padding: 0 12px;
}
.camera-open:disabled { cursor: not-allowed; opacity: .58; }
.camera-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.camera-chips .warn { color: var(--warn); background: rgba(224, 182, 111, .10); }
.camera-chips .bad { color: var(--danger); background: rgba(255, 143, 154, .10); }
.camera-viewer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 7, 18, .76);
  backdrop-filter: blur(10px);
}
.camera-viewer-card {
  width: min(920px, 100%);
  max-height: min(92vh, 820px);
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(232, 238, 247, .14);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(28, 36, 50, .98), rgba(12, 17, 27, .98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .46);
}
.camera-viewer-head,
.camera-viewer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.camera-viewer-head h3 { font-size: clamp(22px, 3vw, 32px); letter-spacing: -.04em; }
.camera-viewer-image {
  width: 100%;
  max-height: 66vh;
  object-fit: contain;
  border-radius: 20px;
  background: #050810;
}
.camera-viewer-error {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255, 143, 154, .22);
  border-radius: 20px;
  color: var(--danger);
  background: rgba(255, 143, 154, .08);
}
.camera-viewer-actions span { color: var(--muted); font-size: 13px; }

.echo-dashboard {
  display: block;
}
.echo-shell {
  display: grid;
  gap: 18px;
  padding-bottom: 28px;
}
.echo-hero,
.echo-card {
  border: 1px solid rgba(232, 238, 247, .13);
  background: linear-gradient(145deg, rgba(30, 39, 54, .94), rgba(13, 18, 28, .94));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .25);
}
.echo-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 32px;
}
.echo-hero h2 { font-size: clamp(38px, 7vw, 72px); }
.echo-hero p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: clamp(16px, 2.5vw, 22px); font-weight: 680; }
.echo-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 18px;
}
.echo-card {
  padding: 20px;
  border-radius: 28px;
}
.echo-card .section-label-row h3 { font-size: clamp(22px, 3.2vw, 34px); }
.echo-next-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.echo-dashboard .item-row,
.echo-dashboard .device-pill,
.echo-dashboard .state-chip,
.echo-dashboard .quiet {
  min-height: 54px;
  font-size: 17px;
}
.echo-dashboard .item-row { border-radius: 18px; }
.echo-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.echo-metric-grid div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(232, 238, 247, .10);
  border-radius: 22px;
  background: rgba(232, 238, 247, .06);
}
.echo-metric-grid strong { display: block; font-size: clamp(27px, 4vw, 42px); line-height: 1; letter-spacing: -.04em; }
.echo-metric-grid span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.echo-light-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.echo-dashboard .light-area-card { padding: 18px; border-radius: 22px; }
.echo-dashboard .light-pills { gap: 9px; }
.echo-camera-grid { margin-top: 14px; }
.echo-dashboard .camera-open { min-height: 46px; }


html[data-display="echo"] .page {
  width: min(100% - 22px, 1160px);
  padding: 18px 0 32px;
}
html[data-display="echo"] .masthead {
  margin-bottom: 16px;
}
html[data-display="echo"] .masthead h1 {
  font-size: clamp(26px, 4vw, 42px);
}
html[data-display="echo"] .masthead-actions .primary {
  display: none;
}

@media (max-width: 820px) {
  .page { width: min(100% - 24px, 760px); padding-top: 26px; }
  .masthead { align-items: flex-start; }
  .board-cards,
  .section-card-grid,
  .smart-summary-grid,
  .smart-section-grid,
  .camera-health-grid { grid-template-columns: 1fr; }
  .cozyla-panel { grid-template-columns: 1fr; }
  .cozyla-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smart-section.cameras { grid-column: auto; }
  .board-card { min-height: 236px; }
}

@media (max-width: 960px) {
  html[data-display="echo"] .page { width: min(100% - 16px, 940px); padding-top: 12px; }
  .echo-top-grid,
  .echo-light-grid,
  .echo-camera-grid { grid-template-columns: 1fr; }
  .echo-hero { padding: 18px; border-radius: 26px; }
  .echo-card { padding: 16px; border-radius: 24px; }
  .echo-dashboard .camera-health-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .echo-dashboard .camera-thumb-button,
  .echo-dashboard .camera-thumb,
  .echo-dashboard .camera-thumb-placeholder { min-height: 108px; height: 108px; }
}

@media (max-width: 560px) {
  .masthead { display: grid; gap: 16px; }
  .masthead-actions { justify-content: flex-start; }
  .status { text-align: left; }
  .destination { grid-template-columns: 1fr; }
  .section-label-row { display: grid; }
  .cozyla-topbar { grid-template-columns: 1fr auto; }
  .cozyla-topbar .back-to-boards { grid-column: 1 / -1; }
  .cozyla-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Ableton Push-inspired Home Hub detail */
.home-hub-detail {
  position: relative;
  gap: 18px;
  padding: 0;
}
.home-hub-detail .detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-hub-detail .detail-hero::after,
.home-hub-detail .detail-hero .board-kicker,
.home-hub-detail .detail-hero p:not(.board-kicker) {
  display: none;
}
.home-hub-detail .detail-hero h2 {
  margin: 0;
  color: rgba(242, 246, 252, .86);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 850;
  letter-spacing: -.035em;
}
.home-hub-detail .detail-tabs {
  position: absolute;
  top: 3px;
  right: 4px;
  z-index: 5;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  border-color: rgba(135, 148, 170, .18);
  background: rgba(6, 10, 16, .72);
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 12px 28px rgba(0,0,0,.30);
}
.home-hub-detail .tab {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(168, 178, 194, .88);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.home-hub-detail .tab.active {
  color: #eafff2;
  background: linear-gradient(180deg, rgba(45, 198, 112, .42), rgba(15, 107, 55, .42));
  box-shadow: inset 0 1px rgba(255,255,255,.14), 0 0 20px rgba(39, 202, 110, .16);
}
.push-surface {
  display: grid;
  gap: 18px;
  padding: clamp(16px, 2vw, 26px);
  border-radius: 34px;
  border: 1px solid rgba(71, 86, 112, .24);
  background:
    radial-gradient(circle at 28% 0%, rgba(37, 211, 102, .09), transparent 28%),
    radial-gradient(circle at 76% 10%, rgba(71, 86, 112, .16), transparent 24%),
    linear-gradient(180deg, #070b11, #030507 72%);
  box-shadow: 0 28px 76px rgba(0,0,0,.44), inset 0 1px rgba(255,255,255,.04);
}
.push-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 0 4px;
}
.push-eyebrow {
  margin: 0 0 4px;
  color: rgba(145, 160, 184, .78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Straightforward House Agent layout: action first, instructions second */
.simple-agent-detail {
  width: min(1080px, calc(100vw - 60px));
  margin: 0 auto;
  gap: 18px;
}
.simple-agent-detail .back-to-boards {
  justify-self: start;
}
.agent-hero,
.agent-call-card,
.agent-help-card {
  border: 1px solid rgba(232, 238, 247, .12);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, .055), transparent 42%),
    rgba(10, 16, 28, .72);
  box-shadow: 0 18px 44px rgba(0,0,0,.20), inset 0 1px rgba(255,255,255,.04);
}
.agent-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 22px 24px;
}
.agent-hero h2 {
  margin: 0;
  color: rgba(248, 250, 252, .98);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: .98;
  letter-spacing: -.045em;
}
.agent-hero p:not(.eyebrow) {
  max-width: 62ch;
  margin: 8px 0 0;
  color: rgba(203, 213, 225, .80);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.45;
}
.agent-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: rgba(226, 252, 239, .95);
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(74, 222, 128, .28);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .02em;
  white-space: nowrap;
}
.agent-status-pill.needs-setup {
  color: rgba(254, 240, 138, .96);
  background: rgba(245, 158, 11, .13);
  border-color: rgba(245, 158, 11, .28);
}
.agent-use-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(280px, .92fr);
  gap: 18px;
  align-items: start;
}
.agent-call-card,
.agent-help-card {
  padding: 22px;
}
.agent-call-card {
  display: grid;
  gap: 18px;
}
.agent-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.agent-step {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #04111c;
  background: #67e8f9;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(34, 211, 238, .20);
}
.agent-card-head h3 {
  margin: 2px 0 0;
  color: rgba(248, 250, 252, .96);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.agent-call-card .avatar-widget-mount {
  min-height: 190px;
  padding: 18px;
  place-items: center;
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 62%, rgba(34, 211, 238, .12), transparent 30%),
    rgba(3, 7, 18, .58);
}
.agent-call-card .avatar-widget-mount elevenlabs-convai {
  width: min(100%, 430px) !important;
}
.agent-help-card {
  display: grid;
  gap: 16px;
}
.agent-prompt-list {
  display: grid;
  gap: 10px;
}
.agent-prompt-list button {
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(232, 238, 247, .12);
  color: rgba(226, 232, 240, .86);
  background: rgba(232, 238, 247, .055);
  box-shadow: none;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
  opacity: 1;
}
.agent-note {
  margin: 0;
  padding-top: 2px;
  color: rgba(148, 163, 184, .86);
  font-size: 13px;
  line-height: 1.45;
}
@media (max-width: 860px) {
  .simple-agent-detail {
    width: min(100%, calc(100vw - 28px));
  }
  .agent-hero,
  .agent-use-layout {
    grid-template-columns: 1fr;
  }
  .agent-status-pill {
    justify-self: start;
  }
}

/* Rebuilt compact Home Hub status-board landing styles */
html[data-view="landing"] #addOpenBtn,
html[data-view="landing"] #saveStatus,
html[data-view="avatar-agent"] #addOpenBtn,
html[data-view="avatar-agent"] #saveStatus,
html[data-view="cozyla"] #addOpenBtn,
html[data-view="cozyla"] #saveStatus {
  display: none !important;
}
.status-board,
.status-board * {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}
.status-board {
  display: grid;
  gap: 16px;
  color: rgba(244, 247, 251, .95);
}
.dense-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
  padding: 0 2px 8px;
  border-bottom: 1px solid rgba(232, 238, 247, .12);
}
.dense-home-header .status-kicker,
.status-kicker {
  margin: 0;
  color: rgba(166, 176, 191, .78);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.home-header-signals {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  color: rgba(166,176,191,.72);
  font-size: 11.5px;
}
.home-header-signals span {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(232,238,247,.10);
  background: rgba(232,238,247,.035);
}
.status-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(232, 238, 247, .10);
  border-radius: 16px;
  background: rgba(13, 19, 32, .58);
  overflow: hidden;
}
.strip-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(86px, .4fr) minmax(0, .75fr) minmax(0, .65fr);
  gap: 12px;
  align-items: baseline;
  min-height: 40px;
  padding: 10px 14px;
  border: 0;
  border-right: 1px solid rgba(232, 238, 247, .09);
  border-radius: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  text-align: left;
}
.strip-item:last-child { border-right: 0; }
.strip-item::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: rgba(123, 231, 195, .62);
}
.strip-item span {
  padding-top: 7px;
  color: rgba(166, 176, 191, .78);
  font-size: 9.5px;
  font-weight: 820;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.strip-item strong {
  overflow: hidden;
  color: rgba(244, 247, 251, .94);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.strip-item small {
  overflow: hidden;
  color: rgba(166, 176, 191, .70);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-body {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(300px, .82fr);
  gap: 24px;
  align-items: start;
  padding: 2px 0 0;
}
.status-main-column,
.status-side-column {
  min-width: 0;
  position: relative;
  border-radius: 20px;
}
.status-main-stack,
.status-side-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
  align-items: start;
}
.status-main-column {
  padding: 18px 20px 16px;
  border: 1px solid rgba(248, 215, 122, .13);
  background: linear-gradient(135deg, rgba(248,215,122,.055), transparent 36%), rgba(14,18,30,.42);
  box-shadow: 0 18px 48px rgba(0,0,0,.18), inset 3px 0 0 rgba(248,215,122,.30);
}
.status-side-column {
  padding: 18px 20px 16px;
  border: 1px solid rgba(232, 238, 247, .11);
  background: rgba(9,15,27,.52);
  box-shadow: inset 3px 0 0 rgba(139,182,255,.16);
}
.status-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(232, 238, 247, .14);
}
.status-section-head h3 {
  margin: 0;
  color: rgba(248,250,253,.98);
  font-size: clamp(18px, 1.8vw, 25px);
  font-weight: 810;
  line-height: .98;
  letter-spacing: -.035em;
}
.status-main-column .status-section-head h3 {
  font-size: clamp(22px, 2.2vw, 30px);
}
.status-main-column .status-kicker { color: rgba(248,215,122,.84); }
.text-link {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  color: rgba(190,199,214,.82);
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 760;
}
.section-add-button {
  border-radius: 999px;
  color: rgba(226, 232, 240, .88);
  background: rgba(232, 238, 247, .055);
  border: 1px solid rgba(232, 238, 247, .09);
}
.section-add-button:hover,
.section-add-button:focus-visible {
  color: #fff;
  background: rgba(248, 215, 122, .12);
  border-color: rgba(248, 215, 122, .28);
}
.section-card-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 14px 8px;
}
.priority-list { display: grid; gap: 5px; }
.landing-notes-section {
  padding: 16px 20px 15px;
}
.notes-pane {
  background: linear-gradient(135deg, rgba(190,199,214,.045), transparent 34%), rgba(12,17,29,.46);
  box-shadow: 0 16px 42px rgba(0,0,0,.14), inset 3px 0 0 rgba(190,199,214,.22);
}
.notes-head {
  margin-bottom: 8px;
  padding-bottom: 8px;
}
.status-main-column .notes-head h3 {
  font-size: clamp(17px, 1.55vw, 22px);
  letter-spacing: -.025em;
}
.notes-list {
  display: grid;
  gap: 5px;
}
.note-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(232,238,247,.075);
  border-radius: 12px;
  color: rgba(232,238,247,.88);
  background: rgba(8,13,24,.38);
  box-shadow: none;
  text-align: left;
}
.note-row:hover,
.note-row:focus-visible { transform: none; background: rgba(232,238,247,.052); }
.note-marker {
  width: 3px;
  height: 18px;
  justify-self: center;
  border-radius: 999px;
  background: rgba(190,199,214,.54);
}
.note-row span:last-child {
  overflow: hidden;
  color: rgba(222,228,238,.88);
  font-size: clamp(12.5px, 1vw, 14px);
  font-weight: 640;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notes-empty {
  margin: 0;
  padding: 4px 2px 0;
  color: rgba(155,165,181,.72);
  font-size: 12.25px;
}
.todo-pane {
  box-shadow: inset 3px 0 0 rgba(139,182,255,.16);
}
.birthdays-pane {
  box-shadow: inset 3px 0 0 rgba(244, 114, 182, .18);
}
.birthdays-agenda {
  padding-bottom: 4px;
}
.birthday-empty {
  margin: 0;
  padding: 6px 0 0;
  color: rgba(155,165,181,.72);
  font-size: 12.25px;
}
.todo-agenda {
  padding-bottom: 4px;
}
.todo-empty {
  margin: 0;
  padding: 6px 0 0;
  color: rgba(155,165,181,.72);
  font-size: 12.25px;
}
.priority-row,
.upcoming-task-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid rgba(232,238,247,.075);
  border-radius: 12px;
  color: rgba(232,238,247,.92);
  background: rgba(8,13,24,.46);
  box-shadow: none;
  text-align: left;
}
.priority-row:hover,
.priority-row:focus-visible { transform: none; background: rgba(232,238,247,.055); }
.priority-row[data-priority-drag="1"] { cursor: grab; }
.priority-row.dragging { opacity: .55; cursor: grabbing; }
.priority-row.priority-drop-target {
  border-color: rgba(248,215,122,.45);
  box-shadow: inset 3px 0 0 rgba(248,215,122,.32);
  background: rgba(248,215,122,.06);
}
.priority-marker,
.upcoming-task-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 14px currentColor;
}
.priority-copy,
.upcoming-task-row .priority-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.priority-row h3,
.upcoming-task-row h3 {
  margin: 0;
  overflow: hidden;
  color: rgba(232,238,247,.92);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 680;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.priority-row span,
.upcoming-task-row span {
  overflow: hidden;
  color: rgba(171,181,197,.78);
  font-size: 10.5px;
  font-weight: 660;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upcoming-task-row.due-soon .priority-marker,
.upcoming-task-row.due-soon .upcoming-task-dot { background: #f59e0b; }
.upcoming-task-row.past-due .priority-marker,
.upcoming-task-row.past-due .upcoming-task-dot { background: #ef4444; }
.calendar-agenda { padding-bottom: 4px; }
.grocery-agenda {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  cursor: pointer;
}
.grocery-agenda .section-add-button {
  cursor: pointer;
}
.grocery-pane {
  box-shadow: inset 3px 0 0 rgba(248,215,122,.18);
}
.grocery-agenda .status-kicker { color: rgba(248,215,122,.78); }
.grocery-head-actions,
.priority-head-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.grocery-list .agenda-item:last-child { border-bottom: 0; }
.calendar-item span,
.todo-item span,
.grocery-item span,
.birthday-item span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.calendar-item span i,
.todo-item span i,
.grocery-item span i,
.birthday-item span i {
  width: 3px;
  height: 18px;
  flex: 0 0 3px;
  border: 0;
  border-radius: 999px;
  background: rgba(139,182,255,.52);
}
.todo-item span i {
  background: rgba(139,182,255,.58);
}
.grocery-item span i {
  background: rgba(248,215,122,.62);
}
.birthday-item span i {
  background: rgba(244, 114, 182, .68);
}
.birthday-item {
  cursor: default;
}
.birthday-item small {
  max-width: 190px;
}
.grocery-item:hover span i,
.grocery-item:focus-visible span i {
  background: rgba(248,215,122,.86);
}
.birthday-item:hover span i,
.birthday-item:focus-visible span i {
  background: rgba(244, 114, 182, .86);
}
.grocery-placeholder span { color: rgba(232,238,247,.72); }
.agenda-head { align-items: end; }
.agenda-list {
  display: grid;
  border-top: 0;
}
.agenda-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 32px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid rgba(232,238,247,.09);
  border-radius: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  text-align: left;
}
.agenda-item:hover,
.agenda-item:focus-visible { transform: none; background: rgba(232,238,247,.035); }
.agenda-item span {
  overflow: hidden;
  color: rgba(222,228,238,.86);
  font-size: 12.25px;
  font-weight: 610;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agenda-item small {
  overflow: hidden;
  max-width: 150px;
  color: rgba(155,165,181,.72);
  font-size: 11.25px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weekend-line {
  margin: 10px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(248,215,122,.22);
  border-radius: 10px;
  color: rgba(203,213,225,.78);
  background: rgba(248,215,122,.07);
  font-size: 11.5px;
}
.weekend-line strong { color: rgba(248,215,122,.94); }
.module-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)) minmax(72px, .65fr);
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid rgba(232,238,247,.12);
  border-radius: 16px;
  background: rgba(6,11,20,.62);
  box-shadow: 0 16px 36px rgba(0,0,0,.18);
}
.rail-item {
  display: grid;
  gap: 2px;
  min-height: 34px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  text-align: left;
}
.rail-item:hover,
.rail-item:focus-visible { transform: none; color: #fff; }
.rail-item strong {
  color: rgba(239,243,249,.86);
  font-size: 13px;
  font-weight: 720;
}
.rail-item small {
  color: rgba(155,165,181,.72);
  font-size: 11px;
}
.rail-item.quiet-rail { opacity: .58; justify-self: end; }
@media (max-width: 900px) {
  .status-body { grid-template-columns: 1fr; }
  .module-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}



/* Unified household stream: maintenance items appear inside Household with status-driven urgency */
.upcoming-task-row.maintenance-source,
.home-full-task-row.maintenance-source {
  border-style: dashed;
}
.upcoming-task-row.maintenance-source .priority-copy span,
.home-full-task-row.maintenance-source .home-full-task-copy small {
  color: color-mix(in srgb, var(--task-status-color, #d6bc72) 56%, rgba(232, 238, 247, .72));
}
.maintenance-household-section {
  border-style: dashed;
}
.maintenance-household-section .status-kicker::after {
  content: ' source';
  color: rgba(148, 163, 184, .68);
  font-size: .82em;
  letter-spacing: .12em;
}
.maintenance-household-section .home-full-section-head h3 {
  color: rgba(242, 246, 255, .94);
}


/* Home full page chrome cleanup */
html[data-view="home"] #addOpenBtn,
html[data-view="home"] #saveStatus {
  display: none !important;
}


/* Full Household page hard reset: dense dashboard-style list, not pill chips */
html[data-view="home"] .home-hub-detail {
  width: min(1120px, calc(100vw - 64px));
  margin: 0 auto;
}
html[data-view="home"] .home-hub-detail,
html[data-view="home"] .home-hub-detail * {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif !important;
}
html[data-view="home"] .home-hub-detail .detail-hero {
  min-height: 48px;
  margin: 0 0 14px;
  padding: 0 0 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(232, 238, 247, .11);
}
html[data-view="home"] .home-hub-detail .back-to-boards {
  width: 38px;
  min-height: 38px;
  border-radius: 999px;
  background: rgba(13, 19, 31, .78);
  border: 1px solid rgba(159, 173, 196, .18);
  box-shadow: none;
}

html[data-view="home"] .home-hub-detail .detail-hero h2 {
  font-size: 22px;
  font-weight: 780;
  letter-spacing: -.025em;
}
html[data-view="home"] .home-hub-detail .detail-tabs {
  position: static;
  justify-self: end;
  padding: 3px;
  gap: 4px;
  border-radius: 999px;
}
html[data-view="home"] .home-hub-detail .tab {
  min-height: 30px;
  padding: 0 12px;
  font-size: 11px;
  letter-spacing: .1em;
}
html[data-view="home"] .home-full-board {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(232, 238, 247, .10);
  background: rgba(8, 13, 24, .48);
  box-shadow: inset 3px 0 0 rgba(248, 215, 122, .24);
}
html[data-view="home"] .home-full-board-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(232, 238, 247, .12);
}
html[data-view="home"] .home-full-board-head .status-kicker {
  margin: 0 0 3px;
  color: rgba(248, 215, 122, .80);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
html[data-view="home"] .home-full-board-head h3 {
  margin: 0;
  color: rgba(248, 250, 253, .96);
  font-size: 20px;
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -.025em;
}
html[data-view="home"] .home-full-counts {
  color: rgba(171,181,197,.74);
  font-size: 12px;
  white-space: nowrap;
}
html[data-view="home"] .home-full-counts span {
  color: rgba(239,243,249,.9);
  font-weight: 720;
}
html[data-view="home"] .home-full-section {
  display: grid;
  gap: 6px;
  padding: 10px 0 0;
  border: 0 !important;
  border-top: 1px solid rgba(232, 238, 247, .075) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}
html[data-view="home"] .home-full-section:first-of-type {
  border-top: 0 !important;
  padding-top: 2px;
}
html[data-view="home"] .home-drop-bucket.drag-over {
  border-top-color: rgba(248, 215, 122, .40) !important;
  background: rgba(248, 215, 122, .035) !important;
}
html[data-view="home"] .home-full-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 2px;
  padding: 0;
  border: 0;
}
html[data-view="home"] .home-full-section-head .status-kicker {
  margin: 0 0 2px;
  color: rgba(148, 163, 184, .70);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
html[data-view="home"] .home-full-section-head h3 {
  margin: 0;
  color: rgba(239, 243, 249, .92);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -.01em;
}
html[data-view="home"] .home-full-section-count {
  color: rgba(171,181,197,.66);
  font-size: 11px;
  font-weight: 700;
}
html[data-view="home"] .home-full-items {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 5px !important;
  align-items: stretch;
}
html[data-view="home"] .home-full-task-row {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  align-items: center;
  gap: 9px;
  width: 100% !important;
  min-height: 38px !important;
  max-width: none !important;
  padding: 7px 10px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(232, 238, 247, .075) !important;
  border-left: 3px solid var(--task-status-color, #22c55e) !important;
  color: rgba(232, 238, 247, .92);
  background: rgba(8, 13, 24, .44) !important;
  box-shadow: none !important;
  text-align: left;
  transform: none !important;
}
html[data-view="home"] .home-full-task-row:hover,
html[data-view="home"] .home-full-task-row:focus-visible {
  background: rgba(232, 238, 247, .055) !important;
}
html[data-view="home"] .home-full-task-row.maintenance-source {
  border-style: solid !important;
  border-left-style: solid !important;
}
html[data-view="home"] .home-full-task-row .upcoming-task-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--task-status-color, #22c55e) !important;
  box-shadow: 0 0 12px var(--task-status-color, #22c55e);
}
html[data-view="home"] .home-full-task-copy {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
html[data-view="home"] .home-full-task-copy strong {
  overflow: hidden;
  color: rgba(232, 238, 247, .92);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-view="home"] .home-full-task-copy small {
  overflow: hidden;
  color: color-mix(in srgb, var(--task-status-color, #22c55e) 46%, rgba(171,181,197,.78));
  font-size: 11px;
  font-weight: 600;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-view="home"] .maintenance-household-section .status-kicker::after {
  content: '';
}
@media (max-width: 760px) {
  html[data-view="home"] .home-hub-detail { width: min(100%, calc(100vw - 24px)); }
  html[data-view="home"] .home-hub-detail .detail-hero { grid-template-columns: auto minmax(0, 1fr); }
  html[data-view="home"] .home-hub-detail .detail-tabs { grid-column: 1 / -1; justify-self: start; }
  html[data-view="home"] .home-full-task-copy { display: grid; gap: 1px; }
}


/* Full Household page: match dashboard priority-list styling */
html[data-view="home"] .home-hub-detail {
  width: min(1180px, calc(100vw - 64px));
}
html[data-view="home"] .home-full-board {
  gap: 10px;
  padding: 18px 20px 16px;
  border: 1px solid rgba(248, 215, 122, .13);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(248,215,122,.055), transparent 36%), rgba(14,18,30,.42);
  box-shadow: 0 18px 48px rgba(0,0,0,.18), inset 3px 0 0 rgba(248,215,122,.30);
}
html[data-view="home"] .home-full-board-head {
  margin-bottom: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(232, 238, 247, .14);
}
html[data-view="home"] .home-full-board-head .status-kicker {
  color: rgba(248,215,122,.84);
  font-size: 10px;
  letter-spacing: .18em;
}
html[data-view="home"] .home-full-board-head h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 810;
  line-height: .98;
  letter-spacing: -.035em;
}
html[data-view="home"] .home-full-counts {
  align-self: end;
  padding-bottom: 2px;
  color: rgba(171,181,197,.78);
  font-size: 11.5px;
  font-weight: 650;
}
html[data-view="home"] .home-full-section {
  gap: 5px;
  padding-top: 10px;
}
html[data-view="home"] .home-full-section:first-of-type {
  padding-top: 0;
}
html[data-view="home"] .home-full-section-head {
  margin: 0 0 4px;
  padding: 0;
}
html[data-view="home"] .home-full-section-head .status-kicker {
  color: rgba(148, 163, 184, .72);
  font-size: 9.5px;
  letter-spacing: .18em;
}
html[data-view="home"] .home-full-section-head h3 {
  color: rgba(248,250,253,.94);
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 760;
  letter-spacing: -.02em;
}
html[data-view="home"] .home-full-section-count {
  color: rgba(171,181,197,.72);
  font-size: 11px;
  font-weight: 700;
}
html[data-view="home"] .home-full-items {
  gap: 5px !important;
}
html[data-view="home"] .home-full-task-row {
  grid-template-columns: 22px minmax(0, 1fr) !important;
  gap: 10px;
  min-height: 40px !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(232,238,247,.075) !important;
  border-left: 1px solid rgba(232,238,247,.075) !important;
  border-radius: 12px !important;
  background: rgba(8,13,24,.46) !important;
}
html[data-view="home"] .home-full-task-row:hover,
html[data-view="home"] .home-full-task-row:focus-visible {
  background: rgba(232,238,247,.055) !important;
}
html[data-view="home"] .home-full-task-row .upcoming-task-dot {
  width: 7px;
  height: 7px;
  justify-self: center;
  background: var(--task-status-color, #22c55e) !important;
  box-shadow: 0 0 14px var(--task-status-color, #22c55e);
}
html[data-view="home"] .home-full-task-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}
html[data-view="home"] .home-full-task-copy strong {
  margin: 0;
  overflow: hidden;
  color: rgba(232,238,247,.92);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 680;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-view="home"] .home-full-task-copy small {
  overflow: hidden;
  color: rgba(171,181,197,.78);
  font-size: 10.5px;
  font-weight: 660;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-view="home"] .home-full-task-row.maintenance-source .home-full-task-copy small {
  color: color-mix(in srgb, var(--task-status-color, #22c55e) 52%, rgba(171,181,197,.78));
}
html[data-view="home"] .home-drop-bucket.drag-over {
  background: rgba(248,215,122,.05) !important;
  box-shadow: inset 3px 0 0 rgba(248,215,122,.28) !important;
}

/* Dense, app-consistent Devices page */
html[data-view="devices"] #addOpenBtn,
html[data-view="devices"] #saveStatus {
  display: none !important;
}
.devices-detail {
  width: min(1220px, calc(100vw - 60px));
  margin: 0 auto;
  gap: 14px;
}
.devices-detail .devices-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(9, 15, 27, .62);
  border-color: rgba(232, 238, 247, .12);
  box-shadow: 0 16px 38px rgba(0,0,0,.18), inset 3px 0 0 rgba(123,231,195,.28);
}
.devices-detail .devices-hero::after { display: none; }
.devices-detail .devices-hero .back-to-boards {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(232,238,247,.9);
  background: rgba(232,238,247,.065);
}
.devices-detail .devices-hero h2 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1;
  letter-spacing: -.045em;
}
.devices-detail .devices-hero p:not(.board-kicker) {
  margin: 5px 0 0;
  color: rgba(166,176,191,.82);
  font-size: 13px;
  line-height: 1.3;
}
.devices-hero-refresh {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(203,213,225,.86);
  background: rgba(232,238,247,.055);
}
.devices-detail .smart-home-panel {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
  border-radius: 20px;
  border: 1px solid rgba(232,238,247,.11);
  background: rgba(7, 12, 22, .56);
  box-shadow: 0 18px 48px rgba(0,0,0,.20);
}
.devices-detail .smart-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(232,238,247,.10);
}
.devices-detail .smart-panel-head h3 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 760;
  letter-spacing: -.035em;
}
.devices-detail .smart-panel-head .smart-refresh { display: none; }
.devices-detail .smart-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.devices-detail .smart-summary-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(232,238,247,.09);
  background: rgba(15, 23, 42, .54);
  box-shadow: none;
}
.devices-detail .smart-summary-card strong {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -.03em;
}
.devices-detail .smart-summary-card span {
  overflow: hidden;
  color: rgba(166,176,191,.78);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.devices-detail .smart-attention {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(248, 215, 122, .18);
  background: rgba(248, 215, 122, .055);
}
.devices-detail .smart-attention span {
  color: rgba(248,215,122,.92);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.devices-detail .smart-attention p {
  margin: 0;
  overflow: hidden;
  color: rgba(203,213,225,.78);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.devices-detail .smart-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 12px;
  align-items: start;
}
.devices-detail .smart-section {
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(232,238,247,.09);
  background: rgba(8, 13, 24, .52);
}
.devices-detail .smart-section.cameras { grid-column: 1 / -1; }
.devices-detail .section-label-row {
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(232,238,247,.09);
}
.devices-detail .section-label-row h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: -.01em;
}
.devices-detail .section-label-row span {
  color: rgba(166,176,191,.70);
  font-size: 11px;
}
.devices-detail .light-area-grid,
.devices-detail .smart-device-list,
.devices-detail .camera-health-grid { gap: 7px; }
.devices-detail .light-area-card,
.devices-detail .smart-device-row,
.devices-detail .camera-health-card {
  border-radius: 12px;
  border-color: rgba(232,238,247,.075);
  background: rgba(15, 23, 42, .48);
  box-shadow: none;
}
.devices-detail .light-area-card {
  padding: 10px 12px;
}
.devices-detail .light-area-card > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 7px;
}
.devices-detail .light-area-card strong,
.devices-detail .camera-health-card strong {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 720;
}
.devices-detail .light-area-card span,
.devices-detail .smart-device-row span { font-size: 11.5px; }
.devices-detail .light-pills { gap: 5px; }
.devices-detail .device-pill,
.devices-detail .state-chip,
.devices-detail .camera-chips span {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 650;
}
.devices-detail .smart-device-row {
  min-height: 44px;
  padding: 8px 10px;
}
.devices-detail .camera-health-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.devices-detail .camera-health-card {
  grid-template-rows: auto 1fr;
  gap: 8px;
  padding: 10px;
  border-color: rgba(232,238,247,.08);
}
.devices-detail .camera-health-card.unavailable {
  color: inherit;
  border-color: rgba(255, 143, 154, .20);
  background: rgba(255, 143, 154, .035);
}
.devices-detail .camera-thumb-button {
  min-height: 92px;
  aspect-ratio: 16 / 7;
  border-radius: 10px;
}
.devices-detail .camera-health-body {
  display: grid;
  gap: 7px;
  padding: 0;
}
.devices-detail .camera-chips { gap: 5px; }
.devices-detail .camera-open {
  justify-self: start;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
}
@media (max-width: 900px) {
  .devices-detail { width: min(100%, calc(100vw - 28px)); }
  .devices-detail .devices-hero,
  .devices-detail .smart-section-grid { grid-template-columns: 1fr; }
  .devices-detail .smart-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Devices density tune: don't stretch short side panels */
.devices-detail .smart-section-grid {
  align-items: start !important;
}
.devices-detail .smart-section {
  align-self: start;
}
.devices-detail .smart-section:not(.cameras) {
  height: auto;
  min-height: 0;
}
.devices-detail .smart-section:has(.smart-device-list) {
  grid-column: 2;
  grid-row: 1;
}


/* Full Household: no floating section count numerals */
html[data-view="home"] .home-full-section-head > span {
  display: none !important;
}

/* Devices density tune 2: avoid a dead right column by stacking control sections */
.devices-detail .smart-section-grid {
  grid-template-columns: 1fr !important;
}
.devices-detail .smart-section:has(.smart-device-list) {
  grid-column: auto !important;
  grid-row: auto !important;
}
.devices-detail .smart-section.cameras {
  grid-column: auto !important;
}


/* Full Household controls: quiet premium utility, no glossy amateur buttons */
html[data-view="home"] .home-hub-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 22px;
  padding: 0;
}
html[data-view="home"] .home-hub-detail .detail-hero {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(232,238,247,.10);
}
html[data-view="home"] .home-hub-detail .back-to-boards {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  min-width: 0;
  min-height: 30px;
  margin: 0;
  padding: 0 3px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(171,181,197,.78);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .02em;
  text-transform: none;
}

html[data-view="home"] .home-hub-detail .back-to-boards:hover,
html[data-view="home"] .home-hub-detail .back-to-boards:focus-visible {
  color: rgba(248,250,252,.94);
  background: transparent;
  transform: none;
  text-decoration: none;
}
html[data-view="home"] .home-hub-detail .detail-hero h2 {
  position: relative;
  margin: 0;
  padding-left: 14px;
  color: rgba(242,246,252,.88);
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 760;
  letter-spacing: -.028em;
}
html[data-view="home"] .home-hub-detail .detail-hero h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 12%;
  width: 1px;
  background: rgba(232,238,247,.16);
}
html[data-view="home"] .home-hub-detail .detail-tabs {
  grid-column: 2;
  position: static;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 10px;
  border: 1px solid rgba(135,148,170,.14);
  background: rgba(8,13,24,.42);
  box-shadow: none;
}
html[data-view="home"] .home-hub-detail .tab {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  color: rgba(171,181,197,.80);
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  font-weight: 730;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[data-view="home"] .home-hub-detail .tab:hover,
html[data-view="home"] .home-hub-detail .tab:focus-visible {
  color: rgba(248,250,252,.92);
  background: rgba(232,238,247,.06);
}
html[data-view="home"] .home-hub-detail .tab.active {
  color: rgba(235,255,242,.95);
  background: rgba(34,197,94,.14);
  box-shadow: inset 0 0 0 1px rgba(34,197,94,.18);
}
html[data-view="home"] .home-full-board {
  grid-column: 1 / -1;
}

/* Home Tasks density + hierarchy pass: headers read as headers; rows read as rows. */
html[data-view="home"] .home-full-board {
  gap: 7px !important;
  padding: 12px 14px 14px !important;
  border-radius: 16px !important;
}
html[data-view="home"] .home-full-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 3px;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(232,238,247,.16);
}
html[data-view="home"] .home-full-topbar .status-kicker {
  margin: 0 0 3px;
  color: rgba(248,215,122,.82);
  font-size: 10px;
  font-weight: 840;
  line-height: 1;
  letter-spacing: .19em;
  text-transform: uppercase;
}
html[data-view="home"] .home-full-topbar h3 {
  margin: 0;
  color: rgba(250,252,255,.98);
  font-size: clamp(19px, 1.45vw, 23px);
  font-weight: 840;
  line-height: 1;
  letter-spacing: -.035em;
}
html[data-view="home"] .home-full-counts {
  padding-bottom: 1px;
  color: rgba(161,172,190,.78);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -.005em;
}
html[data-view="home"] .home-full-sections {
  display: grid;
  gap: 18px;
}
html[data-view="home"] .home-full-section {
  gap: 6px !important;
  padding-top: 18px !important;
  border-top-color: rgba(232,238,247,.16) !important;
}
html[data-view="home"] .home-full-section:first-of-type {
  padding-top: 0 !important;
  border-top: 0 !important;
}
html[data-view="home"] .home-full-section-head {
  margin: 0 0 7px !important;
}
html[data-view="home"] .home-full-section-head .status-kicker {
  display: none !important;
}
html[data-view="home"] .home-full-section-head h3 {
  color: rgba(239,244,252,.94) !important;
  font-size: 14px !important;
  font-weight: 760 !important;
  line-height: 1.05 !important;
  letter-spacing: -.016em !important;
}
html[data-view="home"] .home-full-list {
  display: grid;
  gap: 3px;
}
html[data-view="home"] .home-full-task-row {
  grid-template-columns: 18px minmax(0, 1fr) !important;
  gap: 8px !important;
  min-height: 33px !important;
  padding: 5px 8px !important;
  border-radius: 9px !important;
  background: rgba(7,12,22,.50) !important;
}
html[data-view="home"] .home-full-task-row .upcoming-task-dot {
  width: 6px !important;
  height: 6px !important;
  box-shadow: 0 0 11px var(--task-status-color, #22c55e) !important;
}
html[data-view="home"] .home-full-task-copy {
  gap: 0 !important;
}
html[data-view="home"] .home-full-task-copy strong {
  color: rgba(230,236,247,.90) !important;
  font-size: 12.5px !important;
  font-weight: 640 !important;
  line-height: 1.05 !important;
}
html[data-view="home"] .home-full-task-copy small {
  color: rgba(153,164,183,.72) !important;
  font-size: 9.75px !important;
  font-weight: 620 !important;
  line-height: 1.05 !important;
}
@media (max-width: 720px) {
  html[data-view="home"] .home-hub-detail {
    grid-template-columns: 1fr;
  }
  html[data-view="home"] .home-hub-detail .detail-tabs {
    grid-column: 1;
    justify-self: start;
    margin-top: -6px;
  }
}


/* Full Household tabs: text rail instead of pill buttons */
html[data-view="home"] .home-hub-detail .detail-tabs {
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-view="home"] .home-hub-detail .tab {
  position: relative;
  min-height: 30px;
  padding: 0 0 5px;
  border-radius: 0;
  color: rgba(171,181,197,.72);
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .10em;
}
html[data-view="home"] .home-hub-detail .tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: transparent;
}
html[data-view="home"] .home-hub-detail .tab:hover,
html[data-view="home"] .home-hub-detail .tab:focus-visible {
  color: rgba(248,250,252,.92);
  background: transparent;
}
html[data-view="home"] .home-hub-detail .tab.active {
  color: rgba(238,255,244,.94);
  background: transparent;
  box-shadow: none;
}
html[data-view="home"] .home-hub-detail .tab.active::after {
  background: linear-gradient(90deg, rgba(34,197,94,.26), rgba(34,197,94,.72), rgba(34,197,94,.26));
}

/* Cozyla command feedback: keep status visible on the control page */
html[data-view="cozyla"] #saveStatus {
  display: block !important;
}
html[data-view="cozyla"] .masthead-actions {
  justify-content: flex-end;
}

/* Landing dashboard quick add: compact top-right affordance */
html[data-view="landing"] #addOpenBtn {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  top: max(18px, env(safe-area-inset-top));
  z-index: 20;
  display: inline-grid !important;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(248, 215, 122, .22);
  border-radius: 999px;
  color: rgba(248, 250, 252, .84);
  background: rgba(8, 13, 24, .72);
  box-shadow: 0 12px 30px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.05);
  backdrop-filter: blur(12px) saturate(1.1);
  font-size: 0;
  font-weight: 760;
  opacity: .74;
}
html[data-view="landing"] #addOpenBtn:hover,
html[data-view="landing"] #addOpenBtn:focus-visible {
  opacity: 1;
  color: #fff;
  border-color: rgba(248, 215, 122, .44);
  background: rgba(14, 20, 33, .88);
  transform: translateY(-1px);
}

/* Landing task detail: row clicks open an overlay, never inline in the dashboard flow */
.task-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}

.hub-sections.view-enter:has(.task-panel) {
  transform: none;
  animation: none;
}

.task-panel-backdrop {
  position: absolute;
  inset: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  appearance: none;
  background: #02060f;
  backdrop-filter: none;
  cursor: default;
  pointer-events: auto;
}

.task-panel-card {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  width: min(720px, calc(100vw - 48px));
  max-height: min(82vh, 760px);
  padding: 24px;
  overflow: auto;
  color: var(--text);
  background: linear-gradient(180deg, rgba(13, 20, 33, .98), rgba(8, 13, 24, .98));
  border: 1px solid rgba(232, 238, 247, .14);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .46), inset 0 1px rgba(255, 255, 255, .05);
}

.task-panel-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.task-panel-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
}

.task-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 650;
}

.task-edit-field {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  color: rgba(232, 238, 247, .88);
  font-weight: 700;
}

.task-edit-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 92px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(3, 8, 17, .62);
  border: 1px solid rgba(232, 238, 247, .16);
  border-radius: 16px;
  font: inherit;
}

.task-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.task-panel-actions .primary,
.task-panel-actions .quiet,
.task-panel-actions select {
  min-height: 38px;
}

.task-complete-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  color: rgba(232, 238, 247, .9);
  background: rgba(232, 238, 247, .06);
  border: 1px solid rgba(232, 238, 247, .16);
  border-radius: 999px;
  font-weight: 760;
  cursor: pointer;
}

.task-complete-check input {
  width: 18px;
  height: 18px;
  accent-color: #22c55e;
}

@media (max-width: 760px) {
  .task-panel {
    padding: 12px;
  }

  .task-panel-card {
    width: min(100%, calc(100vw - 24px));
    max-height: min(86vh, 680px);
    border-radius: 22px;
  }
}


/* House Agent: center ElevenLabs call widget inside Step 1 pane */
.agent-call-card .avatar-widget-mount {
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  justify-content: center !important;
  min-height: clamp(240px, 32vh, 340px);
}
.agent-call-card .avatar-widget-mount elevenlabs-convai {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: block !important;
  justify-self: center !important;
  align-self: center !important;
  margin: auto !important;
  width: min(560px, 100%) !important;
  max-width: 560px !important;
  min-height: 190px !important;
  height: auto !important;
}


/* House Agent detail: compact, consistent page rhythm */
html[data-view="avatar-agent"] .browse {
  margin-top: 0;
}
html[data-view="avatar-agent"] .simple-agent-detail {
  width: min(1180px, calc(100vw - 64px));
  display: grid;
  gap: 12px;
}
html[data-view="avatar-agent"] .simple-agent-detail .back-to-boards {
  min-height: 0;
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(171,181,197,.86);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0;
}
html[data-view="avatar-agent"] .simple-agent-detail .back-to-boards:hover,
html[data-view="avatar-agent"] .simple-agent-detail .back-to-boards:focus-visible {
  color: rgba(248,250,253,.96);
  background: transparent;
  transform: none;
}
html[data-view="avatar-agent"] .agent-hero {
  align-items: center;
  gap: 12px;
  padding: 0 0 13px;
  border: 0;
  border-bottom: 1px solid rgba(232,238,247,.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-view="avatar-agent"] .agent-hero .eyebrow,
html[data-view="avatar-agent"] .agent-card-head .eyebrow {
  margin: 0 0 4px;
  color: rgba(103,232,249,.70);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .16em;
  line-height: 1.1;
}
html[data-view="avatar-agent"] .agent-hero h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 830;
  line-height: 1;
}
html[data-view="avatar-agent"] .agent-hero p:not(.eyebrow) {
  margin-top: 4px;
  max-width: 44rem;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.35;
}
html[data-view="avatar-agent"] .agent-status-pill {
  min-height: 28px;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 760;
}
html[data-view="avatar-agent"] .agent-use-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 14px;
}
html[data-view="avatar-agent"] .agent-call-card,
html[data-view="avatar-agent"] .agent-help-card {
  padding: 16px 18px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34,211,238,.045), transparent 34%), rgba(14,18,30,.42);
  box-shadow: 0 18px 48px rgba(0,0,0,.18), inset 3px 0 0 rgba(103,232,249,.20);
}
html[data-view="avatar-agent"] .agent-call-card,
html[data-view="avatar-agent"] .agent-help-card,
html[data-view="avatar-agent"] .agent-prompt-list {
  gap: 10px;
}
html[data-view="avatar-agent"] .agent-card-head {
  gap: 10px;
}
html[data-view="avatar-agent"] .agent-step {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 15px;
}
html[data-view="avatar-agent"] .agent-card-head h3 {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1;
}
html[data-view="avatar-agent"] .agent-call-card .avatar-widget-mount {
  min-height: clamp(180px, 24vh, 260px) !important;
  padding: 14px;
  border-radius: 16px;
}
html[data-view="avatar-agent"] .agent-call-card .avatar-widget-mount elevenlabs-convai {
  width: min(430px, 100%) !important;
  max-width: 430px !important;
  min-height: 160px !important;
}
html[data-view="avatar-agent"] .agent-prompt-list button {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.2;
}
html[data-view="avatar-agent"] .agent-note {
  font-size: 12px;
  line-height: 1.35;
}


/* Grocery detail: list surface, not card grid */
html[data-view="grocery"] .detail-shell.grocery-detail {
  gap: 12px;
}
html[data-view="grocery"] .grocery-full-board {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
  border: 1px solid rgba(232,238,247,.10);
  border-radius: 16px;
  background: rgba(7,12,22,.54);
  box-shadow: 0 18px 48px rgba(0,0,0,.16), inset 3px 0 0 rgba(248,215,122,.24);
}
html[data-view="grocery"] .grocery-full-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(232,238,247,.11);
}
html[data-view="grocery"] .grocery-full-topbar h3 {
  margin: 0;
  color: rgba(248,250,253,.94);
  font-size: 18px;
  font-weight: 780;
  letter-spacing: -.02em;
}
html[data-view="grocery"] .home-full-counts {
  color: rgba(171,181,197,.74);
  font-size: 12px;
  font-weight: 650;
}
html[data-view="grocery"] .home-full-counts span {
  color: rgba(248,215,122,.92);
  font-weight: 800;
}
html[data-view="grocery"] .grocery-full-sections {
  display: grid;
  gap: 18px;
}
html[data-view="grocery"] .grocery-full-section {
  display: grid;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid rgba(232,238,247,.085);
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html[data-view="grocery"] .grocery-full-section:first-child {
  padding-top: 4px;
  border-top: 0;
}
html[data-view="grocery"] .grocery-full-section .home-full-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 2px;
  padding: 0;
  border: 0;
}
html[data-view="grocery"] .grocery-full-section .home-full-section-head h3 {
  margin: 0;
  color: rgba(248,250,253,.88);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .01em;
}
html[data-view="grocery"] .grocery-full-list {
  display: grid;
  gap: 5px;
}
html[data-view="grocery"] .grocery-full-row {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 7px 10px !important;
  border: 1px solid rgba(232,238,247,.09) !important;
  border-left: 3px solid rgba(248,215,122,.48) !important;
  border-radius: 11px !important;
  color: var(--text);
  background: rgba(8,13,24,.42) !important;
  text-align: left;
  box-shadow: none !important;
  transform: none !important;
}
html[data-view="grocery"] .grocery-full-row:hover,
html[data-view="grocery"] .grocery-full-row:focus-visible {
  background: rgba(232,238,247,.055) !important;
  border-color: rgba(248,215,122,.24) !important;
  border-left-color: rgba(248,215,122,.76) !important;
}
html[data-view="grocery"] .grocery-check-dot {
  width: 10px !important;
  height: 10px !important;
  border: 1px solid rgba(248,215,122,.52);
  border-radius: 4px !important;
  background: rgba(248,215,122,.10) !important;
  box-shadow: none !important;
}
html[data-view="grocery"] .grocery-full-row .home-full-task-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}
html[data-view="grocery"] .grocery-full-row .home-full-task-copy strong {
  overflow: hidden;
  color: rgba(239,243,249,.91);
  font-size: 13px;
  font-weight: 690;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-view="grocery"] .grocery-full-row .home-full-task-copy small {
  color: rgba(171,181,197,.66);
  font-size: 11px;
  font-weight: 560;
}
html[data-view="grocery"] .grocery-full-row.done strong {
  color: rgba(171,181,197,.58);
  text-decoration: line-through;
}


/* Maintenance detail: use the same dense status-list language as Priority household work */
html[data-view="maintenance"] .maintenance-detail {
  position: relative;
  width: min(1180px, calc(100vw - 64px));
  gap: 14px;
}
html[data-view="maintenance"] .maintenance-tabs {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 5;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  border-color: rgba(135, 148, 170, .18);
  background: rgba(6, 10, 16, .72);
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 12px 28px rgba(0,0,0,.30);
}
html[data-view="maintenance"] .maintenance-tabs .tab {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(168, 178, 194, .88);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: .01em;
}
html[data-view="maintenance"] .maintenance-tabs .tab.active {
  color: #111827;
  background: #edf3ff;
  box-shadow: inset 0 1px rgba(255,255,255,.35), 0 0 20px rgba(237,243,255,.10);
}
html[data-view="maintenance"] .maintenance-done-list {
  display: grid;
  gap: 5px !important;
  padding: 18px 20px 16px;
  border-color: rgba(248, 215, 122, .13);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(248,215,122,.045), transparent 34%), rgba(14,18,30,.42);
  box-shadow: 0 18px 48px rgba(0,0,0,.18), inset 3px 0 0 rgba(248,215,122,.22);
}
html[data-view="maintenance"] .maintenance-done-row {
  cursor: default;
}
html[data-view="maintenance"] .maintenance-done-row:hover,
html[data-view="maintenance"] .maintenance-done-row:focus-visible {
  background: rgba(8,13,24,.46) !important;
  border-color: rgba(232,238,247,.075) !important;
}
html[data-view="maintenance"] .maintenance-hero {
  padding: 18px 20px 16px;
  border: 1px solid rgba(248, 215, 122, .13);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(248,215,122,.055), transparent 36%), rgba(14,18,30,.42);
  box-shadow: 0 18px 48px rgba(0,0,0,.18), inset 3px 0 0 rgba(248,215,122,.30);
}
html[data-view="maintenance"] .maintenance-section-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
  align-items: stretch;
}
html[data-view="maintenance"] .maintenance-section {
  padding: 18px 20px 16px !important;
  border: 1px solid rgba(248, 215, 122, .13) !important;
  border-radius: 20px !important;
  background: linear-gradient(135deg, rgba(248,215,122,.045), transparent 34%), rgba(14,18,30,.42) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.18), inset 3px 0 0 rgba(248,215,122,.22) !important;
}
html[data-view="maintenance"] .maintenance-section summary {
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(232,238,247,.14);
  list-style: none;
  cursor: default;
}
html[data-view="maintenance"] .maintenance-section summary::-webkit-details-marker {
  display: none;
}
html[data-view="maintenance"] .maintenance-section summary span {
  color: rgba(248,250,253,.94);
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 810;
  line-height: .98;
  letter-spacing: -.035em;
}
html[data-view="maintenance"] .maintenance-section summary em {
  color: rgba(171,181,197,.72);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
html[data-view="maintenance"] .maintenance-list {
  display: grid;
  gap: 5px !important;
}
html[data-view="maintenance"] .maintenance-row {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) auto !important;
  align-items: center;
  gap: 10px;
  min-height: 40px !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(232,238,247,.075) !important;
  border-radius: 12px !important;
  color: rgba(232,238,247,.92);
  background: rgba(8,13,24,.46) !important;
  box-shadow: none !important;
  text-align: left;
  cursor: pointer;
}
html[data-view="maintenance"] .maintenance-row:hover,
html[data-view="maintenance"] .maintenance-row:focus-visible,
html[data-view="maintenance"] .maintenance-row:focus-within {
  background: rgba(232,238,247,.055) !important;
  border-color: rgba(232,238,247,.15) !important;
  outline: 0;
}
html[data-view="maintenance"] .maintenance-dot {
  width: 7px !important;
  height: 7px !important;
  justify-self: center;
  border-radius: 999px;
  background: var(--maintenance-color, #22c55e) !important;
  box-shadow: 0 0 14px var(--maintenance-color, #22c55e) !important;
}
html[data-view="maintenance"] .maintenance-row-main {
  display: grid;
  gap: 1px;
  min-width: 0;
}
html[data-view="maintenance"] .maintenance-row-main strong {
  margin: 0;
  overflow: hidden;
  color: rgba(232,238,247,.92);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 680;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-view="maintenance"] .maintenance-row-main small {
  overflow: hidden;
  color: rgba(171,181,197,.78);
  font-size: 10.5px;
  font-weight: 660;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-view="maintenance"] .maintenance-row-mode {
  display: none !important;
}
html[data-view="maintenance"] .maintenance-row-remove {
  width: 26px;
  height: 26px;
  opacity: .42;
  border-color: rgba(232,238,247,.08);
  background: transparent;
}
html[data-view="maintenance"] .maintenance-row-remove:hover,
html[data-view="maintenance"] .maintenance-row-remove:focus-visible {
  opacity: 1;
}


/* Grocery detail streamlined page chrome: consistent margins, compact header, dense list */
html[data-view="grocery"] #addOpenBtn,
html[data-view="grocery"] #saveStatus {
  display: none !important;
}
html[data-view="grocery"] .masthead {
  display: none !important;
}
html[data-view="grocery"] .page {
  width: min(1180px, calc(100vw - 40px));
  padding-top: 24px;
}
html[data-view="grocery"] .board-detail,
html[data-view="grocery"] .detail-shell.grocery-detail {
  gap: 12px;
}
html[data-view="grocery"] .grocery-hero {
  display: grid;
  gap: 5px;
  min-height: 0;
  padding: 0 0 13px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid rgba(232,238,247,.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-view="grocery"] .grocery-hero::after {
  display: none;
}
html[data-view="grocery"] .grocery-hero .back-to-boards {
  min-height: 0;
  margin: 0 0 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(171,181,197,.86);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0;
}
html[data-view="grocery"] .grocery-hero .back-to-boards:hover,
html[data-view="grocery"] .grocery-hero .back-to-boards:focus-visible {
  color: rgba(248,250,253,.96);
  background: transparent;
  transform: none;
}
html[data-view="grocery"] .grocery-hero .board-kicker {
  margin: 0;
  color: rgba(123,231,195,.70);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .16em;
  line-height: 1.1;
  text-transform: uppercase;
}
html[data-view="grocery"] .grocery-hero h2 {
  margin: 0;
  color: rgba(248,250,253,.96);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 830;
  letter-spacing: -.045em;
  line-height: 1;
}
html[data-view="grocery"] .grocery-hero p:not(.board-kicker) {
  margin: 2px 0 0;
  max-width: 38rem;
  color: rgba(171,181,197,.82);
  font-size: 14px;
  line-height: 1.35;
}
html[data-view="grocery"] .detail-tabs {
  width: fit-content;
  margin: 0;
  min-height: 0;
  padding: 4px;
  border-color: rgba(232,238,247,.12);
  background: rgba(7,12,22,.48);
}
html[data-view="grocery"] .detail-tabs .tab {
  min-height: 30px;
  padding: 0 16px;
  font-size: 13px;
}
html[data-view="grocery"] .grocery-full-board {
  gap: 7px;
  padding: 12px 14px 13px;
  border-radius: 14px;
  background: rgba(7,12,22,.44);
  box-shadow: inset 3px 0 0 rgba(248,215,122,.22);
}
html[data-view="grocery"] .grocery-full-topbar {
  padding-bottom: 7px;
}
html[data-view="grocery"] .grocery-full-topbar h3 {
  font-size: 17px;
}
html[data-view="grocery"] .grocery-full-sections {
  gap: 12px;
}
html[data-view="grocery"] .grocery-full-section {
  gap: 5px;
  padding-top: 9px;
}
html[data-view="grocery"] .grocery-full-section:first-child {
  padding-top: 2px;
}
html[data-view="grocery"] .grocery-full-list {
  gap: 4px;
}
html[data-view="grocery"] .grocery-full-row {
  min-height: 36px;
  padding: 6px 9px !important;
  border-radius: 10px !important;
}
html[data-view="grocery"] .grocery-full-row .home-full-task-copy strong {
  font-size: 12.5px;
  font-weight: 680;
}
html[data-view="grocery"] .grocery-full-row .home-full-task-copy small {
  font-size: 10px;
}


/* Maintenance detail has its own add action; hide global quick-capture chrome */
html[data-view="maintenance"] #addOpenBtn,
html[data-view="maintenance"] #saveStatus {
  display: none !important;
}

/* Maintenance header: keep hierarchy vertical, not the 3-column unified topbar. */
html[data-view="maintenance"] .maintenance-hero {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: start !important;
  gap: 5px !important;
  min-height: 0 !important;
  padding: 0 0 13px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(232,238,247,.12) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[data-view="maintenance"] .maintenance-hero > .back-to-boards,
html[data-view="maintenance"] .maintenance-hero > .board-kicker,
html[data-view="maintenance"] .maintenance-hero > h2,
html[data-view="maintenance"] .maintenance-hero > p,
html[data-view="maintenance"] .maintenance-hero > .maintenance-summary-row {
  grid-column: 1 !important;
}
html[data-view="maintenance"] .maintenance-hero > .back-to-boards {
  justify-self: start !important;
  min-height: 0 !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: rgba(171,181,197,.86) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 720 !important;
  letter-spacing: 0 !important;
}
html[data-view="maintenance"] .maintenance-hero > .board-kicker {
  margin: 0 !important;
  color: rgba(248,215,122,.78) !important;
  font-size: 10px !important;
  font-weight: 760 !important;
  line-height: 1.1 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
}
html[data-view="maintenance"] .maintenance-hero > h2 {
  margin: 0 !important;
  color: rgba(248,250,253,.96) !important;
  font-size: clamp(28px, 3vw, 38px) !important;
  font-weight: 830 !important;
  line-height: 1 !important;
  letter-spacing: -.045em !important;
}
html[data-view="maintenance"] .maintenance-hero > p:not(.board-kicker) {
  max-width: 46rem !important;
  margin: 2px 0 0 !important;
  color: rgba(171,181,197,.82) !important;
  font-size: clamp(13px, 1.1vw, 15px) !important;
  line-height: 1.35 !important;
}
html[data-view="maintenance"] .maintenance-hero > .maintenance-summary-row {
  margin-top: 8px !important;
  gap: 8px !important;
}

/* Unified detail pages: every hub page uses the dashboard's warm-dark dense language. */
html:not([data-view="landing"]) .page {
  width: min(1220px, calc(100vw - 40px));
  padding-top: 24px;
}
html:not([data-view="landing"]) .masthead {
  display: none !important;
}
html:not([data-view="landing"]) .board-detail,
html:not([data-view="landing"]) .detail-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  color: rgba(244, 247, 251, .95);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif !important;
}
html:not([data-view="landing"]) .detail-shell,
html:not([data-view="landing"]) .detail-shell * {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif !important;
}
html:not([data-view="landing"]) .detail-hero,
html:not([data-view="landing"]) .cozyla-topbar {
  position: relative;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin: 0;
  padding: 0 0 13px !important;
  overflow: visible;
  border: 0 !important;
  border-bottom: 1px solid rgba(232, 238, 247, .12) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html:not([data-view="landing"]) .detail-hero::after { display: none !important; }
html:not([data-view="landing"]) .detail-hero > .board-kicker,
html:not([data-view="landing"]) .detail-hero > h2,
html:not([data-view="landing"]) .detail-hero > p {
  grid-column: 2;
}
html:not([data-view="landing"]) .detail-hero > .back-to-boards + .board-kicker,
html:not([data-view="landing"]) .detail-hero > .back-to-boards + div {
  grid-column: 2;
}
html:not([data-view="landing"]) .back-to-boards,
html:not([data-view="landing"]) .cozyla-back {
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 3px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: rgba(171,181,197,.82) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 720 !important;
  letter-spacing: .02em !important;
  transform: none !important;
}
html:not([data-view="landing"]) .back-to-boards:hover,
html:not([data-view="landing"]) .back-to-boards:focus-visible,
html:not([data-view="landing"]) .cozyla-back:hover,
html:not([data-view="landing"]) .cozyla-back:focus-visible {
  color: rgba(248,250,252,.96) !important;
  background: transparent !important;
  transform: none !important;
}
html:not([data-view="landing"]) .board-kicker,
html:not([data-view="landing"]) .detail-hero .board-kicker,
html:not([data-view="landing"]) .cozyla-topbar .eyebrow {
  margin: 0 0 3px !important;
  color: rgba(248,215,122,.82) !important;
  font-size: 10px !important;
  font-weight: 820 !important;
  line-height: 1 !important;
  letter-spacing: .19em !important;
  text-transform: uppercase !important;
}
html:not([data-view="landing"]) .detail-hero h2,
html:not([data-view="landing"]) .cozyla-topbar h2 {
  margin: 0 !important;
  color: rgba(250,252,255,.96) !important;
  font-size: clamp(20px, 1.8vw, 26px) !important;
  font-weight: 820 !important;
  line-height: 1 !important;
  letter-spacing: -.035em !important;
}
html:not([data-view="landing"]) .detail-hero p:not(.board-kicker),
html:not([data-view="landing"]) .cozyla-topbar p:not(.eyebrow) {
  max-width: 46rem !important;
  margin: 4px 0 0 !important;
  color: rgba(171,181,197,.78) !important;
  font-size: 12.5px !important;
  line-height: 1.3 !important;
}
html:not([data-view="landing"]) .detail-tabs {
  justify-self: start !important;
  display: inline-flex !important;
  gap: 16px !important;
  width: fit-content !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html:not([data-view="landing"]) .detail-tabs .tab,
html:not([data-view="landing"]) .detail-tabs > .tab {
  position: relative;
  min-height: 30px !important;
  padding: 0 0 5px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: rgba(171,181,197,.72) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 760 !important;
  letter-spacing: .10em !important;
  text-transform: uppercase !important;
}
html:not([data-view="landing"]) .detail-tabs .tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: transparent;
}
html:not([data-view="landing"]) .detail-tabs .tab.active {
  color: rgba(238,255,244,.94) !important;
}
html:not([data-view="landing"]) .detail-tabs .tab.active::after {
  background: linear-gradient(90deg, rgba(34,197,94,.26), rgba(34,197,94,.72), rgba(34,197,94,.26));
}
html:not([data-view="landing"]) .section-card-grid,
html:not([data-view="landing"]) .maintenance-section-grid,
html:not([data-view="landing"]) .smart-section-grid,
html:not([data-view="landing"]) .home-full-sections,
html:not([data-view="landing"]) .grocery-full-sections {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  align-items: start !important;
}
html:not([data-view="landing"]) .section-card,
html:not([data-view="landing"]) .calendar-panel,
html:not([data-view="landing"]) .smart-home-panel,
html:not([data-view="landing"]) .smart-section,
html:not([data-view="landing"]) .home-full-board,
html:not([data-view="landing"]) .grocery-full-board,
html:not([data-view="landing"]) .maintenance-section,
html:not([data-view="landing"]) .cozyla-panel,
html:not([data-view="landing"]) .simple-agent-detail .agent-use-card,
html:not([data-view="landing"]) .done-view {
  padding: 16px 18px !important;
  border: 1px solid rgba(232,238,247,.11) !important;
  border-radius: 18px !important;
  background: rgba(9,15,27,.52) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.18), inset 3px 0 0 rgba(139,182,255,.16) !important;
}
html:not([data-view="landing"]) .home-full-board,
html:not([data-view="landing"]) .maintenance-section.warning,
html:not([data-view="landing"]) .maintenance-section.ok,
html:not([data-view="landing"]) .grocery-full-board {
  border-color: rgba(248,215,122,.13) !important;
  background: linear-gradient(135deg, rgba(248,215,122,.055), transparent 36%), rgba(14,18,30,.42) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.18), inset 3px 0 0 rgba(248,215,122,.28) !important;
}
html:not([data-view="landing"]) .section-label-row,
html:not([data-view="landing"]) .smart-panel-head,
html:not([data-view="landing"]) .home-full-topbar,
html:not([data-view="landing"]) .grocery-full-topbar,
html:not([data-view="landing"]) .section-card summary,
html:not([data-view="landing"]) .maintenance-section summary {
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin: 0 0 10px !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid rgba(232,238,247,.14) !important;
  list-style: none !important;
}
html:not([data-view="landing"]) .section-card summary::-webkit-details-marker,
html:not([data-view="landing"]) .maintenance-section summary::-webkit-details-marker { display: none !important; }
html:not([data-view="landing"]) .section-label-row h3,
html:not([data-view="landing"]) .smart-panel-head h3,
html:not([data-view="landing"]) .home-full-topbar h3,
html:not([data-view="landing"]) .grocery-full-topbar h3,
html:not([data-view="landing"]) .section-card summary span,
html:not([data-view="landing"]) .maintenance-section summary span {
  margin: 0 !important;
  color: rgba(248,250,253,.96) !important;
  font-size: clamp(17px, 1.45vw, 22px) !important;
  font-weight: 810 !important;
  line-height: 1 !important;
  letter-spacing: -.035em !important;
}
html:not([data-view="landing"]) .section-label-row span,
html:not([data-view="landing"]) .home-full-counts,
html:not([data-view="landing"]) .section-card summary em,
html:not([data-view="landing"]) .maintenance-section summary em {
  color: rgba(171,181,197,.72) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  font-style: normal !important;
}
html:not([data-view="landing"]) .section-items,
html:not([data-view="landing"]) .home-full-list,
html:not([data-view="landing"]) .grocery-full-list,
html:not([data-view="landing"]) .calendar-list,
html:not([data-view="landing"]) .maintenance-list,
html:not([data-view="landing"]) .smart-device-list,
html:not([data-view="landing"]) .cozyla-status-list,
html:not([data-view="landing"]) .done-view {
  display: grid !important;
  gap: 5px !important;
}
html:not([data-view="landing"]) .item-row,
html:not([data-view="landing"]) .home-full-task-row,
html:not([data-view="landing"]) .grocery-full-row,
html:not([data-view="landing"]) .calendar-event,
html:not([data-view="landing"]) .maintenance-row,
html:not([data-view="landing"]) .smart-device-row,
html:not([data-view="landing"]) .smart-summary-card,
html:not([data-view="landing"]) .cozyla-status-row {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 36px !important;
  padding: 6px 9px !important;
  border: 1px solid rgba(232,238,247,.075) !important;
  border-radius: 10px !important;
  color: rgba(232,238,247,.92) !important;
  background: rgba(7,12,22,.50) !important;
  box-shadow: none !important;
  text-align: left !important;
  transform: none !important;
}
html:not([data-view="landing"]) .item-row::before,
html:not([data-view="landing"]) .calendar-event::before,
html:not([data-view="landing"]) .smart-device-row::before,
html:not([data-view="landing"]) .smart-summary-card::before,
html:not([data-view="landing"]) .cozyla-status-row::before {
  content: '';
  width: 6px;
  height: 6px;
  justify-self: center;
  border-radius: 999px;
  background: var(--task-status-color, #22c55e);
  box-shadow: 0 0 12px var(--task-status-color, #22c55e);
}
html:not([data-view="landing"]) .item-row:hover,
html:not([data-view="landing"]) .item-row:focus-visible,
html:not([data-view="landing"]) .home-full-task-row:hover,
html:not([data-view="landing"]) .home-full-task-row:focus-visible,
html:not([data-view="landing"]) .grocery-full-row:hover,
html:not([data-view="landing"]) .grocery-full-row:focus-visible {
  background: rgba(232,238,247,.055) !important;
}
html:not([data-view="landing"]) .item-row span,
html:not([data-view="landing"]) .home-full-task-copy,
html:not([data-view="landing"]) .calendar-info,
html:not([data-view="landing"]) .maintenance-row-main {
  display: grid !important;
  gap: 1px !important;
  min-width: 0 !important;
}
html:not([data-view="landing"]) .item-row span,
html:not([data-view="landing"]) .home-full-task-copy strong,
html:not([data-view="landing"]) .calendar-info h3,
html:not([data-view="landing"]) .maintenance-row-main strong,
html:not([data-view="landing"]) .smart-device-row span,
html:not([data-view="landing"]) .cozyla-status-row strong,
html:not([data-view="landing"]) .smart-summary-card strong {
  overflow: hidden !important;
  color: rgba(230,236,247,.90) !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  line-height: 1.05 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
html:not([data-view="landing"]) .item-row small,
html:not([data-view="landing"]) .home-full-task-copy small,
html:not([data-view="landing"]) .calendar-info p,
html:not([data-view="landing"]) .maintenance-row-main small,
html:not([data-view="landing"]) .cozyla-status-row span,
html:not([data-view="landing"]) .smart-summary-card span {
  overflow: hidden !important;
  color: rgba(153,164,183,.72) !important;
  font-size: 10px !important;
  font-weight: 620 !important;
  line-height: 1.05 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
html:not([data-view="landing"]) .calendar-date {
  display: grid !important;
  grid-column: 3;
  grid-row: 1;
  gap: 1px;
  justify-items: end;
}
html:not([data-view="landing"]) .calendar-date strong,
html:not([data-view="landing"]) .calendar-date span {
  display: block !important;
  max-width: 180px;
  overflow: hidden;
  color: rgba(153,164,183,.72) !important;
  font-size: 10px !important;
  font-weight: 620 !important;
  line-height: 1.05 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html:not([data-view="landing"]) .calendar-event {
  grid-template-columns: 18px minmax(0, 1fr) auto !important;
}
html:not([data-view="landing"]) .calendar-event .calendar-info {
  grid-column: 2;
  grid-row: 1;
}
html:not([data-view="landing"]) .smart-summary-card {
  grid-template-columns: 18px auto minmax(0, 1fr) !important;
}
html:not([data-view="landing"]) .smart-device-row,
html:not([data-view="landing"]) .maintenance-row {
  grid-template-columns: 18px minmax(0, 1fr) auto !important;
}
html:not([data-view="landing"]) .smart-summary-card strong,
html:not([data-view="landing"]) .smart-summary-card span {
  grid-row: 1;
}
html:not([data-view="landing"]) .smart-summary-card strong {
  grid-column: 2;
}
html:not([data-view="landing"]) .smart-summary-card span {
  grid-column: 3;
  justify-self: start;
  max-width: none;
}
html:not([data-view="landing"]) .smart-device-row .state-chip {
  grid-column: 3;
  grid-row: 1;
}
html:not([data-view="landing"]) .maintenance-row-remove {
  grid-column: 4;
}
html:not([data-view="landing"]) .smart-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
html:not([data-view="landing"]) .light-area-grid,
html:not([data-view="landing"]) .camera-health-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 8px !important;
}
html:not([data-view="landing"]) .light-area-card,
html:not([data-view="landing"]) .camera-health-card,
html:not([data-view="landing"]) .smart-attention {
  border-radius: 12px !important;
  border: 1px solid rgba(232,238,247,.085) !important;
  background: rgba(8,13,24,.46) !important;
  box-shadow: none !important;
}
html:not([data-view="landing"]) .primary,
html:not([data-view="landing"]) .quiet,
html:not([data-view="landing"]) .state-chip,
html:not([data-view="landing"]) .device-pill,
html:not([data-view="landing"]) .calendar-refresh,
html:not([data-view="landing"]) .smart-refresh,
html:not([data-view="landing"]) .cozyla-action-button {
  min-height: 30px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(232,238,247,.10) !important;
  border-radius: 999px !important;
  color: rgba(203,213,225,.86) !important;
  background: rgba(232,238,247,.055) !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 720 !important;
}
html:not([data-view="landing"]) .primary {
  color: #111827 !important;
  background: #edf3ff !important;
}

/* Grocery header: match Maintenance's vertical hierarchy, not the generic 3-column topbar. */
html[data-view="grocery"] .grocery-hero {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: start !important;
  gap: 5px !important;
  min-height: 0 !important;
  padding: 0 0 13px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(232,238,247,.12) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[data-view="grocery"] .grocery-hero > .back-to-boards,
html[data-view="grocery"] .grocery-hero > .board-kicker,
html[data-view="grocery"] .grocery-hero > h2,
html[data-view="grocery"] .grocery-hero > p {
  grid-column: 1 !important;
}
html[data-view="grocery"] .grocery-hero > .back-to-boards {
  justify-self: start !important;
  min-height: 0 !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: rgba(171,181,197,.86) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 720 !important;
  letter-spacing: 0 !important;
}
html[data-view="grocery"] .grocery-hero > .board-kicker {
  margin: 0 !important;
  color: rgba(248,215,122,.78) !important;
  font-size: 10px !important;
  font-weight: 760 !important;
  line-height: 1.1 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
}
html[data-view="grocery"] .grocery-hero > h2 {
  margin: 0 !important;
  color: rgba(248,250,253,.96) !important;
  font-size: clamp(28px, 3vw, 38px) !important;
  font-weight: 830 !important;
  line-height: 1 !important;
  letter-spacing: -.045em !important;
}
html[data-view="grocery"] .grocery-hero > p:not(.board-kicker) {
  max-width: 46rem !important;
  margin: 2px 0 0 !important;
  color: rgba(171,181,197,.82) !important;
  font-size: clamp(13px, 1.1vw, 15px) !important;
  line-height: 1.35 !important;
}
/* Consistent detail headers: back link sits on its own row above the page label/title. */
html:not([data-view="landing"]) .detail-hero,
html:not([data-view="landing"]) .cozyla-topbar,
html[data-view="network"] .network-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  row-gap: 4px !important;
  column-gap: 14px !important;
  min-height: 0 !important;
  padding: 0 0 13px !important;
}
html:not([data-view="landing"]) .detail-hero > .back-to-boards,
html:not([data-view="landing"]) .cozyla-topbar > .back-to-boards,
html[data-view="network"] .network-hero > .back-to-boards {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  min-height: 20px !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
  line-height: 1.1 !important;
}
html:not([data-view="landing"]) .detail-hero > .board-kicker,
html:not([data-view="landing"]) .detail-hero > h2,
html:not([data-view="landing"]) .detail-hero > p,
html:not([data-view="landing"]) .detail-hero > div,
html:not([data-view="landing"]) .cozyla-topbar > div,
html[data-view="network"] .network-hero > div {
  grid-column: 1 !important;
  justify-self: start !important;
  text-align: left !important;
}
html:not([data-view="landing"]) .detail-hero > .board-kicker,
html:not([data-view="landing"]) .cozyla-topbar .board-kicker,
html[data-view="network"] .network-hero .board-kicker {
  margin: 0 0 5px !important;
}
html:not([data-view="landing"]) .detail-hero > h2,
html:not([data-view="landing"]) .cozyla-topbar h2,
html[data-view="network"] .network-hero h2 {
  margin: 0 !important;
}
html:not([data-view="landing"]) .detail-hero > p:not(.board-kicker),
html:not([data-view="landing"]) .cozyla-topbar p:not(.board-kicker),
html[data-view="network"] .network-hero p:not(.board-kicker) {
  margin: 7px 0 0 !important;
}
html:not([data-view="landing"]) .detail-hero > .quiet,
html:not([data-view="landing"]) .cozyla-topbar > .quiet,
html[data-view="network"] .network-hero > .quiet {
  grid-column: 2 !important;
  grid-row: 2 / span 2 !important;
  justify-self: end !important;
  align-self: start !important;
}
html[data-view="maintenance"] .maintenance-hero > .maintenance-summary-row {
  grid-column: 1 / -1 !important;
}

/* Devices summary cards: keep metric labels aligned across variable-width values. */
html[data-view="devices"] .smart-summary-card {
  grid-template-columns: 18px 78px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 9px !important;
}
html[data-view="devices"] .smart-summary-card strong {
  justify-self: end !important;
  width: 78px !important;
  max-width: 78px !important;
  text-align: right !important;
}
html[data-view="devices"] .smart-summary-card span {
  justify-self: start !important;
  align-self: center !important;
}

@media (max-width: 900px) {
  html:not([data-view="landing"]) .page { width: min(100%, calc(100vw - 24px)); }
  html:not([data-view="landing"]) .detail-hero,
  html:not([data-view="landing"]) .cozyla-topbar { grid-template-columns: 1fr; }
  html:not([data-view="landing"]) .detail-hero > .board-kicker,
  html:not([data-view="landing"]) .detail-hero > h2,
  html:not([data-view="landing"]) .detail-hero > p,
  html:not([data-view="landing"]) .detail-hero > .back-to-boards + .board-kicker,
  html:not([data-view="landing"]) .detail-hero > .back-to-boards + div { grid-column: 1; }
  html:not([data-view="landing"]) .smart-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}


/* Cozyla status rows: keep compact, but do not inherit generic task-row chrome/truncation */
html[data-view="cozyla"] .cozyla-panel {
  display: grid !important;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr) !important;
  align-items: start !important;
  gap: 14px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-view="cozyla"] .cozyla-status-list {
  display: grid !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(232, 238, 247, .11) !important;
  border-radius: 18px !important;
  background: rgba(13, 18, 28, .56) !important;
}

html[data-view="cozyla"] .cozyla-status-row {
  display: grid !important;
  grid-template-columns: 96px minmax(0, 1fr) !important;
  align-items: baseline !important;
  gap: 14px !important;
  min-height: 48px !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(232, 238, 247, .08) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-view="cozyla"] .cozyla-status-row:last-child {
  border-bottom: 0 !important;
}

html[data-view="cozyla"] .cozyla-status-row::before {
  content: none !important;
}

html[data-view="cozyla"] .cozyla-status-row span {
  overflow: visible !important;
  color: rgba(171,181,197,.78) !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  line-height: 1.1 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

html[data-view="cozyla"] .cozyla-status-row strong {
  min-width: 0 !important;
  overflow: visible !important;
  color: rgba(242, 246, 252, .94) !important;
  font-size: clamp(16px, 2.1vw, 22px) !important;
  font-weight: 760 !important;
  line-height: 1.16 !important;
  letter-spacing: -.025em !important;
  text-overflow: clip !important;
  white-space: normal !important;
  word-break: normal !important;
}

/* Detail tabs: readable segmented headers, not tiny clipped uppercase text rails */
html:not([data-view="landing"]) .detail-tabs {
  display: inline-flex !important;
  align-items: center !important;
  justify-self: start !important;
  gap: 6px !important;
  width: fit-content !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 5px !important;
  border: 1px solid rgba(232,238,247,.12) !important;
  border-radius: 999px !important;
  background: rgba(7,12,22,.52) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.04) !important;
}

html:not([data-view="landing"]) .detail-tabs .tab,
html:not([data-view="landing"]) .detail-tabs > .tab {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 68px !important;
  min-height: 32px !important;
  padding: 0 15px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: rgba(203,213,225,.76) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 760 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

html:not([data-view="landing"]) .detail-tabs .tab::after {
  content: none !important;
}

html:not([data-view="landing"]) .detail-tabs .tab:hover,
html:not([data-view="landing"]) .detail-tabs .tab:focus-visible {
  color: rgba(248,250,252,.94) !important;
  background: rgba(232,238,247,.08) !important;
}

html:not([data-view="landing"]) .detail-tabs .tab.active {
  color: rgba(7,12,22,.96) !important;
  background: rgba(237,243,255,.96) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.20) !important;
}

html:not([data-view="landing"]) .detail-tabs .tab.active::after {
  content: none !important;
}

@media (max-width: 820px) {
  html[data-view="cozyla"] .cozyla-panel {
    grid-template-columns: 1fr !important;
  }
}


/* Network detail: passive LAN map in the same dense status-list language as Priority household work */
html[data-view="network"] #addOpenBtn,
html[data-view="network"] #saveStatus {
  display: none !important;
}
html[data-view="network"] .network-detail {
  width: min(1180px, calc(100vw - 64px));
  margin: 0 auto;
  gap: 18px;
}
html[data-view="network"] .network-hero,
html[data-view="network"] .network-section {
  border: 1px solid rgba(248, 215, 122, .13);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(248,215,122,.045), transparent 34%), rgba(14,18,30,.42);
  box-shadow: 0 18px 48px rgba(0,0,0,.18), inset 3px 0 0 rgba(248,215,122,.22);
}
html[data-view="network"] .network-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 18px 20px 16px;
}
html[data-view="network"] .network-hero h2 {
  margin: 2px 0 0;
  color: rgba(248,250,253,.96);
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 830;
  line-height: .98;
  letter-spacing: -.045em;
}
html[data-view="network"] .network-hero p:not(.board-kicker) {
  margin: 8px 0 0;
  color: rgba(171,181,197,.82);
  font-size: 13px;
  font-weight: 620;
}
html[data-view="network"] .network-refresh {
  align-self: center;
}
html[data-view="network"] .network-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
html[data-view="network"] .network-section {
  padding: 18px 20px 16px;
}
html[data-view="network"] .network-section > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(232,238,247,.14);
}
html[data-view="network"] .network-section h3 {
  margin: 0;
  color: rgba(248,250,253,.94);
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 810;
  line-height: .98;
  letter-spacing: -.035em;
}
html[data-view="network"] .network-section header span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: rgba(171,181,197,.78);
  background: rgba(232,238,247,.07);
  font-size: 11px;
  font-weight: 760;
}
html[data-view="network"] .network-list {
  display: grid;
  gap: 5px;
}
html[data-view="network"] .network-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid rgba(232,238,247,.075);
  border-radius: 12px;
  color: rgba(232,238,247,.92);
  background: rgba(8,13,24,.46);
  box-shadow: none;
}
html[data-view="network"] .network-row:hover {
  background: rgba(232,238,247,.055);
}
html[data-view="network"] .network-dot {
  width: 7px;
  height: 7px;
  justify-self: center;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 14px currentColor;
}
html[data-view="network"] .network-row.gateway .network-dot { background: #f59e0b; }
html[data-view="network"] .network-row.self .network-dot { background: #38bdf8; }
html[data-view="network"] .network-row-main {
  display: grid;
  gap: 1px;
  min-width: 0;
}
html[data-view="network"] .network-row-main strong {
  overflow: hidden;
  color: rgba(232,238,247,.92);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 680;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-view="network"] .network-row-main small {
  overflow: hidden;
  color: rgba(171,181,197,.78);
  font-size: 10.5px;
  font-weight: 660;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-view="network"] .network-ip {
  color: rgba(171,181,197,.74);
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
}
html[data-view="network"] .network-footnote {
  margin: 0 2px;
  color: rgba(148,163,184,.70);
  font-size: 11px;
  font-weight: 620;
}
@media (max-width: 760px) {
  html[data-view="network"] .network-detail { width: min(100%, calc(100vw - 28px)); }
  html[data-view="network"] .network-hero { grid-template-columns: 1fr; }
  html[data-view="network"] .network-row { grid-template-columns: 18px minmax(0, 1fr); }
  html[data-view="network"] .network-ip { display: none; }
}


/* Cozyla topbar: keep Refresh as a small right-side action, not a full-width bar */
html[data-view="cozyla"] .cozyla-topbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "back refresh"
    "title refresh" !important;
  align-items: start !important;
  gap: 8px 16px !important;
}

html[data-view="cozyla"] .cozyla-topbar > .quiet {
  grid-area: refresh !important;
  justify-self: end !important;
  align-self: start !important;
  width: auto !important;
  min-width: 96px !important;
  max-width: max-content !important;
  min-height: 34px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
}

html[data-view="cozyla"] .cozyla-topbar .back-to-boards {
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
}


/* Network detail: clean inventory of what is on the LAN */
html[data-view="network"] .network-detail {
  width: min(1180px, calc(100vw - 40px)) !important;
  margin: 0 auto !important;
  display: grid !important;
  gap: 14px !important;
}

html[data-view="network"] .network-hero {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 14px 18px !important;
  padding: 0 0 14px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(232,238,247,.13) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-view="network"] .network-hero h2 {
  margin: 0 !important;
  font-size: clamp(26px, 2.6vw, 38px) !important;
  line-height: .98 !important;
}

html[data-view="network"] .network-hero p:not(.board-kicker) {
  margin: 5px 0 0 !important;
  max-width: none !important;
  color: rgba(171,181,197,.78) !important;
  font-size: 13px !important;
}

html[data-view="network"] .network-refresh {
  justify-self: end !important;
  align-self: start !important;
  width: auto !important;
  min-width: 96px !important;
  max-width: max-content !important;
  min-height: 34px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
}

html[data-view="network"] .network-summary-strip {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 12px !important;
}

html[data-view="network"] .network-summary-strip span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(232,238,247,.10) !important;
  border-radius: 999px !important;
  color: rgba(171,181,197,.82) !important;
  background: rgba(8,13,24,.58) !important;
  font-size: 11.5px !important;
  font-weight: 720 !important;
  white-space: nowrap !important;
}

html[data-view="network"] .network-summary-strip strong {
  color: rgba(248,250,252,.94) !important;
  font-size: 12px !important;
  font-weight: 820 !important;
}

html[data-view="network"] .network-section-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

html[data-view="network"] .network-section {
  padding: 14px 16px !important;
  border: 1px solid rgba(232,238,247,.10) !important;
  border-radius: 18px !important;
  background: rgba(9,15,27,.52) !important;
  box-shadow: 0 14px 36px rgba(0,0,0,.14), inset 3px 0 0 rgba(139,182,255,.14) !important;
}

html[data-view="network"] .network-section.core {
  box-shadow: 0 14px 36px rgba(0,0,0,.14), inset 3px 0 0 rgba(248,215,122,.24) !important;
}

html[data-view="network"] .network-section > header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin: 0 0 10px !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid rgba(232,238,247,.12) !important;
}

html[data-view="network"] .network-section h3 {
  margin: 0 !important;
  font-size: clamp(16px, 1.4vw, 20px) !important;
  line-height: 1 !important;
}

html[data-view="network"] .network-list {
  display: grid !important;
  gap: 6px !important;
}

html[data-view="network"] .network-row,
html[data-view="network"] .network-loading-row {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) minmax(112px, auto) !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 42px !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(232,238,247,.075) !important;
  border-radius: 12px !important;
  background: rgba(7,12,22,.52) !important;
}

html[data-view="network"] .network-loading-row {
  grid-template-columns: 18px minmax(0, 1fr) !important;
}

html[data-view="network"] .network-dot {
  width: 7px !important;
  height: 7px !important;
  justify-self: center !important;
  border-radius: 999px !important;
  background: #22c55e !important;
  box-shadow: 0 0 14px rgba(34,197,94,.72) !important;
}

html[data-view="network"] .network-row.gateway .network-dot { background: #f59e0b !important; box-shadow: 0 0 14px rgba(245,158,11,.62) !important; }
html[data-view="network"] .network-row.self .network-dot,
html[data-view="network"] .network-dot.self { background: #38bdf8 !important; box-shadow: 0 0 14px rgba(56,189,248,.62) !important; }

html[data-view="network"] .network-row-main,
html[data-view="network"] .network-loading-row > div {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

html[data-view="network"] .network-row-main strong,
html[data-view="network"] .network-loading-row strong {
  overflow: hidden !important;
  color: rgba(232,238,247,.94) !important;
  font-size: 13px !important;
  font-weight: 720 !important;
  line-height: 1.08 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html[data-view="network"] .network-row-main small,
html[data-view="network"] .network-loading-row small {
  overflow: hidden !important;
  color: rgba(148,163,184,.80) !important;
  font-size: 11px !important;
  font-weight: 620 !important;
  line-height: 1.08 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html[data-view="network"] .network-ip {
  justify-self: end !important;
  color: rgba(203,213,225,.82) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 11.5px !important;
  font-weight: 720 !important;
  white-space: nowrap !important;
}

html[data-view="network"] .network-footnote {
  margin: 0 2px !important;
  color: rgba(148,163,184,.68) !important;
  font-size: 11px !important;
  font-weight: 620 !important;
}

@media (max-width: 760px) {
  html[data-view="network"] .network-detail { width: min(100%, calc(100vw - 28px)) !important; }
  html[data-view="network"] .network-hero { grid-template-columns: 1fr auto !important; }
  html[data-view="network"] .network-hero > div { grid-column: 1 / -1 !important; }
  html[data-view="network"] .network-row { grid-template-columns: 18px minmax(0, 1fr) !important; }
  html[data-view="network"] .network-ip { justify-self: start !important; grid-column: 2 !important; }
}


/* Devices summary: convert the janky metric cards into the same dense list-row language as Priority household work. */
html[data-view="devices"] .smart-summary-grid {
  grid-template-columns: 1fr !important;
  gap: 6px !important;
}
html[data-view="devices"] .smart-summary-card {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 40px !important;
  padding: 7px 10px !important;
  border-radius: 12px !important;
  background: rgba(8,13,24,.46) !important;
}
html[data-view="devices"] .smart-summary-card::before {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 7px !important;
  height: 7px !important;
}
html[data-view="devices"] .smart-summary-card span {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  min-width: 0 !important;
  overflow: visible !important;
  color: rgba(230,236,247,.90) !important;
  font-size: clamp(13px, 1.05vw, 15px) !important;
  font-weight: 680 !important;
  line-height: 1.05 !important;
  text-overflow: clip !important;
  white-space: normal !important;
}
html[data-view="devices"] .smart-summary-card strong {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  width: auto !important;
  max-width: none !important;
  min-width: max-content !important;
  overflow: visible !important;
  color: rgba(153,164,183,.82) !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  line-height: 1.05 !important;
  text-align: right !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

/* Final detail-header normalization: all detail pages use the Maintenance-style stack. */
html:not([data-view="landing"]) .detail-hero > .back-to-boards,
html:not([data-view="landing"]) .cozyla-topbar > .back-to-boards,
html[data-view="network"] .network-hero > .back-to-boards {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  margin: 0 0 5px !important;
}
html:not([data-view="landing"]) .detail-hero > .board-kicker,
html:not([data-view="landing"]) .detail-hero > h2,
html:not([data-view="landing"]) .detail-hero > p,
html:not([data-view="landing"]) .detail-hero > div,
html:not([data-view="landing"]) .cozyla-topbar > div,
html[data-view="network"] .network-hero > div {
  grid-column: 1 !important;
  justify-self: start !important;
  max-width: 46rem !important;
  text-align: left !important;
}
html:not([data-view="landing"]) .detail-hero h2,
html:not([data-view="landing"]) .cozyla-topbar h2,
html[data-view="network"] .network-hero h2,
html[data-view="grocery"] .grocery-hero h2 {
  margin: 0 !important;
  font-size: clamp(20px, 1.8vw, 26px) !important;
  font-weight: 820 !important;
  line-height: 1 !important;
  letter-spacing: -.035em !important;
}
html:not([data-view="landing"]) .detail-hero .board-kicker,
html:not([data-view="landing"]) .cozyla-topbar .board-kicker,
html:not([data-view="landing"]) .cozyla-topbar p.board-kicker,
html[data-view="network"] .network-hero .board-kicker {
  margin: 0 0 5px !important;
  font-size: 10px !important;
  line-height: 1 !important;
  letter-spacing: .19em !important;
}
html:not([data-view="landing"]) .detail-hero > .back-to-boards,
html:not([data-view="landing"]) .cozyla-topbar > .back-to-boards,
html[data-view="network"] .network-hero > .back-to-boards {
  font-size: 12px !important;
  font-weight: 720 !important;
}
html:not([data-view="landing"]) .detail-hero p:not(.board-kicker),
html:not([data-view="landing"]) .cozyla-topbar p:not(.board-kicker),
html[data-view="network"] .network-hero p:not(.board-kicker) {
  margin: 7px 0 0 !important;
  font-size: 12.5px !important;
}


/* Network device category badges */
html[data-view="network"] .network-kind {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 1px 7px;
  margin-right: 2px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, .22);
  background: rgba(125, 211, 252, .08);
  color: #d9f4ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
