/*
 * MKS Photos UI Lab
 * -----------------
 * A reversible, clone-only presentation layer. The photo dashboard keeps its
 * existing DOM, IDs, routes and event handlers; this file owns the visual
 * system so the working production styles remain available for comparison.
 * The language follows the Reels studio: quiet grey field, blue actions,
 * fixed left rail, white panels and deliberate responsive wrapping.
 */

:root {
  --photo-bg: #f6f7fa;
  --photo-surface: #fff;
  --photo-surface-soft: #fafbfe;
  --photo-ink: #20242d;
  --photo-muted: #677180;
  --photo-faint: #8a93a1;
  --photo-blue: #315fe5;
  --photo-blue-soft: #eaf0ff;
  --photo-blue-wash: #f1f5ff;
  --photo-green: #2d7448;
  --photo-green-soft: #e9f4eb;
  --photo-amber: #916315;
  --photo-amber-soft: #fff5df;
  --photo-red: #b84d3b;
  --photo-red-soft: #fff0ed;
  --photo-line: #e4e7ed;
  --photo-radius: 18px;
  --photo-shadow: 0 18px 48px rgba(34, 44, 66, .07);
  --photo-shadow-hover: 0 16px 34px rgba(49, 95, 229, .12);
  --photo-sidebar: 216px;
}

html[data-photo-ui="reels"],
html[data-photo-ui="reels"] body {
  min-width: 0;
  min-height: 100%;
  overflow-x: clip;
}

html[data-photo-ui="reels"] body {
  background: var(--photo-bg);
  color: var(--photo-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-photo-ui="reels"] *,
html[data-photo-ui="reels"] *::before,
html[data-photo-ui="reels"] *::after { box-sizing: border-box; }

html[data-photo-ui="reels"] [hidden] { display: none !important; }
html[data-photo-ui="reels"] button,
html[data-photo-ui="reels"] input,
html[data-photo-ui="reels"] select,
html[data-photo-ui="reels"] textarea { font: inherit; }
html[data-photo-ui="reels"] button,
html[data-photo-ui="reels"] a,
html[data-photo-ui="reels"] summary { touch-action: manipulation; }
html[data-photo-ui="reels"] :focus-visible {
  outline: 3px solid #88a3f7 !important;
  outline-offset: 3px;
  box-shadow: none !important;
}

/* ---------- shell ---------- */
html[data-photo-ui="reels"] #app {
  display: grid;
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  grid-template-columns: var(--photo-sidebar) minmax(0, 1fr);
  grid-template-rows: 78px minmax(0, 1fr);
  grid-template-areas: "side top" "side main";
  background: var(--photo-bg);
}

/* LDM-09B's route layer hides the old event rail for its header-only
   workspace. The clone deliberately brings one rail back and uses it as the
   canonical photo navigation. */
html[data-photo-ui="reels"][data-admin-ia="workspaces"] #app > aside {
  display: flex !important;
}

html[data-photo-ui="reels"] #app.rail {
  grid-template-columns: 76px minmax(0, 1fr);
}

html[data-photo-ui="reels"] aside {
  position: relative;
  grid-area: side;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  border-right: 1px solid var(--photo-line);
  background: #fafbfe;
  color: var(--photo-ink);
  z-index: 20;
}

html[data-photo-ui="reels"] .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  color: var(--photo-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -1px;
}
html[data-photo-ui="reels"] .brand .cam-ico {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--photo-blue-soft);
  font-size: 17px;
}
html[data-photo-ui="reels"] .side-tools { padding: 31px 0 16px; }
html[data-photo-ui="reels"] #newEvBtn,
html[data-photo-ui="reels"] .primary-action,
html[data-photo-ui="reels"] #createBtn {
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--photo-blue);
  border-radius: 11px;
  background: var(--photo-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: none;
}
html[data-photo-ui="reels"] #newEvBtn { width: 100%; }
html[data-photo-ui="reels"] #newEvBtn:hover,
html[data-photo-ui="reels"] .primary-action:hover,
html[data-photo-ui="reels"] #createBtn:hover { filter: brightness(.95); }
html[data-photo-ui="reels"] #evSearch {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid var(--photo-line);
  border-radius: 10px;
  background: #fff;
  color: var(--photo-ink);
  box-shadow: none;
}
html[data-photo-ui="reels"] #evSearch::placeholder { color: var(--photo-faint); }

/* The new left workspace navigation is the only section language in the lab. */
html[data-photo-ui="reels"] #photoWorkspaceNav {
  display: none;
  min-width: 0;
  padding: 6px 0 18px;
  border-bottom: 1px solid var(--photo-line);
}
html[data-photo-ui="reels"] #photoWorkspaceNav .photo-nav-label {
  margin: 0 0 8px;
  color: var(--photo-faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
html[data-photo-ui="reels"] #photoWorkspaceNav button,
html[data-photo-ui="reels"] #photoWorkspaceNav a {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #748092;
  font-size: 14px;
  font-weight: 550;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
html[data-photo-ui="reels"] #photoWorkspaceNav button span:first-child,
html[data-photo-ui="reels"] #photoWorkspaceNav a span:first-child {
  width: 20px;
  color: currentColor;
  font-size: 19px;
  text-align: center;
}
html[data-photo-ui="reels"] .photo-nav-icon { display: grid; place-items: center; }
html[data-photo-ui="reels"] .photo-nav-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
html[data-photo-ui="reels"] .photo-nav-icon rect { fill: none; }
html[data-photo-ui="reels"] #photoWorkspaceNav button:hover,
html[data-photo-ui="reels"] #photoWorkspaceNav a:hover { background: #f0f2f7; }
html[data-photo-ui="reels"] #photoWorkspaceNav button.is-active {
  background: var(--photo-blue-soft);
  color: var(--photo-blue);
}
html[data-photo-ui="reels"][data-admin-view="workspace"] #photoWorkspaceNav { display: block !important; }

html[data-photo-ui="reels"] nav#evNav {
  min-width: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 0 12px;
  scrollbar-width: thin;
}
html[data-photo-ui="reels"] #photoWorkspaceNav + nav#evNav { border-top: 0; }
html[data-photo-ui="reels"] .navhead {
  padding: 10px 4px 7px;
  color: var(--photo-faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.5px;
}
html[data-photo-ui="reels"] .evitem {
  width: 100%;
  min-height: 44px;
  margin: 2px 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  border-left: 0;
  background: transparent;
  color: #748092;
}
html[data-photo-ui="reels"] .evitem:hover { background: #f0f2f7; }
html[data-photo-ui="reels"] .evitem.sel { background: var(--photo-blue-soft); border-left: 0; color: var(--photo-blue); }
html[data-photo-ui="reels"] .evmeta .nm { color: inherit; }
html[data-photo-ui="reels"] .evmeta .sub2 { color: var(--photo-faint); }
html[data-photo-ui="reels"] .collapse-btn {
  width: 100%;
  min-height: 40px;
  margin: auto 0 0;
  padding: 8px;
  border: 1px solid var(--photo-line);
  border-radius: 10px;
  background: #fff;
  color: var(--photo-muted);
}
html[data-photo-ui="reels"] #app.rail aside { padding-inline: 14px; }
html[data-photo-ui="reels"] #app.rail .brand { justify-content: center; }
html[data-photo-ui="reels"] #app.rail .brand span:not(.cam-ico),
html[data-photo-ui="reels"] #app.rail .side-tools,
html[data-photo-ui="reels"] #app.rail #photoWorkspaceNav,
html[data-photo-ui="reels"] #app.rail nav#evNav,
html[data-photo-ui="reels"] #app.rail .collapse-btn { display: none; }

html[data-photo-ui="reels"] header#top {
  grid-area: top;
  min-width: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 36px;
  border-bottom: 1px solid var(--photo-line);
  background: #fff;
  box-shadow: none;
  z-index: 10;
}
html[data-photo-ui="reels"] .admin-top-context,
html[data-photo-ui="reels"] #topStats,
html[data-photo-ui="reels"] .health {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
html[data-photo-ui="reels"] .admin-top-context { flex: 1 1 auto; overflow: hidden; }
html[data-photo-ui="reels"] .admin-back,
html[data-photo-ui="reels"] .admin-home {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--photo-line);
  border-radius: 10px;
  background: #fff;
  color: var(--photo-muted);
  font-weight: 650;
  cursor: pointer;
}
html[data-photo-ui="reels"] .admin-home { color: var(--photo-blue); background: var(--photo-blue-soft); border-color: transparent; }
html[data-photo-ui="reels"] .library-identity { display: none; }
html[data-photo-ui="reels"] .event-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  overflow: hidden;
}
html[data-photo-ui="reels"] #topName {
  overflow: hidden;
  color: var(--photo-ink);
  font-size: 19px;
  font-weight: 780;
  letter-spacing: -.4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-photo-ui="reels"] .codechip,
html[data-photo-ui="reels"] .rolechip {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 6px;
  background: #edf0f6;
  color: #617087;
  font-size: 11px;
  font-weight: 650;
}
html[data-photo-ui="reels"] #topStats { flex: 0 1 auto; color: var(--photo-muted); font-size: 12px; white-space: nowrap; }
html[data-photo-ui="reels"] .health {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--photo-green-soft);
  color: var(--photo-green);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
html[data-photo-ui="reels"] .health #healthDot { width: 8px; height: 8px; border-radius: 50%; background: #41ad67; }
html[data-photo-ui="reels"] .health #healthDot.bad { background: #e07c4e; }
html[data-photo-ui="reels"] #logout,
html[data-photo-ui="reels"] .secondary-action,
html[data-photo-ui="reels"] .mini,
html[data-photo-ui="reels"] .btn,
html[data-photo-ui="reels"] .btn-red {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--photo-line);
  border-radius: 10px;
  background: #fff;
  color: #3f4857;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
html[data-photo-ui="reels"] #logout:hover,
html[data-photo-ui="reels"] .secondary-action:hover,
html[data-photo-ui="reels"] .mini:hover,
html[data-photo-ui="reels"] .btn:hover { background: #edf1fa; }
html[data-photo-ui="reels"] .btn-red { border-color: #efd2cb; background: var(--photo-red-soft); color: var(--photo-red); }

html[data-photo-ui="reels"] main {
  grid-area: main;
  min-width: 0;
  overflow-y: auto;
  overflow-x: clip;
  padding: 38px 36px 160px;
  background: var(--photo-bg);
  scrollbar-width: thin;
}
html[data-photo-ui="reels"] #workspaceTabs { display: none !important; }
html[data-photo-ui="reels"] .panel,
html[data-photo-ui="reels"] .admin-page {
  width: min(100%, 1240px);
  min-width: 0;
  margin: 0 auto 22px;
  padding: 26px;
  border: 1px solid var(--photo-line);
  border-radius: var(--photo-radius);
  background: var(--photo-surface);
  box-shadow: none;
}
html[data-photo-ui="reels"] .panel.on { animation: photo-panel-in .18s ease-out; }
@keyframes photo-panel-in { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }
html[data-photo-ui="reels"] h1,
html[data-photo-ui="reels"] h2,
html[data-photo-ui="reels"] h3 { color: var(--photo-ink); letter-spacing: -.5px; }
html[data-photo-ui="reels"] h1 { margin-bottom: 14px; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
html[data-photo-ui="reels"] h2 { font-size: 22px; line-height: 1.3; }
html[data-photo-ui="reels"] h3 { font-size: 17px; }
html[data-photo-ui="reels"] p { color: var(--photo-muted); }
html[data-photo-ui="reels"] .admin-eyebrow,
html[data-photo-ui="reels"] .people-eyebrow {
  margin-bottom: 10px;
  color: var(--photo-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
html[data-photo-ui="reels"] .hintline { color: var(--photo-muted); font-size: 13px; font-weight: 450; }
html[data-photo-ui="reels"] .statrow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 10px; border: 1px solid var(--photo-line); border-radius: 14px; overflow: hidden; background: #fff; }
html[data-photo-ui="reels"] .stat {
  min-width: 0;
  min-height: 112px;
  padding: 18px;
  border: 0;
  border-right: 1px solid var(--photo-line);
  border-radius: 0;
  background: #fff;
  color: var(--photo-ink);
  text-align: left;
  cursor: pointer;
}
html[data-photo-ui="reels"] .stat:last-child { border-right: 0; }
html[data-photo-ui="reels"] .stat:hover { background: var(--photo-blue-wash); }
html[data-photo-ui="reels"] .stat .lbl { display: block; color: var(--photo-muted); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
html[data-photo-ui="reels"] .stat .val { display: block; margin-top: 10px; font-size: 30px; font-weight: 780; letter-spacing: -1px; }
html[data-photo-ui="reels"] #lastUpd { margin: 0 2px 18px; color: var(--photo-faint); font-size: 12px; }
html[data-photo-ui="reels"] .ovgrid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: start; }
html[data-photo-ui="reels"] .ovgrid > div { min-width: 0; }
html[data-photo-ui="reels"] #panel-overview > .card,
html[data-photo-ui="reels"] .ovgrid .card,
html[data-photo-ui="reels"] #panel-overview .card {
  min-width: 0;
  margin-bottom: 22px;
  padding: 26px;
  border: 1px solid var(--photo-line);
  border-radius: var(--photo-radius);
  background: #fff;
  box-shadow: none;
}
html[data-photo-ui="reels"] #panel-overview .ovgrid > .card:last-child { margin-bottom: 0; }
html[data-photo-ui="reels"] #uploadCard { order: 0; }
html[data-photo-ui="reels"] #processingCard { order: 1; }
html[data-photo-ui="reels"] #countersCard { order: 2; }
html[data-photo-ui="reels"] #feedCard { order: 0; }
html[data-photo-ui="reels"] #drop {
  display: grid;
  min-height: 180px;
  margin-top: 18px;
  padding: 24px;
  place-content: center;
  gap: 7px;
  border: 1.5px dashed #c4cfe6;
  border-radius: 16px;
  background: var(--photo-blue-wash);
  color: var(--photo-muted);
  text-align: center;
  cursor: pointer;
}
html[data-photo-ui="reels"] #drop:hover,
html[data-photo-ui="reels"] #drop.is-dragging { border-color: var(--photo-blue); background: #e1eaff; }
html[data-photo-ui="reels"] #drop b { color: var(--photo-blue); font-size: 15px; }
html[data-photo-ui="reels"] #feedCard { position: sticky; top: 0; }
html[data-photo-ui="reels"] #feedHead { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
html[data-photo-ui="reels"] #feedHead h3 { flex: 1; }
html[data-photo-ui="reels"] #feed { max-height: 590px; overflow: auto; }
html[data-photo-ui="reels"] .livepill,
html[data-photo-ui="reels"] .badge,
html[data-photo-ui="reels"] .event-status { border-radius: 6px; font-size: 11px; font-weight: 650; }
html[data-photo-ui="reels"] .livepill { padding: 5px 8px; background: var(--photo-green-soft); color: var(--photo-green); }
html[data-photo-ui="reels"] .empty { color: var(--photo-muted); }
html[data-photo-ui="reels"] #counters { display: grid; gap: 12px; }
html[data-photo-ui="reels"] .counter-card,
html[data-photo-ui="reels"] .counter,
html[data-photo-ui="reels"] .qr-card { min-width: 0; border-color: var(--photo-line) !important; border-radius: 14px !important; background: var(--photo-surface-soft) !important; }

/* ---------- pages and media grids ---------- */
html[data-photo-ui="reels"] .events-page-head,
html[data-photo-ui="reels"] .create-event-intro,
html[data-photo-ui="reels"] .people-heading,
html[data-photo-ui="reels"] .logs-page-head,
html[data-photo-ui="reels"] .settings-heading { margin-bottom: 26px; }
html[data-photo-ui="reels"] .events-page-head,
html[data-photo-ui="reels"] .create-event-intro,
html[data-photo-ui="reels"] .people-heading,
html[data-photo-ui="reels"] .logs-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
html[data-photo-ui="reels"] .event-library-tools,
html[data-photo-ui="reels"] .people-tools,
html[data-photo-ui="reels"] .photo-tools,
html[data-photo-ui="reels"] .logs-tools { display: flex; min-width: 0; align-items: end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
html[data-photo-ui="reels"] .event-library-search,
html[data-photo-ui="reels"] .people-search,
html[data-photo-ui="reels"] .logs-search { display: grid; min-width: min(100%, 300px); gap: 5px; color: var(--photo-muted); font-size: 11px; font-weight: 650; }
html[data-photo-ui="reels"] .event-library-search input,
html[data-photo-ui="reels"] .people-search input,
html[data-photo-ui="reels"] .logs-search input,
html[data-photo-ui="reels"] .create-field input,
html[data-photo-ui="reels"] .create-field select,
html[data-photo-ui="reels"] .people-sort select {
  min-width: 0;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--photo-line);
  border-radius: 11px;
  background: #fff;
  color: var(--photo-ink);
}
html[data-photo-ui="reels"] #eventLibraryFilters,
html[data-photo-ui="reels"] #peopleFilters,
html[data-photo-ui="reels"] .photo-filter,
html[data-photo-ui="reels"] #logsFilters { display: flex; min-width: 0; margin: 0; padding: 3px; gap: 2px; border: 1px solid var(--photo-line); border-radius: 11px; background: #edf0f6; }
html[data-photo-ui="reels"] #eventLibraryFilters legend,
html[data-photo-ui="reels"] #peopleFilters legend,
html[data-photo-ui="reels"] .photo-filter legend,
html[data-photo-ui="reels"] #logsFilters legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html[data-photo-ui="reels"] #eventLibraryFilters label,
html[data-photo-ui="reels"] #peopleFilters label,
html[data-photo-ui="reels"] .photo-filter label,
html[data-photo-ui="reels"] #logsFilters label { min-width: 0; }
html[data-photo-ui="reels"] #eventLibraryFilters input,
html[data-photo-ui="reels"] #peopleFilters input,
html[data-photo-ui="reels"] .photo-filter input,
html[data-photo-ui="reels"] #logsFilters input { position: absolute; opacity: 0; pointer-events: none; }
html[data-photo-ui="reels"] #eventLibraryFilters span,
html[data-photo-ui="reels"] #peopleFilters span,
html[data-photo-ui="reels"] .photo-filter span,
html[data-photo-ui="reels"] #logsFilters span { display: grid; min-height: 40px; padding: 0 11px; place-items: center; border-radius: 8px; color: var(--photo-muted); cursor: pointer; font-size: 12px; font-weight: 650; white-space: nowrap; }
html[data-photo-ui="reels"] #eventLibraryFilters input:checked + span,
html[data-photo-ui="reels"] #peopleFilters input:checked + span,
html[data-photo-ui="reels"] .photo-filter input:checked + span,
html[data-photo-ui="reels"] #logsFilters input:checked + span { color: var(--photo-ink); background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.1); }
html[data-photo-ui="reels"] .event-grid,
html[data-photo-ui="reels"] .people-grid,
html[data-photo-ui="reels"] .pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; }
html[data-photo-ui="reels"] .event-card,
html[data-photo-ui="reels"] .person-card,
html[data-photo-ui="reels"] .photo-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--photo-line);
  border-radius: 16px;
  background: #fff;
  color: var(--photo-ink);
  box-shadow: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
html[data-photo-ui="reels"] .event-card:hover,
html[data-photo-ui="reels"] .person-card:hover,
html[data-photo-ui="reels"] .photo-card:hover { border-color: #c8d3ee; box-shadow: var(--photo-shadow-hover); transform: translateY(-2px); }
html[data-photo-ui="reels"] .event-card { display: grid; min-height: 190px; padding: 18px; text-align: left; }
html[data-photo-ui="reels"] .event-card strong { overflow-wrap: anywhere; font-size: 18px; }
html[data-photo-ui="reels"] .event-card-top,
html[data-photo-ui="reels"] .event-card-metrics,
html[data-photo-ui="reels"] .event-card-open { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
html[data-photo-ui="reels"] .event-card-open { align-self: end; color: var(--photo-blue); font-weight: 650; }
html[data-photo-ui="reels"] .person-card { position: relative; display: grid; grid-template-columns: 64px minmax(0,1fr) auto; min-height: 92px; align-items: center; gap: 12px; padding: 14px; text-align: left; }
html[data-photo-ui="reels"] .person-card-photo,
html[data-photo-ui="reels"] .person-detail-thumb { display: grid; width: 64px; height: 64px; place-items: center; overflow: hidden; border-radius: 50%; background: #edf0f6; color: var(--photo-blue); }
html[data-photo-ui="reels"] .person-card-photo img,
html[data-photo-ui="reels"] .person-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
html[data-photo-ui="reels"] .person-card-copy { min-width: 0; }
html[data-photo-ui="reels"] .person-card-copy strong { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
html[data-photo-ui="reels"] .person-card-copy span { display: block; margin-top: 4px; color: var(--photo-muted); font-size: 12px; }
html[data-photo-ui="reels"] .person-chevron { color: var(--photo-faint); font-size: 24px; }
html[data-photo-ui="reels"] .pgrid { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
html[data-photo-ui="reels"] .photo-card { padding: 10px; }
html[data-photo-ui="reels"] .photo-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 11px; background: #edf0f6; }
html[data-photo-ui="reels"] .photo-tools { align-items: center; }
html[data-photo-ui="reels"] .photo-tools > label { color: var(--photo-muted); font-size: 13px; }

/* ---------- people, logs, settings and dialogs ---------- */
html[data-photo-ui="reels"] #peopleSimple { min-width: 0; }
html[data-photo-ui="reels"] .people-heading { align-items: end; }
html[data-photo-ui="reels"] .people-heading h2,
html[data-photo-ui="reels"] .logs-page-head h2,
html[data-photo-ui="reels"] .settings-heading h2 { margin: 0 0 6px; }
html[data-photo-ui="reels"] .people-heading p { margin: 0; }
html[data-photo-ui="reels"] .people-live-status { display: inline-flex; min-height: 28px; margin-top: 10px; padding: 0 10px; align-items: center; border-radius: 999px; background: var(--photo-green-soft); color: var(--photo-green); font-size: 11px; font-weight: 650; }
html[data-photo-ui="reels"] .people-live-status::before { width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #34c759; content: ""; }
html[data-photo-ui="reels"] #guestLegacy { margin-top: 20px; border-color: var(--photo-line); border-radius: 14px; }
html[data-photo-ui="reels"] .tbl-tools { padding: 16px; border-bottom: 1px solid var(--photo-line); }
html[data-photo-ui="reels"] table { min-width: 720px; border-collapse: collapse; }
html[data-photo-ui="reels"] th { color: var(--photo-muted); font-size: 11px; letter-spacing: .7px; text-transform: uppercase; }
html[data-photo-ui="reels"] th,
html[data-photo-ui="reels"] td { padding: 14px 16px; border-bottom: 1px solid var(--photo-line); text-align: left; }
html[data-photo-ui="reels"] .logs-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
html[data-photo-ui="reels"] .logs-summary > div { min-width: 0; padding: 16px; border: 1px solid var(--photo-line); border-radius: 14px; background: var(--photo-surface-soft); }
html[data-photo-ui="reels"] .logs-summary span { display: block; color: var(--photo-muted); font-size: 11px; font-weight: 650; }
html[data-photo-ui="reels"] .logs-summary b { display: block; margin-top: 6px; font-size: 25px; }
html[data-photo-ui="reels"] .logs-list { display: grid; gap: 10px; }
html[data-photo-ui="reels"] .log-row { min-width: 0; padding: 13px 15px; border: 1px solid var(--photo-line); border-radius: 12px; background: #fff; }
html[data-photo-ui="reels"] .dz { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--photo-line); border-radius: 14px; }
html[data-photo-ui="reels"] .dzrow { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 20px; border-bottom: 1px solid var(--photo-line); }
html[data-photo-ui="reels"] .dzrow:last-child { border-bottom: 0; }
html[data-photo-ui="reels"] .dzrow .tx { min-width: 0; }
html[data-photo-ui="reels"] .dzrow .tx b { display: block; margin-bottom: 4px; }
html[data-photo-ui="reels"] .dzrow .tx span { display: block; color: var(--photo-muted); font-size: 13px; line-height: 1.55; }
html[data-photo-ui="reels"] dialog { max-width: min(900px, calc(100vw - 32px)); width: 100%; padding: 0; border: 0; border-radius: 18px; box-shadow: 0 28px 80px rgba(15, 22, 36, .28); }
html[data-photo-ui="reels"] dialog::backdrop { background: rgba(24, 31, 46, .52); backdrop-filter: blur(4px); }
html[data-photo-ui="reels"] .person-sheet { padding: 24px; }
html[data-photo-ui="reels"] .person-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--photo-line); }
html[data-photo-ui="reels"] #personDetailClose { min-height: 42px; width: 42px; padding: 0; border: 1px solid var(--photo-line); border-radius: 50%; background: #fff; font-size: 22px; cursor: pointer; }
html[data-photo-ui="reels"] .person-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 12px; }
html[data-photo-ui="reels"] .person-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
html[data-photo-ui="reels"] .create-event-page .card { max-width: 700px; margin: 0; }
html[data-photo-ui="reels"] #app #newEvForm { display: block; margin-top: 0; }
html[data-photo-ui="reels"] .create-field { display: grid; gap: 7px; margin-bottom: 18px; color: var(--photo-muted); font-size: 12px; font-weight: 650; }
html[data-photo-ui="reels"] .create-field b,
html[data-photo-ui="reels"] .create-field em { color: var(--photo-faint); font-style: normal; font-weight: 500; }
html[data-photo-ui="reels"] .create-field small { color: var(--photo-muted); font-size: 12px; font-weight: 400; }
html[data-photo-ui="reels"] .create-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
html[data-photo-ui="reels"] #loginWrap { background: rgba(246,247,250,.96); }
html[data-photo-ui="reels"] #loginWrap .card { width: min(430px, calc(100vw - 32px)); padding: 30px; border: 1px solid var(--photo-line); border-radius: 18px; background: #fff; box-shadow: var(--photo-shadow); }
html[data-photo-ui="reels"] #loginWrap input { width: 100%; min-height: 48px; margin: 12px 0; padding: 0 13px; border: 1px solid var(--photo-line); border-radius: 11px; }
html[data-photo-ui="reels"] ldm-ui-switch { display: none !important; }

/* ---------- mobile / tablet ---------- */
html[data-photo-ui="reels"] #mbMenuBtn,
html[data-photo-ui="reels"] #mbBackdrop { display: none; }
@media (max-width: 1150px) {
  html[data-photo-ui="reels"] aside { width: 184px; padding-inline: 14px; }
  html[data-photo-ui="reels"] #app { grid-template-columns: 184px minmax(0,1fr); }
  html[data-photo-ui="reels"] header#top { padding-inline: 24px; }
  html[data-photo-ui="reels"] main { padding: 30px 24px 150px; }
  html[data-photo-ui="reels"] .ovgrid { grid-template-columns: 1fr; }
  html[data-photo-ui="reels"] #feedCard { position: static; }
}
@media (max-width: 800px) {
  html[data-photo-ui="reels"] #app,
  html[data-photo-ui="reels"] #app.rail { display: block; height: auto; min-height: 100dvh; }
  /* The legacy drawer rules still exist in dashboard.css. Explicitly reset
     them in the lab so mobile keeps the same visible horizontal workspace
     rail as Reels instead of opening off-canvas with a blank header. */
  html[data-photo-ui="reels"] aside { position: sticky; top: 0; left: auto; bottom: auto; width: 100%; height: auto; min-height: 0; padding: 16px 20px 0; border-right: 0; border-bottom: 1px solid var(--photo-line); transform: none !important; visibility: visible !important; box-shadow: none !important; }
  html[data-photo-ui="reels"] aside .brand { margin-bottom: 14px; }
  html[data-photo-ui="reels"] aside .side-tools { display: none; }
  html[data-photo-ui="reels"][data-admin-view="workspace"] #photoWorkspaceNav { display: flex !important; overflow-x: auto; gap: 4px; padding: 0; border: 0; scrollbar-width: none; }
  html[data-photo-ui="reels"] #photoWorkspaceNav::-webkit-scrollbar { display: none; }
  html[data-photo-ui="reels"] #photoWorkspaceNav .photo-nav-label { display: none; }
  html[data-photo-ui="reels"] #photoWorkspaceNav button,
  html[data-photo-ui="reels"] #photoWorkspaceNav a { width: auto; min-height: 46px; flex: 0 0 auto; padding: 10px 13px; border-radius: 8px 8px 0 0; font-size: 12px; white-space: nowrap; }
  html[data-photo-ui="reels"] #photoWorkspaceNav button span:first-child,
  html[data-photo-ui="reels"] #photoWorkspaceNav a span:first-child { font-size: 17px; }
  html[data-photo-ui="reels"] nav#evNav { display: none; }
  html[data-photo-ui="reels"] .collapse-btn { display: none; }
  html[data-photo-ui="reels"] header#top { min-height: 60px; padding: 0 20px; gap: 8px; }
  html[data-photo-ui="reels"] .admin-back span,
  html[data-photo-ui="reels"] .admin-home span:not([aria-hidden]) { display: none; }
  html[data-photo-ui="reels"] .admin-back,
  html[data-photo-ui="reels"] .admin-home { width: 42px; padding: 0; }
  html[data-photo-ui="reels"] #topStats { display: none; }
  html[data-photo-ui="reels"] #topName { max-width: 36vw; font-size: 16px; }
  html[data-photo-ui="reels"] .codechip { display: none; }
  html[data-photo-ui="reels"] .health { padding: 6px 8px; font-size: 11px; }
  html[data-photo-ui="reels"] .health #healthTx { max-width: 70px; overflow: hidden; text-overflow: ellipsis; }
  html[data-photo-ui="reels"] #logout { min-height: 40px; padding: 8px 10px; font-size: 12px; }
  html[data-photo-ui="reels"] main { padding: 26px 20px calc(120px + env(safe-area-inset-bottom)); }
  html[data-photo-ui="reels"] .panel,
  html[data-photo-ui="reels"] .admin-page { padding: 20px; border-radius: 16px; }
  html[data-photo-ui="reels"] .statrow { grid-template-columns: repeat(2, minmax(0,1fr)); }
  html[data-photo-ui="reels"] .stat:nth-child(2) { border-right: 0; }
  html[data-photo-ui="reels"] .stat:nth-child(-n+2) { border-bottom: 1px solid var(--photo-line); }
  html[data-photo-ui="reels"] .stat { min-height: 98px; padding: 15px; }
  html[data-photo-ui="reels"] .stat .val { font-size: 26px; }
  html[data-photo-ui="reels"] .events-page-head,
  html[data-photo-ui="reels"] .create-event-intro,
  html[data-photo-ui="reels"] .people-heading,
  html[data-photo-ui="reels"] .logs-page-head { display: block; }
  html[data-photo-ui="reels"] .events-page-head > button,
  html[data-photo-ui="reels"] .logs-actions { margin-top: 16px; }
  html[data-photo-ui="reels"] .event-library-tools,
  html[data-photo-ui="reels"] .people-tools,
  html[data-photo-ui="reels"] .photo-tools,
  html[data-photo-ui="reels"] .logs-tools { align-items: stretch; }
  html[data-photo-ui="reels"] .event-library-search,
  html[data-photo-ui="reels"] .people-search,
  html[data-photo-ui="reels"] .logs-search { width: 100%; }
  html[data-photo-ui="reels"] .logs-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
  html[data-photo-ui="reels"] .dzrow { display: grid; gap: 14px; padding: 18px; }
  html[data-photo-ui="reels"] .retention-actions,
  html[data-photo-ui="reels"] .pg-btns { justify-content: stretch; }
  html[data-photo-ui="reels"] .retention-actions > *,
  html[data-photo-ui="reels"] .pg-btns > * { flex: 1 1 100%; }
  html[data-photo-ui="reels"] .create-actions { display: grid; grid-template-columns: 1fr; }
  html[data-photo-ui="reels"] #drop { min-height: 150px; }
}
@media (max-width: 440px) {
  html[data-photo-ui="reels"] aside { padding-inline: 14px; }
  html[data-photo-ui="reels"] header#top { padding-inline: 14px; }
  html[data-photo-ui="reels"] main { padding-inline: 14px; }
  html[data-photo-ui="reels"] .panel,
  html[data-photo-ui="reels"] .admin-page { padding: 18px; }
  html[data-photo-ui="reels"] .brand { font-size: 18px; }
  html[data-photo-ui="reels"] .health { display: none; }
  html[data-photo-ui="reels"] #topName { max-width: 48vw; }
  html[data-photo-ui="reels"] .person-card { grid-template-columns: 52px minmax(0,1fr) auto; padding: 11px; }
  html[data-photo-ui="reels"] .person-card-photo { width: 52px; height: 52px; }
  html[data-photo-ui="reels"] .stat { padding: 13px; }
  html[data-photo-ui="reels"] .stat .lbl { letter-spacing: .5px; font-size: 10px; }
  html[data-photo-ui="reels"] #logsFilters span,
  html[data-photo-ui="reels"] #peopleFilters span,
  html[data-photo-ui="reels"] .photo-filter span { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-photo-ui="reels"] *, html[data-photo-ui="reels"] *::before, html[data-photo-ui="reels"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- studio polish pass ----------
 * The first lab pass established the Reels shell. This pass removes the
 * dashboard-within-a-dashboard feeling: the field is quieter, content has a
 * clearer reading order, and important actions get one intentional focal
 * point. It remains clone-only and additive.
 */
html[data-photo-ui="reels"] {
  --photo-bg: #f1f3f7;
  --photo-surface: #ffffff;
  --photo-surface-soft: #f8f9fc;
  --photo-ink: #1f2430;
  --photo-muted: #687285;
  --photo-faint: #8b95a6;
  --photo-blue: #315fe5;
  --photo-blue-soft: #e8eeff;
  --photo-blue-wash: #f3f6ff;
  --photo-line: #dfe4ec;
  --photo-shadow: 0 12px 28px rgba(29, 41, 67, .055);
  --photo-shadow-hover: 0 16px 32px rgba(49, 95, 229, .13);
  --photo-sidebar: 232px;
}

html[data-photo-ui="reels"] body {
  background-color: var(--photo-bg);
  background-image:
    radial-gradient(circle at 78% -12%, rgba(49, 95, 229, .08), transparent 34rem),
    radial-gradient(circle at 14% 20%, rgba(255, 255, 255, .72), transparent 28rem);
}

html[data-photo-ui="reels"] #app {
  grid-template-columns: var(--photo-sidebar) minmax(0, 1fr);
  grid-template-rows: 72px minmax(0, 1fr);
}

html[data-photo-ui="reels"] aside {
  padding: 26px 18px 18px;
  background: rgba(250, 251, 253, .94);
  border-right-color: #e0e5ed;
}

html[data-photo-ui="reels"] .brand {
  gap: 11px;
  padding: 0 4px;
  font-size: 18px;
  letter-spacing: -.7px;
}

html[data-photo-ui="reels"] .brand .cam-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--photo-blue);
  color: #fff;
  box-shadow: 0 7px 14px rgba(49, 95, 229, .2);
}

html[data-photo-ui="reels"] .side-tools { padding: 28px 2px 16px; }

html[data-photo-ui="reels"] #newEvBtn {
  min-height: 46px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(49, 95, 229, .18);
}

html[data-photo-ui="reels"] #evSearch {
  min-height: 40px;
  margin-top: 12px;
  background: rgba(255, 255, 255, .85);
}

html[data-photo-ui="reels"] #photoWorkspaceNav {
  padding: 5px 0 20px;
  border-bottom-color: #e3e7ee;
}

html[data-photo-ui="reels"] #photoWorkspaceNav button,
html[data-photo-ui="reels"] #photoWorkspaceNav a {
  min-height: 44px;
  margin: 2px 0;
  border-radius: 11px;
  color: #667185;
}

html[data-photo-ui="reels"] #photoWorkspaceNav button span:first-child,
html[data-photo-ui="reels"] #photoWorkspaceNav a span:first-child {
  width: 22px;
  color: #8994a5;
  font-size: 17px;
}

html[data-photo-ui="reels"] #photoWorkspaceNav button.is-active {
  color: var(--photo-blue);
  background: var(--photo-blue-soft);
  box-shadow: inset 3px 0 0 var(--photo-blue);
}

html[data-photo-ui="reels"] #photoWorkspaceNav button.is-active span:first-child { color: var(--photo-blue); }
html[data-photo-ui="reels"] #photoWorkspaceNav button:hover,
html[data-photo-ui="reels"] #photoWorkspaceNav a:hover { background: #eef1f6; }

html[data-photo-ui="reels"] nav#evNav { padding-top: 24px; }
html[data-photo-ui="reels"] .navhead { padding-inline: 4px; }
html[data-photo-ui="reels"] .evitem {
  min-height: 52px;
  margin: 3px 0;
  padding: 10px 11px;
  border-radius: 11px;
}
html[data-photo-ui="reels"] .evitem.sel {
  background: #fff;
  color: var(--photo-ink);
  box-shadow: 0 5px 16px rgba(30, 46, 78, .07);
}
html[data-photo-ui="reels"] .evitem.sel::before {
  width: 3px;
  height: 24px;
  border-radius: 999px;
  background: var(--photo-blue);
  content: "";
}
html[data-photo-ui="reels"] .evitem.sel .evmeta .nm { color: var(--photo-ink); }
html[data-photo-ui="reels"] .collapse-btn { background: rgba(255, 255, 255, .78); }

html[data-photo-ui="reels"] header#top {
  min-height: 72px;
  padding: 0 32px;
  background: rgba(255, 255, 255, .91);
  backdrop-filter: blur(12px);
  border-bottom-color: #e2e6ed;
}

html[data-photo-ui="reels"] .admin-back,
html[data-photo-ui="reels"] .admin-home {
  min-height: 38px;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 12px;
}
html[data-photo-ui="reels"] .admin-home { font-weight: 700; }
html[data-photo-ui="reels"] #topName { font-size: 18px; letter-spacing: -.55px; }
html[data-photo-ui="reels"] .codechip { background: #eef1f6; }
html[data-photo-ui="reels"] #topStats {
  gap: 13px;
  padding: 0 12px;
  color: #7b8595;
  font-size: 11px;
}
html[data-photo-ui="reels"] .health {
  padding: 6px 9px;
  background: #f4f6f8;
  color: #647083;
  font-size: 11px;
}
html[data-photo-ui="reels"] .health #healthDot { background: #6fba7e; }
html[data-photo-ui="reels"] .health #healthDot.bad { background: #e1a15e; }
html[data-photo-ui="reels"] #logout { min-height: 38px; padding: 7px 12px; font-size: 12px; }

html[data-photo-ui="reels"] main {
  padding: 30px 38px 140px;
  background: transparent;
}

/* The overview is a canvas, not another white wrapper around white cards. */
html[data-photo-ui="reels"] #panel-overview {
  width: min(100%, 1280px);
  padding: 0;
  border: 0;
  background: transparent;
}
html[data-photo-ui="reels"] #panel-overview::before {
  display: block;
  margin: 0 0 18px 2px;
  color: var(--photo-faint);
  content: "EVENT WORKSPACE";
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
html[data-photo-ui="reels"] .workspace-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  min-height: 164px;
  margin-bottom: 18px;
  padding: 26px 28px;
  overflow: hidden;
  border: 1px solid #d9e2fb;
  border-radius: 18px;
  background: radial-gradient(circle at 92% 8%, rgba(143, 174, 255, .4), transparent 13rem), linear-gradient(120deg, #eef3ff 0%, #f8fbff 58%, #fff 100%);
  box-shadow: 0 14px 28px rgba(49, 95, 229, .08);
}
html[data-photo-ui="reels"] .workspace-hero::after {
  position: absolute;
  top: 24px;
  right: 34px;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(49, 95, 229, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(49, 95, 229, .035), 0 0 0 44px rgba(49, 95, 229, .025);
  content: "";
  pointer-events: none;
}
html[data-photo-ui="reels"] .workspace-hero-copy { position: relative; z-index: 1; min-width: 0; max-width: 680px; }
html[data-photo-ui="reels"] .workspace-hero-copy .admin-eyebrow { margin-bottom: 7px; color: var(--photo-blue); }
html[data-photo-ui="reels"] .workspace-hero-copy h1 { margin: 0 0 8px; font-size: clamp(25px, 3vw, 36px); letter-spacing: -1.2px; }
html[data-photo-ui="reels"] .workspace-hero-copy p:last-child { max-width: 610px; margin: 0; color: #647186; font-size: 14px; }
html[data-photo-ui="reels"] .workspace-hero-actions { position: relative; z-index: 1; display: flex; flex: 0 0 auto; gap: 9px; align-items: center; }
html[data-photo-ui="reels"] .workspace-hero-actions .primary-action,
html[data-photo-ui="reels"] .workspace-hero-actions .secondary-action { min-height: 42px; }

html[data-photo-ui="reels"] .statrow {
  display: grid;
  gap: 12px;
  margin-bottom: 10px;
  overflow: visible;
  border: 0;
  background: transparent;
}
html[data-photo-ui="reels"] .stat {
  position: relative;
  min-height: 118px;
  padding: 19px 20px;
  overflow: hidden;
  border: 1px solid var(--photo-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .93);
  box-shadow: var(--photo-shadow);
}
html[data-photo-ui="reels"] .stat::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--photo-blue), #8eaeff);
  content: "";
  opacity: .92;
}
html[data-photo-ui="reels"] .stat .val { margin-top: 12px; font-size: 32px; letter-spacing: -1.4px; }
html[data-photo-ui="reels"] .stat:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--photo-shadow-hover); }

html[data-photo-ui="reels"] #lastUpd { margin: 0 2px 20px; }
html[data-photo-ui="reels"] .ovgrid { gap: 18px; }
html[data-photo-ui="reels"] #panel-overview .ovgrid .card {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--photo-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--photo-shadow);
}
html[data-photo-ui="reels"] #panel-overview .ovgrid .card h3 {
  margin-bottom: 5px;
  font-size: 16px;
  letter-spacing: -.3px;
}
html[data-photo-ui="reels"] #uploadCard { border-top: 3px solid var(--photo-blue) !important; }
html[data-photo-ui="reels"] #drop {
  position: relative;
  min-height: 196px;
  margin-top: 20px;
  border: 1px dashed #a9bce9;
  border-radius: 15px;
  background: linear-gradient(145deg, #f5f7ff, #edf2ff);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
html[data-photo-ui="reels"] #drop::before {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 6px;
  place-items: center;
  border-radius: 13px;
  background: var(--photo-blue);
  color: #fff;
  content: "↑";
  font-size: 23px;
  font-weight: 750;
  box-shadow: 0 8px 16px rgba(49, 95, 229, .2);
}
html[data-photo-ui="reels"] #drop b { font-size: 16px; }
html[data-photo-ui="reels"] #drop:hover,
html[data-photo-ui="reels"] #drop.is-dragging { border-color: var(--photo-blue); background: #e7eeff; }
html[data-photo-ui="reels"] #processingCard { border-top: 3px solid #53a46c !important; }
html[data-photo-ui="reels"] #feedCard {
  border-top: 3px solid #ccd3df !important;
  background: #fbfcfe !important;
}
html[data-photo-ui="reels"] #feedHead { padding-bottom: 14px; border-bottom: 1px solid var(--photo-line); }
html[data-photo-ui="reels"] #feed { max-height: 560px; padding-top: 2px; }
html[data-photo-ui="reels"] #feed > * { border-bottom-color: #e9edf3; }
html[data-photo-ui="reels"] .fitem { min-height: 58px; padding: 11px 4px; border-bottom: 1px solid #e8ecf2; background: transparent !important; }
html[data-photo-ui="reels"] .fitem:hover { background: #f5f7fb !important; }
html[data-photo-ui="reels"] .fitem.fresh { animation: photo-feed-in .22s ease-out; background: #f5f7ff !important; }
html[data-photo-ui="reels"] .fitem.err { background: #fff7f5 !important; }
html[data-photo-ui="reels"] .fico { display: grid; width: 27px; height: 27px; place-items: center; flex: 0 0 27px; border: 1px solid #e0e5ee; border-radius: 9px; background: #f2f4f8; font-size: 12px; }
html[data-photo-ui="reels"] .ftext { color: #5c6777; font-size: 12px; line-height: 1.45; }
html[data-photo-ui="reels"] .ftime { color: #9aa3b0; font-size: 10px; }
@keyframes photo-feed-in { from { opacity: .25; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* Make secondary pages read as product surfaces rather than old dashboard panels. */
html[data-photo-ui="reels"] #eventsHome,
html[data-photo-ui="reels"] #createEventPage,
html[data-photo-ui="reels"] #panel-photos,
html[data-photo-ui="reels"] #panel-guests,
html[data-photo-ui="reels"] #panel-logs,
html[data-photo-ui="reels"] #panel-danger {
  width: min(100%, 1280px);
  padding: 28px;
  border: 1px solid var(--photo-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--photo-shadow);
}
html[data-photo-ui="reels"] .event-grid { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 18px; }
html[data-photo-ui="reels"] .event-card {
  min-height: 206px;
  padding: 20px;
  border-radius: 15px;
  background: linear-gradient(160deg, #fff 0%, #fbfcff 100%);
}
html[data-photo-ui="reels"] .event-card::before {
  width: 38px;
  height: 4px;
  margin-bottom: 20px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--photo-blue), #93b0ff);
  content: "";
}
html[data-photo-ui="reels"] .pgrid { grid-template-columns: repeat(auto-fill, minmax(min(248px, 100%), 1fr)); gap: 18px; }
html[data-photo-ui="reels"] .photo-card { padding: 9px; background: #fff; }
html[data-photo-ui="reels"] .photo-card img { aspect-ratio: 4 / 3; border-radius: 11px; }
html[data-photo-ui="reels"] .people-grid { gap: 12px; }
html[data-photo-ui="reels"] .person-card { min-height: 86px; border-radius: 13px; background: #fff; }
html[data-photo-ui="reels"] .person-card:hover { transform: translateY(-1px); }

@media (max-width: 1150px) {
  html[data-photo-ui="reels"] { --photo-sidebar: 196px; }
  html[data-photo-ui="reels"] main { padding-inline: 26px; }
  html[data-photo-ui="reels"] header#top { padding-inline: 24px; }
}

@media (max-width: 800px) {
  html[data-photo-ui="reels"] aside { padding: 14px 16px 0; }
  html[data-photo-ui="reels"] aside .brand { margin-bottom: 12px; }
  html[data-photo-ui="reels"] header#top { min-height: 58px; padding-inline: 16px; }
  html[data-photo-ui="reels"] main { padding: 22px 16px calc(112px + env(safe-area-inset-bottom)); }
  html[data-photo-ui="reels"] #panel-overview::before { margin-bottom: 14px; }
  html[data-photo-ui="reels"] #panel-overview .ovgrid .card,
  html[data-photo-ui="reels"] #eventsHome,
  html[data-photo-ui="reels"] #createEventPage,
  html[data-photo-ui="reels"] #panel-photos,
  html[data-photo-ui="reels"] #panel-guests,
  html[data-photo-ui="reels"] #panel-logs,
  html[data-photo-ui="reels"] #panel-danger { padding: 18px; border-radius: 15px; }
  html[data-photo-ui="reels"] .workspace-hero { display: block; min-height: 0; padding: 21px 19px; }
  html[data-photo-ui="reels"] .workspace-hero::after { top: 30px; right: -36px; opacity: .7; }
  html[data-photo-ui="reels"] .workspace-hero-copy h1 { max-width: 76%; font-size: 26px; }
  html[data-photo-ui="reels"] .workspace-hero-copy p:last-child { max-width: 94%; font-size: 13px; }
  html[data-photo-ui="reels"] .workspace-hero-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; }
  html[data-photo-ui="reels"] .workspace-hero-actions > * { width: 100%; }
  html[data-photo-ui="reels"] .stat { min-height: 104px; padding: 15px; }
  html[data-photo-ui="reels"] .stat .val { font-size: 27px; }
  html[data-photo-ui="reels"] #drop { min-height: 164px; }
  html[data-photo-ui="reels"] header#top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: center;
  }
  html[data-photo-ui="reels"] header#top .admin-top-context {
    display: grid;
    grid-template-columns: 40px 40px minmax(0, 1fr);
    gap: 6px;
    align-items: center;
  }
  html[data-photo-ui="reels"] header#top .event-identity { min-width: 0; }
  html[data-photo-ui="reels"] header#top #logout {
    width: 40px;
    min-height: 40px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }
  html[data-photo-ui="reels"] header#top #logout::after { content: "↪"; font-size: 18px; }
}

/* ---------- photo library finish ---------- */
html[data-photo-ui="reels"] #topStats { display: none; }
html[data-photo-ui="reels"] .event-identity { flex: 1 1 auto; }
html[data-photo-ui="reels"] #topName { max-width: min(62vw, 620px); }

html[data-photo-ui="reels"] .photo-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
html[data-photo-ui="reels"] .photo-page-head h2 { margin: 0 0 5px; font-size: 30px; letter-spacing: -1px; }
html[data-photo-ui="reels"] .photo-page-head p { margin: 0; max-width: 560px; }
html[data-photo-ui="reels"] .photo-page-head .primary-action { flex: 0 0 auto; }

/* photos.js renders .ph, not .photo-card. Own that real contract here. */
html[data-photo-ui="reels"] .pgrid {
  align-items: start;
}
html[data-photo-ui="reels"] .pgrid > .ph {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--photo-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--photo-shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
html[data-photo-ui="reels"] .pgrid > .ph:hover {
  border-color: #c3d0ef;
  box-shadow: var(--photo-shadow-hover);
  transform: translateY(-2px);
}
html[data-photo-ui="reels"] .owner-photo-open {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #edf0f5;
  color: var(--photo-muted);
  cursor: pointer;
}
html[data-photo-ui="reels"] .owner-photo-open::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: rgba(31, 36, 48, .62);
  color: #fff;
  content: "↗";
  font-size: 15px;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .16s ease, transform .16s ease;
}
html[data-photo-ui="reels"] .owner-photo-open:hover::after,
html[data-photo-ui="reels"] .owner-photo-open:focus-visible::after { opacity: 1; transform: none; }
html[data-photo-ui="reels"] .owner-photo-media,
html[data-photo-ui="reels"] .owner-photo-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
}
html[data-photo-ui="reels"] .owner-photo-media {
  object-fit: cover;
  background: linear-gradient(145deg, #eef1f6, #f8f9fb);
  opacity: 0;
  transition: opacity .18s ease, transform .22s ease;
}
html[data-photo-ui="reels"] .owner-photo-open:hover .owner-photo-media { transform: scale(1.025); }
html[data-photo-ui="reels"] .owner-photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.5), transparent 45%),
    repeating-linear-gradient(135deg, #eef1f6 0 12px, #f5f6f9 12px 24px);
  color: #8c96a7;
  font-size: 12px;
  font-weight: 650;
}
html[data-photo-ui="reels"] .ph.media-ready .owner-photo-media { opacity: 1; }
html[data-photo-ui="reels"] .ph.media-ready .owner-photo-placeholder { display: none; }
html[data-photo-ui="reels"] .ph.media-error .owner-photo-placeholder { color: #7d8797; }
html[data-photo-ui="reels"] .ph.media-error .owner-photo-placeholder::after { display: block; margin-top: 4px; color: #9ca5b3; content: "Preview unavailable"; font-size: 11px; font-weight: 500; }
html[data-photo-ui="reels"] .ph .cap { min-width: 0; padding: 13px 14px 4px; color: var(--photo-muted); font-size: 12px; line-height: 1.5; }
html[data-photo-ui="reels"] .ph .cap .fname { overflow: hidden; color: var(--photo-ink); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
html[data-photo-ui="reels"] .ph .cap b { color: var(--photo-ink); }
html[data-photo-ui="reels"] .ph .mockscore { color: #a27331; }
html[data-photo-ui="reels"] .photo-match-review { margin-top: 4px; }
html[data-photo-ui="reels"] .photo-match-review summary { color: var(--photo-blue); cursor: pointer; font-size: 11px; font-weight: 650; }
html[data-photo-ui="reels"] .photo-match-list { display: grid; gap: 4px; margin-top: 6px; }
html[data-photo-ui="reels"] .photo-match-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 7px; border-radius: 7px; background: #f5f7fb; color: var(--photo-muted); font-size: 11px; }
html[data-photo-ui="reels"] .ph > .mini,
html[data-photo-ui="reels"] .ph > .act-open-add-match,
html[data-photo-ui="reels"] .ph > .act-delphoto { margin: 8px 0 14px 14px !important; }
html[data-photo-ui="reels"] .ph .act-delphoto { border-color: #efd2cb; background: #fff4f1; color: #b84d3b; }
html[data-photo-ui="reels"] .match-unlink { min-height: 26px; padding: 2px 7px; border: 0; border-radius: 6px; background: transparent; color: var(--photo-blue); font-size: 11px; font-weight: 650; }
html[data-photo-ui="reels"] .match-unlink:hover { background: var(--photo-blue-soft); }
html[data-photo-ui="reels"] #loadMore { margin: 22px auto 0 !important; }

@media (max-width: 800px) {
  html[data-photo-ui="reels"] .photo-page-head { display: block; margin-bottom: 20px; }
  html[data-photo-ui="reels"] .photo-page-head h2 { font-size: 27px; }
  html[data-photo-ui="reels"] .photo-page-head .primary-action { width: 100%; margin-top: 16px; }
  html[data-photo-ui="reels"] #topName { max-width: 58vw; }
}

/* ---------- final studio shell ----------
 * A single deliberate visual language for the clone: editorial charcoal,
 * soft paper surfaces and the Reels blue for every meaningful action.
 */
html[data-photo-ui="reels"] {
  --photo-bg: #f3f5f8;
  --photo-sidebar: 248px;
  --studio-rail: #101725;
  --studio-rail-soft: #182235;
  --studio-rail-line: rgba(255, 255, 255, .09);
  --studio-rail-text: #f7f9ff;
  --studio-rail-muted: #909caf;
}

html[data-photo-ui="reels"] body {
  background: #f3f5f8;
  background-image: radial-gradient(circle at 84% 2%, rgba(49, 95, 229, .055), transparent 32rem);
}

html[data-photo-ui="reels"] aside {
  padding: 24px 18px 18px;
  border-right: 0;
  background: var(--studio-rail);
  color: var(--studio-rail-text);
  box-shadow: 12px 0 34px rgba(15, 23, 38, .06);
}

html[data-photo-ui="reels"] .brand {
  gap: 12px;
  padding: 0 5px 22px;
  border-bottom: 1px solid var(--studio-rail-line);
  color: var(--studio-rail-text);
}
html[data-photo-ui="reels"] .brand .cam-ico {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 13px;
  background: linear-gradient(145deg, #426df0, #274fca);
  box-shadow: 0 10px 24px rgba(20, 48, 136, .36);
}
html[data-photo-ui="reels"] .brand .cam-ico svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}
html[data-photo-ui="reels"] .brand-copy { display: grid; min-width: 0; gap: 1px; }
html[data-photo-ui="reels"] .brand-copy strong { color: #fff; font-size: 17px; letter-spacing: -.55px; line-height: 1.2; }
html[data-photo-ui="reels"] .brand-copy small { color: #8f9bae; font-size: 10px; font-weight: 650; letter-spacing: 1.2px; line-height: 1.3; text-transform: uppercase; }

html[data-photo-ui="reels"] .side-tools { padding: 22px 2px 17px; }
html[data-photo-ui="reels"] #newEvBtn {
  border-color: #426df0;
  background: linear-gradient(135deg, #426df0, #315fe5);
  box-shadow: 0 10px 24px rgba(25, 53, 146, .32);
}
html[data-photo-ui="reels"] #evSearch {
  border-color: var(--studio-rail-line);
  background: rgba(255, 255, 255, .055);
  color: #fff;
}
html[data-photo-ui="reels"] #evSearch::placeholder { color: #78859a; }
html[data-photo-ui="reels"] #evSearch:focus { border-color: rgba(118, 151, 255, .75); background: rgba(255, 255, 255, .08); }

html[data-photo-ui="reels"] #photoWorkspaceNav {
  padding: 6px 0 20px;
  border-bottom-color: var(--studio-rail-line);
}
html[data-photo-ui="reels"] #photoWorkspaceNav .photo-nav-label,
html[data-photo-ui="reels"] .navhead { color: #6f7c91; }
html[data-photo-ui="reels"] #photoWorkspaceNav button,
html[data-photo-ui="reels"] #photoWorkspaceNav a {
  min-height: 46px;
  margin: 3px 0;
  padding-inline: 13px;
  color: var(--studio-rail-muted);
}
html[data-photo-ui="reels"] #photoWorkspaceNav button:hover,
html[data-photo-ui="reels"] #photoWorkspaceNav a:hover { background: rgba(255, 255, 255, .06); color: #dbe3f1; }
html[data-photo-ui="reels"] #photoWorkspaceNav button.is-active {
  background: linear-gradient(90deg, rgba(70, 111, 239, .31), rgba(70, 111, 239, .13));
  color: #fff;
  box-shadow: inset 3px 0 0 #6f96ff;
}
html[data-photo-ui="reels"] #photoWorkspaceNav button.is-active span:first-child { color: #8eacff; }

html[data-photo-ui="reels"] nav#evNav { padding-top: 18px; }
html[data-photo-ui="reels"][data-admin-view="workspace"] nav#evNav .navhead { font-size: 0; }
html[data-photo-ui="reels"][data-admin-view="workspace"] nav#evNav .navhead::after {
  content: "CURRENT EVENT";
  font-size: 10px;
  letter-spacing: 1.5px;
}
html[data-photo-ui="reels"][data-admin-view="workspace"] nav#evNav .evitem:not(.sel) { display: none; }
html[data-photo-ui="reels"] .evitem { color: #8995a8; }
html[data-photo-ui="reels"] .evitem:hover { background: rgba(255, 255, 255, .055); color: #dbe3ef; }
html[data-photo-ui="reels"] .evitem.sel {
  min-height: 68px;
  padding: 12px;
  background: var(--studio-rail-soft);
  color: #fff;
  box-shadow: none;
}
html[data-photo-ui="reels"] .evitem.sel::before { background: #658cff; }
html[data-photo-ui="reels"] .evitem.sel .evmeta .nm { color: #fff; }
html[data-photo-ui="reels"] .evitem .evmeta .sub2 { color: #7e8a9f; }
html[data-photo-ui="reels"] .collapse-btn { display: none; }
html[data-photo-ui="reels"][data-admin-view="workspace"] #evSearch { display: none; }
html[data-photo-ui="reels"]:not([data-admin-view="workspace"]) nav#evNav { display: none; }

html[data-photo-ui="reels"] header#top {
  min-height: 76px;
  padding: 0 38px;
  border-bottom: 1px solid #e5e8ee;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 0 rgba(24, 34, 53, .02);
}
html[data-photo-ui="reels"] .admin-back,
html[data-photo-ui="reels"] .admin-home {
  border-color: #e4e8ef;
  background: #f8f9fb;
}
html[data-photo-ui="reels"] .admin-home { background: #edf2ff; }
html[data-photo-ui="reels"][data-photo-section="overview"] .admin-home { display: none; }
html[data-photo-ui="reels"] #topName { font-size: 17px; font-weight: 730; }
html[data-photo-ui="reels"] .health { border: 1px solid #e8ebf0; background: #f8f9fb; }
html[data-photo-ui="reels"] #logout { border-color: #e3e7ed; background: #fff; }

html[data-photo-ui="reels"] main { padding: 32px 40px 150px; }
html[data-photo-ui="reels"] #panel-overview::before { display: none; }

html[data-photo-ui="reels"] .workspace-hero {
  min-height: 190px;
  margin-bottom: 20px;
  padding: 32px 34px;
  border: 0;
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% -10%, rgba(99, 139, 255, .4), transparent 19rem),
    radial-gradient(circle at 100% 110%, rgba(57, 91, 201, .27), transparent 18rem),
    linear-gradient(125deg, #121a2b 0%, #18233a 62%, #1e2c4a 100%);
  box-shadow: 0 22px 46px rgba(17, 25, 42, .16);
}
html[data-photo-ui="reels"] .workspace-hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 30px 30px;
  content: "";
  mask-image: linear-gradient(90deg, transparent 12%, #000 100%);
}
html[data-photo-ui="reels"] .workspace-hero::after {
  top: 26px;
  right: 48px;
  width: 130px;
  height: 130px;
  border-color: rgba(255, 255, 255, .11);
  box-shadow: 0 0 0 25px rgba(255,255,255,.025), 0 0 0 50px rgba(255,255,255,.018);
}
html[data-photo-ui="reels"] .workspace-hero-copy .admin-eyebrow { color: #8fafff; }
html[data-photo-ui="reels"] .workspace-hero-copy h1 { color: #fff; font-size: clamp(29px, 3.1vw, 42px); letter-spacing: -1.75px; }
html[data-photo-ui="reels"] .workspace-hero-copy p:last-child { max-width: 650px; color: #b1bbcc; font-size: 14px; line-height: 1.65; }
html[data-photo-ui="reels"] .workspace-hero-actions .secondary-action { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #f5f7fb; }
html[data-photo-ui="reels"] .workspace-hero-actions .secondary-action:hover { background: rgba(255,255,255,.14); }

html[data-photo-ui="reels"] .statrow { gap: 14px; margin-bottom: 12px; }
html[data-photo-ui="reels"] .stat {
  min-height: 114px;
  padding: 19px 20px;
  border-color: #e3e7ed;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(30, 43, 68, .045);
}
html[data-photo-ui="reels"] .stat::after { right: auto; left: 20px; width: 30px; height: 3px; border-radius: 999px; }
html[data-photo-ui="reels"] .stat:nth-child(2)::after { background: #5d8aef; }
html[data-photo-ui="reels"] .stat:nth-child(3)::after { background: #49a070; }
html[data-photo-ui="reels"] .stat:nth-child(4)::after { background: #d69b4b; }
html[data-photo-ui="reels"] .stat .lbl { margin-top: 8px; color: #798394; }
html[data-photo-ui="reels"] .stat .val { font-size: 33px; }

html[data-photo-ui="reels"] #panel-overview .ovgrid .card {
  border-color: #e3e7ed;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(30, 43, 68, .045);
}
html[data-photo-ui="reels"] #uploadCard,
html[data-photo-ui="reels"] #processingCard,
html[data-photo-ui="reels"] #feedCard { border-top: 1px solid #e3e7ed !important; }
html[data-photo-ui="reels"] #drop {
  min-height: 205px;
  border-color: #b8c5dd;
  background: #f7f9fd;
}
html[data-photo-ui="reels"] #drop::before { border-radius: 12px; box-shadow: 0 8px 18px rgba(49, 95, 229, .22); }
html[data-photo-ui="reels"] #feedCard { background: #fff !important; }

html[data-photo-ui="reels"] #eventsHome,
html[data-photo-ui="reels"] #createEventPage,
html[data-photo-ui="reels"] #panel-photos,
html[data-photo-ui="reels"] #panel-guests,
html[data-photo-ui="reels"] #panel-logs,
html[data-photo-ui="reels"] #panel-danger {
  padding: 32px;
  border-color: #e2e6ed;
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(31, 44, 71, .055);
}

html[data-photo-ui="reels"] .event-card,
html[data-photo-ui="reels"] .person-card,
html[data-photo-ui="reels"] .pgrid > .ph { border-color: #e2e6ec; box-shadow: 0 8px 20px rgba(27, 40, 65, .045); }
html[data-photo-ui="reels"] .event-card { min-height: 220px; padding: 22px; }
html[data-photo-ui="reels"] .event-card::before { width: 44px; background: #315fe5; }
html[data-photo-ui="reels"] .photo-page-head h2,
html[data-photo-ui="reels"] .people-heading h2,
html[data-photo-ui="reels"] .logs-page-head h2,
html[data-photo-ui="reels"] .settings-heading h2 { font-size: 30px; letter-spacing: -1px; }

@media (max-width: 1150px) and (min-width: 801px) {
  html[data-photo-ui="reels"] { --photo-sidebar: 220px; }
  html[data-photo-ui="reels"] main { padding-inline: 28px; }
}

@media (max-width: 800px) {
  html[data-photo-ui="reels"] aside {
    position: sticky;
    top: 0;
    padding: 14px 14px 0;
    border-bottom: 0;
    background: var(--studio-rail);
    box-shadow: 0 7px 24px rgba(15, 23, 38, .14);
  }
  html[data-photo-ui="reels"] aside .brand { margin-bottom: 8px; padding: 0 3px 12px; border-bottom: 0; }
  html[data-photo-ui="reels"] .brand .cam-ico { width: 34px; height: 34px; border-radius: 11px; }
  html[data-photo-ui="reels"] .brand-copy strong { font-size: 16px; }
  html[data-photo-ui="reels"] .brand-copy small { font-size: 9px; }
  html[data-photo-ui="reels"][data-admin-view="workspace"] #photoWorkspaceNav { gap: 5px; padding-bottom: 10px; }
  html[data-photo-ui="reels"] #photoWorkspaceNav button,
  html[data-photo-ui="reels"] #photoWorkspaceNav a { min-height: 40px; padding: 8px 11px; border-radius: 9px; color: #9ca7b8; }
  html[data-photo-ui="reels"] #photoWorkspaceNav button.is-active { background: rgba(79, 119, 240, .24); box-shadow: none; }
  html[data-photo-ui="reels"] header#top { min-height: 60px; padding-inline: 14px; }
  html[data-photo-ui="reels"] main { padding: 20px 14px calc(112px + env(safe-area-inset-bottom)); }
  html[data-photo-ui="reels"] .workspace-hero { min-height: 0; padding: 23px 20px; border-radius: 18px; }
  html[data-photo-ui="reels"] .workspace-hero-copy h1 { max-width: 82%; color: #fff; font-size: 28px; letter-spacing: -1px; }
  html[data-photo-ui="reels"] .workspace-hero-copy p:last-child { max-width: 92%; color: #b5bfd0; }
  html[data-photo-ui="reels"] .workspace-hero-actions { grid-template-columns: 1fr; }
  html[data-photo-ui="reels"] .statrow { gap: 10px; }
  html[data-photo-ui="reels"] .stat { min-height: 100px; }
  html[data-photo-ui="reels"] #eventsHome,
  html[data-photo-ui="reels"] #createEventPage,
  html[data-photo-ui="reels"] #panel-photos,
  html[data-photo-ui="reels"] #panel-guests,
  html[data-photo-ui="reels"] #panel-logs,
  html[data-photo-ui="reels"] #panel-danger { padding: 18px; border-radius: 17px; }
}

@media (max-width: 430px) {
  html[data-photo-ui="reels"] .workspace-hero-actions { display: grid; grid-template-columns: 1fr; }
  html[data-photo-ui="reels"] .workspace-hero-actions .primary-action,
  html[data-photo-ui="reels"] .workspace-hero-actions .secondary-action { width: 100%; }
}

/* ---------- screenshot review refinements ---------- */
html[data-photo-ui="reels"] #evSearch { display: none; }
html[data-photo-ui="reels"] .evitem.sel .evmeta { min-width: 0; }
html[data-photo-ui="reels"] .evitem.sel .evmeta .nm {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html[data-photo-ui="reels"] #createEventPage .create-event-intro {
  display: block;
  max-width: 720px;
  margin-bottom: 26px;
}
html[data-photo-ui="reels"] #createEventPage .create-event-intro .admin-eyebrow { margin-bottom: 9px; }
html[data-photo-ui="reels"] #createEventPage .create-event-intro h1 {
  margin: 0 0 9px;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -1.7px;
}
html[data-photo-ui="reels"] #createEventPage .create-event-intro > p:last-child {
  max-width: 620px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}
html[data-photo-ui="reels"] #createEventPage #newEvForm {
  max-width: 720px;
  padding: 24px;
  border-color: #e2e6ed;
  border-radius: 16px;
  background: #f9fafc;
  box-shadow: none;
}
html[data-photo-ui="reels"] #createEventPage .create-field input,
html[data-photo-ui="reels"] #createEventPage .create-field select { background: #fff; }

@media (max-width: 800px) {
  html[data-photo-ui="reels"][data-photo-section="overview"] header#top .admin-top-context {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  html[data-photo-ui="reels"][data-photo-section="overview"] #topName { max-width: none; }
  html[data-photo-ui="reels"][data-admin-view="workspace"] #photoWorkspaceNav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px !important;
    overflow: visible !important;
  }
  html[data-photo-ui="reels"] #photoWorkspaceNav button,
  html[data-photo-ui="reels"] #photoWorkspaceNav a {
    width: 100%;
    min-height: 44px;
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 5px;
    gap: 5px;
    justify-content: center;
    font-size: 11px;
  }
  html[data-photo-ui="reels"] #photoWorkspaceNav .photo-nav-icon,
  html[data-photo-ui="reels"] #photoWorkspaceNav .photo-nav-icon svg {
    width: 16px;
    height: 16px;
  }
  html[data-photo-ui="reels"] #createEventPage #newEvForm { padding: 18px; }
}

@media (max-width: 360px) {
  html[data-photo-ui="reels"] #photoWorkspaceNav button,
  html[data-photo-ui="reels"] #photoWorkspaceNav a {
    min-height: 44px;
    padding-inline: 3px;
    gap: 3px;
    font-size: 10px;
  }
  html[data-photo-ui="reels"] #photoWorkspaceNav .photo-nav-icon,
  html[data-photo-ui="reels"] #photoWorkspaceNav .photo-nav-icon svg {
    width: 14px;
    height: 14px;
  }
}
