/* Mingalar Link — signed-in pages (login, admin, dashboard). Same palette as the builder. */
:root {
  --bg: #f6f1e8;
  --panel: #ffffff;
  --soft: #fffdf9;
  --ink: #2b1a14;
  --muted: #7a685e;
  --line: #e7dccb;
  --accent: #8a1c1c;
  --on-accent: #fff6e3;
  --gold: #b38728;
  --ok: #2f6b45;
  --ok-bg: #e5f1e8;
  --warn: #8a5a00;
  --warn-bg: #fbf0d9;
  --bad: #9b2c2c;
  --bad-bg: #f8e3e1;
  --mm: 'Padauk', 'Myanmar Text', 'Noto Sans Myanmar', sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--mm); line-height: 1.8; }
a { color: var(--accent); }
small, .muted { color: var(--muted); }
[hidden] { display: none !important; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: var(--panel); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1160px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--accent); }
.logo {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent); color: var(--on-accent); font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 4px var(--gold);
}
.brand b { font-family: var(--serif); font-size: 1.35rem; line-height: 1; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a, .nav button {
  font: inherit; font-size: .92rem; text-decoration: none; color: var(--ink); background: none; border: 0; cursor: pointer;
  padding: 6px 12px; border-radius: 999px;
}
.nav a[aria-current="page"], .nav a:hover, .nav button:hover { background: var(--bg); color: var(--accent); }
.who { font-size: .85rem; color: var(--muted); }

.page { max-width: 1160px; margin: 0 auto; padding: 24px 16px 64px; }
.page-narrow { max-width: 440px; }
h1 { margin: 0 0 4px; font-size: 1.5rem; line-height: 1.6; color: var(--accent); }
h2 { margin: 0; font-size: 1.1rem; line-height: 1.6; }
.lead { margin: 0 0 20px; color: var(--muted); }

/* Panels + forms */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 4px; font-size: .9rem; font-weight: 700; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); width: 100%;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft);
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: .9rem; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); background: var(--panel);
}
.btn:hover { background: var(--bg); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { border-color: var(--line); color: var(--ink); }
.btn.small { padding: 2px 10px; font-size: .82rem; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn:disabled { opacity: .55; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.err { margin: 0; color: var(--bad); font-size: .9rem; }

/* Status pills */
.pill { display: inline-block; padding: 0 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; line-height: 1.9; background: var(--bg); color: var(--muted); white-space: nowrap; }
.pill.confirmed, .pill.form_sent { background: var(--warn-bg); color: var(--warn); }
.pill.submitted, .pill.designing { background: #e6ecf7; color: #2c4a7a; }
.pill.published { background: var(--ok-bg); color: var(--ok); }
.pill.cancelled, .pill.draft { background: var(--bad-bg); color: var(--bad); }

/* Cards list */
.cards { display: grid; gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; }
.card-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.card-head h2 { margin-right: auto; }
.card-head select { width: auto; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; color: var(--muted); }
.meta b { color: var(--ink); font-weight: 700; }
.box { background: var(--soft); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.box pre { margin: 0; white-space: pre-wrap; font: inherit; }
.linkline { display: flex; gap: 8px; align-items: center; min-width: 0; }
.linkline input { font-size: .82rem; min-width: 0; }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { font: inherit; font-size: .92rem; cursor: pointer; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }

/* Tables (scroll inside their own box on phones) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; color: var(--muted); font-weight: 700; background: var(--soft); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Stat tiles for RSVP summary */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat b { display: block; font-size: 1.6rem; line-height: 1.4; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat span { font-size: .82rem; color: var(--muted); }

.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.qr { display: grid; place-items: center; }
.qr img, .qr canvas { width: 150px; height: 150px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 100;
  padding: 8px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .9rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }

/* Login */
.auth { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; }
.auth .panel { width: min(400px, 100%); padding: 28px 24px; }
.auth .brand { justify-content: center; margin-bottom: 8px; }
.auth h1 { text-align: center; font-size: 1.25rem; }
.auth .lead { text-align: center; }

/* =====================================================================
   App shell (admin + dashboard): sidebar on the left, page on the right
   ===================================================================== */
body.app { --sb-w: 248px; min-height: 100svh; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; flex: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font: inherit; line-height: 1;
}
.icon-btn:hover { background: var(--bg); color: var(--accent); }
.icon-btn.small { width: 30px; height: 30px; border-radius: 8px; font-size: .8rem; border-color: transparent; background: none; color: var(--muted); }
.icon-btn.small:hover { color: var(--bad); background: var(--bad-bg); }
.icon-btn svg, .sb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.sb {
  position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sb-w);
  display: flex; flex-direction: column; gap: 22px; padding: 20px 14px 16px; overflow-y: auto;
  background: linear-gradient(180deg, #3b1717, #2a1210); color: #f3e4d4;
}
.sb .brand { color: #fff3dc; padding: 0 6px; }
.sb .logo { background: #f3d9a4; color: #5a1a1a; box-shadow: inset 0 0 0 3px #f3d9a4, inset 0 0 0 4px #8a5a1a; }
.sb-nav { display: grid; gap: 2px; }
.sb-nav a, .sb-btn {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; border: 0; background: none; width: 100%;
  color: inherit; text-decoration: none; font: inherit; font-size: .95rem; line-height: 1.5; cursor: pointer; text-align: left; opacity: .82;
}
.sb-nav a:hover, .sb-btn:hover { background: rgba(255, 255, 255, .07); opacity: 1; }
.sb-nav a[aria-current="page"] { background: rgba(243, 217, 164, .14); color: #f3d9a4; opacity: 1; font-weight: 700; box-shadow: inset 3px 0 0 #e0b25c; }
.sb-nav a:last-child { margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 0 0 10px 10px; padding-top: 14px; }
.sb-foot { margin-top: auto; display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 4px 8px 10px; min-width: 0; }
.sb-user > div { display: grid; min-width: 0; line-height: 1.5; }
.sb-user b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user small { color: rgba(243, 228, 212, .65); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #e0b25c; color: #3b1717; font-weight: 700; }
.sb-scrim { display: none; }

.main { margin-left: var(--sb-w); min-height: 100svh; display: flex; flex-direction: column; min-width: 0; }
.mtop {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 28px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.mtop-title { margin-right: auto; min-width: 0; }
.mtop h1 { margin: 0; font-size: 1.3rem; line-height: 1.5; }
.mtop .muted { margin: 0; font-size: .85rem; }
.back { display: inline-block; font-size: .85rem; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--accent); }
.sb-open { display: none; }
.content { width: 100%; max-width: 1240px; padding: 24px 28px 64px; display: grid; gap: 18px; align-content: start; }

@media (max-width: 900px) {
  .sb { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  body.sb-on .sb { transform: none; }
  body.sb-on .sb-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(20, 10, 8, .45); }
  .main { margin-left: 0; }
  .sb-open { display: inline-grid; }
  .mtop { padding: 10px 16px; gap: 10px; flex-wrap: nowrap; }
  .mtop h1 { font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mtop .muted { display: none; }
  .mtop .actions { flex-wrap: nowrap; }
  .mtop .btn { padding: 6px 12px; font-size: .85rem; }
  .content { padding: 16px 16px 56px; }
}

/* Toolbar: search + segmented filters */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar input[type="search"] { flex: 1 1 220px; max-width: 340px; background: var(--panel); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.seg button { font: inherit; font-size: .85rem; line-height: 1.5; padding: 4px 12px; border: 0; border-radius: 9px; background: none; cursor: pointer; color: var(--muted); }
.seg button small { margin-left: 2px; font-size: .78rem; opacity: .8; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.seg button[aria-pressed="true"] small { color: inherit; }

/* Data tables */
.tbl th { padding: 10px 14px; text-transform: none; letter-spacing: 0; }
.tbl td { padding: 11px 14px; vertical-align: middle; }
.tbl td b { font-weight: 700; }
.tbl .sub { display: block; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.tbl .row-link { cursor: pointer; }
.tbl .row-link:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.tbl .chev { width: 28px; color: var(--muted); font-size: 1.3rem; text-align: right; }
.tbl select { width: auto; padding: 4px 8px; font-size: .88rem; }
.tbl .note { max-width: 280px; color: var(--muted); font-size: .88rem; }
.tbl td.empty { padding: 40px 16px; }
.row-actions { flex-wrap: nowrap; justify-content: flex-end; }
.show-sm { display: none !important; }
@media (max-width: 700px) {
  .hide-sm { display: none !important; }
  .show-sm { display: block !important; }
  .tbl th, .tbl td { padding: 10px 10px; }
  .row-actions { flex-wrap: wrap; }
}

/* Right-hand drawer (order details, new order / account forms) */
.drawer-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(20, 10, 8, .35); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(480px, 100%);
  display: flex; flex-direction: column; background: var(--panel); box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .35);
  transform: translateX(100%); transition: transform .22s ease;
}
.drawer.on { transform: none; }
.drawer-hd { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-hd h2 { margin-right: auto; font-size: 1.15rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; }
.step { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.step h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .98rem; }
.step h3 span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: .78rem; }
.step p { margin: 0; font-size: .86rem; }
.danger-zone { display: flex; justify-content: flex-end; padding-top: 6px; border-top: 1px dashed var(--line); }

/* Dashboard detail */
.content .stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.content .stat { background: var(--panel); border-radius: 14px; padding: 14px 16px; display: grid; gap: 2px; }
.content .stat span { order: -1; }
.content .stat b { font-size: 1.8rem; line-height: 1.3; }
.content .stat b small { font-size: .9rem; color: var(--muted); }
.stat-pill { font-size: 1rem !important; line-height: 2.3 !important; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .dash { grid-template-columns: minmax(0, 1fr); } }
.side-col { display: grid; gap: 16px; }
.guest-links { display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.guest-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.dlg { max-width: 420px; width: calc(100% - 32px); }
.dlg::backdrop { background: rgba(20, 10, 8, .4); }
.settings { max-width: 860px; }

/* Home page designs */
.d-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.d-thumb { width: 44px; height: 58px; flex: none; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); }
.tbl tr.is-off .d-thumb { opacity: .45; filter: grayscale(.6); }
.tbl tr.is-off b { color: var(--muted); }
.d-preview { display: grid; place-items: center; padding: 12px; border-radius: 12px; background: var(--bg); }
.d-preview img { width: 150px; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 10px; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .45); }
.icon-btn.small.move { border: 1px solid var(--line); color: var(--ink); }
.icon-btn.small.move:hover { color: var(--accent); background: var(--bg); }
.icon-btn:disabled { opacity: .35; cursor: default; }
/* On/off switch */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; cursor: pointer; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #d9cfc0; transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.drawer .row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* Demo photo slots */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.ph { display: grid; gap: 4px; justify-items: center; text-align: center; }
.ph-img { width: 100%; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; cursor: pointer; border: 1px dashed var(--line); border-radius: 10px; background: var(--soft); color: var(--muted); font: inherit; font-size: .8rem; line-height: 1.6; }
.ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-img:hover { border-color: var(--accent); }
.ph small { font-size: .8rem; }
.link-x { border: 0; background: none; padding: 0; font: inherit; font-size: .78rem; color: var(--bad); cursor: pointer; }

/* Dashboard tabs + guest list */
.tabs-seg { align-self: start; justify-self: start; }
.tabs-seg button { font-size: .92rem; padding: 6px 16px; }
.g-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.g-stats b { color: var(--accent); font-size: 1.05rem; }
.tg-steps { margin: 0; padding-left: 20px; font-size: .9rem; color: var(--muted); display: grid; gap: 2px; }

/* Payments */
.pay { font-weight: 700; font-size: .76rem; }
.pay.ok { color: var(--ok); } .pay.part { color: var(--warn); } .pay.none { color: var(--muted); font-weight: 400; }
.kv dd.due { color: var(--bad); } .kv dd.paid { color: var(--ok); }
.pay-list { display: grid; gap: 6px; }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: .9rem; }
.pay-row .sub { display: block; color: var(--muted); font-size: .78rem; }
.pay-add { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-add input[name="note"], .pay-add button { grid-column: 1 / -1; }
.pay-add button { justify-self: start; }

/* Package limits (Settings → Packages) */
.pkg-limits summary { cursor: pointer; font-size: .9rem; }
.pkg-limits .pick-h { margin: 10px 0 4px; font-size: .82rem; color: var(--muted, #777); }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; font-size: .9rem; }
.chk-grid label { display: flex; gap: 6px; align-items: center; font-weight: normal; }
.chk-grid input { width: auto; margin: 0; }

.pkg-auto { margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: #fbf3e2; font-size: .85rem; }
.design-chk { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.design-chk label { position: relative; display: flex; flex-direction: column; gap: 4px; cursor: pointer; font-weight: normal; font-size: .8rem; text-align: center; }
.design-chk input { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; margin: 0; z-index: 1; accent-color: #8c1d1d; }
.dc-img { display: block; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .55; transition: opacity .15s, border-color .15s; }
.dc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.design-chk label:has(:checked) .dc-img { opacity: 1; border-color: #8c1d1d; }

/* Order form (/order) */
.order-page .panel { max-width: 480px; }
.pkg-features { margin: -4px 0 0; padding: 10px 14px 10px 30px; border-radius: 10px; background: #fbf3e2; font-size: .88rem; }
.pay-info { padding: 12px 14px; border-radius: 10px; border: 1px dashed #c9a14a; background: #fffaf0; }
.pay-info p { margin: 4px 0 0; white-space: pre-line; font-size: .92rem; }
.receipt { width: 100%; min-height: 96px; border: 2px dashed #d9c9a8; border-radius: 12px; background: #fffdf8; cursor: pointer; display: grid; place-items: center; gap: 6px; padding: 10px; font: inherit; color: inherit; }
.receipt img { max-width: 100%; max-height: 260px; border-radius: 8px; }
.receipt.has span { font-size: .82rem; opacity: .7; }
.receipt-img { display: block; max-width: 100%; max-height: 420px; border-radius: 10px; border: 1px solid #eee; }
.pill.requested { background: #fde3d6; color: #a2401c; }
.order-body .auth.order-page { min-height: auto; padding: 32px 16px 56px; }

/* Admin overview */
button.stat { text-align: left; font: inherit; cursor: pointer; }
button.stat:hover { border-color: var(--accent); }
.todo { display: grid; gap: 6px; }
.todo h3 { margin: 6px 0 0; font-size: .95rem; }
.todo-row { display: flex; gap: 10px; align-items: baseline; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.todo-row:hover { border-color: var(--accent); }
.todo-row span { color: var(--muted); font-size: .88rem; margin-right: auto; }
.todo-row small { color: var(--muted); }
.flow { margin: 0; padding: 0; list-style: none; counter-reset: flow; display: grid; gap: 12px; }
.flow li { counter-increment: flow; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; }
.flow li::before { content: counter(flow, myanmar); grid-row: span 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: .9rem; }
.flow span { font-size: .9rem; color: var(--muted); }
.flow em { font-style: normal; font-size: .78rem; justify-self: start; padding: 0 8px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); }

.petals-fixed { position: fixed; z-index: 40; }
