:root {
  color-scheme: light;
  --bg: #f3f4f6;
  --panel: #ffffff;
  --ink: #111317;
  --muted: #616976;
  --line: #d7dce3;
  --line-strong: #bac3cf;
  --accent: #b4232a;
  --accent-dark: #851b20;
  --field: #fbfbfc;
  --shadow: 0 16px 38px rgba(17, 19, 23, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand > div {
  min-width: 0;
}

.mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #111317;
  color: #fff;
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
  overflow-wrap: anywhere;
}

h1 {
  font-size: 25px;
  line-height: 1.1;
  font-weight: 780;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 760;
}

p {
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.45;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a,
.status,
.admin summary {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: stretch;
  margin: 24px 0;
}

.hero > *,
.content,
.sectionHead > * {
  min-width: 0;
}

.hero > div:first-child,
.summary,
.content,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero > div:first-child {
  min-height: 190px;
  padding: 30px;
  display: grid;
  align-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

.hero h2 {
  max-width: 680px;
  font-size: 36px;
  line-height: 1.08;
}

.hero h2 + p {
  max-width: 620px;
  margin-top: 12px;
}

.summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.summary div {
  min-height: 94px;
  padding: 22px;
  background: var(--panel);
}

.summary span {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 780;
}

.summary p {
  margin-top: 8px;
}

.content {
  overflow: hidden;
  margin-top: 22px;
}

.sectionHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.sectionHead p {
  margin: 0;
  font-size: 14px;
  text-align: right;
}

.videoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  background: var(--line);
}

.imageGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
}

.videoCard,
.imageCard {
  overflow: hidden;
  background: var(--panel);
}

.videoCard iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #111317;
}

.imageCard img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #e8ecf1;
}

.videoCard div,
.imageCard div {
  padding: 12px 16px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px 20px;
  background: var(--panel);
  color: var(--muted);
}

.admin {
  margin-top: 22px;
}

.admin summary {
  display: inline-flex;
  cursor: pointer;
  list-style: none;
}

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

.tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
  background: var(--field);
  color: var(--ink);
}

input:focus {
  outline: 2px solid rgba(180, 35, 42, 0.18);
  border-color: var(--accent);
}

.drop {
  display: grid;
  place-items: center;
  min-height: 84px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  background: var(--field);
  cursor: pointer;
}

.drop input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

button {
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 720;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

.status {
  position: fixed;
  right: 18px;
  bottom: 18px;
  box-shadow: var(--shadow);
}

@media (max-width: 820px) {
  .shell {
    width: calc(100vw - 24px);
    padding-top: 14px;
  }

  .topbar,
  .hero,
  .tools {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    padding-bottom: 16px;
  }

  .brand {
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero > div:first-child {
    min-height: 0;
    padding: 22px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .sectionHead {
    display: block;
  }

  .sectionHead p {
    margin-top: 6px;
    text-align: left;
  }

  .videoGrid,
  .imageGrid {
    grid-template-columns: 1fr;
  }

  .status {
    position: static;
    display: inline-flex;
    margin-top: 18px;
  }
}
