/* Shared dark theme for owner pages, account recovery and customer galleries. */
: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: var(--background); color: var(--text); }
.layout { grid-template-columns: 260px minmax(0,1fr); }
aside { background: var(--sidebar); border-right: 1px solid #1c2630; 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; }
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); }
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); }
.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-right: 0; border-bottom: 1px solid var(--border); }
  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; } }
