:root {
  --ink: #142033;
  --muted: #66748a;
  --line: #dce5ef;
  --paper: #ffffff;
  --surface: #f4f8fc;
  --blue: #0c92d4;
  --blue-deep: #07669b;
  --blue-soft: #e8f6fd;
  --yellow: #ffc21a;
  --green: #16875f;
  --red: #bf2d28;
  --charcoal: #1d2a35;
  --shadow: 0 18px 50px rgba(34, 58, 79, 0.12);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--surface); }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: 0; }

.eyebrow {
  margin-bottom: 8px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }

.login-body { background: var(--charcoal); }
.login-layout {
  display: grid;
  grid-template-columns: minmax(380px, 1.1fr) minmax(420px, 0.9fr);
  min-height: 100vh;
}
.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 7vw, 90px);
  background: #edf7fc;
  border-top: 12px solid var(--yellow);
}
.login-brand img {
  width: min(430px, 75%);
  mix-blend-mode: multiply;
}
.login-brand h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.2vw, 74px);
  line-height: 1.08;
}
.login-brand p:last-child { max-width: 620px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.login-panel { display: grid; place-items: center; padding: 48px; background: var(--charcoal); }
.login-form-wrap { width: min(420px, 100%); color: white; }
.login-form-wrap h2 { margin-bottom: 10px; font-size: 34px; }
.login-form-wrap .muted { margin-bottom: 34px; color: #a8b5c1; line-height: 1.7; }

.form-stack { display: grid; gap: 18px; }
label { display: grid; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
.login-form-wrap label { color: #d8e1e8; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfdbe7;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
textarea { resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(12, 146, 212, 0.13); }
.form-error { margin: 0; color: #ffb2ac; font-weight: 700; }

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 15px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: 0.58; transform: none; }
.button-primary { color: white; background: var(--blue); box-shadow: 0 8px 18px rgba(12, 146, 212, 0.2); }
.button-primary:hover { background: var(--blue-deep); }
.button-quiet { border-color: var(--line); color: var(--blue-deep); background: var(--paper); box-shadow: none; }
.button-full { width: 100%; min-height: 50px; }
.button-large { min-height: 50px; padding-inline: 22px; }
.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  font-size: 20px;
}

.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 22px 16px;
  color: white;
  background: var(--charcoal);
  border-right: 1px solid #263b49;
  z-index: 20;
}
.brand-lockup {
  display: grid;
  gap: 10px;
  min-height: 92px;
  align-content: center;
  margin: 0 4px 24px;
  padding: 10px 12px;
  background: white;
  border-radius: 6px;
  overflow: hidden;
}
.brand-lockup img { width: 184px; height: 48px; object-fit: contain; object-position: left center; }
.brand-lockup span { color: var(--ink); font-size: 12px; font-weight: 800; }
.side-nav { display: grid; gap: 5px; }
.nav-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: #c4d0d8;
  background: transparent;
  text-align: left;
  font-weight: 700;
}
.nav-item:hover { color: white; background: #263743; }
.nav-item.active { color: #102636; background: var(--yellow); }
.nav-mark { font-size: 11px; font-variant-numeric: tabular-nums; }
.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 15px 12px 4px;
  color: #8ea2b0;
  font-size: 12px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #39c68b; box-shadow: 0 0 0 4px rgba(57, 198, 139, 0.12); }

.workspace { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 86px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(244, 248, 252, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  z-index: 15;
}
.topbar h1 { margin: 0; font-size: 23px; }
.topbar .eyebrow { margin-bottom: 4px; }
.menu-toggle { display: none; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-copy { display: grid; margin-right: 8px; text-align: right; }
.user-copy strong { font-size: 14px; }
.user-copy span { color: var(--muted); font-size: 12px; }

.view { display: none; padding: clamp(24px, 4vw, 54px); animation: view-in 260ms ease both; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.summary-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: end;
  gap: 40px;
  margin-bottom: 30px;
  padding: 34px;
  color: white;
  background: var(--blue-deep);
  border-left: 8px solid var(--yellow);
}
.summary-band .eyebrow { color: #a9ddf5; }
.summary-band h2 { max-width: 780px; margin-bottom: 12px; font-size: clamp(28px, 3.4vw, 48px); }
.summary-band p:last-child { margin-bottom: 0; color: #cfe6f2; line-height: 1.8; }
.summary-stat { display: grid; padding-left: 28px; border-left: 1px solid rgba(255,255,255,0.28); }
.summary-stat strong { font-size: 46px; }
.summary-stat span { color: #cfe6f2; }

.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.module-card {
  position: relative;
  min-height: 230px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.module-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--yellow); }
.module-card.module-menu::before { background: var(--blue); }
.module-card:hover { transform: translateY(-3px); border-color: #b9d7e8; box-shadow: var(--shadow); }
.module-index { color: var(--blue-deep); font-size: 12px; font-weight: 900; }
.module-card h3 { margin: 30px 0 10px; font-size: 24px; }
.module-card p { max-width: 520px; min-height: 52px; color: var(--muted); line-height: 1.75; }
.text-action { display: flex; align-items: center; gap: 8px; border: 0; padding: 8px 0; color: var(--blue-deep); background: transparent; font-weight: 900; }
.text-action span { font-size: 20px; transition: transform 160ms ease; }
.text-action:hover span { transform: translateX(4px); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head h2 { margin-bottom: 8px; font-size: 30px; }
.section-head h3 { margin-bottom: 5px; }
.section-head p { margin-bottom: 0; color: var(--muted); line-height: 1.7; }
.section-head.compact { align-items: center; margin-bottom: 18px; }
.filter-group, .tool-tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); overflow: hidden; }
.filter-button, .tool-tab { min-height: 39px; border: 0; border-right: 1px solid var(--line); padding: 8px 14px; color: var(--muted); background: transparent; font-weight: 800; }
.filter-button:last-child, .tool-tab:last-child { border-right: 0; }
.filter-button.active, .tool-tab.active { color: white; background: var(--blue-deep); }

.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.course-card {
  display: grid;
  min-height: 190px;
  align-content: space-between;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.course-card h3 { margin: 18px 0 9px; font-size: 18px; line-height: 1.45; }
.course-card p { color: var(--muted); line-height: 1.6; }
.course-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.course-state { color: var(--muted); font-size: 12px; font-weight: 800; }
.course-state.ready { color: var(--green); }
.course-play { border: 0; padding: 6px 0; color: var(--blue-deep); background: transparent; font-weight: 900; }
.course-play:disabled { color: #a9b4be; cursor: not-allowed; }
.admin-upload {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 30px;
  margin-top: 28px;
  padding: 26px;
  background: #fff9e6;
  border: 1px solid #efda9b;
}
.admin-upload h3 { margin-bottom: 8px; }
.admin-upload p { margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.upload-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.3fr); gap: 10px; align-items: center; }

.menu-launch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  padding: 32px;
  color: white;
  background: var(--charcoal);
  border-bottom: 5px solid var(--yellow);
}
.menu-launch h2 { margin: 14px 0 10px; font-size: clamp(26px, 3vw, 40px); }
.menu-launch p { max-width: 840px; margin-bottom: 0; color: #b9c7d0; line-height: 1.75; }
.menu-launch .module-index { color: #8bd2f2; }
.table-section { margin-top: 28px; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 14px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); background: #f6f9fc; font-size: 12px; }
td { font-size: 14px; }
.empty-cell { height: 90px; color: var(--muted); text-align: center; }
.download-links { display: flex; flex-wrap: wrap; gap: 8px; }
.download-links a { color: var(--blue-deep); font-weight: 800; }

.tool-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr); gap: 20px; align-items: start; }
.tool-form-panel, .result-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.tool-form-panel { padding: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; padding-top: 4px; }
.result-panel { position: sticky; top: 110px; min-height: 620px; overflow: hidden; }
.result-head { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 12px 20px; color: white; background: var(--blue-deep); font-weight: 900; }
.result-content { max-height: calc(100vh - 200px); padding: 24px; overflow: auto; line-height: 1.78; }
.result-placeholder { color: var(--muted); }
.markdown-output h1 { font-size: 26px; }
.markdown-output h2 { margin: 30px 0 12px; padding-bottom: 8px; color: var(--blue-deep); border-bottom: 1px solid var(--line); font-size: 21px; }
.markdown-output h3 { margin: 24px 0 8px; font-size: 17px; }
.markdown-output ul, .markdown-output ol { padding-left: 22px; }
.markdown-output blockquote { margin: 20px 0; padding: 14px 16px; color: #314652; background: #eef8fc; border-left: 4px solid var(--blue); }
.markdown-output strong { color: var(--charcoal); }
.brand-tool-form { display: none; }
.brand-tool-form.active { display: grid; }

.prototype-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid #d7c16a;
  border-radius: 999px;
  padding: 6px 12px;
  color: #6d5710;
  background: #fff6c9;
  font-size: 12px;
  font-weight: 900;
}
.poster-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.poster-step {
  display: grid;
  min-height: 98px;
  align-content: center;
  gap: 4px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.poster-step:last-child { border-right: 0; }
.poster-step span { color: var(--blue-deep); font-size: 11px; font-weight: 900; }
.poster-step strong { font-size: 15px; }
.poster-step small { color: var(--muted); }
.poster-step.active { background: var(--blue-soft); box-shadow: inset 0 -4px 0 var(--blue); }
.poster-workbench {
  display: grid;
  grid-template-columns: minmax(440px, 0.9fr) minmax(380px, 1.1fr);
  gap: 20px;
  align-items: start;
}
.poster-controls, .poster-preview-panel {
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.upload-dropzone {
  display: grid;
  min-height: 132px;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px dashed #9fc6dd;
  border-radius: 7px;
  color: var(--blue-deep);
  background: #f3fafd;
  cursor: pointer;
}
.upload-dropzone:hover { border-color: var(--blue); background: var(--blue-soft); }
.upload-dropzone small { color: var(--muted); font-weight: 500; }
.upload-symbol {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 25px;
  font-weight: 400;
}
.style-fieldset { margin: 0; border: 0; padding: 0; }
.style-fieldset legend { margin-bottom: 8px; color: var(--ink); font-size: 14px; font-weight: 800; }
.poster-style-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.poster-style-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--paper);
  font-weight: 800;
}
.poster-style-button.active { color: white; background: var(--charcoal); border-color: var(--charcoal); }
.poster-preview-panel { position: sticky; top: 110px; }
.poster-stage {
  position: relative;
  width: min(100%, 620px);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  color: white;
  background: #17242e;
  border: 1px solid #263a48;
  overflow: hidden;
}
.poster-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: var(--yellow);
}
.poster-stage-brand { position: absolute; top: 22px; left: 24px; z-index: 2; font-size: 13px; font-weight: 900; }
.poster-image-zone { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.poster-image-zone::after { content: ""; position: absolute; inset: 48% 0 0; background: rgba(19, 31, 40, 0.76); }
.poster-image-zone img { width: 100%; height: 100%; object-fit: cover; }
#poster-image-placeholder { display: grid; gap: 7px; place-items: center; color: #95a7b3; }
#poster-image-placeholder strong { color: white; font-size: 34px; }
.poster-stage-copy { position: absolute; left: 28px; right: 28px; bottom: 70px; z-index: 3; }
.poster-stage-copy span { display: inline-block; margin-bottom: 12px; color: var(--yellow); font-size: 13px; font-weight: 900; }
.poster-stage-copy h3 { margin-bottom: 10px; font-size: clamp(30px, 4vw, 52px); line-height: 1.08; }
.poster-stage-copy p { max-width: 75%; margin-bottom: 0; color: #d6e0e6; line-height: 1.55; }
.poster-stage-price { position: absolute; right: 26px; bottom: 70px; z-index: 3; color: var(--yellow); font-size: 24px; }
.poster-stage.poster-style-fresh { color: var(--ink); background: #eff8f2; border-color: #bcdac7; }
.poster-stage.poster-style-fresh::after { background: var(--green); }
.poster-stage.poster-style-fresh .poster-image-zone::after { background: rgba(239, 248, 242, 0.88); }
.poster-stage.poster-style-fresh .poster-stage-copy span,
.poster-stage.poster-style-fresh .poster-stage-price { color: var(--green); }
.poster-stage.poster-style-fresh .poster-stage-copy p { color: #485c51; }
.poster-stage.poster-style-promotion { background: #b32620; border-color: #8d1f1a; }
.poster-stage.poster-style-promotion::after { background: var(--yellow); }
.poster-stage.poster-style-promotion .poster-image-zone::after { background: rgba(145, 27, 22, 0.82); }
.prototype-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.service-scenes {
  display: grid;
  grid-template-columns: repeat(7, minmax(80px, 1fr));
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  overflow: hidden;
}
.service-scene {
  min-height: 48px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}
.service-scene:last-child { border-right: 0; }
.service-scene:hover { color: var(--blue-deep); background: var(--blue-soft); }
.service-scene.active { color: white; background: var(--blue-deep); }
.service-workbench { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr); gap: 20px; align-items: start; }
.service-form-panel, .service-result-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.service-form-panel { padding: 27px; }
.service-result-panel { position: sticky; top: 110px; }
.service-result-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 16px 22px; color: white; background: var(--charcoal); }
.service-result-head span { font-size: 24px; font-weight: 900; }
.service-result-head strong { color: var(--yellow); font-size: 13px; }
.service-result-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-result-block { min-height: 150px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-result-block:nth-child(even) { border-right: 0; }
.service-result-block:nth-last-child(-n+2) { border-bottom: 0; }
.service-result-block small { display: block; margin-bottom: 13px; color: var(--blue-deep); font-weight: 900; }
.service-result-block p { margin-bottom: 0; color: #405064; line-height: 1.75; }
.service-result-block.primary { background: #eef8fc; }
.service-result-block.warning { background: #fff7f3; }
.service-result-block.warning small { color: var(--red); }
.service-result-panel > .prototype-note { padding: 0 22px 18px; }

.account-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 22px; align-items: start; }
.account-create { padding: 26px; color: white; background: var(--charcoal); border-bottom: 5px solid var(--yellow); }
.account-create h2 { margin-bottom: 24px; }
.account-create label { color: #d7e1e8; }
.account-table { margin-top: 0; }
.status-label { font-weight: 800; }
.status-label.active { color: var(--green); }
.status-label.inactive { color: var(--red); }

.toast {
  position: fixed;
  top: 100px;
  right: 28px;
  max-width: 440px;
  padding: 13px 17px;
  color: white;
  background: var(--green);
  border-radius: 6px;
  box-shadow: var(--shadow);
  z-index: 100;
}
.toast.error { background: var(--red); }

.modal { max-width: none; max-height: none; border: 0; padding: 0; background: transparent; }
.modal::backdrop { background: rgba(13, 27, 36, 0.72); backdrop-filter: blur(4px); }
.modal-card { display: grid; gap: 18px; width: min(460px, calc(100vw - 32px)); padding: 24px; background: var(--paper); border-radius: 8px; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-head h3 { margin-bottom: 0; font-size: 23px; }
.video-modal .modal-card { width: min(980px, calc(100vw - 32px)); }
.video-modal video { width: 100%; max-height: 70vh; background: black; }

@media (max-width: 1120px) {
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-layout { grid-template-columns: 1fr; }
  .result-panel { position: static; min-height: 380px; }
  .result-content { max-height: none; }
  .upload-form { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .poster-workbench, .service-workbench { grid-template-columns: 1fr; }
  .poster-preview-panel, .service-result-panel { position: static; }
}

@media (max-width: 820px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-brand { min-height: 46vh; padding: 34px 26px; }
  .login-brand img { width: 300px; }
  .login-brand h1 { font-size: 40px; }
  .login-panel { padding: 42px 24px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; width: 248px; transform: translateX(-100%); transition: transform 200ms ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .topbar { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding-inline: 18px; }
  .menu-toggle { display: grid; }
  .user-copy, .user-menu .button-quiet { display: none; }
  .view { padding: 24px 18px; }
  .summary-band { grid-template-columns: 1fr; padding: 26px; }
  .summary-stat { padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,0.25); border-left: 0; }
  .module-grid, .course-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .menu-launch { grid-template-columns: 1fr; }
  .admin-upload { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .filter-group, .tool-tabs { width: 100%; }
  .filter-button, .tool-tab { flex: 1; padding-inline: 8px; }
  .poster-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poster-step:nth-child(2) { border-right: 0; }
  .poster-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .poster-workbench { grid-template-columns: minmax(0, 1fr); }
  .poster-controls, .poster-preview-panel { padding: 18px; }
  .service-scenes { grid-template-columns: repeat(4, minmax(70px, 1fr)); }
  .service-scene { border-bottom: 1px solid var(--line); }
  .service-scene:nth-child(4) { border-right: 0; }
  .service-scene:nth-child(n+5) { border-bottom: 0; }
  .service-result-body { grid-template-columns: 1fr; }
  .service-result-block, .service-result-block:nth-child(even), .service-result-block:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .service-result-block:last-child { border-bottom: 0; }
}

@media (max-width: 480px) {
  .login-brand h1 { font-size: 34px; }
  .topbar h1 { font-size: 18px; }
  .summary-band h2 { font-size: 28px; }
  .module-card { min-height: 210px; padding: 23px; }
  .tool-form-panel { padding: 20px; }
  .user-menu { gap: 5px; }
}
