:root {
  --sla-bg: #f3f6f4;
  --sla-bg-deep: #e8efeb;
  --sla-surface: #ffffff;
  --sla-surface-soft: #f5f8f6;
  --sla-surface-strong: #edf3ef;
  --sla-text: #16231c;
  --sla-muted: #6d7a72;
  --sla-muted-strong: #506158;
  --sla-border: #dfe8e2;
  --sla-border-strong: #cbd8d0;
  --sla-accent: #1f7a55;
  --sla-accent-hover: #155f40;
  --sla-accent-deep: #0f4d34;
  --sla-accent-soft: #e4f4eb;
  --sla-accent-faint: #f1faf5;
  --sla-warm: #ffb64d;
  --sla-warm-hover: #f39d22;
  --sla-warm-soft: #fff3df;
  --sla-danger: #c84b4b;
  --sla-danger-soft: #fff0ef;
  --sla-shadow-sm: 0 8px 24px rgba(20, 49, 33, .07);
  --sla-shadow: 0 24px 70px rgba(20, 49, 33, .11);
  --sla-shadow-strong: 0 30px 90px rgba(15, 52, 33, .16);
  --sla-radius-xs: 10px;
  --sla-radius-sm: 14px;
  --sla-radius: 20px;
  --sla-radius-lg: 30px;
  --sla-radius-xl: 38px;
  --sla-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--sla-bg); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--sla-text);
  background:
    radial-gradient(circle at 9% 4%, rgba(255, 182, 77, .18), transparent 26rem),
    radial-gradient(circle at 92% 2%, rgba(31, 122, 85, .14), transparent 30rem),
    linear-gradient(180deg, #f8faf8 0, var(--sla-bg) 42%, #eef3f0 100%);
  font-family: var(--sla-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 122, 85, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 122, 85, .025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
::selection { background: rgba(31, 122, 85, .18); }

.sla-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 11px 15px;
  border-radius: 12px;
  background: var(--sla-text);
  color: white;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.sla-skip-link:focus { transform: translateY(0); }
.sla-main { min-height: 100vh; }
.sla-plugin-notice, .sla-content {
  width: min(760px, calc(100% - 32px));
  margin: 72px auto;
  padding: 36px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--sla-radius-lg);
  background: rgba(255,255,255,.9);
  box-shadow: var(--sla-shadow);
  backdrop-filter: blur(18px);
}

.sl-app { min-height: 100vh; }
.sl-app[aria-busy="true"] { cursor: progress; }
.sl-shell {
  width: min(1240px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px;
}

/* Header */
.sl-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  margin-bottom: 14px;
  padding: 8px 4px;
}
.sl-brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.sl-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  border-radius: 17px;
  background: linear-gradient(145deg, var(--sla-accent) 0%, var(--sla-accent-deep) 100%);
  color: white;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(31, 122, 85, .28);
}
.sl-brand-mark::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  top: -14px;
  right: -10px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.sl-brand-text { min-width: 0; }
.sl-brand-text strong { display: block; font-size: 18px; line-height: 1.15; letter-spacing: -.02em; }
.sl-brand-text span { display: block; margin-top: 4px; color: var(--sla-muted); font-size: 12px; }
.sl-topbar-actions { display: flex; align-items: center; gap: 9px; }
.sl-user-chip {
  display: none;
  max-width: 230px;
  overflow: hidden;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  box-shadow: var(--sla-shadow-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--sla-muted-strong);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

/* Main layout */
.sl-layout { display: grid; grid-template-columns: 1fr; gap: 14px; }
.sl-sidebar, .sl-panel {
  border: 1px solid rgba(255,255,255,.84);
  border-radius: var(--sla-radius-lg);
  background: rgba(255,255,255,.86);
  box-shadow: var(--sla-shadow);
  backdrop-filter: blur(20px);
}
.sl-sidebar {
  padding: 14px;
  overflow: hidden;
}
.sl-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.sl-sidebar-title {
  margin: 0;
  color: var(--sla-muted-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sl-list-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 5px;
  scrollbar-width: thin;
}
.sl-list-nav-item {
  position: relative;
  width: auto;
  min-width: min(235px, 78vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  overflow: hidden;
  border: 1px solid var(--sla-border);
  border-radius: 17px;
  background: var(--sla-surface);
  box-shadow: 0 6px 20px rgba(20,49,33,.05);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.sl-list-nav-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: transparent;
}
.sl-list-nav-item:hover { transform: translateY(-2px); border-color: var(--sla-border-strong); box-shadow: var(--sla-shadow-sm); }
.sl-list-nav-item.is-active {
  border-color: rgba(31,122,85,.2);
  background: linear-gradient(135deg, var(--sla-accent-faint), #fff);
  color: var(--sla-accent-deep);
}
.sl-list-nav-item.is-active::before { background: var(--sla-accent); }
.sl-list-nav-copy { min-width: 0; }
.sl-list-nav-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.sl-list-nav-copy small { display: block; margin-top: 4px; color: var(--sla-muted); font-size: 11px; }
.sl-list-nav-badge {
  min-width: 28px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--sla-surface-strong);
  color: var(--sla-muted-strong);
  text-align: center;
  font-size: 11px;
  font-weight: 900;
}
.sl-list-nav-item.is-active .sl-list-nav-badge { background: var(--sla-accent); color: white; }
.sl-sidebar-foot { margin-top: 12px; }

.sl-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 20px;
}
.sl-panel::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  top: -210px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,182,77,.22), transparent 70%);
  pointer-events: none;
}
.sl-panel-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.sl-panel-title-group { min-width: 0; }
.sl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: var(--sla-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sl-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sla-warm);
  box-shadow: 0 0 0 4px var(--sla-warm-soft);
}
.sl-title {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(30px, 8vw, 48px);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.sl-subtitle { max-width: 620px; margin: 10px 0 0; color: var(--sla-muted); font-size: 13px; line-height: 1.55; }
.sl-head-actions { display: flex; flex: 0 0 auto; gap: 8px; }

/* Progress */
.sl-progress-wrap {
  position: relative;
  margin: 24px 0 19px;
  padding: 15px 16px;
  border: 1px solid var(--sla-border);
  border-radius: 17px;
  background: linear-gradient(135deg, var(--sla-surface-soft), #fff);
}
.sl-progress-copy { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: var(--sla-muted-strong); font-size: 12px; font-weight: 700; }
.sl-progress-copy span:last-child { color: var(--sla-accent); font-weight: 900; }
.sl-progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: #dce8e0; }
.sl-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sla-accent), #43a778);
  box-shadow: 0 3px 12px rgba(31,122,85,.3);
  transition: width .35s cubic-bezier(.22,1,.36,1);
}

/* Add product */
.sl-add-form {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--sla-border);
  border-radius: 19px;
  background: var(--sla-surface);
  box-shadow: 0 12px 34px rgba(20,49,33,.07);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.sl-add-form::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  align-self: center;
  margin-left: 3px;
  border-radius: 12px;
  background: var(--sla-accent-soft);
  color: var(--sla-accent);
  font-size: 22px;
  font-weight: 700;
}
.sl-add-input {
  min-width: 0;
  height: 50px;
  margin-left: 0;
  padding: 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--sla-text);
  font-size: 15px;
  font-weight: 600;
}
.sl-add-input::placeholder { color: #97a49c; font-weight: 500; }
.sl-add-form:focus-within {
  border-color: rgba(31,122,85,.42);
  box-shadow: 0 0 0 5px rgba(31,122,85,.08), 0 18px 42px rgba(20,49,33,.1);
  transform: translateY(-1px);
}

/* Filters */
.sl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 12px; }
.sl-filters {
  display: inline-flex;
  gap: 5px;
  max-width: 100%;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--sla-border);
  border-radius: 15px;
  background: var(--sla-surface-soft);
}
.sl-filter {
  min-height: 36px;
  padding: 7px 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--sla-muted);
  cursor: pointer;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.sl-filter:hover { color: var(--sla-text); }
.sl-filter.is-active { background: white; color: var(--sla-accent-deep); box-shadow: 0 4px 13px rgba(20,49,33,.08); }

/* Items */
.sl-items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sl-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 68px;
  padding: 11px 11px 11px 13px;
  overflow: hidden;
  border: 1px solid var(--sla-border);
  border-radius: 18px;
  background: var(--sla-surface);
  box-shadow: 0 6px 22px rgba(20,49,33,.045);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
}
.sl-item::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--sla-warm);
  opacity: 0;
  transition: opacity .18s ease;
}
.sl-item:hover { transform: translateY(-2px); border-color: var(--sla-border-strong); box-shadow: 0 13px 30px rgba(20,49,33,.09); }
.sl-item:hover::after { opacity: 1; }
.sl-item.is-completed { opacity: .72; background: var(--sla-accent-faint); }
.sl-item.is-completed::after { opacity: 1; background: var(--sla-accent); }
.sl-item.is-completed .sl-item-name { color: var(--sla-muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.sl-checkbox {
  appearance: none;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin: 0;
  border: 2px solid #aab8af;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.sl-checkbox:hover { border-color: var(--sla-accent); transform: scale(1.05); }
.sl-checkbox:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(31,122,85,.13); }
.sl-checkbox:checked { border-color: var(--sla-accent); background: linear-gradient(145deg, #36a16f, var(--sla-accent)); box-shadow: 0 5px 14px rgba(31,122,85,.24); }
.sl-checkbox:checked::after { content: "✓"; color: white; font-size: 16px; font-weight: 900; line-height: 1; }
.sl-item-copy { min-width: 0; }
.sl-item-name { display: block; overflow-wrap: anywhere; font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.sl-item-name-edit {
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sl-item-name-edit:hover { text-decoration: underline; text-underline-offset: 3px; }
.sl-item-name-edit:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sl-item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; color: var(--sla-muted-strong); font-size: 10px; }
.sl-item-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sla-surface-strong);
  line-height: 1.2;
}

/* Empty state */
.sl-empty { padding: 50px 18px 42px; text-align: center; }
.sl-empty-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 17px;
  border: 1px solid rgba(31,122,85,.12);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--sla-accent-soft), #fff);
  color: var(--sla-accent);
  box-shadow: 0 14px 32px rgba(31,122,85,.12);
  font-size: 30px;
  transform: rotate(-3deg);
}
.sl-empty-icon::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  right: -4px;
  bottom: -2px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--sla-warm);
}
.sl-empty h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.sl-empty p { max-width: 390px; margin: 8px auto 0; color: var(--sla-muted); font-size: 13px; line-height: 1.55; }

/* Buttons */
.sl-btn, .sl-icon-btn {
  border: 0;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.sl-btn:active, .sl-icon-btn:active { transform: translateY(1px) scale(.99); }
.sl-btn:disabled, .sl-icon-btn:disabled { cursor: not-allowed; opacity: .5; }
.sl-btn:focus-visible, .sl-icon-btn:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(31,122,85,.15); }
.sl-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 14px;
  background: linear-gradient(145deg, #2b9066, var(--sla-accent));
  color: white;
  box-shadow: 0 8px 19px rgba(31,122,85,.19);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.sl-btn:hover { background: linear-gradient(145deg, var(--sla-accent), var(--sla-accent-hover)); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(31,122,85,.24); }
.sl-btn-secondary { border: 1px solid var(--sla-border); background: rgba(255,255,255,.92); color: var(--sla-text); box-shadow: 0 6px 18px rgba(20,49,33,.05); }
.sl-btn-secondary:hover { border-color: var(--sla-border-strong); background: white; color: var(--sla-accent-deep); box-shadow: var(--sla-shadow-sm); }
.sl-btn-subtle {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(31,122,85,.12);
  border-radius: 11px;
  background: rgba(255,255,255,.38);
  color: var(--sla-muted);
  box-shadow: none;
  font-size: 12px;
  font-weight: 750;
}
.sl-btn-subtle:hover {
  border-color: rgba(31,122,85,.22);
  background: rgba(255,255,255,.72);
  color: var(--sla-text);
  transform: none;
  box-shadow: none;
}
.sl-btn-ghost { background: transparent; color: var(--sla-muted); box-shadow: none; }
.sl-btn-ghost:hover { background: var(--sla-surface-strong); color: var(--sla-text); box-shadow: none; }
.sl-btn-danger { background: linear-gradient(145deg, #d85d5d, var(--sla-danger)); box-shadow: 0 8px 19px rgba(200,75,75,.18); }
.sl-btn-danger:hover { background: linear-gradient(145deg, var(--sla-danger), #a93636); box-shadow: 0 12px 24px rgba(200,75,75,.22); }
.sl-btn-full { width: 100%; }
.sl-icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border: 1px solid var(--sla-border);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 6px 18px rgba(20,49,33,.05);
  font-size: 19px;
}
.sl-icon-btn:hover { border-color: var(--sla-border-strong); background: white; color: var(--sla-accent); transform: translateY(-1px); box-shadow: var(--sla-shadow-sm); }
.sl-icon-btn-small { width: 36px; height: 36px; flex-basis: 36px; border-radius: 12px; font-size: 16px; }
#sl-new-list { border-color: transparent; background: var(--sla-accent); color: white; box-shadow: 0 8px 18px rgba(31,122,85,.22); }
#sl-new-list:hover { background: var(--sla-accent-hover); color: white; }

/* Dialogs */
.sl-modal[hidden], .sl-toast[hidden], .sl-view[hidden], .sl-loading[hidden], .sl-shared-banner[hidden], .sl-empty[hidden], .sl-login-required[hidden] { display: none !important; }
.sl-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  align-items: end;
  padding: 10px;
  background: rgba(11, 27, 18, .55);
  backdrop-filter: blur(8px);
  animation: sl-fade-in .18s ease both;
}
.sl-dialog {
  width: min(540px, 100%);
  max-height: min(90vh, 780px);
  margin: 0 auto;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 27px;
  background: white;
  box-shadow: var(--sla-shadow-strong);
  animation: sl-dialog-up .28s cubic-bezier(.22,1,.36,1) both;
}
.sl-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px 24px 0; }
.sl-dialog-head h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.sl-dialog-head p { margin: 8px 0 0; color: var(--sla-muted); font-size: 13px; line-height: 1.5; }
.sl-dialog-body { padding: 21px 24px 26px; }
.sl-form { display: grid; gap: 15px; }
.sl-field { display: grid; gap: 7px; }
.sl-field label { color: var(--sla-muted-strong); font-size: 12px; font-weight: 900; }
.sl-input, .sl-textarea, .sl-select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--sla-border);
  border-radius: 14px;
  outline: none;
  background: var(--sla-surface-soft);
  color: var(--sla-text);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.sl-textarea { min-height: 94px; resize: vertical; }
.sl-input:hover, .sl-textarea:hover, .sl-select:hover { border-color: var(--sla-border-strong); }
.sl-input:focus, .sl-textarea:focus, .sl-select:focus { border-color: rgba(31,122,85,.55); background: white; box-shadow: 0 0 0 4px rgba(31,122,85,.09); }
.sl-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.sl-form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
.sl-inline-message { padding: 12px 13px; border: 1px solid var(--sla-border); border-radius: 13px; background: var(--sla-surface-soft); color: var(--sla-muted); font-size: 12px; line-height: 1.5; }
.sl-inline-message.is-error { border-color: #f0ceca; background: var(--sla-danger-soft); color: #8f3732; }
.sl-inline-message.is-success { border-color: #cfe7d8; background: var(--sla-accent-soft); color: var(--sla-accent-deep); }
.sl-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 18px; padding: 5px; border: 1px solid var(--sla-border); border-radius: 15px; background: var(--sla-surface-soft); }
.sl-tab { min-height: 40px; border: 0; border-radius: 11px; background: transparent; color: var(--sla-muted); cursor: pointer; font-weight: 900; }
.sl-tab:hover { color: var(--sla-text); }
.sl-tab.is-active { background: white; color: var(--sla-accent-deep); box-shadow: 0 5px 14px rgba(20,49,33,.08); }
.sl-member-list { display: grid; gap: 9px; margin-top: 17px; }
.sl-member {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--sla-border);
  border-radius: 15px;
  background: var(--sla-surface-soft);
}
.sl-member strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.sl-member small { display: block; margin-top: 3px; color: var(--sla-muted); font-size: 11px; }
.sl-share-link { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-top: 17px; }
.sl-share-link input { min-width: 0; }

/* Feedback */
.sl-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  max-width: min(400px, calc(100% - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 15px;
  background: #153126;
  color: white;
  box-shadow: 0 20px 60px rgba(8,28,17,.3);
  font-size: 13px;
  line-height: 1.45;
  animation: sl-toast-in .22s ease both;
}
.sl-toast.is-error { background: #8d3632; }
.sl-loading { display: grid; place-items: center; min-height: 58vh; color: var(--sla-muted); }
.sl-loading > div { display: grid; justify-items: center; }
.sl-startup-error { display: grid; justify-items: center; gap: 12px; width: min(460px, calc(100% - 32px)); text-align: center; line-height: 1.5; }
.sl-startup-error strong { color: var(--sla-text); font-size: 19px; }
.sl-startup-error span { font-size: 13px; }
.sl-spinner {
  width: 38px;
  height: 38px;
  margin-bottom: 13px;
  border: 3px solid var(--sla-border);
  border-top-color: var(--sla-accent);
  border-right-color: var(--sla-warm);
  border-radius: 50%;
  animation: sl-spin .75s linear infinite;
}
.sl-shared-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
  padding: 14px 15px;
  border: 1px solid #cae4d5;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sla-accent-soft), #fff);
  color: var(--sla-accent-deep);
  box-shadow: 0 8px 22px rgba(31,122,85,.07);
  font-size: 12px;
  line-height: 1.5;
}
.sl-login-required {
  margin-top: 17px;
  padding: 16px;
  border: 1px dashed #b9cbbf;
  border-radius: 16px;
  background: var(--sla-accent-faint);
  text-align: center;
  color: var(--sla-muted-strong);
  font-size: 13px;
  line-height: 1.5;
}
.sl-kebab-menu { position: relative; }
.sl-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 195px;
  padding: 7px;
  border: 1px solid var(--sla-border);
  border-radius: 15px;
  background: white;
  box-shadow: 0 18px 45px rgba(20,49,33,.16);
  animation: sl-menu-in .16s ease both;
}
.sl-menu[hidden] { display: none; }
.sl-menu button { width: 100%; padding: 10px 11px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; font-size: 12px; font-weight: 800; }
.sl-menu button:hover { background: var(--sla-surface-soft); color: var(--sla-accent-deep); }
.sl-menu button.is-danger { color: var(--sla-danger); }
.sl-menu button.is-danger:hover { background: var(--sla-danger-soft); }

@keyframes sl-spin { to { transform: rotate(360deg); } }
@keyframes sl-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sl-dialog-up { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes sl-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sl-menu-in { from { opacity: 0; transform: translateY(-5px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (min-width: 680px) {
  .sl-shell { padding: 22px; }
  .sl-topbar { min-height: 76px; margin-bottom: 17px; }
  .sl-panel { padding: 30px; }
  .sl-user-chip { display: block; }
  .sl-modal { align-items: center; padding: 24px; }
  .sl-dialog { border-radius: 30px; }
  .sl-title { font-size: 46px; }
}

@media (min-width: 940px) {
  .sl-shell { padding: 28px; }
  .sl-layout { grid-template-columns: 282px minmax(0, 1fr); align-items: start; gap: 18px; }
  .sl-sidebar {
    display: block;
    position: sticky;
    top: 28px;
    min-height: calc(100vh - 122px);
    padding: 18px;
    border-color: rgba(12,70,45,.35);
    background:
      radial-gradient(circle at 15% 0, rgba(255,182,77,.2), transparent 15rem),
      linear-gradient(165deg, #155b3e 0%, #0d412c 100%);
    color: white;
    box-shadow: 0 28px 75px rgba(12,67,43,.24);
  }
  .sl-sidebar-title { color: rgba(255,255,255,.64); }
  .sl-list-nav { display: grid; overflow: visible; padding: 0; }
  .sl-list-nav-item {
    width: 100%;
    min-width: 0;
    border-color: rgba(255,255,255,.08);
    background: rgba(255,255,255,.055);
    color: white;
    box-shadow: none;
  }
  .sl-list-nav-item::before { width: 0; }
  .sl-list-nav-item:hover { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.1); box-shadow: none; }
  .sl-list-nav-item.is-active {
    border-color: rgba(255,255,255,.28);
    background: white;
    color: var(--sla-accent-deep);
    box-shadow: 0 14px 28px rgba(4,36,22,.22);
  }
  .sl-list-nav-copy small { color: rgba(255,255,255,.55); }
  .sl-list-nav-item.is-active .sl-list-nav-copy small { color: var(--sla-muted); }
  .sl-list-nav-badge { background: rgba(255,255,255,.12); color: white; }
  .sl-list-nav-item.is-active .sl-list-nav-badge { background: var(--sla-warm); color: #4d3208; }
  .sl-sidebar-foot { margin-top: 17px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.12); }
  .sl-sidebar-foot .sl-btn-secondary { border-color: rgba(255,255,255,.17); background: rgba(255,255,255,.08); color: white; box-shadow: none; }
  .sl-sidebar-foot .sl-btn-secondary:hover { background: rgba(255,255,255,.14); }
  #sl-new-list { background: var(--sla-warm); color: #51360d; box-shadow: 0 9px 20px rgba(0,0,0,.16); }
  #sl-new-list:hover { background: #ffc469; color: #3f2908; }
  .sl-panel { min-height: calc(100vh - 122px); padding: 38px 40px; }
  .sl-title { font-size: 50px; }
}

@media (max-width: 679px) {
  .sl-sidebar { border-radius: 22px; background: rgba(255,255,255,.78); box-shadow: var(--sla-shadow-sm); }
  .sl-panel { border-radius: 25px; }
}

@media (max-width: 500px) {
  .sl-shell { padding: 10px; }
  .sl-topbar { min-height: 64px; margin-bottom: 10px; padding: 5px 3px; }
  .sl-brand-mark { width: 43px; height: 43px; flex-basis: 43px; border-radius: 15px; }
  .sl-brand-text strong { font-size: 16px; }
  .sl-brand-text span { display: none; }
  .sl-topbar-actions .sl-btn { min-width: 44px; width: 44px; padding: 0; font-size: 0; }
  .sl-topbar-actions .sl-btn::after { content: "👤"; font-size: 17px; }
  .sl-panel { padding: 18px 15px 20px; }
  .sl-panel-head { align-items: flex-start; }
  .sl-title { font-size: 32px; }
  .sl-head-actions { gap: 5px; }
  .sl-progress-wrap { margin-top: 20px; padding: 13px; }
  .sl-add-form { grid-template-columns: auto minmax(0, 1fr) 48px; }
  .sl-add-form .sl-btn { width: 48px; padding: 0; font-size: 0; }
  .sl-add-form .sl-btn::after { content: "+"; font-size: 23px; }
  .sl-form-row { grid-template-columns: 1fr; }
  .sl-toolbar { align-items: flex-start; flex-direction: column; }
  .sl-filters { width: 100%; }
  .sl-filter { flex: 1 0 auto; }
  .sl-item { min-height: 64px; gap: 11px; padding: 10px; border-radius: 16px; }
  .sl-checkbox { width: 26px; height: 26px; }
  .sl-shared-banner { align-items: stretch; flex-direction: column; }
  .sl-share-link { grid-template-columns: 1fr; }
  .sl-form-actions .sl-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ========================================================================
   Modern interface refresh — 0.3.0
   High-contrast, product-led UI with restrained depth and electric accents.
   ======================================================================== */
:root {
  --sla-bg: #f4f5f2;
  --sla-bg-deep: #ebede8;
  --sla-surface: #ffffff;
  --sla-surface-soft: #f6f7f4;
  --sla-surface-strong: #eef0eb;
  --sla-text: #121713;
  --sla-muted: #70776f;
  --sla-muted-strong: #50584f;
  --sla-border: #e1e4de;
  --sla-border-strong: #cfd4cc;
  --sla-accent: #36c976;
  --sla-accent-hover: #21ae61;
  --sla-accent-deep: #0c6e3a;
  --sla-accent-soft: #dff8e9;
  --sla-accent-faint: #f1fbf5;
  --sla-warm: #c8ff5a;
  --sla-warm-hover: #b8f33f;
  --sla-warm-soft: #f1ffd6;
  --sla-danger: #d64949;
  --sla-danger-soft: #fff1f0;
  --sla-ink: #131915;
  --sla-ink-soft: #1c251f;
  --sla-shadow-sm: 0 8px 24px rgba(20, 27, 22, .055);
  --sla-shadow: 0 20px 60px rgba(20, 27, 22, .075);
  --sla-shadow-strong: 0 28px 90px rgba(12, 18, 14, .18);
  --sla-radius-xs: 8px;
  --sla-radius-sm: 11px;
  --sla-radius: 15px;
  --sla-radius-lg: 20px;
  --sla-radius-xl: 26px;
  --sla-font: Inter, "SF Pro Display", "SF Pro Text", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { background: var(--sla-bg); }
body {
  background:
    radial-gradient(circle at 100% 0, rgba(200,255,90,.17), transparent 24rem),
    radial-gradient(circle at 0 72%, rgba(54,201,118,.08), transparent 30rem),
    var(--sla-bg);
}
body::before {
  opacity: .52;
  background-image: radial-gradient(rgba(18,23,19,.12) .65px, transparent .65px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 42%);
}

.sl-shell {
  width: min(1360px, 100%);
  padding: 12px;
}

/* Modern top navigation */
.sl-topbar {
  min-height: 68px;
  margin: 0 0 12px;
  padding: 5px 7px 5px 5px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 18px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 10px 32px rgba(18,23,19,.045);
  backdrop-filter: blur(20px) saturate(150%);
}
.sl-brand { gap: 11px; }
.sl-brand-mark {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 13px;
  background: var(--sla-ink);
  box-shadow: none;
  color: transparent;
}
.sl-brand-mark::before {
  content: "";
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  background: var(--sla-warm);
  clip-path: polygon(8% 52%, 27% 34%, 43% 50%, 77% 15%, 94% 32%, 43% 85%);
}
.sl-brand-mark::after {
  width: 18px;
  height: 18px;
  top: -5px;
  right: -5px;
  background: rgba(200,255,90,.22);
}
.sl-brand-text strong {
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.035em;
}
.sl-brand-text span {
  margin-top: 2px;
  color: var(--sla-muted);
  font-size: 11px;
  letter-spacing: -.005em;
}
.sl-user-chip {
  padding: 9px 13px;
  border-color: var(--sla-border);
  background: var(--sla-surface-soft);
  box-shadow: none;
  color: var(--sla-muted-strong);
}

/* Structure */
.sl-layout { gap: 12px; }
.sl-sidebar,
.sl-panel {
  border: 1px solid rgba(214,219,211,.9);
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--sla-shadow);
  backdrop-filter: blur(24px) saturate(145%);
}
.sl-sidebar { padding: 12px; }
.sl-sidebar-head { margin-bottom: 9px; padding: 0 2px; }
.sl-sidebar-title {
  color: var(--sla-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}
.sl-list-nav { gap: 7px; }
.sl-list-nav-item {
  min-width: min(225px, 76vw);
  padding: 12px 13px;
  border-color: var(--sla-border);
  border-radius: 13px;
  background: rgba(255,255,255,.88);
  box-shadow: none;
}
.sl-list-nav-item::before { display: none; }
.sl-list-nav-item:hover {
  transform: none;
  border-color: #bfc6bd;
  box-shadow: none;
}
.sl-list-nav-item.is-active {
  border-color: var(--sla-ink);
  background: var(--sla-ink);
  color: white;
}
.sl-list-nav-copy strong { font-size: 13px; font-weight: 750; }
.sl-list-nav-copy small { margin-top: 3px; font-size: 10px; }
.sl-list-nav-item.is-active .sl-list-nav-copy small { color: rgba(255,255,255,.58); }
.sl-list-nav-badge {
  min-width: 27px;
  padding: 4px 7px;
  background: var(--sla-surface-strong);
  font-size: 10px;
}
.sl-list-nav-item.is-active .sl-list-nav-badge {
  background: var(--sla-warm);
  color: var(--sla-ink);
}

.sl-panel {
  padding: 20px;
  overflow: visible;
}
.sl-panel::before {
  width: 220px;
  height: 220px;
  top: -155px;
  right: -85px;
  background: radial-gradient(circle, rgba(200,255,90,.3), transparent 67%);
  filter: blur(3px);
}
.sl-panel-head { align-items: center; }
.sl-eyebrow {
  margin-bottom: 9px;
  color: var(--sla-muted);
  font-size: 9px;
  letter-spacing: .17em;
}
.sl-eyebrow::before {
  width: 6px;
  height: 6px;
  background: var(--sla-accent);
  box-shadow: 0 0 0 4px var(--sla-accent-soft);
}
.sl-title {
  max-width: 780px;
  font-size: clamp(31px, 7.4vw, 54px);
  font-weight: 820;
  line-height: .98;
  letter-spacing: -.062em;
}
.sl-subtitle {
  margin-top: 11px;
  color: var(--sla-muted);
  font-size: 12px;
  line-height: 1.55;
}

/* Progress as compact status module */
.sl-progress-wrap {
  margin: 23px 0 15px;
  padding: 13px 14px;
  border-color: var(--sla-border);
  border-radius: 13px;
  background: var(--sla-surface-soft);
}
.sl-progress-copy {
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 720;
}
.sl-progress-copy span:last-child { color: var(--sla-text); }
.sl-progress-track {
  height: 6px;
  background: #dde1da;
}
.sl-progress-bar {
  background: linear-gradient(90deg, var(--sla-accent), var(--sla-warm));
  box-shadow: none;
}

/* Search-like product composer */
.sl-add-form {
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 7px;
  padding: 6px;
  border-color: var(--sla-border-strong);
  border-radius: 15px;
  box-shadow: none;
}
.sl-add-form::before {
  content: "";
  width: 35px;
  height: 35px;
  margin-left: 2px;
  border-radius: 10px;
  background: var(--sla-ink);
  color: transparent;
}
.sl-add-form::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--sla-warm);
  clip-path: polygon(44% 0,56% 0,56% 44%,100% 44%,100% 56%,56% 56%,56% 100%,44% 100%,44% 56%,0 56%,0 44%,44% 44%);
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.sl-add-input {
  height: 48px;
  padding: 0 7px;
  font-size: 14px;
  font-weight: 620;
}
.sl-add-input::placeholder { color: #929a91; }
.sl-add-form:focus-within {
  border-color: var(--sla-text);
  box-shadow: 0 0 0 4px rgba(18,23,19,.065);
  transform: none;
}

/* Segmented filters */
.sl-toolbar { margin: 15px 0 10px; }
.sl-filters {
  gap: 2px;
  padding: 3px;
  border-color: transparent;
  border-radius: 11px;
  background: #ecefe9;
}
.sl-filter {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 760;
}
.sl-filter.is-active {
  color: var(--sla-text);
  box-shadow: 0 2px 8px rgba(18,23,19,.07);
}

/* Product rows */
.sl-items { gap: 7px; }
.sl-item {
  min-height: 64px;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-color: var(--sla-border);
  border-radius: 13px;
  box-shadow: none;
}
.sl-item::after { display: none; }
.sl-item:hover {
  transform: none;
  border-color: #bcc3ba;
  background: #fcfdfb;
  box-shadow: 0 8px 24px rgba(18,23,19,.05);
}
.sl-item.is-completed {
  opacity: .66;
  background: #f5f7f3;
}
.sl-checkbox {
  width: 25px;
  height: 25px;
  border: 1.5px solid #aeb6ac;
  border-radius: 8px;
}
.sl-checkbox:hover {
  border-color: var(--sla-text);
  transform: none;
}
.sl-checkbox:checked {
  border-color: var(--sla-ink);
  background: var(--sla-ink);
  box-shadow: none;
}
.sl-checkbox:checked::after {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--sla-warm);
  clip-path: polygon(8% 52%, 27% 34%, 43% 50%, 77% 15%, 94% 32%, 43% 85%);
}
.sl-item-name {
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -.018em;
}
.sl-item-meta { gap: 5px; margin-top: 5px; font-size: 9px; }
.sl-item-meta span {
  min-height: 20px;
  padding: 3px 7px;
  border: 1px solid #e4e7e1;
  background: #f5f6f3;
}

/* Modern empty state */
.sl-empty { padding: 60px 18px 46px; }
.sl-empty-icon {
  width: 66px;
  height: 66px;
  margin-bottom: 18px;
  border-color: var(--sla-border);
  border-radius: 19px;
  background: var(--sla-ink);
  box-shadow: 12px 12px 0 var(--sla-warm);
  color: transparent;
  transform: none;
}
.sl-empty-icon::before {
  content: "";
  width: 30px;
  height: 30px;
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h2l2.4 11.2a2 2 0 0 0 2 1.6h7.8a2 2 0 0 0 2-1.6L21 7H6'/%3E%3Ccircle cx='10' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3C/svg%3E") center/contain no-repeat;
}
.sl-empty-icon::after { display: none; }
.sl-empty h2 { font-size: 19px; font-weight: 800; letter-spacing: -.035em; }
.sl-empty p { font-size: 12px; }

/* Controls */
.sl-btn {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 11px;
  background: var(--sla-ink);
  color: white;
  box-shadow: none;
  font-size: 12px;
  font-weight: 780;
}
.sl-btn:hover {
  background: #242d27;
  transform: none;
  box-shadow: none;
}
.sl-btn-secondary {
  border-color: var(--sla-border);
  background: var(--sla-surface);
  color: var(--sla-text);
  box-shadow: none;
}
.sl-btn-secondary:hover {
  border-color: var(--sla-text);
  background: white;
  color: var(--sla-text);
  box-shadow: none;
}
.sl-btn-ghost:hover { background: #edf0eb; }
.sl-btn-danger { background: var(--sla-danger); box-shadow: none; }
.sl-btn-danger:hover { background: #be3434; box-shadow: none; }
.sl-icon-btn {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-color: var(--sla-border);
  border-radius: 11px;
  background: rgba(255,255,255,.92);
  box-shadow: none;
  font-size: 18px;
}
.sl-icon-btn:hover {
  border-color: var(--sla-text);
  color: var(--sla-text);
  transform: none;
  box-shadow: none;
}
.sl-icon-btn-small {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 9px;
}
#sl-new-list {
  border-color: transparent;
  background: var(--sla-warm);
  color: var(--sla-ink);
  box-shadow: none;
}
#sl-new-list:hover { background: var(--sla-warm-hover); color: var(--sla-ink); }
.sl-add-form .sl-btn {
  min-width: 92px;
  background: var(--sla-warm);
  color: var(--sla-ink);
}
.sl-add-form .sl-btn:hover { background: var(--sla-warm-hover); }

/* Dialog system */
.sl-modal {
  background: rgba(12,17,14,.62);
  backdrop-filter: blur(12px) saturate(115%);
}
.sl-dialog {
  border-color: rgba(255,255,255,.65);
  border-radius: 20px;
  box-shadow: var(--sla-shadow-strong);
}
.sl-dialog-head { padding: 22px 22px 0; }
.sl-dialog-head h2 { font-size: 24px; font-weight: 820; letter-spacing: -.05em; }
.sl-dialog-body { padding: 19px 22px 23px; }
.sl-form { gap: 13px; }
.sl-field label { font-size: 10px; letter-spacing: .03em; }
.sl-input, .sl-textarea, .sl-select {
  min-height: 46px;
  border-radius: 11px;
  background: #f6f7f4;
}
.sl-input:focus, .sl-textarea:focus, .sl-select:focus {
  border-color: var(--sla-text);
  box-shadow: 0 0 0 4px rgba(18,23,19,.06);
}
.sl-tabs {
  gap: 2px;
  padding: 3px;
  border-color: transparent;
  border-radius: 11px;
  background: #ecefe9;
}
.sl-tab { min-height: 38px; border-radius: 8px; font-size: 12px; }
.sl-tab.is-active { color: var(--sla-text); box-shadow: 0 2px 8px rgba(18,23,19,.07); }
.sl-member { border-radius: 11px; }
.sl-inline-message, .sl-shared-banner, .sl-login-required { border-radius: 12px; }
.sl-menu {
  min-width: 202px;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(18,23,19,.15);
}
.sl-menu button { border-radius: 8px; }
.sl-toast {
  border-radius: 12px;
  background: var(--sla-ink);
  box-shadow: 0 18px 55px rgba(12,18,14,.24);
}
.sl-spinner {
  width: 34px;
  height: 34px;
  border-color: #dce0da;
  border-top-color: var(--sla-ink);
  border-right-color: var(--sla-warm);
}

@media (min-width: 680px) {
  .sl-shell { padding: 18px; }
  .sl-panel { padding: 29px; }
  .sl-title { font-size: 49px; }
  .sl-dialog { border-radius: 20px; }
}

@media (min-width: 940px) {
  .sl-shell { padding: 20px; }
  .sl-layout { grid-template-columns: 292px minmax(0,1fr); gap: 12px; }
  .sl-sidebar {
    top: 20px;
    min-height: calc(100vh - 112px);
    padding: 17px;
    border-color: #202a23;
    background:
      radial-gradient(circle at 100% 0, rgba(200,255,90,.13), transparent 14rem),
      var(--sla-ink);
    box-shadow: none;
  }
  .sl-sidebar-title { color: rgba(255,255,255,.48); }
  .sl-list-nav { gap: 6px; }
  .sl-list-nav-item {
    border-color: transparent;
    border-radius: 11px;
    background: transparent;
    color: rgba(255,255,255,.8);
  }
  .sl-list-nav-item:hover {
    border-color: rgba(255,255,255,.06);
    background: rgba(255,255,255,.055);
  }
  .sl-list-nav-item.is-active {
    border-color: var(--sla-warm);
    background: var(--sla-warm);
    color: var(--sla-ink);
    box-shadow: none;
  }
  .sl-list-nav-copy small { color: rgba(255,255,255,.42); }
  .sl-list-nav-item.is-active .sl-list-nav-copy small { color: rgba(18,23,19,.58); }
  .sl-list-nav-badge { background: rgba(255,255,255,.08); color: white; }
  .sl-list-nav-item.is-active .sl-list-nav-badge { background: rgba(18,23,19,.1); color: var(--sla-ink); }
  .sl-sidebar-foot { border-top-color: rgba(255,255,255,.1); }
  .sl-sidebar-foot .sl-btn-secondary {
    border-color: rgba(255,255,255,.11);
    background: rgba(255,255,255,.055);
    color: white;
  }
  .sl-sidebar-foot .sl-btn-secondary:hover {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.085);
  }
  #sl-new-list { background: var(--sla-warm); color: var(--sla-ink); box-shadow: none; }
  .sl-panel {
    min-height: calc(100vh - 112px);
    padding: 38px 40px;
  }
  .sl-title { font-size: 56px; }
}

@media (max-width: 679px) {
  .sl-sidebar { border-radius: 16px; box-shadow: none; }
  .sl-panel { border-radius: 18px; }
}

@media (max-width: 500px) {
  .sl-shell { padding: 8px; }
  .sl-topbar {
    min-height: 60px;
    margin-bottom: 8px;
    padding: 4px;
    border-radius: 15px;
  }
  .sl-brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 11px;
  }
  .sl-brand-text strong { font-size: 15px; }
  .sl-panel { padding: 18px 14px 19px; }
  .sl-title { font-size: 34px; }
  .sl-progress-wrap { margin-top: 18px; }
  .sl-add-form { grid-template-columns: auto minmax(0,1fr) 46px; }
  .sl-add-form .sl-btn {
    min-width: 46px;
    width: 46px;
    background: var(--sla-warm);
  }
  .sl-add-form .sl-btn::after { color: var(--sla-ink); }
  .sl-item { border-radius: 11px; }
}

/* Line icon treatment for controls that are rendered by the core plugin. */
#sl-auth-button {
  gap: 8px;
  font-size: 0;
}
#sl-auth-button span { font-size: 12px; }
#sl-auth-button::after {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
}
#sl-auth-button.is-home::after {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7'/%3E%3Cpath d='M5 9v12h14V9'/%3E%3Cpath d='M9 21v-7h6v7'/%3E%3C/svg%3E") center/contain no-repeat;
}
#sl-auth-button[hidden] {
  display: none !important;
}
#sl-share-button {
  color: transparent;
}
#sl-share-button::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--sla-text);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.6 10.5 6.8-4M8.6 13.5l6.8 4'/%3E%3C/svg%3E") center/contain no-repeat;
}
#sl-share-button:hover::before { background: var(--sla-text); }

/* ========================================================================
   Light interface refresh — 0.4.0
   Soft neutral surfaces, muted sage accents and reduced visual contrast.
   ======================================================================== */
:root {
  --sla-bg: #f7f8f6;
  --sla-bg-deep: #f0f2ef;
  --sla-surface: #ffffff;
  --sla-surface-soft: #f6f8f5;
  --sla-surface-strong: #eef2ed;
  --sla-text: #2b3830;
  --sla-muted: #7b877f;
  --sla-muted-strong: #606d65;
  --sla-border: #e4e9e4;
  --sla-border-strong: #d6ddd7;
  --sla-accent: #729a80;
  --sla-accent-hover: #638a72;
  --sla-accent-deep: #4f705c;
  --sla-accent-soft: #e9f1eb;
  --sla-accent-faint: #f4f8f5;
  --sla-warm: #edf0dc;
  --sla-warm-hover: #e3e8ce;
  --sla-warm-soft: #f7f8ef;
  --sla-danger: #b96767;
  --sla-danger-soft: #fbf0ef;
  --sla-ink: #4f705c;
  --sla-ink-soft: #668273;
  --sla-shadow-sm: 0 6px 20px rgba(55, 70, 61, .045);
  --sla-shadow: 0 14px 40px rgba(55, 70, 61, .06);
  --sla-shadow-strong: 0 24px 70px rgba(55, 70, 61, .13);
}

html { background: var(--sla-bg); }
body {
  background:
    radial-gradient(circle at 92% 0, rgba(114,154,128,.075), transparent 27rem),
    radial-gradient(circle at 2% 78%, rgba(222,228,210,.18), transparent 30rem),
    var(--sla-bg);
}
body::before {
  opacity: .22;
  background-image: radial-gradient(rgba(79,112,92,.11) .55px, transparent .55px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 34%);
}
::selection { background: rgba(114,154,128,.18); }

.sl-topbar {
  border-color: rgba(224,230,224,.94);
  background: rgba(255,255,255,.9);
  box-shadow: 0 6px 22px rgba(55,70,61,.035);
  backdrop-filter: blur(18px) saturate(125%);
}
.sl-brand-mark {
  background: var(--sla-accent-soft);
  color: transparent;
}
.sl-brand-mark::before { background: var(--sla-accent-deep); }
.sl-brand-mark::after { background: rgba(114,154,128,.12); }
.sl-user-chip {
  border-color: var(--sla-border);
  background: #fafbf9;
}

.sl-sidebar,
.sl-panel {
  border-color: var(--sla-border);
  background: rgba(255,255,255,.94);
  box-shadow: var(--sla-shadow);
  backdrop-filter: blur(20px) saturate(120%);
}
.sl-sidebar-title { color: #8a958d; }
.sl-list-nav-item {
  border-color: transparent;
  background: transparent;
  color: var(--sla-muted-strong);
}
.sl-list-nav-item:hover {
  border-color: var(--sla-border);
  background: var(--sla-surface-soft);
}
.sl-list-nav-item.is-active {
  border-color: #d8e4dc;
  background: var(--sla-accent-soft);
  color: var(--sla-accent-deep);
  box-shadow: inset 0 0 0 1px rgba(114,154,128,.035);
}
.sl-list-nav-item.is-active .sl-list-nav-copy small { color: #7c9183; }
.sl-list-nav-badge { background: var(--sla-surface-strong); color: var(--sla-muted-strong); }
.sl-list-nav-item.is-active .sl-list-nav-badge {
  background: rgba(255,255,255,.78);
  color: var(--sla-accent-deep);
}

.sl-panel::before {
  width: 250px;
  height: 250px;
  top: -185px;
  right: -105px;
  background: radial-gradient(circle, rgba(114,154,128,.11), transparent 69%);
  filter: none;
}
.sl-eyebrow { color: #7d8a82; }
.sl-eyebrow::before {
  background: var(--sla-accent);
  box-shadow: 0 0 0 4px var(--sla-accent-soft);
}
.sl-title {
  color: var(--sla-text);
  font-weight: 780;
  letter-spacing: -.052em;
}
.sl-subtitle { color: var(--sla-muted); }

.sl-progress-wrap {
  border-color: var(--sla-border);
  background: #fafbf9;
}
.sl-progress-track { background: #e9ede8; }
.sl-progress-bar {
  background: linear-gradient(90deg, #769d83, #a7bda8);
}

.sl-add-form {
  border-color: var(--sla-border-strong);
  background: #ffffff;
}
.sl-add-form::before { background: var(--sla-accent-soft); }
.sl-add-form::after { background: var(--sla-accent-deep); }
.sl-add-form:focus-within {
  border-color: #9fb7a7;
  box-shadow: 0 0 0 4px rgba(114,154,128,.11);
}
.sl-add-input::placeholder { color: #a0aaa3; }

.sl-filters,
.sl-tabs { background: #f0f3ef; }
.sl-filter.is-active,
.sl-tab.is-active {
  color: var(--sla-accent-deep);
  background: white;
  box-shadow: 0 1px 5px rgba(55,70,61,.07);
}

.sl-item {
  border-color: var(--sla-border);
  background: #ffffff;
}
.sl-item:hover {
  border-color: #d2ddd5;
  background: #fdfefd;
  box-shadow: 0 7px 22px rgba(55,70,61,.045);
}
.sl-item.is-completed { background: #f7f9f6; }
.sl-checkbox {
  border-color: #b9c5bc;
  background: white;
}
.sl-checkbox:hover { border-color: var(--sla-accent); }
.sl-checkbox:checked {
  border-color: var(--sla-accent);
  background: var(--sla-accent);
}
.sl-checkbox:checked::after { background: white; }
.sl-item-meta span {
  border-color: #e7ebe7;
  background: #f7f9f6;
  color: var(--sla-muted-strong);
}

.sl-empty-icon {
  border-color: #dbe4dd;
  background: var(--sla-accent-soft);
  box-shadow: 9px 9px 0 #f0f3e5;
}
.sl-empty-icon::before { background: var(--sla-accent-deep); }

.sl-btn {
  background: var(--sla-accent);
  color: white;
}
.sl-btn:hover { background: var(--sla-accent-hover); }
.sl-btn-secondary {
  border-color: var(--sla-border);
  background: #ffffff;
  color: var(--sla-muted-strong);
}
.sl-btn-secondary:hover {
  border-color: #c6d2c8;
  background: var(--sla-surface-soft);
  color: var(--sla-accent-deep);
}
.sl-btn-ghost:hover { background: var(--sla-surface-strong); }
.sl-icon-btn {
  border-color: var(--sla-border);
  background: rgba(255,255,255,.94);
  color: var(--sla-muted-strong);
}
.sl-icon-btn:hover {
  border-color: #c7d3ca;
  background: var(--sla-accent-faint);
  color: var(--sla-accent-deep);
}
#sl-new-list,
.sl-add-form .sl-btn {
  background: var(--sla-accent);
  color: white;
}
#sl-new-list:hover,
.sl-add-form .sl-btn:hover {
  background: var(--sla-accent-hover);
  color: white;
}

.sl-modal {
  background: rgba(55,65,59,.28);
  backdrop-filter: blur(8px);
}
.sl-dialog {
  border-color: rgba(255,255,255,.9);
  background: white;
}
.sl-input, .sl-textarea, .sl-select { background: #f8faf7; }
.sl-input:focus, .sl-textarea:focus, .sl-select:focus {
  border-color: #9fb7a7;
  box-shadow: 0 0 0 4px rgba(114,154,128,.1);
}
.sl-menu { border-color: var(--sla-border); box-shadow: 0 16px 45px rgba(55,70,61,.12); }
.sl-toast {
  border: 1px solid #dce5de;
  background: rgba(255,255,255,.97);
  color: var(--sla-text);
  box-shadow: 0 14px 38px rgba(55,70,61,.12);
}
.sl-spinner {
  border-color: #e1e7e2;
  border-top-color: var(--sla-accent);
  border-right-color: #a9beae;
}
#sl-share-button::before { background: var(--sla-muted-strong); }
#sl-share-button:hover::before { background: var(--sla-accent-deep); }

@media (min-width: 940px) {
  .sl-sidebar {
    border-color: var(--sla-border);
    background: rgba(255,255,255,.94);
    box-shadow: var(--sla-shadow);
  }
  .sl-sidebar-title { color: #8a958d; }
  .sl-list-nav-item {
    border-color: transparent;
    background: transparent;
    color: var(--sla-muted-strong);
  }
  .sl-list-nav-item:hover {
    border-color: var(--sla-border);
    background: var(--sla-surface-soft);
  }
  .sl-list-nav-item.is-active {
    border-color: #d8e4dc;
    background: var(--sla-accent-soft);
    color: var(--sla-accent-deep);
  }
  .sl-list-nav-copy small { color: var(--sla-muted); }
  .sl-list-nav-item.is-active .sl-list-nav-copy small { color: #7c9183; }
  .sl-list-nav-badge {
    background: var(--sla-surface-strong);
    color: var(--sla-muted-strong);
  }
  .sl-list-nav-item.is-active .sl-list-nav-badge {
    background: rgba(255,255,255,.78);
    color: var(--sla-accent-deep);
  }
  .sl-sidebar-foot { border-top-color: var(--sla-border); }
  .sl-sidebar-foot .sl-btn-secondary {
    border-color: var(--sla-border);
    background: #fafbf9;
    color: var(--sla-muted-strong);
  }
  .sl-sidebar-foot .sl-btn-secondary:hover {
    border-color: #c7d3ca;
    background: var(--sla-accent-faint);
    color: var(--sla-accent-deep);
  }
  #sl-new-list { background: var(--sla-accent); color: white; }
}

@media (max-width: 679px) {
  .sl-sidebar { background: rgba(255,255,255,.94); }
}


/* ========================================================================
   Mobile fit & centered control patch — 0.5.1
   Fix icon alignment, prevent button text overflow and keep auth dialogs
   inside the viewport on narrow devices.
   ======================================================================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.sl-shell,
.sl-panel,
.sl-panel-head,
.sl-head-actions,
.sl-dialog,
.sl-dialog-head,
.sl-dialog-body,
.sl-form,
.sl-form-row,
.sl-form-actions,
.sl-tabs,
.sl-share-link,
.sl-member,
.sl-inline-message {
  min-width: 0;
}

.sl-btn,
.sl-icon-btn,
#sl-auth-button,
#sl-share-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  vertical-align: middle;
}

.sl-btn {
  white-space: normal;
  word-break: break-word;
}

.sl-icon-btn {
  padding: 0;
  line-height: 0;
}

#sl-auth-button::after,
#sl-share-button::before {
  display: block;
  flex: 0 0 auto;
  margin: 0;
}

#sl-share-button {
  color: transparent;
}

.sl-modal {
  padding: 12px;
}

.sl-dialog {
  width: min(540px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  overflow-x: hidden;
}

.sl-dialog-head,
.sl-dialog-body {
  width: 100%;
}

.sl-dialog input,
.sl-dialog textarea,
.sl-dialog select,
.sl-dialog button {
  max-width: 100%;
}

@media (max-width: 640px) {
  .sl-dialog {
    border-radius: 18px;
  }

  .sl-dialog-head {
    gap: 10px;
    padding: 18px 18px 0;
  }

  .sl-dialog-head h2 {
    font-size: 21px;
  }

  .sl-dialog-body {
    padding: 16px 18px 20px;
  }

  .sl-form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sl-form-actions .sl-btn,
  .sl-form-actions .sl-btn-secondary,
  .sl-form-actions .sl-btn-danger,
  .sl-form-actions .sl-btn-ghost {
    width: 100%;
  }

  .sl-tabs {
    grid-template-columns: 1fr;
  }

  .sl-tab {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .sl-topbar-actions {
    gap: 8px;
  }

  #sl-auth-button {
    width: 44px;
    min-width: 44px;
    padding: 0;
    gap: 0;
    font-size: 0;
  }

  #sl-auth-button span {
    display: none;
  }

  #sl-auth-button::after {
    width: 18px;
    height: 18px;
  }

  #sl-share-button,
  .sl-icon-btn {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  #sl-share-button::before {
    width: 18px;
    height: 18px;
  }

  .sl-add-form {
    grid-template-columns: auto minmax(0, 1fr) 46px;
  }

  .sl-add-form .sl-btn {
    width: 46px;
    min-width: 46px;
    padding: 0;
    font-size: 0;
  }

  .sl-add-form .sl-btn::after {
    display: block;
    margin: 0;
  }

  .sl-share-link,
  .sl-member {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================
   Mobile sizing and control alignment fixes — 0.5.2
   ======================================================================== */
html,
body,
.sl-app,
.sl-shell {
  max-width: 100%;
  overflow-x: hidden;
}

.sl-btn,
.sl-icon-btn,
.sl-tab,
.sl-filter {
  min-width: 0;
  max-width: 100%;
}

.sl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sl-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  text-align: center;
  overflow: hidden;
}

.sl-icon-btn::before,
.sl-icon-btn::after {
  flex: 0 0 auto;
  margin: 0;
  line-height: 1;
}

/* Remove the original text glyphs and render one consistently centered icon. */
#sl-share-button,
#sl-new-list,
#sl-list-menu-button,
[data-item-menu],
[data-close-modal],
[data-remove-member] {
  color: var(--sla-muted-strong);
  font-size: 0 !important;
  text-indent: 0;
}

#sl-share-button::before {
  position: static;
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
}

#sl-new-list::before {
  content: "+";
  display: block;
  color: currentColor;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-.5px);
}

#sl-list-menu-button::before,
[data-item-menu]::before {
  content: "•••";
  display: block;
  color: currentColor;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  transform: translateY(-2px);
}

[data-close-modal]::before,
[data-remove-member]::before {
  content: "×";
  display: block;
  color: currentColor;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

/* The account control has its own icon; prevent older mobile rules from adding
   a second emoji or shifting the content. */
#sl-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#sl-auth-button::after {
  display: block;
  flex: 0 0 16px;
  margin: 0;
}

.sl-modal {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.sl-dialog {
  width: min(540px, calc(100vw - 20px));
  max-width: calc(100vw - 20px);
  min-width: 0;
  max-height: min(90vh, 780px);
  max-height: min(90dvh, 780px);
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.sl-dialog-head,
.sl-dialog-head > div,
.sl-dialog-body,
.sl-form,
.sl-field,
.sl-form-row,
.sl-form-actions,
.sl-tabs,
.sl-member,
.sl-share-link {
  min-width: 0;
  max-width: 100%;
}

.sl-dialog-head h2,
.sl-dialog-head p,
.sl-inline-message,
.sl-member strong,
.sl-member small {
  overflow-wrap: anywhere;
}

.sl-input,
.sl-textarea,
.sl-select,
.sl-share-link input {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 679px) {
  .sl-modal {
    align-items: end;
    padding: 8px;
  }

  .sl-dialog {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
  }

  .sl-dialog-head {
    gap: 8px;
    padding: 20px 17px 0;
  }

  .sl-dialog-head h2 {
    font-size: clamp(21px, 7vw, 25px);
  }

  .sl-dialog-body {
    padding: 18px 17px max(20px, env(safe-area-inset-bottom));
  }

  .sl-form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .sl-form-actions .sl-btn {
    width: 100%;
    min-height: 44px;
    padding-inline: 12px;
  }

  .sl-btn-full {
    width: 100%;
  }

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

  .sl-share-link .sl-btn {
    width: 100%;
  }

  .sl-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sl-tab {
    padding-inline: 8px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .sl-shell {
    padding-inline: 7px;
  }

  .sl-topbar {
    gap: 7px;
  }

  .sl-topbar-actions {
    gap: 5px;
    min-width: 0;
  }

  .sl-user-chip {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #sl-auth-button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    overflow: hidden;
  }

  #sl-auth-button span {
    display: none;
  }

  .sl-form-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .sl-form-actions .sl-btn {
    width: 100%;
  }
}


/* ========================================================================
   Final mobile icon centering fixes — 0.5.3
   ======================================================================== */
.sl-empty-icon {
  position: relative;
  font-size: 0 !important;
  line-height: 0 !important;
}

.sl-empty-icon::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

#sl-share-button,
#sl-new-list,
#sl-list-menu-button,
[data-item-menu],
[data-close-modal],
[data-remove-member] {
  position: relative;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: 0;
  overflow: hidden;
}

#sl-share-button::before,
#sl-new-list::before,
#sl-list-menu-button::before,
[data-item-menu]::before,
[data-close-modal]::before,
[data-remove-member]::before {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
}

#sl-share-button::before {
  transform: translate(-50%, -50%);
}

#sl-new-list::before {
  transform: translate(-50%, -52%);
}

#sl-list-menu-button::before,
[data-item-menu]::before {
  transform: translate(-50%, -57%);
}

[data-close-modal]::before,
[data-remove-member]::before {
  transform: translate(-50%, -52%);
}

@media (max-width: 679px) {
  .sl-add-form .sl-btn {
    position: relative;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent;
    text-indent: 0;
    overflow: hidden;
  }

  .sl-add-form .sl-btn::after {
    content: "+";
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    margin: 0;
    transform: translate(-50%, -53%);
    color: var(--sla-ink);
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
  }
}

@media (max-width: 500px) {
  #sl-auth-button {
    position: relative;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden;
  }

  #sl-auth-button::after {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
  }
}


/* ========================================================================
   Mobile add-composer simplification — 0.5.4
   Keep only one plus button on mobile.
   ======================================================================== */
@media (max-width: 679px) {
  .sl-add-form {
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 8px;
  }

  .sl-add-form::before,
  .sl-add-form::after {
    display: none !important;
    content: none !important;
  }

  .sl-add-input {
    padding-left: 10px;
  }

  .sl-add-form .sl-btn {
    position: relative;
    width: 46px;
    min-width: 46px;
    padding: 0;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent;
    overflow: hidden;
  }

  .sl-add-form .sl-btn::after {
    content: "+";
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    margin: 0;
    transform: translate(-50%, -52%);
    color: var(--sla-ink);
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
  }
}


/* ========================================================================
   Mobile add button vertical centering fix — 0.5.5
   ======================================================================== */
@media (max-width: 679px) {
  .sl-add-form .sl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sl-add-form .sl-btn::after {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
  }
}


/* ========================================================================
   Vector icon centering fixes — 0.5.6
   Replace font glyph icons with centered vector masks.
   ======================================================================== */
#sl-new-list,
#sl-share-button,
#sl-list-menu-button,
[data-item-menu],
[data-close-modal],
[data-remove-member],
.sl-add-form .sl-btn {
  position: relative;
  overflow: hidden;
}

#sl-new-list::before,
#sl-share-button::before,
#sl-list-menu-button::before,
[data-item-menu]::before,
[data-close-modal]::before,
[data-remove-member]::before,
.sl-add-form .sl-btn::after {
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  display: block;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  line-height: 1 !important;
}

/* Plus buttons use vector icon instead of font glyph */
#sl-new-list::before,
.sl-add-form .sl-btn::after {
  content: "" !important;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Close/remove buttons use vector X icon */
[data-close-modal]::before,
[data-remove-member]::before {
  content: "" !important;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* More/options buttons use centered dots vector */
#sl-list-menu-button::before,
[data-item-menu]::before {
  content: "" !important;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='5' cy='12' r='2.2'/%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3Ccircle cx='19' cy='12' r='2.2'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='5' cy='12' r='2.2'/%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3Ccircle cx='19' cy='12' r='2.2'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Ensure share icon stays perfectly centered too */
#sl-share-button::before {
  width: 17px;
  height: 17px;
}

/* Keep account icon centered on very small screens */
@media (max-width: 500px) {
  #sl-auth-button::after {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
}

/* Mobile add button specific sizing */
@media (max-width: 679px) {
  .sl-add-form .sl-btn::after {
    width: 16px;
    height: 16px;
  }
}


/* ========================================================================
   Anonymous sharing visibility guard — 0.5.7
   The share action is never rendered for local, device-only lists.
   ======================================================================== */
#sl-share-button[hidden],
#sl-share-button[aria-hidden="true"] {
  display: none !important;
}


/* ========================================================================
   Account dialog polish — 0.5.8
   ======================================================================== */
.sl-dialog {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sl-dialog::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.sl-delete-account-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 20px;
  border: 1px solid var(--sla-danger);
  border-radius: 11px;
  background: transparent;
  color: var(--sla-danger);
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.sl-delete-account-trigger:hover {
  border-color: var(--sla-danger);
  background: var(--sla-danger-soft);
  color: var(--sla-danger);
}

.sl-delete-account-trigger:active {
  transform: translateY(1px);
}

.sl-delete-account-trigger:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(185, 103, 103, .14);
}


/* ========================================================================
   Fresh energy palette — 0.6.0
   Brighter, optimistic accents without dark panels or harsh contrast.
   ======================================================================== */
:root {
  --sla-bg: #f7fcf9;
  --sla-bg-deep: #eaf7ef;
  --sla-surface: #ffffff;
  --sla-surface-soft: #f3faf6;
  --sla-surface-strong: #e8f5ed;
  --sla-text: #26382e;
  --sla-muted: #718078;
  --sla-muted-strong: #52685b;
  --sla-border: #d9e9df;
  --sla-border-strong: #c5ddce;
  --sla-accent: #329b63;
  --sla-accent-hover: #288553;
  --sla-accent-deep: #237448;
  --sla-accent-soft: #ddf6e7;
  --sla-accent-faint: #eefbf3;
  --sla-warm: #ffbd63;
  --sla-warm-hover: #f2a943;
  --sla-warm-soft: #fff1dc;
  --sla-danger: #c35f63;
  --sla-danger-soft: #fff0f0;
  --sla-ink: #237448;
  --sla-ink-soft: #3c8b61;
  --sla-shadow-sm: 0 8px 24px rgba(38, 104, 69, .065);
  --sla-shadow: 0 18px 48px rgba(38, 104, 69, .085);
  --sla-shadow-strong: 0 28px 76px rgba(38, 104, 69, .14);
}

html { background: var(--sla-bg); }
body {
  background:
    radial-gradient(circle at 7% 3%, rgba(255, 189, 99, .20), transparent 25rem),
    radial-gradient(circle at 93% 1%, rgba(73, 190, 124, .17), transparent 29rem),
    radial-gradient(circle at 88% 78%, rgba(112, 202, 218, .10), transparent 31rem),
    linear-gradient(180deg, #fbfefc 0%, var(--sla-bg) 48%, #eff8f3 100%);
}
body::before {
  opacity: .26;
  background-image: radial-gradient(rgba(50, 155, 99, .15) .55px, transparent .55px);
  background-size: 23px 23px;
  mask-image: linear-gradient(to bottom, black, transparent 42%);
}
::selection { background: rgba(50, 155, 99, .22); }

.sl-topbar {
  border-color: rgba(215, 233, 222, .95);
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,252,248,.94));
  box-shadow: 0 8px 28px rgba(42, 111, 73, .055);
}
.sl-brand-mark {
  background: linear-gradient(145deg, #50bf7e 0%, var(--sla-accent) 58%, var(--sla-accent-deep) 100%);
  box-shadow: 0 12px 28px rgba(50, 155, 99, .22);
}
.sl-brand-mark::before { background: #ffffff; }
.sl-brand-mark::after { background: rgba(255, 214, 143, .30); }
.sl-user-chip {
  border-color: #d9eadf;
  background: rgba(248,253,250,.96);
}

.sl-sidebar,
.sl-panel {
  border-color: rgba(215, 233, 222, .95);
  background: rgba(255,255,255,.965);
  box-shadow: var(--sla-shadow);
}
.sl-sidebar-title { color: #789183; }
.sl-list-nav-item {
  color: var(--sla-muted-strong);
}
.sl-list-nav-item:hover {
  border-color: #d2e7d9;
  background: #f5fbf7;
}
.sl-list-nav-item.is-active {
  border-color: #bfe1cc;
  background: linear-gradient(135deg, #e5f8ec 0%, #f6fcf8 100%);
  color: var(--sla-accent-deep);
  box-shadow: inset 0 0 0 1px rgba(50,155,99,.035), 0 7px 19px rgba(50,155,99,.07);
}
.sl-list-nav-item.is-active::before {
  background: linear-gradient(180deg, #5bc985, var(--sla-accent));
}
.sl-list-nav-item.is-active .sl-list-nav-copy small { color: #668e76; }
.sl-list-nav-badge { background: #edf6f0; }
.sl-list-nav-item.is-active .sl-list-nav-badge {
  background: #ffffff;
  color: var(--sla-accent-deep);
  box-shadow: 0 3px 10px rgba(50,155,99,.08);
}

.sl-panel::before {
  background: radial-gradient(circle, rgba(76, 190, 124, .16), transparent 69%);
}
.sl-eyebrow { color: #668a75; }
.sl-eyebrow::before {
  background: #42b273;
  box-shadow: 0 0 0 4px #dff6e7;
}
.sl-title { color: #25382d; }

.sl-progress-wrap {
  border-color: #d9eadf;
  background: linear-gradient(135deg, #fbfefc, #f4faf6);
}
.sl-progress-copy span:last-child { color: var(--sla-accent-deep); }
.sl-progress-track { background: #e2eee6; }
.sl-progress-bar {
  background: linear-gradient(90deg, var(--sla-accent) 0%, #58c681 62%, #82d89f 100%);
  box-shadow: 0 3px 10px rgba(50,155,99,.18);
}

.sl-add-form {
  border-color: #cfe4d6;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(43, 112, 75, .055);
}
.sl-add-form::before { background: #e0f6e8; }
.sl-add-form::after { background: var(--sla-accent); }
.sl-add-form:focus-within {
  border-color: #70be8e;
  box-shadow: 0 0 0 4px rgba(50,155,99,.12), 0 12px 30px rgba(50,155,99,.07);
}
.sl-add-input::placeholder { color: #94a49a; }

.sl-filters,
.sl-tabs {
  border: 1px solid #e0eee5;
  background: #edf6f0;
}
.sl-filter,
.sl-tab { color: #6b7d72; }
.sl-filter:hover,
.sl-tab:hover { color: var(--sla-accent-deep); }
.sl-filter.is-active,
.sl-tab.is-active {
  color: var(--sla-accent-deep);
  background: #ffffff;
  box-shadow: 0 4px 13px rgba(43,112,75,.08);
}

.sl-item {
  border-color: #dcebe1;
  background: #ffffff;
}
.sl-item:hover {
  border-color: #c8e1d1;
  background: #fcfffd;
  box-shadow: 0 9px 25px rgba(43,112,75,.06);
}
.sl-item.is-completed {
  background: linear-gradient(135deg, #f0faf4, #f8fcf9);
}
.sl-item.is-completed::after { background: #55be7c; }
.sl-checkbox {
  border-color: #adc9b7;
  background: white;
}
.sl-checkbox:hover { border-color: #46af72; }
.sl-checkbox:checked {
  border-color: var(--sla-accent);
  background: linear-gradient(145deg, #53bd7d, var(--sla-accent));
  box-shadow: 0 5px 14px rgba(50,155,99,.20);
}
.sl-item-meta span {
  border-color: #e0ece4;
  background: #f2f8f4;
}

.sl-empty-icon {
  border-color: #cae6d4;
  background: linear-gradient(145deg, #ddf6e7, #f8fdf9);
  box-shadow: 9px 9px 0 var(--sla-warm-soft);
}
.sl-empty-icon::before { background: var(--sla-accent-deep); }

.sl-btn {
  background: linear-gradient(145deg, #3fae70, var(--sla-accent));
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(50,155,99,.16);
}
.sl-btn:hover {
  background: linear-gradient(145deg, var(--sla-accent), var(--sla-accent-hover));
  box-shadow: 0 11px 24px rgba(50,155,99,.20);
}
.sl-btn-secondary {
  border-color: #d4e6da;
  background: #ffffff;
  color: var(--sla-muted-strong);
  box-shadow: none;
}
.sl-btn-secondary:hover {
  border-color: #aed3bc;
  background: #f0faf4;
  color: var(--sla-accent-deep);
}
.sl-btn-ghost:hover { background: #eaf6ee; }
.sl-icon-btn {
  border-color: #d6e7dc;
  background: rgba(255,255,255,.98);
  color: #587064;
}
.sl-icon-btn:hover {
  border-color: #acd2ba;
  background: #eefaf3;
  color: var(--sla-accent-deep);
  box-shadow: 0 7px 18px rgba(50,155,99,.08);
}

#sl-new-list,
.sl-add-form .sl-btn {
  background: linear-gradient(145deg, #ffc879, var(--sla-warm));
  color: #694611;
  box-shadow: 0 8px 19px rgba(222, 148, 49, .16);
}
#sl-new-list:hover,
.sl-add-form .sl-btn:hover {
  background: linear-gradient(145deg, var(--sla-warm), var(--sla-warm-hover));
  color: #5c3b0d;
  box-shadow: 0 10px 22px rgba(222, 148, 49, .20);
}

.sl-modal { background: rgba(44, 67, 54, .28); }
.sl-dialog {
  border-color: rgba(255,255,255,.94);
  background: #ffffff;
  box-shadow: 0 26px 76px rgba(38, 76, 54, .18);
}
.sl-input,
.sl-textarea,
.sl-select {
  border-color: #d8e8de;
  background: #f8fcf9;
}
.sl-input:focus,
.sl-textarea:focus,
.sl-select:focus {
  border-color: #73bf91;
  box-shadow: 0 0 0 4px rgba(50,155,99,.11);
}
.sl-inline-message.is-success {
  border-color: #c4e7d1;
  background: #e9f9ef;
  color: var(--sla-accent-deep);
}
.sl-toast {
  border-color: #d3e7da;
  background: rgba(255,255,255,.985);
  box-shadow: 0 16px 42px rgba(38, 92, 60, .14);
}
.sl-spinner {
  border-color: #dcebe1;
  border-top-color: var(--sla-accent);
  border-right-color: var(--sla-warm);
}
#sl-share-button::before { background: #5c7468; }
#sl-share-button:hover::before { background: var(--sla-accent-deep); }

.sl-delete-account-trigger {
  border-color: #c76b6e;
  color: #b8575b;
}
.sl-delete-account-trigger:hover {
  border-color: #bd5d61;
  background: #fff2f2;
  color: #aa4b50;
}

@media (min-width: 940px) {
  .sl-sidebar {
    border-color: rgba(215, 233, 222, .95);
    background: rgba(255,255,255,.965);
  }
  .sl-list-nav-item:hover { background: #f5fbf7; }
  .sl-list-nav-item.is-active {
    border-color: #bfe1cc;
    background: linear-gradient(135deg, #e5f8ec 0%, #f6fcf8 100%);
  }
  .sl-list-nav-item.is-active .sl-list-nav-copy small { color: #668e76; }
  .sl-sidebar-foot .sl-btn-secondary {
    border-color: #d4e6da;
    background: #f8fcf9;
  }
  .sl-sidebar-foot .sl-btn-secondary:hover {
    border-color: #aed3bc;
    background: #eefaf3;
  }
}

@media (max-width: 679px) {
  .sl-sidebar,
  .sl-panel { background: rgba(255,255,255,.97); }
  .sl-list-nav-item.is-active {
    background: linear-gradient(135deg, #e4f8eb, #f7fcf9);
  }
}


/* ========================================================================
   Soft energetic blue refresh — 0.6.1
   ======================================================================== */
:root {
  --sla-bg: #f5f8ff;
  --sla-bg-deep: #e8efff;
  --sla-surface: #ffffff;
  --sla-surface-soft: #f7f9ff;
  --sla-surface-strong: #eef3ff;
  --sla-text: #182235;
  --sla-muted: #70809a;
  --sla-muted-strong: #53637d;
  --sla-border: #dbe5f3;
  --sla-border-strong: #c6d4e9;
  --sla-accent: #3f8cff;
  --sla-accent-hover: #2f79ec;
  --sla-accent-deep: #235eb9;
  --sla-accent-soft: #e7f1ff;
  --sla-accent-faint: #f4f8ff;
  --sla-warm: #8c7cff;
  --sla-warm-hover: #7865f3;
  --sla-warm-soft: #f1efff;
  --sla-shadow-sm: 0 8px 24px rgba(31, 74, 146, .07);
  --sla-shadow: 0 22px 64px rgba(31, 74, 146, .10);
  --sla-shadow-strong: 0 30px 90px rgba(24, 53, 107, .16);
}

body.sl-theme-app {
  background:
    radial-gradient(circle at 0 0, rgba(140,124,255,.12) 0, transparent 30%),
    radial-gradient(circle at 100% 0, rgba(63,140,255,.11) 0, transparent 28%),
    linear-gradient(180deg, #fbfcff 0, var(--sla-bg) 44%, #eef4ff 100%);
}

.sl-brand-mark {
  background: linear-gradient(145deg, var(--sla-accent) 0%, var(--sla-accent-deep) 100%);
}

.sl-title-mark,
.sl-list-nav-item.is-active .sl-list-nav-badge,
.sl-item::before,
#sl-new-list,
.sl-add-form .sl-btn {
  background: var(--sla-warm);
}

.sl-title-mark {
  box-shadow: 0 0 0 4px var(--sla-warm-soft);
}

.sl-progress-bar {
  background: linear-gradient(90deg, var(--sla-accent), #76a8ff);
  box-shadow: 0 3px 12px rgba(63,140,255,.24);
}

.sl-add-form::before,
.sl-empty-icon {
  background: var(--sla-accent-soft);
  color: var(--sla-accent);
}

.sl-add-form::after {
  background: var(--sla-warm);
}

.sl-item.is-completed {
  background: linear-gradient(135deg, var(--sla-accent-faint), #ffffff);
}

.sl-checkbox:hover {
  border-color: var(--sla-accent);
}

.sl-checkbox:checked {
  border-color: var(--sla-accent);
  background: linear-gradient(145deg, #6aa8ff, var(--sla-accent));
  box-shadow: 0 5px 14px rgba(63,140,255,.24);
}

.sl-btn {
  background: linear-gradient(145deg, #5a9dff, var(--sla-accent));
  box-shadow: 0 8px 19px rgba(63,140,255,.18);
}

.sl-btn:hover {
  background: linear-gradient(145deg, var(--sla-accent), var(--sla-accent-hover));
  box-shadow: 0 12px 24px rgba(63,140,255,.22);
}

#sl-new-list,
.sl-add-form .sl-btn {
  color: white;
  box-shadow: 0 8px 18px rgba(140,124,255,.22);
}

#sl-new-list:hover,
.sl-add-form .sl-btn:hover {
  background: var(--sla-warm-hover);
  color: white;
}

.sl-filter.is-active,
.sl-tab.is-active,
.sl-list-nav-item.is-active {
  box-shadow: 0 6px 16px rgba(35,94,185,.08);
}

.sl-shared-banner,
.sl-login-required {
  background: linear-gradient(135deg, var(--sla-accent-soft), #fff);
}

.sl-spinner {
  border-top-color: var(--sla-accent);
  border-right-color: var(--sla-warm);
}


/* ========================================================================
   Contrast polish for blue palette — 0.6.2
   ======================================================================== */
.sl-btn,
#sl-new-list,
.sl-add-form .sl-btn,
.sl-list-nav-item.is-active .sl-list-nav-badge {
  color: #ffffff !important;
}

.sl-btn,
#sl-new-list,
.sl-add-form .sl-btn {
  text-shadow: 0 1px 1px rgba(20, 35, 65, .18);
}

#sl-new-list::before,
.sl-add-form .sl-btn::after {
  color: #ffffff !important;
  background: currentColor;
}

.sl-list-nav-item.is-active .sl-list-nav-badge {
  border-color: rgba(255,255,255,.18);
}

.sl-checkbox:checked::after {
  border-color: #ffffff;
}

.sl-spinner {
  color: var(--sla-accent-deep);
}

/* Slightly stronger contrast for colored action surfaces */
#sl-new-list,
.sl-add-form .sl-btn {
  box-shadow: 0 8px 18px rgba(88, 94, 210, .26);
}

.sl-btn:hover,
#sl-new-list:hover,
.sl-add-form .sl-btn:hover {
  color: #ffffff !important;
}


/* ========================================================================
   Distinct soft-color header — 0.6.3
   ======================================================================== */
.sl-topbar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: #c7d8f3;
  background:
    linear-gradient(135deg, rgba(232,243,255,.98) 0%, rgba(239,238,255,.97) 100%);
  box-shadow:
    0 12px 34px rgba(41, 86, 157, .10),
    inset 0 1px 0 rgba(255,255,255,.88);
}

.sl-topbar::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 190px;
  height: 190px;
  top: -130px;
  right: 8%;
  border-radius: 50%;
  background: rgba(140,124,255,.12);
  filter: blur(2px);
  pointer-events: none;
}

.sl-topbar::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 150px;
  height: 150px;
  left: 22%;
  bottom: -125px;
  border-radius: 50%;
  background: rgba(63,140,255,.12);
  pointer-events: none;
}

.sl-topbar .sl-brand-text strong {
  color: #1d447f;
}

.sl-topbar .sl-brand-text span {
  color: #617699;
}

.sl-topbar .sl-user-chip {
  border-color: rgba(183,204,237,.9);
  background: rgba(255,255,255,.74);
  color: #4f668a;
  box-shadow: 0 5px 16px rgba(45,82,140,.06);
}

.sl-topbar #sl-auth-button {
  border-color: #bcd0ef;
  background: rgba(255,255,255,.88);
  color: #285fae;
  box-shadow: 0 6px 18px rgba(45,82,140,.08);
  text-shadow: none;
}

.sl-topbar #sl-auth-button:hover {
  border-color: #9dbbe8;
  background: #ffffff;
  color: #1f56a8;
  box-shadow: 0 9px 22px rgba(45,82,140,.12);
}

@media (max-width: 679px) {
  .sl-topbar {
    border-color: #cbdaf2;
    background: linear-gradient(135deg, rgba(234,244,255,.98), rgba(242,239,255,.97));
  }

  .sl-topbar::before {
    width: 130px;
    height: 130px;
    top: -92px;
    right: -12px;
  }

  .sl-topbar::after {
    display: none;
  }
}


/* ========================================================================
   Header account button contrast fix — 0.6.4
   ======================================================================== */
.sl-topbar #sl-auth-button {
  color: #285fae !important;
}

.sl-topbar #sl-auth-button:hover,
.sl-topbar #sl-auth-button:focus-visible {
  color: #1f56a8 !important;
}


/* ========================================================================
   Desktop sidebar content height + hidden scrollbar — 0.6.5
   ======================================================================== */
@media (min-width: 769px) {
  #sl-sidebar {
    height: fit-content;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #sl-sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
}


/* ========================================================================
   Frosted glass treatment for main containers — 0.6.6
   Fallback remains the standard solid/light design on browsers without support.
   ======================================================================== */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sl-sidebar,
  .sl-panel,
  .sl-dialog,
  .sla-plugin-notice,
  .sla-content {
    position: relative;
    border-color: rgba(255,255,255,.72);
    background:
      linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.56) 100%);
    -webkit-backdrop-filter: saturate(160%) blur(22px);
    backdrop-filter: saturate(160%) blur(22px);
    box-shadow:
      0 16px 44px rgba(39, 77, 145, .10),
      inset 0 1px 0 rgba(255,255,255,.55);
  }

  .sl-sidebar::before,
  .sl-panel::after,
  .sl-dialog::before,
  .sla-plugin-notice::before,
  .sla-content::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    background:
      linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,0) 38%),
      radial-gradient(circle at top right, rgba(255,255,255,.24), transparent 34%);
    opacity: .9;
  }

  .sl-sidebar > *,
  .sl-panel > *,
  .sl-dialog > *,
  .sla-plugin-notice > *,
  .sla-content > * {
    position: relative;
    z-index: 1;
  }

  .sl-panel::before {
    opacity: .55;
  }
}


/* ========================================================================
   Stronger frosted-glass transparency — 0.6.7
   ======================================================================== */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sl-sidebar,
  .sl-panel,
  .sl-dialog,
  .sla-plugin-notice,
  .sla-content {
    border-color: rgba(255,255,255,.58);
    background:
      linear-gradient(180deg, rgba(255,255,255,.54) 0%, rgba(255,255,255,.38) 100%);
    -webkit-backdrop-filter: saturate(170%) blur(24px);
    backdrop-filter: saturate(170%) blur(24px);
    box-shadow:
      0 16px 44px rgba(39, 77, 145, .09),
      inset 0 1px 0 rgba(255,255,255,.42);
  }

  .sl-sidebar::before,
  .sl-panel::after,
  .sl-dialog::before,
  .sla-plugin-notice::before,
  .sla-content::before {
    inset: 1px;
    background:
      linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,0) 38%),
      radial-gradient(circle at top right, rgba(255,255,255,.16), transparent 34%);
    opacity: .82;
  }

  .sl-panel::before {
    opacity: .42;
  }
}


/* ========================================================================
   Ultra-transparent frosted glass — 0.6.8
   ======================================================================== */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sl-sidebar,
  .sl-panel,
  .sl-dialog,
  .sla-plugin-notice,
  .sla-content {
    border-color: rgba(255,255,255,.42);
    background:
      linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.06) 100%);
    -webkit-backdrop-filter: saturate(180%) blur(28px);
    backdrop-filter: saturate(180%) blur(28px);
    box-shadow:
      0 18px 48px rgba(39, 77, 145, .10),
      inset 0 1px 0 rgba(255,255,255,.28);
  }

  .sl-sidebar::before,
  .sl-panel::after,
  .sl-dialog::before,
  .sla-plugin-notice::before,
  .sla-content::before {
    background:
      linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,0) 40%),
      radial-gradient(circle at top right, rgba(255,255,255,.08), transparent 36%);
    opacity: .72;
  }

  .sl-panel::before {
    opacity: .28;
  }
}


/* ========================================================================
   Increased horizontal header padding — 0.6.9
   ======================================================================== */
.sl-topbar {
  padding-left: 14px;
  padding-right: 14px;
}


/* ========================================================================
   Balanced frosted-glass opacity — 0.7.0
   ======================================================================== */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sl-sidebar,
  .sl-panel,
  .sl-dialog,
  .sla-plugin-notice,
  .sla-content {
    border-color: rgba(255,255,255,.76);
    background:
      linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.64) 100%);
    -webkit-backdrop-filter: saturate(155%) blur(22px);
    backdrop-filter: saturate(155%) blur(22px);
    box-shadow:
      0 16px 44px rgba(39, 77, 145, .10),
      inset 0 1px 0 rgba(255,255,255,.68);
  }

  .sl-sidebar::before,
  .sl-panel::after,
  .sl-dialog::before,
  .sla-plugin-notice::before,
  .sla-content::before {
    background:
      linear-gradient(135deg, rgba(255,255,255,.30), rgba(255,255,255,0) 40%),
      radial-gradient(circle at top right, rgba(255,255,255,.24), transparent 36%);
    opacity: .88;
  }

  .sl-panel::before {
    opacity: .50;
  }
}


/* ========================================================================
   Completed-list celebration dialog — 0.7.1
   ======================================================================== */
.sl-celebration {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.sl-celebration .sl-dialog-head {
  position: relative;
  z-index: 3;
}

.sl-celebration-body {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  padding-top: 12px;
  text-align: center;
}

.sl-celebration-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 2px 0 18px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 26px;
  background: linear-gradient(145deg, var(--sla-accent), var(--sla-warm));
  color: #fff;
  box-shadow:
    0 18px 38px rgba(63,140,255,.25),
    inset 0 1px 0 rgba(255,255,255,.42);
  font-size: 38px;
  font-weight: 950;
  line-height: 1;
  transform: rotate(-3deg);
  animation: sl-celebration-pop .55s cubic-bezier(.2,1.45,.4,1) both;
}

.sl-celebration-lead {
  max-width: 390px;
  margin: 0;
  color: var(--sla-text);
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.3;
}

.sl-celebration-copy {
  max-width: 360px;
  margin: 8px 0 22px;
  color: var(--sla-muted-strong);
  font-size: 13px;
  line-height: 1.55;
}

.sl-celebration-ok {
  width: min(280px, 100%);
  min-height: 50px;
  font-size: 14px;
}

.sl-celebration-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 15px;
}

.sl-celebration-subtle {
  min-height: 34px;
  padding: 6px 4px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--sla-muted-strong);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  transition: color .16s ease, border-color .16s ease, opacity .16s ease;
}

.sl-celebration-subtle:hover,
.sl-celebration-subtle:focus-visible {
  border-bottom-color: currentColor;
  color: var(--sla-accent-deep);
  outline: 0;
}

.sl-celebration-subtle.is-danger {
  color: var(--sla-danger);
  color: color-mix(in srgb, var(--sla-danger) 76%, var(--sla-muted-strong));
}

.sl-celebration-subtle.is-danger:hover,
.sl-celebration-subtle.is-danger:focus-visible {
  color: var(--sla-danger);
}

.sl-celebration-subtle:disabled,
.sl-celebration .sl-btn:disabled {
  cursor: wait;
  opacity: .52;
}

.sl-celebration #sl-celebration-message {
  width: 100%;
  margin-top: 14px;
}

.sl-celebration-confetti {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.sl-celebration-confetti i {
  position: absolute;
  top: -18px;
  left: var(--sl-confetti-left);
  width: 8px;
  height: 14px;
  border-radius: 3px;
  background: hsl(calc(215 + var(--sl-confetti-index) * 11) 82% 68%);
  opacity: .76;
  transform: rotate(calc(var(--sl-confetti-index) * 23deg));
  animation: sl-confetti-fall calc(1.7s + var(--sl-confetti-index) * .045s) ease-out calc(var(--sl-confetti-index) * .035s) both;
}

.sl-celebration-confetti i:nth-child(3n) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sla-warm);
}

.sl-celebration-confetti i:nth-child(4n) {
  background: var(--sla-accent);
}

@keyframes sl-celebration-pop {
  0% { opacity: 0; transform: scale(.55) rotate(-12deg); }
  70% { opacity: 1; transform: scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(-3deg); }
}

@keyframes sl-confetti-fall {
  0% { opacity: 0; transform: translate3d(0, -10px, 0) rotate(0deg); }
  12% { opacity: .8; }
  100% { opacity: 0; transform: translate3d(var(--sl-confetti-drift), 420px, 0) rotate(320deg); }
}

@media (max-width: 640px) {
  .sl-celebration-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    font-size: 32px;
  }

  .sl-celebration-secondary-actions {
    gap: 3px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sl-celebration-icon,
  .sl-celebration-confetti i {
    animation: none !important;
  }

  .sl-celebration-confetti {
    display: none;
  }
}


/* ========================================================================
   Popup opacity and readability — 0.7.2
   ======================================================================== */
.sl-dialog {
  background: rgba(255,255,255,.90);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sl-dialog {
    border-color: rgba(255,255,255,.88);
    background:
      linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.82) 100%);
    -webkit-backdrop-filter: saturate(150%) blur(22px);
    backdrop-filter: saturate(150%) blur(22px);
    box-shadow:
      0 22px 58px rgba(30, 58, 112, .18),
      inset 0 1px 0 rgba(255,255,255,.82);
  }

  .sl-dialog::before {
    background:
      linear-gradient(135deg, rgba(255,255,255,.34), rgba(255,255,255,0) 42%),
      radial-gradient(circle at top right, rgba(255,255,255,.26), transparent 38%);
    opacity: .82;
  }
}


/* ========================================================================
   Guest-first authentication dialog — 0.7.3
   ======================================================================== */
.sl-auth-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.sl-auth-actions .sl-btn {
  width: 100%;
  min-height: 46px;
}

.sl-auth-actions .sl-btn-secondary {
  border-color: rgba(63, 140, 255, .26);
  background: rgba(255, 255, 255, .72);
  color: var(--sla-accent-deep);
  box-shadow: none;
  text-shadow: none;
}

.sl-auth-actions .sl-btn-secondary:hover,
.sl-auth-actions .sl-btn-secondary:focus-visible {
  border-color: rgba(63, 140, 255, .42);
  background: rgba(231, 241, 255, .9);
  color: var(--sla-accent-deep);
}

.sl-auth-help {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.sl-auth-forgot-link {
  appearance: none;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: var(--sla-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.sl-auth-forgot-link:hover,
.sl-auth-forgot-link:focus-visible {
  color: var(--sla-accent-deep);
  text-decoration-color: currentColor;
}

@media (max-width: 520px) {
  .sl-auth-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ========================================================================
   Visit as Guest contrast fix — 0.7.4
   ======================================================================== */
.sl-auth-actions .sl-btn-secondary {
  border-color: rgba(35, 94, 185, .34);
  background: rgba(255, 255, 255, .88);
  color: #235eb9 !important;
  text-shadow: none !important;
}

.sl-auth-actions .sl-btn-secondary:hover,
.sl-auth-actions .sl-btn-secondary:focus-visible {
  border-color: rgba(35, 94, 185, .52);
  background: rgba(231, 241, 255, .98);
  color: #184f9f !important;
  text-shadow: none !important;
}


/* ========================================================================
   Guest mode visual indicator — 0.7.5
   ======================================================================== */
.sl-guest-mode {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: -3px 0 14px 4px;
  padding: 9px 13px 9px 10px;
  border: 1px solid rgba(106, 119, 232, .28);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240, 243, 255, .88), rgba(232, 239, 255, .72));
  color: #274d9a;
  box-shadow: 0 8px 22px rgba(46, 80, 150, .08);
}

.sl-guest-mode[hidden] {
  display: none !important;
}

.sl-guest-mode-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, #8c7cff, #5e79e8);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 5px 13px rgba(94, 121, 232, .24);
}

.sl-guest-mode-copy {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.sl-guest-mode-copy strong {
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.sl-guest-mode-copy span {
  color: #687899;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.sl-user-chip.is-guest {
  display: flex;
  align-items: center;
  gap: 7px;
  border-color: rgba(106, 119, 232, .28);
  background: rgba(240, 243, 255, .86);
  color: #31559d;
}

.sl-user-chip.is-guest::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #7c6df2;
  box-shadow: 0 0 0 4px rgba(124,109,242,.12);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sl-guest-mode {
    background: linear-gradient(135deg, rgba(240,243,255,.66), rgba(232,239,255,.52));
    -webkit-backdrop-filter: saturate(150%) blur(16px);
    backdrop-filter: saturate(150%) blur(16px);
  }
}

@media (max-width: 680px) {
  .sl-guest-mode {
    width: 100%;
    margin: -2px 0 12px;
    border-radius: 17px;
  }

  .sl-guest-mode-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  .sl-guest-mode-copy span {
    white-space: normal;
  }
}


/* ========================================================================
   List actions menu stacking-context fix — 0.7.6
   ======================================================================== */
.sl-panel-head {
  z-index: 200;
  overflow: visible;
}

.sl-head-actions,
.sl-kebab-menu {
  position: relative;
  z-index: 210;
  overflow: visible;
}

#sl-list-menu,
.sl-kebab-menu > .sl-menu {
  z-index: 220;
}

.sl-progress-wrap,
.sl-add-form,
.sl-filters,
.sl-items,
.sl-empty {
  z-index: 1;
}


/* ========================================================================
   Shared-list indicator and role-aware tooltip — 0.7.7
   ======================================================================== */
.sl-list-nav-entry {
  position: relative;
  width: auto;
  min-width: min(235px, 78vw);
  flex: 0 0 auto;
}

.sl-list-nav-entry .sl-list-nav-item {
  width: 100%;
  min-width: 0;
}

.sl-list-nav-entry .sl-list-nav-copy strong {
  display: block;
  overflow: hidden;
  padding-right: 26px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-list-sharing-indicator {
  position: absolute;
  top: 11px;
  right: 47px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid rgba(63, 140, 255, .24);
  border-radius: 50%;
  background: rgba(231, 241, 255, .88);
  color: #2f6fcf;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(39, 84, 161, .10);
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.sl-list-sharing-indicator svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.sl-list-sharing-indicator:hover,
.sl-list-sharing-indicator:focus-visible,
.sl-list-sharing-indicator[aria-expanded="true"] {
  border-color: rgba(63, 140, 255, .44);
  background: #ffffff;
  color: var(--sla-accent-deep);
  box-shadow: 0 7px 18px rgba(39, 84, 161, .16);
  transform: translateY(-1px);
}

.sl-list-sharing-indicator:focus-visible {
  outline: 3px solid rgba(63, 140, 255, .19);
  outline-offset: 2px;
}

.sl-sharing-tooltip {
  position: fixed;
  z-index: 9998;
  visibility: hidden;
  max-height: min(360px, calc(100vh - 24px));
  overflow-y: auto;
  padding: 13px;
  border: 1px solid rgba(197, 213, 239, .88);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  color: var(--sla-text);
  box-shadow: 0 18px 48px rgba(30, 61, 119, .20);
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px) scale(.985);
  transform-origin: top center;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sl-sharing-tooltip::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.sl-sharing-tooltip.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sl-sharing-tooltip {
    border-color: rgba(255, 255, 255, .82);
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(245,249,255,.88));
    -webkit-backdrop-filter: saturate(150%) blur(20px);
    backdrop-filter: saturate(150%) blur(20px);
  }
}

.sl-sharing-tooltip-title {
  margin-bottom: 9px;
  color: #345b99;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.sl-sharing-tooltip-people {
  display: grid;
  gap: 7px;
}

.sl-sharing-person {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(219, 229, 244, .86);
  border-radius: 12px;
  background: rgba(247, 250, 255, .82);
}

.sl-sharing-person-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 50%;
  background: linear-gradient(145deg, #8c7cff, #4d8dec);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 5px 13px rgba(70, 105, 190, .18);
}

.sl-sharing-person-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.sl-sharing-person-copy strong,
.sl-sharing-person-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-sharing-person-copy strong {
  font-size: 12px;
  font-weight: 850;
}

.sl-sharing-person-copy small {
  color: var(--sla-muted);
  font-size: 10px;
  font-weight: 650;
}

.sl-sharing-status {
  width: fit-content;
  margin-top: 3px;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--sla-warm-soft);
  color: #5d53b7;
  font-size: 9px;
  font-weight: 850;
}

@media (max-width: 768px) {
  .sl-list-sharing-indicator {
    top: 10px;
    right: 45px;
    width: 29px;
    height: 29px;
  }
}


/* ========================================================================
   Shared-list indicator: standalone icon — 0.7.8
   ======================================================================== */
.sl-list-sharing-indicator {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #2f6fcf;
}

.sl-list-sharing-indicator svg {
  width: 18px;
  height: 18px;
}

.sl-list-sharing-indicator:hover,
.sl-list-sharing-indicator:focus-visible,
.sl-list-sharing-indicator[aria-expanded="true"] {
  border-color: transparent;
  background: transparent;
  color: var(--sla-accent-deep);
  box-shadow: none;
  transform: scale(1.08);
}

.sl-list-sharing-indicator:focus-visible {
  outline: 2px solid rgba(63, 140, 255, .28);
  outline-offset: 2px;
  border-radius: 6px;
}


/* ========================================================================
   Shared-list icon alignment and role distinction — 0.7.9
   ======================================================================== */
.sl-list-sharing-indicator {
  top: 50%;
  transform: translateY(-50%);
}

.sl-list-sharing-indicator.is-owner {
  color: #2f6fcf;
}

.sl-list-sharing-indicator.is-member {
  color: #705fd6;
}

.sl-list-sharing-indicator:hover,
.sl-list-sharing-indicator:focus-visible,
.sl-list-sharing-indicator[aria-expanded="true"] {
  transform: translateY(-50%) scale(1.08);
}

.sl-list-sharing-indicator.is-owner:hover,
.sl-list-sharing-indicator.is-owner:focus-visible,
.sl-list-sharing-indicator.is-owner[aria-expanded="true"] {
  color: var(--sla-accent-deep);
}

.sl-list-sharing-indicator.is-member:hover,
.sl-list-sharing-indicator.is-member:focus-visible,
.sl-list-sharing-indicator.is-member[aria-expanded="true"] {
  color: #5544b7;
}

@media (max-width: 768px) {
  .sl-list-sharing-indicator {
    top: 50%;
  }
}


/* ========================================================================
   Shared-list indicator beside the active list title — 0.8.0
   ======================================================================== */
.sl-list-title-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.sl-list-title-row .sl-title {
  min-width: 0;
}

.sl-list-title-sharing {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.sl-list-title-sharing:empty {
  display: none;
}

.sl-list-sharing-indicator.is-title {
  position: static;
  top: auto;
  right: auto;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  transform: none;
}

.sl-list-sharing-indicator.is-title svg {
  width: 20px;
  height: 20px;
}

.sl-list-sharing-indicator.is-title:hover,
.sl-list-sharing-indicator.is-title:focus-visible,
.sl-list-sharing-indicator.is-title[aria-expanded="true"] {
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .sl-list-title-row {
    gap: 7px;
  }

  .sl-list-sharing-indicator.is-title {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .sl-list-sharing-indicator.is-title svg {
    width: 18px;
    height: 18px;
  }
}


/* ========================================================================
   Mobile full-screen My Lists drawer — 0.8.1
   Desktop behavior remains unchanged.
   ======================================================================== */
.sl-sidebar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sl-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(63, 140, 255, .30);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--sla-accent-deep);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(43, 83, 151, .08);
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.sl-sidebar-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.sl-sidebar-toggle:hover,
.sl-sidebar-toggle:focus-visible {
  border-color: rgba(63, 140, 255, .48);
  background: rgba(238, 245, 255, .96);
  color: #174f9e;
}

.sl-sidebar-toggle:focus-visible {
  outline: 3px solid rgba(63, 140, 255, .18);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  html.sl-list-drawer-open,
  body.sl-list-drawer-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  #sl-sidebar {
    min-height: 0;
    padding: 13px 14px;
    overflow: visible;
    transition: none;
  }

  #sl-sidebar .sl-sidebar-head {
    position: relative;
    z-index: 3;
    margin: 0;
    padding: 0;
  }

  #sl-sidebar .sl-sidebar-title {
    color: var(--sla-muted-strong);
    font-size: 12px;
    letter-spacing: .07em;
  }

  .sl-sidebar-toggle {
    display: inline-flex;
  }

  #sl-sidebar:not(.is-mobile-open) #sl-list-nav,
  #sl-sidebar:not(.is-mobile-open) #sl-new-list {
    display: none !important;
  }

  #sl-sidebar.is-mobile-open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 8500;
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding:
      max(18px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 100% 0, rgba(140,124,255,.18), transparent 26rem),
      radial-gradient(circle at 0 15%, rgba(63,140,255,.16), transparent 24rem),
      linear-gradient(180deg, rgba(250,252,255,.97), rgba(239,245,255,.94));
    box-shadow: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #sl-sidebar.is-mobile-open::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    #sl-sidebar.is-mobile-open {
      background: linear-gradient(180deg, rgba(250,252,255,.91), rgba(238,244,255,.86));
      -webkit-backdrop-filter: saturate(170%) blur(28px);
      backdrop-filter: saturate(170%) blur(28px);
    }
  }

  #sl-sidebar.is-mobile-open::before {
    position: fixed;
    inset: 0;
    border-radius: 0;
    opacity: .65;
  }

  #sl-sidebar.is-mobile-open .sl-sidebar-head {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    min-height: 54px;
    margin: -4px 0 16px;
    padding: 4px 0 10px;
    background: linear-gradient(180deg, rgba(248,251,255,.96) 0%, rgba(248,251,255,.84) 72%, rgba(248,251,255,0) 100%);
  }

  #sl-sidebar.is-mobile-open .sl-sidebar-title {
    color: #243a63;
    font-size: 18px;
    letter-spacing: -.015em;
    text-transform: none;
  }

  #sl-sidebar.is-mobile-open .sl-sidebar-toggle svg {
    transform: rotate(180deg);
  }

  #sl-sidebar.is-mobile-open #sl-new-list {
    display: grid !important;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  #sl-sidebar.is-mobile-open #sl-list-nav {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 11px;
    width: 100%;
    padding: 2px 0 20px;
    overflow: visible;
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-entry {
    width: 100%;
    min-width: 0;
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-item {
    width: 100%;
    min-width: 0;
    min-height: 118px;
    padding: 18px 15px;
    border: 1px solid rgba(198, 214, 238, .86);
    border-radius: 20px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 10px 27px rgba(37, 76, 143, .08);
    align-content: center;
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-item:hover {
    transform: none;
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-item.is-active {
    border-color: rgba(63, 140, 255, .46);
    background: linear-gradient(145deg, rgba(231,241,255,.98), rgba(242,239,255,.92));
    box-shadow: 0 12px 30px rgba(51, 94, 169, .13);
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-copy strong {
    padding-right: 28px;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.25;
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-copy small {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.35;
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-badge {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }

  #sl-sidebar.is-mobile-open .sl-list-sharing-indicator {
    right: 45px;
  }
}

@media (max-width: 360px) {
  #sl-sidebar.is-mobile-open #sl-list-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-item {
    min-height: 104px;
  }
}


/* Center list item count inside its circular badge — 0.8.2 */
.sl-list-nav-badge {
  display: inline-grid;
  place-items: center;
  align-self: center;
  height: 28px;
  min-width: 28px;
  padding: 0 7px;
  line-height: 1;
}

@media (max-width: 767px) {
  #sl-sidebar.is-mobile-open .sl-list-nav-badge {
    display: inline-grid;
    place-items: center;
    align-self: center;
    height: 30px;
    min-width: 30px;
    padding: 0 7px;
    line-height: 0;
  }
}


/* Badge optical centering — 0.8.3 */
.sl-list-nav-badge {
  line-height: 0;
}


/* Center the create-list dialog on phones — 0.8.5 */
@media (max-width: 679px) {
  .sl-modal:has(#sl-new-list-form) {
    align-items: center;
    padding:
      max(16px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .sl-modal:has(#sl-new-list-form) .sl-dialog {
    margin-block: auto;
    max-height: calc(100dvh - 32px);
  }
}

/* Mobile list drawer toggle optical text centering — 0.8.6 */
@media (max-width: 768px) {
  #sl-sidebar-toggle-label {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    transform: translateY(1px);
  }
}

/* Sidebar heading emphasis and live list count — 0.8.7 */
.sl-sidebar-title {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #2b4166;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .075em;
  line-height: 1.2;
}

.sl-sidebar-title-label {
  color: inherit;
}

.sl-sidebar-list-count {
  color: var(--sla-accent-deep);
  font-size: .94em;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

@media (max-width: 768px) {
  #sl-sidebar .sl-sidebar-title {
    color: #243b61;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .065em;
  }

  #sl-sidebar.is-mobile-open .sl-sidebar-title {
    color: #1e3458;
    font-size: 19px;
    font-weight: 950;
    letter-spacing: -.015em;
  }

  #sl-sidebar.is-mobile-open .sl-sidebar-list-count {
    color: #2f6fcf;
    font-size: .82em;
  }
}


/* ========================================================================
   Clearer visual hierarchy and section separation — 0.8.8
   ======================================================================== */
.sl-panel {
  border-color: rgba(198, 214, 238, .96);
  background: rgba(255, 255, 255, .94);
  box-shadow:
    0 22px 58px rgba(32, 70, 132, .105),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}

.sl-panel-head {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(92, 122, 169, .14);
}

.sl-progress-wrap {
  margin-top: 20px;
  margin-bottom: 20px;
  border-color: rgba(190, 208, 235, .9);
  background: linear-gradient(135deg, rgba(246, 250, 255, .98), rgba(239, 245, 255, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.sl-add-form {
  border-color: rgba(181, 203, 235, .94);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 9px 25px rgba(36, 76, 142, .07);
}

.sl-toolbar {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(92, 122, 169, .13);
}

.sl-items {
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(92, 122, 169, .13);
}

.sl-item {
  min-height: 68px;
  padding: 13px 14px;
  border-color: rgba(202, 216, 237, .96);
  background: rgba(255, 255, 255, .9);
  box-shadow:
    0 5px 15px rgba(42, 79, 139, .045),
    inset 0 1px 0 rgba(255, 255, 255, .86);
}

.sl-item:hover {
  border-color: rgba(151, 181, 226, .98);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(39, 78, 145, .085);
}

.sl-item.is-completed {
  border-color: rgba(203, 215, 232, .8);
  background: linear-gradient(135deg, rgba(244, 248, 255, .88), rgba(249, 250, 255, .86));
}

.sl-list-nav-item {
  border-color: rgba(205, 218, 237, .92);
  background: rgba(255, 255, 255, .78);
}

.sl-list-nav-item:hover {
  border-color: rgba(166, 191, 228, .96);
  background: rgba(248, 251, 255, .98);
}

.sl-list-nav-item.is-active {
  border-color: rgba(63, 140, 255, .48);
  background: linear-gradient(135deg, rgba(229, 240, 255, .98), rgba(242, 239, 255, .94));
  color: #1f56a8;
  box-shadow:
    0 9px 22px rgba(39, 84, 161, .11),
    inset 0 0 0 1px rgba(255, 255, 255, .65);
}

.sl-list-nav-item.is-active::before {
  display: block;
  width: 4px;
  background: linear-gradient(180deg, var(--sla-accent), var(--sla-warm));
}

.sl-list-nav-item.is-active .sl-list-nav-copy strong {
  color: #1d4f99;
  font-weight: 900;
}

.sl-list-nav-item.is-active .sl-list-nav-copy small {
  color: #5874a1;
}

.sl-list-nav-item.is-active .sl-list-nav-badge {
  background: linear-gradient(145deg, var(--sla-accent), #6f88ef);
  color: #ffffff !important;
  box-shadow: 0 4px 11px rgba(63, 109, 196, .22);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sl-panel {
    border-color: rgba(203, 218, 240, .88);
    background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(248, 251, 255, .79));
    -webkit-backdrop-filter: saturate(155%) blur(22px);
    backdrop-filter: saturate(155%) blur(22px);
  }

  .sl-item {
    background: rgba(255, 255, 255, .82);
  }
}

@media (max-width: 767px) {
  .sl-panel {
    background: rgba(255, 255, 255, .96);
  }

  .sl-panel-head {
    padding-bottom: 17px;
  }

  .sl-toolbar {
    margin-top: 20px;
    padding-top: 18px;
  }

  .sl-items {
    gap: 9px;
    padding-top: 16px;
  }

  .sl-item {
    padding: 13px 12px;
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-item {
    border-color: rgba(195, 212, 238, .96);
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 9px 24px rgba(37, 76, 143, .075);
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-item.is-active {
    border-color: rgba(63, 140, 255, .55);
    background: linear-gradient(145deg, rgba(226, 239, 255, .99), rgba(239, 235, 255, .96));
    box-shadow:
      0 13px 30px rgba(51, 94, 169, .14),
      inset 0 0 0 1px rgba(255, 255, 255, .68);
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-item.is-active::before {
    display: block;
  }
}

/* ========================================================================
   Compact secondary progress indicator — 0.9.0
   ======================================================================== */
.sl-progress-wrap {
  min-height: 0;
  margin: 12px 0 14px;
  padding: 7px 10px 9px;
  border: 0;
  border-radius: 10px;
  background: rgba(245, 249, 255, .72);
  box-shadow: none;
}

.sl-progress-copy {
  align-items: center;
  margin-bottom: 6px;
  color: rgba(66, 86, 120, .76);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
}

.sl-progress-copy span:last-child {
  color: rgba(47, 111, 207, .88);
  font-size: 10px;
  font-weight: 800;
}

.sl-progress-track {
  height: 3px;
  background: rgba(183, 201, 228, .5);
}

.sl-progress-bar {
  box-shadow: none;
}

@media (max-width: 500px) {
  .sl-progress-wrap {
    margin: 11px 0 13px;
    padding: 7px 9px 9px;
  }
}

/* ========================================================================
   Desktop layout and add-composer cleanup — 0.9.2
   ======================================================================== */
@media (min-width: 769px) {
  /* Keep the lists sidebar aligned with the top edge of the main panel. */
  #sl-sidebar {
    top: 0;
    align-self: start;
    margin-top: 0;
  }

  /* Desktop composer uses the input and the labelled Add button only. */
  .sl-add-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .sl-add-form::before,
  .sl-add-form::after {
    display: none !important;
    content: none !important;
  }

  .sl-add-input {
    padding-left: 16px;
  }

  .sl-add-form .sl-btn {
    width: auto;
    min-width: 92px;
    padding: 0 24px;
    font-size: 13px !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
    text-indent: 0;
  }

  .sl-add-form .sl-btn::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    -webkit-mask: none !important;
    mask: none !important;
  }
}



/* Item product-link action — 0.9.3 */
.sl-item-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.sl-item-link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid rgba(92, 126, 197, .22);
  border-radius: 12px;
  background: rgba(239, 245, 255, .82);
  color: #3569c8;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.sl-item-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sl-item-link:hover {
  transform: translateY(-1px);
  border-color: rgba(53, 105, 200, .42);
  background: #ffffff;
  color: #214f9f;
  box-shadow: 0 7px 18px rgba(53, 105, 200, .12);
}

.sl-item-link:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(70, 128, 232, .16);
}

.sl-item.is-completed .sl-item-link {
  opacity: .82;
}

@media (max-width: 767px) {
  .sl-item-actions { gap: 4px; }
  .sl-item-link {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 11px;
  }
  .sl-item-link svg {
    width: 17px;
    height: 17px;
  }
}

/* ========================================================================
   Universal list types — 0.10.0
   ======================================================================== */
.sl-list-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid rgba(91, 124, 190, .18);
  border-radius: 999px;
  background: rgba(239, 245, 255, .76);
  color: #4f6f9f;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.sl-list-type-badge[hidden] { display: none !important; }

.sl-list-type-icon {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 8px;
  background: rgba(232, 240, 254, .72);
  color: #526f9e;
  font-size: 13px;
  line-height: 1;
}
.sl-list-nav-item:has(.sl-list-type-icon) {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
}
.sl-list-nav-item.is-active .sl-list-type-icon {
  background: rgba(255, 255, 255, .7);
  color: #315d9d;
}

.sl-modal:has(.sl-type-form) .sl-dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: min(86vh, 820px);
}
.sl-type-form { gap: 18px; }
.sl-type-properties {
  display: grid;
  gap: 12px;
}
.sl-type-properties:empty { display: none; }
.sl-type-properties-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 3px;
}
.sl-type-properties-head strong {
  color: var(--sla-text);
  font-size: 13px;
}
.sl-type-properties-head span,
.sl-field-help {
  color: var(--sla-muted);
  font-size: 11px;
  line-height: 1.4;
}
.sl-property-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 12px;
  padding: 14px;
  border: 1px solid rgba(199, 213, 235, .72);
  border-radius: 16px;
  background: rgba(247, 250, 255, .66);
}
.sl-property-field-wide { grid-column: 1 / -1; }
.sl-property-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--sla-border);
  border-radius: 14px;
  background: var(--sla-surface-soft);
  color: var(--sla-muted-strong);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.sl-property-check input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--sla-accent);
}
.sl-list-type-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(199, 213, 235, .8);
  border-radius: 16px;
  background: rgba(242, 247, 255, .7);
}
.sl-list-type-summary-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(52, 85, 145, .08);
  font-size: 18px;
}
.sl-list-type-summary div { min-width: 0; }
.sl-list-type-summary strong { display: block; font-size: 14px; }
.sl-list-type-summary span { display: block; margin-top: 3px; color: var(--sla-muted); font-size: 11px; line-height: 1.4; }

.sl-item-type-marker {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: rgba(235, 242, 253, .82);
  color: #5874a1;
  font-size: 13px;
  line-height: 1;
}
.sl-item.is-noncheckable.is-completed { opacity: 1; background: var(--sla-surface); }
.sl-item.is-noncheckable .sl-item-name { text-decoration: none; color: inherit; }

@media (max-width: 767px) {
  .sl-list-title-row { flex-wrap: wrap; }
  .sl-list-type-badge { min-height: 23px; padding: 4px 8px; font-size: 9px; }
  .sl-property-grid { grid-template-columns: 1fr; padding: 12px; }
  .sl-property-field-wide { grid-column: auto; }
  .sl-type-properties-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  #sl-sidebar.is-mobile-open .sl-list-nav-item:has(.sl-list-type-icon) { grid-template-columns: auto minmax(0, 1fr) auto; }
}

.sl-menu button[hidden],
#sl-progress-wrap[hidden],
#sl-toolbar[hidden] {
  display: none !important;
}

button.sl-list-type-badge {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
}
button.sl-list-type-badge:hover {
  border-color: rgba(70, 112, 190, .34);
  background: rgba(231, 240, 255, .94);
  color: #345d9b;
}
button.sl-list-type-badge:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(70, 128, 232, .14);
}
.sl-type-form :disabled {
  cursor: default;
  opacity: .78;
}

/* Notification center + push settings — 0.10.1 */
.sl-notification-button {
  position: relative;
  overflow: visible;
}
.sl-notification-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sl-notification-button.has-unread {
  border-color: rgba(70, 112, 190, .28);
  background: rgba(241, 246, 255, .92);
}
.sl-notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid rgba(255,255,255,.96);
  border-radius: 999px;
  background: #4d6fc3;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(43, 74, 145, .22);
}
.sl-notification-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}
.sl-notification-toolbar .sl-btn {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 11px;
}
.sl-notification-center-content {
  min-height: 110px;
}
.sl-notification-list {
  display: grid;
  gap: 8px;
}
.sl-notification-entry {
  position: relative;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(199, 213, 235, .66);
  border-radius: 15px;
  background: rgba(250, 252, 255, .72);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.sl-notification-entry:hover {
  transform: translateY(-1px);
  border-color: rgba(112, 145, 203, .34);
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 22px rgba(53, 77, 124, .08);
}
.sl-notification-entry.is-unread {
  border-color: rgba(88, 126, 196, .27);
  background: rgba(239, 245, 255, .9);
}
.sl-notification-dot {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: transparent;
}
.sl-notification-entry.is-unread .sl-notification-dot {
  background: #5577c8;
  box-shadow: 0 0 0 4px rgba(85,119,200,.10);
}
.sl-notification-entry-copy {
  min-width: 0;
}
.sl-notification-entry-copy strong,
.sl-notification-entry-copy span,
.sl-notification-entry-copy time {
  display: block;
}
.sl-notification-entry-copy strong {
  color: var(--sla-text);
  font-size: 13px;
  line-height: 1.35;
}
.sl-notification-entry-copy span {
  margin-top: 3px;
  color: var(--sla-muted-strong);
  font-size: 12px;
  line-height: 1.45;
}
.sl-notification-entry-copy time {
  margin-top: 6px;
  color: var(--sla-muted);
  font-size: 10px;
  font-weight: 700;
}
.sl-notification-empty {
  display: grid;
  place-items: center;
  padding: 30px 18px;
  text-align: center;
}
.sl-notification-empty > span {
  margin-bottom: 10px;
  font-size: 26px;
  opacity: .72;
}
.sl-notification-empty strong {
  font-size: 14px;
}
.sl-notification-empty p {
  max-width: 340px;
  margin: 5px 0 0;
  color: var(--sla-muted);
  font-size: 12px;
  line-height: 1.5;
}
.sl-account-notifications > div:first-child > p {
  margin: 4px 0 12px;
  color: var(--sla-muted);
  font-size: 12px;
  line-height: 1.5;
}
.sl-notification-settings-form {
  gap: 10px;
}
.sl-notification-setting-group {
  display: grid;
  gap: 7px;
  padding-left: 12px;
  border-left: 2px solid rgba(106, 137, 196, .14);
  transition: opacity .16s ease;
}
.sl-notification-setting-group.is-disabled {
  opacity: .48;
}
.sl-notification-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid rgba(199, 213, 235, .62);
  border-radius: 13px;
  background: rgba(248, 251, 255, .62);
}
.sl-notification-setting-row > span {
  min-width: 0;
  color: var(--sla-muted-strong);
  font-size: 12px;
  line-height: 1.35;
}
.sl-notification-setting-row > span strong {
  display: block;
  color: var(--sla-text);
  font-size: 12px;
}
.sl-notification-setting-row > span small {
  display: block;
  margin-top: 3px;
  color: var(--sla-muted);
  font-size: 10px;
  line-height: 1.4;
}
.sl-notification-setting-row .sl-checkbox {
  flex: 0 0 auto;
}
.sl-notification-setting-row.is-master {
  background: rgba(239, 245, 255, .78);
}
.sl-notification-setting-row.is-locked {
  opacity: .74;
}
.sl-notification-muted-lists {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.sl-notification-muted-lists > strong {
  font-size: 12px;
}
.sl-notification-muted-lists > p {
  margin: 0;
  color: var(--sla-muted);
  font-size: 11px;
}
.sl-push-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(199, 213, 235, .72);
  border-radius: 15px;
  background: rgba(244, 248, 255, .7);
}
.sl-push-settings strong {
  display: block;
  font-size: 13px;
}
.sl-push-settings p {
  margin: 4px 0 0;
  color: var(--sla-muted);
  font-size: 11px;
  line-height: 1.45;
}
.sl-push-settings-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
  max-width: 230px;
}
.sl-push-settings-actions > span {
  color: var(--sla-muted);
  font-size: 10px;
  line-height: 1.35;
  text-align: right;
}
.sl-push-settings-actions .sl-btn {
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
  font-size: 11px;
}

@media (max-width: 767px) {
  .sl-notification-toolbar {
    justify-content: stretch;
  }
  .sl-notification-toolbar .sl-btn {
    flex: 1 1 0;
  }
  .sl-notification-entry {
    padding: 13px 12px;
  }
  .sl-push-settings {
    grid-template-columns: 1fr;
  }
  .sl-push-settings-actions {
    max-width: none;
    justify-items: stretch;
  }
  .sl-push-settings-actions > span {
    text-align: left;
  }
  .sl-push-settings-actions .sl-btn {
    width: 100%;
  }
}


/* Notification permission diagnostics — 0.10.2 */
.sl-push-settings.has-help {
  align-items: start;
}
.sl-push-help {
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .72);
  color: var(--sla-text);
  font-size: 11px;
  line-height: 1.5;
}
.sl-push-settings-actions {
  min-width: min(230px, 100%);
}
.sl-push-settings-actions .sl-btn-ghost {
  background: transparent;
}
@media (max-width: 767px) {
  .sl-push-help {
    font-size: 12px;
  }
  .sl-push-settings-actions {
    min-width: 0;
  }
}


/* ========================================================================
   Unified list-type icons — 0.10.3
   ======================================================================== */
.sl-list-type-icon,
.sl-list-type-summary-icon,
.sl-item-type-marker {
  color: #5874a8;
}

.sl-list-type-badge {
  gap: 6px;
}

.sl-list-type-badge-icon,
.sl-list-type-nav-icon,
.sl-list-type-summary-svg,
.sl-item-type-marker-icon,
.sl-empty-type-icon-svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.sl-list-type-badge-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.sl-list-type-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 0;
  background: transparent;
  color: #5f79ab;
  font-size: 0;
  line-height: 0;
}

.sl-list-nav-item.is-active .sl-list-type-icon {
  background: transparent;
  color: #315d9d;
}

.sl-list-type-summary-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(239,245,255,.96), rgba(228,237,252,.9));
  box-shadow: none;
  font-size: 0;
}

.sl-item-type-marker {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(239,245,255,.92), rgba(230,238,252,.88));
  color: #5a74a6;
  font-size: 0;
  line-height: 0;
}

.sl-empty-icon {
  color: transparent;
}

.sl-empty-icon::before {
  display: none;
}

.sl-empty-icon .sl-empty-type-icon-svg {
  width: 30px;
  height: 30px;
  color: #ffffff;
}


/* ========================================================================
   List type picker and shopping icon parity — 0.10.4
   ======================================================================== */
.sl-type-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.sl-type-picker-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid rgba(196, 210, 235, .9);
  border-radius: 14px;
  background: rgba(248, 251, 255, .88);
  color: var(--sla-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.sl-type-picker-option:hover {
  border-color: rgba(96, 128, 190, .34);
  background: rgba(241, 246, 255, .96);
  transform: translateY(-1px);
}

.sl-type-picker-option.is-active {
  border-color: rgba(79, 114, 185, .42);
  background: rgba(235, 243, 255, .98);
  box-shadow: 0 0 0 3px rgba(98, 126, 188, .10);
}

.sl-type-picker-option:focus-visible {
  outline: 0;
  border-color: rgba(79, 114, 185, .48);
  box-shadow: 0 0 0 4px rgba(98, 126, 188, .14);
}

.sl-type-picker-option-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: #5b76a9;
}

.sl-type-picker-svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.sl-type-picker-option-label {
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .sl-type-picker {
    grid-template-columns: 1fr;
  }
}


/* ========================================================================
   List'nize header branding — 0.10.5
   ======================================================================== */
.sl-brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-size: 0;
}

.sl-brand-mark::before,
.sl-brand-mark::after {
  display: none !important;
  content: none !important;
}

.sl-brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.sl-brand-logo {
  display: block;
  width: auto;
  height: 27px;
  max-width: min(210px, 32vw);
  object-fit: contain;
  object-position: left center;
}

.sl-topbar .sl-brand-text span {
  margin-top: 3px;
}

@media (max-width: 767px) {
  .sl-brand-mark {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
  }

  .sl-brand-logo {
    height: 24px;
    max-width: min(180px, 46vw);
  }
}


/* ========================================================================
   Compact List'nize brand mark + text wordmark — 0.10.6
   ======================================================================== */
.sl-brand-mark {
  width: auto;
  height: 30px;
  max-height: 30px;
  flex: 0 0 auto;
  object-fit: contain;
}

.sl-brand-logo {
  display: none !important;
}

.sl-topbar .sl-brand-text strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.025em;
}

@media (max-width: 767px) {
  .sl-brand-mark {
    width: auto;
    height: 30px;
    max-height: 30px;
    flex-basis: auto;
  }

  .sl-topbar .sl-brand-text strong {
    font-size: 16px;
  }
}

/* ========================================================================
   List'nize brand — clean horizontal treatment (Option A) — 0.10.7
   ======================================================================== */
.sl-topbar .sl-brand {
  gap: 15px;
  align-items: center;
}

.sl-topbar .sl-brand-mark {
  display: block;
  width: auto;
  height: 27px;
  max-height: 27px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
}

.sl-topbar .sl-brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.sl-topbar .sl-brand-text strong {
  display: block;
  color: #183f79;
  font-size: 22px;
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.04em;
}

.sl-topbar .sl-brand-text span {
  display: block;
  max-width: 220px;
  margin-top: 5px;
  overflow: hidden;
  color: #7083a2;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .005em;
  opacity: .86;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .sl-topbar .sl-brand {
    gap: 11px;
  }

  .sl-topbar .sl-brand-mark {
    height: 24px;
    max-height: 24px;
  }

  .sl-topbar .sl-brand-text strong {
    font-size: 17px;
    line-height: 1;
  }

  .sl-topbar .sl-brand-text span {
    display: block;
    max-width: 165px;
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.1;
  }
}

@media (max-width: 420px) {
  .sl-topbar .sl-brand-text span {
    max-width: 125px;
  }
}


/* ========================================================================
   List'nize brand — icon in rounded square — 0.10.8
   ======================================================================== */
.sl-topbar .sl-brand {
  gap: 16px;
}

.sl-topbar .sl-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  max-height: none;
  padding: 8px;
  flex: 0 0 42px;
  border: 1px solid rgba(90, 129, 210, .34);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(223, 236, 255, .99), rgba(191, 215, 255, .95));
  box-shadow: 0 10px 22px rgba(56, 93, 168, .16), inset 0 1px 0 rgba(255,255,255,.82);
  object-fit: contain;
  object-position: center;
}

.sl-topbar .sl-brand-text strong {
  font-size: 21px;
}

.sl-topbar .sl-brand-text span {
  max-width: 240px;
  margin-top: 6px;
  font-size: 10px;
  color: #7284a0;
  opacity: .88;
}

@media (max-width: 767px) {
  .sl-topbar .sl-brand {
    gap: 10px;
  }

  .sl-topbar .sl-brand-mark {
    width: 36px;
    height: 36px;
    padding: 7px;
    flex-basis: 36px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(56, 93, 168, .18), inset 0 1px 0 rgba(255,255,255,.82);
  }

  .sl-topbar .sl-brand-text strong {
    font-size: 16px;
  }

  .sl-topbar .sl-brand-text span {
    max-width: 160px;
    margin-top: 3px;
    font-size: 8.8px;
  }
}


/* ========================================================================
   Mobile My Lists heading toggle — 0.10.10
   ======================================================================== */
@media (max-width: 768px) {
  #sl-sidebar-title-toggle {
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  #sl-sidebar-title-toggle:focus-visible {
    outline: 0;
    border-radius: 8px;
    box-shadow: 0 0 0 3px rgba(76, 111, 177, .14);
  }
}


/* ========================================================================
   Compact list-type dropdown with icons — 0.10.11
   ======================================================================== */
.sl-type-dropdown {
  position: relative;
}
.sl-type-dropdown-trigger {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(198, 211, 235, .95);
  border-radius: 14px;
  background: rgba(248, 251, 255, .92);
  color: var(--sla-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.sl-type-dropdown-trigger:hover {
  border-color: rgba(110, 138, 194, .40);
  background: rgba(244, 248, 255, .98);
}
.sl-type-dropdown.is-open .sl-type-dropdown-trigger,
.sl-type-dropdown-trigger:focus-visible {
  outline: 0;
  border-color: rgba(82, 118, 188, .46);
  box-shadow: 0 0 0 4px rgba(98, 126, 188, .12);
}
.sl-type-dropdown-trigger-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #5b76a9;
}
.sl-type-dropdown-trigger-svg,
.sl-type-dropdown-option-svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
}
.sl-type-dropdown-trigger-label {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 700;
}
.sl-type-dropdown-trigger-chevron {
  flex: 0 0 auto;
  color: #7d8ca8;
  font-size: 12px;
}
.sl-type-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(198, 211, 235, .95);
  border-radius: 16px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 36px rgba(43, 68, 114, .14);
  max-height: 260px;
  overflow: auto;
}
.sl-type-dropdown-menu[hidden] {
  display: none !important;
}
.sl-type-dropdown.is-open .sl-type-dropdown-menu:not([hidden]) {
  display: grid;
}
.sl-type-dropdown-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--sla-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sl-type-dropdown-option:hover { background: rgba(241, 246, 255, .92); }
.sl-type-dropdown-option.is-active { background: rgba(233, 242, 255, .95); }
.sl-type-dropdown-option-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #5b76a9;
}
.sl-type-dropdown-option-label {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}


/* ========================================================================
   New List — expand dialog while list-type dropdown is open — 0.10.13
   ======================================================================== */
.sl-modal:has(#sl-new-list-form) .sl-dialog {
  transition: width .22s ease, max-height .22s ease;
}

/* When the list type menu opens, let it take part in the dialog flow instead
   of floating over the form. This makes the whole popup grow with the menu. */
.sl-modal:has(#sl-new-list-form .sl-type-dropdown.is-open) .sl-dialog {
  width: min(780px, calc(100vw - 32px));
  max-height: min(94vh, 900px);
}

#sl-new-list-form .sl-type-dropdown.is-open .sl-type-dropdown-menu:not([hidden]) {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  width: 100%;
  margin-top: 8px;
  max-height: 320px;
  box-shadow: 0 12px 28px rgba(43, 68, 114, .11);
}

@media (max-width: 679px) {
  .sl-modal:has(#sl-new-list-form .sl-type-dropdown.is-open) .sl-dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
  }

  #sl-new-list-form .sl-type-dropdown.is-open .sl-type-dropdown-menu:not([hidden]) {
    max-height: min(42dvh, 340px);
  }
}

/* ========================================================================
   Mobile My Lists — always two list cards per row — 0.10.14
   ======================================================================== */
@media (max-width: 767px) {
  #sl-sidebar.is-mobile-open #sl-list-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-entry {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-item {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-copy {
    min-width: 0;
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-copy strong,
  #sl-sidebar.is-mobile-open .sl-list-nav-copy small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Keep the two-column layout usable even on very narrow phones. */
@media (max-width: 360px) {
  #sl-sidebar.is-mobile-open #sl-list-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-item {
    min-height: 104px;
    padding: 14px 10px;
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-copy strong {
    font-size: 13px;
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-copy small {
    font-size: 10px;
  }
}

/* ========================================================================
   Inventory barcode scanner — 0.10.15
   ======================================================================== */
.sl-barcode-scan-button[hidden] {
  display: none !important;
}

.sl-add-form.has-barcode-scanner {
  grid-template-columns: minmax(0, 1fr) 48px auto;
}

.sl-barcode-scan-button {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 50px;
  padding: 0;
  align-self: center;
  border: 1px solid rgba(84, 123, 199, .30);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(235, 243, 255, .98), rgba(218, 232, 255, .96));
  color: #3469c5;
  box-shadow: 0 7px 16px rgba(55, 91, 160, .10), inset 0 1px 0 rgba(255,255,255,.78);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.sl-barcode-scan-button:hover {
  border-color: rgba(67, 105, 183, .45);
  background: linear-gradient(180deg, rgba(226, 238, 255, 1), rgba(204, 223, 255, .98));
  box-shadow: 0 9px 20px rgba(55, 91, 160, .15), inset 0 1px 0 rgba(255,255,255,.82);
  transform: translateY(-1px);
}

.sl-barcode-scan-button:focus-visible {
  outline: 0;
  border-color: rgba(63, 103, 184, .58);
  box-shadow: 0 0 0 4px rgba(76, 113, 187, .14), 0 8px 18px rgba(55, 91, 160, .14);
}

.sl-barcode-scan-button:disabled {
  opacity: .5;
  cursor: default;
  transform: none;
}

.sl-barcode-scan-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sl-modal:has(.sl-barcode-dialog-body) .sl-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(94dvh, 900px);
}

.sl-barcode-dialog-body {
  display: grid;
  gap: 16px;
}

.sl-barcode-reader-frame {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(110, 132, 171, .26);
  border-radius: 20px;
  background: #111827;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 12px 28px rgba(20, 35, 60, .12);
}

.sl-barcode-reader {
  width: 100%;
  min-height: 300px;
  overflow: hidden;
  background: #111827;
}

.sl-barcode-reader video,
.sl-barcode-reader canvas {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 300px;
  object-fit: cover;
}

.sl-barcode-scan-guide {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: linear-gradient(rgba(10,18,31,.16), rgba(10,18,31,.16));
}

.sl-barcode-scan-guide span {
  position: relative;
  display: block;
  width: min(84%, 500px);
  height: min(34%, 150px);
  min-height: 92px;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 17px;
  box-shadow: 0 0 0 999px rgba(10,18,31,.28), 0 0 0 1px rgba(35,93,196,.32);
}

.sl-barcode-scan-guide span::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: rgba(118, 169, 255, .96);
  box-shadow: 0 0 14px rgba(86, 145, 255, .7);
}

.sl-barcode-status {
  margin: 0;
}

.sl-barcode-status.is-loading {
  color: #476792;
  background: rgba(235, 243, 255, .92);
}

.sl-barcode-product-card {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(197, 211, 234, .82);
  border-radius: 20px;
  background: rgba(248, 251, 255, .82);
}

.sl-barcode-product-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(198, 211, 232, .72);
  border-radius: 16px;
  background: #fff;
}

.sl-barcode-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sl-barcode-product-image.is-empty {
  background: linear-gradient(145deg, rgba(235,243,255,.92), rgba(245,247,255,.96));
  color: #6480ae;
}

.sl-barcode-product-placeholder-icon {
  width: 54px;
  height: 54px;
}

.sl-barcode-product-content {
  min-width: 0;
}

.sl-barcode-product-content h3 {
  margin: 2px 0 8px;
  color: var(--sla-text);
  font-size: 21px;
  font-weight: 820;
  line-height: 1.22;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.sl-barcode-product-description {
  margin: 0 0 12px;
  color: var(--sla-muted);
  font-size: 13px;
  line-height: 1.55;
}

.sl-barcode-product-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  margin: 0;
}

.sl-barcode-product-field {
  min-width: 0;
  padding: 9px 0;
  border-top: 1px solid rgba(205, 216, 234, .70);
}

.sl-barcode-product-field dt {
  margin: 0 0 3px;
  color: var(--sla-muted);
  font-size: 10px;
  font-weight: 650;
}

.sl-barcode-product-field dd {
  margin: 0;
  color: var(--sla-text);
  font-size: 12.5px;
  font-weight: 720;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sl-barcode-result-actions {
  margin-top: 0;
}

@media (max-width: 679px) {
  .sl-add-form.has-barcode-scanner {
    grid-template-columns: minmax(0, 1fr) 44px 46px;
    gap: 7px;
  }

  .sl-add-form.has-barcode-scanner .sl-barcode-scan-button {
    width: 44px;
    min-width: 44px;
    height: 46px;
    border-radius: 13px;
  }

  .sl-add-form.has-barcode-scanner .sl-barcode-scan-button svg {
    width: 20px;
    height: 20px;
  }

  .sl-modal:has(.sl-barcode-dialog-body) {
    padding: 12px;
  }

  .sl-modal:has(.sl-barcode-dialog-body) .sl-dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
  }

  .sl-barcode-reader-frame,
  .sl-barcode-reader,
  .sl-barcode-reader video,
  .sl-barcode-reader canvas {
    min-height: 245px;
  }

  .sl-barcode-product-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border-radius: 17px;
  }

  .sl-barcode-product-content h3 {
    font-size: 17px;
  }

  .sl-barcode-product-description {
    font-size: 12px;
  }

  .sl-barcode-product-details {
    grid-template-columns: 1fr;
  }

  .sl-barcode-product-field {
    padding: 7px 0;
  }

  .sl-barcode-result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .sl-barcode-result-actions .sl-btn {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .sl-add-form.has-barcode-scanner {
    grid-template-columns: minmax(0, 1fr) 42px 44px;
    gap: 5px;
  }

  .sl-add-form.has-barcode-scanner .sl-barcode-scan-button {
    width: 42px;
    min-width: 42px;
  }
}

/* Inventory → Shopping action — 0.10.16 */
.sl-item-shopping-add {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 1px solid rgba(92, 126, 197, .22);
  border-radius: 12px;
  background: rgba(239, 245, 255, .82);
  color: #3569c8;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.sl-item-shopping-add svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sl-item-shopping-add:hover {
  transform: translateY(-1px);
  border-color: rgba(53, 105, 200, .42);
  background: #ffffff;
  color: #214f9f;
  box-shadow: 0 7px 18px rgba(53, 105, 200, .12);
}

.sl-item-shopping-add:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(70, 128, 232, .16);
}

@media (max-width: 767px) {
  .sl-item-shopping-add {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 11px;
  }
  .sl-item-shopping-add svg {
    width: 17px;
    height: 17px;
  }
}

/* Subtle destructive action beside primary Save — 0.10.17 */
.sl-form-actions .sl-btn.sl-btn-delete-subtle {
  flex: 0 0 auto;
  min-width: 92px;
  border: 1px solid rgba(174, 86, 86, .24);
  background: transparent !important;
  color: #9a6262 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.sl-form-actions .sl-btn.sl-btn-delete-subtle:hover,
.sl-form-actions .sl-btn.sl-btn-delete-subtle:focus-visible {
  border-color: rgba(174, 86, 86, .42);
  background: rgba(197, 74, 74, .07) !important;
  color: #a44747 !important;
  box-shadow: none !important;
}

.sl-form-actions .sl-btn.sl-btn-delete-subtle:active {
  background: rgba(197, 74, 74, .11) !important;
  transform: translateY(1px);
}

@media (max-width: 640px) {
  .sl-form-actions .sl-btn.sl-btn-delete-subtle {
    flex: 0 0 auto;
    width: auto;
  }

  .sl-form-actions .sl-btn.sl-btn-delete-subtle + .sl-btn[type="submit"] {
    flex: 1 1 0;
  }
}

/* Keep modal form actions on one row on mobile — 0.10.18 */
@media (max-width: 679px) {
  .sl-form-actions {
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    width: 100%;
  }

  .sl-form-actions > .sl-btn,
  .sl-form-actions > .sl-btn-secondary,
  .sl-form-actions > .sl-btn-danger,
  .sl-form-actions > .sl-btn-ghost {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding-inline: 10px;
    white-space: nowrap;
  }

  .sl-form-actions > .sl-btn.sl-btn-delete-subtle {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
  }
}

/* Comma-separated multi-value fields with removable chips — 0.10.19 */
.sl-multi-value-control {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: center;
  gap: 7px;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 7px 8px;
  overflow-x: hidden;
  overflow-y: auto;
  resize: vertical;
  border: 1px solid var(--sla-border);
  border-radius: 14px;
  background: var(--sla-surface-soft);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.sl-multi-value-control:focus-within {
  border-color: rgba(31,122,85,.55);
  background: white;
  box-shadow: 0 0 0 4px rgba(31,122,85,.09);
}

.sl-multi-value-chips {
  display: contents;
}

.sl-multi-value-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-height: 32px;
  padding: 4px 5px 4px 10px;
  border: 1px solid rgba(31,122,85,.16);
  border-radius: 999px;
  background: rgba(31,122,85,.08);
  color: var(--sla-accent-deep);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.sl-multi-value-chip-label {
  overflow: hidden;
  max-width: min(320px, 60vw);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-multi-value-shopping-add {
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(31,122,85,.1);
  color: var(--sla-accent-deep);
  cursor: pointer;
  opacity: .78;
}

.sl-multi-value-shopping-add svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sl-multi-value-shopping-add:hover,
.sl-multi-value-shopping-add:focus-visible {
  background: rgba(31,122,85,.18);
  opacity: 1;
  outline: 0;
}

.sl-multi-value-remove {
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  opacity: .68;
}

.sl-multi-value-remove:hover,
.sl-multi-value-remove:focus-visible {
  background: rgba(31,122,85,.12);
  opacity: 1;
  outline: 0;
}

.sl-multi-value-input.sl-input {
  flex: 1 1 180px;
  width: auto;
  min-width: 120px;
  min-height: 32px;
  padding: 4px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.sl-multi-value-input.sl-input:hover,
.sl-multi-value-input.sl-input:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sl-field-hint {
  display: block;
  margin-top: -1px;
  color: var(--sla-muted);
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 520px) {
  .sl-multi-value-chip-label {
    max-width: 55vw;
  }

  .sl-multi-value-input.sl-input {
    flex-basis: 130px;
    min-width: 90px;
  }
}

/* Meal Plan ingredient -> Shopping List overlay. Keeps the item editor mounted underneath. */
.sl-ingredient-shopping-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: grid;
  align-items: end;
  padding: 10px;
  background: rgba(11, 27, 18, .46);
  backdrop-filter: blur(5px);
}

.sl-ingredient-shopping-dialog {
  width: min(500px, 100%);
  max-height: min(88vh, 700px);
  margin: 0 auto;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 24px;
  background: white;
  box-shadow: var(--sla-shadow-strong);
}

@media (min-width: 700px) {
  .sl-ingredient-shopping-overlay {
    align-items: center;
    padding: 24px;
  }
}


/* Completion feedback: acknowledge the check before sorting moves the row. */
.sl-item.is-completing {
  animation: sl-item-complete-confirm 430ms cubic-bezier(.2,.8,.2,1) both;
  pointer-events: none;
  z-index: 1;
}
.sl-item.is-completing .sl-checkbox:checked {
  animation: sl-checkbox-complete-pop 430ms cubic-bezier(.2,.9,.25,1) both;
}
.sl-item.is-completing .sl-item-name {
  color: var(--sla-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
.sl-item.is-completing::after {
  opacity: 1;
  background: var(--sla-accent);
}
@keyframes sl-item-complete-confirm {
  0% { transform: scale(1); }
  36% {
    transform: scale(1.012);
    background: var(--sla-accent-faint);
    border-color: rgba(31,122,85,.24);
    box-shadow: 0 12px 30px rgba(31,122,85,.13);
  }
  100% {
    transform: scale(1);
    background: var(--sla-accent-faint);
    border-color: var(--sla-border);
    box-shadow: none;
  }
}
@keyframes sl-checkbox-complete-pop {
  0% { transform: scale(1); }
  38% { transform: scale(1.22); box-shadow: 0 0 0 6px rgba(31,122,85,.12), 0 5px 14px rgba(31,122,85,.24); }
  100% { transform: scale(1); box-shadow: 0 5px 14px rgba(31,122,85,.24); }
}
@media (prefers-reduced-motion: reduce) {
  .sl-item.is-completing,
  .sl-item.is-completing .sl-checkbox:checked {
    animation: none !important;
  }
}


/* ========================================================================
   Mobile WebView compositor stability — 0.10.24
   Android WebView can intermittently rasterize large backdrop-filter layers
   as rectangular tiles. Keep the same soft-glass look on small screens using
   near-opaque gradients, without GPU backdrop sampling on the topbar/sidebar.
   ======================================================================== */
@media (max-width: 768px) {
  .sl-topbar,
  #sl-sidebar {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    will-change: auto !important;
  }

  .sl-topbar {
    background: linear-gradient(135deg, rgba(234,244,255,.99) 0%, rgba(242,239,255,.985) 100%) !important;
  }

  /* The compact My Lists card should be a normal painted surface, not a
     backdrop-composited layer. This avoids the intermittent tiled blocks. */
  #sl-sidebar:not(.is-mobile-open) {
    background: linear-gradient(135deg, rgba(252,254,253,.995) 0%, rgba(244,250,247,.99) 100%) !important;
  }

  #sl-sidebar:not(.is-mobile-open)::before {
    display: none !important;
  }

  /* Use the same stable rendering path for the full-screen My Lists drawer. */
  #sl-sidebar.is-mobile-open {
    background:
      radial-gradient(circle at 100% 0, rgba(140,124,255,.13), transparent 26rem),
      radial-gradient(circle at 0 15%, rgba(63,140,255,.11), transparent 24rem),
      linear-gradient(180deg, #fafcff 0%, #eef4ff 100%) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  #sl-sidebar.is-mobile-open::before {
    display: none !important;
  }
}

/* ========================================================================
   Mobile software-keyboard viewport handling — 0.10.25
   Keep fixed dialogs inside the Visual Viewport when Android/iOS keyboards
   reduce the actually visible part of the screen.
   ======================================================================== */
:root {
  --sl-visual-viewport-height: 100dvh;
  --sl-visual-viewport-offset-top: 0px;
}

.sl-modal,
.sl-ingredient-shopping-overlay {
  top: var(--sl-visual-viewport-offset-top, 0px);
  right: 0;
  bottom: auto;
  left: 0;
  height: var(--sl-visual-viewport-height, 100dvh);
  max-height: var(--sl-visual-viewport-height, 100dvh);
}

.sl-dialog,
.sl-ingredient-shopping-dialog {
  max-height: min(
    calc(var(--sl-visual-viewport-height, 100dvh) - 16px),
    780px
  );
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 679px) {
  .sl-modal,
  .sl-ingredient-shopping-overlay {
    height: var(--sl-visual-viewport-height, 100dvh);
    max-height: var(--sl-visual-viewport-height, 100dvh);
  }

  .sl-dialog,
  .sl-modal:has(#sl-new-list-form) .sl-dialog,
  .sl-modal:has(#sl-new-list-form .sl-type-dropdown.is-open) .sl-dialog,
  .sl-modal:has(.sl-barcode-dialog-body) .sl-dialog,
  .sl-ingredient-shopping-dialog {
    max-height: calc(var(--sl-visual-viewport-height, 100dvh) - 16px);
  }
}


/* ========================================================================
   Mobile My Lists drawer visual container refinement — 0.10.26
   ======================================================================== */
@media (max-width: 768px) {
  #sl-sidebar.is-mobile-open .sl-sidebar-head {
    margin: -2px 0 14px;
    padding: 4px 0 12px;
  }

  #sl-sidebar.is-mobile-open #sl-list-nav {
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(189, 205, 231, .82);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(244, 248, 255, .54));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .78),
      0 14px 34px rgba(44, 84, 152, .08);
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-item {
    min-height: 114px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 8px 22px rgba(42, 79, 145, .07);
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-item.is-active {
    border-color: rgba(63, 140, 255, .42);
    background: linear-gradient(145deg, rgba(234, 242, 255, .98), rgba(245, 242, 255, .94));
    box-shadow:
      0 12px 28px rgba(51, 94, 169, .12),
      inset 0 1px 0 rgba(255, 255, 255, .85);
  }
}


/* ========================================================================
   Mobile My Lists header card refinement — 0.10.27
   ======================================================================== */
@media (max-width: 768px) {
  #sl-sidebar.is-mobile-open .sl-sidebar-head {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid rgba(198, 214, 238, .88);
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
    box-shadow:
      0 8px 22px rgba(42, 79, 145, .07),
      inset 0 1px 0 rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
  }

  #sl-sidebar.is-mobile-open .sl-sidebar-title {
    padding-left: 2px;
  }

  #sl-sidebar.is-mobile-open .sl-sidebar-actions {
    padding-right: 0;
  }
}

/* ========================================================================
   List navigation: dedicated title row — 0.10.28
   Keep the list type icon + list name together on the first row and move
   secondary information (remaining/items count, badge, sharing state) below.
   ======================================================================== */
.sl-list-nav-item:has(.sl-list-type-icon) {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 9px;
  row-gap: 8px;
  align-items: center;
}

.sl-list-nav-item:has(.sl-list-type-icon) .sl-list-type-icon {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.sl-list-nav-item:has(.sl-list-type-icon) .sl-list-nav-copy {
  display: contents;
}

.sl-list-nav-item:has(.sl-list-type-icon) .sl-list-nav-copy strong {
  grid-column: 2 / 4;
  grid-row: 1;
  min-width: 0;
  padding-right: 0;
  overflow: hidden;
  white-space: normal;
  text-overflow: clip;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sl-list-nav-item:has(.sl-list-type-icon) .sl-list-nav-copy small {
  grid-column: 1 / 3;
  grid-row: 2;
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-list-nav-item:has(.sl-list-type-icon) .sl-list-nav-badge {
  grid-column: 3;
  grid-row: 2;
  align-self: center;
  justify-self: end;
}

/* A shared-list indicator belongs to the secondary-information row as well,
   so it no longer steals horizontal space from the list title. */
.sl-list-nav-entry:has(.sl-list-type-icon) .sl-list-sharing-indicator {
  top: auto;
  right: 49px;
  bottom: 10px;
}

.sl-list-nav-entry:has(.sl-list-sharing-indicator) .sl-list-nav-item:has(.sl-list-type-icon) .sl-list-nav-copy small {
  padding-right: 31px;
}

@media (max-width: 767px) {
  #sl-sidebar.is-mobile-open .sl-list-nav-item:has(.sl-list-type-icon) {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    min-height: 122px;
    align-content: center;
    column-gap: 9px;
    row-gap: 9px;
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-item:has(.sl-list-type-icon) .sl-list-nav-copy strong {
    grid-column: 2 / 4;
    padding-right: 0;
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-item:has(.sl-list-type-icon) .sl-list-nav-copy small {
    grid-column: 1 / 3;
    margin-top: 0;
  }

  #sl-sidebar.is-mobile-open .sl-list-nav-entry:has(.sl-list-type-icon) .sl-list-sharing-indicator {
    top: auto;
    right: 46px;
    bottom: 14px;
  }
}

@media (max-width: 360px) {
  #sl-sidebar.is-mobile-open .sl-list-nav-item:has(.sl-list-type-icon) {
    min-height: 116px;
  }
}

/* ========================================================================
   Home dashboard — 0.10.30
   Authenticated users land on a modular home screen instead of being dropped
   directly into one list. The dashboard intentionally leaves room for future
   modules without introducing Quick actions / Explore cards yet.
   ======================================================================== */
.sl-brand-button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.sl-brand-button:focus-visible {
  outline: 3px solid rgba(31,122,85,.18);
  outline-offset: 5px;
  border-radius: 18px;
}

.sl-dashboard-view {
  width: 100%;
  padding: 0 0 28px;
}

.sl-dashboard-hero,
.sl-dashboard-section {
  border: 1px solid rgba(255,255,255,.88);
  border-radius: var(--sla-radius-lg);
  background: rgba(255,255,255,.88);
  box-shadow: var(--sla-shadow);
}

.sl-dashboard-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 190px;
  overflow: hidden;
  padding: 30px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255,182,77,.22), transparent 18rem),
    radial-gradient(circle at 18% 110%, rgba(31,122,85,.13), transparent 25rem),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(244,249,246,.92));
}
.sl-dashboard-hero::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -55px;
  bottom: -95px;
  border: 30px solid rgba(31,122,85,.055);
  border-radius: 50%;
  pointer-events: none;
}
.sl-dashboard-kicker {
  margin: 0 0 7px;
  color: var(--sla-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sl-dashboard-hero h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 58px);
  line-height: 1;
  letter-spacing: -.05em;
}
.sl-dashboard-hero p:not(.sl-dashboard-kicker) {
  max-width: 570px;
  margin: 13px 0 0;
  color: var(--sla-muted);
  font-size: 14px;
  line-height: 1.55;
}
.sl-dashboard-date {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  max-width: 240px;
  padding: 10px 14px;
  border: 1px solid rgba(31,122,85,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--sla-muted-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

.sl-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.sl-dashboard-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 17px 18px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--sla-shadow-sm);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.sl-dashboard-action:hover,
.sl-dashboard-action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(31,122,85,.22);
  box-shadow: 0 16px 36px rgba(20,49,33,.10);
  outline: 0;
}
.sl-dashboard-action-primary {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--sla-accent-faint), rgba(255,255,255,.96));
}
.sl-dashboard-action:not(.sl-dashboard-action-primary):not(.sl-dashboard-action-compact) {
  grid-column: span 2;
}
.sl-dashboard-action-compact {
  grid-column: span 2;
}
.sl-dashboard-action-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--sla-surface-strong);
  color: var(--sla-accent-deep);
  font-size: 22px;
  font-weight: 900;
}
.sl-dashboard-action-primary .sl-dashboard-action-icon {
  background: var(--sla-accent);
  color: #fff;
  box-shadow: 0 9px 24px rgba(31,122,85,.20);
}

/* Primary dashboard destination: My Lists. Keep it visually related to the
   dashboard hero, but give it its own "list sheet" identity. */
#sl-dashboard-lists {
  position: relative;
  min-height: 122px;
  overflow: hidden;
  border-color: rgba(31,122,85,.20);
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.58) 0, rgba(255,255,255,0) 34%),
    linear-gradient(135deg, #f5fff9 0%, #e9f8f0 46%, #dff3e8 100%);
  box-shadow: 0 16px 38px rgba(20,49,33,.11);
}
/* Oversized checklist sheet used as clipped background artwork. It deliberately
   extends outside the card so it reads as atmosphere rather than an icon. */
#sl-dashboard-lists::before {
  content: "";
  position: absolute;
  top: 57%;
  right: -20px;
  width: 232px;
  height: 158px;
  transform: translateY(-50%) rotate(-5deg) scale(1.06);
  transform-origin: center;
  border: 1px solid rgba(31,122,85,.11);
  border-radius: 25px;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.66) 0,
      rgba(255,255,255,.66) 29px,
      rgba(31,122,85,.105) 29px,
      rgba(31,122,85,.105) 30px
    );
  box-shadow:
    0 18px 42px rgba(20,49,33,.06),
    inset 0 0 0 1px rgba(255,255,255,.42);
  opacity: .62;
  pointer-events: none;
}
#sl-dashboard-lists::after {
  content: "✓\A✓\A✓\A✓";
  position: absolute;
  top: 57%;
  right: -20px;
  width: 232px;
  height: 158px;
  box-sizing: border-box;
  padding: 2px 0 0 18px;
  transform: translateY(-50%) rotate(-5deg) scale(1.06);
  transform-origin: center;
  white-space: pre;
  color: rgba(31,122,85,.36);
  font-size: 13px;
  font-weight: 1000;
  line-height: 30px;
  pointer-events: none;
}
#sl-dashboard-lists > * {
  position: relative;
  z-index: 1;
}
#sl-dashboard-lists .sl-dashboard-action-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--sla-accent);
  color: #fff;
  box-shadow: 0 10px 26px rgba(31,122,85,.22);
  font-size: 24px;
}
#sl-dashboard-lists .sl-dashboard-action-copy strong {
  font-size: 17px;
  letter-spacing: -.015em;
}
#sl-dashboard-list-count {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-top: 8px !important;
  padding: 6px 10px;
  overflow: visible;
  border: 1px solid rgba(31,122,85,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 5px 15px rgba(20,49,33,.07);
  color: var(--sla-accent-deep) !important;
  font-size: 12px !important;
  font-weight: 900;
  line-height: 1;
  text-overflow: clip;
  white-space: nowrap;
}
#sl-dashboard-lists .sl-dashboard-action-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  box-shadow: 0 5px 14px rgba(20,49,33,.07);
}
#sl-dashboard-lists:hover,
#sl-dashboard-lists:focus-visible {
  border-color: rgba(31,122,85,.31);
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.66) 0, rgba(255,255,255,0) 35%),
    linear-gradient(135deg, #f1fff7 0%, #e3f7ec 46%, #d6efe1 100%);
  box-shadow: 0 20px 44px rgba(20,49,33,.14);
}
#sl-dashboard-lists:hover::before,
#sl-dashboard-lists:focus-visible::before {
  opacity: .73;
  transform: translateY(-50%) rotate(-4deg) scale(1.10);
}
.sl-dashboard-action-copy {
  min-width: 0;
}
.sl-dashboard-action-copy strong,
.sl-dashboard-action-copy small {
  display: block;
}
.sl-dashboard-action-copy strong {
  font-size: 15px;
  line-height: 1.25;
}
.sl-dashboard-action-copy small {
  margin-top: 5px;
  overflow: hidden;
  color: var(--sla-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sl-dashboard-action-arrow {
  color: var(--sla-accent);
  font-size: 20px;
  font-weight: 800;
}

.sl-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 14px;
}
.sl-dashboard-section {
  min-width: 0;
  padding: 22px;
}
.sl-dashboard-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.sl-dashboard-section-head p {
  margin: 0 0 4px;
  color: var(--sla-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.sl-dashboard-section-head h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -.025em;
}
.sl-dashboard-text-button {
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--sla-accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}
.sl-dashboard-text-button:hover,
.sl-dashboard-text-button:focus-visible {
  color: var(--sla-accent-hover);
  outline: 0;
  text-decoration: underline;
}

.sl-dashboard-recent,
.sl-dashboard-list-modal,
.sl-dashboard-today-entries {
  display: grid;
  gap: 9px;
}
.sl-dashboard-list-row,
.sl-dashboard-today-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--sla-border);
  border-radius: 16px;
  background: var(--sla-surface);
  cursor: pointer;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.sl-dashboard-list-row:hover,
.sl-dashboard-list-row:focus-visible,
.sl-dashboard-today-entry:hover,
.sl-dashboard-today-entry:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31,122,85,.24);
  background: var(--sla-accent-faint);
  outline: 0;
}
.sl-dashboard-list-icon,
.sl-dashboard-today-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 13px;
  background: var(--sla-surface-strong);
  color: var(--sla-accent-deep);
  font-size: 18px;
  font-weight: 900;
}
.sl-dashboard-list-svg {
  width: 21px;
  height: 21px;
}
.sl-dashboard-list-copy,
.sl-dashboard-today-copy {
  min-width: 0;
}
.sl-dashboard-list-copy strong,
.sl-dashboard-list-copy small,
.sl-dashboard-today-copy strong,
.sl-dashboard-today-copy small {
  display: block;
}
.sl-dashboard-list-copy strong,
.sl-dashboard-today-copy strong {
  overflow: hidden;
  color: var(--sla-text);
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sl-dashboard-list-copy small,
.sl-dashboard-today-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--sla-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sl-dashboard-list-arrow {
  color: var(--sla-muted);
  font-size: 16px;
}

.sl-dashboard-today-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 11px;
}
.sl-dashboard-today-stat {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--sla-border);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sla-surface-soft), #fff);
}
.sl-dashboard-today-stat > span {
  font-size: 13px;
}
.sl-dashboard-today-stat strong {
  color: var(--sla-accent-deep);
  font-size: 15px;
}
.sl-dashboard-today-stat small {
  min-width: 0;
  overflow: hidden;
  color: var(--sla-muted);
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sl-dashboard-today-icon {
  width: 35px;
  height: 35px;
  border-radius: 12px;
  background: var(--sla-warm-soft);
  color: #9b620e;
  font-size: 15px;
}

.sl-dashboard-empty {
  display: grid;
  justify-items: center;
  padding: 26px 18px;
  border: 1px dashed var(--sla-border-strong);
  border-radius: 18px;
  background: var(--sla-surface-soft);
  text-align: center;
}
.sl-dashboard-empty > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: var(--sla-accent-soft);
  color: var(--sla-accent-deep);
  font-size: 20px;
  font-weight: 900;
}
.sl-dashboard-empty strong {
  font-size: 13px;
}
.sl-dashboard-empty p {
  max-width: 340px;
  margin: 6px 0 0;
  color: var(--sla-muted);
  font-size: 11px;
  line-height: 1.5;
}
.sl-dashboard-empty .sl-btn {
  margin-top: 13px;
}
.sl-dashboard-empty.is-error > span {
  background: var(--sla-danger-soft);
  color: var(--sla-danger);
}

.sl-dashboard-loading-line {
  height: 56px;
  margin-bottom: 9px;
  border-radius: 15px;
  background: linear-gradient(90deg, var(--sla-surface-soft), #fff, var(--sla-surface-soft));
  background-size: 220% 100%;
  animation: sl-dashboard-loading 1.2s ease-in-out infinite;
}
.sl-dashboard-loading-line.is-short {
  width: 72%;
}
@keyframes sl-dashboard-loading {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.sl-dashboard-list-modal {
  max-height: min(56vh, 500px);
  overflow-y: auto;
  padding-right: 2px;
}
.sl-dashboard-list-modal-actions {
  margin-top: 15px;
}

@media (min-width: 900px) {
  .sl-dashboard-action-compact {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .sl-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sl-dashboard-view {
    padding-bottom: 18px;
  }
  .sl-dashboard-hero {
    display: block;
    min-height: 0;
    padding: 24px 20px;
    border-radius: 24px;
  }
  .sl-dashboard-hero h1 {
    font-size: 40px;
  }
  .sl-dashboard-date {
    width: max-content;
    max-width: 100%;
    margin-top: 19px;
  }
  .sl-dashboard-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .sl-dashboard-action,
  .sl-dashboard-action-primary,
  .sl-dashboard-action:not(.sl-dashboard-action-primary):not(.sl-dashboard-action-compact),
  .sl-dashboard-action-compact {
    grid-column: span 1;
  }
  #sl-dashboard-lists {
    grid-column: 1 / -1;
    min-height: 118px;
    padding: 18px 20px;
  }
  #sl-dashboard-lists .sl-dashboard-action-arrow {
    display: grid;
  }
  #sl-dashboard-lists::before {
    top: 60%;
    right: -30px;
    width: 214px;
    height: 148px;
    opacity: .55;
  }
  #sl-dashboard-lists::after {
    top: 60%;
    right: -30px;
    width: 214px;
    height: 148px;
    opacity: .56;
  }
  .sl-dashboard-action {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 86px;
    padding: 14px;
    border-radius: 18px;
  }
  .sl-dashboard-action-arrow {
    display: none;
  }
  .sl-dashboard-action-copy small {
    white-space: normal;
    line-height: 1.25;
  }
  .sl-dashboard-section {
    padding: 18px;
    border-radius: 24px;
  }
  .sl-dashboard-today-summary {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 390px) {
  /* Keep dashboard actions in two columns even on narrow phones. */
  .sl-dashboard-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .sl-dashboard-action,
  .sl-dashboard-action-primary,
  .sl-dashboard-action:not(.sl-dashboard-action-primary):not(.sl-dashboard-action-compact),
  .sl-dashboard-action-compact {
    grid-column: span 1;
    width: 100%;
    min-width: 0;
    gap: 9px;
    padding: 12px 10px;
  }
  #sl-dashboard-lists {
    grid-column: 1 / -1;
    min-height: 112px;
    padding: 16px 14px;
  }
  #sl-dashboard-lists .sl-dashboard-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 22px;
  }
  #sl-dashboard-lists .sl-dashboard-action-copy strong {
    font-size: 15px;
  }
  #sl-dashboard-lists .sl-dashboard-action-copy small {
    font-size: 10.5px;
  }
  #sl-dashboard-list-count {
    padding: 5px 8px;
    font-size: 10.5px !important;
  }
  #sl-dashboard-lists::before {
    top: 62%;
    right: -42px;
    width: 198px;
    height: 140px;
    opacity: .48;
  }
  #sl-dashboard-lists::after {
    top: 62%;
    right: -42px;
    width: 198px;
    height: 140px;
    padding-left: 16px;
    opacity: .48;
  }
  .sl-dashboard-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 19px;
  }
  .sl-dashboard-action-copy strong {
    font-size: 13px;
  }
  .sl-dashboard-action-copy small {
    font-size: 10px;
  }
  .sl-dashboard-today-summary {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sl-dashboard-loading-line {
    animation: none;
  }
}

/* Push notification deactivation is intentionally a low-emphasis action — 0.10.42.
   Keep this block at the end so generic .sl-btn/mobile rules cannot override it. */
.sl-push-settings-actions .sl-btn.sl-btn-subtle {
  justify-self: end;
  width: auto;
  min-width: 0;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid rgba(83, 104, 92, .18);
  border-radius: 9px;
  background: transparent;
  color: #2f3740;
  box-shadow: none;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.2;
  transform: none;
}
.sl-push-settings-actions .sl-btn.sl-btn-subtle:hover,
.sl-push-settings-actions .sl-btn.sl-btn-subtle:focus-visible {
  border-color: rgba(83, 104, 92, .30);
  background: rgba(255, 255, 255, .52);
  color: #1f252b;
  box-shadow: none;
  transform: none;
}
@media (max-width: 767px) {
  .sl-push-settings-actions .sl-btn.sl-btn-subtle {
    justify-self: start;
    width: auto;
    min-height: 31px;
    padding: 5px 9px;
  }
}

/* Force readable text on the notification deactivation controls — 0.10.44. */
.sl-push-settings-actions button[data-native-push-deactivate],
.sl-push-settings-actions button[data-push-toggle][data-push-enabled="1"] {
  color: #1f2933 !important;
  -webkit-text-fill-color: #1f2933 !important;
  opacity: 1 !important;
}
.sl-push-settings-actions button[data-native-push-deactivate]:hover,
.sl-push-settings-actions button[data-native-push-deactivate]:focus-visible,
.sl-push-settings-actions button[data-push-toggle][data-push-enabled="1"]:hover,
.sl-push-settings-actions button[data-push-toggle][data-push-enabled="1"]:focus-visible {
  color: #111820 !important;
  -webkit-text-fill-color: #111820 !important;
}


/* Dashboard: My Lists is the primary full-width card and does not need a trailing arrow. */
#sl-dashboard-lists .sl-dashboard-action-arrow {
  display: none !important;
}


/* Item reminder shortcut — 0.10.46 */
.sl-item-reminder {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 1px solid rgba(87, 99, 115, .16);
  border-radius: 12px;
  background: rgba(247, 249, 251, .94);
  color: #687381;
  box-shadow: none;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.sl-item-reminder svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sl-item-reminder:hover {
  transform: translateY(-1px);
  border-color: rgba(70, 82, 98, .30);
  background: #ffffff;
  color: #384453;
  box-shadow: 0 7px 18px rgba(40, 51, 65, .08);
}

.sl-item-reminder:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(95, 109, 128, .13);
}

.sl-item-reminder.has-reminder {
  border-color: rgba(205, 145, 35, .34);
  background: rgba(255, 238, 199, .96);
  color: #95660d;
  box-shadow: 0 5px 14px rgba(175, 119, 18, .09);
}

.sl-item-reminder.has-reminder:hover {
  border-color: rgba(190, 126, 16, .48);
  background: #fff5d9;
  color: #795006;
  box-shadow: 0 7px 18px rgba(175, 119, 18, .13);
}

.sl-item.is-completed .sl-item-reminder {
  opacity: .88;
}

@media (max-width: 767px) {
  .sl-item-reminder {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 11px;
  }

  .sl-item-reminder svg {
    width: 17px;
    height: 17px;
  }
}

/* ========================================================================
   Item editor sticky header + footer — 0.10.47
   Keep Close and Save accessible while the item fields scroll independently.
   ======================================================================== */
.sl-modal:has(#sl-item-edit-form) .sl-dialog {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sl-modal:has(#sl-item-edit-form) .sl-dialog-head {
  position: relative;
  z-index: 6;
  flex: 0 0 auto;
  padding-right: 68px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(31, 54, 42, .08);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 20px rgba(20, 49, 33, .035);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sl-modal:has(#sl-item-edit-form) .sl-dialog-head [data-close-modal] {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 7;
}

.sl-modal:has(#sl-item-edit-form) .sl-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sl-modal:has(#sl-item-edit-form) #sl-item-edit-form > .sl-form-actions {
  position: sticky;
  bottom: -23px;
  z-index: 5;
  margin: 10px -22px -23px;
  padding: 14px 22px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(31, 54, 42, .09);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -10px 24px rgba(20, 49, 33, .055);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 640px) {
  .sl-modal:has(#sl-item-edit-form) .sl-dialog-head {
    padding-right: 62px;
    padding-bottom: 13px;
  }

  .sl-modal:has(#sl-item-edit-form) .sl-dialog-head [data-close-modal] {
    top: 12px;
    right: 12px;
  }

  .sl-modal:has(#sl-item-edit-form) #sl-item-edit-form > .sl-form-actions {
    bottom: -20px;
    margin: 10px -18px -20px;
    padding: 12px 18px max(14px, env(safe-area-inset-bottom));
  }
}


/* ========================================================================
   Item editor sticky surface polish — 0.10.48
   Make the sticky footer truly edge-to-edge and match the dialog surface.
   ======================================================================== */
.sl-modal:has(#sl-item-edit-form) .sl-dialog-head,
.sl-modal:has(#sl-item-edit-form) #sl-item-edit-form > .sl-form-actions {
  background:
    linear-gradient(180deg, rgba(248, 250, 248, .98) 0%, rgba(243, 247, 244, .98) 100%);
}

.sl-modal:has(#sl-item-edit-form) #sl-item-edit-form > .sl-form-actions {
  width: calc(100% + 44px);
  max-width: none;
  margin-left: -22px;
  margin-right: -22px;
}

@media (max-width: 679px) {
  .sl-modal:has(#sl-item-edit-form) #sl-item-edit-form > .sl-form-actions {
    width: calc(100% + 34px);
    max-width: none;
    margin-left: -17px;
    margin-right: -17px;
  }
}


/* Dashboard Today: grouped date/reminder sections (0.10.49). */
.sl-dashboard-today-groups {
  display: grid;
  gap: 16px;
}
.sl-dashboard-today-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.sl-dashboard-today-group + .sl-dashboard-today-group {
  padding-top: 14px;
  border-top: 1px solid var(--sla-border);
}
.sl-dashboard-today-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 2px;
}
.sl-dashboard-today-group-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: var(--sla-accent-soft);
  color: var(--sla-accent-deep);
  font-size: 12px;
  font-weight: 900;
}
.sl-dashboard-today-group-head h3 {
  min-width: 0;
  margin: 0;
  color: var(--sla-text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -.01em;
}
.sl-dashboard-today-group-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  border: 1px solid var(--sla-border);
  border-radius: 999px;
  background: var(--sla-surface-soft);
  color: var(--sla-muted);
  font-size: 9px;
  font-weight: 900;
}
.sl-dashboard-today-group .sl-dashboard-today-entries {
  display: grid;
  gap: 7px;
}
@media (max-width: 640px) {
  .sl-dashboard-today-groups {
    gap: 14px;
  }
  .sl-dashboard-today-group + .sl-dashboard-today-group {
    padding-top: 12px;
  }
}


/* ========================================================================
   Item editor bottom inset stability — 0.10.50
   Do not compensate the dialog body's bottom padding with a fixed negative
   sticky offset. Real Samsung/One UI WebViews can expose a larger safe-area
   inset than emulators, which otherwise leaves a visible strip below actions.
   The safe area now lives inside the action bar itself.
   ======================================================================== */
.sl-modal:has(#sl-item-edit-form) .sl-dialog-body {
  padding-bottom: 0;
}

.sl-modal:has(#sl-item-edit-form) #sl-item-edit-form > .sl-form-actions {
  bottom: 0;
  margin-bottom: 0;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

@media (max-width: 679px) {
  .sl-modal:has(#sl-item-edit-form) .sl-dialog-body {
    padding-bottom: 0;
  }

  .sl-modal:has(#sl-item-edit-form) #sl-item-edit-form > .sl-form-actions {
    bottom: 0;
    margin-bottom: 0;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
}

/* Notification Center destructive secondary action — 0.10.52
   The global .sl-btn rule sets white text with !important, so this exact
   control must explicitly override both CSS color and WebKit text fill. */
.sl-notification-toolbar button.sl-btn[data-notification-delete-all] {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(153, 57, 57, .28);
  background: rgba(153, 57, 57, .055);
  color: #823b3b !important;
  -webkit-text-fill-color: #823b3b !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-weight: 700;
}

.sl-notification-toolbar button.sl-btn[data-notification-delete-all]:hover,
.sl-notification-toolbar button.sl-btn[data-notification-delete-all]:focus-visible {
  border-color: rgba(153, 57, 57, .42);
  background: rgba(153, 57, 57, .10);
  color: #6d2f2f !important;
  -webkit-text-fill-color: #6d2f2f !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.sl-notification-toolbar button.sl-btn[data-notification-delete-all]:active {
  background: rgba(153, 57, 57, .14);
  color: #6d2f2f !important;
  -webkit-text-fill-color: #6d2f2f !important;
}


/* ========================================================================
   List'nize in-app alerts / confirmations — 0.10.53
   Replaces browser-native confirm/alert UI. Keep button text colors explicit
   because an older global .sl-btn rule uses white !important.
   ======================================================================== */
.sl-app-dialog-layer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(31, 45, 38, .36);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: sl-fade-in .16s ease both;
}

.sl-app-dialog {
  width: min(420px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(250, 252, 250, .995), rgba(244, 248, 245, .995));
  box-shadow: 0 24px 68px rgba(27, 55, 38, .22);
  animation: sl-dialog-up .22s cubic-bezier(.22, 1, .36, 1) both;
}

.sl-app-dialog-copy {
  padding: 22px 22px 18px;
}

.sl-app-dialog-copy h2 {
  margin: 0;
  color: var(--sla-text);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.sl-app-dialog-copy p {
  margin: 9px 0 0;
  color: var(--sla-muted-strong);
  font-size: 13px;
  line-height: 1.55;
}

.sl-app-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(31, 54, 42, .09);
  background: rgba(239, 245, 241, .82);
}

/* Primary response: preserve the application's primary-button treatment. */
.sl-app-dialog .sl-app-dialog-actions > button.sl-btn:not(.sl-btn-secondary) {
  min-width: 104px;
  background: linear-gradient(145deg, #3fae70, var(--sla-accent));
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(20, 35, 65, .16);
}

.sl-app-dialog .sl-app-dialog-actions > button.sl-btn:not(.sl-btn-secondary):hover,
.sl-app-dialog .sl-app-dialog-actions > button.sl-btn:not(.sl-btn-secondary):focus-visible {
  background: linear-gradient(145deg, var(--sla-accent), var(--sla-accent-hover));
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Secondary response: explicitly defeat the old global white !important. */
.sl-app-dialog .sl-app-dialog-actions > button.sl-btn.sl-btn-secondary {
  min-width: 96px;
  border: 1px solid #d4e6da;
  background: #ffffff;
  color: #40564a !important;
  -webkit-text-fill-color: #40564a !important;
  text-shadow: none !important;
  box-shadow: none;
}

.sl-app-dialog .sl-app-dialog-actions > button.sl-btn.sl-btn-secondary:hover,
.sl-app-dialog .sl-app-dialog-actions > button.sl-btn.sl-btn-secondary:focus-visible {
  border-color: #aed3bc;
  background: #f0faf4;
  color: var(--sla-accent-deep) !important;
  -webkit-text-fill-color: var(--sla-accent-deep) !important;
  text-shadow: none !important;
}

@media (max-width: 480px) {
  .sl-app-dialog-layer {
    align-items: end;
    padding-left: 10px;
    padding-right: 10px;
  }

  .sl-app-dialog {
    border-radius: 22px;
  }

  .sl-app-dialog-copy {
    padding: 20px 18px 16px;
  }

  .sl-app-dialog-actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .sl-app-dialog-actions .sl-btn {
    flex: 1 1 0;
    min-width: 0 !important;
  }
}


/* My Account: Sign out is a secondary action — 0.10.54. */
.sl-account-profile-view .sl-form-actions > button.sl-btn.sl-btn-secondary[data-logout] {
  border: 1px solid #d4e6da;
  background: rgba(255, 255, 255, .72);
  color: #40564a !important;
  -webkit-text-fill-color: #40564a !important;
  text-shadow: none !important;
  box-shadow: none;
}

.sl-account-profile-view .sl-form-actions > button.sl-btn.sl-btn-secondary[data-logout]:hover,
.sl-account-profile-view .sl-form-actions > button.sl-btn.sl-btn-secondary[data-logout]:focus-visible {
  border-color: #aed3bc;
  background: #f0faf4;
  color: var(--sla-accent-deep) !important;
  -webkit-text-fill-color: var(--sla-accent-deep) !important;
  text-shadow: none !important;
  box-shadow: none;
}

/* ========================================================================
   My contacts — 0.10.55
   ======================================================================== */
.sl-contacts-view {
  display: grid;
  gap: 14px;
}

.sl-contacts-note {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid rgba(31, 122, 85, .11);
  border-radius: 13px;
  background: rgba(241, 251, 245, .82);
  color: var(--sla-muted-strong);
  font-size: 12px;
  line-height: 1.5;
}

.sl-contacts-list {
  display: grid;
  gap: 9px;
}

.sl-contact-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--sla-border);
  border-radius: 15px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 5px 16px rgba(20, 49, 33, .035);
}

.sl-contact-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--sla-accent-soft);
  color: var(--sla-accent-deep);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.sl-contact-copy {
  min-width: 0;
}

.sl-contact-copy strong,
.sl-contact-copy span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-contact-copy strong {
  color: var(--sla-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.sl-contact-copy span {
  margin-top: 3px;
  color: var(--sla-muted);
  font-size: 12px;
  line-height: 1.35;
}

/* Deliberately not an .sl-btn: this is a low-emphasis destructive utility
   and must not inherit the global primary-button white text rule. */
.sl-contacts-view button.sl-contact-remove {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #8a6262 !important;
  -webkit-text-fill-color: #8a6262 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.sl-contacts-view button.sl-contact-remove svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.sl-contacts-view button.sl-contact-remove:hover,
.sl-contacts-view button.sl-contact-remove:focus-visible {
  border-color: rgba(153, 57, 57, .18);
  background: rgba(153, 57, 57, .07);
  color: #7a3f3f !important;
  -webkit-text-fill-color: #7a3f3f !important;
  outline: none;
}

.sl-contacts-view button.sl-contact-remove:active {
  transform: scale(.96);
}

.sl-contacts-view button.sl-contact-remove:disabled {
  opacity: .45;
  cursor: wait;
}

.sl-contacts-empty {
  display: grid;
  justify-items: center;
  padding: 28px 18px;
  border: 1px dashed var(--sla-border-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, .52);
  text-align: center;
}

.sl-contacts-empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: var(--sla-accent-soft);
  font-size: 22px;
}

.sl-contacts-empty strong {
  color: var(--sla-text);
  font-size: 14px;
}

.sl-contacts-empty p {
  max-width: 310px;
  margin: 6px 0 0;
  color: var(--sla-muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .sl-contact-row {
    grid-template-columns: 38px minmax(0, 1fr) 34px;
    gap: 9px;
    padding: 10px;
  }

  .sl-contact-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
}


/* ========================================================================
   Share-list contact email autocomplete — 0.10.56
   Custom suggestions from My contacts; native email entry remains available.
   ======================================================================== */
.sl-invite-contact-field {
  position: relative;
  z-index: 8;
}

.sl-invite-contact-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: min(240px, 38vh);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(53, 79, 66, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .99);
  box-shadow: 0 18px 42px rgba(20, 49, 33, .16);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sl-invite-contact-dropdown[hidden] {
  display: none !important;
}

.sl-invite-contact-option {
  display: flex;
  width: 100%;
  min-height: 48px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #25352d !important;
  -webkit-text-fill-color: #25352d !important;
  box-shadow: none !important;
  text-align: left;
  cursor: pointer;
}

.sl-invite-contact-option:hover,
.sl-invite-contact-option:focus-visible,
.sl-invite-contact-option.is-active {
  outline: 0;
  background: rgba(31, 122, 85, .085);
  color: #153d2c !important;
  -webkit-text-fill-color: #153d2c !important;
  box-shadow: none !important;
}

.sl-invite-contact-email {
  display: block;
  width: 100%;
  overflow: hidden;
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-invite-contact-name {
  display: block;
  width: 100%;
  overflow: hidden;
  color: #718078 !important;
  -webkit-text-fill-color: #718078 !important;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 679px) {
  .sl-invite-contact-dropdown {
    max-height: min(220px, 34vh);
  }
}


/* ========================================================================
   Shared-list Leave action — 0.10.57
   Compact secondary action for collaborators. Keep this block at the end so
   the legacy global .sl-btn white-text !important rule cannot override it.
   ======================================================================== */
.sl-head-actions > button.sl-btn.sl-btn-secondary.sl-leave-list-button {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #d4e6da;
  border-radius: 14px;
  background: rgba(255, 255, 255, .84);
  color: #40564a !important;
  -webkit-text-fill-color: #40564a !important;
  text-shadow: none !important;
  box-shadow: none;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.sl-head-actions > button.sl-btn.sl-btn-secondary.sl-leave-list-button:hover,
.sl-head-actions > button.sl-btn.sl-btn-secondary.sl-leave-list-button:focus-visible {
  border-color: #aed3bc;
  background: #f0faf4;
  color: var(--sla-accent-deep) !important;
  -webkit-text-fill-color: var(--sla-accent-deep) !important;
  text-shadow: none !important;
  box-shadow: none;
}

@media (max-width: 500px) {
  .sl-head-actions > button.sl-btn.sl-btn-secondary.sl-leave-list-button {
    min-height: 40px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 11px;
  }
}


/* ========================================================================
   Native tap highlight suppression — 0.10.58
   Remove Chromium/Android WebView's translucent blue tap flash globally.
   Keyboard accessibility remains handled by the app's existing :focus-visible
   rules, which are intentionally left unchanged.
   ======================================================================== */
* {
  -webkit-tap-highlight-color: transparent;
}

/* ========================================================================
   Account timezone + public app version — 0.10.60
   Keep account metadata intentionally quiet and visually subordinate.
   ======================================================================== */
.sl-account-timezone {
  display: block;
  margin-top: 12px;
  padding: 9px 0 0;
  border: 0;
  border-top: 1px solid rgba(53, 79, 66, .07);
  border-radius: 0;
  background: transparent;
}

.sl-account-timezone-icon {
  display: none !important;
}

.sl-account-timezone-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.sl-account-timezone-copy .sl-account-timezone-label {
  color: #8a9891;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .045em;
  line-height: 1.25;
  text-transform: uppercase;
}

.sl-account-timezone-copy strong {
  overflow-wrap: anywhere;
  color: #66736c;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.35;
}

.sl-account-timezone-copy > span:last-child {
  color: #909b95;
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.4;
}

.sl-settings-version {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid rgba(53, 79, 66, .055);
  color: #929d97;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  opacity: .82;
}

@media (max-width: 480px) {
  .sl-account-timezone {
    margin-top: 10px;
    padding-top: 8px;
  }

  .sl-settings-version {
    margin-top: 42px;
    padding-top: 16px;
  }
}


/* ========================================================================
   Compact list-level information summary — 0.10.61
   Sits between the list header and progress. Values remain compact but clearly
   tappable; the legacy global .sl-btn rule is intentionally avoided.
   ======================================================================== */
.sl-list-details-summary {
  margin: 10px 0 2px;
}

.sl-list-details-summary-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 6px;
}

button.sl-list-summary-item {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  max-width: min(100%, 280px);
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(70, 115, 91, .14);
  border-radius: 9px;
  background: rgba(241, 248, 244, .68);
  color: #52645a !important;
  -webkit-text-fill-color: #52645a !important;
  box-shadow: none !important;
  text-align: left;
  cursor: pointer;
}

button.sl-list-summary-item:hover,
button.sl-list-summary-item:focus-visible {
  border-color: rgba(57, 139, 96, .26);
  outline: 0;
  background: rgba(231, 246, 237, .9);
  color: #304c3d !important;
  -webkit-text-fill-color: #304c3d !important;
  box-shadow: 0 0 0 2px rgba(63, 174, 112, .08) !important;
}

.sl-list-summary-label {
  flex: 0 0 auto;
  color: #819087 !important;
  -webkit-text-fill-color: #819087 !important;
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: .025em;
  line-height: 1.25;
  text-transform: uppercase;
}

.sl-list-summary-value {
  min-width: 0;
  overflow: hidden;
  color: #40564a !important;
  -webkit-text-fill-color: #40564a !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-property-field.is-summary-focus-target,
.sl-property-check.is-summary-focus-target {
  border-radius: 10px;
  outline: 2px solid rgba(63, 174, 112, .18);
  outline-offset: 3px;
}

@media (max-width: 500px) {
  .sl-list-details-summary {
    margin-top: 8px;
  }

  .sl-list-details-summary-list {
    gap: 4px 5px;
  }

  button.sl-list-summary-item {
    max-width: 100%;
    padding: 5px 7px;
  }

  .sl-list-summary-label {
    font-size: 8px;
  }

  .sl-list-summary-value {
    font-size: 10.5px;
  }
}


/* ========================================================================
   To-do nested subtasks — 0.10.62
   Subtasks stay visually attached to their parent task and intentionally
   expose only completion state (checkbox + name).
   ======================================================================== */
.sl-item.has-subtasks {
  align-items: start;
}

.sl-item.has-subtasks > .sl-checkbox,
.sl-item.has-subtasks > .sl-item-copy,
.sl-item.has-subtasks > .sl-item-actions {
  align-self: center;
}

.sl-subtasks {
  grid-column: 2 / -1;
  display: grid;
  gap: 2px;
  min-width: 0;
  margin: 4px 0 -2px;
  padding: 5px 0 0 10px;
  border-left: 1px solid rgba(78, 112, 94, .14);
  list-style: none;
}

.sl-subtask {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 3px 6px;
  border-radius: 8px;
  background: transparent;
  transition: background .15s ease, opacity .15s ease;
}

.sl-subtask:hover {
  background: rgba(239, 247, 242, .62);
}

.sl-subtask .sl-subtask-checkbox {
  width: 20px;
  height: 20px;
  border-width: 1.5px;
  border-radius: 7px;
  box-shadow: none;
}

.sl-subtask .sl-subtask-checkbox:hover {
  transform: none;
}

.sl-subtask .sl-subtask-checkbox:checked {
  box-shadow: none;
}

.sl-subtask .sl-subtask-checkbox:checked::after {
  font-size: 12px;
}

.sl-subtask-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #53645b;
  -webkit-text-fill-color: #53645b;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
}

.sl-subtask.is-completed {
  opacity: .68;
}

.sl-subtask.is-completed .sl-subtask-name,
.sl-item.is-completed .sl-subtask-name {
  color: #849088;
  -webkit-text-fill-color: #849088;
  text-decoration: line-through;
  text-decoration-thickness: 1.25px;
}

.sl-subtask .sl-subtask-checkbox:disabled {
  cursor: default;
}

@media (max-width: 600px) {
  .sl-subtasks {
    margin-top: 3px;
    padding-left: 8px;
  }

  .sl-subtask {
    gap: 7px;
    min-height: 29px;
    padding: 3px 4px;
  }

  .sl-subtask .sl-subtask-checkbox {
    width: 19px;
    height: 19px;
  }

  .sl-subtask-name {
    font-size: 12px;
  }
}

/* ========================================================================
   Autosave editor UX — 0.10.63 / footer refinement 0.10.64
   Item/list edits persist automatically. The item editor no longer needs a
   sticky Save footer; Delete remains a quiet action at the end of the form.
   ======================================================================== */
.sl-autosave-status {
  min-height: 16px;
  margin: -2px 0 3px;
  color: rgba(64, 86, 74, .62);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .01em;
  text-align: right;
  transition: opacity .18s ease, color .18s ease;
}

.sl-autosave-status:empty {
  min-height: 0;
  margin-bottom: 0;
}

.sl-autosave-status.is-saving {
  color: rgba(64, 86, 74, .66);
}

.sl-autosave-status.is-saved {
  color: rgba(55, 116, 79, .68);
}

.sl-autosave-status.is-error {
  color: rgba(145, 68, 68, .82);
}

.sl-item-edit-footer {
  margin-top: 18px;
  padding: 14px 0 max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(31, 54, 42, .07);
}

.sl-item-edit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sl-item-edit-actions > .sl-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 96px;
}

.sl-item-edit-actions .sl-btn.sl-btn-delete-subtle {
  border: 1px solid rgba(174, 86, 86, .24);
  background: transparent !important;
  color: #9a6262 !important;
  -webkit-text-fill-color: #9a6262 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.sl-item-edit-actions .sl-btn.sl-btn-delete-subtle:hover,
.sl-item-edit-actions .sl-btn.sl-btn-delete-subtle:focus-visible {
  border-color: rgba(174, 86, 86, .42);
  background: rgba(197, 74, 74, .07) !important;
  color: #a44747 !important;
  -webkit-text-fill-color: #a44747 !important;
  box-shadow: none !important;
}

.sl-item-edit-actions .sl-btn.sl-btn-delete-subtle:active {
  background: rgba(197, 74, 74, .11) !important;
  transform: translateY(1px);
}

.sl-item-edit-autosave-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 27px;
  margin-top: 9px;
  padding: 5px 9px;
  border: 1px solid rgba(31, 54, 42, .055);
  border-radius: 9px;
  background: rgba(238, 244, 240, .42);
}

.sl-item-edit-autosave-box .sl-autosave-status {
  min-height: 0;
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  text-align: right;
}

.sl-item-edit-autosave-box .sl-autosave-status:empty {
  min-height: 0;
  margin: 0;
}

@media (max-width: 679px) {
  .sl-autosave-status {
    font-size: 10px;
  }

  .sl-item-edit-footer {
    margin-top: 16px;
    padding-top: 12px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .sl-item-edit-actions {
    gap: 10px;
  }

  .sl-item-edit-actions > .sl-btn {
    min-width: 94px;
  }

  .sl-item-edit-autosave-box {
    min-height: 25px;
    margin-top: 8px;
    padding: 4px 8px;
  }
}


/* ========================================================================
   Item editor footer polish — 0.10.65
   Keep the footer Close action textual and simplify the autosave status.
   ======================================================================== */
.sl-item-edit-actions [data-close-modal] {
  font-size: 14px !important;
  text-indent: 0;
}

.sl-item-edit-actions [data-close-modal]::before {
  content: none !important;
  display: none !important;
}

.sl-item-edit-autosave-box {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  border: 0;
  background: transparent;
}

.sl-item-edit-autosave-box .sl-autosave-status {
  width: 100%;
  text-align: center;
}


/* ========================================================================
   Inventory quantity subtraction — 0.10.66
   ======================================================================== */
.sl-item-quantity-subtract {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 1px solid rgba(87, 99, 115, .16);
  border-radius: 12px;
  background: rgba(247, 249, 251, .94);
  color: #687381;
  box-shadow: none;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.sl-item-quantity-subtract svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sl-item-quantity-subtract:hover {
  transform: translateY(-1px);
  border-color: rgba(70, 82, 98, .30);
  background: #ffffff;
  color: #384453;
  box-shadow: 0 7px 18px rgba(40, 51, 65, .08);
}

.sl-item-quantity-subtract:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(95, 109, 128, .13);
}

.sl-inventory-subtract-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sl-inventory-subtract-input-row .sl-input {
  flex: 1 1 auto;
  min-width: 0;
}

.sl-inventory-subtract-unit {
  flex: 0 0 auto;
  min-width: 28px;
  color: var(--sla-muted-strong);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.sl-form-actions.sl-inventory-subtract-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
}

.sl-form-actions.sl-inventory-subtract-actions > .sl-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 118px;
}

@media (max-width: 767px) {
  .sl-item-quantity-subtract {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 11px;
  }

  .sl-item-quantity-subtract svg {
    width: 17px;
    height: 17px;
  }

  .sl-form-actions.sl-inventory-subtract-actions > .sl-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
  }
}

/* ========================================================================
   Inventory subtract modal secondary Close action — 0.10.67
   Use a selector stronger than legacy/global .sl-btn rules and explicit
   !important declarations for presentation properties that older rules may
   force on modal buttons.
   ======================================================================== */
.sl-modal .sl-form-actions.sl-inventory-subtract-actions > button.sl-btn.sl-btn-secondary[data-close-inventory-subtract] {
  border: 1px solid var(--sla-border) !important;
  background: rgba(255, 255, 255, .92) !important;
  background-image: none !important;
  color: var(--sla-text) !important;
  -webkit-text-fill-color: var(--sla-text) !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

.sl-modal .sl-form-actions.sl-inventory-subtract-actions > button.sl-btn.sl-btn-secondary[data-close-inventory-subtract]:hover,
.sl-modal .sl-form-actions.sl-inventory-subtract-actions > button.sl-btn.sl-btn-secondary[data-close-inventory-subtract]:focus-visible {
  border-color: var(--sla-border-strong) !important;
  background: #ffffff !important;
  background-image: none !important;
  color: var(--sla-accent-deep) !important;
  -webkit-text-fill-color: var(--sla-accent-deep) !important;
  text-shadow: none !important;
  box-shadow: 0 0 0 4px rgba(31, 122, 85, .10) !important;
}

.sl-modal .sl-form-actions.sl-inventory-subtract-actions > button.sl-btn.sl-btn-secondary[data-close-inventory-subtract]:active {
  background: rgba(247, 250, 248, .98) !important;
  background-image: none !important;
  color: var(--sla-accent-deep) !important;
  -webkit-text-fill-color: var(--sla-accent-deep) !important;
  box-shadow: none !important;
}


/* ========================================================================
   General application loading overlay — 0.10.68
   ======================================================================== */
.sl-app-loading[hidden] {
  display: none !important;
}

.sl-app-loading {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: grid;
  place-items: center;
  padding: 24px;
  isolation: isolate;
}

.sl-app-loading-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(244, 248, 252, .66);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.sl-app-loading-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 144px;
  padding: 20px 24px 18px;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  color: var(--sla-text);
  box-shadow: 0 18px 55px rgba(37, 57, 88, .16);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  animation: sl-fade-in .16s ease both;
}

.sl-app-loading-card .sl-spinner {
  width: 34px;
  height: 34px;
  margin: 0 0 11px;
}

html.sl-app-is-loading,
body.sl-app-is-loading {
  overscroll-behavior: none;
}

@media (prefers-reduced-motion: reduce) {
  .sl-app-loading-card {
    animation: none;
  }
}


/* ========================================================================
   Settings feedback/help action — 0.10.69
   Dedicated class avoids legacy .sl-btn white-text !important overrides.
   ======================================================================== */
.sl-account-help .sl-feedback-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 100%;
  padding: 9px 15px;
  border: 1px solid var(--sla-border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  background-image: none;
  color: var(--sla-text) !important;
  -webkit-text-fill-color: var(--sla-text) !important;
  box-shadow: 0 6px 18px rgba(20, 49, 33, .05);
  text-shadow: none;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.sl-account-help .sl-feedback-link:hover,
.sl-account-help .sl-feedback-link:focus-visible {
  border-color: var(--sla-border-strong);
  background: #ffffff;
  background-image: none;
  color: var(--sla-accent-deep) !important;
  -webkit-text-fill-color: var(--sla-accent-deep) !important;
  box-shadow: 0 8px 20px rgba(20, 49, 33, .08);
  text-shadow: none;
  text-decoration: none;
}

.sl-account-help .sl-feedback-link:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(31, 122, 85, .10), 0 8px 20px rgba(20, 49, 33, .08);
}

.sl-account-help .sl-feedback-link:active {
  transform: translateY(1px);
  background: rgba(247, 250, 248, .98);
}

@media (max-width: 679px) {
  .sl-account-help .sl-feedback-link {
    width: 100%;
  }
}

/* ========================================================================
   First-device language onboarding — 0.10.70
   ======================================================================== */
.sl-language-onboarding[hidden] {
  display: none !important;
}

.sl-language-onboarding {
  position: fixed;
  inset: 0;
  z-index: 16000;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  isolation: isolate;
}

.sl-language-onboarding-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(121, 137, 255, .20), transparent 34%),
    radial-gradient(circle at 82% 88%, rgba(76, 188, 137, .16), transparent 36%),
    rgba(244, 247, 252, .96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.sl-language-onboarding-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 34px 32px 30px;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 28px;
  background: rgba(255, 255, 255, .90);
  box-shadow: 0 30px 90px rgba(36, 50, 85, .16);
  text-align: center;
}

.sl-language-onboarding-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--sla-text);
}

.sl-language-onboarding-brand img {
  display: block;
  width: 30px;
  height: 30px;
}

.sl-language-onboarding-brand strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.035em;
}

.sl-language-onboarding-heading {
  margin-bottom: 24px;
}

.sl-language-onboarding-heading h1 {
  margin: 0;
  color: var(--sla-text);
  font-size: clamp(25px, 5vw, 32px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.sl-language-onboarding-title-ro {
  margin: 7px 0 0;
  color: var(--sla-muted);
  font-size: 15px;
  font-weight: 650;
}

.sl-language-onboarding-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

#sl-language-onboarding button.sl-language-onboarding-option {
  position: relative !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 72px !important;
  margin: 0 !important;
  padding: 13px 15px !important;
  border: 1px solid rgba(115, 130, 157, .22) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .96) !important;
  background-image: none !important;
  color: var(--sla-text) !important;
  -webkit-text-fill-color: var(--sla-text) !important;
  box-shadow: 0 8px 24px rgba(42, 57, 88, .06) !important;
  font: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
  transform: none !important;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

#sl-language-onboarding button.sl-language-onboarding-option:hover,
#sl-language-onboarding button.sl-language-onboarding-option:focus-visible {
  border-color: rgba(69, 110, 205, .52) !important;
  background: #fff !important;
  background-image: none !important;
  color: var(--sla-text) !important;
  -webkit-text-fill-color: var(--sla-text) !important;
  box-shadow: 0 12px 30px rgba(42, 57, 88, .11), 0 0 0 3px rgba(91, 120, 220, .09) !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

#sl-language-onboarding button.sl-language-onboarding-option.is-selected,
#sl-language-onboarding button.sl-language-onboarding-option:disabled.is-selected {
  border-color: rgba(31, 122, 85, .54) !important;
  background: rgba(242, 250, 246, .98) !important;
  background-image: none !important;
  color: var(--sla-text) !important;
  -webkit-text-fill-color: var(--sla-text) !important;
  box-shadow: 0 0 0 3px rgba(31, 122, 85, .09) !important;
  opacity: 1 !important;
}

#sl-language-onboarding button.sl-language-onboarding-option:disabled:not(.is-selected) {
  opacity: .52 !important;
  cursor: default !important;
}

.sl-language-onboarding-flag {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 28px;
  line-height: 1;
}

.sl-language-onboarding-label {
  min-width: 0;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
}

.sl-language-onboarding-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sla-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .15s ease, transform .15s ease;
}

.sl-language-onboarding-option.is-selected .sl-language-onboarding-check {
  opacity: 1;
  transform: scale(1);
}

.sl-language-onboarding-note {
  margin: 22px 0 0;
  color: var(--sla-muted);
  font-size: 12px;
  line-height: 1.55;
}

.sl-language-onboarding-message {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(176, 65, 65, .18);
  border-radius: 12px;
  background: rgba(255, 244, 244, .94);
  color: #8d3632;
  font-size: 12px;
  line-height: 1.45;
}

html.sl-language-onboarding-open,
html.sl-language-onboarding-open body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

#sl-app.sl-language-onboarding-active > .sl-shell {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 560px) {
  .sl-language-onboarding-card {
    padding: 29px 20px 25px;
    border-radius: 24px;
  }

  .sl-language-onboarding-brand {
    margin-bottom: 24px;
  }

  .sl-language-onboarding-options {
    grid-template-columns: 1fr;
  }

  #sl-language-onboarding button.sl-language-onboarding-option {
    min-height: 68px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #sl-language-onboarding button.sl-language-onboarding-option,
  .sl-language-onboarding-check {
    transition: none !important;
  }
}


/* =========================================================
   Interactive first-run tutorial — 0.10.72
   ========================================================= */
html.sl-tutorial-open,
body.sl-tutorial-open {
  overflow: hidden !important;
}

.sl-interactive-tutorial[hidden] {
  display: none !important;
}

.sl-interactive-tutorial {
  position: fixed;
  inset: 0;
  z-index: 30000;
  pointer-events: none;
  font-family: inherit;
}

.sl-tutorial-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 34, 27, .58);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.sl-tutorial-backdrop[hidden],
.sl-tutorial-shade[hidden],
.sl-tutorial-spotlight[hidden] {
  display: none !important;
}

.sl-tutorial-shade {
  position: fixed;
  background: rgba(22, 34, 27, .58);
  pointer-events: none;
}

.sl-tutorial-spotlight {
  position: fixed;
  border: 2px solid rgba(90, 157, 255, .98);
  border-radius: 16px;
  box-shadow: 0 0 0 5px rgba(90, 157, 255, .18);
  background: transparent;
  pointer-events: none;
  transition: left .16s ease, top .16s ease, width .16s ease, height .16s ease;
}

.sl-tutorial-card {
  position: fixed;
  width: min(360px, calc(100vw - 28px));
  padding: 20px;
  border: 1px solid rgba(89, 120, 101, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  color: #24342a;
  box-shadow: 0 20px 60px rgba(16, 31, 22, .24);
  pointer-events: auto;
}

.sl-tutorial-card.is-centered {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.sl-tutorial-card.is-nudged {
  animation: sl-tutorial-nudge .22s ease;
}

.sl-tutorial-progress {
  margin: 0 0 8px;
  color: #6a7a70;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sl-tutorial-card h2 {
  margin: 0;
  color: #1f3126;
  font-size: 20px;
  line-height: 1.2;
}

.sl-tutorial-card p {
  margin: 10px 0 0;
  color: #607067;
  font-size: 14px;
  line-height: 1.55;
}

.sl-tutorial-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

#sl-interactive-tutorial button.sl-tutorial-btn-primary,
#sl-interactive-tutorial button.sl-tutorial-btn-secondary {
  min-height: 42px !important;
  padding: 10px 15px !important;
  border-radius: 12px !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}

#sl-interactive-tutorial button.sl-tutorial-btn-primary {
  border: 1px solid #5a9dff !important;
  background: linear-gradient(135deg, #78b8ff 0%, #5a9dff 50%, #7e8df5 100%) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 8px 20px rgba(63, 140, 255, .22) !important;
}

#sl-interactive-tutorial button.sl-tutorial-btn-secondary {
  border: 1px solid rgba(74, 99, 84, .28) !important;
  background: #fff !important;
  color: #405047 !important;
  -webkit-text-fill-color: #405047 !important;
}

#sl-interactive-tutorial button.sl-tutorial-btn-primary:hover,
#sl-interactive-tutorial button.sl-tutorial-btn-primary:focus-visible {
  background: linear-gradient(135deg, #6aa8ff 0%, #3f8cff 52%, #6f88ef 100%) !important;
  border-color: #3f8cff !important;
  box-shadow: 0 10px 24px rgba(63, 140, 255, .28) !important;
}

#sl-interactive-tutorial button.sl-tutorial-btn-secondary:hover,
#sl-interactive-tutorial button.sl-tutorial-btn-secondary:focus-visible {
  background: #f4f7f5 !important;
  border-color: rgba(74, 99, 84, .45) !important;
}

#sl-interactive-tutorial button:focus-visible {
  outline: 3px solid rgba(63, 140, 255, .22) !important;
  outline-offset: 2px !important;
}

.sl-account-help-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.sl-account-help .sl-help-secondary-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  padding: 9px 14px !important;
  border: 1px solid rgba(78, 102, 87, .28) !important;
  border-radius: 11px !important;
  background: #fff !important;
  background-image: none !important;
  color: #405047 !important;
  -webkit-text-fill-color: #405047 !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.sl-account-help .sl-help-secondary-action:hover,
.sl-account-help .sl-help-secondary-action:focus-visible {
  border-color: rgba(78, 102, 87, .48) !important;
  background: #f5f8f6 !important;
  color: #26382d !important;
  -webkit-text-fill-color: #26382d !important;
}

.sl-account-help-tutorial-note {
  margin: 8px 0 0;
  color: var(--sla-muted);
  font-size: 11px;
  line-height: 1.45;
}

@keyframes sl-tutorial-nudge {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-4px); }
  70% { transform: translateX(4px); }
}

@media (max-width: 680px) {
  .sl-tutorial-card,
  .sl-tutorial-card.is-centered {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: auto;
    transform: none;
    padding: 18px;
  }

  .sl-tutorial-actions {
    align-items: stretch;
  }

  #sl-interactive-tutorial button.sl-tutorial-btn-primary,
  #sl-interactive-tutorial button.sl-tutorial-btn-secondary {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sl-tutorial-spotlight {
    transition: none;
  }
  .sl-tutorial-card.is-nudged {
    animation: none;
  }
}
