/* 이음 — 유리(리퀴드 글래스) 스타일.
   반투명 유리 카드 + 뒤에 은은한 색 번짐, 큰 둥근 모서리, 짙은 먹색 알약 버튼, 강조색은 배지·히어로에만.
   글자 대비는 "유리 + 가장 진한 번짐" 위에서 계산했다(본문 4.5:1 이상, 히어로 큰 글씨 3:1 이상). */

/* ---------- 강조색 (기본 코랄) ---------- */
:root, [data-accent="coral"] {
  --a-l:#B93A12; --a-soft-l:#FFE3D3; --a-badge-l:#A8340E;
  --a-d:#FF9468; --a-soft-d:rgb(255 148 104 / .16); --a-badge-d:#FFB08E;
  --hero-1:#C94A22; --hero-2:#A33212; --hero-glow:rgb(255 150 100 / .8);
  --blob:255 138 91;
}
[data-accent="blue"] {
  --a-l:#1F4FC9; --a-soft-l:#DCE6FF; --a-badge-l:#1C47B5;
  --a-d:#8FB0FF; --a-soft-d:rgb(143 176 255 / .16); --a-badge-d:#B5CAFF;
  --hero-1:#3C6BEA; --hero-2:#1F45B8; --hero-glow:rgb(140 180 255 / .75);
  --blob:110 150 255;
}
[data-accent="green"] {
  --a-l:#18794A; --a-soft-l:#D7F2E2; --a-badge-l:#156B41;
  --a-d:#6FD3A0; --a-soft-d:rgb(111 211 160 / .16); --a-badge-d:#9BE4BE;
  --hero-1:#167A48; --hero-2:#0F6A3D; --hero-glow:rgb(120 220 160 / .6);
  --blob:90 200 140;
}

/* ---------- 밝게 / 어둡게 ---------- */
:root {
  --bg:#ECECEF;
  --glass:rgb(255 255 255 / .66); --glass-hi:rgb(255 255 255 / .84); --glass-lo:rgb(255 255 255 / .42);
  --glass-hl:rgb(255 255 255 / .95); --glass-edge:rgb(20 20 30 / .07);
  --shadow:0 14px 34px -18px rgb(28 28 40 / .30), 0 2px 8px -4px rgb(28 28 40 / .10);
  --shadow-lg:0 24px 48px -20px rgb(28 28 40 / .35), 0 4px 12px -6px rgb(28 28 40 / .12);
  --surface:#F8F8F9; --surface-2:rgb(20 20 30 / .06);
  --text:#1C1C1E; --text-2:#4A4A50; --text-3:#64646B;
  --line:rgb(20 20 30 / .08); --line-strong:rgb(20 20 30 / .14);
  --ink:#1F1F23; --ink-2:#3A3A40; --on-ink:#FFFFFF;
  --danger:#C2261A;
  --edge:rgb(20 20 30 / .16); --edge-strong:rgb(20 20 30 / .32);
  --accent:var(--a-l); --accent-soft:var(--a-soft-l); --badge:var(--a-badge-l); --on-accent:#FFFFFF;
  --blob-a:.30; --blob-b:rgb(255 200 160 / .35); --blob-c:rgb(170 180 205 / .38);
  --backdrop:rgb(20 20 30 / .28);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#0F0F12;
    --glass:rgb(42 42 48 / .62); --glass-hi:rgb(34 34 40 / .84); --glass-lo:rgb(42 42 48 / .40);
    --glass-hl:rgb(255 255 255 / .09); --glass-edge:rgb(0 0 0 / .45);
    --shadow:0 14px 34px -18px rgb(0 0 0 / .7), 0 2px 8px -4px rgb(0 0 0 / .4);
    --shadow-lg:0 24px 48px -20px rgb(0 0 0 / .8), 0 4px 12px -6px rgb(0 0 0 / .5);
    --surface:#232328; --surface-2:rgb(255 255 255 / .07);
    --text:#F2F2F5; --text-2:#C6C6CC; --text-3:#9C9CA4;
    --line:rgb(255 255 255 / .08); --line-strong:rgb(255 255 255 / .14);
    --ink:#F2F2F5; --ink-2:#D6D6DC; --on-ink:#111114;
    --danger:#FF8A7A;
    --edge:rgb(255 255 255 / .16); --edge-strong:rgb(255 255 255 / .32);
    --accent:var(--a-d); --accent-soft:var(--a-soft-d); --badge:var(--a-badge-d); --on-accent:#111114;
    --blob-a:.20; --blob-b:rgb(120 90 200 / .14); --blob-c:rgb(255 255 255 / .04);
    --backdrop:rgb(0 0 0 / .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:#0F0F12;
  --glass:rgb(42 42 48 / .62); --glass-hi:rgb(34 34 40 / .84); --glass-lo:rgb(42 42 48 / .40);
  --glass-hl:rgb(255 255 255 / .09); --glass-edge:rgb(0 0 0 / .45);
  --shadow:0 14px 34px -18px rgb(0 0 0 / .7), 0 2px 8px -4px rgb(0 0 0 / .4);
  --shadow-lg:0 24px 48px -20px rgb(0 0 0 / .8), 0 4px 12px -6px rgb(0 0 0 / .5);
  --surface:#232328; --surface-2:rgb(255 255 255 / .07);
  --text:#F2F2F5; --text-2:#C6C6CC; --text-3:#9C9CA4;
  --line:rgb(255 255 255 / .08); --line-strong:rgb(255 255 255 / .14);
  --ink:#F2F2F5; --ink-2:#D6D6DC; --on-ink:#111114;
  --danger:#FF8A7A;
  --edge:rgb(255 255 255 / .16); --edge-strong:rgb(255 255 255 / .32);
  --accent:var(--a-d); --accent-soft:var(--a-soft-d); --badge:var(--a-badge-d); --on-accent:#111114;
  --blob-a:.20; --blob-b:rgb(120 90 200 / .14); --blob-c:rgb(255 255 255 / .04);
  --backdrop:rgb(0 0 0 / .55);
  color-scheme: dark;
}

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", system-ui, Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, "Roboto Mono", monospace;
  --r-card: 24px; --r-ctl: 14px; --radius: 14px;
  --blur: blur(22px) saturate(1.7);
  --bar-h: 60px;
  --tab-h: 64px; --tab-gap: 12px;
  /* 간격은 4px 단위만 쓴다: 4 8 12 16 20 24 32 40 */
  --gutter: 16px;     /* 화면 바깥 여백: 휴대폰 16 · 태블릿 24 · PC 32 */
  --stack: 12px;      /* 카드와 카드 사이 */
  --section: 24px;    /* 덩어리와 덩어리 사이 */
  --pad: 16px 18px;   /* 카드 안쪽 여백 */
  --col: 640px;       /* 읽기 폭(글 본문) */
  --wide: 1120px;     /* 목록·네트워크 최대 폭 */
  --side-w: 248px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html, body { margin: 0; color: var(--text); font: 16px/1.7 var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { -webkit-tap-highlight-color: transparent; min-height: 100dvh; }
/* 유리 뒤에 비칠 은은한 색 번짐 (화면에 고정) */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 0% 0%, rgb(var(--blob) / var(--blob-a)), transparent 62%),
    radial-gradient(50vmax 45vmax at 100% 35%, var(--blob-b), transparent 60%),
    radial-gradient(70vmax 50vmax at 30% 100%, var(--blob-c), transparent 65%); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.ic { width: 22px; height: 22px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kor, .md, .row-text, .row-title, .row-ex, h1, h2, h3 { word-break: keep-all; overflow-wrap: anywhere; }

/* 유리 재질: 반투명 + 흐림 + 위쪽 빛 반사 + 바깥 그림자 */
.glass, .row, .card, .sect, .set, .hero-card, .search input, .graph.big, .graph.mini, .codebox, .pair, .settings .card, .banner, .reader, .editor, dialog, .sheet, .empty, .tagindex, .skel {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hl), var(--shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: var(--surface); --glass-hi: var(--surface); }
}

/* ---------- 앱 바 ---------- */
.appbar { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top);
  background: linear-gradient(var(--bg), color-mix(in srgb, var(--bg) 0%, transparent));
  transition: background .2s; }
.appbar.scrolled { background: color-mix(in srgb, var(--bg) 62%, transparent); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 1px 0 var(--line); }
.appbar-in { max-width: calc(var(--page) + var(--gutter) * 2); margin: 0 auto; height: var(--bar-h); display: flex; align-items: center; gap: 8px; padding: 0 var(--gutter); }
.brand { font-size: 26px; font-weight: 800; letter-spacing: -.04em; margin-right: auto; display: inline-flex; align-items: center; gap: 8px; }
.brand::before { content: ""; width: 26px; height: 26px; border-radius: 9px; background: radial-gradient(circle at 75% 20%, var(--hero-glow), transparent 60%), linear-gradient(150deg, var(--hero-1), var(--hero-2)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 4px 10px -4px rgb(var(--blob) / .8); }
.bar-title { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 글 보기: 카드 안 제목과 겹치지 않게, 스크롤해서 카드 제목이 가려질 때만 위쪽 바에 제목을 보인다 */
body[data-view="note"] .bar-title { transition: opacity .2s; }
body[data-view="note"] .appbar:not(.scrolled) .bar-title { opacity: 0; }
/* 원형 유리 버튼 */
.iconbtn { width: 42px; height: 42px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text);
  background: var(--glass-hi); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hl), 0 6px 16px -10px rgb(28 28 40 / .35); transition: transform .12s; }
.iconbtn:active { transform: scale(.94); }
.iconbtn .ic { width: 20px; height: 20px; }
.iconbtn.edge { margin-left: -4px; }
.textbtn { flex: none; white-space: nowrap; height: 42px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 700;
  background: var(--ink); color: var(--on-ink); box-shadow: 0 8px 18px -10px rgb(0 0 0 / .5); transition: transform .12s; }
.textbtn:active { transform: scale(.96); }
.deskonly { display: none !important; }
.desknav { display: none; }

/* ---------- 하단 탭 (떠 있는 알약) ---------- */
.tabbar { position: fixed; left: 50%; bottom: calc(var(--tab-gap) + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20;
  width: min(340px, calc(100vw - 32px)); border-radius: 999px;
  background: var(--glass-hi); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hl), var(--shadow-lg); }
.tabbar-in { height: var(--tab-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 10px; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 11px; font-weight: 600; color: var(--text-3); height: 52px; border-radius: 999px; }
.tab .ic { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--text); }
.tab[aria-current="page"] .ic { stroke-width: 2.1; }
.tab-new { padding: 0 6px; }
.tab-new .pill { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: linear-gradient(160deg, var(--ink-2), var(--ink)); color: var(--on-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 10px 20px -10px rgb(0 0 0 / .6); transition: transform .12s; }
.tab-new .pill .ic { width: 24px; height: 24px; stroke-width: 2.2; }
.tab-new:active .pill { transform: scale(.93); }
body.no-tabbar .tabbar { display: none; }

/* 화면별 폭: 목록·태그·네트워크는 넓게, 글·설정은 읽기 폭 */
body { --page: var(--col); }
body[data-view="list"], body[data-view="graph"], body[data-view="tags"] { --page: var(--wide); }
main { max-width: calc(var(--page) + var(--gutter) * 2); margin: 0 auto; padding: 4px var(--gutter) calc(var(--tab-h) + var(--tab-gap) + env(safe-area-inset-bottom) + 32px); }
body.no-tabbar main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.hide-pc { }
.side { display: none; }

/* ---------- 히어로 (목록 맨 위 요약) ---------- */
.hero { position: relative; margin: 0 0 var(--stack); border-radius: 28px; padding: 20px 20px 0; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, var(--hero-glow), transparent 55%), linear-gradient(160deg, var(--hero-1), var(--hero-2));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 22px 40px -22px rgb(var(--blob) / .9); }
.hero-k { font-size: 14px; font-weight: 600; opacity: .95; }
.hero-h { font-size: 30px; font-weight: 800; letter-spacing: -.035em; line-height: 1.2; margin: 2px 0 16px; }
.hero-card { margin: 0 -8px 8px; padding: 14px 14px 14px 16px; border-radius: 20px; display: flex; align-items: center; gap: 12px; color: var(--text); background: var(--glass-hi); }
.hero-card .grow { flex: 1; min-width: 0; }
.hc-h { font-size: 15px; font-weight: 700; }
.hc-s { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-s a { color: var(--badge); font-weight: 600; }

/* ---------- 목록 ---------- */
.search { position: relative; margin: 4px 0 var(--stack); }
.search .ic { position: absolute; z-index: 1; left: 16px; top: 14px; width: 20px; height: 20px; color: var(--text-3); pointer-events: none; }
.search input { width: 100%; height: 48px; padding: 0 48px 0 46px; border-radius: 999px; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; }
.search input:focus { border-color: var(--accent); }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear { position: absolute; right: 4px; top: 3px; box-shadow: none; background: transparent; border-color: transparent; }
.tagstrip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); }
#list { margin-top: var(--section); }
.tagstrip:empty { display: none; }
.tagstrip::-webkit-scrollbar { display: none; }
.tagstrip a { flex: none; height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); scroll-snap-align: start; white-space: nowrap;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hl); }
.tagstrip a .n { margin-left: 5px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.tagstrip a.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.tagstrip a.on .n { color: inherit; opacity: .7; }
.tagstrip a.all { color: var(--text-3); background: transparent; box-shadow: none; border-style: dashed; border-color: var(--line-strong); }
.filter { display: flex; align-items: center; gap: 8px; margin: var(--section) 4px calc(var(--section) * -1 + var(--stack)); font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.filter .count { font-size: 14px; font-weight: 600; color: var(--text-3); margin-right: auto; }
.group { margin: 12px 4px 0; font-size: 13px; font-weight: 700; color: var(--text-3); letter-spacing: .01em; }
.group:first-child { margin-top: 0; }
.cards { display: grid; grid-template-columns: 1fr; gap: var(--stack); align-items: stretch; }
.cards > .group, .cards > .more-list, .cards > .empty { grid-column: 1 / -1; }
.row { display: flex; flex-direction: column; position: relative; padding: var(--pad); border-radius: var(--r-card); transition: transform .12s; }
.row:active { transform: scale(.985); }
/* 제목 구분 없이 본문 앞부분을 그대로 (최대 4줄) */
.row-text { font-size: 15.5px; line-height: 1.6; color: var(--text); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.row-ex { margin-top: 3px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-meta { margin-top: auto; padding-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.row-meta .when { margin-right: 4px; }
.badge-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--accent-soft); color: var(--badge); font-size: 12.5px; font-weight: 600; }
.badge-more { font-size: 12.5px; color: var(--text-3); }
.row-link { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; }
.row-link .ic { width: 15px; height: 15px; }
.more-list { display: block; width: 100%; height: 48px; margin: 0; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); border: 1px dashed var(--line-strong); }

.tagindex { border-radius: var(--r-card); padding: 4px 18px; }
.seg + .tagindex, .seg + .tag-groups { margin-top: var(--section); }
.tag-groups { columns: 1; column-gap: var(--stack); }
.tg { break-inside: avoid; margin-bottom: var(--stack); }
.tagindex-h { margin: 0 4px 8px; font-size: 13px; font-weight: 700; color: var(--text-3); }
.tagindex a { display: flex; align-items: center; justify-content: space-between; min-height: 50px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; }
.tagindex a:last-child { border-bottom: 0; }
.tagindex a .n { color: var(--text-3); font-size: 13px; font-weight: 500; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hl); }
.seg button, .seg a { min-height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-3); }
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--ink); color: var(--on-ink); box-shadow: 0 4px 10px -6px rgb(0 0 0 / .5); }

/* ---------- 빈 화면 ---------- */
.empty { text-align: center; padding: 44px 20px 40px; color: var(--text-2); border-radius: var(--r-card); margin-top: 8px; }
.empty h2 { font-weight: 800; letter-spacing: -.03em; font-size: 21px; color: var(--text); margin: 0 0 6px; }
.empty p { margin: 0 0 18px; font-size: 15px; }
.empty code { font-family: var(--font-mono); font-size: 13px; color: var(--badge); background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; }
.empty .btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- 버튼 ---------- */
.btn { min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--text);
  background: var(--glass-hi); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hl), 0 6px 14px -10px rgb(28 28 40 / .35); transition: transform .12s; }
.btn:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; }
.btn.primary, .btn.ink { background: linear-gradient(160deg, var(--ink-2), var(--ink)); border-color: transparent; color: var(--on-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 10px 20px -12px rgb(0 0 0 / .6); }
.btn.danger-fill { background: var(--danger); border-color: transparent; color: #fff; }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; height: 52px; font-size: 16px; }

/* ---------- 글 보기 ---------- */
.reader, .editor { border-radius: var(--r-card); padding: 20px; margin-top: 4px; }
.md { font-size: 17px; line-height: 1.8; }
.md > :first-child { margin-top: 0; }
.md h1, .md h2, .md h3 { font-weight: 800; line-height: 1.35; letter-spacing: -.03em; }
.md h1 { font-size: 26px; margin: 4px 0 14px; }
.md h2 { font-size: 21px; margin: 28px 0 8px; }
.md h3 { font-size: 18px; margin: 22px 0 6px; }
.md p { margin: 0 0 1em; }

.md a[href^="http"], .md a[href^="mailto"] { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.md a.wiki { color: var(--accent); text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
/* 본문 속 태그: 연한 배지 (#아이디어 + 조사는 밖) */
.md a.tag { color: var(--badge); background: var(--accent-soft); padding: 1px 7px; margin: 0 1px; border-radius: 8px; font-size: .88em; font-weight: 600; white-space: nowrap; }
.md a.tag:active { filter: brightness(.95); }
.md ul, .md ol { padding-left: 1.3em; margin: 0 0 1em; }
.md li.task { list-style: none; margin-left: -1.3em; }
.md li.task::before { content: "☐ "; color: var(--text-3); }
.md li.task.done::before { content: "☑ "; }
.md li.task.done { color: var(--text-3); text-decoration: line-through; }
.md blockquote { margin: 0 0 1em; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent); color: var(--text-2); }
.md pre { margin: 0 0 1em; padding: 14px; overflow-x: auto; background: var(--surface-2); border-radius: 14px; font-size: 14px; line-height: 1.6; }
.md code { font-family: var(--font-mono); font-size: .85em; }
.md :not(pre) > code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.md hr { border: 0; border-top: 1px solid var(--line-strong); margin: 28px 0; }
.md img { max-width: 100%; border-radius: 16px; }
.md del { color: var(--text-3); }
.md .muted { color: var(--text-3); }
.reader .md { cursor: text; }

/* ---------- 편집기 ---------- */
.editor textarea { display: block; width: 100%; min-height: max(30dvh, 180px); padding: 0; border: 0; background: transparent; resize: none; outline: none; font-size: 17px; line-height: 1.8; overflow: hidden; }
.editor textarea::placeholder { color: var(--text-3); }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0; padding: 12px 14px 12px 18px; border-radius: 18px; font-size: 14.5px; border-left: 4px solid var(--accent); }
.banner .btn { min-height: 36px; padding: 0 14px; font-size: 13.5px; }

/* 편집 도구: 키보드 위에 뜨는 알약 */
.toolbar { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 25; border-radius: 999px;
  background: var(--glass-hi); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hl), var(--shadow-lg); }
.toolbar-in { max-width: calc(var(--col) + 32px); margin: 0 auto; height: 56px; display: flex; align-items: center; gap: 4px; padding: 0 6px; overflow-x: auto; scrollbar-width: none; }
.toolbar-in::-webkit-scrollbar { display: none; }
.tool { flex: none; min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 999px; color: var(--text-2); font-size: 17px; font-weight: 700; }
.tool:active { background: var(--surface-2); }
.tool .ic { width: 20px; height: 20px; }
.tool .tool-l { font-size: 14px; font-weight: 600; }
.tool.done { margin-left: auto; background: var(--ink); color: var(--on-ink); font-size: 14px; padding: 0 18px; }
.chip { flex: none; height: 38px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 14.5px; font-weight: 600; white-space: nowrap; color: var(--text);
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hl); }
.chip.sel { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.chip.new { border-style: dashed; border-color: var(--line-strong); color: var(--text-2); background: transparent; box-shadow: none; }
.chip .h { color: var(--text-3); margin-right: 1px; }
.chip.sel .h { color: inherit; opacity: .7; }
.chip .ic { width: 17px; height: 17px; margin-right: 4px; }

.status:empty { display: none; }
.status { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--glass-lo); font-size: 12.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.status .ic { width: 15px; height: 15px; }
.status.err { color: var(--danger); }
.status button { color: var(--danger); text-decoration: underline; font-size: 12.5px; min-height: 30px; }
.status .fade { transition: opacity .6s; }
.status .fade.out { opacity: 0; }

/* 연결 칩(편집 화면 본문 아래)과 연결할 글 고르기 */
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.links:empty { display: none; }
.link-chip { padding-right: 3px; gap: 2px; max-width: 100%; background: var(--accent-soft); color: var(--badge); border-color: transparent; box-shadow: none; }
.link-chip .lt { overflow: hidden; text-overflow: ellipsis; }
.link-chip .x { width: 30px; height: 30px; display: inline-grid; place-items: center; color: inherit; opacity: .75; border-radius: 50%; }
.link-chip .x .ic { width: 15px; height: 15px; margin: 0; }

/* ---------- 연결 ---------- */
.related { margin-top: var(--section); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--stack); align-content: start; }
.sect { min-width: 0; }
.related:empty { display: none; }
.sect { border-radius: var(--r-card); padding: 16px 18px 6px; }
.sect-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.sect-h .ic { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--accent-soft); color: var(--badge); }
.rel { display: flex; align-items: center; min-height: 50px; gap: 10px; border-bottom: 1px solid var(--line); font-size: 15.5px; font-weight: 600; }
.sect .rel:last-child { border-bottom: 0; }
.rel .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel .why { font-size: 12.5px; font-weight: 500; color: var(--text-3); flex: none; }
.rel.missing { color: var(--text-3); }
.rel .linkbtn { flex: none; min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--ink); color: var(--on-ink); }
.rel .linkbtn:active { transform: scale(.96); }
.more { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--text-2); }
.more .ic { width: 16px; height: 16px; margin-right: 4px; }
.edit-sum:empty { display: none; }
.edit-sum { margin: var(--stack) 4px 0; font-size: 12.5px; color: var(--text-3); }

/* ---------- 네트워크 ---------- */
.graphbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 var(--stack); }
.centerchip { font-size: 13.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.centerchip b { font-weight: 700; color: var(--text); }
.graph { display: block; width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: var(--r-card); }
.graph.big { height: calc(100dvh - var(--bar-h) - var(--tab-h) - var(--tab-gap) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 100px); min-height: 320px; }
.graph.mini { height: 240px; touch-action: auto; box-shadow: none; background: var(--glass-lo); }
.graph .e { stroke: var(--edge); stroke-width: 1; transition: opacity .15s, stroke .15s; }
.graph .e.nn { stroke: var(--edge-strong); stroke-width: 1.25; }
.graph .n { cursor: pointer; transition: opacity .15s; }
.graph .n .hit { fill: transparent; }
.graph .n.note .dot { fill: var(--surface); stroke: var(--text); stroke-width: 1.6; }
.graph .n.tag .dot { fill: var(--accent); }
.graph { --gs: 1; }
.graph .n text { font-size: calc(12.5px * var(--gs)); font-weight: 600; fill: var(--text-2); paint-order: stroke; stroke: var(--surface); stroke-width: calc(3.5px * var(--gs)); stroke-linejoin: round; }
.graph .n.tag text { fill: var(--badge); font-size: calc(12px * var(--gs)); }
.graph .n.hide text { display: none; }
.graph .n.center .dot, .graph .n.sel .dot { fill: var(--accent); stroke: var(--accent); }
.graph .n.center text, .graph .n.sel text { fill: var(--text); font-weight: 800; }
.graph.dim .n:not(.near) { opacity: .18; }
.graph.dim .e:not(.near) { opacity: .12; }
.graph.dim .e.near { stroke: var(--accent); stroke-width: 1.75; }
.graph.dim .n.near text { display: inline; }
.graph:focus-visible { outline-offset: -2px; }
.sheet { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab-h) + var(--tab-gap) + 10px + env(safe-area-inset-bottom)); z-index: 19; visibility: hidden; border-radius: var(--r-card); padding: 16px 16px 14px; transform: translateY(calc(100% + 120px)); transition: transform .25s cubic-bezier(.2,.8,.2,1); background: var(--glass-hi); box-shadow: inset 0 1px 0 var(--glass-hl), var(--shadow-lg); }
.sheet.show { transform: none; visibility: visible; }
.sheet-in { max-width: var(--col); margin: 0 auto; }
.sheet h3 { margin: 0; font-weight: 800; letter-spacing: -.03em; font-size: 19px; }
.sheet p { margin: 4px 0 12px; font-size: 14.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sheet .btns { display: flex; gap: 8px; }
.sheet .btns .btn { flex: 1; }
.hint { text-align: center; font-size: 12.5px; color: var(--text-3); margin: 10px 0 0; }

/* ---------- 설정 ---------- */
.settings { display: grid; gap: var(--stack); }
.set { border-radius: var(--r-card); padding: 20px; }
.settings h2 { font-weight: 800; letter-spacing: -.03em; font-size: 18px; margin: 0 0 4px; }
.settings .lab { font-size: 13px; font-weight: 700; color: var(--text-3); margin: 16px 0 8px; }
.set > .btn { margin-top: var(--stack); }
.set > .small { margin: 4px 0 0; }
#devices { margin-top: 4px; }
.swatches { display: flex; gap: 16px; }
.swatch { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 8px 16px -10px rgb(0 0 0 / .6); }
.swatch[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 3px; }
.swatch.coral { background: radial-gradient(circle at 75% 20%, rgb(255 150 100 / .8), transparent 60%), linear-gradient(160deg, #C94A22, #A33212); }
.swatch.blue  { background: radial-gradient(circle at 75% 20%, rgb(140 180 255 / .75), transparent 60%), linear-gradient(160deg, #3C6BEA, #1F45B8); }
.swatch.green { background: radial-gradient(circle at 75% 20%, rgb(120 220 160 / .6), transparent 60%), linear-gradient(160deg, #167A48, #0F6A3D); }
.swatch .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.swatch[aria-pressed="false"] .ic { display: none; }
.swatch-l { font-size: 12px; font-weight: 600; color: var(--text-3); text-align: center; margin-top: 6px; }
.device { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.device:last-child { border-bottom: 0; }
.device .av { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--text-2); flex: none; }
.device .grow { flex: 1; min-width: 0; }
.device .nm { font-size: 15.5px; font-weight: 700; }
.device .badge { margin-left: 6px; font-size: 11.5px; font-weight: 600; color: var(--badge); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; }
.device .mt { font-size: 12.5px; color: var(--text-3); }
.settings .card { border-radius: var(--r-card); padding: 4px 18px; }
.codebox { margin-top: 14px; padding: 20px 16px 16px; text-align: center; border-radius: var(--r-card); }
.digits { font-family: var(--font-mono); font-size: 40px; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.bar { height: 4px; border-radius: 4px; background: var(--surface-2); margin: 12px 0 8px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); transition: width 1s linear; }
.small { font-size: 12.5px; color: var(--text-3); }

/* ---------- 기기 등록 ---------- */
.pair { max-width: 400px; margin: 24px auto 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px 20px; border-radius: 28px; }
.pair input { width: 100%; min-width: 0; }
.pair img { width: 56px; height: 56px; border-radius: 16px; }
.pair h1 { font-weight: 800; letter-spacing: -.03em; font-size: 26px; margin: 0; }
.pair p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.pair code { font-family: var(--font-mono); font-size: 13px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.pair label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-3); }
.pair input { height: 52px; padding: 0 16px; border: 1px solid var(--glass-edge); border-radius: 16px; background: var(--glass-hi); font-size: 17px; outline: none; box-shadow: inset 0 1px 2px rgb(0 0 0 / .05); }
.pair input:focus { border-color: var(--accent); }
.pair input.code { font-family: var(--font-mono); font-size: 28px; text-align: center; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.err { color: var(--danger); font-size: 14px; margin: -8px 4px 0; }
.err:empty { display: none; }

/* ---------- 대화상자·토스트 ---------- */
dialog { border-radius: 28px; color: var(--text); padding: 24px; width: min(360px, calc(100vw - 32px)); background: var(--glass-hi); box-shadow: inset 0 1px 0 var(--glass-hl), var(--shadow-lg); }
dialog::backdrop { background: var(--backdrop); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog h2 { margin: 0 0 6px; font-weight: 800; letter-spacing: -.03em; font-size: 20px; }
dialog p { margin: 0 0 20px; font-size: 14.5px; color: var(--text-2); }
dialog .search input { background: var(--glass-lo); box-shadow: none; }
dialog .pick-list { max-height: min(50vh, 380px); overflow-y: auto; margin: 4px 0 16px; }
dialog .pick-list .rel { width: 100%; text-align: left; }
dialog .pick-list .muted { color: var(--text-3); font-size: 14.5px; }
.dlg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dlg-actions.one { grid-template-columns: 1fr; }
#toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--tab-gap) + env(safe-area-inset-bottom) + 12px); z-index: 40; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 12px; min-height: 48px; max-width: calc(100vw - 32px); padding: 0 8px 0 18px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); transition: opacity .18s, transform .18s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast button { min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--on-ink); font-weight: 800; background: rgb(127 127 127 / .22); }
body.no-tabbar #toast { bottom: calc(78px + env(safe-area-inset-bottom)); }

.skel { height: 112px; border-radius: var(--r-card); position: relative; }
.skel::before, .skel::after { content: ""; position: absolute; left: 18px; height: 12px; background: var(--surface-2); border-radius: 6px; animation: pulse 1.2s ease-in-out infinite; }
.skel::before { top: 20px; width: 45%; height: 16px; }
.skel::after { top: 50px; width: 75%; }
@keyframes pulse { 50% { opacity: .5; } }

/* 휴대폰·태블릿 편집 중엔 아래 툴바에 '완료'가 있으니 위쪽 버튼은 숨긴다 */
@media (max-width: 1023px) { body.editing #toggle { display: none; } }

/* ---------- 태블릿 (640px~): 여백을 넓히고 목록 2열, 히어로 가로 배치. 메뉴는 여전히 아래 탭바(손가락) ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; --stack: 16px; --section: 28px; --pad: 18px 20px; --col: 720px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); align-items: end; gap: 24px; padding: 24px; }
  .hero-h { margin-bottom: 0; }
  .hero-card { margin: 0; }
  .tagindex.cols { columns: 2; column-gap: 32px; }
  .tagindex.cols a { break-inside: avoid; }
  .tag-groups { columns: 2; }
  .reader, .editor { padding: 24px 28px; }
  .sheet { left: 50%; right: auto; width: min(520px, calc(100vw - 48px)); transform: translate(-50%, calc(100% + 120px)); }
  .sheet.show { transform: translate(-50%, 0); }
}

/* ---------- PC (1024px~): 왼쪽 사이드바, 글 보기는 본문 + 오른쪽 연결 레일 ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 32px; --section: 32px; }
  body:not([data-view="pair"]) { padding-left: calc(var(--side-w) + 16px); }
  .tabbar, .hide-pc { display: none !important; }
  main { padding-bottom: 64px; }
  body.no-tabbar main { padding-bottom: 64px; }
  body[data-view="list"] .appbar { display: none; }
  body[data-view="list"] main { padding-top: 24px; }
  body[data-view="note"] { --page: 1080px; }

  .side { position: fixed; z-index: 21; top: 16px; bottom: 16px; left: 16px; width: var(--side-w); display: flex; flex-direction: column; gap: 4px; padding: 20px 14px 14px; border-radius: 28px; overflow-y: auto;
    background: var(--glass-hi); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hl), var(--shadow-lg); }
  body[data-view="pair"] .side { display: none; }
  .side .brand { margin: 0 6px 16px; }
  .side-new { width: 100%; margin-bottom: 16px; }
  .side-nav { display: grid; gap: 2px; }
  .side-nav a, .side-set { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 14px; font-size: 15px; font-weight: 600; color: var(--text-2); }
  .side-nav a .n { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--text-3); }
  .side-nav a:hover, .side-set:hover, .side-tags a:hover { background: var(--surface-2); }
  .side-nav a[aria-current="page"], .side-set[aria-current="page"] { background: var(--ink); color: var(--on-ink); }
  .side-nav a[aria-current="page"] .n { color: inherit; opacity: .7; }
  .side-nav .ic, .side-set .ic { width: 20px; height: 20px; }
  .side-h { margin: 24px 12px 6px; font-size: 12px; font-weight: 700; color: var(--text-3); }
  .side-tags { display: grid; gap: 0; }
  .side-tags a { display: flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text-2); }
  .side-tags a .n { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--text-3); }
  .side-set { margin-top: auto; }

  .tool.done { display: none; }
  .toolbar { position: sticky; top: calc(var(--bar-h) + env(safe-area-inset-top) + 4px); bottom: auto; left: auto; right: auto; margin: 0 0 var(--stack); }
  .reader, .editor { padding: 32px 36px; }
  .graph.big { height: calc(100dvh - var(--bar-h) - 120px); }
  .sheet { bottom: 24px; }
  #toast { bottom: 24px; margin-left: calc((var(--side-w) + 16px) / 2); }
  .row:hover { box-shadow: inset 0 1px 0 var(--glass-hl), var(--shadow-lg); }
  .tag-groups { columns: 3; }

  .tagindex.cols { columns: 3; }
  /* 사이드바에 새 글·자주 쓰는 태그가 있으니 목록 위 중복은 숨긴다 */
  .hero .hero-new, body[data-view="list"] .tagstrip { display: none; }
}
/* 1200px~: 글 보기는 본문(읽기 폭) + 오른쪽 연결 레일(위에 붙어 따라온다).
   1024px 에서는 사이드바·레일을 빼면 본문이 332px 밖에 안 남아서 이 크기부터 나눈다 */
@media (min-width: 1200px) {
  body.rail .doc { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  body[data-view="note"]:not(.rail) { --page: 760px; } /* 오른쪽에 보여줄 게 없으면 가운데 한 줄, 위쪽 버튼 줄도 같은 폭 */
  .related { margin-top: 4px; position: sticky; top: calc(var(--bar-h) + env(safe-area-inset-top) + 8px); max-height: calc(100dvh - var(--bar-h) - 32px); overflow-y: auto; padding-bottom: 8px; scrollbar-width: thin; }
}
/* 넓은 PC: 목록 3열 */
@media (min-width: 1360px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }


/* ---------- 생각 잇기: 연결 이유 · 쓰는 중 떠오른 글 · 오늘 다시 볼 짝 · 개념 글 ---------- */
.rel.two { min-height: 60px; padding: 8px 0; }
.rel .grow { display: block; }
.rel .rt { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel .rw { display: block; margin-top: 1px; font-size: 13px; font-weight: 500; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-chip .lt { font: inherit; color: inherit; min-width: 0; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.link-chip .lw { font-weight: 500; opacity: .8; }
dialog .why-in { display: block; width: 100%; height: 48px; padding: 0 16px; margin: 0 0 16px; border-radius: 14px; border: 1px solid var(--glass-edge); background: var(--glass-lo); font-size: 16px; outline: none; }
dialog .why-in:focus { border-color: var(--accent); }
.tool.live { background: var(--accent-soft); color: var(--badge); font-family: var(--font-sans); }
.tool.live .ic { width: 18px; height: 18px; }

.hero.duo .hero-k { opacity: .95; }
.hero-a { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 19px; line-height: 1.45; letter-spacing: -.03em; margin-top: 6px; }
.hero-a:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.hero.duo .hero-card { flex-wrap: wrap; row-gap: 12px; }
.hero.duo .hero-card .grow { flex: 1 1 100%; }
.hc-b { display: flex; align-items: flex-start; gap: 6px; margin-top: 2px; font-size: 15px; font-weight: 700; line-height: 1.4; }
.hc-b .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--badge); }
.hc-b span, .hc-b { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hero-btns { display: flex; gap: 8px; width: 100%; }
.hero-btns .btn { flex: 1; min-height: 42px; padding: 0 16px; font-size: 14px; }
.hero-btns .btn.ink { flex: 1.4; }

.nudge { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 var(--stack); padding: 14px 16px; border-radius: 20px; font-size: 14.5px; color: var(--text-2);
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hl), var(--shadow); }
.nudge:empty { display: none; }
.nudge > .ic { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--accent-soft); color: var(--badge); }
.nudge .grow { flex: 1 1 180px; min-width: 0; }
.nudge b { color: var(--text); }
.nudge-btns { display: flex; gap: 8px; margin-left: auto; }
.nudge .btn { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
#nudge:empty { display: none; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; gap: 4px; }
.btn.sm .ic { width: 15px; height: 15px; }
.tagindex .hub { margin: 0 auto 0 8px; font-size: 11.5px; font-weight: 700; color: var(--badge); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; }
@media (max-width: 420px) { .hide-sm { display: none; } }
.rel .rt.clamp2 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.45; font-weight: 600; }
.rel .rt { font-weight: 500; }
.pick-list .rel { min-height: 56px; padding: 8px 0; }
.sheet .sheet-text { margin: 0 0 12px; font-size: 15px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 사진에서 뽑은 글 ---------- */
.md img.att { display: block; max-width: 100%; max-height: 70vh; margin: 4px 0 8px; border-radius: 16px; border: 1px solid var(--glass-edge); }
.row.has-img { padding-right: 96px; min-height: 104px; }
.row-img { position: absolute; top: 14px; right: 14px; width: 68px; height: 68px; object-fit: cover; border-radius: 14px; border: 1px solid var(--glass-edge); }
.badge-check { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 700; }
.banner .grow { flex: 1 1 200px; }
.banner > .ic { width: 18px; height: 18px; color: var(--badge); }
#checkbar:empty { display: none; }
.side-photo { width: 100%; margin: -8px 0 16px; }
