@font-face {
  font-family: "InkWhisper UI";
  src: url("/fonts/MiSans-About-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.direction-a {
  --paper: #f5f5f2;
  --soft: #e9eae5;
  --line: #d8d9d3;
  font-family: "InkWhisper UI", "InkWhisper Sans", "Microsoft YaHei", sans-serif;
  background: var(--paper);
}

.direction-a .shell {
  width: min(1660px, calc(100% - 96px));
}

.direction-a .prototype-bar .shell { width: min(1660px, calc(100% - 96px)); }

.direction-a .site-header {
  position: sticky;
  z-index: 40;
  top: 54px;
  min-height: 68px;
  background: rgba(245, 245, 242, .88);
  border-bottom: 1px solid rgba(17, 18, 15, .12);
  backdrop-filter: saturate(160%) blur(18px);
}

.direction-a .site-header::before {
  content: none;
}

.direction-a .hero-compact {
  min-height: 326px;
  padding: 58px 0 50px;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .45fr);
  gap: clamp(56px, 8vw, 150px);
  border-top: 0;
}

.direction-a .hero-compact h1 {
  max-width: 900px;
  font-size: clamp(46px, 4.7vw, 72px);
  line-height: 1.03;
}

.direction-a .hero-compact p { max-width: 40ch; }

.direction-a .button,
.direction-a .site-nav .contact-link {
  border-radius: 999px;
  transition: color .25s ease, background-color .25s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
}

.direction-a .button:hover,
.direction-a .site-nav .contact-link:hover { transform: translateY(-1px); }

.direction-a .section-head { padding: 44px 0 28px; }
.direction-a .section-head p { max-width: 620px; }

.direction-a .project-grid {
  gap: 34px 24px;
  padding-bottom: 104px;
}

.direction-a .project-card {
  padding: 8px 8px 13px;
  border: 1px solid rgba(17, 18, 15, .07);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .45s cubic-bezier(.16, 1, .3, 1), background-color .3s ease;
}

.direction-a .project-card .cover { border-radius: 6px; }
.direction-a .project-card .card-copy { padding: 13px 6px 0; }

@media (hover: hover) and (pointer: fine) {
  .direction-a .project-card:hover {
    z-index: 1;
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 22px 60px rgba(17, 18, 15, .11);
  }
  .direction-a .project-card:hover .cover img { transform: scale(1.018); }
}

.direction-a .service-band { padding: 62px 0; }
.direction-a .trust-section { padding: 82px 0; }
.direction-a .contact-footer { padding-top: 80px; }

/* Compact project masthead */
.direction-a .detail-hero {
  min-height: 0;
  padding: 34px 0 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(520px, .75fr);
  gap: clamp(50px, 7vw, 128px);
  align-items: end;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.direction-a .detail-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.06;
}

.direction-a .detail-meta {
  margin: 0;
  padding: 0;
  border-top: 0;
}

.direction-a .detail-copy {
  padding: 38px 0 46px;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}

.direction-a .detail-copy article { min-height: 150px; }
.direction-a .detail-copy h2 { font-size: 18px; }
.direction-a .detail-copy p { font-size: 14px; line-height: 1.8; }
.direction-a .gallery-demo { gap: 18px; padding-bottom: 96px; }
.direction-a .gallery-row { gap: 18px; }
.direction-a .gallery-row.cols-2 img { height: min(560px, 39vw); }

/* Simplified, complete admin shell */
.direction-a .admin-page { background: #ecece8; }
.direction-a .admin-header {
  position: sticky;
  z-index: 30;
  top: 54px;
  min-height: 64px;
  padding: 0 22px;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(18px);
}

.admin-a2-layout {
  min-height: calc(100svh - 118px);
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
}

.admin-module-nav {
  position: sticky;
  top: 118px;
  align-self: start;
  height: calc(100svh - 118px);
  padding: 22px 14px;
  background: #f9f9f6;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.admin-module-nav > strong {
  display: block;
  padding: 0 10px 14px;
  font-size: 12px;
}

.admin-module-nav button {
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #5e625a;
  text-align: left;
  font-size: 12px;
}

.admin-module-nav button:hover,
.admin-module-nav button.is-active {
  background: #e5e6e0;
  color: var(--ink);
  font-weight: 700;
}

.admin-module-nav button span:last-child {
  color: #8a8e85;
  font-size: 10px;
}

.admin-module-nav footer {
  margin-top: 28px;
  padding: 16px 10px 0;
  color: #777b72;
  font-size: 10px;
  border-top: 1px solid var(--line);
}

.admin-workspace { min-width: 0; padding: 24px 26px 80px; }
.admin-panel { display: none; width: 100%; margin-inline: 0; }
.admin-panel.is-active { display: block; }

.admin-panel-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.admin-panel-heading h1 { margin: 0; font-size: 28px; line-height: 1.2; }
.admin-panel-heading p { max-width: 56ch; margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.admin-panel-heading .button { background: #fff; }

.project-switcher {
  min-height: 58px;
  margin-bottom: 14px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 74px minmax(260px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.project-switcher > span { color: var(--muted); font-size: 11px; }
.project-switcher select { min-height: 40px; padding: 0 10px; border: 0; border-radius: 6px; background: #f2f2ee; font-weight: 700; }
.project-switcher button { min-height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 11px; }

.editor-summary {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  gap: 28px;
  align-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.editor-summary h2 { margin: 0; font-size: 20px; }
.editor-summary p { margin: 5px 0 0; color: #bfc2ba; font-size: 11px; }
.editor-summary div:not(:first-child) { display: grid; gap: 3px; }
.editor-summary span { color: #aeb1a8; font-size: 9px; }
.editor-summary b { font-size: 11px; }

.editor-sections { margin-top: 14px; display: grid; gap: 8px; }
.editor-section { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.editor-section > summary {
  min-height: 60px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
}
.editor-section > summary::-webkit-details-marker { display: none; }
.editor-section > summary::after { content: "+"; margin-left: auto; color: #73776e; font-size: 18px; font-weight: 400; }
.editor-section[open] > summary::after { content: "−"; }
.editor-section[open] > summary { border-bottom: 1px solid var(--line); }
.editor-section > summary span { color: var(--muted); font-size: 10px; font-weight: 400; }
.editor-section-body { padding: 20px; }
.editor-section .admin-form-grid { gap: 14px; }

.cover-inline {
  display: grid;
  grid-template-columns: minmax(440px, .95fr) minmax(340px, .8fr);
  gap: 32px;
  align-items: start;
}
.cover-inline .cover-editor { width: 100%; aspect-ratio: 4 / 3; justify-self: center; border: 1px solid var(--line); background: #f2f2ee; }
.cover-inline .cover-editor[data-cover-ratio="1:1"] { width: min(86%, 620px); aspect-ratio: 1 / 1; }
.cover-inline .cover-editor[data-cover-ratio="4:3"] { width: 100%; aspect-ratio: 4 / 3; }
.cover-inline .cover-editor[data-cover-ratio="3:4"] { width: min(70%, 500px); aspect-ratio: 3 / 4; }
.cover-inline .cover-editor[data-cover-ratio="16:9"] { width: 100%; aspect-ratio: 16 / 9; }
.cover-inline .cover-editor[data-cover-ratio="9:16"] { width: min(48%, 360px); aspect-ratio: 9 / 16; }
.cover-inline .cover-editor::after { content: "拖动设置封面焦点"; }
.cover-inline-tools { display: grid; gap: 14px; }
.cover-inline-tools input[type="range"] { width: 100%; padding: 0; accent-color: var(--ink); }
.cover-inline-tools output { margin-left: 6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cover-picker { display: grid; grid-template-columns: repeat(5, minmax(72px, 1fr)); gap: 8px; }
.cover-picker button { position: relative; min-width: 0; aspect-ratio: 1.18 / 1; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #f2f2ee; }
.cover-picker button:hover,
.cover-picker button.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--acid); }
.cover-picker img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cover-picker b { position: absolute; right: 5px; bottom: 5px; min-width: 24px; padding: 3px 5px; border-radius: 3px; background: rgba(17,18,15,.82); color: #fff; font-size: 9px; font-variant-numeric: tabular-nums; }
.cover-picker-library { display: grid; place-items: center; align-content: center; gap: 3px; }
.cover-picker-library span { font-size: 22px; line-height: 1; }
.cover-picker-library b { position: static; background: transparent; color: var(--ink); }
.cover-source-field > span { display: flex; justify-content: space-between; gap: 12px; }
.cover-source-field > span small { color: var(--muted); font-size: 10px; font-weight: 400; }
.cover-ratio-row { min-height: 58px; padding: 10px 0; display: grid; grid-template-columns: minmax(150px, 1fr) auto; align-items: center; gap: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cover-ratio-row > div:first-child { display: grid; gap: 4px; }
.cover-ratio-row span { color: var(--ink); font-size: 11px; font-weight: 700; }
.cover-ratio-row small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.cover-ratio-options { display: grid; grid-template-columns: repeat(5, minmax(46px, 1fr)); gap: 5px; }
.cover-ratio-options button { min-height: 34px; padding: 0 9px; border: 1px solid #b6b9af; border-radius: 5px; background: #fff; color: var(--muted); font-size: 10px; font-weight: 700; }
.cover-ratio-options button:hover { border-color: var(--ink); color: var(--ink); }
.cover-ratio-options button.is-active { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: inset 0 -3px var(--acid); }
.cover-fit-row { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cover-fit-row > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.cover-fit-toggle { display: inline-grid; grid-template-columns: repeat(2, minmax(92px, 1fr)); padding: 3px; border: 1px solid #b6b9af; border-radius: 7px; background: #f0f0ec; }
.cover-fit-toggle button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 10px; }
.cover-fit-toggle button.is-active { background: var(--ink); color: #fff; }
.cover-nudge { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cover-nudge > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.cover-nudge > div { display: flex; gap: 5px; }
.cover-nudge button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid #898c83; border-radius: 5px; background: #fff; font-size: 16px; }
.cover-nudge button:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.cover-reset-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cover-reset-row p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.cover-reset { min-width: 112px; height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 6px; background: #fff; font-size: 16px; }
.cover-reset span { font-size: 10px; font-weight: 700; }
.cover-reset:hover { background: var(--ink); color: #fff; }

.media-builder-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.media-builder-toolbar p { margin: 0; color: var(--muted); font-size: 11px; }
.media-builder-toolbar div { display: flex; gap: 8px; }
.media-builder-toolbar button { min-height: 38px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 6px; background: #fff; font-size: 11px; }
.media-builder-toolbar button:hover { background: var(--ink); color: #fff; }
.media-library-open { overflow: hidden; }
.media-library-picker {
  position: fixed;
  z-index: 300;
  left: 50%;
  top: 50%;
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100vh - 72px);
  margin: 0;
  padding: 18px;
  overflow: auto;
  border: 1px solid #c7c9c0;
  border-radius: 10px;
  background: #f4f4f0;
  box-shadow: 0 0 0 100vmax rgba(9, 10, 8, .58), 0 28px 80px rgba(9, 10, 8, .24);
  transform: translate(-50%, -50%);
}
.media-library-picker[hidden] { display: none; }
.media-library-picker > header { min-height: 42px; margin-bottom: 14px; padding-bottom: 12px; display: flex; align-items: start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #d2d4cb; }
.media-library-picker > header strong { display: block; font-size: 12px; }
.media-library-picker > header span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.media-library-picker > header > button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid #aeb1a7; border-radius: 5px; background: #fff; font-size: 18px; line-height: 1; }
.media-picker-actions { margin: 0 0 14px; display: flex; justify-content: flex-end; gap: 8px; }
.media-picker-actions button { min-height: 36px; padding: 0 12px; border: 1px solid #aeb1a7; border-radius: 5px; background: #fff; color: var(--ink); font-size: 10px; font-weight: 700; }
.media-picker-actions [data-library-add-selected] { border-color: var(--ink); background: var(--ink); color: #fff; }
.media-picker-actions [data-library-add-selected]:disabled { border-color: #d2d4cb; background: #e7e8e3; color: #999c93; cursor: not-allowed; }
.media-picker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.media-picker-grid > button { position: relative; min-width: 0; overflow: hidden; padding: 0 0 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 1px solid #c7c9c0; border-radius: 7px; background: #fff; color: var(--ink); text-align: left; }
.media-picker-grid > button:hover { border-color: var(--ink); }
.media-picker-grid > button.is-selected { border-color: var(--acid); box-shadow: inset 0 0 0 2px var(--acid); }
.media-picker-grid > button.is-selected b { background: var(--acid); color: var(--ink); }
.media-picker-grid > button:disabled { opacity: .56; cursor: default; }
.media-picker-grid img { grid-column: 1 / -1; width: 100%; aspect-ratio: 1.24 / 1; display: block; object-fit: contain; background: #e9e9e4; }
.media-picker-grid span { min-width: 0; padding-left: 10px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.media-picker-grid b { padding-right: 10px; color: var(--muted); font-size: 9px; }
.media-picker-grid .is-added b { color: #557400; }

.related-project-editor { display: grid; gap: 14px; }
.related-editor-toolbar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.related-editor-toolbar > div { display: grid; gap: 4px; }
.related-editor-toolbar strong { font-size: 12px; }
.related-editor-toolbar strong b { color: #607f00; }
.related-editor-toolbar span { color: var(--muted); font-size: 10px; }
.related-editor-toolbar > button,
.related-project-picker header button { min-height: 38px; padding: 0 13px; border: 1px solid var(--ink); border-radius: 6px; background: #fff; color: var(--ink); font-size: 11px; }
.related-editor-toolbar > button:hover { background: var(--ink); color: #fff; }
.related-selected-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.related-selected-item { min-width: 0; padding: 8px; display: grid; grid-template-columns: 70px minmax(0, 1fr) 30px; align-items: center; gap: 10px; border: 1px solid #d0d2ca; border-radius: 7px; background: #f7f7f4; }
.related-selected-item img { width: 70px; aspect-ratio: 1.2 / 1; display: block; object-fit: cover; border-radius: 4px; background: #e4e5df; }
.related-selected-item > div { min-width: 0; display: grid; gap: 5px; }
.related-selected-item strong,
.related-selected-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-selected-item strong { font-size: 10px; }
.related-selected-item span { color: var(--muted); font-size: 9px; }
.related-selected-item > button { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border: 1px solid #c7c9c0; border-radius: 5px; background: #fff; font-size: 16px; }
.related-selected-item > button:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.related-project-picker { padding: 16px; border: 1px solid #c7c9c0; border-radius: 8px; background: #f4f4f0; }
.related-project-picker[hidden] { display: none; }
.related-project-picker > header { margin-bottom: 14px; padding-bottom: 12px; display: flex; align-items: start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #d2d4cb; }
.related-project-picker > header strong { display: block; font-size: 12px; }
.related-project-picker > header span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.related-project-picker > header button { width: 32px; min-height: 32px; padding: 0; font-size: 18px; }
.related-project-search { margin-bottom: 14px; display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 12px; }
.related-project-search span { color: var(--muted); font-size: 10px; }
.related-project-search input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #c7c9c0; border-radius: 6px; background: #fff; font: inherit; }
.related-project-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.related-project-option { min-width: 0; overflow: hidden; padding: 0 0 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 1px solid #c7c9c0; border-radius: 7px; background: #fff; text-align: left; }
.related-project-option[hidden] { display: none; }
.related-project-option img { grid-column: 1 / -1; width: 100%; aspect-ratio: 1.2 / 1; display: block; object-fit: cover; background: #e4e5df; }
.related-project-option span { min-width: 0; padding-left: 10px; overflow: hidden; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.related-project-option b { padding-right: 10px; color: var(--muted); font-size: 9px; }
.related-project-option:hover { border-color: var(--ink); }
.related-project-option.is-selected { border-color: #799d00; box-shadow: inset 0 0 0 1px #799d00; }
.related-project-option.is-selected b { color: #557400; }

.editor-section .layout-row { padding: 12px; background: #f4f4f0; }
.editor-section .layout-thumb { overflow: hidden; border: 1px solid #c7c9c0; border-radius: 6px; background: #fff; }
.editor-section .layout-thumb:hover { border-color: var(--ink); }
.editor-section .layout-thumb.is-cover { box-shadow: inset 0 0 0 2px var(--acid); }
.editor-section .layout-thumb img { height: clamp(150px, 16vw, 250px); border-radius: 0; }
.layout-row header strong span { margin-left: 6px; color: var(--muted); font-size: 10px; font-weight: 400; }
.media-card-step { position: absolute; z-index: 2; inset: 8px 8px auto; display: flex; justify-content: space-between; pointer-events: none; }
.media-card-step button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.72); border-radius: 5px; background: rgba(17,18,15,.82); color: #fff; font-size: 18px; line-height: 1; pointer-events: auto; backdrop-filter: blur(6px); }
.media-card-step button:hover { border-color: var(--acid); background: var(--acid); color: var(--ink); }
.media-card-actions { min-height: 44px; padding: 6px; display: flex; align-items: center; gap: 5px; border-top: 1px solid #c7c9c0; }
.media-card-actions > span { min-width: 24px; margin-right: auto; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.media-card-actions select { position: static; min-height: 30px; max-width: 92px; padding: 0 6px; border: 1px solid #b6b9af; border-radius: 4px; background: #fff; font-size: 10px; }
.media-card-actions button { min-height: 30px; padding: 0 7px; border: 1px solid #898c83; border-radius: 4px; background: #fff; font-size: 10px; }
.media-card-actions button:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.media-card-actions button[data-media-action="remove"]:hover { border-color: #d9443f; background: #d9443f; }
.layout-thumb.is-dragging { opacity: .42; border-color: var(--acid); }
.media-empty-slot {
  min-width: 0;
  min-height: 295px;
  padding: 24px 14px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px dashed #9b9e94;
  border-radius: 6px;
  background: #ecece7;
  color: var(--ink);
  text-align: center;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.media-empty-slot:hover { border-color: var(--ink); background: #fff; transform: translateY(-2px); }
.media-empty-slot > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 24px; line-height: 1; transition: background .2s ease, color .2s ease; }
.media-empty-slot:hover > span { background: var(--acid); color: var(--ink); }
.media-empty-slot strong { font-size: 11px; }
.media-empty-slot small { color: var(--muted); font-size: 9px; }
.direction-a .layout-thumbs.cols-1 { grid-template-columns: minmax(0, 1fr); }
.direction-a .layout-thumbs.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.direction-a .layout-thumbs.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.direction-a .layout-thumbs.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.module-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.home-featured-summary { min-height: 44px; padding: 0 4px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }
.home-featured-summary b { color: #557400; font-size: 12px; }
.module-row {
  min-height: 86px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 22px 34px 86px minmax(180px, 1fr) minmax(132px, .45fr) 246px 142px auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: background-color .2s ease, opacity .2s ease;
}
.module-row:last-child { border-bottom: 0; }
.module-row > b { color: #777b72; font-size: 11px; font-variant-numeric: tabular-nums; }
.module-drag { width: 22px; height: 38px; padding: 0; display: grid; place-content: center; gap: 3px; border: 0; background: transparent; cursor: grab; }
.module-drag:active { cursor: grabbing; }
.module-drag i { width: 3px; height: 3px; display: block; border-radius: 50%; background: #8b8e86; box-shadow: 6px 0 #8b8e86; }
.module-row.is-dragging { opacity: .45; }
.module-thumb-preview { width: 86px; height: 66px; display: grid; place-items: center; }
.module-thumb-preview img { display: block; border-radius: 5px; object-fit: cover; background: #e6e7e1; }
.module-row[data-home-ratio="1:1"] .module-thumb-preview img { width: 66px; height: 66px; }
.module-row[data-home-ratio="4:3"] .module-thumb-preview img { width: 84px; height: 63px; }
.module-row[data-home-ratio="3:4"] .module-thumb-preview img { width: 50px; height: 66px; }
.module-row[data-home-ratio="16:9"] .module-thumb-preview img { width: 84px; height: 47px; }
.module-row[data-home-ratio="9:16"] .module-thumb-preview img { width: 37px; height: 66px; }
.module-copy { min-width: 0; }
.module-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.module-row strong { display: block; font-size: 12px; }
.module-row small { color: var(--muted); font-size: 10px; }
.home-project-links { min-width: 0; display: flex; gap: 6px; }
.home-project-links button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font-size: 10px; font-weight: 700; white-space: nowrap; }
.home-project-links button:hover { border-color: var(--ink); }
.home-project-links [data-home-project-action="edit"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.home-project-links [data-home-project-action="edit"]:hover { background: var(--acid); color: var(--ink); }
.home-tier-control { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; }
.home-tier-control > span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.home-tier-options { min-width: 0; padding: 2px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; border: 1px solid var(--line); border-radius: 5px; background: #f0f1ec; }
.home-tier-options button { min-width: 0; min-height: 28px; padding: 0 5px; border: 0; border-radius: 3px; background: transparent; color: #666960; font-size: 9px; font-weight: 700; white-space: nowrap; }
.home-tier-options button:hover { background: #fff; color: var(--ink); }
.home-tier-options button.is-active { background: var(--ink); color: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.module-row[data-home-tier="selected"] .home-tier-options button.is-active { background: var(--acid); color: var(--ink); }
.module-row[data-home-tier="archive"] .home-tier-options button.is-active { background: #d8dad2; color: var(--ink); }
.module-ratio { min-width: 0; display: grid; grid-template-columns: auto minmax(76px, 1fr); align-items: center; gap: 8px; }
.module-ratio span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.module-ratio select { width: 100%; height: 34px; padding: 0 28px 0 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font: inherit; font-size: 10px; }
.module-actions { display: flex; gap: 6px; }
.module-actions button { min-height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 10px; }
.module-actions button:hover { border-color: var(--ink); }
.module-actions button:disabled { opacity: .38; cursor: default; }
.module-row.is-hidden { background: #eff0eb; opacity: .72; }
.module-row.is-project-unlisted { background: #eff0eb; opacity: .72; }
.module-row.is-hidden .module-copy::after { content: "已隐藏，不在首页显示"; margin-top: 5px; display: block; color: #7a5b00; font-size: 9px; font-weight: 700; }
.module-row.is-project-unlisted .module-copy::after { content: "项目本身不在公开列表显示"; margin-top: 5px; display: block; color: #7a5b00; font-size: 9px; font-weight: 700; }
.home-picker-open { overflow: hidden; }
.home-project-picker { position: fixed; z-index: 310; left: 50%; top: 50%; width: min(1120px, calc(100vw - 48px)); max-height: calc(100vh - 72px); padding: 18px; overflow: auto; background: #f4f4f0; box-shadow: 0 0 0 100vmax rgba(9, 10, 8, .58), 0 28px 80px rgba(9, 10, 8, .24); transform: translate(-50%, -50%); }
.home-project-picker .related-project-option:disabled { opacity: .48; cursor: default; }

.media-library-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.media-library-item { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.media-library-item img { width: 100%; aspect-ratio: 1.15 / 1; display: block; object-fit: cover; }
.media-library-item div { padding: 9px 10px; display: flex; justify-content: space-between; gap: 8px; }
.media-library-item strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.media-library-item span { flex: none; color: var(--muted); font-size: 9px; }

.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.settings-group { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.settings-group h2 { margin: 0 0 16px; font-size: 17px; }
.settings-group .field + .field { margin-top: 14px; }
.settings-group .qr-pair { grid-template-columns: repeat(2, 126px); }

.company-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.company-group-wide { grid-column: 1 / -1; }
.settings-group-head { margin-bottom: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.settings-group-head h2 { margin: 0 0 5px; }
.settings-group-head p { max-width: 56ch; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.settings-group-head .button { min-height: 36px; flex: none; }
.cms-entry-list { display: grid; gap: 10px; }
.cms-entry { padding: 14px; display: grid; grid-template-columns: 270px minmax(0, 1fr) 104px; align-items: start; gap: 16px; border: 1px solid var(--line); border-radius: 7px; background: #f7f7f3; }
.cms-entry-identity { min-width: 0; display: grid; gap: 10px; }
.cms-entry-identity > div:not(.team-avatar-editor) { min-width: 0; display: grid; gap: 3px; }
.cms-entry-identity strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.cms-entry-identity small { color: var(--muted); font-size: 9px; }
.cms-avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; }
.team-avatar-editor { min-width: 0; display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 8px 10px; }
.team-avatar-stage { position: relative; width: 108px; aspect-ratio: 1; grid-row: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #e8e9e3; cursor: grab; touch-action: none; }
.team-avatar-stage.is-dragging { cursor: grabbing; }
.team-avatar-stage .cms-avatar { width: 100%; height: 100%; border-radius: 0; font-size: 28px; }
.team-avatar-stage img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.team-avatar-stage img[hidden] { display: none; }
.team-avatar-drag-hint { position: absolute; left: 6px; bottom: 6px; z-index: 2; padding: 3px 5px; border-radius: 3px; background: rgba(9, 10, 8, .74); color: #fff; font-size: 8px; line-height: 1; opacity: 0; transition: opacity .2s ease; }
.team-avatar-stage.has-image:hover .team-avatar-drag-hint,
.team-avatar-stage.has-image:focus-within .team-avatar-drag-hint { opacity: 1; }
.team-avatar-buttons { grid-column: 1; display: grid; grid-template-columns: 1fr auto; gap: 5px; }
.team-avatar-buttons button { min-height: 29px; padding: 0 7px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font-size: 8px; font-weight: 750; }
.team-avatar-buttons button:hover { border-color: var(--ink); }
.team-avatar-controls { min-width: 0; grid-column: 2; grid-row: 1 / span 2; display: grid; align-content: start; gap: 7px; }
.team-avatar-controls label { min-width: 0; display: grid; gap: 3px; }
.team-avatar-controls label > span { display: flex; justify-content: space-between; gap: 6px; color: var(--muted); font-size: 8px; }
.team-avatar-controls output { color: var(--ink); font-variant-numeric: tabular-nums; }
.team-avatar-controls input[type="range"] { width: 100%; margin: 0; accent-color: var(--ink); }
.team-avatar-nudge { display: grid; grid-template-columns: repeat(4, 27px); gap: 4px; }
.team-avatar-nudge button { width: 27px; height: 27px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font-size: 12px; }
.team-avatar-nudge button:hover { border-color: var(--ink); }
.team-avatar-nudge [data-team-avatar-reset] { width: auto; grid-column: 1 / -1; font-size: 8px; }
.cms-entry-fields { display: grid; grid-template-columns: minmax(120px, .65fr) minmax(190px, 1.35fr); gap: 10px; }
.cms-entry-fields .wide { grid-column: 1 / -1; }
.cms-entry-fields textarea { min-height: 68px; }
.cms-entry-actions { display: grid; justify-items: end; gap: 10px; }
.cms-entry-actions > button,
.brand-logo-entry > button,
.credential-entry > button { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #6b6e66; font-size: 16px; }
.cms-entry-actions > button:hover,
.brand-logo-entry > button:hover,
.credential-entry > button:hover { border-color: #9b2b2b; color: #9b2b2b; }
.cms-switch { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.cms-switch input { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); }
.brand-logo-list { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.brand-logo-entry { min-height: 64px; padding: 9px; display: grid; grid-template-columns: 74px minmax(0, 1fr) auto 32px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; background: #f7f7f3; }
.brand-logo-entry img { width: 68px; height: 26px; display: block; object-fit: contain; object-position: left center; }
.brand-logo-entry input,
.credential-entry > input { min-width: 0; height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 10px; }
.credential-list { display: grid; gap: 8px; }
.credential-entry { min-height: 52px; padding: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto 32px; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 6px; background: #f7f7f3; }
.team-credential-panel { min-width: 0; grid-column: 2 / -1; padding-top: 16px; border-top: 1px solid var(--line); }
.team-credential-head { margin-bottom: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.team-credential-head h3 { margin: 0 0 4px; font-size: 14px; }
.team-credential-head p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.team-credential-head .button { min-height: 34px; flex: none; }
.company-profile-group textarea { min-height: 100px; }
.company-editor-note { margin: 12px 2px 0; color: var(--muted); font-size: 10px; }

.version-row { min-height: 64px; padding: 10px 0; display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: center; border-top: 1px solid var(--line); }
.version-row span { color: var(--muted); font-size: 10px; }
.version-row strong { font-size: 12px; }
.version-row button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 10px; }

.admin-heading-actions { display: flex; align-items: center; gap: 8px; }
.admin-panel-heading .button.primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.admin-panel-heading .button.primary:hover { border-color: var(--acid); background: var(--acid); color: var(--ink); }
.project-action-menu { width: min(540px, 100%); margin: -6px 0 18px auto; padding: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 18px 44px rgba(17, 18, 15, .1); }
.project-action-menu[hidden] { display: none; }
.project-action-menu button { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: #f7f7f3; font-size: 10px; font-weight: 700; }
.project-action-menu button:hover { border-color: var(--ink); background: #fff; }
.project-action-menu [data-project-action="delete"] { color: #8f2727; }

.library-manager { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: start; }
.library-folders { position: sticky; top: 150px; max-height: calc(100vh - 178px); padding: 8px; display: grid; gap: 4px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.library-folder { width: 100%; min-height: 48px; padding: 7px 9px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 6px; background: transparent; text-align: left; }
.library-folder:hover { background: #f2f3ed; }
.library-folder.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.library-folder > b { font-size: 10px; font-variant-numeric: tabular-nums; }
.library-folder > span { min-width: 0; display: grid; gap: 2px; }
.library-folder strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.library-folder small { color: var(--muted); font-size: 8px; }
.library-folder.is-active small { color: rgba(255, 255, 255, .66); }
.library-folder > em { min-width: 26px; color: var(--muted); font-size: 9px; font-style: normal; text-align: right; }
.library-folder.is-active > em { color: var(--acid); }
.library-content { min-width: 0; }
.library-content .project-switcher { margin-bottom: 10px; }
.library-content .project-switcher button.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.media-library-summary { min-height: 48px; margin-bottom: 10px; padding: 0 12px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.media-library-summary span { min-width: 0; overflow: hidden; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.media-library-summary strong { margin-left: auto; font-size: 10px; }
.media-library-summary small { color: var(--muted); font-size: 9px; }
.media-library-item { position: relative; }
.media-library-item > img,
.media-library-item > video { width: 100%; aspect-ratio: 1.15 / 1; display: block; object-fit: contain; background: #e9e9e4; }
.media-library-item.is-selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.media-library-item > button { position: absolute; top: 7px; right: 7px; min-height: 28px; padding: 0 8px; border: 1px solid rgba(255, 255, 255, .76); border-radius: 5px; background: rgba(9, 10, 8, .82); color: #fff; font-size: 9px; }
.media-library-item > button:hover { background: var(--acid); color: var(--ink); }
.media-library-item > button:disabled { border-color: transparent; background: rgba(255, 255, 255, .84); color: #4e5049; cursor: default; }
.library-empty { min-height: 260px; display: grid; place-content: center; justify-items: center; gap: 8px; border: 1px dashed #aeb1a7; border-radius: 8px; background: #f7f7f3; text-align: center; }
.library-empty[hidden] { display: none; }
.library-empty strong { font-size: 14px; }
.library-empty span { color: var(--muted); font-size: 10px; }
.settings-status { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; }
.version-row.is-selected { margin-inline: -10px; padding-inline: 10px; border-radius: 6px; background: #f0f1eb; }

/* One authored motion moment: the selected project grid settles into view. */
@media (prefers-reduced-motion: no-preference) {
  .direction-a.a-motion-ready [data-view="home"] .project-card {
    opacity: .01;
    transform: translateY(22px);
  }
  .direction-a.a-motion-ready [data-view="home"] .project-card.is-revealed {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--card-index, 0) * 45ms);
  }
}

@media (max-width: 1180px) {
  .direction-a .detail-hero { grid-template-columns: 1fr; gap: 24px; }
  .direction-a .detail-copy { grid-template-columns: repeat(2, 1fr); }
  .editor-summary { grid-template-columns: 1fr repeat(2, auto); }
  .editor-summary div:last-child { display: none; }
  .media-library-grid { grid-template-columns: repeat(3, 1fr); }
  .cms-entry { grid-template-columns: 250px minmax(0, 1fr); }
  .cms-entry-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
  .brand-logo-list { grid-template-columns: 1fr; }
  .library-manager { grid-template-columns: 190px minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .direction-a .shell,
  .direction-a .prototype-bar .shell { width: min(100% - 32px, 1660px); }
  .direction-a .site-header { top: 92px; }
  .direction-a .hero-compact { min-height: 0; padding: 38px 0 42px; grid-template-columns: 1fr; gap: 24px; }
  .direction-a .hero-compact h1 { color: var(--ink); font-size: 32px; line-height: 1.12; opacity: 1; text-wrap: initial; }
  .direction-a .project-card { padding: 6px 6px 11px; }
  .direction-a .detail-hero { padding: 24px 0 22px; }
  .direction-a .detail-hero h1 { color: var(--ink); font-size: 32px; line-height: 1.12; opacity: 1; text-wrap: initial; }
  .direction-a .detail-copy { padding: 28px 0 34px; grid-template-columns: 1fr; gap: 18px; }
  .direction-a .detail-copy article { min-height: 0; }
  .direction-a .admin-header { top: 92px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding: 10px 16px; }
  .direction-a .admin-header strong { min-width: 0; font-size: 16px; }
  .direction-a .admin-header .status-pill { display: none; }
  .direction-a .admin-header .save-state { order: 2; width: auto; margin: 0; grid-column: 1 / -1; }
  .direction-a .admin-header button { min-height: 36px; padding-inline: 10px; }
  .admin-a2-layout { display: block; }
  .admin-module-nav { position: static; height: auto; padding: 10px 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-module-nav > strong, .admin-module-nav footer { display: none; }
  .admin-module-nav button { min-width: 0; min-height: 38px; justify-content: center; }
  .admin-module-nav button span:last-child { display: none; }
  .admin-workspace { padding: 20px 16px 60px; }
  .admin-panel-heading { align-items: start; flex-direction: column; }
  .admin-heading-actions { width: 100%; }
  .admin-heading-actions .button { flex: 1; }
  .project-switcher { grid-template-columns: 1fr 1fr; }
  .project-switcher > span, .project-switcher select { grid-column: 1 / -1; }
  .editor-summary { grid-template-columns: 1fr 1fr; }
  .editor-summary > div:first-child { grid-column: 1 / -1; }
  .editor-summary div:last-child { display: grid; }
  .cover-inline, .settings-grid, .company-editor-grid { grid-template-columns: 1fr; }
  .company-group-wide { grid-column: auto; }
  .cover-picker { grid-template-columns: repeat(3, 1fr); }
  .cover-ratio-row { grid-template-columns: 1fr; }
  .cover-ratio-options { width: 100%; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cover-inline .cover-editor[data-cover-ratio="1:1"] { width: 90%; }
  .cover-inline .cover-editor[data-cover-ratio="3:4"] { width: 78%; }
  .cover-inline .cover-editor[data-cover-ratio="9:16"] { width: 58%; }
  .cover-fit-row { align-items: stretch; flex-direction: column; }
  .media-builder-toolbar { align-items: stretch; flex-direction: column; }
  .media-builder-toolbar div { display: grid; grid-template-columns: 1fr 1fr; }
  .media-library-picker { width: calc(100vw - 24px); max-height: calc(100vh - 32px); padding: 14px; }
  .media-picker-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .media-picker-actions [data-library-add-selected] { grid-column: 1 / -1; }
  .media-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-editor-toolbar { align-items: stretch; flex-direction: column; }
  .related-selected-list { grid-template-columns: 1fr; }
  .related-project-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .direction-a .layout-thumbs.cols-3,
  .direction-a .layout-thumbs.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-card-actions { flex-wrap: wrap; }
  .media-card-actions > span { margin-right: 0; }
  .media-card-actions select { margin-left: auto; }
  .media-card-actions button { flex: 1 0 calc(50% - 3px); }
  .media-library-grid { grid-template-columns: repeat(2, 1fr); }
  .project-action-menu { margin-top: -2px; grid-template-columns: 1fr; }
  .library-manager { display: block; }
  .library-folders { position: static; max-height: none; margin-bottom: 12px; grid-template-columns: repeat(2, minmax(170px, 1fr)); overflow: visible; }
  .media-library-summary { min-height: 58px; align-items: flex-start; flex-wrap: wrap; padding-block: 10px; gap: 4px 12px; }
  .media-library-summary strong { width: 100%; margin-left: 0; }
  .media-library-summary small { margin-left: auto; }
  .settings-group-head { align-items: stretch; flex-direction: column; }
  .settings-group-head .button { width: 100%; }
  .cms-entry { grid-template-columns: 1fr; }
  .team-avatar-editor { width: min(100%, 430px); grid-template-columns: 118px minmax(0, 1fr); }
  .team-avatar-stage { width: 118px; }
  .cms-entry-fields { grid-template-columns: 1fr; }
  .cms-entry-fields .wide { grid-column: auto; }
  .cms-entry-actions { grid-column: auto; }
  .team-credential-panel { grid-column: auto; }
  .team-credential-head { align-items: stretch; flex-direction: column; }
  .team-credential-head .button { width: 100%; }
  .brand-logo-entry { grid-template-columns: 66px minmax(0, 1fr) 32px; }
  .brand-logo-entry .cms-switch { grid-column: 2; }
  .brand-logo-entry > button { grid-column: 3; grid-row: 1; }
  .home-featured-summary { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; }
  .module-row { grid-template-columns: 18px 28px 58px minmax(0, 1fr); gap: 9px; }
  .module-drag { width: 18px; }
  .module-thumb-preview { width: 58px; height: 58px; }
  .module-row[data-home-ratio="1:1"] .module-thumb-preview img { width: 56px; height: 56px; }
  .module-row[data-home-ratio="4:3"] .module-thumb-preview img { width: 58px; height: 44px; }
  .module-row[data-home-ratio="3:4"] .module-thumb-preview img { width: 42px; height: 56px; }
  .module-row[data-home-ratio="16:9"] .module-thumb-preview img { width: 58px; height: 33px; }
  .module-row[data-home-ratio="9:16"] .module-thumb-preview img { width: 32px; height: 56px; }
  .home-project-links { grid-column: 2 / -1; }
  .home-project-links button { flex: 1; }
  .home-tier-control { grid-column: 2 / -1; grid-template-columns: 68px minmax(0, 1fr); }
  .module-ratio { grid-column: 2 / -1; grid-template-columns: 68px minmax(0, 1fr); }
  .module-actions { grid-column: 2 / -1; }
  .module-actions button { flex: 1; }
  .home-project-picker { width: calc(100vw - 24px); max-height: calc(100vh - 32px); padding: 14px; }
  .version-row { grid-template-columns: 1fr auto; }
  .version-row span { grid-column: 1 / -1; }
}
