:root {
  --bg: #f4f6f2;
  --bg-elev: #eef3ec;
  --card: #ffffff;
  --ink: #27332b;
  --sub: #637368;
  --muted: #8b998f;
  --line: #e2e8e1;
  --brand: #4f8a5b;
  --brand-hover: #41754c;
  --brand-soft: #dcecdf;
  --brand-faint: #f3f8f4;
  --today: #e9a94b;
  --today-soft: #fdf3e1;
  --danger: #c65446;
  --danger-soft: #fcece9;
  --info: #467696;
  --info-soft: #e8f1f8;
  --shadow: 0 4px 18px rgba(42, 66, 49, 0.07);
  --shadow-lg: 0 12px 32px rgba(34, 54, 40, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-w: 232px;
  --mobile-nav-h: 64px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.55;
  font-size: 14px;
  min-height: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.hidden { display: none !important; }

/* ---------- Login Overlay ---------- */
.login-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(155deg, #ebf2eb 0%, #f7f9f5 55%, #e4efe6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 32px 28px;
  text-align: center;
}
.login-card img {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
}
.login-card h1 {
  margin: 0 0 6px;
  font-size: 22px;
}
.login-card p {
  margin: 0 0 22px;
  color: var(--sub);
  font-size: 13px;
}
.login-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
}

/* ---------- App Shell Layout ---------- */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--card);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 40;
  padding: 20px 14px 16px;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.brand-box img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.brand-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
}
.brand-sub {
  font-size: 11px;
  color: var(--sub);
  margin-top: 2px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--sub);
  font-weight: 500;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.nav-btn:hover {
  background: var(--brand-faint);
  color: var(--ink);
}
.nav-btn.active {
  background: var(--brand-soft);
  color: #2b5434;
  font-weight: 600;
}
.nav-icon {
  font-size: 17px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  min-width: 20px;
  text-align: center;
}
.nav-badge.soft {
  background: var(--brand);
}

.sidebar-footer {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 12px;
  color: var(--sub);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.main-area {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 24px 28px 90px;
  max-width: 100%;
  min-width: 0;
}

.content-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

/* Mobile topbar & bottom nav */
.mobile-header {
  display: none;
}
.mobile-nav {
  display: none;
}

/* ---------- Common Components ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.page-head h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}
.page-head .sub {
  color: var(--sub);
  font-size: 13px;
  margin-top: 4px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(226, 232, 225, 0.7);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title::before {
  content: "";
  width: 5px;
  height: 16px;
  border-radius: 3px;
  background: var(--brand);
  display: inline-block;
}

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

.stat-card {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 15px 18px;
  border: 1px solid rgba(226, 232, 225, 0.7);
}
.stat-card .num {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
}
.stat-card .num.warn { color: var(--danger); }
.stat-card .lbl {
  font-size: 12px;
  color: var(--sub);
  margin-top: 4px;
}

.progress-bar {
  height: 8px;
  background: var(--brand-soft);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-bar > i {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 99px;
  transition: width 0.25s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-faint);
}
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
}
.btn-soft {
  background: var(--brand-soft);
  border-color: transparent;
  color: #2b5434;
}
.btn-soft:hover {
  background: #cde3d0;
  color: #204227;
}
.btn-danger {
  color: var(--danger);
  border-color: #f0cfc9;
  background: var(--danger-soft);
}
.btn-danger:hover {
  background: #f6dad5;
  border-color: var(--danger);
  color: var(--danger);
}
.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 8px;
}
.btn-xs {
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 6px;
}
.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Sub-tabs */
.tabs {
  display: inline-flex;
  background: var(--bg-elev);
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tab-btn {
  border: none;
  background: transparent;
  padding: 7px 15px;
  border-radius: 9px;
  cursor: pointer;
  color: var(--sub);
  font-weight: 500;
  font-size: 13px;
  transition: all 0.15s;
}
.tab-btn.active {
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(42, 66, 49, 0.08);
}

/* Inputs */
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 138, 91, 0.14);
}
.textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.6;
}
.field {
  margin-bottom: 12px;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--sub);
  margin-bottom: 5px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Tags & Badges */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: #2f5a38;
}
.tag.warn { background: var(--today-soft); color: #8c5a13; }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.tag.info { background: var(--info-soft); color: var(--info); }
.tag.neutral { background: var(--bg-elev); color: var(--sub); }

.banner-note {
  background: var(--brand-faint);
  border-left: 3px solid var(--brand);
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  color: var(--sub);
}
.banner-warn {
  background: var(--today-soft);
  border-left: 3px solid var(--today);
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  color: #6b4610;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Habit Pills (Dashboard) & Grid ---------- */
.habit-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.habit-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
  user-select: none;
}
.habit-pill:hover {
  border-color: var(--brand);
}
.habit-pill.checked {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}
.habit-pill .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.habit-pill.checked .dot {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.22);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.habit-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 780px;
}
.habit-table th, .habit-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
}
.habit-table thead th {
  background: var(--brand-soft);
  color: #2f5137;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 0;
}
.habit-table thead th.today-col {
  background: var(--today);
  color: #54360a;
}
.habit-table .habit-name {
  position: sticky;
  left: 0;
  background: var(--card);
  z-index: 2;
  text-align: left;
  padding: 7px 12px;
  font-size: 13px;
  white-space: nowrap;
  min-width: 155px;
}
.habit-table .group-row .habit-name {
  background: var(--brand-faint);
  font-weight: 700;
  color: #2f5137;
  font-size: 12px;
}
.habit-cell {
  width: 29px;
  min-width: 29px;
  height: 33px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: transparent;
}
.habit-cell.today-col {
  box-shadow: inset 0 0 0 2px var(--today);
}
.habit-cell.checked {
  background: var(--brand);
  color: #fff;
}
.habit-cell.checked::after {
  content: "✓";
  color: #fff;
  font-weight: 700;
}
.habit-cell:hover {
  background: var(--brand-soft);
}
.habit-cell.checked:hover {
  background: var(--brand-hover);
}

/* ---------- Checklist / Tasks / Reminders ---------- */
.list-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.item-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
}
.item-row:hover {
  border-color: #c9d9cb;
}
.item-row.overdue {
  border-color: #ebb7b0;
  background: #fffaf9;
}
.item-row.due-today {
  border-color: #f0cfa0;
  background: #fffdf8;
}
.item-row.done {
  opacity: 0.65;
  background: #fafcfa;
}
.item-row.done .item-title {
  text-decoration: line-through;
  color: var(--sub);
}
.check-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.8px solid var(--muted);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
}
.check-box.checked {
  background: var(--brand);
  border-color: var(--brand);
}
.item-body {
  flex: 1;
  min-width: 0;
}
.item-title {
  font-weight: 600;
  font-size: 14px;
  word-break: break-word;
}
.item-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
  font-size: 12px;
  color: var(--sub);
}
.item-notes {
  font-size: 12.5px;
  color: var(--sub);
  margin-top: 4px;
  white-space: pre-wrap;
}
.item-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ---------- Docs Knowledge Base ---------- */
.docs-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.docs-list-card {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  padding: 14px;
}
.doc-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  margin-bottom: 6px;
  transition: background 0.15s, border-color 0.15s;
}
.doc-item:hover {
  background: var(--brand-faint);
}
.doc-item.active {
  background: var(--brand-soft);
  border-color: #b7d5bd;
}
.doc-item-title {
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.doc-item-sub {
  font-size: 11.5px;
  color: var(--sub);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doc-snippet {
  font-size: 11.5px;
  color: #365a3e;
  background: #edf6ee;
  padding: 3px 6px;
  border-radius: 5px;
  margin-top: 5px;
}

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--sub);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  cursor: pointer;
}
.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

/* Rendered Markdown */
.md-body {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink);
  word-break: break-word;
}
.md-body h1 { font-size: 22px; margin: 0 0 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.md-body h2 { font-size: 17px; margin: 22px 0 10px; color: #2a4c32; }
.md-body h3 { font-size: 15px; margin: 16px 0 8px; color: #365f40; }
.md-body blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  background: var(--brand-faint);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  color: var(--sub);
}
.md-body ul, .md-body ol {
  padding-left: 22px;
  margin: 8px 0;
}
.md-body li {
  margin: 5px 0;
}
.md-body .md-action-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.md-body .md-extract-btn {
  opacity: 0.7;
  font-size: 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  border-radius: 6px;
  padding: 1px 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.md-body .md-extract-btn:hover {
  opacity: 1;
  background: var(--brand-soft);
}
.md-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
  display: block;
  overflow-x: auto;
}
.md-body th, .md-body td {
  border: 1px solid var(--line);
  padding: 7px 10px;
  text-align: left;
}
.md-body th {
  background: var(--brand-faint);
  font-weight: 600;
}
.md-body code {
  background: var(--bg-elev);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12.5px;
}
.md-body pre {
  background: #232d26;
  color: #edf3ee;
  padding: 12px 14px;
  border-radius: 10px;
  overflow-x: auto;
}
.md-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.md-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
.md-editor {
  width: 100%;
  min-height: 460px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.65;
}

/* ---------- Floating Quick Capture FAB ---------- */
.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  height: 48px;
  padding: 0 18px;
  border-radius: 99px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 60;
  transition: transform 0.15s, background 0.15s;
}
.fab:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 36, 28, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 200;
}
.modal {
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.modal-head h3 {
  margin: 0;
  font-size: 17px;
}
.modal-close {
  border: none;
  background: var(--bg-elev);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  color: var(--sub);
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: #27372c;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.2s ease;
}
.toast.error { background: var(--danger); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mini spark bars for trackers */
.spark-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 44px;
  margin-top: 8px;
}
.spark-bar {
  flex: 1;
  min-width: 8px;
  max-width: 24px;
  background: var(--brand-soft);
  border-radius: 4px 4px 0 0;
  position: relative;
}
.spark-bar.hit {
  background: var(--brand);
}

.empty-state {
  text-align: center;
  padding: 28px 16px;
  color: var(--sub);
  font-size: 13.5px;
}

/* ---------- Responsive (Mobile & Tablet) ---------- */
@media (max-width: 960px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-list-card {
    max-height: 320px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .sidebar {
    display: none;
  }
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 45;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
  }
  .mobile-brand img {
    width: 28px;
    height: 28px;
  }
  .main-area {
    margin-left: 0;
    padding: 14px 12px calc(var(--mobile-nav-h) + 74px);
  }
  .page-head h1 {
    font-size: 20px;
  }
  .card {
    padding: 14px 14px;
    border-radius: 14px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--mobile-nav-h);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mobile-nav-btn {
    flex: 1;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    color: var(--sub);
    cursor: pointer;
    position: relative;
    padding: 4px 2px;
  }
  .mobile-nav-btn .m-ic {
    font-size: 18px;
    line-height: 1.1;
  }
  .mobile-nav-btn.active {
    color: var(--brand);
    font-weight: 700;
  }
  .mobile-nav-btn .m-dot {
    position: absolute;
    top: 6px;
    right: calc(50% - 16px);
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    min-width: 15px;
    height: 15px;
    line-height: 15px;
    border-radius: 99px;
    padding: 0 4px;
  }
  .fab {
    right: 14px;
    bottom: calc(var(--mobile-nav-h) + 14px);
    height: 44px;
    padding: 0 15px;
    font-size: 13px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .modal {
    border-radius: 18px 18px 0 0;
    max-height: 90vh;
  }
}
