  /* 인증 상태별 표시 분기 (2026-05-11) */
  .auth-in-only, .auth-out-only { display: none !important; }
  body.is-authed .auth-in-only { display: revert !important; }
  body:not(.is-authed) .auth-out-only { display: revert !important; }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --bg: #ffffff;
    --bg-soft: #f9fafb;
    --card: #ffffff;
    --card-hover: #f3f4f6;
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --text: #111827;
    --text-dim: #6b7280;
    --text-faint: #9ca3af;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-soft: #dbeafe;
    --pink: #ec4899;
    --pink-soft: #fce7f3;
    --indigo: #6366f1;
    --indigo-soft: #e0e7ff;
    --emerald: #10b981;
    --emerald-soft: #d1fae5;
    --amber: #f59e0b;
    --amber-soft: #fef3c7;
    --red: #ef4444;
  }
  body {
    font-family: "Pretendard Variable", "Pretendard", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
    background: var(--bg-soft);
    color: var(--text);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.35; font-weight: 700; color: #0f172a; }
  p, li, label, span { letter-spacing: -0.01em; }
  ::placeholder { color: var(--text-faint); letter-spacing: -0.01em; }
  input, select, textarea, button {
    font-family: inherit; color: inherit;
    letter-spacing: -0.01em;
  }

  /* ===== 헤더 ===== */
  .nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .logo {
    font-size: 18px; font-weight: 800; letter-spacing: 0;
    display: flex; align-items: center; gap: 8px;
  }
  .logo b { color: var(--accent); font-weight: 800; }
  .brand-link {
    color: #0f172a;
    text-decoration: none;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    white-space: nowrap;
  }
  .brand-link b {
    color: #2563eb;
    font-weight: 900;
  }
  .mobile-home-account {
    display: none;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #0f172a;
    font: inherit;
  }
  .mobile-account-avatar,
  .mobile-account-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex: 0 0 auto;
  }
  .mobile-account-avatar-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
  }
  .mobile-account-avatar-img {
    object-fit: cover;
    border: 1px solid #e5e7eb;
  }
  .mobile-account-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9d9d9;
    color: #9ca3af;
    background: #f8fafc;
    position: relative;
  }
  .mobile-login-summary .mobile-account-fallback {
    border-radius: 2px;
    width: 30px;
    height: 30px;
  }
  .mobile-account-fallback::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 7px;
    height: 7px;
    border: 2px solid currentColor;
    border-radius: 50%;
    transform: translateX(-50%);
  }
  .mobile-account-fallback::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    width: 14px;
    height: 8px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    transform: translateX(-50%);
  }
  .mobile-account-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    color: #4b5563;
    max-width: 126px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-account-chevron {
    color: #9ca3af;
    font-size: 22px;
    line-height: 1;
  }
  .nav-menu { display: flex; gap: 18px; }
  .nav-menu button {
    background: none; border: none; color: var(--text-dim);
    font-size: 14px; cursor: pointer; padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
  }
  .nav-menu button:hover { color: var(--text); }
  .nav-menu button.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
  .nav-right { display: flex; gap: 10px; align-items: center; }
  .nav-right .email { color: var(--text-dim); font-size: 12px; }
  .badge {
    display: inline-block;
    padding: 3px 9px; border-radius: 4px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
  }
  .badge-free { background: #f3f4f6; color: #4b5563; }
  .badge-basic { background: var(--accent-soft); color: #1d4ed8; }
  .badge-pro { background: var(--pink-soft); color: #be185d; }
  .badge-business { background: var(--amber-soft); color: #b45309; }

  /* ===== Pricing Page (TradingView 스타일) v0.6 ===== */
  .pricing-shell { max-width: 1280px; margin: 0 auto; padding: 32px 16px 80px; }
  .pricing-hero { text-align: center; padding: 24px 0 32px; }
  .pricing-title {
    font-size: 44px; font-weight: 900; letter-spacing: -1px;
    background: linear-gradient(135deg, #0f172a 0%, #3b82f6 50%, #a855f7 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin: 0 0 12px;
  }
  .pricing-sub { color: #64748b; font-size: 16px; margin: 0 0 28px; }
  .cycle-toggle {
    display: inline-flex; gap: 4px; padding: 4px; background: #f1f5f9;
    border-radius: 999px; align-items: center;
  }
  .cycle-opt {
    padding: 8px 18px; border-radius: 999px; cursor: pointer;
    font-size: 14px; font-weight: 600; color: #64748b;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all .2s;
  }
  .cycle-opt input { display: none; }
  .cycle-opt.active { background: #fff; color: #0f172a; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
  .save-badge {
    background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
    padding: 2px 8px; border-radius: 999px; font-size: 11px;
    font-style: normal; font-weight: 800;
  }

  .pricing-shell { max-width: 1280px; }
  .pricing-grid {
    display: grid; grid-template-columns: repeat(4, minmax(260px, 280px)); gap: 28px;
    justify-content: center;
    margin-top: 40px;
    max-width: 1240px;
    margin-left: auto; margin-right: auto;
  }
  @media (max-width: 1280px) { .pricing-grid { gap: 20px; } }
  @media (max-width: 1180px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
  @media (max-width: 1024px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
  @media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; gap: 16px; } }

  .plan-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    border-radius: 20px;
    padding: 36px 28px 32px;
    border: 1px solid #e2e8f0;
    transition: all .3s;
    display: flex; flex-direction: column;
    min-width: 0;
    min-height: 580px;
  }
  .plan-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15,23,42,0.10); }
  .plan-card.popular {
    background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 0 2px transparent, 0 12px 32px rgba(99, 102, 241, 0.15);
    position: relative;
  }
  .plan-card.popular::before {
    content: ""; position: absolute; inset: -2px; border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #3b82f6, #a855f7, #ec4899);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
  }
  .ribbon {
    position: absolute; top: -12px; right: 18px;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    color: #fff; padding: 4px 12px; border-radius: 999px;
    font-size: 11px; font-weight: 800; letter-spacing: 0;
    box-shadow: 0 4px 12px rgba(99,102,241,0.4);
  }
  .ribbon[hidden] { display: none !important; }
  .plan-head { margin-bottom: 18px; }
  .plan-name { font-size: 16px; font-weight: 800; color: #475569; margin: 0 0 14px; letter-spacing: 1px; }
  .plan-price {
    display: flex; align-items: baseline; gap: 4px;
    margin-bottom: 6px; min-height: 50px;
    white-space: nowrap; flex-wrap: nowrap;
  }
  .plan-price .amount {
    font-size: 30px; font-weight: 900; color: #0f172a;
    letter-spacing: 0; line-height: 1; font-variant-numeric: tabular-nums;
  }
  .plan-price .cycle { font-size: 13px; color: #64748b; font-weight: 700; }
  @media (min-width: 1100px) {
    .plan-price .amount { font-size: 32px; }
  }
  @media (min-width: 1280px) {
    .plan-price .amount { font-size: 36px; }
    .plan-price .cycle { font-size: 14px; }
  }
  .plan-bill { font-size: 12px; color: #64748b; margin-bottom: 4px; }
  .plan-save { font-size: 12px; font-weight: 700; color: #10b981; }

  /* 카드 폭 시원하게 — 큰 화면에서만 padding 늘림 */
  @media (min-width: 1280px) {
    .plan-card { padding: 34px 30px 28px; }
  }

  /* 기능 list 도 들여쓰기 줄여서 폭 확보 */
  .plan-feats li { padding-left: 22px; font-size: 13px; }
  .plan-feats li.ok::before, .plan-feats li.off::before { font-size: 13px; }
  .plan-cta {
    width: 100%; padding: 12px 10px; border-radius: 10px;
    border: 0; font-weight: 700; font-size: 14px;
    cursor: pointer; transition: all .2s;
    margin-bottom: 18px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .plan-cta-free { background: #f1f5f9; color: #475569; cursor: default; }
  .plan-cta-up { background: #0f172a; color: #fff; }
  .plan-cta-up:hover { background: #3b82f6; transform: translateY(-1px); }
  .plan-cta-down { background: #f1f5f9; color: #475569; }
  .plan-cta-down:hover { background: #e2e8f0; transform: translateY(-1px); }
  .plan-card.popular .plan-cta-up { background: linear-gradient(135deg, #3b82f6, #a855f7); }
  .plan-card.popular .plan-cta-up:hover { box-shadow: 0 8px 20px rgba(99,102,241,0.4); }

  .plan-feats { list-style: none; padding: 0; margin: 0; flex: 1; }
  .plan-feats li {
    padding: 7px 0 7px 26px; font-size: 13px; color: #334155;
    position: relative; line-height: 1.5;
  }
  .plan-feats li.ok::before {
    content: "✓"; position: absolute; left: 0; top: 6px;
    color: #10b981; font-weight: 800;
  }
  .plan-feats li.off { color: #94a3b8; }
  .plan-feats li.off::before {
    content: "×"; position: absolute; left: 0; top: 6px;
    color: #cbd5e1; font-weight: 800;
  }
  .plan-feats li b { color: #0f172a; }

  /* 비교 표 */
  .pricing-compare { margin: 56px auto 0; max-width: 1240px; }
  .pricing-compare h3 { font-size: 22px; font-weight: 800; margin: 0 0 18px; color: #0f172a; }
  .pricing-compare table {
    width: 100%; border-collapse: collapse;
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 12px rgba(15,23,42,0.05);
  }
  .pricing-compare th, .pricing-compare td {
    padding: 12px 14px; text-align: center; font-size: 13px;
    border-bottom: 1px solid #f1f5f9;
  }
  .pricing-compare th { background: #f8fafc; color: #475569; font-weight: 700; font-size: 12px; letter-spacing: 0.5px; }
  .pricing-compare td:first-child, .pricing-compare th:first-child { text-align: left; color: #475569; font-weight: 600; }
  .pricing-compare .hl { background: linear-gradient(180deg, rgba(99,102,241,0.04), rgba(168,85,247,0.06)); }
  .pricing-compare th.hl { color: #6366f1; font-weight: 800; }

  /* 기업용 */
  .pricing-enterprise {
    margin: 32px auto 0; padding: 24px 28px;
    max-width: 1240px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 14px; color: #fff;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    flex-wrap: wrap;
  }
  .pricing-enterprise strong { font-size: 18px; }
  .pricing-enterprise p { margin: 6px 0 0; color: #cbd5e1; font-size: 13px; }
  .enterprise-btn {
    background: #fff; color: #0f172a; border: 0;
    padding: 12px 22px; border-radius: 10px;
    font-weight: 700; font-size: 14px; cursor: pointer;
    transition: all .2s;
  }
  .enterprise-btn:hover { background: #fef3c7; transform: translateY(-1px); }

  /* 문의 카테고리 pill */
  .iq-cat {
    padding: 6px 14px; border-radius: 999px; border: 1px solid #d1d5db;
    background: #fff; cursor: pointer; font-size: 13px; color: #475569;
    transition: all .15s; font-weight: 600;
  }
  .iq-cat:hover { border-color: #3b82f6; color: #3b82f6; }
  .iq-cat.active { background: #3b82f6; color: #fff; border-color: #3b82f6; }

  /* 어드민 inquiry filter */
  .admin-iq-filter {
    padding: 6px 14px; border-radius: 999px; border: 1px solid #d1d5db;
    background: #fff; cursor: pointer; font-size: 12px; color: #475569;
    font-weight: 600;
  }
  .admin-iq-filter.active { background: #0f172a; color: #fff; border-color: #0f172a; }
  .iq-list-item.active { background: #eff6ff; border-left: 3px solid #3b82f6; }

  /* viewArticle 모달 — 이미지 넘침 fix (2026-05-11) */
  #avBody { overflow-x: hidden; word-break: break-word; }
  #avBody img { max-width: 100%; height: auto; display: block; margin: 12px auto; border-radius: 8px; }
  #avBody pre, #avBody code { white-space: pre-wrap; word-break: break-word; }

  /* 자동 검토 배지 — plan 따라 색상 분기 */
  .auto-review-badge {
    font-size: 11px; padding: 4px 8px; border-radius: 6px;
    color: #15803d; background: #dcfce7; border: 1px solid #bbf7d0;
    font-weight: 600; white-space: nowrap;
  }
  .auto-review-badge.locked {
    color: #92400e; background: #fef3c7; border-color: #fcd34d;
  }

  /* FREE plan 검토 unlock 안내 박스 */
  .plan-gate-banner {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b; border-radius: 10px;
    padding: 14px 16px; margin-bottom: 14px;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
  }
  .plan-gate-banner .pg-text { font-size: 13px; color: #92400e; font-weight: 600; line-height: 1.5; }
  .plan-gate-banner .pg-btn {
    background: #0f172a; color: #fff; border: 0;
    padding: 8px 16px; border-radius: 8px;
    font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap;
  }

  /* ===== 컨테이너 ===== */
  .container { max-width: 920px; margin: 0 auto; padding: 24px 18px 60px; }

  /* ===== 카드 ===== */
  .card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 16px;
  }
  .card h2 {
    font-size: 15px; font-weight: 700; margin-bottom: 14px;
    color: var(--text); display: flex; align-items: center; gap: 8px;
  }
  .card h2 small { font-size: 12px; font-weight: 400; color: var(--text-faint); }

  /* ===== 폼 ===== */
  label.field-label {
    display: block; font-size: 12px; font-weight: 600;
    color: var(--text-dim); margin-bottom: 6px;
  }
  label .opt { color: var(--text-faint); font-weight: 400; }
  input, select, textarea {
    width: 100%;
    background: #fff; border: 1px solid var(--border-strong);
    border-radius: 8px; padding: 10px 12px;
    font-size: 14px; color: var(--text);
    transition: border-color .15s;
  }
  input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  .row { display: flex; gap: 10px; margin-bottom: 12px; }
  .row > * { flex: 1; }
  .field { margin-bottom: 14px; }

  /* ===== 토글 버튼 그룹 ===== */
  .pill-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .pill-group .pill-label {
    font-size: 12px; color: var(--text-dim); margin-right: 4px;
  }
  .pill {
    padding: 5px 11px; border-radius: 6px;
    font-size: 12px; font-weight: 500; cursor: pointer;
    border: 1px solid transparent;
    background: #f3f4f6; color: #6b7280;
    transition: all .12s;
  }
  .pill:hover { background: #e5e7eb; color: var(--text); }
  .pill.active.blue { background: var(--accent); color: #fff; }
  .pill.active.pink { background: var(--pink); color: #fff; }
  .pill.active.indigo { background: var(--indigo); color: #fff; }
  .pill.active.emerald { background: var(--emerald); color: #fff; }
  .pill.active.amber { background: var(--amber); color: #fff; }
  .pill.soft.blue { background: var(--accent-soft); color: #1d4ed8; }
  .pill.soft.blue:hover { background: #bfdbfe; }
  .pill.soft.blue.active { background: var(--accent); color: #fff; }
  .pill.soft.pink { background: var(--pink-soft); color: #be185d; }
  .pill.soft.pink:hover { background: #fbcfe8; }
  .pill.soft.pink.active { background: var(--pink); color: #fff; }
  .pill.soft.indigo { background: var(--indigo-soft); color: #4338ca; }
  .pill.soft.indigo:hover { background: #c7d2fe; }
  .pill.soft.indigo.active { background: var(--indigo); color: #fff; }
  .pill.soft.amber { background: var(--amber-soft); color: #b45309; }
  .pill.soft.amber:hover { background: #fde68a; }
  .pill.soft.amber.active { background: var(--amber); color: #fff; }
  .pill.soft.emerald { background: var(--emerald-soft); color: #047857; }
  .pill.soft.emerald.active { background: var(--emerald); color: #fff; }

  /* ===== 버튼 ===== */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: #fff; border: 1px solid var(--border-strong);
    border-radius: 8px; padding: 9px 16px;
    font-size: 14px; cursor: pointer; font-weight: 500;
    color: var(--text); transition: all .12s;
  }
  .btn:hover { background: var(--card-hover); border-color: var(--accent); }
  .btn-primary {
    background: var(--accent); color: #fff; border-color: var(--accent);
    font-weight: 600;
  }
  .btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
  .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
  .btn-block { width: 100%; padding: 13px; font-size: 15px; }
  .btn-ghost {
    background: transparent; border-color: var(--border);
    font-size: 12px; padding: 5px 11px;
  }
  .btn-ghost:hover { background: var(--card-hover); }

  /* ===== 통계 ===== */
  .stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
    margin-bottom: 18px;
  }
  .stat {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 10px; padding: 12px 14px;
  }
  .stat .label { color: var(--text-faint); font-size: 11px; margin-bottom: 4px; letter-spacing: 0.3px; }
  .stat .value { font-size: 20px; font-weight: 700; color: var(--accent); line-height: 1; }

  /* ===== 키워드 칩 ===== */
  .keyword-row {
    display: flex; gap: 8px; align-items: center; margin-bottom: 6px;
  }
  .keyword-row input[type=text] { flex: 1; }
  .keyword-row input[type=number] { width: 70px; text-align: center; }
  .keyword-row .kw-num {
    font-size: 11px; color: var(--text-faint); width: 18px; text-align: right;
  }

  /* ===== 결과 영역 ===== */
  .result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .result-header h2 {
    margin-bottom: 14px;
  }
  .mobile-result-back {
    display: none;
  }
  .result-toolbar {
    display: flex; gap: 12px; flex-wrap: wrap;
    align-items: center; justify-content: space-between;
    margin-bottom: 12px;
    font-size: 12px; color: var(--text-dim);
  }
  .result-toolbar .stats-inline { display: flex; gap: 14px; }
  .result-toolbar .stats-inline b { color: var(--text); font-weight: 700; }
  .result-toolbar .stats-inline .over { color: var(--red); }
  .result-toolbar .controls { display: flex; gap: 8px; align-items: center; }
  .result-toolbar select { width: auto; padding: 5px 8px; font-size: 12px; }
  .color-toggle {
    width: 22px; height: 22px; border-radius: 50%;
    cursor: pointer; border: 2px solid transparent;
    transition: border-color .12s;
  }
  .color-toggle.off { opacity: 0.3; }
  .color-toggle.active { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }

  .result-box {
    line-height: 1.8;
    background: #fff; border: 1px solid var(--border);
    border-radius: 8px; padding: 24px 26px;
    font-family: "NanumGothic", "Nanum Gothic", "나눔고딕", sans-serif;
    font-size: 15px; min-height: 200px; max-height: 80vh; overflow-y: auto;
    color: var(--text);
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .result-box.has-content { min-height: min(400px, 62vh); }
  .result-box p { margin: 0 0 12px; }
  .result-box .empty-line { height: 10px; }
  .result-box .heading {
    font-size: 1.25em; font-weight: 700;
    line-height: 1.45;
    margin: 22px 0 12px; color: var(--text);
    padding-bottom: 6px; border-bottom: 1px solid var(--border);
  }
  .result-box hr {
    border: none; border-top: 1px dashed var(--border-strong);
    margin: 14px 0;
  }
  .result-box b { color: var(--text); font-weight: 700; }
  .result-box mark {
    background: #fff176; color: var(--text);
    padding: 0 4px; border-radius: 3px; font-weight: 700;
  }
  .result-box .photo-slot {
    display: block; margin: 14px auto;
    max-width: 380px; text-align: center;
  }
  .result-box .photo-slot img {
    width: 100%; max-width: 380px;
    border-radius: 10px; border: 1px solid var(--border);
    display: block; margin: 0 auto 4px;
  }
  .result-box .photo-slot .photo-label {
    font-size: 11px; color: var(--text-faint);
  }
  .result-box .photo-slot.placeholder {
    padding: 26px 18px;
    background: var(--bg-soft); border: 1px dashed var(--border-strong);
    border-radius: 10px;
    color: var(--text-faint); font-size: 13px;
  }

  /* ===== 이력 ===== */
  .history-row {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .12s;
  }
  .history-row:hover { background: var(--card-hover); }
  .history-row:last-child { border-bottom: none; }
  .history-row .title { color: var(--text); font-weight: 600; margin-bottom: 4px; }
  .history-row .meta { font-size: 12px; color: var(--text-faint); display: flex; gap: 10px; }
  .empty { color: var(--text-faint); padding: 50px 20px; text-align: center; font-size: 14px; }

  /* ===== 토스트 ===== */
  .toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #fff; color: var(--text);
    border: 1px solid var(--border-strong);
    padding: 11px 22px; border-radius: 10px;
    font-size: 14px; opacity: 0;
    transition: all .2s; z-index: 100; max-width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
  .toast.error { border-color: var(--red); color: #b91c1c; }
  .toast.success { border-color: var(--emerald); color: #047857; }

  /* ===== 모바일 ===== */
  @media (max-width: 640px) {
    .nav { padding: 10px 14px; }
    .nav-menu { gap: 14px; }
    .nav-right .email { display: none; }
    .container { padding: 16px 12px 40px; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .row { flex-direction: column; gap: 12px; margin-bottom: 0; }
    .row > * { margin-bottom: 0; }
    .result-box {
      padding: 18px 16px;
      min-height: 180px;
      max-height: 72vh;
      line-height: 1.78;
    }
    .result-box.has-content { min-height: min(360px, 58vh); }
    .result-box .heading { margin: 18px 0 10px; }
  }

  /* ===== AI 검토 모달 reset (글로벌 input width:100% 무력화) ===== */
  #reviewSettingsModal input[type="checkbox"] {
    width: auto !important;
    padding: 0 !important;
    border: 1px solid #9ca3af !important;
    box-shadow: none !important;
    margin: 3px 0 0 0 !important;
    flex-shrink: 0 !important;
  }
  #reviewSettingsModal label {
    margin: 0 !important;
  }

/* ═══════════════════════════════════════════════════
   모바일 최적화 (2026-05-11)
   핵심 원인: 한국어 word-break default 가 글자 단위 쪼갬
   ═══════════════════════════════════════════════════ */

/* 글로벌 한국어 줄바꿈 — 단어 단위 (필수) */
html, body {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* === 작성 탭 Hero — 블덱스 본체 패턴 (2026-05-12 v3, Gemini 분석 적용) === */
.bw-hero {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}
/* 타이틀+부제 한 그룹 — 게슈탈트 근접성 */
.bw-hero-title-group {
  margin-bottom: 36px;
}
.bw-hero-logo {
  font-family: "Pretendard Variable", "Pretendard", -apple-system, sans-serif;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.035em;  /* Gemini: -3% */
  color: #0f172a;
  margin: 0;
  line-height: 1.2;          /* Gemini: 타이틀 그룹 120-130% */
}
.bw-hero-logo-writer {
  background: linear-gradient(135deg, #2962ff 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bw-hero-logo-ver {
  color: #2962ff;
  font-weight: 800;
}
.bw-hero-tagline {
  font-family: "Pretendard Variable", "Pretendard", -apple-system, sans-serif;
  font-size: 15px;
  color: #5b6470;
  letter-spacing: -0.02em;   /* Gemini: -2% */
  margin: 6px 0 0;           /* 타이틀과 부제 가까이 (한 그룹) */
  font-weight: 500;
  line-height: 1.4;
}

/* 검색창 — 블덱스 본체 연한 회색 border (focus 시 색 변화 X — 대표님 명시) */
.bw-hero-search {
  display: flex;
  width: 100%;
  max-width: 560px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  overflow: hidden;
}
/* focus-within 시 변화 X — 클릭해도 그대로 */
.bw-hero-search input,
.bw-hero-search input:hover,
.bw-hero-search input:focus,
.bw-hero-search input:focus-visible,
.bw-hero-search input:active {
  flex: 1;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 13px 16px !important;
  font-size: 15px !important;
  color: #0f172a !important;
  outline: 0 !important;
  outline-offset: 0 !important;
  letter-spacing: -0.015em !important;
  box-shadow: none !important;
  font-family: "Pretendard Variable", "Pretendard", -apple-system, sans-serif;
  font-weight: 400;
  width: auto !important;
  min-width: 0;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.bw-hero-search input::placeholder { color: #94a3b8; }

.bw-hero-icon-btn {
  background: #f8fafc;
  color: #0f172a;
  border: 0;
  border-left: 1px solid #e5e7eb;
  padding: 0 18px !important;
  font-size: 18px;
  cursor: pointer;
  transition: background .15s, transform .05s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  border-radius: 0 !important;
}
.bw-hero-icon-btn:hover { background: #e5e7eb; }
.bw-hero-icon-btn:active { transform: scale(0.95); }
.bw-hero-write {
  background: #2962ff !important;
  color: #fff !important;
  font-size: 17px !important;
}
.bw-hero-write:hover { background: #1e53e5 !important; }
.bw-hero-icon-btn.open {
  background: #eff6ff !important;
  color: #2962ff;
}

.advanced-settings-toggle {
  width: 100%;
  margin: 0 0 14px;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.advanced-settings-toggle:hover { background: #dbeafe; }
.advanced-settings[hidden] { display: none !important; }

@media (min-width: 769px) {
  .bw-hero-search {
    display: none !important;
  }
}

#genSettings:not([hidden]) {
  animation: bw-settings-fade-in .25s ease-out;
}
@keyframes bw-settings-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === 푸터 sticky bottom — 화면 짧을 때도 최하단 === */
body { min-height: 100vh; display: flex; flex-direction: column; }
#mainView { display: flex; flex-direction: column; flex: 1; min-height: 100vh; }
.container { flex: 1; }
footer { flex-shrink: 0; }

@media (max-width: 768px) {
  /* 모바일 — 블덱스 본체 패턴: 격자 배경 */
  body {
    background-color: #fff !important;
    background-image:
      linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px) !important;
    background-size: 56px 56px !important;
  }

  /* 블덱스 본체 3.0 패턴 — Next.js wrapper 까지 viewport 채워서 한 viewport 흐름 (2026-05-13 Phase 1) */
  /* DOM debug 로 발견: body 직접 자식이 #mainView 가 아닌 Next.js wrapper <div>.
     그 wrapper 가 자기 컨텐츠 만큼만 (152px) 차지해서 footer 후 빈 격자 발생.
     wrapper 를 flex column + 100vh 로 강제 → 안의 #mainView/.container/.bw-hero 가 flex:1 으로 분배. */
  body > div {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
  }
  /* Next.js page.tsx 의 rootRef div — 그 안에 #mainView + footer inject. flex chain 한 단계 더 */
  #bdx-root {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #mainView {
    flex: 1 1 0 !important;
    min-height: 0 !important;
  }
  .container {
    padding: 0 !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #tabGenerate {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  /* hero — 가운데 정렬, viewport 안 남는 공간 차지 */
  .bw-hero {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }
  footer { flex-shrink: 0 !important; }
  .bw-hero-title-group { margin-bottom: 28px; }
  .bw-hero-logo { font-size: 36px; letter-spacing: -0.04em; line-height: 1.15; }
  .bw-hero-tagline { font-size: 14px; margin-top: 4px; }
  .bw-hero-search { max-width: 100%; }

  /* hero input — line 1076 의 일반 input border 룰 강제 override (specificity 강화) */
  .bw-hero-search input[type="text"],
  .bw-hero-search input[type="text"]:hover,
  .bw-hero-search input[type="text"]:focus,
  .bw-hero-search input[type="text"]:focus-visible,
  .bw-hero-search input[type="text"]:active {
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    color: #0f172a !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
  .bw-hero-icon-btn { min-width: 48px; padding: 0 12px !important; font-size: 17px !important; }
  .bw-hero-write { font-size: 16px !important; }

  /* 푸터 사업자 정보 — 모바일 숨김 (링크만 화면 맨 아래) */
  .footer-biz { display: none !important; }
  footer {
    margin-top: 0 !important;
    padding: 14px !important;
    background: #fafbff !important;
    border-top: 1px solid #e5e7eb !important;
  }
}

/* === 마이페이지 — TradingView 톤 (2026-05-12) === */
.mp-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin: 0 0 24px;
}
.mp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
/* 좌측 블덱스 카드 — row 2개 차지 (큰 카드) */
.mp-card-blogdex { grid-row: span 2; }

.mp-card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.mp-card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 20px;
}
.mp-card-desc {
  font-size: 13.5px;
  color: #5b6470;
  line-height: 1.6;
  margin: 0 0 18px;
}

/* 플랜 박스 */
.mp-plan-box {
  background: #f8fafc;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.mp-plan-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #94a3b8;
  text-transform: uppercase;
}
.mp-plan-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin: 4px 0 6px;
}
.mp-plan-info { font-size: 13px; color: #5b6470; line-height: 1.5; }
.mp-plan-expire { font-size: 11px; color: #94a3b8; margin-top: 8px; }

/* TradingView 패턴 — label / value 행 */
.mp-row-list {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e8eaed;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.mp-row-label { color: #5b6470; }
.mp-row-value { color: #0f172a; font-weight: 600; }

/* 버튼 — 트레이딩뷰 톤 (작고 깔끔) */
.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 0;
  transition: opacity .15s, transform .05s;
}
.mp-btn:active { transform: scale(0.98); }
.mp-btn-primary { background: #2962ff; color: #fff; }
.mp-btn-primary:hover { background: #1e53e5; }
.mp-btn-outline {
  background: #fff;
  color: #0f172a;
  border: 1px solid #e8eaed;
}
.mp-btn-outline:hover { background: #f8fafc; }

/* 블덱스 카드 — 프로필 헤더 */
.mp-bdx-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8eaed;
  margin-bottom: 18px;
}
.mp-bdx-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e8eaed;
  flex-shrink: 0;
}
.mp-bdx-avatar-fallback {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #94a3b8;
  flex-shrink: 0;
}
.mp-bdx-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.mp-bdx-influencer {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  color: #78350f;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 6px;
  letter-spacing: -0.01em;
}
.mp-bdx-url {
  font-size: 12px;
  color: #5b6470;
  text-decoration: none;
  word-break: break-all;
  display: block;
  margin-top: 2px;
}
.mp-bdx-url:hover { color: #2962ff; }

/* 통계 grid */
.mp-bdx-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.mp-bdx-stat {
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 10px;
}
.mp-bdx-stat-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.mp-bdx-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 4px;
  letter-spacing: -0.02em;
}

/* 메타 (UID / 로그인 방식) */
.mp-bdx-meta {
  padding-top: 16px;
  border-top: 1px solid #e8eaed;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mp-bdx-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.mp-bdx-meta-label { color: #94a3b8; }
.mp-bdx-meta-value { color: #5b6470; font-family: ui-monospace, "SF Mono", monospace; font-size: 11px; }

/* 모바일 — 1 column stack */
@media (max-width: 768px) {
  .mp-title { font-size: 22px; margin-bottom: 16px; }
  .mp-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .mp-card-blogdex { grid-row: auto; }
  .mp-card { padding: 20px !important; border-radius: 12px !important; }
  .mp-card-title { font-size: 16px !important; margin-bottom: 14px !important; }
  .mp-plan-box { padding: 14px 16px !important; }
  .mp-plan-name { font-size: 22px !important; }
  .mp-bdx-stats { gap: 8px !important; }
  .mp-bdx-stat { padding: 10px 12px !important; }
}

/* 햄버거 버튼 — PC 에선 숨김 */
.nav-hamburger {
  display: none;
  background: transparent; border: 0;
  font-size: 24px; line-height: 1;
  cursor: pointer; color: #0f172a;
  padding: 6px 12px; border-radius: 8px;
}
.nav-hamburger:hover { background: #f1f5f9; }

/* PC 에서 nav-drawer 는 투명한 wrapper (자식이 그대로 flex item) */
.nav-drawer { display: contents; }

@media (max-width: 768px) {
  /* nav — 모바일에서는 햄버거 토글 패턴 (블덱스 본체 floating 드롭다운 패턴) */
  .nav {
    padding: 10px 14px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative !important;
  }
  .logo { flex-shrink: 1 !important; min-width: 0 !important; }
  .logo .brand-link {
    white-space: nowrap !important;
    padding: 4px 4px !important;
    font-size: 19px !important;
    letter-spacing: 0 !important;
  }
  body.tab-generate .logo .brand-link {
    display: none !important;
  }
  body.tab-generate:not(.is-authed) .mobile-login-summary,
  body.tab-generate.is-authed .mobile-user-summary {
    display: inline-flex !important;
  }
  body.tab-generate .mobile-home-account {
    height: 34px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    gap: 7px !important;
    line-height: 1 !important;
    flex: 0 1 auto !important;
  }
  body.tab-generate .mobile-account-name {
    line-height: 1.15 !important;
  }

  /* 햄버거 노출 + 우측 정렬 */
  .nav-hamburger { display: block !important; margin-left: auto; }

  /* nav-drawer — 블덱스 본체 모바일 햄버거 1차 분석 그대로 (2026-05-12 v2) */
  .nav-drawer {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 4px) !important;
    right: 10px !important;
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;       /* 블덱스 본체 ~6-8px 살짝 둥근 */
    box-shadow: 0 4px 16px rgba(15,23,42,0.08) !important;
    width: 240px !important;             /* 블덱스 본체 ~240px */
    max-width: calc(100vw - 20px) !important;
    padding: 6px 0 !important;           /* 위아래 6px (항목 첫/끝 호흡) */
    z-index: 100 !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  .nav.mobile-open .nav-drawer {
    display: flex !important;
  }

  /* drawer 안 — 블덱스 본체 패턴: 항목 일렬 stack, 그룹 사이만 구분선 */
  .nav.mobile-open .nav-menu,
  .nav.mobile-open .nav-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  /* 그룹 구분 — nav-right 위 가는 선 1개만 */
  .nav.mobile-open .nav-right {
    border-top: 1px solid #e5e7eb !important;
  }

  /* 메뉴 항목 — 블덱스 본체 1차 분석 그대로 (15px / 400 Regular / 활성 700 Bold + 검정) */
  .nav.mobile-open .nav-menu button,
  .nav.mobile-open .nav-right button,
  .nav.mobile-open .nav-right #signupBtn,
  .nav.mobile-open .nav-right #loginBtn,
  .nav.mobile-open .nav-right #navMypageBtn,
  .nav.mobile-open .nav-right #logoutBtn {
    width: 100% !important;
    text-align: left !important;
    padding: 13px 22px !important;       /* 블덱스 본체 ~14x22 */
    border-radius: 0 !important;
    font-size: 15px !important;          /* 블덱스 본체 15px */
    font-weight: 400 !important;         /* 블덱스 본체 Regular */
    border: 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;  /* 박스 X — 일반 텍스트 리스트 */
    color: #1f2937 !important;
    white-space: normal !important;
    word-break: keep-all !important;
    transition: background .15s;
    letter-spacing: -0.015em !important;
    line-height: 1.4 !important;
    margin: 0 !important;
  }
  .nav.mobile-open .nav-menu button:hover,
  .nav.mobile-open .nav-right button:hover {
    background: #f8fafc !important;
  }
  /* 활성 메뉴 — 블덱스 본체 패턴: 검정 + Bold 700 (배경 X) */
  .nav.mobile-open .nav-menu button.active {
    color: #0f172a !important;
    font-weight: 700 !important;
    background: transparent !important;
  }
  /* 로그아웃 — 블덱스 본체 패턴: 빨간색 강조 */
  .nav.mobile-open .nav-right #logoutBtn {
    color: #dc2626 !important;
    font-weight: 500 !important;
  }
  .nav.mobile-open .nav-right #logoutBtn:hover {
    background: #fef2f2 !important;
  }

  /* 이메일/플랜뱃지 — drawer 안에서 표시 (작은 라벨) */
  .nav-right .email {
    display: block !important;
    padding: 10px 22px 4px !important;
    font-size: 12px !important;
    color: #94a3b8 !important;
    word-break: break-all;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
  }
  .nav-right .badge {
    display: inline-block !important;
    margin: 0 22px 6px !important;
    font-size: 11px !important;
    padding: 3px 10px !important;
    align-self: flex-start !important;
  }

  /* 이메일/플랜뱃지 — drawer 안에서 표시 */
  .nav-right .email {
    display: block !important; padding: 6px 12px;
    font-size: 12px; color: #475569;
    word-break: break-all;
  }
  .nav-right .badge {
    font-size: 11px !important; padding: 3px 10px !important;
    align-self: flex-start; margin-left: 12px;
  }

  /* === 모바일 톤 — 블덱스 본체 패턴 (큰 폰트 + 시원한 spacing) === */
  body {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  /* 컨테이너 spacing */
  .container { padding: 14px !important; }
  .card {
    padding: 22px 18px !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04) !important;
    border: 1px solid #e8eaed !important;
    margin-bottom: 14px !important;
  }
  .card h2 {
    font-size: 19px !important;
    margin-bottom: 18px !important;
    letter-spacing: -0.03em !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }
  .card h3 { font-size: 16px !important; letter-spacing: -0.02em !important; }
  .card p, .card li { font-size: 14.5px !important; line-height: 1.6 !important; color: #475569 !important; }

  /* 폼 input/textarea/select — iOS zoom 방지 16px + 시원한 padding */
  input[type="text"], input[type="email"], input[type="password"],
  input[type="tel"], input[type="number"], input[type="url"],
  input[type="search"], textarea, select {
    font-size: 16px !important;
    line-height: 1.5 !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    color: #0f172a !important;
    width: 100% !important;
    transition: border-color .15s, box-shadow .15s;
    letter-spacing: -0.01em !important;
  }
  input:focus, textarea:focus, select:focus {
    outline: none !important;
    border-color: #2962ff !important;
    box-shadow: 0 0 0 3px rgba(41,98,255,0.12) !important;
  }
  ::placeholder { font-size: 15px !important; color: #94a3b8 !important; letter-spacing: -0.01em !important; }
  textarea { min-height: 100px !important; resize: vertical !important; line-height: 1.55 !important; }

  /* label — 시원한 spacing */
  label, .field-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.01em !important;
  }
  small, .hint, .field-hint {
    font-size: 12px !important;
    color: #94a3b8 !important;
    line-height: 1.55 !important;
  }

  /* 버튼 — 블덱스 본체 톤 (큰 padding + #2962ff primary) */
  button, .btn {
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    letter-spacing: -0.01em !important;
    cursor: pointer;
    transition: background .15s, transform .05s, opacity .15s;
  }
  button:active, .btn:active { transform: scale(0.98); }
  .btn-primary {
    background: #2962ff !important;
    color: #fff !important;
    border: 0 !important;
    padding: 14px 20px !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
  }
  .btn-primary:hover, .btn-primary:active { background: #1e53e5 !important; }
  .btn-block { width: 100% !important; }

  /* 글 종류 / 캐릭터 / 썸네일 pill — 시원한 padding */
  .pill, [data-tab], .article-type-btn, .character-btn, .thumbnail-type-btn {
    font-size: 14px !important;
    padding: 10px 16px !important;
    border-radius: 999px !important;
    font-weight: 500 !important;
  }

  /* 통계 카드 — 2x2 grid */
  #statBar {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  #statBar > div {
    padding: 14px 16px !important;
    border-radius: 14px !important;
    border: 1px solid #e8eaed !important;
  }
  #statBar .stat-label { font-size: 12px !important; color: #5b6470 !important; }
  #statBar .stat-value { font-size: 24px !important; font-weight: 700 !important; letter-spacing: -0.03em !important; color: #0f172a !important; }

  /* 글 종류 선택 — 가로 배치 + 시원한 padding */
  #articleTypeWrap { display: flex !important; gap: 8px !important; flex-wrap: wrap !important; }
  #articleTypeWrap button {
    flex: 1 !important;
    min-width: calc(50% - 4px) !important;
    text-align: center !important;
    padding: 12px 8px !important;
  }

  /* 푸터 — 작고 단정 */
  footer { font-size: 12px !important; line-height: 1.6 !important; padding: 24px 14px !important; }
  footer a { font-size: 12px !important; }

  /* 컨테이너 padding 축소 */
  .container { padding: 8px !important; }
  .card { padding: 14px 12px !important; }
  .card h2 { font-size: 16px !important; }

  /* 작성자 프로필 grid → 1-column */
  #expertProfileWrap > div[style*="grid-template-columns:1fr 1fr"],
  #expertProfileWrap > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* 마이페이지 grid → 1-column */
  #tabMypage > .card > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* 통계 카드 — 2x2 */
  .stats { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .stats > div { padding: 12px !important; }

  /* 플랜 비교표 — 가로 스크롤 + 첫 컬럼 sticky */
  .pricing-compare { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .pricing-compare table { min-width: 560px; }
  .pricing-compare td, .pricing-compare th {
    padding: 8px 6px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
  .pricing-compare td:first-child, .pricing-compare th:first-child {
    white-space: normal !important;
    word-break: keep-all !important;
    min-width: 100px;
    position: sticky; left: 0;
    background: #fff;
    z-index: 1;
  }
  .pricing-compare h3 { font-size: 16px !important; }

  /* 가격 카드 → 1-column 정렬 + 폰트 축소 */
  .pricing-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .plan-card { padding: 18px 14px !important; }
  .plan-price .amount { font-size: 32px !important; }
  .plan-price .cycle { font-size: 13px !important; }
  .pricing-title { font-size: 28px !important; }
  .pricing-sub { font-size: 13px !important; }
  .pricing-shell { padding: 20px 12px 60px !important; }

  /* 모달 — 모바일 max-height + padding 축소 */
  #paymentModal > div,
  #authModal > div,
  #inquiryModal > div,
  #reviewSettingsModal > div {
    max-height: 92vh !important;
    border-radius: 12px !important;
  }

  /* AI 검토 설정 모달 — 모바일 세로 stack (좌 aside / 우 main 분할 → 위 사업체 pill / 아래 컨텐츠) */
  #reviewSettingsContent { height: 92vh !important; }
  #reviewSettingsContent > div:nth-child(2) {
    flex-direction: column !important;
    overflow: hidden !important;
  }
  #bizSidebar {
    width: 100% !important;
    max-height: 56px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 10px 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #bizSidebar::-webkit-scrollbar { display: none; }
  #bizSidebar > div:first-child {
    /* "사업체" 작은 라벨 — 모바일에서 짧게 */
    padding: 0 !important;
    margin: 0 8px 0 0 !important;
    font-size: 11px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  #bizSidebar button {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    width: auto !important;
    text-align: center !important;
    margin: 0 !important;
  }
  /* main — 풀폭 */
  #modalRulesContent { padding: 14px !important; }
  #inquiryModal > div {
    height: 90vh !important;
  }
  /* 문의 모달 — 모바일에서 좌측 list 위 / 우측 thread 아래 세로 stack */
  #inquiryModal > div > div:last-child {
    flex-direction: column !important;
  }
  #inquiryModal aside {
    width: 100% !important;
    max-height: 32vh !important;
    border-right: 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    flex-shrink: 0 !important;
  }
  #iqList { display: flex; flex-direction: column; }
  #iqList > * {
    padding: 10px 14px !important;
    font-size: 13px !important;
    border-bottom: 1px solid #f1f5f9;
  }
  #iqMain { min-height: 50vh !important; }
  #iqEmpty {
    font-size: 13px !important;
    padding: 24px 16px !important;
  }
  /* 카테고리 pill 줄바꿈 */
  #inquiryCats { gap: 4px !important; }
  #inquiryCats button.iq-cat {
    font-size: 12px !important;
    padding: 6px 10px !important;
  }

  /* 캐릭터 / 썸네일 pill 줄바꿈 + 폰트 축소 */
  .pill-group { flex-wrap: wrap !important; gap: 4px !important; }
  .pill {
    font-size: 12px !important;
    padding: 5px 10px !important;
    white-space: nowrap !important;
  }

  /* 폼 input — 줌인 방지 (16px 이상) */
  input[type="text"], input[type="email"], input[type="password"],
  input[type="tel"], input[type="number"], textarea, select {
    font-size: 16px !important;
  }

  /* footer 모바일 */
  footer { padding: 20px 12px !important; }
  footer > div > div:first-child { gap: 12px !important; font-size: 12px !important; }
  footer > div > div:last-child { font-size: 11px !important; }
}

/* 더 좁은 화면 (≤480px) */
@media (max-width: 480px) {
  .logo a { padding: 3px 6px !important; font-size: 10px !important; }
  .nav-menu button { padding: 5px 6px !important; font-size: 11px !important; }
  .nav-right button { padding: 4px 6px !important; font-size: 10px !important; }
  .nav-right .badge { display: none !important; }
  .card h2 { font-size: 15px !important; }
  .stat { padding: 10px !important; }
  .stat .val { font-size: 18px !important; }
}

/* ====================================================================
   Phase 4 — 푸터 viewport 끝 + 검색 input 가로 overflow 차단 (2026-05-13)
   ==================================================================== */
@media (max-width: 768px) {
  /* A. footer — bdx-root flex column 안 마지막 자식. margin-top: auto 로 viewport 끝 */
  footer {
    margin-top: auto !important;
    flex-shrink: 0 !important;
  }
  /* B. hero/검색창 — 모바일 viewport 가로 절대 안 넘침 */
  html, body, #mainView, .container, #tabGenerate, .bw-hero, .bw-hero-search {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .bw-hero-search {
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;  /* hero padding 16x2 빼고 */
  }
  /* input — flex-basis: 0 + min-width: 0 로 컨텐츠 기반 grow X (placeholder 길이 영향 X) */
  .bw-hero-search input[type="text"] {
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* ====================================================================
   Phase 3 — 모바일 설정 카드 깔끔하게 (2026-05-13 블덱스 본체 3.0 톤)
   ==================================================================== */
@media (max-width: 768px) {
  /* 카드 — 컴팩트하고 단정 */
  .card {
    padding: 16px !important;
    border-radius: 14px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    margin-bottom: 10px !important;
  }
  /* 카드 헤더 — h2 + small 세로 stack (모바일 가로 분할 X) */
  .card h2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    align-items: flex-start !important;
    margin-bottom: 14px !important;
    font-size: 16px !important;
    letter-spacing: -0.02em !important;
  }
  .card h2 small {
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
  }
  /* 필드 라벨 (글 종류 / 캐릭터 / 썸네일 등) — 컴팩트 */
  .field-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 8px !important;
    display: block !important;
  }
  /* pill — 블덱스 본체 톤 (회색 베이스 + 활성 시 파란 강조만) */
  .pill {
    font-size: 13px !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    font-weight: 500 !important;
  }
  /* 캐릭터/썸네일 진한 분홍·주황·인디고·에메랄드 → 회색 베이스로 톤 다운 */
  .pill.soft.pink:not(.active),
  .pill.soft.indigo:not(.active),
  .pill.soft.amber:not(.active),
  .pill.soft.emerald:not(.active) {
    background: #f3f4f6 !important;
    color: #475569 !important;
  }
  /* 활성 시 — 파란 강조 (블루 톤 통일) */
  .pill.soft.pink.active,
  .pill.soft.indigo.active,
  .pill.soft.amber.active,
  .pill.soft.emerald.active {
    background: #2962ff !important;
    color: #fff !important;
  }
  /* 글 종류 pill (정보글/맛집글/...) — 파란 톤 그대로지만 컴팩트 */
  .pill.soft.blue {
    padding: 8px 14px !important;
  }
  /* AI 검토 박스 — 컴팩트 */
  #genSettings .card > div[style*="background"] {
    padding: 12px !important;
    border-radius: 10px !important;
  }
}

/* ====================================================================
   Phase 5 — 모바일 첫 화면 고정 + 검색창 폭 + 설정 패널 컴팩트화 (2026-05-13)
   대표님 실기기 캡쳐 기준: 주소창 열린 상태에서도 footer 노출, 검색창 넓게,
   설정 클릭 시 이전 hero 화면이 보이도록 문서 흐름에서 분리.
   ==================================================================== */
@media (max-width: 768px) {
  html,
  body {
    min-height: 100svh !important;
    overflow-x: hidden !important;
  }

  /* Next.js hidden marker div 는 Phase 1 의 body > div display:flex 영향을 받으면 안 됨 */
  body > div[hidden] {
    display: none !important;
    min-height: 0 !important;
  }

  #bdx-root {
    min-height: 100svh !important;
  }

  #mainView,
  .container,
  #tabGenerate {
    min-height: 0 !important;
  }

  #tabGenerate {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .bw-hero {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    padding: 14px 28px 12px !important;
    align-items: stretch !important;
  }

  .bw-hero-title-group {
    align-self: center !important;
    text-align: center !important;
    margin-bottom: 24px !important;
  }

  .bw-hero-search {
    width: 100% !important;
    max-width: 560px !important;
    min-width: 0 !important;
    align-self: center !important;
    box-sizing: border-box !important;
  }

  .bw-hero-search input[type="text"] {
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    padding-left: 18px !important;
    padding-right: 12px !important;
    text-overflow: ellipsis !important;
  }

  .bw-hero-icon-btn {
    min-width: 56px !important;
    width: 56px !important;
    padding: 0 !important;
  }

  footer {
    margin-top: auto !important;
    padding: 16px 12px calc(16px + env(safe-area-inset-bottom)) !important;
  }

  footer > div > div:first-child {
    gap: 16px !important;
    row-gap: 6px !important;
  }

  /* 설정 패널은 화면을 밀어내지 않는 작은 오버레이로 표시 */
  #genSettings:not([hidden]) {
    position: absolute !important;
    left: 18px !important;
    right: 18px !important;
    top: calc(50% + 64px) !important;
    z-index: 30 !important;
    max-height: min(42svh, 360px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    animation: bw-settings-fade-in .18s ease-out !important;
  }

  #genSettings .card {
    margin: 0 !important;
    padding: 18px !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,0.98) !important;
    box-shadow: 0 10px 30px rgba(15,23,42,0.10) !important;
  }

  #genSettings .card h2 {
    font-size: 17px !important;
    margin-bottom: 14px !important;
  }

  #genSettings .pill-group {
    gap: 8px !important;
  }

  #genSettings .pill {
    padding: 8px 13px !important;
  }
}

@media (max-width: 480px) {
  .bw-hero-search {
    max-width: 340px !important;
  }
}

/* ====================================================================
   Phase 6 — 모바일 햄버거 버튼 본체 3.0 크기 매칭 (2026-05-13)
   ==================================================================== */
@media (max-width: 768px) {
  .nav-hamburger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    margin-left: auto !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f3f4f6 !important;
    color: #4b5563 !important;
    font-family: Arial, sans-serif !important;
    font-size: 0 !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    position: relative !important;
    z-index: 2 !important;
  }

  .nav-hamburger::before {
    content: "☰" !important;
    display: block !important;
    color: #4b5563 !important;
    font-family: Arial, sans-serif !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
  }

  .nav-hamburger:hover,
  .nav.mobile-open .nav-hamburger {
    background: #e5e7eb !important;
  }

  .nav-hamburger:hover::before,
  .nav.mobile-open .nav-hamburger::before {
    color: #374151 !important;
  }

  .nav-drawer {
    right: 12px !important;
    width: 204px !important;
    border-radius: 2px !important;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06) !important;
    padding: 0 !important;
  }

  .nav.mobile-open .nav-menu button,
  .nav.mobile-open .nav-right button,
  .nav.mobile-open .nav-right #signupBtn,
  .nav.mobile-open .nav-right #loginBtn,
  .nav.mobile-open .nav-right #navMypageBtn,
  .nav.mobile-open .nav-right #logoutBtn {
    padding: 15px 22px !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
  }

  .nav-right .email {
    padding: 12px 22px 4px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 480px) {
  .nav-hamburger {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .nav-hamburger::before {
    font-size: 24px !important;
  }
}

/* ====================================================================
   Phase 7 — 모바일 원고 생성 중 상태 문구 (2026-05-13)
   ==================================================================== */
@media (max-width: 768px) {
  .gen-progress-text {
    display: block !important;
    min-height: 22px !important;
    margin-top: 14px !important;
    text-align: center !important;
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.45 !important;
  }

  .gen-progress-text[hidden] {
    display: none !important;
  }
}

/* ====================================================================
   Phase 8 — 모바일 footer 정책 링크 터치 보강 + 플랜 카드 PC 폭 확장 (2026-05-13)
   ==================================================================== */
@media (max-width: 768px) {
  footer {
    position: relative !important;
    z-index: 40 !important;
    pointer-events: auto !important;
  }

  footer a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 32px !important;
    padding: 0 2px !important;
    position: relative !important;
    z-index: 41 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  footer > div > div:first-child {
    align-items: center !important;
  }
}

/* ====================================================================
   Phase 12 — toast tone, mobile settings accordion, auth-required state
   ==================================================================== */
.toast,
.toast.error,
.toast.success {
  background: rgba(15, 23, 42, 0.96) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22) !important;
  font-weight: 600 !important;
  text-align: center !important;
}

.history-login-required {
  padding: 42px 20px;
  text-align: center;
  color: #475569;
}
.history-login-required h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.history-login-required p {
  margin: 0 auto 18px;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}
.history-login-required button {
  border: 0;
  border-radius: 8px;
  background: #2962ff;
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

  @media (max-width: 768px) {
  body.mobile-result-open {
    overflow: hidden !important;
  }

  #genResultCard.mobile-result-page {
    position: fixed !important;
    inset: 0 !important;
    z-index: 80 !important;
    margin: 0 !important;
    padding: calc(14px + env(safe-area-inset-top)) 16px calc(22px + env(safe-area-inset-bottom)) !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100svh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 0 !important;
    border: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  #genResultCard.mobile-result-page .mobile-result-back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #334155 !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
  }

  #genResultCard.mobile-result-page .result-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    margin: -2px -4px 10px !important;
    padding: 4px 4px 10px !important;
    background: #fff !important;
    border-bottom: 1px solid #eef2f7 !important;
  }

  #genResultCard.mobile-result-page .result-header h2 {
    margin: 0 !important;
    font-size: 18px !important;
  }

  #genResultCard.mobile-result-page .result-toolbar {
    gap: 10px !important;
    align-items: flex-start !important;
    margin-bottom: 12px !important;
  }

  #genResultCard.mobile-result-page .result-toolbar .stats-inline {
    width: 100% !important;
    gap: 12px !important;
    font-size: 12.5px !important;
  }

  #genResultCard.mobile-result-page .result-toolbar .controls {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  #genResultCard.mobile-result-page .result-box {
    max-height: none !important;
    min-height: calc(100svh - 260px) !important;
    padding: 18px 16px !important;
    font-size: 15px !important;
    line-height: 1.78 !important;
    overflow: visible !important;
  }

  #genResultCard.mobile-result-page #reviewResultBox {
    margin-bottom: 16px !important;
  }

  .toast,
  .toast.error,
  .toast.success {
    width: auto !important;
    max-width: calc(100vw - 64px) !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    word-break: keep-all !important;
  }

  body.settings-open .bw-hero {
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
    padding-bottom: 8px !important;
  }

  #genSettings:not([hidden]) {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    z-index: auto !important;
    width: calc(100% - 36px) !important;
    max-width: 560px !important;
    max-height: min(52svh, 430px) !important;
    margin: 0 auto 12px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    animation: bw-settings-fade-in .16s ease-out !important;
  }

  #genSettings .card {
    margin: 0 !important;
    padding: 12px !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
  }

  #genSettings .card h2 {
    font-size: 15px !important;
    gap: 2px !important;
    margin-bottom: 9px !important;
  }
  #genSettings .card h2 small {
    font-size: 10.5px !important;
    line-height: 1.35 !important;
  }

  #genSettings .field {
    margin-bottom: 10px !important;
  }
  #genSettings .field-label {
    font-size: 11.5px !important;
    margin-bottom: 5px !important;
    line-height: 1.35 !important;
  }
  #genSettings .opt,
  #reviewBtnHint,
  #autoReviewBadgeMain {
    font-size: 10.5px !important;
    line-height: 1.35 !important;
  }

  #genSettings .pill-group {
    gap: 5px !important;
  }
  #genSettings .pill {
    min-height: 30px !important;
    padding: 5px 9px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    border-radius: 999px !important;
  }

  #genSettings input,
  #genSettings textarea,
  #genSettings select {
    min-height: 38px !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }
  #genSettings textarea {
    min-height: 76px !important;
  }

  #genSettings .btn,
  #genSettings button {
    padding: 8px 10px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
  }
  #genSettings #genBtn {
    min-height: 40px !important;
    font-size: 13px !important;
    padding: 10px 12px !important;
  }

  .history-login-required {
    padding: 34px 18px !important;
  }
  .history-login-required h3 {
    font-size: 17px !important;
  }
  .history-login-required p {
    font-size: 12.5px !important;
  }
  .history-login-required button {
    padding: 9px 14px !important;
    font-size: 12px !important;
  }
}

/* 제목 자동 생성 — 맛집글에서만 노출 (2026-05-13) */
.title-suggest-wrap {
  margin-top: 8px;
  padding: 10px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}
.title-suggest-btn {
  width: 100%;
  padding: 9px 14px;
  background: #16a34a;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.title-suggest-btn:hover:not(:disabled) { background: #15803d; }
.title-suggest-btn:disabled { background: #9ca3af; cursor: not-allowed; }
.title-suggest-hint {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
  margin-left: 4px;
}
.title-suggest-status {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
}
.title-suggest-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.title-suggest-item {
  text-align: left;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  color: #111827;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.title-suggest-item:hover {
  border-color: #16a34a;
  background: #f0fdf4;
}

/* 메뉴 설정하기 — 맛집글 (2026-05-13) */
.menu-setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.menu-setup-grid input {
  padding: 9px 12px;
  border: 1px solid #fbbf24;
  border-radius: 6px;
  font-size: 13px;
  background: #fffbeb;
}
.menu-setup-grid input:focus {
  outline: none;
  border-color: #f59e0b;
  background: #fff;
}
.menu-setup-hint {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 11px;
}
@media (max-width: 640px) {
  .menu-setup-grid { grid-template-columns: 1fr; }
}

/* 의사 — 작성자 프로필 자동 입력 (2026-05-13) */
.doc-place-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.doc-place-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  font-size: 13px;
  background: #eff6ff;
}
.doc-place-row input:focus {
  outline: none;
  border-color: #3b82f6;
  background: #fff;
}
.doc-place-row button {
  flex-shrink: 0;
  padding: 9px 14px;
  background: #3b82f6;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.doc-place-row button:hover:not(:disabled) { background: #2563eb; }
.doc-place-row button:disabled { background: #9ca3af; cursor: not-allowed; }
.doc-place-status {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .doc-place-row { flex-direction: column; }
}
