/* =============================================
   WEBIS Code + Utility Hub
   공통 최소 스타일 (Tailwind v4 CDN 보완)
   ============================================= */

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #FBFBFD;
  overflow-x: clip;
}

/* 카드 hover 기본 */
.card-hover {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, .22);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .12);
}

/* 코드/모노 */
code, pre, .mono {
  font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
}

/* 스크롤바 (Webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* 유틸리티 공통 패널 */
.panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  padding: 1rem;
}

/* 배지 */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: .7rem;
  font-weight: 600;
}
.badge-codes    { background: #dbeafe; color: #1d4ed8; }
.badge-business { background: #dbeafe; color: #1e40af; }
.badge-util      { background: #dcfce7; color: #15803d; }
.badge-docs      { background: #fef3c7; color: #a16207; }
.badge-text      { background: #e0e7ff; color: #4338ca; }
.badge-convert   { background: #cffafe; color: #0e7490; }
.badge-network   { background: #dbeafe; color: #1d4ed8; }
.badge-dev       { background: #ffedd5; color: #c2410c; }
.badge-generator { background: #fce7f3; color: #be185d; }
/* 구 '도구' 단일 라벨 호환 */
.badge-tool      { background: #fce7f3; color: #be185d; }

/* Telegram Bot Tester */
.telegram-tool-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}
.telegram-tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(91, 91, 214, .13);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 10%, rgba(91, 91, 214, .10), transparent 28%),
    #fff;
  box-shadow: 0 22px 60px -42px rgba(15, 23, 42, .32);
}
.telegram-kicker {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(91, 91, 214, .09);
  color: #4f46e5;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}
.telegram-tool-hero h2 {
  margin-top: 18px;
  color: #0f172a;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
  font-weight: 950;
  letter-spacing: -.07em;
}
.telegram-tool-hero p {
  margin-top: 16px;
  max-width: 680px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.85;
}
.telegram-hero-grid {
  display: grid;
  gap: 10px;
}
.telegram-hero-grid span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 16px;
  border: 1px solid #eef2ff;
  border-radius: 22px;
  background: #fbfbff;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}
.telegram-hero-grid b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: #5b5bd6;
  color: #fff;
  font-size: 12px;
}
.telegram-notice {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #fde68a;
  border-radius: 22px;
  background: #fffbeb;
  color: #92400e;
}
.telegram-notice strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 950;
}
.telegram-notice p {
  font-size: 13px;
  line-height: 1.75;
}
.telegram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.telegram-panel,
.telegram-reference article {
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 40px -32px rgba(15, 23, 42, .30);
}
.telegram-panel {
  padding: 22px;
}
.telegram-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.telegram-panel-head > div > span,
.telegram-send-grid label > span {
  display: block;
  color: #5b5bd6;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
}
.telegram-panel-head h3 {
  margin-top: 5px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -.035em;
}
.telegram-panel-head p {
  margin-top: 7px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}
.telegram-actions,
.telegram-action-row,
.telegram-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.telegram-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}
.telegram-actions button,
.telegram-presets button,
.telegram-chat-card button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}
.telegram-actions button span,
.telegram-primary span {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
}
.telegram-actions button.is-active,
.telegram-actions button.is-primary,
.telegram-chat-card button.is-primary,
.telegram-primary {
  background: #5b5bd6;
  color: #fff;
}
.telegram-primary {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 950;
}
.telegram-primary:disabled,
.telegram-actions button:disabled {
  background: #cbd5e1;
  color: #fff;
  cursor: not-allowed;
}
.telegram-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
}
.telegram-input:focus {
  outline: none;
  border-color: rgba(91, 91, 214, .45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91, 91, 214, .10);
}
.telegram-action-row {
  align-items: center;
  margin-top: 12px;
}
.telegram-action-row > span {
  color: #64748b;
  font-size: 12px;
}
.telegram-result,
.telegram-empty,
.telegram-raw {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.telegram-result.is-success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.telegram-result.is-error,
.telegram-empty {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
}
.telegram-raw {
  max-height: 420px;
  overflow: auto;
  background: #0f172a;
  color: #86efac;
}
.telegram-chat-list {
  display: grid;
  gap: 10px;
}
.telegram-chat-count {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}
.telegram-chat-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fbfbfd;
}
.telegram-chat-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background: #eef2ff;
  font-size: 18px;
}
.telegram-chat-card strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.telegram-chat-card p {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}
.telegram-send-panel {
  margin-top: 18px;
}
.telegram-send-grid {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
  gap: 12px;
}
.telegram-presets {
  margin-top: 12px;
}
.telegram-reference {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.telegram-reference article {
  padding: 18px;
}
.telegram-reference strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}
.telegram-reference span {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .telegram-tool-hero,
  .telegram-grid,
  .telegram-send-grid,
  .telegram-reference {
    grid-template-columns: 1fr;
  }
  .telegram-panel-head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .telegram-tool-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 24px;
  }
  .telegram-tool-hero,
  .telegram-panel {
    border-radius: 22px;
    padding: 18px;
  }
  .telegram-chat-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .telegram-chat-card button {
    grid-column: span 2;
  }
}

header.sticky {
  box-shadow: 0 12px 32px rgba(15, 23, 42, .05);
}
.hub-main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #eef2f7;
  border-radius: 999px;
  background: #f8fafc;
}
.hub-main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  color: #566176;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.hub-main-nav a:hover {
  background: #fff;
  color: var(--t-accent, #5B5BD6);
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
}

body > section:first-of-type {
  position: relative;
  isolation: isolate;
}

body > section:first-of-type::after { content: none; }

#items .card-hover {
  min-height: 228px;
  border-radius: 1.25rem;
}

#items .card-hover h3 {
  letter-spacing: -.025em;
}

@media (max-width: 640px) {
  #items .card-hover {
    min-height: auto;
  }
}

/* =============================================
   WEBIS HUB — CLAUDE DESIGN-SYSTEM POLISH 20260617
   이모지 평준화 → 카테고리 색상 아이콘 박스 + 카드 위계 정돈
   ============================================= */

/* 도구 카드 위계 */
#items .card-hover {
  padding: 22px 22px 20px;
  border-radius: 20px;
  border-color: #eef2f7;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
#items .card-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, .28);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .12);
}
#items .card-hover h3 {
  font-size: 16px;
  font-weight: 800;
  margin-top: 2px;
}
#items .card-hover p {
  min-height: 40px;
}

/* 카테고리 색상 아이콘 박스 — 이모지를 통일된 박스 안에 */
.hub-tool-ic {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  font-size: 25px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04);
}
.hub-ic-util      { background: #ecfdf3; }
.hub-ic-codes     { background: #eff6ff; }
.hub-ic-business  { background: #eef2ff; }
.hub-ic-text      { background: #eef2ff; }
.hub-ic-convert   { background: #ecfeff; }
.hub-ic-network   { background: #eff6ff; }
.hub-ic-dev       { background: #fff3ea; }
.hub-ic-generator { background: #fdf2f8; }
.hub-ic-docs      { background: #fefce8; }

/* badge 톤 정돈 (대비 강화) */
.badge {
  padding: 3px 10px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

/* 태그 칩 정돈 */
#items .card-hover .text-\[11px\] {
  font-weight: 600;
}

/* =============================================
   WEBIS HUB — TOOLO SAMPLE REDESIGN 20260617 (디자인 리드: Claude)
   Leader 샘플(toolo) ground truth 기준: 흰 배경 + 중앙 hero + 보라 accent + 섬세한 다층 그림자
   ============================================= */
:root {
  --t-bg: #FBFBFD;
  --t-surface: #FFFFFF;
  --t-border: #E7E9EE;
  --t-border-strong: #D7DAE2;
  --t-text: #0D1117;
  --t-muted: #8B93A2;
  --t-accent: #5B5BD6;
  --t-accent-press: #4D4DC2;
  --t-accent-tint: #ECECFB;
  --t-accent-text: #4B49B6;
  --t-green: #1FA463;
  --t-ring: rgba(91,91,214,.35);
  --t-shadow-sm: 0 1px 2px rgba(16,19,28,.06), 0 1px 1px rgba(16,19,28,.04);
  --t-shadow-md: 0 8px 24px -10px rgba(16,19,28,.18), 0 2px 6px -2px rgba(16,19,28,.08);
  --t-shadow-lg: 0 28px 60px -24px rgba(16,19,28,.30), 0 10px 24px -14px rgba(16,19,28,.18);
  --t-r: 14px;
}

/* 전역 배경을 샘플 흰 톤으로 (그라데이션 radial 제거) */
body { background: var(--t-bg) !important; color: var(--t-text); }

/* HERO — 흰 배경 중앙 정렬 */
.hub-hero { background: var(--t-bg); border-bottom: 1px solid var(--t-border); }
.hub-hero-wrap { max-width: 880px; margin: 0 auto; padding: 76px 20px 60px; text-align: center; }
.hub-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--t-surface); border: 1px solid var(--t-border);
  box-shadow: var(--t-shadow-sm);
  font-size: 13px; font-weight: 700; color: var(--t-muted);
}
.hub-eyebrow b { color: var(--t-accent-text); font-weight: 800; }
.hub-pip { width: 7px; height: 7px; border-radius: 50%; background: var(--t-green); box-shadow: 0 0 0 4px rgba(31,164,99,.14); }
.hub-title {
  margin: 26px 0 0; font-size: clamp(40px, 6vw, 72px); line-height: 1.04;
  font-weight: 900; letter-spacing: -.045em; color: var(--t-text);
}
.hub-grad { color: var(--t-accent); }
.hub-lede { margin: 22px auto 0; max-width: 620px; color: var(--t-muted); font-size: 17px; line-height: 1.7; font-weight: 500; }
.hub-stats { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.hub-sv { display: grid; gap: 3px; }
.hub-sn { font-size: 30px; font-weight: 900; letter-spacing: -.03em; color: var(--t-text); }
.hub-sn b { font-size: 18px; color: var(--t-accent); }
.hub-sn-green { color: var(--t-green); }
.hub-sn-accent { color: var(--t-accent); }
.hub-sl { font-size: 12px; color: var(--t-faint, #AEB4C0); font-weight: 600; }
.hub-sdot { color: var(--t-border-strong); }

/* 검색바 — 큰 pill, 섬세한 그림자 */
.hub-hero-search {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  max-width: 720px; margin: 36px auto 0; padding: 6px 6px 6px 22px;
  background: var(--t-surface); border: 1px solid var(--t-border);
  border-radius: 18px; box-shadow: var(--t-shadow-lg);
}
.hub-hero-search:focus-within { border-color: var(--t-accent); box-shadow: var(--t-shadow-lg), 0 0 0 4px var(--t-ring); }
.hub-hero-search > i { width: 22px; height: 22px; color: var(--t-muted); flex: 0 0 auto; }
.hub-hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--t-text); padding: 14px 0; }
.hub-hero-search input::placeholder { color: var(--t-faint, #AEB4C0); }
.hub-hero-search button {
  flex: 0 0 auto; border: 0; border-radius: 13px;
  background: var(--t-accent); color: #fff; padding: 12px 22px; font-size: 15px; font-weight: 800;
}
.hub-hero-search button:hover { background: var(--t-accent-press); }

/* 카테고리 칩 */
.hub-hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.hub-hero-tags button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--t-surface); border: 1px solid var(--t-border); box-shadow: var(--t-shadow-sm);
  font-size: 14px; font-weight: 700; color: var(--t-text);
}
.hub-hero-tags button i { width: 16px; height: 16px; color: var(--t-accent); }
.hub-hero-tags button:hover { border-color: var(--t-accent); background: var(--t-accent-tint); }

/* trust */
.hub-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 28px; }
.hub-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--t-muted); }
.hub-trust i { width: 15px; height: 15px; color: var(--t-green); }

/* 카테고리 빠른 선택 — 검색창 아래 아이콘/카테고리 흐름 보강 */
.hub-category-rail {
  padding: 26px;
  border: 1px solid var(--t-border);
  border-radius: 24px;
  background: var(--t-surface);
  box-shadow: var(--t-shadow-sm);
}
.hub-category-rail__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.hub-category-rail__head h2 {
  margin: 10px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -.045em;
  color: var(--t-text);
}
.hub-category-rail__head p {
  max-width: 390px;
  margin: 0;
  color: var(--t-muted);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
}
.hub-category-rail__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.hub-category-card {
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 16px 14px;
  border: 1px solid var(--t-border);
  border-radius: 18px;
  background: #fbfcff;
  text-decoration: none;
  text-align: left;
  box-shadow: var(--t-shadow-sm);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.hub-category-card:hover,
.hub-category-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(91, 91, 214, .34);
  background: var(--t-accent-tint);
  box-shadow: var(--t-shadow-md);
}
.hub-category-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  color: var(--t-accent);
  box-shadow: inset 0 0 0 1px rgba(91, 91, 214, .10);
}
.hub-category-card__icon i { width: 20px; height: 20px; }
.hub-category-card__text { display: grid; gap: 4px; }
.hub-category-card__text strong {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--t-text);
}
.hub-category-card__text em {
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
  color: var(--t-muted);
  font-weight: 700;
}
.hub-category-card b {
  justify-self: start;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--t-accent);
  font-size: 12px;
  font-weight: 900;
}

/* 도구 카드를 샘플 surface 톤으로 통일 */
#items .card-hover {
  border-radius: var(--t-r);
  border-color: var(--t-border);
  box-shadow: var(--t-shadow-sm);
}
#items .card-hover:hover {
  transform: translateY(-3px);
  border-color: var(--t-border-strong);
  box-shadow: var(--t-shadow-md);
}

/* 카테고리 탭 active 보라 톤 (Alpine 인라인 대비 보강) */
section.mb-6 .flex.flex-wrap button { box-shadow: var(--t-shadow-sm); }
.hub-category-tab.is-active {
  background: var(--t-accent) !important;
  border-color: var(--t-accent) !important;
  color: #fff !important;
}
.hub-path-link:hover {
  background: var(--t-accent-tint) !important;
  border-color: rgba(91,91,214,.24) !important;
}
.hub-path-link__go { color: var(--t-accent) !important; }
.hub-accent-pill {
  background: var(--t-accent-tint);
  color: var(--t-accent-text);
}
.hub-accent-cta {
  border: 0;
  background: var(--t-accent);
  box-shadow: var(--t-shadow-sm);
}
.hub-accent-cta:hover { background: var(--t-accent-press); }
.hub-card-cta { color: var(--t-accent); }
.hub-focus-ring:focus {
  border-color: var(--t-accent);
  box-shadow: 0 0 0 4px rgba(91,91,214,.18);
}
.hub-check {
  accent-color: var(--t-accent);
}

.hub-loadmore {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.hub-loadmore button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--t-border);
  border-radius: 999px;
  background: #fff;
  color: var(--t-accent);
  font-size: 14px;
  font-weight: 900;
  box-shadow: var(--t-shadow-sm);
}
.hub-loadmore button:hover {
  border-color: rgba(91, 91, 214, .34);
  background: var(--t-accent-tint);
}
.hub-loadmore i { width: 17px; height: 17px; }

@media (max-width: 640px) {
  .hub-hero-wrap { padding: 48px 16px 40px; }
  .hub-title { font-size: 38px; }
  .hub-stats { gap: 12px; }
  .hub-hero-search { margin-top: 26px; }
  .hub-category-rail { padding: 18px; border-radius: 20px; }
  .hub-category-rail__head { display: block; margin-bottom: 14px; }
  .hub-category-rail__head p { margin-top: 10px; font-size: 13px; }
  .hub-category-rail__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hub-category-card { min-height: 116px; padding: 13px 12px; border-radius: 16px; }
  .hub-category-card__icon { width: 36px; height: 36px; border-radius: 12px; }
  .hub-category-card__text strong { font-size: 14px; }
  .hub-category-card__text em { font-size: 11px; }
}

@media (max-width: 480px) {
  .hub-lede {
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: anywhere;
  }
  .hub-stats {
    flex-wrap: wrap;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    gap: 12px 8px;
  }
  .hub-sv {
    flex: 1 1 calc(50% - 12px);
    min-width: 118px;
  }
  .hub-sdot { display: none; }
  .hub-sn { font-size: 26px; }
  .hub-trust {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .hub-trust span {
    max-width: 100%;
    text-align: center;
  }
}

/* =============================================
   WEBIS HUB — LEGACY B543990 CARD POLISH ONLY
   주의: 기존 b543990의 dark hero/search/tag override는 Leader 샘플 흰 hero와 충돌해 제거.
   아래에는 도구 카드 surface 보강만 유지한다.
   ============================================= */

.hub-tool-card {
  position: relative;
  border-radius: 22px !important;
  border-color: #e7e9ee !important;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 19, 28, .06), 0 1px 1px rgba(16, 19, 28, .04);
  overflow: hidden;
}

.hub-tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #5B5BD6;
  opacity: .82;
}

.hub-tool-card:hover {
  border-color: rgba(91, 91, 214, .32) !important;
  box-shadow: 0 22px 52px -20px rgba(16, 19, 28, .28), 0 8px 18px -12px rgba(16, 19, 28, .16);
}

.hub-tool-tags span {
  border: 1px solid #e7e9ee;
  background: #f5f6f8 !important;
  color: #454c5a !important;
}

.hub-tool-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--t-border);
  color: var(--t-accent);
  font-size: 13px;
  font-weight: 900;
}
.hub-tool-card__foot i {
  width: 16px;
  height: 16px;
}

.hub-autocomplete {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 80;
  display: none;
  padding: 8px;
  border: 1px solid var(--t-border);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--t-shadow-lg);
  backdrop-filter: blur(16px);
}
.hub-autocomplete.is-open { display: grid; gap: 4px; }
.hub-autocomplete button {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.hub-autocomplete button:hover {
  background: var(--t-accent-tint);
}
.hub-autocomplete__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #f5f6fb;
  font-size: 22px;
}
.hub-autocomplete__text {
  min-width: 0;
}
.hub-autocomplete__text strong,
.hub-autocomplete__text small,
.hub-autocomplete__text span {
  display: block;
}
.hub-autocomplete__text strong {
  color: var(--t-text);
  font-size: 14px;
  font-weight: 900;
}
.hub-autocomplete__text small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--t-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hub-autocomplete__text em {
  display: inline-flex;
  margin: 6px 4px 0 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f5f6f8;
  color: #6b7280;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.hub-back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--t-accent);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.hub-category-page,
.hub-tool-page {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 20px 64px;
}
.hub-category-hero,
.hub-tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}
.hub-category-hero__copy,
.hub-tool-hero__main {
  min-width: 0;
  padding: 38px;
  border: 1px solid var(--t-border);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--t-shadow-sm);
}
.hub-category-hero h1,
.hub-tool-hero h1 {
  margin: 18px 0 0;
  color: var(--t-text);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -.055em;
}
.hub-category-hero p,
.hub-tool-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--t-muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
}
.hub-category-hero__panel,
.hub-tool-hero__side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: 260px;
  padding: 28px;
  border-radius: 30px;
  background: var(--t-accent);
  color: #fff;
  box-shadow: var(--t-shadow-lg);
}
.hub-category-hero__panel i {
  width: 44px;
  height: 44px;
}
.hub-category-hero__panel strong,
.hub-tool-hero__side strong {
  font-size: 58px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.05em;
}
.hub-category-hero__panel span,
.hub-tool-hero__side span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .72;
}
.hub-tool-hero__side p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.7;
}
.hub-tool-hero__side a {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.hub-category-switch {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.hub-category-switch a {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--t-border);
  border-radius: 20px;
  background: #fff;
  color: var(--t-text);
  text-decoration: none;
  box-shadow: var(--t-shadow-sm);
}
.hub-category-switch a.is-active,
.hub-category-switch a:hover {
  border-color: rgba(91,91,214,.32);
  background: var(--t-accent-tint);
}
.hub-category-switch i {
  width: 20px;
  height: 20px;
  color: var(--t-accent);
}
.hub-category-switch span {
  font-size: 13px;
  font-weight: 900;
}
.hub-category-switch b {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--t-accent);
  font-size: 11px;
  font-weight: 950;
}
.hub-category-layout,
.hub-tool-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.hub-category-layout--single {
  display: block;
}
.hub-category-layout--single .hub-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hub-category-guide,
.hub-related-tools {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}
.hub-guide-card,
.hub-related-tools,
.hub-tool-manual {
  border: 1px solid var(--t-border);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--t-shadow-sm);
}
.hub-guide-card {
  padding: 22px;
}
.hub-guide-card--soft {
  background: var(--t-accent-tint);
}
.hub-guide-card span,
.hub-section-title span {
  color: var(--t-accent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hub-guide-card h2,
.hub-section-title h2 {
  margin: 8px 0 0;
  color: var(--t-text);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -.04em;
}
.hub-guide-card p,
.hub-guide-card li,
.hub-section-title p {
  color: var(--t-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.75;
}
.hub-guide-card ol {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 18px;
}
.hub-section-title {
  margin-bottom: 18px;
}
.hub-section-title--compact {
  margin: 0;
  padding: 22px 22px 0;
}
.hub-section-title--compact h2 {
  font-size: 20px;
}
.hub-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.hub-detail-card {
  display: grid;
  min-height: 255px;
  padding: 20px;
  border: 1px solid var(--t-border);
  border-radius: 22px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--t-shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hub-detail-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91,91,214,.30);
  box-shadow: var(--t-shadow-md);
}
.hub-detail-card__icon,
.hub-related-icon,
.hub-tool-hero__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  font-size: 27px;
}
.hub-detail-card__meta {
  align-self: start;
  margin-top: 14px;
  color: var(--t-accent);
  font-size: 11px;
  font-weight: 950;
}
.hub-detail-card strong {
  margin-top: 6px;
  color: var(--t-text);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.035em;
}
.hub-detail-card em {
  margin-top: 8px;
  color: var(--t-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.7;
}
.hub-detail-card__go {
  align-self: end;
  margin-top: 16px;
  color: var(--t-accent);
  font-size: 13px;
  font-weight: 950;
}
.hub-tool-hero__icon {
  margin-bottom: 18px;
}
.hub-tool-tags-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}
.hub-tool-tags-line span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f5f6f8;
  color: #596173;
  font-size: 12px;
  font-weight: 850;
}
.hub-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.hub-tool-run,
.hub-tool-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
}
.hub-tool-run {
  background: var(--t-accent);
  color: #fff;
  box-shadow: var(--t-shadow-sm);
}
.hub-tool-ghost {
  border: 1px solid var(--t-border);
  background: #fff;
  color: var(--t-text);
}
.hub-tool-manual {
  padding: 26px;
}
.hub-manual-steps {
  display: grid;
  gap: 12px;
}
.hub-manual-steps article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--t-border);
  border-radius: 20px;
  background: #fbfcff;
}
.hub-manual-steps b {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--t-accent-tint);
  color: var(--t-accent);
  font-size: 16px;
  font-weight: 950;
}
.hub-manual-steps h3 {
  grid-column: 2;
  margin: 0;
  color: var(--t-text);
  font-size: 17px;
  font-weight: 950;
}
.hub-manual-steps p {
  grid-column: 2;
  margin: 7px 0 0;
  color: var(--t-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.75;
}
.hub-usage-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 22px;
  border-radius: 22px;
  background: var(--t-accent);
  color: #fff;
}
.hub-usage-panel span {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  opacity: .72;
}
.hub-usage-panel h2 {
  margin: 7px 0 0;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -.04em;
}
.hub-usage-panel p {
  max-width: 560px;
  margin: 8px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.75;
}
.hub-usage-panel a {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-radius: 13px;
  background: #fff;
  color: var(--t-accent);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}
.hub-related-tools {
  padding-bottom: 16px;
}
.hub-related-list {
  display: grid;
  gap: 8px;
  padding: 14px;
}
.hub-related-list a {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}
.hub-related-list a:hover {
  background: var(--t-accent-tint);
}
.hub-related-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 22px;
}
.hub-related-list strong {
  display: block;
  color: var(--t-text);
  font-size: 13px;
  font-weight: 950;
}
.hub-related-list em {
  display: block;
  margin-top: 3px;
  color: var(--t-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.hub-inline-tool-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}
.hub-inline-tool-detail__manual,
.hub-inline-tool-detail__related {
  border: 1px solid var(--t-border);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--t-shadow-sm);
}
.hub-inline-tool-detail__manual {
  padding: 24px;
}
.hub-inline-tool-detail__related {
  overflow: hidden;
}
.hub-inline-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.hub-inline-steps article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 180px;
  padding: 18px;
  border: 1px solid var(--t-border);
  border-radius: 20px;
  background: #fbfcff;
}
.hub-inline-steps b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--t-accent-tint);
  color: var(--t-accent);
  font-size: 15px;
  font-weight: 950;
}
.hub-inline-steps strong {
  color: var(--t-text);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -.03em;
}
.hub-inline-steps p {
  margin: 0;
  color: var(--t-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
}
.hub-inline-related-list {
  display: grid;
  gap: 8px;
  padding: 14px;
}
.hub-inline-related-list a {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}
.hub-inline-related-list a:hover {
  background: var(--t-accent-tint);
}
.hub-inline-related-list strong {
  display: block;
  color: var(--t-text);
  font-size: 13px;
  font-weight: 950;
}
.hub-inline-related-list em {
  display: block;
  margin-top: 3px;
  color: var(--t-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .hub-main-nav {
    display: none;
  }
  .hub-category-hero,
  .hub-tool-hero,
  .hub-category-layout,
  .hub-tool-layout,
  .hub-inline-tool-detail {
    grid-template-columns: 1fr;
  }
  .hub-category-guide,
  .hub-related-tools {
    position: static;
  }
  .hub-category-switch {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hub-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hub-category-layout--single .hub-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hub-inline-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hub-category-page,
  .hub-tool-page {
    padding: 28px 14px 48px;
  }
  .hub-category-hero__copy,
  .hub-tool-hero__main,
  .hub-tool-manual {
    padding: 22px;
    border-radius: 24px;
  }
  .hub-category-hero h1,
  .hub-tool-hero h1 {
    font-size: 34px;
  }
  .hub-category-hero__panel,
  .hub-tool-hero__side {
    min-height: 190px;
    border-radius: 24px;
  }
  .hub-category-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hub-detail-grid {
    grid-template-columns: 1fr;
  }
  .hub-usage-panel {
    display: grid;
  }
  .hub-autocomplete {
    left: -6px;
    right: -6px;
  }
}

@media (max-width: 640px) {
  .hub-hero-search {
    display: grid;
    grid-template-columns: 20px 1fr;
    border-radius: 18px;
    gap: 10px;
    padding: 10px;
  }
  .hub-hero-search button {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
}

/* =============================================
   WEBIS HUB — TOOL DETAIL UNIFICATION 20260620
   구조: 작은 설명 박스 → 실제 도구 → 사용방법/추천도구
   ============================================= */
.hub-tool-summary {
  border-bottom: 1px solid #edf0f5;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(251,251,253,.96));
}
.hub-tool-summary__inner {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
}
.hub-tool-summary__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: #fff;
  font-size: 25px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}
.hub-tool-summary__copy {
  min-width: 0;
}
.hub-tool-summary__badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .02em;
}
.hub-tool-summary h1 {
  margin: 5px 0 0;
  color: #101827;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -.045em;
}
.hub-tool-summary p {
  max-width: 780px;
  margin: 5px 0 0;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.65;
}
.hub-tool-summary + main {
  width: min(1120px, calc(100% - 32px)) !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 24px 0 44px !important;
}
.hub-tool-summary + main,
.hub-tool-summary + main * {
  box-sizing: border-box;
}
.hub-tool-summary + main > *,
.hub-tool-summary + main section,
.hub-tool-summary + main .panel {
  min-width: 0;
  max-width: 100%;
}
.hub-tool-summary + main input,
.hub-tool-summary + main select,
.hub-tool-summary + main textarea,
.hub-tool-summary + main pre {
  max-width: 100%;
}
.hub-tool-summary + main .overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  contain: paint;
}
.hub-tool-summary + main > .panel,
.hub-tool-summary + main > div > .panel,
.hub-tool-summary + main > div > section,
.hub-tool-summary + main > section:not(.telegram-notice):not(.telegram-reference) {
  border-color: #e7ebf2;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .055);
}
.hub-inline-tool-detail {
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px;
}
.hub-inline-tool-detail__manual,
.hub-inline-tool-detail__related {
  border-color: #e7ebf2;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .055);
}
.hub-inline-tool-detail__manual {
  padding: 22px;
}
.hub-inline-steps article {
  min-height: 150px;
  border-color: #edf0f5;
  background: #fbfcff;
}
.telegram-tool-shell {
  width: min(1120px, calc(100% - 32px));
  padding: 24px 0 44px;
}
.telegram-notice {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px;
}
.telegram-notice strong {
  margin: 0;
}
.telegram-notice p {
  margin: 0;
}
.telegram-panel,
.telegram-reference article {
  border-color: #e7ebf2;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .055);
}
.telegram-panel {
  padding: 20px;
}
.telegram-panel-head h3 {
  font-size: 19px;
}
@media (max-width: 768px) {
  .hub-tool-summary__inner {
    width: min(100% - 24px, 1120px);
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px 0;
  }
  .hub-tool-summary__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 22px;
  }
  .hub-tool-summary + main,
  .telegram-tool-shell,
  .hub-inline-tool-detail {
    width: min(100% - 24px, 1120px) !important;
  }
  .telegram-notice {
    grid-template-columns: 1fr;
  }
  .hub-inline-steps {
    grid-template-columns: 1fr;
  }
  .hub-tool-summary + main .flex {
    min-width: 0;
  }
  .hub-tool-summary + main .items-center.justify-between,
  .hub-tool-summary + main .items-center.gap-2 {
    flex-wrap: wrap;
  }
  .hub-tool-summary + main input,
  .hub-tool-summary + main select,
  .hub-tool-summary + main textarea {
    min-width: 0;
  }
  .hub-tool-summary + main .grid.grid-cols-2 {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .hub-tool-summary + main .font-mono {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .hub-tool-summary + main .text-2xl {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
  }
  .hub-tool-summary + main .text-xl {
    font-size: 1.08rem !important;
    line-height: 1.55rem !important;
  }
  .hub-tool-summary + main .tabular-nums {
    max-width: 100%;
    font-size: clamp(1.9rem, 11vw, 3rem) !important;
    line-height: 1.12 !important;
  }
  .hub-tool-summary + main table {
    width: 100% !important;
    table-layout: fixed;
    font-size: 0.72rem;
  }
  .hub-tool-summary + main th,
  .hub-tool-summary + main td {
    padding-left: 0.32rem !important;
    padding-right: 0.32rem !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

/* =============================================
   WEBIS HUB — MARKDOWN HTML EXPORTER
   목적: .md 파일 첨부 → 좌측 편집 → 우측 미리보기 → HTML 다운로드
   ============================================= */
.md-export-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 52px;
}
.md-export-brief {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid #e7ebf2;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 20px 56px rgba(15, 23, 42, .06);
}
.md-export-brief span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
}
.md-export-brief h2 {
  margin: 8px 0 4px;
  color: #101827;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 950;
  line-height: 1.16;
  letter-spacing: -.05em;
}
.md-export-brief p {
  margin: 0;
  max-width: 760px;
  color: #667085;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.65;
}
.md-export-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.md-export-actions button,
.md-export-file span,
.md-export-pane-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: .16s ease;
}
.md-export-actions button:hover,
.md-export-file:hover span,
.md-export-pane-head button:hover {
  border-color: #c7d2fe;
  color: #4338ca;
  transform: translateY(-1px);
}
.md-export-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.md-export-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.md-export-pane {
  min-width: 0;
  border: 1px solid #e7ebf2;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 20px 56px rgba(15, 23, 42, .06);
  overflow: hidden;
}
.md-export-pane-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid #edf0f5;
  background: #fbfcff;
}
.md-export-pane-head strong {
  display: block;
  color: #101827;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -.025em;
}
.md-export-pane-head p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}
.md-export-preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.md-export-pane-head .is-primary {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #fff;
}
.md-export-title {
  display: grid;
  gap: 7px;
  padding: 16px 20px 0;
}
.md-export-title span {
  color: #475467;
  font-size: 12px;
  font-weight: 850;
}
.md-export-title input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #101827;
  font-size: 14px;
  font-weight: 750;
  outline: none;
}
.md-export-title input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .1);
}
.md-export-pane textarea {
  width: calc(100% - 40px);
  min-height: 620px;
  margin: 16px 20px 0;
  padding: 18px;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: #0f172a;
  color: #dbeafe;
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
}
.md-export-pane textarea:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .13);
}
.md-export-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px 20px;
}
.md-export-stats span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}
.md-export-stats b {
  color: #312e81;
}
.md-export-preview-frame {
  position: relative;
  min-height: 742px;
  padding: 24px;
  background: #f6f7fb;
}
.md-export-empty {
  display: grid;
  place-items: center;
  min-height: 620px;
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  text-align: center;
  color: #64748b;
}
.md-export-empty strong {
  display: block;
  color: #334155;
  font-size: 18px;
  font-weight: 950;
}
.md-export-empty p {
  margin: 6px 0 0;
  font-size: 13px;
}
.md-export-preview {
  min-height: 620px;
  padding: 36px 40px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #fff;
  color: #111827;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .07);
  font-size: 15px;
  line-height: 1.76;
}
.md-export-preview:empty {
  display: none;
}
.md-export-preview h1 {
  margin: 0 0 22px;
  color: #0f172a;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 950;
  line-height: 1.14;
  letter-spacing: -.055em;
}
.md-export-preview h2 {
  margin: 36px 0 13px;
  color: #182033;
  font-size: 25px;
  font-weight: 930;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.md-export-preview h3 {
  margin: 28px 0 10px;
  color: #1f2937;
  font-size: 19px;
  font-weight: 900;
}
.md-export-preview p {
  margin: 12px 0;
  color: #344054;
}
.md-export-preview a {
  color: #4f46e5;
  font-weight: 850;
  text-decoration: none;
}
.md-export-preview a:hover {
  text-decoration: underline;
}
.md-export-preview blockquote {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 5px solid #4f46e5;
  border-radius: 16px;
  background: #eef2ff;
  color: #312e81;
}
.md-export-preview ul,
.md-export-preview ol {
  padding-left: 1.35rem;
}
.md-export-preview li + li {
  margin-top: 6px;
}
.md-export-preview code {
  padding: .12em .36em;
  border-radius: 7px;
  background: #eef2f7;
  color: #334155;
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: .92em;
}
.md-export-preview pre {
  overflow: auto;
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: #111827;
  color: #e5e7eb;
  line-height: 1.65;
}
.md-export-preview pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}
.md-export-preview table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
}
.md-export-preview th,
.md-export-preview td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}
.md-export-preview th {
  background: #f8fafc;
  font-weight: 900;
}
.md-export-preview tr:last-child td {
  border-bottom: 0;
}
.md-export-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.md-export-guide article {
  padding: 18px;
  border: 1px solid #e7ebf2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .045);
}
.md-export-guide strong {
  color: #101827;
  font-size: 15px;
  font-weight: 950;
}
.md-export-guide p {
  margin: 7px 0 0;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
}
.md-export-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  margin: 0;
  padding: 12px 16px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .22);
}
@media (max-width: 1024px) {
  .md-export-workspace {
    grid-template-columns: 1fr;
  }
  .md-export-pane textarea {
    min-height: 420px;
  }
  .md-export-preview-frame {
    min-height: 520px;
  }
  .md-export-preview,
  .md-export-empty {
    min-height: 440px;
  }
}
@media (max-width: 768px) {
  .md-export-shell {
    width: min(100% - 24px, 1280px);
    padding-top: 18px;
  }
  .md-export-brief,
  .md-export-pane-head {
    display: grid;
    grid-template-columns: 1fr;
  }
  .md-export-actions,
  .md-export-preview-actions {
    justify-content: flex-start;
  }
  .md-export-pane textarea {
    width: calc(100% - 28px);
    margin: 14px 14px 0;
    min-height: 360px;
    padding: 14px;
    font-size: 12px;
  }
  .md-export-title {
    padding-left: 14px;
    padding-right: 14px;
  }
  .md-export-stats {
    padding-left: 14px;
    padding-right: 14px;
  }
  .md-export-preview-frame {
    padding: 14px;
  }
  .md-export-preview {
    padding: 26px 20px;
  }
  .md-export-guide {
    grid-template-columns: 1fr;
  }
}
