/* ============================================================
   REGIMEN SHEET STYLES (see js/sheet-templates.js)
   Brand color comes from --sage / --sage-dark / --sage-tint.
   ============================================================ */
.tpl { color: var(--ink); }
.tpl h1, .tpl h3 { margin: 0; text-transform: none; letter-spacing: normal; color: inherit; display: block; }
.tpl .sheet-notes-block { white-space: normal; }
.tpl .sheet-notes-block ul { margin: 0; padding-left: 18px; line-height: 1.45; }
.tpl .sheet-taper-block { margin-top: 8px; }
.tpl .tpl-pn { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.tpl .tpl-pi { font-size: 11px; color: var(--text-secondary); line-height: 1.45; margin-top: 2px; }
.tpl .tpl-sub { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage); margin-top: 4px; }
.tpl .tpl-field { width: 150px; }
.tpl .tpl-field span { display: block; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.tpl .tpl-field div { font-size: 13px; font-weight: 600; min-height: 18px; }
.tpl .tpl-fields { display: flex; gap: 12px; }
.tpl .tpl-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tpl .tpl-foot-h { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.tpl .tpl-side { display: flex; flex-direction: column; gap: 14px; }
.tpl .ti { font-size: 15px; }

/* ---- Minimal ---- */
.tpl-minimal { padding: 30px 36px 26px; border-top: 6px solid var(--sage); }
.tpl-minimal .tpl-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.tpl-minimal h1 { font-family: var(--app-heading-font); font-weight: 300; font-size: 28px; letter-spacing: -0.01em; }
.tpl-minimal h1 b { font-weight: 700; }
.tpl-minimal .tpl-field div { border-bottom: 1px solid var(--line); padding-top: 3px; }
.tpl-minimal .tpl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 18px; }
.tpl-minimal .tpl-ch { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.14em; font-weight: 700; text-transform: uppercase; color: var(--sage); padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.tpl-minimal .tpl-step { display: grid; grid-template-columns: 30px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.tpl-minimal .tpl-n { font-size: 12px; font-weight: 300; color: var(--sage); padding-top: 1px; }
.tpl-minimal .tpl-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--ink); }
.tpl-minimal .tpl-foot-h { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); }

/* ---- Spa ---- */
.tpl-spa { background: var(--sage-tint); padding: 24px; }
.tpl-spa .tpl-hd { text-align: center; margin-bottom: 16px; }
.tpl-spa h1 { font-family: var(--app-heading-font); font-size: 22px; letter-spacing: 0.03em; color: var(--sage-dark); margin-bottom: 10px; }
.tpl-spa .tpl-sub { margin: -4px 0 10px; }
.tpl-spa .tpl-pills { display: flex; justify-content: center; gap: 12px; }
.tpl-spa .tpl-pill { background: #fff; border-radius: 999px; padding: 8px 18px; font-size: 12px; font-weight: 600; min-width: 190px; text-align: left; }
.tpl-spa .tpl-pill span { color: var(--text-muted); font-weight: 700; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; margin-right: 8px; }
.tpl-spa .tpl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tpl-spa .tpl-card { background: #fff; border-radius: 16px; padding: 14px 16px 4px; }
.tpl-spa .tpl-ct { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--sage-dark); margin-bottom: 6px; }
.tpl-spa .tpl-ico { width: 26px; height: 26px; border-radius: 50%; background: var(--sage-tint); display: inline-flex; align-items: center; justify-content: center; }
.tpl-spa .tpl-step { display: grid; grid-template-columns: 30px 1fr; padding: 9px 0; border-top: 1px dashed var(--line); }
.tpl-spa .tpl-n { width: 22px; height: 22px; border-radius: 50%; background: var(--sage); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tpl-spa .tpl-foot { margin-top: 14px; gap: 14px; }
.tpl-spa .tpl-notes, .tpl-spa .tpl-side { background: #fff; border-radius: 16px; padding: 14px 16px; }
.tpl-spa .tpl-foot-h { color: var(--sage-dark); font-size: 13px; }

/* ---- Luxe ---- */
.tpl-luxe { background: #faf7f1; padding: 32px 40px 28px; font-variant-numeric: lining-nums; }
.tpl-luxe .tpl-hd { text-align: center; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 3px 0; }
.tpl-luxe .tpl-hd-in { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 12px 0 10px; }
.tpl-luxe h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 28px; letter-spacing: 0.08em; text-transform: uppercase; }
.tpl-luxe .tpl-meta { display: flex; justify-content: center; gap: 36px; margin-top: 8px; font-size: 10.5px; letter-spacing: 0.14em; color: var(--text-muted); }
.tpl-luxe .tpl-meta b { color: var(--ink); font-weight: 500; letter-spacing: 0.04em; margin-left: 8px; }
.tpl-luxe .tpl-meta .tpl-blank { display: inline-block; min-width: 140px; border-bottom: 1px solid var(--text-muted); text-align: left; }
.tpl-luxe .tpl-cols { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 26px; margin-top: 20px; }
.tpl-luxe .tpl-vr { background: var(--line); }
.tpl-luxe .tpl-h2 { text-align: center; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400; font-size: 20px; color: var(--sage); margin-bottom: 8px; }
.tpl-luxe .tpl-step { display: grid; grid-template-columns: 32px 1fr; padding: 8px 0; }
.tpl-luxe .tpl-n { font-family: 'Playfair Display', Georgia, serif; font-size: 14px; color: var(--sage); }
.tpl-luxe .tpl-pn { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 14px; }
.tpl-luxe .tpl-orn { text-align: center; color: var(--sage); letter-spacing: 0.6em; font-size: 10px; margin: 16px 0 12px; }
.tpl-luxe .tpl-foot-h { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-style: italic; font-size: 18px; }
.tpl-luxe .sheet-treatments-block h4 { font-family: 'Playfair Display', Georgia, serif; font-style: italic; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 400; }
.tpl-luxe .sheet-reorder-subheading { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; text-transform: none; font-size: 19px; }

/* ---- Timeline ---- */
.tpl-timeline { padding-bottom: 24px; }
.tpl-timeline .tpl-hd { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 32px; border-bottom: 1px solid var(--line); }
.tpl-timeline h1 { font-family: var(--app-heading-font); font-size: 22px; font-weight: 800; }
.tpl-timeline h1 span { color: var(--sage); }
.tpl-timeline .tpl-field { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }
.tpl-timeline .tpl-body { display: grid; grid-template-columns: 1fr 1fr; }
.tpl-timeline .tpl-sec { padding: 16px 32px 2px; }
.tpl-timeline .tpl-sec + .tpl-sec { border-left: 1px solid var(--line-soft); }
.tpl-timeline .tpl-sh { display: inline-flex; align-items: center; gap: 6px; background: var(--sage); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.tpl-timeline .tpl-tl { border-left: 2px solid var(--sage-tint); margin-left: 8px; padding-left: 18px; }
.tpl-timeline .tpl-step { position: relative; padding: 0 0 13px; }
.tpl-timeline .tpl-dot { position: absolute; left: -28px; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--sage); font-size: 9px; font-weight: 800; color: var(--sage); display: flex; align-items: center; justify-content: center; line-height: 1; }
.tpl-timeline .tpl-foot { margin: 4px 32px 0; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---- Day & Night ---- */
.tpl-daynight .tpl-hd { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.tpl-daynight .tpl-title { text-align: center; }
.tpl-daynight h1 { font-family: var(--app-heading-font); font-size: 19px; letter-spacing: 0.08em; text-transform: uppercase; }
.tpl-daynight .tpl-f { font-size: 12px; font-weight: 600; }
.tpl-daynight .tpl-f span { font-size: 9.5px; letter-spacing: 0.12em; color: var(--text-muted); font-weight: 700; margin-right: 8px; }
.tpl-daynight .tpl-r { text-align: right; }
.tpl-daynight .tpl-r i { display: inline-block; min-width: 120px; border-bottom: 1px solid var(--line); font-style: normal; text-align: left; }
.tpl-daynight .tpl-cols { display: grid; grid-template-columns: 1fr 1fr; }
.tpl-daynight .tpl-day { background: #fbf6ec; padding: 16px 22px 8px; }
.tpl-daynight .tpl-night { background: var(--ink); color: #fff; padding: 16px 22px 8px; }
.tpl-daynight .tpl-ch { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.tpl-daynight .tpl-day .tpl-ch { color: #a0672a; }
.tpl-daynight .tpl-night .tpl-ch { color: #c9d6cf; }
.tpl-daynight .tpl-step { display: grid; grid-template-columns: 28px 1fr; padding: 8px 0; border-top: 1px solid rgba(0,0,0,0.07); }
.tpl-daynight .tpl-night .tpl-step { border-top-color: rgba(255,255,255,0.12); }
.tpl-daynight .tpl-n { font-size: 18px; font-weight: 800; line-height: 1; }
.tpl-daynight .tpl-day .tpl-n { color: #d9b98a; }
.tpl-daynight .tpl-night .tpl-n { color: var(--sage-tint); opacity: 0.55; }
.tpl-daynight .tpl-night .tpl-pn { color: #fff; }
.tpl-daynight .tpl-night .tpl-pi { color: #b8c2bd; }
.tpl-daynight .tpl-foot { padding: 16px 26px 22px; }

/* ---- Bold ---- */
.tpl-bold .tpl-hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 24px 28px 16px; }
.tpl-bold h1 { font-family: var(--app-heading-font); font-weight: 900; font-size: 38px; line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; }
.tpl-bold h1 span { color: var(--sage); }
.tpl-bold .tpl-fields { display: grid; gap: 6px; }
.tpl-bold .tpl-f { display: grid; grid-template-columns: 70px 150px; font-size: 12px; font-weight: 600; border-bottom: 2px solid var(--ink); padding-bottom: 3px; }
.tpl-bold .tpl-f span { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.tpl-bold .tpl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 28px; }
.tpl-bold .tpl-ch { background: var(--sage); color: #fff; font-weight: 900; font-size: 15px; letter-spacing: 0.06em; padding: 7px 12px; display: flex; align-items: center; gap: 8px; }
.tpl-bold .tpl-ch.pm { background: var(--ink); }
.tpl-bold .tpl-step { display: grid; grid-template-columns: 40px 1fr; padding: 8px 0; border-bottom: 2px solid #f0eee8; }
.tpl-bold .tpl-n { font-weight: 900; font-size: 28px; line-height: 0.9; color: var(--sage); }
.tpl-bold .tpl-pn { font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.tpl-bold .tpl-foot { padding: 16px 28px 24px; gap: 12px; }
.tpl-bold .tpl-foot-h { font-weight: 900; text-transform: uppercase; }
.tpl-bold .tpl-side { background: #f6f4ef; padding: 14px 16px; }

/* ---- Weekly Checklist ---- */
.tpl-checklist { padding: 22px 26px; }
.tpl-checklist .tpl-hd { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.tpl-checklist h1 { font-family: var(--app-heading-font); font-size: 20px; font-weight: 800; }
.tpl-checklist .tpl-hint { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.tpl-checklist .tpl-field { background: #f6f4ef; border-radius: 6px; padding: 6px 12px; }
.tpl-checklist .tpl-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.tpl-checklist th { background: var(--sage); color: #fff; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 8px; text-align: left; }
.tpl-checklist th .ti { font-size: 13px; margin-right: 5px; vertical-align: -2px; }
.tpl-checklist th.pm { background: var(--ink); }
.tpl-checklist th.tpl-d { width: 26px; text-align: center; padding: 6px 0; }
.tpl-checklist td { border-bottom: 1px solid var(--line-soft); padding: 6px 8px; vertical-align: middle; }
.tpl-checklist .tpl-num { width: 20px; font-weight: 800; color: var(--sage); font-size: 12px; }
.tpl-checklist .tpl-pn { font-size: 12px; }
.tpl-checklist .tpl-pi { font-size: 10.5px; line-height: 1.35; margin-top: 0; }
.tpl-checklist .tpl-box { text-align: center; padding: 0; }
.tpl-checklist .tpl-box span { display: inline-block; width: 13px; height: 13px; border: 1.5px solid #b9b4a5; border-radius: 3px; vertical-align: middle; }
.tpl-checklist .tpl-foot { margin-top: 6px; }

/* ---- Clinical ---- */
.tpl-clinical { padding: 24px 28px; }
.tpl-clinical .tpl-hd { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 12px; border-bottom: 3px solid var(--sage); }
.tpl-clinical h1 { font-family: var(--app-heading-font); font-size: 20px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.tpl-clinical .tpl-hint { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.tpl-clinical .tpl-field { border: 1px solid var(--line); padding: 5px 10px; min-height: 40px; }
.tpl-clinical .tpl-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.tpl-clinical th { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--ink); }
.tpl-clinical td { padding: 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tpl-clinical tr:nth-child(even) td { background: #fafaf7; }
.tpl-clinical .tpl-c { text-align: center; width: 48px; }
.tpl-clinical .tpl-name { width: 190px; font-size: 12px; }
.tpl-clinical .tpl-pi { margin-top: 0; font-size: 11.5px; }
.tpl-clinical .tpl-num { width: 22px; font-weight: 700; color: var(--text-muted); font-size: 12px; }
.tpl-clinical .tpl-chk { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--sage); color: #fff; font-size: 11px; font-weight: 800; }
.tpl-clinical .tpl-chk.pm { background: var(--ink); }
.tpl-clinical .tpl-no { color: #d3cfc2; }
.tpl-clinical .tpl-foot { margin-top: 16px; }
.tpl-clinical .tpl-foot-h { font-size: 11px; letter-spacing: 0.1em; color: var(--text-muted); }
.tpl-clinical .tpl-side { border-left: 1px solid var(--line); padding-left: 20px; }

/* Style picker (Editor + admin) */
.sheet-style-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 8px; }
.sheet-style-option { border: 2px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; cursor: pointer; text-align: left; font: inherit; display: flex; flex-direction: column; gap: 6px; }
.sheet-style-option img { width: 100%; aspect-ratio: 760 / 860; object-fit: contain; object-position: top center; border-radius: 6px; border: 1px solid var(--line-soft); background: #fff; }
.sheet-style-option strong { font-size: 12.5px; }
.sheet-style-option span { font-size: 11px; color: var(--text-muted); line-height: 1.3; }
.sheet-style-option.selected { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-tint); }
