/* Shared bar on the sample pages (samples/*.html): a way back to Liyu Tsega and a clear "sample" label. */
.sp-bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: max(10px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: rgb(26 14 19 / .92); backdrop-filter: blur(8px); border-bottom: 1px solid rgb(255 143 179 / .25); font-family: "Noto Sans Ethiopic", system-ui, sans-serif; }
.sp-back { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 99px; border: 1px solid rgb(255 143 179 / .55); color: #FFEFF3; text-decoration: none; font-weight: 700; font-size: .9rem; }
.sp-back:focus-visible { outline: 3px solid #F4D08A; outline-offset: 2px; }
.sp-tag { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgb(255 143 179 / .2); color: #FFE3EC; }

/* web-78: «try it with your own» panel on every sample page — preview only */
.mine { width: min(100%, 640px); margin: 0 auto; display: grid; gap: 10px; padding: 16px; border-radius: 18px; border: 1.5px dashed currentColor; background: rgb(127 127 127 / .08); font-family: "Noto Sans Ethiopic", system-ui, sans-serif; box-sizing: border-box; }
.mine h2 { margin: 0; font-family: "Noto Serif Ethiopic", serif; font-size: 1.15rem; }
.mine p { margin: 0; line-height: 1.7; font-size: .9rem; opacity: .9; }
.mine-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mine-row > * { flex: 1 1 160px; justify-content: center; text-align: center; }
.mine-note { font-size: .8rem !important; }
.mine-status { font-weight: 700; min-height: 1.2em; }
.mine-status:empty { display: none; }
.mine-form { display: grid; gap: 10px; }
.mine-form label { display: grid; gap: 4px; font-weight: 700; font-size: .88rem; }
.mine-form input[type="text"], .mine-form textarea { font: 400 1rem/1.7 "Noto Sans Ethiopic", system-ui, sans-serif; padding: 10px 12px; border-radius: 12px; border: 1px solid rgb(127 127 127 / .45); background: #fff; color: #3A1E26; width: 100%; box-sizing: border-box; }
.mine-form textarea { min-height: 150px; resize: vertical; }
.mine-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
[data-mine] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.mine-rec[aria-pressed="true"] { outline: 3px solid #E24B4A; outline-offset: 2px; }

/* web-99: «Keep» — the save bar on every editable sample. Same dark-wine bar and rose/gold accents as .sp-bar (no new colours). */
.keep-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; gap: 8px;
  padding: 10px max(12px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  background: rgb(26 14 19 / .95); backdrop-filter: blur(8px); border-top: 1px solid rgb(255 143 179 / .25); font-family: "Noto Sans Ethiopic", system-ui, sans-serif; box-sizing: border-box; }
body.has-keep { padding-bottom: 150px; } /* replaced at run time by the real bar height */
.keep-status { margin: 0; color: #FFE3EC; font-size: .85rem; line-height: 1.5; text-align: center; min-height: 1.3em; }
.keep-status.is-ok { color: #BFE8C8; } .keep-status.is-warn { color: #F4D08A; } .keep-status.is-bad { color: #FFB4B4; } .keep-status.is-busy { color: #FFE3EC; opacity: .9; }
.keep-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.keep-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border-radius: 99px; border: 1px solid rgb(255 143 179 / .55);
  background: transparent; color: #FFEFF3; text-decoration: none; font: 700 .85rem/1.2 "Noto Sans Ethiopic", system-ui, sans-serif; cursor: pointer; flex: 1 1 auto; max-width: 220px; }
.keep-btn[hidden] { display: none; }
.keep-save { background: linear-gradient(180deg, #9B3358, #6E1F3A); border-color: transparent; color: #fff; flex: 2 1 140px; }
.keep-save.is-done { background: rgb(255 143 179 / .18); }
.keep-save:disabled { opacity: .65; cursor: progress; }
.keep-btn:focus-visible { outline: 3px solid #F4D08A; outline-offset: 2px; }
.sp-tag.is-mine { background: #C9A36A; color: #2E1F25; }
/* her copy: a sample picture she has not replaced yet is marked as a placeholder */
.keep-ph { position: absolute; right: 8px; top: 8px; z-index: 3; padding: 4px 9px; border-radius: 99px; background: rgb(26 14 19 / .78); color: #FFE3EC;
  border: 1px dashed rgb(255 143 179 / .8); font: 700 11px/1.2 "Noto Sans Ethiopic", system-ui, sans-serif; pointer-events: none; }
@media (max-width: 360px) { .keep-btn { font-size: .78rem; padding: 8px 9px; } body.has-keep { padding-bottom: 170px; } }
/* the «make yours» promo bar sits above the save bar; on her own copy it steps aside (she has already started) */
body.has-keep .pr-bar { bottom: calc(var(--keep-h, 150px) + 8px) !important; }
body.keep-own .pr-bar, body.keep-own .pr-card { display: none !important; }
/* where the placeholder mark sits so it never covers a template's own buttons or labels */
body.tpl-album3d .keep-ph { left: 5cqw; right: auto; top: 5cqw; }
body.tpl-ultrasound .keep-ph { top: 36px; right: auto; left: 12px; }
/* a compact bar: every action on one or two short rows, so the template keeps most of the screen */
.keep-row { flex-wrap: wrap; }
.keep-btn { flex: 1 1 0; min-width: 0; max-width: none; white-space: normal; text-align: center; padding: 6px 8px; font-size: .8rem; }
.keep-save { flex: 1.4 1 0; font-size: .9rem; }
.keep-bar { gap: 6px; padding-top: 8px; }
.keep-status { font-size: .8rem; }
