:root {
  --ink: #1c2431;
  --ink-2: #303b49;
  --muted: #697482;
  --faint: #929ba6;
  --line: #e5e8eb;
  --line-dark: #d7dce1;
  --paper: #f7f7f5;
  --white: #fff;
  --green: #176b51;
  --green-2: #0f513d;
  --green-soft: #e9f2ee;
  --navy-soft: #eef1f5;
  --amber: #b87818;
  --amber-soft: #f8f0df;
  --rose-soft: #f8eeee;
  --blue-soft: #edf3f8;
  --radius: 12px;
  --shadow: 0 20px 55px rgba(33, 43, 54, .1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Sans KR", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { width: 0; height: 0; position: absolute; overflow: hidden; }
.site-header { height: 68px; background: rgba(247,247,245,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px); }
.header-inner { max-width: 1220px; height: 100%; margin: auto; padding: 0 22px; display: flex; align-items: center; gap: 42px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-symbol { width: 31px; height: 31px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 8px 8px 8px 2px; font-family: Inter, sans-serif; font-size: 15px; font-weight: 700; }
.brand-name { font-family: Inter, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.brand-name b { color: var(--green); }
.main-nav { flex: 1; display: flex; gap: 28px; }
.main-nav a { color: #596473; text-decoration: none; font-size: 12px; font-weight: 600; transition: color .15s; }
.main-nav a:hover { color: var(--ink); }
.privacy-pill { padding: 8px 11px; display: flex; align-items: center; gap: 7px; color: var(--green); background: var(--green-soft); border: 0; border-radius: 8px; font-size: 10px; font-weight: 700; }
.privacy-pill svg { width: 15px; height: 15px; }
main { max-width: 1220px; margin: auto; padding: 0 22px 100px; }
.hero { padding: 105px 0 82px; text-align: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.live-dot { width: 6px; height: 6px; background: #34a77d; border-radius: 50%; box-shadow: 0 0 0 4px #e1f2eb; }
h1 { margin: 19px 0 20px; color: var(--ink); font-size: clamp(43px, 5.2vw, 66px); line-height: 1.18; letter-spacing: -.065em; }
h1 span { color: var(--green); }
.hero > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.global-search { max-width: 660px; height: 62px; margin: 35px auto 0; padding: 0 14px 0 20px; display: flex; align-items: center; gap: 12px; background: white; border: 1px solid var(--line-dark); border-radius: 13px; box-shadow: 0 15px 35px rgba(33,43,54,.08); transition: .2s; }
.global-search:focus-within { border-color: #9db9ac; box-shadow: 0 16px 40px rgba(23,107,81,.12); }
.global-search svg { color: var(--green); }
.global-search input { min-width: 0; flex: 1; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 14px; }
.global-search input::placeholder { color: #a0a7af; }
kbd { padding: 5px 8px; color: var(--faint); background: var(--paper); border: 1px solid var(--line); border-radius: 5px; font-family: Inter, sans-serif; font-size: 10px; }
.search-suggestions { margin-top: 13px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px; }
.search-suggestions span { margin-right: 4px; color: var(--faint); font-size: 9px; font-weight: 700; }
.search-suggestions button { padding: 5px 9px; color: #687380; background: transparent; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; }
.search-suggestions button:hover { color: var(--green); border-color: #b8ccc3; background: var(--green-soft); }
.ad-slot { color: #989fa6; background: #f0f1ef; border: 1px solid #e0e2e0; position: relative; }
.ad-slot > span { padding: 2px 4px; color: #a8ada9; border: 1px solid #cdd1ce; border-radius: 3px; position: absolute; top: 7px; left: 8px; font-family: Inter, sans-serif; font-size: 7px; }
.ad-slot div { display: grid; gap: 3px; text-align: center; }
.ad-slot strong { font-size: 10px; font-weight: 600; }
.ad-slot small, .ad-slot em { font-size: 8px; font-style: normal; }
.ad-wide { min-height: 92px; display: flex; justify-content: center; align-items: center; gap: 22px; border-radius: 8px; }
.ad-wide em { color: #adb2ae; }
.editorial-strip { margin: 78px 0 95px; display: grid; grid-template-columns: 1.25fr .75fr; background: #ede9df; border-radius: 14px; overflow: hidden; }
.editorial-strip img { width: 100%; height: 300px; object-fit: cover; }
.editorial-strip > div { padding: 42px 40px; display: flex; flex-direction: column; justify-content: center; }
.section-label { color: var(--green); font-family: Inter, sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
h2 { margin: 7px 0 0; font-size: 25px; line-height: 1.38; letter-spacing: -.045em; }
.editorial-strip h2 { margin-top: 12px; font-size: 27px; }
.editorial-strip p { margin: 15px 0 20px; color: #64706c; font-size: 11px; line-height: 1.75; }
.editorial-points { display: flex; gap: 6px; flex-wrap: wrap; }
.editorial-points span { padding: 6px 9px; color: var(--green-2); background: rgba(255,255,255,.56); border-radius: 5px; font-size: 9px; font-weight: 700; }
.popular-section, .recent-section, .all-tools-section, .news-section { margin-top: 94px; }
.section-title-row { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: end; gap: 25px; }
.section-title-row > p { margin: 0; color: var(--faint); font-size: 10px; }
.featured-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.featured-card { min-height: 145px; padding: 21px; display: flex; gap: 15px; flex-direction: column; text-align: left; background: white; border: 1px solid var(--line); border-radius: var(--radius); position: relative; transition: .18s; }
.featured-card:first-child { grid-row: 1 / 3; min-height: 302px; padding: 27px; color: white; background: var(--ink); border: 0; }
.featured-card:hover { transform: translateY(-2px); border-color: #bdc9c3; box-shadow: 0 12px 25px rgba(35,46,42,.06); }
.featured-card:first-child:hover { box-shadow: 0 16px 32px rgba(28,36,49,.18); }
.featured-icon, .tool-icon, .recent-icon { display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 9px; }
.featured-icon { width: 40px; height: 40px; }
.featured-card:first-child .featured-icon { width: 48px; height: 48px; color: #8ad2b8; background: rgba(255,255,255,.1); }
.featured-card h3 { margin: auto 0 4px; font-size: 14px; letter-spacing: -.02em; }
.featured-card:first-child h3 { margin-top: auto; color: white; font-size: 22px; }
.featured-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.featured-card:first-child p { max-width: 270px; color: #aeb7c0; font-size: 11px; }
.featured-card .open-arrow { color: #a1aaa5; position: absolute; top: 22px; right: 21px; }
.featured-card:first-child .open-arrow { color: #829087; top: 28px; right: 27px; }
.compact { margin-bottom: 14px; }
.text-button { padding: 0; color: var(--faint); background: transparent; border: 0; font-size: 9px; }
.recent-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.recent-item { min-width: 170px; padding: 10px 13px; display: flex; align-items: center; gap: 9px; text-align: left; background: white; border: 1px solid var(--line); border-radius: 9px; }
.recent-icon { width: 28px; height: 28px; flex: 0 0 auto; }
.recent-icon svg { width: 15px; height: 15px; }
.recent-item span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 9px; font-weight: 600; }
.tools-heading { align-items: end; }
.filter-tabs { display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; }
.filter-tabs button, .news-tabs button { padding: 7px 10px; display: flex; align-items: center; gap: 4px; color: #7b858f; white-space: nowrap; background: transparent; border: 1px solid transparent; border-radius: 6px; font-size: 9px; font-weight: 600; }
.filter-tabs button svg { width: 12px; height: 12px; }
.filter-tabs button.active, .news-tabs button.active { color: var(--ink); background: white; border-color: var(--line); }
.filter-tabs b { font-size: 8px; }
.category-block { margin-top: 35px; }
.category-heading { margin-bottom: 12px; padding-bottom: 9px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); }
.category-heading span { width: 25px; height: 25px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 6px; }
.category-heading svg { width: 14px; height: 14px; }
.category-heading h3 { margin: 0; font-size: 12px; }
.category-heading p { margin: 0 0 0 auto; color: var(--faint); font-size: 8px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tool-card { min-height: 112px; padding: 14px; display: flex; align-items: flex-start; gap: 11px; text-align: left; background: white; border: 1px solid var(--line); border-radius: 9px; position: relative; transition: .16s; }
.tool-card:hover { border-color: #b9c8c0; background: #fcfdfc; transform: translateY(-1px); }
.tool-icon { width: 32px; height: 32px; flex: 0 0 auto; }
.tool-icon svg { width: 17px; height: 17px; }
.tool-copy { padding-right: 14px; }
.tool-copy h4 { margin: 1px 0 5px; font-size: 10px; letter-spacing: -.02em; }
.tool-copy p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.favorite { width: 22px; height: 22px; padding: 0; display: grid; place-items: center; color: #b5bcc3; background: transparent; border: 0; position: absolute; top: 8px; right: 7px; }
.favorite svg { width: 13px; height: 13px; }
.favorite.active { color: var(--amber); }
.favorite.active svg { fill: currentColor; }
.empty-state { padding: 70px 20px; display: grid; justify-items: center; gap: 8px; color: var(--faint); text-align: center; }
.empty-state svg { width: 25px; height: 25px; }
.empty-state strong { color: var(--ink-2); font-size: 12px; }
.empty-state p { margin: 0; font-size: 9px; }
.news-section { padding: 42px 0 0; border-top: 1px solid var(--line); }
.news-tabs { display: flex; gap: 3px; overflow-x: auto; }
.section-intro { max-width: 650px; margin: -9px 0 23px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.news-card { min-height: 165px; padding: 18px; display: flex; flex-direction: column; text-decoration: none; background: white; border: 1px solid var(--line); border-radius: 9px; transition: .16s; }
.news-card:hover { border-color: #b9c8c0; transform: translateY(-2px); }
.news-card .news-meta { display: flex; justify-content: space-between; color: var(--faint); font-size: 8px; }
.news-card h3 { margin: 18px 0 8px; font-size: 12px; line-height: 1.55; }
.news-card p { margin: 0; flex: 1; color: var(--muted); font-size: 9px; line-height: 1.55; }
.news-card b { margin-top: 13px; color: var(--green); font-size: 8px; }
.news-source { margin-top: 11px; display: flex; justify-content: space-between; color: var(--faint); font-size: 8px; }
.news-source a { color: var(--green); text-decoration: none; }
.lounge-section { margin-top: 95px; display: grid; grid-template-columns: .9fr 1.1fr; background: #273139; border-radius: 14px; overflow: hidden; }
.lounge-visual { min-height: 390px; }
.lounge-visual img { width: 100%; height: 100%; object-fit: cover; }
.lounge-content { padding: 42px; color: white; }
.lounge-content .section-label { color: #8bd1b7; }
.lounge-content h2 { margin-top: 12px; font-size: 28px; }
.lounge-content > p { margin: 12px 0 23px; color: #adb8bd; font-size: 10px; line-height: 1.7; }
.lounge-preview { display: grid; gap: 7px; }
.lounge-post { padding: 11px 12px; display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); border-radius: 7px; }
.lounge-post strong { font-size: 9px; }
.lounge-post span { color: #849198; font-size: 8px; }
.lounge-post p { grid-column: 1 / -1; margin: 0; color: #c5ccd0; font-size: 8px; }
.lounge-actions { margin-top: 18px; display: flex; align-items: center; gap: 14px; }
.primary-link { padding: 10px 13px; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); background: #8bd1b7; border-radius: 6px; text-decoration: none; font-size: 9px; font-weight: 700; }
.primary-link svg { width: 13px; height: 13px; }
.secondary-link { color: #b6c1c5; font-size: 9px; }
.lounge-content > small { margin-top: 15px; display: block; color: #7e8b91; font-size: 7px; line-height: 1.5; }
.content-with-ad { margin-top: 95px; display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
.ai-preview-section { padding: 36px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; background: #ebece9; border-radius: 12px; }
.ai-copy h2 { margin-top: 12px; }
.ai-copy p { margin: 13px 0 18px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.soon-badge { padding: 5px 8px; color: var(--green); background: white; border-radius: 5px; font-size: 8px; font-weight: 700; }
.ai-list { display: grid; gap: 7px; }
.ai-list > div { padding: 11px; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.7); border-radius: 7px; }
.ai-list > div > span { width: 28px; height: 28px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 6px; }
.ai-list svg { width: 14px; height: 14px; }
.ai-list p { margin: 0; display: grid; gap: 2px; flex: 1; }
.ai-list strong { font-size: 9px; }
.ai-list small { color: var(--muted); font-size: 7px; }
.ai-list b { color: var(--faint); font-size: 7px; }
.ad-box { min-height: 250px; display: grid; place-items: center; border-radius: 8px; }
footer { padding: 45px 22px 60px; background: white; border-top: 1px solid var(--line); }
.footer-inner { max-width: 1176px; margin: auto; display: flex; align-items: center; gap: 30px; }
.footer-inner > div:first-child p { margin: 8px 0 0; color: var(--faint); font-size: 8px; }
.footer-note { padding: 9px 11px; display: flex; align-items: center; gap: 9px; color: var(--green); background: var(--green-soft); border-radius: 7px; }
.footer-note svg { width: 17px; height: 17px; }
.footer-note p { margin: 0; display: grid; gap: 1px; }
.footer-note strong { font-size: 8px; }
.footer-note span { color: #6b8077; font-size: 6px; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 8px; text-decoration: none; }
.copyright { margin-left: auto; color: var(--faint); font-family: Inter, sans-serif; font-size: 8px; }
dialog { width: min(650px, calc(100% - 26px)); max-height: calc(100vh - 26px); padding: 0; color: var(--ink); background: white; border: 0; border-radius: 13px; box-shadow: 0 28px 80px rgba(21,29,38,.28); }
dialog::backdrop { background: rgba(22,29,36,.62); backdrop-filter: blur(3px); }
.dialog-shell { background: white; }
.dialog-header { padding: 19px 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.dialog-title-wrap { display: flex; align-items: center; gap: 11px; }
.dialog-title-wrap > span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 8px; }
.dialog-title-wrap > span svg { width: 18px; height: 18px; }
.dialog-title-wrap small { color: var(--green); font-family: Inter, sans-serif; font-size: 7px; font-weight: 700; letter-spacing: .09em; }
.dialog-title-wrap h2 { margin-top: 2px; font-size: 16px; }
.icon-button { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; color: var(--muted); background: var(--paper); border: 0; border-radius: 6px; }
.icon-button svg { width: 15px; height: 15px; }
.dialog-body { max-height: calc(100vh - 165px); padding: 22px; overflow-y: auto; }
.dialog-privacy { padding: 10px 22px; display: flex; align-items: center; gap: 6px; color: #738078; background: #f1f5f3; font-size: 7px; }
.dialog-privacy svg { width: 12px; height: 12px; color: var(--green); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #596574; font-size: 9px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 7px; outline: 0; font-size: 11px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #91b5a6; box-shadow: 0 0 0 3px var(--green-soft); }
.field textarea { min-height: 135px; resize: vertical; line-height: 1.65; }
.primary-button { width: 100%; margin-top: 14px; padding: 12px; color: white; background: var(--green); border: 0; border-radius: 7px; font-size: 10px; font-weight: 700; }
.primary-button:hover { background: var(--green-2); }
.result-box { margin-top: 16px; padding: 17px; display: grid; gap: 6px; background: var(--green-soft); border-radius: 8px; }
.result-box span { color: var(--green); font-size: 8px; font-weight: 700; }
.result-box strong { overflow-wrap: anywhere; font-size: 23px; letter-spacing: -.035em; }
.result-box p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.65; }
.result-list { margin-top: 6px; display: grid; }
.result-row { padding: 9px 2px; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(23,107,81,.1); font-size: 8px; }
.result-row:last-child { border: 0; }
.result-row span { color: var(--muted); }
.copy-button { margin-top: 8px; padding: 8px 10px; color: var(--green); background: white; border: 1px solid #cbded5; border-radius: 6px; font-size: 8px; font-weight: 700; }
.privacy-copy { color: var(--muted); font-size: 10px; line-height: 1.75; }
.small-dialog { max-width: 470px; }
.toast { padding: 9px 13px; color: white; background: var(--ink); border-radius: 6px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s; position: fixed; right: 22px; bottom: 22px; z-index: 50; font-size: 9px; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateY(0); }

/* Standalone content pages */
.content-page main { max-width: 850px; min-height: calc(100vh - 200px); padding-top: 70px; }
.content-page article { padding: 38px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.content-page article h1 { margin-top: 0; font-size: 32px; }
.content-page article h2 { margin-top: 32px; font-size: 18px; }
.content-page article p, .content-page article li { color: var(--muted); font-size: 11px; line-height: 1.85; }
.content-page article a { color: var(--green); }
.page-meta { color: var(--faint); font-size: 9px; }
.community-layout { display: grid; grid-template-columns: 1fr 240px; gap: 16px; }
.community-compose, .community-card, .community-side { padding: 18px; background: white; border: 1px solid var(--line); border-radius: 9px; }
.community-compose { margin-bottom: 10px; }
.community-compose textarea { width: 100%; min-height: 90px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; resize: vertical; }
.community-compose div { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.community-compose button { padding: 8px 12px; color: white; background: var(--green); border: 0; border-radius: 6px; font-size: 9px; }
.community-card { margin-bottom: 8px; }
.community-card header { display: flex; justify-content: space-between; color: var(--faint); font-size: 8px; }
.community-card p { color: var(--ink-2) !important; }
.community-card footer { padding: 0; display: flex; gap: 12px; background: transparent; border: 0; color: var(--muted); font-size: 8px; }
.community-side { height: fit-content; }
.community-side h3 { margin-top: 0; font-size: 11px; }
.community-side p, .community-side li { font-size: 8px !important; }
.mode-banner { margin-bottom: 12px; padding: 10px 12px; color: #775714; background: var(--amber-soft); border-radius: 7px; font-size: 8px; line-height: 1.6; }
/* .lounge-search 블록 삭제 — 검색창이 feed-toolbar__search 로 통합됨 */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .privacy-pill { margin-left: auto; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-card:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 220px; }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .editorial-strip { grid-template-columns: 1fr; }
  .editorial-strip img { height: 270px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .content-with-ad { grid-template-columns: 1fr; }
  .ad-box { min-height: 120px; }
  .footer-inner { align-items: flex-start; flex-wrap: wrap; }
  .copyright { margin-left: 0; }
}
@media (max-width: 720px) {
  .site-header { height: 60px; }
  .header-inner { padding: 0 15px; }
  .privacy-pill span { display: none; }
  main { padding: 0 14px 70px; }
  .hero { padding: 70px 0 55px; }
  h1 { font-size: 40px; }
  .hero > p br { display: none; }
  .ad-wide { min-height: 75px; }
  .editorial-strip { margin: 50px 0 70px; }
  .editorial-strip img { height: 210px; }
  .editorial-strip > div { padding: 28px 23px; }
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .tools-heading { align-items: stretch; }
  .featured-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .featured-card { padding: 16px; min-height: 150px; }
  .featured-card:first-child { grid-column: 1 / -1; min-height: 190px; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .tool-card { min-height: 120px; padding: 12px; }
  .tool-copy p { font-size: 11px; }
  .news-grid { grid-template-columns: 1fr; }
  .lounge-section { grid-template-columns: 1fr; }
  .lounge-visual { min-height: 220px; }
  .lounge-content { padding: 27px 22px; }
  .ai-preview-section { padding: 24px; grid-template-columns: 1fr; }
  footer { padding: 35px 15px 45px; }
  .footer-inner { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .community-layout { grid-template-columns: 1fr; }
  .content-page main { padding: 45px 14px; }
  .content-page article { padding: 24px 19px; }
}
@media (max-width: 430px) {
  /* featured-grid: 2열 유지 (하단 모바일 개선 구간에서 상세 정의) */
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 92px; }
  .search-suggestions span { width: 100%; }
}

/* Readability and responsive usability pass */
[hidden] { display: none !important; }
body { font-size: 16px; line-height: 1.55; }
.main-nav a { font-size: 14px; }
.privacy-pill { min-height: 40px; padding: 9px 13px; font-size: 12px; }
.hero { padding: 76px 0 54px; }
.hero-kicker { font-size: 13px; }
h1 { margin: 14px 0 16px; line-height: 1.1; }
.hero > p { font-size: 16px; line-height: 1.65; }
.global-search { height: 60px; margin-top: 26px; }
.global-search input { font-size: 16px; }
.search-suggestions { margin-top: 10px; }
.search-suggestions span, .search-suggestions button { font-size: 12px; }
.search-suggestions button { min-height: 34px; padding: 7px 11px; }
.section-label { font-size: 11px; }
h2 { font-size: 28px; line-height: 1.25; }
.popular-section, .recent-section, .all-tools-section, .news-section { margin-top: 72px; }
.section-title-row { margin-bottom: 20px; }
.section-title-row > p, .section-intro { font-size: 13px; line-height: 1.6; }
.editorial-strip { margin: 60px 0 76px; }
.editorial-strip p { font-size: 14px; line-height: 1.65; }
.editorial-points span { padding: 7px 10px; font-size: 12px; }
.featured-card { min-height: 166px; padding: 22px; }
.featured-card h3 { font-size: 17px; }
.featured-card p, .featured-card:first-child p { font-size: 13px; line-height: 1.55; }
.featured-card:first-child h3 { font-size: 25px; }
.recent-item { min-width: 210px; min-height: 48px; }
.recent-item span { font-size: 13px; }
.filter-tabs button, .news-tabs button { min-height: 40px; padding: 9px 13px; font-size: 12px; }
.filter-tabs b { font-size: 11px; }
.category-block { margin-top: 30px; }
.category-heading { margin-bottom: 14px; padding-bottom: 11px; }
.category-heading span { width: 32px; height: 32px; }
.category-heading h3 { font-size: 16px; }
.category-heading h3 b { margin-left: 4px; color: var(--faint); font-family: Inter, sans-serif; font-size: 11px; font-weight: 600; }
.category-heading p { font-size: 12px; }
.tool-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tool-card { min-height: 146px; padding: 17px; gap: 13px; }
.tool-icon { width: 40px; height: 40px; }
.tool-icon svg { width: 20px; height: 20px; }
.tool-copy { padding-right: 16px; }
.tool-copy h4 { margin: 1px 0 7px; font-size: 16px; line-height: 1.35; }
.new-badge { margin-left: 6px; padding: 2px 4px; color: var(--green); background: var(--green-soft); border-radius: 4px; font-family: Inter, sans-serif; font-size: 8px; font-style: normal; font-weight: 700; letter-spacing: .04em; vertical-align: 2px; }
.tool-copy p { font-size: 13px; line-height: 1.65; }
.favorite { width: 36px; height: 36px; top: 7px; right: 5px; }
.favorite svg { width: 17px; height: 17px; }
.empty-state strong { font-size: 15px; }
.empty-state p { font-size: 13px; }
.news-card { min-height: 210px; padding: 20px; }
.news-card .news-meta { font-size: 11px; }
.news-card h3 { margin: 18px 0 9px; font-size: 16px; line-height: 1.5; }
.news-card p { font-size: 13px; line-height: 1.6; }
.news-card b, .news-source { font-size: 11px; }
.lounge-section, .content-with-ad { margin-top: 76px; }
.lounge-content > p { font-size: 13px; line-height: 1.65; }
.lounge-post { padding: 13px 14px; }
.lounge-post strong { font-size: 13px; }
.lounge-post span, .lounge-post p { font-size: 11px; }
.primary-link, .secondary-link { font-size: 12px; }
.lounge-content > small { font-size: 10px; }
.ai-copy p { font-size: 13px; }
.soon-badge { font-size: 11px; }
.ai-list > div { padding: 13px; }
.ai-list strong { font-size: 13px; }
.ai-list small, .ai-list b { font-size: 10px; }
.footer-inner > div:first-child p, .footer-links a, .copyright { font-size: 11px; }
.footer-note strong { font-size: 11px; }
.footer-note span { font-size: 9px; }
.dialog-title-wrap small { font-size: 10px; }
.dialog-title-wrap h2 { font-size: 20px; }
.dialog-body { padding: 24px; }
.field { gap: 8px; }
.field label { font-size: 13px; }
.field input, .field select, .field textarea { min-height: 48px; padding: 12px 14px; font-size: 16px; }
.field textarea { min-height: 150px; }
.primary-button { min-height: 48px; padding: 13px; font-size: 14px; }
.result-box { padding: 20px; }
.result-box span { font-size: 12px; }
.result-box strong { font-size: 26px; white-space: pre-wrap; line-height: 1.5; }
.result-box p, .result-row, .copy-button, .dialog-privacy { font-size: 12px; }
.copy-button { min-height: 40px; }
.privacy-copy { font-size: 14px; }
.content-page article p, .content-page article li { font-size: 14px; }
.community-side p, .community-side li { font-size: 12px !important; }
.community-card header, .community-card footer, .mode-banner, .page-meta { font-size: 12px; }

/* Affiliate content */
.affiliate-hero { height: 260px; display: block; color: white; border-radius: 14px; overflow: hidden; position: relative; text-decoration: none; }
.affiliate-hero img { width: 100%; height: 100%; object-fit: cover; }
.affiliate-shade { background: linear-gradient(90deg, rgba(20,28,33,.9), rgba(20,28,33,.35) 54%, transparent); position: absolute; inset: 0; }
.affiliate-copy { max-width: 430px; display: grid; gap: 12px; position: absolute; top: 50%; left: 38px; transform: translateY(-50%); }
.affiliate-copy small, .affiliate-card-copy small { color: #d5ded9; font-size: 11px; font-weight: 600; }
.affiliate-copy strong { font-size: 26px; line-height: 1.35; letter-spacing: -.035em; }
.affiliate-copy b { font-size: 13px; }
.affiliate-section { margin-top: 76px; }
.affiliate-grid { display: grid; grid-template-columns: 1.15fr .85fr 1fr; gap: 14px; align-items: stretch; }
.affiliate-card { min-width: 0; display: block; color: white; background: var(--ink); border-radius: 12px; overflow: hidden; position: relative; text-decoration: none; }
.affiliate-card-wide { height: 500px; }
.affiliate-card-wide img { width: 100%; height: 100%; object-fit: cover; }
.affiliate-card-wide::after, .affiliate-trip::after { content: ""; background: linear-gradient(0deg, rgba(18,24,28,.88), transparent 60%); pointer-events: none; position: absolute; inset: 0; }
.affiliate-card-copy { display: grid; gap: 7px; z-index: 2; position: absolute; right: 22px; bottom: 22px; left: 22px; }
.affiliate-card-copy strong { font-size: 18px; line-height: 1.4; }
.affiliate-card-copy b, .affiliate-card-copy span { color: #c1cac6; font-size: 12px; line-height: 1.55; }
.affiliate-trip { height: 500px; }
.affiliate-trip > img { width: 100%; height: 100%; object-fit: cover; }
.affiliate-trip .affiliate-card-copy { bottom: auto; top: 22px; }
.trip-embed { width: 250px; height: 250px; z-index: 3; border-radius: 9px; overflow: hidden; position: absolute; right: 50%; bottom: 18px; transform: translateX(50%); }
.affiliate-coupang { height: 500px; padding: 18px; display: flex; flex-direction: column; color: var(--ink); background: white; border: 1px solid var(--line); }
.affiliate-coupang .affiliate-card-copy { flex: 0 0 auto; margin-bottom: 14px; position: static; }
.affiliate-coupang .affiliate-card-copy small { color: var(--green); }
.affiliate-coupang .affiliate-card-copy span { color: var(--muted); font-size: 11px; }
.coupang-viewport { width: 100%; flex: 1; min-height: 0; overflow: hidden; }
.coupang-embed { width: 600px; height: 600px; transform-origin: top left; }
.affiliate-mini { min-height: 250px; display: block; color: white; background: var(--ink); border-radius: 12px; overflow: hidden; position: relative; text-decoration: none; }
.affiliate-mini img { width: 100%; height: 100%; object-fit: cover; opacity: .58; position: absolute; inset: 0; }
.affiliate-mini span { display: grid; gap: 6px; position: absolute; right: 20px; bottom: 20px; left: 20px; }
.affiliate-mini small { font-size: 11px; }
.affiliate-mini strong { font-size: 17px; }

@media (max-width: 980px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .affiliate-grid { grid-template-columns: 1fr 1fr; }
  .affiliate-coupang { grid-column: 1 / -1; height: auto; }
  .affiliate-coupang .coupang-viewport { max-width: 600px; margin: auto; flex: none; }
}
/* Anonymous lounge — mini feed style */
.lounge-page main { max-width: 1080px; }
.lounge-page .community-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.lounge-feed-col { min-width: 0; }
.community-side-col { display: grid; gap: 12px; position: sticky; top: 84px; }
.community-side-col .community-side { padding: 20px; border-radius: 10px; }
.community-side-col .community-side h3 { margin: 0; font-size: 14px; letter-spacing: -.02em; }
.community-side-col .community-side ul { margin: 14px 0 16px; padding: 0; list-style: none; display: grid; gap: 11px; }
.community-side-col .community-side li { position: relative; padding-left: 19px; color: var(--muted); line-height: 1.6; }
.community-side-col .community-side li::before { content: ""; width: 6px; height: 6px; background: var(--green); border-radius: 50%; position: absolute; left: 3px; top: 7px; }
.community-side-col .community-side p { margin: 0; padding-top: 13px; border-top: 1px solid var(--line); }
.community-side-col .community-side a { color: var(--green); font-weight: 700; text-decoration: none; }
/* compose-topic-section: 주제 라벨 + 칩 가로 정렬 */
.compose-topic-section { padding: 14px 20px 12px; display: flex; align-items: center; gap: 10px; }
.compose-topic-label { color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .04em; flex: 0 0 auto; white-space: nowrap; }
.community-compose .compose-topics { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.topic-pick { padding: 7px 12px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; }
.topic-pick.active { color: white; background: var(--ink); border-color: var(--ink); }
/* compose-footer: 라운지 전용 스코프로 이동 (아래 .lounge-page 구간에서 정의) */
/* feed-toolbar: 2행 구조로 교체 */
.feed-toolbar { margin: 16px 0 10px; display: flex; flex-direction: column; gap: 8px; }
.feed-toolbar__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.feed-toolbar__search { display: flex; align-items: center; gap: 9px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; transition: border-color .15s, background .15s; }
.feed-toolbar__search:focus-within { border-color: #9db9ac; background: white; }
.feed-toolbar__search svg { width: 15px; height: 15px; color: var(--faint); flex: 0 0 auto; }
.feed-toolbar__search input { flex: 1; min-width: 0; height: 22px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; line-height: 22px; -webkit-appearance: none; appearance: none; }
.feed-toolbar__search input::placeholder { color: var(--faint); }
.feed-topics { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.feed-topics button, .feed-sort button { min-height: 38px; padding: 8px 12px; color: #7b858f; white-space: nowrap; background: transparent; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 600; }
.feed-topics button.active, .feed-sort button.active { color: var(--ink); background: white; border-color: var(--line); }
.feed-sort { display: flex; gap: 2px; flex: none; }
.lounge-card { margin-bottom: 8px; padding: 16px 18px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.lounge-card header { display: flex; align-items: center; gap: 10px; }
.lounge-avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 50%; font-size: 14px; font-weight: 700; }
.lounge-who { flex: 1; min-width: 0; display: grid; gap: 1px; }
.lounge-who strong { font-size: 13px; }
.lounge-who span { color: var(--faint); font-size: 11px; }
.topic-chip { color: var(--green); font-style: normal; font-weight: 700; }
.lounge-card-actions { display: flex; gap: 4px; }
.lounge-card-actions button { padding: 5px 8px; color: var(--faint); background: transparent; border: 0; border-radius: 6px; font-size: 11px; }
.lounge-card-actions button:hover { color: var(--ink); background: var(--paper); }
.lounge-text { margin: 11px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.lounge-card footer { margin-top: 14px; padding: 10px 0 0; display: flex; align-items: center; gap: 18px; background: transparent; border: 0; border-top: 1px solid var(--line); }
.count-button { padding: 4px 2px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); background: transparent; border: 0; border-radius: 6px; font-size: 13px; font-weight: 600; line-height: 1; }
.count-button svg { width: 15px; height: 15px; flex: none; }
.count-button b { font-weight: 700; }
.count-button:hover { color: var(--ink); }
.count-button.on { color: var(--green); }
.count-button.on svg { fill: var(--green-soft); }
.comment-area { margin-top: 12px; padding: 12px; display: grid; gap: 10px; background: var(--paper); border-radius: 8px; }
.lounge-comment { display: grid; gap: 3px; }
.lounge-comment + .lounge-comment { padding-top: 10px; border-top: 1px solid var(--line); }
.comment-meta { display: flex; align-items: baseline; gap: 8px; }
.comment-meta strong { font-size: 12px; }
.comment-meta span { color: var(--faint); font-size: 11px; }
.lounge-comment p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.no-comment { margin: 0; color: var(--faint); font-size: 12px; }
.comment-compose { display: flex; gap: 6px; }
.comment-compose input { flex: 1; min-width: 0; min-height: 40px; padding: 9px 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 7px; outline: 0; font-size: 13px; }
.comment-compose input:focus { border-color: #91b5a6; }
.comment-compose button { padding: 0 14px; color: white; background: var(--ink); border: 0; border-radius: 7px; font-size: 12px; font-weight: 600; }
.feed-ad { min-height: 96px; margin-bottom: 8px; padding: 18px 18px 18px 56px; display: flex; align-items: center; border-radius: 10px; }
.side-ad { min-height: 250px; display: grid; place-items: center; border-radius: 10px; }
.lounge-page .ad-slot strong { font-size: 12px; }
.lounge-page .ad-slot small { font-size: 10px; }
.lounge-empty { padding: 50px 20px; color: var(--faint); text-align: center; background: white; border: 1px dashed var(--line-dark); border-radius: 10px; font-size: 13px; }
.side-tools-link { display: grid; gap: 6px; padding: 16px 18px; color: white; background: var(--ink); border-radius: 10px; text-decoration: none; }
.side-tools-link strong { font-size: 13px; }
.side-tools-link span { display: inline-flex; align-items: center; gap: 6px; color: #8bd1b7; font-size: 12px; font-weight: 600; }
.side-tools-link svg { width: 13px; height: 13px; }
@media (max-width: 980px) {
  .lounge-page .community-layout { grid-template-columns: 1fr; }
  .community-side-col { position: static; }
}

@media (max-width: 720px) {
  .hero { padding: 46px 0 38px; text-align: left; }
  .hero-kicker { font-size: 12px; }
  h1 { margin: 12px 0 14px; font-size: 36px; line-height: 1.13; }
  .hero > p { font-size: 14px; }
  .global-search { width: 100%; height: 56px; margin-top: 22px; }
  .search-suggestions { justify-content: flex-start; }
  .search-suggestions button { min-height: 40px; }
  .affiliate-hero { height: 280px; }
  .affiliate-hero img { object-position: 65% center; }
  .affiliate-shade { background: linear-gradient(0deg, rgba(20,28,33,.92), rgba(20,28,33,.2)); }
  .affiliate-copy { max-width: none; gap: 8px; right: 20px; bottom: 20px; left: 20px; top: auto; transform: none; }
  .affiliate-copy strong { font-size: 21px; }
  .editorial-strip { margin: 48px 0 60px; }
  .popular-section, .recent-section, .all-tools-section, .news-section, .affiliate-section { margin-top: 58px; }
  .section-title-row { gap: 10px; }
  h2 { font-size: 24px; }
  /* 모바일: 2열 그리드, 카드 높이를 내용 기준으로 줄임 */
  .featured-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  /* 첫 카드(큰 다크 카드)는 2열 전체 차지하되 과도하게 크지 않게 */
  .featured-card:first-child { grid-column: 1 / -1; min-height: 120px; padding: 18px 20px; }
  .featured-card:first-child h3 { font-size: 18px; margin-top: 8px; }
  .featured-card:first-child p { font-size: 12px; max-width: none; }
  /* 나머지 카드: 아이콘+제목 위주 컴팩트 */
  .featured-card { min-height: auto; padding: 14px; gap: 8px; }
  .featured-card h3 { font-size: 13px; margin: 0; }
  .featured-card p { font-size: 11px; -webkit-line-clamp: 2; }
  .featured-icon { width: 32px; height: 32px; }
  .featured-card:first-child .featured-icon { width: 36px; height: 36px; }
  .filter-tabs, .news-tabs { margin: 0 -14px; padding: 0 14px 5px; }
  .filter-tabs button, .news-tabs button { min-height: 44px; font-size: 13px; }
  .category-heading p { display: none; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 116px; padding: 15px; }
  .tool-copy h4 { font-size: 16px; }
  .tool-copy p { font-size: 13px; }
  .news-card { min-height: 185px; }
  .affiliate-grid { grid-template-columns: 1fr; }
  .affiliate-card-wide, .affiliate-card-wide img, .affiliate-trip, .affiliate-trip > img { min-height: 390px; height: 390px; }
  .affiliate-coupang { grid-column: auto; height: auto; }
  dialog { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .dialog-body { max-height: calc(92vh - 138px); padding: 20px 16px; }
  .dialog-header { padding: 17px 16px; }
  .dialog-privacy { padding: 10px 16px; }
  .icon-button { width: 44px; height: 44px; }
  .form-grid { gap: 14px; }
  .content-with-ad { margin-top: 58px; }
  .community-compose, .community-card, .community-side { padding: 16px; }
  .community-compose textarea { min-height: 120px; padding: 13px; font-size: 16px; }
  .community-compose button { min-height: 44px; padding: 10px 14px; font-size: 13px; }
  .community-card p { font-size: 14px !important; line-height: 1.65; }
  .community-card footer { flex-wrap: wrap; gap: 8px; }
  .community-card footer button { min-height: 40px; padding: 8px 10px; }
}

/* Ads — AD 칩 통일 및 가독성 */
.ad-chip { width: fit-content; padding: 3px 8px; color: #fff; background: rgba(15, 20, 24, .5); border: 1px solid rgba(255, 255, 255, .35); border-radius: 5px; font-family: Inter, sans-serif; font-size: 10px !important; font-weight: 700; letter-spacing: .1em; line-height: 1; }
.affiliate-coupang .ad-chip { color: var(--green); background: var(--green-soft); border-color: transparent; }
.ad-disclosure { margin: 12px 0 0; color: var(--faint); font-size: 11px; line-height: 1.6; }
.affiliate-trip::after { background: linear-gradient(180deg, rgba(18, 24, 28, .82), rgba(18, 24, 28, 0) 55%); }

/* 잘림 수정 */
.recent-list { flex-wrap: wrap; overflow: visible; }
.editorial-strip img { height: 100%; min-height: 300px; }
.featured-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

/* Footer business info */
.footer-biz { max-width: 1176px; margin: 24px auto 0; padding-top: 18px; display: grid; gap: 3px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11px; line-height: 1.75; }
.footer-biz strong { color: var(--muted); font-family: Inter, "Noto Sans KR", sans-serif; font-size: 12px; }
.footer-biz p { margin: 0; }
.footer-biz a { color: var(--muted); text-decoration: none; }
.footer-biz a:hover { color: var(--ink); }
.simple-footer { margin-top: 64px; padding: 26px 22px 48px; background: white; border-top: 1px solid var(--line); }
.simple-footer .footer-biz { margin-top: 0; padding-top: 0; border-top: 0; }

/* Mobile polish */
@media (max-width: 980px) {
  .main-nav { display: flex; flex: 1; justify-content: flex-end; gap: 18px; }
  .main-nav a[data-nav-filter] { display: none; }
}
@media (max-width: 720px) {
  .header-inner { gap: 14px; }
  .main-nav { gap: 13px; }
  .main-nav a { font-size: 13px; white-space: nowrap; }
  .global-search kbd { display: none; }
  .recent-item { min-width: 0; flex: 1 1 calc(50% - 4px); }
  .footer-inner { gap: 18px; }
  .footer-biz { font-size: 10px; }
  .simple-footer { margin-top: 48px; padding: 22px 15px 40px; }
}

/* Spacing rhythm — 섹션 간격 정리 */
.hero { padding: 64px 0 36px; }
.popular-section { margin-top: 38px; }
.recent-section { margin-top: 58px; }
.affiliate-hero { margin-top: 66px; }
.editorial-strip { margin: 66px 0 0; }
.all-tools-section { margin-top: 76px; }
.news-section, .affiliate-section, .lounge-section, .content-with-ad { margin-top: 76px; }
.section-title-row { margin-bottom: 22px; }
.lounge-page main { padding-top: 48px; }
.lounge-page .section-title-row { margin-bottom: 16px; }
.lounge-page .mode-banner { margin-bottom: 18px; padding: 12px 14px; }
/* 라운지 글쓰기 카드: padding:0 + 구역별 패딩/구분선 */
.lounge-page .community-compose { padding: 0; overflow: hidden; margin-bottom: 0; border-radius: 10px; }
/* login-notice가 padding:0 카드에서 위아래로 붙지 않도록 보정 */
.lounge-page .community-compose .login-notice { margin: 14px 20px 0; }
/* textarea: 기존 회색 박스 스타일을 라운지 스코프에서 덮어씀 */
.lounge-page .community-compose textarea { width: 100%; min-height: 90px; padding: 14px 20px; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; resize: vertical; outline: 0; font-size: 14px; line-height: 1.65; color: var(--ink); }
.lounge-page .community-compose textarea:focus { background: #fafaf9; box-shadow: none; }
/* compose-footer: 라운지 전용 (기존 .community-compose div 규칙을 덮음) */
.lounge-page .community-compose .compose-footer { padding: 10px 20px 14px; margin-top: 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
@media (max-width: 720px) {
  .hero { padding: 40px 0 26px; }
  .popular-section { margin-top: 26px; }
  .recent-section { margin-top: 44px; }
  .affiliate-hero { margin-top: 50px; }
  .editorial-strip { margin: 50px 0 0; }
  .all-tools-section { margin-top: 58px; }
  .news-section, .affiliate-section, .lounge-section, .content-with-ad { margin-top: 58px; }
  .lounge-page main { padding-top: 30px; }
  /* feed-toolbar 자체는 이미 flex-direction:column — __top은 row 유지 */
  .feed-toolbar { gap: 6px; margin: 14px 0 10px; }
  .feed-toolbar__top { flex-direction: row; }
  .feed-toolbar__search { padding: 11px 14px; border-radius: 10px; }
  .feed-toolbar__search input { font-size: 16px; }
  .feed-sort { justify-content: flex-end; }
}

/* ── 인앱 알림 (종 아이콘 + 뱃지 + 패널) ──────────────────────── */
.noti-area { display: flex; align-items: center; position: relative; margin-right: 6px; }

/* 종 버튼 */
.noti-bell { position: relative; width: 38px; height: 38px; display: grid; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 8px; transition: color .15s, background .15s; }
.noti-bell:hover { color: var(--ink); background: var(--paper); }
.noti-bell svg { width: 20px; height: 20px; }

/* 안 읽은 수 뱃지 */
.noti-badge { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; color: #fff; background: #e53e3e; border-radius: 999px; font-family: Inter, sans-serif; font-size: 10px; font-weight: 700; line-height: 1; pointer-events: none; }

/* 알림 드롭다운 패널 */
.noti-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 300px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(28,36,49,.14); z-index: 100; overflow: hidden; }
.noti-panel-header { padding: 13px 16px 11px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.noti-panel-header strong { font-size: 13px; letter-spacing: -.01em; }
.noti-panel-close { width: 28px; height: 28px; padding: 0; display: grid; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 6px; }
.noti-panel-close:hover { color: var(--ink); background: var(--paper); }
.noti-panel-close svg { width: 14px; height: 14px; }
.noti-panel-body { max-height: 320px; overflow-y: auto; }

/* 알림 빈 상태 */
.noti-empty { margin: 0; padding: 22px 16px; color: var(--faint); font-size: 12px; text-align: center; }

/* 알림 항목 */
.noti-item { width: 100%; padding: 11px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; transition: background .12s; }
.noti-item:last-child { border-bottom: 0; }
.noti-item:hover { background: var(--paper); }
.noti-item-text { flex: 1; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.noti-item-preview { font-weight: 700; color: var(--ink); }
.noti-item-time { flex-shrink: 0; color: var(--faint); font-size: 11px; padding-top: 2px; }

/* "내 글" 탭 버튼 (feed-topics 안에 들어감) */
.my-posts-tab { min-height: 38px; padding: 8px 12px; color: var(--green); white-space: nowrap; background: transparent; border: 1px solid var(--green-soft); border-radius: 7px; font-size: 12px; font-weight: 700; transition: background .13s, color .13s; }
.my-posts-tab.active { color: white; background: var(--green); border-color: var(--green); }
.my-posts-tab:hover:not(.active) { background: var(--green-soft); }

/* 모바일 알림 패널 조정 */
@media (max-width: 720px) {
  .noti-panel { right: -14px; width: calc(100vw - 28px); max-width: 340px; }
  .noti-bell { width: 44px; height: 44px; }
  .my-posts-tab { min-height: 44px; padding: 10px 14px; font-size: 13px; }
}

/* ── 구글 로그인 버튼 (헤더 공통) ──────────────────────────────── */
.auth-area { display: flex; align-items: center; }
.auth-btn { padding: 7px 13px; border: 0; border-radius: 7px; font-size: 11px; font-weight: 700; cursor: pointer; transition: background .15s; white-space: nowrap; }
.auth-btn--in { color: white; background: var(--green); }
.auth-btn--in:hover { background: var(--green-2); }
.auth-btn--out { color: var(--muted); background: var(--paper); border: 1px solid var(--line); }
.auth-btn--out:hover { color: var(--ink); background: var(--line); }

/* ── 로그인 안내 (라운지 글쓰기 영역) ─────────────────────────── */
.login-notice { padding: 10px 14px; margin-bottom: 10px; background: var(--blue-soft); border-radius: 8px; font-size: 12px; color: var(--muted); }
.login-notice p { margin: 0; }
.login-notice-btn { padding: 0; color: var(--green); background: transparent; border: 0; font-size: 12px; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ── 계산기 다이얼로그 쿠팡 배너 ──────────────────────────────── */
.dialog-coupang { padding: 12px 24px 0; }
.coupang-dialog-banner { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ad-label-small { position: absolute; top: 6px; left: 6px; z-index: 3; padding: 1px 6px; color: #fff; background: rgba(0,0,0,.45); border: 0; border-radius: 3px; font-family: Inter, sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.coupang-banner-viewport { position: relative; width: 100%; overflow: hidden; border-radius: 4px; }
.coupang-banner-frame { position: absolute; top: 0; left: 0; display: block; border: 0; opacity: 0; transition: opacity .5s ease; }
.coupang-banner-frame.on { opacity: 1; }

/* ── 통합 인증 모달 ─────────────────────────────────────────────── */
/* 탭 전환 바 */
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); }
.auth-tab { flex: 1; padding: 12px 0; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: 13px; font-weight: 700; transition: color .15s, border-color .15s; }
.auth-tab.active { color: var(--green); border-bottom-color: var(--green); }
.auth-tab:hover:not(.active) { color: var(--ink); }

/* 구글 로그인 버튼 */
.auth-google-btn { width: 100%; padding: 12px 16px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink); background: white; border: 1.5px solid var(--line-dark); border-radius: 8px; font-size: 13px; font-weight: 700; transition: border-color .15s, box-shadow .15s; }
.auth-google-btn:hover { border-color: #a0adb8; box-shadow: 0 2px 8px rgba(33,43,54,.08); }

/* 구분선 */
.auth-divider { margin: 16px 0; display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 에러 / 성공 메시지 박스 */
.auth-error { padding: 10px 13px; margin-bottom: 12px; background: var(--rose-soft); border-radius: 7px; color: #b04040; font-size: 12px; line-height: 1.55; }
.auth-error--success { background: var(--green-soft); color: var(--green); }

/* 약관 동의 영역 */
.auth-terms { margin: 16px 0 4px; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 10px; }
.auth-terms-all { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; cursor: pointer; }
.auth-terms-list { padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.auth-terms-item { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--muted); cursor: pointer; line-height: 1.55; }
.auth-terms-item a { color: var(--green); font-weight: 700; text-decoration: none; }
.auth-terms-item a:hover { text-decoration: underline; }
.auth-terms-all input, .auth-terms-item input { flex-shrink: 0; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--green); cursor: pointer; }

/* 힌트 텍스트 */
.auth-hint { color: var(--faint); font-size: 11px; font-weight: 400; }

/* 텍스트 링크 버튼 (비밀번호 찾기, 돌아가기) */
.auth-text-link { display: block; width: 100%; margin-top: 10px; padding: 8px; color: var(--muted); background: transparent; border: 0; font-size: 12px; text-align: center; text-decoration: underline; }
.auth-text-link:hover { color: var(--ink); }

/* 비밀번호 재설정 설명 */
.auth-reset-desc { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════════
   모바일 UI/UX 개선 (아이폰 13 기준, 390px)
   데스크톱(>980px)에는 영향 없음 — 720px 이하 구간만 덮어씀
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. iOS zoom-on-focus 방지 ─────────────────────────────────────
   iOS Safari는 input font-size < 16px이면 포커스 시 강제 확대됨.
   모든 입력 요소를 16px 이상으로 일괄 지정.
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  input, textarea, select {
    font-size: 16px !important;
  }
  /* numeric-input은 계산기 다이얼로그 내 숫자 입력 — 동일 적용 */
  .numeric-input { font-size: 16px !important; }
  /* 검색 입력도 동일 */
  #loungeSearch, #toolSearch { font-size: 16px !important; }
}

/* ── 2. 헤더: 브랜드+로그인 항상 노출, nav 가로스크롤, privacy-pill 숨김 ── */
@media (max-width: 720px) {
  .site-header { height: 56px; }
  .header-inner {
    padding: 0 14px;
    gap: 10px;
  }
  /* 브랜드명 텍스트는 좁을 때 한글 부분 숨겨 아이콘만 남김 방지 */
  .brand-name { font-size: 13px; }

  /* nav: 가로 스크롤 허용, 핵심 링크는 유지 */
  .main-nav {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 10px;
    justify-content: flex-start;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { font-size: 12px; white-space: nowrap; }

  /* privacy-pill: 모바일에서 숨김 (정보는 footer에 있음) */
  .privacy-pill { display: none; }

  /* 로그인 버튼 터치 영역 확보 */
  .auth-btn {
    min-height: 44px;
    padding: 0 14px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ── 3. 헤더: 430px 이하 — 브랜드 심볼만 (문자 없음) ─────────────── */
@media (max-width: 430px) {
  .brand-name { display: none; }
  .header-inner { gap: 8px; }
}

/* ── 4. 터치 타깃 44×44px ───────────────────────────────────────── */
@media (max-width: 720px) {
  /* 헤더 닫기 버튼은 이미 44×44 처리되어 있음 — dialog 내도 확보 */
  .icon-button { width: 44px; height: 44px; }

  /* 주제 칩 / 피드 필터 버튼 */
  .topic-pick { min-height: 44px; padding: 10px 15px; font-size: 14px; }
  .feed-topics button, .feed-sort button { min-height: 44px; padding: 10px 14px; font-size: 13px; }

  /* 공감/댓글/신고/삭제 액션 버튼 */
  .lounge-card-actions button { min-height: 44px; padding: 10px 12px; font-size: 13px; }
  .count-button { min-height: 44px; padding: 10px 4px; font-size: 14px; }

  /* 검색 제안 칩 */
  .search-suggestions button { min-height: 44px; padding: 10px 14px; font-size: 13px; }

  /* 복사 버튼 */
  .copy-button { min-height: 44px; padding: 12px 16px; font-size: 13px; }

  /* 약관 체크박스 레이블 행 간격 */
  .auth-terms-all { min-height: 44px; }
  .auth-terms-item { min-height: 40px; padding: 4px 0; }
  .auth-terms-all input, .auth-terms-item input { width: 20px; height: 20px; }
}

/* ── 5. 본문 가독성 — 모바일 최소 폰트 기준 ───────────────────────
   본문 14~15px, 보조 12~13px, 캡션 11px+
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  /* 라운지 글 본문 */
  .lounge-text { font-size: 15px; line-height: 1.75; }

  /* 댓글 본문 */
  .lounge-comment p { font-size: 14px; }
  .comment-meta strong { font-size: 13px; }
  .comment-meta span { font-size: 12px; }
  .no-comment { font-size: 13px; }

  /* 카드 작성자·시간 */
  .lounge-who strong { font-size: 14px; }
  .lounge-who span { font-size: 12px; }

  /* 사이드바 운영원칙 리스트 */
  .community-side-col .community-side li { font-size: 13px; }
  .community-side-col .community-side h3 { font-size: 15px; }
  .community-side-col .community-side p { font-size: 13px; }

  /* 라운지 검색창: feed-toolbar__search input { font-size:16px } 으로 처리 */

  /* 글쓰기 카드 메타 */
  .page-meta { font-size: 13px; }

  /* 게시물 하단 카드 헤더·푸터 */
  .community-card header { font-size: 12px; }
  .community-card footer { font-size: 12px; }

  /* footer 사업자정보 */
  .footer-biz { font-size: 11px; line-height: 1.8; }
  .footer-biz strong { font-size: 13px; }

  /* footer 링크 */
  .footer-links a { font-size: 12px; }
  .copyright { font-size: 11px; }
}

/* ── 6. 계산기 다이얼로그 — 하단 시트 스타일 ─────────────────────── */
@media (max-width: 720px) {
  /* 이미 선언된 dialog 하단시트(border-radius 18 18 0 0) 보강 */
  dialog {
    width: 100%;
    max-width: 100%;
    max-height: 94vh;
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
  }

  /* 다이얼로그 헤더 */
  .dialog-header { padding: 18px 18px 16px; }
  .dialog-title-wrap h2 { font-size: 18px; }

  /* 다이얼로그 바디 스크롤 영역 */
  .dialog-body {
    max-height: calc(94vh - 150px);
    padding: 20px 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 폼 필드 세로 1열 강제 */
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .field.full { grid-column: auto; }

  /* 입력 높이 */
  .field input, .field select, .field textarea {
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 10px;
  }
  .field label { font-size: 14px; }

  /* 결과 영역 */
  .result-box { padding: 18px; border-radius: 10px; }
  .result-box strong { font-size: 28px; }
  .result-box span { font-size: 13px; }
  .result-box p { font-size: 13px; }
  .result-row { font-size: 13px; padding: 12px 2px; }

  /* 계산 실행/제출 버튼 */
  .primary-button {
    min-height: 52px;
    font-size: 15px;
    border-radius: 10px;
    margin-top: 16px;
  }

  /* 쿠팡 배너가 본문을 가리지 않도록 패딩 조정 */
  .dialog-coupang { padding: 14px 18px 0; }

  /* 하단 개인정보 안내 */
  .dialog-privacy { padding: 10px 18px; font-size: 12px; }
}

/* ── 7. 인증 모달 ──────────────────────────────────────────────────── */
@media (max-width: 720px) {
  /* .auth-dialog는 .small-dialog를 재사용 — 하단 시트로 */
  .auth-dialog {
    max-width: 100%;
    width: 100%;
    margin: auto 0 0;
    max-height: 96vh;
    border-radius: 20px 20px 0 0;
  }

  /* 탭 버튼 터치 영역 */
  .auth-tab { min-height: 48px; font-size: 14px; }

  /* 이메일/비밀번호 입력 — iOS zoom 방지 포함 */
  #loginEmail, #loginPassword,
  #signupEmail, #signupPassword, #signupPasswordConfirm,
  #resetEmail {
    font-size: 16px !important;
    min-height: 52px;
  }

  /* 제출 버튼 */
  #loginSubmitBtn, #signupSubmitBtn, #resetSubmitBtn {
    min-height: 52px;
    font-size: 15px;
  }

  /* 구글 로그인 버튼 */
  .auth-google-btn { min-height: 52px; font-size: 14px; border-radius: 10px; }

  /* 약관 행 간격 */
  .auth-terms { gap: 12px; padding: 16px; }
  .auth-terms-list { gap: 12px; }
  .auth-terms-item { font-size: 13px; line-height: 1.6; }
  .auth-terms-all { font-size: 14px; }

  /* 에러 박스 */
  .auth-error { font-size: 13px; padding: 12px 14px; }

  /* 비밀번호 재설정 설명 */
  .auth-reset-desc { font-size: 14px; }

  /* 텍스트 링크 버튼 */
  .auth-text-link { font-size: 13px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
}

/* ── 8. 라운지 (community.html) ────────────────────────────────────── */
@media (max-width: 720px) {
  /* 글쓰기 카드: 라운지 스코프, padding:0 유지 + 내부 구역별 조정 */
  .lounge-page .community-compose { border-radius: 12px; }
  .compose-topic-section { padding: 12px 16px 10px; gap: 8px; }
  .compose-topic-label { font-size: 12px; }
  .lounge-page .community-compose textarea {
    padding: 14px 16px;
    font-size: 16px;
    min-height: 110px;
    line-height: 1.65;
  }
  .lounge-page .community-compose .compose-footer { padding: 10px 16px 14px; }
  .lounge-page .community-compose .login-notice { margin: 12px 16px 0; }
  /* 게시 버튼 */
  #writePost {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 8px;
  }
  /* 구 .lounge-search 모바일 규칙 삭제 — feed-toolbar__search 로 통합됨 */

  /* 피드 카드 패딩 */
  .lounge-card { padding: 16px; border-radius: 12px; }
  .lounge-avatar { width: 38px; height: 38px; font-size: 15px; }

  /* 댓글 입력+등록 */
  .comment-compose { gap: 8px; }
  .comment-compose input {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 9px;
  }
  .comment-compose button {
    min-height: 48px;
    padding: 0 18px;
    font-size: 14px;
    border-radius: 9px;
    white-space: nowrap;
  }

  /* 라운지 카드 footer 간격 */
  .lounge-card footer { gap: 14px; }

  /* 사이드바: 모바일에서 피드 아래로 */
  .lounge-page .community-layout { grid-template-columns: 1fr; gap: 14px; }
  .community-side-col { position: static; }
}

/* ── 9. 메인 페이지 그리드 (390px 구간) ──────────────────────────── */
@media (max-width: 430px) {
  /* 히어로 */
  .hero { padding: 36px 0 24px; }
  h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.04em; }
  .hero > p { font-size: 14px; line-height: 1.7; }

  /* 글로벌 검색바 */
  .global-search { height: 54px; border-radius: 12px; }

  /* 피쳐드 카드: 430px 이하에서도 2열 유지, 텍스트만 소폭 축소 */
  .featured-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .featured-card:first-child { grid-column: 1 / -1; min-height: 108px; padding: 15px 16px; }
  .featured-card:first-child h3 { font-size: 16px; }
  .featured-card:first-child p { font-size: 11px; }
  .featured-card { padding: 12px; min-height: auto; }
  .featured-card h3 { font-size: 12px; }
  .featured-card p { font-size: 11px; }

  /* 도구 카드 1열 */
  .tool-grid { grid-template-columns: 1fr; gap: 8px; }
  .tool-card { min-height: 110px; padding: 15px; }
  .tool-copy h4 { font-size: 15px; }
  .tool-copy p { font-size: 13px; }

  /* 뉴스 카드 — 이미 1열이지만 최소 높이 조정 */
  .news-card { min-height: 170px; padding: 16px; }
  .news-card h3 { font-size: 15px; }
  .news-card p { font-size: 13px; }

  /* 제휴 카드 */
  .affiliate-card-wide, .affiliate-card-wide img,
  .affiliate-trip, .affiliate-trip > img { min-height: 320px; height: 320px; }
  .affiliate-card-copy strong { font-size: 16px; }
}

/* ── 쿠팡 사이드 슬라이더 광고 (300x250) ──────────────────────── */
.coupang-ad { position: relative; width: 100%; max-width: 300px; aspect-ratio: 300 / 250; margin: 0 auto; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.coupang-ad .cpslide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.coupang-ad .cpslide.on { opacity: 1; pointer-events: auto; }
.coupang-ad .cpslide img { width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; }
.cp-label { position: absolute; top: 6px; left: 6px; z-index: 3; padding: 1px 6px; font-family: Inter, sans-serif; font-size: 9px; font-weight: 700; color: #fff; background: rgba(0,0,0,.45); border-radius: 3px; letter-spacing: .04em; }
.cp-disclaimer { max-width: 300px; margin: 6px auto 0; font-size: 10px; line-height: 1.5; color: var(--faint); text-align: center; }

/* ── 바이낸스 피드 중간 배너 ──────────────────────────────────── */
.binance-ad { position: relative; display: block; margin: 0; background: #181a20; border-radius: 10px; overflow: hidden; text-decoration: none; border: 1px solid #2b2f36; }
.binance-ad .cp-label { background: rgba(255,255,255,.16); }
.binance-ad-body { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.binance-ad-mark { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; background: #f0b90b; color: #181a20; border-radius: 8px; font-family: Inter, sans-serif; font-size: 20px; font-weight: 800; }
.binance-ad-text { flex: 1; min-width: 0; }
.binance-ad-text strong { display: block; color: #fff; font-size: 14px; font-weight: 700; }
.binance-ad-text span { display: block; margin-top: 2px; color: #aeb4bc; font-size: 11px; }
.binance-ad-cta { flex: 0 0 auto; padding: 8px 14px; background: #f0b90b; color: #181a20; border-radius: 7px; font-size: 12px; font-weight: 700; white-space: nowrap; }

/* ── 트립닷컴 피드 배너 (728x90, 폭 맞춰 축소) ─────────────────── */
.feed-ad-trip { position: relative; margin: 0 0 8px; }
.trip-ad-viewport { width: 100%; overflow: hidden; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.trip-ad-frame { display: block; border: 0; }

/* 제휴 카드 하단 고지 (작게) */
.affiliate-disclaimer { margin: 8px 2px 0; font-size: 9px; line-height: 1.45; color: var(--faint); text-align: center; }

/* 전체 도구 강조 링크 (라운지 헤더 CTA) */
.main-nav .nav-cta { color: var(--green); font-weight: 700; }
.main-nav .nav-cta:hover { color: var(--green-2); }

/* ── 도구 페이지 콘텐츠 섹션 (사용법 / FAQ) ─────────────────────── */
.tool-guide,
.tool-faq {
  margin-top: 32px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tool-guide h2,
.tool-faq h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.tool-guide-lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.tool-guide-steps {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.75;
}
.tool-guide-steps li {
  margin-bottom: 6px;
}
.tool-guide-steps li:last-child {
  margin-bottom: 0;
}
.tool-guide-tips {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--green-soft);
  border-radius: 8px;
}
.tool-guide-tips strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.tool-guide-tips ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.7;
}
.tool-guide-tips li {
  margin-bottom: 4px;
}
.tool-guide-tips li:last-child {
  margin-bottom: 0;
}
.tool-faq-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.tool-faq-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.tool-faq-item:first-of-type {
  padding-top: 0;
}
.tool-faq-item h3 {
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}
.tool-faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* ── 모바일 홈 상단 개선 (디자인팀 스펙) ─────────────────────────── */
.lounge-nav-link { display: none; }
@media (max-width: 720px) {
  .site-header { height: 52px; }
  .header-inner { padding: 0 16px; gap: 0; justify-content: space-between; }
  .main-nav { display: none; }
  .privacy-pill { display: none; }
  .lounge-nav-link { display: inline-flex; align-items: center; height: 34px; padding: 0 11px; color: var(--ink-2); font-size: 12px; font-weight: 600; text-decoration: none; border: 1px solid var(--line-dark); border-radius: 7px; white-space: nowrap; }
  .auth-area button, .auth-area a { min-height: 34px; padding: 0 12px; font-size: 12px; border-radius: 7px; }
  .hero { padding: 44px 0 40px; }
  .hero-kicker { font-size: 11px; }
  h1 { margin: 12px 0 14px; font-size: clamp(28px, 7.5vw, 36px); line-height: 1.22; letter-spacing: -.04em; }
  .hero > p { font-size: 13px; line-height: 1.65; }
  .global-search { height: 52px; margin-top: 20px; border-radius: 11px; }
  .global-search input { font-size: 16px; }
  .global-search kbd { display: none; }
  .search-suggestions { margin-top: 10px; gap: 6px; }
  .search-suggestions span { font-size: 10px; width: auto; flex: 0 0 auto; }
  .search-suggestions button { min-height: 36px; padding: 6px 11px; font-size: 11px; border-radius: 7px; }
  .popular-section { margin-top: 48px; }
}
@media (max-width: 360px) {
  .lounge-nav-link { display: none; }
}

/* ── 라운지 모바일 정리 ──────────────────────────────────────── */
@media (max-width: 720px) {
  /* 글쓰기 하단: 글자수 안내 위 / 버튼 아래 full-width (버튼 줄바꿈 방지) */
  .lounge-page .community-compose .compose-footer { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px 14px; }
  .lounge-page .community-compose .compose-footer .page-meta { font-size: 11px; text-align: left; color: var(--faint); }
  #writePost { width: 100%; white-space: nowrap; min-height: 46px; font-size: 14px; }
  /* 필터 바: 주제 가로 스크롤 한 줄 + 정렬은 아래 우측 */
  .feed-toolbar__top { flex-direction: column; align-items: stretch; gap: 8px; }
  .feed-topics { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .feed-topics::-webkit-scrollbar { display: none; }
  .feed-topics button { flex: 0 0 auto; white-space: nowrap; }
  .feed-sort { align-self: flex-end; }
}
@media (max-width: 360px) {
  /* 아주 좁은 폰: 라운지 헤더의 전체도구 링크는 숨김(종+로그인 우선) */
  .lounge-page .lounge-nav-link { display: none; }
}
