/* Rooftop pages: Users, Admin, Settings */
html.rp-on .lp { display: none !important; }
/* the Suggestion box is retired in the app (Oct 30, 2026): Messages and Communication stay */
#app-suggest { display: none !important; }

#rooftop-page { --ink: #1B2333; --muted: #5B6475; --line: #E1E5EE; --soft: #E8ECF7; --brand: #1F3A93; --page: #F4F6FA; --bad: #B42318; --ok: #1F7A3E;
  font: 14px Roboto, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--page); min-height: 100vh; }
.rp-wrap { max-width: 1240px; margin: 0 auto; padding: 24px 24px 64px; }
.rp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.rp-head h1 { margin: 0; font-size: 24px; font-weight: 600; }
.rp-head p { margin: 4px 0 0; color: var(--muted); }
.rp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rp-btn { font: inherit; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.rp-btn:hover { border-color: #B8C2D6; }
.rp-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.rp-btn.primary:hover { background: var(--brand-dark, #172C70); }
.rp-btn.danger { color: var(--bad); border-color: #F1C9C5; }
.rp-btn[disabled] { opacity: .5; cursor: default; }
.rp-link { all: unset; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.rp-dim { color: var(--muted); }
.rp-empty { color: var(--muted); padding: 24px; text-align: center; }
.rp-note { background: #FFF8E6; border: 1px solid #F3E2B3; border-radius: 8px; padding: 10px 12px; color: #6B5300; margin: 0 0 14px; }
.rp-err { color: var(--bad); font-weight: 500; }

.rp-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; }
.rp-rolecard { all: unset; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.rp-rolecard b { font-size: 22px; font-weight: 600; }
.rp-rolecard span { font-weight: 600; }
.rp-rolecard small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.rp-rolecard.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--soft); }

.rp-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.rp-q { flex: 1 1 280px; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.rp-f, .rp-bulk select, .rp-form select { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.rp-clear { font: inherit; border: 1px solid var(--brand); color: var(--brand); background: var(--soft); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.rp-count { margin-left: auto; color: var(--muted); }
.rp-bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--soft); border: 1px solid #C9D4F0; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }

.rp-tablewrap { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.rp-table { width: 100%; border-collapse: collapse; }
.rp-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rp-table td { padding: 10px 12px; border-bottom: 1px solid #EEF1F6; vertical-align: middle; }
.rp-table tbody tr[data-id] { cursor: pointer; }
.rp-table tbody tr[data-id]:hover { background: #F7F9FD; }
.rp-table tr.sel { background: #EEF2FB; }
.rp-table tr.bad td { color: var(--bad); }
.rp-sort { all: unset; cursor: pointer; }
.rp-ck { width: 32px; }
.rp-person { display: flex; gap: 10px; align-items: center; }
.rp-person small { display: block; color: var(--muted); font-size: 12.5px; }
.rp-av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--brand); display: grid; place-items: center; font-weight: 600; }
.rp-av.big { width: 56px; height: 56px; font-size: 22px; }
.rp-tag { font-size: 11px; padding: 1px 6px; border-radius: 999px; background: #F3E8FF; color: #6B21A8; font-weight: 600; }
.rp-tag.you { background: var(--soft); color: var(--brand); }
.rp-chip { display: inline-block; font-size: 12px; padding: 1px 7px; margin: 1px 3px 1px 0; border-radius: 6px; background: #F1F4FA; border: 1px solid var(--line); }
.rp-role { font-size: 12.5px; font-weight: 600; }
.rp-role.r-admin { color: #6B21A8; } .rp-role.r-manager { color: var(--brand); } .rp-role.r-viewer { color: var(--muted); }
.rp-st { font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.rp-st.s-active { background: #E7F5EC; color: var(--ok); } .rp-st.s-invited { background: #FFF4D6; color: #7A5600; } .rp-st.s-disabled { background: #F1F2F5; color: var(--muted); }
.rp-pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 10px; color: var(--muted); }
.rp-pager span { margin-right: auto; }

.rp-scrim { position: fixed; inset: 0; background: rgba(17, 24, 39, .35); z-index: 9300; }
.rp-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: #fff; z-index: 9310; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(17, 24, 39, .18); }
.rp-modal { position: fixed; z-index: 9310; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: #fff; border-radius: 12px; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(17, 24, 39, .3); }
.rp-dhead { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.rp-dhead h2 { margin: 0; font-size: 18px; }
.rp-x { all: unset; cursor: pointer; font-size: 22px; line-height: 1; color: var(--muted); padding: 2px 6px; border-radius: 6px; }
.rp-x:hover { background: #F1F4FA; }
.rp-x.small { font-size: 15px; margin-left: 6px; padding: 0 2px; }
.rp-dbody { padding: 16px 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.rp-dfoot { display: flex; gap: 8px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); }
.rp-sp { flex: 1; }
.rp-fld { display: flex; flex-direction: column; gap: 5px; border: 0; padding: 0; margin: 0; min-width: 0; }
.rp-fld > span, .rp-fld legend { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.rp-fld input:not([type=checkbox]):not([type=radio]):not([type=color]), .rp-fld select, .rp-form input[name], .rp-paste { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.rp-fld input[readonly] { background: #F7F8FA; color: var(--muted); }
.rp-help { color: var(--muted); font-size: 12px; }
.rp-radio { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; cursor: pointer; }
.rp-radio:has(input:checked) { border-color: var(--brand); background: var(--soft); }
.rp-radio small { display: block; color: var(--muted); font-size: 12.5px; }
.rp-radio input { margin-top: 3px; }
.rp-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 13px; background: #fff; }
.rp-pill.on { border-color: var(--brand); background: var(--soft); color: var(--brand); }
.rp-pill.off { opacity: .45; cursor: default; }
.rp-pill input { margin: 0; }
.rp-meta { color: var(--muted); }
.rp-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rp-paste { width: 100%; min-height: 120px; box-sizing: border-box; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.rp-prev { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.rp-bad { color: var(--bad); }
.rp-toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); background: #1B2333; color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 9400; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }

.rp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.rp-tabs button { all: unset; padding: 9px 14px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.rp-tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.rp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.rp-card { all: unset; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.rp-card:hover { border-color: #B8C2D6; }
.rp-card b { font-size: 26px; font-weight: 600; }
.rp-card small { color: var(--muted); }
.rp-h3 { font-size: 15px; margin: 24px 0 8px; }
.rp-todo { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin: 0; padding: 6px 16px 6px 34px; }
.rp-todo li { padding: 8px 0; }
.rp-form { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.rp-sec h3 { margin: 0 0 4px; font-size: 15px; }
.rp-sec p { margin: 0 0 10px; color: var(--muted); }
.rp-sec + .rp-sec { border-top: 1px solid #EEF1F6; padding-top: 16px; }
.rp-check { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.rp-formfoot { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.rp-formfoot small { color: var(--muted); }
.rp-log { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.rp-log li { padding: 10px 16px; border-bottom: 1px solid #EEF1F6; }
.rp-lw { color: var(--muted); font-size: 12.5px; }
.rp-lc { font-size: 12.5px; color: var(--muted); }
.rp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 14px; }
.rp-tile { all: unset; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.rp-tile:hover { border-color: var(--brand); }
.rp-tile small { color: var(--muted); }
.rp-sw { display: inline-block; width: 18px; height: 18px; border-radius: 5px; vertical-align: middle; border: 1px solid rgba(0, 0, 0, .1); }
.rp-profile { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.rp-profile h3 { margin: 0; } .rp-profile p { margin: 2px 0 0; color: var(--muted); }

@media (max-width: 760px) {
  .rp-wrap { padding: 60px 12px 48px; }
  .rp-roles { grid-template-columns: repeat(2, 1fr); }
  .rp-table th:nth-child(3), .rp-table td:nth-child(3), .rp-table th:nth-child(6), .rp-table td:nth-child(6), .rp-table th:nth-child(8), .rp-table td:nth-child(8) { display: none; }
}

.rp-lead { color: var(--muted); margin: 0 0 12px; }
.rp-sub { display: block; color: var(--muted); font-size: 12px; font-weight: 400; max-width: 260px; }
.rp-perm td.c, .rp-perm th.c { text-align: center; }
.rp-perm th.c { white-space: normal; min-width: 64px; }
.rp-yes { color: var(--ok); font-weight: 700; }
.rp-no { color: #B8C2D6; }
.rp-back { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-size: 13px; margin-bottom: 6px; }
.rp-back:hover { text-decoration: underline; }
/* names come from Users now: the old "Your name & store" box isn't offered */
[data-st-me] { display: none !important; }

/* Settings › Sales log */
.sl-form { max-width: 920px; }
.sl-cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 8px; }
.sl-card { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.sl-card:hover { border-color: #B8C2D6; }
.sl-card.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: #F7F9FE; }
.sl-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sl-card[disabled] { cursor: default; opacity: .7; }
.sl-card b { font-size: 15px; }
.sl-card small { color: var(--muted); line-height: 1.4; }
.sl-prev { display: flex; flex-direction: column; gap: 3px; height: 112px; padding: 8px; border-radius: 8px; background: #F4F6FA; border: 1px solid #E6EAF1; overflow: hidden; }
.sl-prev .sl-r { display: flex; gap: 6px; align-items: center; height: 11px; padding: 0 6px; border-radius: 2px; background: #fff; }
.sl-prev .sl-r i { height: 4px; border-radius: 2px; background: rgba(27, 35, 51, .25); flex: 1; }
.sl-prev .sl-r i.w { flex: 2; }
.sl-prev.classic .sl-head { height: 14px; background: var(--brand, #1F3A93); border-radius: 2px; margin-bottom: 2px; }
.sl-prev.classic .sl-r { border-bottom: 1px solid #E6EAF1; border-radius: 0; }
.sl-prev.classic .sl-r.red i { background: rgba(192, 0, 0, .55); }
.sl-prev.classic .sl-r.blue i { background: rgba(17, 85, 204, .55); }
.sl-prev .sl-cards { display: flex; gap: 4px; margin-bottom: 3px; }
.sl-prev .sl-cards i { flex: 1; height: 14px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .08); }
.sl-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.sl-row .rp-fld { min-width: 200px; }
.sl-st td { vertical-align: middle; }
.sl-st input[type=color] { width: 38px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.sl-st .sl-name { font: inherit; padding: 6px 10px 6px 12px; border: 1px solid rgba(27, 35, 51, .15); border-radius: 6px; width: 170px; }
.sl-st select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.sl-chip { display: inline-block; padding: 3px 10px 3px 12px; border-radius: 6px; }
.sl-tools { white-space: nowrap; }
.sl-tools .rp-link { margin: 0 4px; }
.sl-tools .rp-link[disabled] { opacity: .3; cursor: default; }
.rp-link.danger { color: var(--bad); }
.sl-foot { margin-top: 12px; font-size: 12.5px; }
@media (max-width: 700px) { .sl-hide { display: none; } }
/* Store options (Settings › Stores drawer) */
.rp-drawer .rp-check { align-items: flex-start; flex-wrap: wrap; }
.rp-drawer .rp-check .rp-help { flex-basis: 100%; margin-left: 24px; }
.rp-fld textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.rp-ps { border: 0; padding: 0; margin: 0; }
.rp-psl { display: flex; flex-wrap: wrap; gap: 2px 14px; }
/* Store access on a person (Users): one row per store */
.rp-acc { border: 0; padding: 0; margin: 4px 0 0; }
.rp-acc legend { font-weight: 600; margin-bottom: 6px; }
.rp-acc-quick { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.rp-acc-quick .rp-link { font-size: 12.5px; padding: 0; }
.rp-acc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.rp-acc-st { display: flex; align-items: center; gap: 8px; font-size: 13.5px; min-width: 0; }
.rp-acc-st i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.rp-seg { display: inline-flex; flex: none; border: 1px solid #C9CFDA; border-radius: 8px; overflow: hidden; }
.rp-segb { position: relative; padding: 5px 10px; font-size: 12.5px; cursor: pointer; color: #3A4458; background: #fff; border-left: 1px solid #C9CFDA; white-space: nowrap; }
.rp-segb:first-child { border-left: 0; }
.rp-segb input { position: absolute; opacity: 0; pointer-events: none; }
.rp-segb:hover { background: #EEF2FB; }
.rp-segb.on { background: var(--brand, #1F3A93); color: #fff; font-weight: 600; }
.rp-segb.on:first-child { background: #5B6475; }
.rp-segb.off { color: #B5BBC7; cursor: not-allowed; background: #F7F8FA; }
.rp-segb:has(input:focus-visible) { outline: 2px solid var(--brand, #1F3A93); outline-offset: -2px; }
.rp-acc-all { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #F7F8FA; font-size: 13px; }
.rp-acc-all span { color: var(--muted); }
/* Settings › Staff lists */
.sl-stores { margin: 4px 0 14px; }
.sl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.sl-col { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.sl-col h3 { margin: 0 0 8px; font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
.sl-names { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; }
.sl-names li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid #F0F2F6; font-size: 13.5px; }
.sl-names li:first-child { border-top: 0; }
.sl-x { border: 0; background: none; color: #8A93A5; font: inherit; font-size: 12px; cursor: pointer; padding: 2px 4px; border-radius: 5px; }
.sl-x:hover { color: #B42318; background: #FDECEA; }
.sl-add { display: flex; gap: 6px; }
.sl-add input { flex: 1; min-width: 0; font: inherit; font-size: 13.5px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; }
.sl-ret { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.sl-ret summary { cursor: pointer; }
.sl-ret div { display: flex; justify-content: space-between; padding: 3px 0; }
/* Settings · Users · Admin, one menu item */
.rp-sect { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 12px; border: 1px solid #D5DBE7; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(27, 35, 51, .05); }
.rp-sect button { font: 600 14.5px Roboto, Arial, sans-serif; color: #3A4458; background: none; border: 0; border-radius: 9px; padding: 8px 20px; cursor: pointer; }
.rp-sect button:hover { color: var(--brand, #1F3A93); background: #EEF2FB; }
.rp-sect button.on { color: #fff; background: var(--brand, #1F3A93); box-shadow: 0 2px 6px rgba(31, 58, 147, .28); }
.rp-sect button:focus-visible { outline: 2px solid var(--brand, #1F3A93); outline-offset: 2px; }

/* One page per store (Oct 31, 2026) */
.rp-stlink { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; font: inherit; color: var(--brand, #1F3A93); cursor: pointer; text-align: left; }
.rp-stlink:hover b { text-decoration: underline; }
.rp-spage { max-width: 880px; }
.sp-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 12px; }
.sp-top h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; }
.rp-sw.big { width: 16px; height: 16px; border-radius: 5px; }
.sp-nav { position: sticky; top: 0; z-index: 2; display: flex; gap: 4px; flex-wrap: wrap; background: #F4F6FA; padding: 8px 0; margin: 0 0 6px; border-bottom: 1px solid #E1E5EC; }
.sp-nav button { font: 500 13px Roboto, Arial, sans-serif; background: #fff; border: 1px solid #D6DBE4; border-radius: 999px; padding: 5px 12px; color: #1B2333; cursor: pointer; }
.sp-nav button:hover { border-color: var(--brand, #1F3A93); color: var(--brand, #1F3A93); }
.sp-sec { background: #fff; border: 1px solid #E1E5EC; border-radius: 12px; padding: 16px 18px; margin: 0 0 14px; scroll-margin-top: 56px; }
.sp-sec h3 { margin: 0 0 4px; font-size: 16px; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.sp-rows { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.sp-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; align-items: center; }
.sp-row input { font: inherit; padding: 7px 9px; border: 1px solid #C9CFDA; border-radius: 7px; min-width: 0; }
.sp-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 8px 0; }
.sp-people h4 { margin: 0 0 6px; font-size: 13px; }
.sp-people ul { list-style: none; margin: 0; padding: 0; }
.sp-people li { display: flex; flex-direction: column; padding: 5px 0; border-bottom: 1px solid #F0F2F6; font-size: 13.5px; }
.sp-people li span { font-size: 12px; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sp-chips .rp-pill { cursor: pointer; }
.sp-foot { position: sticky; bottom: 0; background: #F4F6FA; padding: 10px 0; border-top: 1px solid #E1E5EC; }
.rp-extra summary { cursor: pointer; font-weight: 500; }
.rp-drawer .rp-extra .rp-check { flex-wrap: nowrap; align-items: flex-start; }
.rp-extra .rp-check input { flex: none; margin-top: 3px; }
.rp-extra .rp-check span { min-width: 0; line-height: 1.35; }
.rp-extra .rp-xrow { display: flex; align-items: center; gap: 6px; }
.rp-extra summary { margin-bottom: 6px; }
.rp-extra summary .rt-info { margin-left: 6px; }
.rp-fld.rp-sub { margin-top: 8px; }
@media (max-width: 600px) { .sp-row { grid-template-columns: 1fr; } .sp-sec { padding: 14px; } }
/* Customer email editor and the Apply to picker (Oct 31, 2026) */
.sp-cecard { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #FAFBFD; font-size: 13.5px; }
.sp-apply { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); position: relative; }
.sp-pick { position: relative; }
.sp-pick summary { list-style: none; cursor: pointer; padding: 5px 28px 5px 11px; border: 1px solid #C9CFDA; border-radius: 7px; background: #fff; color: var(--ink); font-weight: 500; position: relative; white-space: nowrap; }
.sp-pick summary::-webkit-details-marker { display: none; }
.sp-pick summary::after { content: ''; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); }
.sp-pick[open] summary { border-color: var(--brand); }
.sp-pkpop { position: absolute; z-index: 20; left: 0; min-width: 250px; max-height: 340px; overflow: auto; margin-top: 4px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(16, 24, 40, .14); color: var(--ink); }
.sp-foot .sp-pkpop { bottom: calc(100% + 6px); margin: 0; }
.sp-pk { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; cursor: pointer; font-size: 13.5px; white-space: nowrap; }
.sp-pk:hover { background: var(--soft); }
.sp-pk .rp-dim { margin-left: auto; font-size: 12px; }
.sp-pk .rp-sw { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.sp-pka { border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; margin-bottom: 4px; }
.sp-pkg { padding: 2px 0 4px; }
.sp-pkg + .sp-pkg { border-top: 1px solid #F0F2F6; }
.sp-pkg .sp-pk:not(.sp-pkb) { padding-left: 26px; }
.ce-page { max-width: 1240px; }
.ce-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ce-edit, .ce-prev { background: var(--rt-card, #fff); border: 1px solid #E1E5EC; border-radius: 12px; padding: 16px 18px; }
.ce-prev { position: sticky; top: 8px; background: var(--rt-panel, #F7F8FB); }
.ce-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ce-lbl { font-weight: 600; font-size: 13px; }
.ce-h { margin: 6px 0 8px; font-size: 15px; }
.ce-seg { display: inline-flex; border: 1px solid #C9CFDA; border-radius: 8px; overflow: hidden; background: #fff; }
.ce-seg button { font: inherit; font-size: 13px; font-weight: 500; border: 0; background: none; padding: 6px 14px; cursor: pointer; color: var(--ink); }
.ce-seg button + button { border-left: 1px solid #C9CFDA; }
.ce-seg button[aria-pressed="true"] { background: var(--rt-brand, var(--brand)); color: #fff; }
.ce-trade { margin: 0; }
.ce-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ce-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 140px 74px; gap: 8px; align-items: start; }
.ce-row > input[type="checkbox"], .ce-row .ce-tag, .ce-row .rp-x { margin-top: 9px; }
.ce-row textarea.ce-t { resize: none; field-sizing: content; min-height: 34px; overflow: hidden; line-height: 1.4; font-family: inherit; }
.ce-row .ce-t, .ce-row select { font: inherit; font-size: 13.5px; padding: 7px 9px; border: 1px solid #C9CFDA; border-radius: 7px; min-width: 0; background: #fff; }
.ce-row:not(.preset) .ce-t { border-style: dashed; }
.ce-row:not(.preset) .ce-t:focus, .ce-row:not(.preset) .ce-t:not(:placeholder-shown) { border-style: solid; }
.ce-row.off .ce-t, .ce-row.off select { color: var(--muted); background: #F7F8FA; }
.ce-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); }
.ce-row .rp-x { justify-self: start; }
.ce-tag { font-size: 11px; color: var(--muted); white-space: nowrap; }
.ce-mail { background: #fff; border: 1px solid #E1E5EC; border-radius: 10px; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); overflow: hidden; }
.ce-hd { padding: 10px 14px; border-bottom: 1px solid #EEF0F4; font-size: 13px; display: grid; gap: 4px; }
.ce-hd span { display: inline-block; width: 58px; color: var(--muted); }
.ce-body { padding: 14px 16px 16px; font: 14px/1.5 Calibri, 'Segoe UI', Arial, sans-serif; color: #222; max-height: 70vh; overflow: auto; }
.ce-body .ce-p { margin: 0 0 12px; }
.ce-body p { margin: 0; white-space: pre-wrap; }
.ce-body ul { margin: 2px 0 0; padding-left: 20px; }
.ce-body li { margin: 2px 0; }
@media (max-width: 980px) { .ce-grid { grid-template-columns: 1fr; } .ce-prev { position: static; } }
@media (max-width: 600px) { .ce-row { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 4px; } .ce-row .ce-t { grid-column: 2 / 4; } .ce-row select { grid-column: 2; } .ce-row .ce-tag, .ce-row .rp-x { grid-column: 3; margin-top: 9px; } .ce-rows { gap: 12px; } }
.rp-sig textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; line-height: 1.45; padding: 9px 11px; border: 1px solid #C9CFDA; border-radius: 8px; resize: vertical; background: #fff; }

/* Admin › Restore (rooftop/restore.js, Oct 31, 2026) */
.rp-btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.rp-btn.danger.solid[disabled] { background: #fff; color: var(--bad); }
.rsto { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; max-width: 860px; }
.rsto-head { display: flex; align-items: center; margin-bottom: 12px; }
.rsto-head h3 { margin: 0; font-size: 16px; }
.rsto-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 16px; flex-wrap: wrap; }
.rsto-steps li { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--page); color: var(--muted); font-size: 13px; }
.rsto-steps li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font-size: 11px; font-weight: 600; }
.rsto-steps li.on { background: var(--soft); color: var(--brand); font-weight: 600; }
.rsto-steps li.on span { background: var(--brand); color: #fff; border-color: var(--brand); }
.rsto-steps li.done span { background: var(--ok); color: #fff; border-color: var(--ok); }
.rsto-q { margin: 14px 0 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.rsto-q:first-child { margin-top: 0; }
.rsto-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.rsto-opts.two { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rsto-opt { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.rsto-opt:hover { border-color: #B8C2D6; }
.rsto-opt.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--soft); }
.rsto-opt > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.rsto-opt small { color: var(--muted); }
.rsto-opt input[type="datetime-local"] { font: inherit; margin-top: 4px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; max-width: 100%; }
.rsto-foot { display: flex; gap: 8px; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid #EEF1F6; }
.rsto-err { color: var(--bad); font-weight: 500; margin: 10px 0 0; }
.rsto-warn { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: #FFF8E6; border: 1px solid #F3E2B3; color: #6B5300; font-size: 13px; }
.rsto-wait { color: var(--muted); padding: 14px 0; }
.rsto-sum { margin: 0 0 12px; }
.rsto-cards { margin-bottom: 14px; }
.rsto-cards .rp-card { cursor: default; }
.rsto-cards .rp-card.bad b { color: var(--bad); }
.rsto .rp-table th.c, .rsto .rp-table td.c { text-align: center; }
.rsto-people { margin: 0; color: var(--ink); }
.rsto-people span { color: var(--muted); }
.rsto-items { margin-top: 12px; }
.rsto-items summary { cursor: pointer; color: var(--brand); font-weight: 500; margin-bottom: 8px; }
.rsto-items .rp-tablewrap { max-height: 320px; overflow: auto; }
.rsto-a.remove { color: var(--bad); }
.rsto-a.back { color: var(--ok); }
.rsto-danger { border: 1px solid #F1C9C5; background: #FEF3F2; border-radius: 10px; padding: 12px 16px; color: #7A271A; }
.rsto-danger h4 { margin: 0 0 6px; font-size: 14px; }
.rsto-danger ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.rsto-ack { margin-top: 14px; font-weight: 500; }
.rsto-type { margin-top: 12px; max-width: 280px; }
.rsto-type input { font: 600 15px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.rsto-ok { border: 1px solid #B7E1C4; background: #EEF8F1; border-radius: 10px; padding: 12px 16px; color: #14532D; }
.rsto-ok h4 { margin: 0 0 4px; }
.rsto-ok p { margin: 0; }
.rsto-modal { width: min(560px, calc(100vw - 32px)); }
@media (max-width: 600px) { .rsto { padding: 14px; } .rsto-foot { flex-wrap: wrap; } }
.rsto-more { max-width: 902px; }
.rsto-more .rp-form { max-width: none; }

/* Admin › Data sources (rooftop/datasources.js, Nov 1, 2026) */
.ds { max-width: 1100px; }
.ds-t td { vertical-align: top; }
.ds-acts { white-space: nowrap; display: inline-flex; gap: 12px; }
.ds-ok { color: var(--ok); font-weight: 600; }
.ds-up { margin: 14px 0; background: #fff; border: 1px solid var(--brand); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; }
.ds-uph { display: flex; align-items: center; }
.ds-uph h4 { margin: 0; font-size: 14px; flex: 1; }
.ds-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ds-paste { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.ds-sum { margin: 0; }
.ds-bad ul { margin: 6px 0 0; padding-left: 18px; color: var(--bad); }
.ds-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ds-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.ds-kind { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ds-st { color: var(--muted); display: inline-flex; align-items: center; }
/* a store page section with several parts (Deliveries): each part its own block, its heading clearly over it (Nov 1, 2026) */
.sp-sub + .sp-sub { margin-top: 18px; padding-top: 16px; border-top: 1px solid #EEF1F6; }
.sp-sub > legend, .sp-sub > span:first-child { font-weight: 600; margin-bottom: 8px; padding: 0; display: inline-flex; align-items: center; }
.sp-sub .rp-applyrow, .sp-sub [data-pick] { margin-top: 10px; }
.sp-sub .sp-rows:empty + .rp-btn, .sp-sub .rp-btn[data-aladd] { margin-top: 8px; }
