/* Pikkola Meta — styles */

:root {
  --bg: #08090b;
  --bg-soft: #0b0d10;
  --surface: #0f1116;
  --surface-2: #12151b;
  --surface-3: #171b22;
  --border: rgba(255, 255, 255, .075);
  --border-mid: rgba(255, 255, 255, .11);
  --border-strong: rgba(255, 255, 255, .18);
  --text: #e9ecf1;
  --text-dim: #b6bcc6;
  --muted: #8d949f;
  --faint: #666e7a;
  --accent: #8f9bff;
  --accent-ink: #0a0b10;
  --accent-soft: rgba(143, 155, 255, .13);
  --good: #3ddc97;
  --good-bg: rgba(61, 220, 151, .13);
  --good-text: #a9f2d2;
  --warn: #efb45f;
  --warn-bg: rgba(239, 180, 95, .12);
  --warn-text: #f4d6a8;
  --bad: #f2777a;
  --bad-bg: rgba(242, 119, 122, .12);
  --bad-text: #ffc2c3;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, .035) inset, 0 30px 60px -40px rgba(0, 0, 0, .9);
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial,
    "Apple SD Gothic Neo", "Noto Sans KR", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="light"] {
  --bg: #fbfbfc;
  --bg-soft: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #fcfcfd;
  --surface-3: #f4f5f7;
  --border: rgba(12, 16, 26, .085);
  --border-mid: rgba(12, 16, 26, .13);
  --border-strong: rgba(12, 16, 26, .22);
  --text: #14171d;
  --text-dim: #3d434e;
  --muted: #646b77;
  --faint: #8b919c;
  --accent: #4f5bd5;
  --accent-soft: rgba(79, 91, 213, .09);
  --good: #109c68;
  --good-bg: rgba(16, 156, 104, .12);
  --good-text: #0a6b48;
  --warn: #b57612;
  --warn-bg: rgba(197, 138, 33, .14);
  --warn-text: #8a5a09;
  --bad: #c0393c;
  --bad-bg: rgba(192, 57, 60, .1);
  --bad-text: #8f2023;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 24px 48px -36px rgba(12, 16, 26, .45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(143, 155, 255, .11), transparent 70%),
    radial-gradient(700px 380px at 88% 4%, rgba(61, 220, 151, .045), transparent 70%);
}
[data-theme="light"] body::before {
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(79, 91, 213, .08), transparent 70%),
    radial-gradient(700px 380px at 88% 4%, rgba(16, 156, 104, .04), transparent 70%);
}

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; position: relative; z-index: 1; }
.narrow { width: min(760px, 100% - 40px); }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.028em; line-height: 1.12; }
p { margin: 0; }
button { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 60px; }

.brand { display: inline-flex; align-items: center; gap: 9px; letter-spacing: -0.02em; }
.brand-mark { width: 24px; height: 24px; color: var(--accent); flex: none; }
.brand-name { font-size: 16px; font-weight: 620; letter-spacing: -0.02em; }
.brand-tool {
  font-size: 12px; font-weight: 560; color: var(--muted); letter-spacing: .04em;
  padding: 2px 7px; border: 1px solid var(--border-mid); border-radius: 6px;
  text-transform: uppercase; line-height: 1.5;
}

.site-nav { display: flex; gap: 2px; margin-left: 4px; }
.site-nav a {
  font-size: 13.5px; color: var(--muted); padding: 7px 10px; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.site-nav a:hover { color: var(--text); background: var(--surface-3); }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: flex; align-items: center; gap: 2px; padding: 3px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.lang-btn {
  border: 0; background: transparent; color: var(--muted);
  font-size: 12px; font-weight: 550; letter-spacing: .01em;
  padding: 4px 8px; border-radius: 7px; cursor: pointer; transition: .15s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 var(--border) inset; }

.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  border-radius: 10px; cursor: pointer; transition: .15s ease; flex: none;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.small { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn.small svg { width: 15px; height: 15px; }
.icon-btn:disabled { opacity: .4; cursor: default; }

.ico-sun { display: none; }
[data-theme="light"] .ico-sun { display: block; }
[data-theme="light"] .ico-moon { display: none; }

/* ---------- hero ---------- */

.hero { padding: 42px 0 20px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 550;
}
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-bg); }
.hero h1 {
  margin-top: 13px; text-wrap: balance;
  font-size: clamp(1.95rem, 1.3rem + 2.6vw, 3.05rem);
  max-width: 26ch; letter-spacing: -0.035em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: 14px; max-width: 70ch; color: var(--muted); font-size: 15px; }
.hero .lede b { color: var(--text-dim); font-weight: 550; }

/* ---------- tool shell ---------- */

.tool-section { padding-top: 14px; }

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
}

.tool-grid { display: grid; grid-template-columns: minmax(320px, 396px) minmax(0, 1fr); }

.col-editor { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; }
.col-preview { display: flex; flex-direction: column; min-width: 0; background: var(--surface-2); border-radius: 0 var(--radius) 0 0; }

.panel-head {
  display: flex; align-items: center; gap: 8px; min-height: 46px;
  padding: 8px 12px 8px 14px; border-bottom: 1px solid var(--border);
}
.panel-title {
  font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
  font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px;
}
.step-num {
  display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--border-strong); font-size: 9.5px; color: var(--faint);
  font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.panel-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }

/* ---------- form ---------- */

.form { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 13px; }

.presets { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 2px 0 3px; }
.presets-label { font-size: 11px; color: var(--faint); letter-spacing: .02em; }
.preset {
  border: 1px solid var(--border); background: var(--surface-3); color: var(--text-dim);
  font-size: 11.5px; font-weight: 520; padding: 4px 9px; border-radius: 999px;
  cursor: pointer; transition: .15s ease; white-space: nowrap;
}
.preset:hover { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--text); }

.field { display: flex; flex-direction: column; gap: 5px; }
.field-head { display: flex; align-items: center; gap: 6px; }
.field label { font-size: 12px; font-weight: 560; color: var(--text-dim); letter-spacing: -0.005em; }
.field .hint { font-size: 11px; color: var(--faint); }
.field .count {
  margin-left: auto; font-size: 11px; color: var(--faint);
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.field .count.warn { color: var(--warn); }
.field .count.bad { color: var(--bad); }
.field .count.good { color: var(--good); }

.input, .textarea, .select {
  width: 100%; border: 1px solid var(--border-mid); background: var(--surface-2);
  color: var(--text); border-radius: 9px; padding: 8px 10px;
  font-family: inherit; font-size: 13px; line-height: 1.5; outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); background: var(--surface); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.textarea { resize: vertical; min-height: 66px; max-height: 180px; }
.select { appearance: none; cursor: pointer; padding-right: 26px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%238d949f' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 12px;
}
.input-group { display: flex; align-items: stretch; gap: 6px; }
.input-group .input { min-width: 0; }
.prefix {
  display: inline-flex; align-items: center; padding: 0 9px; border-radius: 9px;
  border: 1px solid var(--border-mid); background: var(--surface-3); color: var(--faint);
  font-size: 13px; flex: none;
}

.img-row { display: flex; gap: 6px; }
.img-row .input { flex: 1 1 auto; }
.thumb {
  width: 34px; height: 34px; flex: none; border-radius: 7px; border: 1px solid var(--border-mid);
  background: var(--surface-3) center/cover no-repeat; display: grid; place-items: center;
  color: var(--faint); overflow: hidden;
}
.thumb svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.img-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--faint); }
.img-meta .tag {
  border: 1px solid var(--border); background: var(--surface-3); border-radius: 5px;
  padding: 1px 6px; font-variant-numeric: tabular-nums;
}
.img-meta .tag.good { border-color: color-mix(in srgb, var(--good) 34%, transparent); background: var(--good-bg); color: var(--good-text); }
.img-meta .tag.warn { border-color: color-mix(in srgb, var(--warn) 34%, transparent); background: var(--warn-bg); color: var(--warn-text); }
.img-meta .tag.bad { border-color: color-mix(in srgb, var(--bad) 34%, transparent); background: var(--bad-bg); color: var(--bad-text); }

details.more { border-top: 1px dashed var(--border); padding-top: 11px; }
details.more > summary {
  list-style: none; cursor: pointer; font-size: 11.5px; font-weight: 550; color: var(--muted);
  display: flex; align-items: center; gap: 6px; user-select: none;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before {
  content: "▸"; font-size: 9px; color: var(--faint); transition: transform .15s ease;
}
details.more[open] > summary::before { transform: rotate(90deg); }
details.more .more-body { padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.color-row { display: flex; align-items: center; gap: 8px; }
.color-row input[type="color"] {
  width: 34px; height: 32px; padding: 2px; border: 1px solid var(--border-mid);
  border-radius: 8px; background: var(--surface-2); cursor: pointer;
}
.color-row .input { flex: 1; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 12px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface-3); color: var(--text-dim);
  font-size: 13px; font-weight: 540; cursor: pointer; transition: .15s ease; white-space: nowrap;
}
.btn:hover { color: var(--text); border-color: var(--border-strong); }
.btn:disabled { opacity: .45; cursor: default; }
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-3); }
.btn-primary { background: var(--text); color: var(--bg); border-color: transparent; font-weight: 600; padding-inline: 16px; }
.btn-primary:hover { color: var(--bg); opacity: .92; }
.btn-sm { padding: 5px 9px; font-size: 12px; border-radius: 7px; }
.btn-sm svg { width: 12.5px; height: 12.5px; }
.chip {
  border: 0; background: transparent; color: var(--faint); cursor: pointer;
  font-size: 12px; font-weight: 520; padding: 4px 7px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 5px; transition: .15s ease; white-space: nowrap;
}
.chip:hover { color: var(--text); background: var(--surface-3); }
.chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- preview ---------- */

.pv-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pv-tabs::-webkit-scrollbar { display: none; }
.pv-tab {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 12px; font-weight: 550; padding: 5px 9px; border-radius: 7px;
  display: inline-flex; align-items: center; gap: 6px; transition: .15s ease; white-space: nowrap;
}
.pv-tab:hover { color: var(--text); background: var(--surface-3); }
.pv-tab[aria-selected="true"] { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 var(--border) inset; }
.pv-tab .tab-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.pv-tab[aria-selected="true"] .tab-dot { opacity: 1; color: var(--accent); }

.pv-stage {
  flex: 1 1 auto; padding: 22px 18px 20px; min-height: 340px;
  display: grid; place-items: center; align-content: center; gap: 14px;
  background:
    radial-gradient(600px 220px at 50% -30%, rgba(143, 155, 255, .06), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.pv-frame { width: 100%; max-width: 540px; }
.pv-note {
  font-size: 11.5px; color: var(--faint); text-align: center; max-width: 58ch; line-height: 1.5;
}
.pv-note b { color: var(--muted); font-weight: 550; }

.seg {
  display: inline-flex; padding: 2px; gap: 2px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 9px;
}
.seg button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 11.5px; font-weight: 550; padding: 4px 8px; border-radius: 7px; transition: .15s ease; white-space: nowrap;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 var(--border) inset; }

/* --- Google --- */
.g-result { font-family: Arial, "Helvetica Neue", var(--font); max-width: 600px; width: 100%; }
.g-top { display: flex; align-items: center; gap: 9px; }
.g-fav {
  width: 26px; height: 26px; border-radius: 50%; flex: none; overflow: hidden;
  background: #fff; display: grid; place-items: center; border: 1px solid rgba(0, 0, 0, .06);
}
.g-fav img { width: 100%; height: 100%; object-fit: cover; }
.g-site { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.g-site-name { font-size: 13px; color: var(--g-url); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.g-site-url { font-size: 11.5px; color: var(--g-url); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.g-title {
  display: -webkit-box; margin-top: 6px; font-size: 19px; line-height: 1.3; color: var(--g-title);
  font-weight: 400; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.g-desc { margin-top: 3px; font-size: 13.5px; line-height: 1.55; color: var(--g-desc);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- X --- */
.x-card {
  border: 1px solid var(--x-border); border-radius: 16px; overflow: hidden;
  background: var(--x-bg); max-width: 504px; width: 100%;
}
.x-head { display: flex; align-items: center; gap: 9px; padding: 12px 14px 10px; }
.x-ava {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(150deg, #8f9bff, #5b67e0); color: #0a0b10; font-weight: 700; font-size: 14px;
}
.x-name { font-size: 14px; font-weight: 700; color: var(--x-text); display: flex; align-items: center; gap: 4px; line-height: 1.3; }
.x-name .badge { width: 15px; height: 15px; color: #1d9bf0; }
.x-handle { font-size: 13px; color: var(--x-muted); line-height: 1.3; }
.x-more { margin-left: auto; color: var(--x-muted); letter-spacing: 1px; font-size: 14px; }
.x-body { margin: 0 14px 12px; border: 1px solid var(--x-border); border-radius: 16px; overflow: hidden; }
.x-body.summary { display: grid; grid-template-columns: 1fr 100px; }
.x-img { aspect-ratio: 1.91 / 1; background: var(--x-img) center/cover no-repeat; }
.x-body.summary .x-img { order: 2; aspect-ratio: 1 / 1; }
.x-txt { padding: 10px 12px 11px; min-width: 0; }
.x-body.summary .x-txt { order: 1; }
.x-title { font-size: 14.5px; font-weight: 500; color: var(--x-text); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.x-desc { margin-top: 2px; font-size: 13px; color: var(--x-muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.x-dom { margin-top: 4px; font-size: 12.5px; color: var(--x-muted); display: flex; align-items: center; gap: 4px; }
.x-dom svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.x-foot { display: flex; align-items: center; gap: 20px; padding: 0 14px 12px; color: var(--x-muted); font-size: 12px; }
.x-foot span { display: inline-flex; align-items: center; gap: 5px; }
.x-foot svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* --- Facebook --- */
.fb-card { max-width: 500px; width: 100%; border-radius: 8px; overflow: hidden; background: var(--fb-bg);
  border: 1px solid var(--fb-border); }
.fb-head { display: flex; align-items: center; gap: 9px; padding: 12px 13px 10px; }
.fb-ava { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(150deg, #8f9bff, #5b67e0); color: #0a0b10; font-weight: 700; font-size: 15px; }
.fb-name { font-size: 13.5px; font-weight: 600; color: var(--fb-text); line-height: 1.3; }
.fb-time { font-size: 11.5px; color: var(--fb-muted); display: flex; align-items: center; gap: 4px; }
.fb-time svg { width: 11px; height: 11px; fill: none; stroke: currentColor; opacity: .85; }
.fb-dots { margin-left: auto; color: var(--fb-muted); font-size: 16px; letter-spacing: 1px; }
.fb-body { background: var(--fb-panel-box); border-top: 1px solid var(--fb-border); }
.fb-img { aspect-ratio: 1.91 / 1; background: var(--x-img) center/cover no-repeat; border-bottom: 1px solid var(--fb-border); }
.fb-txt { padding: 10px 13px 12px; background: var(--fb-panel); }
.fb-domain { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--fb-muted); }
.fb-title { margin-top: 3px; font-size: 16px; font-weight: 600; color: var(--fb-text); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fb-desc { margin-top: 3px; font-size: 13px; color: var(--fb-muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.fb-actions { display: flex; justify-content: space-between; padding: 8px 13px; border-top: 1px solid var(--fb-border);
  color: var(--fb-muted); font-size: 12px; font-weight: 600; }

/* --- LinkedIn --- */
.li-card { max-width: 504px; width: 100%; border: 1px solid var(--li-border); border-radius: 8px; overflow: hidden; background: var(--li-bg); }
.li-head { display: flex; gap: 8px; padding: 12px 12px 8px; }
.li-ava { width: 48px; height: 48px; border-radius: 50%; flex: none; background: linear-gradient(150deg, #8f9bff, #5b67e0);
  color: #0a0b10; font-weight: 700; display: grid; place-items: center; font-size: 18px; }
.li-name { font-size: 13.5px; font-weight: 600; color: var(--li-text); line-height: 1.3; }
.li-sub { font-size: 11.5px; color: var(--li-muted); line-height: 1.4; }
.li-body { border-top: 1px solid var(--li-border); background: var(--x-img) center/cover no-repeat; aspect-ratio: 1.91 / 1; position: relative; }
.li-overlay { position: absolute; inset: auto 0 0; background: rgba(0, 0, 0, .55); color: #fff; padding: 8px 11px; }
.li-otitle { font-size: 14px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.li-odom { font-size: 11px; opacity: .8; margin-top: 2px; }
.li-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-top: 1px solid var(--li-border); }
.li-site { font-size: 11.5px; color: var(--li-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-cta { font-size: 12px; font-weight: 600; color: #0a66c2; white-space: nowrap; }

/* --- Slack --- */
.sl-wrap { max-width: 520px; width: 100%; background: var(--sl-bg); border: 1px solid var(--sl-border); border-radius: 9px; padding: 14px; }
.sl-msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 9px; }
.sl-ava { width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; color: #0a0b10;
  font-weight: 700; font-size: 15px; background: linear-gradient(150deg, #8f9bff, #5b67e0); }
.sl-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sl-name { font-size: 14px; font-weight: 900; color: var(--sl-text); letter-spacing: -0.01em; }
.sl-app { font-size: 9px; font-weight: 700; background: var(--sl-tag); color: var(--sl-muted);
  border-radius: 3px; padding: 1px 3px; letter-spacing: .02em; }
.sl-time { font-size: 11.5px; color: var(--sl-muted); }
.sl-text { font-size: 13.5px; color: var(--sl-text); margin-top: 2px; line-height: 1.4; }
.sl-attach { margin-top: 6px; border-left: 4px solid var(--sl-brand); border-radius: 0 6px 6px 0;
  background: var(--sl-panel); overflow: hidden; }
.sl-inner { padding: 10px 12px 10px; }
.sl-site { font-size: 12px; font-weight: 700; color: var(--sl-text); }
.sl-title { margin-top: 3px; font-size: 13.5px; font-weight: 700; color: var(--sl-link); line-height: 1.35; }
.sl-desc { margin-top: 3px; font-size: 13px; color: var(--sl-text-dim); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sl-img { aspect-ratio: 1.91 / 1; background: var(--x-img) center/cover no-repeat; border-top: 1px solid var(--sl-border); }
.sl-foot { display: flex; align-items: center; gap: 6px; padding: 6px 12px 8px; }
.sl-fav { width: 15px; height: 15px; border-radius: 3px; background: var(--sl-tag); overflow: hidden; flex: none;
  display: grid; place-items: center; }
.sl-fav img { width: 100%; height: 100%; object-fit: cover; }
.sl-favtxt { font-size: 11.5px; color: var(--sl-muted); text-decoration: underline; }

/* --- Discord --- */
.dc-wrap { max-width: 520px; width: 100%; background: var(--dc-bg); border-radius: 9px; padding: 14px 14px 16px; }
.dc-msg { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
.dc-ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #0a0b10;
  font-weight: 700; font-size: 15px; background: linear-gradient(150deg, #8f9bff, #5b67e0); }
.dc-meta { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.dc-name { font-size: 14px; font-weight: 600; color: var(--dc-name); }
.dc-bot { font-size: 9px; font-weight: 600; background: #5865f2; color: #fff; border-radius: 3px; padding: 1px 4px; letter-spacing: .02em; }
.dc-time { font-size: 11px; color: var(--dc-muted); }
.dc-text { font-size: 13.5px; color: var(--dc-text); line-height: 1.4; margin-top: 1px; }
.dc-embed { margin-top: 6px; display: grid; grid-template-columns: 4px minmax(0, 1fr); border-radius: 4px; overflow: hidden; background: var(--dc-panel); }
.dc-bar { background: var(--dc-brand); }
.dc-einner { padding: 9px 12px 11px; }
.dc-author { font-size: 12.5px; font-weight: 600; color: var(--dc-text); }
.dc-title { margin-top: 4px; font-size: 14.5px; font-weight: 600; color: var(--dc-link); line-height: 1.35; }
.dc-desc { margin-top: 3px; font-size: 13px; color: var(--dc-text-dim); line-height: 1.42;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dc-img { margin-top: 8px; aspect-ratio: 1.91 / 1; background: var(--x-img) center/cover no-repeat; border-radius: 4px; }
.dc-foot { margin-top: 6px; font-size: 11px; color: var(--dc-muted); display: flex; gap: 5px; align-items: center; }

/* --- Kakao --- */
.kt-wrap { max-width: 400px; width: 100%; background: #b2c7d9; border-radius: 14px; padding: 14px 12px; position: relative; }
[data-theme="light"] .kt-wrap { background: #b2c7d9; }
.kt-top { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px; }
.kt-top span { font-size: 12px; color: rgba(0, 0, 0, .5); font-weight: 600; }
.kt-bubble { background: #fff; border-radius: 14px; border-top-left-radius: 4px; padding: 0; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08); position: relative; }
.kt-sender { font-size: 11.5px; color: rgba(0, 0, 0, .55); margin: 0 0 4px 2px; }
.kt-img { aspect-ratio: 1.91 / 1; background: var(--x-img) center/cover no-repeat; }
.kt-body { padding: 9px 11px 10px; background: #fff; }
.kt-title { font-size: 13.5px; font-weight: 700; color: #111; line-height: 1.32;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kt-desc { margin-top: 3px; font-size: 12px; color: #6b6b6b; line-height: 1.38;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kt-div { height: 1px; background: #ececec; margin-top: 9px; }
.kt-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 7px; }
.kt-dom { font-size: 10.5px; color: #9a9a9a; }
.kt-btn { font-size: 10.5px; color: #9a9a9a; }
.kt-time { font-size: 10px; color: rgba(0, 0, 0, .45); margin: 4px 0 0 3px; }

/* platform colour scope */
.pv-frame { --x-bg: #000; --x-border: #2f3336; --x-text: #e7e9ea; --x-muted: #71767b; --x-img: #16181c;
  --fb-bg: #242526; --fb-border: #3e4042; --fb-text: #e4e6eb; --fb-muted: #b0b3b8; --fb-panel: #242526; --fb-panel-box: #18191a;
  --li-bg: #1b1f23; --li-border: #38434f; --li-text: #e7e9ea; --li-muted: #a8b0b8;
  --sl-bg: #1a1d21; --sl-border: #35373b; --sl-text: #d1d2d3; --sl-text-dim: #b9bbbe; --sl-muted: #9b9c9f;
  --sl-panel: #222529; --sl-tag: #3f4348; --sl-link: #1d9bd1; --sl-brand: #8f9bff;
  --dc-bg: #313338; --dc-panel: #2b2d31; --dc-text: #dbdee1; --dc-text-dim: #b5bac1; --dc-muted: #949ba4;
  --dc-name: #f2f3f5; --dc-link: #00a8fc; --dc-brand: #8f9bff;
  --g-title: #99c3ff; --g-url: #bdc1c6; --g-desc: #bdc1c6;
}
[data-theme="light"] .pv-frame {
  --x-bg: #fff; --x-border: #cfd9de; --x-text: #0f1419; --x-muted: #536471; --x-img: #eff3f4;
  --fb-bg: #fff; --fb-border: #ced0d4; --fb-text: #050505; --fb-muted: #65676b; --fb-panel: #f0f2f5; --fb-panel-box: #fff;
  --li-bg: #fff; --li-border: #e0e0e0; --li-text: #000000e6; --li-muted: #666;
  --sl-bg: #fff; --sl-border: #e2e2e2; --sl-text: #1d1c1d; --sl-text-dim: #454245; --sl-muted: #616061;
  --sl-panel: #f8f8f8; --sl-tag: #e8e8e8; --sl-link: #1264a3; --sl-brand: #4f5bd5;
  --dc-bg: #fff; --dc-panel: #f2f3f5; --dc-text: #2e3338; --dc-text-dim: #4e5058; --dc-muted: #5c5e66;
  --dc-name: #060607; --dc-link: #006ce7; --dc-brand: #4f5bd5;
  --g-title: #1a0dab; --g-url: #4d5156; --g-desc: #4d5156;
}

.pv-empty {
  display: grid; place-items: center; gap: 8px; padding: 26px 18px; text-align: center;
  border: 1px dashed var(--border-strong); border-radius: 12px; color: var(--faint); font-size: 12.5px;
}

/* image placeholders inside a card */
.pv-frame .ph-img {
  display: grid; place-items: center; color: var(--faint);
  background: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018));
}
.pv-frame .ph-img svg { width: 26px; height: 26px; opacity: .75; }
[data-theme="light"] .pv-frame .ph-img { background: linear-gradient(135deg, rgba(12, 16, 26, .045), rgba(12, 16, 26, .015)); }
.pv-empty svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.ph-line { display: block; height: 9px; border-radius: 4px; background: currentColor; opacity: .13; margin-top: 6px; }
.ph-line.w60 { width: 60%; }
.ph-line.w40 { width: 40%; }

/* ---------- checks ---------- */

.check-strip {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 14px;
  border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface-3) 45%, transparent);
  border-radius: 0 0 var(--radius) var(--radius);
}
.check-strip .score {
  font-size: 12px; font-weight: 600; color: var(--text-dim); font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; gap: 6px;
}
.check-strip .score .dotc { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-bg); }
.check-strip .score.partial .dotc { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.check-strip .score.bad .dotc { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.check-list { display: flex; gap: 5px; flex-wrap: wrap; margin-left: auto; }
.check-pill {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted);
  border: 1px solid var(--border); background: var(--surface-2); border-radius: 6px; padding: 2px 7px;
  white-space: nowrap;
}
.check-pill svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.check-pill.ok { color: var(--good-text); border-color: color-mix(in srgb, var(--good) 30%, transparent); background: var(--good-bg); }
.check-pill.warn { color: var(--warn-text); border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: var(--warn-bg); }
.check-pill.bad { color: var(--bad-text); border-color: color-mix(in srgb, var(--bad) 30%, transparent); background: var(--bad-bg); }

/* ---------- export ---------- */

.export { border-top: 1px solid var(--border); display: flex; flex-direction: column; }
.code-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.code-tabs { display: flex; gap: 2px; }
.code-tab {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 12px; font-weight: 550; padding: 4px 9px; border-radius: 7px; transition: .15s ease; white-space: nowrap;
}
.code-tab:hover { color: var(--text); background: var(--surface-3); }
.code-tab[aria-selected="true"] { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 var(--border) inset; }
.code-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.code-body { position: relative; }
.code-body pre {
  margin: 0; padding: 14px 16px 18px; overflow: auto; max-height: 320px; scrollbar-width: thin;
  font-family: var(--mono); font-size: 12.2px; line-height: 1.62; color: var(--text-dim);
  background: var(--bg-soft); tab-size: 2;
}
.code-body pre::-webkit-scrollbar { width: 10px; height: 10px; }
.code-body pre::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
.code-body code { font-family: inherit; }
.tk-tag { color: #7ea2ff; }
.tk-attr { color: #9ad7a6; }
.tk-str { color: #d9b87a; }
.tk-com { color: var(--faint); font-style: italic; }
.tk-key { color: #9ad7a6; }
.tk-punc { color: var(--faint); }
[data-theme="light"] .tk-tag { color: #2f4db3; }
[data-theme="light"] .tk-attr { color: #0b6b3a; }
[data-theme="light"] .tk-str { color: #8a5a09; }
[data-theme="light"] .tk-key { color: #0b6b3a; }

/* ---------- sections ---------- */

.section { padding: 74px 0 0; }
.section .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 550;
}
.section h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); margin-top: 12px; max-width: 28ch; text-wrap: balance; }
.section .sub { margin-top: 12px; color: var(--muted); font-size: 14.5px; max-width: 74ch; }

.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  margin-top: 30px; background: var(--border); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden;
}
.step { background: var(--surface); padding: 22px 22px 26px; }
.step-no { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .1em; }
.step h3 { font-size: 15.5px; margin-top: 14px; letter-spacing: -0.015em; }
.step p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.fcard {
  border: 1px solid var(--border); border-radius: 13px; background: var(--surface);
  padding: 18px 18px 20px;
}
.fcard .ic {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 12px;
}
.fcard .ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fcard h3 { font-size: 14.5px; letter-spacing: -0.01em; }
.fcard p { margin-top: 7px; font-size: 13px; color: var(--muted); line-height: 1.6; }

.note-block {
  margin-top: 26px; padding: 26px 28px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--bg-soft);
}
.note-block h3 { font-size: 15.5px; }
.note-block p { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 82ch; line-height: 1.7; }
.note-block p + p { margin-top: 10px; }
.note-block b { color: var(--text-dim); font-weight: 560; }

.faq-list { margin-top: 26px; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  cursor: pointer; padding: 16px 30px 16px 2px; font-size: 14.5px; font-weight: 550;
  list-style: none; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--faint); font-size: 17px; font-weight: 400; transition: .2s ease;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { padding: 0 40px 18px 2px; color: var(--muted); font-size: 13.5px; line-height: 1.7; max-width: 92ch; }

/* ---------- footer ---------- */

.site-footer { margin-top: 84px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-start; padding: 34px 0 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand .brand-name { font-size: 14px; }
.footer-brand p { font-size: 12.5px; color: var(--faint); max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 7px; }
.footer-col h4 {
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
  font-weight: 600; margin: 0 0 2px;
}
.footer-col a { font-size: 12.5px; color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.footer-fine { font-size: 12px; color: var(--faint); width: 100%; margin-top: 6px; }

.noscript {
  margin: 20px auto; max-width: 720px; padding: 12px 16px; font-size: 13px;
  border: 1px solid var(--warn-bg); background: var(--warn-bg); color: var(--warn-text);
  border-radius: 10px; text-align: center;
}

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 8px);
  background: var(--text); color: var(--bg); padding: 9px 14px; border-radius: 9px;
  font-size: 12.5px; font-weight: 550; z-index: 90; opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6);
  max-width: min(90vw, 460px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- doc pages ---------- */

.doc { padding: 52px 0 0; max-width: 740px; }
.doc h1 { font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.3rem); }
.doc .updated { margin-top: 10px; font-size: 12.5px; color: var(--faint); }
.doc h2 { font-size: 15.5px; margin: 32px 0 8px; }
.doc p, .doc li { font-size: 14px; color: var(--text-dim); line-height: 1.75; }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 10px 0 0; padding-left: 20px; }
.doc li + li { margin-top: 4px; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.doc .lede-doc { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.doc code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-3); padding: 1px 5px; border-radius: 4px; }
.lang-block[hidden] { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .tool-grid { grid-template-columns: 1fr; }
  .col-editor { border-right: 0; border-bottom: 1px solid var(--border); }
  .col-preview { border-radius: 0; }
  .form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .form .field.full, .form .presets, .form details.more { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 24px); }
  .header-inner { height: 54px; gap: 10px; }
  .brand-tool { display: none; }
  .hero { padding: 28px 0 14px; }
  .hero .lede { font-size: 14px; }
  .form { grid-template-columns: 1fr; }
  .pv-stage { padding: 16px 10px; min-height: 280px; }
  .steps, .cards { grid-template-columns: 1fr; }
  .footer-nav { margin-left: 0; }
  .section { padding-top: 56px; }
  .check-list { display: none; }
  .code-body pre { font-size: 11.4px; max-height: 280px; }
  .kt-wrap { max-width: 340px; }
}

@media print {
  .site-header, .form, .code-head, .site-footer, .section, .check-strip { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
