:root {
  --bg: #0d0b10;
  --bg-soft: #121016;
  --surface: #17131c;
  --surface-2: #201927;
  --surface-3: #2a2032;
  --text: #f3eef5;
  --muted: #aaa0ae;
  --line: rgba(255, 255, 255, 0.09);
  --plum: #765583;
  --plum-bright: #9b75aa;
  --plum-faint: rgba(132, 92, 150, 0.15);
  --accent-button: #6b4b78;
  --accent-button-hover: #795685;
  --accent-border: #8f6a9f;
  --accent-orb-a: rgba(152, 112, 170, .18);
  --accent-orb-b: rgba(80, 49, 93, .08);
  --danger: #d68c97;
  --success: #93b8a0;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --content: 1240px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(circle at 85% -10%, rgba(102, 65, 118, 0.20), transparent 34rem),
    linear-gradient(180deg, #0d0b10 0%, #0f0c12 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: max(12px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 12px max(24px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(13, 11, 16, 0.82);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  background: linear-gradient(145deg, #2c2132, #17121b);
  color: #e7dbe9;
  font-size: 12px;
  letter-spacing: .08em;
  box-shadow: inset 0 1px rgba(255,255,255,.05);
}
.brand-name { font-size: 13px; font-weight: 700; letter-spacing: .16em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a,
.nav-dropdown-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.nav > a:hover,
.nav > a.active,
.nav-dropdown-button:hover { background: rgba(255,255,255,.05); color: var(--text); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 230px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(23, 19, 28, .98);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: .16s ease;
}
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-dropdown-menu a { display: block; padding: 12px; border-radius: 10px; color: #cfc5d2; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,.05); color: white; }
#photoCategoryLinks { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
#photoCategoryLinks:empty { display: none; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.menu-toggle span { display: block; height: 1px; margin: 5px 0; background: #d8cfda; }

main { min-height: calc(100svh - 150px); }
.page { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 72px 0 90px; }
.page.narrow { max-width: 880px; }

.hero {
  position: relative;
  min-height: min(720px, calc(100svh - 72px));
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-inner { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 90px 0 110px; position: relative; z-index: 2; }
.hero-copy { max-width: 840px; }
.eyebrow { margin: 0 0 16px; color: var(--plum-bright); font-size: 11px; font-weight: 800; letter-spacing: .22em; }
h1 { margin: 0; font-size: clamp(52px, 8vw, 116px); line-height: .92; letter-spacing: -.055em; font-weight: 650; }
h2 { margin: 0; font-size: clamp(32px, 5vw, 54px); letter-spacing: -.035em; line-height: 1; }
h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.hero p.lede { max-width: 680px; margin: 28px 0 0; font-size: clamp(18px, 2vw, 24px); line-height: 1.5; color: #b9afbC; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-orb {
  position: absolute;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  right: -16vw;
  top: -16vw;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent-orb-a), var(--accent-orb-b) 45%, transparent 70%);
  filter: blur(2px);
}


.hero.hero-compact {
  min-height: auto;
  align-items: flex-start;
}
.hero.hero-compact .hero-inner { padding: 64px 0 62px; }
.hero.hero-compact .hero-copy { max-width: 900px; }
.hero.hero-compact h1 { font-size: clamp(42px, 6.4vw, 88px); max-width: 1000px; }
.hero.hero-compact p.lede { max-width: 760px; margin-top: 20px; font-size: clamp(17px, 1.7vw, 21px); }
.hero.hero-compact .hero-actions { margin-top: 26px; }
.home-photo-focus { padding-top: 48px; }
.home-photo-focus .photo-grid { columns: 3 360px; column-gap: 20px; }
.home-photo-focus .photo-card { margin-bottom: 20px; border-radius: 15px; }
.home-photo-head { margin-bottom: 24px; }

.primary-button, .secondary-button, .danger-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 13px;
  cursor: pointer;
  transition: transform .12s ease, background .18s ease;
}
.primary-button { border: 1px solid var(--accent-border); background: var(--accent-button); color: white; }
.primary-button:hover { background: var(--accent-button-hover); }
.secondary-button { border: 1px solid var(--line); background: rgba(255,255,255,.03); color: #ddd4df; }
.secondary-button:hover { background: rgba(255,255,255,.06); }
.danger-button { border: 1px solid rgba(214,140,151,.28); background: rgba(214,140,151,.08); color: #e8b0b8; }
.primary-button:active, .secondary-button:active, .danger-button:active { transform: translateY(1px); }
.full { width: 100%; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head p { max-width: 620px; margin: 12px 0 0; color: var(--muted); line-height: 1.6; }
.section-link { color: #b99fc2; font-size: 14px; }

.photo-grid {
  columns: 3 320px;
  column-gap: 18px;
}
.photo-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  break-inside: avoid;
  cursor: zoom-in;
}
.photo-card img { display: block; width: 100%; height: auto; min-height: 180px; background: #151119; object-fit: cover; transition: transform .32s ease; }
.photo-card:hover img { transform: scale(1.018); }
.photo-meta {
  position: absolute;
  inset: auto 0 0;
  padding: 50px 16px 14px;
  background: linear-gradient(transparent, rgba(7,6,8,.78));
  opacity: 0;
  transition: opacity .2s ease;
}
.photo-card:hover .photo-meta, .photo-card:focus-within .photo-meta { opacity: 1; }
.photo-title { font-weight: 650; }
.photo-category { margin-top: 3px; color: #c0b6c3; font-size: 12px; }

.empty-state {
  padding: 58px 28px;
  border: 1px dashed rgba(255,255,255,.13);
  border-radius: var(--radius);
  background: rgba(255,255,255,.018);
  text-align: center;
  color: var(--muted);
}
.empty-state strong { display: block; color: #ddd4df; margin-bottom: 7px; }

.placeholder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.placeholder-card { min-height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.placeholder-card span { color: var(--plum-bright); font-size: 12px; letter-spacing: .12em; }
.placeholder-card p { color: var(--muted); line-height: 1.6; }

.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.admin-sidebar { position: sticky; top: 98px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.admin-sidebar button { width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.admin-sidebar button.active { background: var(--plum-faint); color: #e7dce9; }
.admin-panel { min-width: 0; }
.panel-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.panel-card + .panel-card { margin-top: 18px; }
.panel-card-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 22px; }
.panel-card-head p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
label { display: grid; gap: 8px; color: #cfc5d2; font-size: 13px; }
label.wide { grid-column: 1 / -1; }
input, textarea, select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
  outline: none;
  background: #100d13;
  color: var(--text);
}
textarea { min-height: 112px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: rgba(155,117,170,.75); box-shadow: 0 0 0 3px rgba(118,85,131,.13); }
.file-input {
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.018);
  text-align: center;
}
.file-input input { min-height: 44px; background: transparent; border: 0; padding: 6px; }
.upload-preview { max-height: 360px; max-width: 100%; margin: 14px auto 0; border-radius: 14px; object-fit: contain; display: none; }
.form-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-error { min-height: 18px; margin: 4px 0; color: var(--danger); font-size: 13px; }

.alias-create { display: flex; gap: 10px; align-items: center; }
.alias-input-wrap { display: flex; align-items: center; min-width: 0; flex: 1; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; background: #100d13; overflow: hidden; }
.alias-input-wrap input { border: 0; border-radius: 0; min-width: 90px; }
.alias-suffix { padding-right: 12px; color: var(--muted); white-space: nowrap; font-size: 13px; }
.alias-list { display: grid; gap: 10px; margin-top: 18px; }
.alias-row, .mail-row { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.018); }
.alias-row-main, .mail-row-main { min-width: 0; flex: 1; }
.alias-address { font-weight: 650; overflow-wrap: anywhere; }
.alias-state, .mail-meta { margin-top: 4px; color: var(--muted); font-size: 12px; }
.mail-list { display: grid; gap: 8px; }
.mail-row { cursor: pointer; transition: background .15s ease; }
.mail-row:hover { background: rgba(255,255,255,.035); }
.mail-row.unread { border-color: rgba(155,117,170,.35); background: rgba(118,85,131,.07); }
.mail-subject { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 650; }
.mail-from { margin-top: 4px; color: #b9afbC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.mail-view { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; color: #ded6e0; background: #0e0b11; border-radius: 14px; padding: 18px; border: 1px solid var(--line); max-height: 60vh; overflow: auto; }

.modal {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  max-width: min(92vw, 520px);
}
.modal::backdrop { background: rgba(4,3,5,.74); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(92vw, 480px); padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: #17131c; box-shadow: var(--shadow); }
.modal-card h2 { font-size: 34px; }
.modal-card .muted { color: var(--muted); line-height: 1.5; }
.modal-close, .lightbox-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.06); color: #ddd4df; font-size: 26px; cursor: pointer; }
.login-card label { margin-top: 22px; }

.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; background: rgba(5,4,6,.92); }
.lightbox figure { margin: 0; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
.lightbox img { max-width: min(94vw, 1500px); max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 10px; }
.lightbox figcaption { color: #cfc5d2; padding-top: 14px; text-align: center; }

.toast { position: fixed; z-index: 80; left: 50%; bottom: max(24px, calc(env(safe-area-inset-bottom) + 14px)); transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: 12px 16px; border: 1px solid var(--line); border-radius: 13px; background: #211a27; color: #f2ebf4; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.site-footer { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; padding: 28px max(24px, env(safe-area-inset-right)) max(30px, calc(env(safe-area-inset-bottom) + 20px)) max(24px, env(safe-area-inset-left)); border-top: 1px solid var(--line); color: #756d78; font-size: 12px; letter-spacing: .04em; }
.footer-admin-link { padding: 0; border: 0; background: transparent; color: #756d78; font-size: inherit; letter-spacing: inherit; text-decoration: none; cursor: pointer; }
.footer-admin-link:hover, .footer-admin-link:focus-visible { color: #b9afbC; text-decoration: underline; text-underline-offset: 3px; }

.muted { color: var(--muted); }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .site-header { min-height: 66px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .brand-name { display: none; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    top: 66px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(20,16,24,.98);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: .18s ease;
  }
  .nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav > a, .nav-dropdown-button { width: 100%; justify-content: flex-start; min-height: 48px; margin: 0; }
  .nav-dropdown-menu { position: static; width: auto; margin: 0 6px; border: 0; box-shadow: none; background: rgba(255,255,255,.025); display: none; opacity: 1; transform: none; pointer-events: auto; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .hero:not(.hero-compact) { min-height: calc(100svh - 66px); }
  .hero.hero-compact .hero-inner { padding: 54px 0 52px; }
  .home-photo-focus { padding-top: 38px; }
  .hero-inner, .page { width: min(100% - 32px, var(--content)); }
  .hero-inner { padding: 70px 0 86px; }
  .placeholder-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; display: flex; overflow-x: auto; gap: 5px; padding: 8px; scrollbar-width: none; }
  .admin-sidebar::-webkit-scrollbar { display: none; }
  .admin-sidebar button { width: auto; flex: 0 0 auto; padding: 0 14px; }
}

@media (max-width: 620px) {
  .page { padding: 48px 0 70px; }
  h1 { font-size: clamp(52px, 18vw, 82px); }
  .hero p.lede { font-size: 18px; }
  .hero.hero-compact h1 { font-size: clamp(42px, 13vw, 68px); }
  .hero.hero-compact .hero-inner { padding: 42px 0 44px; }
  .home-photo-focus { padding-top: 34px; }
  .section-head { display: block; }
  .section-link { display: inline-block; margin-top: 14px; }
  .photo-grid { columns: 1; }
  .photo-card { margin-bottom: 14px; }
  .photo-meta { opacity: 1; padding-top: 44px; }
  .form-grid { grid-template-columns: 1fr; }
  label.wide { grid-column: auto; }
  .panel-card { padding: 18px; border-radius: 17px; }
  .panel-card-head { display: block; }
  .alias-create { display: grid; }
  .alias-input-wrap { width: 100%; }
  .alias-row { align-items: flex-start; }
  .modal-card { padding: 24px; }
  .footer-dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* v0.2 Site Editor themes */
:root[data-theme="violet"] {
  --plum: #62508f;
  --plum-bright: #927fd0;
  --plum-faint: rgba(98, 80, 143, 0.16);
  --accent-button: #58457f;
  --accent-button-hover: #685494;
  --accent-border: #7c6aae;
  --accent-orb-a: rgba(122, 102, 177, .18);
  --accent-orb-b: rgba(65, 52, 99, .08);
}
:root[data-theme="wine"] {
  --plum: #784d67;
  --plum-bright: #ad7695;
  --plum-faint: rgba(120, 77, 103, 0.16);
  --accent-button: #70465f;
  --accent-button-hover: #81516d;
  --accent-border: #98687f;
  --accent-orb-a: rgba(151, 91, 125, .17);
  --accent-orb-b: rgba(90, 50, 70, .08);
}
:root[data-theme="midnight"] {
  --plum: #4e526f;
  --plum-bright: #7f83ad;
  --plum-faint: rgba(78, 82, 111, 0.17);
  --accent-button: #464a66;
  --accent-button-hover: #555a79;
  --accent-border: #686d91;
  --accent-orb-a: rgba(95, 101, 142, .18);
  --accent-orb-b: rgba(48, 52, 83, .08);
}

.site-editor { display: grid; gap: 18px; }
.editor-group {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.014);
}
.editor-group legend {
  padding: 0 8px;
  color: #e8dfea;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}
.editor-toggle {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.015);
  cursor: pointer;
}
.editor-toggle input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  accent-color: var(--plum-bright);
}
.editor-toggle-copy { display: grid; gap: 3px; }
.editor-toggle-copy strong { color: #ded5e1; font-size: 14px; }
.editor-toggle-copy small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.editor-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.editor-status { flex: 1 1 260px; margin: 0; }
.theme-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-self: end; }
.theme-swatch {
  min-height: 46px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #eee8f0;
  cursor: pointer;
  text-transform: capitalize;
  font-size: 12px;
}
.theme-plum { background: linear-gradient(145deg, #765583, #3d2c46); }
.theme-violet { background: linear-gradient(145deg, #62508f, #342d54); }
.theme-wine { background: linear-gradient(145deg, #784d67, #472c3b); }
.theme-midnight { background: linear-gradient(145deg, #4e526f, #2d3045); }

@media (max-width: 620px) {
  .editor-group { padding: 16px; }
  .editor-actions { display: grid; grid-template-columns: 1fr; }
  .editor-actions .primary-button, .editor-actions .secondary-button { width: 100%; }
  .theme-swatches { grid-template-columns: repeat(2, 1fr); }
}

/* v0.2.1 — multi-photo upload */
.upload-selection-summary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.upload-preview-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.upload-preview-grid:empty { display: none; }
.upload-preview-grid img,
.upload-preview-more {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0e0b11;
}
.upload-preview-grid img { object-fit: cover; }
.upload-preview-more {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}
.upload-progress { display: grid; gap: 8px; }
.upload-progress[hidden] { display: none; }
.upload-progress-text {
  color: #d7ced9;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.upload-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}
.upload-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--plum);
  transition: width .18s ease;
}

@media (max-width: 620px) {
  .upload-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .file-input { padding: 16px 12px; }
}


/* v0.2.2 — photo metadata editor */
.admin-photo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.admin-photo-actions { display: flex; gap: 7px; align-items: center; }
.admin-photo-button {
  min-height: 36px;
  padding: 0 11px;
  font-size: 12px;
}
.photo-edit-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(10, 8, 12, .96);
}
.photo-edit-form[hidden] { display: none; }
.photo-edit-form label { display: grid; gap: 6px; }
.photo-edit-form label > span {
  color: #d8cfdc;
  font-size: 12px;
  font-weight: 650;
}
.photo-edit-form input,
.photo-edit-form select,
.photo-edit-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #120f15;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}
.photo-edit-form textarea { min-height: 92px; resize: vertical; }
.photo-edit-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 620px) {
  .admin-photo-row { align-items: flex-start; }
  .admin-photo-actions { flex-shrink: 0; }
  .admin-photo-button { min-height: 44px; }
  .photo-edit-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .photo-edit-actions button { width: 100%; min-height: 44px; }
}
