: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%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

.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;
}

.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,
.fab {
  background: #111116;
  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;
}

.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;
}

.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-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-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);
}

.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-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;
}

.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;
  width: 64px;
  height: 64px;
  min-height: 64px;
  padding: 0;
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 18px 44px rgba(9, 9, 11, 0.28);
}

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

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

.message-fab {
  width: 64px;
  height: 64px;
  min-height: 64px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.1), var(--shadow-hairline);
  backdrop-filter: blur(18px);
}

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

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

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

.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: 42px;
  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);
}

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

.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: 14px;
}

.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;
}

.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;
}

.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-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);
}

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

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

.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-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;
}

.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;
}

.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: hidden;
  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;
  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);
}

.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;
}

.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;
}

.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: hidden;
  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;
}

.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-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;
}

.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;
}

.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 {
  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);
}

.task-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.task-tabs button {
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
}

.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;
}

.lists-header {
  grid-template-columns: 1fr;
}

.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;
}

.list-create-type-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.list-create-type-row > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.list-type-segmented {
  margin: 0;
}

.list-type-segmented label {
  display: inline-flex;
}

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

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

.list-type-segmented input:checked + span {
  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 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.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;
}

.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);
}

.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-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-item-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.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 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);
}

.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: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: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-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;
}

.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-item-shop-chip {
  padding-right: 3px;
}

.shop-chip-remove {
  display: inline-grid;
  place-items: center;
  width: 17px;
  min-width: 17px;
  height: 17px;
  min-height: 17px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  color: currentColor;
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.82;
}

.shop-chip-remove:hover {
  background: rgba(255, 255, 255, 0.42);
  opacity: 1;
}

.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;
}

.shop-logo-chip.lidl {
  --shop-bg: #fff109;
  --shop-fg: #063b99;
}

.shop-logo-chip.normal {
  --shop-bg: #1eddc2;
  --shop-fg: #000000;
}

.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);
}

.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-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-link-form input {
  min-height: 36px;
  padding: 8px 10px;
}

.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-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-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;
}

.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-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);
}

.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;
}

.edit-button {
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 22px;
  color: var(--blue);
}

.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-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;
}

.settings-section {
  display: block;
  overflow: hidden;
  padding: 0;
}

.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;
}

.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;
}

.meeting-dashboard-header {
  align-items: center;
  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-needs-card,
.meeting-room-card {
  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-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: 5px 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 0 12px 0 0;
  border-radius: 20px;
  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;
  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;
  place-items: center;
  min-height: 56px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow-hairline);
  text-align: center;
  color: rgba(23, 23, 28, 0.72);
  font-weight: 850;
  font-size: 14px;
}

.meeting-dashboard-row h3,
.meeting-series-manage-row h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.meeting-dashboard-row p,
.meeting-series-manage-row p,
.meeting-series-manage-row small {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.meeting-status-pill {
  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;
}

.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-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 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;
}

.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;
}

.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;
}

.meeting-agenda-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.meeting-agenda-item:last-child {
  border-bottom: 0;
}

.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-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));
  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);
}

.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);
}

.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-handle {
  width: 44px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(22, 22, 26, 0.18);
}

.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 {
  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;
}

.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);
}

.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(10px, env(safe-area-inset-bottom));
    --mobile-fab-bottom: calc(var(--mobile-tabs-bottom) + 82px);
    --mobile-content-bottom: calc(var(--mobile-tabs-bottom) + 128px);
  }

  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);
  }

  .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;
  }

  .card-grid,
  .matrix,
  .today-layout,
  .review-header,
  .people-create-form,
  .people-toolbar,
  .person-profile-top,
  .person-detail-grid,
  .form-row.two {
    grid-template-columns: 1fr;
  }

  .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;
  }

  .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.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;
  }

  .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;
  }

  .fab-stack {
    right: 18px;
    bottom: var(--mobile-fab-bottom);
  }

  .mobile-tabs {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: var(--mobile-tabs-bottom);
    z-index: 18;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 7px;
    border: 1px solid rgba(22, 22, 26, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 44px rgba(16, 24, 40, 0.12), var(--shadow-hairline);
    backdrop-filter: blur(24px) saturate(1.18);
  }

  .mobile-tabs::before {
    content: "";
    position: absolute;
    top: calc(100% - 1px);
    left: -10px;
    right: -10px;
    height: 100vh;
    z-index: -1;
    border-radius: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18));
    -webkit-backdrop-filter: blur(25px) saturate(1.08);
    backdrop-filter: blur(25px) saturate(1.08);
    pointer-events: none;
  }

  .mobile-tabs button {
    min-height: 46px;
    justify-content: center;
    text-align: center;
    font-size: 12px;
  }

  .mobile-tabs .nav-icon {
    display: none;
  }

  .mobile-tabs button.active {
    box-shadow: 0 10px 26px rgba(9, 9, 11, 0.22);
  }

  .bottom-sheet {
    width: 100vw;
    border-radius: 28px 28px 0 0;
  }

  .capture-sheet {
    padding-inline: 18px;
  }

  .sheet-form textarea {
    min-height: 180px;
  }

  .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-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-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-start;
  }

  .meeting-dashboard-header,
  .meeting-room-header {
    padding: 16px;
    border-radius: 24px;
  }

  .meeting-rail {
    grid-row: 1 / span 4;
  }

  .meeting-loop-grid {
    grid-template-columns: 1fr;
  }

  .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: 58px;
    padding-inline: 22px;
  }
}

@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);
  }
}
