[hidden] { display: none !important; }
:root {
  --teal: #0F766E; --teal-d: #0B5A54; --teal-l: #E3F2F0; --bg: #F4F7F7; --card: #fff; --line: #E3E8E8;
  --text: #1F2933; --sub: #6B7280; --ok: #1A9E5C; --bad: #D64545;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; }
h1, h2, p { margin: 0; }
.top { background: var(--teal); color: #fff; padding: calc(18px + env(safe-area-inset-top)) 16px 18px; }
.top h1 { font-size: 21px; }
.top p { font-size: 13px; opacity: .88; }
main { max-width: 640px; margin: 0 auto; padding: 12px 16px 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.card h2 { font-size: 15px; }
.sub { color: var(--sub); font-size: 13px; }
.hint { margin-top: 8px; }
.row { display: flex; gap: 8px; align-items: center; }
.grow { flex: 1; min-width: 0; }
.links { margin-top: 10px; flex-wrap: wrap; }
.btn { border: 0; border-radius: 10px; background: var(--teal); color: #fff; font: inherit; font-weight: 600; padding: 9px 14px; cursor: pointer; white-space: nowrap; }
.btn:active { background: var(--teal-d); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: var(--teal-l); color: var(--teal-d); font-weight: 500; font-size: 13px; padding: 7px 12px; }
.btn.full { width: 100%; margin-top: 10px; }
.iosGuide { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--teal-l); font-size: 14px; }
.iosGuide .sub { margin-top: 6px; color: var(--teal-d); }
.iosSteps { list-style: none; counter-reset: st; margin: 10px 0 10px; padding: 0; }
.iosSteps li { display: flex; align-items: center; gap: 10px; margin-top: 8px; line-height: 1.4; }
.stepIcon { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: #fff; color: #0A84FF; border: 1px solid var(--line); }
.stepIcon svg { width: 22px; height: 22px; }
.stepIcon img { width: 26px; height: 26px; border-radius: 6px; }
.stepText { font-size: 12px; font-weight: 700; }
body.hasArrow { padding-bottom: 54px; }
#iosArrow { position: fixed; left: 50%; bottom: calc(1px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9; display: flex; flex-direction: column; align-items: center; pointer-events: none; color: #fff; font-weight: 700; font-size: 12px; white-space: nowrap; animation: bob 1.1s ease-in-out infinite; }
#iosArrow span { background: var(--teal); padding: 3px 9px; border-radius: 999px; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
#iosArrow i { font-style: normal; font-size: 18px; line-height: 1; color: var(--teal); text-shadow: 0 1px 3px rgba(255,255,255,.9); }
#iosArrow.top { top: calc(6px + env(safe-area-inset-top)); bottom: auto; left: auto; right: 16px; transform: none; flex-direction: column-reverse; }
@keyframes bob { 50% { margin-bottom: 4px; } }
@media (prefers-reduced-motion: reduce) { #iosArrow { animation: none; } }
.count { color: var(--sub); font-weight: 400; font-size: 13px; }
input[type=text] { border: 1px solid var(--line); border-radius: 10px; font: inherit; padding: 9px 12px; min-width: 0; background: #fff; color: var(--text); }
input[type=text]:focus { outline: 2px solid var(--teal); border-color: transparent; }
#kwForm { margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips:empty { display: none; }
#kwEmpty { margin-top: 8px; }
.chip { display: inline-flex; align-items: center; border-radius: 999px; background: var(--teal-l); color: var(--teal-d); font-size: 13px; }
.chip button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 5px 4px 5px 12px; }
.chip button.del { padding: 5px 10px 5px 4px; opacity: .65; }
.chip.on { background: var(--teal); color: #fff; }
.chip .unreadN { display: inline-block; min-width: 18px; margin-left: 5px; padding: 0 5px; border-radius: 9px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.chip.on .unreadN { background: #fff; color: var(--teal-d); }
.listHead { display: flex; align-items: center; justify-content: space-between; min-height: 32px; margin: 4px 2px 8px; }
.listHead h2 { font-size: 14px; color: var(--sub); font-weight: 600; }
.btn.small { padding: 5px 10px; font-size: 12px; }
.art { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; margin-bottom: 8px; color: inherit; text-decoration: none; }
.art .tit { line-height: 1.4; overflow-wrap: anywhere; }
/* 안 본 기사: 연한 청록 + 굵은 제목 + 점 / 본 기사: 회색 + 흐린 글자 */
.art.unread { background: #E6F5F2; border-color: #B5DED7; }
.art.unread .tit { font-weight: 700; }
.art.unread .tit::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-right: 6px; vertical-align: 2px; }
.art.read { background: #F4F5F5; border-color: var(--line); }
.art.read .tit { font-weight: 400; color: #6B7280; }
.art.read .badge { opacity: .7; }
.art .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; color: var(--sub); }
.badge { border-radius: 5px; padding: 0 6px; font-size: 11px; font-weight: 600; line-height: 18px; }
.b-naver { background: #E4F6EA; color: #0B7A3B; }
.b-daum { background: #E6EEFC; color: #2456B5; }
.b-google { background: #F1ECFA; color: #5B3BA8; }
.b-kw { background: var(--teal-l); color: var(--teal-d); }
/* 광고는 기사 카드와 떨어뜨려 눈에 띄게 구분한다 (실수 클릭 방지) */
.adBox { margin: 22px 0; padding-top: 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.adBox .adLabel { display: block; font-size: 11px; color: var(--sub); text-align: center; margin-bottom: 4px; }
.adBox .adTest { display: flex; align-items: center; justify-content: center; height: 90px; color: var(--sub); font-size: 12px; background: repeating-linear-gradient(45deg, #EEF1F1, #EEF1F1 8px, #F7F9F9 8px, #F7F9F9 16px); }
.empty { text-align: center; color: var(--sub); font-size: 13px; padding: 28px 8px; }
.foot { max-width: 640px; margin: 0 auto; padding: 8px 16px calc(24px + env(safe-area-inset-bottom)); color: var(--sub); font-size: 12px; text-align: center; }
.foot a { color: var(--sub); }
#toasts { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; align-items: center; z-index: 10; pointer-events: none; }
.toast { pointer-events: auto; width: 100%; max-width: 480px; background: #1F2933; color: #fff; border-radius: 12px; padding: 11px 14px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25); text-decoration: none; display: block; overflow-wrap: anywhere; animation: rise .18s ease-out; }
.toast small { display: block; opacity: .75; font-size: 12px; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
/* 기사 미리보기 */
.top a.back { display: inline-block; color: #fff; text-decoration: none; font-size: 13px; opacity: .9; padding: 2px 0 6px; }
.top .brand { font-size: 17px; font-weight: 700; }
.pv h1 { font-size: 19px; line-height: 1.4; margin: 8px 0 6px; overflow-wrap: anywhere; }
.pv .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 12px; color: var(--sub); }
.pv .summary { margin: 12px 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.pv .summaryNote { margin-top: 4px; font-size: 12px; color: var(--sub); }
.btn.big { display: block; width: 100%; text-align: center; text-decoration: none; padding: 13px; font-size: 16px; margin-top: 16px; box-sizing: border-box; }
.pvActions { margin-top: 8px; }
.pvActions .btn { width: 100%; }
.cta { background: var(--teal-l); border-color: #B5DED7; }
.cta p { margin: 0 0 8px; font-size: 14px; }

/* 문서 페이지 */
.doc { max-width: 640px; margin: 0 auto; padding: 16px; }
.doc h2 { font-size: 16px; margin: 20px 0 6px; }
.doc p, .doc li { font-size: 14px; }
.doc a { color: var(--teal-d); }
