/* AAPROPHOTO client area: same look as the main site */
:root {
  --ink: #121110; --paper: #1a1917; --line: #2f2c28; --text: #ece6dc; --muted: #9b9387; --safelight: #f0a640;
  --font-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--ink); color: var(--text); font: 400 1rem/1.6 var(--font-body); }
a { color: var(--safelight); }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h1 em, h2 em { font-style: italic; color: var(--safelight); }
h2 { font-size: 1.5rem; }
code { font-family: var(--font-mono); font-size: .85em; color: var(--text); background: rgba(255,255,255,.05); padding: 1px 6px; border-radius: 4px; }

/* Header and footer */
/* Header: same as the main website. No bar, a 15% black tint that fades out over
   the last 100px (ending 30px below the header), soft shadows on the logo and link. */
.c-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px var(--gutter); border-bottom: 0; background: transparent; position: sticky; top: 0; z-index: 40; isolation: isolate; }
.c-head::after { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -30px; z-index: -1; background: linear-gradient(to bottom, rgba(0, 0, 0, .15) 0, rgba(0, 0, 0, .15) calc(100% - 100px), rgba(0, 0, 0, 0) 100%); pointer-events: none; }
.c-head .c-logo img { filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)) drop-shadow(0 0 8px rgba(0,0,0,.5)); }
.c-head .c-back { text-shadow: 0 1px 3px rgba(0,0,0,.5), 0 0 10px rgba(0,0,0,.5); }
html { scroll-padding-top: 110px; }
.c-logo img { display: block; width: 180px; height: auto; }
.c-back { color: var(--muted); text-decoration: none; font-size: .92rem; }
.c-back:hover { color: var(--text); }
.c-main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gutter); }
.c-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.c-foot a { color: var(--muted); }

/* Shared bits */
.c-label { display: block; font: 500 .72rem var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--safelight); margin-bottom: 12px; }
.c-meta, .c-small { color: var(--muted); font-size: .9rem; }
.c-small { margin: 14px 0 0; }
.c-error, .c-notice { margin: 16px 0; padding: 12px 16px; border-radius: 8px; font-size: .95rem; }
.c-error { background: rgba(220,80,60,.12); border: 1px solid rgba(220,80,60,.45); color: #ffb4a6; }
.c-notice { background: rgba(240,166,64,.1); border: 1px solid rgba(240,166,64,.45); color: #ffd9a0; }
.c-empty { color: var(--muted); padding: 40px 0; }
.warn { color: #ffb4a6; }

.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none;
  font: 500 .95rem var(--font-body); color: var(--ink); padding: 11px 20px; border-radius: 9px;
  background: linear-gradient(180deg, #ffc46e 0%, var(--safelight) 55%, #d98c2c 100%); border: 1px solid #c27a22;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 3px 0 #9a5f17; transition: transform .15s;
}
.c-btn:hover { transform: translateY(-1px); }
.c-btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 0 #9a5f17; }
.c-btn small { font-weight: 400; opacity: .8; }
.c-btn.ghost { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.c-btn.ghost:hover { border-color: var(--text); }
.c-btn.danger { background: transparent; color: #ffb4a6; border-color: rgba(220,80,60,.5); box-shadow: none; }

/* Forms */
label { display: block; font-size: .88rem; color: var(--muted); margin: 16px 0 6px; }
input, textarea, select {
  display: block; width: 100%; font: 400 1rem var(--font-body); color: var(--text);
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--safelight); outline-offset: 1px; border-color: transparent; }
input[type="date"] { color-scheme: dark; }

/* Login card */
.is-login .c-main { display: grid; place-items: center; }
.login-card { width: 100%; max-width: 440px; padding: clamp(24px, 5vw, 40px); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.login-card h1 { margin-bottom: 12px; }
.login-card > p { color: var(--muted); margin: 0 0 8px; }
.login-card .c-btn { width: 100%; margin-top: 24px; }

/* Gallery */
.g-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.g-top h1 { margin-bottom: 6px; }
.g-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.g-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.g-shot { display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; background: var(--paper); }
.g-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.g-shot:hover img { transform: scale(1.03); }
.g-shot:focus-visible { outline: 2px solid var(--safelight); outline-offset: 2px; }
@media (max-width: 560px) { .g-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .g-actions, .g-actions .c-btn { width: 100%; } }

/* Full-screen viewer */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(8,8,7,.96); display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.lb img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
.lb figcaption { font: 400 .8rem var(--font-mono); color: var(--muted); }
.lb button { background: none; border: 0; color: var(--text); font-size: 2.6rem; cursor: pointer; height: 100%; }
.lb button:hover { color: var(--safelight); }
.lb-close { position: absolute; top: 8px; right: 14px; height: auto !important; z-index: 2; }
.lb-dl { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-size: .9rem; }
@media (max-width: 600px) { .lb { grid-template-columns: 36px 1fr 36px; } .lb button { font-size: 2rem; } }

/* Admin */
.a-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.a-card, .a-share { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 28px); margin-top: 20px; }
.a-share { border-color: rgba(240,166,64,.5); }
.a-share textarea { margin: 12px 0; font-family: var(--font-mono); font-size: .9rem; resize: vertical; }
details.a-card > summary { cursor: pointer; list-style: none; }
details.a-card > summary h2 { display: inline; }
.a-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; align-items: end; }
.a-form > .c-btn, .a-form .a-btns { margin-top: 16px; }
.a-form > .c-small { grid-column: 1 / -1; }
.a-btns { display: flex; flex-wrap: wrap; gap: 10px; grid-column: 1 / -1; }
.a-count { font: 500 .8rem var(--font-mono); color: var(--muted); vertical-align: middle; margin-left: 6px; }
.a-list { margin-top: 12px; border-top: 1px solid var(--line); }
.a-row { border-bottom: 1px solid var(--line); padding: 4px 0; }
.a-row .a-form { padding: 0 0 18px 26px; }
.a-code { font: 400 .85rem var(--font-mono); color: var(--safelight); }
.a-stat { color: var(--muted); font-size: .88rem; margin-left: auto; }
.login-card .c-small { margin-top: 22px; }

/* Admin: ZIP upload */
.a-form > .a-file { grid-column: span 2; }
@media (max-width: 640px) { .a-form > .a-file { grid-column: auto; } }
.a-file input[type="file"] { padding: 9px 10px; font-size: .9rem; cursor: pointer; }
.a-file input[type="file"]::file-selector-button { font: 500 .85rem var(--font-body); color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; margin-right: 10px; cursor: pointer; }
.a-progress { grid-column: 1 / -1; margin-top: 14px; }
.a-progress a { display: inline-block; margin-top: 8px; }
.a-bar { height: 8px; border-radius: 99px; background: var(--ink); border: 1px solid var(--line); overflow: hidden; }
.a-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #d98c2c, var(--safelight)); transition: width .3s; }
.a-progress .a-status { margin-top: 8px; }
.a-upload { padding: 0 0 18px 26px; }
.c-btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* Admin page: compact, sized to its content so it fits a laptop screen */
.is-admin .c-main { max-width: none; width: fit-content; min-width: min(100%, 960px); padding: 22px 14px 36px; }
.is-admin h1 { font-size: 2.2rem; }
.is-admin .a-head { margin-bottom: 10px; }
.is-admin .a-card, .is-admin .a-share { padding: 16px 20px; margin-top: 14px; }
.is-admin .a-card h2 { font-size: 1.3rem; }
.is-admin .c-notice, .is-admin .c-error { margin: 10px 0; padding: 9px 14px; }
.is-admin label { margin: 0 0 4px; font-size: .78rem; }
.is-admin input { padding: 8px 10px; font-size: .88rem; border-radius: 7px; }
.is-admin .c-btn { padding: 8px 16px; font-size: .88rem; }

/* New client gallery: one row, button lined up with the fields */
#create-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 10px; }
#create-form > label { flex: 1 1 130px; min-width: 120px; margin-bottom: 0; }
#create-form > label:nth-of-type(1) { flex-basis: 170px; }
#create-form > label:nth-of-type(4) { flex: 0 0 140px; }
#create-form > label.a-file { flex: 1 1 150px; }
#create-form input, #create-form .a-pick, #create-form > .c-btn, .a-upload .a-pick, .a-upload > .c-btn { height: 35px; }
#create-form > .c-btn { flex: none; margin: 0; }
#create-form .a-progress { flex: 1 1 100%; margin-top: 4px; }

/* ZIP picker (replaces the browser's "Choose file / No file chosen") */
.a-pick { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px dashed #4a453e; border-radius: 7px; background: var(--paper); color: var(--text); font-size: .86rem; cursor: pointer; overflow: hidden; }
.a-pick:hover { border-color: var(--safelight); }
.a-pick input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; padding: 0; }
.a-pick-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.a-pick-txt::before { content: "+ "; color: var(--safelight); }
.a-pick.has-file { border-style: solid; border-color: rgba(240,166,64,.6); }
.a-pick.has-file .a-pick-txt { color: var(--text); }
.a-pick.has-file .a-pick-txt::before { content: "🗜 "; }
.a-pick-x { position: relative; z-index: 1; flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--text); cursor: pointer; line-height: 1; }
.a-pick-x:hover { background: #d9483b; }
.a-upload { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.a-upload .a-file { width: 260px; margin: 0; }
.a-upload > .c-btn { margin: 0; }
.a-upload > .c-small { flex: 1 1 100%; margin: 0; }

/* Client list: one shared grid, every column only as wide as its content */
.a-list { display: grid; grid-template-columns: repeat(13, auto); column-gap: 16px; margin-top: 8px; border-top: 0; }
.a-cols, .a-row, .a-line { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.a-cols { padding: 8px 0; border-bottom: 1px solid var(--line); font: 500 .64rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.a-cols .num, .a-num { text-align: center; }
.a-row { border-bottom: 1px solid var(--line); }
.a-line { padding: 8px 0; cursor: pointer; }
.a-more { grid-column: 1 / -1; padding: 0 0 14px 34px; }
.a-more > .c-small { margin: 0 0 8px; }
.a-toggle { width: 18px; height: 22px; padding: 0; border: 0; background: none; color: var(--safelight); font: 500 1rem var(--font-mono); cursor: pointer; }
.a-id { font: 500 .85rem var(--font-mono); color: var(--text); }
.a-date, .a-exp { font-size: .84rem; color: var(--text); white-space: nowrap; }
.a-none { color: var(--muted); }
.a-name { line-height: 1.3; max-width: 190px; }
.a-name .a-stat { white-space: nowrap; }
.a-name strong { font-size: .92rem; }
.a-name .a-code { margin-left: 6px; font-size: .78rem; }
.a-name .a-stat { display: block; margin: 1px 0 0; font-size: .74rem; color: var(--muted); }
.a-num { font: 500 .9rem var(--font-mono); color: var(--text); }
.a-row.is-deleted .a-name strong { color: #ff6b5e; }
.a-row.is-deleted .a-date, .a-row.is-deleted .a-exp, .a-row.is-deleted .a-id, .a-row.is-deleted .a-num { color: var(--muted); }

/* Password column */
.a-pw { display: flex; align-items: center; gap: 6px; cursor: default; }
.a-pw-in { width: 148px; min-width: 0; padding: 7px 8px !important; font-size: .8rem !important; }
.a-pw-in::placeholder { font-size: .74rem; }
.a-pw-in::placeholder { color: #6f685f; }
.a-pw-in:disabled { opacity: .35; }
.a-pw-save { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: #3a3631; color: #8b847a; cursor: not-allowed; transition: background .15s, color .15s, transform .15s; }
.a-pw-save svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.a-pw-save.is-ready { background: #d9483b; border-color: #a8352b; color: #fff; cursor: pointer; box-shadow: 0 0 0 3px rgba(217,72,59,.2); }
.a-pw-save.is-ready:hover { transform: scale(1.08); }
.a-pw-save.is-busy { opacity: .6; cursor: wait; }

/* Status */
.a-state { font-size: .84rem; font-weight: 600; white-space: nowrap; }
.st-active { color: #5fd38a; }
.st-expired { color: #ffd23f; }
.st-paused { color: #9fb7d8; }
.st-deleted { color: #ff6b5e; }

/* Row icons */
.a-actions { display: flex; gap: 2px; justify-content: flex-end; }
.a-ic { display: grid; justify-items: center; align-content: start; gap: 2px; width: 56px; padding: 6px 2px 4px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; text-decoration: none; font: inherit; }
.a-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a-ic svg .fill { fill: currentColor; stroke: none; }
.a-cap { font: 500 .6rem/1.12 var(--font-body); text-align: center; letter-spacing: .01em; }
.a-ic:hover:not(:disabled), .a-ic:focus-visible { border-color: var(--line); background: rgba(255,255,255,.04); color: var(--text); }
.a-ic.ic-del:hover:not(:disabled) { color: #ff6b5e; border-color: rgba(255,107,94,.45); }
.a-ic.ic-pause.is-paused { color: #9fb7d8; }
.a-ic.ic-dl.is-on, .a-ic.ic-dl.is-on:hover { color: #5fd38a; }
.a-ic.ic-dl.is-off, .a-ic.ic-dl.is-off:hover { color: #ff6b5e; }
.a-ic.ic-view:hover, .a-ic.ic-copy:hover { color: var(--safelight); }
.a-ic:disabled, .a-ic.is-disabled { opacity: .25; cursor: not-allowed; }

/* Delete warning */
.a-dialog { max-width: 460px; width: calc(100% - 32px); padding: 28px; border: 1px solid rgba(255,107,94,.55); border-radius: 16px; background: var(--paper); color: var(--text); text-align: center; }
.a-dialog::backdrop { background: rgba(0,0,0,.7); }
.a-warn { width: 56px; height: 56px; fill: rgba(255,210,63,.15); stroke: #ffd23f; stroke-width: 1.6; stroke-linejoin: round; }
.a-warn .mark { stroke-width: 2.2; stroke-linecap: round; fill: none; }
.a-dialog h2 { margin: 10px 0 12px; }
.a-dialog h2 em { color: #ff6b5e; }
.a-dialog p { margin: 0 0 10px; color: var(--text); }
.a-dialog .a-btns { justify-content: center; margin-top: 18px; }
.c-btn.danger-solid { background: #d9483b; border-color: #a8352b; color: #fff; box-shadow: 0 3px 0 #7d271f; }

/* Copied message */
.a-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 10px; background: #2a2723; border: 1px solid var(--line); color: var(--text); font-size: .88rem; box-shadow: 0 10px 30px rgba(0,0,0,.5); overflow-wrap: anywhere; }

/* Smaller laptops: password and icons move to a second line under each client */
@media (max-width: 1639px) {
  .a-list { grid-template-columns: repeat(10, auto); }
  .a-cols > :nth-child(n+11) { display: none; }
  .a-line { row-gap: 6px; }
  .a-curpw { grid-row: 2; grid-column: 3 / 5; }
  .a-curpw::before { content: "Current password: "; color: var(--muted); font: 400 .78rem var(--font-body); }
  .a-pw { grid-row: 2; grid-column: 5 / 7; }
  .a-actions { grid-row: 2; grid-column: 7 / -1; justify-content: flex-end; }
}
/* Phones and narrow windows: one stacked card per client */
@media (max-width: 860px) {
  .is-admin .c-main { width: auto; min-width: 0; }
  .a-list, .a-row { display: block; }
  .a-cols { display: none; }
  .a-line { display: grid; grid-template-columns: 22px 36px minmax(0, 1fr) auto; row-gap: 6px; align-items: start; }
  .a-toggle { grid-row: 1; grid-column: 1; }
  .a-id { grid-row: 1; grid-column: 2; padding-top: 1px; }
  .a-name { grid-row: 1; grid-column: 3; white-space: normal; }
  .a-state { grid-row: 1; grid-column: 4; text-align: right; }
  .a-cat { grid-row: 2; grid-column: 3 / 5; }
  .a-date { grid-row: 3; grid-column: 3 / 5; }
  .a-exp { grid-row: 4; grid-column: 3 / 5; }
  .a-num { grid-column: 3 / 5; text-align: left; font: 400 .88rem var(--font-body); }
  .a-views { grid-row: 5; } .a-dls { grid-row: 6; } .a-devs { grid-row: 7; }
  .a-views::before { content: "Viewed "; color: var(--muted); }
  .a-dls::before { content: "ZIP downloads "; color: var(--muted); }
  .a-devs::before { content: "Devices "; color: var(--muted); }
  .a-curpw { grid-row: 8; grid-column: 3 / 5; }
  .a-pw { grid-row: 9; grid-column: 3 / 5; }
  .a-actions { grid-row: 10; grid-column: 3 / 5; justify-content: flex-start; }
  .a-date::before { content: "Created "; color: var(--muted); }
  .a-exp.has-date::before { content: "Expires "; color: var(--muted); }
  .a-more { padding-left: 58px; }
  #create-form > label, #create-form > label.a-file { flex: 1 1 100%; }
  #create-form > .c-btn { width: 100%; }
}
@media (max-width: 420px) { .a-ic { width: 54px; } .a-actions { gap: 0; } }
.paused-card p a { white-space: nowrap; }
.paused-card .c-btn { width: auto; margin-top: 20px; }
.admin-preview { margin-top: 0; }
.a-toast.is-bad { border-color: rgba(255,107,94,.6); color: #ffb4a6; }
#create-form > label input, #create-form > label .a-pick { margin-top: 4px; }

/* Dropdowns (category) */
select { appearance: none; -webkit-appearance: none; padding-right: 34px !important; cursor: pointer; color-scheme: dark;
  background-image: linear-gradient(45deg, transparent 50%, var(--safelight) 50%), linear-gradient(135deg, var(--safelight) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
select:invalid, select option[value=""] { color: var(--muted); }
select option { color: var(--text); background: var(--paper); }
.is-admin select { padding: 8px 10px; font-size: .88rem; border-radius: 7px; }
#create-form select { height: 35px; margin-top: 4px; }
.a-cat-in { width: auto; padding: 5px 24px 5px 7px !important; font-size: .78rem !important; background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50% !important; }
.a-cat { cursor: default; }
.a-row.is-deleted .a-cat-in { opacity: .45; }

/* Current password column */
.a-curpw { font: 500 .84rem var(--font-mono); color: var(--text); white-space: nowrap; cursor: text; user-select: all; }
.a-curpw.is-none { font: 400 .76rem var(--font-body); color: var(--muted); cursor: help; user-select: none; }
.a-row.is-deleted .a-curpw { color: var(--muted); }

/* Column titles: shaded band with thin dividers between titles */
.a-cols { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 8px; padding: 9px 0; margin-bottom: 2px;
  font: 600 .64rem var(--font-body); letter-spacing: .07em; color: #b6ad9f; }
.a-cols > span { position: relative; line-height: 1.25; }
.a-cols > span:nth-child(n+3):not(:last-child)::before { content: ""; position: absolute; left: -9px; top: -3px; bottom: -3px; border-left: 1px solid #3d3933; }
.a-line:hover { background: rgba(255,255,255,.025); }

/* Admin cards: background 15% lighter than the page cards */
.is-admin .a-card, .is-admin .a-share { background: #3c3b3a; }
.is-admin .a-row { border-bottom-color: #4a4744; }
.is-admin .a-cols { background: rgba(0,0,0,.18); border-color: #4a4744; }

/* Show / hide password (client login) */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-eye { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 46px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 0 8px 8px 0; background: transparent !important; -webkit-tap-highlight-color: transparent; outline: none; color: var(--muted); cursor: pointer; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--safelight); }
.pw-eye svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-eye .eye-shut, .pw-eye[aria-pressed="true"] .eye-open { display: none; }
.pw-eye[aria-pressed="true"] .eye-shut { display: block; }

/* Photo viewer: black, edge to edge, uses the whole visible screen */
.lb button { -webkit-tap-highlight-color: transparent; }
.lb { background: #000; height: 100vh; height: 100dvh; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.lb:fullscreen { width: 100vw; height: 100vh; }
.lb img { max-height: calc(100dvh - 90px); }
@media (max-width: 760px), (max-height: 500px) {
  .lb { grid-template-columns: 1fr; }
  .lb figure { grid-column: 1; grid-row: 1; width: 100%; height: 100%; place-content: center; }
  .lb img { width: auto; height: auto; max-width: 100vw; max-height: 100dvh; }
  .lb figure { justify-items: center; align-content: center; }
  .lb figcaption { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 16px; text-shadow: 0 1px 3px #000; }
  .lb-prev, .lb-next { position: absolute; top: 0; bottom: 0; width: 22%; z-index: 1; font-size: 0 !important; }
  .lb-prev { left: 0; } .lb-next { right: 0; }
  .lb-close { top: calc(2px + env(safe-area-inset-top)); right: 10px; z-index: 3; font-size: 2.2rem !important; text-shadow: 0 1px 4px #000; }
  .lb-dl { z-index: 3; bottom: calc(14px + env(safe-area-inset-bottom)); padding: 6px 12px; border-radius: 99px; background: rgba(0,0,0,.55); }
}

.lb img { cursor: zoom-out; }

/* ---------- Customer database (admin) ---------- */
.a-head-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.a-export { display: inline-flex; align-items: center; gap: 8px; }
.a-export svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.a-create { max-width: 1100px; }
.a-new .a-returning { margin: 6px 0 4px; max-width: 620px; }
.a-new .a-returning input { border-style: dashed; }
.a-ret-note { margin: 8px 0 0; }
.a-ret-note strong { color: var(--safelight); }
.a-new.is-returning .a-returning input { border-color: rgba(240,166,64,.6); }
.a-linkbtn { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--safelight); font: inherit; text-decoration: underline; cursor: pointer; }
.a-fs { border: 1px solid #4a4744; border-radius: 10px; padding: 6px 16px 14px; margin: 14px 0 0; min-width: 0; }
.a-fs legend { padding: 0 8px; font: 500 .7rem var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--safelight); }
.a-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 14px; align-items: end; }
.a-grid label { margin: 0; }
.a-span2 { grid-column: span 2; }
@media (max-width: 520px) { .a-span2 { grid-column: auto; } }
.a-req { color: var(--safelight); }
.a-money { position: relative; display: block; }
.a-money::before { content: "$"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .88rem; pointer-events: none; }
.a-money input { padding-left: 22px !important; }
.a-picks { display: flex; align-items: center; gap: 10px; }
.a-picks .a-pick { flex: 1; min-width: 0; height: 35px; }
.a-or { color: var(--muted); font-size: .8rem; }
.a-new > .a-btns { align-items: center; margin-top: 16px; }
.a-new > .a-btns .c-small { margin: 0; }
.a-hint { font-family: var(--font-body); font-size: .78rem; color: var(--muted); margin-left: 10px; font-weight: 400; }
.a-cust { color: var(--text); font-weight: 600; font-size: .92rem; text-decoration: none; border-bottom: 1px dotted rgba(240,166,64,.6); }
.a-cust:hover, .a-cust:focus-visible { color: var(--safelight); border-bottom-style: solid; }
.a-cust.no-cust { border-bottom-color: #6f685f; }
.a-row.is-deleted .a-cust { color: #ff6b5e; }

/* Floating customer panel */
.a-panel { width: min(820px, calc(100% - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid #4a4744; border-radius: 16px; background: #2b2a28; color: var(--text); box-shadow: 0 40px 80px -20px rgba(0,0,0,.9); }
.a-panel::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(2px); }
.cp-wrap { position: relative; padding: 26px clamp(18px, 3vw, 30px) 24px; }
.cp-x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: 1px solid #4a4744; border-radius: 50%; background: transparent; color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.cp-x:hover { border-color: var(--safelight); color: var(--safelight); }
.a-panel .c-label { margin-bottom: 6px; }
.a-panel h2 { font-size: 1.7rem; margin: 0 40px 16px 0; }
.a-panel h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.cp-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 20px; margin: 0; padding: 14px 16px; border: 1px solid #4a4744; border-radius: 10px; background: rgba(0,0,0,.15); }
.cp-info dt { font: 500 .66rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.cp-info dd { margin: 0; font-size: .92rem; overflow-wrap: anywhere; }
.cp-info a { color: var(--text); }
.cp-info a:hover { color: var(--safelight); }
.cp-empty { color: var(--muted); margin: 0; }
.cp-table { overflow-x: auto; border: 1px solid #4a4744; border-radius: 10px; }
.cp-table table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.cp-table th { text-align: left; font: 500 .64rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 9px 12px; background: rgba(0,0,0,.18); white-space: nowrap; }
.cp-table td { padding: 9px 12px; border-top: 1px solid #4a4744; white-space: nowrap; }
.cp-table .num { text-align: right; }
.cp-table tr.is-this td { background: rgba(240,166,64,.07); }
.cp-table tfoot td { font-weight: 600; background: rgba(0,0,0,.12); }
.cp-table .muted { color: var(--muted); }
.a-panel .a-btns { margin-top: 20px; }
.cp-form .a-fs { margin-top: 12px; }
.cp-who { max-width: 380px; margin: 0 0 4px !important; }
.cp-sess { display: grid; gap: 10px; }
.cp-srow { display: grid; grid-template-columns: minmax(200px, 1.3fr) 1.4fr .8fr; gap: 6px 12px; align-items: end; padding-top: 8px; border-top: 1px solid #4a4744; }
.cp-srow:first-child { border-top: 0; padding-top: 0; }
.cp-sinfo { font-size: .84rem; color: var(--muted); padding-bottom: 9px; }
.cp-sinfo strong { color: var(--text); font-weight: 600; }
.cp-srow label { margin: 0; }
@media (max-width: 640px) { .cp-srow { grid-template-columns: 1fr 1fr; } .cp-sinfo { grid-column: 1 / -1; padding: 0; } }
/* New-customer form: Customer across the top, Session and Gallery side by side */
#create-form.a-new { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: stretch; margin-top: 6px; }
#create-form.a-new > .a-returning, #create-form.a-new > .a-fs:first-of-type, #create-form.a-new > .a-btns, #create-form.a-new > .a-progress { grid-column: 1 / -1; }
#create-form.a-new .a-grid label input, #create-form.a-new .a-grid label select, #create-form.a-new .a-returning input { margin-top: 4px; }
#create-form.a-new .a-grid label .a-money input { margin-top: 0; }
#create-form.a-new .a-grid label .a-money { margin-top: 4px; }
#create-form.a-new .a-picks { margin-top: 4px; }
#create-form.a-new > .a-btns .c-btn { height: auto; }
@media (max-width: 860px) { #create-form.a-new { grid-template-columns: 1fr; } }
/* Past customers (old website) */
.a-past > .c-small { margin: 4px 0 10px; }
.a-past-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 10px; }
.a-past-tools input[type="search"] { max-width: 320px; }
.a-check { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; color: var(--text) !important; font-size: .84rem !important; cursor: pointer; }
.a-check input { width: auto; height: auto; }
.a-past-table { max-height: 560px; overflow: auto; }
.a-past-table thead th { position: sticky; top: 0; background: #2f2e2c; z-index: 1; }
.a-past-table .mono { font-family: var(--font-mono); color: var(--muted); }
.a-past-table .a-cust { font-size: .88rem; }
.a-done { color: #5fd38a; }
.a-done .muted { color: var(--muted); }

/* ---------- Website photos (site.php) ---------- */
.s-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.s-tabs button { font: 500 .88rem var(--font-body); color: var(--muted); background: transparent; border: 1px solid #4a4744; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.s-tabs button:hover { color: var(--text); border-color: var(--muted); }
.s-tabs button[aria-selected="true"] { background: var(--safelight); color: #1d1b19; border-color: var(--safelight); }   /* active tab: amber, like the website */
.is-site .c-main { width: min(1240px, 100%); }
.s-group { font-size: 1.15rem; margin: 26px 0 -4px; color: var(--muted); font-weight: 400; }
.s-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.s-size { margin: 0; font-size: .86rem; color: var(--text); }
.s-size strong { color: var(--safelight); font-weight: 600; }
.s-tip { margin: 4px 0 12px; }
.s-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.s-add label { margin: 0; min-width: 180px; }
.s-add label.s-grow { flex: 1 1 260px; }
.s-add select, .s-add input { margin-top: 4px; height: 35px; padding-top: 0; padding-bottom: 0; }
.s-add .c-btn { height: 35px; }
.s-pick { min-width: 200px; height: 35px; }
.s-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.s-grid.is-videos { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.s-grid.is-logo { grid-template-columns: minmax(0, 360px); }
.s-item { display: flex; flex-direction: column; gap: 6px; background: rgba(0,0,0,.18); border: 1px solid #4a4744; border-radius: 10px; padding: 8px; }
.s-item[draggable="true"] { cursor: grab; }
.s-item.is-drag { opacity: .45; border-style: dashed; border-color: var(--safelight); }
.s-img { position: relative; height: 130px; border-radius: 6px; overflow: hidden; background: #1c1b1a; }
.s-img.is-video { height: 140px; }
.s-img img, .s-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-grid.is-logo .s-img { height: 110px; background: #121110; }
.s-grid.is-logo .s-img img { object-fit: contain; padding: 10px; }
.s-drag { position: absolute; left: 6px; top: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; letter-spacing: -2px; }
.s-num { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font: 500 .72rem var(--font-mono); }
.s-del { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 1.05rem; line-height: 1; cursor: pointer; }
.s-del:hover { background: #d9483b; }
.s-item input, .s-item select { height: 32px; padding: 0 8px !important; font-size: .8rem !important; }
.s-poslbl { display: flex !important; align-items: center; gap: 6px; margin: 0 !important; font-size: .76rem !important; }
.s-poslbl select { flex: 1; }
.s-src { margin: 0; font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-src a { color: var(--muted); }
.s-poster { display: flex; align-items: center; gap: 8px; }
.s-poster .a-pick { flex: 1; height: 32px; font-size: .78rem; }
.s-empty { grid-column: 1 / -1; color: var(--muted); }

/* ---------- Customers' galleries: one list with the old-website sessions ---------- */
.a-row[hidden] { display: none !important; }
.a-old { display: inline-block; padding: 1px 6px; margin-right: 4px; border: 1px solid #5c5650; border-radius: 4px; font: 500 .6rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); vertical-align: 1px; }
.a-row.is-past .a-old-dot { width: 22px; }
.a-row.is-past .a-cat-txt { font-size: .86rem; color: var(--text); }
.a-row.is-past .a-na { color: #6f685f; }
.a-row.is-past .a-stat .a-done { color: #5fd38a; }
.a-all > .c-small { margin: 4px 0 10px; }
.a-all-none { margin-top: 12px; }
@media (max-width: 860px) { .a-row.is-past .a-na { display: none; } }

/* ---------- Expiration date: editable in the customer panel ---------- */
.cp-srow { grid-template-columns: minmax(180px, 1.2fr) 1.3fr .8fr .9fr; }
.cp-sexp small, .cp-sexp-ro small { display: block; margin-top: 3px; font-size: .7rem; color: var(--muted); }
.cp-sexp-ro { font-size: .86rem; padding-bottom: 9px; }
.cp-sexp-ro .c-label { display: block; margin-bottom: 4px; }
@media (max-width: 640px) { .cp-srow { grid-template-columns: 1fr 1fr; } }
.a-exp-edit { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; border-bottom: 1px dotted #6f685f; }
.a-exp-edit:hover, .a-exp-edit:focus-visible { color: var(--safelight); border-bottom-color: var(--safelight); }

/* ---------- Customer fields: names / contact / address, each on one line ---------- */
.a-grid.a-grid-cust { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.a-grid-cust > label { grid-column: span 4; }
.a-grid-cust > label:has(input[name="street"]) { grid-column: span 5; }
.a-grid-cust > label:has(input[name="city"]) { grid-column: span 3; }
.a-grid-cust > label:has(input[name="state"]), .a-grid-cust > label:has(input[name="zip"]) { grid-column: span 2; }
@media (max-width: 640px) {
  .a-grid.a-grid-cust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-grid-cust > label, .a-grid-cust > label:has(input[name="city"]) { grid-column: span 1; }
  .a-grid-cust > label:has(input[name="street"]) { grid-column: 1 / -1; }
  .a-grid-cust > label:has(input[name="state"]), .a-grid-cust > label:has(input[name="zip"]) { grid-column: span 1; }
}
/* "Create a new customer" sits in the middle of the page */
.a-create { margin-inline: auto; }

/* ---------- Change admin password: header button (between Website photos and Download database) + its own pop-up ---------- */
.a-adminpw-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.a-adminpw-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--safelight); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-pwdlg { width: min(460px, calc(100% - 24px)); }
.a-pwdlg h2 { margin: 6px 0 8px; }
.a-pwform { display: grid; gap: 12px; margin-top: 12px; }
.a-pwform label { margin: 0; }
.a-pwform input { margin-top: 4px; }
.a-pwform small { display: block; margin-top: 4px; font-size: .74rem; color: var(--muted); }
.a-pwform .a-btns { margin-top: 6px; }
.a-pwdlg .c-error { margin: 10px 0 0; }

/* ---------- Website photos: seconds per photo for each carousel ---------- */
.s-secs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 14px; padding: 10px 14px; border: 1px solid #5a554f; border-radius: 8px; background: rgba(0,0,0,.18); }
.s-secs label { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; }
.s-secs input { width: 96px; margin: 0; text-align: right; }
.s-secs-hint { color: var(--muted); margin: 0; }

/* ---------- Website text (text.php) ---------- */
.t-help p { margin: 0 0 8px; }
.t-help code { padding: 1px 5px; border-radius: 4px; background: rgba(0,0,0,.35); font-size: .85em; }
.t-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; }
.t-tools input[type=search] { width: min(360px, 100%); margin: 0; }
.s-tabs.is-search button { opacity: .45; }
.t-page[hidden], .t-group[hidden], .t-field[hidden] { display: none !important; }
.t-group h2 { margin-bottom: 6px; }
.t-field { padding: 12px 0; border-top: 1px solid #3f3c39; }
.t-field:first-of-type { border-top: 0; }
.t-field label { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.t-label { font-weight: 500; }
.t-badge { display: none; padding: 1px 7px; border-radius: 999px; background: rgba(240,166,64,.16); color: var(--safelight); font: 500 .66rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.t-field.is-changed .t-badge { display: inline-block; }
.t-field textarea { width: 100%; margin: 0; resize: vertical; line-height: 1.5; font: 400 .95rem var(--font-body); min-height: 40px; }
.t-field textarea[data-kind="line"], .t-field textarea[data-kind="plain"], .t-field textarea[data-kind="phone"], .t-field textarea[data-kind="email"], .t-field textarea[data-kind="rating"] { resize: none; overflow: hidden; white-space: nowrap; }
.t-field.is-changed textarea { border-color: rgba(240,166,64,.55); }
.t-field.is-saving textarea { opacity: .6; }
.t-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; }
.t-foot:empty { display: none; }
.t-note { color: var(--muted); }
.t-orig { color: var(--muted); font-style: italic; }
.t-reset { padding: 0; border: 0; background: none; color: var(--safelight); font: 500 .8rem var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.t-none { margin-top: 18px; }
.t-pagename { display: none; margin: 22px 0 8px; font-size: 1.05rem; color: var(--safelight); }
#t-pages.is-search .t-pagename { display: block; }
/* added reviews */
.t-revbox h2 { margin-bottom: 2px; }
.t-revbox[hidden] { display: none; }
.t-revtitle { margin: 0 0 2px; font-size: 1.05rem; }
.t-revhint { margin: 0 0 12px; color: var(--muted); }
.t-rev { margin: 0 0 14px; padding: 14px 16px; border: 1px solid #5a554f; border-radius: 10px; background: rgba(0,0,0,.18); }
.t-rev h4 { margin: 0 0 10px; font: 500 .72rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--safelight); }
.t-rl { display: block; margin: 0 0 10px; }
.t-rl textarea, .t-rl input, .t-rl select { width: 100%; margin-top: 4px; }
.t-rrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 130px; gap: 12px; }
@media (max-width: 700px) { .t-rrow { grid-template-columns: 1fr; } }
.t-rev .a-btns { margin-top: 4px; }
.t-addrev { letter-spacing: .06em; }
/* Services lists: delete / restore / add */
.t-del, .t-restore { padding: 0; border: 0; background: none; font: 500 .8rem var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.t-del { color: #ff8a7a; margin-left: auto; }
.t-restore { color: var(--safelight); margin-left: auto; }
.t-field.is-item .t-restore, .t-field.is-item .t-hidnote { display: none; }
.t-field.is-hidden .t-del { display: none; }
.t-field.is-hidden .t-restore, .t-field.is-hidden .t-hidnote { display: inline; }
.t-field.is-hidden .t-hidnote { color: #ff8a7a; }
.t-field.is-hidden textarea { opacity: .45; text-decoration: line-through; }
.t-list[hidden], .t-listnew[hidden], .t-addli[hidden] { display: none !important; }
.t-list { padding-top: 6px; }
.t-badge-new { display: inline-block; }
.t-addli { margin-top: 10px; letter-spacing: .06em; }
.t-listnew .a-btns { margin-top: 8px; }

/* ---------- Website page (website.php): words on the left, photos on the right ---------- */
.is-web .c-main { width: min(1560px, 100%); }
.w-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 28px; }
@media (min-width: 1180px) {
  .w-sec.has-both .w-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
}
.w-colhead { margin: 0 0 8px; font: 500 .7rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.w-photos .s-area { margin: 0 0 14px; padding: 14px 16px; background: rgba(0,0,0,.16); border: 1px solid #4d4945; box-shadow: none; }
.w-photos .s-area:last-child { margin-bottom: 0; }
.w-photos .s-area h2 { font-size: 1.05rem; }
.w-sec.has-both .w-text { min-width: 0; }
.w-sec.has-both .w-photos .s-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.w-sec.is-filtering .w-photos { display: none; }
.w-sec.is-filtering.has-both .w-cols { grid-template-columns: minmax(0, 1fr); }
.t-field textarea::placeholder { font-style: italic; color: #8f877c; opacity: 1; }
.login-card > p.login-intro { text-align: center; text-wrap: balance; }
.login-card h1 { text-align: center; }

/* ---------- Photos: "Hide it" or "Delete it", and the hidden photos under each area ---------- */
.s-choose { width: min(520px, calc(100% - 24px)); }
.s-choose h2 { margin: 0 0 12px; padding-right: 30px; font-size: 1.25rem; }
.s-chimg { display: block; width: 100%; max-height: 200px; object-fit: contain; margin: 0 0 14px; border-radius: 8px; background: #0e0d0c; }
.s-chopts { display: grid; gap: 10px; margin-bottom: 14px; }
.s-chopt { display: grid; gap: 4px; width: 100%; padding: 14px 16px; text-align: left; border-radius: 10px; border: 1px solid #5a554f; background: rgba(0,0,0,.2); color: var(--text); font: inherit; cursor: pointer; }
.s-chopt strong { font-size: 1rem; }
.s-chopt span { font-size: .84rem; color: var(--muted); }
.s-chopt.is-hide:hover, .s-chopt.is-hide:focus-visible { border-color: var(--safelight); }
.s-chopt.is-hide strong { color: var(--safelight); }
.s-chopt.is-del strong { color: #ff8a7a; }
.s-chopt.is-del:hover, .s-chopt.is-del:focus-visible { border-color: #ff8a7a; }
.s-hidden { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #5a554f; }
.s-hidden h3 { margin: 0 0 10px; font-size: .95rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.s-hidden h3 .c-small { font-weight: 400; color: var(--muted); }
.s-hgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.s-hitem { display: grid; gap: 6px; }
.s-himg { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #0e0d0c; display: grid; place-items: center; }
.s-himg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: grayscale(.6); }
.s-hname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.s-hbtns { display: flex; align-items: center; gap: 10px; }
.s-hbtns .c-btn { padding: 6px 12px; font-size: .8rem; }
.s-purge { padding: 0; border: 0; background: none; color: #ff8a7a; font: 500 .8rem var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Photos: move earlier / later buttons; top carousel order choice ---------- */
.s-move { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; }
.s-mv { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.s-mv:hover:not(:disabled), .s-mv:focus-visible { background: var(--safelight); color: #1d1b19; }
.s-mv:disabled { opacity: .3; cursor: default; }
.s-mode { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 14px; margin-left: auto; white-space: nowrap; }
.s-mode > .c-small { margin: 0; font-size: .85rem; line-height: 1; }
@media (max-width: 600px) { .s-mode { flex-wrap: wrap; white-space: normal; margin-left: 0; gap: 8px 14px; } .s-mode > .c-small { flex-basis: 100%; } }
.s-mode label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .85rem; cursor: pointer; }
.s-mode input { width: auto; margin: 0; accent-color: var(--safelight); }

/* ---------- Photos at half size; click one to see it larger ---------- */
.s-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.w-sec.has-both .w-photos .s-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.s-grid.is-videos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.s-grid.is-logo { grid-template-columns: minmax(0, 180px); }
.s-item { padding: 5px; gap: 4px; border-radius: 8px; }
.s-img { height: 65px; border-radius: 5px; }
.s-img.is-video { height: 70px; }
.s-grid.is-logo .s-img { height: 55px; }
.s-grid.is-logo .s-img img { padding: 6px; }
.s-drag { left: 3px; top: 3px; padding: 0 4px; font-size: .62rem; }
.s-num { left: 3px; bottom: 3px; padding: 0 5px; font-size: .6rem; }
.s-del { right: 3px; top: 3px; width: 20px; height: 20px; font-size: .85rem; }
.s-move { right: 3px; bottom: 3px; gap: 2px; }
.s-mv { width: 20px; height: 20px; font-size: .85rem; border-radius: 4px; }
.s-item input, .s-item select { height: 26px; padding: 0 5px !important; font-size: .7rem !important; }
.s-poslbl { gap: 4px; font-size: .66rem !important; }
.s-src { font-size: .64rem; }
.s-poster .a-pick { height: 26px; font-size: .66rem; }
.s-hgrid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.s-himg { aspect-ratio: auto; height: 52px; }
.s-hbtns { flex-wrap: wrap; gap: 4px 8px; }
.s-hbtns .c-btn { padding: 4px 8px; font-size: .7rem; }
.s-purge { font-size: .7rem; }
img.s-zoom { cursor: zoom-in; }
.s-float { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(8,8,7,.78); cursor: zoom-out; animation: s-float-in .15s ease-out; }
.s-float img { max-width: min(92vw, 1400px); max-height: 88vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 18px 60px rgba(0,0,0,.6); background: #0e0d0c; }
@keyframes s-float-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .s-float { animation: none; } }
.s-item .s-copy { color: var(--muted); }
.s-item .s-copy:focus, .s-item .s-copy:hover { color: var(--text); }
.s-secs.is-mode-only .s-mode { margin-left: 0; }
/* amber divider between "Contact Us" and "Gallery pages" (home page tabs | other pages) */
.s-tabs button[data-tab="gallery-pages"] { position: relative; margin-left: 15px; }
.s-tabs button[data-tab="gallery-pages"]::before { content: ""; position: absolute; left: -12px; top: 5px; bottom: 5px; width: 3px; border-radius: 2px; background: var(--safelight); pointer-events: none; }
.s-chtext { margin: 0 0 14px; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.s-chopt.is-skip strong { color: var(--text); }
.s-chopt.is-skip:hover, .s-chopt.is-skip:focus-visible { border-color: var(--text); }

/* ---------- Gallery pages: one gallery at a time ---------- */
.s-subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #4a4744; }
.s-subtabs button { font: 500 .85rem var(--font-body); color: var(--muted); background: transparent; border: 1px solid #4a4744; border-radius: 8px; padding: 7px 14px; cursor: pointer; }
.s-subtabs button:hover { color: var(--text); border-color: var(--muted); }
.s-subtabs button[aria-selected="true"] { color: #1d1b19; background: var(--safelight); border-color: var(--safelight); }
.s-subtabs button[aria-selected="true"] .a-count { color: #1d1b19; opacity: .75; }
.w-slot[hidden] { display: none !important; }

/* ---------- Photos grouped by section ---------- */
.s-secs-list { display: grid; gap: 8px; margin-top: 12px; }
.s-sec { border: 1px solid #4a4744; border-radius: 10px; background: rgba(0,0,0,.12); }
.s-sechead { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 8px 10px; }
.s-fold { display: inline-flex; align-items: center; gap: 8px; padding: 2px 4px; border: 0; background: none; color: var(--text); font: 600 .92rem var(--font-body); cursor: pointer; }
.s-fold .a-count { font-weight: 400; }
.s-arrow { display: inline-block; width: 12px; color: var(--safelight); transition: transform .15s; }
.s-sec.is-folded .s-arrow { transform: rotate(-90deg); }
.s-sec.is-folded > .s-grid { display: none; }
.s-sec.is-empty .s-fold { color: var(--muted); }
.s-secpick { margin-left: auto; }
.s-secpick.a-pick { height: 30px; padding: 0 12px; font-size: .78rem; }
.s-sec > .s-grid { margin: 0; padding: 0 10px 10px; }
.s-selsec { display: none; font-size: .78rem; }
.is-selecting .s-selsec { display: inline; }

/* ---------- Select several ---------- */
.s-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 10px 0 0; }
.s-tools .c-btn { padding: 6px 14px; font-size: .8rem; }
.s-selmode[aria-pressed="true"] { background: var(--safelight); color: #1d1b19; border-color: var(--safelight); }
.s-selhint { margin: 0; }
.s-check { display: none; position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.35); color: transparent; font: 700 .9rem/22px var(--font-body); text-align: center; pointer-events: none; }
.is-selecting .s-check { display: block; }
.is-selecting .s-item { cursor: pointer; }
.is-selecting .s-drag, .is-selecting .s-move, .is-selecting .s-del { display: none; }
.is-selecting img.s-zoom { cursor: pointer; }
.s-item.is-sel { border-color: var(--safelight); box-shadow: 0 0 0 2px var(--safelight); }
.s-item.is-sel .s-check { background: var(--safelight); border-color: var(--safelight); color: #1d1b19; }
.s-bulk { position: sticky; bottom: 10px; z-index: 5; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; padding: 10px 14px; border: 1px solid var(--safelight); border-radius: 10px; background: #2a2725; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.s-bulk[hidden] { display: none; }
.s-bulk .s-bn { font-size: .9rem; color: var(--safelight); }
.s-bulk .a-linkbtn { font-size: .8rem; }
.s-bsep { flex: 1; }
.s-bulk select { width: auto; height: 32px; padding: 0 8px !important; font-size: .8rem !important; }
.s-bulk .c-btn { padding: 6px 14px; font-size: .8rem; }
.s-bulk.is-none select, .s-bulk.is-none .s-bhide, .s-bulk.is-none .s-bdel { opacity: .45; pointer-events: none; }
.s-bdel { color: #ff8a7a; }
@media (max-width: 600px) { .s-bsep { display: none; } .s-bulk { bottom: 6px; } .s-secpick { margin-left: 0; } }
.s-bulk .s-bcopy, .s-bulk .s-bsub { max-width: 210px; }
@media (max-width: 600px) { .s-bulk { gap: 6px 10px; padding: 8px 10px; } .s-bulk select { flex: 1 1 40%; max-width: none !important; } .s-bulk .c-btn { padding: 5px 10px; } }



/* ---------- Website page: slim, organized text sections ----------
   Short texts sit side by side; paragraphs, addresses and pop-up texts use the full width.
   "Part" headings (Email, Studio, Inquiry form…) group the texts that belong together. */
.t-group.a-card { padding: 16px 20px 18px; margin-top: 14px; }
.t-group > h2 { margin: 0 0 10px; font-size: 1.15rem; }
.w-text { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 18px; align-items: start; }
.w-text > :not(.t-field) { grid-column: 1 / -1; }
.w-text > .t-field.is-wide { grid-column: 1 / -1; }
.w-text > .t-field { padding: 0; border-top: 0; min-width: 0; }
.w-text .t-field label { margin: 0 0 5px; gap: 8px; }
.w-text .t-label { font-size: .8rem; font-weight: 500; color: var(--muted); }
.w-text .t-field textarea { font-size: .9rem; padding: 8px 12px; }
.w-text .t-field:is(.is-line, .is-plain, .is-phone, .is-email, .is-rating) textarea { min-height: 0; height: 38px; }
.w-text .t-foot { margin-top: 4px; gap: 2px 12px; font-size: .76rem; }
.w-text .t-foot .c-small { font-size: .76rem; }
.w-text > .w-colhead { margin-bottom: 0; }
.t-sub { margin: 6px 0 -4px; padding-top: 10px; border-top: 1px solid #3f3c39; font: 500 .68rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--safelight); }
.w-text > .w-colhead + .t-sub, .w-text > .t-sub:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.w-sec.is-filtering .t-sub { display: none; }
/* short choices (Type of shoot list): no repeated label, a tighter grid */
.w-text > .t-field.is-plain { grid-column: auto; }
.w-text > .t-field.is-plain label .t-label { display: none; }
.w-text > .t-field.is-plain label { margin: 0; }
/* list items: the box with Delete / Restore right next to it */
.w-text > .t-field.is-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; }
.w-text > .t-field.is-item > label { grid-column: 1 / -1; margin: 0; }
.w-text > .t-field.is-item > label .t-label { display: none; }
.w-text > .t-field.is-item .t-foot { margin: 0; flex-wrap: nowrap; }
.w-text > .t-field.is-item .t-orig, .w-text > .t-field.is-item .t-note { display: none; }
.w-text > .t-field.is-item .t-hidnote { display: none !important; }
.w-text .t-list { margin-top: 0; }
/* Services cards and reviews: two per row */
.t-page.is-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; align-items: start; }
.t-page.is-tiles > * { grid-column: 1 / -1; }
.t-page.is-tiles > .w-tile { grid-column: auto; }
.t-page.is-tiles > .w-tile[hidden] { display: none; }
.w-tile .w-text { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
@media (max-width: 900px) { .t-page.is-tiles { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .t-group.a-card { padding: 14px; } .w-text { grid-template-columns: 1fr; } }
.t-subnote { margin: 0 !important; }
/* photo cards: "Add photos" and "Select photos" on one row, tighter spacing */
.s-area > .s-tip { margin: 4px 0 10px; }
.s-area:not([data-key="videos"]) > .s-add, .s-area > .s-tools { display: inline-flex; vertical-align: middle; margin: 0 14px 0 0; }
.s-area:not([data-key="videos"]) > .s-add { margin-top: 0; }
.s-area > .s-secs { margin-bottom: 10px; }
.w-tile .w-text { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
/* list items added in Admin: same compact look as the others */
.t-listadded { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 18px; }
.t-listadded:empty { display: none; }
.t-listadded .t-addedli { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; padding: 0; border-top: 0; }
.t-listadded .t-addedli > label { grid-column: 1 / -1; margin: 0 0 3px; }
.t-listadded .t-addedli .t-label { display: none; }
.t-listadded .t-addedli textarea, .t-listnew textarea { height: 38px; min-height: 0; padding: 8px 12px; font-size: .9rem; }
.t-listadded .t-addedli .t-foot { margin: 0; }
.t-list { display: grid; gap: 12px; }
.t-listnew .t-field { padding: 0; border-top: 0; }
.t-list { justify-items: start; } .t-list > .t-listadded, .t-list > .t-listnew { justify-self: stretch; }
/* ---------- Type of shoot list: order on the website ---------- */
.w-text > .t-order { grid-column: 1 / -1; padding: 10px 12px; border: 1px solid #4a4744; border-radius: 10px; background: rgba(0,0,0,.14); }
.t-ordhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 8px; }
.t-ordhead strong { font-size: .88rem; }
.t-ordhead .c-small { margin: 0; font-size: .76rem; }
.t-ordlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 10px; counter-reset: none; }
.t-ordlist li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 6px 5px 8px; border: 1px solid #4a4744; border-radius: 7px; background: #1d1b19; cursor: grab; font-size: .86rem; }
.t-ordlist li.is-drag { opacity: .45; border-style: dashed; border-color: var(--safelight); }
.t-ordgrip { color: var(--muted); letter-spacing: -2px; font-size: .8rem; }
.t-ordno { min-width: 18px; color: var(--safelight); font: 500 .72rem var(--font-mono); }
.t-ordname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-ordlist .t-badge { display: inline-block; }
.t-ordmv { flex: none; width: 24px; height: 24px; padding: 0; border: 1px solid #4a4744; border-radius: 5px; background: transparent; color: var(--text); font-size: .62rem; cursor: pointer; }
.t-ordmv:hover:not(:disabled), .t-ordmv:focus-visible { background: var(--safelight); border-color: var(--safelight); color: #1d1b19; }
.t-ordmv:disabled { opacity: .3; cursor: default; }
/* one Type of shoot list: the old separate boxes are hidden once it is built */
.has-shootlist .w-text > .t-field.is-plain.is-item, .has-shootlist .t-list[data-list="shoot-types"] { display: none !important; }
.w-text > .t-field[data-key="home.contact.choose-one"] label { margin: 0 0 5px; }
.w-text > .t-field[data-key="home.contact.choose-one"] label .t-label { display: inline; }
.t-ordlist { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.t-ordlist li { cursor: default; padding: 4px 6px; gap: 6px; }
.t-ordgrip { cursor: grab; padding: 4px 2px; }
.t-ordin { flex: 1; min-width: 0; height: 30px; margin: 0; padding: 0 8px !important; font-size: .86rem !important; border-color: transparent; background: transparent; }
.t-ordin:hover { border-color: #4a4744; }
.t-ordin:focus { border-color: var(--safelight); background: #141312; }
.t-orddel, .t-ordrestore { flex: none; padding: 0 2px; border: 0; background: none; font: 500 .76rem var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.t-orddel { color: #ff8a7a; }
.t-ordrestore { color: var(--safelight); }
.t-ordreset { flex: none; width: 24px; height: 24px; padding: 0; border: 1px solid #4a4744; border-radius: 5px; background: transparent; color: var(--safelight); cursor: pointer; }
.t-ordgone { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 10px 0 0; }
.t-ordgone[hidden] { display: none; }
.t-ordgone .c-small { margin: 0; }
.t-ordx { font-size: .84rem; color: var(--muted); }
.t-ordadd { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; }
.t-ordnew { flex: 1 1 260px; height: 38px; margin: 0; }
.t-ordadd .c-btn { height: 38px; }
.s-private .s-mode { flex-wrap: wrap; white-space: normal; }
.s-privnote { flex-basis: 100%; margin: 0; color: var(--safelight); font-size: .76rem; }
.s-pstyle { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 22px; align-items: center; }
.s-prange { display: flex !important; align-items: center; gap: 10px; margin: 0 !important; font-size: .85rem; }
.s-prange input[type="range"] { flex: 1; min-width: 0; height: auto; padding: 0 !important; accent-color: var(--safelight); border: 0; background: none; }
.s-prange output { min-width: 48px; text-align: right; font: 500 .8rem var(--font-mono); color: var(--safelight); }
.s-pnote { grid-column: 1 / -1; margin: 0; }
.s-psample { grid-column: 1 / -1; margin: 0; font-family: "Bodoni Moda", "Didot", "Times New Roman", serif; line-height: 1.3; color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- Portraits › Boudoir: private preview or classic gallery ---------- */
.s-privchoice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 10px 10px; padding: 10px 14px; border: 1px solid var(--safelight); border-radius: 10px; background: rgba(240,166,64,.07); font-size: .88rem; }
.s-privchoice strong { color: var(--safelight); font-weight: 600; }
.s-privchoice label { display: inline-flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; }
.s-privchoice input { width: auto; margin: 0; accent-color: var(--safelight); }
.s-privchoice .c-small { margin: 0; }
.s-sec.is-private > .s-grid, .s-sec.is-private > .s-sechead .s-secpick { display: none; }
.s-sec.is-classic > .s-privslot { display: none; }
.s-sec.is-folded > .s-privchoice, .s-sec.is-folded > .s-privslot { display: none; }
.s-privslot { padding: 0 10px 10px; }
.s-privslot > .t-group.is-inbox { margin: 0; padding: 14px 16px; border: 1px solid #4a4744; background: rgba(0,0,0,.14); box-shadow: none; }
.s-privslot > .t-group.is-inbox > h2 { font-size: 1.05rem; }
.s-privchoice label { font-size: .9rem !important; color: var(--text) !important; font-weight: 500 !important; }

/* ---------- Customer slideshow (assets/slideshow.js; settings in Admin › Slideshow) ---------- */
html.ss-open, html.ss-open body { overflow: hidden; }
.ss { position: fixed; inset: 0; z-index: 80; background: #000; color: #f4efe7; overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ss[hidden] { display: none; }
.ss-stage { position: absolute; inset: 0; }
.ss-slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--ss-fade, 1200ms) ease-in-out; }
.ss-slide.is-on { opacity: 1; }
.ss-kb { position: absolute; inset: 0; will-change: transform; }
.ss-bg { position: absolute; inset: -6%; background: center / cover no-repeat; filter: blur(34px) brightness(.42) saturate(1.1); }
.ss-kb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
/* Photo motion (zoom in or out, slide sideways or up and down): set per photo by assets/slideshow.js.
   It starts when the photo appears and keeps going while it fades out, so it never jumps. */
/* Controls: fade away while it plays, come back on mouse move or a tap */
.ss-top, .ss-ctrl, .ss-progress { transition: opacity .45s ease; }
.ss:not(.ui-on) .ss-top, .ss:not(.ui-on) .ss-ctrl { opacity: 0; pointer-events: none; }
.ss:not(.ui-on) { cursor: none; }
.ss-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.08); z-index: 3; }
.ss-progress span { display: block; height: 100%; width: 0; background: var(--safelight); transition: width .6s ease; }
.ss:not(.ui-on) .ss-progress { opacity: .55; }
.ss-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 30px calc(20px + env(safe-area-inset-left));
  background: linear-gradient(rgba(0,0,0,.55), transparent); }
.ss-title { font: italic 400 1.15rem var(--font-display); text-shadow: 0 1px 6px rgba(0,0,0,.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-ctrl { position: absolute; z-index: 3; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px;
  background: rgba(18,17,16,.62); border: 1px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 40px -12px rgba(0,0,0,.8); }
.ss-btn { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: #f4efe7; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s, color .2s; }
.ss-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ss-btn svg .fill { fill: currentColor; stroke: none; }
.ss-btn:hover { background: rgba(255,255,255,.1); color: var(--safelight); }
.ss-btn:focus-visible { outline: 2px solid var(--safelight); outline-offset: 1px; }
.ss-btn.is-big { width: 52px; height: 52px; background: var(--safelight); color: var(--ink); }
.ss-btn.is-big:hover { background: #ffb85a; color: var(--ink); }
.ss-btn.is-big svg { width: 24px; height: 24px; }
.ss-btn.is-off { color: var(--muted); }
.ss-btn[hidden] { display: none; }
.ss-count { min-width: 70px; padding: 0 8px; text-align: center; font: 500 .8rem var(--font-mono); color: #cfc7bb; font-variant-numeric: tabular-nums; }
.ss-close { background: rgba(0,0,0,.35); }
.ss-wait { position: absolute; z-index: 2; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--safelight); animation: ss-spin .9s linear infinite; }
.ss-wait[hidden] { display: none; }
@keyframes ss-spin { to { transform: rotate(360deg); } }
.ss-end { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.6); animation: ss-in .8s ease both; }
.ss-end[hidden] { display: none; }
@keyframes ss-in { from { opacity: 0; } }
.ss-end-box { text-align: center; display: grid; gap: 10px; justify-items: center; }
.ss-end-label { margin: 0; font: 500 .72rem var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--safelight); }
.ss-end-title { margin: 0 0 14px; font: italic 400 clamp(1.4rem, 3.4vw, 2.2rem) var(--font-display); }
.ss-end-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 560px) {
  .ss-ctrl { gap: 0; padding: 4px 6px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .ss-btn { width: 40px; height: 40px; }
  .ss-btn.is-big { width: 46px; height: 46px; }
  .ss-count { min-width: 58px; padding: 0 4px; font-size: .74rem; }
  .ss-title { font-size: 1rem; }
  .ss-end-btns .c-btn { width: 100%; }
}
/* the button that starts it, in the customer's gallery and in the photo viewer */
.c-btn .ss-ic, .lb-ss .ss-ic { width: 16px; height: 16px; fill: currentColor; flex: none; }
.c-btn.g-play { display: inline-flex; align-items: center; gap: 8px; }
.lb .lb-ss { position: absolute; top: 12px; left: 16px; z-index: 3; height: auto !important; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px !important; border-radius: 999px; font: 500 .85rem var(--font-body) !important; background: rgba(0,0,0,.5) !important; border: 1px solid rgba(255,255,255,.18) !important; }
@media (max-width: 600px) { .lb .lb-ss { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); left: 14px; } }

/* ---------- Admin › Slideshow ---------- */
.ss-intro { max-width: 80ch; margin: -6px 0 18px; }
.ss-admin { display: grid; gap: 18px; }
.ss-card h2 { margin-bottom: 14px; }
.ss-row { display: grid; grid-template-columns: 170px auto 1fr; align-items: center; gap: 10px 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.ss-row:first-of-type { border-top: 0; padding-top: 2px; }
.ss-lab { font: 500 .72rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ss-row .c-small { margin: 0; }
.ss-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ss-seg button { min-width: 40px; height: 38px; padding: 0 6px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--text); font: 500 .92rem var(--font-mono); cursor: pointer; transition: background .15s, color .15s; }
.ss-seg button:first-child { border-left: 0; }
.ss-seg button:hover { background: rgba(255,255,255,.06); }
.ss-seg button[aria-checked="true"] { background: var(--safelight); color: var(--ink); }
.ss-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.ss-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ss-switch span { position: relative; width: 46px; height: 26px; border-radius: 99px; background: #3a3631; transition: background .2s; flex: none; }
.ss-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #f4efe7; transition: transform .2s; }
.ss-switch input:checked + span { background: var(--safelight); }
.ss-switch input:checked + span::after { transform: translateX(20px); }
.ss-switch input:focus-visible + span { outline: 2px solid var(--safelight); outline-offset: 2px; }
.ss-switch b { font-weight: 500; min-width: 26px; }
.ss-vol { display: inline-flex; align-items: center; gap: 10px; }
.ss-vol input { width: 180px; accent-color: var(--safelight); }
.ss-vol output { font: 500 .85rem var(--font-mono); min-width: 40px; }
body.ss-music-off .ss-needs-music { opacity: .45; }
body.ss-music-off .ss-card.ss-needs-music::before { content: "Music is off: these settings are kept for when you turn it back on."; display: block; margin-bottom: 10px; font-size: .82rem; color: var(--safelight); }
.ss-up { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ss-up .a-progress { flex: 0 0 100%; }
.ss-rights { margin: 10px 0 4px; color: color-mix(in srgb, var(--safelight) 70%, var(--muted)); }
.ss-none { margin-top: 12px; }
.ss-tracks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.ss-track { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.ss-track.is-playing { border-color: var(--safelight); }
.ss-listen { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.ss-listen:hover { border-color: var(--safelight); color: var(--safelight); }
.ss-listen svg { width: 18px; height: 18px; fill: currentColor; }
.ss-listen .i-pause, .ss-track.is-playing .ss-listen .i-play { display: none; }
.ss-track.is-playing .ss-listen .i-pause { display: inline; }
.ss-track.is-playing .ss-listen { background: var(--safelight); color: var(--ink); border-color: var(--safelight); }
.ss-tinfo { display: grid; gap: 2px; min-width: 0; }
.ss-tname { width: 100%; max-width: 420px; padding: 4px 8px; margin-left: -8px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--text); font: 500 1rem var(--font-body); }
.ss-tname:hover { border-color: var(--line); }
.ss-tname:focus { outline: none; border-color: var(--safelight); background: rgba(255,255,255,.04); }
.ss-tinfo .c-small { margin: 0; }
.ss-tag { color: var(--safelight); }
.ss-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px 18px; margin-top: 12px; }
.ss-cat { display: grid; gap: 5px; }
.ss-cat span { font: 500 .72rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ss-prevrow { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ss-prevrow label { display: grid; gap: 5px; font: 500 .72rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .ss-row { grid-template-columns: 1fr; gap: 8px; }
  .ss-track { grid-template-columns: auto 1fr; }
  .ss-track .ss-del { grid-column: 1 / -1; justify-self: start; }
}
/* Admin › Customers & galleries: the song of one customer's slideshow */
.a-song { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 12px; }
.a-song label { display: inline-flex; align-items: center; gap: 10px; font: 500 .72rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.a-song select { width: auto; min-width: 240px; }
.a-song .c-small { margin: 0; }
.ss-admin .a-card { margin-top: 0; }

/* ---------- Customers' galleries: password box (15 characters), hidden passwords, Email icon ---------- */
.a-pw-in { width: calc(15ch + 22px); font-family: var(--font-mono) !important; }
.a-pw-in::placeholder { font-family: var(--font-body); }
.a-pwdots { display: none; letter-spacing: .08em; color: var(--muted); }
.pw-hidden .a-curpw:not(.is-peek) .a-pwtxt { display: none; }
.pw-hidden .a-curpw:not(.is-peek) .a-pwdots { display: inline; }
.pw-hidden .a-curpw:not(.is-none) { cursor: pointer; user-select: none; }
.pw-hidden .a-curpw.is-peek { color: var(--safelight); }
.a-pweye { display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; padding: 0; border: 1px solid transparent; border-radius: 8px; background: none; color: #5f5952; cursor: pointer; }
.a-pweye:hover, .a-pweye:focus-visible { color: var(--text); border-color: var(--line); }
.a-pweye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-pweye[aria-pressed="false"] .eye-open, .a-pweye[aria-pressed="true"] .eye-shut { display: none; }
.a-ic.ic-mail:hover:not(:disabled) { color: var(--safelight); }
.a-maildlg { width: min(640px, calc(100% - 24px)); }
.a-mailform { display: grid; gap: 12px; }
.a-mailform h2 { margin-bottom: 4px !important; }
.a-mailform label { display: grid; gap: 5px; font: 500 .68rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.a-mailform input, .a-mailform textarea { font: 400 .92rem var(--font-body); text-transform: none; letter-spacing: 0; }
.a-mailform textarea { line-height: 1.5; resize: vertical; min-height: 260px; }
.a-mailform .c-small { margin: 0; }
.a-mailwarn { padding: 9px 12px; border: 1px solid rgba(240,166,64,.45); border-radius: 9px; color: var(--safelight) !important; }
.a-mailbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.a-share [data-mail] { margin-left: 8px; }
.ss-seg-words button { min-width: 0; padding: 0 12px; font: 500 .82rem var(--font-body); }
body.ss-motion-off .ss-needs-motion { opacity: .45; pointer-events: none; }

/* ---------- Admin › Email settings ---------- */
.em-card h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.em-state { font: 500 .72rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; border: 1px solid; }
.em-state.is-ok { color: #5fd38a; border-color: rgba(95,211,138,.45); }
.em-state.is-no { color: var(--safelight); border-color: rgba(240,166,64,.45); }
.em-form { display: grid; gap: 14px; }
.em-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 18px; }
.em-grid label { display: grid; gap: 5px; font-size: .82rem; color: var(--muted); }
.em-grid small { font-size: .74rem; color: var(--muted); }
.em-pass { grid-column: span 2; }
@media (max-width: 640px) { .em-pass { grid-column: auto; } }
.em-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.em-help ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; }
.a-emailed { color: #5fd38a; }
.em-found { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.em-found h3 { margin: 0 0 8px; font-size: 1rem; }
.em-found ul { margin: 0 0 8px; padding-left: 18px; display: grid; gap: 6px; font-size: .86rem; }
.em-found li.is-ok { color: #5fd38a; }
.em-found li.is-no { color: #ffb4a6; }
.em-found li strong { color: var(--text); font-weight: 500; }
/* Email window: Write / Preview */
.a-mailtabs { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; justify-self: start; }
.a-mailtabs[hidden] { display: none; }
.a-mailtabs button { padding: 7px 16px; border: 0; background: transparent; color: var(--text); font: 500 .85rem var(--font-body); cursor: pointer; }
.a-mailtabs button + button { border-left: 1px solid var(--line); }
.a-mailtabs button[aria-selected="true"] { background: var(--safelight); color: var(--ink); }
.a-mailwrite[hidden], .a-mailprev[hidden] { display: none; }
.a-mailtip { font: 400 .76rem var(--font-body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.a-mailprev iframe { display: block; width: 100%; height: min(46vh, 480px); border: 1px solid var(--line); border-radius: 10px; background: #efe8dc; }
.em-style { display: grid; gap: 6px; }
.em-style > span { font-size: .82rem; color: var(--muted); }
.em-lab { font-size: .82rem; color: var(--muted); }
.em-pass { display: grid; gap: 6px; align-content: start; }
.em-pwsaved { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; border: 1px solid rgba(95,211,138,.35); border-radius: 10px; background: rgba(95,211,138,.06); }
.em-pwsaved[hidden], .em-pwnew[hidden] { display: none; }
.em-pwsaved .c-small { margin: 0; flex: 1 1 220px; }
.em-ok { color: #5fd38a; font-weight: 600; }
.em-pwnew { display: grid; gap: 6px; }
.em-pwnew small { font-size: .74rem; color: var(--muted); }
.em-pwrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.c-btn.em-small { padding: 6px 12px; font-size: .82rem; }
details.em-help > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; cursor: pointer; list-style: none; }
details.em-help > summary::-webkit-details-marker { display: none; }
details.em-help > summary h2 { margin: 0; }
details.em-help > summary h2::before { content: "▸ "; color: var(--safelight); }
details.em-help[open] > summary h2::before { content: "▾ "; }
details.em-help[open] > summary { margin-bottom: 12px; }
/* Email settings: a summary to read; the boxes only after "Edit settings" */
.em-view[hidden], .em-form[hidden] { display: none; }
.em-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 22px; margin: 4px 0 18px; }
.em-dl div { display: grid; gap: 3px; }
.em-dl dt { font: 500 .66rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.em-dl dd { margin: 0; font-size: .95rem; color: var(--text); overflow-wrap: anywhere; }
.em-view .em-btns form { display: contents; }

/* ---------- Admin home ---------- */
.is-home .c-main { max-width: 1120px; }
.h-hero { margin: 8px 0 30px; }
.h-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin: 4px 0 6px; }
.h-sub { margin: 0; color: var(--muted); font-size: .95rem; }
.h-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.h-tile { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 26px 24px 22px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.01)); transition: border-color .2s, transform .2s, box-shadow .2s; }
.h-tile:hover, .h-tile:focus-within { border-color: var(--safelight); transform: translateY(-3px); box-shadow: 0 22px 44px -24px rgba(0,0,0,.9), 0 0 0 1px rgba(240,166,64,.15); }
.h-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(240,166,64,.12); color: var(--safelight); }
.h-ic svg, .h-tool svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.h-ic svg .fill { fill: currentColor; stroke: none; }
.h-tile h2 { margin: 6px 0 0; font-size: 1.45rem; line-height: 1.2; }
.h-link { color: var(--text); text-decoration: none; }
.h-link::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }   /* the whole card opens it */
.h-link:focus-visible { outline: none; }
.h-tile:has(.h-link:focus-visible) { outline: 2px solid var(--safelight); outline-offset: 3px; }
.h-tile p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.h-foot { align-self: end; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.h-tile .h-meta { font: 500 .74rem var(--font-mono); letter-spacing: .03em; color: #cfc7bb; }
.h-sublink { position: relative; z-index: 1; justify-self: start; font-size: .82rem; color: var(--safelight); text-decoration: none; }
.h-sublink:hover { text-decoration: underline; text-underline-offset: 3px; }
.h-go { position: absolute; top: 24px; right: 24px; font-size: 1.3rem; color: var(--muted); transition: color .2s, transform .2s; }
.h-tile:hover .h-go { color: var(--safelight); transform: translateX(4px); }
.h-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.h-tool { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); color: var(--text); font: 500 .92rem var(--font-body); text-decoration: none; cursor: pointer; transition: border-color .2s, color .2s; }
.h-tool svg { width: 20px; height: 20px; color: var(--muted); }
.h-tool small { color: var(--muted); font-weight: 400; }
.h-tool:hover, .h-tool:focus-visible { border-color: var(--text); }
.h-tool:hover svg { color: var(--safelight); }
.h-tool.h-out { margin-left: auto; }
.h-tool.h-out:hover { border-color: rgba(255,107,94,.5); color: #ffb4a6; }
.h-tool.h-out:hover svg { color: #ff6b5e; }
@media (max-width: 900px) { .h-grid { grid-template-columns: 1fr; } .h-tile { grid-template-rows: auto; } }
@media (max-width: 560px) { .h-tools { display: grid; } .h-tool.h-out { margin-left: 0; } }

/* ---------- Customer panel: everything editable in one place ---------- */
.a-lead { visibility: hidden; }
.cp-sum { margin: -4px 0 14px; color: var(--muted); font-size: .88rem; }
.cp-note { margin: 0 0 10px; }
.cp-ggrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cp-ggrid small { display: block; margin-top: 4px; font: 400 .74rem var(--font-body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.cp-ggrid .cp-curpw { color: var(--safelight); font-family: var(--font-mono); font-weight: 500; }
.cp-switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin-top: 14px; }
.cp-sw { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
.cp-sw b { font-weight: 500; font-size: .92rem; color: var(--text); }
.cp-sw small { grid-column: 2; font-size: .76rem; color: var(--muted); }
.cp-photos legend .cp-pstat { margin-left: 8px; font: 400 .74rem var(--font-mono); letter-spacing: 0; text-transform: none; color: var(--muted); }
.cp-photos .a-more { display: grid; gap: 10px; padding: 0; margin: 0; border: 0; background: none; }
.cp-photos .a-more > p { margin: 0; }
.cp-srow.is-this { border-color: rgba(240,166,64,.45); }
.cp-btns { position: sticky; bottom: -1px; z-index: 2; padding: 14px 0 4px; margin-top: 6px; background: linear-gradient(rgba(43,42,40,0), #2b2a28 30%); }
.cp-btns .cp-mail { margin-left: auto; }
@media (max-width: 760px) { .cp-ggrid, .cp-switches { grid-template-columns: 1fr; } .cp-btns .cp-mail { margin-left: 0; } }
.cp-ggrid { align-items: start; }
.cp-photos .a-upload { margin: 0; padding: 0; border: 0; background: none; }

/* ---------- Groups ---------- */
.a-kind { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.a-kindopt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.a-kindopt:hover { border-color: #6a655f; }
.a-kindopt:has(input:checked) { border-color: var(--safelight); background: rgba(240,166,64,.07); }
.a-kindopt input { margin-top: 3px; accent-color: var(--safelight); }
.a-kindopt span { display: grid; gap: 2px; }
.a-kindopt b { font-weight: 600; }
.a-kindopt small { color: var(--muted); font-size: .8rem; }
.a-for-group[hidden], .a-for-one[hidden] { display: none; }
.a-gname { display: grid; gap: 5px; max-width: 460px; margin-bottom: 12px; font-size: .82rem; color: var(--muted); }
.a-members { display: grid; gap: 8px; }
.a-mrow { display: grid; grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr) 34px 34px; gap: 8px; align-items: center; }
.a-mrow .a-msent { grid-column: 2 / -1; margin-top: -4px; font-size: .74rem; }
.a-mnum { font: 500 .7rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }
.a-mrow.is-main .a-mnum { color: var(--safelight); }
.a-mbtn { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); font: 500 1.15rem/1 var(--font-body); cursor: pointer; }
.a-mbtn.a-madd { border-color: rgba(240,166,64,.6); color: var(--safelight); }
.a-mbtn:hover:not(:disabled) { background: rgba(255,255,255,.06); }
.a-mbtn:disabled { opacity: .25; cursor: default; }
.a-mnote { margin: 10px 0 6px; }
.a-maddr { margin-top: 6px; }
.a-maddr > summary { cursor: pointer; font-size: .88rem; color: var(--text); padding: 6px 0; }
.a-maddr[open] > summary { margin-bottom: 8px; }
.a-msent { color: #5fd38a; }
.a-gtag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; border: 1px solid rgba(240,166,64,.5); color: var(--safelight); font: 500 .66rem var(--font-mono); letter-spacing: .05em; vertical-align: 2px; }
@media (max-width: 760px) {
  .a-kind { grid-template-columns: 1fr; }
  .a-mrow { grid-template-columns: 40px 1fr 1fr 34px 34px; }
  .a-mrow input[name="m_email[]"], .a-mrow input[name="m_phone[]"] { grid-column: 2 / span 2; }
  .a-mrow input[name="m_email[]"] { grid-row: 2; } .a-mrow input[name="m_phone[]"] { grid-row: 3; }
}
/* Email window: a group's people and the sending progress */
.a-mailto[hidden], .a-mailgroup[hidden], .a-mailprog[hidden] { display: none; }
.a-mailgroup { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); }
.a-mailgroup ul { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 4px; max-height: 180px; overflow: auto; }
.a-mailgroup .a-check { text-transform: none; letter-spacing: 0; font: 400 .9rem var(--font-body); color: var(--text); }
.a-mgtitle { margin: 0; font-size: .9rem; }
.a-mailprog { padding: 12px 14px; border: 1px solid rgba(240,166,64,.4); border-radius: 10px; }
.a-mailprog .a-mptitle { margin: 0 0 8px; }
.a-mailprog .a-bar { margin-bottom: 8px; }
.a-mailprog ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 220px; overflow: auto; font-size: .88rem; }
.a-mailprog li.is-sending .mp-st { color: var(--safelight); }
.a-mailprog li.is-ok .mp-ic, .a-mailprog li.is-ok .mp-st { color: #5fd38a; }
.a-mailprog li.is-bad .mp-ic, .a-mailprog li.is-bad .mp-st { color: #ffb4a6; }
.mp-ic { display: inline-block; width: 1em; text-align: center; }
.a-kind { grid-column: 1 / -1; max-width: 820px; }
.a-kindopt input[type=radio] { width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; margin: 2px 0 0; }
.a-kindopt span { min-width: 0; }
.a-kind { grid-column: 1 / -1; max-width: 820px; }
.a-kindopt input[type=radio] { width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; margin: 2px 0 0; }
.a-kindopt span { min-width: 0; }

/* ---------- Text from your own phone ---------- */
.a-ic.ic-sms:hover:not(:disabled) { color: var(--safelight); }
.a-smsdlg { width: min(620px, calc(100% - 24px)); }
.a-smsdlg .cp-wrap { display: grid; gap: 12px; }
.a-smsdlg h2 { margin-bottom: 0 !important; }
.a-smswarn { margin: 0; padding: 9px 12px; border: 1px solid rgba(240,166,64,.45); border-radius: 9px; color: var(--safelight) !important; }
.a-smsmsg { display: grid; gap: 5px; font: 500 .68rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.a-smsmsg textarea { font: 400 .92rem/1.5 var(--font-body); letter-spacing: 0; text-transform: none; resize: vertical; }
.a-smsmsg small { font: 400 .76rem var(--font-body); letter-spacing: 0; text-transform: none; }
.a-smslist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.a-smsp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.a-smsp.is-none { opacity: .6; }
.a-smsn { flex: 1 1 200px; min-width: 0; }
.a-smsp .c-btn { padding: 7px 14px; font-size: .85rem; }
.a-smsok { color: #5fd38a; font-size: .82rem; }
.a-smsqr { display: grid; justify-items: center; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.a-smsqr[hidden] { display: none; }
.a-smsqr #sms-qrimg svg { width: 220px; height: 220px; display: block; }
.a-smsqr .c-small { color: #3a332c !important; text-align: center; margin: 0; }
.a-smshow { margin: 0; }
.a-smsn .c-small { white-space: nowrap; }
.a-qrnote { display: block; margin-top: 4px; color: #8a7f72; }

/* ---------- Text window: QR code first, plain "Open in Messages" beside it ---------- */
.a-smsp .a-smsplain { font-size: .85rem; color: inherit; opacity: .75; text-decoration: underline; text-underline-offset: 3px; }
.a-smsp .a-smsplain:hover { opacity: 1; }
.a-smsp .a-smsqrb.is-current { box-shadow: 0 0 0 2px rgba(201,151,63,.45); }
.a-smshow a, .a-mailstd a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.a-mailstd { margin: 4px 0 0; text-align: right; }

/* ---------- Admin › Email & text wording ---------- */
.mw-card { margin-bottom: 18px; }
.mw-card h2 { margin: 0 0 12px; }
.mw-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.mw-edit { display: grid; gap: 12px; }
.mw-edit label { display: grid; gap: 6px; }
.mw-edit textarea, .mw-edit input { width: 100%; font: inherit; line-height: 1.5; }
.mw-edit textarea { resize: vertical; }
.mw-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: -4px; }
.mw-tag { font: inherit; font-size: .78rem; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(201,151,63,.5); background: rgba(201,151,63,.1); color: inherit; cursor: pointer; }
.mw-tag:hover { background: rgba(201,151,63,.25); }
.mw-prev { position: sticky; top: 16px; display: grid; gap: 8px; }
.mw-plab { font-size: .85rem; opacity: .8; }
#mw-email-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mw-pre { white-space: pre-wrap; font: inherit; font-size: .9rem; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #2a241e; max-height: 640px; overflow: auto; }
.mw-phone { padding: 18px 14px; border-radius: 22px; background: #f2f2f4; border: 1px solid var(--line); }
.mw-bubble { white-space: pre-wrap; max-width: 88%; padding: 10px 13px; border-radius: 18px 18px 18px 4px; background: #e5e5ea; color: #111; font: 14px/1.4 -apple-system, system-ui, sans-serif; word-break: break-word; }
.mw-bar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 0; background: var(--ink); z-index: 2; }
.mw-bar .mw-reset { margin-left: auto; }
#mw-state.is-dirty { color: #c9973f; font-weight: 600; }
@media (max-width: 900px) { .mw-cols { grid-template-columns: 1fr; } .mw-prev { position: static; } #mw-email-frame { height: 520px; } }

/* ---------- Customer window › Sessions: info on top, the three fields lined up below ---------- */
.cp-srow { grid-template-columns: 1.4fr 1fr 1fr; align-items: end; gap: 8px 14px; padding: 12px 14px; border: 1px solid #4a4744; border-radius: 10px; }
.cp-srow:first-child { border-top: 1px solid #4a4744; padding-top: 12px; }
.cp-srow .cp-sinfo { grid-column: 1 / -1; padding: 0 0 2px; }
.cp-srow label, .cp-sexp-ro { display: grid; grid-template-rows: auto 40px; gap: 6px; margin: 0; }
.cp-srow label > input, .cp-srow .a-money, .cp-srow .a-money input { height: 40px; box-sizing: border-box; }
.cp-sexp small, .cp-sexp-ro small { display: inline; margin: 0; font-size: .72rem; color: var(--muted); letter-spacing: 0; text-transform: none; }
.cp-sexp-ro { padding: 0; }
.cp-sexp-ro .c-label { margin: 0; }
.cp-roval { display: flex; align-items: center; font-size: .9rem; }
@media (max-width: 640px) { .cp-srow { grid-template-columns: 1fr 1fr; } .cp-srow .cp-sexp, .cp-srow .cp-sexp-ro { grid-column: 1 / -1; } }
.cp-sw b, .cp-sw small { cursor: default; }

/* ---------- Customer fields: titles inside the boxes, 4 slim lines ----------
   1: First · Partner · Last   2: Email 1 · Phone 1   3: Email 2 · Phone 2   4: Street · City · State · ZIP */
.a-grid.a-fl { gap: 8px 10px; align-items: stretch; }
.a-fl > label { position: relative; margin: 0; }
.a-fl > label > input { height: 46px; padding: 19px 12px 5px; font-size: .95rem; }
.a-fl > label > span { position: absolute; left: 13px; top: 6px; font-size: .68rem; line-height: 1; color: var(--muted); pointer-events: none; letter-spacing: .02em; }
.a-fl > label > span .a-req { font-style: normal; color: var(--safelight); }
.a-fl > label > input::placeholder { color: #6a645c; }
.a-fl > label:focus-within > span { color: var(--safelight); }
.a-grid-cust.a-fl > label:has(input[name="email"]), .a-grid-cust.a-fl > label:has(input[name="email2"]) { grid-column: span 8; }
.a-grid-cust.a-fl > label:has(input[name="phone"]), .a-grid-cust.a-fl > label:has(input[name="phone2"]) { grid-column: span 4; }
@media (max-width: 640px) {
  .a-grid-cust.a-fl > label:has(input[name="email"]), .a-grid-cust.a-fl > label:has(input[name="email2"]),
  .a-grid-cust.a-fl > label:has(input[name="phone"]), .a-grid-cust.a-fl > label:has(input[name="phone2"]) { grid-column: 1 / -1; }
}
