:root {
  color-scheme: light;
  --ink: #19191d;
  --muted: #747782;
  --paper: #eef4fb;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.64);
  --line: rgba(22, 22, 26, 0.1);
  --line-strong: rgba(22, 22, 26, 0.18);
  --control: rgba(22, 22, 26, 0.065);
  --control-hover: rgba(22, 22, 26, 0.105);
  --accent: #09090b;
  --blue: #0a66d8;
  --green: #168554;
  --danger: #d7332a;
  --warning: #a76500;
  --shadow: 0 28px 80px rgba(29, 44, 77, 0.18);
  --shadow-soft: 0 14px 38px rgba(29, 44, 77, 0.11);
  --shadow-hairline: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
  --item-gradient: linear-gradient(145deg, #ffffff 0%, rgba(244, 249, 253, 0.98) 44%, rgba(224, 235, 247, 0.96) 100%);
  --item-gradient-hover: linear-gradient(145deg, #ffffff 0%, rgba(239, 247, 253, 0.99) 42%, rgba(211, 227, 244, 0.98) 100%);
  --item-rail: linear-gradient(180deg, #0a66d8 0%, #20a36a 100%);
  --waiting-ink: #232A3B;
  --waiting-ink-soft: #6E7690;
  --waiting-ink-faint: #A2A8BC;
  --waiting-surface: rgba(255, 255, 255, 0.92);
  --waiting-line: rgba(35, 42, 59, 0.08);
  --waiting-accent: #4A55C7;
  --waiting-accent-soft: #E9EAFB;
  --waiting-fresh: #4E9E7A;
  --waiting-fresh-soft: #E4F2EC;
  --waiting-soon: #D69A38;
  --waiting-soon-soft: #FBF0DC;
  --waiting-overdue: #C15B3E;
  --waiting-overdue-soft: #FBE7E0;
  --waiting-radius-lg: 22px;
  --waiting-radius-md: 16px;
  --waiting-radius-sm: 11px;
  --waiting-shadow: 0 1px 2px rgba(35, 42, 59, 0.04), 0 8px 24px -12px rgba(35, 42, 59, 0.18);
  --md-teal: #3fd1b8;
  --md-blue: #4a7cff;
  --md-grad: linear-gradient(135deg, #3fd1b8 0%, #4a7cff 100%);
  --md-grad-soft: linear-gradient(135deg, rgba(63,209,184,0.16) 0%, rgba(74,124,255,0.16) 100%);
  --md-peach: #ff9166;
  --md-peach-soft: rgba(255,145,102,0.14);
  --md-violet: #8c6bff;
  --md-violet-soft: rgba(140,107,255,0.14);
  --md-gold: #f2b23c;
  --md-gold-soft: rgba(242,178,60,0.14);
  --md-rose: #ff6b8b;
  --md-rose-soft: rgba(255,107,139,0.14);
  --md-sky: #3ea6f2;
  --md-sky-soft: rgba(62,166,242,0.14);
  --md-ink: #161c26;
  --md-ink-soft: #5b6675;
  --md-ink-faint: #98a2b0;
  --md-card-line: rgba(20,30,45,0.06);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

.booking-checkin-link { display:flex; align-items:center; justify-content:center; gap:8px; min-height:48px; border-radius:14px; background:var(--seg-flight); color:#fff; font-size:14px; font-weight:800; text-decoration:none; box-shadow:var(--shadow-hairline); }
.booking-checkin-link svg { width:18px; height:18px; }

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(130deg, rgba(213, 229, 255, 0.98) 0%, rgba(238, 244, 255, 0.86) 30%, rgba(250, 218, 221, 0.8) 64%, rgba(226, 241, 238, 0.86) 100%),
    var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -22%;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    linear-gradient(20deg, rgba(107, 143, 255, 0.18), rgba(255, 121, 94, 0.14), rgba(100, 216, 184, 0.14));
  filter: blur(46px) saturate(1.1);
  pointer-events: none;
}

/* Medarno Home is a deliberately separate, full-screen wall-panel surface. */
.medarno-home-shell { min-height:100vh; min-height:100dvh; background:#141b26; color:#eef1f5; display:flex; align-items:center; justify-content:center; padding:16px; overflow-x:hidden; font-family:"Helvetica Neue",Arial,sans-serif; }
.medarno-home-panel { position:relative; box-sizing:border-box; width:100%; max-width:1024px; min-height:736px; background:#1b2330; border-radius:28px; padding:32px; display:flex; overflow:hidden; }
.medarno-home-exit { position:absolute; right:22px; top:22px; z-index:2; min-height:56px; padding:0 18px; border:1px solid #34425a; border-radius:28px; color:#eef1f5; background:#2c394d; display:flex; align-items:center; font-weight:700; }
.medarno-home-exit svg { width:21px; height:21px; margin-right:7px; }
.medarno-home-left { width:368px; flex:0 0 368px; margin-right:28px; display:flex; flex-direction:column; }
.medarno-home-clock { font-size:88px; font-weight:200; letter-spacing:-.05em; line-height:.92; padding:2px 4px 0; font-variant-numeric:tabular-nums; }
.medarno-home-date { color:#a3b0c2; font-size:20px; font-weight:500; margin:8px 4px 0; text-transform:capitalize; }
.medarno-home-card { background:#243042; border-radius:28px; }
.medarno-home-weather { margin-top:16px; padding:18px 22px; }
.medarno-home-weather-top { display:flex; align-items:center; }
.medarno-home-weather-icon { color:#9cc7e8; width:80px; height:80px; margin-right:16px; }
.medarno-home-weather-icon svg { width:80px; height:80px; }
.medarno-home-weather-top strong { display:block; font-size:60px; font-weight:300; line-height:1; letter-spacing:-.04em; }
.medarno-home-weather-top b { font-size:22px; }
.medarno-home-kid { margin:14px 0 0; font-size:28px; line-height:1.2; font-weight:700; }
.medarno-home-things { display:flex; margin-top:14px; }
.medarno-home-things > div { flex:1 1 0; min-height:90px; border-radius:20px; background:#2c394d; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.medarno-home-things > div + div { margin-left:12px; }
.medarno-home-things span { color:#9cc7e8; font-size:28px; line-height:1; }
.medarno-home-things b { margin-top:6px; font-size:17px; }
.medarno-home-weather small { display:block; margin-top:14px; color:#a3b0c2; }
.medarno-home-day { margin-top:16px; padding:18px 22px; flex:1 1 auto; }
.medarno-home-day header, .medarno-home-lights-head { display:flex; align-items:center; justify-content:space-between; }
.medarno-home-day header strong { font-size:24px; }
.medarno-home-day header small { color:#a3b0c2; }
.medarno-home-day-items { margin-top:16px; }
.medarno-home-day-items > div { display:flex; align-items:center; margin-top:12px; font-size:18px; }
.medarno-home-day-items i { width:38px; height:38px; border-radius:19px; background:#2c394d; color:#9cc7e8; font-style:normal; display:flex; align-items:center; justify-content:center; margin-right:12px; font-size:14px; }
.medarno-home-day-items p { color:#a3b0c2; font-size:17px; line-height:1.45; }
.medarno-home-saxo-widget { position:relative; overflow:hidden; }
.medarno-home-saxo-widget:before { content:""; position:absolute; top:0; right:0; width:150px; height:150px; border-radius:50%; background:rgba(103,169,240,.08); transform:translate(45%,-48%); pointer-events:none; }
.medarno-home-saxo-events { margin-top:15px; padding-top:13px; border-top:1px solid rgba(119,187,232,.22); }
.medarno-home-saxo-events > div { display:flex; align-items:center; margin-top:9px; color:#dceeff; font-size:17px; font-weight:720; }
.medarno-home-saxo-events i { display:inline-flex; align-items:center; justify-content:center; min-width:48px; margin-right:8px; color:#86c9ef; font-style:normal; font-size:13px; font-variant-numeric:tabular-nums; }
.medarno-home-reminders { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin-top:16px; padding-top:14px; border-top:1px solid rgba(180,204,230,.14); }
.medarno-home-reminders strong { margin-right:3px; color:#f0d77c; font-size:15px; }
.medarno-home-reminders span { padding:6px 9px; border:1px solid rgba(240,215,124,.22); border-radius:999px; background:rgba(240,215,124,.09); color:#e9edf4; font-size:13px; line-height:1.25; }
.medarno-home-right { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; }
.medarno-home-lights-head { min-height:64px; padding-right:126px; }
.medarno-home-lights-head h1 { margin:0; font-size:30px; letter-spacing:-.02em; }
.medarno-home-lights-head p { margin:3px 0 0; color:#a3b0c2; font-size:16px; }
.medarno-home-lights-head button { min-height:56px; padding:0 20px; border-radius:28px; border:0; background:#2c394d; color:#eef1f5; font-size:17px; font-weight:700; display:flex; align-items:center; }
.medarno-home-lights-head button svg { width:20px; height:20px; margin-right:9px; }
.medarno-home-room-scenes { display:flex; gap:7px; overflow-x:auto; margin-top:11px; padding:3px 2px 5px; scrollbar-width:thin; }
.medarno-home-room-scenes button { flex:0 0 auto; min-height:32px; padding:0 11px; border:1px solid rgba(203,220,244,.2); border-radius:16px; background:linear-gradient(135deg,rgba(98,123,169,.78),rgba(43,58,85,.96)); color:#f5f8fd; box-shadow:0 4px 12px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.12); font-size:11px; font-weight:700; letter-spacing:.01em; }
.medarno-home-room-scenes button:active { transform:scale(.96); }
.medarno-home-room-scenes button span { display:inline-flex; width:16px; height:16px; align-items:center; justify-content:center; margin-right:4px; border-radius:8px; background:rgba(255,222,116,.2); color:#ffe38a; }
.medarno-home-room-scenes button.is-standard { border-color:rgba(139,224,205,.34); background:linear-gradient(135deg,rgba(40,150,132,.72),rgba(29,91,91,.95)); }
.medarno-home-room-scenes button.is-standard span { background:rgba(178,255,233,.17); color:#b6ffe9; }
.medarno-home-lights-grid { margin-top:16px; flex:1 1 auto; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:repeat(3,1fr); grid-gap:16px; }
.medarno-home-light-tile { min-height:165px; border:0; border-radius:28px; background:#27334a; color:#eef1f5; padding:16px 18px; text-align:left; display:flex; flex-direction:column; justify-content:space-between; }
.medarno-home-light-tile.is-on { background:#625328; box-shadow:inset 0 0 0 1px #d9b950; }
.medarno-home-light-tile.is-on button > span { background:#e7c451; color:#40350d; }
.medarno-home-light-tile > button { flex:1 1 auto; min-height:96px; padding:0 4px; border:0; color:inherit; background:transparent; text-align:left; display:grid; grid-template-columns:52px 1fr; grid-template-rows:1fr auto; column-gap:12px; align-items:center; }
.medarno-home-light-tile > button > span { grid-row:1 / 3; width:50px; height:50px; border-radius:25px; display:flex; align-items:center; justify-content:center; background:#2c394d; color:#9cc7e8; }
.medarno-home-light-tile svg { width:28px; height:28px; }
.medarno-home-light-tile strong { font-size:20px; align-self:end; }
.medarno-home-light-tile small { color:#a3b0c2; font-size:14px; align-self:start; }
.medarno-home-brightness { display:grid; grid-template-columns:auto 1fr auto; gap:8px; align-items:center; color:#a3b0c2; font-size:12px; }
.medarno-home-brightness input { accent-color:#e7c451; min-width:0; width:100%; }
.medarno-home-brightness output { color:#eef1f5; min-width:30px; text-align:right; }
.medarno-home-hue-empty { flex:1 1 auto; margin-top:16px; border-radius:28px; background:#243042; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:40px; }
.medarno-home-hue-empty > span { width:72px; height:72px; border-radius:36px; background:#2c394d; color:#9cc7e8; display:flex; align-items:center; justify-content:center; }
.medarno-home-hue-empty svg { width:34px; height:34px; }
.medarno-home-hue-empty h2 { margin:20px 0 8px; font-size:25px; }
.medarno-home-hue-empty p { color:#a3b0c2; max-width:340px; line-height:1.45; margin:0; }
@media (max-width: 760px) { .medarno-home-shell { align-items:flex-start; padding:0; } .medarno-home-panel { min-height:100vh; border-radius:0; display:block; padding:86px 18px 24px; } .medarno-home-exit { right:16px; top:16px; } .medarno-home-left { width:auto; margin:0; } .medarno-home-clock { font-size:70px; } .medarno-home-right { margin-top:22px; } .medarno-home-lights-head { padding-right:0; align-items:flex-end; gap:10px; } .medarno-home-lights-head button { font-size:15px; width:auto; padding:0 15px; justify-content:center; } .medarno-home-lights-head button svg { margin-right:7px; } .medarno-home-lights-grid { grid-template-columns:1fr; grid-template-rows:none; } .medarno-home-light-tile { min-height:145px; } .medarno-home-day { min-height:190px; } }
@media (prefers-reduced-motion: reduce) { .medarno-home-shell * { scroll-behavior:auto; } }

.progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 20px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(247, 247, 244, 0.84), rgba(247, 247, 244, 0));
}

.progress-panel {
  width: min(420px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.progress-title-row span,
.progress-panel p {
  color: var(--muted);
  font-size: 13px;
}

.progress-panel p {
  margin: 9px 0 0;
}

.progress-track {
  position: relative;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: var(--control);
}

.progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--blue);
  transition: width 160ms ease;
}

.progress-track.indeterminate span {
  width: 42%;
  animation: progress-slide 1s ease-in-out infinite;
}

@keyframes progress-slide {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--control);
  color: var(--ink);
  cursor: pointer;
  font-weight: 680;
  box-shadow: inset 0 0 0 1px rgba(22, 22, 26, 0.02);
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

button:hover {
  background: var(--control-hover);
}

button:active {
  transform: scale(0.98);
}

button.is-activating {
  transform: scale(0.98);
  filter: brightness(0.96);
}

button.is-instant-pending,
button[aria-busy="true"] {
  cursor: progress;
  opacity: 0.72;
  pointer-events: none;
}

button.is-instant-pending:not(.icon-button):not(.check-button):not(.star-button):not(.trash-button):not(.fab)::after,
button[aria-busy="true"]:not(.icon-button):not(.check-button):not(.star-button):not(.trash-button):not(.fab)::after {
  content: "";
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.55em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  vertical-align: -0.08em;
  animation: button-pending-spin 760ms linear infinite;
}

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

.primary {
  background: linear-gradient(180deg, #1f7bf2, var(--blue));
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 102, 216, 0.22);
}

.primary.dark {
  background: #111116;
  color: #fff;
}

.fab {
  background: var(--md-grad);
  color: #fff;
}

.danger {
  color: var(--danger);
  background: rgba(215, 51, 42, 0.1);
}

.icon-button,
.check-button,
.star-button,
.trash-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trash-button {
  color: var(--danger);
  background: rgba(201, 53, 43, 0.1);
}

.trash-button:hover {
  background: rgba(201, 53, 43, 0.16);
}

.trash-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 10px 24px rgba(36, 51, 47, 0.16);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.auth-shell h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 0;
}

.auth-mode-tabs {
  display: flex;
  gap: 4px;
  width: min(420px, 92vw);
  margin-top: 14px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: var(--shadow-soft), var(--shadow-hairline);
  backdrop-filter: blur(20px);
}

.auth-mode-tabs button {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 840;
}

.auth-mode-tabs button.active {
  background: #111116;
  color: #fff;
  box-shadow: 0 12px 26px rgba(17, 17, 22, 0.16);
}

.google-auth-actions {
  display: grid;
  gap: 10px;
  width: min(420px, 92vw);
}

.google-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  box-shadow: var(--shadow-soft), var(--shadow-hairline);
  backdrop-filter: blur(20px);
}

.google-signin-primary {
  border-color: rgba(17, 17, 22, 0.9);
  background: #111116;
  color: #fff;
  box-shadow: 0 18px 36px rgba(17, 17, 22, 0.18);
}

.google-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.terms-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: min(420px, 92vw);
  min-height: 34px;
  padding: 0 6px 2px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: none;
  cursor: pointer;
  user-select: none;
}

.terms-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.terms-check {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 2px solid rgba(107, 111, 124, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
}

.terms-check::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
}

.terms-chip:has(input:checked) {
  color: var(--ink);
  background: transparent;
}

.terms-chip:has(input:checked) .terms-check {
  border-color: #111116;
  background: #111116;
}

.terms-chip:has(input:checked) .terms-check::after {
  opacity: 1;
}

.terms-chip a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(420px, 92vw);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-form,
.form-grid {
  display: grid;
  gap: 10px;
  width: min(420px, 92vw);
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft), var(--shadow-hairline);
  backdrop-filter: blur(20px);
}

.form-grid {
  width: 100%;
}

.form-grid.compact {
  max-width: 720px;
  padding: 0;
  border: 0;
  background: transparent;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(22, 22, 26, 0.06);
  background: rgba(22, 22, 26, 0.055);
  color: var(--ink);
  border-radius: 8px;
  padding: 12px 13px;
  min-height: 42px;
  outline: none;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(35, 104, 216, 0.35);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(35, 104, 216, 0.14);
}

textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.45;
}

.app-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 24px;
  min-height: 100vh;
  padding: 24px;
}

.pull-refresh-indicator {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 10px);
  left: 50%;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-52px + var(--pull-distance, 0px)));
  transition: opacity 160ms ease, transform 180ms ease, background-color 160ms ease;
  box-shadow: 0 16px 40px rgba(29, 44, 77, 0.14), var(--shadow-hairline);
  backdrop-filter: blur(22px) saturate(1.14);
}

.pull-refresh-indicator.active,
.pull-refresh-indicator.refreshing {
  opacity: 1;
}

.pull-refresh-indicator.ready {
  background: rgba(255, 255, 255, 0.9);
}

.pull-refresh-spinner {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.pull-refresh-spinner svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.pull-refresh-indicator.refreshing .pull-refresh-spinner {
  animation: pull-refresh-spin 850ms linear infinite;
}

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

@media (min-width: 901px) {
  .pull-refresh-indicator {
    display: none;
  }
}

.sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 48px);
  padding: 16px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.15);
}

.sidebar-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.sidebar .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  box-shadow: 0 12px 32px rgba(35, 112, 255, 0.18);
}

.nav {
  display: grid;
  gap: 4px;
}

.install-app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  box-shadow: var(--shadow-hairline);
  font-size: 13px;
  font-weight: 850;
  backdrop-filter: blur(18px) saturate(1.1);
}

.install-app-button:hover {
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-1px);
}

.install-app-button svg,
.menu-install-icon svg,
.install-guide-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav button,
.mobile-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  background: transparent;
  color: var(--muted);
  width: 100%;
  text-align: left;
  border-radius: 999px;
  box-shadow: none;
}

.nav button.active,
.mobile-tabs button.active {
  background: #111116;
  color: #fff;
  box-shadow: 0 12px 26px rgba(17, 17, 22, 0.18);
}

.nav .support-nav-button,
.menu-list .support-nav-button,
.nav .support-chat-nav-button,
.menu-list .support-chat-nav-button {
  color: #8d6673;
}

.nav .support-nav-button:hover,
.menu-list .support-nav-button:hover,
.nav .support-chat-nav-button:hover,
.menu-list .support-chat-nav-button:hover {
  background: rgba(255, 255, 255, 0.54);
  color: #e23368;
}

.support-nav-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.nav-badge {
  position: absolute;
  top: -6px;
  right: -16px;
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 0;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
}

.nav-count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.nav-unlock-toast {
  position: sticky;
  top: 10px;
  z-index: 30;
  width: fit-content;
  max-width: min(520px, 100%);
  margin: 0 auto 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 38px rgba(31, 41, 55, 0.14);
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
  backdrop-filter: blur(22px) saturate(1.15);
}

.app-toast {
  position: sticky;
  top: 10px;
  z-index: 30;
  width: fit-content;
  max-width: min(520px, 100%);
  margin: 0 auto 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, #20222e, #171821);
  box-shadow: 0 18px 38px rgba(17, 17, 22, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 820;
  backdrop-filter: blur(22px) saturate(1.15);
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  min-width: 22px;
  height: 22px;
  color: currentColor;
  font-size: 12px;
  font-weight: 850;
}

.mobile-menu-button {
  gap: 0;
}

.mobile-menu-icon {
  display: grid;
  gap: 4px;
  width: 20px;
}

.mobile-menu-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.main {
  width: min(1180px, 100%);
  padding: 10px 8px 110px;
}

.app-header {
  position: sticky;
  top: 24px;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 24px;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.search-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  box-shadow: 0 16px 44px rgba(29, 44, 77, 0.11), var(--shadow-hairline);
  backdrop-filter: blur(24px) saturate(1.12);
}

.notes-search-panel {
  margin-bottom: 16px;
}

.notes-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 188px;
  gap: 16px;
  align-items: start;
}

.notes-type-panel,
.notes-space-panel {
  position: sticky;
  top: 24px;
}

.notes-type-panel h1 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.notes-type-nav,
.notes-space-list {
  display: grid;
  gap: 8px;
}

.notes-type-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow-hairline);
  color: rgba(23, 23, 28, 0.68);
  font-size: 14px;
  font-weight: 800;
}

.notes-type-button small,
.notes-mobile-type-strip .shop-filter-pill small {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: inherit;
  font-size: 11px;
  font-weight: 850;
}

.notes-type-button.is-active {
  background: #111116;
  color: #fff;
  box-shadow: 0 12px 26px rgba(17, 17, 22, 0.18);
}

.notes-space-panel {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 14px 38px rgba(29, 44, 77, 0.08), var(--shadow-hairline);
  backdrop-filter: blur(22px) saturate(1.08);
}

.notes-side-heading {
  margin: 2px 2px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.notes-space-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: none;
  color: rgba(23, 23, 28, 0.72);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.notes-space-button::before {
  content: "";
  width: 6px;
  height: 22px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--group-color, rgba(23, 23, 28, 0.16));
}

.notes-space-button.is-active {
  border-color: var(--group-soft, rgba(17, 17, 22, 0.16));
  background: linear-gradient(90deg, var(--group-tint, rgba(17, 17, 22, 0.08)), rgba(255, 255, 255, 0.46));
  color: #111116;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.notes-mobile-type-strip {
  display: none;
}

.tasks-header,
.lists-header,
.notes-header {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.tasks-header .overview-create-form,
.lists-header .overview-create-form,
.notes-header .overview-create-form {
  margin: 0;
}

.note-type-tabs .list-type-pill {
  gap: 7px;
}

.note-type-tabs .list-type-pill small {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: inherit;
  font-size: 11px;
  font-weight: 850;
}

.note-type-tabs .list-type-pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notes-mobile-space-select {
  display: none;
}

.notes-main-panel,
.notes-content-group,
.notes-card-list {
  min-width: 0;
}

.notes-main-panel > .note-group-filter-strip {
  display: none;
}

.notes-search-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  box-shadow: 0 16px 44px rgba(29, 44, 77, 0.11), var(--shadow-hairline);
  backdrop-filter: blur(24px) saturate(1.12);
}

.notes-search-form input {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.notes-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.notes-section-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.notes-card-list {
  display: grid;
  gap: 12px;
}

.notes-card-list .empty-card {
  min-height: 90px;
}

.recipe-note-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(126px, 152px);
  gap: 10px;
  overflow-x: auto;
  padding: 1px 0 6px;
  scrollbar-width: none;
}

.recipe-note-strip::-webkit-scrollbar {
  display: none;
}

.recipe-note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.recipe-note-card {
  position: relative;
  display: grid;
  gap: 9px;
  min-height: 142px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.28)),
    linear-gradient(135deg, #ffe7cc, #dff5e6);
  box-shadow: 0 16px 42px rgba(29, 44, 77, 0.11), var(--shadow-hairline);
  overflow: hidden;
}

.recipe-note-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--group-color, rgba(255, 155, 77, 0.72));
}

.recipe-note-thumb {
  min-height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.38);
  background-position: center;
  background-size: cover;
}

.recipe-note-placeholder {
  display: grid;
  place-items: center;
  color: rgba(23, 23, 28, 0.42);
}

.recipe-note-placeholder svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.recipe-note-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.note-library-card {
  min-height: 138px;
}

.note-library-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.note-library-meta span {
  min-height: 22px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.search-header input {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.search-mark {
  color: var(--muted);
  font-size: 19px;
}

.fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 20;
  display: inline-grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  font-size: 27px;
  line-height: 1;
  box-shadow: 0 14px 26px -10px rgba(74, 124, 255, 0.6);
}

.fab-stack {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 20;
  display: grid;
  gap: 12px;
}

.event-capture-fab-wrap { position:fixed; right:28px; bottom:144px; z-index:21; display:flex; align-items:center; gap:8px; max-width:calc(100vw - 56px); }
.event-capture-pill { display:flex; align-items:center; gap:7px; min-width:0; max-width:168px; padding:7px 12px 7px 10px; border-radius:999px; background:rgba(124,92,252,.94); color:#fff; box-shadow:0 12px 24px -12px rgba(37,27,93,.54); font-size:11.5px; font-weight:700; }
.event-capture-pill i { width:6px; height:6px; flex:0 0 6px; border-radius:50%; background:#7cffb2; box-shadow:0 0 0 0 rgba(124,255,178,.55); animation:eventCapturePulse 1.8s infinite; }.event-capture-pill b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.event-capture-fab { position:relative; display:grid; place-items:center; width:50px; min-width:50px; height:50px; min-height:50px; padding:0; border:0; border-radius:50%; background:linear-gradient(135deg,#8b67f5,#6448d8); color:#fff; box-shadow:0 14px 24px -11px rgba(68,47,173,.64); }.event-capture-fab::after { content:""; position:absolute; inset:-6px; border:2px solid rgba(124,92,252,.35); border-radius:50%; animation:eventCaptureRing 2.4s infinite; }.event-capture-fab svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
@keyframes eventCapturePulse { 0% { box-shadow:0 0 0 0 rgba(124,255,178,.55); } 70% { box-shadow:0 0 0 6px rgba(124,255,178,0); } 100% { box-shadow:0 0 0 0 rgba(124,255,178,0); } }
@keyframes eventCaptureRing { 0% { transform:scale(.9); opacity:.9; } 100% { transform:scale(1.35); opacity:0; } }
.event-capture-sheet { display:block; width:min(420px,calc(100vw - 20px)); max-width:420px; padding:10px 20px max(26px,env(safe-area-inset-bottom)); overflow:hidden; background:#fff; }.event-capture-handle { width:36px; height:4px; margin:4px auto 14px; border-radius:999px; background:var(--line); }.event-capture-sheet .sheet-title-row { position:static; min-height:0; margin:0 0 4px; padding:0; background:transparent; border:0; }.event-capture-sheet .sheet-title-row > div { position:relative; padding-left:16px; }.event-capture-dot { position:absolute; top:6px; left:0; width:8px; height:8px; border-radius:50%; background:linear-gradient(135deg,#8b67f5,#6448d8); }.event-capture-sheet .sheet-title-row h2 { font-size:15.5px; line-height:1.2; }.event-capture-sheet .sheet-title-row p { margin:2px 0 16px; color:var(--muted); font-size:12.5px; font-weight:500; }.event-capture-sheet .sheet-title-row p b { color:#6941c6; font-weight:700; }.event-capture-sheet .sheet-close { width:34px; height:34px; border:0; border-radius:50%; background:rgba(23,23,28,.06); color:var(--ink); font-size:24px; font-weight:500; line-height:1; }.event-capture-sheet .sheet-form { display:grid; gap:0; padding:0; }.event-capture-sheet textarea { min-height:78px; padding:12px 13px; border:1.5px solid var(--line); border-radius:14px; background:var(--bg); box-shadow:none; color:var(--ink); font-size:14.5px; line-height:1.4; resize:none; }.event-capture-sheet textarea:focus { border-color:#8b67f5; background:#fff; box-shadow:none; outline:0; }.event-capture-sheet textarea::placeholder { color:rgba(23,23,28,.42); }.event-capture-sheet .sheet-actions { display:block; margin:0; padding:0; }.event-capture-sheet .capture-tools { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin:14px 0 18px; }.event-capture-sheet .capture-tool-button { width:auto; min-width:0; height:52px; min-height:52px; padding:7px; border:1.5px solid var(--line); border-radius:13px; background:#fff; color:var(--muted); font-size:9.5px; font-weight:700; }.event-capture-sheet .capture-tool-button svg { width:18px; height:18px; stroke-width:1.8; }.event-capture-sheet .event-capture-tool-voice { color:var(--ink); }.event-capture-sheet .event-capture-tool-scan { background:linear-gradient(135deg,#8b67f5,#6448d8); border-color:transparent; color:#fff; }.event-capture-sheet .event-capture-tool-photo { gap:3px; }.event-capture-sheet .sheet-actions .primary { width:100%; min-height:50px; margin:0; padding:0 16px; border-radius:14px; background:linear-gradient(135deg,#8b67f5,#6448d8); font-size:15px; font-weight:800; }.event-capture-status { margin:14px 0 0; padding:11px 13px; border-radius:12px; background:rgba(124,92,252,.09); color:var(--ink); font-size:13px; }
.meeting-capture-toggle { display:inline-flex; align-items:center; gap:6px; min-height:28px; padding:3px 8px 3px 4px; border-radius:999px; background:rgba(124,92,252,.1); color:#6941c6; cursor:pointer; font-size:11px; font-weight:800; }.meeting-capture-toggle input { position:absolute; opacity:0; pointer-events:none; }.meeting-capture-toggle > span { position:relative; width:28px; height:16px; border-radius:999px; background:rgba(23,23,28,.18); transition:background .18s ease; }.meeting-capture-toggle > span::after { content:""; position:absolute; top:3px; left:3px; width:10px; height:10px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(23,23,28,.25); transition:transform .18s ease; }.meeting-capture-toggle input:checked + span { background:#7c5cfc; }.meeting-capture-toggle input:checked + span::after { transform:translateX(12px); }.meeting-capture-toggle input:checked ~ b { color:#6941c6; }
.meeting-event-people { margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }.event-person { display:block; width:100%; margin-top:8px; padding:11px 12px; border:1px solid var(--line); border-radius:12px; background:#fff; text-align:left; color:var(--ink); }.event-person span { display:block; margin-top:3px; color:var(--muted); font-size:13px; }.event-person.pending { background:rgba(74,124,255,.05); }.event-person.pending > div { display:flex; gap:8px; margin-top:10px; }
@media (max-width:900px) { .event-capture-fab-wrap { right:22px; bottom:132px; max-width:calc(100vw - 44px); } }
@media (max-width:560px) { .event-capture-sheet { width:100vw; max-width:none; padding:10px 20px max(26px,env(safe-area-inset-bottom)); border-radius:26px 26px 0 0; }.event-capture-sheet textarea { font-size:16px; } }

.fab-stack .fab {
  position: static;
}

.message-fab {
  display: inline-grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  justify-self: end;
  line-height: 0;
  border: 0;
  background: #fff;
  box-shadow: 0 10px 20px -10px rgba(20, 40, 70, 0.35);
  color: var(--md-ink-soft);
}

.message-fab svg {
  width: 19px;
  height: 19px;
}

.content-group {
  margin-bottom: 22px;
}

.today-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.today-main {
  display: grid;
  gap: 16px;
}

.today-main > .content-group,
.today-main > .get-started-card {
  margin-bottom: 0;
}

.today-week-plan-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(91, 102, 179, 0.18);
  border-radius: 25px;
  background: linear-gradient(135deg, #252b5f 0%, #3a3b7f 54%, #5a72ba 145%);
  box-shadow: 0 18px 38px -25px rgba(36, 42, 106, 0.72), inset 0 1px rgba(255,255,255,0.14);
  color: #fff;
}

.today-week-plan-card.is-ready {
  background: linear-gradient(135deg, #173c50 0%, #266d79 54%, #518d9a 145%);
}

.today-week-plan-glow {
  position: absolute;
  width: 210px;
  height: 210px;
  top: -130px;
  right: -52px;
  border-radius: 50%;
  background: rgba(181, 223, 255, 0.22);
  filter: blur(3px);
  pointer-events: none;
}

.today-week-plan-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255,255,255,0.16);
  box-shadow: inset 0 1px rgba(255,255,255,0.25);
}

.today-week-plan-icon svg { width: 25px; height: 25px; }
.today-week-plan-copy { position: relative; min-width: 0; }
.today-week-plan-copy > span { display:block; margin-bottom:4px; color:rgba(235,246,255,.72); font-size:10px; font-weight:850; letter-spacing:.13em; }
.today-week-plan-copy h2 { margin:0; color:#fff; font-size:19px; letter-spacing:-.035em; }
.today-week-plan-copy p { margin:5px 0 0; color:rgba(244,250,255,.82); font-size:13px; line-height:1.4; }
.today-week-plan-actions { position:relative; display:flex; align-items:center; gap:8px; }
.today-week-plan-primary { display:grid; grid-template-columns:20px auto; column-gap:8px; align-items:center; padding:10px 13px; border:0; border-radius:16px; background:#fff; box-shadow:0 10px 20px -12px rgba(6,15,51,.72); color:#29316e; text-align:left; }
.today-week-plan-primary svg { grid-row:span 2; width:18px; height:18px; }
.today-week-plan-primary b { font-size:12px; line-height:1.1; }
.today-week-plan-primary small { grid-column:2; margin-top:2px; color:#6b7194; font-size:10px; }
.today-week-plan-text-toggle { border:1px solid rgba(255,255,255,.25); border-radius:14px; padding:10px; background:rgba(9,19,68,.18); color:#fff; font-size:12px; font-weight:750; white-space:nowrap; }
.today-week-plan-text-toggle svg { width:15px; height:15px; margin-right:4px; vertical-align:-3px; }
.today-week-plan-primary:active, .today-week-plan-text-toggle:active { transform:scale(.97); }
.today-week-plan-text-form { grid-column:2 / -1; position:relative; display:grid; gap:10px; }
.today-week-plan-text-form textarea { min-height:104px; width:100%; resize:vertical; border:1px solid rgba(255,255,255,.26); border-radius:16px; padding:12px; background:rgba(11,24,75,.25); color:#fff; font:inherit; line-height:1.45; }
.today-week-plan-text-form textarea::placeholder { color:rgba(240,247,255,.7); }
.today-week-plan-text-form > div { display:flex; justify-content:flex-end; gap:8px; }
.today-week-plan-text-form button { border:0; border-radius:12px; padding:9px 12px; background:rgba(255,255,255,.16); color:#fff; font-size:12px; font-weight:750; }
.today-week-plan-text-form .today-week-plan-submit { background:#fff; color:#2d3677; }

@media (max-width: 680px) {
  .today-week-plan-card { grid-template-columns:46px minmax(0,1fr); gap:12px; padding:16px; border-radius:22px; }
  .today-week-plan-icon { width:46px; height:46px; border-radius:15px; }
  .today-week-plan-copy h2 { font-size:18px; }
  .today-week-plan-copy p { font-size:12px; }
  .today-week-plan-actions { grid-column:1 / -1; display:grid; grid-template-columns:minmax(0,1fr) auto; }
  .today-week-plan-primary { min-width:0; justify-content:start; }
  .today-week-plan-text-toggle { padding:11px 10px; }
  .today-week-plan-text-toggle svg { display:none; }
  .today-week-plan-text-form { grid-column:1 / -1; }
}

.mobile-today-brand {
  display: none;
}

.today-top-strip {
  justify-content: space-between;
  gap: 12px;
}

.weather-widget {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "icon temp"
    "icon detail";
  column-gap: 7px;
  row-gap: 0;
  align-items: center;
  min-height: 48px;
  padding: 7px 11px 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow-hairline);
  backdrop-filter: blur(18px) saturate(1.08);
}

.weather-widget:hover {
  background: rgba(255, 255, 255, 0.68);
}

.today-weather-actions,
.desktop-weather-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.notifications-wrap {
  position: relative;
  flex: 0 0 auto;
}

.notification-bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-hairline);
  color: var(--ink);
}

.notification-bell svg {
  width: 19px;
  height: 19px;
}

.notification-bell .nav-badge {
  top: -4px;
  right: -5px;
  border: 2px solid rgba(255, 255, 255, 0.92);
}

.notifications-dropdown {
  position: absolute;
  z-index: 60;
  top: calc(100% + 9px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 46px -14px rgba(24, 26, 38, 0.24), var(--shadow-hairline);
}

.notifications-dropdown::before {
  position: absolute;
  top: -7px;
  right: 15px;
  width: 12px;
  height: 12px;
  content: "";
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
  transform: rotate(45deg);
}

.notifications-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 15px 8px;
  border-bottom: 1px solid rgba(22, 22, 26, 0.07);
}

.notifications-dropdown-head strong {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.notifications-dropdown-head button {
  min-height: 28px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--blue);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
}

.notifications-list {
  max-height: min(360px, calc(100vh - 150px));
  overflow: auto;
}

.notification-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  width: 100%;
  position: relative;
  padding: 11px 15px;
  border: 0;
  border-bottom: 1px solid rgba(22, 22, 26, 0.06);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  text-align: left;
}

.notification-row:last-child {
  border-bottom: 0;
}

.notification-row.is-unread {
  background: transparent;
}

.notification-row::after {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: transparent;
  content: "";
}

.notification-row.is-unread::after {
  background: #8b7cf6;
}

.notification-row.is-unread.is-nudge::after {
  background: #1f9aae;
}

.icon-sq {
  display: grid;
  place-items: center;
  width: var(--miniapp-icon-size, 34px);
  min-width: var(--miniapp-icon-size, 34px);
  height: var(--miniapp-icon-size, 34px);
  border-radius: 10px;
  color: var(--blue);
}

.icon-sq svg {
  width: calc(var(--miniapp-icon-size, 34px) * 0.5);
  height: calc(var(--miniapp-icon-size, 34px) * 0.5);
  stroke-width: 1.8;
}

.icon-sq.sky { background: var(--md-sky-soft); color: var(--md-sky); }
.icon-sq.gold { background: var(--md-gold-soft); color: var(--md-gold); }
.icon-sq.violet { background: var(--md-violet-soft); color: var(--md-violet); }
.icon-sq.teal { background: rgba(63, 209, 184, 0.16); color: var(--md-teal); }
.icon-sq.rose { background: var(--md-rose-soft); color: var(--md-rose); }
.icon-sq.peach { background: var(--md-peach-soft); color: var(--md-peach); }
.icon-sq.neutral { background: #eef1f5; color: var(--md-ink-soft); }
.icon-sq.update { background: #e7e3fb; color: #6c5ce7; }
.icon-sq.nudge { background: #dff4f6; color: #1f9aae; }
.icon-sq.trips { background: #d7f0fa; color: #1d8fb0; }
.icon-sq.food { background: #eaf3d9; color: #6b9b37; }
.icon-sq.weight { background: #e4e8f0; color: #5b6b85; }

.notification-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.notification-copy strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 500;
}

.notification-copy strong i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--blue);
}

.notification-copy > span,
.notification-copy small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.45;
}

.notification-copy > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notification-row.is-expanded .notification-copy > span {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  white-space: pre-wrap;
}

.notification-copy small {
  font-size: 10px;
  font-weight: 400;
}

.notification-copy .mention-chip {
  font-size: 11px;
}

.notification-copy .notification-miniapp-link {
  color: var(--blue);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.notifications-empty {
  margin: 0;
  padding: 22px 14px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.notification-settings-panel {
  display: grid;
  gap: 18px;
}

.notification-composer {
  display: grid;
  gap: 11px;
}

.notification-composer label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.notification-composer textarea {
  min-height: 116px;
  resize: vertical;
}

.notification-composer .primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.notification-composer .primary svg {
  width: 16px;
  height: 16px;
}

.notification-preview {
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(70, 110, 242, 0.06);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
}

.notification-preview > span {
  color: var(--muted);
}

.notification-sent-list,
.notification-miniapps {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.notification-sent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(22, 22, 26, 0.07);
}

.notification-sent-row > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.notification-sent-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.notification-sent-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.notification-sent-row .icon-button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  margin-left: auto;
  color: var(--muted);
}

.notification-sent-row .trash-icon {
  width: 17px;
  height: 17px;
}

.notification-miniapp-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(22, 22, 26, 0.07);
  border-radius: 12px;
}

.notification-miniapp-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

.notification-miniapp-table th,
.notification-miniapp-table td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(22, 22, 26, 0.07);
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.notification-miniapp-table th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.notification-miniapp-table tr:last-child td {
  border-bottom: 0;
}

.notification-miniapp-slug {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
}

.notification-miniapp-table input:not([type="checkbox"]) {
  width: 100%;
  min-width: 105px;
  min-height: 34px;
  padding: 6px 7px;
  font-size: 12px;
}

.notification-miniapp-table input[type="checkbox"] {
  width: 17px;
  height: 17px;
}

.notification-miniapp-actions {
  display: inline-flex;
  gap: 5px;
}

.notification-miniapp-actions button,
.notification-miniapp-add button {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 11px;
}

.notification-miniapp-add {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.2fr 0.8fr auto;
  gap: 7px;
}

.notification-miniapp-add input {
  min-width: 0;
  min-height: 38px;
  padding: 8px 9px;
  font-size: 12px;
}

@media (max-width: 640px) {
  .notification-miniapp-add {
    grid-template-columns: 1fr 1fr;
  }

  .notification-miniapp-add input:nth-child(3),
  .notification-miniapp-add input:nth-child(4),
  .notification-miniapp-add button {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .mobile-today-brand.today-top-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin: 0 0 14px;
    font-family: Inter, sans-serif;
  }

  .today-mobile-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--md-ink-faint);
    font-size: 12.5px;
    font-weight: 600;
  }

  .today-mobile-mark {
    display: grid;
    width: 30px;
    min-width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    overflow: hidden;
  }

  .today-mobile-mark img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .today-mobile-greeting {
    grid-column: 1 / -1;
    margin: 1px 0 0;
    color: var(--md-ink);
    font-family: Manrope, sans-serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
  }

  .today-weather-actions {
    gap: 7px;
    --today-header-control-size: 48px;
  }

  .today-top-strip .weather-widget {
    display: inline-flex;
    align-items: center;
    min-height: var(--today-header-control-size);
    padding: 7px 11px;
    gap: 5px;
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 16px -8px rgba(20, 40, 70, 0.25);
    backdrop-filter: none;
    color: var(--md-ink-soft);
  }

  .today-top-strip .weather-icon {
    font-size: 14px;
    line-height: 1;
  }

  .today-top-strip .weather-temp {
    color: var(--md-ink);
    font-size: 12px;
    font-weight: 700;
  }

  .today-top-strip .weather-detail {
    display: none;
  }

  .today-top-strip .notification-bell {
    width: var(--today-header-control-size);
    min-width: var(--today-header-control-size);
    height: var(--today-header-control-size);
    min-height: var(--today-header-control-size);
    border: 0;
    background: #fff;
    box-shadow: 0 6px 16px -8px rgba(20, 40, 70, 0.25);
    color: var(--md-ink-soft);
  }

  .today-top-strip .notification-bell svg {
    width: 19px;
    height: 19px;
  }

  .today-top-strip .notification-bell .nav-badge {
    top: 2px;
    right: 2px;
    width: 7px;
    min-width: 7px;
    height: 7px;
    padding: 0;
    border: 1px solid #fff;
    color: transparent;
    font-size: 0;
  }

  .today-water-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 22px -16px rgba(20, 40, 70, 0.35);
    backdrop-filter: none;
  }

  .today-water-main {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
  }

  .today-water-ring {
    width: 30px;
    height: 30px;
    background: var(--md-sky-soft);
  }

  .today-water-ring span {
    width: 30px;
    height: 30px;
    color: var(--md-sky);
  }

  .today-water-ring svg {
    width: 16px;
    height: 16px;
  }

  .today-water-copy {
    display: grid;
    gap: 2px;
  }

  .today-water-copy strong {
    color: var(--md-ink);
    font-size: 12.5px;
    font-weight: 700;
  }

  .today-water-subtitle {
    display: none;
  }

  .today-water-copy small {
    color: var(--md-ink-faint);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
  }

  .today-water-progress {
    display: block;
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: 4px;
    background: #eef1f5;
  }

  .today-water-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--md-sky);
  }

  .today-water-actions {
    gap: 5px;
  }

  .today-water-tap {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    border: 0;
    border-radius: 10px;
    background: #f5f8fc;
    box-shadow: none;
    color: var(--md-sky);
  }

  .today-water-tap.primary {
    background: var(--md-sky-soft);
  }

  .today-water-tap svg {
    width: 16px;
    height: 16px;
  }

  .today-main {
    gap: 12px;
  }

  .today-main .content-group {
    margin: 0;
  }

  .today-main .execution-card {
    padding: 12px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 22px -16px rgba(20, 40, 70, 0.35);
  }

  .today-main .section-title-row {
    align-items: center;
    margin-bottom: 9px;
  }

  .today-main .section-title-row h2 {
    color: var(--md-ink);
    font-family: Manrope, sans-serif;
    font-size: 15.5px;
    font-weight: 800;
  }

  .today-main .section-title-row .section-count,
  .today-top3-section .section-title-row > button {
    min-height: 24px;
    padding: 5px 9px;
    border: 0;
    border-radius: 20px;
    background: #f1f3f6;
    color: var(--md-ink-faint);
    box-shadow: none;
    font-size: 10px;
    font-weight: 600;
  }

  .today-main .dense-list {
    gap: 6px;
  }

  .today-agenda-section .dense-row {
    grid-template-columns: 26px minmax(0, 1fr) auto auto;
    min-height: 0;
    padding: 8px 9px;
    gap: 8px;
    border: 0;
    border-left: 3px solid #c7d0db;
    border-radius: 13px;
    background: #f6f8fb;
    box-shadow: none;
  }

  .today-agenda-section .dense-row::before {
    display: none;
  }

  .today-agenda-section .dense-time {
    display: grid;
    width: 26px;
    min-width: 26px;
    height: 26px;
    place-items: center;
    color: var(--md-ink-soft);
  }

  .today-agenda-section .today-agenda-event-icon,
  .today-agenda-section .prepper-agenda-icon {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 9px;
    background: #e9edf2;
    color: var(--md-ink-soft);
  }

  .today-agenda-section .today-agenda-event-icon svg,
  .today-agenda-section .prepper-agenda-icon svg {
    width: 14px;
    height: 14px;
  }

  .today-agenda-section .dense-main h3 {
    color: var(--md-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
  }

  .today-agenda-section .today-agenda-time-badge {
    padding: 4px 7px;
    border-radius: 10px;
    background: #eef1f5;
    color: var(--md-ink-soft);
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
  }

  .today-agenda-section .dense-main p,
  .today-agenda-section .dense-meta {
    color: var(--md-ink-faint);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.25;
  }

  .today-agenda-section .house-agenda-row {
    border-left-color: var(--md-teal);
    background: linear-gradient(90deg, rgba(63, 209, 184, 0.10), rgba(63, 209, 184, 0.03));
  }

  .today-agenda-section .house-agenda-row .dense-time {
    width: 26px;
  }

  .today-agenda-section .house-agenda-row .check-button {
    width: 19px;
    min-width: 19px;
    height: 19px;
    min-height: 19px;
    border: 2px solid #cfe9e3;
  }

  .today-agenda-section .house-agenda-actions .icon-button {
    display: grid;
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
    padding: 0;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--md-teal);
    box-shadow: 0 4px 10px -7px rgba(20, 40, 70, 0.4);
  }

  .today-agenda-section .house-agenda-actions .icon-button svg {
    width: 13px;
    height: 13px;
  }

  .today-agenda-section .today-agenda-meeting {
    border-left-color: var(--md-violet);
    background: linear-gradient(90deg, rgba(140, 107, 255, 0.10), rgba(140, 107, 255, 0.03));
  }

  .today-agenda-section .today-agenda-meeting .today-agenda-event-icon {
    background: var(--md-violet-soft);
    color: var(--md-violet);
  }

  .today-agenda-section .compact-actions {
    display: inline-flex;
    margin-top: 4px;
    gap: 4px;
  }

  .today-agenda-section .compact-actions button {
    min-height: 23px;
    padding: 4px 8px;
    border: 0;
    border-radius: 12px;
    background: rgba(140, 107, 255, 0.12);
    color: var(--md-violet);
    box-shadow: none;
    font-size: 10.5px;
    font-weight: 700;
  }

  .today-agenda-section .agenda-event-actions,
  .today-agenda-section .trash-button {
    align-self: center;
  }

  .today-top3-section .task-row {
    display: grid;
    grid-template-columns: 19px minmax(0, 1fr) auto;
    min-height: 38px;
    padding: 8px 0;
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .today-top3-section .task-row + .task-row {
    border-top: 1px solid var(--md-card-line);
  }

  .today-top3-section .task-row::before {
    display: none;
  }

  .today-top3-section .task-row .check-button,
  .today-top3-section .task-row .undo-button {
    width: 19px;
    min-width: 19px;
    height: 19px;
    min-height: 19px;
    margin: 0;
    border: 2px solid #dbe1e9;
  }

  .today-top3-section .task-main {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .today-top3-section .task-main h3 {
    flex: 1;
    overflow: hidden;
    color: var(--md-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .today-top3-section .task-meta-row,
  .today-top3-section .task-row-actions {
    display: none;
  }

  .today-task-quadrant {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    color: var(--md-ink-faint);
    font-size: 9.5px;
    font-weight: 700;
    white-space: nowrap;
  }

  .today-task-quadrant i {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--md-sky);
  }

  .today-task-quadrant.do_now i { background: var(--md-rose); }
  .today-task-quadrant.schedule i { background: var(--md-sky); }
  .today-task-quadrant.delegate i { background: var(--md-gold); }
  .today-task-quadrant.eliminate i { background: var(--md-ink-faint); }

  .today-fab-stack {
    right: 16px;
    bottom: 100px;
    z-index: 19;
  }

}

.desktop-weather-card .section-title-row {
  align-items: center;
}

.today-nudge-band {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.today-nudge-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-left: 6px solid #5794ff;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-card), var(--shadow-hairline);
}

.today-nudge-body {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.today-nudge-avatar {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: #6298ff;
  color: white;
  font-size: 20px;
  font-weight: 950;
}

.today-nudge-avatar small {
  position: absolute;
  right: -4px;
  bottom: -3px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: white;
  font-size: 13px;
}

.today-nudge-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.today-nudge-copy strong,
.today-nudge-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
}

.today-nudge-copy strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

.today-nudge-copy em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.today-nudge-dismiss {
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.07);
  color: var(--muted);
  box-shadow: none;
  font-size: 28px;
  line-height: 1;
}

.today-nudge-more {
  justify-self: start;
  min-height: 34px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  box-shadow: var(--shadow-hairline);
  font-size: 13px;
}

.today-water-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-hairline);
  backdrop-filter: blur(18px) saturate(1.08);
}

.today-water-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.today-water-ring {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.92) 52%, transparent 54%),
    conic-gradient(#407bd7 var(--water-progress), rgba(64, 123, 215, 0.12) 0);
}

.today-water-ring span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #2c5fa8;
}

.today-water-ring svg,
.today-water-tap svg,
.today-water-toast svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.today-water-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.today-water-copy strong {
  color: var(--ink);
  font-size: 17px;
}

.today-water-subtitle {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.15;
}

.today-water-copy small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 780;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-water-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.today-water-tap {
  display: grid;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(17, 24, 39, 0.72);
  box-shadow: var(--shadow-hairline);
  cursor: pointer;
  line-height: 0;
  appearance: none;
}

.today-water-tap > svg {
  margin: auto;
}

.today-water-tap.primary {
  border-color: transparent;
  background: #407bd7;
  color: white;
}

.today-water-toast {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(64, 123, 215, 0.2);
  color: #234f8f;
  font-weight: 820;
}

.today-water-toast span,
.today-water-toast button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.today-water-toast button {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.weather-icon {
  grid-area: icon;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.54);
  font-size: 17px;
}

.weather-temp {
  grid-area: temp;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.weather-detail {
  grid-area: detail;
  max-width: 74px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-side {
  position: sticky;
  top: 0;
  display: grid;
  gap: 16px;
}

.dashboard-command {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin: 0 0 24px;
  padding: 28px 18px 18px;
  text-align: center;
}

.dashboard-command-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.dashboard-command-copy .eyebrow {
  margin: 0;
}

.dashboard-command h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.dashboard-command-copy p:last-child {
  max-width: 620px;
  margin: 0;
  color: rgba(23, 23, 28, 0.68);
  font-size: 17px;
  line-height: 1.45;
}

.dashboard-command-box {
  width: min(820px, 100%);
  display: grid;
  gap: 26px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.12);
}

.dashboard-command-input {
  display: block;
  width: 100%;
  min-height: 96px;
  padding: 6px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(23, 23, 28, 0.82);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.22;
  text-align: left;
}

.dashboard-command-input:hover {
  background: transparent;
}

.dashboard-command-tools {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.dashboard-command-tools > div {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.tool-button,
.mode-pill {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  background: rgba(23, 23, 28, 0.06);
  box-shadow: none;
  color: var(--ink);
  font-weight: 780;
}

.tool-button.send {
  color: #fff;
  background: #ff6748;
  box-shadow: 0 14px 28px rgba(255, 103, 72, 0.34);
}

.mode-pill {
  width: auto;
  padding: 0 16px;
  border-radius: 999px;
}

.quick-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
}

.quick-pills button {
  min-height: 42px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.43);
  border: 1px solid rgba(255, 255, 255, 0.54);
  color: rgba(23, 23, 28, 0.78);
  box-shadow: var(--shadow-hairline);
  font-size: 15px;
}

.chip,
.meta-pill,
.tag-chip,
.priority-button,
.someday-button,
.priority-chip,
.section-count,
.waiting-header-meta,
.waiting-header-due,
.waiting-header-alert,
.waiting-header-today,
.shop-filter-pill,
.list-detail-nav button,
.list-kind-toggle,
.filter-strip button {
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.43);
  box-shadow: var(--shadow-hairline);
  color: rgba(23, 23, 28, 0.72);
}

.group-label,
.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: #111116;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

:root {
  --seg-flight: #3b82f6;
  --seg-hotel: #8b5cf6;
  --seg-car: #f59e0b;
  --seg-train: #10b981;
  --seg-restaurant: #e879a6;
  --seg-other: #64748b;
}

.trips-view { position: relative; max-width: 920px; margin: 0 auto; padding: 8px 0 112px; }
.trips-header { display: flex; align-items: start; justify-content: space-between; margin: 0 2px 20px; }
.trips-header h1 { margin: 0; font-size: 32px; letter-spacing: 0; }
.trips-header p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.trips-mailbox-button { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; margin-top: 10px; }
.trips-mailbox-button svg { width: 16px; height: 16px; }
.trip-section-label { margin: 20px 4px 10px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.trip-section-label span { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(23,23,28,.07); letter-spacing: 0; }
.trip-cover-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.trip-cover-card { position:relative; width:100%; overflow:hidden; border:0; border-radius:20px; padding:0; background:rgba(255,255,255,.88); color:var(--ink); text-align:left; box-shadow:var(--shadow-soft); }
.trip-cover-surface { position:relative; display:flex; height:118px; align-items:flex-end; padding:14px 16px; color:#fff; background:linear-gradient(135deg,#6776dc,#5b3f92); }
.trip-cover-surface::after { content:""; position:absolute; inset:0; background:radial-gradient(120% 90% at 85% 0,rgba(255,255,255,.28),transparent 55%); }
.trip-cover-lisbon { background: linear-gradient(135deg, #f08a63, #d64f78 52%, #7546a8); }
.trip-cover-bcn { background: linear-gradient(135deg, #efa739, #db5379 58%, #7546c7); }
.trip-cover-oslo { background: linear-gradient(135deg, #6696e8, #415dbe); }
.trip-cover-default { background: linear-gradient(135deg, #566eaf, #6b4c91); }
.trip-cover-card.trip-cover-lisbon, .trip-cover-card.trip-cover-bcn, .trip-cover-card.trip-cover-oslo, .trip-cover-card.trip-cover-default { background:rgba(255,255,255,.88); }
.trip-countdown, .trip-cover-copy, .trip-cover-meta { position: relative; z-index: 1; }
.trip-countdown { position: absolute; top: 14px; right: 14px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.38); border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); font-size: 12px; font-weight: 800; }
.trip-cover-copy strong { display: block; font-size: 25px; letter-spacing: 0; line-height: 1.05; }
.trip-cover-copy small { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; }
.trip-cover-meta { display:flex; align-items:center; gap:8px; min-height:48px; padding:11px 16px 13px; color:var(--ink); background:rgba(255,255,255,.88); }
.trip-group-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.16); font-size: 11px; font-weight: 800; }
.trip-cover-meta .trip-group-chip { border-color:rgba(0,0,0,.03); background:rgba(14,165,165,.1); color:#0b7d7d; }
.trip-group-chip i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.trip-avatars { display: inline-flex; padding-left: 5px; }
.trip-avatars span { display: grid; place-items: center; width: 25px; height: 25px; margin-left: -5px; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; background: #566ee9; color: #fff; font-size: 10px; font-weight: 800; }
.trip-booking-count { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12px; font-weight: 800; }
.trip-booking-count svg { width: 14px; height: 14px; }
.trip-past-list { display: grid; gap: 10px; }
.trip-past-card { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 0; border-radius: 15px; background: rgba(255,255,255,.72); color: var(--ink); text-align: left; box-shadow: var(--shadow-hairline); }
.trip-past-pin { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #6479db; color: #fff; }
.trip-past-pin svg { width: 19px; height: 19px; }
.trip-past-card span:nth-child(2) { display: grid; gap: 2px; }
.trip-past-card strong { font-size: 15px; }.trip-past-card small { color: var(--muted); font-size: 12px; }.trip-past-card b { margin-left: auto; color: var(--muted); font-size: 24px; font-weight: 400; }
.trips-empty { max-width: 540px; padding: 34px; text-align: center; margin: 48px auto; }.trips-empty h2 { margin: 10px 0 5px; }.trips-empty p { color: var(--muted); margin: 0 auto 18px; max-width: 330px; }.trip-empty-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--blue); background: rgba(66,130,244,.11); }.trip-empty-icon svg { width: 27px; }
.trip-fab { position: fixed; right: max(24px, calc((100vw - 1280px) / 2)); bottom: 28px; z-index: 12; width: 58px; height: 58px; border: 0; border-radius: 19px; background: #111116; color: #fff; font-size: 32px; box-shadow: var(--shadow); }
@media (max-width: 720px) { .trips-view { padding: 6px 0 112px; }.trips-header { align-items: flex-end; gap: 10px; }.trips-header h1 { font-size: 29px; }.trips-mailbox-button { margin-top: 0; padding: 10px 12px; font-size: 12px; }.trip-cover-grid { grid-template-columns: 1fr; }.trip-fab { right: 28px; bottom: 106px; } }

.trip-detail-view { max-width:720px; margin:0 auto; padding-bottom:112px; }
.trip-detail-top { display:flex; justify-content:space-between; margin-bottom:10px; }
.trip-detail-top .icon-button { font-size:26px; }
.trip-detail-hero { position:relative; overflow:hidden; min-height:190px; padding:18px; border-radius:21px; color:#fff; box-shadow:var(--shadow-soft); }
.trip-detail-hero::after { content:""; position:absolute; inset:0; background:radial-gradient(100% 90% at 88% 0,rgba(255,255,255,.25),transparent 60%); }
.trip-detail-hero > * { position:relative; z-index:1; }
.trip-detail-hero-top { display:flex; align-items:center; min-height:26px; }.trip-detail-hero-top .trip-countdown { position:static; margin-left:auto; }.trip-detail-hero h1 { margin:8px 0 3px; font-size:32px; letter-spacing:0; }
.trip-detail-hero p { margin:0; font-weight:700; font-size:14px; }
.trip-detail-meta { display:flex; gap:8px; align-items:center; margin-top:15px; }
.trip-detail-meta .trip-booking-count { margin-left:0; padding:5px 11px; border:1px solid rgba(255,255,255,.32); border-radius:999px; background:rgba(255,255,255,.22); backdrop-filter:blur(10px); color:#fff; }
.trip-detail-meta svg { width:13px; }
.trip-itinerary { margin-top:20px; }
.trip-day-group { position:relative; padding-left:44px; margin-bottom:22px; }
.trip-day-group::before { content:""; position:absolute; left:14px; top:12px; bottom:-24px; width:2px; background:rgba(120,140,180,.26); }
.trip-day-group:last-child::before { bottom:auto; height:28px; }
.trip-day-group header { position:relative; display:flex; align-items:center; gap:10px; margin:0 0 11px -44px; }
.trip-day-node { position:relative; z-index:1; display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#fff; color:var(--ink); box-shadow:var(--shadow-hairline); font-size:11px; line-height:1; }
.trip-day-node span { display:grid; text-align:center; }
.trip-day-node small { font-size:8px; color:var(--muted); text-transform:uppercase; }
.trip-day-group h2 { margin:0; font-size:15px; }
.trip-day-group h2 small { margin-left:5px; color:var(--muted); font-size:12px; }
.trip-day-segments { display:grid; gap:10px; }
.trip-segment-card { position:relative; width:100%; overflow:hidden; padding:13px 15px 13px 17px; border:0; border-radius:15px; background:rgba(255,255,255,.82); color:var(--ink); text-align:left; box-shadow:var(--shadow-hairline); }
.trip-segment-rail { position:absolute; inset:0 auto 0 0; width:5px; background:var(--seg-other); }
.trip-segment-flight .trip-segment-rail { background:var(--seg-flight); }.trip-segment-hotel .trip-segment-rail { background:var(--seg-hotel); }.trip-segment-car .trip-segment-rail { background:var(--seg-car); }.trip-segment-train .trip-segment-rail { background:var(--seg-train); }.trip-segment-restaurant .trip-segment-rail { background:var(--seg-restaurant); }
.trip-segment-head { display:flex; align-items:center; gap:9px; }.trip-segment-head > span:nth-child(2) { min-width:0; display:grid; gap:1px; }.trip-segment-head small { color:var(--muted); font-size:11px; font-weight:800; text-transform:uppercase; }.trip-segment-head strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px; }
.trip-segment-icon { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; background:rgba(98,116,146,.11); color:var(--seg-other); }.trip-segment-icon svg { width:17px; }.trip-segment-flight .trip-segment-icon { color:var(--seg-flight); background:rgba(59,130,246,.11); }.trip-segment-hotel .trip-segment-icon { color:var(--seg-hotel); background:rgba(139,92,246,.11); }.trip-segment-car .trip-segment-icon { color:var(--seg-car); background:rgba(245,158,11,.12); }.trip-segment-train .trip-segment-icon { color:var(--seg-train); background:rgba(16,185,129,.12); }
.trip-segment-head em { display:inline-flex; align-items:center; gap:4px; margin-left:auto; padding:3px 7px; border-radius:999px; background:rgba(224,109,64,.12); color:#bf5936; font-size:10px; font-style:normal; font-weight:800; }.trip-segment-head em svg { width:12px; }
.trip-route { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; margin-top:12px; }.trip-route > span { display:grid; gap:2px; }.trip-route > span:last-child { text-align:right; }.trip-route b { font-size:20px; }.trip-route small { color:var(--muted); font-size:12px; font-weight:700; }.trip-route i { display:grid; gap:4px; color:var(--seg-flight); text-align:center; font-size:18px; font-style:normal; }.trip-route i small { font-size:10px; color:var(--muted); }
.trip-segment-simple { margin:10px 0 0; color:var(--muted); font-size:13px; line-height:1.45; }.trip-segment-simple b { color:var(--ink); }.trip-segment-facts { display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; }.trip-segment-facts i { padding:4px 8px; border-radius:8px; background:rgba(50,60,80,.06); color:var(--muted); font-size:11px; font-style:normal; }.trip-segment-facts b { color:var(--ink); }
.trip-segment-extra { padding:0 15px; }.trip-segment-addresses { display:grid; gap:6px; margin-top:10px; }.trip-segment-addresses > span { display:grid; grid-template-columns:auto minmax(0,1fr) 30px; align-items:center; gap:7px; color:var(--muted); }.trip-segment-addresses small { font-size:10px; font-weight:800; text-transform:uppercase; }.trip-segment-addresses b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink); font-size:12px; }.trip-segment-addresses a { display:grid; place-items:center; width:30px; height:30px; border-radius:8px; background:rgba(59,130,246,.11); color:var(--seg-flight); }.trip-segment-addresses svg { width:16px; }.trip-segment-guidance { margin:10px 0 0; padding:9px 10px; border-radius:9px; background:rgba(80,112,215,.08); color:var(--muted); font-size:12px; line-height:1.4; }.trip-segment-guidance b { display:block; margin-bottom:2px; color:var(--ink); }.trip-segment-files { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }.trip-segment-files a,.trip-segment-files button { display:inline-flex; align-items:center; gap:5px; max-width:100%; padding:6px 8px; border:0; border-radius:8px; background:rgba(50,60,80,.06); color:var(--ink); font:inherit; font-size:11px; font-weight:700; }.trip-segment-files svg { width:14px; }
.trip-linked-items { margin-top:28px; border-radius:15px; overflow:hidden; background:rgba(255,255,255,.72); box-shadow:var(--shadow-hairline); }.trip-linked-items h2 { margin:0; padding:14px 15px 8px; font-size:15px; }.trip-linked-items button { display:grid; grid-template-columns:30px minmax(0,1fr) auto 18px; align-items:center; gap:10px; width:100%; padding:12px 15px; border:0; border-top:1px solid rgba(40,50,70,.08); background:transparent; text-align:left; }.trip-linked-items button span { display:grid; place-items:center; width:30px; height:30px; border-radius:8px; background:rgba(15,157,104,.11); color:#0f9d68; }.trip-linked-items button svg { width:16px; }.trip-linked-items button small,.trip-linked-items button i { color:var(--muted); font-style:normal; }
.trip-segment-calendar { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }.trip-segment-calendar button { min-height:36px; padding:7px 10px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font:inherit; font-size:12px; font-weight:700; }.trip-segment-calendar svg { width:14px; margin-right:5px; vertical-align:-2px; }.trip-agenda-row { border-left:4px solid var(--seg-other); }.trip-agenda-row.trip-segment-flight { border-left-color:var(--seg-flight); }.trip-agenda-row.trip-segment-hotel { border-left-color:var(--seg-hotel); }.trip-agenda-row.trip-segment-car { border-left-color:var(--seg-car); }.trip-agenda-row.trip-segment-train { border-left-color:var(--seg-train); }.trip-agenda-row.trip-segment-restaurant { border-left-color:var(--seg-restaurant); }
.trip-editor-sheet { max-width: 680px; }.trip-editor-sheet .sheet-title-row p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }.trip-type-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }.trip-type-tile { display:flex; flex-direction:column; align-items:flex-start; gap:9px; min-height:106px; padding:14px; border:0; border-radius:15px; background:rgba(255,255,255,.72); color:var(--ink); box-shadow:var(--shadow-hairline); text-align:left; }.trip-type-tile > span { display:grid; place-items:center; width:38px; height:38px; border-radius:11px; background:rgba(98,116,146,.11); color:var(--seg-other); }.trip-type-tile svg { width:20px; }.trip-type-tile.trip-segment-flight > span { color:var(--seg-flight); background:rgba(59,130,246,.11); }.trip-type-tile.trip-segment-hotel > span { color:var(--seg-hotel); background:rgba(139,92,246,.11); }.trip-type-tile.trip-segment-car > span { color:var(--seg-car); background:rgba(245,158,11,.12); }.trip-type-tile.trip-segment-train > span { color:var(--seg-train); background:rgba(16,185,129,.12); }.trip-forward-card { display:flex; gap:12px; margin-top:16px; padding:15px; border-radius:15px; background:rgba(80,112,215,.08); border:1px solid rgba(80,112,215,.13); }.trip-forward-card > span { display:grid; place-items:center; width:36px; height:36px; flex:0 0 36px; border-radius:11px; background:#fff; color:var(--blue); }.trip-forward-card > span svg { width:19px; }.trip-forward-card b { font-size:15px; }.trip-forward-card p { margin:6px 0 10px; color:var(--muted); font-size:13px; line-height:1.4; }.trip-forward-card code { padding:1px 4px; border-radius:5px; background:#fff; color:var(--blue); font-size:12px; }.trip-forward-card button { display:inline-flex; align-items:center; gap:6px; padding:8px 10px; border:0; border-radius:10px; background:#fff; color:var(--blue); font-weight:800; }.trip-forward-card button svg { width:15px; }
.trip-menu-sheet { max-width:560px; }.trip-menu-actions { display:grid; gap:8px; margin-top:18px; }.trip-menu-actions button { display:grid; grid-template-columns:42px minmax(0,1fr) 18px; align-items:center; gap:11px; width:100%; min-height:64px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.68); color:var(--ink); text-align:left; }.trip-menu-action-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:11px; background:rgba(80,112,215,.10); color:var(--blue); }.trip-menu-action-icon svg { width:19px; height:19px; }.trip-menu-actions span:nth-child(2) { display:grid; gap:2px; min-width:0; }.trip-menu-actions b { font-size:14px; }.trip-menu-actions small { color:var(--muted); font-size:11px; font-weight:650; }.trip-menu-actions i { color:var(--muted); font-size:23px; font-style:normal; line-height:1; }.trip-menu-danger { margin-top:16px; padding-top:14px; border-top:1px solid var(--line); }.trip-menu-danger button { display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:8px 10px; border:0; border-radius:9px; background:rgba(215,62,62,.10); color:#c83939; font:inherit; font-size:13px; font-weight:800; }.trip-menu-danger svg { width:16px; height:16px; }
.trip-space-field { display:flex; align-items:end; gap:10px; margin-top:16px; }.trip-space-field label { display:grid; flex:1; gap:5px; color:var(--muted); font-size:12px; font-weight:800; }.trip-space-field select { min-width:0; width:100%; min-height:40px; }.trip-space-field > button { min-height:40px; padding:8px 12px; border:0; border-radius:9px; background:var(--ink); color:#fff; font:inherit; font-size:12px; font-weight:800; }.sheet-form > .trip-space-field { display:grid; margin-top:0; }.sheet-form > .trip-space-field label { width:100%; }
.booking-detail-view { width:min(640px,100%); margin:0 auto; padding:2px 0 112px; }.booking-detail-nav,.booking-edit-nav { display:flex; align-items:center; min-height:44px; margin-bottom:12px; }.booking-detail-nav .icon-button { width:38px; height:38px; border-radius:12px; background:rgba(255,255,255,.75); box-shadow:var(--shadow-hairline); font-size:24px; }.booking-detail-nav .icon-button:last-child { margin-left:auto; font-size:18px; }.booking-hero { --booking-accent:var(--seg-other); --booking-soft:rgba(98,116,146,.10); position:relative; overflow:hidden; padding:18px 18px 16px 20px; border-radius:20px; background:rgba(255,255,255,.9); box-shadow:var(--shadow); }.booking-hero::before { content:""; position:absolute; inset:0 auto 0 0; width:6px; background:linear-gradient(var(--booking-accent),color-mix(in srgb,var(--booking-accent) 60%,#fff)); }.booking-hero-flight { --booking-accent:var(--seg-flight); --booking-soft:rgba(59,130,246,.11); }.booking-hero-hotel { --booking-accent:var(--seg-hotel); --booking-soft:rgba(139,92,246,.11); }.booking-hero-car { --booking-accent:var(--seg-car); --booking-soft:rgba(245,158,11,.12); }.booking-hero-train { --booking-accent:var(--seg-train); --booking-soft:rgba(16,185,129,.12); }.booking-hero-restaurant { --booking-accent:var(--seg-restaurant); --booking-soft:rgba(236,72,153,.11); }.booking-hero-top { display:flex; align-items:center; gap:11px; }.booking-hero-icon { display:grid; place-items:center; width:40px; height:40px; border-radius:12px; background:var(--booking-soft); color:var(--booking-accent); }.booking-hero-icon svg { width:22px; height:22px; }.booking-hero-top > span:nth-child(2) { display:grid; gap:2px; }.booking-hero-top small { color:var(--muted); font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }.booking-hero-top b { color:var(--muted); font-size:13px; }.booking-email-badge { display:inline-flex; align-items:center; gap:5px; margin-left:auto; padding:4px 8px; border-radius:999px; background:rgba(224,109,64,.12); color:#bf5936; font-size:10px; font-style:normal; font-weight:800; }.booking-email-badge svg { width:12px; }.booking-hero h1 { margin:14px 0 0; color:var(--ink); font-size:22px; line-height:1.15; letter-spacing:0; }.booking-route-big { display:grid; grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr); align-items:start; gap:8px; margin-top:17px; }.booking-route-end { display:grid; gap:3px; min-width:0; }.booking-route-end.right { text-align:right; justify-items:end; }.booking-route-end strong { color:var(--ink); font-size:27px; line-height:1; }.booking-route-end b { color:var(--muted); font-size:13px; }.booking-route-end small { overflow:hidden; max-width:100%; color:var(--muted); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }.booking-route-end em,.booking-stay-big > em,.booking-appointment-big em { display:inline-block; width:max-content; max-width:100%; margin-top:2px; padding:2px 7px; border-radius:999px; background:rgba(70,83,110,.06); color:var(--muted); font-size:10px; font-style:normal; font-weight:700; }.booking-route-middle { display:grid; justify-items:center; gap:4px; padding-top:4px; text-align:center; }.booking-route-middle > small { color:var(--muted); font-size:10px; font-weight:800; }.booking-route-middle > span { display:flex; align-items:center; width:100%; color:var(--booking-accent); }.booking-route-middle i { flex:1; height:2px; background:var(--line); }.booking-route-middle svg { width:16px; height:16px; margin:0 2px; }.booking-route-middle b { color:var(--booking-accent); font-size:10px; }.booking-stay-big { display:grid; grid-template-columns:1fr auto 1fr; align-items:end; gap:10px; margin-top:17px; }.booking-stay-big > div { display:grid; gap:4px; }.booking-stay-big > div:last-of-type { text-align:right; justify-items:end; }.booking-stay-big small,.booking-appointment-big small { color:var(--muted); font-size:10px; font-weight:800; text-transform:uppercase; }.booking-stay-big strong,.booking-appointment-big strong { color:var(--ink); font-size:13px; }.booking-stay-big b,.booking-appointment-big b { color:var(--ink); font-size:25px; line-height:1; }.booking-stay-big > span { display:grid; justify-items:center; gap:5px; color:var(--booking-accent); font-size:11px; font-weight:800; }.booking-stay-big > span i { width:54px; height:2px; background:var(--line); }.booking-stay-big > em { grid-column:1 / -1; margin-top:4px; }.booking-appointment-big { display:flex; align-items:end; gap:30px; margin-top:17px; }.booking-appointment-big > span { display:grid; gap:4px; }.booking-section-label,.booking-edit-section > p { margin:20px 4px 9px; color:var(--muted); font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }.booking-row-card,.booking-trip-row { overflow:hidden; border-radius:14px; background:rgba(255,255,255,.84); box-shadow:var(--shadow-hairline); }.booking-detail-row { display:grid; grid-template-columns:30px minmax(0,1fr) auto auto; align-items:center; gap:10px; min-height:56px; padding:10px 15px; }.booking-detail-row + .booking-detail-row { border-top:1px solid var(--line); }.booking-detail-row > span { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; background:rgba(70,83,110,.06); color:var(--muted); }.booking-detail-row svg { width:16px; height:16px; }.booking-detail-row small { color:var(--muted); font-size:13px; font-weight:600; }.booking-detail-row b { max-width:220px; color:var(--ink); font-size:14px; text-align:right; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.booking-detail-row a { display:grid; place-items:center; width:28px; height:28px; border-radius:8px; background:rgba(59,130,246,.11); color:var(--seg-flight); }.booking-empty-detail { margin:0; padding:16px; color:var(--muted); font-size:13px; }.booking-trip-row { display:flex; align-items:center; gap:11px; width:100%; padding:12px 15px; border:0; color:var(--ink); text-align:left; }.booking-trip-row > span:first-child { width:34px; height:34px; flex:0 0 34px; border-radius:10px; }.booking-trip-row > span:nth-child(2) { display:grid; gap:2px; }.booking-trip-row b { font-size:14px; }.booking-trip-row small { color:var(--muted); font-size:11px; }.booking-trip-row em { display:inline-flex; align-items:center; gap:5px; margin-left:auto; padding:3px 8px; border-radius:999px; background:rgba(14,165,165,.10); color:#0b7d7d; font-size:11px; font-style:normal; font-weight:800; }.booking-trip-row em i { width:6px; height:6px; border-radius:50%; }.booking-source-card { display:flex; align-items:center; gap:11px; padding:12px 14px; border:1px solid rgba(224,109,64,.18); border-radius:14px; background:rgba(253,238,231,.7); }.booking-source-card > span { display:grid; place-items:center; width:32px; height:32px; border-radius:9px; background:#fff; color:#bf5936; }.booking-source-card svg { width:17px; }.booking-source-card p { margin:0; color:var(--muted); font-size:12px; font-weight:650; line-height:1.35; }.booking-source-card button { margin-left:auto; border:0; background:transparent; color:#bf5936; font:inherit; font-size:12px; font-weight:800; white-space:nowrap; }.booking-detail-actions { display:grid; gap:10px; margin-top:22px; }.booking-detail-actions button { display:flex; align-items:center; justify-content:center; gap:8px; min-height:48px; border:0; border-radius:14px; background:rgba(255,255,255,.84); color:var(--ink); font:inherit; font-size:14px; font-weight:800; box-shadow:var(--shadow-hairline); }.booking-detail-actions .primary { background:#111116; color:#fff; }.booking-detail-actions svg { width:18px; height:18px; }.booking-detail-actions > small { margin-top:-3px; color:var(--muted); text-align:center; font-size:11px; font-weight:650; }.booking-detail-actions .booking-delete { min-height:38px; background:transparent; color:#d13d43; box-shadow:none; font-weight:700; }.booking-edit-view { max-width:560px; }.booking-edit-nav { justify-content:space-between; position:sticky; top:0; z-index:4; padding:8px 0 12px; background:linear-gradient(var(--canvas) 76%,transparent); }.booking-edit-nav button { border:0; background:transparent; color:var(--muted); font:inherit; font-size:14px; font-weight:800; }.booking-edit-nav button[type="submit"] { padding:9px 16px; border-radius:12px; background:#111116; color:#fff; }.booking-edit-nav b { color:var(--ink); font-size:15px; }.booking-edit-section > div { overflow:hidden; border-radius:14px; background:rgba(255,255,255,.86); box-shadow:var(--shadow-hairline); }.booking-edit-field { display:grid; gap:5px; padding:11px 15px; }.booking-edit-field + .booking-edit-field { border-top:1px solid var(--line); }.booking-edit-field > span,.booking-edit-field label > span { color:var(--muted); font-size:11px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }.booking-edit-field input,.booking-edit-field select,.booking-edit-field textarea { width:100%; min-width:0; padding:0; border:0; outline:0; background:transparent; color:var(--ink); font:inherit; font-size:15px; font-weight:650; }.booking-edit-field input[readonly] { color:var(--muted); }.booking-edit-field select { appearance:auto; }.booking-edit-field textarea { min-height:72px; resize:vertical; font-weight:500; line-height:1.42; }.booking-edit-field > small { color:var(--booking-accent,var(--blue)); font-size:11px; font-weight:700; }.booking-edit-two { display:grid; grid-template-columns:1fr 1fr; gap:0; padding:0; }.booking-edit-two label { display:grid; gap:5px; padding:11px 15px; }.booking-edit-two label + label { border-left:1px solid var(--line); }.booking-edit-type > div { display:flex; align-items:center; gap:10px; padding:12px 15px; }.booking-edit-type span { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:rgba(59,130,246,.11); color:var(--seg-flight); }.booking-edit-type svg { width:18px; }.booking-edit-type b { font-size:15px; }.booking-delete-block { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:48px; margin-top:20px; border:0; border-radius:14px; background:rgba(209,61,67,.10); color:#d13d43; font:inherit; font-size:14px; font-weight:800; }.booking-delete-block svg { width:18px; }.booking-timezone-hint { margin:15px 10px 0; color:var(--muted); text-align:center; font-size:11px; font-weight:650; }
@media (max-width: 520px) { .booking-detail-view { padding-bottom:104px; }.booking-route-big { grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr); gap:5px; }.booking-route-end strong { font-size:24px; }.booking-route-end b { font-size:12px; }.booking-route-middle > small,.booking-route-middle b { font-size:9px; }.booking-appointment-big { gap:22px; }.booking-detail-row b { max-width:150px; }.booking-edit-field input,.booking-edit-field select,.booking-edit-field textarea { font-size:16px; } }
@media (max-width: 520px) { .trip-type-grid { grid-template-columns:repeat(2,1fr); }.trip-editor-sheet { padding-inline:16px; }.trip-route b { font-size:18px; } }

.trip-segment-restaurant .trip-segment-icon,
.trip-type-tile.trip-segment-restaurant > span { color:var(--seg-restaurant); background:rgba(232,121,166,.12); }
.trip-route { grid-template-columns:1fr 64px 1fr; }
.trip-route .trip-route-city { color:var(--muted); font-size:11px; font-weight:500; }
.trip-route i > span { display:flex; align-items:center; width:100%; }
.trip-route i > span b { flex:1; height:2px; background:var(--line); }
.trip-route i > span svg { width:15px; height:15px; margin:0 2px; }

.keep-card,
.settings-card,
.answer-panel,
.task-panel,
.quadrant-panel,
.execution-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  box-shadow: var(--shadow-soft), var(--shadow-hairline);
  backdrop-filter: blur(24px) saturate(1.12);
}

.settings-mini-form {
  margin-top: 14px;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.settings-toggle-row span {
  display: grid;
  gap: 3px;
}

.settings-toggle-row strong {
  font-size: 14px;
}

.settings-toggle-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.miniapp-settings-form {
  margin-top: 10px;
}

.settings-mini-heading {
  display: grid;
  gap: 3px;
  padding: 6px 2px;
  color: var(--ink);
}

.settings-mini-heading small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.settings-toggle-row input {
  width: 22px;
  height: 22px;
  accent-color: #111116;
}

.keep-card {
  position: relative;
  min-height: 104px;
  padding: 13px;
  overflow: hidden;
  border-color: rgba(23, 23, 28, 0.08);
  background: var(--item-gradient);
}

.keep-card::before,
.task-row::before,
.simple-list-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--item-rail);
  pointer-events: none;
}

.group-tinted {
  border-color: var(--group-soft);
  background:
    linear-gradient(90deg, var(--group-tint), rgba(255, 255, 255, 0) 62%),
    var(--item-gradient);
  box-shadow: inset 4px 0 0 var(--group-color);
}

.dense-row.group-tinted,
.task-row.group-tinted {
  background:
    linear-gradient(90deg, var(--group-tint), rgba(255, 255, 255, 0) 70%),
    var(--item-gradient);
}

.note-box.group-tinted::before {
  background: var(--group-color);
}

.keep-card.group-tinted::before,
.dense-row.group-tinted::before,
.task-row.group-tinted::before,
.list-overview-row.group-tinted::before,
.simple-list-row.group-tinted::before {
  background: var(--group-color);
}

.group-pill {
  color: #37373c;
  background: var(--group-tint);
  border: 1px solid var(--group-soft);
}

.group-settings-card {
  display: grid;
  gap: 12px;
}

.group-settings-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.group-settings-details {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background:
    linear-gradient(90deg, var(--group-tint), rgba(255, 255, 255, 0) 68%),
    rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow-hairline);
}

.group-settings-details::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--group-color);
  pointer-events: none;
}

.group-settings-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, auto) 26px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px 10px 16px;
  cursor: pointer;
  list-style: none;
}

.group-settings-summary::-webkit-details-marker {
  display: none;
}

.group-settings-name {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.group-settings-name strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-color-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: var(--group-color);
  box-shadow: var(--shadow-hairline);
}

.group-settings-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 0;
}

.group-settings-meta .chip {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-calendar-chip {
  max-width: 240px;
}

.group-settings-details[open] .settings-section-chevron {
  transform: rotate(180deg);
}

.group-settings-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px 18px;
}

.group-readonly-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.group-edit-form {
  display: grid;
  gap: 10px;
}

.group-color-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
  align-items: center;
}

.pastel-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.color-swatch {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(30, 30, 32, 0.1);
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.color-swatch.active {
  outline: 3px solid rgba(30, 30, 32, 0.16);
  outline-offset: 2px;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.processing-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 251, 0.98));
}

.promotion-card {
  opacity: 0.72;
  filter: saturate(0.82);
  background:
    linear-gradient(90deg, rgba(35, 104, 216, 0.12), rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 248, 251, 0.9));
}

.promotion-card::after {
  content: "";
  position: absolute;
  inset: auto 13px 10px 13px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(23, 23, 28, 0.12), rgba(23, 23, 28, 0.44), rgba(23, 23, 28, 0.12));
  background-size: 180% 100%;
  animation: promotion-progress 1.1s ease-in-out infinite;
}

.promotion-card .item-actions {
  padding-bottom: 8px;
}

.promotion-card button:disabled {
  cursor: progress;
}

.processing-card.error {
  border-color: rgba(214, 54, 44, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 246, 0.98));
}

.processing-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(35, 104, 216, 0.1);
  color: #2368d8;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.processing-pill.error {
  background: rgba(214, 54, 44, 0.1);
  color: var(--danger);
}

.processing-pill.enrichment {
  background: rgba(69, 122, 210, 0.15);
  color: #275a9e;
}

.mini-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(96, 70, 217, 0.22);
  border-top-color: #6046d9;
  border-radius: 999px;
  animation: spin 0.75s linear infinite;
}

.enrichment-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: -3px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.enrichment-line.pending {
  color: #6046d9;
}

.enrichment-line.failed {
  color: var(--danger);
}

.enrichment-line button {
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
  box-shadow: var(--shadow-hairline);
}

.enriched-inbox-result {
  display: grid;
  gap: 10px;
}

.enriched-inbox-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.enriched-inbox-card {
  display: grid;
  gap: 14px;
  padding: 24px 26px 22px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.74) 62%),
    var(--item-gradient);
}

.enriched-inbox-card.keep-card::before {
  width: 5px;
}

.enriched-inbox-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(23, 23, 28, 0.72);
  font-size: 13px;
  font-weight: 820;
}

.enriched-inbox-card h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 29px);
  line-height: 1.16;
  font-weight: 820;
}

.enriched-inbox-body.markdown-body {
  display: grid;
  gap: 12px;
  color: rgba(23, 23, 28, 0.76);
}

.enriched-inbox-body.markdown-body p,
.enriched-inbox-body.markdown-body li {
  margin: 0;
  color: inherit;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.48;
}

.enriched-inbox-body.markdown-body ol,
.enriched-inbox-body.markdown-body ul {
  margin: 0;
  padding-left: 1.25em;
}

.enriched-inbox-source {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 23, 28, 0.08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.enriched-inbox-source svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.enriched-inbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.enriched-inbox-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 13px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(23, 23, 28, 0.68);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-hairline);
}

.enriched-triage-controls {
  display: grid;
  gap: 10px;
}

.dense-meta.error-text {
  color: var(--danger);
}

@keyframes promotion-progress {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

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

.open-card {
  cursor: pointer;
}

.open-card:hover {
  border-color: rgba(22, 22, 26, 0.16);
  box-shadow: 0 22px 52px rgba(29, 44, 77, 0.16), var(--shadow-hairline);
  transform: translateY(-1px);
}

.open-card:focus-visible {
  outline: 3px solid rgba(35, 104, 216, 0.28);
  outline-offset: 2px;
}

.note-box {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 164px;
  padding: 13px;
  overflow: hidden;
  background: var(--item-gradient);
  box-shadow: 0 12px 30px rgba(29, 44, 77, 0.08), var(--shadow-hairline);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.note-box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--item-rail);
}

.note-box-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.note-kind {
  min-width: 0;
  color: var(--ink);
}

.note-box-body {
  display: grid;
  gap: 7px;
  padding-left: 6px;
}

.note-box-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.note-box-body p {
  margin: 0;
  color: #55555c;
  font-size: 13px;
  line-height: 1.42;
  white-space: normal;
}

.note-box-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: end;
  padding-left: 6px;
}

.note-box-tags .tag-button,
.note-box-tags .untagged-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.43);
  box-shadow: var(--shadow-hairline);
  color: rgba(23, 23, 28, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.note-box-tags .tag-button {
  border: 0;
  cursor: pointer;
}

.note-box-tags .tag-button.active {
  background: var(--ink);
  color: white;
}

.filter-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 7px 9px 7px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 14px 38px rgba(29, 44, 77, 0.08), var(--shadow-hairline);
  backdrop-filter: blur(22px) saturate(1.1);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.filter-strip strong {
  color: var(--ink);
}

.filter-strip button {
  min-height: 30px;
  padding: 5px 12px;
}

.note-group-filter-strip {
  margin-bottom: 14px;
}

.share-user-groups {
  display: grid;
  gap: 12px;
  max-height: min(54vh, 520px);
  overflow: auto;
  padding-right: 2px;
}

.share-user-group {
  display: grid;
  gap: 8px;
}

.share-group-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-hairline);
}

.share-group-heading {
  grid-template-columns: minmax(0, 1fr);
}

.share-group-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.share-group-option strong,
.share-group-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-group-option strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.share-group-option small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.share-user-list {
  display: grid;
  gap: 7px;
}

.share-user-option {
  display: grid;
  grid-template-columns: 22px 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.43);
  box-shadow: var(--shadow-hairline);
}

.share-user-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.share-user-avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(47, 128, 237, 0.13);
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.share-user-option strong,
.share-user-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-user-option strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.share-user-option small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.note-box-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-top: 0;
  padding-left: 6px;
}

.note-box-actions button,
.item-actions button,
.item-actions .button-link {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
}

.keep-card h3,
.task-row h3,
.settings-card h2,
.answer-panel h2,
.meeting-empty h2 {
  margin: 0;
  letter-spacing: 0;
  font-weight: 720;
}

.keep-card h3 {
  font-size: 16px;
  line-height: 1.25;
}

.keep-card p,
.answer-panel p,
.meeting-empty p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.pinned-card {
  min-height: 0;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.section-title-row h2 {
  margin: 0;
  font-size: 20px;
}

.section-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.43);
  box-shadow: var(--shadow-hairline);
  color: rgba(23, 23, 28, 0.72);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.item-list,
.settings-stack,
.task-list {
  display: grid;
  gap: 10px;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.group-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 220px);
  gap: 9px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.group-picker select {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.event-preview,
.status-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.event-preview {
  padding: 10px;
  background: var(--control);
  border-radius: 8px;
}

.event-preview-row,
.status-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 13px;
}

.event-preview-row span,
.status-item span {
  color: var(--muted);
}

.event-preview-row strong,
.status-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.status-item {
  grid-template-columns: auto minmax(0, 1fr);
}

.status-item div {
  display: grid;
  gap: 2px;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--line-strong);
}

.status-dot.ready {
  background: var(--green);
}

.chip-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.chip,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 23px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.43);
  box-shadow: var(--shadow-hairline);
  color: rgba(23, 23, 28, 0.72);
  font-size: 11px;
  font-weight: 650;
}

.mention-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-height: 24px;
  margin: 0 2px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow-hairline);
  color: rgba(23, 23, 28, 0.82);
  font-size: 0.9em;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  vertical-align: baseline;
}

.mention-chip:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-decoration: none;
}

.mention-chip-icon,
.mention-picker-icon:not(.icon-sq) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.mention-chip svg,
.mention-picker-icon:not(.icon-sq) svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.mention-picker {
  position: absolute;
  z-index: 10000;
  max-height: 300px;
  overflow: auto;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(250, 250, 248, 0.88);
  box-shadow: 0 22px 70px rgba(31, 35, 45, 0.18), var(--shadow-hairline);
  backdrop-filter: blur(24px) saturate(1.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
}

.mention-picker[hidden] {
  display: none;
}

.mention-picker-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.mention-picker-row.active,
.mention-picker-row:hover {
  background: rgba(255, 255, 255, 0.72);
}

.mention-picker-text {
  min-width: 0;
}

.mention-picker-text strong,
.mention-picker-text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mention-picker-text strong {
  font-size: 13px;
  font-weight: 760;
}

.mention-picker-text small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.tag-button {
  border: 0;
  cursor: pointer;
}

.tag-chip {
  color: rgba(23, 23, 28, 0.72);
}

.tag-chip.active {
  background: var(--ink);
  color: white;
}

.tag-button:focus-visible,
.tag-chip:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.28);
  outline-offset: 2px;
}

.meta-pill span {
  color: var(--ink);
}

.task-panel {
  display: grid;
  gap: 10px;
  padding: 9px;
}

.execution-card {
  padding: 12px;
}

.execution-card > .section-title-row {
  margin-bottom: 10px;
}

.execution-card p {
  margin: 10px 0 0;
  line-height: 1.45;
}

.agenda-connect-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 10%, rgba(35, 160, 104, 0.12), transparent 42%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.7), rgba(236, 247, 255, 0.64));
  box-shadow: var(--shadow-hairline);
}

.agenda-connect-card strong {
  display: block;
  font-size: 17px;
  line-height: 1.16;
}

.agenda-connect-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.agenda-connect-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--accent-strong);
  box-shadow: var(--shadow-hairline);
}

.agenda-connect-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.get-started-card {
  position: relative;
  overflow: hidden;
  padding: 14px 14px 16px 18px;
  background:
    radial-gradient(circle at 8% 14%, rgba(35, 160, 104, 0.12), transparent 36%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.78), rgba(236, 247, 255, 0.7));
}

.get-started-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #50aa67, #0f8ed8);
  pointer-events: none;
}

.soft-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.get-started-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.get-started-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-hairline);
}

.get-started-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  box-shadow: var(--shadow-hairline);
}

.get-started-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.get-started-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.get-started-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.get-started-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.get-started-row button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
}

.get-started-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.get-started-actions button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.dense-list {
  display: grid;
  gap: 8px;
}

.waiting-overview-card {
  display: grid;
  gap: 12px;
}

.waiting-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.waiting-summary span {
  display: grid;
  gap: 2px;
  min-height: 54px;
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 24px rgba(29, 44, 77, 0.07), var(--shadow-hairline);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.waiting-summary strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.waiting-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 7px 8px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: var(--shadow-hairline);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.waiting-bulk-bar.has-selection {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.waiting-bulk-bar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.waiting-bulk-bar button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
}

.danger-action {
  background: rgba(215, 51, 42, 0.12);
  color: var(--danger);
}

.danger-action:not(:disabled):hover {
  background: rgba(215, 51, 42, 0.18);
}

.waiting-group-list {
  display: grid;
  gap: 10px;
}

.waiting-person-group {
  display: grid;
  gap: 6px;
}

.waiting-person-header {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 12px 30px rgba(29, 44, 77, 0.08), var(--shadow-hairline);
  color: var(--ink);
  text-align: left;
}

.waiting-person-header strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.waiting-toggle {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--control);
  font-size: 18px;
  line-height: 1;
}

.waiting-header-meta,
.waiting-header-due,
.waiting-header-alert,
.waiting-header-today {
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.43);
  box-shadow: var(--shadow-hairline);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.waiting-header-alert {
  background: rgba(255, 255, 255, 0.5);
  color: var(--danger);
}

.waiting-header-today {
  background: rgba(255, 255, 255, 0.5);
  color: var(--blue);
}

.waiting-person-items {
  gap: 6px;
}

.dense-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 9px;
  border-radius: 8px;
  overflow: visible;
  border: 1px solid rgba(23, 23, 28, 0.08);
  background: var(--item-gradient);
  box-shadow: 0 10px 24px rgba(29, 44, 77, 0.07), var(--shadow-hairline);
}

.dense-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--item-rail);
  pointer-events: none;
}

.waiting-row {
  grid-template-columns: 30px 32px 68px minmax(0, 1fr) 38px 38px;
  gap: 8px;
  min-height: 48px;
  padding: 7px;
}

.waiting-row.is-selected {
  outline: 2px solid rgba(10, 102, 216, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(229, 241, 255, 0.95));
}

.waiting-select {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 32px;
  cursor: pointer;
}

.waiting-select input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.waiting-select span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(23, 23, 28, 0.18);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-hairline);
}

.waiting-select input:checked + span {
  border-color: rgba(10, 102, 216, 0.25);
  background: var(--ink);
}

.waiting-select input:checked + span::after {
  content: "";
  display: block;
  width: 8px;
  height: 4px;
  margin: 6px auto 0;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

.waiting-row .check-button,
.waiting-row .undo-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
}

.waiting-due {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 42px;
  padding: 5px 7px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.waiting-due strong {
  color: var(--ink);
  font-size: 12px;
}

.waiting-due.overdue {
  background: rgba(201, 53, 43, 0.1);
  color: var(--danger);
}

.waiting-due.overdue strong {
  color: var(--danger);
}

.waiting-due.today {
  background: rgba(0, 113, 227, 0.12);
  color: var(--blue);
}

.waiting-due.today strong {
  color: var(--blue);
}

.waiting-due.upcoming {
  background: rgba(38, 122, 75, 0.12);
  color: var(--green);
}

.waiting-due.upcoming strong {
  color: var(--green);
}

/* Waiting For redesign */
.waiting-page {
  color: var(--waiting-ink);
}

.waiting-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 4px 12px;
}

.waiting-page-head h1 {
  margin: 0;
  color: var(--waiting-ink);
  font-size: 29px;
  font-weight: 750;
  line-height: 1.1;
}

.waiting-page-head p {
  margin: 4px 0 0;
  color: var(--waiting-ink-soft);
  font-size: 13.5px;
  font-weight: 500;
}

.waiting-page-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.waiting-add-button,
.waiting-select-toggle {
  border: 0;
  color: var(--waiting-ink);
}

.waiting-add-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: var(--waiting-surface);
  box-shadow: var(--waiting-shadow);
  font-size: 25px;
  font-weight: 400;
}

.waiting-quick-add-form {
  margin-bottom: 12px;
}

.waiting-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 10px;
  padding: 2px;
  border-radius: 12px;
  background: rgba(35, 42, 59, 0.06);
}

.waiting-segmented button {
  min-height: 32px;
  padding: 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--waiting-ink-soft);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.waiting-segmented button.active {
  background: #fff;
  color: var(--waiting-ink);
  box-shadow: 0 2px 7px rgba(35, 42, 59, 0.1);
}

.waiting-summary {
  gap: 8px;
  margin-bottom: 10px;
}

.waiting-summary button {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 56px;
  padding: 10px 6px 9px;
  border-radius: var(--waiting-radius-md);
  border: 1px solid var(--waiting-line);
  background: var(--waiting-surface);
  box-shadow: var(--waiting-shadow);
  text-align: center;
}

.waiting-summary button.active { outline: 2px solid rgba(74, 85, 199, .2); }

.waiting-summary strong {
  color: var(--waiting-ink);
  font-size: 19px;
}

.waiting-summary small {
  color: var(--waiting-ink-soft);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.waiting-summary .overdue strong { color: var(--waiting-overdue); }
.waiting-summary .soon strong { color: var(--waiting-soon); }
.waiting-summary .fresh strong { color: var(--waiting-fresh); }

.waiting-group-list { gap: 10px; }

.waiting-person-group {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--waiting-line);
  border-radius: var(--waiting-radius-lg);
  background: var(--waiting-surface);
  box-shadow: var(--waiting-shadow);
}

.waiting-person-header {
  grid-template-columns: 36px minmax(0, 1fr) auto 10px;
  gap: 11px;
  min-height: 62px;
  padding: 13px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.waiting-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.waiting-avatar.av-1 { background: #E9E1FB; color: #6B4FBF; }
.waiting-avatar.av-2 { background: #DDEDE4; color: #3F8562; }
.waiting-avatar.av-3 { background: #FBE6DA; color: #C1703C; }
.waiting-avatar.av-4 { background: #DCE7FB; color: #3E63B0; }
.waiting-avatar.av-5 { background: #FBE1E6; color: #C1526B; }
.waiting-avatar.av-6 { background: #F1EBD9; color: #8C7A3C; }

.waiting-person-info {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.waiting-person-info strong { font-size: 15px; font-weight: 680; }
.waiting-person-info small { overflow: hidden; color: var(--waiting-ink-soft); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

.waiting-header-meta {
  padding: 3px 9px;
  border: 0;
  background: rgba(35, 42, 59, 0.06);
  box-shadow: none;
  color: var(--waiting-ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.waiting-toggle {
  width: 9px;
  height: 9px;
  border: solid var(--waiting-ink-faint);
  border-width: 0 2px 2px 0;
  border-radius: 0;
  background: transparent;
  transform: rotate(45deg);
}

.waiting-person-header[aria-expanded="true"] .waiting-toggle { transform: rotate(-135deg); }
.waiting-person-items { gap: 0; }

.waiting-row {
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 11px;
  min-height: 0;
  padding: 11px 14px 13px 10px;
  border: 0;
  border-top: 1px solid var(--waiting-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.waiting-row::before { display: none; }
.waiting-row .dense-main { min-width: 0; }
.waiting-row .dense-main h3 { color: var(--waiting-ink); font-size: 14px; font-weight: 600; line-height: 1.35; }
.waiting-row .dense-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: var(--waiting-ink-soft); font-size: 11.5px; font-weight: 500; flex-wrap: wrap; }
.waiting-thread { width: 4px; min-height: 30px; margin-top: 2px; border-radius: 3px; }
.waiting-thread.fresh { background: var(--waiting-fresh); }
.waiting-thread.soon { background: var(--waiting-soon); }
.waiting-thread.overdue { background: var(--waiting-overdue); }
.waiting-age-pill { padding: 2.5px 8px; border-radius: 20px; font-size: 10.5px; font-weight: 700; }
.waiting-age-pill.fresh { background: var(--waiting-fresh-soft); color: var(--waiting-fresh); }
.waiting-age-pill.soon { background: var(--waiting-soon-soft); color: var(--waiting-soon); }
.waiting-age-pill.overdue { background: var(--waiting-overdue-soft); color: var(--waiting-overdue); }

.waiting-item-actions { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.waiting-item-actions button { min-height: 28px; padding: 5.5px 10px; border: 1px solid var(--waiting-line); border-radius: 9px; background: #fff; color: var(--waiting-ink-soft); font-size: 11.5px; font-weight: 650; }
.waiting-item-actions .nudge-btn { border-color: rgba(74, 85, 199, .22); background: var(--waiting-accent-soft); color: var(--waiting-accent); }
.waiting-complete-button { border-color: rgba(38, 122, 75, .22) !important; background: var(--waiting-fresh-soft) !important; color: var(--waiting-fresh) !important; }
.waiting-completed-list { overflow: hidden; border: 1px solid var(--waiting-line); border-radius: var(--waiting-radius-lg); background: var(--waiting-surface); box-shadow: var(--waiting-shadow); }
.waiting-row.is-done { opacity: .64; }
.waiting-row.is-done .dense-main h3 { text-decoration: line-through; }
.waiting-completed-actions .undo-button { width: auto; min-width: 0; height: auto; min-height: 28px; padding: 5.5px 10px; border-radius: 9px; background: var(--waiting-fresh-soft); color: var(--waiting-fresh); font-size: 11.5px; font-weight: 650; }

.waiting-row .waiting-select { width: 4px; height: auto; min-height: 30px; }
.waiting-row .waiting-select span { width: 22px; height: 22px; margin-left: -9px; }
.waiting-row.is-selected { outline: 2px solid rgba(74, 85, 199, .18); background: var(--waiting-accent-soft); }
.waiting-date-section h2 { display: flex; gap: 6px; margin: 20px 4px 8px; color: var(--waiting-ink-soft); font-size: 12px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.waiting-date-section:first-child h2 { margin-top: 2px; }
.waiting-date-section h2 span { color: var(--waiting-ink-faint); font-weight: 600; }
.waiting-date-section .dense-list { overflow: hidden; border: 1px solid var(--waiting-line); border-radius: var(--waiting-radius-lg); background: var(--waiting-surface); box-shadow: var(--waiting-shadow); }
.waiting-empty-note { margin: 20px 10px 6px; color: var(--waiting-ink-faint); font-size: 12px; font-weight: 500; text-align: center; }
.waiting-bulk-bar { margin: 0 0 10px; border-color: var(--waiting-line); border-radius: var(--waiting-radius-md); background: var(--waiting-surface); box-shadow: var(--waiting-shadow); }
.waiting-snooze-presets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.waiting-snooze-presets button { min-height: 40px; border-radius: 11px; background: var(--waiting-accent-soft); color: var(--waiting-accent); font-weight: 650; }

.people-header {
  align-items: center;
}

.people-header p {
  margin: 6px 0 0;
}

.people-create-form {
  margin-bottom: 16px;
}

.people-create-form.list-add-form {
  grid-template-columns: minmax(0, 1fr) minmax(118px, 0.72fr) auto;
}

.people-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.people-toolbar {
  margin-bottom: 16px;
}

.people-grid {
  display: grid;
  gap: 10px;
}

.person-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  width: 100%;
  padding: 10px;
  overflow: hidden;
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(23, 23, 28, 0.08);
  background: var(--item-gradient);
  box-shadow: 0 10px 24px rgba(29, 44, 77, 0.07), var(--shadow-hairline);
}

.person-card::before,
.person-detail-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--item-rail);
  pointer-events: none;
}

.person-card.group-tinted::before,
.person-detail-panel.group-tinted::before {
  background: var(--group-color);
}

.person-avatar {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(0, 122, 255, 0.16), rgba(52, 199, 89, 0.18));
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  box-shadow: var(--shadow-hairline);
}

.person-avatar.large {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  font-size: 20px;
}

.person-card-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.person-card-main strong {
  font-size: 17px;
  line-height: 1.2;
}

.person-card-main span,
.person-card-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.person-card-meta {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: var(--muted);
}

.person-card-meta strong {
  color: var(--ink);
  font-size: 18px;
}

.person-card-select {
  grid-template-columns: minmax(0, 1fr);
}

.person-card-select.is-selected {
  border-color: rgba(0, 122, 255, 0.34);
}

.person-merge-check {
  display: grid;
  grid-template-columns: 22px 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0;
}

.person-detail-panel {
  position: relative;
  overflow: hidden;
}

.person-profile-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.person-profile-top p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.person-context-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.person-context-status span,
.person-context-status a {
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-hairline);
}

.person-context-status a {
  color: var(--blue);
  text-decoration: none;
}

.person-context-status .warning {
  color: var(--danger);
  background: rgba(201, 53, 43, 0.1);
}

.person-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.person-profile-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow-hairline);
}

.person-profile-card.full {
  grid-column: 1 / -1;
}

.person-profile-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.person-related-row {
  grid-template-columns: 86px minmax(0, 1fr);
}

.person-related-type {
  justify-self: start;
  min-width: 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  box-shadow: var(--shadow-hairline);
}

.dense-row h3,
.mini-row span {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.dense-main {
  min-width: 0;
}

.inline-more-button {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow-hairline);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  vertical-align: baseline;
}

.inline-more-button:active {
  transform: scale(0.98);
}

.dense-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.waiting-row .chip-row {
  margin-top: 5px;
}

.dense-time {
  min-width: 44px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.today-agenda-event-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
}

.today-agenda-event-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agenda-event-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.agenda-icon-link {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow-hairline);
  color: var(--ink);
  text-decoration: none;
}

.agenda-icon-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agenda-icon-link.meet-link {
  color: #0a66d8;
}

.dense-row.is-done h3 {
  color: var(--muted);
  text-decoration: line-through;
}

.task-row.action-pending,
.dense-row.action-pending {
  opacity: 0.72;
  transform: scale(0.995);
}

.mini-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 10px 24px rgba(29, 44, 77, 0.06), var(--shadow-hairline);
  text-align: left;
}

.mini-row strong {
  color: var(--muted);
  font-size: 12px;
}

.task-row {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 9px;
  row-gap: 5px;
  align-items: center;
  padding: 11px;
  overflow: visible;
  border-radius: 8px;
  border: 1px solid rgba(22, 22, 26, 0.075);
  background: var(--item-gradient);
  box-shadow: 0 12px 30px rgba(29, 44, 77, 0.08), var(--shadow-hairline);
}

.task-add-form {
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 12px 0 18px;
}

.task-main {
  min-width: 0;
}

.today-task-quadrant {
  display: none;
}

.task-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.task-meta-row .chip {
  min-height: 19px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 750;
}

.task-scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.76);
  color: rgba(23, 23, 28, 0.64);
}

.task-scope-pill svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.task-scope-pill.business {
  color: #245a78;
}

.task-scope-pill.personal {
  color: #2d6b4c;
}

.task-row h3 {
  font-size: 15px;
  line-height: 1.32;
}

.task-row .check-button,
.task-row .undo-button,
.task-row .star-button,
.task-row .trash-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
}

.task-row .trash-icon {
  width: 18px;
  height: 18px;
}

.task-row-actions {
  grid-column: 2;
  display: inline-flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.detail-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.convert-menu {
  position: relative;
  display: inline-grid;
  place-items: center;
  z-index: 5;
}

.convert-menu-trigger {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  color: rgba(23, 23, 28, 0.72);
  font-size: 20px;
  line-height: 1;
}

.convert-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  display: none;
  min-width: 176px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background: rgba(250, 250, 248, 0.92);
  box-shadow: 0 18px 44px rgba(22, 28, 45, 0.16), var(--shadow-hairline);
  backdrop-filter: blur(20px);
}

.convert-menu:focus-within .convert-menu-panel,
.convert-menu:hover .convert-menu-panel {
  display: grid;
  gap: 3px;
}

.convert-menu-panel button {
  justify-content: flex-start;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  box-shadow: none;
}

.convert-menu-panel button:hover,
.convert-menu-panel button:focus-visible {
  background: rgba(23, 23, 28, 0.065);
}

.task-email-draft-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.task-draft-button,
.task-draft-account {
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-hairline);
  color: rgba(23, 23, 28, 0.76);
  font-size: 11px;
  font-weight: 800;
}

.task-draft-button {
  padding: 4px 10px;
}

.task-draft-button.error {
  color: var(--danger);
}

.task-draft-account {
  max-width: 150px;
  padding: 4px 8px;
  border-radius: 999px;
}

.task-draft-status {
  max-width: 180px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.task-row.is-done h3 {
  color: var(--muted);
  text-decoration: line-through;
}

/* GTD task flow */
.gtd-header { gap: 12px; }
.gtd-space-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gtd-space-toggle { display: inline-flex; padding: 3px; border-radius: 14px; background: rgba(22, 22, 26, 0.06); }
.gtd-space-toggle button,
.gtd-matrix-lens,
.gtd-context-row button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; }
.gtd-space-toggle button { padding: 0 12px; }
.gtd-space-toggle button.active,
.gtd-matrix-lens.active { background: var(--ink); color: #fff; box-shadow: 0 5px 12px rgba(20, 20, 27, 0.18); }
.gtd-space-toggle svg,
.gtd-group-chip svg,
.gtd-context-row svg,
.gtd-matrix-lens svg,
.gtd-context-group .group-label svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gtd-group-chip { display: inline-flex; align-items: center; gap: 4px; min-width: 0; min-height: 36px; padding: 0 8px; border-radius: 12px; background: rgba(255,255,255,.66); border: 1px solid rgba(22,22,26,.08); color: var(--ink-soft); }
.gtd-group-chip select { width: min(128px, 25vw); min-height: 34px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 12px; font-weight: 800; }
.gtd-group-chip > svg:last-child { width: 13px; }
.gtd-matrix-lens { width: 36px; min-width: 36px; }
.gtd-context-row { display: flex; gap: 7px; overflow-x: auto; padding: 1px 0 3px; scrollbar-width: none; }
.gtd-context-row::-webkit-scrollbar { display: none; }
.gtd-context-row button { flex: 0 0 auto; padding: 0 11px; background: rgba(255,255,255,.5); border: 1px solid rgba(22,22,26,.07); }
.gtd-context-row button.active { background: rgba(22,22,26,.1); color: var(--ink); }
.gtd-context-group .group-label { display: inline-flex; align-items: center; gap: 7px; }
.gtd-context-group .task-panel { padding: 0; background: transparent; box-shadow: none; }
.gtd-context-group .task-row { border-radius: 14px; }

.task-clarify-view { max-width: 720px; margin: 0 auto; padding: 18px 0 36px; }
.clarify-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.clarify-topbar button { min-width: 38px; min-height: 38px; border: 0; border-radius: 12px; background: rgba(255,255,255,.65); color: var(--ink); font: inherit; font-weight: 800; }
.clarify-progress { height: 5px; overflow: hidden; border-radius: 99px; background: rgba(22,22,26,.08); margin-bottom: 16px; }
.clarify-progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.clarify-source { padding: 14px; border-radius: 17px; background: rgba(255,255,255,.56); border: 1px solid rgba(255,255,255,.72); box-shadow: var(--shadow-hairline); }
.clarify-source small { display: block; color: var(--muted); font-weight: 750; margin-bottom: 5px; }
.clarify-source small svg { width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.clarify-source strong { display: block; font-size: 16px; }
.clarify-source p { margin: 6px 0 0; color: var(--muted); line-height: 1.4; }
.clarify-question { margin: 27px 4px 14px; font-size: 25px; line-height: 1.12; letter-spacing: 0; }
.clarify-options { display: grid; gap: 10px; }
.clarify-option { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: center; width: 100%; min-height: 74px; padding: 12px; border: 1px solid rgba(22,22,26,.08); border-radius: 17px; background: rgba(255,255,255,.7); color: var(--ink); text-align: left; font: inherit; box-shadow: var(--shadow-hairline); }
.clarify-option > span:first-child { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(80,137,255,.12); color: var(--accent); }
.clarify-option svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.clarify-option b { display: block; font-size: 15px; }
.clarify-option small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.clarify-option > i { font-style: normal; color: var(--muted); font-size: 21px; }
.clarify-person-search { display: grid; gap: 9px; margin-top: 16px; }
.clarify-person-search input, .clarify-followup input, .task-detail-editor input, .task-detail-editor textarea, .task-detail-editor select { width: 100%; min-height: 44px; border: 1px solid rgba(22,22,26,.11); border-radius: 13px; background: rgba(255,255,255,.75); color: var(--ink); font: inherit; font-size: 16px; }
.clarify-person-search input, .clarify-followup input, .task-detail-editor input, .task-detail-editor select { padding: 0 12px; }
.clarify-person-results { display: grid; gap: 7px; }
.clarify-person-results button { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid rgba(22,22,26,.08); border-radius: 12px; background: rgba(255,255,255,.62); color: var(--ink); font: inherit; text-align: left; }
.clarify-person-results button.active { border-color: var(--accent); background: rgba(80,137,255,.1); }
.clarify-person-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; }
.clarify-create-person { margin-top: 6px; }
.clarify-create-person input { margin-top: 8px; }
.clarify-followup { margin-top: 18px; }
.clarify-followup label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.clarify-continue { width: 100%; min-height: 48px; margin-top: 20px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; font: inherit; font-weight: 850; }
.clarify-continue:disabled { opacity: .42; }
.clarify-note { margin: 10px 12px 0; color: var(--muted); font-size: 12px; line-height: 1.42; text-align: center; }

.task-detail-push, .task-detail-view { max-width: 760px; margin: 0 auto; padding: 12px 0 48px; }
.task-detail-head, .task-detail-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.task-detail-topbar button { border: 1px solid rgba(255,255,255,.9); color: var(--ink); }
.task-detail-topbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.task-detail-back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 9px; border-radius: 14px; background: rgba(255,255,255,.55); box-shadow: 0 6px 16px -10px rgba(30,10,25,.25); font: inherit; font-size: 14px; font-weight: 700; }
.task-detail-back svg { width: 18px; height: 18px; }
.task-detail-delete-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 14px; background: rgba(255,255,255,.55); color: #b5463b !important; box-shadow: 0 6px 16px -10px rgba(30,10,25,.25); }
.task-detail-saved-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; background: rgba(255,255,255,.5); color: #8a8790; font-size: 12.5px; font-weight: 700; }
.task-detail-saved-pill i { width: 6px; height: 6px; border-radius: 50%; background: #5fb87a; }
.task-detail-saved { color: var(--muted); font-size: 12px; font-weight: 800; }
.task-detail-editor, .task-detail-content { position: relative; overflow: hidden; padding: 36px 34px 42px; border: 1px solid rgba(255,255,255,.72); border-radius: 28px; background: #fff; box-shadow: 0 24px 60px -30px rgba(60,20,50,.28); }
.task-detail-content::before { position: absolute; inset: 0 auto 0 0; width: 5px; border-radius: 28px 0 0 28px; background: linear-gradient(180deg, #eab676, #f3d4a6); content: ""; }
.task-detail-content.work::before { background: linear-gradient(180deg, #6f9fc7, #a9c6df); }
.task-detail-title-row { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 30px; }
.task-detail-status { display: grid; justify-items: start; gap: 12px; }
.task-detail-status > span, .task-detail-description > span { color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.task-detail-title-row .check-button { width: 23px; height: 23px; margin: 0; border-color: #e2dce0; }
.task-detail-title { display: grid; gap: 10px; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; font-size: 25px !important; font-weight: 800 !important; }
.task-detail-title { padding-top: 25px !important; }
.task-detail-title input, .task-detail-description textarea, .task-detail-due input { width: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; }
.task-detail-title input { padding: 0; font-size: 25px; line-height: 1.28; letter-spacing: -.015em; font-weight: 800; }
.task-detail-description { display: grid; gap: 10px; margin-top: 0; }
.task-detail-description textarea, .task-detail-editor textarea { min-height: 120px; padding: 16px 18px; resize: vertical; border: 1px solid #eee7ec; border-radius: 18px; background: #fbfafb; font-size: 15px; line-height: 1.5; }
.task-detail-section { padding: 31px 0 0; border-top: 0; }
.task-detail-section > label, .task-detail-section > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.task-detail-space { display: flex; gap: 10px; flex-wrap: wrap; }
.task-detail-space button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid #e9e2e7; border-radius: 16px; background: #fff; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 700; }
.task-detail-space button svg { width: 16px; height: 16px; margin: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.task-detail-space button.active { border-color: #17151a; background: #17151a; color: #fff; box-shadow: 0 8px 18px -10px rgba(20,15,20,.45); }
.task-detail-group-select { display: flex !important; align-items: center; gap: 10px; min-height: 48px; margin: 12px 0 0; padding: 0 14px 0 16px; border: 1px solid #eee7ec; border-radius: 16px; background: #fbfafb; color: var(--ink); text-transform: none !important; }
.task-detail-group-select > svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.task-detail-group-select select { min-width: 0; flex: 1; height: 46px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 650; appearance: none; }
.task-detail-group-scope { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 5px 10px 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 750; letter-spacing: .01em; text-transform: none; }
.task-detail-group-scope i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.task-detail-group-scope.personal { background: #fbeee0; color: #8a5a1e; }
.task-detail-group-scope.work { background: #e7f0f7; color: #33587a; }
.task-detail-space-note { margin: 13px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.task-detail-priority { display: flex; flex-wrap: wrap; gap: 10px; }
.task-detail-priority button { min-height: 40px; padding: 0 15px; border: 1px solid #e9e2e7; border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 650; }
.task-detail-priority button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.task-detail-due { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .7fr); align-items: center; gap: 12px; }
.task-detail-due > span { margin: 0; }
.task-detail-due input { min-height: 44px; padding: 0 12px; border: 1px solid #e9e2e7; border-radius: 14px; background: #fbfafb; font-size: 14px; }
.task-detail-top-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 31px 0 0; border-top: 0; }
.task-detail-top-toggle span { display: grid; gap: 3px; }
.task-detail-top-toggle small { color: var(--muted); font-size: 12px; }
.task-detail-top-toggle input { position: absolute; opacity: 0; }
.task-detail-top-toggle i { position: relative; width: 44px; height: 26px; border-radius: 999px; background: rgba(22,22,26,.16); }
.task-detail-top-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .16s ease; }
.task-detail-top-toggle input:checked + i { background: var(--ink); }
.task-detail-top-toggle input:checked + i::after { transform: translateX(18px); }
.task-detail-delete, .task-detail-delete-link { margin: 32px 0 0; padding: 0; border: 0; background: transparent; color: #b5463b; font: inherit; font-size: 14px; font-weight: 750; }
@media (max-width: 560px) {
  .gtd-space-row { gap: 6px; }
  .gtd-space-toggle button { padding: 0 9px; font-size: 11px; }
  .gtd-group-chip select { width: 100px; }
  .task-clarify-view { padding-inline: 1px; }
  .task-detail-push, .task-detail-view { padding: 8px 0 32px; }
  .task-detail-content { padding: 28px 20px 34px; border-radius: 24px; }
  .task-detail-content::before { border-radius: 24px 0 0 24px; }
  .task-detail-title { font-size: 22px !important; }
  .task-detail-title input { font-size: 22px; }
  .task-detail-title-row { gap: 12px; margin-bottom: 24px; }
  .task-detail-group-select { align-items: center; }
  .task-detail-group-scope { display: none; }
  .task-detail-due { grid-template-columns: 1fr; gap: 7px; }
}

.check-button {
  border: 2px solid var(--line-strong);
  background: transparent;
  border-radius: 50%;
}

.check-button:hover {
  border-color: var(--green);
  background: rgba(38, 122, 75, 0.1);
}

.undo-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
}

.undo-button:hover {
  background: rgba(0, 113, 227, 0.1);
}

.star-button {
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 18px;
}

.star-button.active {
  color: var(--warning);
}

.priority-button,
.someday-button,
.task-waiting-button {
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.43);
  box-shadow: var(--shadow-hairline);
  color: rgba(23, 23, 28, 0.72);
  font-size: 11px;
}

.priority-button.active,
.someday-button.active,
.priority-chip {
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.56);
  color: var(--green);
}

.segmented,
.app-tabs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  padding: 5px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  box-shadow: 0 16px 42px rgba(29, 44, 77, 0.08), var(--shadow-hairline);
  backdrop-filter: blur(22px) saturate(1.12);
}

.segmented button,
.app-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: rgba(23, 23, 28, 0.66);
  font-weight: 820;
}

.segmented button.active,
.app-tabs button.active {
  background: #111116;
  color: #fff;
  box-shadow: 0 12px 28px rgba(17, 17, 22, 0.18), var(--shadow-hairline);
}

.app-tabs small {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(23, 23, 28, 0.58);
  font-size: 11px;
  font-weight: 850;
}

.app-tabs button.active small {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
}

.matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quadrant-panel {
  padding: 14px;
}

.overview-create-section,
.overview-list-section {
  display: grid;
  gap: 14px;
}

.overview-create-section {
  margin-bottom: 18px;
}

.overview-create-form {
  display: grid;
  gap: 10px;
}

.overview-create-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 7px 7px 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 44px rgba(29, 44, 77, 0.11), var(--shadow-hairline);
  backdrop-filter: blur(24px) saturate(1.12);
}

.overview-create-main input {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 18px;
}

.overview-create-main button {
  min-width: 104px;
  min-height: 50px;
  padding-inline: 22px;
  border-radius: 999px;
}

.task-create-form .overview-create-main {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.task-create-form .task-bulk-add-button {
  min-width: auto;
  padding-inline: 16px;
}

.list-create-type-row {
  width: 100%;
  display: flex;
  align-items: center;
  min-width: 0;
}

.list-type-scroll-row {
  position: relative;
  min-width: 0;
  overflow: hidden;
  touch-action: pan-x;
  overscroll-behavior: contain;
}

.list-type-scroll-row::after {
  content: "›";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 34px;
  pointer-events: none;
  display: grid;
  place-items: center;
  color: rgba(23, 23, 28, 0.44);
  font-size: 22px;
  font-weight: 800;
}

.list-type-scroll-row::after {
  right: 0;
  background: linear-gradient(270deg, rgba(239, 246, 255, 0.96), rgba(239, 246, 255, 0));
}

.list-type-segmented {
  margin: 0;
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-inline: 2px 26px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
  overscroll-behavior: contain;
}

.list-type-segmented::-webkit-scrollbar {
  display: none;
}

.list-type-segmented label {
  display: inline-flex;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.list-type-segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.list-type-segmented span,
.list-type-segmented .list-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(23, 23, 28, 0.66);
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.list-type-segmented .list-type-pill {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.list-type-segmented svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.list-type-segmented input:checked + span {
  background: #111116;
  color: #fff;
  box-shadow: 0 12px 28px rgba(17, 17, 22, 0.18), var(--shadow-hairline);
}

.list-type-segmented .list-type-pill.active {
  background: #111116;
  color: #fff;
  box-shadow: 0 12px 28px rgba(17, 17, 22, 0.18), var(--shadow-hairline);
}

.archive-toggle-button {
  justify-self: start;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 13px;
  font-weight: 850;
}

.archive-toggle-button:hover {
  background: transparent;
  color: var(--ink);
}

.list-overview {
  display: grid;
  gap: 10px;
}

.list-overview-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 14px 14px 14px 18px;
  overflow: hidden;
  border: 1px solid rgba(22, 22, 26, 0.075);
  border-radius: 8px;
  background: var(--item-gradient);
  box-shadow: 0 12px 30px rgba(29, 44, 77, 0.08), var(--shadow-hairline);
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.list-overview-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--item-rail);
  pointer-events: none;
}

.list-overview-row:hover {
  border-color: rgba(22, 22, 26, 0.12);
  box-shadow: 0 16px 34px rgba(29, 44, 77, 0.11), var(--shadow-hairline);
  transform: translateY(-1px);
}

.list-overview-main {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.list-overview-main:hover {
  background: transparent;
}

.house-list-overview-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.house-list-overview-row .trash-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
}

.list-overview-row h3 {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.list-type-title-icon,
.prepper-title-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(46, 160, 101, 0.14);
  color: var(--green);
}

.list-type-title-icon.standard {
  background: rgba(17, 17, 22, 0.08);
  color: rgba(17, 17, 22, 0.74);
}

.list-type-title-icon.shopping {
  background: rgba(15, 122, 229, 0.12);
  color: var(--blue);
}

.list-type-title-icon.inventory {
  background: rgba(123, 97, 255, 0.12);
  color: #7057df;
}

.list-type-title-icon.bucket {
  background: rgba(255, 180, 64, 0.16);
  color: #9a5a00;
}

.list-type-title-icon.reading {
  background: rgba(123, 97, 255, 0.12);
  color: #7057df;
}

.list-type-title-icon.prepper {
  background: rgba(46, 160, 101, 0.14);
  color: var(--green);
}

.list-type-title-icon svg,
.prepper-title-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.list-overview-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reading-list-overview-row h3 {
  align-items: flex-start;
}

.reading-list-overview-row h3 .list-type-title-icon {
  margin-top: 1px;
}

.list-overview-main-text {
  min-width: 0;
}

.list-overview-main-text h3 {
  column-gap: 10px;
}

.habit-section {
  display: grid;
  gap: 14px;
}

.habit-grid {
  display: grid;
  gap: 12px;
}

.habit-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 78px;
  padding: 16px 16px 16px 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.78), rgba(226, 240, 255, 0.82));
  box-shadow: var(--shadow-card), var(--shadow-hairline);
}

.habit-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, #0f7ae5, #25b58d);
}

.habit-card.is-done {
  opacity: 0.78;
}

.habit-card-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.habit-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.habit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.habit-edit-button {
  width: 42px;
  height: 42px;
}

.habit-streak-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.58);
  color: #0b7a55;
  font-size: 12px;
  font-weight: 900;
}

.habit-celebrate {
  animation: habit-pop 560ms cubic-bezier(0.2, 1.4, 0.3, 1);
}

@keyframes habit-pop {
  0% {
    transform: scale(0.985);
    filter: saturate(1);
  }
  45% {
    transform: scale(1.018);
    filter: saturate(1.25);
  }
  100% {
    transform: scale(1);
    filter: saturate(1);
  }
}

.habit-frequency-row {
  width: 100%;
}

.habit-edit-frequency-row {
  margin-top: 2px;
}

.habit-edit-card {
  gap: 12px;
}

.settings-save-button {
  width: fit-content;
  justify-self: end;
}

.habit-today-row.is-done {
  opacity: 0.78;
}

.habit-today-row.is-done h3 {
  color: var(--muted);
  text-decoration: line-through;
}

.shared-by-chip {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  min-height: 22px;
  margin-top: 8px;
  padding: 3px 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow-hairline);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow-hairline);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.list-overview-row > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.simple-list-row.is-done span,
.simple-list-row.is-done .list-item-text-button {
  color: var(--muted);
  text-decoration: line-through;
}

.list-detail-shell {
  display: grid;
  gap: 12px;
}

.list-detail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.list-detail-nav button {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 13px;
  box-shadow: var(--shadow-hairline);
}

.list-detail-card {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.house-detail-shell {
  max-width: 860px;
}

.house-today-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-left: 8px solid #50aa67;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(80, 170, 103, 0.22), rgba(70, 110, 242, 0.12) 52%, rgba(255, 255, 255, 0.66));
  box-shadow: 0 18px 48px rgba(29, 44, 77, 0.12), var(--shadow-hairline);
  backdrop-filter: blur(22px) saturate(1.1);
}

.empty-house-card {
  grid-template-columns: minmax(0, 1fr);
}

.recurring-house-card {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  padding: 18px 20px;
}

.recurring-summary-content {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.recurring-summary-content > div {
  min-width: 0;
}

.recurring-summary-pill {
  display: inline-flex;
  min-width: 58px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-hairline);
}

.recurring-due-list {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.recurring-due-list span {
  position: relative;
  display: block;
  padding-left: 13px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.recurring-due-list span::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(23, 23, 30, 0.72);
}

.house-today-card h2 {
  margin: 2px 0 4px;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

.house-today-card p {
  margin: 0;
  color: var(--muted);
}

.house-today-card.is-done {
  border-left-color: var(--green);
  background: linear-gradient(135deg, rgba(38, 122, 75, 0.18), rgba(255, 255, 255, 0.68));
}

.house-today-card > .check-button,
.house-today-card > .icon-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
}

.house-today-actions,
.house-agenda-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.house-agenda-row {
  border-left: 6px solid #50aa67;
  background: linear-gradient(135deg, rgba(80, 170, 103, 0.18), rgba(255, 255, 255, 0.62));
}

.house-agenda-row .dense-time {
  display: grid;
  place-items: center;
  min-width: 42px;
}

.house-agenda-row .dense-time {
  transform: translateX(-3px);
}

.house-agenda-row .dense-main p {
  margin: 1px 0 0;
}

.house-item-row {
  grid-template-columns: 30px minmax(0, 1fr) auto;
}

.house-item-row.is-current {
  border-left: 5px solid #50aa67;
}

.house-item-row .trash-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 50%;
}

.house-priority-button {
  align-self: center;
}

.house-item-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: max-content;
}

.house-item-actions .trash-icon {
  width: 18px;
  height: 18px;
}

.house-history-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  color: var(--muted);
}

.house-history-button svg {
  width: 17px;
  height: 17px;
}

.house-item-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.house-cycle-board {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-left: 6px solid #50aa67;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(80, 170, 103, 0.13), rgba(255, 255, 255, 0.62));
  box-shadow: var(--shadow-hairline);
}

.house-cycle-board.is-empty {
  color: var(--muted);
}

.house-cycle-head,
.house-score-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.house-cycle-head h3 {
  margin: 2px 0 0;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0;
}

.house-cycle-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.house-score-list {
  display: grid;
  gap: 9px;
}

.house-score-row {
  display: grid;
  grid-template-columns: 28px 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
}

.house-score-row.is-winner {
  border-color: rgba(255, 198, 74, 0.58);
  background: linear-gradient(135deg, rgba(255, 214, 102, 0.26), rgba(255, 255, 255, 0.62));
}

.house-score-rank {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.house-score-rank svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #c78b05;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.house-score-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 126, 94, 0.13);
  color: #087456;
  font-size: 12px;
  font-weight: 900;
}

.house-score-main {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.house-score-title strong,
.house-score-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.house-score-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.house-score-bar {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 23, 30, 0.08);
}

.house-score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #50aa67, #1786d8);
}

.house-history-sheet .sheet-form {
  gap: 14px;
}

.house-history-list {
  display: grid;
  gap: 9px;
}

.house-history-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
}

.house-history-row span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.house-history-delete {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 50%;
}

.house-history-delete .trash-icon {
  width: 17px;
  height: 17px;
}

.house-history-row strong,
.house-history-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.house-history-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.habit-log-open-button {
  display: grid;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.habit-log-open-button:focus-visible {
  border-radius: 12px;
  outline: 3px solid rgba(0, 122, 255, 0.24);
  outline-offset: 3px;
}

.habit-log-sheet {
  gap: 14px;
}

.habit-log-streak {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-hairline);
}

.habit-log-streak strong {
  color: var(--ink);
  font-size: 46px;
  font-weight: 900;
  line-height: 0.95;
}

.habit-log-streak span,
.habit-log-month {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.habit-log-month {
  padding: 8px 2px 0;
  text-transform: uppercase;
}

.habit-log-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.habit-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}

.habit-comparison-strip {
  display: grid;
  width: 100%;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(246, 250, 255, 0.76);
  box-shadow: var(--shadow-hairline);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.habit-comparison-strip:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.24);
  outline-offset: 3px;
}

.habit-comparison-strip:hover {
  background: rgba(255, 255, 255, 0.86);
}

.habit-comparison-person {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 32px;
  gap: 9px;
  align-items: center;
}

.habit-comparison-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #5f99ff;
  color: white;
  font-size: 13px;
  font-weight: 950;
}

.habit-comparison-avatar.is-self {
  background: var(--ink);
}

.habit-comparison-person span:nth-child(2),
.habit-comparison-together > span {
  display: grid;
  min-width: 0;
}

.habit-comparison-person b,
.habit-comparison-person small,
.habit-comparison-together b,
.habit-comparison-together small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.habit-comparison-person b,
.habit-comparison-together b {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.1;
}

.habit-comparison-person small,
.habit-comparison-strip p,
.habit-comparison-together small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.habit-comparison-strip p {
  margin: 0;
}

.habit-comparison-strip p strong {
  color: var(--ink);
}

.habit-mini-ring,
.habit-big-ring {
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 55%, transparent 57%),
    conic-gradient(#5f99ff var(--ring-progress), rgba(15, 23, 42, 0.08) 0);
}

.habit-mini-ring {
  width: 32px;
  height: 32px;
}

.habit-comparison-together {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
}

.habit-comparison-together .habit-mini-ring {
  width: 42px;
  height: 42px;
}

.habit-comparison-together p {
  padding: 8px 10px;
  border-radius: 999px;
  background: #349df4;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.habit-comparison-together .wprog {
  grid-column: 1 / -1;
}

.wprog {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(52, 157, 244, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-hairline);
}

.wprog.compact {
  gap: 8px;
  padding: 10px;
  border-radius: 15px;
}

.wprog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wprog-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.wprog.compact .wprog-head h3 {
  font-size: 13px;
}

.wprog-head span,
.wprog-row small,
.wprog-whisper span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.wprog-rows {
  display: grid;
  gap: 10px;
}

.wprog-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.wprog.compact .wprog-row {
  grid-template-columns: minmax(0, 1fr);
}

.wprog-main {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.wprog-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.wprog-label strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 930;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wprog.compact .wprog-label strong {
  font-size: 13px;
}

.wprog-label b {
  color: #2f7be8;
  font-size: 18px;
  font-weight: 950;
}

.wprog.compact .wprog-label b {
  font-size: 13px;
}

.wtrack {
  display: block;
  height: 17px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(52, 157, 244, 0.11);
  box-shadow: inset 0 0 0 1px rgba(52, 157, 244, 0.1);
}

.wprog.compact .wtrack {
  height: 10px;
}

.wfill {
  display: block;
  height: 100%;
  min-width: 4px;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #88d3ff, #2f9eff);
}

.wprog-whisper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.wprog-whisper strong {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: #2f9eff;
  color: white;
  font-size: 13px;
  font-weight: 950;
}

.habit-card-actions .icon-button,
.habit-card-actions .trash-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
}

.habit-share-button {
  padding: 0;
}

.habit-share-stack {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
}

.habit-share-avatar,
.habit-share-count {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background: #f8fafc;
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  box-shadow: var(--shadow-hairline);
}

.habit-share-avatar + .habit-share-avatar,
.habit-share-count {
  margin-left: -7px;
}

.habit-share-avatar.empty {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
}

.habit-share-avatar.empty svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.habit-managed-chip {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  color: var(--ink);
  padding: 0 9px;
  font-size: 11px;
  font-weight: 850;
}

.habit-card.is-rest,
.habit-today-row.is-rest {
  background: rgba(255, 255, 255, 0.62);
}

.habit-leaderboard-sheet {
  gap: 14px;
}

.habit-leaderboard-list {
  display: grid;
  gap: 9px;
}

.habit-leaderboard-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
}

.habit-leaderboard-row > strong {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 13px;
}

.habit-leaderboard-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.habit-leaderboard-row b {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.habit-leaderboard-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.habit-leaderboard-row em {
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  color: var(--ink);
  padding: 6px 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.habit-leaderboard-row.is-rest em {
  background: rgba(36, 195, 162, 0.14);
  color: #106b59;
}

.habit-shared-sheet {
  gap: 14px;
  padding-top: 10px;
}

.habit-nudge-toast {
  margin: 0;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(52, 157, 244, 0.12);
  color: #1d5ea8;
  font-size: 13px;
  font-weight: 850;
}

.habit-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.06);
}

.habit-mode-toggle button {
  min-height: 46px;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 15px;
}

.habit-mode-toggle button.active {
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-hairline);
}

.habit-mode-hint {
  margin: -2px 4px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.25;
  text-align: center;
}

.habit-versus-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
}

.habit-versus-person {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-hairline);
}

.habit-big-ring {
  width: 94px;
  height: 94px;
}

.habit-versus-person strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 930;
}

.habit-versus-person small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.habit-crown {
  position: absolute;
  top: 16px;
  right: 18px;
  color: #c78b05;
  font-size: 20px;
}

.habit-week-card,
.habit-milestone-card,
.habit-nudge-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-hairline);
}

.habit-week-head,
.habit-milestone-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.habit-week-head h3,
.habit-nudge-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.05;
}

.habit-week-head span {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.habit-week-head i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--dot);
}

.habit-week-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 9px;
  align-items: end;
}

.habit-week-bars span {
  display: grid;
  gap: 7px;
  justify-items: center;
}

.habit-week-bars b {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
  height: 96px;
}

.habit-week-bars i {
  display: block;
  width: 10px;
  height: 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
}

.habit-week-bars i.done {
  height: 88px;
  background: var(--bar);
}

.habit-week-bars em,
.habit-team-week em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.habit-team-hero {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 12px 0 4px;
}

.habit-team-hero strong {
  color: var(--ink);
  font-size: 64px;
  font-weight: 950;
  line-height: 0.95;
}

.habit-team-hero span {
  font-size: 48px;
}

.habit-team-hero small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.habit-team-hero em {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(52, 157, 244, 0.12);
  color: #2773d8;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.habit-team-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.habit-team-week span {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 9px 2px;
  border: 1px solid transparent;
  border-radius: 18px;
}

.habit-team-week span.both {
  border-color: rgba(52, 157, 244, 0.18);
  background: rgba(52, 157, 244, 0.09);
}

.habit-team-week b {
  display: grid;
  gap: 5px;
}

.habit-team-week i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.1);
}

.habit-team-week i.done:first-child {
  background: var(--ink);
}

.habit-team-week i.done {
  background: #5f99ff;
}

.habit-milestone-card strong,
.habit-milestone-card b {
  color: var(--ink);
  font-size: 17px;
}

.habit-milestone-bar {
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.habit-milestone-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #35a7ff, #3478f6);
}

.habit-milestone-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 820;
}

.habit-nudge-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.habit-nudge-actions button {
  display: grid;
  gap: 5px;
  min-height: 72px;
  align-content: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(239, 244, 251, 0.86);
  color: var(--ink);
  box-shadow: var(--shadow-hairline);
  font-size: 13px;
}

.habit-nudge-actions span {
  font-size: 21px;
}

.list-detail-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.list-title-view {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.list-detail-top h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.list-title-edit-button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.56);
  font-size: 16px;
}

.list-title-edit-form {
  width: min(100%, 560px);
}

.list-title-edit-form input {
  width: 100%;
  min-height: 42px;
  padding: 6px 10px;
  font-size: 24px;
  font-weight: 800;
}

.list-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.shop-filter-strip {
  display: flex;
  gap: 7px;
  align-items: center;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.shop-filter-strip::-webkit-scrollbar {
  display: none;
}

.shop-filter-pill {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.43);
  color: rgba(23, 23, 28, 0.72);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  box-shadow: var(--shadow-hairline);
}

.shop-filter-pill.is-active {
  background: var(--ink);
  color: var(--panel);
}

.shop-filter-pill.shop-logo-chip {
  min-height: 30px;
  border: 1px solid transparent;
  box-shadow: none;
}

.shop-filter-pill.shop-logo-chip.is-active {
  background: var(--shop-bg, var(--ink));
  color: var(--shop-fg, var(--panel));
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.72),
    0 1px 4px rgba(0, 0, 0, 0.12);
}

.list-kind-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.list-kind-toggle input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--green);
}

.list-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 7px 7px 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 44px rgba(29, 44, 77, 0.11), var(--shadow-hairline);
  backdrop-filter: blur(24px) saturate(1.12);
}

.list-add-form.grocery-list-add-form,
.list-add-form.reading-list-add-form {
  grid-template-columns: auto auto auto minmax(0, 1fr) auto;
  grid-template-areas:
    "input input input input input"
    "scan photo bulk spacer add";
  min-height: 128px;
  align-items: center;
  padding: 14px;
  padding-left: 18px;
  border-radius: 34px;
}

.list-add-form.grocery-list-add-form > input[name="text"],
.list-add-form.reading-list-add-form > input[name="text"] {
  grid-area: input;
}

.list-add-form.grocery-list-add-form .scan-barcode-button,
.list-add-form.reading-list-add-form .scan-barcode-button {
  grid-area: scan;
}

.list-add-form.grocery-list-add-form .product-photo-button,
.list-add-form.reading-list-add-form .product-photo-button {
  grid-area: photo;
}

.list-add-form.grocery-list-add-form .bulk-add-inline-button,
.list-add-form.reading-list-add-form .bulk-add-inline-button {
  grid-area: bulk;
}

.list-add-form.grocery-list-add-form .primary,
.list-add-form.reading-list-add-form .primary {
  grid-area: add;
}

.prepper-create-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.prepper-create-options[hidden] {
  display: none;
}

.prepper-create-options label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.prepper-create-options input,
.prepper-create-options select {
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  box-shadow: var(--shadow-hairline);
}

.list-add-form.prepper-list-add-form {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.list-add-form input {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 18px;
}

.list-add-form button {
  min-width: 82px;
  min-height: 50px;
  padding-inline: 22px;
  border-radius: 999px;
}

.list-add-form .secondary {
  min-width: 0;
  padding-inline: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.56);
}

.scan-barcode-button,
.product-photo-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.scan-barcode-button svg,
.product-photo-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.recurring-house-add-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-radius: 32px;
  padding: 8px;
  padding-left: 18px;
}

.recurring-house-add-form .recurrence-editor {
  grid-column: 1 / -1;
}

.recurrence-editor {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin-top: 2px;
  padding: 12px 4px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.58);
}

.recurrence-editor label,
.recurrence-custom-row {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.recurrence-custom-row {
  display: none;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px;
}

.recurrence-editor.show-custom .recurrence-custom-row {
  display: grid;
}

.recurrence-editor [data-recurrence-weekday],
.recurrence-editor [data-recurrence-monthly] {
  display: none;
}

.recurrence-editor.show-weekday [data-recurrence-weekday],
.recurrence-editor.show-monthly [data-recurrence-monthly] {
  display: grid;
}

.recurrence-editor span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.recurrence-editor select,
.recurrence-editor input {
  min-height: 38px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-hairline);
}

.recurrence-editor input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
}

.simple-list-items {
  display: grid;
  gap: 7px;
}

.list-item-block {
  display: grid;
}

.list-item-block.is-dragging {
  opacity: 0.55;
}

body.list-drag-active .list-item-block.is-dragging {
  pointer-events: none;
}

body.list-drag-active {
  user-select: none;
  -webkit-user-select: none;
}

.simple-list-row {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 8px 9px;
  overflow: hidden;
  border: 1px solid rgba(22, 22, 26, 0.075);
  border-radius: 9px;
  background: var(--item-gradient);
  box-shadow: 0 12px 30px rgba(29, 44, 77, 0.08), var(--shadow-hairline);
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.simple-list-row:hover {
  border-color: rgba(22, 22, 26, 0.12);
  background: var(--item-gradient-hover);
  box-shadow: 0 18px 42px rgba(29, 44, 77, 0.12), var(--shadow-hairline);
}

.simple-list-row.grocery-row {
  grid-template-columns: 30px 24px minmax(0, 1fr) auto auto;
}

.simple-list-row.wine-inventory-row {
  grid-template-columns: 30px 24px minmax(0, 1fr) auto;
}

.simple-list-row.prepper-row {
  grid-template-columns: 30px 24px minmax(0, 1fr) auto;
}

.simple-list-row.is-processing {
  opacity: 0.82;
}

.simple-list-row.is-error {
  border-color: rgba(218, 54, 51, 0.22);
}

.simple-list-row:last-child {
  border-bottom: 1px solid rgba(22, 22, 26, 0.075);
}

.list-item-text-button {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.list-item-edit-form input {
  min-width: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.list-item-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.list-item-text-button {
  justify-self: stretch;
  min-height: 30px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  font-weight: 500;
}

.list-item-text-button:hover {
  background: transparent;
  color: var(--ink);
}

.list-item-edit-form {
  min-width: 0;
}

.list-item-edit-form input {
  width: 100%;
  min-height: 32px;
  padding: 4px 8px;
}

.simple-list-row .check-button {
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
}

.list-drag-handle {
  display: inline-grid;
  place-items: center;
  width: 24px;
  min-width: 24px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.list-drag-handle:disabled,
.simple-list-row .check-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.list-drag-handle:active {
  cursor: grabbing;
  color: var(--ink);
  background: var(--control);
}

.list-drag-handle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.list-item-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: end;
}

.list-item-meta-tools {
  justify-self: start;
  gap: 3px;
}

.list-item-meta-tools .list-item-add-button,
.list-item-meta-tools .list-item-icon-link {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  font-size: 16px;
}

.list-item-meta-tools .list-item-icon-link svg {
  width: 15px;
  height: 15px;
}

.list-item-avatar {
  display: inline-grid;
  place-items: center;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  border-radius: 50%;
  background: var(--avatar-color, var(--control));
  color: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.list-item-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-height: 22px;
}

.list-item-shop-line {
  display: flex;
  align-items: center;
  min-height: 20px;
  margin: 0 0 4px;
}

.shop-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--shop-bg, var(--control));
  color: var(--shop-fg, var(--ink));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.list-processing-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-hairline);
  font-size: 11px;
  font-weight: 850;
}

.list-processing-chip.error {
  color: #d93633;
  background: rgba(255, 238, 238, 0.82);
}

.tiny-spinner {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(17, 17, 22, 0.18);
  border-top-color: rgba(17, 17, 22, 0.72);
  border-radius: 999px;
  animation: medarno-spin 780ms linear infinite;
}

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

.list-item-shop-chip {
  min-height: 20px;
  gap: 3px;
  padding: 0 8px;
  border: 0;
  font-size: 10px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.list-item-shop-chip:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.11), 0 4px 10px rgba(23, 23, 28, 0.12);
}

.simple-list-row.is-done .list-item-avatar {
  color: rgba(0, 0, 0, 0.72);
  text-decoration: none;
}

.simple-list-row.is-done .list-item-shop-chip {
  color: var(--shop-fg, var(--ink));
  text-decoration: none;
}

.list-offer-expiry-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 8px;
  color: #617e10;
  border: 1px solid rgba(116, 151, 20, 0.2);
  border-radius: 999px;
  background: rgba(215, 239, 129, 0.24);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.list-offer-expiry-chip svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
}

.list-item-added-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  color: rgba(79, 91, 116, 0.82);
  border: 1px solid rgba(96, 110, 141, 0.14);
  border-radius: 999px;
  background: rgba(113, 128, 160, 0.09);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.list-item-added-chip:hover {
  color: #425d9d;
  border-color: rgba(67, 92, 157, 0.26);
  background: rgba(94, 129, 211, 0.13);
}

.grocery-added-date-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 2px;
  padding: 9px 10px 9px 12px;
  border: 1px solid rgba(67, 92, 157, 0.15);
  border-radius: 13px;
  background: rgba(94, 129, 211, 0.09);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.grocery-added-date-filter strong { color: var(--ink); }

.grocery-added-date-filter button {
  flex: 0 0 auto;
  min-height: 29px;
  padding: 5px 9px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.84);
  color: #3d5a9c;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
}
}

.shop-logo-chip.netto {
  --shop-bg: #f9d14a;
  --shop-fg: #000000;
}

.shop-logo-chip.rema1000 {
  --shop-bg: #163164;
  --shop-fg: #ffffff;
}

.shop-logo-chip.menu {
  --shop-bg: #c0001f;
  --shop-fg: #ffffff;
}

.shop-logo-chip.fotex {
  --shop-bg: #00002a;
  --shop-fg: #ffffff;
}

.shop-logo-chip.bilka {
  --shop-bg: #117dc4;
  --shop-fg: #ffffff;
}

.shop-logo-chip.coop365 {
  --shop-bg: #159e36;
  --shop-fg: #FFFFFF;
  color: #FFFFFF;
}

.shop-logo-chip.coop365 span,
.shop-logo-chip.coop365 button {
  color: #FFFFFF;
}

.shop-logo-chip.lidl {
  --shop-bg: #fff109;
  --shop-fg: #063b99;
}

.shop-logo-chip.normal {
  --shop-bg: #1eddc2;
  --shop-fg: #000000;
}

.shop-logo-chip.maxizoo {
  --shop-bg: #17531e;
  --shop-fg: #ffffff;
}

.shop-logo-chip.jemfix {
  --shop-bg: #d90011;
  --shop-fg: #ffffff;
}

.shop-logo-chip.spar {
  --shop-bg: #e5001d;
  --shop-fg: #ffffff;
}

.list-item-add-button,
.list-item-icon-link {
  display: inline-grid;
  place-items: center;
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 18px;
}

.list-item-add-button:hover,
.list-item-icon-link:hover {
  background: var(--control);
  color: var(--ink);
}

.wine-info-button.has-info {
  border-color: rgba(35, 104, 216, 0.24);
  background: rgba(35, 104, 216, 0.12);
  color: #174ea6;
}

.list-item-icon-link svg,
.list-image-picker svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.list-item-icon-link.etilbudsavis-link {
  width: 22px;
  min-width: 22px;
  height: 26px;
  min-height: 26px;
}

.list-item-icon-link.etilbudsavis-link svg {
  width: 16px;
  height: 20px;
  fill: initial;
  stroke: none;
}

.list-item-icon-link.etilbudsavis-link svg path {
  stroke: none;
}

.wine-info-sheet {
  gap: 14px;
}

.wine-info-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wine-info-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.wine-info-heading h2 {
  margin: 0;
}

.wine-info-grid {
  display: grid;
  gap: 10px;
}

.wine-info-grid article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-hairline);
}

.wine-info-grid strong,
.wine-info-sources strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.wine-info-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.wine-info-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.wine-price-estimate-card button {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  margin-top: 4px;
}

.wine-info-sources,
.wine-info-loading {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
}

.wine-info-sources a,
.wine-info-sources span {
  overflow: hidden;
  color: var(--blue);
  font-size: 13px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wine-info-loading {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  color: var(--muted);
}

.reading-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
  gap: 14px;
}

.reading-item-card {
  position: relative;
  display: grid;
  gap: 9px;
  min-height: 260px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.32)),
    linear-gradient(135deg, rgba(226, 241, 255, 0.86), rgba(238, 229, 255, 0.5));
  box-shadow: 0 16px 42px rgba(29, 44, 77, 0.11), var(--shadow-hairline);
}

.reading-item-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--item-rail);
}

.reading-item-card.is-done {
  opacity: 0.72;
}

.reading-item-thumb {
  aspect-ratio: 2 / 3;
  min-height: 178px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.42);
  background-position: center;
  background-size: cover;
}

.reading-item-thumb.is-placeholder {
  display: grid;
  place-items: center;
  color: rgba(23, 23, 28, 0.38);
}

.reading-item-thumb svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reading-item-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.reading-item-title {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.14;
  text-align: left;
  overflow-wrap: anywhere;
}

.reading-item-card.is-done .reading-item-title {
  color: var(--muted);
  text-decoration: line-through;
}

.reading-item-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
}

.reading-source-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: rgba(23, 23, 28, 0.68);
  font-size: 11px;
  font-weight: 820;
  text-decoration: none;
}

.reading-source-link svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reading-source-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reading-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: auto;
}

.reading-item-actions .check-button,
.reading-item-actions .list-item-add-button,
.reading-item-actions .list-item-icon-link {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
}

.reading-item-card .list-attachment-panel {
  grid-template-columns: 1fr;
  margin-top: 0;
  padding: 0;
  border-bottom: 0;
}

.list-attachment-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0 10px 38px;
  border-bottom: 1px solid var(--line);
}

.list-link-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.list-item-note-form {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.list-item-note-form input,
.list-link-form input {
  min-height: 36px;
  padding: 8px 10px;
}

.list-item-note-form button,
.list-link-form button,
.list-image-picker {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 13px;
}

.list-image-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-hairline);
}

.list-image-picker input {
  display: none;
}

.image-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(8, 10, 12, 0.34);
  backdrop-filter: blur(18px) saturate(1.15);
}

.install-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 72;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(21, 26, 34, 0.28);
  backdrop-filter: blur(18px) saturate(1.05);
}

.install-guide-panel {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(21, 31, 50, 0.22), var(--shadow-hairline);
  backdrop-filter: blur(26px) saturate(1.12);
}

.install-guide-close {
  top: 14px;
  left: auto;
  right: 14px;
}

.install-guide-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: #111116;
  color: #fff;
  box-shadow: 0 14px 34px rgba(17, 17, 22, 0.18);
}

.install-guide-panel h2 {
  margin: 0 42px 14px 0;
  font-size: 26px;
  line-height: 1.05;
}

.install-guide-panel ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.install-guide-panel p {
  margin: 14px 0 0;
}

.bulk-overlay {
  position: fixed;
  inset: 0;
  z-index: 72;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(8, 10, 12, 0.28);
  backdrop-filter: blur(20px) saturate(1.15);
}

.bulk-overlay-panel {
  position: relative;
  width: min(760px, 80vw);
  height: min(720px, 80vh);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.16);
}

.bulk-add-form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  height: 100%;
}

.bulk-task-add-form {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.bulk-overlay-panel.bulk-screenshot-panel {
  width: min(560px, calc(100vw - 32px));
  height: min(720px, calc(100dvh - 32px));
  padding: 20px;
}

.bulk-screenshot-add-form {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  height: 100%;
  gap: 12px;
}

.bulk-screenshot-add-form textarea {
  height: 100%;
  min-height: 0;
  font-size: 16px;
}

.bulk-task-space {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.bulk-task-space select {
  width: auto;
  min-height: 42px;
  padding: 8px 38px 8px 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
}

.bulk-add-form > div:first-child {
  padding-right: 50px;
}

.bulk-overlay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: var(--shadow-hairline);
}

.bulk-add-form h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.bulk-add-form p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.bulk-add-form textarea {
  min-height: 0;
  height: 100%;
  resize: none;
  padding: 14px;
  border-radius: 16px;
  font-size: 18px;
  line-height: 1.38;
}

.bulk-screenshot-upload {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid rgba(59, 112, 222, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(75, 123, 241, 0.09), rgba(55, 201, 169, 0.1));
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.bulk-screenshot-upload:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 112, 222, 0.5);
  background: linear-gradient(135deg, rgba(75, 123, 241, 0.14), rgba(55, 201, 169, 0.15));
}

.bulk-screenshot-upload-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(135deg, #496ff0, #36c7aa);
  box-shadow: 0 8px 18px rgba(52, 114, 229, 0.22);
}

.bulk-screenshot-upload-icon svg { width: 21px; height: 21px; }
.bulk-screenshot-upload strong,
.bulk-screenshot-upload small { display: block; }
.bulk-screenshot-upload strong { color: var(--ink); font-size: 14px; }
.bulk-screenshot-upload small { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 700; }
.bulk-screenshot-upload em { padding: 9px 12px; color: #355fbe; border-radius: 11px; background: rgba(255,255,255,.86); box-shadow: 0 1px 2px rgba(22, 45, 96, .08); font-size: 12px; font-style: normal; font-weight: 850; white-space: nowrap; }
.bulk-screenshot-note { margin: -3px 2px 0 !important; font-size: 12px !important; line-height: 1.35; }

@media (max-width: 640px) {
  .bulk-overlay-panel.bulk-screenshot-panel { width: calc(100vw - 28px); height: calc(100dvh - 28px); padding: 18px; border-radius: 24px; }
  .bulk-screenshot-add-form { grid-template-rows: auto auto auto minmax(0, 1fr) auto; gap: 11px; }
  .bulk-screenshot-add-form textarea { height: 100%; min-height: 0; padding: 13px; }
  .bulk-screenshot-upload { min-height: 72px; padding: 11px; }
  .bulk-screenshot-upload-icon { width: 40px; height: 40px; border-radius: 12px; }
  .bulk-screenshot-upload strong { font-size: 13px; }
  .bulk-screenshot-upload small { font-size: 11px; }
  .bulk-screenshot-upload em { padding: 8px 10px; }
}

.bulk-add-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.image-overlay-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 80vw;
  height: 80vh;
  margin: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.image-overlay-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.document-preview-frame {
  width: min(960px, calc(100vw - 32px));
  height: min(86vh, 900px);
}

.document-preview-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.image-overlay-close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.list-quantity-stepper {
  display: inline-grid;
  grid-template-columns: 26px minmax(18px, auto) 26px;
  gap: 2px;
  align-items: center;
  justify-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.list-quantity-stepper button {
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.list-quantity-stepper button:disabled {
  opacity: 0.28;
  cursor: default;
}

.list-quantity-stepper strong {
  min-width: 18px;
  color: var(--ink);
  text-align: center;
}

.check-button.checked {
  border-color: var(--green);
  background: rgba(38, 122, 75, 0.12);
}

.check-button.checked::after {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg) translate(1px, -1px);
}

.list-detail-actions,
.list-share-panel,
.list-share-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.list-detail-actions {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.list-settings-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow-hairline);
}

.list-setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 16px;
}

.list-setting-row strong,
.list-setting-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-setting-row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.list-setting-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.list-setting-row input {
  appearance: none;
  position: relative;
  width: 48px;
  min-width: 48px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 22, 0.16);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 22, 0.08);
  cursor: pointer;
  transition: background 140ms ease;
}

.list-setting-row input::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(17, 17, 22, 0.2);
  transition: transform 140ms ease;
}

.list-setting-row input:checked {
  background: #111116;
}

.list-setting-row input:checked::after {
  transform: translateX(18px);
}

.list-setting-row select {
  min-width: 116px;
  min-height: 36px;
  padding: 0 32px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  color: var(--ink);
  background-color: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-hairline);
  font-size: 13px;
  font-weight: 850;
}

.list-share-panel {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.text-link-button {
  justify-self: start;
  min-height: 32px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.text-link-button:hover {
  color: var(--ink);
  background: transparent;
}

.list-shared-users {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.list-shared-users strong,
.muted-inline {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.list-shared-user {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 30px;
  padding: 3px 5px 3px 10px;
  border-radius: 999px;
  background: var(--control);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.list-shared-user button {
  min-height: 24px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--danger);
  font-size: 12px;
}

.list-share-form {
  flex: 1 1 260px;
}

.list-share-form select {
  flex: 1 1 180px;
}

.grocery-section-list {
  display: grid;
  gap: 18px;
}

.grocery-section {
  display: grid;
  gap: 6px;
  border-radius: 8px;
  transition: background 0.16s ease, outline-color 0.16s ease, box-shadow 0.16s ease;
}

.grocery-section.is-drop-target {
  background: rgba(133, 153, 0, 0.1);
  outline: 2px solid rgba(133, 153, 0, 0.34);
  outline-offset: 3px;
}

.grocery-section-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 36px;
}

.grocery-section-title h2 {
  flex: 1;
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.grocery-section-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 102, 216, 0.11);
  color: var(--blue);
  box-shadow: var(--shadow-hairline);
}

.grocery-section-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.grocery-section-icon.meat-fish {
  background: rgba(201, 53, 43, 0.1);
  color: var(--danger);
}

.grocery-section-icon.dairy {
  background: rgba(0, 113, 227, 0.1);
  color: var(--blue);
}

.grocery-section-icon.frozen {
  background: rgba(30, 190, 210, 0.14);
  color: #087b8a;
}

.grocery-section-icon.bakery {
  background: rgba(154, 101, 0, 0.12);
  color: var(--warning);
}

.grocery-section-icon.produce {
  background: rgba(38, 122, 75, 0.12);
  color: var(--green);
}

.prepper-summary-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(46, 160, 101, 0.2), rgba(0, 113, 227, 0.14) 52%, rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.54);
  box-shadow: var(--shadow-hairline);
  overflow: hidden;
}

.prepper-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--green), var(--blue));
}

.prepper-summary-icon,
.prepper-agenda-icon {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  color: var(--green);
  box-shadow: var(--shadow-hairline);
}

.prepper-summary-icon {
  width: 48px;
  height: 48px;
}

.prepper-summary-icon svg,
.prepper-agenda-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prepper-summary-card h2 {
  margin: 2px 0 4px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.prepper-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}

.prepper-section-list {
  display: grid;
  gap: 18px;
}

.prepper-section {
  display: grid;
  gap: 8px;
}

.grocery-section-icon.prepper {
  background: rgba(46, 160, 101, 0.13);
  color: var(--green);
}

.prepper-meta-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.prepper-agenda-row .dense-time {
  display: grid;
  place-items: center;
}

.prepper-agenda-icon {
  width: 42px;
  height: 42px;
}

.answer-panel {
  padding: 20px;
  margin-bottom: 24px;
}

.review-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.review-header h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.review-capture-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.answer-panel h2 {
  font-size: 26px;
}

.detail-view {
  display: grid;
  gap: 12px;
}

.detail-view > button {
  justify-self: start;
}

.detail-panel {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft), var(--shadow-hairline);
  backdrop-filter: blur(14px);
}

.detail-panel h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.16;
  letter-spacing: 0;
}

.detail-title-row {
  align-items: start;
}

.linked-items-section {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.linked-items-section h2 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.linked-items-card {
  display: grid;
  gap: 2px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow-hairline);
  backdrop-filter: blur(14px);
}

.linked-items-card.muted {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.linked-item-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 13px;
  color: var(--ink);
  text-decoration: none;
}

.linked-item-row:hover,
.linked-item-row:focus-visible {
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.linked-item-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: rgba(23, 23, 28, 0.72);
}

.linked-item-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.linked-item-main {
  min-width: 0;
}

.linked-item-main strong,
.linked-item-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linked-item-main strong {
  font-size: 14px;
  font-weight: 800;
}

.linked-item-main small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.linked-item-relation {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.edit-button {
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 22px;
  color: var(--blue);
}

.mind-map-button {
  width: 34px;
  height: 34px;
  padding: 0;
}

.mind-map-button svg,
.meeting-room-actions button svg,
.detail-panel .item-actions button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -3px;
}

.mind-map-detail {
  min-height: min(76vh, 780px);
}

.mind-map-editor {
  display: grid;
  gap: 14px;
}

.mind-map-loading-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.34) 42%, transparent 72%),
    linear-gradient(135deg, rgba(238, 249, 255, 0.68), rgba(255, 238, 244, 0.48));
  box-shadow: var(--shadow-soft), var(--shadow-hairline);
  backdrop-filter: blur(18px);
}

.mind-map-loading-panel h1 {
  margin: 2px 0 6px;
}

.mind-map-loading-panel p {
  margin: 0;
  color: var(--muted);
}

.mind-map-loading-orb {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 4px solid rgba(12, 16, 24, 0.1);
  border-top-color: var(--ink);
  animation: mindMapSpin 0.9s linear infinite;
}

.mind-map-loading-orb.failed {
  display: grid;
  place-items: center;
  border-color: rgba(220, 38, 38, 0.16);
  background: rgba(254, 226, 226, 0.78);
  color: #dc2626;
  font-size: 24px;
  font-weight: 850;
  animation: none;
}

@keyframes mindMapSpin {
  to { transform: rotate(360deg); }
}

.mind-map-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-soft), var(--shadow-hairline);
  backdrop-filter: blur(18px);
}

.mind-map-topbar label {
  display: grid;
  gap: 6px;
}

.mind-map-topbar label span,
.mind-map-source,
.mind-map-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mind-map-title-input {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 28px;
  font-weight: 760;
}

.mind-map-canvas {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(280px, 1.35fr);
  align-items: center;
  gap: 30px;
  min-height: 520px;
  padding: 28px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background:
    radial-gradient(circle, rgba(26, 31, 42, 0.14) 1px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(238, 249, 255, 0.46) 45%, rgba(255, 238, 244, 0.42));
  box-shadow: 0 18px 54px rgba(29, 44, 77, 0.12), var(--shadow-hairline);
}

.mind-map-center {
  position: relative;
  display: grid;
  place-items: center;
}

.mind-map-center::after {
  content: "";
  position: absolute;
  right: -30px;
  width: 30px;
  height: 2px;
  background: rgba(26, 31, 42, 0.32);
}

.mind-map-branches {
  display: grid;
  gap: 20px;
  min-width: 280px;
}

.mind-map-branch {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
}

.mind-map-branch-line {
  position: relative;
  height: 28px;
  margin-top: 22px;
  border-top: 2px solid rgba(26, 31, 42, 0.32);
}

.mind-map-branch-line::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(26, 31, 42, 0.32);
  border-right: 2px solid rgba(26, 31, 42, 0.32);
  transform: rotate(45deg);
}

.mind-map-branch-content {
  display: grid;
  gap: 8px;
}

.mind-map-branch-head,
.mind-map-child-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.mind-map-child-row {
  grid-template-columns: 26px minmax(150px, 1fr) auto;
}

.mind-map-child-row > span {
  height: 2px;
  background: rgba(26, 31, 42, 0.18);
}

.mind-map-children {
  display: grid;
  gap: 7px;
  padding-left: clamp(12px, calc(20px - var(--mind-depth, 0) * 2px), 20px);
}

.mind-map-node {
  display: grid;
  gap: 7px;
}

.mind-map-node-input {
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(29, 44, 77, 0.08), var(--shadow-hairline);
  font-size: 15px;
  font-weight: 760;
  text-align: center;
}

.mind-map-central-input {
  min-height: 54px;
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.branch-node:nth-child(1) {
  background: rgba(255, 246, 217, 0.86);
}

.mind-map-branch:nth-child(2n) .branch-node {
  background: rgba(222, 249, 232, 0.86);
}

.mind-map-branch:nth-child(3n) .branch-node {
  background: rgba(238, 223, 255, 0.86);
}

.mind-map-branch:nth-child(4n) .branch-node {
  background: rgba(218, 249, 252, 0.86);
}

.child-node {
  min-height: 38px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 720;
  text-align: left;
}

.mind-map-add-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
}

.mind-map-source {
  margin: 0 4px;
}

.mind-map-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.document-edit-form {
  display: grid;
  gap: 12px;
}

.document-edit-form label,
.form-row {
  display: grid;
  gap: 6px;
}

.document-edit-form label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.markdown-body {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  color: var(--ink);
  line-height: 1.58;
}

.markdown-body h2,
.markdown-body h3 {
  margin: 8px 0 0;
  letter-spacing: 0;
}

.markdown-body h2 {
  font-size: 20px;
}

.markdown-body h3 {
  font-size: 17px;
}

.markdown-body p,
.markdown-body ul {
  margin: 0;
}

.markdown-body ul {
  padding-left: 20px;
}

.markdown-image {
  margin: 0 0 8px;
}

.markdown-image img {
  display: block;
  width: 100%;
  max-height: min(420px, 58vh);
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(18, 22, 33, 0.12);
  background: rgba(255, 255, 255, 0.64);
}

.markdown-body a,
.button-link {
  color: var(--blue);
  font-weight: 650;
  text-decoration: none;
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(35, 104, 216, 0.1);
}

.settings-card {
  padding: 16px;
}

.settings-stack {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.settings-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.34)),
    linear-gradient(135deg, rgba(225, 242, 255, 0.78), rgba(255, 229, 237, 0.56));
  box-shadow: var(--shadow-soft), var(--shadow-hairline);
  backdrop-filter: blur(24px) saturate(1.12);
}

.settings-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 6vw, 52px);
  line-height: 0.96;
  letter-spacing: 0;
}

.settings-hero p {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.35;
}

.settings-hero .section-kicker {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.settings-hero-logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 40px rgba(54, 92, 152, 0.18), var(--shadow-hairline);
  overflow: hidden;
}

.settings-hero-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-hero-logo svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-profile-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, auto) auto;
  gap: 12px;
  align-items: end;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow-hairline);
}

.settings-profile-card label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.settings-profile-card input {
  min-height: 48px;
  font-size: 18px;
  font-weight: 820;
}

.settings-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.settings-profile-meta .meta {
  max-width: 220px;
}

.support-settings-card {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  min-width: 0;
  padding: 20px 20px 20px 22px;
  border-color: rgba(246, 219, 229, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 246, 249, 0.82)),
    rgba(255, 255, 255, 0.72);
}

.support-page {
  gap: 16px;
  min-width: 0;
}

.support-hero {
  align-items: center;
  margin-bottom: 14px;
}

.support-hero p {
  max-width: 680px;
}

.support-hero-mark {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffe6ee, #fff7fa);
  color: #e23368;
  box-shadow: var(--shadow-soft);
}

.support-hero-mark svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-settings-rail {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #f4467a, #e23368);
}

.support-heart-badge {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(250, 211, 224, 0.9);
  border-radius: 14px;
  background: #ffe6ee;
  color: #e23368;
}

.support-heart-badge svg,
.support-donate-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-settings-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.support-settings-card p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.45;
}

.support-mobilepay-card {
  display: grid;
  gap: 4px;
  width: min(360px, 100%);
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(28, 116, 209, 0.14);
  border-radius: 18px;
  background: rgba(225, 241, 255, 0.58);
  color: var(--ink);
  box-shadow: var(--shadow-hairline);
}

.support-mobilepay-card strong {
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.support-mobilepay-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.support-mobilepay-card .support-mobilepay-label {
  color: #1c74d1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.support-amount-panel {
  display: grid;
  gap: 8px;
}

.support-amount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.support-amount-option,
.support-amount-custom {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  box-shadow: var(--shadow-hairline);
  font-weight: 840;
}

.support-amount-option {
  padding: 0 15px;
}

.support-amount-option input,
.support-amount-custom input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.support-amount-option.active,
.support-amount-custom.active {
  background: #111116;
  color: #fff;
}

.support-amount-custom {
  gap: 6px;
  padding: 0 10px;
}

.support-amount-custom input[type="number"] {
  width: 92px;
  min-height: 36px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  font-weight: 840;
}

.support-amount-custom input[type="number"]::placeholder {
  color: currentColor;
  opacity: 0.62;
}

.support-donate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  max-width: 680px;
  min-width: 0;
}

.support-payment-option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 12px;
  border-radius: 18px;
  text-align: left;
}

.support-payment-option.active {
  border: 1px solid rgba(28, 116, 209, 0.22);
  background: rgba(225, 241, 255, 0.72);
  color: var(--ink);
  box-shadow: var(--shadow-hairline);
}

.support-payment-option.selected {
  outline: 3px solid rgba(28, 116, 209, 0.18);
  background: rgba(225, 241, 255, 0.92);
}

.support-payment-option.disabled {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(1);
}

.support-payment-option strong,
.support-payment-option small {
  display: block;
}

.support-payment-option strong {
  font-size: 14px;
}

.support-payment-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.support-payment-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #1c74d1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-hairline);
}

.support-crypto-card {
  display: grid;
  gap: 12px;
  max-width: 680px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(28, 116, 209, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-hairline);
}

.support-crypto-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.support-crypto-heading strong {
  font-size: 16px;
}

.support-crypto-heading span,
.support-crypto-card label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.support-crypto-card label {
  display: grid;
  gap: 6px;
}

.support-crypto-card select {
  background: rgba(255, 255, 255, 0.82);
}

.support-crypto-result {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.support-qr {
  display: grid;
  place-items: center;
  width: min(240px, 100%);
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-hairline);
}

.support-qr svg {
  width: 100%;
  height: auto;
}

.support-crypto-copy {
  display: grid;
  gap: 2px;
}

.support-crypto-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.support-crypto-copy strong {
  font-size: 16px;
}

.support-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.support-address-row code {
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(22, 22, 26, 0.06);
  color: var(--ink);
  font-size: 12px;
}

.support-crypto-card .error-text {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 780;
}

.support-donate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: min(360px, 100%);
  min-height: 50px;
  margin-top: 2px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #f4467a, #e23368);
  color: #fff;
  box-shadow: 0 14px 28px -14px rgba(226, 51, 104, 0.82);
  font-size: 15px;
  font-weight: 850;
}

.support-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
}

.support-copy-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-donate-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -14px rgba(226, 51, 104, 0.86);
}

.support-fineprint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

@media (max-width: 560px) {
  .support-page {
    gap: 12px;
  }

  .support-hero {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    padding: 13px;
    padding-bottom: 13px;
    border-radius: 20px;
  }

  .settings-hero.support-hero h1 {
    font-size: clamp(25px, 8vw, 32px);
    line-height: 1.02;
  }

  .settings-hero.support-hero p:not(.section-kicker) {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.34;
  }

  .settings-hero.support-hero .section-kicker {
    margin-bottom: 5px;
    font-size: 11px;
  }

  .support-hero-mark {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .support-hero-mark svg {
    width: 21px;
    height: 21px;
  }

  .support-settings-card {
    gap: 10px;
    padding: 16px 14px 16px 18px;
    border-radius: 22px;
  }

  .support-heart-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .support-settings-card h2 {
    font-size: 18px;
  }

  .support-settings-card p {
    font-size: 12px;
    line-height: 1.35;
  }

  .support-settings-card p + p {
    display: none;
  }

  .support-amount-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .support-amount-option,
  .support-amount-custom {
    justify-content: center;
    min-height: 42px;
    border-radius: 13px;
  }

  .support-amount-option {
    padding: 0 6px;
  }

  .support-amount-custom {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding: 0 12px;
  }

  .support-amount-custom input[type="number"] {
    width: 100%;
  }

  .support-payment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .support-payment-option {
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 54px;
    gap: 9px;
    padding: 8px;
    border-radius: 15px;
  }

  .support-payment-option:last-child {
    grid-column: 1 / -1;
  }

  .support-payment-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    font-size: 10px;
  }

  .support-payment-option strong {
    font-size: 13px;
  }

  .support-payment-option small {
    font-size: 11px;
  }

  .support-mobilepay-card,
  .support-crypto-card {
    padding: 12px;
    border-radius: 17px;
  }

  .support-mobilepay-card strong {
    font-size: 23px;
  }

  .support-crypto-heading {
    display: grid;
    gap: 3px;
  }

  .support-qr {
    width: min(190px, 100%);
    justify-self: center;
  }

  .support-donate-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .support-donate-button {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
  }

  .support-copy-button {
    width: auto;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 14px;
    white-space: nowrap;
  }

  .support-address-row {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .support-address-row code {
    font-size: 11px;
    padding: 9px 10px;
  }
}

.support-page {
  --support-card: #ffffff;
  --support-ink: #17171b;
  --support-muted: #7b7b86;
  --support-faint: #a6a6b0;
  --support-line: #eeedf4;
  --support-line-strong: #e3e2ec;
  --support-brand: #e5326b;
  --support-brand-press: #c72659;
  --support-brand-soft: #fdeaf1;
  --support-brand-ink: #b31e50;
  --support-ok: #1f9d5b;
  --support-ok-soft: #e7f6ee;
  --support-field: #f6f6fa;
  max-width: 430px;
  margin: 0 auto;
  gap: 16px;
}

.support-page .support-hero {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0 0 10px;
  padding: 22px 20px 20px;
  border: 1px solid var(--support-line);
  border-radius: 24px;
  background: linear-gradient(155deg, #ffffff 0%, #fdf2f6 55%, #fbe7ef 100%);
  box-shadow: 0 1px 2px rgba(20, 20, 40, 0.04), 0 12px 30px -18px rgba(30, 20, 60, 0.28);
}

.support-hero-eyebrow {
  margin: 0 0 8px;
  color: var(--support-brand-ink);
  font-size: 11.5px;
  font-weight: 760;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  opacity: 0.86;
}

.support-page .support-hero h1 {
  max-width: 15ch;
  margin: 0 0 10px;
  color: var(--support-ink);
  font-size: 29px;
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.06;
}

.support-page .support-hero p:not(.support-hero-eyebrow) {
  max-width: 34ch;
  margin: 0;
  color: var(--support-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.support-page .support-hero-mark {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--support-brand);
  box-shadow: 0 6px 16px -8px rgba(229, 50, 107, 0.5);
  backdrop-filter: blur(6px);
}

.support-page .support-hero-mark svg {
  width: 22px;
  height: 22px;
}

.support-page .support-settings-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--support-line);
  border-radius: 24px;
  background: var(--support-card);
  box-shadow: 0 1px 2px rgba(20, 20, 40, 0.04), 0 12px 30px -18px rgba(30, 20, 60, 0.28);
}

.support-card-lead {
  margin: 0 0 18px;
  color: var(--support-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.support-section + .support-section {
  margin-top: 20px;
}

.support-label {
  margin: 0 0 10px;
  color: var(--support-ink);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0;
}

.support-page .support-amount-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.support-page .support-amount-option {
  appearance: none;
  min-height: 46px;
  padding: 0;
  border: 1px solid var(--support-line-strong);
  border-radius: 15px;
  background: #fff;
  color: var(--support-ink);
  box-shadow: none;
  font-size: 16px;
  font-weight: 780;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.support-page .support-amount-option:active {
  transform: scale(0.97);
}

.support-page .support-amount-option.active {
  border-color: var(--support-ink);
  background: var(--support-ink);
  color: #fff;
}

.support-page .support-amount-custom {
  display: flex;
  height: 46px;
  min-height: 0;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid var(--support-line-strong);
  border-radius: 15px;
  background: #fff;
  box-shadow: none;
}

.support-page .support-amount-custom[hidden] {
  display: none;
}

.support-page .support-amount-custom.active {
  border-color: var(--support-ink);
  background: #fff;
  color: var(--support-ink);
}

.support-page .support-amount-custom span {
  color: var(--support-faint);
  font-weight: 780;
}

.support-page .support-amount-custom input[type="number"] {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--support-ink);
  box-shadow: none;
  font-size: 16px;
  font-weight: 780;
  outline: 0;
}

.support-custom-toggle {
  display: block;
  margin: 8px 0 0 auto;
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--support-brand-ink);
  box-shadow: none;
  font-size: 13px;
  font-weight: 720;
}

.support-methods {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.support-page .support-payment-option {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border: 1.5px solid var(--support-line-strong);
  border-radius: 15px;
  background: #fff;
  color: var(--support-ink);
  box-shadow: none;
  text-align: left;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.support-page .support-payment-option:active {
  transform: scale(0.995);
}

.support-page .support-payment-option.selected {
  border-color: var(--support-brand);
  background: var(--support-brand-soft);
  outline: 0;
}

.support-page .support-payment-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #5a78ff, #3d5afe);
  color: #fff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 880;
  letter-spacing: 0.02em;
}

.support-page .support-payment-icon.crypto {
  background: linear-gradient(135deg, #f7a600, #f76b1c);
}

.support-payment-copy {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.support-payment-name {
  color: var(--support-ink);
  font-size: 15px;
  font-weight: 780;
  line-height: 1.2;
}

.support-payment-meta {
  color: var(--support-muted);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
}

.support-payment-tag {
  border-radius: 999px;
  background: var(--support-ok-soft);
  color: var(--support-ok);
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: 0.03em;
  padding: 3px 7px;
  text-transform: uppercase;
}

.support-payment-radio {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 2px solid var(--support-line-strong);
  border-radius: 50%;
}

.support-payment-option.selected .support-payment-radio {
  border-color: var(--support-brand);
}

.support-payment-option.selected .support-payment-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--support-brand);
}

.support-soon {
  margin: 12px 0 0;
  color: var(--support-faint);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}

.support-soon b {
  color: var(--support-muted);
  font-weight: 700;
}

.support-page .support-crypto-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: none;
  margin-top: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.support-page .support-crypto-card p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--support-line-strong);
  border-radius: 15px;
  background: var(--support-field);
}

.support-field {
  display: grid;
  gap: 6px;
}

.support-field span {
  color: var(--support-muted);
  font-size: 12px;
  font-weight: 700;
}

.support-page .support-crypto-card select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--support-line-strong);
  border-radius: 12px;
  background: var(--support-field);
  color: var(--support-ink);
  font-size: 15px;
  font-weight: 720;
}

.support-page .support-donate-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0 16px;
  border: 0;
  border-radius: 15px;
  background: var(--support-ink);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(23, 23, 27, 0.55);
  font-size: 16px;
  font-weight: 780;
  letter-spacing: 0;
}

.support-page .support-donate-button:hover {
  background: #000;
  transform: none;
  box-shadow: 0 10px 24px -12px rgba(23, 23, 27, 0.62);
}

.support-page .support-donate-button:active {
  transform: scale(0.985);
}

.support-action-hint {
  margin: 10px 2px 0;
  color: var(--support-faint);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}

.support-page .support-crypto-result {
  display: block;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px dashed var(--support-line-strong);
}

.support-result-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.support-result-head span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--support-ok);
  box-shadow: 0 0 0 4px var(--support-ok-soft);
}

.support-result-head strong {
  color: var(--support-ink);
  font-size: 13px;
  font-weight: 720;
}

.support-page .support-qr {
  width: 190px;
  min-height: 190px;
  margin: 2px auto 16px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 40px -12px rgba(40, 20, 70, 0.35);
}

.support-page .support-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.support-page .support-crypto-copy {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  text-align: center;
}

.support-page .support-crypto-copy span {
  color: var(--support-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.support-page .support-crypto-copy strong {
  color: var(--support-ink);
  font-size: 20px;
  font-weight: 860;
  letter-spacing: 0;
}

.support-amount-copy-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.support-page .support-crypto-copy em {
  color: var(--support-muted);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 680;
}

.support-page .support-address-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--support-line-strong);
  border-radius: 12px;
  background: var(--support-field);
}

.support-page .support-address-row + .support-address-row {
  margin-top: 8px;
}

.support-page .support-address-row code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--support-ink);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-result-copy {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: var(--support-ink);
  color: #fff;
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 720;
}

.support-page .support-fineprint {
  display: block;
  margin-top: 12px;
  color: var(--support-muted);
  font-size: 12.5px;
  font-weight: 650;
  text-align: center;
}

.support-help-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--support-line);
  border-radius: 22px;
  background: var(--support-card);
  box-shadow: var(--shadow-soft), var(--shadow-hairline);
}

.support-help-card strong {
  color: var(--support-ink);
  font-size: 18px;
}

.support-help-card p {
  margin: 4px 0 0;
  color: var(--support-muted);
  font-size: 14px;
  font-weight: 720;
}

.support-help-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--support-ink);
  color: #fff;
}

.support-help-card svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.support-chat-backdrop {
  background: #fff;
  backdrop-filter: none;
}

.support-panel {
  left: auto;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(380px, calc(100vw - 32px));
  height: min(620px, calc(100dvh - 48px));
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}

.support-panel__header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  background: #fff;
  color: var(--support-ink, var(--ink));
}

.support-panel__icon {
  display: flex;
  width: 40px;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f7ef7, #5fbe8e);
  color: #fff;
}

.support-panel__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.support-panel__titles {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 1px;
}

.support-panel__titles h2 {
  margin: 0;
  overflow: hidden;
  color: #1a1d26;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-panel__titles p {
  margin: 0;
  color: #8b909b;
  font-size: 12px;
  font-weight: 500;
}

.support-panel__close {
  position: relative;
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #b4b9c4;
  box-shadow: none;
  font-size: 0;
  line-height: 0;
}

.support-panel__close::before,
.support-panel__close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform-origin: center;
}

.support-panel__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.support-panel__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.support-panel__thread {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding: 16px 14px 18px;
  background: #fff;
}

.support-date {
  align-self: center;
  color: #9ba0ab;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.support-msg {
  display: grid;
  gap: 4px;
  max-width: 80%;
}

.support-msg--in {
  align-self: flex-start;
}

.support-msg--out {
  align-self: flex-end;
}

.support-msg__card {
  display: flex;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(30, 40, 80, 0.05);
}

.support-msg__rail {
  width: 5px;
  flex: 0 0 5px;
  background: linear-gradient(180deg, #4f7ef7, #5fbe8e);
}

.support-msg__body {
  padding: 11px 14px;
  color: #1a1d26;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.support-msg--in .support-msg__body {
  background: linear-gradient(135deg, #fff, #eef6ef);
}

.support-msg--out .support-msg__body {
  border-radius: 16px 16px 6px 16px;
  background: #4f7ef7;
  color: #fff;
}

.support-msg__meta {
  color: #9ba0ab;
  font-size: 11px;
  font-weight: 500;
}

.support-msg--in .support-msg__meta {
  margin-left: 9px;
}

.support-msg--out .support-msg__meta {
  margin-right: 9px;
  text-align: right;
}

.support-msg--out[role="button"] {
  cursor: pointer;
}

.support-panel__composer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--support-card, #fff);
}

.support-composer__input {
  flex: 1 1 auto;
  min-height: 42px;
  max-height: 112px;
  overflow-y: auto;
  resize: none;
  border: 0;
  border-radius: 22px;
  background: #edf0f8;
  color: #1a1d26;
  padding: 11px 16px;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
}

.support-composer__input::placeholder {
  color: #9ba0ab;
}

.support-composer__send {
  display: flex;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #4f7ef7;
  color: #fff;
  padding: 0;
  box-shadow: none;
}

.support-composer__send:disabled {
  opacity: 0.42;
}

.support-composer__send svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.support-telegram-settings-form label {
  display: grid;
  gap: 6px;
}

@media (max-width: 760px) {
  .support-chat-backdrop {
    display: block;
    background: #fff;
  }

  .support-panel {
    inset: auto 0 0;
    width: 100vw;
    max-width: none;
    height: min(88dvh, 760px);
    max-height: calc(100dvh - 18px);
    min-height: 0;
    border: 0;
    border-radius: 26px 26px 0 0;
  }

  .support-panel__header {
    padding: 18px 16px 14px;
  }

  .support-panel__icon {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .support-panel__close {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .support-panel__thread {
    padding: 16px 14px 18px;
  }

  .support-msg {
    max-width: 84%;
  }

  .support-panel__composer {
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  }

  .support-composer__input {
    min-height: 42px;
  }

  .support-composer__send {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }
}

@media (max-width: 420px) {
  .support-page {
    max-width: none;
  }

  .support-help-card {
    grid-template-columns: 1fr;
  }

  .support-help-card button {
    width: 100%;
  }

  .support-page .support-hero,
  .support-page .support-settings-card {
    border-radius: 24px;
  }

  .support-page .support-hero {
    padding: 22px 20px 20px;
  }

  .support-page .support-hero h1 {
    font-size: 29px;
  }

  .support-page .support-crypto-card {
    grid-template-columns: 1fr 1fr;
  }
}

.donate-settings-form {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 51, 104, 0.12);
}

.donate-settings-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.settings-option-form {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow-hairline);
}

.settings-option-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
  color: var(--ink);
}

.settings-option-heading strong {
  font-size: 17px;
  font-weight: 860;
}

.settings-option-heading small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
  line-height: 1.35;
}

.settings-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.settings-option-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-hairline);
}

.settings-option-toggle > span,
.settings-option-main {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.settings-option-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.settings-option-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-option-toggle strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.settings-option-toggle i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  box-shadow: var(--shadow-hairline);
}

.settings-option-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-option-toggle input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  accent-color: #111116;
}

.settings-slider-toggle {
  position: relative;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.settings-slider-toggle:hover {
  border-color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.62);
}

.settings-slider-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.settings-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: 52px;
  height: 32px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(17, 17, 22, 0.12);
  box-shadow: var(--shadow-hairline);
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.settings-switch span {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(17, 17, 22, 0.18);
  transition: transform 0.18s ease;
}

.settings-slider-toggle input:checked + .settings-switch {
  border-color: rgba(17, 17, 22, 0.18);
  background: #111116;
}

.settings-slider-toggle input:checked + .settings-switch span {
  transform: translateX(20px);
}

.settings-slider-toggle.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.settings-slider-toggle.is-disabled:hover {
  background: rgba(255, 255, 255, 0.5);
}

.settings-slider-toggle.is-disabled .settings-switch {
  background: rgba(17, 17, 22, 0.07);
}

.settings-option-save {
  justify-self: end;
  min-width: 150px;
}

.training-settings-stack {
  margin-top: 12px;
}

.training-settings-form {
  gap: 12px;
}

.training-settings-option:has(input:checked) {
  border-color: rgba(17, 17, 22, 0.18);
  background: rgba(255, 255, 255, 0.74);
}

.training-settings-number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.training-settings-number {
  display: grid;
  gap: 10px;
  min-height: 92px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-hairline);
}

.training-settings-number > span:first-child {
  display: grid;
  gap: 2px;
}

.training-settings-number strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
}

.training-settings-number small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.2;
}

.settings-number-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.settings-number-control input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  font-weight: 820;
  padding: 10px 12px;
}

.settings-number-control em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.training-settings-actions {
  justify-content: flex-end;
  margin-top: 2px;
}

.settings-danger-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 260px) auto;
  gap: 12px;
  align-items: end;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 239, 239, 0.54));
  box-shadow: var(--shadow-hairline);
}

.settings-danger-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.settings-danger-copy strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 860;
}

.settings-danger-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
}

.settings-danger-confirm {
  display: grid;
  gap: 6px;
}

.settings-danger-confirm span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.settings-danger-confirm input {
  min-height: 44px;
  font-size: 14px;
  font-weight: 760;
}

.settings-section {
  display: block;
  overflow: hidden;
  padding: 0;
}

.settings-link-section {
  width: 100%;
  border: 0;
  color: inherit;
  text-align: left;
}

.settings-link-section .settings-section-summary {
  width: 100%;
}

.settings-section-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.settings-section-summary:hover {
  background: rgba(255, 255, 255, 0.24);
}

.settings-section-summary::-webkit-details-marker {
  display: none;
}

.settings-section-summary span:first-child {
  display: grid;
  gap: 3px;
}

.settings-section-summary strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
}

.settings-section-summary small,
.settings-subtitle {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.settings-section-chevron {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-hairline);
  color: var(--muted);
  font-size: 18px;
  transform: rotate(-90deg);
  transition: transform 0.16s ease;
}

.settings-section[open] .settings-section-chevron {
  transform: rotate(0deg);
}

.settings-section[open] .settings-section-summary {
  border-bottom: 1px solid rgba(22, 22, 26, 0.06);
}

.settings-section-body {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
}

.settings-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.backup-row span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.backup-row strong,
.backup-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-request-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.8fr) auto;
  gap: 8px;
}

.connection-request-card input,
.connection-request-card button {
  min-height: 48px;
}

.connection-list {
  display: grid;
  gap: 8px;
}

.connection-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: var(--shadow-hairline);
}

.connection-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.connection-copy strong,
.connection-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.connection-actions {
  display: flex;
  gap: 6px;
}

.connection-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.connection-actions svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.connection-invite-link {
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.share-group-heading {
  padding: 8px 10px;
}

@media (max-width: 720px) {
  .connection-request-card {
    grid-template-columns: 1fr;
  }

  .connection-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .connection-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

/* Meeting room header redesign */
.meeting-room-head {
  display: grid;
  gap: 12px;
  padding: 18px 18px 18px 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(29, 44, 77, 0.11), var(--shadow-hairline);
}

.meeting-room-head .dh-rail {
  top: 18px;
  bottom: 18px;
  width: 4px;
}

.dh-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.dh-top .back {
  grid-column: 1;
}

.dh-top-right {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.back {
  min-height: 34px;
  padding: 0 13px;
  font-size: 13px;
}

.meeting-status-pill {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.dh-kebab {
  width: 34px;
  height: 34px;
  min-height: 34px;
}

.dh-id {
  display: grid;
  grid-template-columns: auto minmax(0, auto) auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.dh-groupdot {
  width: 11px;
  height: 11px;
  flex-basis: 11px;
}

.dh-title,
.dh-title-input {
  grid-column: 2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: clamp(22px, 2.25vw, 32px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: normal;
}

.meeting-series-chip {
  grid-column: 3;
  justify-self: start;
  white-space: nowrap;
}

.dh-focus-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: -2px;
  padding-left: 22px;
}

.dh-focus,
.dh-focus-input {
  width: 100%;
  max-width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 15px;
  line-height: 1.25;
}

.focus-suggest {
  min-height: 34px;
  padding: 0 13px;
}

.dh-facets {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
  padding-left: 22px;
}

.facet,
.meeting-language-toggle {
  min-width: 0;
  width: 100%;
  min-height: 38px;
  border-radius: 13px;
}

.facet {
  justify-content: flex-start;
  padding: 0 11px;
}

.facet b,
.facet .rel {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-language-toggle-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  background: #f4f4f9;
}

.meeting-language-toggle-header button {
  min-width: 0;
  min-height: 32px;
  padding: 0 8px;
  font-size: 12.5px;
}

.dh-series-row {
  display: flex;
  min-width: 0;
  padding-left: 22px;
}

.dh-series-row .series-nav {
  width: auto;
  max-width: 100%;
}

.dh-series-row .series-nav > span {
  max-width: min(360px, 55vw);
}

@media (max-width: 1180px) {
  .dh-facets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .meeting-room-head {
    gap: 10px;
    padding: 13px 12px 14px 17px;
    border-radius: 22px;
  }

  .meeting-room-head .dh-rail {
    top: 14px;
    bottom: 14px;
    width: 4px;
  }

  .dh-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .dh-top .back {
    grid-column: 1;
    justify-self: start;
  }

  .dh-top-right {
    grid-column: 2;
    gap: 6px;
  }

  .meeting-status-pill {
    max-width: 138px;
    min-height: 30px;
    padding: 0 9px;
    font-size: 11px;
  }

  .dh-kebab {
    width: 31px;
    height: 31px;
    min-height: 31px;
  }

  .dh-id {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
  }

  .dh-title,
  .dh-title-input {
    grid-column: 2;
    font-size: clamp(22px, 7vw, 27px);
    line-height: 1.08;
  }

  .meeting-series-chip {
    grid-column: 2;
    justify-self: start;
    min-height: 24px;
    padding: 3px 9px;
    font-size: 11px;
  }

  .dh-focus-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    padding-left: 20px;
  }

  .dh-focus,
  .dh-focus-input {
    min-height: 32px;
    padding: 4px 6px;
    font-size: 16px;
  }

  .focus-suggest {
    min-width: 38px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 0;
  }

  .focus-suggest svg {
    width: 16px;
    height: 16px;
  }

  .dh-facets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding-left: 20px;
  }

  .facet,
  .meeting-language-toggle {
    min-height: 34px;
    border-radius: 12px;
  }

  .facet {
    gap: 6px;
    padding: 0 9px;
    font-size: 12px;
  }

  .facet svg {
    width: 15px;
    height: 15px;
  }

  .facet-join {
    grid-column: 1 / -1;
  }

  .dh-series-row {
    padding-left: 20px;
  }

  .dh-series-row .series-nav {
    width: 100%;
  }

  .dh-series-row .series-nav > span {
    max-width: none;
  }
}

@media (max-width: 390px) {
  .dh-facets {
    grid-template-columns: minmax(0, 1fr);
  }

  .meeting-status-pill {
    display: none;
  }

  .dh-focus-row,
  .dh-facets,
  .dh-series-row {
    padding-left: 18px;
  }
}

.settings-subtitle {
  margin: 4px 0 -2px;
  color: var(--ink);
}

.settings-stack .primary {
  background: #111116;
  color: #fff;
  box-shadow: 0 10px 24px rgba(9, 9, 11, 0.18);
}

.settings-stack .primary:hover {
  background: #000;
}

.settings-stack button:not(.primary):not(.danger):not(.icon-button):not(.color-swatch):not(.trash-button) {
  background: rgba(255, 255, 255, 0.5);
  color: rgba(23, 23, 28, 0.78);
  box-shadow: var(--shadow-hairline);
}

.settings-stack button:not(.primary):not(.danger):not(.icon-button):not(.color-swatch):not(.trash-button):hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.settings-stack input,
.settings-stack textarea,
.settings-stack select {
  border-color: rgba(22, 22, 26, 0.08);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-hairline);
}

.settings-stack input:focus,
.settings-stack textarea:focus,
.settings-stack select:focus {
  border-color: rgba(17, 17, 22, 0.22);
  box-shadow: 0 0 0 4px rgba(17, 17, 22, 0.07), var(--shadow-hairline);
}

.settings-stack .inline-card {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow-hairline);
}

.settings-stack .group-settings-card {
  border-radius: 16px;
}

.ai-failure-panel {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.ai-failure-header {
  align-items: center;
  justify-content: space-between;
}

.ai-failure-header span {
  display: grid;
  gap: 2px;
}

.ai-failure-header strong {
  font-size: 15px;
}

.ai-failure-header small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ai-failure-list {
  display: grid;
  gap: 8px;
}

.ai-failure-card.inline-card {
  align-items: stretch;
  display: grid;
  gap: 8px;
}

.ai-failure-card strong {
  display: block;
  font-size: 14px;
}

.ai-failure-card small,
.ai-failure-card p {
  color: var(--muted);
  font-size: 12px;
}

.ai-failure-card p {
  margin: 0;
}

.ai-failure-card details {
  border-top: 1px solid rgba(22, 22, 26, 0.08);
  padding-top: 8px;
}

.ai-failure-card summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.ai-failure-card pre {
  max-height: 180px;
  margin: 8px 0 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 11px;
  line-height: 1.45;
}

.inline-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  padding: 10px 0;
}

.known-terms-list {
  display: grid;
  gap: 8px;
}

.known-term-add-form {
  margin-top: 12px;
}

.known-term-form.inline-card {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(180px, 1.4fr) auto auto;
}

.check-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.group-member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
}

.group-member-list strong {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.group-member-form {
  margin-top: 10px;
}

.fake-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}

.meeting-empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
  padding: 32px 16px;
  margin-bottom: 24px;
}

.meeting-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  max-width: none;
}

.meeting-form-grid select[multiple] {
  min-height: 48px;
  padding-block: 8px;
}

.meeting-series-row,
.meeting-instance-row {
  align-items: start;
}

.meeting-series-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.foldout-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  background: var(--panel-soft);
  color: var(--ink);
}

.foldout-button.is-open {
  background: var(--ink);
  color: var(--panel);
}

.meeting-instance-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.meeting-instance-form-inline {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 180px auto;
  gap: 8px;
  margin-top: 10px;
}

.meeting-minutes-form,
.meeting-review-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.meeting-minutes-form textarea {
  min-height: 86px;
}

.file-input-row {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.file-input-row input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(23, 23, 28, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
}

.meeting-proposal-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1fr) minmax(130px, 0.6fr) minmax(130px, 0.6fr) minmax(160px, 0.7fr);
  align-items: end;
  gap: 10px;
}

.meeting-proposal-row label,
.meeting-proposal-row .proposal-type-row {
  display: grid;
  gap: 6px;
}

.meeting-proposal-row label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.meeting-proposal-row textarea {
  min-height: 88px;
}

.proposal-wide {
  grid-column: span 2;
}

.proposal-type-row {
  align-self: stretch;
  align-content: end;
}

.meeting-dashboard {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.meeting-rebuild {
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 188px;
  align-items: start;
}

.meeting-rebuild-head,
.meeting-mobile-space-select {
  grid-column: 1 / -1;
}

.meeting-rebuild > .meeting-section-label,
.meeting-rebuild > .meeting-week-card,
.meeting-rebuild > .meeting-room-stream {
  grid-column: 1;
}

.meeting-space-panel {
  grid-column: 2;
  grid-row: 3 / span 4;
}

.meeting-rebuild-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 30px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card), var(--shadow-hairline);
}

.meeting-rebuild-head h1 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: clamp(32px, 6vw, 46px);
  line-height: 0.98;
}

.meeting-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 4px -4px;
}

.meeting-section-label h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.meeting-section-label > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.meeting-section-label p {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.meeting-room-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-hairline);
}

.meeting-room-search svg {
  width: 15px;
  height: 15px;
}

.meeting-room-search input {
  width: min(180px, 32vw);
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}

.meeting-week-card,
.meeting-room-stream {
  display: grid;
  gap: 10px;
}

.meeting-week-card {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-card), var(--shadow-hairline);
}

.meeting-calendar-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
}

.meeting-calendar-row + .meeting-calendar-row {
  border-top: 1px solid rgba(23, 23, 28, 0.06);
}

.meeting-calendar-date {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-weight: 850;
}

.meeting-calendar-date small,
.meeting-calendar-body p,
.meeting-empty-row small,
.meeting-edit-loop-col small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.meeting-calendar-body {
  min-width: 0;
}

.meeting-calendar-body h3 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-calendar-body p {
  margin: 3px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-calendar-row button,
.meeting-process-actions button {
  min-height: 38px;
  padding: 0 14px;
}

.meeting-empty-row {
  display: grid;
  gap: 4px;
  padding: 18px;
  text-align: center;
}

.meeting-dashboard-header {
  align-items: center;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.48)),
    linear-gradient(115deg, rgba(215, 232, 255, 0.7), rgba(255, 223, 225, 0.5));
  box-shadow: 0 24px 70px rgba(29, 44, 77, 0.13), var(--shadow-hairline);
  backdrop-filter: blur(26px) saturate(1.12);
}

.meeting-dashboard-subtitle {
  max-width: 520px;
  margin: 7px 0 0;
  color: rgba(23, 23, 28, 0.62);
  font-weight: 680;
}

.meeting-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.meeting-header-actions button {
  min-height: 38px;
  padding-inline: 14px;
}

.meeting-needs-card,
.meeting-room-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 54px rgba(29, 44, 77, 0.1), var(--shadow-hairline);
  backdrop-filter: blur(22px) saturate(1.12);
  padding: 18px;
}

.meeting-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.meeting-card-heading h2 {
  margin: 2px 0 0;
  font-size: 22px;
}

.meeting-card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #111116;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(17, 17, 22, 0.18);
}

.meeting-needs-list,
.meeting-row-list,
.meeting-flat-list,
.meeting-series-management,
.meeting-outcome-list,
.meeting-agenda-list {
  display: grid;
  gap: 10px;
}

.meeting-agenda-card form {
  display: grid;
  gap: 14px;
}

.agenda-title-row {
  align-items: start;
}

.agenda-title-row p {
  margin: 4px 0 0;
}

.agenda-status-chip.confirmed {
  color: var(--green);
}

.meeting-agenda-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-left: 5px solid var(--blue);
  border-radius: 16px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.92), rgba(240, 247, 255, 0.7)),
    var(--item-gradient);
  box-shadow: 0 12px 32px rgba(29, 44, 77, 0.08), var(--shadow-hairline);
}

.meeting-agenda-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.meeting-agenda-input,
.meeting-agenda-notes,
.meeting-notes-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  outline: 0;
  box-shadow: var(--shadow-hairline);
}

.meeting-agenda-input {
  min-height: 34px;
  padding: 6px 10px;
  font-weight: 760;
}

.meeting-agenda-notes,
.meeting-notes-field textarea {
  min-height: 68px;
  padding: 10px;
  resize: vertical;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.meeting-agenda-add-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.meeting-notes-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 760;
}

.meeting-agenda-card.is-saving .agenda-status-chip::after,
#meeting-agenda-form.is-saving .agenda-status-chip::after {
  content: " Saving";
  color: var(--muted);
}

.meeting-need-row,
.meeting-dashboard-row,
.meeting-series-manage-row,
.meeting-outcome-row,
.meeting-loop-row {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.66)),
    var(--item-gradient);
  box-shadow: 0 12px 32px rgba(29, 44, 77, 0.08), var(--shadow-hairline);
}

.meeting-need-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
}

.meeting-need-row strong,
.meeting-loop-row strong,
.meeting-outcome-row strong {
  display: block;
  color: var(--ink);
}

.meeting-need-row small,
.meeting-loop-row small,
.meeting-outcome-row p {
  display: block;
  color: var(--muted);
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 650;
}

.meeting-need-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--chip-bg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.meeting-dashboard-row,
.meeting-series-manage-row {
  display: grid;
  grid-template-columns: 6px 116px minmax(0, 1fr);
  align-items: start;
  gap: 0;
  min-height: 134px;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.meeting-dashboard-row:hover,
.meeting-series-manage-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 46px rgba(29, 44, 77, 0.12), var(--shadow-hairline);
}

.meeting-series-manage-row {
  grid-template-columns: 4px minmax(0, 1fr) auto auto auto;
  padding-block: 12px;
}

.meeting-rail {
  align-self: stretch;
  min-height: 100%;
  background: var(--group-color, linear-gradient(180deg, #2f80ed, #31b878));
  box-shadow: 0 0 22px rgba(47, 128, 237, 0.28);
}

.meeting-date-block {
  display: grid;
  align-content: start;
  justify-items: start;
  min-height: 0;
  padding: 22px 14px 0 24px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  color: rgba(23, 23, 28, 0.78);
  font-weight: 850;
  font-size: 15px;
  line-height: 1.1;
}

.meeting-date-block small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.meeting-dashboard-row h3,
.meeting-series-manage-row h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.meeting-dashboard-row .tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.showall {
  width: 100%;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--blue);
  box-shadow: none;
  font-weight: 850;
}

.meeting-dashboard-row p,
.meeting-series-manage-row p,
.meeting-series-manage-row small {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
}

.meeting-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(52, 199, 89, 0.16);
  color: #176d34;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 850;
}

.meeting-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  justify-self: end;
  align-self: start;
}

.meeting-row-main {
  display: grid;
  align-content: space-between;
  gap: 8px;
  min-height: 134px;
  min-width: 0;
  padding: 22px 24px 20px 0;
}

.meeting-row-titlebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: start;
  gap: 14px;
  min-width: 0;
}

.meeting-row-titlebar .meeting-room-delete-button {
  justify-self: end;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(128, 132, 146, 0.46);
  box-shadow: none;
}

.meeting-row-titlebar .meeting-room-delete-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.meeting-row-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.meeting-row-footer.single-pill {
  justify-content: flex-end;
}

.meeting-status-pill.accent {
  background: rgba(0, 122, 255, 0.14);
  color: #115ea7;
}

.meeting-status-pill.warning {
  background: rgba(255, 204, 0, 0.24);
  color: #7a5b00;
}

.meeting-status-pill.danger {
  background: rgba(255, 59, 48, 0.14);
  color: #b3261e;
}

.meeting-status-pill.muted {
  background: var(--chip-bg);
  color: var(--muted);
}

.meeting-row-footer .meeting-status-pill {
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-hairline);
  font-size: 14px;
}

.meeting-row-footer .meeting-status-pill.is-action,
.meeting-row-footer .meeting-status-pill.is-action.accent,
.meeting-row-footer .meeting-status-pill.is-action.warning,
.meeting-row-footer .meeting-status-pill.is-action.danger,
.meeting-row-footer .meeting-status-pill.is-action.muted {
  border: 1px solid rgba(80, 112, 220, 0.18);
  background: rgba(80, 112, 220, 0.08);
  color: #4267d5;
}

.meeting-row-footer .meeting-status-pill.is-status,
.meeting-row-footer .meeting-status-pill.is-status.accent {
  background: rgba(0, 122, 255, 0.14);
  color: #115ea7;
}

.meeting-row-actions .meeting-status-pill.is-status.warning,
.meeting-row-footer .meeting-status-pill.is-status.warning {
  background: rgba(255, 204, 0, 0.24);
  color: #7a5b00;
}

.meeting-row-actions .meeting-status-pill.is-status.danger,
.meeting-row-footer .meeting-status-pill.is-status.danger {
  background: rgba(255, 59, 48, 0.14);
  color: #b3261e;
}

.meeting-row-actions .meeting-status-pill.is-status.muted,
.meeting-row-footer .meeting-status-pill.is-status.muted {
  background: var(--chip-bg);
  color: var(--muted);
}

.meeting-row-actions .meeting-status-pill.is-status:not(.accent):not(.warning):not(.danger):not(.muted),
.meeting-row-footer .meeting-status-pill.is-status:not(.accent):not(.warning):not(.danger):not(.muted) {
  background: rgba(52, 199, 89, 0.16);
  color: #176d34;
}

.meeting-row-footer .meeting-status-pill.is-action::before {
  content: "+";
  margin-right: 9px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.meeting-room {
  display: grid;
  gap: 18px;
}

.meeting-room-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.48)),
    linear-gradient(115deg, rgba(215, 232, 255, 0.66), rgba(255, 223, 225, 0.44));
  box-shadow: 0 24px 70px rgba(29, 44, 77, 0.12), var(--shadow-hairline);
  backdrop-filter: blur(26px) saturate(1.12);
}

.back-chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: rgba(23, 23, 28, 0.72);
  box-shadow: var(--shadow-hairline);
}

.meeting-room-title-block {
  min-width: 0;
}

.meeting-room-header h1 {
  margin: 2px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.96;
}

.meeting-room-header-compact {
  grid-template-columns: auto minmax(0, 1fr);
  padding: 14px 18px 16px;
}

.meeting-room-header-compact h1 {
  max-width: 760px;
  font-size: 22px;
  line-height: 1.1;
}

.meeting-room-header p {
  color: var(--muted);
  margin: 6px 0 0;
  font-weight: 650;
}

.meeting-room-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.meeting-participant-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.meeting-phase {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 8px 4px -6px;
}

.meeting-phase span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #111116;
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.meeting-phase h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.meeting-phase small {
  color: var(--muted);
  font-weight: 650;
}

.meeting-prepare-card {
  padding: 0;
  overflow: hidden;
}

.meeting-brief-block {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
}

.meeting-brief-block + .meeting-brief-block {
  border-top: 1px solid rgba(23, 23, 28, 0.07);
}

.meeting-brief-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meeting-brief-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meeting-brief-heading em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.meeting-brief-heading button {
  min-height: 32px;
  padding: 0 12px;
}

.meeting-person-list,
.meeting-edit-loop-col,
.meeting-capture-card form {
  display: grid;
  gap: 10px;
}

.meeting-person-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 30px;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
}

.meeting-person-row + .meeting-person-row {
  border-top: 1px dashed rgba(23, 23, 28, 0.08);
}

.meeting-person-row strong {
  display: inline-block;
  max-width: 100%;
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  outline: 0;
}

.meeting-person-row strong:focus {
  background: rgba(0, 122, 255, 0.08);
}

.meeting-person-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.meeting-person-row button {
  display: grid;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 20px;
}

.meeting-loop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.meeting-edit-loop-col {
  align-content: start;
  padding: 12px;
  border-radius: 18px;
  background: rgba(248, 249, 253, 0.78);
}

.meeting-edit-loop-col h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
}

.meeting-edit-loop-col h3 span {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(17, 17, 22, 0.06);
  color: var(--muted);
  font-size: 11px;
}

.meeting-capture-card {
  padding: 20px 22px;
}

.meeting-voice-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 23, 28, 0.07);
}

.meeting-voice-strip small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.meeting-process-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-card), var(--shadow-hairline);
}

.meeting-process-bar strong {
  color: var(--ink);
}

.meeting-process-bar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.meeting-process-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.meeting-processing {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(70, 110, 242, 0.08);
  color: var(--ink);
}

.meeting-processing i {
  grid-column: 1 / -1;
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(70, 110, 242, 0.12);
}

.meeting-processing i em {
  display: block;
  width: 52%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #466ef2, #6fa5ff);
  animation: meeting-progress 1.35s ease-in-out infinite;
}

@keyframes meeting-progress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.meeting-room {
  --mtg-ink: #1c1c28;
  --mtg-ink-soft: #3a3a48;
  --mtg-muted: #8c8ca0;
  --mtg-muted-2: #a6a6b8;
  --mtg-line: #ececf3;
  --mtg-blue: #466ef2;
  --mtg-card: #fff;
  box-sizing: border-box;
  width: min(100%, 920px);
  max-width: 920px;
  gap: 18px;
  overflow-x: hidden;
}

.meeting-room .card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 26px;
  background: var(--mtg-card);
  box-shadow: 0 1px 2px rgba(28, 28, 40, 0.04), 0 12px 34px -18px rgba(28, 28, 40, 0.22);
  backdrop-filter: none;
}

.meeting-room .btn,
.meeting-room .back,
.meeting-room .add-attendee,
.meeting-room .add-row,
.meeting-room .voice-btn,
.meeting-room .voice-upload,
.meeting-room .qa {
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

.meeting-room .btn {
  padding: 11px 18px;
  font-size: 14px;
}

.meeting-room .btn-primary {
  background: #16161c;
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.55);
}

.meeting-room .btn-ghost {
  background: #f0f0f5;
  color: #3a3a48;
}

.meeting-room .btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.detail-head {
  padding: 14px 22px 16px;
  margin-bottom: 6px;
}

.backline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  padding: 8px 14px;
  background: #f2f2f7;
  color: #4a4a5a;
  box-shadow: none;
  font-size: 13px;
}

.d-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  color: var(--mtg-muted);
  font-size: 12px;
  font-weight: 600;
}

.d-title {
  margin: 0 0 5px;
  color: var(--mtg-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0;
}

.d-meta {
  color: var(--mtg-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.meeting-room-head {
  position: relative;
  overflow: visible;
  padding: 14px 20px 16px 26px;
}

.meeting-room-head .dh-rail {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 5px;
  border-radius: 4px;
  background: var(--group-color);
}

.dh-top,
.dh-top-right,
.dh-id,
.dh-focus-row,
.dh-facets,
.series-nav,
.meeting-status-pill,
.facet,
.dh-menu a,
.dh-menu button {
  display: flex;
  align-items: center;
}

.dh-top {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dh-top-right {
  position: relative;
  gap: 10px;
}

.meeting-status-pill {
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #e6eeff;
  color: #2e5be6;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.meeting-status-pill.today,
.meeting-status-pill.live {
  background: #e2f1e8;
  color: #2f7d4f;
}

.meeting-status-pill.past {
  background: #f0f0f5;
  color: #6d6d80;
}

.meeting-status-pill .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #46b37d;
  box-shadow: 0 0 0 4px rgba(70, 179, 125, 0.18);
  animation: meetingPulse 1.45s infinite;
}

@keyframes meetingPulse {
  0% { box-shadow: 0 0 0 0 rgba(70, 179, 125, 0.28); }
  70% { box-shadow: 0 0 0 7px rgba(70, 179, 125, 0); }
  100% { box-shadow: 0 0 0 0 rgba(70, 179, 125, 0); }
}

.dh-kebab {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f7;
  color: #8a8a9c;
  box-shadow: none;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.dh-menu,
.meeting-pop {
  position: absolute;
  z-index: 60;
  display: none;
  border: 1px solid var(--mtg-line);
  background: #fff;
  box-shadow: 0 22px 54px -16px rgba(28, 28, 40, 0.36);
}

.dh-menu.open,
.meeting-pop.open {
  display: block;
}

.dh-menu {
  top: 44px;
  right: 0;
  min-width: 228px;
  padding: 6px;
  border-radius: 16px;
}

.dh-menu a,
.dh-menu button {
  width: 100%;
  gap: 11px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #3a3a48;
  box-shadow: none;
  font-size: 13.5px;
  font-weight: 750;
  text-align: left;
  text-decoration: none;
}

.dh-menu a:hover,
.dh-menu button:hover {
  background: #f4f4f9;
}

.dh-menu svg {
  width: 16px;
  height: 16px;
}

.dh-menu .danger {
  color: #d15757;
}

.dh-menu .div {
  height: 1px;
  margin: 5px 6px;
  background: var(--mtg-line);
}

.dh-id {
  flex-wrap: wrap;
  gap: 9px;
}

.dh-groupdot,
.facet-swatch,
.grp-sw {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: var(--group-color);
}

.dh-groupdot {
  box-shadow: 0 0 0 4px var(--group-tint);
}

.dh-title,
.dh-title-input {
  margin: 0;
  color: var(--mtg-ink);
  font-size: clamp(22px, 3.8vw, 30px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

.dh-title {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding: 2px 6px;
  margin-left: -6px;
  border-radius: 10px;
  cursor: text;
}

.dh-title:hover,
.dh-focus:hover {
  background: #f5f5fb;
}

.dh-title-input,
.dh-focus-input {
  min-width: min(620px, 100%);
  border: 1.5px solid var(--mtg-blue);
  border-radius: 12px;
  background: #fff;
  outline: 0;
  box-shadow: none;
  font-family: inherit;
}

.dh-title-input {
  padding: 5px 9px;
}

.dh-focus-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.dh-focus,
.dh-focus-input {
  max-width: min(620px, 100%);
  padding: 5px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--mtg-ink-soft);
  box-shadow: none;
  font-size: 14.5px;
  font-weight: 750;
  text-align: left;
}

.dh-focus-input {
  border: 1.5px solid var(--mtg-blue);
}

.focus-ph {
  color: var(--mtg-muted-2);
}

.focus-suggest {
  gap: 7px;
  min-height: 31px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #f0eef9;
  color: #6b5fc8;
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 800;
}

.focus-suggest svg {
  width: 15px;
  height: 15px;
}

.dh-facets {
  position: relative;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.facet {
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: #f4f4f9;
  color: #4a4a5e;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.facet:hover {
  background: #eaeaf2;
}

.facet svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.facet .rel {
  color: var(--mtg-muted-2);
  font-weight: 800;
}

.facet-join {
  background: #eaf3ee;
  color: #2f7d4f;
}

.facet-join:hover {
  background: #ddeee4;
}

.av-stack {
  display: flex;
}

.av-stack span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.av-stack span:first-child {
  margin-left: 0;
}

.series-nav {
  gap: 9px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #f0e6d8;
  border-radius: 14px;
  background: #faf6f0;
  color: #9a8a70;
  font-size: 12px;
  font-weight: 800;
}

.series-nav button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: #b26a15;
  box-shadow: none;
  font-size: 16px;
}

.meeting-room-head .tag,
.meeting-series-chip {
  min-height: 27px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0eef9;
  color: #6b5fc8;
  font-size: 12px;
  font-weight: 850;
}

.series-nav button:disabled {
  opacity: 0.35;
}

.meeting-pop {
  top: calc(100% + 10px);
  left: 0;
  box-sizing: border-box;
  width: min(292px, calc(100vw - 44px));
  padding: 14px;
  border-radius: 18px;
}

.meeting-pop[data-popover-kind="date"] {
  width: min(344px, calc(100vw - 44px));
}

.meeting-pop-time {
  left: min(152px, 20vw);
  width: 255px;
}

.meeting-pop-group {
  left: min(292px, 35vw);
  width: 235px;
}

.cal-head,
.pop-quick,
.dur-row {
  display: flex;
  align-items: center;
}

.cal-head {
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-nav {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: #f2f2f7;
  box-shadow: none;
  color: #5a5a6e;
  font-size: 17px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.cal-grid .dow {
  padding: 3px 0;
  color: var(--mtg-muted-2);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.cal-day {
  aspect-ratio: 1;
  min-width: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: #3a3a48;
  font-size: 13px;
  font-weight: 800;
}

.cal-day:hover {
  background: #f0f2fb;
}

.cal-day.other {
  color: #d3d3e0;
}

.cal-day.today {
  box-shadow: inset 0 0 0 1.5px var(--mtg-blue);
  color: var(--mtg-blue);
}

.cal-day.sel {
  background: #16161c;
  color: #fff;
  box-shadow: none;
}

.pop-quick {
  gap: 6px;
  margin-top: 10px;
}

.pop-quick button,
.dur {
  flex: 1;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: #f2f2f7;
  box-shadow: none;
  color: #4a4a5e;
  font-size: 13px;
  font-weight: 800;
}

.pop-title {
  margin: 0 0 9px;
  color: var(--mtg-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.time-in {
  width: 100%;
  min-height: 42px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid var(--mtg-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  color: var(--mtg-ink);
  font-size: 15px;
  font-weight: 800;
}

.dur-row {
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.dur {
  flex: 0 0 auto;
  padding: 0 12px;
}

.dur.on {
  background: #16161c;
  color: #fff;
}

.grp-opt {
  gap: 11px;
  width: 100%;
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: #3a3a48;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.grp-opt:hover,
.grp-opt.active {
  background: #f4f4f9;
}

.meeting-room .phase {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 4px 14px;
}

.meeting-room .phase .dot {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: #16161c;
  color: #fff;
  font-size: 12.5px;
  font-weight: 750;
}

.meeting-room .phase h3 {
  margin: 0;
  color: var(--mtg-ink);
  font-size: 17px;
  font-weight: 780;
  letter-spacing: 0;
}

.meeting-room .phase .ph-sub {
  margin-left: 2px;
  color: var(--mtg-muted);
  font-size: 13.5px;
  font-weight: 550;
}

.brief {
  padding: 8px 8px 12px;
}

.brief-block {
  display: block;
  padding: 20px 22px;
}

.brief-block + .brief-block {
  border-top: 1px solid var(--mtg-line);
}

.bb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.bb-label,
.notes-card .lbl {
  color: var(--mtg-muted);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.notes-card .lbl span {
  color: var(--mtg-muted-2);
  font-weight: 550;
  letter-spacing: 0;
  text-transform: none;
}

.person {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
}

.person + .person {
  border-top: 1px dashed var(--mtg-line);
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.av-1 {
  background: linear-gradient(150deg, #6b7bf2, #8f7bf0);
}

.av-2 {
  background: linear-gradient(150deg, #46b37d, #59c6a0);
}

.person-main {
  flex: 1;
  min-width: 0;
}

.person-name {
  width: fit-content;
  max-width: 100%;
  border-radius: 6px;
  color: var(--mtg-ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  outline: 0;
}

.person-name:focus {
  background: #f5f5fb;
}

.person-ctx {
  margin-top: 2px;
  color: var(--mtg-ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

.person-x {
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  flex: 0 0 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: #c2c2d0;
  font-size: 19px;
  line-height: 1;
}

.person:hover .person-x {
  color: #9a9aac;
}

.person-x:hover {
  background: #fdecec;
  color: #d15757;
}

.add-attendee,
.add-row {
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  padding: 0 18px;
  border: 1px dashed #d7d7e1;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  color: #8a8a9c;
  text-align: left;
  font-size: 16px;
  font-weight: 750;
}

.add-attendee:hover,
.add-row:hover {
  border-color: var(--mtg-blue);
  background: #f7f9ff;
  color: var(--mtg-blue);
}

.loops {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.loop-col h5 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--mtg-ink);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0;
}

.loop-col h5 .n {
  min-width: 30px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ececf4;
  color: #9b9bac;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.loop-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.loop {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  min-height: 106px;
  padding: 20px 22px;
  border: 0;
  border-radius: 20px;
  background: #f7f6fb;
  box-shadow: none;
}

.loop-col {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.loop-col.is-drop-target {
  outline: 2px solid rgba(70, 110, 242, 0.42);
  outline-offset: 3px;
}

.tick {
  position: relative;
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  margin-top: 0;
  padding: 0;
  border: 2px solid #c9c9d6;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.tick:hover {
  border-color: #46b37d;
}

.loop.done .tick,
.tick.checked {
  border-color: #46b37d;
  background: #46b37d;
}

.loop.done .tick::after,
.tick.checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.loop-main {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 7px;
}

.loop-txt {
  width: 100%;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--mtg-ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

.loop-txt:hover,
.loop-txt:focus {
  background: #eef0f7;
  outline: 0;
}

.loop.done .loop-txt {
  color: var(--mtg-muted-2);
  text-decoration: line-through;
}

.loop-tag {
  color: var(--mtg-muted);
  font-size: 15px;
  font-weight: 750;
}

.loop-tag .kind {
  color: #d79a48;
  font-weight: 850;
}

.loop[data-kind="agenda"] .loop-tag .kind {
  color: #8f8fa1;
}

.loop[data-kind="you_owe"] .loop-tag .kind {
  color: #6677df;
}

.loop-note textarea {
  width: min(100%, 720px);
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid #dedee9;
  border-radius: 13px;
  background: #fff;
  box-shadow: none;
  color: var(--mtg-ink-soft);
  font-size: 16px;
  line-height: 1.4;
  resize: vertical;
}

.loop:not(.has-notes) .loop-note {
  display: none;
}

.loop:not(.has-notes) .loop-note textarea:not(:focus) {
  min-height: 0;
  height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.meeting-agenda-attachments {
  display: grid;
  gap: 10px;
}

.loop:not(.has-attachments) .meeting-agenda-attachments {
  display: none;
}

.meeting-agenda-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.meeting-agenda-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: min(100%, 360px);
  gap: 9px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  background: #eeeef6;
  color: #676779;
  font-size: 15px;
  font-weight: 750;
}

.meeting-agenda-chip > a,
.meeting-agenda-chip > span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}

.meeting-agenda-chip > a {
  cursor: pointer;
}

.meeting-agenda-chip > a:hover {
  color: var(--mtg-ink);
}

.meeting-agenda-chip > a,
.meeting-agenda-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-agenda-chip svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.meeting-agenda-chip button {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9b9bac;
  box-shadow: none;
  font-size: 18px;
  line-height: 1;
}

.meeting-agenda-attach-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.meeting-agenda-attach-controls input[data-meeting-agenda-link] {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #d8d8e5;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  color: var(--mtg-ink);
  font-size: 16px;
}

.meeting-agenda-attach-controls button,
.meeting-agenda-attach-controls label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: #eeeef8;
  color: #5666b8;
  box-shadow: none;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.loop-tools {
  display: flex;
  flex: 0 0 auto;
  gap: 16px;
  opacity: 0.52;
  transition: opacity 0.15s;
}

.meeting-agenda-stock-row {
  grid-template-columns: 30px 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px 9px;
  overflow: visible;
  border: 1px solid rgba(22, 22, 26, 0.075);
  border-radius: 10px;
  background: var(--item-gradient);
  box-shadow: 0 12px 30px rgba(29, 44, 77, 0.08), var(--shadow-hairline);
}

.meeting-agenda-stock-row:hover {
  border-color: rgba(22, 22, 26, 0.12);
  background: var(--item-gradient-hover);
  box-shadow: 0 18px 42px rgba(29, 44, 77, 0.12), var(--shadow-hairline);
}

.meeting-agenda-stock-row .tick {
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
}

.meeting-agenda-stock-row .loop-main {
  gap: 3px;
}

.meeting-agenda-stock-row .loop-txt {
  min-height: 30px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.meeting-agenda-stock-row .loop-tag {
  font-size: 12.5px;
}

.meeting-agenda-stock-row .loop-tools {
  align-items: center;
  justify-self: end;
  gap: 4px;
  opacity: 0.72;
}

.meeting-agenda-category-handle {
  align-self: center;
}

.meeting-agenda-stock-row .tool {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  border-radius: 9px;
}

.meeting-agenda-stock-row .tool svg {
  width: 16px;
  height: 16px;
}

.meeting-agenda-stock-row .loop-note,
.meeting-agenda-stock-row .meeting-agenda-attachments,
.meeting-agenda-stock-row .meeting-agenda-move-menu {
  grid-column: 1 / -1;
  margin-left: 0;
}

.meeting-agenda-stock-row .loop-note textarea {
  width: 100%;
  min-height: 74px;
}

.meeting-agenda-move {
  margin-top: 0;
}

.meeting-agenda-move-menu {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.meeting-agenda-move-menu button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #f0f1f6;
  color: var(--mtg-muted);
  box-shadow: none;
  font-size: 12px;
  font-weight: 750;
}

.meeting-agenda-move-menu button.active {
  background: #16161c;
  color: #fff;
}

.meeting-attendee-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-top: 10px;
}

.meeting-attendee-add-form input {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--mtg-line);
  border-radius: 14px;
  background: #fff;
  color: var(--mtg-ink);
  box-shadow: none;
  font-size: 16px;
}

.meeting-attendee-add-form button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: #16161c;
  color: #fff;
  box-shadow: none;
  font-weight: 750;
}

.meeting-attendee-add-form button[data-meeting-attendee-cancel] {
  width: 42px;
  padding: 0;
  border-radius: 999px;
  background: #f0f1f6;
  color: var(--mtg-muted);
  font-size: 20px;
}

.meeting-language-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  gap: 4px;
  margin: 10px 0 0;
  padding: 4px;
  border-radius: 999px;
  background: #f0f1f6;
}

.meeting-language-toggle-header {
  grid-template-columns: repeat(2, minmax(64px, 1fr));
  min-height: 36px;
  margin: 0;
}

.meeting-language-toggle button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mtg-muted);
  box-shadow: none;
  font-size: 13px;
  font-weight: 750;
}

.meeting-language-toggle-header button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
}

.meeting-language-toggle button.active {
  background: #fff;
  color: var(--mtg-ink);
  box-shadow: 0 6px 18px rgba(29, 44, 77, 0.1);
}

.meeting-calendar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.meeting-calendar-actions .meeting-calendar-remove {
  display: inline-grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  place-items: center;
  padding: 0;
  border-radius: 999px;
}

.meeting-calendar-actions .meeting-calendar-remove svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meeting-row-actions {
  position: relative;
}

.loop:hover .loop-tools {
  opacity: 1;
}

.tool {
  display: grid;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: #aaaab8;
  font-size: 20px;
  font-weight: 700;
}

.tool svg {
  width: 15px;
  height: 15px;
}

.meeting-agenda-stock-row .tool svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool.list-drag-handle {
  border: 0;
  background: transparent;
}

.tool:hover {
  background: #eaeaf2;
  color: #4a4a5e;
}

.tool.danger:hover {
  background: #fdecec;
  color: #d15757;
}

.last-time-box {
  padding: 16px 18px;
  border-radius: 14px;
  background: #f6f6fb;
}

.last-time-box p {
  margin: 0 0 10px;
  color: var(--mtg-ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.last-time-box p:last-child {
  margin-bottom: 0;
}

.notes-card {
  padding: 20px 22px;
}

.notes-card textarea[name="meetingNotes"] {
  width: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--mtg-ink);
  font-size: 14.5px;
  line-height: 1.6;
  outline: 0;
  resize: vertical;
}

.notes-card textarea::placeholder {
  color: var(--mtg-muted-2);
}

.notes-divider {
  height: 1px;
  margin: 18px 0 14px;
  background: var(--mtg-line);
}

.voice-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.voice-btn,
.voice-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  font-size: 13px;
}

.voice-btn {
  background: #eef0fb;
  color: #4f5fc8;
}

.voice-upload {
  background: #f0f0f5;
  color: #5a5a6e;
}

.voice-btn svg,
.voice-upload svg {
  width: 15px;
  height: 15px;
}

.voice-hint {
  color: var(--mtg-muted-2);
  font-size: 12px;
  font-weight: 550;
}

.process-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0 4px;
  padding: 18px 22px;
}

.pb-text {
  max-width: 430px;
  color: var(--mtg-muted);
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.45;
}

.pb-lead {
  margin-bottom: 2px;
  color: var(--mtg-ink);
  font-size: 15.5px;
  font-weight: 750;
  letter-spacing: 0;
}

.pb-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}

.pb-status {
  color: var(--mtg-muted-2);
  font-size: 12px;
  font-weight: 650;
}

.pb-opt {
  color: #c6c6d2;
  font-weight: 600;
}

.pb-actions {
  display: flex;
  gap: 10px;
}

.processing {
  padding: 26px 24px;
}

.proc-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.proc-msg {
  color: var(--mtg-ink);
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: 0;
}

.prog-track {
  height: 6px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf0f7;
}

.prog-fill {
  width: 70%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #466ef2, #5b8bf7);
}

.act-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
}

.act-top .lead {
  color: var(--mtg-ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.act-top .lead small {
  display: block;
  margin-top: 3px;
  color: var(--mtg-muted);
  font-size: 13px;
  font-weight: 550;
}

.act-pills {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.minutes-added {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e2f1e8;
  color: #2f7d4f;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.ft {
  padding: 6px 8px 12px;
}

.ft-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ft-item + .ft-item {
  border-top: 1px solid var(--mtg-line);
}

.ft-num {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  margin-top: 2px;
  border-radius: 50%;
  background: #f0f0f6;
  color: #8484a0;
  font-size: 12px;
  font-weight: 700;
}

.ft-done .ft-num {
  background: var(--mtg-blue);
  color: #fff;
}

.ft-body {
  flex: 1;
  min-width: 0;
}

.ft-txt {
  color: var(--mtg-ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
}

.ft-body p {
  margin: 8px 0 0;
  color: var(--mtg-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ft-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.qa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  box-shadow: none;
  font-size: 12.5px;
}

.qa input {
  display: none;
}

.qa svg {
  width: 13px;
  height: 13px;
}

.qa-task {
  background: #eef0fb;
  color: #4f5fc8;
}

.qa-wait {
  background: #fbeede;
  color: #c1683f;
}

.qa-note {
  background: #eef7f0;
  color: #3f8a5c;
}

.qa-dismiss {
  background: transparent;
  color: var(--mtg-muted-2);
}

.ft-done {
  opacity: 0.72;
}

.ft-linked {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef0fb;
  color: #4f5fc8;
  font-size: 12.5px;
  font-weight: 650;
}

.ft-linked svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 720px) {
  html,
  body,
  #app {
    max-width: 100%;
    overflow-x: hidden;
  }

  input,
  textarea,
  select {
    font-size: 16px !important;
  }

  .meeting-room {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    gap: 14px;
    overflow-x: hidden;
    padding-bottom: calc(var(--mobile-content-bottom, 140px) + 56px);
  }

  .meeting-room .card {
    border-radius: 24px;
  }

  .detail-head {
    padding: 14px 16px 16px;
  }

  .d-title {
    font-size: 19px;
  }

  .meeting-room .phase {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 2px 12px;
  }

  .meeting-room .phase .ph-sub {
    flex: 1 1 100%;
    margin-left: 38px;
    line-height: 1.4;
  }

  .brief {
    padding: 4px;
  }

  .brief-block,
  .notes-card,
  .process-bar,
  .act-top {
    padding: 16px;
  }

  .meeting-followup-card {
    gap: 16px;
    padding: 20px 16px;
  }

  .meeting-followup-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .meeting-followup-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .meeting-tone-pill {
    justify-self: start;
    max-width: 100%;
    white-space: normal;
  }

  .meeting-tone-pill span {
    white-space: normal;
  }

  .meeting-followup-to {
    gap: 7px;
  }

  .meeting-followup-points > span {
    line-height: 1.35;
  }

  .meeting-followup-points textarea,
  .meeting-followup-result textarea {
    min-height: 132px;
    font-size: 16px;
  }

  .meeting-followup-result {
    padding: 12px;
  }

  .meeting-followup-write {
    width: 100%;
    justify-content: center;
  }

  .meeting-empty-act-card {
    min-height: 150px;
    padding: 28px 18px;
  }

  .meeting-empty-act-card p {
    font-size: 14.5px;
  }

  .person {
    grid-template-columns: 48px minmax(0, 1fr) 30px;
    gap: 12px;
  }

  .person-ctx {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 13px;
    line-height: 1.42;
  }

  .loops {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .loop-col h5 {
    margin-bottom: 12px;
    font-size: 21px;
  }

  .meeting-attendee-add-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .meeting-attendee-add-form button[data-meeting-attendee-cancel] {
    width: 100%;
    border-radius: 14px;
  }

  .loop {
    gap: 8px;
    min-height: 0;
    padding: 14px;
    border-radius: 18px;
  }

  .meeting-agenda-stock-row {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    grid-template-columns: 28px 22px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 10px;
    overflow: hidden;
  }

  .meeting-agenda-stock-row .tick {
    align-self: start;
    width: 25px;
    min-width: 25px;
    height: 25px;
    min-height: 25px;
  }

  .meeting-agenda-stock-row .loop-main {
    grid-column: 3 / -1;
    min-width: 0;
  }

  .meeting-agenda-stock-row .loop-tools {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 4px;
    margin-top: 0;
    padding-left: 56px;
  }

  .loop-tools {
    opacity: 1;
  }

  .meeting-agenda-stock-row .tool {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    border-radius: 9px;
  }

  .meeting-agenda-stock-row .tool svg {
    width: 16px;
    height: 16px;
  }

  .loop-txt {
    min-height: 28px;
    font-size: 16px;
    line-height: 1.28;
    overflow-wrap: anywhere;
  }

  .loop-tag {
    font-size: 14px;
  }

  .loop-note textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 78px;
    font-size: 16px;
  }

  .meeting-agenda-attach-controls {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .meeting-agenda-attach-controls button,
  .meeting-agenda-attach-controls label {
    width: 100%;
  }

  .notes-card textarea[name="meetingNotes"] {
    min-height: 190px;
    font-size: 16px;
  }

  .voice-row {
    align-items: stretch;
  }

  .voice-btn,
  .voice-upload {
    justify-content: center;
    min-height: 44px;
  }

  .voice-hint {
    flex-basis: 100%;
  }

  .process-bar,
  .act-top {
    flex-direction: column;
    align-items: stretch;
  }

  .pb-right {
    align-items: flex-start;
  }

  .pb-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .pb-actions .btn {
    flex: 1 1 140px;
    min-height: 42px;
  }

  .ft {
    padding: 2px 4px 8px;
  }

  .ft-item {
    padding: 14px 12px;
  }
}

.soft-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--chip-bg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 750;
  font-size: 13px;
}

.miniapp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-soft), var(--shadow-hairline);
}

.miniapp-hero h1 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
}

.miniapp-hero p {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 680;
}

.miniapp-hero .section-kicker {
  margin: 0;
  color: rgba(24, 24, 29, 0.58);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.miniapp-hero-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft), var(--shadow-hairline);
  color: var(--ink);
}

.miniapp-hero-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.health-hero {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.62), rgba(224, 244, 241, 0.66), rgba(239, 234, 255, 0.54));
}

.miniapp-hero-icon.health,
.health-module-icon {
  color: #15856d;
}

.health-shell-grid,
.health-available-list {
  display: grid;
  gap: 12px;
}

.health-shell-grid {
  margin-top: 16px;
}

.health-module-card,
.health-empty-card,
.health-add-panel,
.health-available-row {
  position: relative;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.78), rgba(226, 240, 255, 0.78));
  box-shadow: var(--shadow-card), var(--shadow-hairline);
}

.health-module-card,
.health-available-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 76px;
  padding: 15px 16px;
  text-align: left;
}

.health-module-card::before,
.health-empty-card::before,
.health-add-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  border-radius: 22px 0 0 22px;
  background: linear-gradient(180deg, #0f7ae5, #25b58d);
}

.health-module-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-hairline);
}

.health-module-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.health-module-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.health-module-copy strong,
.health-empty-card strong,
.health-add-panel h2 {
  color: var(--ink);
}

.health-module-copy small,
.health-empty-card p {
  color: var(--muted);
  font-weight: 750;
}

.health-module-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.health-module-card.is-clickable {
  cursor: pointer;
}

.health-module-card.is-clickable:focus-visible {
  outline: 3px solid rgba(17, 17, 22, 0.16);
  outline-offset: 3px;
}

.health-module-detail-grid {
  display: grid;
  gap: 12px;
}

.health-module-hero {
  margin-top: 12px;
  margin-bottom: 16px;
}

.health-empty-card,
.health-add-panel {
  padding: 18px 18px 18px 24px;
}

.health-add-panel {
  margin-top: 18px;
}

.health-available-row {
  width: 100%;
  border-style: dashed;
  cursor: pointer;
}

.health-add-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 24px;
  font-weight: 800;
}

.water-tracker-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.water-tracker-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 22px;
  background: linear-gradient(116deg, rgba(255, 255, 255, 0.82), rgba(225, 246, 255, 0.72));
  box-shadow: var(--shadow-card), var(--shadow-hairline);
  overflow: hidden;
}

.water-tracker-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  border-radius: 22px 0 0 22px;
  background: linear-gradient(180deg, #1b8fe8, #24c3a2);
}

.water-progress-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-left: 24px;
}

.water-progress-copy {
  display: grid;
  gap: 5px;
}

.water-progress-copy strong {
  color: var(--ink);
  font-size: clamp(34px, 10vw, 52px);
  letter-spacing: 0;
  line-height: 0.95;
}

.water-progress-copy small,
.water-tracker-card p,
.water-tracker-card small {
  color: var(--muted);
  font-weight: 750;
}

.water-bottle-visual {
  position: relative;
  display: grid;
  width: 82px;
  height: 132px;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgba(21, 133, 109, 0.28);
  border-radius: 24px 24px 18px 18px;
  background: rgba(255, 255, 255, 0.6);
}

.water-bottle-visual::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 25px;
  width: 32px;
  height: 16px;
  border: 3px solid rgba(21, 133, 109, 0.28);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.water-bottle-visual span {
  position: absolute;
  inset: auto 0 0;
  min-height: 2px;
  background: linear-gradient(180deg, rgba(99, 203, 255, 0.72), rgba(21, 161, 137, 0.86));
  transition: height 180ms ease;
}

.water-bottle-visual strong {
  position: relative;
  color: var(--ink);
  font-size: 18px;
}

.water-progress-bar {
  grid-column: 1 / -1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 122, 229, 0.12);
}

.water-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1b8fe8, #24c3a2);
}

.water-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.water-card-heading strong,
.water-history-card > strong {
  color: var(--ink);
}

.water-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.water-add-button {
  display: grid;
  min-height: 92px;
  gap: 5px;
  place-items: center;
  padding: 12px 10px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #1f7bf2, var(--blue));
  color: white;
  box-shadow: 0 14px 32px rgba(10, 102, 216, 0.22), var(--shadow-hairline);
  cursor: pointer;
}

.water-add-button span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  line-height: 0;
}

.water-add-button svg {
  display: block;
  margin: auto;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.water-add-button small {
  color: rgba(255, 255, 255, 0.72);
}

.water-custom-form,
.water-settings-form {
  display: grid;
  gap: 10px;
}

.water-custom-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.water-custom-form label,
.water-settings-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.water-custom-form input,
.water-settings-form input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 11px 12px;
}

.water-history-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 118px;
}

.water-history-day {
  display: grid;
  grid-template-rows: 86px auto;
  gap: 6px;
  align-items: end;
  justify-items: center;
}

.water-history-day i {
  display: block;
  width: 100%;
  max-width: 28px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, rgba(99, 203, 255, 0.72), rgba(21, 161, 137, 0.82));
}

.water-history-day.is-complete i {
  background: linear-gradient(180deg, #111827, #15856d);
}

.water-history-day small {
  font-size: 11px;
}

@media (min-width: 820px) {
  .water-tracker-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .water-progress-card,
  .water-history-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .training-session-summary {
    grid-template-columns: 1fr;
  }

  .training-session-summary span {
    min-height: 52px;
  }
}

.training-grid,
.training-session-layout {
  display: grid;
  gap: 12px;
}

.training-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 22px;
  background: linear-gradient(116deg, rgba(255, 255, 255, 0.84), rgba(236, 244, 255, 0.76));
  box-shadow: var(--shadow-card), var(--shadow-hairline);
}

.training-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  border-radius: 22px 0 0 22px;
  background: linear-gradient(180deg, #111827, #24c3a2);
}

.training-card-heading {
  display: grid;
  gap: 5px;
}

.training-card-heading strong {
  color: var(--ink);
  font-size: 18px;
}

.training-card-heading p,
.training-card p,
.training-card small {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.training-start-card {
  gap: 12px;
}

.training-start-card .training-card-heading {
  align-items: center;
}

.training-start-card .training-card-heading span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.training-start-card .training-card-heading button {
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.training-session-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.training-session-summary span {
  display: grid;
  gap: 3px;
  min-height: 54px;
  align-content: center;
  padding: 9px 11px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-hairline);
}

.training-session-summary strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1;
}

.training-session-summary small {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.15;
}

.training-injury-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-hairline);
}

.training-injury-panel p {
  margin-top: 3px;
}

.training-injury-copy {
  display: grid;
  min-width: min(220px, 100%);
  flex: 1 1 220px;
}

.training-injury-options {
  justify-content: flex-end;
  flex: 2 1 260px;
}

.training-start-card .training-chip {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 12px;
  background: rgba(248, 250, 252, 0.9);
}

.training-start-card .training-chip.is-active {
  background: linear-gradient(180deg, #111827, #23242b);
}

.training-overview-settings {
  align-self: start;
}

.training-overview-settings .list-setting-row {
  padding-left: 12px;
}

.training-onboarding-form,
.training-onboarding-form fieldset {
  display: grid;
  gap: 12px;
}

.training-onboarding-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.training-onboarding-form legend,
.training-number-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.training-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.training-chip-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.training-chip,
.training-rating-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 850;
  box-shadow: var(--shadow-hairline);
  cursor: pointer;
}

.training-chip-label input:checked + .training-chip,
.training-chip.is-active {
  background: var(--ink);
  color: white;
}

.training-number-field {
  display: grid;
  gap: 6px;
}

.training-number-field input {
  width: 100%;
  max-width: 180px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 11px 12px;
}

.training-program-list,
.training-note-list,
.training-recent-list,
.training-guide-list {
  display: grid;
  gap: 10px;
}

.training-program-row,
.training-recent-row,
.training-progress-note,
.training-exercise-detail summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  padding: 10px;
  box-shadow: var(--shadow-hairline);
}

.training-program-row img,
.training-exercise-detail summary img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  object-fit: contain;
}

.training-program-row span,
.training-exercise-detail summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.training-program-row strong,
.training-recent-row strong,
.training-progress-note strong,
.training-exercise-detail summary strong {
  color: var(--ink);
}

.training-progress-note.is-changed {
  background: rgba(36, 195, 162, 0.14);
}

.training-recent-row,
.training-progress-note {
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 1fr);
}

.training-exercise-detail {
  border: 0;
}

.training-exercise-detail summary {
  cursor: pointer;
  list-style: none;
}

.training-exercise-detail summary::-webkit-details-marker {
  display: none;
}

.training-exercise-detail ul,
.training-cue-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 750;
}

.training-session-card {
  gap: 16px;
}

.training-session-topline,
.training-player-actions,
.training-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.training-session-topline span {
  color: var(--muted);
  font-weight: 850;
}

.training-session-topline strong {
  color: var(--ink);
}

.training-round-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.training-round-progress span,
.training-done-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  color: var(--ink);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 850;
}

.training-session-image {
  width: 100%;
  max-height: 280px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  object-fit: contain;
  box-shadow: var(--shadow-hairline);
}

.training-session-copy {
  display: grid;
  gap: 8px;
}

.training-session-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  letter-spacing: 0;
}

.training-swap-chip {
  justify-self: start;
  border-radius: 999px;
  background: rgba(36, 195, 162, 0.14);
  color: #106b59;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
}

.training-timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(35, 104, 216, 0.14);
  border-radius: 14px;
  background: rgba(226, 241, 255, 0.56);
}

.training-timer-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.3;
}

.training-stopwatch-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.training-stopwatch-button svg {
  width: 16px;
  height: 16px;
}

.training-player-actions {
  justify-content: flex-end;
}

.training-player-actions-top {
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
}

.training-player-actions-top button {
  min-height: 38px;
  padding-inline: 14px;
}

.training-rating-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.training-rating-button {
  min-height: 48px;
  border-radius: 16px;
}

.training-completion-card {
  justify-items: center;
  text-align: center;
}

.training-stopwatch-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12, 18, 32, 0.42);
  backdrop-filter: blur(10px);
}

.training-stopwatch-sheet {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  background: rgba(248, 250, 252, 0.94);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28), var(--shadow-hairline);
  text-align: center;
}

.training-stopwatch-ring {
  --timer-progress: 0%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(248, 250, 252, 0.98) 0 61%, transparent 62%),
    conic-gradient(var(--blue) var(--timer-progress), rgba(35, 104, 216, 0.13) 0);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(35, 104, 216, 0.12), 0 18px 48px rgba(35, 104, 216, 0.18);
}

.training-stopwatch-ring strong {
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.training-stopwatch-ring span {
  max-width: 132px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.training-stopwatch-sheet.is-done .training-stopwatch-ring {
  background:
    radial-gradient(circle at center, rgba(248, 250, 252, 0.98) 0 61%, transparent 62%),
    conic-gradient(#24c3a2 100%, rgba(36, 195, 162, 0.14) 0);
}

.training-stopwatch-copy {
  display: grid;
  gap: 6px;
}

.training-stopwatch-copy h2,
.training-stopwatch-copy p {
  margin: 0;
}

.training-stopwatch-copy h2 {
  font-size: 24px;
  letter-spacing: 0;
}

.training-stopwatch-copy p {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.training-stopwatch-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.training-stopwatch-start {
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  font-size: 18px;
}

.training-completion-mark {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #111827, #15856d);
  color: white;
  font-size: 42px;
  font-weight: 900;
  box-shadow: var(--shadow-card);
}

.training-completion-stats {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.training-completion-stats span {
  display: grid;
  gap: 3px;
  min-height: 78px;
  align-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  padding: 10px;
  box-shadow: var(--shadow-hairline);
}

.training-completion-stats strong {
  color: var(--ink);
}

@media (min-width: 900px) {
  .training-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .training-overview-settings {
    grid-column: 1 / -1;
  }

  .training-session-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
    align-items: start;
  }
}

.tell-friend-app {
  display: grid;
  gap: 16px;
}

.tell-friend-intro {
  padding: 8px 10px 4px;
}

.tell-friend-eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tell-friend-intro h1 {
  max-width: 620px;
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: 0;
}

.tell-friend-intro p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.45;
}

.referral-card,
.tell-friend-form,
.tell-friend-link-card,
.tell-friend-history {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft), var(--shadow-hairline);
  backdrop-filter: blur(18px) saturate(1.05);
}

.referral-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.referral-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.referral-section-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.1;
}

.referral-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8d8d98;
}

.referral-dot.violet,
.referral-count-chip.violet {
  background: rgba(109, 92, 240, 0.13);
  color: #6d5cf0;
}

.referral-dot.violet {
  background: #6d5cf0;
}

.referral-dot.black {
  background: var(--ink);
}

.referral-dot.grey {
  background: #8d8d98;
}

.referral-dot.green {
  background: #1f9d63;
}

.referral-count-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.referral-count-chip.green {
  background: rgba(31, 157, 99, 0.12);
  color: #1f9d63;
}

.referral-count-chip.black {
  background: rgba(17, 24, 39, 0.1);
  color: var(--ink);
}

.referral-subline {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.referral-funnel-card {
  gap: 0;
}

.referral-funnel {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 4px;
  align-items: center;
}

.referral-funnel-stat {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 6px 2px;
}

.referral-funnel-stat strong {
  color: var(--ink);
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.referral-funnel-stat small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.referral-funnel-stat.joined strong {
  color: #1f9d63;
}

.referral-funnel-arrow {
  color: rgba(17, 24, 39, 0.2);
  font-size: 26px;
  font-weight: 850;
}

.referral-funnel-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 24, 39, 0.07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.generic-join-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.generic-join-row > span:last-child {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.generic-join-row b {
  color: var(--ink);
  font-weight: 900;
}

.referral-avatars {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.referral-avatars i,
.referral-row-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--avatar-bg, #6d5cf0);
  color: white;
  font-style: normal;
  font-weight: 900;
}

.referral-avatars i {
  width: 38px;
  height: 38px;
  margin-left: -9px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.referral-avatars i:first-child {
  margin-left: 0;
}

.referral-avatars i.more {
  background: #ecebf3;
  color: #6a6a76;
  font-size: 12px;
}

.referral-avatars.empty i {
  border: 2px dashed rgba(141, 141, 152, 0.45);
  background: transparent;
}

.referral-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #1f9d63;
  box-shadow: 0 0 0 0 rgba(31, 157, 99, 0.45);
  animation: referral-pulse 2.2s infinite;
}

@keyframes referral-pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 157, 99, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(31, 157, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 157, 99, 0); }
}

.referral-link-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 14px;
  background: rgba(250, 248, 251, 0.9);
}

.referral-link-glyph {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.08);
  color: var(--ink);
}

.referral-link-glyph.violet {
  background: rgba(109, 92, 240, 0.12);
  color: #6d5cf0;
}

.referral-link-glyph.grey {
  background: rgba(141, 141, 152, 0.13);
  color: #5c5c68;
}

.referral-link-glyph svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.referral-link-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.referral-link-copy strong,
.referral-link-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-link-copy strong {
  color: var(--ink);
  font-size: 14px;
}

.referral-link-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.referral-split-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.referral-split-actions.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.referral-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 900;
}

.referral-button.primary {
  width: 100%;
  min-height: 52px;
  background: var(--ink);
  color: white;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.22);
}

.referral-button.ghost {
  background: rgba(241, 240, 245, 0.9);
  color: var(--ink);
  box-shadow: var(--shadow-hairline);
}

.referral-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tell-friend-form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.tell-friend-input-row,
.tell-friend-details-row {
  display: grid;
  gap: 10px;
}

.tell-friend-input-row {
  grid-template-columns: minmax(0, 1fr);
}

.tell-friend-details-row {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.35fr);
}

.tell-friend-form input,
.tell-friend-form select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(20, 20, 24, 0.08);
  border-radius: 14px;
  background: rgba(250, 248, 251, 0.9);
  padding: 0 18px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  outline: none;
  box-shadow: var(--shadow-hairline);
}

.tell-friend-form input:focus,
.tell-friend-form select:focus {
  border-color: rgba(17, 17, 22, 0.2);
  box-shadow: 0 0 0 4px rgba(17, 17, 22, 0.06), var(--shadow-hairline);
}

.tell-friend-form .primary {
  min-height: 52px;
  padding-inline: 24px;
}

.tell-friend-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.tell-friend-link-card strong,
.tell-friend-row strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.tell-friend-link-card p,
.tell-friend-row small {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.tell-friend-link-card p {
  overflow-wrap: anywhere;
}

.tell-friend-actions,
.tell-friend-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.tell-friend-actions button,
.tell-friend-row-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--control);
  color: var(--ink);
  padding: 0 13px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-hairline);
}

.tell-friend-actions svg,
.tell-friend-row-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tell-friend-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tell-friend-stat {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow-hairline);
}

.tell-friend-stat strong {
  display: block;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.tell-friend-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.tell-friend-history {
  display: grid;
  padding: 16px;
}

.referral-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.06);
}

.referral-segmented button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 13px;
  font-weight: 850;
}

.referral-segmented button.active {
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-hairline);
}

.tell-friend-list {
  display: grid;
  gap: 8px;
}

.tell-friend-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tell-friend-row-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.referral-row-avatar {
  width: 42px;
  height: 42px;
  font-size: 15px;
}

.referral-row-time {
  color: rgba(141, 141, 152, 0.82) !important;
  font-size: 11px !important;
}

.referral-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.referral-status.joined {
  background: rgba(31, 157, 99, 0.12);
  color: #1f9d63;
}

.referral-status.pending {
  background: rgba(181, 133, 42, 0.14);
  color: #9a6b14;
}

.referral-resend {
  border: 0;
  background: transparent;
  color: #6d5cf0;
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
}

.soft-chip.is-pending {
  color: #856100;
  background: rgba(255, 231, 156, 0.52);
}

.soft-chip.is-accepted {
  color: #166534;
  background: rgba(187, 247, 208, 0.52);
}

.meeting-loop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.meeting-loop-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
}

.ghost-inline {
  width: fit-content;
  background: transparent;
  color: var(--muted);
  padding-inline: 0;
}

.markdown-preview {
  max-height: 280px;
  overflow: auto;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  margin-top: 12px;
}

.meeting-inline-minutes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meeting-outcomes-card {
  position: relative;
}

.meeting-empty-act-card {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 34px 22px;
  text-align: center;
}

.meeting-empty-act-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: #c8c8d8;
}

.meeting-empty-act-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meeting-empty-act-card p {
  max-width: 410px;
  margin: 0;
  color: var(--mtg-muted);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
}

.meeting-followup-card {
  display: grid;
  gap: 20px;
  padding: 26px 28px 24px;
  min-width: 0;
  overflow: hidden;
}

.meeting-followup-to,
.meeting-followup-actions,
.meeting-followup-result > div {
  display: flex;
  align-items: center;
}

.meeting-followup-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, auto);
  align-items: start;
  gap: 14px 18px;
  min-width: 0;
}

.meeting-followup-head > div,
.meeting-followup-points,
.meeting-followup-result {
  min-width: 0;
}

.meeting-followup-head h3 {
  margin: 0;
  color: var(--mtg-ink);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.05;
}

.meeting-followup-head p {
  margin: 4px 0 0;
  color: var(--mtg-muted);
  font-size: 14px;
  font-weight: 650;
}

.meeting-tone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  max-width: min(100%, 640px);
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f0eef9;
  color: #6b5fc8;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meeting-tone-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meeting-tone-pill svg,
.meeting-followup-actions svg,
.meeting-followup-to svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meeting-followup-to {
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.meeting-followup-to > span,
.meeting-followup-points > span {
  color: var(--mtg-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meeting-followup-to b {
  min-height: 30px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #f3f3f8;
  color: #4a4a5e;
  font-size: 13px;
  font-weight: 800;
}

.meeting-followup-points {
  display: grid;
  gap: 10px;
}

.meeting-followup-points em {
  color: var(--mtg-muted);
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.meeting-followup-points textarea,
.meeting-followup-result textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 138px;
  padding: 16px;
  border: 1px solid var(--mtg-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  color: var(--mtg-ink-soft);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
}

.meeting-followup-result {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--mtg-line);
  border-radius: 18px;
  background: #fafbff;
  overflow: hidden;
}

.meeting-followup-result > div {
  justify-content: space-between;
  gap: 12px;
}

.meeting-followup-result strong {
  color: var(--mtg-ink);
  font-size: 14px;
}

.meeting-followup-result textarea {
  min-height: 150px;
  background: #fff;
}

.meeting-followup-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.meeting-followup-write {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
}

.meeting-followup-resuggest {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mtg-muted);
  box-shadow: none;
  font-size: 14px;
  font-weight: 800;
}

.meeting-outcome-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
}

.meeting-outcome-row.created {
  background: linear-gradient(115deg, rgba(52, 199, 89, 0.14), rgba(255, 255, 255, 0.68));
}

.meeting-outcome-row.dismissed {
  opacity: 0.58;
}

.meeting-outcome-row blockquote {
  margin: 8px 0 0;
  padding-left: 10px;
  border-left: 3px solid var(--line-strong);
  color: var(--muted);
  font-size: 13px;
}

.meeting-outcome-actions {
  display: flex;
  gap: 8px;
}

.meeting-route-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(52, 199, 89, 0.14);
}

.meeting-route-match strong,
.meeting-route-match small {
  display: block;
}

.meeting-route-match small {
  color: var(--muted);
  font-weight: 650;
  margin-top: 3px;
}

.email-draft-fields {
  margin-top: 12px;
  max-width: none;
}

.tone-form {
  max-width: none;
}

.tone-form textarea {
  min-height: 360px;
  line-height: 1.5;
  resize: vertical;
  tab-size: 2;
  white-space: pre-wrap;
}

.computed-title-preview {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-hairline);
}

.computed-title-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.computed-title-preview strong {
  font-size: 18px;
  line-height: 1.35;
}

.message-sheet textarea[name="instruction"] {
  min-height: 190px;
}

.message-result {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-hairline);
}

.message-result textarea {
  min-height: 180px;
  background: var(--panel);
  line-height: 1.5;
  resize: vertical;
}

.ai-provider-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.sheet-error {
  color: var(--danger);
  font-weight: 700;
}

.compact-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.compact-check input {
  width: auto;
  min-height: 0;
}

.warning {
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: rgba(154, 101, 0, 0.1);
  color: #704800;
}

.muted {
  color: var(--muted);
}

.empty-card {
  display: grid;
  place-items: center;
  min-height: 94px;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(8, 10, 12, 0.2);
  backdrop-filter: blur(5px);
}

.bottom-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 31;
  width: min(860px, calc(100vw - 20px));
  max-height: calc(100dvh - max(14px, env(safe-area-inset-top)));
  overflow-y: auto;
  transform: translateX(-50%);
  padding: 10px 20px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.16);
}

.sheet-title-row {
  position: sticky;
  top: -10px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: -10px -20px 4px;
  padding: 18px 20px 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(1.05);
}

.sheet-title-row h2 {
  margin: 0;
}

.sheet-close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.bottom-sheet.support-chat-sheet.support-panel {
  padding: 0;
  border: 0;
  max-height: none;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.category-picker-sheet {
  display: grid;
  gap: 14px;
  padding-bottom: max(22px, env(safe-area-inset-bottom));
}

.category-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.category-picker-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 10px;
  min-height: 52px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow-hairline);
  color: var(--ink);
  text-align: left;
}

.category-picker-option.active {
  border-color: rgba(9, 9, 11, 0.16);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.11), var(--shadow-hairline);
}

.category-picker-option span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-new-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-hairline);
}

.barcode-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(8, 10, 12, 0.24);
  backdrop-filter: blur(5px);
}

.barcode-scanner-sheet {
  z-index: 32;
  display: grid;
  gap: 14px;
  padding-bottom: max(22px, env(safe-area-inset-bottom));
}

.barcode-camera-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(230, 240, 250, 0.72)),
    #f5f8fb;
  box-shadow: var(--shadow-hairline);
}

.barcode-camera-frame video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.barcode-camera-frame.is-unavailable svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.barcode-status {
  margin: -2px 2px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.barcode-manual-form,
.barcode-teach-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-hairline);
}

.barcode-manual-form input,
.barcode-teach-form input {
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.barcode-manual-form button,
.barcode-teach-form button {
  min-height: 46px;
}

.category-new-form input {
  min-height: 48px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.capture-sheet {
  width: min(860px, calc(100vw - 16px));
  padding: 10px 28px max(22px, env(safe-area-inset-bottom));
}

.sheet-form {
  display: grid;
  gap: 14px;
}

.sheet-form h2 {
  margin: 0;
  font-size: 20px;
}

.mobile-menu-sheet h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.menu-list {
  display: grid;
  gap: 6px;
}

.menu-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  text-align: left;
  min-height: 46px;
  background: transparent;
}

.menu-list button.active {
  background: #111;
  color: #fff;
}

.menu-list .menu-install-button {
  gap: 10px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  box-shadow: var(--shadow-hairline);
}

.menu-install-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.menu-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.menu-logout {
  justify-content: center;
  width: 100%;
  min-height: 46px;
}

.sheet-form textarea {
  min-height: 170px;
  padding: 16px 4px 8px;
  background: transparent;
  border-color: transparent;
  color: var(--ink);
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.24;
}

.sheet-meta {
  color: var(--muted);
  font-size: 13px;
}

.capture-select {
  position: relative;
  display: grid;
  gap: 6px;
}

.capture-select span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.capture-select select {
  height: 56px;
  padding: 0 46px 0 16px;
  border: 1px solid transparent;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 20px center / 7px 7px no-repeat,
    linear-gradient(135deg, var(--ink) 50%, transparent 50%) right 14px center / 7px 7px no-repeat,
    rgba(23, 23, 28, 0.055);
  border-radius: 18px;
  font-size: 18px;
  font-weight: 750;
  appearance: none;
}

.sheet-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}

.sheet-actions .primary {
  margin-left: auto;
  min-height: 58px;
  padding-inline: 26px;
  font-size: 18px;
}

.list-shop-remove-sheet {
  width: min(430px, calc(100vw - 20px));
  padding-bottom: max(22px, env(safe-area-inset-bottom));
}

.list-shop-remove-sheet .sheet-title-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.list-shop-remove-actions {
  justify-content: flex-end;
  padding-top: 8px;
}

.list-shop-remove-actions button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 800;
}

.promote-sheet {
  width: min(760px, calc(100vw - 16px));
}

.promote-form {
  gap: 16px;
}

.promote-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.promote-head h2 {
  margin-bottom: 4px;
}

.promote-head .primary {
  min-height: 46px;
  padding-inline: 20px;
  border-radius: 999px;
}

.promote-form label {
  display: grid;
  gap: 6px;
}

.promote-form label span,
.promote-form .form-row label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.promote-form input,
.promote-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 23, 28, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-hairline);
}

.promote-form textarea {
  min-height: 120px;
  padding: 13px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.4;
}

.promote-group-select select {
  height: 48px;
  border-radius: 16px;
  font-size: 15px;
}

.promote-done-option {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow-hairline);
}

.promote-done-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--ink);
  box-shadow: none;
}

.promote-done-option span {
  color: var(--ink) !important;
  font-size: 14px !important;
  font-weight: 750 !important;
}

.sheet-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(226, 48, 43, 0.08);
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.capture-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.capture-tool-button {
  display: inline-grid;
  place-items: center;
  gap: 5px;
  min-width: 72px;
  min-height: 72px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(23, 23, 28, 0.06);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

.capture-tool-button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capture-tool-button:hover,
.capture-tool-button:focus-visible {
  background: rgba(0, 113, 227, 0.11);
  color: var(--blue);
}

.ultralight-sheet {
  width: min(720px, calc(100vw - 22px));
  padding: 22px 24px max(22px, calc(18px + env(safe-area-inset-bottom)));
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(23, 23, 28, 0.09);
  box-shadow: 0 22px 64px rgba(43, 52, 72, 0.2);
  backdrop-filter: blur(24px) saturate(1.04);
}

.ultralight-form {
  gap: 14px;
}

.ultralight-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
}

.ultralight-sheet-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 820;
  letter-spacing: 0;
}

.capture-submit-icon {
  min-width: 78px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #111116;
  color: #fff;
  font-size: 15px;
  font-weight: 820;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(17, 17, 22, 0.2);
  appearance: none;
}

.ultralight-close {
  width: 38px;
  min-width: 38px;
  height: 38px;
  background: transparent;
  color: var(--muted);
  font-size: 25px;
  box-shadow: none;
}

.ultralight-input-card {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sheet-form .ultralight-textarea,
.ultralight-url-input {
  width: 100%;
  min-height: 112px;
  padding: 18px 20px;
  border: 1px solid rgba(23, 23, 28, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  resize: vertical;
}

.ultralight-url-input {
  min-height: 52px;
  font-weight: 760;
}

.sheet-form .ultralight-textarea::placeholder,
.ultralight-url-input::placeholder {
  color: rgba(121, 124, 135, 0.66);
}

.message-sheet .ultralight-textarea[name="instruction"] {
  min-height: 108px;
  font-size: 18px;
}

.ultralight-context-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 1px;
  color: var(--muted);
  scrollbar-width: none;
}

.ultralight-context-row::-webkit-scrollbar {
  display: none;
}

.capture-group-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(23, 23, 28, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.capture-group-icon {
  display: grid;
  place-items: center;
  color: rgba(23, 23, 28, 0.68);
}

.capture-group-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capture-group-row select {
  width: 100%;
  height: 50px;
  min-height: 50px;
  padding: 0 30px 0 0;
  border: 0;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) right 6px center / 7px 7px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) right 0 center / 7px 7px no-repeat;
  box-shadow: none;
  color: rgba(23, 23, 28, 0.72);
  font-size: 16px;
  font-weight: 760;
  appearance: none;
}

.ultralight-pill,
.ultralight-select-pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 100%;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(242, 243, 246, 0.7);
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
}

.selected-file-pill.is-empty {
  display: none;
}

.ultralight-select-pill {
  position: relative;
  gap: 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.ultralight-select-pill span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ultralight-select-pill select {
  width: auto;
  min-width: 84px;
  max-width: 190px;
  height: 30px;
  min-height: 30px;
  padding: 0 18px 0 0;
  border: 0;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) right 5px center / 6px 6px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) right 0 center / 6px 6px no-repeat;
  box-shadow: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  appearance: none;
}

.capture-enrich-toggle {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 54px;
  gap: 10px;
  align-items: center;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid rgba(49, 126, 223, 0.34);
  border-radius: 22px;
  background: rgba(211, 228, 255, 0.78);
  color: #244f8f;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.64), var(--shadow-hairline);
}

.capture-calendar-import-toggle {
  display: grid;
  grid-template-columns: auto 20px 1fr;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  color: var(--ink);
  cursor: pointer;
}

.capture-calendar-import-toggle input { accent-color: var(--accent); }
.capture-calendar-import-toggle > span:first-of-type { color: var(--muted); }
.capture-calendar-import-toggle svg { width: 18px; height: 18px; }
.capture-calendar-import-toggle strong, .capture-calendar-import-toggle small { display: block; }
.capture-calendar-import-toggle small { color: var(--muted); font-size: 12px; margin-top: 1px; }

.capture-enrich-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.capture-enrich-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #457ad2;
  color: #fff;
}

.capture-enrich-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capture-enrich-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.capture-enrich-copy strong {
  color: #244f8f;
  font-size: 16px;
  font-weight: 860;
}

.capture-enrich-copy small {
  color: #244f8f;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.3;
  white-space: normal;
}

.capture-enrich-switch {
  position: relative;
  justify-self: end;
  width: 52px;
  height: 32px;
  border-radius: 999px;
  background: rgba(23, 23, 28, 0.18);
  transition: background 0.18s ease;
}

.capture-enrich-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(23, 23, 28, 0.18);
  transition: transform 0.18s ease;
}

.capture-enrich-toggle input:checked ~ .capture-enrich-switch {
  background: #457ad2;
}

.capture-enrich-toggle input:checked ~ .capture-enrich-switch::after {
  transform: translateX(20px);
}

.ultralight-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 10px;
  align-items: center;
}

.recipe-link-sheet .ultralight-actions {
  grid-template-columns: minmax(0, 1fr) auto;
}

.ultralight-actions .capture-tools {
  min-width: 0;
  gap: 8px;
}

.ultralight-actions .capture-tool-button {
  min-width: 0;
  min-height: 48px;
  padding: 7px 12px;
  display: inline-flex;
  gap: 7px;
  border-radius: 999px;
  background: rgba(244, 245, 247, 0.74);
  font-size: 14px;
  box-shadow: none;
}

.ultralight-actions .capture-tool-button svg {
  width: 18px;
  height: 18px;
}

.ultralight-actions .primary {
  min-height: 46px;
  min-width: 112px;
  padding-inline: 20px;
  margin-left: 0;
  border-radius: 999px;
  box-shadow: 0 13px 30px rgba(17, 17, 22, 0.17);
}

.ultralight-cancel {
  width: 46px;
  min-width: 46px;
  height: 46px;
  background: rgba(17, 17, 22, 0.06);
  color: var(--muted);
  font-size: 24px;
  box-shadow: none;
}

.ultralight-sheet .message-result {
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(20, 24, 32, 0.05);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.84);
}

.ultralight-sheet .message-result textarea {
  min-height: 112px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
}

.recording-live {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  padding: 24px;
  text-align: center;
  background: #111;
  color: #fff;
}

.recording-live .muted {
  color: rgba(255, 255, 255, 0.68);
}

.recording-transcript h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 76px);
}

.finish-button {
  min-width: 160px;
  background: #fff;
  color: #111;
}

.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
}

.waveform span {
  display: block;
  width: 5px;
  height: calc(18px + (var(--i) % 7) * 7px);
  border-radius: 999px;
  background: currentColor;
  opacity: 0.8;
  animation: pulse 900ms ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 45ms);
}

.waveform.small {
  min-height: 42px;
  color: var(--ink);
}

.waveform.small span {
  width: 4px;
}

@keyframes pulse {
  to {
    transform: scaleY(0.42);
    opacity: 0.42;
  }
}

.mobile-tabs {
  display: none;
}

@media (max-width: 900px) {
  :root {
    --mobile-tabs-bottom: max(22px, env(safe-area-inset-bottom));
    --mobile-fab-bottom: calc(var(--mobile-tabs-bottom) + 78px);
    --mobile-content-bottom: calc(var(--mobile-tabs-bottom) + 116px);
  }

  body {
    overscroll-behavior-y: contain;
  }

  .app-shell {
    display: block;
    padding: 0;
    padding-bottom: var(--mobile-content-bottom);
  }

  .sidebar {
    display: none;
  }

  .main {
    width: 100%;
    padding: 14px 14px var(--mobile-content-bottom);
  }

  .settings-hero {
    padding: 15px;
    border-radius: 22px;
  }

  .settings-hero h1 {
    font-size: 38px;
  }

  .settings-hero p {
    font-size: 14px;
  }

  .settings-hero-logo {
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }

  .settings-profile-card {
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 20px;
  }

  .settings-profile-meta .meta {
    max-width: 100%;
  }

  .settings-option-grid {
    grid-template-columns: 1fr;
  }

  .settings-option-form,
  .settings-danger-panel {
    border-radius: 20px;
  }

  .settings-danger-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .settings-danger-panel .danger {
    width: 100%;
  }

  .group-settings-summary {
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 8px;
    padding: 11px 12px 11px 16px;
  }

  .group-settings-meta {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-left: 23px;
  }

  .group-settings-summary > .settings-section-chevron {
    grid-column: 2;
    grid-row: 1;
  }

  .group-settings-name strong {
    font-size: 16px;
  }

  .group-settings-body {
    padding: 0 12px 13px 16px;
  }

  .mind-map-topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
  }

  .mind-map-loading-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 240px;
    padding: 20px;
    border-radius: 24px;
  }

  .mind-map-loading-orb {
    width: 46px;
    height: 46px;
  }

  .mind-map-topbar .item-actions {
    justify-content: space-between;
  }

  .mind-map-title-input {
    min-height: 38px;
    font-size: 22px;
  }

  .mind-map-canvas {
    grid-template-columns: 170px 330px;
    gap: 24px;
    min-height: 560px;
    padding: 22px;
    border-radius: 24px;
  }

  .mind-map-node-input {
    min-height: 40px;
    font-size: 14px;
  }

  .mind-map-central-input {
    font-size: 15px;
  }

  .pull-refresh-indicator {
    display: inline-flex;
  }

  .app-header {
    top: 0;
    isolation: isolate;
    margin: -14px -14px 18px;
    padding: 12px 14px 12px;
    background: rgba(239, 244, 250, 0.58);
    backdrop-filter: blur(22px) saturate(1.12);
  }

  .search-header {
    min-height: 46px;
  }

  .mobile-today-brand {
    display: flex;
    align-items: center;
    margin: 2px 0 18px;
  }

  .mobile-today-brand > img {
    display: block;
    width: 164px;
    height: auto;
  }

  .dashboard-command {
    padding: 18px 0 12px;
    text-align: left;
    justify-items: stretch;
  }

  .dashboard-command-copy {
    justify-items: start;
  }

  .dashboard-command h1 {
    font-size: 38px;
  }

  .dashboard-command-box {
    padding: 18px;
    border-radius: 26px;
  }

  .dashboard-command-input {
    min-height: 88px;
    font-size: 24px;
  }

  .get-started-card {
    border-radius: 22px;
  }

  .get-started-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    min-height: 54px;
    border-radius: 16px;
  }

  .get-started-icon {
    width: 34px;
    height: 34px;
  }

  .get-started-row button {
    min-height: 34px;
    padding-inline: 12px;
  }

  .card-grid,
  .matrix,
  .today-layout,
  .notes-app,
  .review-header,
  .people-create-form,
  .people-toolbar,
  .person-profile-top,
  .person-detail-grid,
  .form-row.two {
    grid-template-columns: 1fr;
  }

  .notes-type-panel,
  .notes-space-panel {
    display: none;
  }

  .notes-main-panel > .note-group-filter-strip,
  .notes-mobile-type-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }

  .notes-main-panel > .note-group-filter-strip::-webkit-scrollbar,
  .notes-mobile-type-strip::-webkit-scrollbar {
    display: none;
  }

  .notes-main-panel > .note-group-filter-strip {
    display: none;
  }

  .notes-mobile-type-strip .shop-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .notes-mobile-type-strip .shop-filter-pill small {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 10px;
  }

  .notes-mobile-space-select {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 6px 0 12px;
    padding: 5px 7px 5px 14px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: var(--shadow-hairline);
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
  }

  .notes-mobile-space-select select {
    min-height: 34px;
    padding: 0 36px 0 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    color: var(--ink);
    font-size: 16px;
    font-weight: 820;
  }

  .notes-search-panel {
    margin-bottom: 16px;
  }

  .tasks-header,
  .lists-header,
  .notes-header {
    gap: 10px;
    margin-bottom: 16px;
  }

  .notes-search-form {
    min-height: 50px;
    padding: 0 15px;
  }

  .notes-search-form input {
    font-size: 16px;
  }

  .notes-section-heading {
    margin-bottom: 8px;
  }

  .notes-section-heading span {
    display: none;
  }

  .recipe-note-strip {
    grid-auto-columns: minmax(102px, 124px);
    gap: 8px;
    padding-bottom: 2px;
  }

  .recipe-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recipe-note-strip {
    grid-template-columns: none;
  }

  .recipe-note-card {
    min-height: 138px;
    padding: 8px;
    border-radius: 18px;
  }

  .recipe-note-thumb {
    min-height: 62px;
    border-radius: 13px;
  }

  .recipe-note-card h3 {
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .reading-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .reading-item-card {
    min-height: 260px;
    padding: 8px;
    border-radius: 18px;
  }

  .reading-item-thumb {
    min-height: 170px;
    border-radius: 13px;
  }

  .reading-item-title {
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .reading-item-body p {
    font-size: 11px;
  }

  .notes-card-list {
    gap: 10px;
    overflow: hidden;
  }

  .note-library-card {
    width: 100%;
    max-width: 100%;
    min-height: 118px;
    padding: 12px;
  }

  .note-library-card .note-box-body h3 {
    font-size: 17px;
    line-height: 1.18;
  }

  .note-library-card .note-box-body p {
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .note-library-meta {
    display: none;
  }

  .note-library-card .note-box-actions {
    gap: 6px;
  }

  .note-library-card .note-box-actions button {
    min-height: 28px;
    padding: 4px 9px;
    font-size: 11px;
  }

  .person-card {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .person-card-meta:last-child {
    display: none;
  }

  .person-profile-top .item-actions {
    justify-content: start;
  }

  .today-side {
    position: static;
  }

  .today-water-card {
    margin-bottom: 12px;
  }

  .today-water-copy small {
    white-space: normal;
  }

  .today-water-actions {
    gap: 6px;
  }

  .today-water-tap {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
  }

  .desktop-weather-card {
    display: none;
  }

  .review-capture-form {
    grid-template-columns: 1fr;
  }

  .lists-header {
    gap: 10px;
  }

  .overview-create-section {
    margin-bottom: 16px;
  }

  .overview-create-main {
    min-height: 58px;
    padding: 6px 6px 6px 15px;
  }

  .overview-create-main input {
    font-size: 16px;
  }

  .overview-create-main button {
    min-width: 86px;
    min-height: 46px;
    padding-inline: 16px;
  }

  .overview-option-toggle,
  .archive-toggle-button {
    font-size: 12px;
  }

  .list-overview {
    gap: 9px;
  }

  .list-overview-row {
    min-height: 74px;
    padding: 13px 12px 13px 17px;
  }

  .list-detail-top h1 {
    font-size: 26px;
  }

  .list-add-form {
    position: sticky;
    top: 14px;
    z-index: 5;
    isolation: isolate;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 7px 7px 7px 16px;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: background-color 160ms ease, backdrop-filter 160ms ease, -webkit-backdrop-filter 160ms ease;
  }

  .list-add-form.grocery-list-add-form {
    grid-template-columns: auto auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "input input input input input"
      "scan photo bulk spacer add";
    min-height: 126px;
    gap: 9px;
    padding: 12px;
    padding-left: 16px;
    border-radius: 32px;
  }

  .list-add-form.reading-list-add-form {
    grid-template-columns: auto auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "input input input input input"
      "scan photo bulk spacer add";
    min-height: 126px;
    gap: 9px;
    padding: 12px;
    padding-left: 16px;
    border-radius: 32px;
  }

  .list-add-form.reading-list-add-form > input[name="text"] {
    grid-area: input;
  }

  .list-add-form.reading-list-add-form .scan-barcode-button {
    grid-area: scan;
  }

  .list-add-form.reading-list-add-form .product-photo-button {
    grid-area: photo;
  }

  .list-add-form.reading-list-add-form .bulk-add-inline-button {
    grid-area: bulk;
  }

  .list-add-form.reading-list-add-form .primary {
    grid-area: add;
  }

  .prepper-create-options {
    grid-template-columns: 1fr;
  }

  .list-add-form.prepper-list-add-form {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .prepper-summary-card {
    min-height: 92px;
    padding: 15px 15px 15px 18px;
    border-radius: 22px;
  }

  .prepper-summary-icon {
    width: 40px;
    height: 40px;
  }

  .prepper-summary-icon svg {
    width: 20px;
    height: 20px;
  }

  .prepper-summary-card h2 {
    font-size: 20px;
  }

  .prepper-summary-card p {
    font-size: 13px;
  }

  .prepper-meta-chip {
    font-size: 11px;
  }

  .list-add-form.is-stuck {
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(25px) saturate(1.08);
    backdrop-filter: blur(25px) saturate(1.08);
  }

  .list-add-form input {
    font-size: 16px;
  }

  .list-add-form button {
    min-width: 68px;
    min-height: 48px;
    padding-inline: 14px;
  }

  .task-add-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .list-add-form .secondary {
    padding-inline: 10px;
    font-size: 12px;
  }

  .scan-barcode-button,
  .product-photo-button {
    min-width: 48px;
    width: 48px;
    padding-inline: 0;
    justify-content: center;
  }

  .scan-barcode-button span,
  .product-photo-button span {
    display: none;
  }

  .barcode-scanner-sheet {
    width: min(860px, calc(100vw - 16px));
  }

  .barcode-camera-frame,
  .barcode-camera-frame video {
    min-height: 230px;
  }

  .recurring-house-add-form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 8px;
    padding-left: 16px;
    border-radius: 30px;
  }

  .recurring-house-add-form input {
    grid-column: 1;
    grid-row: 1;
    min-height: 44px;
  }

  .recurring-house-add-form .secondary {
    display: none;
  }

  .recurring-house-add-form .primary {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-width: 68px;
    min-height: 48px;
    padding-inline: 16px;
  }

  .recurrence-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column: 1 / -1;
    gap: 8px;
    margin-top: 0;
    padding: 10px 0 2px;
  }

  .recurrence-editor select,
  .recurrence-editor input {
    min-height: 36px;
    font-size: 13px;
  }

  .recurring-house-card {
    padding: 15px 16px;
  }

  .recurring-summary-content {
    align-items: flex-start;
  }

  .recurring-summary-pill {
    min-width: 52px;
    min-height: 32px;
    font-size: 12px;
  }

  .people-create-form.list-add-form {
    grid-template-columns: minmax(0, 1fr) minmax(84px, 0.55fr) auto;
  }

  .bulk-overlay {
    padding-inline: 12px;
  }

  .bulk-overlay-panel {
    width: 80vw;
    height: 80vh;
    padding: 18px;
    border-radius: 20px;
  }

  .simple-list-row {
    min-height: 40px;
  }

  .list-item-text-button {
    font-size: 15px;
  }

  .list-item-edit-form input {
    font-size: 16px;
  }

  .list-attachment-panel,
  .list-link-form {
    grid-template-columns: 1fr;
  }

  .list-link-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .list-link-form button[type="submit"] {
    grid-column: 1 / -1;
  }

  .list-attachment-panel {
    padding-left: 38px;
  }

  .list-share-form,
  .list-share-form select {
    flex-basis: 100%;
  }

  .waiting-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .waiting-bulk-bar {
    align-items: stretch;
    flex-direction: column;
    border-radius: 18px;
  }

  .waiting-bulk-bar > div {
    justify-content: space-between;
  }

  .waiting-person-header {
    grid-template-columns: 26px minmax(0, 1fr) auto;
  }

  .waiting-header-due,
  .waiting-header-alert,
  .waiting-header-today {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .waiting-row {
    grid-template-columns: 28px 32px 58px minmax(0, 1fr) 34px;
    gap: 6px;
  }

  .waiting-due {
    padding-inline: 5px;
  }

  .waiting-page-head {
    padding-inline: 4px;
  }

  .waiting-person-header {
    grid-template-columns: 36px minmax(0, 1fr) auto 10px;
  }

  .waiting-row {
    grid-template-columns: 4px minmax(0, 1fr);
    gap: 11px;
    min-height: 0;
    padding: 11px 14px 13px 10px;
  }

  .waiting-row .waiting-select {
    width: 4px;
    min-height: 30px;
  }

  .fab-stack {
    right: 18px;
    bottom: var(--mobile-fab-bottom);
  }

  .mobile-tabs {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: var(--mobile-tabs-bottom);
    z-index: 18;
    display: flex;
    gap: 0;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 40px -14px rgba(20, 40, 70, 0.4);
    backdrop-filter: blur(18px);
  }

  .mobile-tabs::before {
    display: none;
  }

  .mobile-tabs button {
    flex: 1;
    min-height: 0;
    padding: 8px 4px 7px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    justify-content: center;
    text-align: center;
    border-radius: 20px;
    color: #a3adb9;
  }

  .mobile-tabs .nav-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
  }

  .mobile-tabs .nav-label {
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
  }

  .mobile-tabs button.active {
    background: var(--md-grad);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(74, 124, 255, 0.55);
  }

  .mobile-tabs .nav-badge {
    top: -5px;
    right: -7px;
    width: 15px;
    min-width: 15px;
    height: 15px;
    padding: 0;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: var(--md-rose);
    font-size: 9px;
    font-weight: 800;
  }

  .bottom-sheet {
    width: 100vw;
    border-radius: 28px 28px 0 0;
  }

  .mobile-menu-sheet {
    display: flex;
    flex-direction: column;
    height: 88dvh;
    max-height: 88dvh;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 32px 32px 0 0;
    background: #fff;
    box-shadow: 0 -20px 50px rgba(10, 20, 40, 0.25);
    backdrop-filter: none;
    font-family: Inter, sans-serif;
  }

  .mobile-menu-grabber {
    width: 38px;
    height: 4px;
    margin: 10px auto 4px;
    border-radius: 3px;
    background: #dbe1e9;
  }

  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 22px 16px;
  }

  .mobile-menu-head h2 {
    margin: 0;
    color: var(--md-ink);
    font-family: Manrope, sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  .mobile-menu-close {
    display: grid;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    place-items: center;
    border-radius: 50%;
    background: #f1f3f6;
    color: var(--md-ink-soft);
    font-size: 15px;
    font-weight: 700;
  }

  .mobile-menu-profile {
    display: flex;
    align-items: center;
    width: calc(100% - 36px);
    min-height: 72px;
    margin: 0 18px 18px;
    padding: 14px 16px;
    gap: 12px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--md-grad);
    color: #fff;
    text-align: left;
    box-shadow: none;
  }

  .mobile-menu-profile::after {
    position: absolute;
    top: -40px;
    right: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    content: "";
  }

  .mobile-menu-avatar {
    z-index: 1;
    display: grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-family: Manrope, sans-serif;
    font-size: 18px;
    font-weight: 800;
  }

  .mobile-menu-profile-copy {
    z-index: 1;
    display: grid;
    min-width: 0;
    gap: 1px;
  }

  .mobile-menu-profile-copy strong {
    overflow: hidden;
    color: #fff;
    font-family: Manrope, sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu-profile-copy small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu-chevron {
    z-index: 1;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
  }

  .mobile-menu-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 18px 14px;
    scrollbar-width: none;
  }

  .mobile-menu-scroll::-webkit-scrollbar {
    display: none;
  }

  .mobile-menu-group-section h3 {
    margin: 18px 8px 8px;
    color: var(--md-ink-faint);
    font-family: Manrope, sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mobile-menu-group-section:first-child h3 {
    margin-top: 4px;
  }

  .mobile-menu-group {
    overflow: hidden;
    border: 1px solid var(--md-card-line);
    border-radius: 18px;
    background: #fbfcfd;
  }

  .mobile-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 12px;
    gap: 12px;
    border-radius: 0;
    background: transparent;
    color: var(--md-ink);
    text-align: left;
  }

  .mobile-menu-item + .mobile-menu-item {
    border-top: 1px solid var(--md-card-line);
  }

  .mobile-menu-item-label {
    flex: 1;
    font-size: 14.5px;
    font-weight: 600;
  }

  .mobile-menu-item-chevron {
    color: #c4cbd4;
    font-size: 14px;
  }

  .mobile-menu-scroll .menu-install-button {
    width: 100%;
    min-height: 46px;
    margin-top: 14px;
    border-radius: 16px;
  }

  .mobile-menu-footer {
    padding: 12px 18px max(22px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--md-card-line);
    background: #fff;
  }

  .mobile-menu-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    gap: 8px;
    border-radius: 16px;
    background: #fdeceb;
    color: #e5484d;
    font-size: 14.5px;
    font-weight: 700;
  }

  .mobile-menu-logout svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .mobile-menu-footer small {
    display: block;
    margin-top: 10px;
    color: var(--md-ink-faint);
    font-size: 11px;
    font-weight: 500;
    text-align: center;
  }

  .bottom-sheet.support-chat-sheet.support-panel {
    width: 100vw;
    padding: 0;
    border: 0;
    border-radius: 26px 26px 0 0;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
  }

  .capture-sheet {
    padding-inline: 18px;
  }

  .sheet-form textarea {
    min-height: 180px;
  }

  .sheet-form .ultralight-textarea {
    min-height: 112px;
  }

  .message-sheet .ultralight-textarea[name="instruction"] {
    min-height: 108px;
  }

  .sheet-actions {
    gap: 10px;
  }

  .capture-tool-button {
    min-width: 68px;
    min-height: 68px;
  }

  .known-term-form.inline-card {
    grid-template-columns: 1fr;
  }

  .group-color-editor {
    grid-template-columns: 1fr;
  }

  .meeting-dashboard-header,
  .meeting-room-header {
    grid-template-columns: 1fr;
  }

  .meeting-rebuild {
    grid-template-columns: 1fr;
  }

  .meeting-rebuild > .meeting-section-label,
  .meeting-rebuild > .meeting-week-card,
  .meeting-rebuild > .meeting-room-stream {
    grid-column: 1;
  }

  .meeting-space-panel {
    display: none;
  }

  .meeting-rebuild-head,
  .meeting-process-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .meeting-section-label {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .meeting-section-label > span {
    width: auto;
    align-self: center;
  }

  .meeting-rebuild-head {
    padding: 18px;
    border-radius: 24px;
  }

  .meeting-rebuild-head h1 {
    font-size: 30px;
  }

  .meeting-section-label p,
  .meeting-room-search {
    flex: 1 0 100%;
    width: 100%;
    margin-left: 0;
  }

  .meeting-room-search input {
    width: 100%;
  }

  .meeting-calendar-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 13px;
  }

  .meeting-calendar-date {
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 8px;
  }

  .meeting-calendar-row button {
    justify-self: start;
  }

  .meeting-header-actions {
    justify-content: flex-start;
  }

  .meeting-room-actions {
    justify-content: flex-start;
  }

  .meeting-need-row,
  .meeting-dashboard-row,
  .meeting-series-manage-row,
  .meeting-outcome-row {
    grid-template-columns: 4px minmax(0, 1fr);
    padding: 12px;
  }

  .meeting-dashboard-row {
    grid-template-columns: 5px 72px minmax(0, 1fr);
    align-items: start;
    min-height: 112px;
    padding: 0;
    gap: 0;
  }

  .meeting-need-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .meeting-need-row button,
  .meeting-dashboard-row .icon-button,
  .meeting-dashboard-row .meeting-status-pill,
  .meeting-row-actions,
  .meeting-date-block,
  .meeting-series-manage-row > .icon-button,
  .meeting-outcome-actions {
    grid-column: 2;
    justify-self: start;
  }

  .meeting-row-actions {
    justify-content: flex-end;
  }

  .meeting-dashboard-row .meeting-date-block {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    min-height: 0;
    padding: 20px 8px 0 17px;
    font-size: 13px;
  }

  .meeting-dashboard-row .meeting-date-block small {
    margin-top: 4px;
    font-size: 13px;
  }

  .meeting-dashboard-row > div:not(.meeting-row-actions) {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
  }

  .meeting-dashboard-row .meeting-row-main {
    grid-column: 3;
    grid-row: 1;
    min-height: 112px;
    padding: 19px 18px 17px 0;
  }

  .meeting-dashboard-row .meeting-row-titlebar {
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 8px;
  }

  .meeting-dashboard-row .meeting-row-titlebar .meeting-room-delete-button {
    grid-column: 2;
    justify-self: end;
  }

  .meeting-dashboard-row .meeting-row-footer {
    justify-content: space-between;
    gap: 7px;
  }

  .meeting-dashboard-row .tag,
  .meeting-dashboard-row .meeting-status-pill {
    min-height: 28px;
    padding: 0 12px;
    font-size: 12px;
  }

  .meeting-dashboard-header,
  .meeting-room-header {
    padding: 16px;
    border-radius: 24px;
  }

  .meeting-dashboard {
    gap: 12px;
    overflow: hidden;
  }

  .meeting-dashboard .app-tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
    border-radius: 18px;
    margin-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .meeting-dashboard .app-tabs button {
    flex: 0 0 auto;
    min-height: 34px;
    padding-inline: 11px;
    font-size: 13px;
  }

  .meeting-dashboard-header h1 {
    font-size: 26px;
  }

  .meeting-dashboard-subtitle {
    max-width: 100%;
    font-size: 13px;
  }

  .meeting-header-actions {
    width: 100%;
    gap: 8px;
  }

  .meeting-header-actions button {
    flex: 1 1 138px;
    min-width: 0;
  }

  .meeting-flat-list,
  .meeting-row-list,
  .meeting-series-management {
    min-width: 0;
  }

  .meeting-dashboard-row,
  .meeting-series-manage-row {
    width: 100%;
    min-width: 0;
    gap: 8px;
    border-radius: 16px;
  }

  .meeting-dashboard-row h3,
  .meeting-series-manage-row h3,
  .meeting-dashboard-row p,
  .meeting-series-manage-row p,
  .meeting-series-manage-row small {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .meeting-dashboard-row h3,
  .meeting-series-manage-row h3 {
    font-size: 16px;
  }

  .meeting-date-block {
    min-height: 34px;
    padding: 6px 9px;
    border-radius: 12px;
    font-size: 12px;
  }

  .meeting-row-actions {
    display: flex;
    width: auto;
    flex-wrap: wrap;
    gap: 6px;
    justify-self: end;
  }

  .meeting-row-actions .icon-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .meeting-status-pill {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
    white-space: normal;
  }

  .meeting-rail {
    grid-row: 1 / span 4;
  }

  .meeting-loop-grid {
    grid-template-columns: 1fr;
  }

  .meeting-room-header-compact {
    grid-template-columns: 1fr;
  }

  .meeting-phase {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .meeting-brief-block,
  .meeting-capture-card,
  .meeting-process-bar {
    padding: 16px;
  }

  .meeting-person-row {
    grid-template-columns: 36px minmax(0, 1fr) 30px;
  }

  .meeting-process-actions {
    justify-content: flex-start;
  }

  .meeting-inline-minutes,
  .meeting-route-match {
    align-items: flex-start;
    flex-direction: column;
  }

  .meeting-proposal-row {
    grid-template-columns: 1fr;
  }

  .proposal-wide {
    grid-column: auto;
  }

  .capture-sheet {
    padding-inline: 20px;
  }

  .sheet-actions {
    gap: 10px;
  }

  .capture-tools {
    gap: 10px;
  }

  .capture-tool-button {
    min-width: 64px;
    min-height: 64px;
  }

  .sheet-actions .primary {
    min-height: 46px;
    padding-inline: 22px;
  }

  .miniapp-hero {
    padding: 18px;
    border-radius: 24px;
  }

  .miniapp-hero h1 {
    font-size: 32px;
  }

  .miniapp-hero-icon {
    width: 56px;
    height: 56px;
  }

  .agenda-connect-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .agenda-connect-card button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .agenda-connect-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .tell-friend-input-row,
  .tell-friend-details-row,
  .tell-friend-row,
  .tell-friend-link-card {
    grid-template-columns: 1fr;
  }

  .tell-friend-link-card {
    align-items: stretch;
  }

  .tell-friend-actions,
  .tell-friend-row-actions {
    justify-content: flex-start;
  }

  .tell-friend-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tell-friend-stat {
    padding: 12px;
  }

  .tell-friend-stat strong {
    font-size: 22px;
  }

  .meeting-room-head {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 12px 12px 14px 16px;
  }

  .meeting-room-head .dh-rail {
    top: 14px;
    bottom: 14px;
  }

  .dh-top {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
  }

  .dh-top-right {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .meeting-status-pill {
    max-width: 150px;
    min-height: 27px;
    padding: 0 9px;
    font-size: 11px;
  }

  .dh-title,
  .dh-title-input {
    max-width: 100%;
    font-size: clamp(20px, 6.1vw, 24px);
    line-height: 1.08;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .dh-focus,
  .dh-focus-input {
    width: 100%;
    padding: 4px 6px;
    font-size: 16px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .dh-focus-row {
    gap: 6px;
    margin-top: 5px;
  }

  .dh-facets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }

  .facet,
  .series-nav {
    flex: 1 1 calc(50% - 6px);
    justify-content: flex-start;
    width: auto;
    min-width: 0;
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .meeting-pop,
  .meeting-pop-time,
  .meeting-pop-group {
    left: 0;
    width: 100%;
  }
}

@media (max-width: 900px) and (display-mode: standalone) {
  :root {
    --mobile-tabs-bottom: calc(31px + env(safe-area-inset-bottom));
    --mobile-fab-bottom: calc(var(--mobile-tabs-bottom) + 81px);
    --mobile-content-bottom: calc(var(--mobile-tabs-bottom) + 121px);
  }
}

#view,
.main,
.meeting-room,
.meeting-room .card,
.meeting-room-card,
.meeting-needs-card,
.meeting-room-head,
.brief,
.brief-block,
.loops,
.loop-col,
.loop,
.loop-main,
.meeting-agenda-attachments,
.meeting-agenda-chip-row {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.meeting-room {
  justify-self: stretch;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}

.meeting-room-head {
  overflow-x: hidden;
}

.dh-id {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.dh-title,
.dh-title-input,
.dh-focus,
.dh-focus-input,
.person-ctx,
.loop-txt,
.loop-note textarea,
.meeting-agenda-chip > a,
.meeting-agenda-chip > span {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dh-title {
  font-size: clamp(20px, 2.7vw, 28px);
  white-space: normal;
}

.dh-facets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(168px, 100%), 1fr));
  align-items: stretch;
  gap: 8px;
}

.facet,
.meeting-language-toggle,
.series-nav {
  width: 100%;
  min-width: 0;
}

.facet b,
.facet .rel,
.series-nav > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.series-nav {
  justify-content: space-between;
}

.meeting-agenda-stock-row {
  width: 100%;
  grid-template-columns: 30px 24px minmax(0, 1fr) auto;
}

.meeting-agenda-stock-row .loop-main,
.meeting-agenda-stock-row .loop-note,
.meeting-agenda-stock-row .meeting-agenda-attachments {
  min-width: 0;
  max-width: 100%;
}

.meeting-agenda-stock-row .loop-txt {
  width: 100%;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .dh-id {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .meeting-series-chip {
    grid-column: 2;
    justify-self: start;
  }

  .dh-title,
  .dh-title-input {
    font-size: clamp(20px, 5.7vw, 23px);
  }

  .dh-facets {
    grid-template-columns: minmax(0, 1fr);
  }

  .meeting-agenda-stock-row {
    grid-template-columns: 28px 22px minmax(0, 1fr);
  }

  .meeting-agenda-stock-row .loop-tools {
    grid-column: 1 / -1;
    padding-left: 56px;
  }

  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Final meeting-room header layout. Keep this at the end so it wins the cascade. */
.meeting-room-head {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 18px 18px 18px 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(29, 44, 77, 0.11), var(--shadow-hairline);
}

.meeting-room-head .dh-rail {
  top: 18px;
  bottom: 18px;
  width: 4px;
}

.meeting-room-head .dh-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.meeting-room-head .dh-top .back {
  grid-column: 1;
  min-height: 34px;
  padding: 0 13px;
  font-size: 13px;
}

.meeting-room-head .dh-top-right {
  grid-column: 3;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.meeting-room-head .meeting-status-pill {
  min-height: 32px;
  max-width: 100%;
  padding: 0 12px;
  font-size: 12px;
}

.meeting-room-head .dh-id {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.meeting-room-head .dh-groupdot {
  width: 11px;
  height: 11px;
  flex-basis: 11px;
}

.meeting-room-head .dh-title,
.meeting-room-head .dh-title-input {
  grid-column: 2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: clamp(22px, 2.25vw, 32px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: normal;
}

.meeting-room-head .meeting-series-chip-top {
  flex: 0 0 auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.meeting-room-head .dh-focus-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: -2px;
  padding-left: 22px;
}

.meeting-room-head .dh-focus,
.meeting-room-head .dh-focus-input {
  width: 100%;
  max-width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 15px;
  line-height: 1.25;
}

.meeting-room-head .focus-suggest {
  min-height: 34px;
  padding: 0 13px;
}

.meeting-room-head .dh-facets {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  margin-top: 2px;
  padding-left: 22px;
}

.meeting-room-head .facet,
.meeting-room-head .meeting-language-toggle {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border-radius: 13px;
}

.meeting-room-head .facet {
  justify-content: flex-start;
  padding: 0 11px;
}

.meeting-room-head .facet b,
.meeting-room-head .facet .rel {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-room-head .meeting-language-toggle-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  background: #f4f4f9;
}

.meeting-room-head .meeting-language-toggle-header button {
  min-width: 0;
  min-height: 32px;
  padding: 0 8px;
  font-size: 12.5px;
}

.meeting-room-head .dh-series-row {
  display: flex;
  min-width: 0;
  padding-left: 22px;
}

.meeting-room-head .dh-series-row .series-nav {
  width: auto;
  max-width: 100%;
}

.meeting-room-head .dh-series-row .series-nav > span {
  max-width: min(360px, 55vw);
}

@media (max-width: 1180px) {
  .meeting-room-head .dh-facets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .meeting-room-head {
    gap: 10px;
    padding: 13px 12px 14px 17px;
    border-radius: 22px;
  }

  .meeting-room-head .dh-rail {
    top: 14px;
    bottom: 14px;
    width: 4px;
  }

  .meeting-room-head .dh-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .meeting-room-head .dh-top-right {
    grid-column: 2;
    gap: 6px;
  }

  .meeting-room-head .meeting-status-pill {
    max-width: 138px;
    min-height: 30px;
    padding: 0 9px;
    font-size: 11px;
  }

  .meeting-room-head .meeting-series-chip-top {
    max-width: 112px;
    min-height: 30px;
    overflow: hidden;
    padding: 3px 9px;
    font-size: 11px;
    text-overflow: ellipsis;
  }

  .meeting-room-head .dh-kebab {
    width: 31px;
    height: 31px;
    min-height: 31px;
  }

  .meeting-room-head .dh-id {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
  }

  .meeting-room-head .dh-title,
  .meeting-room-head .dh-title-input {
    grid-column: 2;
    font-size: clamp(22px, 7vw, 27px);
    line-height: 1.08;
  }

  .meeting-room-head .dh-focus-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    padding-left: 20px;
  }

  .meeting-room-head .dh-focus,
  .meeting-room-head .dh-focus-input {
    min-height: 32px;
    padding: 4px 6px;
    font-size: 16px;
  }

  .meeting-room-head .focus-suggest {
    min-width: 38px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 0;
  }

  .meeting-room-head .focus-suggest svg {
    width: 16px;
    height: 16px;
  }

  .meeting-room-head .dh-facets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding-left: 20px;
  }

  .meeting-room-head .facet,
  .meeting-room-head .meeting-language-toggle {
    min-height: 34px;
    border-radius: 12px;
  }

  .meeting-room-head .facet {
    gap: 6px;
    padding: 0 9px;
    font-size: 12px;
  }

  .meeting-room-head .facet svg {
    width: 15px;
    height: 15px;
  }

  .meeting-room-head .facet-join {
    grid-column: 1 / -1;
  }

  .meeting-room-head .dh-series-row {
    padding-left: 20px;
  }

  .meeting-room-head .dh-series-row .series-nav {
    width: 100%;
  }

  .meeting-room-head .dh-series-row .series-nav > span {
    max-width: none;
  }
}

@media (max-width: 390px) {
  .meeting-room-head .dh-facets {
    grid-template-columns: minmax(0, 1fr);
  }

  .meeting-room-head .meeting-status-pill {
    display: none;
  }

  .meeting-room-head .dh-focus-row,
  .meeting-room-head .dh-facets,
  .meeting-room-head .dh-series-row {
    padding-left: 18px;
  }
}

.meeting-room,
.meeting-room .card.meeting-room-head,
.meeting-room-head {
  overflow: visible !important;
}

.meeting-room-head {
  position: relative;
  z-index: 30;
}

.meeting-room-head .dh-facets,
.meeting-room-head .dh-top-right {
  position: relative;
  z-index: 31;
}

.meeting-room-head .dh-menu,
.meeting-room-head .meeting-pop {
  z-index: 999;
}

/* Final meeting overview row layout. Keep after prior meeting rules so it wins the cascade. */
.meeting-dashboard-row {
  position: relative;
  display: block;
  min-height: 0;
  margin-bottom: 14px;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 23, 40, 0.04), 0 10px 26px rgba(20, 23, 40, 0.07);
}

.meeting-dashboard-row .meeting-rail {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  min-height: 0;
  border-radius: 5px 0 0 5px;
  background: var(--group-color, #c7ccdb);
  box-shadow: none;
}

.meeting-dashboard-row .meeting-room-delete-button {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c4c8d4;
  box-shadow: none;
}

.meeting-dashboard-row .meeting-room-delete-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meeting-dashboard-row .meeting-row-main {
  display: block;
  min-height: 0;
  padding: 16px 16px 14px 20px;
}

.meeting-dashboard-row .meeting-row-top {
  display: flex;
  gap: 14px;
  min-width: 0;
}

.meeting-dashboard-row .meeting-date-block {
  display: block;
  flex: 0 0 52px;
  width: 52px;
  min-height: 0;
  padding: 1px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #3b404c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
}

.meeting-dashboard-row .meeting-date-block.is-relative {
  color: #9a9fb0;
}

.meeting-dashboard-row .meeting-date-block small {
  display: block;
  margin-top: 2px;
  color: #6b7180;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
}

.meeting-dashboard-row .meeting-row-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.meeting-dashboard-row h3 {
  display: -webkit-box;
  margin: 0;
  padding-right: 28px;
  overflow: hidden;
  color: #171a22;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  overflow-wrap: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meeting-dashboard-row p {
  margin: 4px 0 0;
  overflow: hidden;
  color: #9a9fb0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-dashboard-row .meeting-row-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  margin-top: 12px;
  flex-wrap: nowrap;
}

.meeting-dashboard-row .meeting-row-spacer {
  flex: 1 1 auto;
  min-width: 8px;
}

.meeting-dashboard-row .tag {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  justify-content: center;
  max-width: 46%;
  min-height: 0;
  padding: 5px 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(120, 130, 160, 0.12);
  color: #6b7285;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-dashboard-row .meeting-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 0;
  box-shadow: none;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.meeting-dashboard-row .meeting-status-pill.is-action,
.meeting-dashboard-row .meeting-status-pill.is-action.accent,
.meeting-dashboard-row .meeting-status-pill.is-action.warning,
.meeting-dashboard-row .meeting-status-pill.is-action.danger,
.meeting-dashboard-row .meeting-status-pill.is-action.muted {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 10px;
  width: 150px;
  justify-content: initial;
  padding: 7px 14px 7px 22px;
  border: 1px solid rgba(70, 110, 242, 0.14);
  background: #eef2fe;
  color: #466ef2;
  font-weight: 600;
}

.meeting-dashboard-row .meeting-status-pill.is-action:active {
  background: #e3eafe;
}

.meeting-dashboard-row .meeting-action-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #466ef2;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.meeting-dashboard-row .meeting-status-pill.is-action::before,
.meeting-dashboard-row .meeting-status-pill.is-action.accent::before,
.meeting-dashboard-row .meeting-status-pill.is-action.warning::before,
.meeting-dashboard-row .meeting-status-pill.is-action.danger::before,
.meeting-dashboard-row .meeting-status-pill.is-action.muted::before {
  content: none;
  display: none;
}

.meeting-dashboard-row .meeting-action-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-dashboard-row .meeting-status-pill.is-add-minutes {
  padding: 7px 14px 2px 22px;
}

.meeting-dashboard-row .meeting-status-pill.is-status,
.meeting-dashboard-row .meeting-status-pill.is-status.accent {
  background: #e6ecff;
  color: #3557e0;
  font-weight: 700;
}

.meeting-dashboard-row .meeting-status-pill.is-status:active {
  background: #dce5ff;
}

.meeting-dashboard-row .meeting-status-pill.is-progress,
.meeting-dashboard-row .meeting-status-pill.is-progress.accent,
.meeting-dashboard-row .meeting-status-pill.is-progress.warning,
.meeting-dashboard-row .meeting-status-pill.is-progress.danger,
.meeting-dashboard-row .meeting-status-pill.is-progress.muted {
  pointer-events: none;
  background: rgba(120, 130, 160, 0.1);
  color: #8a90a0;
  cursor: default;
  font-weight: 600;
}

@media (max-width: 360px) {
  .meeting-dashboard-row .meeting-row-main {
    padding-right: 14px;
  }

  .meeting-dashboard-row .meeting-row-top {
    gap: 12px;
  }

  .meeting-dashboard-row .meeting-date-block {
    flex-basis: 52px;
    width: 52px;
  }

  .meeting-dashboard-row .tag {
    max-width: 38%;
  }

  .meeting-dashboard-row .meeting-status-pill {
    padding-inline: 12px;
  }

  .meeting-dashboard-row .meeting-status-pill.is-action {
    width: 150px;
    padding: 7px 14px 7px 22px;
  }

  .meeting-dashboard-row .meeting-status-pill.is-add-minutes {
    padding: 7px 14px 2px 22px;
  }
}

/* === user detail (admin) === */
.uda-root {
  --uda-canvas-a: #f3f0ff;
  --uda-canvas-b: #fdf1f6;
  --uda-card: #ffffff;
  --uda-ink: #1d2030;
  --uda-muted: #6b7180;
  --uda-faint: #9aa0b2;
  --uda-line: #ecebf3;
  --uda-blue: #466EF2;
  --uda-blue-soft: #eef2fe;
  --uda-blue-ink: #2a4ad8;
  --uda-green: #1fb473;
  --uda-green-soft: #e7f8f0;
  --uda-amber: #e8930c;
  --uda-amber-soft: #fdf3e0;
  --uda-rose: #f2607e;
  --uda-rose-soft: #fdeef2;
  --uda-purple: #8b6df0;
  --uda-shadow: 0 1px 2px rgba(30, 33, 60, 0.05), 0 8px 24px -12px rgba(30, 33, 60, 0.14);
  --uda-radius: 18px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 80px;
  color: var(--uda-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(158deg, var(--uda-canvas-a), var(--uda-canvas-b));
  border-radius: 28px;
}

.uda-root * {
  box-sizing: border-box;
}

.uda-card {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  background: var(--uda-card);
  border-radius: var(--uda-radius);
  box-shadow: var(--uda-shadow);
}

.uda-grid {
  display: grid;
  gap: 16px;
}

.uda-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 5px 0 0 5px;
}

.uda-rail-gradient {
  background: linear-gradient(#8b6df0, #466EF2);
}

.uda-rail.blue { background: var(--uda-blue); }
.uda-rail.green { background: var(--uda-green); }
.uda-rail.rose { background: var(--uda-rose); }
.uda-rail.purple { background: var(--uda-purple); }

.uda-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uda-icon.sm {
  width: 15px;
  height: 15px;
}

.uda-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px 18px;
  color: var(--uda-muted);
  font-size: 14px;
  font-weight: 600;
}

.uda-crumb button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--uda-muted);
  font: inherit;
}

.uda-crumb .cur {
  color: var(--uda-ink);
}

.uda-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
}

.uda-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(140deg, #8b6df0, #466EF2);
  box-shadow: 0 6px 16px -6px rgba(70, 110, 242, 0.6);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}

.uda-who {
  flex: 1;
  min-width: 220px;
}

.uda-who h1 {
  margin: 0;
  color: var(--uda-ink);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0;
}

.uda-email {
  margin-top: 2px;
  color: var(--uda-muted);
  font-size: 14px;
}

.uda-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.uda-faint {
  align-self: center;
  color: var(--uda-faint);
  font-size: 12.5px;
}

.uda-flags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.uda-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

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

.uda-pill.green {
  background: var(--uda-green-soft);
  color: #0e7a4c;
}

.uda-pill.amber {
  background: var(--uda-amber-soft);
  color: #a8650a;
}

.uda-pill.rose {
  background: var(--uda-rose-soft);
  color: #c23a58;
}

.uda-pill.ghost {
  background: #f4f4f8;
  color: var(--uda-muted);
}

.uda-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--uda-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--uda-ink);
  font-size: 12.5px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.uda-soft {
  color: var(--uda-muted);
  font-weight: 500;
}

.uda-dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.uda-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.uda-kpi {
  padding: 16px 18px;
  background: var(--uda-card);
  border-radius: 16px;
  box-shadow: var(--uda-shadow);
}

.uda-kpi .lbl,
.uda-kpi .sub {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--uda-muted);
  font-size: 12px;
  font-weight: 600;
}

.uda-kpi .val {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 8px;
  color: var(--uda-ink);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
}

.uda-kpi .val small {
  color: var(--uda-faint);
  font-size: 13px;
  font-weight: 600;
}

.uda-kpi .sub {
  margin-top: 4px;
}

.uda-kpi .trend-up { color: var(--uda-amber); }
.uda-kpi .trend-down { color: var(--uda-green); }

.uda-cts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  background: linear-gradient(100deg, #fffaf0, #fdf3e0);
  border: 1px solid #f6e1bd;
}

.uda-cts .ct-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--uda-shadow);
  color: var(--uda-amber);
}

.uda-cts .ct-body {
  flex: 1;
  min-width: 240px;
}

.uda-cts h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.uda-cts p {
  margin: 3px 0 0;
  color: #8a6a25;
  font-size: 13px;
}

.uda-cts .ct-bar {
  max-width: 260px;
  height: 9px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 6px;
  background: #f2e6cd;
}

.uda-cts .ct-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f0b64e, #e8930c);
}

.uda-cts .ct-budget {
  text-align: right;
}

.uda-cts .ct-budget div {
  font-size: 22px;
  font-weight: 700;
}

.uda-cts .ct-budget span {
  color: var(--uda-faint);
  font-size: 12px;
}

.uda-cols {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  gap: 16px;
  margin-top: 16px;
}

.uda-cols.uda-rev {
  grid-template-columns: 0.85fr 1.15fr;
}

.uda-block {
  margin: 0 0 2px;
  color: var(--uda-ink);
  font-size: 15px;
  font-weight: 700;
}

.uda-block-sub {
  margin-bottom: 16px;
  color: var(--uda-muted);
  font-size: 12.5px;
}

.uda-tl {
  position: relative;
  padding-left: 8px;
}

.uda-tl .line {
  position: absolute;
  left: 14px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--uda-blue), #e4e2ef);
}

.uda-tl .tl-item {
  position: relative;
  padding: 0 0 18px 40px;
}

.uda-tl .tl-item:last-child {
  padding-bottom: 0;
}

.uda-tl .node {
  position: absolute;
  left: 6px;
  top: 1px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid var(--uda-blue);
  border-radius: 50%;
  background: #fff;
}

.uda-tl .core {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--uda-blue);
}

.uda-tl .aha .node {
  border-color: var(--uda-green);
  box-shadow: 0 0 0 4px var(--uda-green-soft);
}

.uda-tl .aha .core {
  background: var(--uda-green);
}

.uda-tl .t-date {
  color: var(--uda-faint);
  font-size: 12px;
  font-weight: 600;
}

.uda-tl .t-title {
  margin-top: 1px;
  font-size: 14px;
  font-weight: 600;
}

.uda-tl .t-title .uda-pill {
  margin-left: 6px;
}

.uda-barrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--uda-line);
}

.uda-barrow:last-child {
  border-bottom: 0;
}

.uda-barrow .bl {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  width: 120px;
  font-size: 13px;
  font-weight: 600;
}

.uda-barrow .track {
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 6px;
  background: #f1f0f7;
}

.uda-barrow .track span {
  display: block;
  height: 100%;
  border-radius: 6px;
}

.uda-barrow .amt {
  width: 78px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
}

.uda-barrow .cnt {
  width: 64px;
  color: var(--uda-faint);
  text-align: right;
  font-size: 12px;
}

.uda-ai-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--uda-line);
}

.uda-ai-foot div {
  color: var(--uda-muted);
  font-size: 12px;
}

.uda-ai-foot b {
  display: block;
  color: var(--uda-ink);
  font-size: 17px;
  font-weight: 700;
}

.uda-table-wrap {
  overflow-x: auto;
}

.uda-adoption {
  margin-top: 16px;
}

.uda-adopt {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.uda-adopt th {
  padding: 0 10px 10px;
  color: var(--uda-faint);
  text-align: left;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.uda-adopt th.c,
.uda-adopt td.c {
  text-align: center;
}

.uda-adopt th.r,
.uda-adopt td.r {
  text-align: right;
}

.uda-adopt td {
  padding: 10px;
  border-top: 1px solid var(--uda-line);
  vertical-align: middle;
}

.uda-adopt tr.parent td {
  background: #faf9fe;
}

.uda-adopt .appname {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.uda-adopt .ic {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #fff;
}

.uda-adopt tr.sub .appname {
  padding-left: 22px;
}

.uda-adopt tr.sub .ic {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--uda-green-soft) !important;
  color: #0e9a63;
}

.uda-adopt tr.not-started.sub .ic {
  background: #f4f4f8 !important;
  color: var(--uda-faint);
}

.uda-adopt .items {
  font-weight: 600;
}

.uda-adopt .last {
  color: var(--uda-muted);
  white-space: nowrap;
}

.sdot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.sdot.on {
  background: var(--uda-blue);
}

.sdot.on.g {
  background: var(--uda-green);
}

.sdot.off {
  border: 2px solid #dcdbe6;
  background: transparent;
}

.uda-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--uda-line);
  color: var(--uda-muted);
  font-size: 12px;
}

.uda-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.uda-legend em {
  color: var(--uda-faint);
  font-style: normal;
}

.uda-heat {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  max-width: 280px;
}

.uda-heat i {
  display: block;
  aspect-ratio: 1;
  border-radius: 5px;
}

.uda-heat .h0 { background: #eeecf6; }
.uda-heat .h1 { background: #d7dcfb; }
.uda-heat .h2 { background: #adbcf7; }
.uda-heat .h3 { background: #7f96f2; }
.uda-heat .h4 { background: var(--uda-blue); }

.uda-heat-lbl {
  display: flex;
  justify-content: space-between;
  max-width: 280px;
  margin-top: 6px;
  color: var(--uda-faint);
  font-size: 11px;
}

.uda-stat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--uda-line);
  font-size: 13px;
}

.uda-stat-line:last-child {
  border-bottom: 0;
}

.uda-stat-line .k {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--uda-muted);
}

.uda-stat-line .v {
  font-weight: 600;
  text-align: right;
}

.uda-inv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--uda-line);
  border-radius: 12px;
  background: var(--uda-line);
}

.uda-inv > div {
  padding: 12px 14px;
  background: #fff;
}

.uda-inv .n {
  font-size: 20px;
  font-weight: 700;
}

.uda-inv .k {
  margin-top: 1px;
  color: var(--uda-muted);
  font-size: 12px;
}

.uda-rate {
  margin-top: 14px;
}

.uda-rate .rr {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.uda-rate .rr small {
  color: var(--uda-muted);
  font-weight: 600;
}

.uda-rate .rtrack {
  height: 8px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 6px;
  background: #f1f0f7;
}

.uda-rate .rtrack span {
  display: block;
  height: 100%;
  border-radius: 6px;
}

.uda-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--uda-line);
  font-size: 13.5px;
}

.uda-list-row:last-child {
  border-bottom: 0;
}

.uda-list-row .ic {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--uda-blue-soft);
  color: var(--uda-blue-ink);
}

.uda-list-row .grow {
  flex: 1;
  min-width: 0;
}

.uda-list-row .grow strong,
.uda-list-row .grow small {
  display: block;
}

.uda-list-row .grow small {
  color: var(--uda-muted);
  font-size: 12px;
}

.uda-error-card h2 {
  margin: 0 0 8px;
}

.uda-skeleton-card span,
.uda-skeleton-card b,
.uda-skeleton-card i {
  display: block;
  height: 16px;
  margin: 8px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #efedf6, #fff, #efedf6);
}

.uda-skeleton-card b {
  width: 50%;
  height: 28px;
}

.uda-skeleton-card i {
  width: 70%;
}

.admin-user-row {
  cursor: pointer;
}

.admin-users-page {
  max-width: 980px;
}

.admin-users-page .uda-crumb {
  margin-bottom: 12px;
}

.admin-users-hero .settings-hero-logo {
  color: #8b6df0;
}

.admin-users-list-card {
  display: grid;
  gap: 12px;
}

.admin-users-heading {
  margin-bottom: 0;
}

.admin-users-list {
  display: grid;
  gap: 8px;
}

.admin-users-list .admin-user-row {
  padding: 12px;
}

.admin-user-open {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-align: left;
}

.admin-user-row .admin-user-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.admin-user-row .admin-user-main small {
  color: var(--muted);
}

.admin-user-chevron {
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 860px) {
  .uda-cols,
  .uda-cols.uda-rev {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .uda-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .uda-root {
    padding: 20px 12px 96px;
    border-radius: 0;
  }

  .uda-card {
    padding: 18px 16px;
  }

  .uda-flags {
    align-items: flex-start;
    width: 100%;
  }

  .uda-barrow {
    gap: 8px;
  }

  .uda-barrow .bl {
    width: 96px;
  }

  .uda-barrow .amt {
    width: 56px;
  }

  .uda-barrow .cnt {
    display: none;
  }

  .uda-inv {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .today-water-card {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 22px -16px rgba(20, 40, 70, 0.35);
  }

  .today-water-main {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
  }

  .today-water-ring,
  .today-water-ring span {
    width: 30px;
    height: 30px;
  }

  .today-water-ring {
    background: var(--md-sky-soft);
  }

  .today-water-actions {
    gap: 5px;
  }

  .today-water-tap {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    border: 0;
    border-radius: 10px;
    background: #f5f8fc;
    box-shadow: none;
  }

  .today-water-tap.primary {
    background: var(--md-sky-soft);
    color: var(--md-sky);
  }
}

/* Event capture owns this compact sheet layout, independent of the general capture form. */
.bottom-sheet.event-capture-sheet {
  width: min(420px, calc(100vw - 20px));
  max-width: 420px;
  max-height: calc(100dvh - max(14px, env(safe-area-inset-top)));
  padding: 10px 20px max(26px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.bottom-sheet.event-capture-sheet .sheet-title-row {
  position: static;
  min-height: 0;
  margin: 0 0 4px;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.bottom-sheet.event-capture-sheet .sheet-form {
  display: grid;
  gap: 0;
  padding: 0;
}

.bottom-sheet.event-capture-sheet .sheet-actions {
  display: block;
  margin: 0;
  padding: 0;
}

.bottom-sheet.event-capture-sheet .capture-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 14px 0 18px;
}

.bottom-sheet.event-capture-sheet .capture-tool-button {
  width: auto;
  min-width: 0;
  height: 52px;
  min-height: 52px;
  padding: 7px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--muted);
  font-size: 9.5px;
}

.bottom-sheet.event-capture-sheet .sheet-actions .primary {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b67f5, #6448d8);
  font-size: 15px;
}

@media (max-width: 560px) {
  .bottom-sheet.event-capture-sheet {
    width: 100vw;
    max-width: none;
    padding: 10px 20px max(26px, env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
  }
}

@media (max-width: 900px) {
  .event-capture-fab-wrap {
    right: 84px;
    bottom: var(--mobile-fab-bottom);
    max-width: calc(100vw - 142px);
  }
}

/* Belongings overview */
.belongings-view { max-width:740px;margin:0 auto;padding:8px 4px 110px }.belongings-header{display:flex;align-items:center;gap:12px;margin:2px 0 14px}.belongings-header h1{flex:1;margin:0;font-size:30px;letter-spacing:-.03em}.belongings-add-button{width:42px;height:42px;border:0;border-radius:13px;background:linear-gradient(135deg,#466ef2,#7b5cf2);color:#fff;font-size:28px;line-height:1;box-shadow:0 6px 16px rgba(91,108,240,.25)}.belongings-search{display:flex;align-items:center;gap:8px;height:42px;margin-bottom:12px;padding:0 13px;border-radius:14px;background:rgba(255,255,255,.72);color:#9996a9;font-size:22px}.belongings-search input{width:100%;border:0;outline:0;background:transparent;font:inherit;font-size:15px;color:#1c1b29}.belongings-chips{display:flex;gap:8px;overflow-x:auto;margin:0 -4px 18px;padding:0 4px;scrollbar-width:none}.belongings-chips button{flex:none;height:32px;padding:0 13px;border:1px solid rgba(255,255,255,.85);border-radius:999px;background:rgba(255,255,255,.58);color:#1c1b29;font-size:13px;font-weight:600}.belongings-chips button.active{border-color:#1c1b29;background:#1c1b29;color:#fff}
.belongings-section-title{display:flex;justify-content:space-between;margin:18px 4px 8px;color:#6b6980;font-size:13px;font-weight:700}.belongings-section-title span{color:#a3a1b5;font-weight:500}.belongings-list{display:grid;gap:10px}.belongings-card{--belonging-colour:#8b5cf6;display:flex;width:100%;gap:12px;padding:14px 14px 14px 19px;border:0;border-radius:20px;background:#fff;color:#1c1b29;text-align:left;box-shadow:0 2px 10px rgba(80,60,140,.07);position:relative;overflow:hidden}.belongings-card::before{position:absolute;inset:0 auto 0 0;width:5px;background:var(--belonging-colour);content:""}.belongings-indigo{--belonging-colour:#5b6cf0}.belongings-orange{--belonging-colour:#f28c38}.belongings-green{--belonging-colour:#34b27b}.belongings-teal{--belonging-colour:#14b8a6}.belongings-card-icon{display:grid;width:40px;height:40px;flex:none;place-items:center;border-radius:12px;background:#f2eeff;color:var(--belonging-colour);font-size:20px}.belongings-card-body{min-width:0;flex:1}.belongings-card-body>strong{display:block;overflow:hidden;font-size:15px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.belongings-card-body>small{display:block;margin-top:2px;color:#6b6980;font-size:12.5px}.belongings-warranty{display:flex;align-items:center;gap:8px;margin-top:9px}.belongings-warranty i{height:4px;flex:1;overflow:hidden;border-radius:4px;background:#eceaf4}.belongings-warranty i b{display:block;height:100%;border-radius:inherit;background:#34b27b}.belongings-warranty em{color:#34b27b;font-size:11.5px;font-style:normal;font-weight:700;white-space:nowrap}.belongings-warranty.ending_soon i b{background:#f43f5e}.belongings-warranty.ending_soon em{color:#f43f5e}.belongings-warranty.none em{color:#a3a1b5;font-weight:500}.belongings-docs{display:flex;gap:7px;margin-top:8px;color:#6b6980;font-size:11px}.belongings-expired{display:flex;width:100%;justify-content:space-between;margin-top:12px;padding:13px 16px;border:0;border-radius:16px;background:rgba(255,255,255,.55);color:#6b6980;font-size:14px;font-weight:600}
.belongings-empty{display:grid;gap:6px;padding:28px 22px;border-radius:20px;background:rgba(255,255,255,.7);text-align:center}.belongings-empty strong{font-size:17px}.belongings-empty span{color:#6b6980}.belongings-empty button{justify-self:center;margin-top:8px;padding:10px 14px;border:0;border-radius:12px;background:linear-gradient(135deg,#466ef2,#7b5cf2);color:#fff;font-weight:700}.belongings-add-backdrop{position:fixed;z-index:45;inset:0;background:rgba(28,27,41,.3)}.belongings-add-sheet{position:fixed;z-index:46;right:0;bottom:0;left:0;padding:10px 18px calc(34px + env(safe-area-inset-bottom));border-radius:28px 28px 0 0;background:#fff;box-shadow:0 -10px 30px rgba(28,27,41,.15)}.belongings-add-sheet>i{display:block;width:38px;height:5px;margin:0 auto 14px;border-radius:3px;background:#eceaf4}.belongings-add-sheet h2{margin:0 0 4px;font-size:17px}.belongings-add-sheet>p{margin:0 0 14px;color:#6b6980;font-size:13px}.belongings-add-option{display:flex;width:100%;align-items:center;gap:12px;padding:12px 4px;border:0;border-top:1px solid #eceaf4;background:#fff;color:#1c1b29;text-align:left}.belongings-add-option>b{display:grid;width:40px;height:40px;flex:none;place-items:center;border-radius:12px;background:#eef1fe;color:#466ef2;font-size:19px}.belongings-add-option strong,.belongings-add-option small{display:block}.belongings-add-option strong{font-size:15px}.belongings-add-option small{margin-top:2px;color:#6b6980;font-size:12.5px}
.belongings-plate-result{display:flex;align-items:center;gap:11px;margin:0 0 14px;padding:13px 14px;border-radius:18px;background:#fff;box-shadow:0 2px 10px rgba(80,60,140,.07)}.belongings-plate-result>span{display:grid;width:40px;height:40px;place-items:center;border-radius:12px;background:#eef1fe;color:#466ef2;font-size:20px}.belongings-plate-result div{min-width:0;flex:1}.belongings-plate-result strong,.belongings-plate-result p,.belongings-plate-result small{display:block}.belongings-plate-result strong{font-size:14px}.belongings-plate-result p{margin:2px 0;font-size:15px;font-weight:700}.belongings-plate-result small{overflow:hidden;color:#6b6980;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.belongings-plate-result button{padding:8px 10px;border:0;border-radius:10px;background:#eef1fe;color:#466ef2;font-size:12px;font-weight:700;white-space:nowrap}.belongings-plate-result.error{color:#a93a43}

/* Keep belonging detail content within narrow mobile viewports. */
.belonging-ask .form-grid{grid-template-columns:minmax(0,1fr) auto;align-items:center}.belonging-ask input{min-width:0}
@media (max-width:720px){.detail-view{width:100%;max-width:100%;overflow-x:clip}.detail-panel{width:100%;max-width:100%;min-width:0;padding:14px;border-radius:18px;overflow-wrap:anywhere}.detail-panel .detail-title-row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.detail-panel h1{font-size:23px;overflow-wrap:anywhere}.detail-panel .detail-header-actions{display:flex;width:100%;flex-wrap:wrap}.detail-panel .detail-header-actions button{min-width:0}.detail-panel input[type="file"]{width:100%;max-width:100%;font-size:12px}.belonging-ask .form-grid{grid-template-columns:1fr}.belonging-ask .form-grid button{width:100%}.belonging-answer{max-width:100%;overflow:hidden}}
