/* Kitchen — Parce's Bakery owner admin (logo palette) */
:root {
  --green-deep: #141414;
  --green: #1E4D8C;
  --green-mid: #2457A0;
  --green-soft: #C4A035;
  --green-mist: #F3EBD8;
  --ink: #141414;
  --ink-soft: #1A1A1A;
  --beige: #F7F1E6;
  --cream: #FAF6EF;
  --flag-yellow: #C4A035;
  --flag-blue: #1E4D8C;
  --flag-blue-dark: #163A6B;
  --flag-red: #8B1E2D;
  --gold: #C4A035;
  --gold-bright: #D4AF37;
  --wood: #C4A035;
  --wood-dark: #8A7020;
  --sand: #EDE4D4;
  --text: #141414;
  --text-muted: #5A5348;
  --white: #ffffff;
  --border: #D9CEB8;
  --danger: #8B1E2D;
  --warn: #9a6b1f;
  --ok: #1E4D8C;
  --shadow: 0 4px 20px rgba(20, 20, 20, 0.12);
  --radius: 12px;
  --font-display: "Fraunces", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --sidebar-w: 240px;
  --flag-stripe: linear-gradient(
    180deg,
    var(--flag-yellow) 0%,
    var(--flag-yellow) 33.33%,
    var(--flag-blue) 33.33%,
    var(--flag-blue) 66.66%,
    var(--flag-red) 66.66%,
    var(--flag-red) 100%
  );
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: var(--flag-blue); }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

.flag-stripe {
  display: block;
  height: 5px;
  width: 100%;
  background: var(--flag-stripe);
  flex-shrink: 0;
}

/* Login */
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(196,160,53,.12), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(30,77,140,.08), transparent 45%),
    var(--beige);
}
.login-card {
  width: min(400px, 100%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.login-card .flag-stripe { height: 6px; }
.login-card-inner { padding: 2rem; }
.login-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.login-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--sand), 0 2px 8px rgba(20,20,20,.15);
}
.login-card h1 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.55rem;
  margin-bottom: .15rem;
  line-height: 1.2;
}
.login-card h1 .script {
  font-family: var(--font-script);
  color: var(--gold);
  font-weight: 400;
  font-size: 1.15em;
}
.login-card .sub { color: var(--text-muted); margin-bottom: 1.25rem; font-size: .95rem; }
.login-card label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .9rem; }
.login-card input[type=password] {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
  margin-bottom: 1rem;
}
.login-card input[type=password]:focus {
  border-color: var(--flag-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 77, 140, 0.2);
}
.security-note {
  margin-top: 1rem;
  padding: .75rem;
  background: var(--green-mist);
  border-radius: 8px;
  font-size: .82rem;
  color: var(--text-muted);
}
.login-site-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--text-muted);
  text-decoration: none;
}
.login-site-link:hover { color: var(--flag-blue); }

/* Shell layout */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  transform: translateX(0);
  transition: transform .2s ease;
}
.sidebar .flag-stripe { height: 5px; }
.sidebar-brand {
  padding: 1rem 1.1rem 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.sidebar-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(196,160,53,.45);
}
.sidebar-brand strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  display: block;
  color: var(--cream);
  line-height: 1.25;
}
.sidebar-brand span { font-size: .78rem; opacity: .7; color: var(--gold-bright); }
.nav-list { list-style: none; padding: .75rem .5rem; flex: 1; }
.nav-list button {
  width: 100%;
  text-align: center;
  background: transparent;
  border: 0;
  color: inherit;
  padding: .7rem .85rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.nav-list button:hover, .nav-list button.active { background: rgba(255,255,255,.12); }
.nav-badge {
  background: var(--flag-red);
  color: var(--cream);
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 999px;
  min-width: 1.4rem;
  text-align: center;
}
.sidebar-foot { padding: 1rem; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-foot button {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: inherit;
  padding: .55rem;
  border-radius: 8px;
  cursor: pointer;
}
.sidebar-foot button:hover { border-color: var(--gold); color: var(--gold-bright); }

.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  background: var(--cream);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250,246,239,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.menu-toggle {
  display: none;
  background: var(--flag-blue);
  color: var(--cream);
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}
.topbar h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  flex: 1;
}
.topbar .btn-view-site {
  background: var(--flag-blue);
  color: var(--cream);
  border-color: transparent;
}
.topbar .btn-view-site:hover {
  background: var(--flag-blue-dark);
  color: var(--cream);
}
.content { padding: 1.25rem; max-width: 1100px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}
.btn-primary { background: var(--flag-blue); color: var(--cream); }
.btn-primary:hover { background: var(--flag-blue-dark); }
.btn-secondary { background: var(--cream); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { border-color: var(--gold); background: var(--green-mist); }
.btn-danger { background: #f8e8e5; color: var(--danger); border-color: #e8c4bc; }
.btn-sm { padding: .35rem .65rem; font-size: .85rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.card h3 { font-family: var(--font-display); color: var(--ink); margin-bottom: .5rem; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
}
.stat {
  background: var(--green-mist);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(196,160,53,.25);
}
.stat strong { display: block; font-size: 1.6rem; color: var(--ink); font-family: var(--font-display); }
.stat span { font-size: .85rem; color: var(--text-muted); }

.stat-link {
  appearance: none;
  font: inherit;
  text-align: center;
  cursor: pointer;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.stat-link:hover {
  border-color: var(--flag-blue, #1E4D8C);
  box-shadow: 0 0 0 2px rgba(30, 77, 140, 0.12);
  transform: translateY(-1px);
}

.stat-link:focus-visible {
  outline: 2px solid var(--flag-blue, #1E4D8C);
  outline-offset: 2px;
}

.stat-link:active {
  transform: translateY(0);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  margin-bottom: 1rem;
}
.toolbar select, .toolbar input, .field input, .field select, .field textarea {
  padding: .55rem .7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
  width: 100%;
}
.field { margin-bottom: .85rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.field .hint { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.checkbox-row { display: flex; align-items: center; gap: .5rem; font-weight: 600; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: center; padding: .65rem .5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
.actions { display: flex; flex-wrap: wrap; gap: .35rem; }

.pill {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  background: var(--sand);
}
.pill-new { background: #F5E6B8; color: var(--wood-dark); }
.pill-preparing { background: #d6e8ff; color: #1e4a7a; }
.pill-ready { background: #E8F0E8; color: #2a5a3a; }
.pill-picked_up { background: var(--green-mist); color: var(--ink); }
.pill-cancelled { background: #f5d5d0; color: var(--danger); }
.pill-paid { background: #e5f2e8; color: #1d6b3a; }
.pill-pickup { background: #f5e6b8; color: #6b5410; }
.pill-awaiting { background: #f6e4d4; color: #8a4b12; }
.pill-method { background: #e7eef8; color: #1e4a7a; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.mark-paid-row { display: flex; align-items: center; gap: 0.5rem; margin: 0.75rem 0; font-weight: 600; }

.gallery-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
}
.gal-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--beige);
}
.gal-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center center;
}
.gal-card .meta { padding: .6rem; font-size: .82rem; }
.gal-card .slot { font-weight: 700; color: var(--flag-blue); text-transform: uppercase; font-size: .7rem; }
.gal-card .gal-placement {
  font-size: .75rem;
  color: var(--text);
  line-height: 1.35;
  margin: .25rem 0 .35rem;
}
.gal-card .gal-placement strong { font-weight: 600; color: var(--text-muted); }

.gal-card .gal-src {
  font-size: .72rem;
  word-break: break-all;
  color: var(--text-muted);
  margin-top: .2rem;
}
.gal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .45rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .75rem;
}
.cat-thumb-wrap {
  flex: 0 0 auto;
}
.cat-thumb {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--beige);
  display: block;
}
.cat-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: var(--text-muted);
  text-align: center;
  padding: .25rem;
}
.cat-info {
  flex: 1;
  min-width: 160px;
}
.cat-placement {
  font-size: .78rem;
  color: var(--flag-blue);
  margin-top: .3rem;
  line-height: 1.35;
}
.cat-desc {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .35rem;
}
.cat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--ink);
  color: var(--cream);
  padding: .75rem 1.1rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  max-width: min(360px, calc(100vw - 2rem));
}
.toast.show { opacity: 1; }
.toast.warn { background: var(--warn); }
.toast.err { background: var(--danger); }

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, .45);
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal {
  background: var(--white);
  border-radius: var(--radius);
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  position: relative;
}
.modal::before {
  content: "";
  display: block;
  height: 5px;
  margin: -1.25rem -1.25rem 1rem;
  background: var(--flag-stripe);
  border-radius: var(--radius) var(--radius) 0 0;
}
.modal h3 { font-family: var(--font-display); color: var(--ink); margin-bottom: .75rem; }
.modal-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; flex-wrap: wrap; }

.cat-list { list-style: none; }
.cat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}
.cat-list .meta { flex: 1; }
.cat-list .name { font-weight: 700; }
.cat-list .count { font-size: .85rem; color: var(--text-muted); }

.menu-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .75rem;
}
.menu-admin-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .9rem;
  background: var(--beige);
}
.menu-admin-card h4 { font-family: var(--font-display); margin-bottom: .25rem; }
.menu-admin-card .price { color: var(--gold); font-weight: 700; }
.menu-admin-card .desc { font-size: .88rem; color: var(--text-muted); margin: .35rem 0 .6rem; }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,.4);
  z-index: 35;
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.open { display: block; }
  .main { margin-left: 0; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .row-2 { grid-template-columns: 1fr; }
}

/* Order modal + email feedback */
.order-detail dl {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.order-detail dt { color: var(--text-muted); font-weight: 600; }
.order-detail dd { color: var(--ink); }
.order-items {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
}
.order-items li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.3rem 0;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(217, 206, 184, 0.6);
}
.order-items li:last-child { border-bottom: none; }
.order-status-line {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.order-status-line .pill { margin-left: 0.35rem; }
.email-note {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: var(--sand);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.email-note.ok {
  background: #e8f0fa;
  color: var(--flag-blue-dark);
}

@media print {
  .sidebar, .topbar, .modal-actions, .sidebar-backdrop { display: none !important; }
  .main { margin: 0; }
  .modal-bg { position: static; background: none; padding: 0; }
  .modal { box-shadow: none; max-height: none; width: 100%; border: none; }
}

/* Category photo actions stay visible */
.cat-row {
  align-items: flex-start;
}
.cat-actions {
  flex-wrap: wrap;
  max-width: 100%;
  justify-content: flex-start;
}
.cat-actions .btn-primary {
  order: -1;
  width: 100%;
  margin-bottom: 0.25rem;
}
@media (min-width: 900px) {
  .cat-actions .btn-primary {
    width: auto;
    margin-bottom: 0;
  }
}


.btn-back {
  flex-shrink: 0;
  background: var(--cream, #faf6ef);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 600;
}

.btn-back:hover {
  border-color: var(--flag-blue, #1E4D8C);
  color: var(--flag-blue, #1E4D8C);
}

.topbar .btn-back.hidden {
  display: none !important;
}


/* Today card formatting */
.today-edit-layout {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 960px) {
  .today-edit-layout {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: start;
  }
}
.fmt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  align-items: flex-end;
  margin-bottom: 0.5rem;
  padding: 0.55rem 0.65rem;
  background: var(--beige, #f7f1e6);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.fmt-field {
  display: grid;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.fmt-field select {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  min-width: 7.5rem;
}
.fmt-toggles {
  display: flex;
  gap: 0.3rem;
  margin-left: auto;
}
.fmt-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font: inherit;
  line-height: 1;
}
.fmt-btn.is-on {
  background: var(--flag-blue, #1E4D8C);
  border-color: var(--flag-blue, #1E4D8C);
  color: #fff;
}
.fmt-btn.is-on em,
.fmt-btn.is-on strong,
.fmt-btn.is-on span { color: inherit; }
.today-preview-board {
  background:
    radial-gradient(ellipse at 20% 15%, rgba(255,255,255,.06), transparent 45%),
    linear-gradient(160deg, #2f3832 0%, #1e2420 48%, #252c27 100%);
  border: 6px solid #4a3b2a;
  border-radius: 6px;
  padding: 1rem 1.1rem;
  min-height: 200px;
  box-shadow: inset 0 0 28px rgba(0,0,0,.35);
}

.fmt-align-btns {
  display: flex;
  gap: 0.3rem;
}
.fmt-field select.fmt-size,
.fmt-field select.fmt-align {
  min-width: 9.5rem;
  font-weight: 700;
}

.customer-orders-row td{background:rgba(20,20,20,0.03);padding:0.75rem 1rem;}
.customer-orders-panel table{width:100%;font-size:0.9rem;}
.customer-orders-panel .hint{padding:0.25rem 0;}

.product-thumb,
.product-thumb-empty {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: var(--cream, #FAF6EF);
  background-image: url("../images/product-coming-soon.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
  flex: 0 0 auto;
}
.product-thumb { background-image: none; }
.order-item-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.customer-order-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.item-photo-cell { min-width: 0; vertical-align: top; }

@media (max-width: 760px) {
  .content { padding: 0.85rem; }
  .topbar { flex-wrap: wrap; padding: 0.75rem; }
  .topbar h2 { font-size: 1.1rem; min-width: 0; }
  .menu-toggle { width: 44px; height: 44px; }
  .modal-bg { padding: 0.75rem; align-items: start; }
  .modal { width: 100%; max-height: calc(100vh - 1.5rem); padding: 1rem; }
  .order-detail dl { grid-template-columns: 1fr; }
  .order-items li { flex-wrap: wrap; }
  .item-photo-edit { flex-direction: column; }
  .login-card-inner { padding: 1.25rem; }
  .cat-actions, .item-photo-actions { width: 100%; }
  .btn-sm { min-height: 44px; }
  .table-wrap { overflow-x: visible; }
  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tr {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 0 0 0.75rem;
    padding: 0.75rem;
    background: var(--white);
  }
  .table-wrap td { border: none; padding: 0.35rem 0; white-space: normal; }
  .table-wrap td.actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
}
.item-photo-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.45rem; }
.item-photo-edit { display: flex; gap: 0.75rem; align-items: flex-start; }

.home-photo-group {
  margin: 1.1rem 0 0.55rem;
  font-size: 0.95rem;
}
.home-photo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.home-photo-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  padding: 0.7rem;
}
.home-photo-thumb {
  width: 168px;
  height: 112px;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
  background: var(--beige);
  border: 1px solid var(--border);
  flex: 0 0 auto;
}
.home-photo-thumb.is-contain {
  object-fit: contain;
  background: var(--cream, #faf6ef);
}
.home-photo-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.home-photo-meta { min-width: 0; flex: 1; }
.home-photo-label {
  font-weight: 700;
  color: var(--flag-blue);
  font-size: 0.98rem;
}
.home-photo-placement {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.4;
  margin: 0.2rem 0 0.35rem;
}
@media (max-width: 640px) {
  .home-photo-row { flex-direction: column; }
  .home-photo-thumb { width: 100%; height: 160px; }
}
