:root {
  color-scheme: light;
  --bg:#f7f8f7; --surface:#fff; --soft:#eff2f1; --ink:#172422; --muted:#556561;
  --line:#d7dfdb; --strong:#173e37; --on-strong:#fff; --accent:#b54320; --focus:#008b78; --ok:#157353; --warn:#99541c;
  --sans:"Inter","Segoe UI",Arial,sans-serif; --mono:"Cascadia Mono",Consolas,monospace;
}
:root[data-theme=dark] {
  color-scheme:dark;
  --bg:#111a1a; --surface:#192423; --soft:#22302e; --ink:#eef3ef; --muted:#b1c1ba;
  --line:#364642; --strong:#badfd3; --on-strong:#12241f; --accent:#ffa282; --focus:#78dbc6; --ok:#8dd4b6; --warn:#edb47d;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:1rem/1.55 var(--sans)}
button,input,select{font:inherit;color:inherit}
button,select,a{touch-action:manipulation}
button,select{cursor:pointer}button{border:0;background:transparent}
a{color:inherit;text-decoration:none}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
[hidden]{display:none!important}
.sr,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip:focus{position:fixed;top:3px;left:8px;background:var(--surface);padding:10px;z-index:10}
.shell{width:min(1240px,92%);margin-inline:auto}
.icon{display:block;width:18px;height:18px;flex:none}
.mast{position:sticky;top:0;z-index:5;background:var(--surface);border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;gap:22px;min-height:70px}
.brand{display:inline-flex;align-items:center;gap:9px;font-size:1.35rem;letter-spacing:-.055em;font-weight:750;line-height:1.1;white-space:nowrap}
.search{margin-left:auto;display:flex;align-items:center;gap:10px;width:clamp(225px,27vw,380px);border:1px solid var(--line);border-radius:8px;padding:0 12px;background:var(--bg);color:var(--muted)}
.search:focus-within{outline:2px solid var(--focus)}
.search input{background:transparent;border:0;outline:0;width:100%;min-width:0;height:39px;font-size:.94rem}
.search input::placeholder{color:var(--muted)}
.actions{display:flex;gap:8px;align-items:center}
.actions button,.theme,#reset,#more{display:inline-flex;gap:8px;align-items:center;justify-content:center;min-height:40px;padding:0 13px;background:var(--surface);border:1px solid var(--line);border-radius:8px;font-size:.91rem;font-weight:600}
.actions button:hover,.theme:hover,#more:hover,#reset:hover{background:var(--soft)}
.actions .theme,.theme{width:40px;padding:0}.bar>.theme{margin-left:auto}
.sun,[data-theme=dark] .moon{display:none}[data-theme=dark] .sun{display:block}
#refresh:disabled{color:var(--muted);cursor:wait}
.hero{margin-top:28px;position:relative;isolation:isolate;display:grid;align-items:center;grid-template-columns:1.1fr .9fr;overflow:hidden;border-radius:16px;background:#17262d;color:#fafbf6;min-height:268px}
.hero-copy{padding:clamp(23px,3.6vw,51px);position:relative;z-index:1}
.hero-date,.stats,.stats>span,.sources>strong,.sort,.source-select,.groups,.group,.news-heading,.toolbar,.tabs,.foot nav{display:flex;align-items:center}
.hero-date{gap:9px;color:#f5ad86;font:600 .83rem/1.5 var(--mono)}
.hero-date .icon{width:15px;height:15px}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(2.7rem,4.7vw,4.65rem);line-height:1.12;letter-spacing:-.066em;margin:9px 0 10px}
h1 span{color:#ff955f}.hero-copy>p{max-width:48ch;font-size:1.02rem;color:#cbd8d8}
.stats{margin-top:24px;gap:19px;flex-wrap:wrap;color:#e4ece9;font-size:.85rem}
.stats>span{gap:6px}.stats .icon{width:15px;height:15px;color:#acc4be}
.globe{position:absolute;z-index:0;right:0;top:0;bottom:0;width:48%;background:url('/assets/signal.svg') center/contain no-repeat}
.sources{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;margin:14px 0 35px;padding:10px 15px;background:var(--surface);border:1px solid var(--line);border-radius:9px;font-size:.86rem}
.sources>strong{gap:8px}.sources>strong .icon{color:var(--accent)}
.groups{flex-wrap:wrap;gap:8px 20px}.group{gap:7px;color:var(--muted)}
.group::before{content:"";width:7px;height:7px;background:var(--muted);border-radius:50%}
.group[data-state=up]::before{background:var(--ok)}.group[data-state=down]::before,.group[data-state=partial]::before{background:var(--warn)}
.group small{font-family:var(--mono);font-size:.78rem;color:var(--muted)}
#news{scroll-margin-top:85px}
.news-heading,.toolbar{justify-content:space-between;gap:17px}
h2{font-size:clamp(1.65rem,2.6vw,2.45rem);letter-spacing:-.055em;line-height:1.2}.sort{gap:7px;color:var(--muted);font-size:.85rem}.sort .icon{width:15px;height:15px}
.toolbar{padding:16px 0 19px}.tabs{flex-wrap:wrap;gap:3px}.tabs button{padding:7px 13px;border-radius:7px;color:var(--muted);font-weight:600;font-size:.91rem}
.tabs button:hover{background:var(--soft)}.tabs button[aria-pressed=true]{background:var(--strong);color:var(--on-strong)}
.source-select{position:relative;gap:0;border:1px solid var(--line);border-radius:7px;background:var(--surface)}.source-select>.icon{position:absolute;pointer-events:none;width:15px;left:10px}.source-select>.icon:last-child{left:auto;right:9px;width:12px}
select{appearance:none;border:0;background:transparent;padding:7px 29px 7px 32px;border-radius:7px;max-width:100%;font-size:.9rem}option{background:var(--surface)}
#notice{border-left:3px solid var(--warn);background:var(--soft);color:var(--ink);padding:10px 15px;margin-bottom:16px;font-size:.92rem}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card,.skeleton{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;min-width:0}
.card{display:flex;flex-direction:column}.cover{position:relative;aspect-ratio:2.12;background-color:var(--soft);background-position:center;background-size:cover}.cover img{display:block;width:100%;height:100%;object-fit:cover}
.cover.viet-nam{background-image:url('/assets/viet-nam.svg')}.cover.quoc-te{background-image:url('/assets/quoc-te.svg')}.cover.lap-trinh{background-image:url('/assets/lap-trinh.svg')}.cover.bao-mat{background-image:url('/assets/bao-mat.svg')}
.tag{position:absolute;bottom:10px;left:13px;font-size:.76rem;line-height:1.3;padding:4px 8px;border-radius:4px;font-weight:700;background:#fff;color:#233631;box-shadow:0 1px 3px #17242220}
.card-body{display:flex;flex:1;flex-direction:column;padding:17px 18px 15px}.meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:.8rem}.source-name{font-weight:700;color:var(--accent)}
.card h3{font-size:clamp(1.14rem,1.46vw,1.37rem);line-height:1.34;letter-spacing:-.033em;margin:9px 0 8px;overflow-wrap:anywhere}.summary{color:var(--muted);font-size:1rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.read{display:inline-flex;align-self:flex-start;margin-top:auto;padding-top:15px;font-size:.86rem;color:var(--strong);font-weight:650}.read:hover,.foot nav :hover{text-decoration:underline;text-underline-offset:3px}
.skeleton{min-height:280px}.skeleton i{display:block;width:85%;height:12px;border-radius:3px;margin:14px;background:var(--soft);animation:breath 1.4s ease-in-out infinite alternate}
.skeleton i:first-child{height:auto;width:100%;aspect-ratio:2.12;margin:0;border-radius:0}.skeleton i:last-child{width:57%}@keyframes breath{to{opacity:.38}}
.empty{text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:34px 15px}.empty p{margin:8px 0 15px;color:var(--muted)}
#more{margin:23px auto 0;display:flex;width:max-content}
footer{margin-top:46px;border-top:1px solid var(--line);background:var(--surface)}.foot{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-block:28px}.foot .brand{font-size:1.07rem}.foot .brand img{width:26px;height:26px}.foot p{max-width:55ch;color:var(--muted);font-size:.88rem;margin-top:8px}.foot nav{flex-wrap:wrap;gap:10px 18px}.foot nav>*{padding:0;font-size:.87rem;color:var(--muted)}
dialog{width:min(520px,92vw);color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:23px;max-height:85dvh}dialog::backdrop{background:#10211eb0}.dialog-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:15px}.dialog-head h2{font-size:1.5rem}.dialog-head button{font-size:1.55rem;line-height:1;width:35px;height:35px;background:var(--soft);border-radius:50%}dialog p+p{margin-top:10px}body:has(dialog[open]){overflow:hidden}
.back{display:inline-block;margin-top:15px;background:#f8af89;color:#20302b;padding:8px 14px;border-radius:6px;font-weight:650}
@media(max-width:850px){.bar{gap:12px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{grid-template-columns:1.2fr 1fr}.stats{gap:7px 14px}.foot{align-items:flex-start;flex-direction:column}}
@media(max-width:650px){.shell{width:92%}.bar{min-height:60px;flex-wrap:wrap;padding:9px 0;gap:8px}.brand{font-size:1.22rem}.brand img{width:31px;height:31px}.actions{margin-left:auto}.actions button,.theme{min-height:36px}.actions .theme{width:36px}.search{width:100%;order:3}.search input{height:34px}.hero{margin-top:16px;display:block;min-height:0}.hero-copy{padding:21px 20px 18px}.hero-copy>p{max-width:38ch}.globe{position:relative;margin:0 auto;width:100%;height:143px;background-size:auto 166px}.hero-date{font-size:.79rem}h1{font-size:clamp(2.5rem,8vw,3.1rem)}.stats{margin-top:14px}.sources{margin:11px 0 25px;gap:8px 12px;padding:10px 12px}.groups{gap:6px 13px}.toolbar{align-items:flex-start;flex-direction:column;gap:12px;padding-block:12px 16px}.tabs{width:100%}.tabs button{padding:7px 9px}.grid{grid-template-columns:1fr;gap:15px}#news{scroll-margin-top:115px}.card h3{font-size:1.28rem}.foot{gap:18px}.missing .globe{height:150px}}
.cover img{position:absolute;inset:0}
@media(max-width:480px){.actions #refresh span{display:none}.actions #refresh{width:36px;padding:0}.tabs{gap:1px}.tabs button{padding:7px 7px;font-size:.86rem}}
@media(max-width:350px){.tabs button{padding:6px 5px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}

