:root {
  color-scheme: light;
  --ink: #211c24;
  --muted: #817782;
  --line: #e8e1ea;
  --paper: #fbf7fb;
  --panel: #ffffff;
  --plum: #5d3b68;
  --rose: #f26d8f;
  --mint: #48b8a6;
  --lemon: #d7ff6a;
  --sky: #8ec7ff;
  --shadow: 0 18px 42px rgba(48, 30, 55, 0.12);
  --target-y: 58%;
}

* {
  box-sizing: border-box;
}

html,
body {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #211c24;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  width: min(100vw, 480px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(242, 109, 143, 0.18), transparent 34%),
    linear-gradient(180deg, #fff9fc 0%, #f2edf5 100%);
}

.screen {
  display: none;
  min-height: 100vh;
  padding: max(18px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
}

.screen.is-active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-top,
.section-line,
.sheet-head,
.result-head,
.editor-head,
.slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.caption {
  display: block;
  margin-bottom: 4px;
  color: var(--plum);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

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

h1 {
  margin-bottom: 0;
  font-size: 32px;
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.18;
}

.privacy-button,
.link-button,
.mode-pill,
.chip,
.sheet-preset,
.pref-row,
.edit-preset,
.tool-tab,
.toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
}

.privacy-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.director-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 14px;
  min-height: 218px;
  border-radius: 8px;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(93, 59, 104, 0.96), rgba(242, 109, 143, 0.82)),
    #5d3b68;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-orbit {
  position: absolute;
  inset: 0;
  opacity: 0.32;
}

.hero-orbit span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.hero-orbit span:nth-child(1) {
  width: 220px;
  height: 220px;
  right: -80px;
  top: -70px;
}

.hero-orbit span:nth-child(2) {
  width: 160px;
  height: 160px;
  left: -70px;
  bottom: -60px;
}

.hero-orbit span:nth-child(3) {
  width: 94px;
  height: 94px;
  right: 116px;
  bottom: 28px;
}

.director-copy,
.mini-viewfinder,
.director-hint {
  position: relative;
  z-index: 1;
}

.director-copy {
  align-self: center;
  display: grid;
  gap: 9px;
}

.director-copy .caption {
  color: rgba(255, 255, 255, 0.74);
}

.director-copy h2 {
  font-size: 28px;
}

.director-copy p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.mini-viewfinder {
  position: relative;
  align-self: center;
  height: 154px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 32%, rgba(255,255,255,0.28) 33%, transparent 34%, transparent 65%, rgba(255,255,255,0.28) 66%, transparent 67%),
    linear-gradient(0deg, transparent 32%, rgba(255,255,255,0.28) 33%, transparent 34%, transparent 65%, rgba(255,255,255,0.28) 66%, transparent 67%),
    rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.preview-person {
  position: absolute;
  top: var(--preview-top, 11%);
  left: var(--preview-left, 20%);
  width: var(--preview-width, 60%);
  height: var(--preview-height, 77%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px 999px 20px 20px;
}

.preview-person span {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 7%;
  border-top: 2px dashed rgba(255, 255, 255, 0.8);
}

.director-hint {
  grid-column: 1 / -1;
  margin: 0;
  border-radius: 8px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  line-height: 1.35;
}

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

.flow-card {
  display: grid;
  gap: 7px;
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
  box-shadow: 0 10px 24px rgba(48, 30, 55, 0.07);
}

.flow-card.primary-flow {
  background: #211c24;
  color: #fff;
}

.flow-card i {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), var(--lemon));
}

.flow-card strong {
  font-size: 17px;
}

.flow-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.flow-card.primary-flow span {
  color: rgba(255, 255, 255, 0.72);
}

.mode-strip,
.style-rail,
.chips,
.edit-preset-rail,
.tool-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mode-strip::-webkit-scrollbar,
.style-rail::-webkit-scrollbar,
.chips::-webkit-scrollbar,
.edit-preset-rail::-webkit-scrollbar,
.tool-tabs::-webkit-scrollbar {
  display: none;
}

.mode-pill {
  flex: 1 0 72px;
  min-height: 40px;
  font-weight: 900;
}

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

.scene-rail-wrap {
  display: grid;
  gap: 10px;
}

.section-line h2 {
  font-size: 17px;
}

.link-button {
  min-height: 32px;
  padding: 0 12px;
  color: var(--plum);
  font-size: 12px;
  font-weight: 900;
}

.style-chip {
  flex: 0 0 112px;
  display: grid;
  gap: 8px;
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #fff;
  text-align: left;
}

.style-chip.is-active,
.sheet-preset.is-active {
  border-color: rgba(242, 109, 143, 0.75);
  box-shadow: 0 0 0 2px rgba(242, 109, 143, 0.13);
}

.preset-art {
  display: block;
  width: 100%;
  height: 54px;
  border-radius: 8px;
}

.style-chip span {
  font-size: 13px;
  font-weight: 900;
}

.art-coral { background: linear-gradient(135deg, #ffd8e2, #ffc59a); }
.art-mint { background: linear-gradient(135deg, #d8f7ef, #ffdce8); }
.art-cream { background: linear-gradient(135deg, #fff0cc, #e3d9ff); }
.art-pink { background: linear-gradient(135deg, #ffe0ec, #f7f1ff); }
.art-sky { background: linear-gradient(135deg, #d8f7ef, #dce9ff); }
.art-night { background: linear-gradient(135deg, #2d2435, #8d7cf6); }

.start-panel {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.start-camera,
.import-photo {
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.start-camera {
  background: linear-gradient(135deg, var(--ink), var(--plum));
  color: #fff;
  box-shadow: 0 16px 36px rgba(33, 28, 36, 0.2);
}

.import-photo {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  background: rgba(20, 16, 20, 0.28);
}

.sheet-scrim.is-open {
  display: block;
}

.bottom-sheet {
  position: fixed;
  z-index: 21;
  left: 50%;
  bottom: 0;
  width: min(100vw, 480px);
  max-height: 78vh;
  padding: 8px 16px max(18px, env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -18px 40px rgba(38, 28, 36, 0.18);
  transform: translate(-50%, 105%);
  transition: transform 0.22s ease;
}

.bottom-sheet.is-open {
  transform: translate(-50%, 0);
}

.sheet-handle {
  width: 42px;
  height: 5px;
  margin: 2px auto 12px;
  border-radius: 999px;
  background: #ddd3da;
}

.round-action {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.sheet-body {
  display: grid;
  gap: 12px;
  max-height: calc(78vh - 84px);
  overflow-y: auto;
  padding-bottom: 4px;
}

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

.sheet-preset {
  display: grid;
  gap: 8px;
  min-height: 132px;
  border-radius: 8px;
  padding: 10px;
  text-align: left;
}

.sheet-preset strong {
  font-size: 15px;
}

.sheet-preset span {
  color: var(--muted);
  font-size: 12px;
}

.pref-list,
.script-list {
  display: grid;
  gap: 10px;
}

.pref-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  border-radius: 8px;
  padding: 12px;
  text-align: left;
}

.pref-row > span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ddd3da;
}

.pref-row.is-active > span {
  border-color: var(--rose);
  background: var(--rose);
  box-shadow: inset 0 0 0 4px #fff;
}

.pref-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

textarea {
  width: 100%;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  color: var(--ink);
  line-height: 1.5;
  outline: none;
}

textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(242, 109, 143, 0.12);
}

.chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 900;
}

.director-preview {
  display: grid;
  gap: 10px;
  border-radius: 8px;
  padding: 12px;
  background: #f7f1f8;
}

.director-preview div {
  display: grid;
  gap: 4px;
}

.director-preview strong {
  color: var(--plum);
  font-size: 12px;
}

.director-preview p {
  margin-bottom: 0;
  color: #4f4652;
  font-size: 13px;
  line-height: 1.45;
}

.script-list article {
  border-radius: 8px;
  padding: 14px;
  background: #fff7f2;
}

.script-list article:nth-child(2) { background: #effaf8; }
.script-list article:nth-child(3) { background: #f4f1ff; }
.script-list article:nth-child(4) { background: #fff2f6; }

.script-list span {
  display: block;
  margin-bottom: 7px;
  color: var(--plum);
  font-size: 12px;
  font-weight: 900;
}

.script-list p {
  margin-bottom: 0;
  color: #5c5057;
  line-height: 1.45;
}

.camera-screen {
  padding: 0;
  background: #151217;
  color: #fff;
}

.camera-stage {
  position: relative;
  min-height: calc(100vh - 128px);
  flex: 1;
  overflow: hidden;
  background: #080708;
}

video {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 128px);
  object-fit: cover;
}

#analysisCanvas {
  display: none;
}

.camera-top-hud {
  position: absolute;
  z-index: 4;
  top: max(14px, env(safe-area-inset-top));
  left: 14px;
  right: 14px;
  display: grid;
  grid-template-columns: 48px 1fr 118px;
  gap: 10px;
  align-items: center;
}

.hud-icon {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 38px;
  line-height: 1;
}

.hud-title {
  display: grid;
  justify-items: center;
  gap: 2px;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hud-title strong {
  font-size: 16px;
}

.hud-title span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.hud-tools {
  display: flex;
  justify-content: end;
  gap: 4px;
  border-radius: 999px;
  padding: 7px;
  background: rgba(0, 0, 0, 0.42);
}

.hud-tools button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.hud-tools button.is-off {
  color: rgba(255, 255, 255, 0.42);
  background: transparent;
}

.overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-line,
.person-guide,
.subject-box,
.target-dot {
  position: absolute;
}

.grid-line {
  background: rgba(255, 255, 255, 0.22);
}

.grid-line.vertical {
  top: 0;
  bottom: 0;
  width: 1px;
}

.grid-line.horizontal {
  left: 0;
  right: 0;
  height: 1px;
}

.vertical.one { left: 33.33%; }
.vertical.two { left: 66.66%; }
.horizontal.one { top: 33.33%; }
.horizontal.two { top: 66.66%; }

.person-guide {
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px 999px 24px 24px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.08);
}

.head-line,
.foot-line {
  position: absolute;
  left: 8%;
  width: 84%;
  border-top: 2px dashed rgba(255, 255, 255, 0.75);
}

.head-line { top: 10%; }
.foot-line { bottom: 6%; }

.target-dot {
  left: calc(50% - 5px);
  top: calc(var(--target-y) - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lemon);
  box-shadow: 0 0 0 8px rgba(215, 255, 106, 0.18);
}

.subject-box {
  z-index: 2;
  display: none;
  border: 2px solid rgba(215, 255, 106, 0.88);
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.34), 0 0 20px rgba(215, 255, 106, 0.22);
}

.subject-box::after {
  content: "主体";
  position: absolute;
  left: 10px;
  top: -27px;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(215, 255, 106, 0.92);
  color: #211a20;
  font-size: 12px;
  font-weight: 900;
}

.subject-box.is-visible {
  display: block;
}

.overlay.hide-grid .grid-line,
.overlay.hide-guide .person-guide,
.overlay.hide-guide .subject-box,
.overlay.hide-guide .target-dot {
  display: none;
}

.coach-panel {
  position: absolute;
  z-index: 4;
  left: 14px;
  right: 14px;
  bottom: 106px;
  display: grid;
  gap: 8px;
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(14px);
}

.coach-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
}

#cameraChecklist {
  display: grid;
  gap: 7px;
}

.check-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 7px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.3;
}

.check-item span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 900;
}

.check-item.is-hot span {
  background: var(--rose);
}

.hint-bubble {
  position: absolute;
  z-index: 5;
  left: 14px;
  right: 14px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  align-items: center;
  border-radius: 8px;
  padding: 13px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
}

.hint-bubble span {
  color: var(--lemon);
  font-size: 12px;
  font-weight: 900;
}

.hint-bubble strong {
  line-height: 1.35;
}

.camera-controls {
  display: grid;
  grid-template-columns: 1fr 84px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 128px;
  padding: 16px 24px max(18px, env(safe-area-inset-bottom));
  background: #151217;
}

.shutter {
  width: 78px;
  height: 78px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--lemon);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.48);
}

.gallery-button {
  min-height: 64px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.result-screen.is-active {
  gap: 0;
  padding: 0;
  background: #080708;
  color: #fff;
}

.editor-top {
  display: grid;
  grid-template-columns: 48px 48px 1fr 92px;
  gap: 10px;
  align-items: center;
  min-height: 88px;
  padding: max(16px, env(safe-area-inset-top)) 18px 12px;
  background: #151217;
}

.editor-top .caption,
.editor-top h1 {
  display: none;
}

.editor-close,
.help-dot {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 40px;
}

.help-dot {
  border: 2px solid #fff;
  font-size: 24px;
  font-weight: 900;
}

.export-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--lemon);
  color: #111;
  font-size: 18px;
  font-weight: 900;
}

.compare-card {
  position: relative;
  display: grid;
  gap: 10px;
  background: #080708;
}

#resultCanvas {
  width: 100%;
  max-height: 52vh;
  border-radius: 0;
  background: #111;
  object-fit: contain;
}

.edit-chip-row {
  position: absolute;
  z-index: 3;
  left: 18px;
  top: 12px;
  display: flex;
  gap: 10px;
}

.edit-chip-row button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-weight: 900;
}

#smartEnhanceBtn {
  background: var(--lemon);
  color: #111;
}

.edit-preset-rail,
.tool-tabs,
.portrait-tools {
  padding: 0 16px;
}

.edit-preset {
  display: grid;
  align-content: end;
  min-width: 96px;
  height: 108px;
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(180deg, transparent 0 54%, rgba(0, 0, 0, 0.42) 55%),
    linear-gradient(135deg, #a5c6d8, #f0d5d5);
  color: #fff;
  font-weight: 900;
}

.edit-preset.is-active {
  border-color: var(--lemon);
  box-shadow: inset 0 -5px 0 var(--lemon);
}

.editor-panel {
  display: grid;
  gap: 13px;
  padding: 14px 16px;
  background: #080708;
}

.ai-diagnosis {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(215, 255, 106, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(215, 255, 106, 0.1), rgba(255, 255, 255, 0.04));
}

.ai-diagnosis .caption {
  color: var(--lemon);
}

.ai-diagnosis h2 {
  color: #fff;
}

.ai-diagnosis p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.45;
}

.tool-tab,
.portrait-tool {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 64px;
  min-height: 66px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 900;
}

.tool-tab.is-active,
.portrait-tool.is-active {
  color: var(--lemon);
  background: rgba(215, 255, 106, 0.08);
}

.portrait-tools {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.portrait-tools::-webkit-scrollbar {
  display: none;
}

.portrait-tool {
  border: 0;
}

.tool-icon,
.portrait-tool i {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd7e3, #ffb078);
}

.portrait-tool:nth-child(2) i {
  border-radius: 42% 42% 55% 55%;
  background: linear-gradient(135deg, #f9d5e1, #fff);
}

.portrait-tool:nth-child(3) i {
  transform: scale(0.82);
  background: linear-gradient(135deg, #d8f7ef, #fff);
}

.portrait-tool:nth-child(4) i {
  background: radial-gradient(circle, #fff 0 28%, #8ec7ff 30% 100%);
}

.portrait-tool:nth-child(5) i {
  border-radius: 8px;
  background: #fff;
}

.portrait-tool:nth-child(6) i {
  background: linear-gradient(135deg, #f26d8f, #ffb6c8);
}

.ti-contrast {
  background: linear-gradient(90deg, #211a20 0 50%, #fff 50% 100%);
  border: 1px solid #fff;
}

.ti-drop {
  border-radius: 50% 50% 50% 10%;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--mint), var(--sky));
}

.ti-warm {
  background: linear-gradient(135deg, #ffb078, var(--rose));
}

.ti-focus {
  background: radial-gradient(circle, #fff 0 34%, #211a20 36% 100%);
}

.slider-row span,
.slider-row strong {
  min-width: 42px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.slider-row strong {
  text-align: right;
  color: var(--lemon);
}

input[type="range"] {
  flex: 1;
  accent-color: var(--lemon);
}

.edit-tabs {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  gap: 12px;
  padding: 16px 10px max(16px, env(safe-area-inset-bottom));
  background: #080708;
}

.edit-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  font-weight: 900;
}

.edit-tabs button.is-active {
  color: var(--lemon);
}

.edit-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--lemon);
  transform: translateX(-50%);
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px 12px;
  background: #080708;
}

.score-grid article,
.advice-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #151217;
}

.score-grid article {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 12px 8px;
}

.score-grid span {
  color: var(--lemon);
  font-size: 22px;
  font-weight: 950;
}

.score-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.advice-card {
  margin: 0 16px 12px;
  padding: 14px;
}

.advice-card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
}

.advice-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 370px) {
  .director-hero,
  .flow-actions,
  .sheet-grid {
    grid-template-columns: 1fr;
  }
}
