[hidden] { display: none !important; }
:root {
  --bg: #f6f3ee;
  --card: #ffffff;
  --ink: #1d2422;
  --muted: #5d6865;
  --line: #e2ddd4;
  --brand: #1f5f5b;
  --brand-ink: #ffffff;
  --take: #2f7d4f;
  --take-soft: #e6f2ea;
  --due: #b8641c;
  --due-soft: #fbefe2;
  --late: #a33a2b;
  --late-soft: #f8e4e0;
  --focus: #2a6fdb;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141917; --card: #1d2422; --ink: #ecefed; --muted: #a3ada9; --line: #2e3734;
    --brand: #5fb3aa; --brand-ink: #0d1312; --take: #5cbf83; --take-soft: #1d3326;
    --due: #e5a061; --due-soft: #3a2a1b; --late: #ef8a7a; --late-soft: #3d221e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141917; --card: #1d2422; --ink: #ecefed; --muted: #a3ada9; --line: #2e3734;
  --brand: #5fb3aa; --brand-ink: #0d1312; --take: #5cbf83; --take-soft: #1d3326;
  --due: #e5a061; --due-soft: #3a2a1b; --late: #ef8a7a; --late-soft: #3d221e;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 18px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
main { max-width: 640px; margin: 0 auto; padding: 16px 16px 48px; }
h1 { font-size: 1.6rem; margin: 8px 0 16px; line-height: 1.2; }
h2 { font-size: 1.2rem; margin: 0; }
a { color: var(--brand); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .03em; }
.em { font-weight: 650; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* header */
/* Iridescent header: Tiffany blue-greens (deep to true #0ABAB5-ish) with a hint of
   sea green, drifting slowly. The light Tiffany band gets a faint text shadow so
   the white text stays readable over it.
   so it shimmers like a beetle shell. Kept dark enough everywhere that white text
   stays readable (and white in dark mode too, where --brand-ink is dark). A soft
   diagonal sheen sweeps across on top. Both stop for reduced motion. */
.top {
  position: sticky; top: 0; z-index: 5; color: #fff;
  background: #0e7c78 linear-gradient(115deg, #0b6662 0%, #0c827d 15%, #0a9e98 30%, #0ab0aa 42%, #0a9a96 54%, #0f7f86 66%, #12896f 80%, #0b6662 100%);
  background-size: 300% 300%;
  animation: top-shimmer 60s ease-in-out infinite alternate;
  padding: calc(env(safe-area-inset-top) + 8px) 16px 0;
  overflow: hidden;
}
.top::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.14) 48%, rgba(180,255,240,.10) 52%, transparent 65%);
  background-size: 250% 100%;
  animation: top-sheen 24s ease-in-out infinite;
}
.top > * { position: relative; z-index: 1; }
.top .brand, .top nav a { text-shadow: 0 1px 2px rgba(0, 40, 38, .35); }
@keyframes top-shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@keyframes top-sheen { 0% { background-position: 150% 0; } 60%, 100% { background-position: -100% 0; } }

/* The logo's pill spin is driven from base.html (SVG animateTransform). */

@media (prefers-reduced-motion: reduce) {
  .top, .top::after { animation: none; }
}
.top .brand { color: inherit; text-decoration: none; font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; max-width: 608px; margin: 0 auto; }
.top .brand .logo { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); flex: none; display: block; }
/* Tabs share the full width so all five fit on a 360px phone; text scales with the screen (16px at 360, ~17px on an iPhone, 18.4px max). */
.top nav { display: flex; max-width: 608px; margin: 8px auto 0; overflow-x: auto; }
.top nav a {
  flex: 1 1 auto; text-align: center; min-height: 50px; display: flex; align-items: center; justify-content: center;
  color: inherit; text-decoration: none; padding: 10px 5px; font-size: clamp(1rem, 4.4vw, 1.15rem); opacity: .9;
  border-bottom: 4px solid transparent; white-space: nowrap;
}
.top nav a.on { opacity: 1; border-bottom-color: currentColor; font-weight: 600; }
/* Settings is a gear, not a word: a fixed-width tab with a full-size tap target. */
.top nav a.nav-icon { flex: 0 0 auto; min-width: 52px; padding: 10px 12px 10px 16px; position: relative; }
/* Thin divider setting the gear apart from the page tabs. */
.top nav a.nav-icon::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 26px;
  transform: translateY(-50%); background: rgba(255, 255, 255, .45); }
.top nav a.nav-icon svg { display: block; filter: drop-shadow(0 1px 2px rgba(0, 40, 38, .35)); }
.top nav a.nav-icon.on svg { stroke-width: 2.4; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 10px 18px; border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--card); color: var(--ink);
}
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.take { background: var(--take); color: #fff; min-width: 120px; }
.btn.call { background: var(--brand); color: var(--brand-ink); margin-top: 6px; }
.btn.ghost { border-color: var(--line); background: transparent; }
.btn.link { background: none; color: var(--muted); padding: 10px 8px; min-height: 44px; text-decoration: underline; font-weight: 500; }
.btn.link.warn { color: var(--late); }
.btn.big { width: 100%; min-height: 58px; font-size: 1.1rem; }

.flash { background: var(--take-soft); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; }
.error { color: var(--late); }

/* today */
.day { display: flex; flex-direction: column; font-size: 1.8rem; }
.day span { font-size: 1rem; font-weight: 500; color: var(--muted); }

.alert { background: var(--due-soft); border-left: 6px solid var(--due); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; }
.alert.urgent { background: var(--late-soft); border-left-color: var(--late); }
.alert p { margin: 0 0 4px; }
.alert.quiet { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--brand); }
.alert .btn.call { margin-right: 6px; }
.refill-steps { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.refill-steps form { margin: 0; }
.refill-steps .btn.ghost { width: 100%; }
.pickup-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.pickup-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .92rem; flex: 1 1 140px; }
.pickup-form input { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); min-height: 48px; width: 100%; }
.pickup-form .btn { flex: 1 1 140px; }
details.pickup summary { cursor: pointer; color: var(--brand); font-weight: 600; padding: 8px 0; min-height: 44px; display: flex; align-items: center; }
.cancel-refill { text-align: right; }
.refill-panel { margin-bottom: 20px; }
.refill-panel h2 { margin-bottom: 8px; }
.refill-history summary { cursor: pointer; color: var(--brand); font-weight: 600; padding: 6px 0; }
.refill-pill { align-self: flex-start; margin-top: 6px; font-size: .88rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--due-soft); color: var(--due); }
.refill-pill.stuck { background: var(--late-soft); color: var(--late); }

.slot { background: var(--card); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); }
.slot > header { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px 8px; }
.slot .state { font-size: .9rem; font-weight: 600; color: var(--muted); }
.slot.due { border: 2px solid var(--due); }
.slot.due .state { color: var(--due); }
.slot.late { border: 2px solid var(--late); }
.slot.late .state { color: var(--late); }
.slot.done .state { color: var(--take); }
.slot.done > header h2 { color: var(--muted); }

.dose { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.dose .what { display: flex; flex-direction: column; min-width: 0; }
.dose .name, .cards .name, .medsheet .name { font-weight: 650; font-size: 1.1rem; }
.detail { color: var(--muted); font-size: .92rem; }
.dose .when { font-size: .9rem; font-weight: 600; color: var(--take); }
.dose.skipped .when { color: var(--muted); }
.dose.taken .name, .dose.skipped .name { color: var(--muted); }
.dose form { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.slot .all { padding: 4px 16px 16px; }

.empty { text-align: center; padding: 32px 0; }

/* lists */
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cards { list-style: none; margin: 0 0 16px; padding: 0; }
.cards li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.cards li > a, .cards .contact { display: flex; flex-direction: column; padding: 14px 16px; color: inherit; text-decoration: none; }
.cards li.stopped { opacity: .6; }
.supply { font-size: .92rem; margin-top: 2px; }
.supply.low { color: var(--due); font-weight: 600; }
.contact .facility { color: var(--ink); font-weight: 600; }
.contact .address { white-space: pre-line; text-decoration: none; margin-top: 2px; }
.contact .address .maps-hint { display: block; color: var(--brand); font-weight: 600; margin-top: 2px; }
.contact-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.contacts { margin-bottom: 28px; }
.contacts h2 { margin-bottom: 10px; }
details.add summary { cursor: pointer; color: var(--brand); font-weight: 600; padding: 10px 0; }
.signout { text-align: center; margin-top: 24px; }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .95rem; }
.form label.choice { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; min-height: 44px; }
.form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 12px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink); width: 100%; min-height: 48px;
}
.form input[type=radio], .form input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--brand); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
legend { font-weight: 700; padding: 0 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.time-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.time-row input { max-width: 180px; }
.hint { margin: 0; font-size: .88rem; color: var(--muted); }
.actions { display: flex; flex-direction: column; gap: 8px; }
.danger { margin-top: 28px; text-align: center; }
.inline-form { padding: 14px 16px 0; }

/* login */
.login { max-width: 360px; margin: 12vh auto 0; text-align: center; }
.login form { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-top: 16px; }
.login input { font: inherit; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.login img { border-radius: 18px; }

/* printable list */
.medsheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 12px; }
.medsheet h1 { font-size: 1.35rem; margin-top: 0; }
.medsheet .meta { margin: 0 0 8px; }
.medsheet table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .95rem; }
.medsheet th, .medsheet td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.medsheet th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
@media (max-width: 560px) {
  .medsheet thead { display: none; }
  .medsheet tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .medsheet td { display: block; border: 0; padding: 2px 0; }
  .medsheet td:empty { display: none; }
}
@media print {
  :root { --bg: #fff; --card: #fff; --ink: #000; --muted: #444; --line: #bbb; }
  .top, .no-print, .flash { display: none !important; }
  main { max-width: none; padding: 0; }
  .medsheet { border: 0; padding: 0; }
  .medsheet thead { display: table-header-group; }
  .medsheet tr { display: table-row; }
  .medsheet td { display: table-cell; border-bottom: 1px solid #bbb; padding: 8px 6px; }
}
.nw { white-space: nowrap; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.panel h2 { margin-bottom: 2px; }
.panel p { margin: 0; }
.status-line { font-weight: 600; }
.status-line.ok { color: var(--take); }
.status-line.warn { color: var(--due); }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.plain li span { display: flex; flex-direction: column; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.camera { cursor: pointer; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shots:empty { display: none; }
.shots figure { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3/4; }
.shots img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reading { text-align: center; padding: 40px 0; }
.spinner { width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--brand); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.checkme { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--due); background: var(--due-soft); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.scan-note { background: var(--take-soft); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.scan-cta { margin-bottom: 16px; }

/* family helper */
.helper-top { padding-bottom: 12px; }
.helper-tag { font-size: .8rem; font-weight: 600; opacity: .85; border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.invite-box { background: var(--take-soft); border-radius: var(--radius); padding: 12px 14px; margin: 10px 0; }
.invite-box input { font: inherit; width: 100%; padding: 10px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.invite-box .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* vitamins & supplements */
.list-head { font-size: 1.05rem; margin: 18px 0 8px; color: var(--muted); }
.kind-pick { margin-bottom: 4px; }
.sheet-sub { font-size: 1rem; margin: 18px 0 6px; }
.sheet-note { font-style: italic; margin-top: 8px; }

/* accounts */
.top .brand .who { font-weight: 600; opacity: .9; margin-left: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top .brand { min-width: 0; }
.member-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.member-row .who-name { font-weight: 650; }
.member-row form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.member-row select { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.role-tag { font-size: .8rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--take-soft); color: var(--take); }
.profile-switch { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-switch a { padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); background: var(--card); font-weight: 600; }
.profile-switch a.on { border-color: var(--brand); background: var(--take-soft); }
.temp-pw { font-family: ui-monospace, Menlo, monospace; font-size: 1.15rem; background: var(--take-soft); padding: 10px 12px; border-radius: 8px; user-select: all; }
table.admin { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.admin th, table.admin td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* --- People & settings cleanup (2026-10-02) --------------------------------- */
/* Whose medicines: a row of names under the logo, on every screen. */
.top .who-switch { display: flex; gap: 8px; max-width: 608px; margin: 10px auto 0; overflow-x: auto; scrollbar-width: none; }
.top .who-switch::-webkit-scrollbar { display: none; }
.top .who-switch a { flex: 0 0 auto; color: inherit; text-decoration: none; font-weight: 600; padding: 7px 14px; min-height: 40px;
  display: inline-flex; align-items: center; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.45); opacity: .85; }
.top .who-switch a.on { background: rgba(255,255,255,.95); color: #1f5f5b; border-color: transparent; opacity: 1; text-shadow: none; }
/* Section headings that group several panels (This phone / X's medicines / Your account). */
h2.group { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 26px 2px 8px; }
main > h2.group:first-of-type { margin-top: 6px; }
.group-hint { margin: -4px 2px 10px; }
/* Admin: one card per person, who can open it, actions, delete tucked away. */
.person-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.person-head h3 { margin: 0; font-size: 1.2rem; }
.access { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.access-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.person .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.person .actions form { margin: 0; }
details.danger { border-top: 1px solid var(--line); padding-top: 6px; }
details.danger summary { cursor: pointer; color: var(--late); font-weight: 600; padding: 8px 0; min-height: 44px; display: flex; align-items: center; }
details.danger .form { margin-top: 6px; }
.btn.warn-solid { background: var(--late); color: #fff; }
details.add.panel summary { padding: 4px 0; }
.signin-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.signin-row .row-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.signin-row .row-actions form { margin: 0; }
/* Sign-ins: one line per person (name + who they open), details on tap. */
.signins { gap: 0; padding: 4px 16px; }
details.signin { border-bottom: 1px solid var(--line); }
details.signin summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 10px; min-height: 48px; padding: 6px 0; }
details.signin summary::-webkit-details-marker { display: none; }
details.signin summary::after { content: "›"; color: var(--muted); font-size: 1.3rem; transition: transform .15s ease; }
details.signin[open] summary::after { transform: rotate(90deg); }
.si-name { font-weight: 650; }
.si-opens { margin-left: auto; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.si-body { padding: 0 0 10px; display: flex; flex-direction: column; gap: 4px; }
.si-body .row-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.si-body .row-actions form { margin: 0; }
.signins .hint { padding: 10px 0 6px; }
.warn-tag { background: var(--due-soft); color: var(--due); }
/* Admin combined (2026-10-02): sign-ins listed inside each person card. */
.person .signins { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding: 0; gap: 0; }
.person .signins .detail { padding-top: 6px; }
details.signin summary .role-tag { flex: none; }
details.signin summary .si-name { margin-right: auto; }
/* Remove-from-person step in Settings (replaces the old confirm() pop-up). */
details.remove-member > summary { list-style: none; display: inline-flex; }
details.remove-member > summary::-webkit-details-marker { display: none; }
.member-row details.remove-member[open] { flex-basis: 100%; }
.remove-box { display: flex !important; flex-direction: column; align-items: flex-start !important; gap: 8px !important;
  background: var(--due-soft); border-radius: 10px; padding: 12px 14px; margin: 4px 0 8px !important; }
.remove-box.own { background: var(--late-soft); border-left: 5px solid var(--late); }
.remove-box p { margin: 0; }

/* Share form: who-can-do-what as big radio cards, not a select + legend (2026-10-02) */
.role-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.role-pick legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.form label.role-opt { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500;
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); }
.form label.role-opt:has(input:checked) { border-color: var(--take); background: var(--take-soft); }
.role-opt input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.role-opt > span { display: grid; gap: 2px; }
details.rename { margin-top: 14px; }

/* ---- phone scripts + med sync (2026-10-03) ---- */
details.script { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 4px; }
details.script summary { cursor: pointer; color: var(--brand); font-weight: 650; padding: 8px 0; min-height: 44px; display: flex; align-items: center; }
.script-body { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 12px 14px; margin: 4px 0 8px; font-size: 1.12rem; line-height: 1.45; }
.script-body p { margin: 0 0 8px; }
.script-body p:last-child { margin-bottom: 0; }
.script-body ul { margin: 0 0 10px; padding-left: 22px; }
.script-body li { margin-bottom: 4px; }
.script-ask { font-weight: 650; }
.lede { font-size: 1.05rem; line-height: 1.45; }
.sync-card { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--brand); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.sync-card.synced { border-left-color: var(--take); }
.sync-card h2 { margin: 0 0 6px; }
.sync-status { margin: 0 0 10px; }
.sync-meds { list-style: none; margin: 0 0 12px; padding: 0; }
.sync-meds li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.sync-meds .name { font-weight: 650; }
.sync-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 12px; }
.sync-form label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; flex: 1 1 220px; }
.sync-form select { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); min-height: 48px; }
.sync-link { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--brand); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 16px; color: inherit; text-decoration: none; }
.sync-link .name { font-weight: 650; font-size: 1.1rem; color: var(--brand); }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.row-actions form { margin: 0; }
