:root {
  --wine: #69172f;
  --wine-dark: #4f1025;
  --navy: #23365d;
  --ink: #25304a;
  --paper: #f2f2ee;
  --white: #fffefa;
  --gold: #b08d57;
  --line: #dedfd9;
  --muted: #6e7784;
  --rose: #fbf4f0;
  --shadow: 0 18px 60px rgba(37, 48, 74, 0.055);
  --font-body: "DM Sans", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-condensed: "Oswald", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 14px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a {
  color: inherit;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid #b08d5788;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link {
  position: absolute;
  top: -200px;
  left: 12px;
  background: var(--wine);
  color: white;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.25px;
  color: var(--gold);
}
/* Visitor: short welcome, clear identity selection, single primary action */
.public-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4.5vw, 74px);
  background: #fafaf7;
  border-bottom: 1px solid #e3e2dc;
}
.public-header .brand {
  height: 100%;
  display: flex;
  align-items: center;
}
.public-header .brand img {
  width: 110px;
  height: 67px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.header-label {
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}
.header-label b {
  color: var(--gold);
}
.public-main {
  min-height: calc(100dvh - 76px);
  display: grid;
  grid-template-columns: minmax(340px, 43%) minmax(0, 1fr);
}
.editorial-panel {
  position: relative;
  overflow: hidden;
  background: var(--wine);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 760px;
  padding: 60px clamp(35px, 5.1vw, 96px) 42px;
}
.editorial-panel:before {
  content: "";
  width: 550px;
  height: 550px;
  position: absolute;
  left: -360px;
  bottom: -290px;
  border-radius: 50%;
  box-shadow:
    0 0 0 100px #ffffff08,
    0 0 0 210px #ffffff05;
  border: 1px solid #ffffff35;
  pointer-events: none;
}
.editorial-top {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ebd0b4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}
.gold-diamond {
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  border: 1px solid #d6b78b;
  display: block;
}
.editorial-copy {
  margin: auto 0;
  padding: 54px 0;
}
.editorial-copy > span {
  font: 400 clamp(19px, 2.5vw, 30px) var(--font-display);
  color: #efdcd7;
}
.editorial-copy h1 {
  font: 500 clamp(50px, 5.8vw, 91px)/1.07 var(--font-display);
  letter-spacing: -2.7px;
  margin: 18px 0 27px;
}
.editorial-copy h1 em {
  font-weight: 400;
  color: #dfb87d;
  white-space: nowrap;
}
.gold-rule {
  background: #d6b47d;
  width: 70px;
  height: 2px;
  margin: 26px 0;
}
.editorial-copy p {
  font-size: 14px;
  line-height: 1.9;
  color: #f5e8e7;
  max-width: 330px;
}
.editorial-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ecd9d2;
  font: 600 11px var(--font-condensed);
  letter-spacing: 2px;
}
.editorial-footer span {
  color: #d8b681;
}
.editorial-footer small {
  margin-left: auto;
  color: #dfbfc2;
  font-size: 9px;
  letter-spacing: 1px;
}
.form-area {
  min-width: 0;
  background: #f8f8f4;
  padding: 64px clamp(24px, 6vw, 110px) 26px;
  display: flex;
  flex-direction: column;
}
.form-card {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}
.form-heading h2,
.success-screen h2 {
  font: 500 clamp(31px, 3vw, 43px)/1.17 var(--font-display);
  letter-spacing: -1.1px;
  color: var(--navy);
  margin: 10px 0 10px;
}
.form-heading h2 em,
.success-screen h2 em {
  color: var(--wine);
  font-weight: 400;
}
.form-heading p {
  font-size: 13px;
  color: #727b84;
  line-height: 1.8;
  margin: 0;
  max-width: 480px;
}
.flow-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  background: white;
  border: 1px solid #eae6df;
  border-radius: 12px;
  margin: 28px 0 32px;
  color: #7b838d;
  font-size: 12px;
  font-weight: 700;
}
.flow-mini > span:not(.flow-connector) {
  display: flex;
  align-items: center;
  gap: 9px;
}
.flow-mini b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 100%;
  background: #ece8e1;
  color: #927656;
  font-size: 12px;
}
.flow-mini .flow-active {
  color: var(--wine);
}
.flow-mini .flow-active b {
  background: var(--wine);
  color: white;
}
.flow-connector {
  flex: 1;
  height: 1px;
  background: #ded9d0;
}
.step-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}
.step-num {
  font: 500 31px/1 var(--font-condensed);
  color: var(--gold);
}
.step-heading h3 {
  font: 500 22px/1.3 var(--font-display);
  margin: 0;
  color: var(--navy);
}
.step-heading p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #808995;
}
.field {
  margin-bottom: 22px;
  position: relative;
}
.field > label,
.manage-form label {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 9px;
}
.required {
  color: var(--wine);
}
.optional {
  font-size: 10px;
  letter-spacing: 0.8px;
  color: #9197a0;
  font-weight: 700;
}
.select-wrap,
.search-wrap,
.filter-search {
  position: relative;
  min-width: 0;
}
.select-wrap select,
.search-wrap input,
.filter-search input,
.manage-form input:not([type="file"]),
textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #d8d9d5;
  border-radius: 9px;
  min-height: 55px;
  padding: 12px 48px 12px 16px;
  color: var(--navy);
  font-size: 16px;
  outline: none;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.select-wrap select:focus,
.search-wrap input:focus,
.filter-search input:focus,
.manage-form input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px #b08d5723;
}
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.select-chevron,
.search-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--wine);
  pointer-events: none;
  flex-shrink: 0;
}
.search-wrap input {
  padding-left: 47px;
  padding-right: 45px;
}
.search-wrap input:disabled {
  color: #89919b;
  background: #f2f2ef;
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--gold);
  pointer-events: none;
}
.search-wrap input::-webkit-search-cancel-button {
  display: none;
}
.search-wrap[aria-invalid="true"] input {
  border-color: #b74755;
}
.name-results {
  background: #fff;
  border: 1px solid #dcd9d1;
  border-radius: 10px;
  margin-top: 7px;
  max-height: min(280px, 33vh);
  overflow-y: auto;
  box-shadow: 0 9px 28px #18253b12;
}
.name-option {
  border: 0;
  border-bottom: 1px solid #efeeeb;
  background: #fff;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  min-height: 52px;
  padding: 12px 16px;
  font-size: 13px;
}
.name-option:hover,
.name-option.is-active {
  background: #faf3ed;
}
.name-option:last-child {
  border: 0;
}
.name-option strong {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.name-option small {
  font-size: 11px;
  color: #9a7b58;
  flex-shrink: 0;
}
.name-option:disabled {
  background: #f7f7f5;
  color: #8b949c;
  cursor: not-allowed;
}
.name-option:disabled small {
  color: #9da3a6;
}
.name-empty {
  padding: 17px;
  color: #798492;
  font-size: 12px;
  line-height: 1.65;
}
.field-hint {
  font-size: 11px;
  line-height: 1.6;
  color: #7b838b;
  margin: 8px 0 0;
}
.field-hint.is-error {
  color: #b13d50;
}
.selected-ticket {
  border: 1px solid #e2c7c3;
  background: #fff7f4;
  border-radius: 10px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.selected-check {
  width: 34px;
  height: 34px;
  border-radius: 100%;
  background: var(--wine);
  color: white;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.selected-check svg {
  width: 18px;
  height: 18px;
}
.ticket-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.ticket-copy small {
  font-size: 9px;
  letter-spacing: 1.3px;
  font-weight: 800;
  color: #92737c;
}
.ticket-copy strong {
  font-size: 14px;
  color: var(--wine);
  overflow-wrap: anywhere;
  margin: 4px 0;
}
.ticket-copy span {
  font-size: 11px;
  color: #837d82;
}
.change-name {
  border: 1px solid #d7b6bc;
  background: white;
  border-radius: 7px;
  color: var(--wine);
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 800;
  min-height: 40px;
}
.extras-section {
  margin-top: 27px;
  border: 1px solid #e6e1d8;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.extras-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 0;
  background: white;
  padding: 18px 17px;
  gap: 13px;
  color: var(--navy);
  min-height: 82px;
}
.extras-glyph {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: #f9f1e7;
  color: var(--wine);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.extras-glyph svg {
  width: 22px;
  height: 22px;
}
.extras-title {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.extras-title strong {
  font-size: 14px;
}
.extras-title small {
  font-size: 11px;
  color: #6d7885;
  line-height: 1.45;
}
.extras-title b {
  color: var(--gold);
  white-space: nowrap;
}
.extras-chevron {
  width: 20px;
  height: 20px;
  color: var(--wine);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.extras-toggle[aria-expanded="true"] .extras-chevron {
  transform: rotate(180deg);
}
.extras-toggle[aria-expanded="true"] {
  border-bottom: 1px solid #eee8df;
}
.extras-body {
  padding: 20px 18px 22px;
}
.extras-help {
  font-size: 12px;
  color: #737d88;
  margin: 0 0 17px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.media-upload {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 5px;
  min-height: 138px;
  border: 1px dashed #cbc1b1;
  border-radius: 9px;
  background: #fffcf9;
  padding: 12px 10px;
  cursor: pointer;
}
.media-upload:hover,
.media-upload:focus-within {
  border-color: var(--wine);
  background: #fdf8f5;
}
.media-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}
.media-upload svg {
  width: 26px;
  height: 26px;
  color: var(--wine);
  margin-bottom: 3px;
}
.media-upload strong {
  font-size: 12px;
  color: var(--navy);
}
.media-upload small {
  font-size: 10px;
  color: #7b8590;
  overflow-wrap: anywhere;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.attachment-feedback {
  background: #f7f2e9;
  border-radius: 7px;
  color: #725a38;
  padding: 10px 12px;
  font-size: 11px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.extras-body textarea {
  padding: 13px 14px 28px;
  min-height: 110px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.6;
}
.field-counter {
  font-size: 10px;
  text-align: right;
  color: #8993a0;
  margin-top: 3px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #6b7684;
  font-size: 11px;
  line-height: 1.65;
  cursor: pointer;
}
.consent input {
  accent-color: var(--wine);
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 18px;
}
.form-actions {
  margin-top: 24px;
}
.primary-button {
  background: var(--wine);
  border: 1px solid var(--wine);
  color: white;
  border-radius: 9px;
  width: 100%;
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 19px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15px;
  transition: background 0.18s;
}
.primary-button:not(:disabled):hover {
  background: #7b233c;
}
.primary-button svg {
  height: 22px;
  width: 22px;
  flex-shrink: 0;
}
.primary-button:disabled {
  background: #b3a4a8;
  border-color: #b3a4a8;
  opacity: 1;
}
.action-hint {
  text-align: center;
  color: #808894;
  font-size: 11px;
  margin: 10px 0 0;
}
.help-foot {
  display: flex;
  align-items: start;
  gap: 12px;
  border-top: 1px solid #e4e3dc;
  padding-top: 21px;
  margin-top: 30px;
  color: #79828a;
}
.help-foot svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
}
.help-foot p {
  margin: 0;
  font-size: 11px;
  line-height: 1.75;
}
.help-foot b {
  color: var(--navy);
}
.public-footer {
  text-align: center;
  color: #899097;
  font-size: 10px;
  letter-spacing: 0.8px;
  margin: 39px auto 0;
}
.public-footer span {
  color: var(--gold);
}
.success-screen {
  padding: 30px 0 15px;
  text-align: center;
}
.success-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 100%;
  border: 2px solid #b8d2bb;
  background: #eff8ef;
  color: #287242;
  margin: 5px auto 24px;
}
.success-icon svg {
  width: 39px;
  height: 39px;
}
.success-screen h2 {
  font-size: 40px;
  margin: 16px 0;
}
.success-screen > p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 13px;
}
.success-person {
  background: #fffcf7;
  border: 1px dashed #bfa16d;
  border-radius: 10px;
  text-align: left;
  padding: 22px;
  margin: 28px 0;
}
.success-person > * {
  display: block;
}
.success-person small {
  font-size: 10px;
  letter-spacing: 1.1px;
  color: #988058;
  font-weight: 700;
}
.success-person strong {
  font: 500 24px var(--font-display);
  color: var(--wine);
  margin: 5px 0;
}
.success-person span {
  color: var(--navy);
  font-size: 12px;
  margin-bottom: 8px;
}
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--navy);
  color: white;
  padding: 13px 17px;
  max-width: calc(100vw - 36px);
  border-radius: 9px;
  box-shadow: 0 12px 32px #18253b35;
  z-index: 1000;
  font-size: 12px;
  line-height: 1.55;
}
/* Admin demo */
body[data-page="admin"] {
  background: #f6f6f3;
}
.demo-entry {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 30px 18px;
  background: linear-gradient(150deg, #fbfaf7, #f3f1ec);
}
.entry-card {
  width: min(440px, 100%);
  padding: 38px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.entry-card > img {
  width: 125px;
  height: 76px;
  object-fit: contain;
  display: block;
  margin-bottom: 16px;
}
.entry-card h1 {
  font: 500 39px/1.15 var(--font-display);
  color: var(--navy);
  margin: 10px 0;
}
.entry-card h1 em {
  color: var(--wine);
  font-weight: 400;
}
.entry-card > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}
.demo-warning {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff6e8;
  border: 1px solid #eaddc5;
  border-radius: 9px;
  padding: 15px;
  margin: 22px 0;
  color: #725d42;
  font-size: 12px;
  line-height: 1.6;
}
.demo-warning strong {
  color: #745227;
}
.entry-return {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.dashboard {
  min-height: 100dvh;
  background: #f5f6f3;
}
.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 246px;
  background: var(--navy);
  color: white;
  padding: 30px 16px 22px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.admin-brand {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 0 11px 30px;
}
.admin-brand-mark {
  font: 500 33px var(--font-display);
  color: #e9c898;
}
.admin-brand strong {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
}
.admin-brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #d3c1a4;
  margin-top: 2px;
}
.side-eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #9dacbf;
  margin: 7px 12px 18px;
  font-weight: 800;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.side-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c5d0e0;
  background: none;
  border: 0;
  border-radius: 8px;
  text-align: left;
  padding: 12px 13px;
  min-height: 48px;
  font-size: 13px;
  font-weight: 650;
}
.side-nav button:hover {
  background: #ffffff13;
}
.side-nav button.active {
  background: #ffffff24;
  color: white;
}
.nav-icon {
  font-size: 20px;
  min-width: 23px;
  text-align: center;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid #ffffff25;
  padding: 18px 10px 0;
}
.demo-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  color: #e8d8bf;
  font-size: 10px;
  letter-spacing: 0.8px;
}
.demo-status span {
  width: 7px;
  height: 7px;
  background: #e3be81;
  border-radius: 50%;
}
.side-bottom small {
  display: block;
  margin: 7px 0 19px;
  color: #b0bdd0;
  font-size: 10px;
}
.side-bottom button {
  width: 100%;
  border: 1px solid #ffffff46;
  color: #fff;
  background: #ffffff15;
  border-radius: 7px;
  padding: 11px 6px;
  font-size: 12px;
}
.admin-content-wrap {
  margin-left: 246px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.admin-header {
  height: 78px;
  background: white;
  border-bottom: 1px solid #e6e7e2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 0 clamp(18px, 3vw, 52px);
}
.admin-header strong {
  display: block;
  color: var(--navy);
  font-size: 12px;
  margin-top: 4px;
}
.admin-header .eyebrow {
  font-size: 9px;
}
.admin-demo-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #a08d69;
}
.admin-content {
  width: 100%;
  max-width: 1600px;
  padding: 36px clamp(17px, 3vw, 52px) 48px;
  margin: 0 auto;
  flex: 1;
}
.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.dashboard-heading h1 {
  font: 500 clamp(30px, 3.1vw, 45px)/1.18 var(--font-display);
  color: var(--navy);
  letter-spacing: -1px;
  margin: 8px 0;
}
.dashboard-heading h1 em {
  color: var(--wine);
  font-weight: 400;
}
.dashboard-heading p {
  font-size: 12px;
  color: #838b95;
  margin: 0;
}
.outline-button {
  border: 1px solid #cfd1ce;
  background: white;
  color: var(--navy);
  border-radius: 8px;
  padding: 12px 16px;
  min-height: 46px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.outline-button:hover {
  background: #f8f6f2;
}
.main-metric {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--wine);
  color: white;
  border-radius: 11px;
  overflow: hidden;
}
.main-metric > div {
  padding: 28px 32px;
}
.main-metric > div:first-child > span {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 800;
  color: #ebcbd1;
}
.main-metric strong {
  display: block;
  font: 500 70px/1 var(--font-condensed);
  margin: 12px 0;
}
.metric-track {
  height: 6px;
  border-radius: 9px;
  background: #ffffff45;
  max-width: 390px;
  overflow: hidden;
}
.metric-track div {
  height: 100%;
  background: #e3c085;
  width: 0;
  border-radius: 9px;
}
.metric-right {
  border-left: 1px solid #ffffff26;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  font: 500 11px var(--font-condensed);
  letter-spacing: 2.5px;
  color: #efdbdf;
}
.metric-right b {
  font: 500 25px/1.4 var(--font-display);
  letter-spacing: 0;
  color: white;
  max-width: 300px;
}
.metric-right small {
  font-size: 10px;
  letter-spacing: 1px;
  color: #ebc6cc;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 17px 0;
}
.kpi {
  background: #fff;
  border: 1px solid #e4e6e1;
  border-radius: 10px;
  padding: 18px;
  min-width: 0;
}
.kpi small,
.kpi span {
  display: block;
  color: #7f8892;
  font-size: 11px;
}
.kpi strong {
  font: 500 39px var(--font-condensed);
  color: var(--navy);
  display: block;
  margin: 5px 0 0;
}
.kpi span {
  font-size: 10px;
  color: #9ca2a9;
}
.overview-grid,
.manage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.dashboard-card {
  padding: 24px;
  background: white;
  border: 1px solid #e5e7e2;
  border-radius: 11px;
  min-width: 0;
}
.panel-title {
  margin-bottom: 21px;
}
.panel-title h2 {
  font: 500 23px/1.2 var(--font-display);
  color: var(--navy);
  margin: 7px 0 0;
}
.category-progress {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.category-line .category-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #576277;
  gap: 10px;
  margin-bottom: 6px;
}
.category-meta small {
  color: #9098a1;
  font-size: 11px;
}
.progress-track {
  background: #eeefeb;
  height: 7px;
  border-radius: 10px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: var(--wine);
  border-radius: 10px;
}
.category-line:nth-child(2) .progress-track span {
  background: var(--gold);
}
.category-line:nth-child(3) .progress-track span {
  background: var(--navy);
}
.category-line:nth-child(4) .progress-track span {
  background: #957382;
}
.recent-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f1f0ed;
  padding-bottom: 11px;
}
.recent-item:last-child {
  border: 0;
}
.recent-avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #f7efe8;
  color: var(--wine);
  font: 500 17px var(--font-display);
}
.recent-copy {
  min-width: 0;
  flex: 1;
}
.recent-copy strong,
.recent-copy span {
  display: block;
  overflow-wrap: anywhere;
}
.recent-copy strong {
  color: var(--navy);
  font-size: 12px;
}
.recent-copy span,
.recent-item time {
  color: #8d969e;
  font-size: 10px;
}
.empty-state {
  text-align: center;
  background: #f8f8f5;
  border-radius: 8px;
  padding: 27px 17px;
  color: #8b939b;
  font-size: 12px;
  line-height: 1.7;
}
.guest-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 210px) minmax(
      135px,
      170px
    );
  gap: 10px;
  margin-bottom: 20px;
}
.guest-filters select,
.guest-filters input,
.manage-form input {
  font-size: 13px;
  min-height: 48px;
}
.filter-search input {
  padding-left: 42px;
}
.filter-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.guest-table-title,
.guest-record {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) 65px;
  gap: 12px;
  align-items: center;
}
.guest-table-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #9fa5ab;
  padding: 12px;
  border-bottom: 1px solid #e9eae7;
}
.guest-record {
  padding: 13px 12px;
  border-bottom: 1px solid #f0f0ed;
  font-size: 12px;
}
.guest-record:last-child {
  border: 0;
}
.guest-record strong {
  font-size: 12px;
  color: var(--navy);
  display: block;
  overflow-wrap: anywhere;
}
.guest-record .guest-detail {
  color: #929ba5;
  font-size: 10px;
  display: block;
  margin-top: 3px;
}
.status-pill {
  width: max-content;
  border-radius: 20px;
  background: #eaf5ec;
  color: #2f7651;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 800;
}
.status-pill.absent {
  background: #f1f2f1;
  color: #8d969c;
}
.row-remove {
  border: 0;
  background: none;
  color: #aa4b5d;
  font-size: 11px;
  font-weight: 750;
  padding: 9px 3px;
}
.count-chip {
  font: 700 10px var(--font-body);
  color: #917b58;
  background: #f7f0e5;
  border-radius: 20px;
  padding: 5px 8px;
  vertical-align: middle;
  white-space: nowrap;
}
.manage-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.manage-form label {
  margin-bottom: 0;
  font-size: 12px;
}
.manage-form input,
.manage-form .select-wrap {
  margin-bottom: 9px;
}
.manage-form .primary-button {
  min-height: 47px;
  margin-top: 5px;
}
.card-subcopy {
  color: #7e8992;
  font-size: 12px;
  line-height: 1.8;
}
.card-subcopy code {
  color: var(--wine);
  background: #f9f1e8;
  border-radius: 3px;
  padding: 2px 5px;
}
.import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 21px;
}
.import-actions .primary-button {
  width: auto;
  min-height: 46px;
  padding: 10px 17px;
}
.import-file {
  position: relative;
  cursor: pointer;
}
.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.memory-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  gap: 12px;
  padding: 24px;
  background: white;
  border: 1px solid #e5e7e2;
  border-radius: 10px;
}
.quote-mark {
  color: var(--gold);
  font: 500 43px/1 var(--font-display);
}
.memory-card blockquote {
  margin: 0;
  color: var(--navy);
  font: 400 19px/1.55 var(--font-display);
  flex: 1;
  overflow-wrap: anywhere;
}
.memory-card .media-label {
  font-size: 11px;
  color: #96784e;
  overflow-wrap: anywhere;
}
.memory-by {
  font-size: 11px;
  color: var(--wine);
  font-weight: 800;
  border-top: 1px solid #eeefeb;
  padding-top: 13px;
}
.memory-by small {
  display: block;
  color: #8e98a1;
  font-size: 10px;
  font-weight: 400;
}
.qr-frame {
  min-height: 230px;
  background: #f9f8f5;
  border: 1px dashed #dbd9d0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 10px;
  gap: 13px;
  text-align: center;
  padding: 20px;
  margin-bottom: 16px;
}
.qr-frame svg {
  width: 69px;
  height: 69px;
  color: var(--gold);
}
.qr-frame p {
  font-size: 12px;
  line-height: 1.7;
  max-width: 275px;
  color: #85909a;
}
.qr-frame img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}
.access-row {
  border-top: 1px solid #eef0ec;
  padding: 14px 0;
}
.access-row strong {
  font-size: 12px;
  color: var(--navy);
}
.access-row p {
  font-size: 11px;
  color: #7e8792;
  margin: 5px 0 0;
}
.demo-warning.compact {
  font-size: 11px;
  margin: 12px 0;
}
.danger-button {
  background: white;
  color: var(--wine);
  border: 1px solid #e3bdc6;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 700;
}
.admin-footer {
  padding: 19px clamp(18px, 3vw, 52px);
  border-top: 1px solid #e3e4df;
  font-size: 9px;
  letter-spacing: 1px;
  color: #9ba3a6;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.admin-footer span {
  letter-spacing: 0;
}
.mobile-nav {
  display: none;
}
@media (max-width: 1020px) {
  .public-main {
    grid-template-columns: 40% 60%;
  }
  .editorial-panel {
    padding: 46px 26px;
  }
  .editorial-copy h1 {
    font-size: clamp(46px, 5.7vw, 66px);
  }
  .form-area {
    padding: 44px 34px 28px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guest-filters {
    grid-template-columns: 1fr 1fr;
  }
  .guest-filters .filter-search {
    grid-column: 1/-1;
  }
}
@media (max-width: 820px) {
  .public-main {
    display: block;
  }
  .public-header {
    height: 68px;
    padding: 0 21px;
  }
  .public-header .brand img {
    width: 103px;
    height: 60px;
  }
  .editorial-panel {
    min-height: 0;
    padding: 24px 25px 27px;
  }
  .editorial-copy {
    padding: 13px 0 0;
  }
  .editorial-copy > span {
    font-size: 16px;
  }
  .editorial-copy h1 {
    font-size: clamp(34px, 5.5vw, 48px);
    letter-spacing: -1px;
    margin: 5px 0 10px;
  }
  .editorial-copy h1 br {
    display: none;
  }
  .editorial-copy .gold-rule {
    display: none;
  }
  .editorial-copy p {
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
  }
  .editorial-footer {
    display: none;
  }
  .editorial-top {
    font-size: 9px;
  }
  .form-area {
    padding: 29px 24px 22px;
  }
  .form-card {
    max-width: 620px;
  }
  .form-heading p {
    max-width: 540px;
  }
  .admin-sidebar {
    display: none;
  }
  .admin-content-wrap {
    margin-left: 0;
  }
  .admin-header {
    height: 70px;
  }
  .admin-content {
    padding-bottom: 105px;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 5px 5px calc(6px + env(safe-area-inset-bottom));
    background: white;
    border-top: 1px solid #e5e7e2;
    z-index: 50;
    box-shadow: 0 -5px 23px #1b273b12;
  }
  .mobile-nav button {
    min-width: 0;
    border: 0;
    background: white;
    color: #88919b;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1px;
    min-height: 54px;
  }
  .mobile-nav button span {
    font-size: 20px;
    line-height: 1.3;
  }
  .mobile-nav button.active {
    color: var(--wine);
  }
  .dashboard-heading h1 {
    font-size: 36px;
  }
}
@media (max-width: 570px) {
  .public-header {
    height: 62px;
    padding: 0 17px;
  }
  .public-header .brand img {
    width: 98px;
    height: 56px;
  }
  .header-label {
    font-size: 9px;
    letter-spacing: 1.3px;
  }
  .editorial-panel {
    padding: 19px 21px 22px;
  }
  .editorial-copy {
    padding-top: 10px;
  }
  .editorial-copy > span {
    font-size: 15px;
  }
  .editorial-copy h1 {
    font-size: 34px;
    margin: 4px 0 8px;
  }
  .editorial-copy p {
    font-size: 11.5px;
  }
  .form-area {
    background: #f8f8f5;
    padding: 26px 17px 24px;
  }
  .form-heading h2 {
    font-size: 33px;
    margin: 6px 0 8px;
  }
  .form-heading p {
    font-size: 12.5px;
    line-height: 1.65;
  }
  .flow-mini {
    margin: 22px 0 27px;
    padding: 12px 13px;
    font-size: 11px;
    gap: 7px;
  }
  .flow-mini b {
    width: 23px;
    height: 23px;
    font-size: 11px;
  }
  .step-heading h3 {
    font-size: 20px;
  }
  .step-heading p {
    font-size: 11px;
  }
  .select-wrap select,
  .search-wrap input {
    min-height: 54px;
  }
  .field {
    margin-bottom: 20px;
  }
  .extras-toggle {
    padding: 15px 12px;
    gap: 10px;
  }
  .extras-title strong {
    font-size: 13px;
  }
  .extras-title small {
    font-size: 10px;
  }
  .extras-glyph {
    height: 35px;
    width: 35px;
  }
  .extras-body {
    padding: 17px 12px 20px;
  }
  .media-grid {
    gap: 9px;
  }
  .media-upload {
    padding: 10px 6px;
    min-height: 126px;
  }
  .media-upload small {
    font-size: 9px;
  }
  .primary-button {
    min-height: 56px;
  }
  .public-footer {
    font-size: 9px;
    margin-top: 27px;
  }
  .success-screen h2 {
    font-size: 36px;
  }
  .admin-header {
    height: 63px;
    padding: 0 15px;
  }
  .admin-header .eyebrow {
    font-size: 8px;
  }
  .admin-header strong {
    font-size: 10px;
  }
  .admin-demo-label {
    font-size: 8px;
    max-width: 124px;
    text-align: right;
    line-height: 1.5;
  }
  .admin-content {
    padding: 25px 15px 95px;
  }
  .dashboard-heading {
    align-items: start;
    gap: 12px;
    margin-bottom: 20px;
  }
  .dashboard-heading h1 {
    font-size: 31px;
  }
  .dashboard-heading p {
    font-size: 11px;
  }
  .dashboard-heading .outline-button {
    display: none;
  }
  .main-metric {
    grid-template-columns: minmax(0, 1fr) 116px;
  }
  .main-metric > div {
    padding: 21px;
  }
  .main-metric strong {
    font-size: 61px;
  }
  .main-metric .metric-right {
    padding: 17px 12px;
  }
  .metric-right {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .metric-right b {
    font-size: 13px;
  }
  .metric-right small {
    font-size: 9px;
    letter-spacing: 0;
  }
  .kpi-grid {
    gap: 10px;
    margin: 12px 0;
  }
  .kpi {
    padding: 14px;
    min-height: 110px;
  }
  .kpi strong {
    font-size: 33px;
  }
  .kpi small {
    font-size: 10px;
  }
  .kpi span {
    font-size: 9px;
  }
  .overview-grid,
  .manage-grid {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 11px;
  }
  .dashboard-card {
    padding: 19px 16px;
  }
  .panel-title h2 {
    font-size: 20px;
  }
  .guest-filters {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .guest-filters select {
    font-size: 12px;
  }
  .guest-table-title {
    display: none;
  }
  .guest-record {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 14px;
    padding: 14px 0;
  }
  .guest-record .guest-record-category {
    display: none;
  }
  .guest-record .status-pill {
    grid-column: 1;
    grid-row: 2;
  }
  .guest-record .row-remove {
    grid-column: 2;
    grid-row: 1/3;
  }
  .guest-record strong {
    font-size: 12px;
  }
  .memory-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .memory-card {
    min-height: 176px;
    padding: 20px;
  }
  .admin-footer {
    display: none;
  }
  .toast {
    right: 12px;
    bottom: 85px;
  }
}
@media (max-width: 350px) {
  .form-area {
    padding-inline: 12px;
  }
  .header-label {
    font-size: 8px;
  }
  .editorial-copy h1 {
    font-size: 30px;
  }
  .flow-mini {
    font-size: 10px;
  }
  .flow-mini > span:not(.flow-connector) {
    gap: 5px;
  }
  .extras-title strong {
    font-size: 12px;
  }
  .extras-title small {
    font-size: 9px;
  }
  .media-upload strong {
    font-size: 11px;
  }
  .admin-demo-label {
    max-width: 100px;
    font-size: 7px;
  }
  .guest-filters {
    grid-template-columns: 1fr;
  }
  .guest-filters .filter-search {
    grid-column: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.memory-privacy {
  display: inline-block;
  width: max-content;
  font-size: 10px;
  letter-spacing: 0.2px;
  font-weight: 800;
  color: #2f7651;
  background: #eaf5ec;
  padding: 5px 9px;
  border-radius: 20px;
}
.memory-privacy.private {
  background: #f2f2f1;
  color: #707782;
}

/* V8: Media capture actions stay visible, no accordion/dropdown */
.memories-section {
  border-top: 1px solid #e3e3dd;
  margin: 28px 0 23px;
  padding-top: 28px;
}
.memory-step {
  align-items: flex-start;
  margin-bottom: 16px;
}
.memory-step h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 5px;
}
.optional-pill {
  font: 700 10px/1.3 var(--font-body);
  border: 1px solid #e2d5c4;
  color: #90744c;
  background: #fbf6ee;
  border-radius: 30px;
  padding: 4px 9px;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: middle;
}
.memories-intro {
  background: #fcf9f4;
  border: 1px solid #ece1d3;
  color: #596676;
  border-radius: 9px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.65;
  margin-bottom: 17px;
}
.memories-intro svg {
  height: 19px;
  width: 19px;
  flex: 0 0 19px;
  color: var(--wine);
  margin-top: 1px;
}
.capture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.capture-card {
  min-width: 0;
  border: 1px solid #e1e3dd;
  border-radius: 12px;
  background: #fffefa;
  padding: 17px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.capture-card-title {
  display: flex;
  gap: 11px;
  align-items: center;
}
.capture-card-icon {
  background: #f7e9e9;
  border: 1px solid #f2dfe1;
  color: var(--wine);
  width: 39px;
  height: 39px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: 0 0 39px;
}
.capture-card-icon svg {
  width: 21px;
  height: 21px;
}
.capture-card-title strong,
.capture-card-title small {
  display: block;
  line-height: 1.45;
}
.capture-card-title strong {
  font-size: 14px;
  color: var(--navy);
}
.capture-card-title small {
  font-size: 10px;
  color: #7d8790;
  margin-top: 2px;
}
.capture-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.capture-actions button {
  width: 100%;
  border-radius: 8px;
  min-height: 44px;
  font-weight: 750;
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 9px;
}
.capture-actions svg {
  height: 17px;
  width: 17px;
}
.capture-main {
  background: var(--wine);
  border: 1px solid var(--wine);
  color: white;
}
.capture-main:hover {
  background: var(--wine-dark);
}
.capture-alt {
  background: white;
  border: 1px solid #d7d8d3;
  color: var(--navy);
}
.capture-alt:hover {
  border-color: var(--gold);
  background: #faf7f0;
}
.visually-hidden-file {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.picked-media {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #ecece7;
  padding-top: 12px;
  min-width: 0;
}
.picked-thumbnail {
  height: 43px;
  width: 43px;
  flex: 0 0 43px;
  background: #f2e5e2;
  color: #895468;
  border-radius: 7px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 9px;
  font-weight: 800;
}
.picked-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.picked-thumbnail video {
  max-width: 100%;
}
.video-thumb svg {
  width: 22px;
  height: 22px;
}
.picked-copy {
  flex: 1;
  min-width: 0;
}
.picked-copy strong {
  font-size: 11px;
  color: var(--navy);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.picked-copy small {
  font-size: 10px;
  color: var(--muted);
}
.media-remove {
  border: 0;
  background: #fcf2f1;
  color: var(--wine);
  border-radius: 6px;
  padding: 8px;
  font-size: 11px;
  font-weight: 700;
  min-height: 36px;
}
.video-preview {
  max-width: 100%;
  max-height: 160px;
  border-radius: 8px;
  background: #181818;
}
.attachment-feedback {
  font-size: 11px;
  color: #646f7b;
  background: #f6f7f3;
  border: 1px solid #e6e8e2;
  border-radius: 8px;
  margin: 12px 0 24px;
  padding: 10px 12px;
}
.message-block {
  margin-bottom: 12px;
}
.message-block label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
}
.demo-media-note {
  font-size: 10.5px;
  color: #87919a;
  line-height: 1.6;
  margin: 12px 0 0;
}
.media-preview-admin {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.media-preview-admin img,
.media-preview-admin video {
  max-width: 100%;
  max-height: 235px;
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #f7f6f2;
}
.media-preview-admin small {
  font-size: 10px;
  color: var(--muted);
}
@media (max-width: 570px) {
  .memories-section {
    margin-top: 25px;
    padding-top: 23px;
  }
  .capture-grid {
    gap: 10px;
  }
  .capture-card {
    padding: 11px;
    gap: 12px;
  }
  .capture-card-title {
    gap: 7px;
  }
  .capture-card-icon {
    height: 33px;
    width: 33px;
    flex-basis: 33px;
  }
  .capture-card-icon svg {
    height: 18px;
    width: 18px;
  }
  .capture-card-title strong {
    font-size: 13px;
  }
  .capture-card-title small {
    font-size: 9px;
  }
  .capture-actions button {
    min-height: 44px;
    font-size: 11px;
    padding: 8px 5px;
  }
  .picked-thumbnail {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .picked-media {
    gap: 6px;
    flex-wrap: wrap;
  }
  .picked-copy {
    flex-basis: calc(100% - 45px);
  }
  .media-remove {
    margin-left: auto;
  }
  .memories-intro {
    font-size: 11px;
  }
}
@media (max-width: 350px) {
  .capture-grid {
    grid-template-columns: 1fr;
  }
  .capture-card {
    padding: 13px;
  }
  .capture-card-title small {
    font-size: 10px;
  }
  .capture-actions {
    flex-direction: row;
  }
  .capture-actions button {
    flex: 1;
    min-width: 0;
  }
  .picked-media {
    flex-wrap: nowrap;
  }
  .picked-copy {
    flex-basis: auto;
  }
}

/* V8.1: tighter vertical rhythm; keep touch targets and readability intact. */
@media (min-width: 821px) {
  .editorial-panel {
    min-height: 0;
    padding-top: 42px;
    padding-bottom: 30px;
  }
  .editorial-copy {
    padding: 20px 0;
  }
  .editorial-copy h1 {
    margin: 12px 0 16px;
  }
  .gold-rule {
    margin: 16px 0;
  }
  .form-area {
    padding-top: 32px;
    padding-bottom: 18px;
  }
}
.form-heading h2 {
  margin: 6px 0 7px;
}
.flow-mini {
  margin: 16px 0 20px;
  padding: 10px 14px;
}
.step-heading {
  margin-bottom: 13px;
  gap: 10px;
}
.field {
  margin-bottom: 14px;
}
.field > label {
  margin-bottom: 6px;
}
.select-wrap select,
.search-wrap input {
  min-height: 50px;
}
.field-hint {
  margin-top: 5px;
}
.memories-section {
  margin: 17px 0 15px;
  padding-top: 17px;
}
.memories-intro {
  margin-bottom: 11px;
  padding: 9px 11px;
}
.capture-grid {
  gap: 10px;
}
.capture-card {
  padding: 12px;
  gap: 9px;
}
.capture-actions {
  gap: 6px;
}
.attachment-feedback {
  margin: 9px 0 13px;
  padding: 8px 10px;
}
.message-block {
  margin-bottom: 9px;
}
.extras-body textarea,
.message-block textarea {
  min-height: 90px;
}
.demo-media-note {
  margin-top: 8px;
}
.public-footer {
  margin-top: 15px;
}
.dashboard-heading {
  margin-bottom: 16px;
}
.kpi-grid {
  margin: 12px 0;
  gap: 11px;
}
.overview-grid,
.manage-grid {
  margin-top: 12px;
  gap: 12px;
}
.dashboard-card {
  padding: 18px;
}
.memory-grid {
  gap: 12px;
}
.memory-card {
  padding: 17px;
  min-height: 175px;
}
@media (max-width: 820px) {
  .form-area {
    padding-top: 19px;
  }
  .editorial-panel {
    padding-top: 18px;
    padding-bottom: 17px;
  }
  .editorial-copy {
    padding-top: 6px;
  }
}
@media (max-width: 570px) {
  .public-header {
    height: 58px;
  }
  .editorial-panel {
    padding: 13px 17px 15px;
  }
  .editorial-copy h1 {
    margin: 2px 0 5px;
    font-size: 31px;
  }
  .editorial-copy p {
    line-height: 1.45;
  }
  .form-area {
    padding: 16px 16px 18px;
  }
  .form-heading h2 {
    margin: 4px 0 5px;
    font-size: 30px;
  }
  .form-heading p {
    line-height: 1.5;
  }
  .flow-mini {
    margin: 13px 0 17px;
    padding: 9px 11px;
  }
  .step-heading {
    margin-bottom: 11px;
  }
  .step-heading h3 {
    font-size: 19px;
  }
  .field {
    margin-bottom: 13px;
  }
  .select-wrap select,
  .search-wrap input {
    min-height: 50px;
  }
  .memories-section {
    margin-top: 15px;
    padding-top: 15px;
  }
  .memories-intro {
    margin-bottom: 10px;
    padding: 9px;
  }
  .capture-grid {
    gap: 8px;
  }
  .capture-card {
    padding: 10px;
    gap: 8px;
  }
  .capture-actions button {
    min-height: 44px;
  }
  .attachment-feedback {
    margin: 9px 0 12px;
  }
  .message-block textarea {
    min-height: 86px;
  }
  .public-footer {
    margin-top: 15px;
  }
  .admin-content {
    padding-top: 18px;
  }
  .dashboard-heading {
    margin-bottom: 14px;
  }
  .kpi-grid {
    margin: 10px 0;
    gap: 9px;
  }
  .dashboard-card {
    padding: 15px;
  }
}

/* V8.2: desktop-first check-in workspace. Mobile/tablet retain V8.1. */
@media (min-width: 1021px) {
  .public-main {
    display: block;
    min-height: calc(100dvh - 76px);
    background: #f8f8f4;
  }
  .editorial-panel {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 36px;
    align-items: center;
    padding: 25px max(38px, calc((100vw - 1160px) / 2));
    background: var(--wine);
  }
  .editorial-top {
    grid-column: 1/-1;
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 10px;
  }
  .editorial-copy {
    margin: 0;
    padding: 0;
  }
  .editorial-copy > span {
    font-size: 16px;
  }
  .editorial-copy h1 {
    font-size: clamp(35px, 3.4vw, 51px);
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 5px 0 7px;
  }
  .editorial-copy h1 br {
    display: none;
  }
  .editorial-copy .gold-rule {
    display: none;
  }
  .editorial-copy p {
    max-width: 650px;
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
  }
  .editorial-footer {
    justify-self: end;
    align-self: end;
    flex-wrap: wrap;
    max-width: 235px;
    justify-content: end;
    text-align: right;
    gap: 5px;
    font-size: 10px;
  }
  .editorial-footer small {
    flex-basis: 100%;
    margin: 0;
  }
  .form-area {
    padding: 29px 32px 30px;
  }
  .form-card {
    max-width: 1160px;
  }
  .form-heading {
    display: flex;
    flex-direction: column;
    max-width: 840px;
  }
  .form-heading h2 {
    font-size: 32px;
    margin: 3px 0 5px;
  }
  .form-heading p {
    max-width: 800px;
    font-size: 12px;
    line-height: 1.55;
  }
  .flow-mini {
    max-width: 480px;
    margin: 13px 0 20px;
    padding: 8px 12px;
  }
  #guestForm {
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    gap: 0 28px;
    align-items: start;
  }
  .form-step {
    grid-column: 1;
    grid-row: 1;
    padding: 22px 22px 17px;
    border: 1px solid #e5e2db;
    border-radius: 12px;
    background: #fff;
  }
  .form-step .field:last-child {
    margin-bottom: 0;
  }
  .memories-section {
    grid-column: 2;
    grid-row: 1/3;
    margin: 0;
    padding: 22px;
    border: 1px solid #e5e2db;
    border-radius: 12px;
    background: #fff;
  }
  .memories-intro {
    margin-bottom: 12px;
  }
  .capture-card {
    padding: 12px;
  }
  .capture-actions {
    flex-direction: row;
  }
  .capture-actions button {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    font-size: 11px;
  }
  .form-actions {
    grid-column: 1;
    grid-row: 2;
    margin-top: 14px;
  }
  .help-foot {
    max-width: 470px;
    margin-top: 15px;
  }
  .public-footer {
    max-width: 1160px;
    width: 100%;
    margin: 18px auto 0;
  }
  .success-screen {
    max-width: 540px;
    margin: 30px auto;
  }
}
@media (min-width: 1021px) and (max-width: 1180px) {
  #guestForm {
    grid-template-columns: minmax(290px, 0.9fr) minmax(0, 1.1fr);
    gap: 0 18px;
  }
  .memories-section,
  .form-step {
    padding: 17px;
  }
  .capture-actions {
    flex-direction: column;
  }
}

/* HKbukutamu: larger, legible header logo without changing the event layout. */
.public-header {
  min-height: 112px;
  height: 112px;
}
.public-header .brand img {
  width: 160px;
  height: 106px;
  object-fit: contain;
}
@media (max-width: 820px) {
  .public-header {
    min-height: 88px;
    height: 88px;
  }
  .public-header .brand img {
    width: 128px;
    height: 82px;
  }
}

/* Dashboard attendance finder — readable desktop table, compact mobile cards */
.dashboard [data-panel="guests"] .dashboard-heading {
  align-items: center;
}
.dashboard [data-panel="guests"] .dashboard-heading h1 {
  margin: 5px 0;
}
.dashboard [data-panel="guests"] .dashboard-card {
  border-radius: 14px;
}
.dashboard [data-panel="guests"] .guest-filters {
  grid-template-columns: minmax(230px, 1fr) minmax(155px, 230px) minmax(
      145px,
      190px
    );
  gap: 12px;
  margin: 19px 0 14px;
}
.dashboard [data-panel="guests"] .filter-search {
  position: relative;
}
.dashboard [data-panel="guests"] .filter-search input {
  width: 100%;
  border: 1px solid #d7d9d5;
  background: #fff;
  border-radius: 9px;
  min-height: 52px;
  padding-left: 44px;
  color: var(--navy);
}
.dashboard [data-panel="guests"] .guest-legend {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  margin: 3px 0 12px;
  color: #647181;
  font-size: 11px;
}
.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 4px;
}
.legend-present {
  background: #23804e;
}
.legend-absent {
  background: #bc4451;
}
.dashboard [data-panel="guests"] .guest-table-title,
.dashboard [data-panel="guests"] .guest-record {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(120px, 0.65fr);
  gap: 16px;
}
.dashboard [data-panel="guests"] .guest-table-title {
  background: #f8f8f6;
  border-radius: 8px;
  padding: 13px 17px;
}
.dashboard [data-panel="guests"] .guest-record {
  padding: 15px 17px;
  min-height: 69px;
}
.dashboard [data-panel="guests"] .guest-record:hover {
  background: #fbfaf8;
}
.dashboard [data-panel="guests"] .guest-record strong {
  font-size: 13px;
  line-height: 1.5;
}
.dashboard [data-panel="guests"] .guest-record-category {
  font-size: 12px;
  color: #56647a;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.dashboard [data-panel="guests"] .guest-detail {
  font-size: 11px;
  line-height: 1.5;
  margin-top: 3px;
}
.dashboard [data-panel="guests"] .status-pill {
  font-size: 11px;
  min-width: 108px;
  text-align: center;
  justify-self: start;
  background: #e8f6ed;
  color: #207246;
  border: 1px solid #c5e7d1;
  padding: 7px 11px;
}
.dashboard [data-panel="guests"] .status-pill.absent {
  background: #fff0f0;
  color: #ae3445;
  border-color: #f2ced3;
}
.backup-panel {
  margin-top: 16px;
}
.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.backup-actions .outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.backup-note {
  font-size: 11px;
  color: #8b6a58;
  margin: 12px 0 0;
  line-height: 1.65;
}
@media (max-width: 1020px) {
  .dashboard [data-panel="guests"] .guest-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard [data-panel="guests"] .filter-search {
    grid-column: 1/-1;
  }
}
@media (max-width: 650px) {
  .dashboard [data-panel="guests"] .dashboard-heading {
    align-items: flex-start;
  }
  .dashboard [data-panel="guests"] .dashboard-heading h1 {
    font-size: 32px;
  }
  .dashboard [data-panel="guests"] .dashboard-heading .outline-button {
    display: none;
  }
  .dashboard [data-panel="guests"] .dashboard-card {
    padding: 16px;
  }
  .dashboard [data-panel="guests"] .guest-filters {
    gap: 9px;
    margin: 16px 0 12px;
  }
  .dashboard [data-panel="guests"] .guest-filters select {
    font-size: 12px;
    min-height: 48px;
  }
  .dashboard [data-panel="guests"] .guest-table-title {
    display: none;
  }
  .dashboard [data-panel="guests"] .guest-record {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 12px;
    padding: 15px 1px;
    border-bottom: 1px solid #e9ebe7;
  }
  .dashboard [data-panel="guests"] .guest-record-identity {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .dashboard [data-panel="guests"] .guest-record strong {
    font-size: 14px;
  }
  .dashboard [data-panel="guests"] .guest-record-category {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #53627b;
  }
  .dashboard [data-panel="guests"] .status-pill {
    grid-column: 2;
    grid-row: 2;
    min-width: 110px;
    justify-self: end;
  }
  .dashboard [data-panel="guests"] .guest-legend {
    font-size: 10px;
    gap: 10px;
  }
  .dashboard [data-panel="guests"] .panel-title h2 {
    font-size: 21px;
  }
  .backup-actions {
    flex-direction: column;
  }
  .backup-actions .outline-button {
    width: 100%;
  }
}

/* Production admin login */
.admin-login-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  margin: 18px 0;
}
.admin-login-fields label {
  font-size: 12px;
  font-weight: 750;
  color: #23365d;
}
.admin-login-fields input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d7d9d5;
  border-radius: 8px;
  font: inherit;
  background: white;
  color: #23365d;
}
.admin-login-fields input:focus {
  outline: 2px solid #b08d57;
  outline-offset: 1px;
}
/* Story moderation inside existing dashboard */
.story-moderation-list {
  display: grid;
  gap: 14px;
}
.story-moderation-card {
  padding: 20px;
  border: 1px solid #e9e1dc;
  border-radius: 14px;
  background: #fff;
}
.story-moderation-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.story-moderation-top strong {
  font-size: 15px;
}
.story-moderation-card > small {
  color: #8a7c83;
}
.story-moderation-card > p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.story-visible {
  color: #16814b;
  font-size: 12px;
  font-weight: 700;
}
.story-hidden {
  color: #b54747;
  font-size: 12px;
  font-weight: 700;
}
.story-moderation-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.story-moderation-media img,
.story-moderation-media video {
  max-width: 180px;
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

/* 2026-11-10 dashboard refresh — Hidup Kedua public identity, compact moderation */
body[data-page="admin"] {
  --admin-maroon: #69172f;
  --admin-deep: #4f1025;
  --admin-gold: #b08d57;
  --admin-paper: #f7f4ee;
  --admin-border: #e9dfd7;
  background: var(--admin-paper);
}
body[data-page="admin"] .dashboard {
  background: var(--admin-paper);
  color: #382a32;
}
body[data-page="admin"] .admin-sidebar {
  background: var(--admin-deep);
  padding-top: 22px;
  border-right: 1px solid #8e5262;
}
body[data-page="admin"] .admin-brand {
  background: #fffdf8;
  border-radius: 12px;
  padding: 9px 14px;
  margin: 0 0 22px;
  justify-content: center;
  min-height: 100px;
}
body[data-page="admin"] .admin-brand-logo {
  display: block;
  width: 155px;
  max-width: 100%;
  height: 85px;
  object-fit: contain;
}
body[data-page="admin"] .side-eyebrow {
  color: #d8b7b4;
  margin: 4px 12px 15px;
}
body[data-page="admin"] .side-nav button {
  color: #f2dfe2;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s;
}
body[data-page="admin"] .side-nav button:hover {
  background: #ffffff16;
}
body[data-page="admin"] .side-nav button.active {
  background: #ffffff20;
  color: #fff;
  border-color: #d1a16b90;
  box-shadow: inset 3px 0 0 var(--admin-gold);
}
body[data-page="admin"] .side-bottom {
  border-top-color: #ffffff2b;
}
body[data-page="admin"] .side-bottom small {
  color: #e4cdd1;
}
body[data-page="admin"] .demo-status {
  color: #f7e6d4;
}
body[data-page="admin"] .admin-header {
  background: #fffdf9;
  border-bottom: 1px solid var(--admin-border);
}
body[data-page="admin"] .admin-header strong {
  color: var(--admin-maroon);
}
body[data-page="admin"] .admin-content {
  max-width: 1480px;
  padding-top: 30px;
}
body[data-page="admin"] .dashboard-heading h1,
body[data-page="admin"] .panel-title h2 {
  color: var(--admin-maroon);
}
body[data-page="admin"] .dashboard-heading p {
  color: #7d7277;
  line-height: 1.6;
}
body[data-page="admin"] .dashboard-card,
body[data-page="admin"] .kpi {
  background: #fffdfa;
  border-color: var(--admin-border);
  border-radius: 14px;
  box-shadow: 0 6px 24px #51233708;
}
body[data-page="admin"] .kpi strong {
  color: var(--admin-maroon);
}
body[data-page="admin"] .outline-button {
  border-color: #d9c4c4;
  color: var(--admin-maroon);
  background: #fffdfa;
}
body[data-page="admin"] .outline-button:hover {
  background: #f9eff0;
}
body[data-page="admin"] .guest-record:hover {
  background: #fbf5f1;
}
body[data-page="admin"] .guest-table-title {
  background: #f7f1eb !important;
}
body[data-page="admin"] .guest-record strong {
  color: #532137;
}
body[data-page="admin"] .guest-record-category {
  color: #806572;
}
body[data-page="admin"] .status-pill {
  border-radius: 99px;
}
body[data-page="admin"] .admin-footer {
  background: transparent;
  color: #9c818b;
}
body[data-page="admin"] .mobile-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fffaf6;
  border-top: 1px solid var(--admin-border);
}
body[data-page="admin"] .mobile-nav button {
  background: transparent;
  color: #866e79;
}
body[data-page="admin"] .mobile-nav button.active {
  color: var(--admin-maroon);
}
/* The story list uses compact independent cards, never full-size images. */
body[data-page="admin"] .story-moderation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
body[data-page="admin"] .story-moderation-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--admin-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 18px #4f102509;
}
body[data-page="admin"] .story-moderation-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
body[data-page="admin"] .story-moderation-identity {
  min-width: 0;
  display: grid;
  gap: 4px;
}
body[data-page="admin"] .story-moderation-identity strong {
  font-size: 14px;
  line-height: 1.4;
  color: var(--admin-maroon);
  overflow-wrap: anywhere;
}
body[data-page="admin"] .story-moderation-identity small {
  font-size: 11px;
  color: #877b7d;
}
body[data-page="admin"] .story-moderation-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 99px;
  background: #edf8f1;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
body[data-page="admin"] .story-moderation-badge.story-hidden {
  background: #fff1f1;
}
body[data-page="admin"] .story-moderation-message {
  margin: 0;
  color: #5b4d54;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}
body[data-page="admin"] .story-moderation-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  min-width: 0;
}
body[data-page="admin"] .story-moderation-tile {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid #e9e0db;
  border-radius: 10px;
  background: #f4eeea;
  text-decoration: none;
}
body[data-page="admin"] .story-moderation-tile img,
body[data-page="admin"] .story-moderation-tile video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}
body[data-page="admin"] .story-moderation-tile span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 7px;
  border-radius: 5px;
  background: #3c1c2cbd;
  color: white;
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
}
body[data-page="admin"] .story-moderation-video video {
  object-fit: contain;
  background: #281b24;
}
body[data-page="admin"] .story-moderation-actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0e8e3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
body[data-page="admin"] .story-moderation-actions span {
  font-size: 11px;
  color: #8a7a81;
}
body[data-page="admin"] .story-moderation-actions button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 11px;
}
@media (max-width: 1180px) {
  body[data-page="admin"] .story-moderation-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  body[data-page="admin"] .admin-content {
    padding-top: 24px;
  }
  body[data-page="admin"] .story-moderation-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  body[data-page="admin"] .story-moderation-list {
    grid-template-columns: 1fr;
  }
  body[data-page="admin"] .story-moderation-card {
    padding: 14px;
    gap: 12px;
  }
  body[data-page="admin"] .story-moderation-media {
    gap: 6px;
  }
  body[data-page="admin"] .story-moderation-actions {
    flex-wrap: wrap;
  }
  body[data-page="admin"] .story-moderation-actions button {
    width: 100%;
  }
  body[data-page="admin"] .dashboard-heading {
    align-items: flex-start;
  }
  body[data-page="admin"] .admin-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Admin-only cleanup controls: compact, deliberate, and visually distinct */
body[data-page="admin"] .dashboard [data-panel="guests"] .guest-table-title,
body[data-page="admin"] .dashboard [data-panel="guests"] .guest-record {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.7fr) minmax(
      100px,
      0.5fr
    ) minmax(85px, 0.35fr);
  align-items: center;
  gap: 12px;
}
body[data-page="admin"] .row-reset {
  justify-self: end;
  min-height: 34px;
  padding: 6px 10px;
  background: #fff5f4;
  color: #a12d44;
  border: 1px solid #e8c8ce;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
body[data-page="admin"] .row-reset:hover {
  background: #ffe8e8;
}
body[data-page="admin"] .row-reset-empty {
  justify-self: end;
  color: #c4b6b9;
}
body[data-page="admin"] .danger-action {
  background: #fff1f1;
  color: #a52742;
  border: 1px solid #e3b8c1;
  border-radius: 8px;
  padding: 9px 13px;
  min-height: 38px;
  font-size: 11px;
  font-weight: 800;
}
body[data-page="admin"] .danger-action:hover:not(:disabled) {
  background: #ffe2e4;
}
body[data-page="admin"] .story-moderation-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
body[data-page="admin"] .cleanup-panel {
  margin-top: 17px;
  border: 1px solid #e7c8c6;
  background: #fffcfa;
}
body[data-page="admin"] .cleanup-count {
  font-size: 13px;
  font-weight: 750;
  color: #69172f;
}
body[data-page="admin"] .cleanup-warning {
  font-size: 12px;
  color: #9b394b;
  background: #fff3f2;
  border: 1px solid #f1d6d4;
  border-radius: 9px;
  padding: 12px 14px;
  line-height: 1.65;
}
body[data-page="admin"] .cleanup-label {
  display: block;
  margin: 16px 0 8px;
  font-size: 12px;
  color: #593948;
}
body[data-page="admin"] .cleanup-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
body[data-page="admin"] .cleanup-controls input {
  flex: 1;
  min-width: 200px;
  min-height: 44px;
  border: 1px solid #d9c8c5;
  border-radius: 8px;
  padding: 10px 13px;
  background: #fff;
  font: inherit;
}
body[data-page="admin"] .cleanup-controls button {
  min-height: 44px;
}
@media (max-width: 650px) {
  body[data-page="admin"] .dashboard [data-panel="guests"] .guest-record {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  body[data-page="admin"]
    .dashboard
    [data-panel="guests"]
    .guest-record-identity {
    grid-column: 1/-1;
  }
  body[data-page="admin"]
    .dashboard
    [data-panel="guests"]
    .guest-record-category {
    grid-column: 1;
    grid-row: 2;
  }
  body[data-page="admin"] .dashboard [data-panel="guests"] .status-pill {
    grid-column: 2;
    grid-row: 2;
  }
  body[data-page="admin"] .row-reset,
  body[data-page="admin"] .row-reset-empty {
    grid-column: 1/-1;
    grid-row: 3;
    justify-self: start;
  }
  body[data-page="admin"] .cleanup-controls {
    flex-direction: column;
    align-items: stretch;
  }
  body[data-page="admin"] .cleanup-controls input {
    min-width: 0;
    width: 100%;
  }
  body[data-page="admin"] .story-moderation-actions {
    align-items: flex-start;
  }
  body[data-page="admin"] .story-moderation-buttons {
    width: 100%;
  }
  body[data-page="admin"] .story-moderation-buttons .outline-button,
  body[data-page="admin"] .story-moderation-buttons .danger-action {
    width: auto;
    flex: 1;
  }
}

/* Clearly distinguish imported/invited guests from self-registered walk-ins. */
body[data-page=admin] .guest-origin-filter{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:9px 0 14px;font-size:12px;color:#62556a}
body[data-page=admin] .guest-origin-filter select{padding:9px 12px;border:1px solid #d9cbd0;border-radius:8px;background:#fff;color:#23365d;max-width:100%}
body[data-page=admin] .guest-origin{display:inline-block;font-size:10px;line-height:1.4;font-weight:700;border-radius:6px;padding:2px 6px;margin:3px 0}
body[data-page=admin] .guest-origin-walkin{background:#fce9d8;color:#8a4017}
body[data-page=admin] .guest-origin-registered{background:#e7edf7;color:#23365d}
