:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-soft: #eef3ef;
  --text: #17201c;
  --muted: #66736d;
  --line: #dce3de;
  --accent: #1f9d8a;
  --accent-dark: #137265;
  --accent-soft: #dff5ef;
  --danger: #b23b3b;
  --warning: #b67820;
  --shadow: 0 18px 45px rgba(22, 32, 28, 0.09);
  color-scheme: light;
}

body[data-accent="coral"] {
  --accent: #dd624c;
  --accent-dark: #a43e2f;
  --accent-soft: #ffe8df;
}

body[data-accent="indigo"] {
  --accent: #4f63c6;
  --accent-dark: #344499;
  --accent-soft: #e7eaff;
}

body[data-accent="gold"] {
  --accent: #bd8329;
  --accent-dark: #865b19;
  --accent-soft: #fff0cc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(246, 247, 244, 0.98)),
    linear-gradient(105deg, rgba(31, 157, 138, 0.08), rgba(221, 98, 76, 0.05) 45%, rgba(189, 131, 41, 0.07)),
    var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(220, 227, 222, 0.86);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  letter-spacing: 0;
}

.nav {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav-link {
  min-width: 66px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.nav-link.active {
  background: var(--text);
  color: #fff;
}

.shell,
.front-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 48px;
}

.front-shell {
  width: min(1240px, calc(100% - 32px));
}

.hero-band,
.admin-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  min-height: 180px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(223, 245, 239, 0.64)),
    linear-gradient(90deg, rgba(31, 157, 138, 0.12), rgba(221, 98, 76, 0.08));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: end;
}

.hero-stats span {
  min-width: 112px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.hero-stats strong {
  display: block;
  color: var(--text);
  font-size: 24px;
}

.front-shell .hero-band {
  position: relative;
  isolation: isolate;
  align-items: end;
  gap: 28px;
  min-height: 390px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(90deg, rgba(17, 32, 27, 0.86), rgba(17, 32, 27, 0.58) 47%, rgba(17, 32, 27, 0.14)),
    url("./assets/hero-download-center.png") center / cover no-repeat;
  box-shadow: 0 26px 70px rgba(22, 32, 28, 0.2);
  color: #fff;
}

.front-shell .hero-band::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: 0;
  background: linear-gradient(0deg, rgba(17, 32, 27, 0.56), transparent);
}

.front-shell .hero-content,
.front-shell .hero-stats {
  position: relative;
  z-index: 1;
}

.front-shell .hero-content {
  max-width: 680px;
}

.front-shell .hero-band .eyebrow {
  color: #b8f2e5;
}

.front-shell .hero-band h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 78px);
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

.front-shell .hero-band .hero-copy {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 760;
}

.hero-badges svg {
  width: 17px;
  height: 17px;
}

.front-shell .hero-stats span {
  min-width: 118px;
  padding: 14px 16px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
}

.front-shell .hero-stats strong {
  color: #fff;
  font-size: 30px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  gap: 14px;
  margin: 22px 0;
}

.front-search-panel {
  position: relative;
  z-index: 2;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: -42px auto 28px;
  padding: 18px;
  border: 1px solid rgba(220, 227, 222, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 54px rgba(22, 32, 28, 0.12);
  backdrop-filter: blur(18px);
}

.front-search-head,
.front-search-row {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 360px) 1fr;
  align-items: center;
}

.front-search-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.search-hint {
  justify-self: end;
  color: var(--muted);
  font-size: 14px;
}

.search-box,
label {
  display: grid;
  gap: 8px;
}

.search-box {
  position: relative;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transform: translateY(-50%);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
}

input,
select {
  height: 46px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-box input {
  padding-left: 44px;
}

.front-search-panel .search-box input {
  height: 54px;
  border-color: #cfd9d3;
  font-size: 16px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-button,
.ghost-button,
.primary-button,
.danger-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 8px;
  white-space: nowrap;
}

.filter-button {
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 720;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.filter-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.filter-button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.primary-button,
.ghost-button,
.danger-button {
  padding: 0 16px;
  font-weight: 750;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.danger-button {
  background: #fff0f0;
  color: var(--danger);
}

.icon-button {
  width: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.content-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 22px;
  align-items: start;
}

.side-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(22, 32, 28, 0.06);
}

.side-panel,
.panel {
  padding: 18px;
}

.side-panel {
  position: sticky;
  top: 86px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 800;
}

.panel-title svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

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

.summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #f8faf7, var(--surface-soft));
  color: var(--muted);
}

.summary-item:hover {
  border-color: var(--line);
}

.summary-item strong {
  color: var(--text);
}

.download-area {
  display: grid;
  gap: 24px;
}

.group-section {
  display: grid;
  gap: 12px;
}

.group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.group-heading h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 14px;
}

.file-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 198px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(220, 227, 222, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 249, 0.98)),
    #fff;
  box-shadow: 0 10px 26px rgba(22, 32, 28, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.file-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #dd624c, #bd8329);
  opacity: 0.86;
}

.file-card:hover {
  border-color: rgba(31, 157, 138, 0.35);
  box-shadow: 0 18px 42px rgba(22, 32, 28, 0.11);
  transform: translateY(-2px);
}

body.compact .file-card {
  min-height: 132px;
  gap: 8px;
  padding: 13px;
}

.file-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.file-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(31, 157, 138, 0.14);
  background: linear-gradient(180deg, #fff, var(--accent-soft));
  color: var(--accent-dark);
}

.file-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.file-meta,
.file-desc,
.empty-state {
  color: var(--muted);
  line-height: 1.6;
}

.file-meta {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 700;
}

.file-desc {
  margin: 0;
  font-size: 14px;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eff5f1;
  color: #52645d;
  font-size: 12px;
  font-weight: 720;
}

.tag:nth-child(2n) {
  background: #fff0e9;
  color: #9a4c37;
}

.tag:nth-child(3n) {
  background: #fff4d7;
  color: #7a571f;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin-top: auto;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--text), #284239);
  color: #fff;
  font-weight: 760;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.download-link:hover {
  box-shadow: 0 10px 22px rgba(22, 32, 28, 0.16);
  transform: translateY(-1px);
}

.download-link.disabled {
  background: #d8ddd8;
  color: #69736e;
  pointer-events: none;
}

.admin-shell {
  display: grid;
  gap: 22px;
}

.login-panel {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.helper-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.admin-head {
  min-height: 138px;
}

.admin-dashboard-head {
  min-height: 126px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 243, 239, 0.86)),
    linear-gradient(90deg, rgba(31, 157, 138, 0.12), rgba(221, 98, 76, 0.08));
}

.admin-head h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.admin-head-copy {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  --metric: var(--accent);
  --metric-soft: var(--accent-soft);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 118px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(220, 227, 222, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 249, 0.92)),
    #fff;
  box-shadow: 0 14px 34px rgba(22, 32, 28, 0.07);
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--metric);
}

.metric-card-files {
  --metric: #1f9d8a;
  --metric-soft: #def5ef;
}

.metric-card-groups {
  --metric: #4f63c6;
  --metric-soft: #e7eaff;
}

.metric-card-downloads {
  --metric: #bd8329;
  --metric-soft: #fff0cc;
}

.metric-card-status[data-state="enabled"] {
  --metric: #1f9d8a;
  --metric-soft: #def5ef;
}

.metric-card-status[data-state="paused"] {
  --metric: #b23b3b;
  --metric-soft: #fff0f0;
}

.metric-icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--metric-soft);
  color: var(--metric);
}

.metric-icon svg {
  width: 22px;
  height: 22px;
}

.metric-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.metric-card strong {
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.metric-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
}

.admin-command-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 243, 239, 0.72)),
    #fff;
  box-shadow: 0 10px 26px rgba(22, 32, 28, 0.06);
}

.command-copy {
  display: grid;
  gap: 4px;
  min-width: 220px;
}

.command-copy strong {
  font-size: 16px;
}

.command-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.command-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
  align-items: start;
}

.wide-panel {
  grid-column: 1 / -1;
}

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

label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.panel form,
.panel {
  gap: 14px;
}

form.panel {
  display: grid;
}

.manager-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 20px;
  align-items: start;
}

.manager-panel {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 252, 249, 0.92)),
    #fff;
}

.panel-heading {
  display: grid;
  gap: 4px;
  margin: -2px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(220, 227, 222, 0.78);
}

.panel-heading .panel-title {
  margin-bottom: 0;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.split-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.split-title {
  justify-content: space-between;
}

.split-title > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compact-command {
  min-height: 34px;
  padding: 0 12px;
}

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

.admin-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-item:hover {
  border-color: rgba(31, 157, 138, 0.28);
  box-shadow: 0 10px 22px rgba(22, 32, 28, 0.07);
}

.group-admin-item {
  cursor: pointer;
}

.group-admin-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.admin-item-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.item-title-row h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-item h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0;
}

.admin-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.admin-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-meta-row span,
.admin-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f6f2;
  color: #52645d;
  font-size: 12px;
  font-weight: 720;
}

.admin-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-tag {
  background: #eef7f4;
  color: var(--accent-dark);
}

.muted-tag {
  background: #f2f3f1;
  color: var(--muted);
}

.file-admin-item {
  align-items: start;
}

.mini-limit {
  display: grid;
  grid-template-columns: 86px minmax(90px, 140px);
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.mini-limit input {
  height: 34px;
}

.limit-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 50px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.limit-current span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.limit-current strong {
  font-size: 24px;
}

.admin-item-actions {
  display: flex;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 760;
}

.status-pill.hidden {
  background: #f4ecec;
  color: var(--danger);
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.toast-error {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 14px;
  border: 1px solid #ffd0d0;
  border-radius: 8px;
  background: #fff0f0;
  color: var(--danger);
  box-shadow: var(--shadow);
  z-index: 20;
}

.admin-modal {
  width: min(560px, calc(100% - 28px));
  max-height: min(760px, calc(100vh - 34px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.admin-modal::backdrop {
  background: rgba(18, 28, 24, 0.42);
  backdrop-filter: blur(4px);
}

.wide-modal {
  width: min(760px, calc(100% - 28px));
}

.modal-panel {
  display: grid;
  gap: 14px;
  max-height: min(760px, calc(100vh - 34px));
  overflow: auto;
  margin: 0;
  box-shadow: 0 24px 70px rgba(22, 32, 28, 0.24);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head .panel-title {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .topbar {
    padding: 0 16px;
  }

  .hero-band,
  .admin-head,
  .search-panel,
  .content-layout,
  .admin-grid,
  .admin-overview,
  .manager-layout,
  .form-row {
    grid-template-columns: 1fr;
  }

  .front-search-head,
  .front-search-row,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .search-hint {
    justify-self: start;
  }

  .hero-band,
  .admin-head {
    display: grid;
    padding: 22px;
  }

  .front-shell .hero-band {
    min-height: 430px;
    background-position: 58% center;
  }

  .hero-stats,
  .admin-actions {
    justify-content: start;
  }

  .admin-command-bar,
  .split-heading {
    align-items: flex-start;
  }

  .command-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .side-panel {
    display: none;
  }
}

@media (max-width: 560px) {
  .shell,
  .front-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .topbar {
    min-height: 58px;
  }

  .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-link {
    min-width: 54px;
    padding-inline: 9px;
  }

  h1 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .front-shell .hero-band {
    min-height: 460px;
  }

  .hero-badges {
    gap: 8px;
  }

  .hero-badges span {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .front-search-panel {
    margin-top: -28px;
    padding: 14px;
  }

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

  .metric-card {
    min-height: 104px;
  }

  .admin-item,
  .file-admin-item {
    grid-template-columns: 1fr;
  }

  .admin-item-actions {
    justify-content: flex-start;
  }
}
