:root {
  --pro-ink: #17343b;
  --pro-muted: #61767b;
  --pro-line: #cddfdc;
  --pro-paper: #fffdf8;
  --pro-mint: #d9f2e8;
  --pro-mint-strong: #0c8f83;
  --pro-peach: #ffe1d4;
  --pro-yellow: #fff0b8;
  --pro-blue: #dceef5;
  --pro-coral: #ef6b54;
  --pro-shadow: 0 24px 70px rgba(42, 72, 74, 0.12);
}

.theme-button__icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  overflow: hidden;
  color: currentColor;
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50% 100%);
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.pro-audio-suite {
  position: relative;
  margin: 32px 0;
  overflow: hidden;
  color: var(--pro-ink);
  background:
    radial-gradient(circle at 94% 2%, rgba(255, 215, 195, 0.74), transparent 25%),
    radial-gradient(circle at 8% 0%, rgba(213, 241, 231, 0.9), transparent 28%),
    var(--pro-paper);
  border: 1px solid var(--pro-line);
  border-radius: 26px;
  box-shadow: var(--pro-shadow);
}

.pro-audio-suite::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #0c9c91 0 33%, #efb43f 33% 66%, #ef6b54 66%);
}

.pro-audio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 36px 38px 26px;
}

.pro-audio-kicker,
.pro-section-label {
  display: block;
  margin-bottom: 8px;
  color: var(--pro-mint-strong);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.pro-audio-hero h2 {
  margin: 0 0 10px;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(27px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.pro-audio-hero p,
.pro-beginner-top p,
.pro-expert-head p,
.pro-learn-head p,
.pro-intensity-card p {
  margin: 0;
  color: var(--pro-muted);
  font-size: 14px;
  line-height: 1.7;
}

.pro-audio-score {
  display: grid;
  min-width: 176px;
  padding: 18px 22px;
  color: #fff;
  background: #173f45;
  border-radius: 20px 20px 20px 6px;
  text-align: right;
}

.pro-audio-score strong {
  color: #8fe2d7;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.pro-audio-score span {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 800;
}

.pro-audio-score small {
  margin-top: 3px;
  color: #b7d0d2;
  font-size: 10px;
}

.pro-audio-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 38px 26px;
  overflow: hidden;
  border: 1px solid var(--pro-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.pro-audio-trust span {
  padding: 11px 15px;
  color: var(--pro-muted);
  border-right: 1px solid var(--pro-line);
  font-size: 11px;
  text-align: center;
}

.pro-audio-trust span:last-child {
  border-right: 0;
}

.pro-audio-trust b {
  margin-right: 5px;
  color: var(--pro-ink);
  font-size: 13px;
}

.pro-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--pro-line);
  border-bottom: 1px solid var(--pro-line);
  background: rgba(240, 244, 241, 0.72);
}

.pro-mode-tabs button {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 2px 10px;
  min-height: 75px;
  padding: 14px 18px;
  color: #738386;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--pro-line);
  cursor: pointer;
}

.pro-mode-tabs button:last-child {
  border-right: 0;
}

.pro-mode-tabs button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 4px;
  background: transparent;
}

.pro-mode-tabs button.is-active {
  color: var(--pro-ink);
  background: rgba(255, 255, 255, 0.8);
}

.pro-mode-tabs button.is-active::after {
  background: var(--pro-coral);
}

.pro-mode-tabs button > span {
  grid-row: 1 / 3;
  color: var(--pro-mint-strong);
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 900;
}

.pro-mode-tabs strong {
  align-self: end;
  font-size: 14px;
  text-align: left;
}

.pro-mode-tabs small {
  align-self: start;
  font-size: 10px;
  text-align: left;
}

.pro-mode-panel {
  display: none;
  padding: 32px 38px 38px;
  animation: pro-panel-in 340ms ease both;
}

.pro-mode-panel.is-active {
  display: block;
}

@keyframes pro-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pro-beginner-top,
.pro-expert-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.pro-beginner-top h3,
.pro-expert-head h3,
.pro-learn-head h3 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.pro-source-state {
  position: relative;
  display: grid;
  min-width: 210px;
  padding: 13px 16px 13px 40px;
  border: 1px solid #e8cda4;
  border-radius: 14px;
  background: var(--pro-yellow);
}

.pro-source-state > span {
  position: absolute;
  top: 17px;
  left: 17px;
  width: 10px;
  height: 10px;
  background: #dba22d;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #dba22d;
}

.pro-source-state.is-ready {
  border-color: #a8d9ce;
  background: var(--pro-mint);
}

.pro-source-state.is-ready > span {
  background: var(--pro-mint-strong);
  box-shadow: 0 0 0 1px var(--pro-mint-strong);
}

.pro-source-state strong {
  font-size: 12px;
}

.pro-source-state small {
  margin-top: 2px;
  color: var(--pro-muted);
  font-size: 10px;
}

.pro-analysis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.pro-analysis-grid article {
  display: grid;
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--pro-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.pro-analysis-grid span {
  color: var(--pro-muted);
  font-size: 10px;
  font-weight: 700;
}

.pro-analysis-grid strong {
  margin: 4px 0 2px;
  font-size: 15px;
}

.pro-analysis-grid small {
  overflow: hidden;
  color: #819193;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.pro-profile {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 18px;
  gap: 13px;
  align-items: center;
  min-height: 84px;
  padding: 14px 16px;
  color: var(--pro-ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--pro-line);
  border-radius: 17px;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.pro-profile:hover {
  transform: translateY(-2px);
  border-color: #8fc9bf;
  box-shadow: 0 12px 26px rgba(39, 84, 80, 0.1);
}

.pro-profile.is-selected {
  border-color: var(--pro-mint-strong);
  background: linear-gradient(135deg, #f5fffb, #e0f4ed);
  box-shadow: inset 0 0 0 1px var(--pro-mint-strong);
}

.pro-profile__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 50px;
  color: #fff;
  background: var(--pro-ink);
  border-radius: 14px 14px 14px 5px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.pro-profile:nth-child(2n) .pro-profile__icon {
  color: #513228;
  background: var(--pro-peach);
}

.pro-profile > span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pro-profile strong {
  font-size: 14px;
}

.pro-profile small {
  color: var(--pro-muted);
  font-size: 10px;
  line-height: 1.5;
}

.pro-profile i {
  width: 14px;
  height: 14px;
  border: 2px solid #b6c7c5;
  border-radius: 50%;
}

.pro-profile.is-selected i {
  border: 4px solid var(--pro-mint-strong);
  background: #fff;
}

.pro-intensity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 36%);
  gap: 28px;
  align-items: center;
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid #edcfbc;
  border-radius: 17px;
  background: linear-gradient(120deg, #fff9ee, var(--pro-peach));
}

.pro-intensity-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.pro-intensity-card label {
  display: grid;
  gap: 9px;
}

.pro-intensity-card output {
  justify-self: end;
  color: var(--pro-coral);
  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: 900;
}

.pro-intensity-card input,
.pro-module__control input {
  width: 100%;
  accent-color: var(--pro-mint-strong);
}

.pro-auto-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
  margin-top: 15px;
}

.pro-action {
  display: grid;
  gap: 3px;
  min-height: 72px;
  padding: 14px 18px;
  border-radius: 16px;
  cursor: pointer;
}

.pro-action span {
  font-size: 14px;
  font-weight: 900;
}

.pro-action small {
  font-size: 9px;
  opacity: 0.72;
}

.pro-action--secondary {
  color: var(--pro-ink);
  background: #fff;
  border: 1px solid var(--pro-line);
}

.pro-action--primary {
  color: #fff;
  background: linear-gradient(120deg, #0d766e, #174950);
  border: 1px solid #174950;
  box-shadow: 0 12px 25px rgba(21, 84, 80, 0.2);
}

.pro-auto-status {
  position: relative;
  margin-top: 13px;
  padding: 12px 16px 12px 40px;
  border: 1px dashed var(--pro-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.55);
}

.pro-auto-status > span {
  position: absolute;
  top: 15px;
  left: 17px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9caeb0;
}

.pro-auto-status.is-good > span { background: var(--pro-mint-strong); }
.pro-auto-status.is-warn > span { background: #e6a62b; }
.pro-auto-status.is-working > span { background: var(--pro-coral); animation: pro-pulse 900ms ease infinite alternate; }

.pro-auto-status p {
  margin: 0;
  color: var(--pro-muted);
  font-size: 11px;
  line-height: 1.6;
}

@keyframes pro-pulse {
  to { transform: scale(1.45); opacity: 0.5; }
}

.pro-expert-actions {
  display: flex;
  gap: 8px;
}

.pro-expert-actions button {
  padding: 9px 12px;
  color: var(--pro-muted);
  background: #fff;
  border: 1px solid var(--pro-line);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.pro-stage-nav {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 16px;
}

.pro-stage-nav button {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 11px 8px;
  color: #6d7d80;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--pro-line);
  border-radius: 12px;
  cursor: pointer;
}

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

.pro-stage-nav span {
  color: #20a89b;
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: 900;
}

.pro-stage-nav strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pro-stage-nav small {
  font-size: 8px;
  opacity: 0.65;
}

.pro-stage-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 50%, rgba(58, 184, 168, 0.24), transparent 28%),
    #173d43;
  border-radius: 17px;
}

.pro-stage-summary span {
  color: #77d6ca;
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pro-stage-summary h4 {
  margin: 4px 0 3px;
  font-size: 20px;
}

.pro-stage-summary p {
  margin: 0;
  color: #bdd0d2;
  font-size: 10px;
}

.pro-stage-summary > strong {
  display: flex;
  gap: 4px;
  align-items: baseline;
  color: #87e1d6;
  font-size: 32px;
}

.pro-stage-summary > strong small {
  color: #b8cbcd;
  font-size: 9px;
}

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

.pro-module {
  padding: 15px;
  border: 1px solid var(--pro-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.76);
  transition: border-color 160ms ease, background 160ms ease;
}

.pro-module.is-enabled {
  border-color: #84c5ba;
  background: linear-gradient(135deg, #fff, #e6f6f0);
}

.pro-module header {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
}

.pro-module header > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--pro-ink);
  border-radius: 9px 9px 9px 3px;
  font-family: "Courier New", monospace;
  font-size: 8px;
  font-weight: 900;
}

.pro-module header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pro-module header strong {
  font-size: 13px;
}

.pro-module header small {
  color: var(--pro-muted);
  font-size: 9px;
  line-height: 1.45;
}

.pro-switch {
  position: relative;
  width: 37px;
  height: 21px;
}

.pro-switch input {
  position: absolute;
  opacity: 0;
}

.pro-switch i {
  position: absolute;
  inset: 0;
  background: #c8d1d1;
  border-radius: 999px;
  cursor: pointer;
}

.pro-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(24, 53, 58, 0.2);
  transition: transform 160ms ease;
}

.pro-switch input:checked + i {
  background: var(--pro-mint-strong);
}

.pro-switch input:checked + i::after {
  transform: translateX(16px);
}

.pro-module__control {
  display: grid;
  grid-template-columns: auto 1fr 38px;
  gap: 9px;
  align-items: center;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid #dfe9e7;
}

.pro-module__control label,
.pro-module__control output {
  color: var(--pro-muted);
  font-size: 9px;
  font-weight: 700;
}

.pro-module__control output {
  color: var(--pro-mint-strong);
  font-family: "Courier New", monospace;
  text-align: right;
}

.pro-module > p {
  margin: 8px 0 0;
  color: #90a09f;
  font-size: 8px;
  text-align: right;
}

.pro-learn-head {
  margin-bottom: 20px;
}

.pro-learn-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 16px 18px;
  border: 1px solid #e8cfb7;
  border-radius: 15px;
  background: linear-gradient(120deg, var(--pro-yellow), #fff8ec);
}

.pro-learn-intro > span {
  color: var(--pro-coral);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 900;
}

.pro-learn-intro strong {
  font-size: 15px;
}

.pro-learn-intro p {
  margin: 3px 0 0;
  color: var(--pro-muted);
  font-size: 10px;
}

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

.pro-learn-grid article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  min-height: 116px;
  padding: 15px;
  border: 1px solid var(--pro-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
}

.pro-learn-grid article > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--pro-coral);
  border-radius: 50% 50% 50% 12%;
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: 900;
}

.pro-learn-grid strong {
  font-size: 13px;
}

.pro-learn-grid p {
  margin: 6px 0;
  color: var(--pro-muted);
  font-size: 11px;
  line-height: 1.65;
}

.pro-learn-grid small {
  color: #96a5a5;
  font-size: 8px;
}

.pro-audio-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px 38px;
  border-top: 1px solid var(--pro-line);
  background: rgba(224, 239, 234, 0.52);
}

.pro-audio-footer strong {
  display: block;
  font-size: 13px;
}

.pro-audio-footer p {
  margin: 3px 0 0;
  color: var(--pro-muted);
  font-size: 9px;
}

.pro-result-report {
  display: grid;
  justify-items: end;
  color: var(--pro-muted);
  font-size: 9px;
  text-align: right;
}

.pro-result-report strong {
  color: var(--pro-mint-strong);
  font-size: 11px;
}

.pro-result-report span {
  margin-top: 3px;
}

.pro-audio-suite button:focus-visible,
.pro-audio-suite input:focus-visible {
  outline: 3px solid rgba(239, 107, 84, 0.35);
  outline-offset: 2px;
}

@media (max-width: 840px) {
  .pro-audio-hero { padding: 30px 24px 22px; }
  .pro-audio-trust { margin-right: 24px; margin-left: 24px; }
  .pro-mode-panel { padding: 26px 24px 30px; }
  .pro-audio-footer { padding-right: 24px; padding-left: 24px; }
  .pro-stage-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pro-analysis-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .pro-audio-suite { margin: 22px 0; border-radius: 18px; }
  .pro-audio-hero { grid-template-columns: 1fr; gap: 18px; padding: 26px 18px 20px; }
  .pro-audio-score { grid-template-columns: auto 1fr; min-width: 0; text-align: left; }
  .pro-audio-score strong { grid-row: 1 / 3; margin-right: 12px; }
  .pro-audio-trust { grid-template-columns: repeat(2, 1fr); margin: 0 18px 20px; }
  .pro-audio-trust span:nth-child(2) { border-right: 0; }
  .pro-audio-trust span:nth-child(-n+2) { border-bottom: 1px solid var(--pro-line); }
  .pro-mode-tabs button { grid-template-columns: auto; min-height: 66px; gap: 2px; padding: 10px 5px; }
  .pro-mode-tabs button > span { grid-row: auto; }
  .pro-mode-tabs strong { font-size: 12px; text-align: center; }
  .pro-mode-tabs small { display: none; }
  .pro-mode-panel { padding: 23px 17px 27px; }
  .pro-beginner-top, .pro-expert-head { display: grid; }
  .pro-source-state { min-width: 0; }
  .pro-profile-grid, .pro-module-grid, .pro-learn-grid { grid-template-columns: 1fr; }
  .pro-profile { grid-template-columns: 48px minmax(0, 1fr) 16px; min-height: 76px; padding: 12px; }
  .pro-profile__icon { width: 48px; height: 46px; }
  .pro-intensity-card { grid-template-columns: 1fr; gap: 14px; }
  .pro-auto-actions { grid-template-columns: 1fr; }
  .pro-stage-nav { display: flex; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
  .pro-stage-nav button { flex: 0 0 112px; scroll-snap-align: start; }
  .pro-stage-summary { align-items: flex-end; }
  .pro-stage-summary p { line-height: 1.45; }
  .pro-audio-footer { display: grid; padding: 16px 18px; }
  .pro-result-report { justify-items: start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .pro-mode-panel,
  .pro-profile,
  .pro-auto-status.is-working > span {
    animation: none;
    transition: none;
  }
}
