@font-face {
  font-family: Pretendard;
  src: url(assets/PretendardVariable.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Gowun Batang';
  src: url(assets/GowunBatang-Bold.ttf) format('truetype');
  font-weight: 700;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font: 400 15px/1.55 var(--font-sans);
  overflow-wrap: anywhere;
}
body:has(dialog[open]) {
  overflow: hidden;
}
button,
input,
textarea,
a {
  font: inherit;
  color: inherit;
}
button,
.link,
.ghost,
summary {
  cursor: pointer;
}
button,
.link,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 15px;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-weight: 580;
  text-decoration: none;
}
button:hover,
.link:hover,
a.ghost:hover,
summary:hover {
  background: var(--bg-subtle);
  color: var(--accent);
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}
button:disabled {
  cursor: default;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border-color: var(--border-subtle);
}
.ghost {
  border-color: transparent;
  background: transparent;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -6rem;
  left: 10px;
  background: var(--bg-surface);
  z-index: 8;
  padding: 10px;
}
.skip:focus {
  top: 5px;
}
.shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  grid-template-rows: 60px 1fr;
  width: min(1180px, calc(100% - 64px));
  margin: clamp(16px, 4vh, 48px) auto;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg-surface);
  min-height: calc(100dvh - 8vh);
}
.bar {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 12px 12px 0 0;
  background: var(--bg-subtle);
}
.brand,
.bar-tools,
.drawer-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand b {
  letter-spacing: 0.04em;
}
.brand span {
  border-left: 1px solid var(--border-strong);
  padding-left: 12px;
  font-size: 14px;
}
.bar-tools .ghost,
.feedback {
  font-size: 13px;
}
aside {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  padding: 28px 14px 18px;
  border-radius: 0 0 0 12px;
  display: flex;
  flex-direction: column;
}
.side-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 16px;
  min-height: min(720px, calc(100dvh - 124px));
}
nav,
.social-list {
  display: grid;
  gap: 2px;
}
.navtitle {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 650;
  margin: 0 0 7px 10px;
}
nav button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  background: none;
  border: 0;
  font-weight: 540;
  padding: 8px 11px;
}
nav button[aria-current='page'] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 740;
}
nav button[aria-current='page']::after {
  content: '›';
  margin-left: auto;
}
.social {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}
.social-list {
  grid-template-columns: 1fr 1fr;
}
.social a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  min-height: 44px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}
.social a:hover {
  text-decoration: underline;
  color: var(--accent);
}
.social svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
}
main {
  min-width: 0;
  padding: 36px clamp(24px, 3.2vw, 52px) 40px;
}
h1,
h2,
h3 {
  font-family: 'Gowun Batang', serif;
  line-height: 1.35;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(30px, 3vw, 42px);
}
h2 {
  font-size: 24px;
}
h3 {
  font-size: 20px;
  margin-top: 20px;
}
p {
  color: var(--text-secondary);
  margin: 7px 0 16px;
}
.workhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.workhead p {
  margin: 7px 0 0;
}
.status {
  font-size: 12px;
  white-space: nowrap;
  color: var(--text-secondary);
  font-weight: 450;
  padding: 4px 10px;
}
.status b {
  color: var(--accent);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--border-subtle);
}
.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 5px;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
}
.steps li[aria-current] {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.steps span {
  font: 500 12px/1.4 var(--font-mono);
}
.panel {
  padding: clamp(18px, 2.5vw, 32px);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  background: var(--bg-surface);
}
.panel + .panel {
  margin-top: 16px;
}
label {
  display: block;
  font-weight: 650;
  margin: 18px 0 6px;
}
small {
  font-weight: 450;
  color: var(--text-secondary);
  margin-left: 3px;
}
input:not([type='checkbox']),
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--border-strong);
  padding: 11px 13px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--text-primary);
  min-height: 44px;
}
input::placeholder,
textarea::placeholder {
  color: var(--text-secondary);
}
textarea {
  resize: vertical;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.actions .primary span {
  margin-left: 14px;
}
.declaration {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 450;
}
.declaration input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}
#review-body,
#modal-body {
  white-space: pre-wrap;
}
.pc-note {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--accent-soft);
  border-radius: 6px;
  color: var(--accent);
  font-size: 14px;
}
.pc-note b {
  flex-shrink: 0;
}
details {
  border-top: 1px solid var(--border-subtle);
  margin-top: 16px;
  padding: 5px 0;
}
summary {
  min-height: 44px;
  align-content: center;
  color: var(--text-secondary);
  font-size: 14px;
}
details p {
  margin-bottom: 0;
}
.saved-row {
  justify-content: space-between;
  width: 100%;
  text-align: left;
  margin-top: 8px;
}
.saved-row small {
  flex-shrink: 0;
}
#service p {
  max-width: 58ch;
}
.service-item + .service-item {
  border-top: 1px solid var(--border-subtle);
  margin-top: 18px;
  padding-top: 8px;
}
.mobile {
  display: none;
}
dialog {
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-modal);
  width: min(440px, calc(100% - 32px));
  padding: 24px;
  max-height: 85dvh;
}
dialog::backdrop {
  background: var(--scrim);
}
#modal .actions {
  justify-content: flex-end;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(450px, calc(100vw - 24px));
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  border-radius: 8px;
  box-shadow: var(--shadow-popover);
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  z-index: 4;
}
#toast-message {
  flex: 1 1 195px;
}
#toast button {
  font-size: 13px;
}
#toast[data-error='true'] {
  border-color: var(--status-danger);
}
@media (max-width: 860px) {
  .mobile {
    display: inline-flex;
  }
  .shell {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0;
    min-height: 100dvh;
    margin: 0;
  }
  .bar {
    position: sticky;
    top: 0;
    z-index: 2;
    height: 52px;
    padding: 0 10px;
    border-radius: 0;
    gap: 3px;
  }
  .bar-tools,
  .brand {
    gap: 3px;
  }
  .brand span,
  aside,
  #install {
    display: none;
  }
  .brand img {
    width: 22px;
    height: 22px;
  }
  .brand b {
    font-size: 13px;
  }
  .bar .ghost {
    padding: 6px;
    font-size: 13px;
  }
  :focus {
    scroll-margin-block: 60px 64px;
  }
  main {
    padding: 24px 16px calc(84px + env(safe-area-inset-bottom));
  }
  .workhead {
    display: block;
    margin-bottom: 14px;
  }
  .workhead p {
    font-size: 14px;
  }
  .head-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    flex-direction: row-reverse;
    margin-top: 10px;
  }
  .head-tools .ghost {
    padding: 5px;
    font-size: 12px;
  }
  .steps {
    margin-bottom: 14px;
  }
  .steps li {
    justify-content: center;
    font-size: 14px;
    gap: 5px;
  }
  .steps span {
    font-size: 11px;
  }
  .pc-note {
    display: block;
  }
  .pc-note b {
    display: block;
    margin-bottom: 4px;
  }
  .panel {
    padding: 18px 15px;
  }
  .panel h2 {
    font-size: 22px;
  }
  #together {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    border-radius: 0;
    border-width: 1px 0 0;
    z-index: 2;
  }
  dialog {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 14px 14px 0 0;
    padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }
  .drawer-head {
    justify-content: space-between;
    margin-bottom: 12px;
  }
  .drawer-head h2 {
    font-size: 22px;
  }
  #drawer-content {
    display: grid;
    gap: 14px;
  }
  .social {
    border: 0;
    padding-top: 0;
    margin: 0;
  }
  .social-list a {
    font-size: 14px;
  }
  #drawer-content nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .navtitle {
    margin-left: 6px;
  }
  #toast {
    bottom: calc(58px + env(safe-area-inset-bottom));
    right: 12px;
    left: 12px;
  }
}
