*,
      *::before,
      *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }
      :root {
        --blue: #1558a8;
        --blue-lt: #e8f1fb;
        --blue-dk: #0c3b6e;
        --blue-md: #378add;
        --red: #d94040;
        --red-lt: #fdeaea;
        --red-dk: #a32d2d;
        --orange: #d9620a;
        --orange-lt: #fef0e6;
        --orange-dk: #9e4507;
        --amber: #b86d10;
        --amber-lt: #fef2e0;
        --amber-dk: #8a4f08;
        --green: #3a6d10;
        --green-lt: #ebf4de;
        --purple: #5043b4;
        --purple-lt: #edecfd;
        --purple-dk: #3d32a8;
        --text-1: #111c2d;
        --text-2: #4b5869;
        --text-3: #8a96a8;
        --bg: #f4f6f9;
        --white: #ffffff;
        --border: #e2e6ec;
        --font: "Be Vietnam Pro", system-ui, sans-serif;
      }
      html,
      body {
        height: 100%;
        overflow: hidden;
      }
      body {
        font-family: var(--font);
        background: var(--bg);
        color: var(--text-1);
      }
      button {
        font-family: var(--font);
        cursor: pointer;
        border: none;
        background: none;
        padding: 0;
      }
      a {
        text-decoration: none;
        color: inherit;
      }

      /* ── APP SHELL ── */
      #app {
        display: flex;
        flex-direction: column;
        height: 100vh;
      }
      #hdr {
        flex-shrink: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        height: 56px;
        padding: 0 18px;
        gap: 0;
        z-index: 200;
        position: relative;
      }
      #layout {
        flex: 1;
        display: flex;
        overflow: hidden;
        min-height: 0;
      }
      #lsb {
        display: none;
        width: 222px;
        flex-shrink: 0;
        background: var(--white);
        border-right: 1px solid var(--border);
        flex-direction: column;
        overflow-y: auto;
        scrollbar-width: none;
      }
      #lsb::-webkit-scrollbar {
        display: none;
      }
      #sw {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
      }
      .screen {
        display: none;
        flex: 1;
        flex-direction: column;
        overflow: hidden;
        min-height: 0;
      }
      .screen.on {
        display: flex;
      }
      .scr-scroll {
        flex: 1;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--border) transparent;
      }
      .scr-scroll::-webkit-scrollbar {
        width: 4px;
      }
      .scr-scroll::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 2px;
      }
      #rp {
        display: none;
        width: 270px;
        flex-shrink: 0;
        background: var(--white);
        border-left: 1px solid var(--border);
        flex-direction: column;
        overflow-y: auto;
        scrollbar-width: none;
      }
      #rp::-webkit-scrollbar {
        display: none;
      }
      #bnav {
        flex-shrink: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        display: flex;
        height: 60px;
        z-index: 200;
        padding-bottom: env(safe-area-inset-bottom);
      }
      @media (min-width: 768px) {
        #bnav {
          display: none;
        }
        #rp {
          display: flex;
        }
      }
      @media (min-width: 1200px) {
        #lsb {
          display: flex;
        }
      }

      /* ── HEADER ── */
      .logo-grp {
        display: flex;
        align-items: center;
        gap: 9px;
        flex-shrink: 0;
      }
      .logo-ic {
        width: 32px;
        height: 32px;
        background: var(--blue);
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .logo-ic svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: #fff;
        stroke-width: 2.2;
        stroke-linecap: round;
      }
      .logo-nm {
        font-size: 15px;
        font-weight: 700;
        color: var(--text-1);
      }
      .logo-sb {
        font-size: 10px;
        color: var(--text-3);
      }
      .hnav {
        display: none;
        flex: 1;
        gap: 2px;
        margin-left: 20px;
      }
      @media (min-width: 768px) {
        .hnav {
          display: flex;
        }
      }
      .hni {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 13px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
        color: var(--text-2);
        cursor: pointer;
        white-space: nowrap;
      }
      .hni svg {
        width: 15px;
        height: 15px;
        stroke: currentColor;
        stroke-width: 2;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
      }
      .hni.on {
        color: var(--blue);
        background: var(--blue-lt);
      }
      .hni .hn-bdg {
        background: var(--red);
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        padding: 1px 5px;
        border-radius: 8px;
        margin-left: 2px;
      }
      .hdr-acts {
        display: flex;
        gap: 7px;
        align-items: center;
        margin-left: auto;
      }
      .ic-btn {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: var(--bg);
        border: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        position: relative;
        flex-shrink: 0;
      }
      .ic-btn svg {
        width: 17px;
        height: 17px;
        stroke: var(--text-2);
        stroke-width: 2;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
      }
      .ic-bdg {
        position: absolute;
        top: 4px;
        right: 4px;
        background: var(--red);
        color: #fff;
        font-size: 8.5px;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        border: 1.5px solid var(--white);
      }
      .avatar {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: var(--blue);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 700;
        color: #fff;
        cursor: pointer;
      }

      /* ── LEFT SIDEBAR ── */
      .sb-lbl {
        font-size: 9.5px;
        font-weight: 700;
        letter-spacing: 0.09em;
        text-transform: uppercase;
        color: var(--text-3);
        padding: 12px 16px 5px;
      }
      .sb-div {
        height: 1px;
        background: var(--border);
        margin: 8px 14px;
      }
      .sb-cat {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 12px 6px 14px;
        cursor: pointer;
        margin: 0 4px;
        border-radius: 8px;
        transition: background 0.12s;
      }
      .sb-cat:hover {
        background: var(--bg);
      }
      .sb-cat.on {
        background: var(--blue-lt);
      }
      .sb-cdot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex-shrink: 0;
      }
      .sb-cn {
        font-size: 12.5px;
        font-weight: 500;
        color: var(--text-2);
        flex: 1;
      }
      .sb-cat.on .sb-cn {
        color: var(--blue);
      }
      .sb-ubdg {
        min-width: 18px;
        height: 18px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 9px;
        font-weight: 700;
        color: #fff;
        padding: 0 4px;
        background: var(--blue);
      }
      .sb-ck {
        width: 16px;
        height: 16px;
        border-radius: 4px;
        border: 1.5px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all 0.15s;
      }
      .sb-region {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 6px 12px 6px 14px;
        cursor: pointer;
        margin: 0 4px;
        border-radius: 8px;
        font-size: 12.5px;
        font-weight: 500;
        color: var(--text-2);
        transition: background 0.12s;
      }
      .sb-region:hover {
        background: var(--bg);
      }
      .sb-region.on {
        background: var(--blue-lt);
        color: var(--blue);
      }
      .sb-region svg {
        width: 13px;
        height: 13px;
        stroke: var(--text-3);
        stroke-width: 2;
        fill: none;
        flex-shrink: 0;
      }
      .sb-digest {
        margin: 10px 10px;
        background: #fffbee;
        border: 1px solid #edd87a;
        border-radius: 10px;
        padding: 11px 12px;
      }
      .sd-t {
        font-size: 9.5px;
        font-weight: 700;
        color: #7a5800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        margin-bottom: 5px;
      }
      .sd-p {
        font-size: 11.5px;
        color: #4a3800;
        line-height: 1.55;
      }

      /* ── RIGHT PANEL (sources only) ── */
      .rp-sec {
        padding: 14px 16px;
        border-bottom: 1px solid var(--border);
      }
      .rp-t {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-3);
        margin-bottom: 10px;
      }
      .src-it {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 6px 0;
      }
      .src-cb {
        width: 16px;
        height: 16px;
        border-radius: 4px;
        border: 1.5px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.15s;
      }
      .src-cb.on {
        background: var(--blue);
        border-color: var(--blue);
      }
      .src-cb svg {
        width: 9px;
        height: 9px;
        stroke: #fff;
        stroke-width: 2.5;
        fill: none;
      }
      .src-nm {
        font-size: 12px;
        font-weight: 500;
        color: var(--text-1);
        flex: 1;
      }
      .src-cnt {
        font-size: 11px;
        color: var(--text-3);
      }

      /* ── FILTER BAR (tablet + mobile, replaces old cat-bar) ── */
      /* Tablet (768-1200): wrapping pill grid */
      .tablet-filter {
        display: none;
        background: var(--white);
        padding: 10px 16px;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
        flex-wrap: wrap;
        gap: 6px;
      }
      @media (min-width: 768px) and (max-width: 1199px) {
        .tablet-filter {
          display: flex;
        }
      }
      /* Mobile: dropdown trigger bar */
      .mobile-filter {
        display: flex;
        background: var(--white);
        padding: 8px 14px;
        gap: 8px;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
      }
      @media (min-width: 768px) {
        .mobile-filter {
          display: none;
        }
      }
      .drop-trigger {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 20px;
        border: 1.5px solid var(--border);
        font-size: 12px;
        font-weight: 500;
        color: var(--text-2);
        cursor: pointer;
        flex: 1;
        justify-content: space-between;
        background: var(--white);
        transition: all 0.15s;
        min-width: 0;
      }
      .drop-trigger.active {
        border-color: var(--blue);
        background: var(--blue-lt);
        color: var(--blue);
      }
      .drop-trigger-left {
        display: flex;
        align-items: center;
        gap: 6px;
        overflow: hidden;
      }
      .drop-trigger-left svg {
        width: 14px;
        height: 14px;
        stroke: currentColor;
        stroke-width: 2;
        fill: none;
        flex-shrink: 0;
      }
      .drop-label {
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .drop-badge {
        background: var(--blue);
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        padding: 1px 6px;
        border-radius: 8px;
        flex-shrink: 0;
      }
      .drop-chevron {
        width: 14px;
        height: 14px;
        stroke: currentColor;
        stroke-width: 2;
        fill: none;
        flex-shrink: 0;
        transition: transform 0.2s;
      }
      .drop-trigger.open .drop-chevron {
        transform: rotate(180deg);
      }
      /* Dropdown panel */
      .drop-panel {
        position: absolute;
        z-index: 300;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
        overflow: hidden;
        display: none;
        min-width: 240px;
      }
      .drop-panel.on {
        display: block;
        animation: dpIn 0.18s ease;
      }
      @keyframes dpIn {
        from {
          opacity: 0;
          transform: translateY(-6px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      .dp-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        border-bottom: 1px solid var(--border);
      }
      .dp-title {
        font-size: 11px;
        font-weight: 700;
        color: var(--text-3);
        letter-spacing: 0.07em;
        text-transform: uppercase;
      }
      .dp-action {
        font-size: 11px;
        font-weight: 600;
        color: var(--blue);
        cursor: pointer;
      }
      .dp-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 14px;
        cursor: pointer;
        transition: background 0.1s;
      }
      .dp-item:hover {
        background: var(--bg);
      }
      .dp-check {
        width: 18px;
        height: 18px;
        border-radius: 5px;
        border: 1.5px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all 0.15s;
      }
      .dp-check.on {
        border-color: var(--blue);
        background: var(--blue);
      }
      .dp-check svg {
        width: 10px;
        height: 10px;
        stroke: #fff;
        stroke-width: 2.5;
        fill: none;
      }
      .dp-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex-shrink: 0;
      }
      .dp-name {
        font-size: 13px;
        font-weight: 500;
        color: var(--text-1);
        flex: 1;
      }
      .dp-cnt {
        font-size: 11px;
        color: var(--text-3);
      }
      /* Pill for tablet (wrapping) */
      .tp {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 5px 11px;
        border-radius: 20px;
        border: 1.5px solid var(--border);
        font-size: 12px;
        font-weight: 500;
        color: var(--text-2);
        cursor: pointer;
        background: var(--white);
        transition: all 0.15s;
        white-space: nowrap;
      }
      .tp.on {
        color: var(--blue);
        border-color: var(--blue);
        background: var(--blue-lt);
      }
      .tp .tdot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
      }
      .tp .tb {
        background: var(--blue);
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        padding: 1px 6px;
        border-radius: 8px;
      }

      /* ── HOME SCREEN ── */
      .stat-row {
        display: grid;
        gap: 10px;
        padding: 14px 16px;
      }
      .stat-card {
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 13px 14px;
        display: flex;
        align-items: center;
        gap: 12px;
      }
      .sc-ic {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
      }
      .sc-ic svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
      }
      .sc-num {
        font-size: 24px;
        font-weight: 700;
        line-height: 1;
      }
      .sc-lbl {
        font-size: 12px;
        color: var(--text-2);
        font-weight: 500;
        margin-top: 1px;
      }
      .sc-sub {
        font-size: 10px;
        color: var(--text-3);
        margin-top: 1px;
      }
      @media (min-width: 768px) {
        .stat-row {
          grid-template-columns: repeat(4, 1fr);
        }
        .stat-card {
          flex-direction: column;
          align-items: flex-start;
          gap: 6px;
        }
        .sc-ic {
          display: none;
        }
      }
      .sec-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px 6px;
      }
      .sec-nm {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-3);
      }
      .sec-bdg {
        background: var(--blue);
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        padding: 1px 8px;
        border-radius: 10px;
        margin-left: 6px;
      }
      .sec-act {
        font-size: 11px;
        color: var(--blue);
        font-weight: 600;
        cursor: pointer;
        background: none;
        border: none;
      }
      /* featured */
      .feat-wrap {
        padding: 0 14px 10px;
      }
      .feat-card {
        background: var(--white);
        border: 1.5px solid var(--blue);
        border-radius: 14px;
        overflow: hidden;
        cursor: pointer;
      }
      .feat-img {
        height: 148px;
        background: linear-gradient(145deg, #1558a8, #0a3875);
        position: relative;
        padding: 14px 16px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
      }
      .feat-img::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 30, 70, 0.25);
      }
      .feat-zc {
        position: relative;
        z-index: 1;
      }
      .feat-bdg {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: var(--red);
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 4px;
        margin-bottom: 6px;
      }
      .feat-p {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #fff;
        animation: pulse 1.3s infinite;
      }
      @keyframes pulse {
        0%,
        100% {
          opacity: 1;
        }
        50% {
          opacity: 0.3;
        }
      }
      .feat-ttl {
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        line-height: 1.4;
      }
      .feat-digest {
        padding: 9px 14px;
        background: var(--blue-lt);
        border-bottom: 1px solid #d0e4f7;
        display: flex;
        gap: 8px;
      }
      .fd-ic {
        width: 20px;
        height: 20px;
        border-radius: 6px;
        background: var(--blue);
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 1px;
      }
      .fd-ic svg {
        width: 11px;
        height: 11px;
        stroke: #fff;
        stroke-width: 2;
        fill: none;
      }
      .fd-txt {
        font-size: 11px;
        color: #1d4e8a;
        line-height: 1.5;
      }
      .feat-foot {
        padding: 9px 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      .feat-src {
        background: var(--bg);
        border: 1px solid var(--border);
        padding: 2px 9px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 600;
        color: var(--text-2);
      }
      .feat-meta {
        display: flex;
        align-items: center;
        gap: 6px;
      }
      .feat-t {
        font-size: 11px;
        color: var(--text-3);
      }
      .udot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--blue);
      }
      @media (min-width: 768px) {
        .feat-card {
          display: flex;
          flex-direction: row;
        }
        .feat-img {
          width: 240px;
          height: auto;
          flex-shrink: 0;
        }
        .feat-right {
          flex: 1;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
        }
        .feat-digest {
          flex: 1;
        }
      }
      /* news list */
      .news-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 0 14px 8px;
      }
      .ni {
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 11px 12px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        cursor: pointer;
        transition:
          border-color 0.12s,
          opacity 0.12s;
      }
      .ni.u {
        border-left: 3px solid var(--blue);
      }
      .ni.r {
        opacity: 0.66;
      }
      .ni:hover {
        border-color: #aac0dc;
        opacity: 1;
      }
      .ni-ds {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 3px;
        flex-shrink: 0;
      }
      .ni-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex-shrink: 0;
      }
      .ni-dot.u {
        background: var(--blue);
      }
      .ni-dot.r {
        border: 1.5px solid var(--border);
        background: transparent;
      }
      .ni-line {
        width: 1px;
        background: var(--border);
        flex: 1;
        margin-top: 4px;
        min-height: 20px;
      }
      .ni-body {
        flex: 1;
        min-width: 0;
      }
      .ni-top {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
        flex-wrap: wrap;
      }
      .ctag {
        font-size: 10px;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: 20px;
        white-space: nowrap;
      }
      .ni-tm {
        font-size: 10.5px;
        color: var(--text-3);
        margin-left: auto;
      }
      .ni-ttl {
        font-size: 13px;
        font-weight: 500;
        color: var(--text-1);
        line-height: 1.46;
        margin-bottom: 5px;
      }
      .ni-ttl.r {
        font-weight: 400;
        color: var(--text-2);
      }
      .ni-ft {
        display: flex;
        align-items: center;
        gap: 5px;
      }
      .ni-src {
        font-size: 11px;
        font-weight: 600;
        color: var(--text-2);
      }
      .ni-sep {
        font-size: 10px;
        color: var(--text-3);
      }
      .ni-rgn {
        font-size: 10.5px;
        color: var(--text-3);
        background: var(--bg);
        border: 1px solid var(--border);
        padding: 1px 7px;
        border-radius: 20px;
      }
      .ni-actions {
        display: flex;
        gap: 4px;
        align-items: center;
        flex-shrink: 0;
        align-self: center;
      }
      .ni-bm {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg);
        cursor: pointer;
        transition: background 0.15s;
      }
      .ni-bm:hover {
        background: var(--blue-lt);
      }
      .ni-bm svg {
        width: 14px;
        height: 14px;
        stroke: var(--text-3);
        stroke-width: 2;
        fill: none;
        transition: all 0.15s;
      }
      .ni-bm.on svg {
        stroke: var(--blue);
        fill: var(--blue);
      }
      .ni-chev {
        width: 22px;
        height: 22px;
        border-radius: 7px;
        background: var(--bg);
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .ni-chev svg {
        width: 12px;
        height: 12px;
        stroke: var(--text-3);
        stroke-width: 2.5;
        fill: none;
      }
      .load-more {
        margin: 4px 14px 16px;
        border: 1.5px dashed var(--border);
        border-radius: 12px;
        padding: 11px;
        text-align: center;
        font-size: 12.5px;
        font-weight: 500;
        color: var(--text-3);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
      }
      .load-more svg {
        width: 14px;
        height: 14px;
        stroke: var(--text-3);
        stroke-width: 2;
        fill: none;
      }
      /* 24h overview */
      .ov-card {
        margin: 12px 14px 0;
        background: linear-gradient(135deg, #0c3b6e, #1558a8);
        border-radius: 14px;
        padding: 14px 16px;
        position: relative;
        overflow: hidden;
      }
      .ov-ring1 {
        position: absolute;
        top: -20px;
        right: -20px;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        border: 22px solid rgba(255, 255, 255, 0.06);
      }
      .ov-ring2 {
        position: absolute;
        bottom: -30px;
        right: 15px;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        border: 16px solid rgba(255, 255, 255, 0.04);
      }
      .ov-hd {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
      }
      .ov-ht {
        font-size: 11px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.7);
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }
      .ov-upd {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.4);
      }
      .ov-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
      }
      .ov-stat {
        text-align: center;
      }
      .ov-num {
        font-size: 22px;
        font-weight: 700;
        color: #fff;
        line-height: 1;
      }
      .ov-lbl {
        font-size: 9.5px;
        color: rgba(255, 255, 255, 0.55);
        margin-top: 3px;
        line-height: 1.3;
      }
      .ov-bar-row {
        margin-top: 10px;
      }
      .ov-bar-track {
        display: flex;
        gap: 3px;
        height: 4px;
        border-radius: 3px;
        overflow: hidden;
        margin-bottom: 5px;
      }
      .ov-seg {
        height: 100%;
        border-radius: 2px;
      }
      .ov-legend {
        display: flex;
        gap: 10px;
      }
      .ov-li {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 9px;
        color: rgba(255, 255, 255, 0.5);
      }
      .ov-li span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        display: inline-block;
      }
      /* ai digest */
      .digest-card {
        margin: 10px 14px;
        background: #fffbee;
        border: 1px solid #edd87a;
        border-radius: 12px;
        padding: 11px 14px;
        display: flex;
        gap: 10px;
      }
      .dc-ic {
        width: 28px;
        height: 28px;
        background: #f5cf3a;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
      }
      .dc-ic svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: #7a5800;
        stroke-width: 2;
      }
      .dc-lbl {
        font-size: 9.5px;
        font-weight: 700;
        color: #7a5800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        margin-bottom: 4px;
      }
      .dc-txt {
        font-size: 12px;
        color: #4a3800;
        line-height: 1.5;
      }

      /* ── CẢNH BÁO SCREEN ── */
      .alert-stats {
        background: var(--white);
        padding: 12px 16px;
        border-bottom: 1px solid var(--border);
        display: flex;
        gap: 8px;
        flex-shrink: 0;
      }
      .as-pill {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 5px 10px;
        border-radius: 20px;
        border: 1.5px solid;
        font-size: 12px;
        font-weight: 600;
        flex: 1;
        justify-content: center;
        cursor: pointer;
        transition: all 0.15s;
      }
      .as-num {
        font-size: 15px;
        font-weight: 700;
      }
      .alert-filter {
        background: var(--white);
        padding: 9px 16px;
        display: flex;
        gap: 6px;
        overflow-x: auto;
        border-bottom: 1px solid var(--border);
        scrollbar-width: none;
        flex-shrink: 0;
      }
      .alert-filter::-webkit-scrollbar {
        display: none;
      }
      .af {
        padding: 5px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 500;
        border: 1.5px solid var(--border);
        color: var(--text-2);
        background: var(--white);
        white-space: nowrap;
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.15s;
      }
      .af.on {
        background: var(--text-1);
        color: var(--white);
        border-color: var(--text-1);
      }
      .alert-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px 14px;
      }
      .ac {
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 14px;
        overflow: hidden;
        cursor: pointer;
        display: flex;
        transition: border-color 0.15s;
      }
      .ac:hover {
        border-color: var(--blue-md);
      }
      .ac-bar {
        width: 4px;
        flex-shrink: 0;
      }
      .ac-body {
        flex: 1;
        padding: 12px 13px 12px 11px;
      }
      .ac-top {
        display: flex;
        align-items: center;
        gap: 7px;
        margin-bottom: 7px;
      }
      .sev-bdg {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.05em;
        padding: 3px 9px;
        border-radius: 20px;
      }
      .sev-p {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        animation: pulse 1.4s infinite;
      }
      .ac-time {
        font-size: 11px;
        color: var(--text-3);
        margin-left: auto;
      }
      .ac-ttl {
        font-size: 13.5px;
        font-weight: 600;
        color: var(--text-1);
        line-height: 1.45;
        margin-bottom: 8px;
      }
      .ac-loc {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 12px;
        color: var(--text-2);
        margin-bottom: 8px;
      }
      .ac-loc svg {
        width: 13px;
        height: 13px;
        stroke: var(--text-3);
        stroke-width: 2;
        fill: none;
        flex-shrink: 0;
      }
      .ac-ft {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 8px;
        border-top: 1px solid var(--border);
      }
      .ac-auth {
        font-size: 10.5px;
        color: var(--text-3);
        font-weight: 500;
      }
      .stag {
        font-size: 10px;
        font-weight: 700;
        padding: 3px 9px;
        border-radius: 20px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
      }
      .stag-dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
      }

      /* ── BẢN ĐỒ SCREEN ── */
      #map-toolbar {
        background: var(--white);
        padding: 8px 14px;
        display: flex;
        gap: 6px;
        border-bottom: 1px solid var(--border);
        overflow-x: auto;
        scrollbar-width: none;
        flex-shrink: 0;
      }
      #map-toolbar::-webkit-scrollbar {
        display: none;
      }
      .mf {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 5px 11px;
        border-radius: 20px;
        font-size: 11.5px;
        font-weight: 500;
        border: 1.5px solid var(--border);
        color: var(--text-2);
        background: var(--white);
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.15s;
      }
      .mf svg {
        width: 13px;
        height: 13px;
        stroke: currentColor;
        stroke-width: 2;
        fill: none;
      }
      .mf.on {
        background: var(--blue);
        color: #fff;
        border-color: var(--blue);
      }
      #map-area {
        position: relative;
        background: #d6e5f5;
        flex-shrink: 0;
      }
      #vn-map {
        display: block;
      }
      .map-overlay-stat {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.93);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 8px 12px;
        text-align: center;
        backdrop-filter: blur(4px);
      }
      .mo-num {
        font-size: 22px;
        font-weight: 700;
        color: var(--red);
        line-height: 1;
      }
      .mo-lbl {
        font-size: 9px;
        color: var(--text-3);
        font-weight: 500;
        margin-top: 2px;
      }
      .map-legend {
        position: absolute;
        bottom: 12px;
        left: 12px;
        background: rgba(255, 255, 255, 0.93);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 8px 10px;
        backdrop-filter: blur(4px);
      }
      .ml-t {
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-3);
        margin-bottom: 6px;
      }
      .ml-row {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 10.5px;
        color: var(--text-2);
        font-weight: 500;
        margin-bottom: 4px;
      }
      .ml-row:last-child {
        margin-bottom: 0;
      }
      .ml-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        flex-shrink: 0;
      }
      #map-sheet {
        background: var(--white);
        border-top: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        min-height: 0;
      }
      .ms-handle {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 8px 0 4px;
      }
      .ms-handle-bar {
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: var(--border);
      }
      .ms-hd {
        padding: 0 16px 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      .ms-title {
        font-size: 13px;
        font-weight: 700;
        color: var(--text-1);
      }
      .ms-sub {
        font-size: 11px;
        color: var(--text-3);
      }
      .ms-filters {
        display: flex;
        gap: 5px;
        padding: 0 16px 8px;
        overflow-x: auto;
        scrollbar-width: none;
      }
      .ms-filters::-webkit-scrollbar {
        display: none;
      }
      .msf {
        padding: 4px 11px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 500;
        border: 1px solid var(--border);
        color: var(--text-2);
        white-space: nowrap;
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.15s;
      }
      .msf.on {
        background: var(--text-1);
        color: var(--white);
        border-color: var(--text-1);
      }
      .ms-list {
        overflow-y: auto;
        scrollbar-width: none;
        flex: 1;
      }
      .ms-list::-webkit-scrollbar {
        display: none;
      }
      .ms-item {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 16px;
        border-bottom: 1px solid var(--border);
        cursor: pointer;
      }
      .ms-item:last-child {
        border-bottom: none;
      }
      .msi-bar {
        width: 3px;
        border-radius: 2px;
        align-self: stretch;
        min-height: 34px;
        flex-shrink: 0;
      }
      .msi-ic {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
      }
      .msi-ic svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
      }
      .msi-nm {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-1);
        margin-bottom: 2px;
      }
      .msi-meta {
        display: flex;
        gap: 6px;
        align-items: center;
      }
      .msi-bdg {
        font-size: 10px;
        font-weight: 600;
        padding: 2px 7px;
        border-radius: 20px;
      }
      .msi-t {
        font-size: 10.5px;
        color: var(--text-3);
      }
      .msi-chev svg {
        width: 14px;
        height: 14px;
        stroke: var(--text-3);
        stroke-width: 2.5;
        fill: none;
      }

      /* ── ĐÃ LƯU ── */
      .saved-empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        gap: 14px;
        padding: 40px 20px;
        text-align: center;
      }
      .saved-empty svg {
        width: 52px;
        height: 52px;
        stroke: var(--border);
        stroke-width: 1.5;
        fill: none;
      }
      .se-t {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-2);
      }
      .se-p {
        font-size: 13px;
        color: var(--text-3);
        line-height: 1.5;
      }

      /* ── BOTTOM NAV ── */
      .bn-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        cursor: pointer;
        flex: 1;
        padding: 8px 0;
      }
      .bn-ic {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
      }
      .bn-item.on .bn-ic {
        background: var(--blue-lt);
      }
      .bn-ic svg {
        width: 20px;
        height: 20px;
        stroke-width: 2;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke: var(--text-3);
      }
      .bn-item.on .bn-ic svg {
        stroke: var(--blue);
      }
      .bn-lbl {
        font-size: 10px;
        font-weight: 500;
        color: var(--text-3);
      }
      .bn-item.on .bn-lbl {
        color: var(--blue);
        font-weight: 700;
      }
      .bn-bdg {
        position: absolute;
        top: 2px;
        right: 2px;
        background: var(--red);
        color: #fff;
        font-size: 8px;
        font-weight: 700;
        min-width: 15px;
        height: 15px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1.5px solid var(--white);
        padding: 0 3px;
      }

      /* ── SEARCH OVERLAY ── */
      #search-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 500;
        background: rgba(0, 0, 0, 0.45);
        align-items: flex-start;
        justify-content: center;
        padding-top: 70px;
      }
      #search-overlay.on {
        display: flex;
      }
      .search-box {
        background: var(--white);
        border-radius: 14px;
        width: min(560px, 92%);
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
      }
      .search-input-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
      }
      .search-input-row svg {
        width: 18px;
        height: 18px;
        stroke: var(--text-3);
        stroke-width: 2;
        fill: none;
        flex-shrink: 0;
      }
      #search-input {
        flex: 1;
        border: none;
        outline: none;
        font-family: var(--font);
        font-size: 15px;
        color: var(--text-1);
      }
      .search-cancel {
        font-size: 13px;
        font-weight: 600;
        color: var(--blue);
        cursor: pointer;
        white-space: nowrap;
        padding: 4px 6px;
      }
      #search-results {
        border-top: 1px solid var(--border);
        max-height: 380px;
        overflow-y: auto;
        scrollbar-width: thin;
      }

      /* ── NOTIF PANEL ── */
      #notif-panel {
        display: none;
        position: absolute;
        top: 60px;
        right: 16px;
        z-index: 400;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 14px;
        width: min(380px, 92vw);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        overflow: hidden;
      }
      #notif-panel.on {
        display: block;
      }
      .np-hd {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      .np-t {
        font-size: 13px;
        font-weight: 700;
        color: var(--text-1);
      }
      .np-clr {
        font-size: 11px;
        font-weight: 600;
        color: var(--blue);
        cursor: pointer;
      }
      .np-item {
        display: flex;
        gap: 10px;
        padding: 11px 16px;
        border-bottom: 1px solid var(--border);
        cursor: pointer;
        transition: background 0.12s;
      }
      .np-item:hover {
        background: var(--bg);
      }
      .np-item:last-child {
        border-bottom: none;
      }
      .np-ic {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
      }
      .np-ic svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
      }
      .np-body {
        flex: 1;
      }
      .np-title {
        font-size: 12.5px;
        font-weight: 500;
        color: var(--text-1);
        line-height: 1.4;
        margin-bottom: 2px;
      }
      .np-time {
        font-size: 10.5px;
        color: var(--text-3);
      }
      .np-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--blue);
        flex-shrink: 0;
        margin-top: 4px;
      }

      /* ── ANIMATIONS ── */
      @keyframes fadeSlide {
        from {
          opacity: 0;
          transform: translateY(6px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      .screen.on .ni,
      .screen.on .ac,
      .screen.on .stat-card {
        animation: fadeSlide 0.3s ease both;
      }
      .screen.on .ni:nth-child(1) {
        animation-delay: 0.04s;
      }
      .screen.on .ni:nth-child(2) {
        animation-delay: 0.08s;
      }
      .screen.on .ni:nth-child(3) {
        animation-delay: 0.12s;
      }
      .screen.on .ni:nth-child(4) {
        animation-delay: 0.16s;
      }
      .screen.on .ni:nth-child(5) {
        animation-delay: 0.2s;
      }
      .screen.on .ni:nth-child(6) {
        animation-delay: 0.24s;
      }
      .screen.on .ni:nth-child(7) {
        animation-delay: 0.28s;
      }
      .screen.on .ni:nth-child(8) {
        animation-delay: 0.32s;
      }
      .screen.on .ac:nth-child(1) {
        animation-delay: 0.04s;
      }
      .screen.on .ac:nth-child(2) {
        animation-delay: 0.08s;
      }
      .screen.on .ac:nth-child(3) {
        animation-delay: 0.12s;
      }
      .screen.on .ac:nth-child(4) {
        animation-delay: 0.16s;
      }
      .screen.on .stat-card:nth-child(1) {
        animation-delay: 0.04s;
      }
      .screen.on .stat-card:nth-child(2) {
        animation-delay: 0.08s;
      }
      .screen.on .stat-card:nth-child(3) {
        animation-delay: 0.12s;
      }
      .screen.on .stat-card:nth-child(4) {
        animation-delay: 0.16s;
      }