/* PAGES News — 신문 지면 + 관제실. 영역마다 한 색: 뉴스 red · 보안 teal · 털린 곳 orange · AI violet */
:root {
  --paper: #f6f5f1; --card: #ffffff; --ink: #121417; --ink2: #3d434b; --mute: #6b7280; --line: #e4e1d8; --line2: #d4d0c4;
  --red: #e03131; --teal: #0b7285; --orange: #d9480f; --violet: #6741d9; --amber: #f59f00; --green: #2b8a3e;
  --night: #0d1117; --night2: #161b22; --nightline: #263040;
  --accent: var(--red);
  --r: 14px; --shadow: 0 1px 0 rgba(18, 20, 23, .04), 0 6px 20px -12px rgba(18, 20, 23, .25);
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
body[data-area="sec"] { --accent: var(--teal); }
body[data-area="breach"] { --accent: var(--orange); }
body[data-area="ai"] { --accent: var(--violet); }

* { box-sizing: border-box; }
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- 머리 */
.top { position: sticky; top: 0; z-index: 40; background: rgba(246, 245, 241, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 19px; white-space: nowrap; }
.brand .mk { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; position: relative; }
.brand .mk::after { content: ''; position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--paper); animation: pulse 2s infinite; }
.brand small { font-weight: 500; color: var(--mute); font-size: 12px; letter-spacing: 0; }
.menu { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink2); white-space: nowrap; }
.menu a[aria-current="page"] { background: var(--ink); color: #fff; }
.menu a.m-sec[aria-current="page"] { background: var(--teal); }
.menu a.m-breach[aria-current="page"] { background: var(--orange); }
.menu a.m-ai[aria-current="page"] { background: var(--violet); }
.tools { display: flex; gap: 6px; }
.iconbtn { border: 1px solid var(--line2); background: var(--card); border-radius: 10px; height: 34px; min-width: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.iconbtn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.iconbtn svg { width: 16px; height: 16px; }

/* 속보 띠 */
.ticker { background: var(--ink); color: #f1f3f5; font-size: 13.5px; }
.ticker .wrap { display: flex; align-items: center; gap: 14px; height: 38px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .08em; color: #ff8787; white-space: nowrap; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
.tk-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tk-run { display: inline-flex; gap: 36px; white-space: nowrap; animation: run 90s linear infinite; padding-left: 100%; }
.tk-run:hover { animation-play-state: paused; }
.tk-run a { color: #e9ecef; }
.tk-run a b { color: #ffa8a8; font-weight: 600; margin-right: 6px; font-family: var(--mono); font-size: 12px; }
.clock { font-family: var(--mono); color: #adb5bd; font-size: 12px; white-space: nowrap; }
@keyframes run { to { transform: translateX(-100%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------------------------------------------------------------- 첫 화면 머리 */
.masthead { padding: 34px 0 10px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ''; width: 18px; height: 2px; background: currentColor; }
.masthead h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.15; letter-spacing: -.035em; margin: 10px 0 8px; font-weight: 800; }
.masthead p { color: var(--ink2); margin: 0; max-width: 760px; }
.stamp { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13px; color: var(--mute); }
.stamp b { color: var(--ink); font-weight: 700; }

/* 영역 머리(어두운 관제실) */
.ops { background: var(--night); color: #e6edf3; padding: 30px 0 26px; position: relative; overflow: hidden; }
.ops::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%), repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 28px); pointer-events: none; }
.ops .wrap { position: relative; }
.ops h1 { font-size: clamp(26px, 3.8vw, 40px); margin: 8px 0 6px; letter-spacing: -.03em; font-weight: 800; }
.ops p { color: #9da7b3; margin: 0; max-width: 780px; }
.ops .kicker { color: color-mix(in srgb, var(--accent) 60%, #fff); }
.radar { position: absolute; right: 24px; top: 18px; width: 120px; height: 120px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); background: repeating-radial-gradient(circle, transparent 0 18px, rgba(255, 255, 255, .06) 18px 19px); overflow: hidden; opacity: .9; }
.radar::after { content: ''; position: absolute; inset: 0; background: conic-gradient(from 0deg, color-mix(in srgb, var(--accent) 70%, transparent), transparent 25%); animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 20px; }
.kpi { background: var(--night2); border: 1px solid var(--nightline); border-radius: 12px; padding: 12px 14px; }
.kpi b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-family: var(--mono); }
.kpi span { font-size: 12.5px; color: #9da7b3; }
.kpi.hot b { color: #ff8787; }
.kpi.warn b { color: #ffd43b; }

/* 경고 띠 */
.alertbar { display: none; margin-top: 16px; background: rgba(224, 49, 49, .16); border: 1px solid rgba(255, 135, 135, .35); color: #ffc9c9; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.alertbar.on { display: flex; gap: 10px; align-items: flex-start; }
.alertbar b { color: #fff; }

/* 쪽 안 이동(고정) */
.jump { position: sticky; top: 60px; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.jump .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.jump .wrap::-webkit-scrollbar { display: none; }
.jump a { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ink2); }
.jump a .n { font-family: var(--mono); font-size: 11.5px; color: var(--accent); margin-left: 4px; }
.jump a.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.jump a.on .n { color: #fff; }

/* ---------------------------------------------------------------- 구역 */
main { padding-bottom: 60px; }
.sec { padding: 28px 0 6px; scroll-margin-top: 110px; }
.sec-h { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-h h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; font-weight: 800; }
.sec-h h2 small { font-size: 13px; font-weight: 500; color: var(--mute); margin-left: 8px; letter-spacing: 0; }
.sec-h .more { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--mute); }
.sec-h .more:hover { color: var(--accent); }
.sec-h .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); align-self: center; }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.card-h { display: flex; align-items: center; gap: 8px; padding: 13px 16px 10px; border-bottom: 1px solid var(--line); }
.card-h h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.card-h .src { margin-left: auto; font-size: 12px; color: var(--mute); white-space: nowrap; }
.card-h .src a { color: var(--mute); }
.card-h .src a:hover { color: var(--accent); }
.card-b { padding: 6px 16px 12px; }
.lang { font-family: var(--mono); font-size: 10.5px; padding: 1px 5px; border-radius: 4px; background: #eef1f4; color: var(--mute); font-weight: 600; }

/* 탭 */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.tab { border: 1px solid var(--line2); background: var(--card); border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 기사 줄 */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.list li:last-child { border-bottom: 0; }
.list time { font-family: var(--mono); font-size: 11.5px; color: var(--mute); padding-top: 2px; white-space: nowrap; }
.list .t { font-weight: 600; font-size: 14.5px; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.list .t a:visited { color: #5c636a; }
.list .meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 3px; font-size: 12px; color: var(--mute); }
.list .x { font-size: 13px; color: var(--ink2); margin-top: 4px; display: none; }
body.detail .list .x { display: block; }
.list li.new .t::before { content: 'NEW'; font-family: var(--mono); font-size: 10px; font-weight: 700; color: #fff; background: var(--red); border-radius: 4px; padding: 1px 4px; margin-right: 6px; vertical-align: 2px; }
.list li.kw { background: linear-gradient(90deg, rgba(245, 159, 0, .12), transparent 70%); }
mark { background: #ffe066; color: inherit; border-radius: 3px; padding: 0 2px; }
.cvetag { display: inline-block; font-family: var(--mono); font-size: 11.5px; font-weight: 600; border-radius: 5px; padding: 0 5px; background: #e7f5ff; color: #1864ab; border: 1px solid #a5d8ff; cursor: pointer; margin-right: 2px; }
.cvetag.crit { background: #fff5f5; color: #c92a2a; border-color: #ffc9c9; }
.empty { padding: 18px 0; color: var(--mute); font-size: 13.5px; text-align: center; }
.skel { height: 14px; border-radius: 6px; background: linear-gradient(90deg, #eee 0, #f6f6f6 40%, #eee 80%); background-size: 300% 100%; animation: sk 1.4s infinite; margin: 12px 0; }
@keyframes sk { to { background-position: -150% 0; } }
.err { color: var(--orange); font-size: 13px; padding: 12px 0; }
.stale { font-size: 11px; color: var(--amber); margin-left: 6px; }

/* 1면(큰 기사) */
.lead { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.lead-main { padding: 18px 20px; }
.lead-main .t1 { font-size: clamp(20px, 2.3vw, 27px); line-height: 1.3; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 10px; word-break: keep-all; }
.lead-main .s { color: var(--mute); font-size: 13px; }
.lead-main ol { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: n; }
.lead-main ol li { counter-increment: n; display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.lead-main ol li::before { content: counter(n, decimal-leading-zero); font-family: var(--mono); color: var(--red); font-size: 12px; padding-top: 2px; }

/* 키워드 */
.kwcloud { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 4px; }
.kwcloud button { border: 1px solid var(--line2); background: var(--card); border-radius: 999px; padding: 5px 11px; font-weight: 700; color: var(--ink2); display: inline-flex; gap: 6px; align-items: baseline; }
.kwcloud button i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--accent); }
.kwcloud button.w3 { font-size: 17px; color: var(--ink); border-color: var(--ink); }
.kwcloud button.w2 { font-size: 15px; }
.kwcloud button.w1 { font-size: 13.5px; }
.kwcloud button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.kwcloud button[aria-pressed="true"] i { color: #fff; }
.trend { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.trend:last-child { border-bottom: 0; }
.trend .rk { font-family: var(--mono); font-weight: 700; color: var(--red); font-size: 15px; }
.trend .k { font-weight: 800; font-size: 15.5px; }
.trend .tr { font-family: var(--mono); font-size: 11.5px; color: var(--mute); white-space: nowrap; }
.trend .rel { font-size: 12.5px; color: var(--ink2); margin-top: 3px; }
.trend .rel a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 관심 키워드 */
.watch { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.watch .chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: #fff3bf; border: 1px solid #ffe066; padding: 4px 6px 4px 11px; font-size: 13px; font-weight: 700; }
.watch .chip button { border: 0; background: transparent; width: 20px; height: 20px; border-radius: 50%; font-size: 13px; line-height: 1; color: #7c5e00; }
.watch form { display: flex; gap: 6px; }
.watch input { border: 1px solid var(--line2); border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 13.5px; width: 180px; background: #fff; }
.btn { border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 10px; padding: 7px 12px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line2); }

/* 핵심 이슈 */
.issue { padding: 14px 16px; }
.issue h4 { margin: 0 0 4px; font-size: 16.5px; letter-spacing: -.02em; display: flex; gap: 8px; align-items: center; }
.issue h4 .cnt { font-family: var(--mono); font-size: 11.5px; color: #fff; background: var(--accent); border-radius: 6px; padding: 1px 6px; }
.issue .srcs { font-size: 12px; color: var(--mute); margin-bottom: 6px; }
.issue ul { margin: 0; padding-left: 16px; font-size: 13.5px; }
.issue li { margin: 3px 0; }

/* 긴급 취약점 */
.alert-card { border-left: 5px solid var(--red); padding: 16px 18px; }
.alert-card.lv-높음 { border-left-color: var(--amber); }
.alert-card .hd { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.alert-card h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.badge { font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 2px 7px; background: #f1f3f5; color: var(--ink2); white-space: nowrap; }
.badge.red { background: #ffe3e3; color: #c92a2a; }
.badge.amber { background: #fff3bf; color: #8f5e00; }
.badge.teal { background: #e3fafc; color: #0b7285; }
.badge.violet { background: #f3f0ff; color: #5f3dc4; }
.badge.orange { background: #fff4e6; color: #c2410c; }
.alert-card p { margin: 8px 0; font-size: 14px; }
.alert-card .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.alert-card h5 { margin: 0 0 4px; font-size: 12.5px; color: var(--mute); letter-spacing: .02em; }
.alert-card ul { margin: 0; padding-left: 17px; font-size: 13.5px; }
.alert-card li { margin: 3px 0; word-break: keep-all; overflow-wrap: anywhere; }
.links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.links a { font-size: 12.5px; font-weight: 600; border: 1px solid var(--line2); border-radius: 8px; padding: 4px 9px; background: #fff; }
.links a::after { content: ' ↗'; color: var(--mute); }

/* 표 */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; color: var(--mute); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.tbl td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }
.score { font-family: var(--mono); font-weight: 700; border-radius: 6px; padding: 1px 6px; font-size: 12px; white-space: nowrap; }
.score.c { background: #c92a2a; color: #fff; }
.score.h { background: #f76707; color: #fff; }
.score.m { background: #fab005; color: #222; }
.score.l { background: #dee2e6; color: #222; }

/* 막대 */
.bars { display: grid; gap: 6px; }
.barrow { display: grid; grid-template-columns: minmax(80px, 38%) minmax(0, 1fr) 52px; gap: 8px; align-items: center; font-size: 13px; }
.barrow .lb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.barrow .track { height: 10px; background: #f1f3f5; border-radius: 6px; overflow: hidden; }
.barrow .fill { height: 100%; background: var(--accent); border-radius: 6px; }
.barrow .v { text-align: right; font-family: var(--mono); font-size: 12px; color: var(--ink2); }

/* 타임라인 */
.tl { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; }
.tl::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line2); }
.tl > li { position: relative; padding: 0 0 16px 10px; }
.tl > li::before { content: ''; position: absolute; left: -17px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); }
.tl .when { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.tl .org { font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.tl .facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.tl .heads { margin: 4px 0 0; padding-left: 16px; font-size: 13px; color: var(--ink2); }

/* 영상 */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.vcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: left; padding: 0; display: flex; flex-direction: column; }
.vcard .th { position: relative; aspect-ratio: 16 / 9; background: #111; }
.vcard .th img { width: 100%; height: 100%; object-fit: cover; }
.vcard .th::after { content: ''; position: absolute; left: 50%; top: 50%; width: 46px; height: 32px; transform: translate(-50%, -50%); border-radius: 9px; background: rgba(0, 0, 0, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 20px no-repeat; transition: background-color .2s; }
.vcard:hover .th::after { background-color: var(--red); }
.vcard .vt { padding: 9px 11px 2px; font-weight: 700; font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard .vm { padding: 2px 11px 10px; font-size: 12px; color: var(--mute); }

/* 모달 */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(10, 12, 16, .72); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.on { display: flex; }
.modal .box { background: var(--card); border-radius: 16px; width: min(920px, 100%); max-height: calc(100dvh - 32px); overflow: auto; position: relative; }
.modal .box.dark { background: #000; }
.modal .close { position: absolute; right: 10px; top: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); font-size: 18px; font-weight: 700; }
.modal .player { aspect-ratio: 16 / 9; width: 100%; }
.modal .player iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal .cap { color: #e9ecef; padding: 12px 16px 16px; font-size: 14px; }
.modal .cap a { color: #91a7ff; }
.modal .pad { padding: 22px 22px 18px; }
.modal h3 { margin: 0 40px 6px 0; font-size: 20px; }

/* 알림 토스트 */
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast div { background: var(--ink); color: #fff; border-radius: 12px; padding: 11px 14px; font-size: 13.5px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); animation: up .25s ease; }
.toast b { color: #ffa8a8; }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }

/* 바깥 바로 가기 */
.outlinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.outlinks a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.outlinks a b { display: block; font-size: 14.5px; }
.outlinks a span { font-size: 12.5px; color: var(--mute); }

/* 영역 카드(첫 화면) */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.area { border-radius: var(--r); padding: 18px; color: #fff; position: relative; overflow: hidden; min-height: 210px; display: flex; flex-direction: column; }
.area.sec { background: linear-gradient(140deg, #0b3d4a, #0b7285); }
.area.breach { background: linear-gradient(140deg, #5c1a03, #d9480f); }
.area.ai { background: linear-gradient(140deg, #2b1a6e, #6741d9); }
.area h3 { margin: 0 0 4px; font-size: 19px; }
.area p { margin: 0 0 10px; font-size: 13px; opacity: .85; }
.area ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; display: grid; gap: 6px; }
.area li a { color: #fff; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.area .go { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 13px; }
.area .go a { color: #fff; }

/* 꼬리 */
.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--mute); font-size: 13px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot a { color: var(--ink2); font-weight: 600; }

@media (max-width: 1023px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
  .area { min-height: 0; }
}
@media (max-width: 767px) {
  .wrap { padding: 0 14px; }
  .bar { height: 54px; gap: 10px; }
  .brand small { display: none; }
  .tools .lbl { display: none; }
  .jump { top: 54px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .alert-card .cols { grid-template-columns: 1fr; }
  .radar { width: 74px; height: 74px; right: 14px; top: 14px; }
  .ops h1 { padding-right: 80px; }
  .clock { display: none; }
  .sec-h h2 { font-size: 19px; }
  .watch input { width: 140px; }
}
@media (max-width: 519px) {
  .menu { display: none; }
  .mnav { display: flex !important; }
  .tools { margin-left: auto; }
}
.mnav { display: none; position: sticky; top: 54px; z-index: 35; background: var(--paper); border-bottom: 1px solid var(--line); overflow-x: auto; gap: 4px; padding: 6px 14px; scrollbar-width: none; }
.mnav a { padding: 6px 11px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--ink2); white-space: nowrap; }
.mnav a[aria-current="page"] { background: var(--ink); color: #fff; }
@media (max-width: 519px) { .jump { top: 96px; } }
@media (prefers-reduced-motion: reduce) { .tk-run, .radar::after, .live i, .brand .mk::after { animation: none; } }
