@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  --bg: #e2e2e2;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.97);
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.26);
  --text: #111111;
  --muted: #5f5f5f;
  --subtle: #8a8a8a;
  --shadow: 0 18px 42px rgba(17, 17, 17, 0.06);
}

html {
  scroll-behavior: smooth;
}

body.custom-page {
  position: relative;
  overflow-x: hidden;
}

body.custom-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.075) 48%,
      rgba(3, 9, 18, 0) 100%
    );
  pointer-events: none;
  z-index: 0;
}

body.custom-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(72, 105, 235, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 105, 235, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: center top;
  pointer-events: none;
  z-index: 0;
}

.site-header {
  position: fixed;
  top: 0;
  height: 60px;
  z-index: 1000;
  overflow: visible;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header--desktop {
  left: 50%;
  width: min(1920px, 100%);
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.43) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.site-header--desktop.is-hidden {
  transform: translateX(-50%) translateY(-100%);
}

.site-header--mobile {
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.39) 0%, rgba(0, 0, 0, 0.16) 50%, transparent 100%);
}

.site-header--mobile.menu-open {
  background: #000000;
}

.site-nav {
  display: flex;
  align-items: center;
  height: 60px;
}

.site-header--desktop .site-nav {
  justify-content: flex-start;
  width: min(1600px, calc(100vw - 80px));
  margin: 0 auto;
  padding: 0 40px;
  gap: 60px;
}

.site-header--mobile .site-nav {
  justify-content: space-between;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-logo-link {
  text-decoration: none;
}

.site-logo-link--desktop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.site-logo-text {
  font-family:
    "Pretendard Variable",
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
  font-size: 24px;
  color: white;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.site-logo-micron {
  font-weight: 600;
}

.site-logo-cube {
  font-weight: 400;
}

.site-logo-subtitle {
  font-family:
    "Pretendard Variable",
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1.5px;
}

.site-logo-link--desktop:hover .site-logo-text,
.site-logo-link--desktop:hover .site-logo-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.site-logo-link--mobile img {
  display: block;
  height: 40px;
  width: auto;
  filter: brightness(1);
}

.site-nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.site-header--mobile .site-nav-menu {
  margin-left: auto;
}

.site-nav-menu a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transform: translateY(-8px);
}

.site-nav-menu a:hover,
.site-nav-menu a.is-active {
  color: white;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3), 0 0 16px rgba(255, 255, 255, 0.15);
  transform: translateY(-6px);
}

.site-external-arrow {
  font-size: 0.75rem;
  margin-left: 2px;
  display: inline-block;
  vertical-align: top;
  opacity: 0.7;
}

.site-dropdown {
  position: relative;
}

.site-dropdown > a::after {
  content: "\25BE";
  margin-left: 8px;
  font-size: 12px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-8px);
}

.site-dropdown:hover > a::after,
.site-dropdown:focus-within > a::after {
  opacity: 1;
  transform: translateY(-6px);
}

.site-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 8px 0;
}

.site-dropdown:hover .site-dropdown-content,
.site-dropdown:focus-within .site-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 14.4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.site-mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
  z-index: 1001;
  margin-left: auto;
}

.site-mobile-menu-toggle:hover {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.site-header--mobile {
  display: none;
}

@media (max-width: 1260px) {
  body.custom-page::before {
    height: 68px;
  }

  .app-shell {
    width: min(100vw - 16px, 1580px);
    padding-top: 70px;
  }

  .site-header--desktop {
    display: none;
  }

  .site-header--mobile {
    display: block;
  }

  .site-header--mobile.is-hidden {
    transform: translateY(-100%);
  }

  .site-logo-link--mobile img {
    height: 32px;
  }

  .site-mobile-menu-toggle {
    display: block;
  }

  .site-nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .site-nav-menu.is-open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav-menu a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    transform: none;
    color: rgba(255, 255, 255, 0.9);
  }

  .site-nav-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: none;
  }

  .site-nav-menu a[aria-current="page"],
  .site-nav-menu a.is-active {
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    padding-left: 1.35rem;
    text-shadow: none;
    transform: none;
  }

  .site-nav-menu a[aria-current="page"]::before,
  .site-nav-menu a.is-active::before {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 50%;
    width: 3px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    transform: translateY(-50%);
  }

  .site-dropdown {
    position: static;
  }

  .site-dropdown-content {
    position: static;
    min-width: 0;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 8px;
  }

  .site-dropdown.is-active .site-dropdown-content {
    display: block;
  }

  .site-dropdown > a::after {
    display: none;
  }

  .site-dropdown-content a {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    text-shadow: none;
  }

  .site-dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Pretendard", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  width: min(1760px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 76px 0 0;
  position: relative;
  z-index: 1;
}

.micron-bold {
  font-weight: 700;
}

.custom-footer {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  background: #000000;
  color: #ffffff;
}

.custom-footer--desktop {
  display: block;
  width: 100%;
  max-width: 1920px;
  height: 150px;
}

.custom-footer--desktop .footer-content {
  width: 100%;
  height: 100%;
  position: relative;
}

.custom-footer--desktop .footer-logo {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 140px;
  height: 69.38px;
  margin-left: -314px;
}

.custom-footer--desktop .footer-company-name {
  position: absolute;
  left: 50%;
  top: 8px;
  margin-left: -159px;
  font-family: "Pretendard", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.custom-footer--desktop .footer-registration {
  position: absolute;
  left: 50%;
  top: 35px;
  margin-left: -159px;
  font-family: "Pretendard", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.custom-footer--desktop .footer-registration-label,
.custom-footer--mobile .footer-registration-label {
  font-weight: 700;
}

.custom-footer--desktop .footer-address-label {
  position: absolute;
  left: 50%;
  top: 55px;
  margin-left: -159px;
  font-family: "Pretendard", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.custom-footer--desktop .footer-address-content {
  position: absolute;
  left: 50%;
  top: 55px;
  margin-left: -96px;
  font-family: "Pretendard", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.custom-footer--desktop .footer-mail-label {
  position: absolute;
  left: 50%;
  top: 96px;
  margin-left: -131px;
  font-family: "Pretendard", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.custom-footer--desktop .footer-mail-content {
  position: absolute;
  left: 50%;
  top: 96px;
  margin-left: -96px;
  font-family: "Pretendard", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.custom-footer--desktop .footer-copyright {
  position: absolute;
  left: 50%;
  top: 120px;
  margin-left: -159px;
  font-family: "Pretendard", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
}

.custom-footer--mobile {
  display: none;
  width: 100%;
  max-width: 1920px;
  min-height: 150px;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.custom-footer--mobile .footer-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.custom-footer--mobile .footer-logo {
  width: 140px;
  height: auto;
  margin-bottom: 0.5rem;
}

.custom-footer--mobile .footer-company-name {
  font-family: "Pretendard", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.custom-footer--mobile .footer-registration {
  font-family: "Pretendard", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 1rem;
}

.custom-footer--mobile .footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.custom-footer--mobile .footer-address,
.custom-footer--mobile .footer-mail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.custom-footer--mobile .footer-address-label,
.custom-footer--mobile .footer-mail-label {
  font-family: "Pretendard", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin-right: 0.5rem;
}

.custom-footer--mobile .footer-address-content {
  font-family: "Pretendard", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-align: left;
}

.custom-footer--mobile .footer-mail-content {
  font-family: "Pretendard", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.custom-footer--mobile .footer-copyright {
  font-family: "Pretendard", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
}

@media (max-width: 1260px) {
  .custom-footer--desktop {
    display: none;
  }

  .custom-footer--mobile {
    display: block;
  }
}

@media (min-width: 741px) and (max-width: 1260px) {
  .custom-footer--desktop .footer-logo {
    left: 40px;
    margin-left: 0;
  }

  .custom-footer--desktop .footer-company-name,
  .custom-footer--desktop .footer-registration,
  .custom-footer--desktop .footer-address-label,
  .custom-footer--desktop .footer-address-content,
  .custom-footer--desktop .footer-mail-label,
  .custom-footer--desktop .footer-mail-content,
  .custom-footer--desktop .footer-copyright {
    left: 200px;
    margin-left: 0;
  }

  .custom-footer--desktop .footer-address-content,
  .custom-footer--desktop .footer-mail-content {
    left: 264px;
  }

  .custom-footer--desktop .footer-mail-label {
    left: 228px;
  }
}

@media (max-width: 767px) {
  .custom-footer--mobile {
    padding: 1.5rem 1rem;
    min-height: auto;
  }

  .custom-footer--mobile .footer-content {
    gap: 0.75rem;
  }

  .custom-footer--mobile .footer-logo {
    width: 120px;
  }

  .custom-footer--mobile .footer-company-name {
    font-size: 14px;
    margin-bottom: 0.5rem;
  }

  .custom-footer--mobile .footer-registration {
    font-size: 11px;
    margin-bottom: 0.75rem;
  }

  .custom-footer--mobile .footer-info {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .custom-footer--mobile .footer-address-label,
  .custom-footer--mobile .footer-address-content,
  .custom-footer--mobile .footer-mail-label,
  .custom-footer--mobile .footer-mail-content {
    font-size: 11px;
  }

  .custom-footer--mobile .footer-copyright {
    font-size: 12px;
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 24px 28px;
}

.hero-copy {
  min-width: 0;
  padding: 0;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 320px;
  height: 200px;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
}

.hero h1,
.section-head h2,
.preview-head h2,
.summary-head h2,
.preview-modal-head h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero h1 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  max-width: 1400px;
  word-break: keep-all;
  line-break: loose;
  text-wrap: balance;
}

.hero-text {
  max-width: 1180px;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-text p {
  margin: 0;
  word-break: keep-all;
  line-break: loose;
}

.hero-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-transform: none;
  font-size: clamp(0.98rem, 1.15vw, 1.2rem);
  letter-spacing: 0.06em;
  color: var(--text);
}

.hero-brand-strong {
  font-weight: 800;
  color: inherit;
}

.hero-brand-rest {
  font-weight: 650;
  color: inherit;
}

.hero-bullet {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
}

.hero-bullet-mark {
  display: block;
  line-height: 1.6;
  text-align: center;
}

.hero-bullet-copy {
  min-width: 0;
}

.hero-bullet-strong {
  color: #111111;
  font-weight: 700;
}

.hero-bullet-strong .hero-bullet-mark {
  color: #111111;
}

.hero-bullet-strong .hero-bullet-copy {
  color: #111111;
  font-weight: 700;
}

.workflow-panel {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.workflow-head {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.workflow-head > div:first-child {
  min-width: 0;
  flex: 0 1 auto;
}

.workflow-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  align-self: flex-end;
}

.workflow-head h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.04em;
  word-break: keep-all;
  line-break: loose;
  text-wrap: balance;
}

.workflow-toggle {
  display: none;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.workflow-toggle-arrow {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.workflow-panel:not(.is-collapsed) .workflow-toggle-arrow {
  transform: rotate(180deg);
}

.workflow-grid-mask {
  position: relative;
}

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

.workflow-card {
  position: relative;
  min-height: 210px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.workflow-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  right: -11px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  background: var(--bg);
  transform: rotate(45deg);
}

.workflow-step {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: #111111;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.workflow-points {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.workflow-points li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.workflow-link {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.workflow-link:hover {
  color: #000000;
}

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

.workflow-card p + p {
  margin-top: 8px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(360px, 470px) minmax(0, 1fr);
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.workflow-panel,
.preview-panel,
.section-card {
  scroll-margin-top: 84px;
}

.controls-panel,
.preview-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.section-card,
.preview-card,
.summary-card,
.preview-modal-dialog {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.section-head,
.preview-head,
.summary-head,
.preview-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.section-head--with-icon {
  justify-content: space-between;
  gap: 18px;
}

.section-head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.section-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96) 0%, rgba(249, 249, 245, 0.88) 62%, rgba(237, 237, 232, 0.82) 100%);
  box-shadow:
    0 16px 26px rgba(17, 17, 17, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.section-head-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section-head--stacked {
  justify-content: flex-start;
}

.section-head--stacked.section-head--with-icon {
  justify-content: space-between;
}

.section-head--stacked .section-kicker,
.section-head--stacked h2 {
  margin: 0;
}

.section-head--stacked .badge {
  min-height: 0;
  white-space: normal;
  line-height: 1.45;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: #f1f1ed;
  font-size: 12px;
  font-weight: 700;
}

.field-grid,
.bullet-grid {
  display: grid;
  gap: 14px;
}

.section-card > .control + .control,
.section-card > .control + .field-grid,
.section-card > .field-grid + .control,
.section-card > .bullet-grid + .control,
.section-card > .field-grid + .status-strip {
  margin-top: 16px;
}

.control {
  display: grid;
  gap: 8px;
}

.control-inline-note {
  margin-top: 6px;
}

.aspect-warning-box {
  margin-top: 10px;
  padding: 13px 14px;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.control label,
.label-static {
  font-size: 14px;
  font-weight: 700;
}

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

.label-row output,
.control-pitch strong {
  font-size: 14px;
  font-weight: 700;
}

.range-with-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
}

input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: #111111;
}

input[type="number"],
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}

textarea {
  resize: vertical;
  min-height: 88px;
}

input[type="number"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  transition:
    transform 120ms ease,
    background 120ms ease,
    color 120ms ease,
    border-color 120ms ease;
}

.button:hover,
.shape-button:hover {
  transform: translateY(-1px);
}

.button-primary,
.shape-button.is-active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.button-ghost {
  min-height: 38px;
  padding: 0 14px;
  background: transparent;
}

.button-tool {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.preview-property {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 8px 0 0;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: var(--subtle);
  word-break: keep-all;
}

.mobile-quick-nav {
  display: none;
}

.mobile-quick-nav-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.82;
  color: rgba(17, 17, 17, 0.68);
  transition:
    color 0.24s ease,
    transform 0.24s ease,
    opacity 0.24s ease;
}

.mobile-quick-nav-icon img,
.mobile-quick-nav-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: grayscale(1) saturate(0.15);
  transition: filter 0.24s ease;
}

.mobile-quick-nav-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-quick-nav-text {
  font-weight: 400;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    letter-spacing 0.24s ease;
}

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

.shape-button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition:
    transform 120ms ease,
    background 120ms ease,
    color 120ms ease,
    border-color 120ms ease;
}

.control-pitch {
  padding: 14px;
  border: 1px dashed var(--line-strong);
  background: linear-gradient(180deg, #f9f9f7, #f0f0eb);
}

.hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.hint-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.bullet-list {
  margin: 0 0 14px;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.status-strip {
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fbfbf9;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.status-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

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

.preview-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-canvas-wrap {
  position: relative;
}

.preview-expand-button {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease;
}

.preview-expand-button:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: rgba(17, 17, 17, 0.24);
}

.preview-expand-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

canvas {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 0.84;
  border: 1px solid var(--line);
  background: #ffffff;
}

#topCanvas {
  cursor: crosshair;
}

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

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

.summary-disclaimer {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  word-break: keep-all;
  line-break: loose;
}

.button-wide {
  width: 100%;
}

.array-reset-button {
  margin-top: 14px;
  min-height: 52px;
  justify-content: center;
  background: #f6f6f1;
  border-color: rgba(17, 17, 17, 0.14);
  font-weight: 700;
}

.array-reset-button:hover {
  background: #ffffff;
  border-color: rgba(17, 17, 17, 0.22);
}

.summary-action-button {
  min-height: 52px;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(17, 17, 17, 0.16);
  font-weight: 700;
}

.summary-action-button:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(17, 17, 17, 0.24);
}

.summary-action-secondary {
  background: #ecece6;
  border-color: rgba(17, 17, 17, 0.28);
  color: var(--text);
  font-weight: 750;
}

.summary-action-secondary:hover {
  background: #f5f5f0;
  border-color: rgba(17, 17, 17, 0.38);
}

.summary-action-primary {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
  font-weight: 800;
}

.summary-action-primary:hover {
  background: #232323;
  border-color: #232323;
}

.summary-item {
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.summary-item h3 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--subtle);
}

.summary-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.summary-item p + p {
  margin-top: 5px;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.64);
}

.preview-modal-dialog {
  width: min(1320px, 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

#modalPreviewCanvas {
  aspect-ratio: auto;
}

.is-hidden {
  display: none !important;
}

@media (min-width: 1241px) {
  .preview-panel {
    position: sticky;
    top: 8px;
    align-self: start;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 1380px) {
  .workflow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workflow-card:nth-child(3)::after {
    display: none;
  }

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

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

@media (max-width: 1240px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: start;
    width: min(320px, 100%);
    height: 180px;
  }

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

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

  .workflow-card:nth-child(2)::after,
  .workflow-card:nth-child(4)::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 18px 20px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-visual {
    width: min(260px, 100%);
    height: 150px;
  }

  .workflow-grid,
  .preview-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-actions {
    grid-template-columns: 1fr;
  }

  .workflow-card::after {
    display: none;
  }

  .preview-modal {
    padding: 12px;
  }

}

@media (max-width: 1260px) {
  .section-head-side[aria-hidden="true"] {
    display: none;
  }

  .section-head-icon {
    display: none;
  }

  .workflow-panel.is-collapsed .workflow-grid-mask {
    max-height: 292px;
    overflow: hidden;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  }

  .workflow-panel.is-collapsed .workflow-grid-mask::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 104px;
    background: linear-gradient(180deg, rgba(247, 247, 244, 0) 0%, rgba(247, 247, 244, 0.82) 44%, rgba(255, 255, 255, 0.96) 82%, #ffffff 100%);
    pointer-events: none;
  }

  .workflow-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .workflow-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .workflow-head .badge {
    align-self: auto;
    white-space: nowrap;
  }

  .workflow-toggle {
    display: inline-flex;
    position: relative;
    z-index: 1;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    margin-top: 0;
    gap: 8px;
    border: 1px solid var(--line-strong);
    border-top: 0;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(17, 17, 17, 0.08);
    font-size: 15px;
    font-weight: 700;
  }

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

  .preview-panel {
    order: 1;
  }

  .controls-panel {
    order: 2;
  }

  .workflow-panel:not(.is-collapsed) .workflow-grid {
    display: grid;
  }

  .section-head--stacked .badge {
    max-width: 100%;
  }

  .mobile-quick-nav {
    position: fixed;
    left: 50%;
    bottom: max(16px, calc(env(safe-area-inset-bottom) + 10px));
    transform: translateX(-50%);
    width: min(360px, calc(100vw - 28px));
    z-index: 1100;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 28px rgba(17, 17, 17, 0.09);
    transition:
      transform 0.28s ease,
      opacity 0.28s ease;
  }

  .mobile-quick-nav-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    min-height: 58px;
    gap: 4px;
    padding: 8px 6px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(17, 17, 17, 0.78);
    text-decoration: none;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    transition:
      background 0.24s ease,
      box-shadow 0.24s ease,
      color 0.24s ease,
      transform 0.24s ease,
      padding 0.24s ease,
      min-height 0.24s ease,
      opacity 0.24s ease;
  }

  .mobile-quick-nav-link.is-active {
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.08);
    color: #111111;
  }

  .mobile-quick-nav-link.is-active .mobile-quick-nav-icon {
    color: #111111;
    opacity: 1;
    transform: translateY(-1px) scale(1.03);
  }

  .mobile-quick-nav-link.is-active .mobile-quick-nav-icon img,
  .mobile-quick-nav-link.is-active .mobile-quick-nav-icon svg {
    filter: none;
  }

  .mobile-quick-nav.is-compact {
    transform: translateX(-50%) translateY(4px);
    opacity: 0.72;
  }
}

@media (max-width: 640px) {
  .workflow-head {
    gap: 10px;
  }

  .controls-panel,
  .preview-panel {
    padding: 10px;
  }

  .section-card,
  .preview-card,
  .summary-card,
  .preview-modal-dialog {
    padding: 12px;
  }

  .button-group,
  .range-with-input {
    grid-template-columns: 1fr;
  }

  .preview-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
