/* 단비랩 AI 활용·응용 가이드 — 파스텔 가이드북 스타일 */
:root {
  --bg: #FFF8F2;
  --paper: #FFFDFA;
  --ink: #3B3540;
  --ink-2: #6C6473;
  --ink-3: #918A98;
  --line: #EFE4DA;
  --line-2: #F6EEE7;
  --coral: #E97F5E;
  --coral-d: #D26A49;
  --mint: #8FCBB4;
  --lilac: #B7A6DC;
  --butter: #F3D08A;
  --sky: #9CC3E6;
  --side-w: 292px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 10px 30px -18px rgba(90, 63, 48, .45);
  --shadow-2: 0 18px 44px -24px rgba(90, 63, 48, .5);
  --font: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1200px 500px at 80% -10%, #FDEBE2 0%, rgba(253, 235, 226, 0) 60%),
    radial-gradient(900px 500px at 0% 20%, #EAF6F0 0%, rgba(234, 246, 240, 0) 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 700; }
button { font-family: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 12px 0; z-index: 100;
}
.skip:focus { left: 0; }

/* ───────── 사이드바 ───────── */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w);
  background: linear-gradient(180deg, #FFFDFB 0%, #FFF7F0 100%);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; z-index: 40;
}
.side-top {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 18px 14px;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.seal {
  flex: none; width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #FFD9C4, #FFC7D3);
  color: #7A4130; font-weight: 800; font-size: 17px; letter-spacing: -.04em;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7), 0 8px 18px -12px rgba(180, 95, 60, .7);
}
.brand-txt { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 800; font-size: 15.5px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-x { display: none; }

.side-body { flex: 1; overflow-y: auto; padding: 4px 12px 18px; }
.side-hint {
  margin: 2px 6px 12px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6;
}
.side-group {
  display: flex; align-items: center; gap: 7px;
  margin: 16px 6px 7px; font-size: 12px; font-weight: 700; color: var(--ink-2);
  letter-spacing: -.01em;
}
.side-group em {
  margin-left: auto; font-style: normal; font-weight: 600; font-size: 10.5px;
  color: var(--ink-3); background: #F7EDE4; border-radius: 999px; padding: 1px 8px;
}
.side-list { list-style: none; margin: 0; padding: 0; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 12px; transition: background .15s, transform .15s;
}
.side-link:hover { background: #FFF1E6; }
.side-link.on { background: #FFE7D8; box-shadow: inset 0 0 0 1px #F8D2BC; }
.si-em {
  flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: #fff; font-size: 15px; box-shadow: 0 2px 6px -4px rgba(120, 90, 70, .5);
}
.si-tx { display: flex; flex-direction: column; min-width: 0; }
.si-tx b { font-size: 13.5px; font-weight: 700; letter-spacing: -.02em; }
.si-tx small { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.side-foot {
  border-top: 1px solid var(--line); padding: 12px 18px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.side-by { font-size: 11.5px; color: var(--ink-3); }

.lang { display: inline-flex; background: #F6EDE5; border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  padding: 4px 11px; font-size: 11.5px; font-weight: 700; color: var(--ink-3);
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--coral-d); box-shadow: 0 2px 6px -4px rgba(120, 90, 70, .6); }

/* ───────── 본문 ───────── */
.wrap { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }

.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 12px clamp(16px, 4vw, 44px);
  background: rgba(255, 248, 242, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.top .brand { display: none; }
.navbtn {
  display: none; border: 1px solid var(--line); background: #fff; cursor: pointer;
  width: 40px; height: 40px; border-radius: 12px; color: var(--ink);
}
.navbtn svg { width: 20px; height: 20px; }
.top-crumb { flex: 1; font-size: 13px; color: var(--ink-2); font-weight: 600; letter-spacing: -.01em; }
.top-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.share {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 13px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.share:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.share svg { width: 15px; height: 15px; }

main { flex: 1; padding: 0 clamp(16px, 4vw, 44px) 64px; }
#view { max-width: 1080px; }

/* 안내 띠 */
.notice {
  margin: 18px auto 0; max-width: 1080px;
  display: flex; gap: 10px; align-items: flex-start;
  background: #FFF3E9; border: 1px dashed #F3D3BE; border-radius: var(--r-md);
  padding: 12px 15px; font-size: 12.5px; color: #7A5A46; line-height: 1.65;
}
.notice .nb { flex: none; font-weight: 800; color: var(--coral-d); }
.notice p { margin: 0; }
.notice .en { display: block; color: #9A7A65; font-size: 11.5px; margin-top: 2px; }

/* 히어로 */
.hero { position: relative; padding: clamp(30px, 5vw, 58px) 0 8px; max-width: 780px; }
.hero-blob {
  position: absolute; right: 0; top: -14%;
  width: clamp(180px, 34vw, 360px); height: clamp(180px, 34vw, 360px);
  border-radius: 46% 54% 62% 38% / 48% 42% 58% 52%;
  background: linear-gradient(140deg, #FFE2D2 0%, #F7E7F5 55%, #DCEFE6 100%);
  filter: blur(2px); opacity: .72; z-index: -1;
}
.kicker { margin: 0 0 12px; font-size: 12.5px; font-weight: 700; color: var(--coral-d); letter-spacing: .01em; }
.hero h1 {
  margin: 0 0 16px; font-size: clamp(30px, 5.2vw, 50px); line-height: 1.28;
  letter-spacing: -.035em; font-weight: 800;
}
.hero h1::after {
  content: ""; display: block; width: 76px; height: 6px; border-radius: 999px;
  margin-top: 16px; background: linear-gradient(90deg, #FFC6AC, #C9B6E8, #A9D9C6);
}
.lead { margin: 0 0 18px; color: var(--ink-2); font-size: clamp(14.5px, 1.6vw, 16.5px); line-height: 1.8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--ink-2);
  box-shadow: 0 4px 12px -10px rgba(120, 90, 70, .6);
}
.chip-free { background: #EAF6F0; border-color: #CDE7DB; color: #3F7A64; }

/* 섹션 */
.block { padding-top: clamp(32px, 4.5vw, 52px); }
.block h2 {
  margin: 0 0 8px; font-size: clamp(20px, 2.6vw, 25px); letter-spacing: -.03em; font-weight: 800;
}
.block-lead { margin: 0 0 18px; color: var(--ink-2); font-size: 14px; line-height: 1.75; max-width: 720px; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.how-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 15px 16px; box-shadow: var(--shadow);
}
.how-card b { display: block; font-size: 14px; margin-bottom: 5px; letter-spacing: -.02em; }
.how-card p { margin: 0; font-size: 12.8px; color: var(--ink-2); line-height: 1.7; }

/* 카드 그리드 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 5px;
  background: linear-gradient(160deg, var(--c1) 0%, #fff 58%);
  border: 1px solid #FFFFFF; border-radius: var(--r-lg);
  padding: 18px 18px 15px; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; right: -26px; top: -26px; width: 78px; height: 78px;
  border-radius: 50%; background: var(--c2); opacity: .5;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card-em { font-size: 24px; line-height: 1; }
.card-name { font-size: 16.5px; font-weight: 800; letter-spacing: -.03em; }
.card-sub { font-size: 12px; color: var(--ink-2); line-height: 1.55; }
.card-tag { font-size: 12.5px; color: #5C5260; font-weight: 600; margin-top: 4px; }
.card-meta { margin-top: 8px; font-size: 11px; color: var(--ink-3); font-weight: 600; }

/* 서가 */
.shelf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.shelf-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-top: 5px solid var(--c1); border-radius: var(--r-md);
  padding: 15px 16px 14px; display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow);
}
.shelf-em { font-size: 20px; line-height: 1; }
.shelf-card b { font-size: 14px; line-height: 1.5; letter-spacing: -.02em; }
.shelf-meta { font-size: 11px; color: var(--coral-d); font-weight: 700; }
.shelf-desc { font-size: 12.2px; color: var(--ink-2); line-height: 1.65; }
.shelf-links { display: flex; gap: 7px; margin-top: 8px; flex-wrap: wrap; }
.mini {
  font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: #FFF0E5; color: var(--coral-d);
}
.mini-ghost { background: #F6F1EC; color: var(--ink-2); }

.promise-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.promise-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 15px 16px; }
.promise-item b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.promise-item p { margin: 0; font-size: 12.6px; color: var(--ink-2); line-height: 1.7; }

/* ───────── 상세 ───────── */
.detail { padding-top: 22px; max-width: 900px; }
.back { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--ink-3); margin-bottom: 14px; }
.back:hover { color: var(--coral-d); }
.detail-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 6px; }
.d-em {
  flex: none; width: 66px; height: 66px; border-radius: 22px; display: grid; place-items: center;
  font-size: 30px; background: linear-gradient(150deg, var(--c1), #fff);
  box-shadow: inset 0 0 0 1.5px #fff, var(--shadow);
}
.d-group { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.detail-head h1 { margin: 0 0 3px; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.035em; line-height: 1.3; }
.d-sub { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.d-tag {
  display: inline-block; margin: 9px 0 0; font-size: 12px; font-weight: 700;
  color: #7A5744; background: linear-gradient(120deg, var(--c1), var(--c2)); border-radius: 999px; padding: 4px 12px;
}

.sec { margin-top: clamp(26px, 3.5vw, 38px); }
.sec h2 {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 12px; font-size: 17px; letter-spacing: -.025em; font-weight: 800;
}
.sec h2 i {
  font-style: normal; flex: none; width: 26px; height: 26px; border-radius: 9px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: linear-gradient(140deg, var(--c1), var(--c2)); color: #6A4B3C;
}
.sec-when p { margin: 0; font-size: 15px; color: #4A4350; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c2); border-radius: 4px var(--r-md) var(--r-md) 4px; padding: 14px 17px; line-height: 1.85; }
.sec-hint { margin: -4px 0 12px; font-size: 12.3px; color: var(--ink-3); }

.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tips li { display: flex; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 15px; font-size: 14px; line-height: 1.75; }
.tnum {
  flex: none; width: 22px; height: 22px; border-radius: 8px; margin-top: 2px;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 800;
  background: #FFF0E5; color: var(--coral-d);
}

.prompts { display: grid; gap: 12px; }
.prompt { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 6px 18px -16px rgba(90, 63, 48, .5); }
.prompt-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px 9px; border-bottom: 1px dashed var(--line); }
.prompt-head b { flex: 1; font-size: 13.5px; letter-spacing: -.02em; line-height: 1.5; }
.pnum {
  display: inline-block; font-size: 10.5px; font-weight: 800; color: var(--coral-d);
  background: #FFF0E5; border-radius: 6px; padding: 1px 7px; margin-right: 3px; white-space: nowrap;
}
.copy {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); background: #FFFBF7; color: var(--ink-2);
  border-radius: 999px; padding: 5px 11px; font-size: 11.5px; font-weight: 700; cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.copy:hover { background: #FFF0E5; color: var(--coral-d); }
.copy:active { transform: scale(.97); }
.copy.ok { background: #E7F6EE; border-color: #BFE3D2; color: #2F7A5C; }
.prompt-body {
  margin: 0; padding: 13px 15px 15px; font-family: var(--font);
  font-size: 13.2px; line-height: 1.8; color: #4A4350;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
  background: repeating-linear-gradient(180deg, #FFFDFA 0px, #FFFDFA 27px, #FBF6F0 28px);
}
.quote-note { margin: 0; padding: 0 15px 12px; font-size: 11px; color: var(--ink-3); }

.sec-book { background: linear-gradient(180deg, #FFFCF8, #FFF6EE); border: 1px solid #F5E6D9; border-radius: var(--r-lg); padding: 20px clamp(14px, 3vw, 22px) 22px; }
.sec-book h2 i { background: linear-gradient(140deg, #FFDCC6, #F3C7D8); }
.book-h { margin: 2px 0 4px; font-size: 15px; letter-spacing: -.02em; color: var(--coral-d); }
.sec-book .buy-line { margin-top: 16px; }
.keys { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.keys h4, .q-title {
  margin: 0 0 9px; font-size: 12.5px; font-weight: 800; color: var(--coral-d);
  letter-spacing: -.01em;
}
.key-list { margin: 0; padding-left: 20px; }
.key-list li { font-size: 13.4px; line-height: 1.8; color: #4A4350; margin-bottom: 4px; }
.q-title { margin: 20px 0 10px; }
.book-links { display: grid; gap: 8px; margin-top: 14px; }
.book-row {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px 13px;
}
.br-em { flex: none; font-size: 20px; }
.br-tx { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.br-tx b { font-size: 13.2px; letter-spacing: -.02em; line-height: 1.45; }
.br-tx small { font-size: 11px; color: var(--ink-3); }
.br-desc { font-size: 11.8px; color: var(--ink-2); line-height: 1.6; margin-top: 2px; }

.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notes li {
  position: relative; padding: 11px 14px 11px 34px; font-size: 13.2px; line-height: 1.72;
  background: #FFF6F3; border: 1px solid #F6DFD5; border-radius: var(--r-sm); color: #6B4A3E;
}
.notes li::before { content: "!"; position: absolute; left: 13px; top: 11px; font-weight: 800; color: var(--coral-d); }

.buy-line { display: flex; flex-wrap: wrap; gap: 9px; }
.btn-store {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: linear-gradient(140deg, #FFD9C2, #FFC9D2); color: #6B3B2A;
  border-radius: 999px; padding: 9px 16px; font-size: 12.5px; font-weight: 800;
  box-shadow: 0 8px 18px -14px rgba(180, 95, 60, .9);
  transition: transform .12s;
}
.btn-store:hover { transform: translateY(-1px); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink-2); box-shadow: none; }

.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.pg { display: flex; flex-direction: column; gap: 2px; max-width: 46%; }
.pg-next { text-align: right; margin-left: auto; }
.pg small { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.pg b { font-size: 13.5px; letter-spacing: -.02em; }
.pg:hover b { color: var(--coral-d); }
.notfound { font-size: 15px; }

.shelf-page { margin-top: 20px; }

/* ───────── 본문 하단 안내 ───────── */
.disclosure {
  margin: 46px auto 0; max-width: 1080px;
  border-top: 1px dashed var(--line); padding-top: 18px;
  font-size: 12.2px; color: var(--ink-3); line-height: 1.75;
}
.disclosure p { margin: 0 0 6px; }
.disclosure .dl { font-weight: 700; color: var(--ink-2); }
.foot {
  margin: 16px auto 0; max-width: 1080px; padding-bottom: 34px;
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  font-size: 12px; color: var(--ink-3);
}
.foot a { font-weight: 700; color: var(--ink-2); }
.foot .dot { opacity: .5; }

/* 토스트 */
#toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 12px);
  background: #3B3540; color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 60; max-width: 80vw;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

.scrim { display: none; }

/* ───────── 반응형 ───────── */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --side-w: 0px; }
  .side {
    width: 300px; transform: translateX(-104%); transition: transform .24s ease;
    box-shadow: 0 0 40px rgba(80, 60, 50, .18);
  }
  body.drawer .side { transform: translateX(0); }
  .side-x {
    display: grid; place-items: center; margin-left: auto; flex: none;
    width: 34px; height: 34px; border: 0; border-radius: 10px; background: #F7EDE4;
    color: var(--ink-2); cursor: pointer;
  }
  .side-x svg { width: 16px; height: 16px; }
  .scrim {
    display: block; position: fixed; inset: 0; z-index: 35; border: 0; padding: 0;
    background: rgba(58, 44, 38, .32); backdrop-filter: blur(1.5px);
  }
  .scrim[hidden] { display: none; }
  .wrap { margin-left: 0; }
  .navbtn { display: grid; place-items: center; }
  .top .brand { display: flex; }
  .top .brand .seal { width: 32px; height: 32px; border-radius: 11px; font-size: 13px; }
  .top .brand-name { font-size: 13.5px; }
  .top .brand-sub { display: none; }
  .how, .promise-list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 15.5px; }
  .notice { padding: 10px 12px; font-size: 11.8px; line-height: 1.6; gap: 8px; margin-top: 12px; }
  .notice .en { font-size: 10.8px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 15px 14px 13px; border-radius: 20px; }
  .card-name { font-size: 15px; }
  .card-tag { display: none; }
  .shelf { grid-template-columns: 1fr; }
  .detail-head { gap: 12px; }
  .d-em { width: 54px; height: 54px; border-radius: 18px; font-size: 25px; }
  .book-row { display: grid; grid-template-columns: 26px 1fr; gap: 2px 8px; align-items: start; }
  .br-em { grid-row: 1 / span 3; align-self: start; padding-top: 2px; }
  .br-tx { grid-column: 2; }
  .book-row .btn-store { grid-column: 1 / -1; justify-content: center; margin-top: 6px; }
  .pager .pg { max-width: 48%; }
  .top-crumb { display: none; }
}
@media (max-width: 430px) {
  main { padding-left: 14px; padding-right: 14px; }
  .top .brand-txt { display: none; }
  .grid { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 40px 1fr; gap: 2px 10px; align-items: center; }
  .card-em { grid-row: span 2; font-size: 22px; text-align: center; }
  .card-name { font-size: 15.5px; }
  .card-meta { grid-column: 2; }
  .chip { font-size: 11.5px; padding: 4px 10px; }
  .prompt-body { font-size: 12.6px; }
  .hero-blob { width: 240px; height: 240px; opacity: .6; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ───────── 홈 화면에 추가 (PWA) ───────── */
.pwa-add {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #F5D6C6; background: linear-gradient(145deg, #FFF2E9, #FFDFCD);
  border-radius: 999px; padding: 7px 14px 7px 11px; cursor: pointer;
  font-size: 12.5px; font-weight: 700; color: #B1512F; white-space: nowrap;
  transition: transform .12s, box-shadow .12s, background .2s;
}
.pwa-add:hover { transform: translateY(-1px); box-shadow: var(--shadow); background: linear-gradient(145deg, #FFF7F1, #FFD2BB); }
.pwa-add:active { transform: scale(.97); }
.pwa-add .pwa-em { font-size: 13px; line-height: 1; }
.pwa-tx-s { display: none; }
@media (max-width: 760px) { .pwa-tx-l { display: none; } .pwa-tx-s { display: inline; } }
@media (max-width: 560px) {
  .share { width: 40px; height: 40px; justify-content: center; padding: 0; }
  .share .share-tx { display: none; }
}

.pwa-modal { position: fixed; inset: 0; z-index: 55; display: flex; align-items: flex-end; justify-content: center; }
.pwa-modal[hidden] { display: none; }
.pwa-back {
  position: absolute; inset: 0; border: 0; padding: 0; margin: 0; cursor: pointer;
  background: rgba(58, 44, 38, .42); backdrop-filter: blur(2px);
}
.pwa-sheet {
  position: relative; width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  overscroll-behavior: contain; background: var(--paper); border-radius: 24px 24px 0 0;
  padding: 22px clamp(16px, 4vw, 30px) 26px; box-shadow: 0 -18px 50px -22px rgba(90, 63, 48, .5);
  animation: pwaUp .3s cubic-bezier(.3, 1.3, .6, 1) both;
}
@keyframes pwaUp { from { transform: translateY(26px); opacity: .55; } to { transform: none; opacity: 1; } }
@media (min-width: 720px) { .pwa-modal { align-items: center; padding: 24px; } .pwa-sheet { border-radius: 24px; } }
.pwa-x {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink-2); cursor: pointer;
}
.pwa-x svg { width: 15px; height: 15px; }
.pwa-x:hover { color: var(--coral-d); border-color: #F3C9B7; }
.pwa-head { display: flex; align-items: center; gap: 14px; padding-right: 36px; }
.pwa-ic { width: 64px; height: 64px; flex: none; border-radius: 16px; box-shadow: 0 10px 22px -14px rgba(120, 70, 50, .55); }
.pwa-hd-tx { min-width: 0; }
.pwa-kicker { margin: 0 0 2px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-d); }
.pwa-hd-tx h2 { margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
.pwa-sub { margin: 3px 0 0; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.pwa-lead { margin: 14px 0 0; font-size: 12.6px; line-height: 1.7; color: var(--ink-2); }
.pwa-now {
  margin: 14px 0 2px; width: 100%; height: 46px; border: 0; border-radius: 14px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(150deg, #F79A76, #D96A47); box-shadow: 0 14px 24px -18px rgba(200, 90, 60, .9);
}
.pwa-now:hover { filter: brightness(1.03); }
.pwa-steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pwa-step { padding: 11px 13px; border-radius: 14px; background: #FFF8F2; border: 1px solid var(--line-2); }
.pwa-step.is-you { background: linear-gradient(145deg, #FFF3EA, #FFE7D9); border-color: #F2C9B6; }
.pwa-step-k { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pwa-step-k b { font-size: 12.4px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.pwa-step-k span { font-size: 11.6px; line-height: 1.6; color: var(--ink-2); }
.pwa-step-k em {
  display: inline-block; align-self: flex-start; margin: 0 0 2px; padding: 2px 8px; border-radius: 999px;
  font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--coral);
}
.pwa-step-k .kbd {
  display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 6px; background: #fff;
  border: 1px solid var(--line); font-style: normal; font-size: 11px; line-height: 16px; text-align: center; color: var(--ink);
}
.pwa-note { margin: 13px 0 0; font-size: 10.8px; line-height: 1.65; color: var(--ink-3); }
body.pwa-lock { overflow: hidden; }

/* ───────── 사이드바 안에서 찾기 ───────── */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.side-find{display:flex;align-items:center;gap:7px;margin:0 16px 8px;padding:7px 11px;background:#fff;border:1px solid var(--line);border-radius:12px}
.side-find:focus-within{border-color:#EFC3AE;box-shadow:0 0 0 3px rgba(233,127,94,.12)}
.sf-ico{font-size:12px;line-height:1}
.side-find input{flex:1;min-width:0;border:0;outline:none;background:transparent;font:inherit;font-size:12.5px;color:var(--ink);padding:1px 0}
.side-find input::-webkit-search-cancel-button{-webkit-appearance:none}
.side-none{margin:6px 8px;font-size:11.8px;line-height:1.6;color:var(--ink-3)}
@media (max-width:960px){.side-find{margin:0 14px 10px}}

/* ───────── 통합 검색 ───────── */
.sblock{scroll-margin-top:80px}
.sbox{display:flex;align-items:center;gap:10px;background:#fff;border:1.5px solid var(--line);border-radius:16px;padding:11px 15px;max-width:720px;box-shadow:var(--shadow);transition:border-color .15s,box-shadow .15s}
.sbox:focus-within{border-color:#EFC0AA;box-shadow:0 0 0 4px rgba(233,127,94,.1),var(--shadow)}
.sico{font-size:16px;line-height:1}
.sbox input{flex:1;min-width:0;border:0;outline:none;background:transparent;font:inherit;font-size:15.5px;color:var(--ink);padding:2px 0}
.sbox input::-webkit-search-cancel-button{-webkit-appearance:none}
.sclear{flex:none;border:1px solid var(--line);background:#FFF8F2;color:var(--ink-2);border-radius:999px;padding:4px 10px;font-size:11.5px;font-weight:700;cursor:pointer}
.quickq{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0;max-width:720px}
.qchip{border:1px solid #F0DFD2;background:#FFF9F4;color:#7A5F50;border-radius:999px;padding:4px 11px;font-size:12px;font-weight:700;cursor:pointer}
.qchip:hover{background:#FFEFE2;color:var(--coral-d)}
.sres{margin:12px 0 0;max-width:760px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:8px;box-shadow:var(--shadow-2)}
.sres[hidden]{display:none}
.scount{margin:4px 10px 6px;font-size:11.5px;font-weight:700;color:var(--coral-d)}
.scount span{font-weight:600;color:var(--ink-3);margin-left:6px}
.sgroup{margin:8px 10px 2px;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);font-weight:800}
.srow{display:flex;align-items:center;gap:11px;width:100%;text-align:left;border:0;background:transparent;border-radius:12px;padding:9px 10px;cursor:pointer;font:inherit}
.srow:hover,.srow:focus-visible{background:#FFF4EA;outline:none}
.sem{flex:none;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#FFF7F1;font-size:15px}
.stx{flex:1;min-width:0;display:flex;flex-direction:column}
.stx b{font-size:13.5px;letter-spacing:-.02em}
.stx small{font-size:11.5px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sgo{flex:none;color:var(--ink-3);font-size:13px}
.sempty{margin:10px 12px;font-size:12.8px;color:var(--ink-2);line-height:1.7}

/* ───────── 한눈에 보기 카드 ───────── */
.quick2{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:820px}
.qcard{position:relative;display:flex;flex-direction:column;gap:5px;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:17px 18px 15px;box-shadow:var(--shadow);transition:transform .15s,box-shadow .15s}
.qcard:hover{transform:translateY(-2px);box-shadow:var(--shadow-2)}
.qcard-a{background:linear-gradient(150deg,#EAF3FD 0%,#fff 70%)}
.qcard-b{background:linear-gradient(150deg,#FFF3E4 0%,#fff 70%)}
.qc-em{font-size:22px;line-height:1}
.qcard b{font-size:15.5px;letter-spacing:-.02em}
.qcard p{margin:0;font-size:12.3px;color:var(--ink-2);line-height:1.6}
.qc-go{margin-top:6px;font-size:11.5px;font-weight:800;color:var(--coral-d)}

/* ───────── 즐겨찾기 · 최근 본 ───────── */
.minigrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:900px}
.minigrid.wide{grid-template-columns:repeat(2,1fr)}
.minicard{display:flex;flex-direction:column;gap:2px;background:linear-gradient(160deg,var(--c1) 0%,#fff 75%);border:1px solid #fff;border-radius:14px;padding:12px 13px;box-shadow:var(--shadow);transition:transform .14s}
.minicard:hover{transform:translateY(-2px)}
.minicard>span{font-size:18px;line-height:1.2}
.minicard b{font-size:13px;letter-spacing:-.02em;line-height:1.4}
.minicard small{font-size:11px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fav-foot{display:flex;align-items:center;gap:12px;margin-top:10px;font-size:11.5px;color:var(--ink-3);font-weight:700}
.tiny-btn{border:1px solid var(--line);background:#fff;color:var(--ink-3);border-radius:999px;padding:3px 10px;font-size:11px;font-weight:700;cursor:pointer}
.tiny-btn:hover{color:var(--coral-d);border-color:#F3C9B7}
.empty-line{margin:0;font-size:12.8px;color:var(--ink-3);background:#FFFBF7;border:1px dashed var(--line);border-radius:var(--r-md);padding:13px 15px;max-width:760px}

/* 카드·상세의 ⭐ */
.card .fav{position:absolute;right:12px;bottom:11px;z-index:2;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.85);border:1px solid var(--line);color:#C7B6A9;font-size:15px;line-height:1;cursor:pointer;transition:transform .12s,color .12s,background .12s}
.card .fav:hover{transform:scale(1.08);color:#E0A21C;background:#fff}
.card .fav.on{color:#E4A11B;border-color:#F0D9A4;background:#FFFBEF}
.fav-detail{display:inline-flex;align-items:center;gap:6px;margin:10px 0 0;border:1px solid #F0DCC9;background:#fff;border-radius:999px;padding:6px 13px;font-size:12px;font-weight:800;color:#8A6A55;cursor:pointer}
.fav-detail:hover{border-color:#EFC3A6}
.fav-detail.on{background:#FFFBEF;border-color:#F0D9A4;color:#B4790F}

/* ───────── 비교표 ───────── */
.tblwrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:var(--r-md);background:#fff;box-shadow:var(--shadow)}
.cmp{width:100%;border-collapse:collapse;font-size:12.5px;table-layout:fixed}
.cmp thead th{position:sticky;top:0;background:#FFF6EE;color:#7A5F50;font-size:11px;letter-spacing:.02em;font-weight:800;text-align:left;padding:10px 11px;border-bottom:1px solid var(--line);white-space:nowrap}
.cmp tbody th,.cmp tbody td{padding:11px;border-bottom:1px solid var(--line-2);vertical-align:top;text-align:left}
.cmp tbody tr:last-child th,.cmp tbody tr:last-child td{border-bottom:0}
.cmp tbody th{position:sticky;left:0;background:#fff;width:24%;z-index:1}
.ctool{display:flex;gap:9px;align-items:flex-start;text-decoration:none;color:inherit}
.ctool>span{flex:none;width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(150deg,var(--c1),#fff);font-size:15px}
.ctool b{display:block;font-size:13.5px;letter-spacing:-.02em}
.ctool small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10.8px;color:var(--ink-3);line-height:1.5;margin-top:2px;font-weight:500}
.lv{display:inline-block;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:700;white-space:nowrap;background:#F4F0EC;color:#7C7382}
.lv-strong{background:#E4F4EC;color:#2F7A5C}
.lv-fair{background:#FFF3DE;color:#9A6B1E}
.lv-weak{background:#FBE7E1;color:#A9503A}
.lv-yes{background:#EAF3FD;color:#38628C}
.lv-none{background:#F5F2EE;color:#A9A0AA}
.cmp th:nth-child(2),.cmp td:nth-child(2){width:14%}
.csite{display:block;font-size:11.8px;font-weight:700;color:var(--coral-d);line-height:1.7}
.cdate{display:inline-block;margin-top:3px;font-size:10.5px;color:var(--ink-3);font-weight:600}
.cmp-mobile{display:none;margin:0 0 8px;font-size:11.5px;color:var(--ink-3);font-weight:700}
.cmp-cards{display:none;gap:10px;grid-template-columns:1fr}
.cc{background:#fff;border:1px solid var(--line);border-radius:var(--r-md);padding:12px 13px;box-shadow:var(--shadow)}
.cc-head{display:flex;align-items:flex-start;gap:10px}
.cc-em{flex:none;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(150deg,var(--c1),#fff);font-size:16px}
.cc-tx{flex:1;min-width:0}
.cc-tx b{display:block;font-size:14px;letter-spacing:-.02em}
.cc-tx small{display:block;font-size:11px;color:var(--ink-3);line-height:1.55;margin-top:1px}
.cc-go{flex:none;color:var(--ink-3);font-size:13px;padding-top:4px}
.cc-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0;border-top:1px dashed var(--line-2)}
.cc-row:first-of-type{margin-top:8px}
.cc-k{font-size:11.5px;font-weight:700;color:var(--ink-2)}
.cc-v{text-align:right}
.cc-sites{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding-top:8px;border-top:1px dashed var(--line-2);margin-top:2px}
.cmp-legend{margin:12px 0 0;font-size:11.8px;line-height:1.7;color:var(--ink-3);max-width:820px}

/* ───────── 용어사전 ───────── */
.gls-count{margin:0 0 12px;font-size:12px;font-weight:700;color:var(--coral-d)}
.termlist{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:920px}
.term{background:#fff;border:1px solid var(--line);border-radius:var(--r-md);padding:14px 16px;scroll-margin-top:90px}
.term h2{margin:0 0 5px;font-size:14.5px;letter-spacing:-.02em}
.term p{margin:0;font-size:12.8px;line-height:1.75;color:#4A4350}
.flash{animation:flash 1.6s ease}
@keyframes flash{0%,100%{box-shadow:0 0 0 0 rgba(233,127,94,0)}30%{box-shadow:0 0 0 4px rgba(233,127,94,.35)}}

/* ───────── 공식 사이트 · 오류 제보 ───────── */
.offi{background:#fff;border:1px solid var(--line);border-radius:var(--r-md);padding:14px 16px}
.offi-main{display:inline-flex;align-items:center;gap:10px;background:#FFF7F1;border:1px solid #F5E2D3;border-radius:12px;padding:9px 13px}
.offi-main:hover{border-color:#EFC7AE}
.oi-em{font-size:18px}
.offi-main b{display:block;font-size:13px;letter-spacing:-.01em}
.offi-main small{display:block;font-size:11px;color:var(--ink-3)}
.offi-rel{margin-top:12px}
.offi-rel .ol{margin:0 0 6px;font-size:11.5px;font-weight:800;color:var(--ink-2)}
.offi-rel ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.offi-rel li a{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#FFFBF7;border:1px solid var(--line-2);border-radius:10px;padding:7px 11px;font-size:12px}
.offi-rel li a:hover{background:#FFF4EA}
.offi-rel li a b{font-weight:700}
.osub{font-size:11px;color:var(--ink-3);font-weight:600}
.offi-note{margin:10px 0 0;font-size:11.5px;color:var(--ink-3);line-height:1.65}
.report{margin-top:26px;background:#FFF7F3;border:1px dashed #F0D6C6;border-radius:var(--r-md);padding:14px 16px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.report b{font-size:13px;letter-spacing:-.01em}
.report p{margin:3px 0 0;font-size:11.8px;color:var(--ink-2);line-height:1.6;max-width:520px}
.report-btn{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #EFC9B2;border-radius:999px;padding:8px 14px;font-size:12px;font-weight:800;color:var(--coral-d);white-space:nowrap}
.report-btn:hover{background:#FFF0E4}
.report-mail{margin:0;font-size:11px;color:var(--ink-3);flex-basis:100%}

@media (max-width:900px){
  .minigrid,.minigrid.wide{grid-template-columns:repeat(2,1fr)}
  .termlist{grid-template-columns:1fr}
}
@media (max-width:1240px){
  .quick2{grid-template-columns:1fr}
  .tblwrap{display:none}
  .cmp-cards{display:grid}
  .cmp-page{max-width:900px}
  .sbox{padding:9px 12px;border-radius:14px}
  .sbox input{font-size:14.5px}
  .sres{border-radius:16px}
  .card .fav{right:9px;bottom:9px;width:28px;height:28px;font-size:14px}
  .report{padding:13px 14px}
  .report-btn{width:100%;justify-content:center}
}
@media (min-width:900px) and (max-width:1240px){
  .cmp-cards{grid-template-columns:1fr 1fr}
}
@media (max-width:430px){
  .minigrid,.minigrid.wide{grid-template-columns:1fr}
}

/* 비교표 열 너비 — 표가 잘리지 않게 */
.cmp-page{max-width:1000px}
.cmp tbody th,.cmp thead th:first-child{width:23%}
.cmp th:nth-child(2),.cmp td:nth-child(2){width:15%}
.cmp th:nth-child(3),.cmp td:nth-child(3){width:9%}
.cmp th:nth-child(4),.cmp td:nth-child(4){width:9%}
.cmp th:nth-child(5),.cmp td:nth-child(5){width:11%}
.cmp th:nth-child(6),.cmp td:nth-child(6){width:11%}
.cmp th:nth-child(7),.cmp td:nth-child(7){width:9%}
.cmp th:nth-child(8),.cmp td:nth-child(8){width:13%}
.cmp thead th{white-space:normal}
.cmp .csite{white-space:normal;word-break:break-word}
@media (max-width:1180px){.cmp{font-size:12px}.cmp tbody th,.cmp thead th,.cmp tbody td{padding:9px 8px}}
.offi-sites{display:flex;flex-wrap:wrap;gap:8px}
.offi-sites .offi-main{flex:1 1 auto;min-width:190px}

/* ═════════ 실전 도구 — 무엇을 할까요? · 프롬프트 도서관 · 코스 · 비교실 · 오류 해결실 ═════════ */
.detail.wide { max-width: 980px; }

/* ── 🧭 무엇을 할까요? ── */
.pick-hint { margin: 0 0 10px; font-size: 12.6px; color: var(--ink-3); font-weight: 600; }
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.pick-btn {
  display: flex; align-items: center; gap: 9px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 13px; cursor: pointer; font: inherit; color: var(--ink);
  transition: transform .12s, box-shadow .12s, background .18s, border-color .18s;
  min-width: 0;
}
.pick-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pick-btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.pick-btn .pb-em { font-size: 19px; line-height: 1; flex: none; }
.pick-btn b { font-size: 13.2px; letter-spacing: -.02em; line-height: 1.35; font-weight: 700; }
.pick-btn.on { background: linear-gradient(145deg, #FFF3EA, #FFE7D8); border-color: #F3CDB7; box-shadow: inset 0 0 0 1px #F7D8C6; }
.pick-panel { margin-top: 14px; }
.pp { background: linear-gradient(180deg, #FFFDFB, #FFF7F1); border: 1px solid #F5E6D9; border-radius: var(--r-lg); padding: 16px clamp(13px, 2.6vw, 20px) 18px; }
.pp-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.pp-em { flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.pp-head b { display: block; font-size: 16px; letter-spacing: -.03em; }
.pp-head p { margin: 3px 0 0; font-size: 13.4px; color: var(--ink-2); line-height: 1.7; }
.pp-lab { margin: 0 0 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: var(--coral-d); }
.pp-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ppt { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; min-width: 0; }
.ppt:hover { border-color: #F3CDB7; }
.ppt-em { font-size: 16px; }
.ppt-tx { display: flex; flex-direction: column; min-width: 0; }
.ppt-tx b { font-size: 12.8px; letter-spacing: -.02em; }
.ppt-tx small { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.pp-recipe { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12.6px; font-weight: 700; color: var(--coral-d); }
.pp-recipe:hover { text-decoration: underline; }

/* ── ✨ 오늘의 프롬프트 ── */
.today { margin: 4px 0 18px; background: linear-gradient(150deg, #FFF1E2 0%, #FFFDFB 62%); border: 1px solid #F6DFCB; border-radius: var(--r-lg); padding: 15px clamp(13px, 2.6vw, 20px) 16px; }
.td-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 9px; }
.td-badge { font-size: 12.5px; font-weight: 800; color: #B1512F; }
.td-date { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.td-cat { margin: 0 0 3px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.today h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.03em; }
.td-use { margin: 0 0 10px; font-size: 12.8px; color: var(--ink-2); }
.td-use b, .td-tip b { color: var(--coral-d); font-size: 11.5px; margin-right: 4px; }
.td-tip { margin: 10px 0 0; font-size: 12.4px; color: var(--ink-2); line-height: 1.7; }

/* ── 분야 칩 ── */
.cat-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; font-size: 12.3px; font-weight: 600; color: var(--ink-2);
  transition: background .16s, border-color .16s;
}
.cat-chip:hover { background: #FFF3EA; border-color: #F3CDB7; color: var(--coral-d); }
.cat-chip em { font-style: normal; font-size: 10.5px; color: var(--ink-3); font-weight: 700; }

/* ── 퀵 카드 여섯 장 ── */
.quick6 { max-width: 940px; }
.qcard-c { background: linear-gradient(150deg, #E7F4EC 0%, #fff 70%); }
.qcard-d { background: linear-gradient(150deg, #EDE8FA 0%, #fff 70%); }
.qcard-e { background: linear-gradient(150deg, #FFF0DA 0%, #fff 70%); }
.qcard-f { background: linear-gradient(150deg, #FBE7EA 0%, #fff 70%); }

/* ── 📚 프롬프트 도서관 ── */
.pcat { margin-top: clamp(24px, 3.4vw, 34px); }
.pcat-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 17px; letter-spacing: -.03em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pcat-h em { font-style: normal; font-size: 11.5px; color: var(--ink-3); font-weight: 700; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px clamp(12px, 2.4vw, 16px) 14px; box-shadow: 0 6px 18px -16px rgba(90, 63, 48, .5); margin-bottom: 11px; scroll-margin-top: 80px; }
.pc-head { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.pc-num { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 8px; background: #FFF1E5; color: var(--coral-d); font-size: 11px; font-weight: 800; }
.pc-head h3 { flex: 1; margin: 0; font-size: 14.5px; letter-spacing: -.02em; line-height: 1.5; }
.pc-use { margin: 0 0 9px; font-size: 12.4px; color: var(--ink-2); }
.pc-use b { color: var(--coral-d); font-size: 11.3px; margin-right: 4px; }
.pc-steps { margin: 0 0 10px; background: #FFF8F1; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px 10px; }
.pc-steps h4 { margin: 0 0 5px; font-size: 11.3px; letter-spacing: .02em; color: var(--ink-3); }
.pc-steps ol { margin: 0; padding-left: 18px; }
.pc-steps li { font-size: 12.6px; color: #4A4350; line-height: 1.72; margin: 0 0 4px; }
.pc-steps li:last-child { margin-bottom: 0; }
.pcard .prompt-body { border-radius: 10px; margin: 0 0 9px; }
.pc-more { border-top: 1px dashed var(--line); padding-top: 8px; }
.pc-more summary { font-size: 12.2px; font-weight: 700; color: var(--ink-2); cursor: pointer; list-style: none; }
.pc-more summary::-webkit-details-marker { display: none; }
.pc-more summary::before { content: "＋ "; color: var(--coral-d); font-weight: 800; }
.pc-more[open] summary::before { content: "－ "; }
.pc-blk { margin-top: 9px; background: #FFFAF5; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; }
.pc-blk h4 { margin: 0 0 3px; font-size: 11.3px; letter-spacing: .02em; color: var(--ink-3); }
.pc-blk p { margin: 0; font-size: 12.6px; color: #4A4350; line-height: 1.75; }
.pc-blk.pc-tip { background: #F1F8F3; border-color: #DCEBE0; }
.pc-blk.pc-tip h4 { color: #3F7A64; }

/* ── 🎓 초보자 6단계 ── */
.cs-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; background: #FFF3EA; border: 1px solid #F6DFCB; border-radius: 12px; padding: 10px 14px; font-size: 12.8px; font-weight: 700; color: #9B5236; margin-bottom: 16px; }
.cstep { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(14px, 2.6vw, 20px); margin-bottom: 13px; box-shadow: 0 8px 22px -20px rgba(90, 63, 48, .55); scroll-margin-top: 80px; }
.cstep.done { background: linear-gradient(180deg, #F7FCF8, #fff); border-color: #CFE7D7; }
.cs-head { display: flex; gap: 12px; align-items: center; margin-bottom: 9px; }
.cs-num { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg, #FFE2CE, #F8D3DE); font-weight: 800; font-size: 16px; color: #A24E31; }
.cs-kicker { margin: 0; font-size: 11px; font-weight: 800; color: var(--ink-3); letter-spacing: .04em; }
.cs-head h3 { margin: 1px 0 0; font-size: 16px; letter-spacing: -.03em; line-height: 1.45; }
.cs-why { margin: 0 0 12px; font-size: 13.6px; color: #4A4350; line-height: 1.8; }
.cs-lab { margin: 14px 0 7px; font-size: 11.6px; font-weight: 800; color: var(--coral-d); letter-spacing: .02em; }
.cs-steps { margin: 0; padding-left: 22px; }
.cs-steps li { font-size: 13.2px; line-height: 1.8; color: #4A4350; margin-bottom: 5px; }
.cs-tip { margin: 9px 0 0; font-size: 12.3px; color: var(--ink-3); line-height: 1.7; }
.c-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; background: #F7F1EC; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 12.2px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.c-btn.on { background: #E7F6EE; border-color: #BFE3D2; color: #2F7A5C; }
.tiny-btn { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.tiny-btn:hover { border-color: #F3CDB7; color: var(--coral-d); }

/* ── ⚖️ 비교실 ── */
.lab-note { margin: 0 0 18px; font-size: 12.2px; color: var(--ink-3); background: #FFFBF6; border: 1px dashed var(--line); border-radius: 12px; padding: 10px 13px; line-height: 1.7; }
.lab-note-2 { margin: 20px 0 0; background: #FFF3EA; border-style: solid; border-color: #F6DFCB; color: #8A5A44; font-weight: 600; }
.labbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(14px, 2.6vw, 20px); margin-bottom: 14px; }
.lab-t { margin: 0 0 10px; font-size: 16px; letter-spacing: -.03em; }
.lab-q .prompt-body { background: #FFFBF6; }
.lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.lab-card { background: #FFFDFB; border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; min-width: 0; }
.lc-ai { margin: 0 0 3px; font-size: 13px; font-weight: 800; letter-spacing: -.02em; color: var(--coral-d); }
.lc-mood { margin: 0 0 7px; font-size: 11.5px; color: var(--ink-3); }
.lc-mood span { font-weight: 800; color: var(--ink-2); }
.lc-out { margin: 0; font-size: 12.4px; color: #4A4350; line-height: 1.75; }
.lab-verdict { margin-top: 12px; background: #F3F7FB; border: 1px solid #DFE8F2; border-radius: 14px; padding: 11px 14px; }
.lab-verdict b { display: block; font-size: 11.6px; color: #47688C; margin-bottom: 3px; }
.lab-verdict p { margin: 0; font-size: 12.8px; color: #43505F; line-height: 1.75; }

/* ── 🛠️ 오류 해결실 ── */
.fixcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(14px, 2.6vw, 19px); margin-bottom: 13px; scroll-margin-top: 80px; }
.fx-head { display: flex; gap: 10px; align-items: center; margin-bottom: 9px; }
.fx-em { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font-size: 17px; background: #FFF1E5; border-radius: 11px; }
.fx-head h3 { margin: 0; font-size: 15.5px; letter-spacing: -.03em; }
.fx-line { margin: 0 0 6px; font-size: 13.2px; color: #4A4350; line-height: 1.75; }
.fx-line b { display: inline-block; margin-right: 5px; font-size: 11.2px; color: var(--coral-d); letter-spacing: .02em; }
.fx-cause { color: var(--ink-2); font-size: 12.8px; }
.fx-steps { margin: 0 0 12px; padding-left: 22px; }
.fx-steps li { font-size: 13px; line-height: 1.78; color: #4A4350; margin-bottom: 5px; }
.fx-ask { margin-top: 4px; }

/* ── 도구 상세 표준 항목 ── */
.sec-spec { background: #FBFDFB; border: 1px solid #E3EEE6; border-radius: var(--r-lg); padding: 18px clamp(13px, 2.8vw, 20px) 16px; }
.sec-spec h2 i { background: linear-gradient(140deg, #D7EEE0, #E7F0FA); }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.spec h4 { margin: 0 0 4px; font-size: 11.5px; letter-spacing: .02em; color: #3F7A64; font-weight: 800; }
.spec p { margin: 0; font-size: 12.8px; color: #4A4350; line-height: 1.75; }
.spec-wide { grid-column: 1 / -1; }
.spec-steps { margin: 0; padding-left: 20px; }
.spec-steps li { font-size: 12.8px; line-height: 1.8; color: #4A4350; }
.spec-priv { background: #FFFBF3; border-color: #F1E4C9; }
.spec-priv h4 { color: #8A6A2F; }
.spec-note { margin: 11px 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.7; }

/* ── 좁은 화면 ── */
@media (max-width: 960px) {
  .pick-grid { grid-template-columns: repeat(2, 1fr); }
  .lab-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .pick-btn { padding: 10px 11px; gap: 7px; }
  .pick-btn b { font-size: 12.6px; }
  .spec-grid { grid-template-columns: 1fr; }
  .cs-num { width: 32px; height: 32px; border-radius: 11px; font-size: 14px; }
  .pp-head { gap: 9px; }
  .pp-em { width: 38px; height: 38px; font-size: 19px; border-radius: 12px; }
  .ppt-tx small { max-width: 150px; }
  .pcard { padding: 12px 12px 13px; }
  .pc-head h3 { font-size: 13.6px; }
  .lab-verdict, .lab-note { font-size: 12.2px; }
}
@media (max-width: 430px) {
  .pick-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .today { padding: 13px 12px 14px; }
  .quick6 { grid-template-columns: 1fr; }
  .pc-head { flex-wrap: wrap; }
  .pc-head h3 { flex: 1 1 100%; order: 3; }
  .pc-head .copy { margin-left: auto; }
}

/* ───────── 언어 전환 KR · EN · JP · CN ───────── */
/* 네 개가 되어도 좁은 화면에서 한 줄에 들어가고, 가로로 넘치지 않게 합니다. */
.lang { flex: none; }
.lang button { white-space: nowrap; }
.notice .en[hidden], .disclosure [hidden] { display: none; }

@media (max-width: 560px) {
  .lang { padding: 2px; }
  .lang button { padding: 4px 7px; font-size: 10.5px; letter-spacing: 0; }
  .top-tools { gap: 6px; }
  .pwa-add { padding: 7px 10px 7px 9px; }
  .pwa-add .pwa-tx-s { display: none; }
}
@media (max-width: 380px) {
  .lang button { padding: 4px 6px; font-size: 10px; }
}

/* 日本語・中文は文字の間で改行できるようにします（韓国語の keep-all 을 되돌림). */
html[lang="ja"] body,
html[lang="zh-CN"] body { word-break: normal; line-break: strict; overflow-wrap: break-word; }
.notice p { min-width: 0; }

/* 日本語・中文の短い名前（画像AI など）が縦に割れないように */
.ctool b { word-break: keep-all; }
.cmp tbody th { min-width: 96px; }
