:root {
  --page: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --ink: #17212b;
  --ink-soft: #4f5e6c;
  --muted: #7a8794;
  --line: #dde4ec;
  --line-strong: #cbd6e2;
  --primary: #176b87;
  --primary-hover: #115870;
  --primary-soft: #e6f3f7;
  --green: #16815d;
  --amber: #bd6b12;
  --red: #b23b35;
  --shadow: 0 12px 30px rgba(24, 38, 55, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(23, 107, 135, 0.06), transparent 230px),
    var(--page);
  font: 15px/1.5 "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button-primary {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(23, 107, 135, 0.16);
}

.button-primary:hover {
  background: var(--primary-hover);
}

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

.button-secondary:hover {
  background: var(--primary-soft);
  border-color: #8ab8c8;
}

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

.button-plain:hover {
  color: var(--ink);
  background: #eef3f7;
}

.button-danger {
  color: var(--red);
  background: #fff7f6;
  border-color: #efc3bf;
}

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

.field-label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.field-input,
.field-area {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  box-shadow: none;
}

.field-input {
  min-height: 40px;
  padding: 0 11px;
}

.field-area {
  min-height: 112px;
  padding: 10px 11px;
  resize: vertical;
}

.field-input[type="file"] {
  min-height: 42px;
  padding: 8px 10px;
}

.field-input::file-selector-button {
  margin-right: 10px;
  padding: 7px 10px;
  border: 1px solid #b9d4de;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.field-input:focus,
.field-area:focus {
  outline: 3px solid rgba(23, 107, 135, 0.14);
  border-color: var(--primary);
}

.feedback {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.94rem;
}

.feedback-success {
  color: #0f684b;
  background: #ebf8f2;
  border-color: #bfe8d7;
}

.feedback-error {
  color: #9b2d27;
  background: #fff0ee;
  border-color: #ecc3bf;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-live {
  color: var(--green);
  background: #eaf8f1;
}

.status-muted {
  color: var(--muted);
  background: #eef2f6;
}

.public-layout {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 34px;
}

.catalog-hero {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(23, 107, 135, 0.1), rgba(242, 154, 46, 0.08)),
    #ffffff;
  box-shadow: var(--shadow);
}

.catalog-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(221, 228, 236, 0.8);
}

.brand-mark {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--primary);
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 26px;
  align-items: stretch;
  min-height: 540px;
  padding: 32px 34px 36px;
}

.hero-copy h1,
.admin-topbar h1,
.editor-topbar h1,
.download-card h1,
.auth-panel h1 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
}

.hero-copy p {
  margin: 16px 0 0;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 1rem;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.trust-row {
  gap: 8px 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.trust-row strong {
  color: var(--ink);
}

.hero-showcase {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.hero-featured {
  overflow: hidden;
  border: 1px solid rgba(23, 107, 135, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 26px rgba(18, 43, 66, 0.1);
  min-height: 0;
}

.hero-featured-link {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  text-decoration: none;
}

.hero-featured-shot {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  background: linear-gradient(135deg, #dde8ef, #f6f9fb);
}

.hero-featured-placeholder {
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 26px;
  min-height: 260px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(23, 107, 135, 0.13), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(242, 154, 46, 0.14), transparent 50%),
    #f7fbfd;
}

.hero-featured-placeholder strong {
  font-size: 1.14rem;
}

.hero-featured-placeholder p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.hero-featured-overlay {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-top: 1px solid rgba(23, 107, 135, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.hero-featured-meta {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.showcase-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(23, 107, 135, 0.14);
  background: #fff;
}

.hero-featured-meta strong {
  display: block;
  overflow: hidden;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-featured-meta span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-featured-cta {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 28px;
  white-space: nowrap;
}

.hero-side-list {
  padding: 14px;
  border: 1px solid rgba(23, 107, 135, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.hero-side-list header {
  display: grid;
  gap: 2px;
  margin-bottom: 9px;
}

.hero-side-list header strong {
  font-size: 0.93rem;
}

.hero-side-list header span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-side-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-side-list li a {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(203, 214, 226, 0.95);
  border-radius: 9px;
  background: #ffffff;
  text-decoration: none;
}

.hero-side-list li a strong {
  overflow: hidden;
  font-size: 0.89rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-side-list li a p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.82rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-side-list li a:hover {
  border-color: rgba(23, 107, 135, 0.4);
  background: #f8fcfe;
}

.hero-side-empty {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.showcase-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  height: 100%;
  min-height: 260px;
  padding: 24px;
  border: 1px dashed rgba(23, 107, 135, 0.26);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  text-align: center;
}

.showcase-empty strong {
  font-size: 1.02rem;
}

.showcase-empty p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.value-strip article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.value-strip span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
}

.value-strip strong {
  font-size: 1rem;
}

.value-strip p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.catalog-section {
  padding-top: 8px;
}

.catalog-headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 24px;
  align-items: end;
  margin-bottom: 14px;
}

.catalog-headline h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.12;
}

.catalog-headline p,
.admin-topbar p,
.editor-topbar p,
.download-card p,
.auth-panel p {
  margin: 8px 0 0;
  max-width: 62ch;
  color: var(--ink-soft);
}

.public-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-input {
  min-height: 42px;
}

.public-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.public-summary span {
  padding: 4px 0;
}

.public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.public-app-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 4px 16px rgba(24, 38, 55, 0.04);
}

.public-card-shot {
  display: block;
  border-bottom: 1px solid var(--line);
  background: #edf2f7;
}

.public-card-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

.public-card-body {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.public-card-head {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.public-card-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--line);
}

.public-card-head h2 {
  margin: 0;
  overflow: hidden;
  font-size: 1.02rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-card-head p {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-card-description {
  display: -webkit-box;
  min-height: 3.9em;
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.public-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.card-link {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.empty-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
}

.empty-panel h2,
.empty-panel h3 {
  margin: 0 0 8px;
}

.empty-panel p {
  margin: 0 auto 14px;
  color: var(--ink-soft);
}

.public-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: 22px;
  margin-top: 26px;
  padding: 24px;
  border-radius: 16px;
  background: #17212b;
  color: #f5f7fb;
}

.public-footer h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.public-footer p {
  margin: 8px 0 0;
  max-width: 58ch;
  color: #c7d1db;
}

.public-footer .kicker {
  color: #8fd3e5;
}

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

.footer-link-grid a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f7fb;
  text-decoration: none;
}

.footer-link-grid a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.admin-layout {
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

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

.admin-topbar h1,
.editor-topbar h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.admin-actions,
.form-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.metric-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-card strong {
  display: block;
  margin-top: 3px;
  font-size: 1.55rem;
  line-height: 1;
}

.admin-panel,
.form-card,
.auth-panel,
.download-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.admin-panel {
  padding: 16px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.panel-head h2,
.form-section-head h2 {
  margin: 0;
  font-size: 1.08rem;
}

.panel-head p,
.form-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-app-list {
  display: grid;
  gap: 8px;
}

.admin-app-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.admin-row-media {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-row-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--line);
  background: #ffffff;
}

.admin-row-shot {
  width: 92px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--line);
  background: #ffffff;
}

.admin-row-main {
  min-width: 0;
}

.admin-row-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.admin-row-title h3 {
  margin: 0;
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-row-title p {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-row-description {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.row-actions form {
  margin: 0;
}

.editor-layout {
  max-width: 980px;
}

.editor-panel {
  display: grid;
  gap: 14px;
}

.form-card {
  padding: 18px;
}

.form-section-head {
  margin-bottom: 14px;
}

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

.field-span-full {
  grid-column: 1 / -1;
}

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

.media-editor-card {
  display: grid;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.media-editor-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #b7c6d4;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.logo-preview-box {
  width: 118px;
  aspect-ratio: 1 / 1;
}

.shot-preview-box {
  width: 100%;
  aspect-ratio: 16 / 8.5;
}

.check-row,
.switch-row {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.switch-row {
  font-weight: 600;
}

.form-footer-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.admin-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
}

.auth-panel {
  width: min(420px, 100%);
  padding: 24px;
}

.form-stack {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.download-layout {
  width: min(820px, calc(100% - 28px));
  margin: 0 auto;
  padding: 30px 0;
}

.download-card {
  padding: 20px;
}

.download-preview {
  display: block;
  width: 100%;
  max-height: 360px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--line);
}

.download-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.download-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--line);
}

.download-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.download-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.download-instruction {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #cde1e8;
  border-radius: var(--radius);
  background: #f4fafc;
}

.download-instruction strong {
  display: block;
  margin-bottom: 4px;
}

.download-instruction p {
  margin: 0;
}

.progress-shell {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #b9d4de;
  border-radius: var(--radius);
  background: var(--primary-soft);
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--primary-hover);
  font-size: 0.9rem;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ffffff;
}

.progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  background: var(--primary);
}

.download-status {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (max-width: 880px) {
  .hero-stage,
  .catalog-headline,
  .public-footer,
  .admin-topbar,
  .editor-topbar,
  .admin-app-row,
  .form-footer-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-app-row {
    display: grid;
  }

  .row-actions,
  .admin-actions,
  .form-actions,
  .download-actions,
  .public-search {
    justify-content: flex-start;
  }

  .hero-copy h1 {
    max-width: 15ch;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-showcase {
    grid-template-rows: auto auto;
  }

  .hero-featured-shot,
  .hero-featured-placeholder {
    min-height: 220px;
  }

  .value-strip {
    grid-template-columns: 1fr;
  }

  .footer-link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .public-layout,
  .admin-layout,
  .download-layout {
    width: min(100%, calc(100% - 18px));
  }

  .public-search,
  .catalog-nav,
  .admin-actions,
  .form-actions,
  .download-actions,
  .row-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-nav {
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
  }

  .hero-stage {
    padding: 24px 18px 26px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2rem, 12vw, 3.3rem);
  }

  .hero-featured-shot,
  .hero-featured-placeholder {
    min-height: 170px;
  }

  .hero-featured-overlay {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-featured-cta {
    line-height: 26px;
  }

  .button {
    width: 100%;
  }

  .metric-grid,
  .form-grid,
  .media-editor-grid {
    grid-template-columns: 1fr;
  }

  .field-span-full {
    grid-column: auto;
  }

  .admin-row-media {
    justify-content: flex-start;
  }

  .admin-row-shot {
    width: 110px;
    height: 62px;
  }

  .public-grid {
    grid-template-columns: 1fr;
  }

  .download-head {
    flex-direction: column;
  }
}
