:root {
  /* Official Sakurado brand palette (see brand guidelines). */
  --brand:        #7C3A2D;  /* Sakurado Terracotta — primary brand */
  --brand-warm:   #F7902D;  /* Sakurado Orange */
  --brand-soft:   #FDB664;  /* Soft Orange */
  --heading:      #7C3A2D;  /* section headings — brand terracotta */
  --bg:           #FFFCF7;  /* Sakurado Cream — page background */
  --bg-card:      #FFFFFF;  /* card surface */
  --bg-soft:      #FFF4E7;  /* Light Peachy — alt surface, hover, topbar */
  --bg-warm:      #FCE9CB;  /* Medium Peachy — warmer surface */
  --bg-accent:    #FEDEB5;  /* Dark Peachy — highlight panels */
  --fg:           #101820;  /* Sakurado Black — primary text */
  --muted:        #6f6a66;  /* secondary text */
  --line:         #ede0cc;  /* dividers */
  --line-soft:    #f6efe1;  /* faint dividers */

  --ok:           #2e7d32;
  --bad:          #b3261e;

  --radius:       8px;
  --radius-lg:    14px;
  --shadow-card:  0 1px 2px rgba(16, 24, 32, 0.05), 0 6px 20px rgba(16, 24, 32, 0.06);
  --shadow-soft:  0 1px 2px rgba(16, 24, 32, 0.04);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  font-family: 'Sofia Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, legend {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}
h1 { font-size: 2.1rem; margin: 0 0 1.2rem; }
h2 { font-size: 1.4rem; margin: 0 0 0.7rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }

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

.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.82rem; font-weight: normal; }
.lede { font-size: 1.1rem; color: var(--muted); margin: -0.6rem 0 1.6rem; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  color: var(--brand);
}

/* ===== Topbar ===== */
.topbar {
  background: rgba(255, 244, 231, 0.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.8rem;
  flex-wrap: wrap;
  gap: 0.4rem;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar .brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.topbar .brand-mark { height: 38px; width: auto; display: block; }
.topbar .brand-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.topbar .brand-text span { color: var(--brand); }
.topbar nav { display: flex; gap: 0.3rem; }
.topbar nav a {
  color: var(--fg);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: background 0.12s, color 0.12s;
}
.topbar nav a:hover { background: var(--bg-warm); color: var(--brand); }
.topbar nav a.is-active { background: var(--brand); color: #fff; font-weight: 600; }

/* Nav dropdown */
.nav-group { position: relative; display: inline-block; }
.nav-group-btn {
  font: inherit;
  font-size: 0.95rem;
  color: var(--fg);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: background 0.12s, color 0.12s;
}
.nav-group-btn:hover { background: var(--bg-warm); color: var(--brand); }
.nav-group.is-active > .nav-group-btn { background: var(--brand); color: #fff; font-weight: 600; }
.nav-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 0.35rem;
  display: none;
  z-index: 60;
}
.nav-group:hover .nav-menu, .nav-group.open .nav-menu { display: block; }
.nav-menu a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-menu a:hover { background: var(--bg-soft); color: var(--brand); }

main { width: 100%; max-width: 1080px; margin: 2rem auto; padding: 0 1.8rem; flex: 1; }

.sitefoot {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1.1rem 1.8rem;
  text-align: center;
}

.back { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.back:hover { color: var(--brand); }
.empty { color: var(--muted); padding: 2.5rem 0; text-align: center; font-size: 1.05rem; }
.empty a { color: var(--brand); font-weight: 600; }

/* ===== Banner slideshow (thin, captionless) ===== */
.banner {
  position: relative;
  height: 230px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.8rem;
  background: var(--bg-warm);
  box-shadow: var(--shadow-soft);
}
.banner-track { position: absolute; inset: 0; }
.banner-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.banner-slide.is-active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-dots {
  position: absolute;
  bottom: 0.7rem; right: 0.9rem;
  display: flex; gap: 0.4rem;
}
.banner-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 3px rgba(0,0,0,0.25);
  transition: background 0.12s, transform 0.12s;
}
.banner-dots .dot.is-active { background: #fff; transform: scale(1.3); }

/* ===== Board of cards — 3-col grid; wide=2/3, narrow=1/3, full=row ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.tile-media { overflow: hidden; background: var(--bg-warm); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-body { padding: 1.1rem 1.25rem 1.3rem; }
.tile-body h2 { font-size: 1.25rem; margin: 0 0 0.4rem; }
.eyebrow {
  display: inline-block;
  font-family: 'Sofia Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-warm);
  margin-bottom: 0.45rem;
}

/* Column spans */
.tile--narrow { grid-column: span 1; }
.tile--wide   { grid-column: span 2; }
.tile--full   { grid-column: 1 / -1; }

/* Narrow tiles: image on top */
.tile--narrow .tile-media { aspect-ratio: 4 / 3; }

/* Wide & full tiles: image beside the text for a more dynamic feel */
.tile--wide, .tile--full { flex-direction: row; align-items: stretch; }
.tile--wide .tile-media, .tile--full .tile-media { flex: 0 0 48%; }
.tile--wide .tile-media img, .tile--full .tile-media img { min-height: 100%; }
.tile--wide .tile-body, .tile--full .tile-body {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 1.4rem 1.6rem;
}
.tile--full .tile-media { flex-basis: 42%; }
.tile--wide .tile-body h2, .tile--full .tile-body h2 { font-size: 1.5rem; }

/* Clickable tiles (link through to a tracker) */
a.tile.is-link { text-decoration: none; color: inherit; }
.tile-cta {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
}
a.tile.is-link:hover .tile-cta { text-decoration: underline; }

/* ===== Trackers (bar chart + growth ranking) ===== */
.tracker-head { margin-bottom: 1rem; }
.tracker-head h1 { margin: 0.2rem 0 0.4rem; }
.tracker-head .lede { margin: 0; }
.tracker-head--withimg { display: flex; gap: 1.2rem; align-items: center; }
.tracker-photo {
  width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-soft); flex: 0 0 auto;
}
.data-note {
  background: var(--bg-accent);
  border: 1px solid #f1cd95;
  color: #6b4318;
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
  margin: 0 0 1.4rem;
}
.chart {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.6rem;
  display: grid;
  gap: 0.9rem;
}
.bar-row {
  display: grid;
  grid-template-columns: 11rem 1fr 4rem;
  align-items: center;
  gap: 0.9rem;
}
.bar-label { font-weight: 600; }
.bar-row.is-leader .bar-label { color: var(--brand); }
.bar-track { background: var(--bg-soft); border-radius: 999px; height: 22px; overflow: hidden; }
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-soft), var(--brand-warm));
  border-radius: 999px;
  min-width: 3px;
  transition: width 0.5s ease;
}
.bar-row.is-leader .bar-fill { background: linear-gradient(90deg, var(--brand-warm), var(--brand)); }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* Growth chart: bars grow from the centre, negative to the left */
.bar-track--center { position: relative; display: flex; justify-content: center; background: var(--bg-soft); }
.bar-track--center::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.chart--growth .bar-fill { position: absolute; top: 0; height: 100%; }
.chart--growth .bar-fill.is-pos { left: 50%; background: linear-gradient(90deg, var(--brand-soft), var(--brand-warm)); }
.chart--growth .bar-fill.is-neg { right: 50%; background: var(--muted); }
.bar-value.is-neg { color: var(--bad); }
.bonus-tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--brand); background: var(--bg-accent);
  padding: 0.1rem 0.4rem; border-radius: 999px; margin-left: 0.4rem;
  vertical-align: middle; white-space: nowrap;
}

/* Prose (card / onboarding bodies) */
.prose { font-size: 0.96rem; }
.prose h2 { font-size: 1.2rem; margin: 1rem 0 0.5rem; }
.prose h3 { font-size: 1.05rem; margin: 0.9rem 0 0.4rem; color: var(--heading); }
.prose p { margin: 0 0 0.7rem; }
.prose ul { margin: 0 0 0.7rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.25rem; }
.prose > :last-child { margin-bottom: 0; }

/* ===== Onboarding ===== */
.onboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.onboard-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.onboard-card h2 { color: var(--heading); margin-top: 0; }
.onboard-card .prose { flex: 1; }
.btn {
  align-self: flex-start;
  margin-top: 1rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: background 0.12s;
}
.btn:hover { background: #5a2920; color: #fff; }
.btn.is-disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }

/* ===== Events ("Where We've Been") ===== */
.events-head { margin-bottom: 1.4rem; }
.events-head h1 { margin: 0.2rem 0 0.4rem; }
.events-head .lede { margin: 0; }
.event-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.6rem;
}
.event-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  padding: 0.6rem 1rem;
  margin-bottom: -1px;
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
}
.event-tab:hover { color: var(--brand); }
.event-tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.event-panel { display: none; }
.event-panel.is-active { display: block; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.media-item, .media-cell video, .media-cell img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #000;
  display: block;
  aspect-ratio: 3 / 4;
}
/* Videos: show the whole frame (portrait or landscape), never crop. */
video.media-item, .media-cell video { object-fit: contain; }
/* Photos: fill the tile. */
a.media-item img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.media-cell img { object-fit: cover; }
.media-cell { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; }

/* ===== Employee of the Month ===== */
.eom-winner {
  background: var(--bg-accent);
  border: 1px solid #f1cd95;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-soft);
}
.eom-winner h2 { margin-top: 0; }
.eom-name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.8rem; font-weight: 600; margin: 0.2rem 0 0.6rem; }
.eom-quotes { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.eom-quotes li { margin-bottom: 0.4rem; font-style: italic; }
.eom-vote { margin-bottom: 1.5rem; }
.eom-vote .lede { font-size: 1rem; }

/* Footer sign-in state */
.sitefoot .foot-sep { margin: 0 0.5rem; opacity: 0.5; }
.sitefoot .foot-signout { display: inline; margin: 0 0 0 0.5rem; }
.sitefoot .foot-signout button {
  background: none; border: none; color: var(--brand); cursor: pointer;
  font: inherit; text-decoration: underline; padding: 0;
}

/* ===== Handbook ===== */
.handbook { max-width: 720px; }
.handbook .back { display: inline-block; margin-bottom: 0.8rem; }
.handbook h1 { margin-top: 0.2rem; }
.handbook .updated { margin-top: 1.6rem; font-size: 0.82rem; }
.page-list { list-style: none; padding: 0; margin: 0; max-width: 720px; }
.page-list li { border-bottom: 1px solid var(--line-soft); }
.page-list li:last-child { border-bottom: 0; }
.page-list a {
  display: block;
  padding: 0.85rem 0.4rem;
  text-decoration: none;
  font-size: 1.05rem;
  color: var(--fg);
}
.page-list a:hover { color: var(--brand); }

/* ===== Values ===== */
.values-head { margin-bottom: 1.8rem; }
.values-head .lede { margin-top: 0.3rem; }
.values-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.value {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
.value-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--brand);
}
.value-icon svg { width: 26px; height: 26px; }
.value-body h2 { margin: 0 0 0.3rem; color: var(--heading); font-size: 1.3rem; }
.value-body p { margin: 0; color: var(--fg); }

/* ===== Auth panels ===== */
.auth-logo { display: block; width: 100%; max-width: 240px; height: auto; margin: 1rem auto 1.6rem; }
.auth-panel {
  max-width: 460px;
  margin: 1rem auto 2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-card);
}
.auth-panel h2 { margin-top: 0; }
.error {
  background: #fdecea;
  color: var(--bad);
  border: 1px solid #f5c2c0;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* ===== Forms ===== */
.edit-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.4rem;
}
label {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}
label.inline {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--fg); margin: 0; font-weight: 400;
}
input[type=text], input[type=tel], input[type=email], input[type=url],
input[type=date], input[type=number], input[type=password],
input[type=file], select, textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--fg);
  transition: border-color 0.12s, box-shadow 0.12s;
}
input[type=file] { padding: 0.4rem; background: var(--bg-soft); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 58, 45, 0.12);
}
.edit-form .row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.edit-form .row > label { flex: 1; min-width: 140px; }
.edit-form .row > label.narrow { flex: 0 0 9rem; }
.edit-form .row > label.inline { flex: 0 0 auto; margin-bottom: 0.9rem; }

.actions { display: flex; align-items: center; gap: 1rem; margin-top: 0.4rem; flex-wrap: wrap; }
.actions .spacer { flex: 1; }
.actions .cancel { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.actions .cancel:hover { color: var(--brand); }

button.primary, button.secondary {
  font: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 0.55rem 1.2rem; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
button.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
button.primary:hover { background: #5a2920; border-color: #5a2920; }
button.secondary { background: var(--bg-card); border-color: var(--line); color: var(--fg); }
button.secondary:hover { background: var(--bg-soft); border-color: var(--brand-soft); }
.link-danger {
  background: none; border: none; color: var(--bad); cursor: pointer;
  font: inherit; padding: 0; text-decoration: underline;
}
.link-danger:hover { color: #8a1d18; }

/* Current/preview images in admin forms */
.current-image { margin-bottom: 0.9rem; }
.current-image img, .slide-thumb img {
  display: block; border-radius: var(--radius); border: 1px solid var(--line);
  max-width: 260px; width: 100%; height: auto;
}

/* Slide editor rows */
.slide-row { display: grid; grid-template-columns: 200px 1fr; gap: 1.2rem; align-items: start; }
.slide-fields { min-width: 0; }
.new-slide, .new-incentive { border-style: dashed; }
.new-slide h3, .new-incentive h3 { margin-top: 0; color: var(--heading); }

/* ===== Admin ===== */
.admin-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0.4rem;
}
.admin-head h1 { margin: 0; }
.admin-head form { margin: 0; }
.primary-link {
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 600;
  padding: 0.5rem 1.1rem; border-radius: 999px; font-size: 0.92rem;
}
.primary-link:hover { background: #5a2920; color: #fff; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.admin-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow-soft);
  text-decoration: none; color: var(--fg);
  transition: border-color 0.12s, transform 0.12s, box-shadow 0.12s;
}
.admin-card:hover { border-color: var(--brand-soft); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.admin-card h3 { color: var(--heading); margin-top: 0; }
.admin-card .count {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem; font-weight: 700; margin: 0.2rem 0 0; color: var(--brand);
}
.admin-card .muted { margin: 0; }

.status-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.45rem 1.4rem;
  margin: 0 0 1.3rem;
  font-size: 0.95rem;
}
.status-list dt { color: var(--muted); font-weight: 600; }
.status-list dd { margin: 0; }

table.admin-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft);
}
table.admin-table th, table.admin-table td {
  padding: 0.65rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line-soft);
}
table.admin-table th {
  background: var(--bg-soft); font-weight: 600; font-size: 0.76rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; font-family: 'Sofia Sans', sans-serif;
}
table.admin-table tbody tr:last-child td { border-bottom: 0; }
table.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.mini-thumb { width: 54px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); display: block; }
.cell-thumb { width: 66px; }
.row-actions { white-space: nowrap; display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.row-actions form { display: inline; margin: 0; }
.pin-set { display: inline-flex; gap: 0.3rem; align-items: center; }
.pin-set input { width: 6rem; margin: 0; padding: 0.3rem 0.4rem; }
.link-set { background: none; border: none; color: var(--brand); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.emp-code { font-size: 1rem; letter-spacing: 0.15em; font-weight: 600; color: var(--brand); }

/* Drag & drop upload zone (event media) */
.dropzone {
  display: block;
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  padding: 1.6rem 1.4rem;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  transition: border-color 0.12s, background 0.12s;
  margin-bottom: 0.9rem;
}
.dropzone:hover { border-color: var(--brand-soft); }
.dropzone.is-over { border-color: var(--brand); background: var(--bg-warm); color: var(--brand); }
.dropzone .dz-count { display: block; margin-top: 0.5rem; font-weight: 600; color: var(--brand); }
.dropzone--sm { padding: 0.9rem 1rem; font-size: 0.88rem; margin-bottom: 0.6rem; }
.dz-url { margin-top: 0.6rem; font-size: 0.9rem; }
.dz-url summary { cursor: pointer; color: var(--muted); }
.dz-url label { margin: 0.5rem 0 0; }

/* ===== Phone (≤ 760px) ===== */
@media screen and (max-width: 760px) {
  body { font-size: 16px; }
  .topbar { padding: 0.7rem 1rem; position: static; }
  .topbar .brand-mark { height: 32px; }
  .topbar .brand-text { font-size: 1.05rem; }
  .topbar nav { width: 100%; flex-wrap: wrap; gap: 0.15rem; }
  .topbar nav a { padding: 0.4rem 0.7rem; font-size: 0.9rem; }
  main { padding: 0 0.9rem; margin: 1.2rem auto; }
  h1 { font-size: 1.6rem; }

  .banner { height: 160px; }

  /* One column; every tile stacks image-over-text like a narrow tile */
  .bento { grid-template-columns: 1fr; }
  .tile--narrow, .tile--wide, .tile--full { grid-column: span 1; }
  .tile--wide, .tile--full { flex-direction: column; }
  .tile--wide .tile-media, .tile--full .tile-media { flex: none; aspect-ratio: 4 / 3; }
  .tile--wide .tile-body, .tile--full .tile-body { padding: 1.1rem 1.25rem 1.3rem; display: block; }

  .edit-form .row { flex-direction: column; gap: 0; align-items: stretch; }
  .edit-form .row > label.narrow { flex: 1; }
  input, select, textarea { font-size: 16px; } /* iOS no-zoom */

  .slide-row { grid-template-columns: 1fr; }

  table.admin-table { display: block; border: none; box-shadow: none; background: transparent; }
  table.admin-table thead { display: none; }
  table.admin-table tbody { display: block; }
  table.admin-table tbody tr {
    display: block; background: var(--bg-card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 0.7rem 0.9rem; margin-bottom: 0.6rem; box-shadow: var(--shadow-soft);
  }
  table.admin-table td {
    display: flex; justify-content: space-between; gap: 0.8rem;
    padding: 0.25rem 0; border-bottom: none; text-align: right;
  }
  table.admin-table td::before {
    content: attr(data-label);
    font-size: 0.74rem; font-weight: 600; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0; text-align: left;
  }
  table.admin-table td.cell-thumb { justify-content: flex-start; }
  .row-actions { justify-content: flex-end; }

  .bar-row { grid-template-columns: 7rem 1fr 3rem; gap: 0.5rem; font-size: 0.92rem; }
  .value { gap: 0.9rem; padding: 1.1rem 1.1rem; }
}
