:root {
  --page: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.12);
  --accent: #0071e3;
  --accent-dark: #005bb5;
  --green: #2f7d62;
  --amber: #b57a10;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "PingFang SC", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.34);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 800;
}

.brand-mark-image {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

.brand-mark-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
  color: #3b3b3d;
  font-size: 13px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

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

.nav-cta,
.button,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav-cta {
  min-height: 36px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
}

.nav-cta:hover,
.button:hover,
.filter-button:hover {
  transform: translateY(-1px);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(26px, 5vw, 46px);
  min-height: calc(100vh - 64px);
  padding: clamp(70px, 8vw, 106px) clamp(18px, 5vw, 72px) 48px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 113, 227, 0.12), transparent 34rem),
    linear-gradient(180deg, #fff 0%, var(--page) 100%);
}

.hero-bg {
  order: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1160px, 100%);
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  object-fit: contain;
}

.hero-image-main {
  aspect-ratio: 16 / 10;
}

.hero-image-side,
.hero-image-tall {
  aspect-ratio: 16 / 10;
}

.hero-content {
  order: 1;
  width: min(920px, 100%);
  color: var(--ink);
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.3;
}

.hero-lede {
  max-width: 780px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  padding: 0 22px;
}

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

.button-primary:hover,
.nav-cta:hover {
  background: var(--accent-dark);
}

.button-ghost {
  border-color: rgba(0, 113, 227, 0.22);
  background: rgba(0, 113, 227, 0.06);
  color: var(--accent);
}

.hero-note {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(920px, 100%);
}

.hero-note span {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #3b3b3d;
  font-size: 13px;
}

.journal-strip {
  display: flex;
  justify-content: center;
  gap: 12px 22px;
  padding: 18px clamp(18px, 5vw, 72px);
  overflow: auto;
  border-block: 1px solid rgba(29, 29, 31, 0.08);
  background: #fff;
}

.journal-strip span {
  flex: 0 0 auto;
  color: #4f4f54;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
}

.section {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(76px, 9vw, 124px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.78fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: end;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.section-heading-narrow {
  display: block;
  width: min(820px, 100%);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-button {
  padding: 0 16px;
  border-color: rgba(29, 29, 31, 0.1);
  background: #fff;
  color: #3d3d40;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.gallery-more-button[hidden] {
  display: none;
}

.case-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.09);
}

.case-card.is-hidden {
  display: none;
}

.case-preview {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 16px;
  place-items: center;
  border: 0;
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  background: linear-gradient(180deg, #fbfbfd, #f0f0f3);
  cursor: zoom-in;
}

.case-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-meta {
  min-height: 132px;
  padding: 16px 17px 18px;
}

.case-meta span,
.case-meta em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.case-meta strong {
  display: block;
  margin: 5px 0 7px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.36;
}

.service-grid,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-grid article,
.proof-grid article,
.process-list li,
.contact-panel {
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-grid article {
  min-height: 240px;
  padding: 26px;
}

.service-grid span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 800;
}

.service-grid p,
.process-list p,
.proof-grid p,
.contact-copy p,
.contact-panel p,
.contact-panel small {
  color: var(--muted);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process-list li {
  position: relative;
  min-height: 270px;
  padding: 26px;
  overflow: hidden;
}

.process-list li::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  right: 18px;
  bottom: 8px;
  color: rgba(0, 113, 227, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 68px;
  font-weight: 800;
  line-height: 1;
}

.process-list span {
  display: inline-block;
  margin-bottom: 38px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

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

.proof-grid article {
  padding: 24px;
}

.proof-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 460px);
  gap: clamp(28px, 4.5vw, 58px);
  align-items: stretch;
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto clamp(76px, 9vw, 124px);
  padding: clamp(48px, 7vw, 82px);
  border-radius: 24px;
  background: #111113;
  color: #fff;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  min-height: 100%;
  padding: 8px 0;
}

.contact-copy h2 {
  max-width: 7ch;
  margin: 0;
  font-size: clamp(42px, 4.4vw, 60px);
  line-height: 1.08;
}

.contact-copy p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.75;
}

.contact-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 100%;
}

.contact-point {
  min-height: 122px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.contact-point strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.2;
}

.contact-point span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.7;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.contact-panel {
  align-self: stretch;
  padding: 24px;
  background: #fff;
  color: var(--ink);
  font-style: normal;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
}

.contact-panel span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-panel strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.08;
}

.contact-panel p {
  margin: 14px 0 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.68;
}

.contact-panel-expanded {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-panel-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

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

.contact-card {
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.contact-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
}

.contact-card h3 {
  margin: 12px 0 6px;
  font-size: 18px;
  line-height: 1.2;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(29, 29, 31, 0.08);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 700;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
}

.lightbox.is-open {
  display: grid;
}

.lightbox figure {
  width: min(1120px, 100%);
  max-height: 88vh;
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.lightbox figcaption {
  margin-top: 12px;
  color: #fff;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1020px) {
  .nav-links {
    display: none;
  }

  .hero-bg,
  .section-heading,
  .proof-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-image-main {
    grid-row: auto;
  }

  .gallery-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-copy {
    padding: 0;
  }

  .contact-copy h2 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 62px;
    padding: 10px 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small,
  .nav-cta {
    display: none;
  }

  .contact-points,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    gap: 14px;
  }

  .hero {
    min-height: auto;
    padding: 58px 18px 34px;
  }

  .hero-content {
    width: min(330px, 100%);
    max-width: 330px;
  }

  .hero-lede {
    max-width: 330px;
  }

  h1 {
    max-width: 330px;
    margin-right: auto;
    margin-left: auto;
    font-size: 30px;
    line-height: 1.08;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 32px;
    line-height: 1.12;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .hero-lede,
  .section-heading p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-bg {
    gap: 12px;
  }

  .hero-image-side,
  .hero-image-tall {
    display: none;
  }

  .hero-note {
    justify-content: flex-start;
  }

  .journal-strip {
    justify-content: flex-start;
  }

  .section {
    width: min(100% - 28px, 1200px);
    padding: 68px 0;
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow: auto;
    padding-bottom: 4px;
  }

  .gallery-grid,
  .service-grid,
  .process-list,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .case-meta {
    min-height: auto;
  }

  .service-grid article,
  .process-list li {
    min-height: auto;
  }

  .contact-section {
    width: min(100% - 28px, 1200px);
    padding: 34px 20px;
    border-radius: 18px;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .site-footer {
    display: block;
  }
}

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top center, rgba(0, 113, 227, 0.12), transparent 28rem),
    linear-gradient(180deg, #fcfcfe 0%, #f5f5f7 100%);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(245, 245, 247, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
}

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

.admin-import-button {
  cursor: pointer;
}

.admin-shell {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.admin-intro {
  padding: 30px 32px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.05);
}

.admin-intro h1 {
  max-width: 920px;
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 60px);
}

.admin-intro p:not(.eyebrow) {
  max-width: 900px;
  color: var(--muted);
  font-size: 17px;
}

.admin-status {
  margin-bottom: 0;
  color: var(--accent);
  font-weight: 700;
}

.admin-status[data-dirty="true"] {
  color: var(--amber);
}

.admin-section {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.05);
}

.admin-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-section-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-case-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admin-image-card,
.admin-editor-card,
.admin-case-list,
.admin-case-item,
.admin-preview-panel {
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.admin-image-card {
  overflow: hidden;
}

.admin-image-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: linear-gradient(180deg, #fbfbfd, #f0f0f3);
}

.admin-image-card-body {
  padding: 18px;
}

.admin-image-card-body strong {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
}

.admin-case-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-case-list {
  display: grid;
  gap: 10px;
  max-height: 860px;
  padding: 12px;
  overflow: auto;
}

.admin-case-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.admin-case-item:hover,
.admin-case-item.is-active {
  border-color: rgba(0, 113, 227, 0.18);
  box-shadow: 0 14px 28px rgba(0, 113, 227, 0.09);
  transform: translateY(-1px);
}

.admin-case-item img {
  width: 74px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 6px;
  background: linear-gradient(180deg, #fbfbfd, #f0f0f3);
}

.admin-case-item strong,
.admin-case-item small {
  display: block;
}

.admin-case-item strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.admin-case-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-editor-card {
  padding: 20px;
}

.admin-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.admin-preview-panel {
  margin: 0;
  padding: 12px;
}

.admin-preview-panel figcaption {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-preview-panel img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 6px;
  background: linear-gradient(180deg, #fbfbfd, #f0f0f3);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.admin-field {
  display: block;
}

.admin-field span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.admin-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(29, 29, 31, 0.12);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.admin-field input[type="file"] {
  padding: 10px 12px;
}

.admin-field-hint {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.admin-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-tag-option {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.admin-tag-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.admin-tag-option span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(29, 29, 31, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #3d3d40;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.admin-tag-option.is-active span,
.admin-tag-option input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

@media (max-width: 1080px) {
  .admin-topbar,
  .admin-section-heading,
  .admin-case-layout {
    display: block;
  }

  .admin-actions,
  .admin-case-tools {
    margin-top: 16px;
    justify-content: flex-start;
  }

  .admin-case-list {
    margin-bottom: 18px;
  }

  .admin-hero-grid,
  .admin-preview-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-shell {
    width: min(100% - 28px, 1280px);
    padding-top: 22px;
  }

  .admin-topbar {
    padding: 12px 14px;
  }

  .admin-intro,
  .admin-section,
  .admin-editor-card {
    padding: 20px;
  }

  .admin-intro h1 {
    font-size: 34px;
    line-height: 1.1;
  }

  .admin-case-item {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .admin-case-item img {
    width: 60px;
  }
}
