/* Shared dark theme for owner pages, account recovery and customer galleries. */
.instruction-button-name{display:inline;padding:2px 7px;border:1px solid #546775;border-radius:6px;background:#202d38;color:#fff;font-size:.92em;font-weight:600;line-height:1.9;box-decoration-break:clone;-webkit-box-decoration-break:clone}
:root {
  color-scheme: dark;
  --background: #090c10;
  --sidebar: #06080b;
  --panel: #12171e;
  --field: #0c1118;
  --border: #283441;
  --text: #f2f6fa;
  --muted: #a0afbf;
  --blue: #087e96;
  --blue-light: #87dbea;
  color: var(--text);
  background: var(--background);
}
body {
  background-color:var(--background);
  background-image:url('./hexagon-accent.svg');
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
  background-repeat:no-repeat;
  color:var(--text);
}
.layout { grid-template-columns: 260px minmax(0,1fr); }
aside { background:transparent; border-right:0; padding:28px 22px; }
aside p { color: var(--muted); line-height: 1.6; }
aside h1.brand { background: transparent; padding: 0; border-radius: 0; }
aside .brand img { filter: url(#brand-light); }
.brand-filters { position: absolute; pointer-events: none; }
aside nav { margin-top: 30px; }
aside nav button { border: 1px solid transparent; color: var(--text); }
aside nav button:hover { background: #14212c; border-color: #234455; }
main { max-width: 1240px; padding: 40px; min-width: 0; }
/* One continuous background; panels and photo cards stay opaque. */
main { background:transparent; }
h2 { font-size: 28px; letter-spacing: -.025em; }
h3 { color: var(--text); }
.muted, .empty, #saveState, .photo small, .site-credit, .lb-counter { color: var(--muted); }
.panel { background: var(--panel); border-color: var(--border); box-shadow: 0 12px 32px #0002; padding: 26px; }
.project { border-color: var(--border); }
.project { border-left:5px solid var(--border);padding:18px 16px;margin:10px 0;border-radius:10px; }
.project:last-child { border-left:5px solid var(--border); }
.project-status { display:inline-block;font-size:13px;font-weight:700;padding:4px 9px;border-radius:6px;margin:0 10px 8px 0; }
.project .muted { display:block; }
.project-progress{display:block;margin-top:8px;color:var(--blue-light);font-weight:600}
.project.project-selecting { border-left-color:#f59e0b;background:#f59e0b0d; }
.project-selecting .project-status { color:#ffce85;background:#f59e0b24; }
.project.project-confirmed { border-left-color:#34d399;background:#34d3990d; }
.project-confirmed .project-status { color:#8df0bf;background:#34d39924; }
.project.project-closed { border-left-color:#f87171;background:#f871710d; }
.project-closed .project-status { color:#ffb7b7;background:#f8717124; }
.project-draft .project-status { color:var(--muted);background:var(--field); }
button { transition: background-color .15s, border-color .15s; background: #24313f; color: var(--text); }
.primary, .lb-selected { background: var(--blue); color: #fff; }
.primary:hover:not(:disabled), .lb-selected:hover:not(:disabled) { background: #0992ad; }
.secondary, .lb-button { background: #202b37; color: #e7eef6; }
.secondary:hover:not(:disabled), .lb-button:hover:not(:disabled) { background: #2b3c4c; }
button:disabled { opacity: .48; }
input, select, .langbar select, .status-row select { background: var(--field); color: var(--text); border-color: #394959; }
input::placeholder { color: #8fa0b2; }
input[type=file] { background: var(--field); }
input[type=file]::file-selector-button { background: #243542; color: var(--text); border: 1px solid #3c5364; border-radius: 6px; padding: 7px 10px; margin-right: 10px; }
button:focus-visible, input:focus-visible, select:focus-visible, .contact-details a:focus-visible { outline-color: var(--blue-light); }
.photo { background: var(--panel); border-color: var(--border); }
.gallery .photo img { aspect-ratio:1 / 1;object-fit:contain;background:#080b10; }
.owner-photo-search{margin:24px 0;padding:18px;border:1px solid var(--border);border-radius:10px;background:var(--field)}
.owner-photo-search figure{cursor:zoom-in}.owner-photo-search figure:focus-visible{outline:3px solid var(--blue-light);outline-offset:2px}
.selected { background: #10394a !important; color: #adf0fa !important; }
.meter { background: #25313d; }
.meter span { background: #149fba; }
.pill { background: #243342; color: var(--text); }
.price-summary { background: #0d1821; border-color: #28404f; }
.price-summary .total { border-color: #28404f; }
.price-summary p { color: #b1c2cf; }
.notice, #message { background: #10222e; color: #c8e5ef; border-color: #2c4a5a; }
#message.error { background: #301b23; color: #ffc3cc; border-color: #65333f; }
.invoice-note { background: #112a28; color: #b8e6df; border-color: #2d504c; }
.extra-note { color: #9bd2e2; }
.photo .watermark:focus-visible { outline-color: var(--blue-light); }
dialog, .lightbox { background: #0c1118; color: var(--text); border: 1px solid #354555; }
dialog::backdrop { background: #000d; }
.site-footer { border-color: var(--border); margin-top: 38px; }
.contact-avatar { border-color: #2d4354; box-shadow: 0 4px 22px #0004; }
.contact-details strong { color: var(--text); }
.contact-details a { color: #a9c5d6; }
.contact-details a:hover { color: var(--blue-light); }
@media(max-width:700px) {
  .layout { grid-template-columns: minmax(0,1fr); }
  aside { padding:18px 20px; border:0; }
  aside h1.brand { width: 230px; max-width: 100%; }
  aside nav { margin-top: 14px; }
  main { padding: 24px 18px; }
  .panel { padding: 20px; }
  h2 { font-size: 25px; }
  #environment { margin-top: 18px; }
}
@media(prefers-reduced-motion:reduce) { button { transition: none; } }
textarea{font:inherit;width:100%;padding:12px;border:1px solid #354555;border-radius:9px;background:#0c1118;color:var(--text);resize:vertical}
textarea:focus-visible{outline:3px solid #39b5cc;outline-offset:3px}
#welcomeDialog,#confirmDialog{width:min(94vw,680px);max-height:90dvh;padding:24px;overflow:auto}
#welcomeContent p{line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
#welcomeContent h3{margin-bottom:6px;color:#9bd2e2}
#welcomeTitle{font-size:26px;flex:1 1 100%}
#welcomeDialog .row label{margin:0}#startSelecting{margin-top:16px}
#savedNotes{white-space:pre-wrap;overflow-wrap:anywhere}
#instructionsSettings{margin:18px 0}#instructionsSettings summary{cursor:pointer}
#discountEnabled{width:auto;margin-right:10px}.discount-tier{margin-top:10px}.discount-tier input{width:100px;flex:1;min-width:65px}.discount-tier button{margin-top:0}.discount-progress{color:#9bd2e2!important}
/* Saving a selection reports progress as text, without dimming the screen. */
body.selection-saving button:disabled{opacity:1}
#lightbox{width:min(96vw,1100px);max-height:96dvh;overflow:auto}
.password-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.password-field input{min-width:0}.password-field button{margin:0;min-width:44px;padding:10px 12px}
.password-field button[aria-pressed="true"]{outline:2px solid var(--blue-light)}
#zoomStage{height:clamp(180px,58dvh,650px);width:100%;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none;user-select:none;cursor:zoom-in;margin:12px 0;background:#080b10;border-radius:8px}
#zoomStage.zoomed{cursor:grab}#zoomStage.zoomed:active{cursor:grabbing}
#zoomStage #largePhoto{max-width:100%;max-height:100%;width:auto;height:auto;margin:0;flex-shrink:0;transform-origin:center;user-select:none}
.zoom-controls{justify-content:center;gap:10px}.zoom-controls output{min-width:52px;text-align:center;font-variant-numeric:tabular-nums}.zoom-hint{font-size:12px;text-align:center;margin:8px 0}#largeName{margin:10px 0}
#zoomStage:focus-visible{outline:3px solid var(--blue-light);outline-offset:2px}
.photo-bottom-controls{justify-content:center;flex-wrap:nowrap}.photo-bottom-controls>button{min-width:44px}.project-progress{overflow-wrap:anywhere}
@media(max-width:500px){#lightbox{padding:12px}#zoomStage{height:52dvh}.zoom-controls button{padding:9px 12px}}
/* Desktop preview uses the remaining window height after the existing controls. */
@media(min-width:701px){
 #lightbox[open]{display:flex;flex-direction:column;gap:6px;box-sizing:border-box;width:calc(100vw - 24px);max-width:none;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);padding:12px;overflow:auto}
 #lightbox> :not(#zoomStage){flex-shrink:0}
 #lightbox #zoomStage{flex:1;min-height:0;height:auto;margin:0}
 #lightbox .zoom-hint,#lightbox #largeName{margin:0}
 #lightbox #largeSelect{align-self:center}
}
#notificationsEnabled,#remindersEnabled{width:auto;margin-right:10px}#automationSettings{margin:14px 0}#mailTextEditors details{margin:12px 0}
.selection-review-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:12px;margin:18px 0}
.selection-review-grid figure{margin:0;min-width:0;border:1px solid var(--border,#364451);border-radius:9px;overflow:hidden}
.selection-review-grid img{display:block;width:100%;height:145px;object-fit:contain;background:#080b10}
.selection-review-grid figcaption{padding:9px;font-size:12px;overflow-wrap:anywhere}
.selection-review-grid .image-open{display:block;width:100%;padding:0;background:transparent;border-radius:0}
.selection-review-grid .combined-deselect{margin:0 8px 8px;width:calc(100% - 16px);padding:9px 5px;font-size:12px}
.selection-review-grid.comparison-large{grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr))}
.comparison-large img{height:clamp(180px,34vh,400px)}
@media(max-width:600px){.selection-review-grid.comparison-large{grid-template-columns:repeat(2,minmax(0,1fr))}.comparison-large img{height:clamp(125px,28vh,210px)}}
.selection-review-grid .compare-picked{outline:2px solid #bf9a6f;outline-offset:-2px}
.selection-review-grid .compare-excluded img{opacity:.55}
.compare-pick,.compare-exclude,.owner-member-exclude{display:block;margin:0 auto 7px;padding:6px 8px;font-size:12px;max-width:100%}
.owner-member .member-photo-previews figure{cursor:default}
.member-photo-previews .image-open{width:100%;padding:0;background:transparent;border-radius:0;cursor:zoom-in}
.owner-review-consent{display:flex;align-items:center;gap:8px;margin:14px 0}
.owner-review-consent input{width:auto;flex:none}
#submittedReview summary{cursor:pointer;font-weight:600}
#confirmDialog .confirmation-actions{position:sticky;bottom:-24px;background:var(--field);padding:12px 0 24px;margin-bottom:-24px}
#confirmDialog .confirmation-actions button{margin-top:0;flex:1 1 180px}
#shareDialog{width:min(94vw,560px);max-height:90dvh;overflow:auto;padding:24px}
.share-options{margin-top:18px}.share-options a{display:inline-block;background:var(--blue);color:var(--text);padding:12px 16px;border-radius:9px;text-decoration:none;min-height:44px}
.share-options a:focus-visible{outline:3px solid var(--blue-light);outline-offset:3px}
#galleryScroll{position:fixed;right:20px;bottom:calc(16px + env(safe-area-inset-bottom));display:flex;gap:8px;z-index:20}
#galleryScroll button{background:var(--panel);border:1px solid var(--blue-light);box-shadow:0 3px 14px #0008;min-height:44px;padding:10px 14px}
#gallery.has-gallery-scroll #galleryGrid{padding-bottom:70px;scroll-margin-bottom:70px}
@media(max-width:500px){#galleryScroll{right:12px;gap:6px}#galleryScroll button{font-size:13px;padding:10px 12px}}

.danger-outline {color:#ffb7b7;background:#f871711a;border:1px solid #a84747;}
.project-actions {flex-shrink:0;}
.project-submitted,.project-deadline,.project-access{display:block;margin-top:6px;color:var(--text)}
.project details{margin-top:8px}.project summary{cursor:pointer;color:var(--blue-light)}
.project-deadline-form{margin-top:8px;max-width:420px}.project-deadline-form input{max-width:100%;color-scheme:dark}
.deadline-note{color:var(--muted);font-size:14px}
.project.project-delivered{border-left-color:#b886f8;background:#a855f719}
.project-delivered .project-status{color:#dfc4ff;background:#a855f72b}
.project-delivered-toggle{display:flex;align-items:center;gap:8px;margin-top:12px;cursor:pointer}
.project-delivered-toggle input{width:18px;height:18px;margin:0;accent-color:#b886f8;flex-shrink:0}
.project-retention{display:block;max-width:560px;margin-top:6px;font-size:13px;color:var(--muted)}
#selectionSticky{position:sticky;top:0;z-index:21;background:var(--panel);border:1px solid var(--blue);border-radius:12px;padding:10px 14px;margin-bottom:16px;box-shadow:0 4px 14px #0006}
.selection-sticky-text{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:14px}
#stickyCombined{color:var(--blue-light)}
#selectionSticky .meter{height:4px;margin-top:8px;margin-bottom:0}
#selectionNextStep{margin-top:12px}
.selection-completion{display:flex;flex-direction:column;align-items:stretch;gap:12px;max-width:520px;margin-top:18px}
.selection-completion button{width:100%;min-height:46px}
.selection-completion #selectionNextStep{margin:0}
#combinedFileDetails{margin:16px 0}
#combinedFileDetails summary{cursor:pointer;color:var(--blue-light);padding:8px 0}
#combinedFiles{max-height:240px;overflow:auto}
.member-ready-check{color:#45e0a8;font-size:18px;font-weight:800;vertical-align:middle}
#allReadyDialog{width:min(94vw,520px);max-height:90dvh;padding:24px;overflow:auto}
#allReadyDialog h2{color:#45e0a8}
#allReadyDialog .row{flex-direction:column;align-items:stretch;margin-top:20px}
@media(max-width:500px){#selectionSticky{padding:9px 11px}.selection-sticky-text{font-size:13px;gap:3px}.selection-sticky-text>*{width:100%}}
#quickDeleteDialog {max-width:560px;width:calc(100% - 32px);}
#quickDeleteDialog .row {margin-top:20px;}
/* Individual choices remain visible while participants are still selecting. */
.owner-member{padding:12px 0;border-bottom:1px solid var(--border,#394552)}
.owner-member>p{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.member-photo-previews{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:10px;max-height:340px;overflow:auto}
.member-photo-previews figure{margin:0;min-width:0;cursor:zoom-in;border-radius:8px;overflow:hidden;background:var(--panel,#15212b)}
.member-photo-previews img{display:block;width:100%;height:80px;object-fit:contain}
.member-photo-previews figcaption{padding:5px;font-size:11px;overflow-wrap:anywhere;text-align:center}
.member-photo-previews figure:focus-visible{outline:3px solid #0fa0b5;outline-offset:-3px}
