:root {
  color-scheme: light;
  --bg: #fbf9f4;
  --paper: #fffdfa;
  --ink: #262129;
  --muted: #645a63;
  --line: #e8dfd6;
  --accent: #f6d75d;
  --plum: #46263d;
  --hero: #f3e3e8;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-synthesis: none;
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .63; }
:focus-visible { outline: 3px solid #9b4a79; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: fixed; left: 16px; top: -70px; z-index: 4; background: var(--paper); padding: 10px; }
.skip:focus { top: 12px; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 228px minmax(0, 1fr); }
.rail { border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 29px 16px 24px; background: #f8f3eb; }
.brand { display: flex; gap: 11px; align-items: center; margin: 0 9px 43px; color: var(--plum); }
.brand strong { display: block; font-weight: 850; font-size: 25px; letter-spacing: -.085em; line-height: 1.12; }
.brand small { font-size: 9px; font-weight: 750; letter-spacing: .13em; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; flex: none; border-radius: 14px; background: var(--plum); position: relative; }
.brand-mark i { border: 1px solid #ffe28a; width: 27px; height: 13px; border-radius: 50%; position: absolute; transform: rotate(-28deg) translateY(-5px); }
.brand-mark i:nth-child(2) { transform: rotate(-28deg); }
.brand-mark i:nth-child(3) { transform: rotate(-28deg) translateY(5px); }
.navigation { display: grid; gap: 4px; }
.nav-label { font-size: 12px; margin: 0 10px 8px; color: var(--muted); }
.navigation button { appearance: none; border: 0; background: transparent; color: var(--muted); border-radius: 9px; text-align: left; padding: 10px 12px; min-height: 44px; font-size: 14px; white-space: nowrap; }
.navigation button span { display: inline-block; width: 22px; font-size: 16px; }
.navigation button:hover { background: #eee5dd; color: var(--ink); }
.navigation button[aria-current] { background: #ebdce4; color: #482039; font-weight: 750; }
.navigation .nav-connect { margin-top: 16px; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; }
.rail-footer { margin: auto 12px 0; padding-top: 36px; color: var(--muted); font-size: 11px; display: grid; gap: 3px; }
.rail-footer b { color: var(--plum); font-size: 10px; letter-spacing: .13em; }
.main { min-width: 0; width: 100%; max-width: 1400px; padding: 0 clamp(22px, 4vw, 68px); margin-inline: auto; }
.top { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 650; }
.top-connect, .secondary { display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--plum); border: 1px solid #ddcdd5; border-radius: 9px; font-size: 13px; font-weight: 700; min-height: 42px; padding: 8px 13px; text-decoration: none; white-space: nowrap; }
.top-connect:hover, .secondary:hover { background: #f2e7ed; }
.hero { min-height: 280px; padding: 36px clamp(23px, 5.1vw, 65px) 33px; display: grid; grid-template-columns: minmax(0, 1fr) 36%; position: relative; isolation: isolate; overflow: hidden; border-radius: 23px; background: var(--hero); }
.hero-copy { z-index: 1; }
.hero h1 { font-size: clamp(35px, 5.4vw, 72px); line-height: 1.08; letter-spacing: -.075em; margin: 0; font-weight: 850; color: #34232f; word-break: keep-all; }
.hero p { font-size: 14px; color: #5b4856; margin: 16px 0 23px; word-break: keep-all; }
.primary { color: #2a211b; background: var(--accent); border: 1px solid #e1c049; min-height: 44px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 15px; font-weight: 780; font-size: 14px; }
.primary:hover { background: #f7e186; }
.waves { position: absolute; z-index: 0; right: -4%; top: -20%; width: 52%; height: 140%; display: grid; place-items: center; transform: rotate(-25deg); pointer-events: none; }
.waves i { width: 86%; height: 63%; position: absolute; border: 1px solid #945b7d; border-radius: 50%; opacity: .65; }
.waves i:nth-child(2) { width: 69%; height: 51%; }
.waves i:nth-child(3) { width: 53%; height: 39%; }
.waves i:nth-child(4) { width: 38%; height: 28%; }
.waves i:nth-child(5) { width: 24%; height: 17%; border-color: #8e4f70; }
.waves i:nth-child(6) { width: 12%; height: 8%; background: var(--accent); border: 0; opacity: 1; }
.waves b { color: #884b70; position: absolute; bottom: 20%; right: 22%; font-size: 26px; }
.workspace { outline-offset: 6px; padding-top: 33px; scroll-margin-top: 10px; }
.tool-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 15px; }
.tool-heading h2 { margin: 0; font-size: clamp(22px, 3vw, 32px); letter-spacing: -.06em; line-height: 1.2; }
.tool-heading p { color: var(--muted); margin: 5px 0 0; font-size: 14px; }
.workspace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 14px; padding: clamp(15px, 2.1vw, 24px); background: var(--paper); min-width: 0; }
.form-panel { display: grid; gap: 14px; }
.form-panel label, legend { color: var(--ink); font-weight: 700; font-size: 13px; }
.form-panel label.field { display: grid; gap: 5px; }
.form-panel label small { color: var(--muted); font-weight: 450; }
.form-panel input:not([type=checkbox]), textarea, select { display: block; width: 100%; color: var(--ink); padding: 8px 10px; min-height: 42px; border-radius: 8px; border: 1px solid #ded2d4; background: #fff; font-size: 14px; }
textarea { resize: vertical; min-height: 76px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; }
.choices label { border: 1px solid var(--line); min-height: 38px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 7px; font-weight: 550; }
input[type=checkbox] { accent-color: #77365d; margin: 0 3px 0 0; }
.submit { justify-self: start; }
.result-panel { display: flex; flex-direction: column; min-height: 249px; }
.result-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.result-header h3, .connection h3 { margin: 0; font-size: 17px; letter-spacing: -.035em; }
.compact { min-height: 34px; padding: 2px 9px; }
.result-content { padding-top: 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
.result-content h4 { font-size: 13px; color: var(--plum); margin: 10px 0 5px; font-weight: 800; }
.result-content p { margin: 0 0 12px; }
.result-content .error { color: #8a2443; }
.empty { min-height: 151px; display: grid; justify-content: center; align-content: center; justify-items: center; gap: 8px; color: var(--muted); font-size: 13px; text-align: center; white-space: normal; }
.empty span { background: #f3e6ed; color: #703d5c; border-radius: 12px; width: 43px; height: 43px; display: grid; place-items: center; font-size: 20px; }
.continue-button { align-self: start; margin-top: 9px; }
.connection { max-width: 770px; }
.connection ol { padding-left: 21px; }
.connection li { padding-block: 3px; }
.endpoint { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.endpoint code { color: var(--plum); min-width: 0; max-width: 100%; overflow-wrap: anywhere; background: #f6edf1; padding: 8px 10px; border-radius: 6px; }
.availability { color: #645065; font-size: 13px; }
.connection-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notice { color: var(--muted); font-size: 13px; min-height: 19px; margin: 10px 0; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); border-top: 1px solid var(--line); padding: 19px 0 23px; font-size: 12px; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 175px minmax(0, 1fr); }
  .rail { padding-inline: 10px; }
  .main { padding-inline: 22px; }
  .hero { grid-template-columns: minmax(0, 1fr) 28%; }
}
@media (max-width: 650px) {
  .shell { display: block; }
  .rail { border-right: 0; border-bottom: 1px solid var(--line); padding: 13px 14px 5px; }
  .brand { margin: 0 0 7px; }
  .brand strong { font-size: 21px; }
  .brand-mark { width: 37px; height: 37px; }
  .navigation { display: flex; overflow-x: auto; scrollbar-width: thin; gap: 3px; padding: 3px 1px 5px; }
  .navigation button { min-height: 42px; padding: 6px 9px; font-size: 12px; }
  .navigation button span { width: 15px; font-size: 13px; }
  .navigation .nav-connect, .nav-label, .rail-footer, .top > span { display: none; }
  .main { padding-inline: 14px; }
  .top { justify-content: end; min-height: 54px; }
  .top-connect { min-height: 35px; padding: 5px 8px; font-size: 12px; }
  .hero { min-height: 220px; padding: 25px 17px 21px; border-radius: 16px; grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(32px, 8.9vw, 43px); }
  .hero p { max-width: 220px; font-size: 12px; margin: 12px 0 16px; }
  .waves { opacity: .31; right: -16%; width: 67%; }
  .workspace { padding-top: 24px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .tool-heading p { font-size: 12px; }
}
