:root {
  color-scheme: light;
  --canvas: #f2f4f5;
  --surface: #ffffff;
  --surface-soft: #f7f8f8;
  --ink: #211d1f;
  --ink-soft: #625d60;
  --ink-faint: #858084;
  --line: #dfe3e4;
  --line-strong: #c9ced0;
  --brand: #b85668;
  --brand-dark: #823846;
  --brand-soft: #f8e9ec;
  --sage: #416b5b;
  --sage-soft: #e7f2ed;
  --amber: #956217;
  --amber-soft: #fff2d9;
  --sidebar: #2b2528;
  --sidebar-soft: #393135;
  --sidebar-text: #fff8f2;
  --sidebar-muted: #c9bec2;
  --danger: #9e3e4d;
  --danger-soft: #fbeaec;
  --shadow: 0 14px 38px rgba(38, 32, 35, 0.08);
  --sidebar-width: 256px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
}

button,
input,
summary {
  font: inherit;
  letter-spacing: 0;
}

button,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--brand-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand);
}

img {
  display: block;
  max-width: 100%;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 18px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.icon--layout-dashboard {
  --icon: url("data:image/svg+xml;base64,PCEtLSBAbGljZW5zZSBsdWNpZGUtc3RhdGljIHYwLjU3NS4wIC0gSVNDIC0tPgo8c3ZnCiAgY2xhc3M9Imx1Y2lkZSBsdWNpZGUtbGF5b3V0LWRhc2hib2FyZCIKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgd2lkdGg9IjI0IgogIGhlaWdodD0iMjQiCiAgdmlld0JveD0iMCAwIDI0IDI0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0cm9rZS1saW5lY2FwPSJyb3VuZCIKICBzdHJva2UtbGluZWpvaW49InJvdW5kIgo+CiAgPHBhdGggZD0iTTEyIDIydi01IiAvPgogIDxwYXRoIGQ9Ik0xNSA4VjIiIC8+CiAgPHBhdGggZD0iTTE3IDhhMSAxIDAgMCAxIDEgMXY0YTQgNCAwIDAgMS00IDRoLTRhNCA0IDAgMCAxLTQtNFY5YTEgMSAwIDAgMSAxLTF6IiAvPgogIDxwYXRoIGQ9Ik05IDhWMiIgLz4KPC9zdmc+Cg==");
}

.icon--calendar {
  --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwYXRoIGQ9Ik04IDJ2NCIvPjxwYXRoIGQ9Ik0xNiAydjQiLz48cmVjdCB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHg9IjMiIHk9IjQiIHJ4PSIyIi8+PHBhdGggZD0iTTMgMTBoMTgiLz48L3N2Zz4K");
}

.icon--bell {
  --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwYXRoIGQ9Ik0xMC4yNjggMjFhMiAyIDAgMCAwIDMuNDY0IDAiLz48cGF0aCBkPSJNMy4yNjIgMTUuMzI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DItMmg2IiAvPgo8L3N2Zz4K");
}

.icon--log-out {
  --icon: url("data:image/svg+xml;base64,PCEtLSBAbGljZW5zZSBsdWNpZGUtc3RhdGljIHYwLjU3NS4wIC0gSVNDIC0tPgo8c3ZnCiAgY2xhc3M9Imx1Y2lkZSBsdWNpZGUtbG9nLW91dCIKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgd2lkdGg9IjI0IgogIGhlaWdodD0iMjQiCiAgdmlld0JveD0iMCAwIDI0IDI0IgogIGZpbGw9Im5vbmUiCiAgc3Ryb2tlPSJjdXJyZW50Q29sb3IiCiAgc3Ryb2tlLXdpZHRoPSIyIgogIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIKICBzdHJva2UtbGluZWpvaW49InJvdW5kIgo+CiAgPHBhdGggZD0ibTE2IDE3IDUtNS01LTUiIC8+CiAgPHBhdGggZD0iTTIxIDEySDkiIC8+CiAgPHBhdGggZD0iTTkgMjFINWEyIDIgMCAwIDEtMi0yVjVhMiAyIDAgMCAxIDItMmg0IiAvPgo8L3N2Zz4K");
}

.icon--log-in {
  --icon: url("data:image/svg+xml;base64,PCEtLSBAbGljZW5zZSBsdWNpZGUtc3RhdGljIHYwLjU3NS4wIC0gSVNDIC0tPgo8c3ZnCiAgY2xhc3M9Imx1Y2lkZSBsdWNpZGUtbG9nLWluIgogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICB3aWR0aD0iMjQiCiAgaGVpZ2h0PSIyNCIKICB2aWV3Qm94PSIwIDAgMjQgMjQiCiAgZmlsbD0ibm9uZSIKICBzdHJva2U9ImN1cnJlbnRDb2xvciIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTAgMTcgNS01LTUtNSIgLz4KICA8cGF0aCBkPSJNMTUgMTJIMyIgLz4KICA8cGF0aCBkPSJNMTUgM2g0YTIgMiAwIDAgMSAyIDJ2MTRhMiAyIDAgMCAxLTIgMmgtNCIgLz4KPC9zdmc+Cg==");
}

.icon--menu {
  --icon: url("data:image/svg+xml;base64,PCEtLSBAbGljZW5zZSBsdWNpZGUtc3RhdGljIHYwLjU3NS4wIC0gSVNDIC0tPgo8c3ZnCiAgY2xhc3M9Imx1Y2lkZSBsdWNpZGUtbWVudSIKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgd2lkdGg9IjI0IgogIGhlaWdodD0iMjQiCiAgdmlld0JveD0iMCAwIDI0IDI0IgogIGZpbGw9Im5vbmUiCiAgc3Ryb2tlPSJjdXJyZW50Q29sb3IiCiAgc3Ryb2tlLXdpZHRoPSIyIgogIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIKICBzdHJva2UtbGluZWpvaW49InJvdW5kIgo+CiAgPHBhdGggZD0iTTQgNWgxNiIgLz4KICA8cGF0aCBkPSJNNCAxMmgxNiIgLz4KICA8cGF0aCBkPSJNNCAxOWgxNiIgLz4KPC9zdmc+Cg==");
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.button {
  min-height: 40px;
  gap: 9px;
  padding: 9px 15px;
  font-weight: 700;
}

.icon-button {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
}

.button:focus-visible,
.icon-button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(184, 86, 104, 0.25);
  outline-offset: 2px;
}

.button--primary {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #ffffff;
}

.button--primary:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.button--secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button--secondary:hover {
  border-color: #aeb5b7;
  background: var(--surface-soft);
  color: var(--ink);
}

.button--wide {
  width: 100%;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.mono {
  overflow-wrap: anywhere;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
}

.notice {
  margin: 0 0 20px;
  border-left: 4px solid currentColor;
  border-radius: 3px;
  padding: 10px 13px;
}

.notice--success {
  background: var(--sage-soft);
  color: var(--sage);
}

.notice--error {
  background: var(--danger-soft);
  color: var(--danger);
}

.access-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(rgba(43, 37, 40, 0.88), rgba(43, 37, 40, 0.94)),
    url("../photo-family.webp") center 38% / cover no-repeat;
}

.access-panel {
  width: min(100%, 430px);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 80px rgba(12, 9, 10, 0.35);
}

.access-emblem {
  width: 54px;
  height: 54px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: contain;
}

.access-panel h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
}

.access-copy {
  margin: 12px 0 24px;
  color: var(--ink-soft);
}

.identity-line {
  margin: -10px 0 22px;
  color: var(--ink-faint);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
}

.back-link {
  display: block;
  margin-top: 18px;
  text-align: center;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  overflow: hidden;
  background: var(--sidebar);
  color: var(--sidebar-text);
}

.brand {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--sidebar-text);
  text-decoration: none;
}

.brand:hover {
  color: var(--sidebar-text);
}

.brand-emblem {
  width: 48px;
  height: 48px;
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #fff7f0;
}

.brand-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 500;
}

.brand small {
  margin-top: 2px;
  color: var(--sidebar-muted);
  font-size: 11px;
}

.side-nav {
  flex: 1;
  overflow-y: auto;
  padding: 22px 12px;
}

.nav-label {
  margin: 0 10px 10px;
  color: #9f9499;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-link {
  min-height: 44px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin: 3px 0;
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--sidebar-muted);
  text-decoration: none;
}

.nav-link:hover {
  background: var(--sidebar-soft);
  color: var(--sidebar-text);
}

.nav-link--active {
  background: #f5e7ea;
  color: var(--brand-dark);
}

.nav-link--active:hover {
  background: #f5e7ea;
  color: var(--brand-dark);
}

.nav-link small {
  min-width: 24px;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 10px;
  text-align: center;
}

.nav-link--active small {
  background: rgba(130, 56, 70, 0.11);
}

.nav-attention-count[hidden] { display: none !important; }
.nav-link .nav-attention-count,
.mobile-menu .nav-attention-count {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #397fc0;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  margin-left: auto;
}

.sidebar-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer form {
  margin: 0;
}

.sidebar-footer .icon-button {
  color: var(--sidebar-muted);
}

.sidebar-footer .icon-button:hover {
  background: var(--sidebar-soft);
  color: var(--sidebar-text);
}

.sidebar-user {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.sidebar-user img,
.avatar-fallback {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
}

.sidebar-user img {
  object-fit: cover;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.sidebar-user span:last-child {
  min-width: 0;
}

.sidebar-user strong,
.sidebar-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user strong {
  font-size: 12px;
}

.sidebar-user small {
  color: var(--sidebar-muted);
  font-size: 10px;
}

.mobile-bar {
  display: none;
}

.workspace {
  min-width: 0;
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 30px 34px 54px;
}

.page-header {
  min-height: 82px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.page-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
}

.page-header p:last-child {
  max-width: 660px;
  margin: 7px 0 0;
  color: var(--ink-soft);
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.page-actions form {
  margin: 0;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 5px 20px rgba(38, 32, 35, 0.04);
}

.metric-strip > div {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.metric-strip > div:last-child {
  border-right: 0;
}

.metric-strip span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.metric-strip strong {
  margin: 5px 0 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.metric-strip small {
  color: var(--ink-faint);
  font-size: 11px;
}

.overview-grid,
.integration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 24px;
}

.integration-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-block {
  min-width: 0;
  margin-bottom: 28px;
}

.section-title {
  min-height: 46px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.section-title > a,
.section-title > time {
  margin-top: 18px;
  color: var(--ink-faint);
  font-size: 11px;
}

.section-title > a {
  color: var(--brand-dark);
  font-weight: 700;
}

.status-list,
.activity-list,
.detail-list,
.owner-list,
.audit-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.status-list > a {
  min-height: 72px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.status-list > a:last-child {
  border-bottom: 0;
}

.status-list > a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.status-list strong,
.status-list small {
  display: block;
}

.status-list small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 11px;
}

.status-list b {
  color: var(--ink-soft);
  font-size: 11px;
}

.status-dot {
  width: 9px;
  height: 9px;
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--surface);
}

.status-dot--ok {
  background: var(--sage);
}

.status-dot--warn {
  background: var(--amber);
}

.activity-list {
  min-height: 216px;
  margin: 0;
  padding: 7px 0;
  list-style: none;
}

.activity-list li {
  min-height: 50px;
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 15px;
}

.activity-list strong,
.activity-list small {
  display: block;
}

.activity-list strong {
  font-size: 12px;
}

.activity-list small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 10px;
}

.activity-marker {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border: 2px solid var(--brand);
  border-radius: 50%;
}

.gallery-preview {
  margin-top: 2px;
}

.preview-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(100px, 1fr));
  gap: 9px;
}

.preview-rail figure {
  min-width: 0;
  margin: 0;
}

.preview-rail img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 5px;
  background: #e5e7e8;
  object-fit: cover;
}

.preview-rail figcaption {
  padding: 8px 2px 0;
}

.preview-rail strong,
.preview-rail span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-rail strong {
  font-size: 11px;
}

.preview-rail span {
  color: var(--ink-faint);
  font-size: 10px;
}

.context-bar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.context-bar > span {
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

.context-bar strong {
  color: var(--ink);
  font-size: 14px;
}

.context-status {
  margin-left: auto;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 800;
}

.context-status--ok {
  background: var(--sage-soft);
  color: var(--sage) !important;
}

.context-status--warn {
  background: var(--amber-soft);
  color: var(--amber) !important;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.photo-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.photo-frame {
  position: relative;
  overflow: hidden;
  background: #e6e8e9;
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 220ms ease;
}

.photo-card:hover .photo-frame img {
  transform: scale(1.018);
}

.photo-frame > span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  max-width: calc(100% - 18px);
  overflow: hidden;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(33, 29, 31, 0.82);
  color: #ffffff;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-meta {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
}

.photo-meta h2 {
  margin: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-meta p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--ink-faint);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-meta .icon-button,
.review-row > .icon-button,
.owner-list .icon-button {
  color: var(--ink-faint);
}

.photo-meta .icon-button:hover,
.review-row > .icon-button:hover,
.owner-list .icon-button:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.pagination {
  min-height: 68px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.pagination > span {
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.segmented-control {
  width: max-content;
  max-width: 100%;
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px;
  background: var(--surface);
}

.segmented-control a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 7px 13px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.segmented-control a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.segmented-control a.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 38px;
  align-items: start;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.review-avatar,
.review-avatar img,
.review-avatar span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.review-avatar img {
  object-fit: cover;
}

.review-avatar span {
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 800;
}

.review-content {
  min-width: 0;
}

.review-content header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.review-content h2 {
  margin: 0;
  font-size: 14px;
}

.review-content header p {
  margin: 4px 0 0;
  color: var(--ink-faint);
  font-size: 10px;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-right: 7px;
  border-radius: 999px;
  padding: 2px 7px;
  background: #edf0f1;
  color: var(--ink-soft);
  font-weight: 800;
}

.rating {
  flex: 0 0 auto;
  color: #b57824;
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
}

.review-text {
  display: -webkit-box;
  margin: 12px 0 0;
  overflow: hidden;
  color: #464144;
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.empty-state {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  padding: 30px;
  color: var(--ink-faint);
  text-align: center;
}

.empty-state .icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
}

.empty-state h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.empty-state p {
  margin: 6px 0 0;
  font-size: 12px;
}

.status-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill--ok {
  border-color: #bdd8cc;
  background: var(--sage-soft);
  color: var(--sage);
}

.status-pill--warn {
  border-color: #edd3a8;
  background: var(--amber-soft);
  color: var(--amber);
}

.detail-list {
  margin: 0;
}

.detail-list > div {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 18px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
}

.detail-list > div:last-child {
  border-bottom: 0;
}

.detail-list dt {
  color: var(--ink-faint);
  font-size: 11px;
}

.detail-list dd {
  margin: 0;
  font-size: 12px;
  text-align: right;
}

.owners-section {
  margin-top: 2px;
}

.owner-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.owner-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border-right: 1px solid var(--line);
}

.owner-list article:last-child {
  border-right: 0;
}

.owner-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 800;
}

.owner-list strong,
.owner-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-list strong {
  font-size: 12px;
}

.owner-list small {
  margin-top: 3px;
  color: var(--ink-faint);
}

.audit-table-wrap {
  overflow-x: auto;
}

.audit-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.audit-table th,
.audit-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.audit-table tr:last-child td {
  border-bottom: 0;
}

.audit-table thead th {
  background: var(--surface-soft);
  color: var(--ink-faint);
  font-size: 10px;
  text-transform: uppercase;
}

.audit-table tbody tr:hover {
  background: #fafbfb;
}

.audit-table td {
  font-size: 12px;
}

.audit-table td strong,
.audit-table td small {
  display: block;
}

.audit-table td small {
  margin-top: 2px;
  color: var(--ink-faint);
}

.outcome {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: #edf0f1;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.outcome--allowed,
.outcome--completed {
  background: var(--sage-soft);
  color: var(--sage);
}

.outcome--denied,
.outcome--forbidden,
.outcome--unauthenticated {
  background: var(--danger-soft);
  color: var(--danger);
}

@media (max-width: 1180px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preview-rail {
    grid-template-columns: repeat(5, minmax(100px, 1fr));
  }

  .preview-rail figure:nth-child(n + 6) {
    display: none;
  }

  .owner-list {
    grid-template-columns: 1fr;
  }

  .owner-list article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .owner-list article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 940px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .mobile-bar {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 9px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    text-decoration: none;
  }

  .mobile-brand img {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 5px;
    object-fit: contain;
  }

  .mobile-nav {
    position: relative;
  }

  .mobile-nav summary {
    color: var(--ink);
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav[open] summary {
    background: var(--brand-soft);
    color: var(--brand-dark);
  }

  .mobile-menu {
    width: min(300px, calc(100vw - 24px));
    display: grid;
    position: absolute;
    top: 48px;
    right: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .mobile-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    text-decoration: none;
  }

  .mobile-menu a:last-child {
    border-bottom: 0;
  }

  .mobile-menu a.mobile-link--active {
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 800;
  }

  .workspace {
    padding: 25px 22px 46px;
  }
}

@media (max-width: 760px) {
  .page-header {
    display: block;
  }

  .page-header h1 {
    font-size: 29px;
  }

  .page-actions {
    margin-top: 17px;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-strip > div:nth-child(2) {
    border-right: 0;
  }

  .metric-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .overview-grid,
  .integration-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .preview-rail {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
  }

  .preview-rail figure:nth-child(n + 4) {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .context-bar {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .context-status {
    margin-left: 0;
  }

  .review-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .review-avatar,
  .review-avatar img,
  .review-avatar span {
    width: 40px;
    height: 40px;
  }

  .review-row > .icon-button {
    display: none;
  }

  .review-content header {
    display: block;
  }

  .rating {
    display: block;
    margin-top: 6px;
  }
}

@media (max-width: 520px) {
  .access-shell {
    padding: 12px;
  }

  .access-panel {
    padding: 26px 20px;
  }

  .workspace {
    padding: 20px 14px 40px;
  }

  .page-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .page-actions .button,
  .page-actions form {
    width: 100%;
  }

  .page-actions form .button {
    width: 100%;
  }

  .metric-strip > div {
    min-height: 96px;
    padding: 16px;
  }

  .metric-strip strong {
    font-size: 26px;
  }

  .status-list > a {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .status-list b {
    display: none;
  }

  .section-title {
    min-height: 42px;
  }

  .section-title > time {
    display: none;
  }

  .gallery-grid {
    gap: 8px;
  }

  .photo-meta {
    min-height: 66px;
    padding: 9px;
  }

  .photo-meta .icon-button {
    display: none;
  }

  .photo-frame > span {
    right: 6px;
    bottom: 6px;
    max-width: calc(100% - 12px);
  }

  .pagination {
    grid-template-columns: 90px minmax(0, 1fr) 90px;
  }

  .pagination .button {
    min-height: 38px;
    padding: 8px 10px;
  }

  .detail-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .detail-list dd {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/* Stage 3 gallery editor */
.icon--pencil {
  --icon: url("data:image/svg+xml;base64,PCEtLSBAbGljZW5zZSBsdWNpZGUtc3RhdGljIHYwLjU3NS4wIC0gSVNDIC0tPgo8c3ZnCiAgY2xhc3M9Imx1Y2lkZSBsdWNpZGUtcGVuY2lsIgogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICB3aWR0aD0iMjQiCiAgaGVpZ2h0PSIyNCIKICB2aWV3Qm94PSIwIDAgMjQgMjQiCiAgZmlsbD0ibm9uZSIKICBzdHJva2U9ImN1cnJlbnRDb2xvciIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjEuMTc0IDYuODEyYTEgMSAwIDAgMC0zLjk4Ni0zLjk4N0wzLjg0MiAxNi4xNzRhMiAyIDAgMCAwLS41LjgzbC0xLjMyMSA0LjM1MmEuNS41IDAgMCAwIC42MjMuNjIybDQuMzUzLTEuMzJhMiAyIDAgMCAwIC44My0uNDk3eiIgLz4KICA8cGF0aCBkPSJtMTUgNSA0IDQiIC8+Cjwvc3ZnPgo=");
}

.icon--arrow-up {
  --icon: url("data:image/svg+xml;base64,PCEtLSBAbGljZW5zZSBsdWNpZGUtc3RhdGljIHYwLjU3NS4wIC0gSVNDIC0tPgo8c3ZnCiAgY2xhc3M9Imx1Y2lkZSBsdWNpZGUtYXJyb3ctdXAiCiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iY3VycmVudENvbG9yIgogIHN0cm9rZS13aWR0aD0iMiIKICBzdHJva2UtbGluZWNhcD0icm91bmQiCiAgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIKPgogIDxwYXRoIGQ9Im01IDEyIDctNyA3IDciIC8+CiAgPHBhdGggZD0iTTEyIDE5VjUiIC8+Cjwvc3ZnPgo=");
}

.icon--arrow-down {
  --icon: url("data:image/svg+xml;base64,PCEtLSBAbGljZW5zZSBsdWNpZGUtc3RhdGljIHYwLjU3NS4wIC0gSVNDIC0tPgo8c3ZnCiAgY2xhc3M9Imx1Y2lkZSBsdWNpZGUtYXJyb3ctZG93biIKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgd2lkdGg9IjI0IgogIGhlaWdodD0iMjQiCiAgdmlld0JveD0iMCAwIDI0IDI0IgogIGZpbGw9Im5vbmUiCiAgc3Ryb2tlPSJjdXJyZW50Q29sb3IiCiAgc3Ryb2tlLXdpZHRoPSIyIgogIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIKICBzdHJva2UtbGluZWpvaW49InJvdW5kIgo+CiAgPHBhdGggZD0iTTEyIDV2MTQiIC8+CiAgPHBhdGggZD0ibTE5IDEyLTcgNy03LTciIC8+Cjwvc3ZnPgo=");
}

.icon--panel-top {
  --icon: url("data:image/svg+xml;base64,PCEtLSBAbGljZW5zZSBsdWNpZGUtc3RhdGljI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nPgo=");
}

.button:disabled,
.icon-button:disabled {
  border-color: var(--line);
  background: #edf0f1;
  color: var(--ink-faint);
  cursor: not-allowed;
  opacity: 0.72;
}

.button--compact {
  min-height: 36px;
  gap: 7px;
  padding: 7px 11px;
  font-size: 12px;
}

.context-status--edit {
  background: var(--brand-soft);
  color: var(--brand-dark) !important;
}

.photo-card {
  scroll-margin-top: 82px;
}

.photo-card--featured {
  border-color: #d9aeb7;
}

.photo-card:target {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(184, 86, 104, 0.14);
}

.photo-flags {
  max-width: calc(100% - 18px);
  display: flex;
  flex-wrap: wrap;
  position: absolute;
  top: 9px;
  left: 9px;
  gap: 5px;
}

.photo-flags span {
  overflow: hidden;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.93);
  color: var(--brand-dark);
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-editor {
  border-top: 1px solid var(--line);
}

.photo-editor > summary {
  min-height: 42px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.photo-editor > summary::-webkit-details-marker {
  display: none;
}

.photo-editor > summary:hover,
.photo-editor[open] > summary {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.photo-editor > summary .icon:last-child {
  transition: transform 150ms ease;
}

.photo-editor[open] > summary .icon:last-child {
  transform: rotate(180deg);
}

.photo-editor-body {
  padding: 13px 12px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.photo-edit-form,
.photo-edit-form label {
  display: grid;
}

.photo-edit-form {
  gap: 11px;
}

.photo-edit-form label {
  gap: 5px;
}

.photo-edit-form label > span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.photo-edit-form input,
.photo-edit-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 8px 9px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0;
}

.photo-edit-form textarea {
  min-height: 76px;
  resize: vertical;
  line-height: 1.45;
}

.photo-edit-form input:focus,
.photo-edit-form textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(184, 86, 104, 0.13);
}

.photo-edit-form > .button {
  width: 100%;
}

.photo-editor-tools {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.photo-editor-tools form {
  margin: 0;
}

.photo-order-tools,
.photo-feature-tools {
  display: flex;
  gap: 7px;
}

.photo-order-tools .icon-button {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
}

.photo-order-tools .icon-button:not(:disabled):hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.photo-feature-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-feature-tools .button {
  width: 100%;
}

@media (max-width: 760px) {
  .photo-feature-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .photo-editor > summary {
    min-height: 40px;
    padding: 7px 9px;
  }

  .photo-editor-body {
    padding: 11px 9px 9px;
  }

  .photo-meta > .icon-button {
    display: inline-flex;
  }

  .photo-flags {
    top: 6px;
    left: 6px;
  }
}
/* Stage 4 review moderation */
.icon--eye {
  --icon: url("data:image/svg+xml;base64,PCEtLSBAbGljZW5zZSBsdWNpZGUtc3RhdGljIHYwLjU3NS4wIC0gSVNDIC0tPgo8c3ZnCiAgY2xhc3M9Imx1Y2lkZSBsdWNpZGUtZXllIgogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICB3aWR0aD0iMjQiCiAgaGVpZ2h0PSIyNCIKICB2aWV3Qm94PSIwIDAgMjQgMjQiCiAgZmlsbD0ibm9uZSIKIC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gMTAuNzUgMCAwIDEgNC40NDYtNS4xNDMiIC8+CiAgPHBhdGggZD0ibTIgMiAyMCAyMCIgLz4KPC9zdmc+Cg==");
}

.review-row {
  scroll-margin-top: 82px;
}

.review-row:target {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(184, 86, 104, 0.14);
}

.review-row--hidden {
  border-color: #c8ced1;
  background: #f8f9f9;
}

.review-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-right: 7px;
  border-radius: 999px;
  padding: 3px 7px;
  font-weight: 800;
}

.review-status-badge--published {
  background: var(--ok-soft);
  color: var(--ok);
}

.review-status-badge--hidden {
  background: #e6e9ea;
  color: var(--ink-soft);
}

.review-photo {
  width: 96px;
  height: 64px;
  display: block;
  overflow: hidden;
  margin-top: 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.review-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.review-editor {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.review-editor > summary {
  min-height: 40px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.review-editor > summary::-webkit-details-marker {
  display: none;
}

.review-editor > summary:hover,
.review-editor[open] > summary {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.review-editor > summary .icon:last-child {
  transition: transform 150ms ease;
}

.review-editor[open] > summary .icon:last-child {
  transform: rotate(180deg);
}

.review-editor-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  padding: 13px 11px 11px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.review-edit-form {
  min-width: 0;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  align-items: end;
  gap: 11px;
}

.review-edit-form label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.review-edit-form label > span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.review-edit-form select,
.review-edit-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 8px 9px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0;
}

.review-edit-form select {
  height: 38px;
}

.review-edit-form textarea {
  min-height: 76px;
  resize: vertical;
  line-height: 1.45;
}

.review-edit-form select:focus,
.review-edit-form textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(184, 86, 104, 0.13);
}

.review-editor-actions,
.review-status-form {
  margin: 0;
}

.review-editor-actions .button,
.review-status-form .button {
  white-space: nowrap;
}

.review-status-form {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

@media (max-width: 1040px) {
  .review-editor-body,
  .review-edit-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .review-editor-actions .button,
  .review-status-form .button {
    width: 100%;
  }

  .review-status-form {
    padding-top: 12px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .review-editor > summary {
    padding: 7px 9px;
  }

  .review-editor-body {
    padding: 11px 9px 9px;
  }

  .review-status-badge {
    margin-top: 4px;
  }
}
/* Stage 5 integrations */
.icon--key-round {
  --icon: url("data:image/svg+xml;base64,PCEtLSBAbGljZW5zZSBsdWNpZGUtc3RhdGljIHYwLjU3NS4wIC0gSVNDIC0tPgo8c3ZnCiAgY2xhc3M9Imx1Y2lkZSBsdWNpZGUta2V5LXJvdW5kIgogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICB3aWR0aD0iMjQiCiAgaGVpZ2h0PSIyNCIKICB2aWV3Qm94PSIwIDAgMjQgMjQiCiAgZmlsbD0ibm9uZSIKICBzdHJva2U9ImN1cnJlbnRDb2xvciIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMi41ODYgMTcuNDE0QTIgMiAwIDAgMCAyIDE4LjgyOFYyMWExIDEgMCAwIDAgMSAxaDNhMSAxIDAgMCAwIDEtMXYtMWExIDEgMCAwIDEgMS0xaDFhMSAxIDAgMCAwIDEtMXYtMWExIDEgMCAwIDEgMS0xaC4xNzJhMiAyIDAgMCAwIDEuNDE0LS41ODZsLjgxNC0uODE0YTYuNSA2LjUgMCAxIDAtNC00eiIgLz4KICA8Y2lyY2xlIGN4PSIxNi41IiBjeT0iNy41IiByPSIuNSIgZmlsbD0iY3VycmVudENvbG9yIiAvPgo8L3N2Zz4K");
}

.integration-layout--secondary {
  align-items: start;
}

.sync-panel .detail-list dd {
  overflow-wrap: anywhere;
}

.sync-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.sync-actions form {
  margin: 0;
}

.sync-actions .button {
  min-width: 174px;
}

@media (max-width: 760px) {
  .sync-actions,
  .sync-actions form,
  .sync-actions .button {
    width: 100%;
  }
}

/* Stage 6 audit */
.icon--download {
  --icon: url("data:image/svg+xml;base64,PCEtLSBAbGljZW5zZSBsdWNpZGUtc3RhdGljIHYwLjU3NS4wIC0gSVNDIC0tPgo8c3ZnCiAgY2xhc3M9Imx1Y2lkZSBsdWNpZGUtZG93bmxvYWQiCiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iY3VycmVudENvbG9yIgogIHN0cm9rZS13aWR0aD0iMiIKICBzdHJva2UtbGluZWNhcD0icm91bmQiCiAgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIKPgogIDxwYXRoIGQ9Ik0xMiAxNVYzIiAvPgogIDxwYXRoIGQ9Ik0yMSAxNXY0YTIgMiAwIDAgMS0yIDJINWEyIDIgMCAwIDEtMi0ydi00IiAvPgogIDxwYXRoIGQ9Im03IDEwIDUgNSA1LTUiIC8+Cjwvc3ZnPgo=");
}

.icon--search {
  --icon: url("data:image/svg+xml;base64,PCEtLSBAbGljZW5zZSBsdWNpZGUtc3RhdGljIHYwLjU3NS4wIC0gSVNDIC0tPgo8c3ZnCiAgY2xhc3M9Imx1Y2lkZSBsdWNpZGUtc2VhcmNoIgogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICB3aWR0aD0iMjQiCiAgaGVpZ2h0PSIyNCIKICB2aWV3Qm94PSIwIDAgMjQgMjQiCiAgZmlsbD0ibm9uZSIKICBzdHJva2U9ImN1cnJlbnRDb2xvciIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMjEgMjEtNC4zNC00LjM0IiAvPgogIDxjaXJjbGUgY3g9IjExIiBjeT0iMTEiIHI9IjgiIC8+Cjwvc3ZnPgo=");
}

.button--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ink-soft);
}

.button--ghost:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.audit-context {
  margin-bottom: 18px;
}

.audit-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.audit-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.audit-heading p:last-child {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.audit-export-form {
  flex: 0 0 auto;
  margin: 0;
}

.audit-tabs {
  width: 100%;
  margin-bottom: 12px;
}

.audit-tabs a {
  flex: 1 0 auto;
}

.audit-toolbar {
  display: grid;
  grid-template-columns:
    minmax(230px, 1.5fr)
    minmax(150px, 0.7fr)
    minmax(140px, 0.6fr)
    auto
    auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.audit-toolbar label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.audit-toolbar label > span:first-child {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.audit-toolbar input,
.audit-toolbar select {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 8px 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0;
}

.audit-toolbar input:focus,
.audit-toolbar select:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(184, 86, 104, 0.13);
}

.audit-search-control {
  position: relative;
  display: block;
}

.audit-search-control .icon {
  position: absolute;
  top: 11px;
  left: 11px;
  color: var(--ink-faint);
  pointer-events: none;
}

.audit-search-control input {
  padding-left: 38px;
}

.audit-result-bar {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 11px;
}

.audit-result-bar strong {
  color: var(--ink);
  font-size: 13px;
}

.audit-event-list {
  display: grid;
  gap: 7px;
}

.audit-event {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.audit-event > summary {
  min-height: 68px;
  display: grid;
  grid-template-columns:
    136px
    minmax(210px, 1.25fr)
    118px
    minmax(140px, 0.8fr)
    120px
    24px;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  cursor: pointer;
  list-style: none;
}

.audit-event > summary::-webkit-details-marker {
  display: none;
}

.audit-event > summary:hover,
.audit-event[open] > summary {
  background: #fafbfb;
}

.audit-event-time,
.audit-event-user,
.audit-event-name > span {
  min-width: 0;
}

.audit-event-time strong,
.audit-event-time small,
.audit-event-user strong,
.audit-event-user small,
.audit-event-name strong,
.audit-event-name small {
  display: block;
}

.audit-event-time strong,
.audit-event-user strong,
.audit-event-name strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-event-time small,
.audit-event-user small,
.audit-event-name small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-event-name {
  min-width: 0;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.audit-category-dot {
  width: 8px;
  height: 28px;
  display: block;
  border-radius: 2px;
  background: #7d8589;
}

.audit-event--login .audit-category-dot {
  background: var(--sage);
}

.audit-event--security .audit-category-dot {
  background: var(--danger);
}

.audit-event--content .audit-category-dot {
  background: #3d6272;
}

.audit-event--integrations .audit-category-dot {
  background: var(--amber);
}

.audit-event-ip {
  overflow: hidden;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-event-toggle {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--ink-faint);
}

.audit-event-toggle .icon {
  width: 16px;
  height: 16px;
  transition: transform 150ms ease;
}

.audit-event[open] .audit-event-toggle .icon {
  transform: rotate(180deg);
}

.outcome--success {
  background: var(--sage-soft);
  color: var(--sage);
}

.outcome--attention {
  background: var(--danger-soft);
  color: var(--danger);
}

.audit-event-details {
  padding: 14px 13px 15px 31px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.audit-event-details dl {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr 1.5fr;
  gap: 12px;
  margin: 0;
}

.audit-event-details dl > div {
  min-width: 0;
}

.audit-event-details dt {
  margin-bottom: 4px;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.audit-event-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 11px;
}

.request-method {
  display: inline-flex;
  margin-right: 6px;
  border-radius: 4px;
  padding: 2px 5px;
  background: #e5e9ea;
  color: var(--ink);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
}

.audit-context-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.audit-context-list > span {
  min-width: 120px;
  max-width: 300px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 9px;
  background: var(--surface);
}

.audit-context-list small {
  color: var(--ink-faint);
  font-size: 9px;
}

.audit-context-list strong {
  overflow-wrap: anywhere;
  font-size: 10px;
  font-weight: 700;
}

.audit-empty {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.audit-empty h3 {
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.audit-pagination {
  min-height: 64px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.audit-pagination > span {
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.audit-pagination .is-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 1120px) {
  .audit-toolbar {
    grid-template-columns: minmax(220px, 1fr) 160px 150px;
  }

  .audit-apply,
  .audit-toolbar .button--ghost {
    width: 100%;
  }

  .audit-event > summary {
    grid-template-columns:
      124px
      minmax(190px, 1fr)
      108px
      minmax(130px, 0.7fr)
      24px;
  }

  .audit-event-ip {
    display: none;
  }

  .audit-event-details dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .audit-heading {
    align-items: stretch;
  }

  .audit-heading,
  .audit-toolbar {
    grid-template-columns: 1fr;
  }

  .audit-heading {
    display: grid;
  }

  .audit-export-form,
  .audit-export-form .button {
    width: 100%;
  }

  .audit-tabs {
    width: max-content;
    max-width: 100%;
  }

  .audit-toolbar {
    padding: 11px;
  }

  .audit-result-bar {
    align-items: flex-start;
  }

  .audit-result-bar span:last-child {
    text-align: right;
  }

  .audit-event > summary {
    min-height: 94px;
    grid-template-columns: minmax(0, 1fr) auto 22px;
    gap: 7px 9px;
    padding: 11px;
  }

  .audit-event-time {
    grid-column: 1 / 2;
    grid-row: 2;
  }

  .audit-event-name {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .audit-event > summary .outcome {
    grid-column: 2;
    grid-row: 1;
  }

  .audit-event-user {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }

  .audit-event-toggle {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .audit-event-time strong,
  .audit-event-user strong,
  .audit-event-name strong {
    white-space: normal;
  }

  .audit-event-name small {
    display: none;
  }

  .audit-event-details {
    padding: 12px 11px;
  }

  .audit-event-details dl {
    grid-template-columns: 1fr;
  }

  .audit-context-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-context-list > span {
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .audit-context > span:nth-child(4) {
    display: none;
  }

  .audit-result-bar {
    display: grid;
  }

  .audit-result-bar span:last-child {
    text-align: left;
  }

  .audit-context-list {
    grid-template-columns: 1fr;
  }

  .audit-pagination {
    grid-template-columns: 1fr 1fr;
  }

  .audit-pagination > span {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}
/* VK review moderation */
.icon--trash-2 {
  --icon: url("data:image/svg+xml;base64,PCEtLSBAbGljZW5zZSBsdWNpZGUtc3RhdGljIHYwLjU3NS4wIC0gSVNDIC0tPgo8c3ZnCiAgY2xhc3M9Imx1Y2lkZSBsdWNpZGUtdHJhc2gtMiIKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgd2lkdGg9IjI0IgogIGhlaWdodD0iMjQiCiAgdmlld0JveD0iMCAwIDI0IDI0IgogIGZpbGw9Im5vbmUiCiAgc3Ryb2tlPSJjdXJyZW50Q29sb3IiCiAgc3Ryb2tlLXdpZHRoPSIyIgogIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIKICBzdHJva2UtbGluZWpvaW49InJvdW5kIgo+CiAgPHBhdGggZD0iTTMgNmgxOCIgLz4KICA8cGF0aCBkPSJNOCA2VjRjMC0xIDEtMiAyLTJoNGMxIDAgMiAxIDIgMnYyIiAvPgogIDxwYXRoIGQ9Ik0xOSA2bC0xIDE0YzAgMS0xIDItMiAySDhjLTEgMC0yLTEtMi0yTDUgNiIgLz4KICA8cGF0aCBkPSJNMTAgMTF2NiIgLz4KICA8cGF0aCBkPSJNMTQgMTF2NiIgLz4KPC9zdmc+Cg==");
}

.button--danger {
  border-color: var(--danger);
  background: var(--surface);
  color: var(--danger);
}

.button--danger:hover {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

.review-quick-actions {
  display: flex;
  margin: 14px 0 0;
}

.review-quick-actions .button {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .review-quick-actions .button {
    width: 100%;
  }
}
/* Visual site editor */
.icon--camera {
  --icon: url("data:image/svg+xml;base64,PCEtLSBAbGljZW5zZSBsdWNpZGUtc3RhdGljIHYwLjU3NS4wIC0gSVNDIC0tPgo8c3ZnCiAgY2xhc3M9Imx1Y2lkZSBsdWNpZGUtY2FtZXJhIgogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICB3aWR0aD0iMjQiCiAgaGVpZ2h0PSIyNCIKICB2aWV3Qm94PSIwIDAgMjQgMjQiCiAgZmlsbD0ibm9uZSIKICBzdHJva2U9ImN1cnJlbnRDb2xvciIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTQuNSA0aC01TDcgN0g0YTIgMiAwIDAgMC0yIDJ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NSIgY3k9IjE5IiByPSIxIiAvPgo8L3N2Zz4K");
}

.icon--layout-grid {
  --icon: url("data:image/svg+xml;base64,PCEtLSBAbGljZW5zZSBsdWNpZGUtc3RhdGljIHYwLjU3NS4wIC0gSVNDIC0tPgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+CiAgPHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iNyIgeD0iMyIgeT0iMyIgcng9IjEiIC8+CiAgPHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iNyIgeD0iMTQiIHk9IjMiIHJ4PSIxIiAvPgogIDxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjciIHg9IjE0IiB5PSIxNCIgcng9IjEiIC8+CiAgPHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iNyIgeD0iMyIgeT0iMTQiIHJ4PSIxIiAvPgo8L3N2Zz4K");
}

.editor-tabs {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
}

.editor-tabs a {
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.editor-tabs a:last-child {
  border-right: 0;
}

.editor-tabs a:hover,
.editor-tabs a.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.page-editor {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: visible;
  background: var(--surface);
}

.page-editor > section {
  width: 100%;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.editor-band-label {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.editor-hero-band {
  min-height: 500px;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  padding: 72px 6% 54px;
  overflow: hidden;
  background: #252223;
  color: #ffffff;
}

.editor-hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 15, 17, 0.9) 0%, rgba(20, 15, 17, 0.62) 52%, rgba(20, 15, 17, 0.16) 100%),
    linear-gradient(0deg, rgba(20, 15, 17, 0.38), transparent 55%);
}

.editor-hero-background {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
}

.editor-hero-copy {
  max-width: 690px;
  display: grid;
  gap: 10px;
}

.inline-field,
.editor-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.inline-field > span,
.editor-field > span,
.editor-add-panel label > span,
.crop-sliders label > span,
.photo-move-form label > span,
.photo-inline-editor label > span,
.service-editor-form label > span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.inline-field input,
.inline-field textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 5px 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: 0;
  resize: vertical;
}

.inline-field:hover input,
.inline-field:hover textarea,
.inline-field input:focus,
.inline-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(20, 15, 17, 0.44);
  outline: none;
}

.inline-field > span {
  color: rgba(255, 255, 255, 0.7);
}

.inline-field--eyebrow input {
  color: #ee8996;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.inline-field--display input {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  line-height: 1.02;
}

.inline-field--lead textarea {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.5;
}

.inline-field--section-title input,
.inline-field--section-title textarea {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.12;
}

.inline-field--body textarea {
  font-size: 15px;
  line-height: 1.65;
}

.inline-field--signature input {
  color: #df7180;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.inline-field--light {
  color: var(--ink);
}

.inline-field--light > span,
.inline-field--dark > span {
  color: inherit;
  opacity: 0.64;
}

.inline-field--light:hover input,
.inline-field--light:hover textarea,
.inline-field--light input:focus,
.inline-field--light textarea:focus {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.75);
}

.inline-field--dark {
  color: #f7eeeb;
}

.inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inline-grid--buttons {
  max-width: 520px;
}

.editor-copy-band,
.editor-contact-band {
  padding: 32px;
  background: #fffdfb;
}

.editor-copy-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: end;
}

.editor-copy-band .editor-section-heading {
  grid-column: 1 / -1;
}

.editor-field input,
.editor-field textarea,
.editor-field select,
.editor-add-panel input,
.editor-add-panel textarea,
.photo-move-form select,
.photo-inline-editor input,
.photo-inline-editor textarea,
.service-editor-form input,
.service-editor-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 9px 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0;
}

.editor-field input:focus,
.editor-field textarea:focus,
.editor-field select:focus,
.editor-add-panel input:focus,
.editor-add-panel textarea:focus,
.photo-move-form select:focus,
.photo-inline-editor input:focus,
.photo-inline-editor textarea:focus,
.service-editor-form input:focus,
.service-editor-form textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(184, 86, 104, 0.13);
}

.editor-field textarea,
.editor-add-panel textarea,
.photo-inline-editor textarea,
.service-editor-form textarea {
  resize: vertical;
}

.editor-field--wide {
  min-width: 0;
}

.editor-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.editor-section-heading h2,
.editor-toolbar h2,
.photo-organizer-header h2,
.direction-drop-list h2,
.media-dialog-header h2 {
  margin: 0;
  font-size: 22px;
}

.editor-section-heading p,
.editor-toolbar p,
.photo-organizer-header p,
.visual-control-body p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.editor-portfolio-band,
.editor-services-band {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 32px;
  background: #eef1ed;
}

.editor-portfolio-band > div,
.editor-services-band > div {
  width: min(700px, 100%);
}

.editor-about-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 40px;
  padding: 42px;
  background: #63434d;
}

.editor-about-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.editor-about-photo {
  min-height: 480px;
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 6px;
  background: #392f32;
}

.editor-about-photo img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.editor-about-photo .button {
  position: absolute;
  right: 14px;
  bottom: 14px;
}

.editor-contact-band .inline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editor-save-bar {
  position: sticky;
  top: 12px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(38, 31, 33, 0.16);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.editor-save-state {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink-soft);
}

.editor-save-state > svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.editor-save-state > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.editor-save-state strong,
.editor-save-state small {
  display: block;
}

.editor-save-state strong {
  color: var(--ink);
  font-size: 13px;
}

.editor-save-state small {
  color: var(--ink-soft);
  font-size: 12px;
}

.editor-save-bar.is-dirty {
  border-color: var(--brand);
  background: #fff8fa;
  box-shadow: 0 12px 30px rgba(142, 51, 75, 0.18);
}

.editor-save-bar.is-dirty .editor-save-state > svg,
.editor-save-bar.is-dirty .editor-save-state strong {
  color: var(--brand-dark);
}

.editor-save-bar.is-saving {
  opacity: 0.78;
}

.visual-controls {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.visual-control-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 16px;
  margin-top: 16px;
}

.visual-control {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.visual-control-preview {
  overflow: hidden;
  background: #ebe8e5;
}

.visual-control-preview--hero {
  aspect-ratio: 16 / 7;
}

.visual-control-preview--about {
  aspect-ratio: 4 / 5;
}

.visual-control-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.visual-control-body {
  padding: 14px;
}

.visual-control-body strong {
  display: block;
  font-size: 14px;
}

.visual-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.editor-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.editor-add-panel {
  position: relative;
}

.editor-add-panel > summary {
  list-style: none;
  cursor: pointer;
}

.editor-add-panel > summary::-webkit-details-marker {
  display: none;
}

.editor-add-panel > form {
  width: min(380px, calc(100vw - 40px));
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  display: grid;
  gap: 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 14px;
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(38, 31, 33, 0.18);
}

.editor-add-panel label {
  display: grid;
  gap: 5px;
}

.direction-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.direction-editor-card {
  min-width: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.direction-editor-card.is-dragging,
.photo-organizer-card.is-dragging,
.service-editor-row.is-dragging {
  opacity: 0.5;
  outline: 2px dashed var(--brand);
  outline-offset: 2px;
}

.direction-card-handle,
.service-drag-handle,
.photo-drag-handle {
  cursor: grab;
  color: var(--ink-soft);
}

.direction-card-handle {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
}

.direction-cover-preview {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: #ece9e6;
}

.direction-cover-preview > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.direction-cover-empty {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--ink-soft);
  text-align: center;
}

.direction-cover-empty .icon {
  width: 30px;
  height: 30px;
}

.direction-photo-count,
.photo-cover-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 4px;
  padding: 5px 7px;
  background: rgba(34, 29, 31, 0.84);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.direction-cover-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
}

.direction-card-form {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.direction-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.direction-delete-form {
  padding: 0 14px 14px;
}

.photo-organizer {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.direction-drop-list {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 5px;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}

.direction-drop-list header {
  margin-bottom: 8px;
}

.direction-drop-target {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 9px 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.direction-drop-target span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direction-drop-target small {
  min-width: 24px;
  text-align: right;
}

.direction-drop-target:hover,
.direction-drop-target.is-active {
  border-color: var(--line);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.direction-drop-target.is-drop-ready {
  border-color: var(--brand);
  outline: 3px solid rgba(184, 86, 104, 0.15);
}

.direction-drop-help {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
}

.photo-organizer-main {
  min-width: 0;
}

.photo-organizer-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.photo-upload {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 14px;
  background: var(--surface);
}

.photo-dropzone {
  min-height: 170px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 2px dashed var(--line-strong);
  border-radius: 6px;
  padding: 22px;
  color: var(--ink-soft);
  text-align: center;
  cursor: pointer;
}

.photo-dropzone:hover,
.photo-dropzone.is-dragging {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.photo-dropzone .icon {
  width: 34px;
  height: 34px;
}

.photo-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.photo-dropzone strong {
  color: var(--ink);
  font-size: 15px;
}

.photo-dropzone span,
.upload-selection {
  font-size: 11px;
}

.photo-upload-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.photo-organizer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.photo-organizer-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.photo-organizer-card.is-cover {
  border-color: var(--brand);
}

.photo-organizer-image {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: #ece9e6;
}

.photo-organizer-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-drag-handle {
  width: 34px;
  height: 34px;
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
}

.photo-cover-badge {
  top: 8px;
  right: 8px;
}

.photo-organizer-body {
  display: grid;
  gap: 10px;
  padding: 11px;
}

.photo-organizer-body > strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-quick-actions {
  display: flex;
  gap: 6px;
}

.photo-quick-actions form {
  margin: 0;
}

.photo-move-form label,
.photo-inline-editor form {
  display: grid;
  gap: 6px;
}

.photo-inline-editor {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.photo-inline-editor summary {
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.photo-inline-editor form {
  margin-top: 9px;
}

.photo-delete-form .button {
  width: 100%;
}

.empty-state--upload {
  min-height: 260px;
}

.service-editor-list {
  display: grid;
  gap: 10px;
}

.service-editor-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 42px;
  align-items: stretch;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(38, 32, 35, 0.04);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.service-editor-row:hover {
  border-color: var(--line-strong);
  box-shadow: 0 7px 20px rgba(38, 32, 35, 0.06);
}

.service-sort-control {
  min-width: 0;
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--line);
  padding-right: 12px;
}

.service-position {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.service-drag-handle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease;
}

.service-drag-handle:hover {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--ink);
}

.service-order-buttons { display: none; }

.service-order-button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
}
.service-order-button .icon {
  width: 18px;
  height: 18px;
}
.service-order-button:hover:not(:disabled) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}
.service-order-button:disabled {
  opacity: 0.3;
  cursor: default;
}

.service-editor-form {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 130px minmax(320px, 1.35fr) auto;
  align-items: start;
  gap: 12px;
}

.service-editor-form label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.service-editor-form label > span {
  min-height: 15px;
  line-height: 15px;
}

.service-editor-form input {
  height: 42px;
}

.service-editor-form textarea {
  height: 74px;
  min-height: 74px;
  resize: none;
  line-height: 1.45;
}

.service-save-button {
  min-height: 42px;
  align-self: end;
  white-space: nowrap;
}

.service-delete-form {
  align-self: end;
  margin: 0;
}

.service-delete-button {
  width: 42px;
  height: 42px;
  border-color: #f1cbd2;
  background: var(--danger-soft);
  color: var(--danger);
}

.service-delete-button:hover {
  border-color: var(--danger);
  background: var(--danger);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(158, 62, 77, 0.18);
}

.media-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: 6px;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.media-dialog::backdrop {
  background: rgba(24, 20, 21, 0.72);
}

.media-dialog-shell {
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(22, 18, 19, 0.3);
}

.media-dialog-header,
.media-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.media-dialog-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.media-dialog-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
}

.crop-workbench {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 24px;
  background: #2f2b2c;
}

.crop-frame {
  width: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #181617;
  cursor: crosshair;
  touch-action: none;
}

.crop-frame--wide {
  aspect-ratio: 16 / 7;
}

.crop-frame--landscape {
  aspect-ratio: 4 / 3;
}

.crop-frame--portrait {
  width: min(72%, 360px);
  aspect-ratio: 4 / 5;
  justify-self: center;
}

.crop-frame--square {
  width: min(78%, 420px);
  aspect-ratio: 1;
  justify-self: center;
}

.crop-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.crop-focus {
  width: 24px;
  height: 24px;
  position: absolute;
  transform: translate(-50%, -50%);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(32, 27, 29, 0.55);
  pointer-events: none;
}

.crop-focus::before,
.crop-focus::after {
  content: "";
  position: absolute;
  background: #ffffff;
}

.crop-focus::before {
  width: 8px;
  height: 2px;
  top: 9px;
  left: 6px;
}

.crop-focus::after {
  width: 2px;
  height: 8px;
  top: 6px;
  left: 9px;
}

.crop-sliders {
  display: grid;
  gap: 10px;
}

.crop-sliders label {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.crop-sliders label > span {
  color: inherit;
  text-align: center;
}

.crop-sliders input {
  width: 100%;
  accent-color: var(--brand);
}

.crop-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  text-align: center;
}

.media-library {
  min-width: 0;
  overflow: auto;
  padding: 16px;
}

.media-library[hidden] {
  display: none;
}

.media-dialog-workspace:has(.media-library[hidden]) {
  grid-template-columns: 1fr;
}

.media-library-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.media-library-heading h3 {
  margin: 0;
  font-size: 14px;
}

.media-library-heading span {
  color: var(--ink-soft);
  font-size: 11px;
}

.media-library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.media-choice {
  min-width: 0;
  display: grid;
  gap: 5px;
  border: 2px solid transparent;
  border-radius: 5px;
  padding: 4px;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.media-choice[hidden] {
  display: none;
}

.media-choice:hover,
.media-choice.is-selected {
  border-color: var(--brand);
}

.media-choice img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  border-radius: 3px;
  object-fit: cover;
}

.media-choice span {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .direction-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-organizer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-editor-form {
    grid-template-columns: minmax(180px, 1fr) 130px;
  }

  .service-body-field {
    grid-column: 1 / -1;
  }

  .service-editor-form .button {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 820px) {
  .editor-hero-band {
    min-height: 440px;
    padding: 68px 24px 38px;
  }

  .editor-copy-band,
  .editor-portfolio-band,
  .editor-services-band,
  .editor-about-band,
  .editor-contact-band {
    padding: 24px 18px;
  }

  .editor-copy-band,
  .editor-about-band,
  .visual-control-grid,
  .photo-organizer,
  .media-dialog-workspace {
    grid-template-columns: 1fr;
  }

  .editor-portfolio-band,
  .editor-services-band,
  .editor-toolbar,
  .photo-organizer-header {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-about-photo {
    min-height: 420px;
  }

  .editor-contact-band .inline-grid,
  .inline-grid {
    grid-template-columns: 1fr;
  }

  .visual-control-preview--hero {
    aspect-ratio: 4 / 3;
  }

  .direction-editor-grid {
    grid-template-columns: 1fr;
  }

  .direction-drop-list {
    position: static;
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 12px;
  }

  .direction-drop-list header,
  .direction-drop-help {
    display: none;
  }

  .direction-drop-target {
    flex: 0 0 auto;
  }

  .photo-organizer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-editor-row {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 12px 10px;
    padding: 12px;
  }

  .service-sort-control {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-content: flex-start;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 10px;
  }

  .service-drag-handle { display: none; }

  .service-order-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .service-order-button { display: grid; place-items: center; }

  .service-editor-form {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 1fr;
  }

  .service-body-field,
  .service-editor-form .button {
    grid-column: auto;
  }

  .service-editor-form .button {
    justify-self: stretch;
  }

  .service-delete-form {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .media-dialog-workspace {
    overflow: auto;
  }

  .crop-workbench {
    padding: 16px;
  }

  .media-library {
    overflow: visible;
  }
}

@media (max-width: 520px) {
  .editor-tabs {
    width: 100%;
  }

  .editor-tabs a {
    min-width: 0;
    padding: 9px 10px;
  }

  .editor-hero-band {
    min-height: 400px;
    padding-inline: 14px;
  }

  .inline-field--display input {
    font-size: 36px;
  }

  .inline-field--section-title input,
  .inline-field--section-title textarea {
    font-size: 27px;
  }

  .editor-save-bar,
  .visual-control-actions,
  .direction-card-actions,
  .photo-upload-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-save-bar .button,
  .visual-control-actions .button,
  .direction-card-actions .button,
  .photo-upload-actions .button {
    width: 100%;
  }

  .photo-organizer-grid {
    grid-template-columns: 1fr;
  }

  .editor-add-panel {
    width: 100%;
  }

  .editor-add-panel > summary {
    width: 100%;
  }

  .editor-add-panel > form {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .media-dialog {
    width: 100vw;
    max-height: 100vh;
    margin: 0;
  }

  .media-dialog-shell {
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .media-library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.editor-nav-band {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 24px;
  background: #fffdfb;
}

.editor-nav-band > strong {
  flex: 0 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.editor-nav-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 8px;
}

.editor-nav-fields .inline-field input {
  padding: 6px 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.editor-process-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 44px;
  padding: 40px 32px;
  background: #5b3d47;
  color: #f7eeeb;
}

.editor-process-copy {
  align-self: start;
}

.editor-process-list {
  display: grid;
}

.editor-process-step {
  display: grid;
  grid-template-columns: 34px minmax(110px, 0.55fr) minmax(180px, 1fr);
  align-items: start;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 14px 0;
}

.editor-process-step > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .editor-nav-band {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-nav-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .editor-process-band {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 18px;
  }

  .editor-process-step {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .editor-process-step .inline-field--body {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .editor-nav-band {
    padding: 12px 14px;
  }

  .editor-nav-fields {
    grid-template-columns: 1fr 1fr;
  }

  .editor-nav-fields .inline-field input {
    text-align: left;
  }
}
body.admin-confirm-open {
  overflow: hidden;
}

.admin-confirm-dialog {
  width: min(460px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #211c1e;
  box-shadow: 0 24px 72px rgba(35, 25, 29, 0.28);
}

.admin-confirm-dialog::backdrop {
  background: rgba(35, 29, 31, 0.58);
  backdrop-filter: blur(2px);
}

.admin-confirm-shell {
  display: grid;
  gap: 24px;
  padding: 28px;
}

.admin-confirm-copy {
  display: grid;
  gap: 10px;
}

.admin-confirm-copy .eyebrow {
  margin: 0;
  color: #a33b54;
}

.admin-confirm-copy h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.admin-confirm-copy > p:not(.eyebrow) {
  margin: 0;
  color: #4e4649;
  font-size: 14px;
  line-height: 1.55;
}

.admin-confirm-copy small {
  color: #8c555f;
  font-size: 12px;
  font-weight: 700;
}

.admin-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-confirm-actions .button {
  min-width: 118px;
}

.direction-delete-note {
  margin: 8px 12px 0;
  color: #776d70;
  font-size: 11px;
}

@media (max-width: 520px) {
  .admin-confirm-dialog {
    width: calc(100vw - 24px);
    margin: auto;
  }

  .admin-confirm-shell {
    gap: 20px;
    padding: 22px 18px 18px;
  }

  .admin-confirm-copy h2 {
    font-size: 22px;
  }

  .admin-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-confirm-actions .button {
    min-width: 0;
    width: 100%;
  }
}
.upload-selection {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.upload-selection-summary {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.upload-selection-summary[data-state="error"] {
  color: #a5213c;
}

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.upload-preview-grid[hidden],
.upload-progress[hidden] {
  display: none !important;
}

.upload-preview-item {
  position: relative;
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 34px 4px 4px;
  background: #f7f8f8;
}

.upload-preview-item img {
  width: 72px;
  height: 64px;
  display: block;
  border-radius: 4px;
  object-fit: cover;
  background: #e8eaeb;
}

.upload-preview-item > span {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.upload-preview-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-preview-item small {
  color: var(--ink-soft);
  font-size: 10px;
}

.upload-preview-remove {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #e8eaeb;
  color: #625b5e;
  font: 700 18px/1 Arial, sans-serif;
  cursor: pointer;
}

.upload-preview-remove:hover {
  background: #f3dfe4;
  color: #982b45;
}

.upload-progress > span {
  height: 7px;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #e6e8e9;
}

.upload-progress i {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--brand);
  transition: width 180ms ease;
}

.photo-upload[aria-busy="true"] .photo-dropzone {
  pointer-events: none;
  cursor: progress;
  opacity: 0.72;
}

@media (max-width: 560px) {
  .upload-preview-grid {
    grid-template-columns: 1fr;
  }
}
/* Horizontal composition controls for the first screen. */
.editor-hero-copy[data-hero-layout-surface] {
  width: 100%;
  max-width: none;
}

.hero-layout-item {
  width: calc(var(--hero-layout-width, 100) * 1%);
  margin-left: calc(var(--hero-layout-x, 0) * 1%);
  position: relative;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 16px 8px;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.hero-layout-item:hover,
.hero-layout-item:focus-within,
.hero-layout-item.is-adjusting {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(18, 13, 15, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.hero-layout-item .inline-field--lead textarea,
.hero-layout-item .inline-grid--buttons {
  max-width: none;
}

.hero-layout-move,
.hero-layout-resize {
  position: absolute;
  z-index: 4;
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #35282c;
  opacity: 0;
  transition: opacity 0.16s ease, background 0.16s ease;
  touch-action: none;
}

.hero-layout-item:hover .hero-layout-move,
.hero-layout-item:hover .hero-layout-resize,
.hero-layout-item:focus-within .hero-layout-move,
.hero-layout-item:focus-within .hero-layout-resize,
.hero-layout-item.is-adjusting .hero-layout-move,
.hero-layout-item.is-adjusting .hero-layout-resize {
  opacity: 1;
}

.hero-layout-move {
  top: 3px;
  right: 4px;
  width: 28px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  cursor: grab;
}

.hero-layout-item.is-adjusting .hero-layout-move {
  cursor: grabbing;
}

.hero-layout-move svg {
  width: 15px;
  height: 15px;
}

.hero-layout-resize {
  top: 7px;
  bottom: 7px;
  width: 12px;
  padding: 0;
  background: transparent;
  cursor: ew-resize;
}

.hero-layout-resize::before {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 5px;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(36, 25, 29, 0.34);
}

.hero-layout-resize--left {
  left: -6px;
}

.hero-layout-resize--right {
  right: -6px;
}

@media (hover: none) {
  .hero-layout-move,
  .hero-layout-resize {
    opacity: 0.82;
  }
}

/* v29 hero carousel editor */
.hero-slides-heading { align-items: center; display: flex; justify-content: space-between; gap: 18px; }
.editor-hero-manage { position: absolute; z-index: 4; top: 14px; right: 16px; border-color: rgba(255, 255, 255, 0.36); background: rgba(31, 25, 27, 0.56); color: #fff; backdrop-filter: blur(8px); }
.editor-hero-manage:hover { background: rgba(31, 25, 27, 0.78); color: #fff; }
.hero-slides-heading p:last-child { max-width: 720px; margin: 7px 0 0; color: var(--muted); }
.hero-slide-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hero-slide-card { min-width: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.hero-slide-edit-form,
.hero-slide-add-form { display: grid; }
.hero-slide-card .visual-control-preview { position: relative; }
.hero-slide-number {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(34, 29, 31, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.hero-slide-card-body { padding: 14px; }
.hero-slide-card-body > p { min-height: 18px; margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.hero-slide-card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-slide-card-title strong { font-size: 15px; }
.hero-slide-card-title span { padding: 4px 7px; border-radius: 6px; background: #e9f4ef; color: #26664f; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.hero-slide-tools { min-height: 52px; padding: 7px 10px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 5px; background: #fbfaf9; }
.hero-slide-tools form { margin: 0; }
.hero-slide-tools .hero-slide-delete-form { margin-left: auto; }
.hero-slide-tools .hero-slide-delete-form .icon-button { color: #b83b4d; }
.hero-slide-card--add { border-style: dashed; }
.hero-slide-card--add .visual-control-preview img { opacity: 0.16; filter: grayscale(1); }
.hero-slide-add-overlay { position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand); }
.hero-slide-add-overlay svg { width: 42px; height: 42px; }
.hero-slide-add-form .button { margin-top: 12px; }
.visual-control-grid--single { grid-template-columns: minmax(280px, 520px); }

@media (max-width: 820px) {
  .hero-slides-heading { align-items: flex-start; flex-direction: column; }
  .hero-slide-grid { grid-template-columns: 1fr; }
  .visual-control-grid--single { grid-template-columns: 1fr; }
}
/* Storage usage and audit infinite loading */
.storage-meter {
  margin: 2px 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}
.storage-meter__summary,
.storage-meter__legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.storage-meter__summary > span:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.storage-meter__summary small,
.storage-meter__legend {
  color: var(--ink-faint);
  font-size: 11px;
}
.storage-meter__summary strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
}
.storage-meter__state {
  flex: 0 0 auto;
  color: var(--sage);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}
.storage-meter__track {
  height: 12px;
  overflow: hidden;
  margin: 12px 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
}
.storage-meter__track > span {
  width: 0;
  min-width: 2px;
  height: 100%;
  display: block;
  border-radius: 3px;
  background: var(--sage);
  transition: width 220ms ease;
}
.storage-meter--warn .storage-meter__state { color: var(--amber); }
.storage-meter--warn .storage-meter__track > span { background: var(--amber); }
.storage-meter--critical .storage-meter__state { color: var(--danger); }
.storage-meter--critical .storage-meter__track > span { background: var(--danger); }
.storage-meter--unknown .storage-meter__state { color: var(--ink-faint); }
.storage-meter--unknown .storage-meter__track > span {
  min-width: 0;
  background: var(--ink-faint);
}
.audit-heading--actions {
  justify-content: flex-end;
  margin-bottom: 12px;
}
.audit-load-more {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  color: var(--ink-faint);
  font-size: 12px;
  text-align: center;
}
.audit-load-more__spinner {
  width: 18px;
  height: 18px;
  display: none;
  border: 2px solid var(--line-strong);
  border-top-color: var(--brand);
  border-radius: 50%;
}
.audit-load-more.is-loading .audit-load-more__spinner {
  display: block;
  animation: audit-spinner 700ms linear infinite;
}
.audit-load-more.has-error { color: var(--danger); }
.audit-load-more.is-complete { min-height: 48px; }
@keyframes audit-spinner {
  to { transform: rotate(360deg); }
}
@media (max-width: 520px) {
  .storage-meter__summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .storage-meter__state { text-align: left; }
  .audit-heading--actions,
  .audit-export-form,
  .audit-export-form .button {
    width: 100%;
  }
}
