@charset "UTF-8";

/* ==== hydro-fonts.css ==== */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/hydro/font-0.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/hydro/font-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/hydro/font-3.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/hydro/font-5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/hydro/font-6.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/hydro/font-8.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/hydro/font-9.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/hydro/font-11.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/hydro/font-15.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/hydro/font-17.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/hydro/font-21.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/hydro/font-23.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==== app.css ==== */
:root {
    --navy: #102f47;
    --ink: #142d4a;
    --teal: #008b9c;
    --teal-dark: #007785;
    --muted: #678099;
    --line: #dfebf2;
    --bg: #f1f6fa;
    --white: #fff;
    --orange: #ff8215;
    --shadow: 0 3px 14px #12385205;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font:
        var(--font-size, 14px) / 1.5 var(--font-family, "Segoe UI"),
        Arial,
        sans-serif;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a,
input,
select,
textarea {
    outline-offset: 4px;
}
a {
    color: var(--teal);
    text-decoration: none;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
svg {
    vertical-align: middle;
}
button svg {
    flex-shrink: 0;
}
.sidebar {
    width: var(--sidebar-width, 240px);
    position: fixed;
    inset: 0 auto 0 0;
    background: var(--navy);
    color: #d5e6ee;
    display: flex;
    flex-direction: column;
    z-index: 30;
}
.brand {
    padding: 25px 20px 25px 17px;
    display: flex;
    gap: 12px;
    align-items: center;
    color: white;
}
.brand strong {
    display: block;
    font-size: 17px;
    letter-spacing: 0.25px;
}
.brand small {
    display: block;
    font-size: 13px;
    margin-top: 3px;
    color: #b9d0df;
}
.sidebar nav {
    padding: 0 10px;
    display: grid;
    gap: 7px;
}
.nav-item {
    padding: 12px 15px;
    border-radius: 6px;
    color: #d9e8f0;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: background 0.15s;
}
.nav-item:hover {
    background: #ffffff0a;
}
.nav-item.active {
    background: linear-gradient(90deg, #0095a4, #008394);
    color: white;
    box-shadow: 0 5px 14px #001b342e;
}
.nav-item svg {
    width: 21px;
    height: 21px;
}
.sidebar-bottom {
    margin: auto 18px 25px;
    padding-top: 21px;
    border-top: 1px solid #385368;
    display: flex;
    gap: 13px;
    font-size: 12px;
    color: #b7cddd;
}
.sidebar-bottom strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: white;
}
.institute {
    font-size: 30px;
    line-height: 36px;
}
.workspace {
    margin-left: var(--sidebar-width, 240px);
    min-height: 100vh;
}
.topbar {
    height: 57px;
    background: white;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    font-size: 12px;
    color: #4d6984;
    position: sticky;
    top: 0;
    z-index: 20;
}
.topbar-right {
    display: flex;
    gap: 22px;
    align-items: center;
}
.icon-button {
    padding: 4px;
    border: 0;
    background: transparent;
    color: #4e6983;
    position: relative;
}
.notification-button::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background: #f46762;
    border: 2px solid white;
    border-radius: 50%;
    top: 3px;
    right: 3px;
}
.account {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
}
.avatar {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    background: #e1f3f5;
    border-radius: 50%;
    color: var(--teal);
}
.mobile-menu {
    display: none;
}
main {
    max-width: 1700px;
    margin: 0 auto;
    padding: 24px 24px 18px;
}
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 19px;
}
.page-head h1 {
    font-size: 29px;
    line-height: 1.25;
    letter-spacing: -0.7px;
    margin: 0 0 4px;
    font-weight: 700;
}
.subtitle {
    margin: 0;
    font-size: 15px;
    color: #526e89;
}
.head-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn {
    border: 1px solid #078d9e;
    background: var(--teal);
    color: white;
    border-radius: 6px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 3px 7px #008b9c10;
}
.btn:hover {
    background: var(--teal-dark);
}
.btn.secondary {
    background: white;
    color: var(--teal);
    box-shadow: none;
}
.btn.secondary:hover {
    background: #eef9fa;
}
.btn.ghost {
    background: transparent;
    border-color: var(--line);
    color: #53708a;
    box-shadow: none;
}
.btn.small {
    padding: 6px 11px;
    font-size: 12px;
}
.btn.danger {
    color: #dc334b;
    border-color: #f0b5bd;
    background: white;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 30px;
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.35;
}
.badge.demo {
    border-radius: 5px;
    color: #7c48c5;
    background: #eee5ff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.35px;
    padding: 7px 9px;
}
.badge.measured,
.badge.level-0 {
    background: #d9f5e9;
    color: #097b50;
}
.badge.estimated {
    background: #edf1f7;
    color: #5c7490;
}
.badge.manual {
    background: #e0f3f4;
    color: #007b85;
}
.badge.level-1 {
    background: #fff4cf;
    color: #b77f00;
}
.badge.level-2 {
    background: #ffeadb;
    color: #e96c09;
}
.badge.level-3 {
    background: #ffe2e5;
    color: #df2743;
}
.badge.level-4 {
    background: #a71630;
    color: white;
}
.badge.level-null {
    background: #e9eef4;
    color: #70849b;
}
.badge.blue {
    background: #e5f2ff;
    color: #0876d4;
}
.badge.purple {
    background: #eee7fd;
    color: #7850ba;
}
.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}
.card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 18px;
    box-shadow: var(--shadow);
    min-width: 0;
}
.card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 12px;
}
.card-title h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
    margin: 0;
    font-weight: 650;
}
.card-title h2 svg {
    color: var(--teal);
    width: 20px;
    height: 20px;
}
.card-title small {
    color: var(--muted);
    font-size: 11px;
}
.toolbar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 16px;
    margin-bottom: 13px;
    flex-wrap: wrap;
}
.toolbar .station-selector {
    min-width: 310px;
    max-width: 420px;
    flex: 1;
}
.toolbar .separator {
    height: 20px;
    width: 1px;
    background: var(--line);
}
.toolbar .toolbar-info {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #617b93;
    font-size: 12px;
}
.toolbar-info strong {
    color: var(--ink);
}
.form-control {
    width: 100%;
    border: 1px solid #cddde8;
    border-radius: 5px;
    padding: 10px 12px;
    min-height: 41px;
    background: #fff;
    color: var(--ink);
    transition: border-color 0.2s;
}
.form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px #008b9c13;
}
.form-control[readonly] {
    background: #f3f6fa;
    color: #6c8095;
}
.form-control::placeholder {
    color: #91a2b5;
}
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}
.metric {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 17px 15px;
    min-height: 91px;
}
.metric-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ebf8fa;
    color: #0096ad;
}
.metric-icon svg {
    width: 25px;
    height: 25px;
}
.metric-icon.amber {
    background: #fff4df;
    color: #e99916;
}
.metric-icon.green {
    background: #e9f9ef;
    color: #009750;
}
.metric-icon.red {
    background: #fff0f2;
    color: #ed4056;
}
.metric-icon.blue {
    background: #edf5ff;
    color: #1586f6;
}
.metric-icon.purple {
    background: #f2ebff;
    color: #8952cc;
}
.metric-icon.gray {
    background: #f0f3f7;
    color: #8492a6;
}
.metric-label {
    font-size: 12px;
    margin-bottom: 3px;
    font-weight: 500;
}
.metric-value {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
}
.metric-unit {
    font-size: 13px;
    letter-spacing: 0;
    font-weight: 400;
    margin-left: 3px;
}
.metric-note {
    font-size: 10px;
    color: #7690a5;
    margin-top: 2px;
}
.grid {
    display: grid;
    gap: 15px;
    margin-bottom: 15px;
}
.grid.two {
    grid-template-columns: 1.28fr 1fr;
}
.grid.equal {
    grid-template-columns: 1fr 1fr;
}
.grid.detail {
    grid-template-columns: 1.45fr 1fr;
}
.stack {
    display: grid;
    gap: 15px;
    align-content: start;
}
.chart {
    width: 100%;
    height: auto;
    display: block;
}
.chart text {
    font-family: "Segoe UI", Arial, sans-serif;
    fill: #7289a0;
    font-size: 11px;
}
.chart .axis {
    stroke: #d5e5ed;
    stroke-width: 1;
}
.chart-wrap {
    position: relative;
}
.chart-legend {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 10px 4px 2px;
    font-size: 11px;
    color: #6d8399;
}
.chart-legend i {
    display: inline-block;
    width: 18px;
    height: 3px;
    background: var(--teal);
    margin-right: 6px;
    vertical-align: middle;
}
.chart-legend i.dash {
    background: #168cff;
    height: 2px;
}
.river-map {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #deebea;
    background: #eaf1e7;
}
.river-map svg {
    display: block;
    width: 100%;
    height: auto;
}
.river-map .point {
    cursor: pointer;
}
.river-map .point:hover circle {
    stroke-width: 5;
}
.river-map text {
    font:
        12px "Segoe UI",
        sans-serif;
    fill: #3d6276;
}
.map-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: #7990a1;
    padding-top: 10px;
    gap: 10px;
}
.legend {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 11px;
    color: #637d95;
}
.legend > span {
    display: flex;
    gap: 6px;
    align-items: center;
}
.legend .dot {
    width: 10px;
    height: 10px;
}
.table-wrap {
    overflow: auto;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 5px;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    white-space: nowrap;
}
th {
    background: #edf3f8;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    color: #45617d;
    padding: 10px 12px;
}
td {
    padding: 10px 12px;
    border-top: 1px solid var(--line);
}
tbody tr:hover {
    background: #f7fbfc;
}
td.wrap {
    white-space: normal;
    min-width: 180px;
    max-width: 350px;
}
.click-row {
    cursor: pointer;
}
.muted {
    color: var(--muted);
}
.tiny {
    font-size: 11px;
}
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    gap: 10px;
}
.note {
    font-size: 12px;
    color: #6b8198;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 13px 0 0;
}
.note svg {
    flex-shrink: 0;
    color: #5c8caa;
}
.notice {
    padding: 13px 16px;
    border-radius: 6px;
    border: 1px solid #ffd499;
    background: #fff7e9;
    color: #a76809;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 13px;
}
.notice.blue {
    background: #eff7ff;
    border-color: #cee4f9;
    color: #426d91;
}
.tabs {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    margin: 6px 0 18px;
    overflow-x: auto;
}
.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    padding: 12px 13px;
    color: #647f99;
}
.tab.active {
    color: var(--teal);
    border-bottom-color: var(--teal);
    background: #eaf7f8;
    font-weight: 600;
}
.segments {
    display: flex;
    border: 1px solid #cfdeea;
    border-radius: 5px;
    overflow: hidden;
}
.segments button {
    padding: 9px 20px;
    flex: 1;
    border: 0;
    border-right: 1px solid var(--line);
    background: white;
    color: #617d97;
}
.segments button:last-child {
    border: 0;
}
.segments button.active {
    background: var(--teal);
    color: white;
}
.field {
    display: grid;
    gap: 6px;
}
.field label {
    font-size: 12px;
    font-weight: 500;
}
.field label .required {
    color: #e75a61;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px 22px;
}
.field.full {
    grid-column: 1/-1;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--line);
}
textarea.form-control {
    resize: vertical;
    min-height: 85px;
}
.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin-top: 13px;
}
.checkbox input {
    accent-color: var(--teal);
    width: 16px;
    height: 16px;
}
.file-zone {
    border: 1px dashed #91bccb;
    padding: 20px;
    border-radius: 6px;
    background: #f8fcfd;
    text-align: center;
    color: #567791;
}
.file-zone input {
    display: block;
    margin: 12px auto 0;
    max-width: 100%;
    font-size: 12px;
}
.attachment-status {
    display: block;
    margin-top: 8px;
    overflow-wrap: anywhere;
    color: #35566f;
    font-size: 12.5px;
}
.attachment-status[hidden] {
    display: none;
}
.step-number {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--teal);
    color: white;
    font-size: 14px;
}
.big-result {
    background: #edf9fa;
    padding: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.big-number {
    font-size: 47px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--teal);
}
.big-result small {
    font-size: 12px;
}
.checks {
    display: grid;
    gap: 18px;
}
.check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 12px;
}
.check > span {
    color: #08996b;
    font-size: 20px;
}
.check small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}
.timeline {
    display: grid;
    padding-left: 5px;
}
.timeline-item {
    display: flex;
    gap: 14px;
    position: relative;
    padding-bottom: 24px;
}
.timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 0;
    left: 6px;
    width: 1px;
    background: #cddfe9;
}
.timeline-item > .dot {
    height: 13px;
    width: 13px;
    background: var(--teal);
    border: 3px solid #e9f8fa;
    flex-shrink: 0;
    margin-top: 4px;
}
.timeline-time {
    width: 64px;
    font-weight: 600;
    font-size: 12px;
}
.timeline-time small {
    font-size: 10px;
    color: #7c94a9;
    font-weight: 400;
    display: block;
}
.timeline-text {
    font-size: 12px;
}
.timeline-text strong {
    display: block;
}
.timeline-text small {
    display: block;
    color: #6d8299;
    margin-top: 3px;
}
.workflow {
    display: grid;
    gap: 24px;
    padding: 5px 0 15px;
}
.workflow-step {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}
.workflow-step:not(:last-child)::after {
    content: "";
    width: 1px;
    height: 24px;
    background: #bacddc;
    position: absolute;
    left: 18px;
    top: 40px;
}
.workflow-step .number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #abc2d3;
    display: grid;
    place-items: center;
    color: #66839a;
    background: #f4f7fb;
    font-size: 17px;
}
.workflow-step.done .number {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}
.workflow-step strong {
    font-size: 13px;
    display: block;
}
.workflow-step small {
    font-size: 11px;
    color: var(--muted);
}
.workflow-step .badge {
    margin-left: auto;
}
.version-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    padding: 14px;
    border-radius: 6px;
    gap: 15px;
}
.version-card strong {
    display: block;
}
.version-card small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}
.threshold-table td {
    padding: 8px;
}
.threshold-table input,
.threshold-table select {
    padding: 6px 9px;
    min-height: 34px;
}
.threshold-table .level-2-row {
    background: #fff4e7;
}
.threshold-table .field-values {
    display: flex;
    gap: 8px;
}
.threshold-table .field-values select {
    width: 70px;
}
.threshold-table .field-values input {
    width: 100px;
}
.mini-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}
.mini-stat strong {
    font-size: 28px;
    display: block;
    margin-top: 4px;
}
.mini-stat span {
    font-size: 12px;
    color: var(--muted);
}
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}
.filter-bar .field {
    min-width: 150px;
    flex: 1;
}
.empty {
    padding: 45px 15px;
    text-align: center;
    color: #8094a7;
}
.empty h3 {
    color: #4b6881;
    font-size: 17px;
}
.empty svg {
    color: #91b8c5;
    width: 40px;
    height: 40px;
}
.notification-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 5px;
    margin-top: 9px;
}
.notification-item .badge {
    margin-left: auto;
}
.notification-item small {
    display: block;
    color: var(--muted);
    font-size: 10px;
}
.loading {
    padding: 70px 20px;
    text-align: center;
    color: #638099;
}
.error-panel {
    border: 1px solid #efc4c9;
    background: #fff5f6;
    padding: 25px;
    border-radius: 8px;
    color: #a53548;
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: #071c3090;
    backdrop-filter: blur(3px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal {
    width: 460px;
    max-width: 100%;
    background: white;
    border-radius: 12px;
    padding: 27px;
    box-shadow: 0 20px 70px #07182944;
    max-height: 90vh;
    overflow: auto;
}
.modal.wide {
    width: 850px;
}
/* Số liệu nội suy (version-editor.js rowsEditor): every tier × point × parameter in one table — the widest dialog, one line per
   cell (no wrapped headings or cut numbers), the heading row and the tier / point columns stay put while scrolling */
.modal.wide.modal-xl {
    width: min(1440px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
}
.modal-overlay:has(.modal-xl) {
    padding: 16px;
}
.modal-xl .scenario-rows-table {
    max-height: calc(100vh - 330px);
    min-height: 220px;
    overflow: auto;
}
.modal-xl .scenario-rows-table table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.modal-xl .scenario-rows-table th,
.modal-xl .scenario-rows-table td {
    white-space: nowrap;
    padding: 6px 8px;
}
.modal-xl .scenario-rows-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f1f5fc;
}
.modal-xl .scenario-rows-table th:nth-child(-n + 2),
.modal-xl .scenario-rows-table td:nth-child(-n + 2) {
    position: sticky;
    background: #fff;
    z-index: 1;
    font-weight: 700;
}
.modal-xl .scenario-rows-table th:nth-child(1),
.modal-xl .scenario-rows-table td:nth-child(1) {
    left: 0;
    min-width: 52px;
}
.modal-xl .scenario-rows-table th:nth-child(2),
.modal-xl .scenario-rows-table td:nth-child(2) {
    left: 52px;
    min-width: 72px;
    box-shadow: 1px 0 0 #e3ebf6;
}
.modal-xl .scenario-rows-table thead th:nth-child(-n + 2) {
    z-index: 3;
    background: #f1f5fc;
}
.modal-xl .scenario-rows-table td input.form-control {
    width: 13ch;
    min-width: 13ch;
    padding: 6px 8px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
/* a compact head: smaller title, less space under it */
.modal.wide.modal-xl {
    padding: 16px 20px 18px;
}
.modal-xl .modal-title {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e3ebf6;
}
.modal-xl .modal-title h2,
:root body#royal-blue-app.royal-blue-interface #modal-root .modal.modal-xl .modal-title h2 {
    font-size: 17px;
    line-height: 1.3;
    gap: 8px;
}
.modal-xl .modal-title .rb-form-title-icon,
:root body#royal-blue-app.royal-blue-interface #modal-root .modal.modal-xl .modal-title .rb-form-title-icon {
    width: 30px;
    height: 30px;
}
.modal-xl #scenario-rows-form {
    gap: 12px;
}
/* the date row: date, button and the count on one line, aligned on the bottom of the input */
.modal-xl .sre-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 12px;
}
.modal-xl .sre-toolbar .field {
    margin: 0;
    width: 200px;
}
.modal-xl .sre-toolbar .btn {
    height: 43px;
    margin: 0;
}
.modal-xl .sre-info {
    margin: 0 0 0 auto;
    align-self: flex-end;
    line-height: 43px;
    color: #5a6f8c;
    font-size: 13px;
}
.modal-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-title h2 {
    margin: 0;
    font-size: 20px;
}
.login-intro {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 20px;
}
.login-options {
    display: flex;
    gap: 6px;
    margin: 15px 0;
}
.login-options button {
    flex: 1;
    white-space: normal;
    padding: 7px 5px;
    font-size: 11px;
}
#toast {
    position: fixed;
    right: 25px;
    bottom: 28px;
    z-index: 200;
    max-width: 500px;
    background: #103d48;
    color: white;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 7px 25px #08253233;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: 0.2s;
    font-size: 13px;
}
#toast.show {
    opacity: 1;
    transform: translateY(0);
}
#toast.error {
    background: #a53147;
}
footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 25px 19px;
    color: #8094a7;
    font-size: 10px;
}
.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #24a67c;
    border-radius: 50%;
    margin-right: 5px;
}
.copy-token {
    overflow-wrap: anywhere;
    background: #f3f7fa;
    border: 1px solid var(--line);
    padding: 15px;
    font-family: monospace;
    font-size: 13px;
}
.compact-metric .metric-value {
    font-size: 21px;
}
.compact-metric {
    padding: 11px;
    min-height: 72px;
}
.compact-metric .metric-icon {
    width: 36px;
    height: 36px;
}
.samples-info {
    font-size: 12px;
    margin-bottom: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.mini-tag {
    color: #8ca0b1;
    font-size: 10px;
}
.processing-status {
    font-size: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.actions-spread {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.section-note {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}
.subchart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.approval-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.code-box {
    background: #f3f7fa;
    border-radius: 5px;
    padding: 12px;
    overflow-x: auto;
    font:
        12px/1.6 Consolas,
        monospace;
}
.privacy-note {
    color: #758c9e;
    font-size: 11px;
}
.public-guidance {
    padding: 12px 16px;
    background: #edf7f8;
    border: 1px solid #d7eaee;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #466b7c;
}
.real-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #8094a6;
}
.scroll-table {
    max-height: 520px;
    overflow: auto;
}
.scroll-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}
.table-count {
    font-size: 11px;
    color: var(--muted);
}
.refresh-time {
    font-size: 11px;
    color: #8294a4;
    white-space: nowrap;
}
.manual-controls {
    display: flex;
    gap: 10px;
}
.inline-error {
    font-size: 12px;
    color: #ca354f;
    display: block;
    margin-top: 12px;
}
.action-link {
    border: 0;
    background: none;
    color: var(--teal);
    font-size: 12px;
    padding: 0;
}
.parameter-pill {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
}
.go-back {
    margin-bottom: 14px;
}
.break-text {
    white-space: normal;
    overflow-wrap: anywhere;
}
.formula-detail {
    white-space: normal;
    min-width: 280px;
    font:
        11px/1.7 Consolas,
        monospace;
}
.footer-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: #ffffffee;
    backdrop-filter: blur(7px);
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 7px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}
.danger-text {
    color: #d14c55;
}
@media (min-width: 1550px) {
    .sidebar {
        width: var(--sidebar-width, 240px);
    }
    .workspace {
        margin-left: var(--sidebar-width, 240px);
    }
    main {
        padding: 27px 30px;
    }
    .metric {
        min-height: 99px;
    }
    .page-head h1 {
        font-size: 32px;
    }
}
@media (max-width: 1200px) {
    .sidebar {
        width: var(--sidebar-width, 240px);
    }
    .workspace {
        margin-left: var(--sidebar-width, 240px);
    }
    .brand {
        padding-left: 12px;
        gap: 9px;
    }
    .brand strong {
        font-size: 15px;
    }
    main {
        padding: 20px 17px;
    }
    .metric-value {
        font-size: 22px;
    }
    .metric {
        gap: 9px;
        padding: 14px 10px;
    }
    .metric-icon {
        width: 37px;
        height: 37px;
    }
    .grid.two {
        grid-template-columns: 1.15fr 1fr;
    }
    .head-actions .refresh-time {
        display: none;
    }
    .grid.detail {
        grid-template-columns: 1.2fr 1fr;
    }
    .page-head h1 {
        font-size: 26px;
    }
}
@media (max-width: 950px) {
    .grid.two,
    .grid.detail {
        grid-template-columns: 1fr;
    }
    .grid.equal {
        grid-template-columns: 1fr;
    }
    .metric-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .metric {
        flex-direction: column;
        gap: 7px;
        align-items: flex-start;
    }
    .metric-value {
        font-size: 20px;
    }
    .toolbar .separator {
        display: none;
    }
    .head-actions {
        gap: 7px;
    }
    .badge.demo {
        font-size: 9px;
    }
    .head-actions .btn {
        padding: 8px 11px;
    }
    .form-grid {
        gap: 15px;
    }
    .page-head {
        align-items: flex-start;
    }
    .grid.detail > .stack {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .grid.detail > .stack > .card:only-child {
        grid-column: 1/-1;
    }
    .grid.detail > .stack > .card:nth-child(3) {
        grid-column: 1/-1;
    }
}
@media (max-width: 950px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width, 240px);
        transition: transform 0.2s;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 15px 0 40px #05293a55;
    }
    .workspace {
        margin-left: 0;
    }
    .mobile-menu {
        display: block;
    }
    .page-head {
        flex-wrap: wrap;
    }
    .head-actions {
        width: 100%;
    }
    .metric {
        flex-direction: row;
        align-items: center;
    }
    .metric-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 740px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width, 240px);
        transition: transform 0.2s;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 15px 0 40px #05293a55;
    }
    .workspace {
        margin-left: 0;
    }
    .mobile-menu {
        display: block;
    }
    .topbar {
        height: 53px;
        padding: 0 15px;
        gap: 12px;
    }
    .topbar #breadcrumb {
        flex: 1;
        font-size: 11px;
    }
    .topbar-right {
        gap: 10px;
    }
    .account .account-name {
        display: none;
    }
    .page-head {
        flex-wrap: wrap;
        gap: 12px;
    }
    .page-head h1 {
        font-size: 26px;
    }
    .head-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }
    .metric {
        flex-direction: row;
        align-items: center;
        padding: 13px 10px;
        min-height: 87px;
    }
    .metric-icon {
        width: 38px;
        height: 38px;
    }
    .metric-value {
        font-size: 23px;
    }
    .metric-unit {
        font-size: 11px;
    }
    .toolbar {
        gap: 10px;
    }
    .toolbar .station-selector {
        min-width: 100%;
        max-width: 100%;
    }
    .toolbar-info {
        font-size: 11px !important;
    }
    .grid.detail > .stack {
        display: grid;
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .field.full {
        grid-column: auto;
    }
    .mini-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    .segments button {
        padding: 8px 13px;
    }
    .card {
        padding: 15px;
    }
    .card-title h2 {
        font-size: 15px;
    }
    .table-footer {
        align-items: flex-start;
        flex-direction: column;
    }
    .map-foot {
        align-items: flex-start;
        flex-direction: column;
    }
    .notice {
        font-size: 12px;
    }
    .subchart-grid {
        grid-template-columns: 1fr;
    }
    .footer-actions {
        gap: 10px;
        flex-wrap: wrap;
    }
    .filter-bar .field {
        min-width: 130px;
    }
    .version-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .chart-legend {
        gap: 12px;
        flex-wrap: wrap;
    }
    .form-actions {
        flex-wrap: wrap;
    }
    footer {
        font-size: 9px;
        padding: 8px 17px 14px;
    }
    .big-result {
        padding: 18px;
    }
    .topbar .notification-button svg {
        width: 19px;
        height: 19px;
    }
}
@media print {
    .sidebar,
    .topbar,
    footer,
    .btn,
    .head-actions,
    #toast {
        display: none;
    }
    .workspace {
        margin: 0;
    }
    main {
        padding: 0;
    }
    .card {
        break-inside: avoid;
    }
    body {
        background: white;
    }
}

.admin-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}
.admin-tabs .btn {
    font-size: 13px;
    padding: 8px 13px;
}
.settings-title {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
}
.settings-array {
    margin: 24px 0;
    border-top: 1px solid var(--line);
    padding-top: 15px;
}
.settings-array .form-control {
    min-width: 130px;
}
.settings-array td {
    vertical-align: middle;
}
.settings-row-actions {
    white-space: nowrap;
    min-width: 90px;
}
.settings-row-actions button {
    padding: 6px;
}
.danger {
    color: #c62845;
}
.settings-array input[type="checkbox"] {
    width: 18px;
    height: 18px;
}
.brand img {
    width: 46px;
    height: 54px;
    object-fit: contain;
}
.settings-title .card-title {
    margin-bottom: 10px;
}
#admin-panel hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 24px 0;
}

.card {
    border-radius: var(--card-radius, 12px);
}
body.compact-layout .card {
    padding: 14px;
}
body.compact-layout td,
body.compact-layout th {
    padding: 8px 10px;
}

.stack,
.card,
.field,
.grid > *,
.settings-array,
#admin-panel,
.table-wrap,
#api-preview-result,
.form-grid > * {
    min-width: 0;
}
.stack {
    grid-template-columns: minmax(0, 1fr);
}
.form-actions > label {
    min-width: 0;
    max-width: 100%;
}
.settings-title {
    flex-wrap: wrap;
}
td.wrap {
    overflow-wrap: anywhere;
}

.geographic-map{width:100%;min-height:260px;border:1px solid var(--line);border-radius:8px;z-index:0;background:#e7eff3}
.geographic-toolbar{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-bottom:10px;font-size:12px;color:var(--muted)}
.geographic-toolbar .action-link{margin-left:12px}.geographic-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:12px 0 0}
.geographic-pending{background:#f4f8fb;border-radius:7px;padding:12px;margin-top:12px;font-size:12px}.geographic-pending>div{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.geographic-pending small{color:var(--muted)}
.geographic-message{font-size:12px;color:#a16300;margin:8px 0}.geographic-message:empty{display:none}
.geographic-marker{position:relative;width:34px;height:34px;background:var(--point-color);border:3px solid white;border-radius:50%;box-shadow:0 2px 8px #16334460;display:flex;align-items:center;justify-content:center;color:white;font-size:20px}
.geographic-marker.unconfirmed{border:3px dashed #c68a19;background:white;color:var(--point-color)}.geographic-marker.selected{outline:3px solid #168d9c55}
.geographic-marker b{position:absolute;top:35px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:2px 7px;background:#ffffffee;box-shadow:0 1px 4px #0002;border-radius:4px;color:#14334a;font:600 12px "Segoe UI",sans-serif}
.geographic-popup{font:13px/1.5 "Segoe UI",sans-serif;min-width:210px}.geographic-popup strong{font-size:15px}.geographic-popup p{margin:8px 0!important}.geographic-coordinates{font-variant-numeric:tabular-nums}.geographic-warning{color:#966306}.geographic-map .leaflet-control-attribution{font-size:10px;max-width:95%}
#location-preview[hidden]{display:none!important}

.btn[hidden],#import-version-field[hidden]{display:none!important}
#import-preview .table-wrap{max-height:360px;overflow:auto} #import-preview td{max-width:280px;min-width:100px} .head-actions{flex-wrap:wrap}
/* River workspace and dashboard hierarchy */
.card{box-shadow:0 4px 20px #12385207}.metric{position:relative;overflow:hidden;min-height:104px;padding:19px}.metric:before{content:'';position:absolute;left:0;top:19px;bottom:19px;width:3px;background:var(--teal);opacity:.3;border-radius:3px}.metric-value{font-variant-numeric:tabular-nums;letter-spacing:-.7px}.page-head h1{font-size:clamp(23px,2.1vw,30px)}
.form-control:focus{outline:2px solid color-mix(in srgb,var(--teal) 30%,transparent);border-color:var(--teal)}button:focus-visible,a:focus-visible{outline:3px solid color-mix(in srgb,var(--teal) 55%,transparent)}.scroll-table{scrollbar-width:thin}.scroll-table thead th{position:sticky;top:0;z-index:2}
.dashboard-map-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;margin-bottom:20px}.dashboard-map-card{padding:22px}.eyebrow{display:block;color:var(--teal);font-size:10px;font-weight:750;letter-spacing:1.6px;margin-bottom:5px}
.river-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.river-header h3{margin:0;font-size:23px;letter-spacing:-.5px}.river-header p{margin:4px 0 0;color:var(--muted);font-size:12px}
.map-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.map-segment{display:flex;background:var(--bg);padding:4px;border:1px solid var(--line);border-radius:9px}.map-segment button{background:transparent;color:var(--muted);border:0;padding:7px 12px;font-size:12px;border-radius:6px;white-space:nowrap}.map-segment button.active{background:white;color:var(--teal);box-shadow:0 2px 6px #12385212;font-weight:650}
.river-canvas{position:relative}.river-canvas .geographic-map{border-radius:12px;background:#eaf3f2;border:1px solid var(--line);isolation:isolate}.map-compass{position:absolute;right:15px;top:15px;z-index:500;width:46px;background:#ffffffed;border:1px solid var(--line);border-radius:10px;box-shadow:0 4px 16px #12385216;text-align:center;padding:6px;pointer-events:none}.map-compass span{display:block;font-size:24px;color:var(--teal);line-height:1.2}.map-compass b{font-size:8px;letter-spacing:1px;color:var(--muted)}
.map-floating-tools{position:absolute;right:15px;bottom:33px;z-index:500;display:flex;gap:6px}.map-floating-tools button{background:#ffffffed;border:1px solid var(--line);padding:8px 12px;border-radius:7px;color:var(--ink);font-size:12px;box-shadow:0 2px 10px #12385210}
.river-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0}.river-footer .geographic-legend{margin:0;flex-wrap:wrap;color:var(--muted)}.map-angle{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;white-space:nowrap}.map-angle input{width:120px;accent-color:var(--teal)}.map-angle output{width:35px;text-align:right;font-variant-numeric:tabular-nums}
.river-stations{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:8px}.river-station{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid var(--line);background:white;border-radius:9px;padding:12px;color:var(--ink);transition:background .15s,border-color .15s}.river-station.active,.river-station:hover{background:color-mix(in srgb,var(--teal) 5%,white);border-color:color-mix(in srgb,var(--teal) 45%,var(--line))}.river-station i{width:9px;height:9px;border-radius:50%;flex-shrink:0}.river-station strong{display:block;font-size:13px}.river-station small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.river-station b{margin-left:auto;color:var(--muted);font-size:13px}
.map-disclaimer{font-size:11px;color:var(--muted);border-left:2px solid #d7a341;padding:5px 10px;margin:12px 0 0;line-height:1.7}.geographic-message:empty{display:none}.geographic-popup .eyebrow{font-size:9px}.geographic-popup>strong{display:block;font-size:17px;margin-top:5px}.geographic-marker b{box-shadow:0 3px 12px #12385222;border:1px solid #ffffffaa}
.river-workspace.expanded{position:fixed;inset:16px;z-index:1100;background:white;box-shadow:0 0 0 30px #102f47aa;border-radius:14px;padding:22px;overflow:auto}.river-workspace.expanded .geographic-map{height:calc(100dvh - 290px)!important;min-height:260px}
@media(min-width:1500px){.dashboard-map-grid{grid-template-columns:minmax(0,1.8fr) minmax(320px,1fr)}.dashboard-trend-card{display:flex;flex-direction:column;justify-content:center}}
@media(max-width:760px){.river-header{align-items:flex-start;flex-direction:column}.dashboard-map-card{padding:14px}.river-footer{align-items:flex-start;flex-direction:column}.map-actions{width:100%;justify-content:space-between}.river-header h3{font-size:20px}.map-angle{width:100%}.map-angle input{flex:1}.river-workspace.expanded{inset:6px;padding:12px}.river-workspace.expanded .geographic-map{height:calc(100dvh - 380px)!important}.river-stations{grid-template-columns:repeat(2,minmax(0,1fr))}.map-floating-tools button{padding:7px 9px}.metric{padding:14px;min-height:95px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* ==== river-studio.css ==== */
@font-face {
    font-family: Manrope;
    src: url("/fonts/manrope/Manrope.woff2") format("woff2"), url("/fonts/manrope/Manrope.ttf") format("truetype");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
:root {
    --instrument-background: #173e49;
    --nav-text: #173e49;
    --instrument-text: #fff;
    --shadow: none;
    --line: #d9e3e9;
}
body {
    font-family: var(--font-family, Manrope), sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.sidebar {
    background: var(--navy);
    color: var(--nav-text);
    border-right: 1px solid var(--line);
}
.brand {
    color: var(--nav-text);
    align-items: flex-start;
    padding: 29px 21px 32px;
    gap: 10px;
}
.brand strong {
    font-size: 15px;
    letter-spacing: -0.35px;
    font-weight: 800;
    line-height: 1.3;
}
.brand small {
    color: color-mix(in srgb, var(--nav-text) 67%, transparent);
    font-size: 11px;
    margin-top: 5px;
}
.brand #brand-logo svg {
    width: 35px;
    height: 40px;
}
.sidebar nav {
    gap: 3px;
    padding: 0 12px;
}
.nav-item {
    color: color-mix(in srgb, var(--nav-text) 80%, transparent);
    padding: 11px 12px;
    gap: 11px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
}
.nav-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}
.nav-item:hover {
    background: color-mix(in srgb, var(--teal) 6%, transparent);
}
.nav-item.active {
    color: var(--teal);
    background: color-mix(in srgb, var(--teal) 10%, var(--navy));
    box-shadow: none;
}
.nav-item.active svg {
    opacity: 1;
}
.sidebar-bottom {
    border-color: var(--line);
    color: color-mix(in srgb, var(--nav-text) 65%, transparent);
    gap: 10px;
    margin: 28px 20px 24px;
    font-size: 10px;
}
.sidebar-bottom strong {
    color: var(--nav-text);
    font-size: 12px;
}
.institute {
    font-size: 23px;
}
.sidebar nav {
    overflow: auto;
}
.topbar {
    background: var(--bg);
    height: 64px;
    border: 0;
    padding: 0 28px;
    color: var(--muted);
    font-size: 11px;
}
.topbar-right {
    gap: 18px;
}
.account {
    font-weight: 600;
}
.avatar {
    border-radius: 10px;
    background: var(--white);
    border: 1px solid var(--line);
}
.notification-button::after {
    display: none;
}
.icon-button {
    color: var(--ink);
}
main {
    padding: 14px 28px 30px;
    max-width: 1800px;
}
.page-head {
    align-items: flex-start;
    margin-bottom: 26px;
    gap: 24px;
}
.page-head h1 {
    font-size: clamp(27px, 2.4vw, 37px);
    font-weight: 650;
    letter-spacing: -1.35px;
    line-height: 1.2;
    margin-bottom: 10px;
}
.subtitle {
    font-size: 13px;
    color: var(--muted);
    max-width: 68ch;
    line-height: 1.65;
}
.head-actions {
    gap: 8px;
    justify-content: flex-end;
    max-width: 48%;
    align-items: center;
}
.head-actions .refresh-time {
    display: none;
}
.btn {
    border-radius: 8px;
    box-shadow: none;
    border-color: var(--teal);
    font-size: 12px;
    font-weight: 650;
    padding: 10px 14px;
    min-height: 38px;
}
.btn.secondary {
    background: var(--white);
    border-color: var(--line);
    color: var(--ink);
}
.btn.secondary:hover {
    background: color-mix(in srgb, var(--teal) 5%, var(--white));
    border-color: var(--teal);
}
.btn.ghost {
    background: transparent;
    color: var(--muted);
    box-shadow: none;
}
.btn.small {
    padding: 7px 11px;
    min-height: 32px;
}
.badge {
    border-radius: 6px;
    font-size: 10px;
    font-weight: 650;
    padding: 4px 7px;
}
.badge.demo {
    background: #fff2d8;
    color: #825513;
    border: 1px solid #e7d6af;
    letter-spacing: 0;
}
.card {
    box-shadow: none;
    background: var(--white);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius, 12px);
}
.card-title {
    margin-bottom: 21px;
}
.card-title h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.35px;
}
.card-title h2 svg {
    color: var(--muted);
    width: 18px;
    height: 18px;
}
.section-note,
.note {
    line-height: 1.75;
    color: var(--muted);
}
.form-control {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    border-radius: 7px;
    min-height: 40px;
    font-size: 12px;
    padding: 10px 12px;
}
.form-control[readonly] {
    background: var(--bg);
}
.field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 7px;
}
.form-grid {
    gap: 20px;
}
.toolbar {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 18px;
}
.tabs {
    border-color: var(--line);
}
.tabs button {
    font-size: 12px;
    font-weight: 650;
    padding: 13px 16px;
}
.tabs button.active {
    color: var(--teal);
    background: transparent;
}
.segments {
    border-radius: 8px;
    background: var(--bg);
    padding: 3px;
}
.segments button {
    border-radius: 5px;
    font-size: 11px;
}
.segments button.active {
    background: var(--white);
    color: var(--teal);
    box-shadow: 0 1px 3px #173e4910;
}
.admin-tabs {
    gap: 5px;
    margin-bottom: 20px;
    align-items: center;
}
.admin-tabs .btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--muted);
    font-size: 11px;
    padding: 9px 11px;
}
.admin-tabs .btn:not(.secondary) {
    background: var(--white);
    border-color: var(--line);
    color: var(--teal);
}
.table-wrap {
    border-radius: 8px;
    border: 1px solid var(--line);
}
table {
    font-size: 12px;
}
thead th {
    background: var(--bg);
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    padding: 13px 15px;
    letter-spacing: 0;
}
tbody td {
    padding: 15px;
    border-bottom: 1px solid var(--line);
}
tbody tr:last-child td {
    border-bottom: 0;
}
.click-row:hover {
    background: color-mix(in srgb, var(--teal) 4%, var(--white));
}
.table-footer {
    padding-top: 16px;
}
.notice {
    border-radius: 8px;
    box-shadow: none;
    font-size: 12px;
    padding: 14px 18px;
}
.notice.blue {
    background: color-mix(in srgb, var(--teal) 7%, var(--white));
    border-color: color-mix(in srgb, var(--teal) 15%, var(--line));
    color: var(--ink);
}
.modal {
    border-radius: 16px;
    box-shadow: 0 24px 90px #173e4933;
    background: var(--white);
}
.modal-head h2 {
    font-size: 23px;
    letter-spacing: -0.6px;
}
.workflow-step {
    padding: 16px 0;
}
.workflow-step .number {
    border-radius: 7px;
}
.footer-actions {
    border-radius: 10px;
    box-shadow: none;
}
.version-card {
    border-radius: 9px;
    background: var(--white);
}
.file-zone {
    background: var(--bg);
    border-color: var(--line);
    padding: 30px;
}
.error-panel,
.empty {
    background: var(--white);
    border-radius: 12px;
}
.error-panel p,
.empty p {
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}
.action-menu {
    position: relative;
    font-size: 12px;
}
.action-menu > summary {
    cursor: pointer;
    list-style: none;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    font-weight: 600;
    color: var(--ink);
}
.action-menu > summary::-webkit-details-marker {
    display: none;
}
.action-menu > summary:after {
    content: "⌄";
    margin-left: 9px;
    color: var(--muted);
}
.action-menu[open] > summary {
    border-color: var(--teal);
}
.action-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 7px);
    display: grid;
    gap: 5px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 35px #173e491a;
    padding: 7px;
    min-width: 240px;
    z-index: 800;
}
.action-menu-panel .btn {
    border: 0;
    justify-content: flex-start;
    width: 100%;
    background: transparent;
}
.river-observatory {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: stretch;
    border-radius: 16px;
    background: var(--white);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--line);
}
.river-observatory-map {
    min-width: 0;
    padding: 22px;
}
.river-header {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 17px;
}
.river-header h3 {
    font-size: 27px;
    letter-spacing: -0.8px;
    font-weight: 650;
}
.river-header p {
    font-size: 11px;
}
.river-instruction {
    font-size: 11px;
    color: var(--muted);
    display: block;
    margin-bottom: 4px;
    letter-spacing: 0;
}
.map-actions {
    gap: 7px;
}
.map-segment {
    background: var(--bg);
    border: 0;
    border-radius: 7px;
    padding: 3px;
}
.map-segment button {
    font-size: 10px;
    padding: 7px 9px;
    border-radius: 5px;
}
.map-segment button.active {
    box-shadow: none;
}
.river-canvas .geographic-map {
    border-radius: 10px;
    border: 0;
}
.map-compass {
    border-radius: 8px;
    box-shadow: none;
}
.map-floating-tools button {
    font-size: 10px;
    box-shadow: 0 2px 7px #173e4910;
    border-radius: 6px;
}
.river-footer {
    padding: 14px 0;
    flex-wrap: wrap;
}
.geographic-legend {
    font-size: 10px;
    gap: 11px;
}
.map-angle {
    font-size: 10px;
}
.map-angle input {
    width: 90px;
}
.river-stations {
    gap: 5px;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}
.river-station {
    padding: 9px 8px;
    border-radius: 7px;
    gap: 6px;
    background: var(--bg);
    border-color: transparent;
}
.river-station strong {
    font-size: 12px;
}
.river-station small {
    font-size: 9px;
}
.river-station i {
    width: 6px;
    height: 6px;
}
.river-station.active {
    border-color: var(--teal);
    background: color-mix(in srgb, var(--teal) 7%, var(--white));
}
.map-disclaimer {
    font-size: 10px;
    line-height: 1.7;
    margin: 13px 0 0;
    padding: 0 0 0 10px;
    max-width: 90ch;
}
.geographic-popup .eyebrow {
    letter-spacing: 0;
    font-size: 11px;
}
.geographic-popup > strong {
    font-family: var(--font-family);
    font-size: 18px;
}
.geographic-marker b {
    font-family: var(--font-family);
    font-size: 11px;
    border-radius: 5px;
    padding: 4px 7px;
}
.geographic-marker {
    box-shadow: 0 2px 7px #173e4920;
}
.station-instrument {
    background: var(--instrument-background);
    color: var(--instrument-text);
    padding: 23px 22px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.instrument-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: color-mix(in srgb, var(--instrument-text) 72%, transparent);
}
.instrument-top .badge {
    background: var(--white) !important;
}
.station-instrument h2 {
    font-size: 23px;
    font-weight: 650;
    letter-spacing: -0.6px;
    line-height: 1.3;
    margin: 13px 0 17px;
}
.instrument-selector .form-control {
    color: var(--instrument-text);
    background: color-mix(in srgb, var(--instrument-text) 8%, transparent);
    border-color: color-mix(in srgb, var(--instrument-text) 22%, transparent);
    font-size: 11px;
}
.instrument-selector option {
    color: var(--ink);
    background: var(--white);
}
.instrument-source {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    align-items: center;
    margin: 13px 0 10px;
    color: color-mix(in srgb, var(--instrument-text) 74%, transparent);
    font-size: 9px;
}
.instrument-source .badge {
    font-size: 9px;
    background: color-mix(in srgb, var(--instrument-text) 14%, transparent);
    color: var(--instrument-text);
}
.instrument-readings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    margin-bottom: 14px;
}
.instrument-readings .metric {
    display: block;
    background: transparent;
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid
        color-mix(in srgb, var(--instrument-text) 15%, transparent);
    padding: 13px 0;
    min-height: 85px;
    border-radius: 0;
    overflow: visible;
}
.instrument-readings .metric:before {
    display: none;
}
.instrument-readings .metric-icon {
    display: none;
}
.instrument-readings .metric-label {
    font-size: 10px;
    color: color-mix(in srgb, var(--instrument-text) 73%, transparent);
    font-weight: 500;
}
.instrument-readings .metric-value {
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -1px;
    color: var(--instrument-text);
    line-height: 1.4;
    margin-top: 3px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}
.instrument-readings .metric-unit {
    font-size: 10px;
    letter-spacing: 0;
    color: color-mix(in srgb, var(--instrument-text) 70%, transparent);
    margin: 0;
    white-space: normal;
}
.instrument-readings .metric-note {
    font-size: 9px;
    color: color-mix(in srgb, var(--instrument-text) 70%, transparent);
    line-height: 1.5;
    margin-top: 3px;
}
.instrument-provenance {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 9px;
    color: color-mix(in srgb, var(--instrument-text) 72%, transparent);
    margin: auto 0 17px;
}
.instrument-provenance strong {
    display: block;
    color: var(--instrument-text);
    font-size: 10px;
    font-weight: 500;
    margin-top: 3px;
}
.instrument-detail {
    color: var(--instrument-text);
    background: color-mix(in srgb, var(--instrument-text) 9%, transparent);
    border-color: color-mix(in srgb, var(--instrument-text) 25%, transparent);
    width: 100%;
    font-size: 11px;
}
.instrument-detail:hover {
    background: color-mix(in srgb, var(--instrument-text) 15%, transparent);
}
.river-analysis {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 26px;
    margin: 28px 0;
}
.analysis-trend,
.data-context {
    min-width: 0;
}
.analysis-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.analysis-heading h2,
.data-context h2 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.45px;
    margin: 0 0 4px;
}
.analysis-heading p {
    font-size: 11px;
    color: var(--muted);
    margin: 0;
}
.analysis-heading > .form-control {
    max-width: 160px;
    background: var(--white);
    font-size: 11px;
    min-height: 34px;
}
.analysis-heading > span {
    font-size: 11px;
    color: var(--muted);
}
.analysis-trend {
    background: var(--white);
    padding: 22px;
    border-radius: 12px;
    border: 1px solid var(--line);
}
.data-context {
    padding: 18px 0 0;
}
.data-context h2 {
    margin-bottom: 20px;
}
.context-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding: 11px 0;
    font-size: 11px;
}
.context-row > span {
    color: var(--muted);
    max-width: 65%;
}
.context-row strong {
    font-size: 11px;
    text-align: right;
    font-weight: 650;
}
.data-context p {
    font-size: 11px;
    line-height: 1.8;
    color: var(--muted);
    margin-top: 18px;
}
.fleet-comparison {
    background: var(--white);
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.fleet-comparison .table-wrap {
    border: 0;
}
.fleet-comparison .table-footer {
    border-top: 1px solid var(--line);
}
.public-guidance {
    background: transparent;
    padding: 0;
    border: 0;
    color: var(--muted);
    font-size: 12px;
    margin: 0 0 18px;
    max-width: 78ch;
}
.metric {
    box-shadow: none;
}
.metric:before {
    display: none;
}
.metric-icon {
    border-radius: 10px;
}
.metric-grid .metric {
    min-height: 105px;
}
.eyebrow {
    letter-spacing: 0;
    font-size: 11px;
    font-weight: 500;
}
body footer {
    color: var(--muted);
    font-size: 10px;
    background: transparent;
    border-color: var(--line);
    padding: 18px 28px;
}
.river-workspace.expanded {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
}
@media (min-width: 1600px) {
    .river-observatory,
    .river-analysis {
        grid-template-columns: minmax(0, 1fr) 350px;
    }
    .station-instrument {
        padding: 27px;
    }
    .instrument-readings .metric-value {
        font-size: 32px;
    }
    .river-observatory-map {
        padding: 26px;
    }
}
@media (max-width: 1100px) {
    .river-observatory,
    .river-analysis {
        grid-template-columns: minmax(0, 1fr) 285px;
    }
    .river-observatory-map {
        padding: 16px;
    }
    .station-instrument {
        padding: 20px 17px;
    }
    .head-actions {
        max-width: 52%;
    }
    .page-head h1 {
        font-size: 29px;
    }
    .river-header h3 {
        font-size: 24px;
    }
    .river-footer {
        align-items: flex-start;
    }
    .map-angle {
        width: 100%;
    }
    .map-angle input {
        flex: 1;
    }
}
@media (max-width: 950px) {
    .river-observatory,
    .river-analysis {
        grid-template-columns: minmax(0, 1fr);
    }
    .station-instrument {
        padding: 23px;
    }
    .instrument-readings {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 22px;
    }
    .instrument-provenance {
        margin-top: 8px;
    }
    .instrument-detail {
        width: auto;
        align-self: flex-start;
    }
    .instrument-selector {
        max-width: 360px;
    }
    .river-analysis {
        gap: 12px;
    }
    .data-context {
        padding: 16px 4px;
    }
    .page-head {
        flex-wrap: wrap;
    }
    .head-actions {
        max-width: 100%;
        justify-content: flex-start;
    }
    .river-header {
        align-items: center;
    }
    .map-angle {
        width: auto;
    }
    .map-angle input {
        width: 110px;
        flex: none;
    }
}
@media (max-width: 740px) {
    .sidebar {
        width: var(--sidebar-width);
        border-right: 1px solid var(--line);
    }
    .workspace {
        margin-left: 0;
    }
    .topbar {
        height: 55px;
        padding: 0 17px;
    }
    .mobile-menu {
        display: block;
    }
    main {
        padding: 14px 16px 22px;
    }
    .page-head {
        margin-bottom: 20px;
        gap: 16px;
    }
    .page-head h1 {
        font-size: 28px;
        letter-spacing: -0.8px;
    }
    .subtitle {
        font-size: 12px;
    }
    .head-actions {
        width: 100%;
        gap: 6px;
    }
    .head-actions .btn,
    .action-menu > summary {
        font-size: 11px;
        padding: 8px 10px;
    }
    .action-menu-panel {
        left: 0;
        right: auto;
        min-width: 230px;
    }
    .river-observatory {
        border-radius: 12px;
    }
    .river-observatory-map {
        padding: 15px;
    }
    .river-header {
        align-items: flex-start;
    }
    .river-header h3 {
        font-size: 25px;
    }
    .map-actions {
        justify-content: flex-start;
        width: auto;
    }
    .river-footer {
        flex-direction: column;
    }
    .map-angle {
        width: 100%;
    }
    .map-angle input {
        flex: 1;
    }
    .river-stations {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .river-station small {
        font-size: 8px;
    }
    .station-instrument {
        padding: 21px;
    }
    .instrument-readings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .instrument-readings .metric {
        min-height: 78px;
    }
    .instrument-readings .metric-value {
        font-size: 29px;
    }
    .river-analysis {
        margin: 21px 0;
    }
    .analysis-trend,
    .fleet-comparison {
        padding: 16px;
    }
    .analysis-heading h2,
    .data-context h2 {
        font-size: 16px;
    }
    .analysis-heading {
        align-items: flex-start;
        gap: 10px;
        flex-wrap: wrap;
    }
    .analysis-heading > .form-control {
        max-width: 100%;
        width: auto;
    }
    .context-row {
        font-size: 12px;
    }
    .context-row strong {
        font-size: 12px;
    }
    .data-context p {
        font-size: 12px;
    }
    .card {
        padding: 17px;
    }
    .admin-tabs {
        flex-wrap: nowrap;
        overflow: auto;
        align-items: stretch;
        padding-bottom: 6px;
    }
    .admin-tabs .btn {
        flex-shrink: 0;
    }
    .river-workspace.expanded .geographic-map {
        height: calc(100dvh - 380px) !important;
    }
    .form-control {
        font-size: 16px;
    }
    .instrument-selector .form-control {
        font-size: 16px;
    }
    .form-grid {
        gap: 16px;
    }
    .settings-array .form-control {
        font-size: 12px;
    }
    .table-footer .legend {
        gap: 10px;
    }
    .topbar-right {
        gap: 12px;
    }
    .account .account-name {
        display: none;
    }
    body footer {
        padding: 17px;
        font-size: 9px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
@media print {
    .station-instrument {
        background: white;
        color: black;
        --instrument-text: #000;
    }
    .river-observatory,
    .river-analysis {
        display: block;
    }
    .action-menu {
        display: none;
    }
    .sidebar,
    .topbar {
        display: none;
    }
    .workspace {
        margin-left: 0;
    }
    main {
        padding: 0;
    }
    .fleet-comparison,
    .river-observatory-map,
    .analysis-trend {
        border: 0;
    }
    .instrument-readings .metric {
        color: black;
        border-color: #ccc;
    }
}
.notification-count {
    position: absolute;
    right: -6px;
    top: -5px;
    background: var(--teal);
    color: white;
    font-size: 8px;
    border-radius: 5px;
    min-width: 14px;
    padding: 1px 3px;
    line-height: 1.5;
    border: 2px solid var(--bg);
}
.appearance-section {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0;
    margin: 0;
    min-width: 0;
}
.appearance-section legend {
    padding: 0 12px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.25px;
}
.appearance-section .form-grid {
    margin-top: 12px;
}
.modal-title h2 {
    font-size: 23px;
    letter-spacing: -0.6px;
    font-weight: 650;
}
.nav-item {
    overflow-wrap: anywhere;
    line-height: 1.45;
}
.nav-item svg {
    flex-shrink: 0;
}
.river-station strong,
.river-station small {
    overflow-wrap: anywhere;
}
.instrument-readings .metric-note {
    overflow-wrap: anywhere;
}

/* ==== river-glass.css ==== */
/* Glass observatory: shared tokens keep admin configuration authoritative. */
body.glass-interface {
    --line: color-mix(in srgb, var(--teal) 22%, transparent);
    background:
        radial-gradient(
            ellipse at 78% 2%,
            color-mix(in srgb, var(--teal) 15%, transparent),
            transparent 46%
        ),
        radial-gradient(ellipse at 18% 55%, #7559eb13, transparent 40%),
        var(--bg);
    background-attachment: fixed;
    color: var(--ink);
}
.glass-interface .sidebar {
    background: color-mix(in srgb, var(--navy) 76%, transparent);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-right: 1px solid var(--line);
}
.glass-interface .topbar {
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--line);
}
.glass-interface .nav-item.active {
    background: color-mix(in srgb, var(--teal) 13%, transparent);
    box-shadow:
        inset 2px 0 var(--teal),
        0 0 18px color-mix(in srgb, var(--teal) 6%, transparent);
    color: var(--teal);
}
.glass-interface .card,
.glass-interface .river-observatory,
.glass-interface .analysis-trend,
.glass-interface .fleet-comparison,
.glass-interface .data-context,
.glass-interface .toolbar,
.glass-interface .version-card,
.glass-interface .footer-actions {
    background: linear-gradient(
        125deg,
        color-mix(in srgb, var(--white) 78%, transparent),
        color-mix(in srgb, var(--white) 48%, transparent)
    );
    border: 1px solid var(--line);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow:
        inset 0 1px 0 #ffffff08,
        0 16px 40px #00000016;
    border-radius: var(--card-radius, 20px);
}
.glass-interface .river-observatory {
    overflow: visible;
    gap: 0;
}
.glass-interface .river-observatory-map {
    border-radius: var(--card-radius);
    overflow: hidden;
}
.glass-interface .station-instrument {
    background: linear-gradient(
        165deg,
        color-mix(in srgb, var(--instrument-background) 88%, transparent),
        color-mix(in srgb, var(--white) 44%, transparent)
    );
    border-left: 1px solid var(--line);
    border-radius: 0 var(--card-radius) var(--card-radius) 0;
    backdrop-filter: blur(var(--glass-blur));
}
.glass-interface .instrument-readings {
    gap: 9px;
    margin: 15px 0 18px;
}
.glass-interface .instrument-readings .metric {
    padding: 12px 10px;
    min-height: 90px;
    border: 1px solid color-mix(in srgb, var(--teal) 17%, transparent);
    border-radius: 12px;
    background: linear-gradient(125deg, #ffffff07, #ffffff02);
    box-shadow: inset 0 1px 0 #ffffff06;
}
.glass-interface .instrument-readings .metric-value {
    font-size: 26px;
}
.glass-interface .instrument-readings .metric-label {
    color: var(--muted);
}
.glass-interface .data-context {
    padding: 22px;
}
.glass-interface .river-analysis {
    gap: 20px;
}
.glass-interface .analysis-trend,
.glass-interface .fleet-comparison {
    box-shadow:
        inset 0 1px 0 #ffffff08,
        0 15px 40px #00000012;
}
.glass-interface .btn {
    background: var(--teal);
    color: #06212d;
    border-color: var(--teal);
    box-shadow: 0 0 20px color-mix(in srgb, var(--teal) 12%, transparent);
}
.glass-interface .btn.secondary,
.glass-interface .btn.ghost,
.glass-interface .instrument-detail {
    background: #ffffff05;
    color: var(--ink);
    border-color: var(--line);
    box-shadow: none;
}
.glass-interface .btn.secondary:hover,
.glass-interface .btn.ghost:hover {
    background: color-mix(in srgb, var(--teal) 11%, transparent);
}
.glass-interface .form-control {
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    border-color: var(--line);
    color: var(--ink);
}
.glass-interface select option {
    background: var(--bg);
    color: var(--ink);
}
.glass-interface .form-control[readonly] {
    background: #ffffff03;
    color: var(--muted);
}
.glass-interface .modal {
    background: color-mix(in srgb, var(--white) 95%, var(--bg));
    border: 1px solid var(--line);
    box-shadow: 0 25px 100px #0009;
    backdrop-filter: blur(var(--glass-blur));
}
.glass-interface .modal-overlay {
    background: #020916a6;
    backdrop-filter: blur(6px);
}
.glass-interface .map-segment,
.glass-interface .segments {
    background: #00000020;
    border: 1px solid var(--line);
}
.glass-interface .map-segment button.active,
.glass-interface .segments button.active {
    background: color-mix(in srgb, var(--teal) 16%, var(--white));
    color: var(--teal);
}
.glass-interface .map-floating-tools button,
.glass-interface .map-compass {
    background: color-mix(in srgb, var(--white) 85%, transparent);
    backdrop-filter: blur(14px);
    color: var(--ink);
    border-color: var(--line);
}
/* Affect only raster tiles: markers, waterway geometry and labels keep their own colors. */
.glass-interface .leaflet-tile-pane {
    filter: invert(0.92) hue-rotate(180deg) saturate(0.55) brightness(0.8) contrast(0.95);
}
.glass-interface .geographic-map {
    background: #091823;
    box-shadow: inset 0 0 40px #0005;
    border: 1px solid var(--line);
}
.glass-interface .leaflet-control-zoom a,
.glass-interface .leaflet-control-attribution {
    background: var(--white);
    color: var(--ink);
}
.glass-interface .leaflet-control-attribution a {
    color: var(--teal);
}
.glass-interface .leaflet-control-scale-line {
    background: #102838cc;
    color: #d5ebf4;
    border-color: #b9d9e388;
    text-shadow: none;
}
.glass-interface .leaflet-popup-content-wrapper,
.glass-interface .leaflet-popup-tip {
    background: var(--white);
    color: var(--ink);
}
.glass-interface .leaflet-popup-content-wrapper {
    border: 1px solid var(--line);
    box-shadow: 0 12px 36px #0006;
}
.glass-interface .river-station {
    background: #ffffff04;
    border: 1px solid var(--line);
    color: var(--ink);
}
.glass-interface .river-station.active {
    border-color: var(--teal);
    background: color-mix(in srgb, var(--teal) 9%, transparent);
    box-shadow: 0 0 16px color-mix(in srgb, var(--teal) 7%, transparent);
}
.glass-interface .geographic-marker {
    background: var(--white);
    color: var(--point-color);
    border-color: var(--point-color);
    box-shadow:
        0 0 7px var(--point-color),
        0 0 23px color-mix(in srgb, var(--point-color) 35%, transparent);
}
.glass-interface .geographic-marker b {
    background: #0a1b2be8;
    color: #e9f7fc;
    border: 1px solid color-mix(in srgb, var(--point-color) 45%, transparent);
    backdrop-filter: blur(10px);
}
.glass-interface .geographic-marker > span {
    position: relative;
    z-index: 2;
}
.glass-interface .geographic-marker.unconfirmed {
    border-style: dashed;
}
.signal-ring {
    display: none;
    position: absolute;
    inset: -5px;
    border: 1px solid var(--point-color);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 0 12px color-mix(in srgb, var(--point-color) 28%, transparent);
}
.glass-interface.station-pulse-enabled .signal-active .signal-ring {
    display: block;
    animation: station-signal 3s cubic-bezier(0.2, 0.5, 0.4, 1) infinite;
}
.glass-interface.station-pulse-enabled .signal-active .secondary-ring {
    animation-delay: 1.5s;
}
.glass-interface .signal-offline {
    box-shadow: 0 0 8px #8da7b033;
    opacity: 0.8;
}
@keyframes station-signal {
    0% {
        transform: scale(0.7);
        opacity: 0.7;
    }
    80%,
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}
.glass-interface .action-menu > summary,
.glass-interface .action-menu-panel {
    background: var(--white);
    color: var(--ink);
    border-color: var(--line);
}
.glass-interface .action-menu-panel {
    box-shadow: 0 18px 45px #0006;
}
.glass-interface .action-menu-panel .btn {
    color: var(--ink);
}
.glass-interface .admin-tabs .btn:not(.secondary) {
    background: color-mix(in srgb, var(--teal) 10%, var(--white));
    color: var(--teal);
}
.glass-interface thead th {
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    color: var(--muted);
}
.glass-interface tbody td {
    border-color: var(--line);
}
.glass-interface tbody tr:hover {
    background: #ffffff04;
}
.glass-interface .table-wrap {
    border-color: var(--line);
}
.glass-interface .badge.demo {
    background: #382e1bd9;
    color: #f4cd80;
    border-color: #d4a84745;
}
.glass-interface .instrument-top .badge {
    background: var(--bg) !important;
}
.glass-interface .notice.blue {
    background: #163a5555;
    color: var(--ink);
    border-color: #49bfff33;
}
.glass-interface .notice {
    background: #352c2266;
    color: #ead3a9;
    border-color: #b98d453d;
}
.glass-interface .empty,
.glass-interface .error-panel,
.glass-interface .file-zone {
    background: var(--white);
    color: var(--muted);
}
.glass-interface .muted,
.glass-interface .subtitle,
.glass-interface .toolbar-info,
.glass-interface .note {
    color: var(--muted);
}
.glass-interface .avatar {
    background: #ffffff08;
    color: var(--teal);
}
.glass-interface .river-workspace.expanded {
    background: var(--bg);
    border-color: var(--line);
}
@media (max-width: 950px) {
    .glass-interface .station-instrument {
        border-left: 0;
        border-top: 1px solid var(--line);
        border-radius: 0 0 var(--card-radius) var(--card-radius);
    }
    .glass-interface .river-observatory {
        overflow: hidden;
    }
}
@media (max-width: 740px) {
    .glass-interface .instrument-readings .metric {
        padding: 12px;
        min-height: 90px;
    }
    .glass-interface .data-context {
        padding: 18px;
    }
    .glass-interface .topbar {
        backdrop-filter: blur(12px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .glass-interface .signal-ring {
        animation: none !important;
        display: none !important;
    }
}
@supports not (backdrop-filter: blur(1px)) {
    .glass-interface .card,
    .glass-interface .river-observatory,
    .glass-interface .station-instrument,
    .glass-interface .analysis-trend,
    .glass-interface .fleet-comparison {
        background: var(--white);
    }
}
@media print {
    body.glass-interface {
        background: white;
        color: black;
    }
    .glass-interface .card,
    .glass-interface .station-instrument,
    .glass-interface .river-observatory,
    .glass-interface .analysis-trend,
    .glass-interface .fleet-comparison {
        background: white;
        color: black;
        backdrop-filter: none;
        box-shadow: none;
    }
    .signal-ring {
        display: none !important;
    }
    .glass-interface .leaflet-tile-pane {
        filter: none;
    }
}
.signal-help {
    font-size: 10px;
    color: var(--muted);
    margin: 0 0 12px;
    line-height: 1.7;
}
.glass-interface .geographic-warning {
    color: #efc36d;
    background: #43382355;
}
.glass-interface .map-disclaimer {
    color: var(--muted);
}

/* ==== ioc-light.css ==== */
/* Daylight IOC: spacious operational canvas, color-coded instruments and live-state signals. */
body.ioc-interface {
    --line: #dce7f2;
    background:
        radial-gradient(ellipse at 90% 0%, #def2ff99, transparent 40%),
        var(--bg);
    color: var(--ink);
}
.ioc-interface .sidebar {
    background: var(--navy);
    border: 0;
    box-shadow: 4px 0 24px #24487005;
}
.ioc-interface .brand {
    padding: 29px 22px 34px;
}
.ioc-interface .brand strong {
    font-size: 16px;
}
.ioc-interface .nav-item {
    border-radius: 10px;
    padding: 12px;
    font-size: 12px;
    gap: 12px;
}
.ioc-interface .nav-item svg {
    color: #6588ba;
}
.ioc-interface .nav-item.active {
    background: linear-gradient(100deg, #e4f0ff, #eef8ff);
    color: var(--teal);
    box-shadow: inset 3px 0 var(--teal);
}
.ioc-interface .nav-item.active svg {
    color: var(--teal);
}
.ioc-interface .sidebar-bottom {
    margin-top: auto;
}
.ioc-interface .topbar {
    height: 65px;
    background: #ffffffd9;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #e1ebf3;
}
.ioc-interface main {
    max-width: 2100px;
    padding: 25px 26px;
}
.ioc-interface .page-head {
    margin-bottom: 23px;
    align-items: center;
}
.ioc-interface .page-head h1 {
    font-size: clamp(25px, 2.1vw, 35px);
    font-weight: 750;
    color: var(--ink);
    letter-spacing: -1px;
}
.ioc-interface .subtitle {
    font-size: 12px;
    color: var(--muted);
}
.ioc-interface .btn {
    border-radius: 9px;
    background: var(--teal);
    color: white;
    box-shadow: 0 5px 12px #2275e219;
    padding: 10px 14px;
}
.ioc-interface .btn.secondary {
    background: white;
    color: #365777;
    border-color: #dce7f2;
    box-shadow: none;
}
.ioc-interface .badge.demo {
    background: #fff5df;
    border-color: #f4dfab;
    color: #93611b;
}
.ioc-interface .avatar {
    background: #eaf3ff;
    color: var(--teal);
    border: 0;
}
.ioc-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}
.ioc-stat {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: white;
    border: 1px solid #e0eaf4;
    border-radius: 15px;
    padding: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px #3e74a006;
    --stat-color: #287ce6;
    --stat-soft: #edf5ff;
}
.ioc-stat.green {
    --stat-color: #159c82;
    --stat-soft: #e8f8f1;
}
.ioc-stat.amber {
    --stat-color: #d79622;
    --stat-soft: #fff5df;
}
.ioc-stat.violet {
    --stat-color: #8671cd;
    --stat-soft: #f2edfc;
}
.ioc-stat-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--stat-soft);
    color: var(--stat-color);
    box-shadow: inset 0 0 0 1px
        color-mix(in srgb, var(--stat-color) 8%, transparent);
}
.ioc-stat > div {
    position: relative;
    z-index: 1;
}
.ioc-stat > div > span {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}
.ioc-stat strong {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 32px;
    line-height: 1.4;
    font-weight: 750;
    letter-spacing: -1px;
}
.ioc-stat strong small {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--muted);
}
.ioc-stat p {
    font-size: 10px;
    color: var(--muted);
    margin: 2px 0 0;
}
.ioc-stat-wave {
    position: absolute;
    width: 100px;
    right: -8px;
    bottom: 9px;
    color: var(--stat-color);
    opacity: 0.12;
}
.ioc-interface .ioc-console {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 17px;
    align-items: stretch;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    margin-bottom: 24px;
}
.ioc-station-rail {
    grid-column: 1/-1;
    background: white;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 16px 19px;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}
.ioc-rail-title {
    display: flex;
    gap: 7px;
    align-items: center;
    white-space: nowrap;
    color: var(--teal);
}
.ioc-rail-title h2 {
    font-size: 13px;
    margin: 0;
    color: var(--ink);
    font-weight: 750;
}
.ioc-station-rail > p {
    display: none;
}
.ioc-station-list {
    display: flex;
    gap: 7px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}
.ioc-station {
    display: flex;
    gap: 8px;
    align-items: center;
    text-align: left;
    flex: 1;
    min-width: 110px;
    background: #f7faff;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px;
    color: var(--ink);
    transition:
        background 0.18s,
        border-color 0.18s;
}
.ioc-station.active {
    background: #edf5ff;
    border-color: #aacdf5;
}
.ioc-station:hover {
    background: #eaf4ff;
}
.ioc-station strong {
    display: block;
    font-size: 12px;
}
.ioc-station small {
    display: block;
    font-size: 9px;
    color: var(--muted);
    margin-top: 2px;
    overflow-wrap: anywhere;
}
.ioc-station-symbol {
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--signal-color) 10%, white);
    color: var(--signal-color);
}
.ioc-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--signal-color);
    margin-left: auto;
    box-shadow: 0 0 7px color-mix(in srgb, var(--signal-color) 35%, transparent);
}
.ioc-alert-link {
    font-size: 10px;
    display: flex;
    gap: 7px;
    align-items: center;
    color: var(--teal);
    white-space: nowrap;
}
.ioc-interface .river-observatory-map {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 21px;
    box-shadow: 0 7px 24px #25578f06;
    min-width: 0;
}
.ioc-interface .river-header h3 {
    font-size: 26px;
    font-weight: 750;
    color: var(--ink);
}
.ioc-interface .river-instruction {
    font-size: 10px;
    color: var(--muted);
}
.ioc-interface .river-canvas {
    border-radius: 12px;
    overflow: hidden;
}
.ioc-interface .geographic-map {
    border: 1px solid #d4e8f2;
    background: #eaf5fc;
    border-radius: 12px;
}
.ioc-interface .map-compass,
.ioc-interface .map-floating-tools button {
    background: #fffffff0;
    border: 1px solid #d5e5f2;
    box-shadow: 0 4px 12px #26598310;
    backdrop-filter: blur(8px);
}
.ioc-interface .map-segment {
    background: #eff5fc;
}
.ioc-interface .map-segment button.active {
    color: var(--teal);
    background: white;
    box-shadow: 0 2px 5px #21476f09;
}
.ioc-interface .geographic-marker {
    background: white;
    border-color: var(--point-color);
    color: var(--point-color);
    box-shadow:
        0 0 0 5px color-mix(in srgb, var(--point-color) 10%, transparent),
        0 0 20px color-mix(in srgb, var(--point-color) 28%, transparent);
}
.ioc-interface .geographic-marker b {
    background: #fffffff5;
    color: #1c3e5e;
    border: 1px solid color-mix(in srgb, var(--point-color) 35%, white);
    box-shadow: 0 4px 12px #173e4914;
}
.ioc-interface .geographic-marker > span {
    position: relative;
    z-index: 2;
}
.ioc-interface .signal-offline {
    box-shadow:
        0 0 0 4px #8a9bac12,
        0 4px 8px #203e5810;
}
.ioc-interface.station-pulse-enabled .signal-active .signal-ring {
    display: block;
    animation: station-signal 3.2s cubic-bezier(0.2, 0.5, 0.4, 1) infinite;
}
.ioc-interface.station-pulse-enabled .signal-active .secondary-ring {
    animation-delay: 1.6s;
}
.ioc-interface.station-pulse-enabled .is-current:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    border: 1px solid var(--signal-color);
    animation: ioc-indicator 3.2s ease-out infinite;
    pointer-events: none;
}
@keyframes ioc-indicator {
    0% {
        opacity: 0.5;
        transform: scale(0.9);
    }
    85%,
    100% {
        opacity: 0;
        transform: scale(1.4);
    }
}
.ioc-interface .station-instrument {
    background: white;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 7px 24px #25578f06;
    --instrument-text: var(--ink);
}
.ioc-interface .instrument-top {
    color: var(--muted);
    font-size: 11px;
}
.ioc-interface .station-instrument h2 {
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -0.7px;
    margin: 12px 0 16px;
}
.ioc-interface .instrument-selector .form-control {
    background: #f4f8fd;
    border-color: #dce7f4;
    color: var(--ink);
    font-size: 12px;
}
.ioc-interface .instrument-source {
    color: var(--muted);
    font-size: 9px;
}
.ioc-interface .instrument-source .badge {
    background: #e8f3ff;
    color: #2876c2;
}
.ioc-interface .instrument-readings {
    gap: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
}
.ioc-interface .instrument-readings .metric {
    position: relative;
    padding: 13px 10px;
    border: 1px solid #e2edf7;
    border-radius: 12px;
    min-height: 115px;
    background: linear-gradient(155deg, #f7fbff, #fff);
    display: block;
    overflow: hidden;
    box-shadow: none;
}
.ioc-interface .instrument-readings .metric-icon {
    display: grid;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #e9f3ff;
    color: #3184d6;
}
.ioc-interface .instrument-readings .metric-icon svg {
    width: 17px;
    height: 17px;
}
.ioc-interface .instrument-readings .metric-icon.green {
    background: #e5f7ef;
    color: #19a178;
}
.ioc-interface .instrument-readings .metric-icon.amber {
    background: #fff0d8;
    color: #dca22f;
}
.ioc-interface .instrument-readings .metric-icon.red {
    background: #ffebe9;
    color: #e87668;
}
.ioc-interface .instrument-readings .metric-icon.purple {
    background: #f0eafd;
    color: #9970da;
}
.ioc-interface .instrument-readings .metric-icon.gray {
    background: #edf0f5;
    color: #7d8fa4;
}
.ioc-interface .instrument-readings .metric-label {
    font-size: 10px;
    color: var(--muted);
}
.ioc-interface .instrument-readings .metric-value {
    font-size: 25px;
    font-weight: 750;
    color: var(--ink);
    margin: 2px 0 0;
}
.ioc-interface .instrument-readings .metric-unit {
    font-size: 9px;
    color: var(--muted);
}
.ioc-interface .instrument-readings .metric-note {
    font-size: 9px;
    color: #71849a;
}
.ioc-interface .instrument-provenance {
    color: var(--muted);
    padding-top: 14px;
}
.ioc-interface .instrument-provenance strong {
    color: var(--ink);
}
.ioc-interface .instrument-detail {
    background: #eaf4ff;
    border: 1px solid #d3e6fa;
    color: #2674c3;
    box-shadow: none;
}
.ioc-interface .river-analysis {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 17px;
}
.ioc-interface .analysis-trend,
.ioc-interface .data-context,
.ioc-interface .fleet-comparison,
.ioc-interface .card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 5px 22px #25578f05;
}
.ioc-interface .data-context {
    padding: 23px;
}
.ioc-interface .analysis-heading h2,
.ioc-interface .data-context h2 {
    font-size: 17px;
    font-weight: 750;
}
.ioc-interface .analysis-heading p {
    color: var(--muted);
}
.ioc-interface .fleet-comparison {
    padding: 24px;
}
.ioc-interface .card-title h2 svg {
    color: #428bdd;
    background: #edf6ff;
    padding: 3px;
    box-sizing: content-box;
    border-radius: 7px;
}
.ioc-interface .form-control {
    background: #fafcff;
    border-color: #d9e5f0;
}
.ioc-interface .form-control:focus {
    outline-color: #a8d3ff;
}
.ioc-interface thead th {
    background: #f3f8fe;
    color: #54718e;
}
.ioc-interface tbody tr:hover {
    background: #f6fbff;
}
.ioc-interface .table-wrap {
    border-color: #e3edf5;
}
.ioc-interface .tabs button.active {
    background: #edf6ff;
    border-radius: 8px 8px 0 0;
}
.ioc-interface .admin-tabs .btn:not(.secondary) {
    background: #e9f4ff;
    border-color: #bcddfc;
    color: #1d74c5;
}
.ioc-interface .modal {
    background: white;
    border: 1px solid #dceaf5;
    border-radius: 18px;
    box-shadow: 0 25px 90px #25497633;
}
.ioc-interface .modal-overlay {
    backdrop-filter: blur(5px);
    background: #24425e55;
}
.ioc-interface .action-menu > summary {
    background: white;
    border-color: #dce7f2;
}
.ioc-interface .notice.blue {
    background: #eef7ff;
    border-color: #cfe6fa;
    color: #416b8d;
}
.ioc-interface .version-card {
    border-color: #dce7f2;
}
.ioc-interface .metric-grid .metric-icon {
    border-radius: 12px;
}
.ioc-interface .river-workspace.expanded {
    background: #fff;
    border-color: #dbe8f4;
}
@media (min-width: 1650px) {
    .ioc-interface .ioc-console {
        grid-template-columns: 205px minmax(0, 1fr) 325px;
    }
    .ioc-station-rail {
        grid-column: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 22px 14px;
    }
    .ioc-station-rail > p {
        display: block;
        font-size: 10px;
        color: var(--muted);
        margin: -7px 0 5px;
    }
    .ioc-station-list {
        display: flex;
        flex-direction: column;
        flex: 0;
        gap: 9px;
    }
    .ioc-station {
        padding: 13px 9px;
        min-height: 72px;
    }
    .ioc-alert-link {
        margin-top: auto;
        padding: 15px 0 0;
        border-top: 1px solid var(--line);
    }
    .ioc-interface .river-observatory-map {
        padding: 24px;
    }
    .ioc-interface .ioc-console .river-stations {
        display: none;
    }
}
@media (max-width: 1200px) {
    .ioc-summary {
        gap: 10px;
    }
    .ioc-stat {
        padding: 15px;
        gap: 9px;
    }
    .ioc-stat-icon {
        width: 37px;
        height: 37px;
        border-radius: 11px;
    }
    .ioc-stat strong {
        font-size: 28px;
    }
    .ioc-station-rail {
        flex-wrap: wrap;
        gap: 12px;
    }
    .ioc-station-list {
        flex-basis: 100%;
        order: 3;
    }
    .ioc-alert-link {
        margin-left: auto;
    }
    .ioc-interface .ioc-console,
    .ioc-interface .river-analysis {
        grid-template-columns: minmax(0, 1fr) 290px;
    }
    .ioc-interface .station-instrument {
        padding: 17px;
    }
    .ioc-interface .river-observatory-map {
        padding: 17px;
    }
}
@media (max-width: 950px) {
    .ioc-interface .ioc-console,
    .ioc-interface .river-analysis {
        grid-template-columns: minmax(0, 1fr);
    }
    .ioc-interface .instrument-readings {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .ioc-interface .station-instrument {
        padding: 22px;
    }
    .ioc-interface .instrument-readings .metric {
        min-height: 120px;
    }
    .ioc-interface .ioc-console .river-stations {
        display: none;
    }
}
@media (max-width: 740px) {
    .ioc-interface main {
        padding: 20px 14px;
    }
    .ioc-interface .topbar {
        height: 56px;
    }
    .ioc-interface .page-head h1 {
        font-size: 25px;
    }
    .ioc-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }
    .ioc-stat {
        padding: 13px;
        gap: 9px;
        border-radius: 12px;
    }
    .ioc-stat-icon {
        width: 32px;
        height: 32px;
    }
    .ioc-stat-icon svg {
        width: 20px;
        height: 20px;
    }
    .ioc-stat strong {
        font-size: 27px;
    }
    .ioc-stat > div > span {
        font-size: 9px;
    }
    .ioc-stat p {
        font-size: 8px;
    }
    .ioc-stat strong small {
        font-size: 9px;
    }
    .ioc-stat-wave {
        width: 60px;
    }
    .ioc-station-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ioc-station {
        min-width: 0;
    }
    .ioc-interface .instrument-readings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ioc-interface .instrument-readings .metric-icon {
        width: 32px;
        height: 32px;
    }
    .ioc-interface .instrument-readings .metric-value {
        font-size: 29px;
    }
    .ioc-interface .station-instrument {
        padding: 19px;
    }
    .ioc-interface .instrument-selector .form-control {
        font-size: 16px;
    }
    .ioc-interface .river-header h3 {
        font-size: 23px;
    }
    .ioc-interface .data-context,
    .ioc-interface .fleet-comparison {
        padding: 18px;
    }
    .ioc-interface .form-control {
        font-size: 16px;
    }
    .ioc-interface .settings-array .form-control {
        font-size: 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ioc-interface .signal-ring,
    .ioc-interface .is-current:after {
        animation: none !important;
        display: none !important;
    }
    .ioc-interface * {
        scroll-behavior: auto;
        transition: none;
    }
}
@media print {
    .ioc-summary {
        display: flex;
    }
    .ioc-interface .ioc-console {
        display: block;
    }
    .ioc-station-rail {
        display: none;
    }
    .ioc-interface .card,
    .ioc-interface .station-instrument {
        box-shadow: none;
    }
    .ioc-interface .signal-ring {
        display: none !important;
    }
}
.ioc-interface main {
    animation: ioc-arrive 0.5s ease-out both;
}
.ioc-stat {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}
.ioc-stat:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--stat-color) 25%, white);
    box-shadow: 0 10px 25px
        color-mix(in srgb, var(--stat-color) 8%, transparent);
}
.ioc-interface .btn:hover svg {
    transform: scale(1.08);
}
.ioc-interface .btn svg {
    transition: transform 0.18s ease;
}
@keyframes ioc-arrive {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .ioc-interface main {
        animation: none;
    }
    .ioc-stat:hover,
    .ioc-interface .btn:hover svg {
        transform: none;
    }
}

/* ==== hydro.css ==== */
:root {
    color-scheme: light;
}
body.hydro-interface {
    background: var(--bg);
    font-family: var(--font-family), "Segoe UI", sans-serif;
    font-size: var(--font-size, 16px);
    color: var(--ink);
}
.hydro-interface * {
    box-sizing: border-box;
}
.hydro-interface .workspace {
    background: var(--bg);
}
.hydro-interface .sidebar {
    background: #fff;
    color: var(--ink);
    border-right: 1px solid #dce6ee;
    box-shadow: none;
}
.hydro-interface .brand {
    color: #0b3c5d;
}
.hydro-interface .brand small,
.hydro-interface .sidebar-bottom {
    color: var(--muted);
}
.hydro-interface .nav-item {
    color: var(--muted);
    min-height: 48px;
    border-radius: 10px;
    margin: 3px 14px;
}
.hydro-interface .nav-item.active {
    background: #e6f3f5;
    color: var(--teal);
    box-shadow: none;
    border: none;
}
.hydro-interface .topbar {
    background: #fff;
    border-bottom: 1px solid #dce6ee;
    box-shadow: none;
    min-height: 76px;
}
.hydro-interface #content {
    padding: 28px 32px;
    max-width: 1900px;
    margin: auto;
}
.hydro-interface .page-head h1 {
    font-size: 28px;
    letter-spacing: -0.8px;
    font-weight: 700;
    color: #0b3c5d;
}
.hydro-interface .page-head p {
    font-size: 14px;
    line-height: 1.7;
}
.hydro-interface .card,
.hydro-interface .analysis-trend,
.hydro-interface .data-context,
.hydro-interface .fleet-comparison {
    background: #fff;
    border: 1px solid #dce6ee;
    border-radius: 16px;
    box-shadow: 0 3px 14px #0f2a3d04;
    backdrop-filter: none;
}
.hydro-interface .card-title h2,
.hydro-interface .analysis-heading h2 {
    font-size: 18px;
    color: #0b3c5d;
}
.hydro-interface .btn,
.hydro-interface .form-control,
.hydro-interface .icon-button,
.hydro-interface .segments button,
.hydro-interface .tab {
    min-height: 44px;
}
.hydro-interface .btn {
    border-radius: 9px;
    font-weight: 600;
    box-shadow: none;
}
.hydro-interface .form-control {
    background: #fff;
    color: var(--ink);
    font-size: 14px;
}
.hydro-interface :focus-visible {
    outline: 3px solid #0e7c8f;
    outline-offset: 3px;
}
.hydro-interface .badge {
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: normal;
    line-height: 1.5;
}
.hydro-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.hydro-interface .badge.level-null {
    background: repeating-linear-gradient(
        135deg,
        #f0f3f5,
        #f0f3f5 5px,
        #e5eaee 5px,
        #e5eaee 7px
    );
    color: #52616e;
}
.hydro-interface .badge.estimated {
    border: 1px dashed #0e7c8f;
    background: #fff;
    color: #0e7c8f;
}
.hydro-interface .badge.measured {
    background: #e6f3f5;
    color: #0b6473;
}
.hydro-interface .ioc-summary,
.hydro-interface .ioc-station-rail {
    display: none;
}
.hydro-interface .river-observatory.ioc-console {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(380px, 2fr);
    gap: 24px;
    align-items: start;
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 24px;
    box-shadow: none;
}
.hydro-interface .river-observatory-map {
    border: 1px solid #dce6ee;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
}
.hydro-interface .station-instrument {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--ink);
    box-shadow: none;
    border-radius: 0;
}
.hydro-interface .station-instrument h2 {
    font-size: 20px;
    color: #0b3c5d;
    margin: 20px 0 12px;
}
.hydro-interface .instrument-top {
    display: none;
}
.hydro-interface .instrument-selector {
    margin: 0 0 12px;
}
.hydro-interface .instrument-source {
    color: var(--muted);
    font-size: 13px;
    margin: 12px 0;
}
.hydro-interface .instrument-readings {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.hydro-interface .metric.hydro-metric {
    padding: 14px 12px;
    background: #fff;
    min-height: 157px;
    border: 1px solid #dce6ee;
    border-radius: 12px;
    box-shadow: none;
    color: var(--ink);
}
.hydro-interface .hydro-metric.estimated {
    border-style: dashed;
}
.hydro-interface .metric .metric-label {
    color: var(--muted);
    font-size: 13px;
}
.hydro-interface .metric .metric-value {
    font-size: 28px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.hydro-interface .metric small {
    color: var(--muted);
}
.hydro-interface .metric-source {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: #526a7c;
}
.hydro-interface .metric-quality {
    display: block;
    line-height: 1.5;
    font-size: 12px;
}
.metric-spark {
    display: block;
    width: 100%;
    height: 30px;
    margin-top: 6px;
    color: #0e7c8f;
}
.spark-empty {
    display: block;
    font-size: 11px;
    color: #6b7a88;
    margin-top: 8px;
}
.hydro-interface .instrument-provenance {
    border-top: 1px solid #dce6ee;
    color: var(--muted);
    margin-top: 16px;
    font-size: 12px;
}
.hydro-interface .instrument-provenance strong {
    color: var(--ink);
    font-size: 13px;
}
.hydro-interface .instrument-detail {
    width: 100%;
    margin-top: 16px;
    background: #e6f3f5;
    color: #0e7c8f;
}
.hydro-hero {
    padding: 23px 24px;
    background: #fff;
    border: 1px solid #dce6ee;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}
.hydro-hero:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: #0e7c8f;
}
.hydro-hero.level-null:before {
    background: #6b7a88;
}
.hydro-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--muted);
    margin-bottom: 12px;
}
.hydro-hero > .badge {
    font-size: 19px;
    background: transparent !important;
    padding: 0;
}
.hydro-hero > .badge svg {
    width: 28px;
    height: 28px;
}
.hydro-hero p {
    font-size: 14px;
    line-height: 1.7;
    margin: 12px 0;
    color: var(--muted);
}
.hydro-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.freshness {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
}
.freshness .hydro-icon {
    width: 15px;
    height: 15px;
}
.freshness.fresh {
    color: #146b96;
}
.freshness.aging {
    color: #916306;
}
.freshness.missing {
    color: #6b7a88;
}
.mode-chip {
    background: #edf3f6;
    color: #526a7c;
    font-size: 11px;
    padding: 4px 7px;
    border-radius: 5px;
}
.hydro-hero a {
    font-size: 12px;
    color: #0e7c8f;
    display: inline-block;
    margin-top: 13px;
}
.hydro-hero .trial-note {
    font-size: 12px;
    color: #916306;
}
.hydro-schematic {
    margin-bottom: 24px;
    padding: 24px;
}
.river-line {
    display: flex;
    position: relative;
    gap: 10px;
    margin-top: 24px;
}
.river-line:before {
    content: "";
    height: 8px;
    position: absolute;
    top: 24px;
    left: 8%;
    right: 8%;
    background: #d7edf0;
    border-radius: 99px;
}
.river-node {
    flex: 1;
    position: relative;
    background: transparent;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
    color: var(--ink);
    cursor: pointer;
    min-width: 0;
}
.river-node strong {
    font-size: 14px;
}
.river-node small {
    font-size: 11px;
    color: var(--muted);
}
.node-symbol {
    width: 52px;
    height: 52px;
    border: 2px solid #6b7a88;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #6b7a88;
    background: white;
}
.estimated .node-symbol {
    border-style: dashed;
}
.river-node.selected .node-symbol {
    box-shadow: 0 0 0 5px #0e7c8f12;
}
.node-symbol.level-0 {
    border-color: #12a150;
    color: #12a150;
}
.node-symbol.level-1 {
    border-color: #b7840b;
    color: #b7840b;
}
.node-symbol.level-2 {
    border-color: #e8710a;
    color: #e8710a;
}
.node-symbol.level-3 {
    border-color: #d6453d;
    color: #d6453d;
}
.node-symbol.level-4 {
    border-color: #b3121f;
    color: #b3121f;
}
.hydro-interface .river-analysis {
    gap: 24px;
    margin-bottom: 24px;
    grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
}
.hydro-interface .analysis-trend,
.hydro-interface .data-context {
    padding: 24px;
}
.hydro-interface .analysis-heading p {
    font-size: 13px;
}
.hydro-interface .public-guidance {
    display: none;
}
.hydro-interface .geographic-marker .signal-ring,
.hydro-interface .live-dot,
.hydro-interface .dot {
    animation: none !important;
}
.hydro-interface .geographic-marker .signal-ring {
    display: none;
}
.hydro-interface.station-pulse-enabled
    .geographic-marker.emergency
    .signal-ring:first-child {
    display: block;
    animation: hydro-emergency 2s ease-out infinite !important;
}
.hydro-interface .geographic-marker.estimated > span {
    background: white;
    color: var(--point-color);
    border: 2px dashed var(--point-color);
}
.hydro-interface .geographic-marker.measured > span {
    background: var(--point-color);
    color: white;
    border: 2px solid white;
}
.hydro-interface .geographic-marker.signal-offline > span {
    background: repeating-linear-gradient(
        135deg,
        #f0f3f5,
        #f0f3f5 3px,
        #dae1e6 3px,
        #dae1e6 5px
    );
    color: #6b7a88;
    border-color: #6b7a88;
}
.hydro-interface .geographic-marker b {
    background: white;
    color: #0f2a3d;
    box-shadow: 0 2px 7px #0f2a3d16;
    font-size: 12px;
}
.guide-levels {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}
.guide-levels p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}
.gate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gate-item {
    border: 1px solid #dce6ee;
    padding: 20px;
    border-radius: 12px;
}
.gate-item h2 {
    font-size: 17px;
    margin: 16px 0 10px;
}
.gate-item p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}
.coverage-calendar {
    margin-bottom: 24px;
}
.coverage-months {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}
.coverage-months strong {
    font-size: 13px;
}
.coverage-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 10px;
}
.coverage-days span {
    font-size: 11px;
    display: grid;
    place-items: center;
    min-height: 24px;
    border-radius: 4px;
}
.covered {
    background: #d9eef0;
    color: #075c6b;
}
.uncovered {
    background: #f2f5f7;
    color: #82919b;
}
.hydro-interface code,
.hydro-interface pre,
.hydro-interface .code-box {
    font-family: "JetBrains Mono", monospace;
}
.hydro-interface table {
    font-size: 14px;
}
.hydro-interface td,
.hydro-interface th {
    padding: 14px 16px;
}
.hydro-public-nav {
    display: none;
}
.hydro-interface.public-view .sidebar {
    display: none;
}
.hydro-interface.public-view .workspace {
    margin-left: 0;
}
.hydro-interface.public-view .hydro-public-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    font-size: 14px;
}
.hydro-public-nav a {
    color: #526a7c;
    font-weight: 500;
    padding: 12px 0;
}
.hydro-public-nav .public-brand {
    font-size: 18px;
    font-weight: 700;
    color: #0b3c5d;
    margin-right: auto;
    max-width: 380px;
    line-height: 1.35;
}
.hydro-interface.public-view #breadcrumb,
.hydro-interface.public-view #menu-button {
    display: none;
}
.hydro-interface.public-view .topbar {
    padding: 14px 32px;
    gap: 24px;
}
.hydro-interface.public-view #content {
    max-width: 1580px;
}
.hydro-interface .notice {
    font-size: 14px;
    line-height: 1.7;
}
.evidence-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}
.evidence-step {
    border: 1px solid #dce6ee;
    padding: 16px;
    border-radius: 10px;
}
.evidence-step summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    min-height: 44px;
}
.evidence-step pre {
    font-size: 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #f4f8fb;
    padding: 12px;
}
.hydro-interface footer {
    font-size: 12px;
}
.hydro-interface .level-4 .node-symbol {
    animation: hydro-emergency 2s infinite;
}
@keyframes hydro-emergency {
    0% {
        box-shadow: 0 0 0 0 #b3121f30;
    }
    100% {
        box-shadow: 0 0 0 12px #b3121f00;
    }
}
@media (min-width: 1550px) {
    .hydro-interface .river-observatory-map #geographic-map {
        min-height: 640px;
    }
}
@media (max-width: 1200px) {
    .hydro-interface .instrument-readings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hydro-interface .river-observatory.ioc-console {
        grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
        gap: 18px;
    }
    .hydro-interface.public-view .hydro-public-nav {
        gap: 12px;
    }
    .hydro-public-nav .public-brand {
        font-size: 15px;
        max-width: 260px;
    }
    .coverage-months {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .hydro-interface #content {
        padding: 20px 16px;
    }
    .hydro-interface .river-observatory.ioc-console,
    .hydro-interface .river-analysis {
        grid-template-columns: 1fr;
    }
    .hydro-interface .station-instrument {
        grid-row: 1;
    }
    .hydro-interface .instrument-readings {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .hydro-interface.public-view .topbar {
        padding: 12px 16px;
        flex-wrap: wrap;
    }
    .hydro-interface.public-view .hydro-public-nav {
        flex-wrap: wrap;
    }
    .hydro-public-nav .public-brand {
        max-width: none;
        flex-basis: 100%;
    }
    .hydro-interface.public-view .topbar-right {
        position: absolute;
        right: 16px;
        top: 14px;
    }
    .hydro-interface .page-head h1 {
        font-size: 24px;
    }
    .river-line {
        overflow-x: auto;
        padding-bottom: 14px;
    }
    .river-node {
        min-width: 130px;
    }
    .coverage-months,
    .gate-grid,
    .evidence-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 520px) {
    .hydro-interface .instrument-readings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hydro-interface .hydro-hero {
        padding: 20px;
    }
    .hydro-interface .page-head {
        align-items: flex-start;
        gap: 14px;
    }
    .hydro-interface .page-head > .btn {
        font-size: 12px;
        padding: 8px;
    }
    .coverage-months,
    .gate-grid,
    .evidence-steps {
        grid-template-columns: 1fr;
    }
    .hydro-interface .card {
        padding: 18px;
    }
    .hydro-interface .analysis-heading {
        flex-wrap: wrap;
        gap: 12px;
    }
    .hydro-interface .account-name {
        display: none;
    }
    .hydro-interface.public-view .hydro-public-nav a:not(.public-brand) {
        font-size: 12px;
    }
    .hydro-public-nav .public-brand {
        padding-right: 90px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hydro-interface *,
    .hydro-interface *:before,
    .hydro-interface *:after {
        animation: none !important;
        transition: none !important;
    }
}

.hydro-interface .instrument-readings .metric-icon {
    display: grid;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    margin-bottom: 8px;
}
.hydro-interface .instrument-readings .metric-icon svg {
    width: 18px;
    height: 18px;
}
.hydro-interface .metric-unit,
.hydro-interface .metric-note {
    color: var(--muted);
    font-size: 12px;
}
.hydro-interface .instrument-selector .form-control {
    background: white;
    color: var(--ink);
    border-color: #dce6ee;
    font-size: 14px;
}
.hydro-interface .river-header h3 {
    font-size: 20px;
}
.hydro-interface .river-canvas #geographic-map {
    border-radius: 0;
    border: none;
}
.hydro-interface .signal-help {
    font-size: 12px;
}
.hydro-interface .river-workspace {
    padding: 20px;
}
.hydro-interface .river-workspace.expanded {
    padding: 24px;
}
.hydro-interface .river-node .badge {
    font-size: 11px;
}
.hydro-interface .legend .dot {
    display: none;
}
.hydro-interface.station-pulse-enabled .level-4 > .hydro-icon {
    animation: hydro-emergency 2s infinite;
    border-radius: 50%;
}
@media (prefers-reduced-motion: reduce) {
    .hydro-interface.station-pulse-enabled .level-4 > .hydro-icon {
        animation: none !important;
    }
}
.hydro-interface .gate-banner {
    background: #fff8e9;
    border: 1px solid #eee0bc;
    color: #70551d;
    margin-bottom: 20px;
    align-items: flex-start;
    border-radius: 12px;
    padding: 16px 20px;
}
.hydro-interface .gate-banner p {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.6;
}
.hydro-interface .gate-banner a {
    font-size: 12px;
}
.hydro-interface .stale-reading .metric-value {
    color: #6b7a88;
}
.hydro-interface .hydro-metric:has(.metric-value):has(.metric-quality) {
    background: #fafcfd;
}
.hydro-interface .value-updated {
    animation: hydro-value-change 0.6s ease-out !important;
}
@keyframes hydro-value-change {
    from {
        background: #d9eff1;
    }
    to {
        background: white;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hydro-interface .value-updated {
        animation: none !important;
    }
}
.hydro-interface .missing-reading {
    background: repeating-linear-gradient(
        135deg,
        #fafcfd,
        #fafcfd 8px,
        #f0f3f5 8px,
        #f0f3f5 9px
    ) !important;
    border-color: #dce2e7 !important;
}
.hydro-interface .import-steps {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 20px 0;
    flex-wrap: wrap;
}
.import-steps li {
    flex: 1;
    min-width: 120px;
    font-size: 13px;
    color: #6b7a88;
    border-bottom: 2px solid #dce6ee;
    padding: 12px;
}
.import-steps li[aria-current="step"] {
    color: #0e7c8f;
    border-color: #0e7c8f;
    font-weight: 600;
}
.import-steps li.complete {
    color: #12a150;
}
.hydro-interface .guide-levels > div {
    border-bottom: 1px solid #edf2f5;
    padding-bottom: 12px;
}
.hydro-interface .page-head h1 {
    line-height: 1.25;
}
.hydro-interface .map-actions button,
.hydro-interface .river-station {
    min-height: 44px;
}
.hydro-interface .geographic-legend,
.hydro-interface .map-angle {
    font-size: 12px;
}
.hydro-interface .metric-label {
    font-size: 14px !important;
}
.hydro-interface .metric-note {
    font-size: 12px !important;
}
.hydro-interface .river-node.selected strong {
    color: #0e7c8f;
}

/* ==== observatory.css ==== */
/* Trường Giang Observatory — an integrated presentation layer. */
:root body.observatory-interface {
    --ob-ink: #193c3d;
    --ob-muted: #6d7b79;
    --ob-paper: #f5f6f2;
    --ob-line: #e3e8e2;
    --ob-accent: #117b70;
    background: var(--ob-paper);
    color: var(--ob-ink);
    font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
:root body.observatory-interface .workspace { background: var(--ob-paper); margin-left: 236px; min-height: 100vh; }
:root body.observatory-interface .sidebar { display: flex; width: 236px; background: #102f32; border: 0; color: #abc0bd; padding: 0 14px; box-shadow: none; }
:root body.observatory-interface .brand { color: #f2faf7; padding: 30px 8px 24px; align-items: center; gap: 11px; border-bottom: 1px solid #ffffff12; margin-bottom: 24px; }
:root body.observatory-interface .brand strong { color: #f2faf7; font-size: 14px; font-weight: 650; letter-spacing: .2px; }
:root body.observatory-interface .brand small { font-size: 10px; line-height: 1.6; color: #a5bcb7; margin-top: 5px; }
:root body.observatory-interface #brand-logo { display: grid; place-items: center; background: #1c4546; border: 1px solid #b6e5d41a; border-radius: 13px; width: 42px; height: 48px; flex-shrink: 0; color: #bcf0d8; }
:root body.observatory-interface #brand-logo svg { width: 26px; height: 32px; }
:root body.observatory-interface .sidebar nav { display: flex; flex-direction: column; padding: 0; gap: 3px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #537d6e transparent; }
.ob-nav-label { color: #86a6a0; font-size: 9px; font-weight: 500; letter-spacing: 1.7px; padding: 0 12px 10px; }
.ob-nav-label:not(:first-child) { margin-top: 22px; }
:root body.observatory-interface .nav-item { margin: 0; min-height: 44px; padding: 10px 12px; font-size: 12px; font-weight: 450; color: #b6cac5; gap: 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; box-shadow: none; }
:root body.observatory-interface .nav-item svg { width: 18px; height: 18px; opacity: .8; }
:root body.observatory-interface .nav-item:hover { color: #ecf9f4; background: #ffffff08; }
:root body.observatory-interface .nav-item.active { background: #d6f5e6; color: #153f37; border: 1px solid #d6f5e6; font-weight: 650; box-shadow: 0 3px 10px #0000000a; }
:root body.observatory-interface .nav-item.active svg { opacity: 1; }
.ob-nav-count { margin-left: auto; font-size: 10px; line-height: 20px; min-width: 20px; text-align: center; border-radius: 5px; color: #f6d68c; background: #eac36a1b; }
:root body.observatory-interface .sidebar-bottom { border-top: 1px solid #ffffff12; margin: auto 8px 20px; padding-top: 18px; font-size: 9px; color: #a1b9b2; }
:root body.observatory-interface .sidebar-bottom strong { color: #d5e9e1; font-size: 10px; line-height: 1.6; }
:root body.observatory-interface .institute { color: #a5cdc0; background: #ffffff08; border: 1px solid #ffffff12; border-radius: 8px; }
.ob-sidebar-note { margin: 28px 8px 24px; padding: 18px 14px; border: 1px solid #c0e6d51c; border-radius: 10px; background: linear-gradient(135deg, #1e4443, #173938); }
.ob-sidebar-note svg { color: #a6dfc7; margin-bottom: 12px; }
.ob-sidebar-note strong { display: block; font-size: 12px; color: #e6f6ee; font-weight: 500; }
.ob-sidebar-note p { font-size: 10px; color: #a4c3b6; line-height: 1.8; margin: 6px 0 0; }
:root body.observatory-interface .hydro-public-nav { display: none; }
:root body.observatory-interface .topbar { min-height: 70px; height: 70px; padding: 0 32px; background: #fafbf8; border-bottom: 1px solid var(--ob-line); box-shadow: none; flex-wrap: nowrap; position: relative; }
:root body.observatory-interface #breadcrumb { display: block; font-size: 11px; color: var(--ob-muted); letter-spacing: .1px; }
:root body.observatory-interface .topbar-right { position: static; gap: 16px; }
:root body.observatory-interface .account { color: var(--ob-ink); font-size: 11px; gap: 9px; }
:root body.observatory-interface .avatar { background: #e7f0e8; color: var(--ob-accent); border: 1px solid #d8e5db; border-radius: 50%; }
:root body.observatory-interface .notification-button { background: transparent; border: 0; color: #5c7770; }
:root body.observatory-interface #content { width: 100%; max-width: 1680px; padding: 30px 32px 36px; margin: auto; }
:root body.observatory-interface footer { color: #74877e; border-top: 1px solid var(--ob-line); background: transparent; font-size: 10px; padding: 16px 32px; }
:root body.observatory-interface .card, :root body.observatory-interface .analysis-trend, :root body.observatory-interface .fleet-comparison { background: #fff; border: 1px solid var(--ob-line); border-radius: 14px; box-shadow: 0 3px 12px #15362c03; backdrop-filter: none; color: var(--ob-ink); }
:root body.observatory-interface .page-head h1 { color: var(--ob-ink); font-size: 27px; letter-spacing: -.8px; }
:root body.observatory-interface .page-head p { color: var(--ob-muted); font-size: 12px; }
:root body.observatory-interface .btn { min-height: 40px; border-radius: 8px; font-size: 11px; font-weight: 550; box-shadow: none; }
:root body.observatory-interface .btn.secondary { background: white; border: 1px solid #dfe6de; color: #34544b; }
:root body.observatory-interface .form-control { min-height: 40px; border: 1px solid var(--ob-line); background: #fbfcfa; color: var(--ob-ink); font-size: 11px; border-radius: 7px; }
:root body.observatory-interface :focus-visible { outline: 3px solid #338f7e; outline-offset: 4px; }
:root body.observatory-interface .badge { font-size: 10px; font-weight: 550; line-height: 1.5; border-radius: 5px; gap: 5px; }
:root body.observatory-interface .badge .hydro-icon { width: 14px; height: 14px; }
:root body.observatory-interface #menu-button, :root body.observatory-interface #sidebar-close { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ob-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.ob-eyebrow { color: #658377; font-size: 9px; font-weight: 550; letter-spacing: 1.6px; }
.ob-page-heading h1 { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.4; letter-spacing: -1.2px; font-weight: 600; margin: 8px 0 8px; color: var(--ob-ink); }
.ob-page-heading h1 span { font-weight: 400; color: #738c7e; }
.ob-page-heading p { margin: 0; color: var(--ob-muted); font-size: 11px; }
.ob-report { flex-shrink: 0; padding: 0 15px; }
.ob-welcome { position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; background: #123e3e; color: #f0f9f0; min-height: 238px; padding: 24px 30px; margin-bottom: 20px; }
.ob-welcome:after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #123e3e 6%, #123e3ef0 35%, transparent 73%); }
.ob-welcome-copy { position: relative; z-index: 1; }
.ob-location { display: inline-flex; gap: 7px; align-items: center; font-size: 8px; letter-spacing: 1.9px; color: #a7d5c5; }
.ob-welcome h2 { font-size: 32px; line-height: 1.3; letter-spacing: -.9px; margin: 11px 0 8px; font-weight: 500; color: #f1f8ed; }
.ob-welcome p { font-size: 11px; line-height: 1.7; color: #b5cec2; margin: 0 0 15px; }
.ob-welcome-actions { display: flex; align-items: center; gap: 21px; }
.ob-primary { display: inline-flex; gap: 17px; align-items: center; min-height: 39px; padding: 0 15px; background: #d7f3df; border: 1px solid #e3f8e9; color: #204e3c; border-radius: 7px; font-size: 10px; font-weight: 600; transition: background .2s, transform .2s; }
.ob-primary:hover { background: #edfcef; transform: translateY(-1px); }
.ob-mode { color: #c1d6c9; display: inline-flex; gap: 7px; align-items: center; font-size: 9px; }
.ob-mode i { width: 5px; height: 5px; border-radius: 50%; background: #e1be79; }
.ob-river-art { position: absolute; top: 0; bottom: 0; right: 0; width: 68%; z-index: -2; }
.ob-river-art svg { width: 100%; height: 100%; object-fit: cover; }
.ob-river-art > span { position: absolute; right: 23px; bottom: 15px; color: #8bb6a3; font-size: 8px; letter-spacing: .6px; }
.ob-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 30px; }
.ob-stat { background: #fff; border: 1px solid var(--ob-line); border-radius: 12px; padding: 17px 18px 14px; }
.ob-stat-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: #65776b; font-size: 10px; }
.ob-stat-icon { display: grid; place-items: center; width: 30px; height: 30px; background: #eff3ec; border-radius: 8px; color: #647c69; }
.ob-stat-value { display: flex; gap: 12px; align-items: baseline; font-family: Manrope, sans-serif; font-size: 34px; font-weight: 550; letter-spacing: -1.4px; margin: 7px 0 9px; line-height: 1.3; }
.ob-stat-value > span { font-family: 'Be Vietnam Pro', sans-serif; font-size: 9px; letter-spacing: 0; font-weight: 400; color: #728278; }
.ob-stat-bottom { border-top: 1px solid #edf0e9; padding-top: 11px; font-size: 9px; color: #7d897f; }
.ob-stat-bottom a { display: flex; gap: 5px; align-items: center; color: #977a31; }
.ob-stat.teal .ob-stat-icon { background: #e5f2eb; color: #2d8a74; }
.ob-stat.teal .ob-stat-value { color: #227c67; }
.ob-stat.amber .ob-stat-icon { background: #fcf0da; color: #b18b33; }
.ob-stat.amber .ob-stat-value { color: #a18235; }
.ob-stat.slate .ob-stat-icon { background: #eff1f3; color: #7a858b; }
.ob-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 17px; }
.ob-section-heading h2 { font-size: 17px; letter-spacing: -.4px; font-weight: 600; margin: 0 0 4px; }
.ob-section-heading p { font-size: 10px; color: var(--ob-muted); margin: 0; }
.ob-section-index { font-size: 8px; letter-spacing: 1.2px; font-family: 'JetBrains Mono', monospace; color: #8b9b8f; white-space: nowrap; }
.ob-station-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; margin-bottom: 18px; }
:root body.observatory-interface .river-node.ob-station-tab { min-width: 0; display: flex; flex-direction: row; text-align: left; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--ob-line); border-radius: 10px; background: #fbfcf9; color: var(--ob-ink); transition: background .2s,border-color .2s; }
:root body.observatory-interface .river-node.ob-station-tab.selected { background: #e7f1e8; border-color: #8cb4a0; box-shadow: inset 0 0 0 1px #8cb4a019; }
:root body.observatory-interface .river-node.ob-station-tab:hover { background: #eaf1e8; border-color: #9ab9a6; }
.ob-station-symbol { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; background: #edf1e8; color: #6a8977; }
.selected .ob-station-symbol { background: #cfe2d5; color: #2b6956; }
:root body.observatory-interface .ob-station-tab strong { display: block; font-size: 11px; line-height: 1.4; margin: 0; }
:root body.observatory-interface .ob-station-tab small { display: block; font-size: 8px; line-height: 1.5; color: #7b8b80; margin-top: 3px; }
.ob-tab-status { margin-left: auto; }
:root body.observatory-interface .ob-tab-status .badge { padding: 0; width: 14px; height: 14px; overflow: hidden; display: flex; white-space: nowrap; gap: 15px; background: transparent; border: 0; }
:root body.observatory-interface .river-observatory.ob-live-grid { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(0,1fr); gap: 18px; background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; margin: 0 0 28px; align-items: start; }
:root body.observatory-interface .river-observatory-map { background: white; border: 1px solid var(--ob-line); border-radius: 14px; overflow: hidden; box-shadow: none; }
:root body.observatory-interface .river-workspace { padding: 18px; }
:root body.observatory-interface .river-header { margin-bottom: 15px; gap: 12px; align-items: center; }
:root body.observatory-interface .river-header h3 { font-size: 16px; color: var(--ob-ink); letter-spacing: -.4px; margin: 2px 0 3px; }
:root body.observatory-interface .river-header p { font-size: 9px; margin: 0; color: var(--ob-muted); }
:root body.observatory-interface .river-instruction { font-size: 8px; font-weight: 500; color: #728879; letter-spacing: .3px; }
:root body.observatory-interface .map-actions { gap: 6px; }
:root body.observatory-interface .map-segment button { font-size: 8px; min-height: 30px; padding: 5px 8px; }
:root body.observatory-interface #map-fullscreen { min-height: 30px; padding: 5px 8px; font-size: 8px; }
:root body.observatory-interface .river-canvas { border-radius: 10px; overflow: hidden; border: 1px solid #d9e4dc; }
:root body.observatory-interface #geographic-map { height: 373px !important; min-height: 0; border: 0; border-radius: 0; }
:root body.observatory-interface .expanded #geographic-map { height: calc(100vh - 235px) !important; min-height: 300px; }
:root body.observatory-interface .river-footer { gap: 8px; margin-top: 10px; font-size: 8px; flex-wrap: wrap; }
:root body.observatory-interface .geographic-legend { font-size: 8px; gap: 10px; }
:root body.observatory-interface .map-angle { font-size: 8px; gap: 4px; }
:root body.observatory-interface .signal-help { font-size: 8px; line-height: 1.7; margin: 8px 0; color: #7b897e; }
:root body.observatory-interface .river-stations { display: flex; gap: 5px; }
:root body.observatory-interface .river-station { padding: 6px; flex: 1; font-size: 9px; border-radius: 6px; border-color: var(--ob-line); min-width: 0; }
:root body.observatory-interface .river-station strong { font-size: 9px; }
:root body.observatory-interface .river-station small { font-size: 7px; line-height: 1.5; }
:root body.observatory-interface .map-disclaimer { margin: 10px 0 0; font-size: 8px; color: #7c887c; line-height: 1.8; background: #f6f8f1; border: 1px solid #edf0e5; border-radius: 6px; padding: 8px; }
:root body.observatory-interface .map-compass { top: 12px; right: 12px; transform: none; width: 35px; height: 49px; border-radius: 7px; }
:root body.observatory-interface .map-compass b { font-size: 7px; }
:root body.observatory-interface .map-floating-tools { right: 10px; bottom: 25px; gap: 5px; }
:root body.observatory-interface .map-floating-tools button { font-size: 8px; padding: 7px 8px; }
:root body.observatory-interface .station-instrument { grid-row: auto; padding: 19px; background: #fff; color: var(--ob-ink); border: 1px solid var(--ob-line); border-radius: 14px; box-shadow: none; }
.ob-instrument-heading { display: flex; justify-content: space-between; align-items: center; }
:root body.observatory-interface .station-instrument h2 { font-size: 17px; letter-spacing: -.45px; line-height: 1.5; margin: 7px 0 10px; color: var(--ob-ink); font-weight: 600; }
:root body.observatory-interface .instrument-selector { margin: 0 0 12px; }
:root body.observatory-interface .instrument-selector .form-control { width: 100%; min-height: 33px; font-size: 10px; background: #fafbf8; }
:root body.observatory-interface .hydro-hero { border: 1px solid #e9e6d8; border-radius: 8px; padding: 12px 15px; margin-bottom: 12px; background: #fcfbf6; }
:root body.observatory-interface .hydro-hero:before { width: 3px; }
:root body.observatory-interface .hydro-hero .hydro-eyebrow { display: none; }
:root body.observatory-interface .hydro-hero > .badge { font-size: 12px; padding: 0; background: transparent; line-height: 1.7; }
:root body.observatory-interface .hydro-hero > p { margin: 5px 0 7px; font-size: 9px; line-height: 1.6; color: #83765c; }
:root body.observatory-interface .hydro-hero-meta { gap: 7px; margin: 0; font-size: 8px; }
:root body.observatory-interface .hydro-hero-meta .freshness { font-size: 8px; gap: 4px; }
:root body.observatory-interface .hydro-hero-meta .hydro-icon { width: 11px; height: 11px; }
:root body.observatory-interface .hydro-hero .mode-chip { font-size: 7px; }
:root body.observatory-interface .hydro-hero > a { display: none; }
:root body.observatory-interface .instrument-readings { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
:root body.observatory-interface .instrument-readings .metric { display: block; background: #fafbf8; border: 1px solid #e7ece3; border-radius: 9px; padding: 10px 11px; min-height: 123px; box-shadow: none; }
:root body.observatory-interface .instrument-readings .metric.estimated { border-style: dashed; }
:root body.observatory-interface .instrument-readings .metric-icon { width: 24px; height: 24px; border-radius: 6px; margin-bottom: 6px; display: grid; font-size: 11px; }
:root body.observatory-interface .instrument-readings .metric-icon svg { width: 15px; height: 15px; }
:root body.observatory-interface .instrument-readings .metric-label { font-size: 9px; line-height: 1.5; color: #758477; }
:root body.observatory-interface .instrument-readings .metric-value { font-family: Manrope,sans-serif; font-size: 25px; font-weight: 650; letter-spacing: -.7px; line-height: 1.5; color: #254e40; }
:root body.observatory-interface .instrument-readings .metric-unit { font-family: 'Be Vietnam Pro',sans-serif; font-size: 8px; margin-left: 3px; letter-spacing: 0; color: #899286; font-weight: 400; }
:root body.observatory-interface .instrument-readings .metric-source { font-size: 7px; color: #7d8b7c; margin-top: 2px; }
:root body.observatory-interface .instrument-readings .metric-spark { height: 19px; margin-top: 5px; color: #649c80; }
:root body.observatory-interface .instrument-readings .metric-quality, :root body.observatory-interface .instrument-readings .metric-note, :root body.observatory-interface .instrument-readings .spark-empty { font-size: 8px; line-height: 1.6; margin-top: 4px; color: #879182; }
:root body.observatory-interface .instrument-provenance { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--ob-line); padding-top: 11px; margin-top: 12px; font-size: 8px; color: #8a9789; }
:root body.observatory-interface .instrument-provenance strong { display: block; font-size: 9px; color: #506850; font-weight: 500; margin-top: 3px; }
:root body.observatory-interface .instrument-detail { display: flex; justify-content: space-between; width: 100%; margin-top: 13px; min-height: 35px; background: #edf4ea; color: #477157; border: 1px solid #e0eadb; font-size: 9px; }
.ob-trend-heading { margin-bottom: 17px; }
:root body.observatory-interface .river-analysis { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 18px; margin-bottom: 25px; }
:root body.observatory-interface .analysis-trend { padding: 22px; }
:root body.observatory-interface .analysis-heading { align-items: center; gap: 12px; margin-bottom: 17px; }
:root body.observatory-interface .analysis-heading h2 { font-size: 15px; color: var(--ob-ink); letter-spacing: -.3px; font-weight: 600; margin: 0 0 4px; }
:root body.observatory-interface .analysis-heading p { color: var(--ob-muted); font-size: 10px; margin: 0; }
:root body.observatory-interface #overview-chart-parameter { width: 162px; min-height: 34px; font-size: 9px; }
:root body.observatory-interface .chart text { fill: #91a18e; font-family: 'Be Vietnam Pro',sans-serif; }
:root body.observatory-interface .chart .axis { stroke: #eaf0e7; }
:root body.observatory-interface .chart-legend { font-size: 8px; gap: 10px; color: #7b8976; }
:root body.observatory-interface .data-context { padding: 22px; background: #eaf0e3; border: 1px solid #dde6d5; border-radius: 14px; box-shadow: none; }
.ob-context-heading { display: flex; align-items: center; gap: 8px; font-size: 9px; color: #68815b; margin-bottom: 17px; }
:root body.observatory-interface .data-context h2 { color: #3f5d36; font-size: 19px; letter-spacing: -.5px; font-weight: 500; margin: 0 0 9px; }
:root body.observatory-interface .data-context > p { font-size: 10px; line-height: 1.9; color: #78846a; margin: 0 0 18px; }
:root body.observatory-interface .context-row { padding: 10px 0; border-bottom: 1px solid #d6e0cc; font-size: 9px; gap: 10px; color: #7b896d; }
:root body.observatory-interface .context-row strong { font-size: 9px; font-weight: 500; color: #4c6941; }
.ob-context-link { display: flex; align-items: center; justify-content: space-between; color: #4e7141; font-size: 10px; margin-top: 20px; font-weight: 500; }
:root body.observatory-interface .fleet-comparison { padding: 22px 0 0; }
:root body.observatory-interface .fleet-comparison .analysis-heading { padding: 0 22px; }
:root body.observatory-interface .fleet-comparison .ob-eyebrow { display: block; margin-bottom: 7px; font-size: 8px; }
.ob-count-pill { font-size: 9px; white-space: nowrap; color: #749064; border: 1px solid #dce7d4; background: #f2f7ec; border-radius: 6px; padding: 7px 10px; }
:root body.observatory-interface table { font-size: 10px; }
:root body.observatory-interface th { font-size: 9px; color: #819078; background: #f7f9f3; font-weight: 450; border-bottom: 1px solid #e7ede0; padding: 12px 16px; }
:root body.observatory-interface td { padding: 14px 16px; border-bottom: 1px solid #eef1e8; color: #50644b; }
:root body.observatory-interface .click-row:hover { background: #f3f8ee; }
:root body.observatory-interface .table-footer { background: #fcfdf9; border-top: 1px solid var(--ob-line); padding: 12px 22px; border-radius: 0 0 14px 14px; }
:root body.observatory-interface .legend { justify-content: flex-start; gap: 15px; font-size: 9px; }
:root body.observatory-interface .gate-banner { padding: 13px 16px; background: #faf6ed; border: 1px solid #eae2cf; border-radius: 10px; margin-top: 22px; margin-bottom: 22px; font-size: 10px; color: #847454; }
:root body.observatory-interface .gate-banner strong { font-size: 10px; font-weight: 600; }
:root body.observatory-interface .gate-banner p { font-size: 9px; line-height: 1.7; margin: 4px 0; }
:root body.observatory-interface .gate-banner a { font-size: 9px; color: #947532; }
:root body.observatory-interface .gate-banner > .hydro-icon { width: 16px; height: 16px; }
/* Keep secondary information readable at normal desktop scale. */
:root body.observatory-interface .nav-item { font-size: 13px; }
:root body.observatory-interface #breadcrumb { font-size: 12px; }
:root body.observatory-interface .account { font-size: 12px; }
.ob-page-heading p, .ob-welcome p { font-size: 12px; }
.ob-welcome h2 { font-size: 32px; }
.ob-location { font-size: 9px; }
.ob-primary { font-size: 11px; }
.ob-mode { font-size: 10px; }
.ob-stat-top { font-size: 12px; }
.ob-stat-value > span, .ob-stat-bottom { font-size: 10px; }
.ob-section-heading p { font-size: 11px; }
:root body.observatory-interface .ob-station-tab strong { font-size: 12px; }
:root body.observatory-interface .ob-station-tab small { font-size: 9px; }
:root body.observatory-interface .river-header p, :root body.observatory-interface .river-instruction { font-size: 10px; }
:root body.observatory-interface .map-segment button, :root body.observatory-interface #map-fullscreen { font-size: 9px; }
:root body.observatory-interface .geographic-legend, :root body.observatory-interface .map-angle, :root body.observatory-interface .signal-help, :root body.observatory-interface .map-disclaimer { font-size: 10px; }
:root body.observatory-interface .river-station strong { font-size: 10px; }
:root body.observatory-interface .river-station small { font-size: 8px; }
:root body.observatory-interface .instrument-readings .metric-label { font-size: 11px; }
:root body.observatory-interface .instrument-readings .metric-source { font-size: 9px; }
:root body.observatory-interface .instrument-readings .metric-quality, :root body.observatory-interface .instrument-readings .metric-note, :root body.observatory-interface .instrument-readings .spark-empty { font-size: 9px; }
:root body.observatory-interface .instrument-readings .metric-unit { font-size: 9px; }
:root body.observatory-interface .instrument-provenance { font-size: 10px; }
:root body.observatory-interface .instrument-provenance strong { font-size: 11px; }
:root body.observatory-interface .instrument-detail { font-size: 11px; }
:root body.observatory-interface .hydro-hero > p { font-size: 11px; }
:root body.observatory-interface .hydro-hero-meta .freshness { font-size: 10px; }
:root body.observatory-interface .hydro-hero .mode-chip { font-size: 9px; }
:root body.observatory-interface .analysis-heading p { font-size: 11px; }
:root body.observatory-interface #overview-chart-parameter { font-size: 11px; }
.ob-context-heading, :root body.observatory-interface .data-context > p, :root body.observatory-interface .context-row, :root body.observatory-interface .context-row strong, .ob-context-link { font-size: 11px; }
:root body.observatory-interface .gate-banner strong, :root body.observatory-interface .gate-banner p, :root body.observatory-interface .gate-banner a { font-size: 11px; }
:root body.observatory-interface table { font-size: 11px; }
:root body.observatory-interface th { font-size: 10px; }
:root body.observatory-interface .chart-legend { font-size: 10px; }
@media (min-width: 1600px) {
    :root body.observatory-interface #content { padding: 35px 44px 40px; }
    .ob-welcome { padding: 35px 40px; min-height: 285px; }
    .ob-welcome h2 { font-size: 37px; }
    :root body.observatory-interface #geographic-map { height: 415px !important; }
}
@media (max-width: 1180px) {
    :root body.observatory-interface .sidebar { width: 210px; }
    :root body.observatory-interface .workspace { margin-left: 210px; }
    :root body.observatory-interface #content { padding: 25px 22px; }
    :root body.observatory-interface .topbar { padding: 0 22px; }
    .ob-stat { padding: 13px; }
    .ob-stat-value { gap: 6px; }
    .ob-stat-value > span { font-size: 8px; }
    :root body.observatory-interface .ob-station-tab { gap: 7px; padding: 10px; }
    .ob-station-symbol { width: 25px; height: 28px; }
    .ob-station-symbol svg { width: 16px; }
    .ob-tab-status { display: none; }
    :root body.observatory-interface .river-observatory.ob-live-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
    :root body.observatory-interface .river-header { flex-wrap: wrap; }
    :root body.observatory-interface #geographic-map { height: 400px !important; }
    :root body.observatory-interface .river-station small { display: none; }
    :root body.observatory-interface .instrument-readings .metric { padding: 9px; }
    :root body.observatory-interface .instrument-readings .metric-value { font-size: 23px; }
}
@media (max-width: 980px) {
    :root body.observatory-interface .sidebar { width: 236px; transform: translateX(-100%); transition: transform .25s ease; }
    :root body.observatory-interface .sidebar.open { transform: translateX(0); box-shadow: 16px 0 70px #133c3830; }
    :root body.observatory-interface .workspace { margin-left: 0; }
    :root body.observatory-interface #menu-button { display: inline-grid; place-items: center; width: 36px; height: 36px; min-height: 36px; background: #edf3e9; border: 1px solid #dce7d6; border-radius: 7px; color: #466641; margin-right: 10px; }
    :root body.observatory-interface .sidebar.open #sidebar-close { display: grid; place-items: center; position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 6px; border: 1px solid #c8e4d624; background: #ffffff09; color: #d8f4e6; font-size: 18px; }
    :root body.observatory-interface .topbar { height: 62px; min-height: 62px; padding: 0 22px; }
    :root body.observatory-interface .topbar-right { margin-left: auto; }
    .ob-page-heading h1 { font-size: 28px; }
}
@media (max-width: 700px) {
    :root body.observatory-interface #content { padding: 23px 16px; }
    :root body.observatory-interface .topbar { padding: 0 16px; }
    :root body.observatory-interface .topbar-right { gap: 8px; }
    :root body.observatory-interface .account-name { display: none; }
    .ob-page-heading { align-items: flex-start; margin-bottom: 20px; }
    .ob-page-heading h1 { font-size: 25px; line-height: 1.5; }
    .ob-page-heading h1 span { display: block; }
    .ob-page-heading p { font-size: 10px; max-width: 270px; }
    .ob-report { font-size: 9px !important; padding: 8px 10px; margin-top: 20px; }
    .ob-report svg { display: none; }
    .ob-welcome { padding: 25px; min-height: 270px; }
    .ob-welcome h2 { font-size: 29px; }
    .ob-welcome p { font-size: 10px; }
    .ob-river-art { width: 100%; opacity: .35; }
    .ob-welcome:after { background: linear-gradient(90deg,#123e3ed9, #123e3e88); }
    .ob-river-art > span { display: none; }
    .ob-welcome-actions { gap: 12px; flex-wrap: wrap; }
    .ob-mode { font-size: 8px; }
    .ob-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 26px; }
    .ob-stat { padding: 14px; }
    .ob-stat-top { font-size: 9px; }
    .ob-stat-value { font-size: 32px; }
    .ob-stat-bottom { font-size: 8px; line-height: 1.8; min-height: 36px; }
    .ob-stat-value > span { font-size: 8px; }
    .ob-section-index { display: none; }
    .ob-section-heading h2 { font-size: 16px; }
    .ob-station-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
    :root body.observatory-interface .river-node.ob-station-tab { flex: 0 0 146px; padding: 11px; }
    :root body.observatory-interface .river-observatory.ob-live-grid, :root body.observatory-interface .river-analysis { grid-template-columns: 1fr; gap: 16px; }
    :root body.observatory-interface .station-instrument { grid-row: 1; padding: 19px; }
    :root body.observatory-interface .instrument-readings .metric { min-height: 130px; padding: 11px; }
    :root body.observatory-interface .instrument-readings .metric-value { font-size: 26px; }
    :root body.observatory-interface .instrument-readings .metric-label { font-size: 10px; }
    :root body.observatory-interface .instrument-readings .metric-source { font-size: 8px; }
    :root body.observatory-interface .instrument-provenance { font-size: 9px; }
    :root body.observatory-interface .instrument-provenance strong { font-size: 10px; }
    :root body.observatory-interface .hydro-hero > p { font-size: 10px; }
    :root body.observatory-interface .hydro-hero-meta .freshness { font-size: 9px; }
    :root body.observatory-interface .river-header { flex-wrap: nowrap; }
    :root body.observatory-interface #geographic-map { height: 310px !important; }
    :root body.observatory-interface .river-workspace { padding: 16px; }
    :root body.observatory-interface .river-header h3 { font-size: 15px; }
    :root body.observatory-interface .map-segment button { font-size: 8px; }
    :root body.observatory-interface #map-fullscreen { font-size: 8px; }
    :root body.observatory-interface .river-station small { display: block; }
    :root body.observatory-interface .analysis-heading { flex-wrap: wrap; }
    :root body.observatory-interface .analysis-trend, :root body.observatory-interface .data-context { padding: 19px; }
    :root body.observatory-interface #overview-chart-parameter { width: 100%; }
    :root body.observatory-interface .chart-legend { flex-wrap: wrap; }
    :root body.observatory-interface .fleet-comparison .analysis-heading { padding: 0 18px; }
    :root body.observatory-interface footer { padding: 15px 16px; flex-wrap: wrap; gap: 5px; }
    :root body.observatory-interface .gate-banner p { font-size: 10px; }
}
@media (max-width: 400px) {
    .ob-welcome { padding: 23px; }
    .ob-stat { padding: 12px; }
    .ob-stat-top { font-size: 8px; }
    .ob-stat-value > span { font-size: 7px; }
    :root body.observatory-interface .instrument-readings { grid-template-columns: repeat(2,minmax(0,1fr)); }
    :root body.observatory-interface .river-header { flex-wrap: wrap; }
    :root body.observatory-interface .river-station small { display: none; }
}
@media (max-width: 360px) {
    .ob-page-heading { display: block; }
    .ob-page-heading h1 { font-size: 24px; }
    .ob-report { margin: 12px 0 0; min-height: 33px !important; }
    .ob-welcome h2 { font-size: 26px; }
    .ob-welcome p br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    :root body.observatory-interface *, :root body.observatory-interface *:before, :root body.observatory-interface *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==== observatory-data.css ==== */
/* Data space: visible hierarchy, current-state graphics and generous readouts. */
.ob-data-upgrade .ob-summary { gap: 16px; margin: 24px 0 38px; }
.ob-data-upgrade .ob-stat { display: flex; flex-direction: column; position: relative; min-width: 0; min-height: 250px; padding: 21px 22px 16px; border-radius: 17px; overflow: hidden; border-color: #dbe5df; box-shadow: 0 7px 22px #224b3510; transition: transform .2s ease,box-shadow .2s ease; }
.ob-data-upgrade .ob-stat:hover { transform: translateY(-4px); box-shadow: 0 13px 30px #21483719; }
.ob-data-upgrade .ob-stat-top { color: #527265; font-size: 12px; font-weight: 500; }
.ob-data-upgrade .ob-stat-icon { width: 34px; height: 34px; border-radius: 11px; background: #e7f0e8; color: #628a71; }
.ob-kpi-main { display: flex; align-items: center; gap: 13px; margin: 12px 0 8px; min-height: 72px; position: relative; }
.ob-kpi-main > strong { color: #1d5141; font: 600 58px/1 Manrope,sans-serif; letter-spacing: -3px; font-variant-numeric: tabular-nums; }
.ob-kpi-main > span { color: #5b7a69; font-size: 11px; line-height: 1.6; }
.ob-kpi-main > span > small { color: #7b9384; font-size: 9px; line-height: 1.9; }
.ob-kpi-caption { color: #6e8777; font-size: 10px; line-height: 1.7; margin: 2px 0 9px; }
.ob-kpi-action { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0 0; margin-top: auto; font-size: 10px; font-weight: 500; border: 0; border-top: 1px solid #2c5d4218; border-radius: 0; background: transparent; color: #2b6550; text-align: left; }
.ob-kpi-action:hover { color: #124336; }
.ob-data-upgrade .ob-kpi-network { background: radial-gradient(ellipse at 100% 0,#3b6c5e 0,transparent 64%),#183e3b; border-color: #2b5349; }
.ob-kpi-network:before { content: ''; position: absolute; right: -45px; top: -70px; width: 200px; height: 200px; border: 1px solid #aee1c619; border-radius: 50%; box-shadow: 0 0 0 25px #aee1c607,0 0 0 50px #aee1c604; pointer-events: none; }
.ob-data-upgrade .ob-kpi-network .ob-stat-top { color: #c4e4d3; }
.ob-data-upgrade .ob-kpi-network .ob-stat-icon { background: #ffffff0c; color: #a7d9be; border: 1px solid #c3ead516; }
.ob-kpi-network .ob-kpi-main > strong { color: #e8f7e8; }
.ob-kpi-network .ob-kpi-main > span { color: #c1d9c6; }
.ob-kpi-network .ob-kpi-main > span > small,.ob-kpi-network .ob-kpi-caption { color: #a2c7b3; }
.ob-kpi-network .ob-kpi-action { color: #d1eddb; border-color: #ffffff1c; }
.ob-kpi-nodes { display: flex; align-items: center; gap: 0; position: relative; margin: 4px 0 9px; width: 100%; min-height: 20px; }
.ob-kpi-nodes:before { position: absolute; content: ''; inset: 50% 5px auto; height: 1px; background: #9ed0b448; }
.ob-kpi-nodes > i { width: 14px; height: 14px; border: 2px solid #9bcdb2; background: #23483e; border-radius: 50%; position: relative; z-index: 1; margin-right: auto; }
.ob-kpi-nodes > i:last-child { margin-right: 0; }
.ob-kpi-nodes > i.measured { background: #bde9bf; box-shadow: 0 0 0 4px #bbeac519; border-color: #d1f4d1; }
.ob-kpi-nodes > i.estimated { border-style: dashed; }
.ob-data-upgrade .ob-kpi-fresh { background: linear-gradient(145deg,#f4fbf4,#e7f3e8); border-color: #cfdfd1; }
.ob-kpi-ring { width: 61px; height: 61px; padding: 5px; margin-left: auto; flex-shrink: 0; border-radius: 50%; background: conic-gradient(#588d70 var(--ob-progress),#d5e4d6 0); transform: rotate(-90deg); }
.ob-kpi-ring > span { display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; width: 100%; height: 100%; border-radius: 50%; background: #edf7ed; font: 550 17px/1 Manrope,sans-serif; color: #457655; transform: rotate(90deg); }
.ob-kpi-ring small { font-size: 9px; margin-left: 1px; }
.ob-kpi-fresh .ob-kpi-main { gap: 9px; }
.ob-kpi-fresh .ob-kpi-main > span { font-size: 10px; }
.ob-kpi-fresh .ob-kpi-caption { margin-top: 22px; }
.ob-data-upgrade .ob-kpi-attention { background: linear-gradient(145deg,#fffcf4,#fbefda); border-color: #e9daba; }
.ob-data-upgrade .ob-kpi-attention .ob-stat-top { color: #8b7446; }
.ob-data-upgrade .ob-kpi-attention .ob-stat-icon { background: #f3e4c4; color: #a48745; }
.ob-kpi-attention .ob-kpi-main > strong { color: #9a7838; }
.ob-kpi-attention .ob-kpi-main > span { color: #99815b; }
.ob-kpi-attention .ob-kpi-action { color: #8b6d35; border-color: #b4965c29; }
.ob-kpi-levels { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; height: 55px; margin-bottom: 10px; }
.ob-kpi-levels > div { position: relative; display: flex; justify-content: flex-end; flex-direction: column; align-items: center; padding-top: 10px; }
.ob-kpi-levels i { width: 100%; height: calc(var(--ob-bar-height) * .46); min-height: 2px; max-height: 25px; border-radius: 4px 4px 1px 1px; background: var(--ob-bar-color); }
.ob-kpi-levels b { font-size: 8px; font-weight: 500; color: #a18d63; margin-bottom: 3px; }
.ob-kpi-levels small { font: 8px/1.5 'JetBrains Mono',monospace; color: #a18d63; margin-top: 4px; }
.ob-data-upgrade .ob-kpi-pending { background: #fbfcfa; border-color: #dde4df; }
.ob-kpi-pending .ob-kpi-main > strong { color: #577366; }
.ob-kpi-availability { display: flex; gap: 5px; height: 19px; margin: 5px 0 10px; }
.ob-kpi-availability > i { flex: 1; border-radius: 4px; background: #d4e4d4; border: 1px solid #c5d9c8; }
.ob-kpi-availability > i.pending { background: repeating-linear-gradient(135deg,#eeeae1,#eeeae1 4px,#ddd9cc 4px,#ddd9cc 6px); border-color: #d2c8b4; }
.ob-data-upgrade .ob-network { padding: 26px 26px 24px; margin-bottom: 22px; border: 1px solid #dce5dc; border-radius: 18px; background: linear-gradient(130deg,#eef3e9,#f8faf5 70%); scroll-margin-top: 20px; }
.ob-data-upgrade .ob-section-heading { margin-bottom: 22px; }
.ob-data-upgrade .ob-section-heading .ob-eyebrow { display: block; margin-bottom: 8px; font-size: 9px; letter-spacing: 1.5px; }
.ob-data-upgrade .ob-section-heading h2 { font-size: 23px; font-weight: 550; letter-spacing: -.7px; margin-bottom: 6px; }
.ob-data-upgrade .ob-section-heading p { font-size: 11px; color: #738171; }
.ob-network-count { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; white-space: nowrap; color: #698268; background: #e8efdf; padding: 8px 11px; border-radius: 20px; border: 1px solid #dbe7cf; }
.ob-data-upgrade .ob-station-tabs { gap: 12px; margin-bottom: 0; }
:root body.observatory-interface .ob-data-upgrade .river-node.ob-station-tab { display: flex; align-items: stretch; flex-direction: column; gap: 0; min-width: 0; padding: 17px; border: 1px solid #dde5d9; border-radius: 12px; background: #ffffffb3; transition: background .2s,transform .2s,box-shadow .2s; text-align: left; }
:root body.observatory-interface .ob-data-upgrade .river-node.ob-station-tab:hover { transform: translateY(-3px); border-color: #aac9ae; box-shadow: 0 7px 15px #2c54300b; }
:root body.observatory-interface .ob-data-upgrade .river-node.ob-station-tab.selected { background: #244b40; border-color: #244b40; box-shadow: 0 8px 18px #284d3420; }
.ob-station-top { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; }
.ob-data-upgrade .ob-station-symbol { width: 36px; height: 36px; background: #edf2e8; border: 1px solid #e0e8db; border-radius: 11px; color: #6f8c6c; }
.ob-station-index { margin-left: auto; font: 10px 'JetBrains Mono',monospace; color: #9dac97; }
.ob-station-viewing { color: #c7e9cc; font-size: 8px; }
.ob-data-upgrade .selected .ob-station-symbol { background: #ffffff0c; border-color: #afdab321; color: #b0dbbb; }
.ob-data-upgrade .selected .ob-station-index { display: none; }
:root body.observatory-interface .ob-data-upgrade .ob-station-tab strong { font-size: 17px; letter-spacing: -.3px; font-weight: 600; color: #2e5040; }
:root body.observatory-interface .ob-data-upgrade .ob-station-tab small { font-size: 10px; margin-top: 4px; color: #869480; }
:root body.observatory-interface .ob-data-upgrade .ob-station-tab.selected strong { color: #edf5e9; }
:root body.observatory-interface .ob-data-upgrade .ob-station-tab.selected .ob-station-name small { color: #b0cbb4; }
.ob-data-upgrade .ob-tab-status { display: block; margin-left: 0; margin-top: 12px; border-top: 1px solid #c4d3bd4a; padding-top: 10px; }
:root body.observatory-interface .ob-data-upgrade .ob-tab-status .badge { width: auto; height: auto; padding: 0; font-size: 10px; overflow: visible; white-space: normal; gap: 5px; background: transparent; }
:root body.observatory-interface .ob-data-upgrade .selected .ob-tab-status .badge { color: #e0d49c !important; }
:root body.observatory-interface .ob-data-upgrade .selected .ob-tab-status .badge.level-0 { color: #b6e6c2 !important; }
:root body.observatory-interface .ob-data-upgrade .selected .ob-tab-status .badge.level-2 { color: #f5bd86 !important; }
:root body.observatory-interface .ob-data-upgrade .selected .ob-tab-status .badge.level-3,:root body.observatory-interface .ob-data-upgrade .selected .ob-tab-status .badge.level-4 { color: #f7aea4 !important; }
:root body.observatory-interface .ob-data-upgrade .selected .ob-tab-status .badge.level-null { color: #c8d0c8 !important; }
:root body.observatory-interface .ob-data-upgrade .river-observatory.ob-live-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 34px; }
:root body.observatory-interface .ob-data-upgrade .river-observatory-map { border-radius: 17px; box-shadow: 0 4px 18px #294d3407; }
:root body.observatory-interface .ob-data-upgrade .river-workspace { padding: 24px; }
:root body.observatory-interface .ob-data-upgrade .river-header { margin-bottom: 21px; }
:root body.observatory-interface .ob-data-upgrade .river-header h3 { font-size: 24px; line-height: 1.5; margin: 3px 0; }
:root body.observatory-interface .ob-data-upgrade .river-header p { font-size: 11px; }
:root body.observatory-interface .ob-data-upgrade .river-instruction { font-size: 10px; }
:root body.observatory-interface .ob-data-upgrade .map-segment button,:root body.observatory-interface .ob-data-upgrade #map-fullscreen { min-height: 36px; font-size: 10px; padding: 7px 12px; }
:root body.observatory-interface .ob-data-upgrade #geographic-map { height: 420px !important; }
:root body.observatory-interface .ob-data-upgrade .expanded #geographic-map { height: calc(100vh - 250px) !important; }
:root body.observatory-interface .ob-data-upgrade .river-canvas { border-radius: 12px; }
:root body.observatory-interface .ob-data-upgrade .river-footer { margin-top: 14px; }
:root body.observatory-interface .ob-data-upgrade .river-stations { gap: 9px; margin-top: 12px; }
:root body.observatory-interface .ob-data-upgrade .river-station { padding: 10px 12px; background: #f6f8f2; border-radius: 8px; }
:root body.observatory-interface .ob-data-upgrade .river-station strong { font-size: 12px; }
:root body.observatory-interface .ob-data-upgrade .river-station small { font-size: 9px; }
:root body.observatory-interface .ob-data-upgrade .map-disclaimer { padding: 10px 12px; margin-top: 12px; font-size: 10px; width: 100%; max-width: none; }
:root body.observatory-interface .ob-data-upgrade .station-instrument { grid-row: auto; padding: 27px; border: 1px solid #dce5dc; background: #eef3ec; border-radius: 18px; }
.ob-measurement-header { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; align-items: center; margin-bottom: 25px; }
.ob-data-upgrade .ob-instrument-heading { justify-content: flex-start; gap: 10px; }
.ob-selected-code { font: 9px 'JetBrains Mono',monospace; padding: 4px 7px; background: #dde8db; border: 1px solid #cddbca; border-radius: 4px; color: #6a8163; }
:root body.observatory-interface .ob-data-upgrade .station-instrument h2 { font-size: 25px; letter-spacing: -.7px; margin: 9px 0 12px; line-height: 1.5; }
:root body.observatory-interface .ob-data-upgrade .instrument-selector { margin: 0; max-width: 360px; }
:root body.observatory-interface .ob-data-upgrade .instrument-selector .form-control { font-size: 12px; min-height: 40px; background: #f8faf5; }
:root body.observatory-interface .ob-data-upgrade .hydro-hero { padding: 17px 20px; margin: 0; background: #fffcf3; border: 1px solid #e4dbc3; border-radius: 12px; }
:root body.observatory-interface .ob-data-upgrade .hydro-hero > .badge { font-size: 16px; }
:root body.observatory-interface .ob-data-upgrade .hydro-hero > p { font-size: 12px; margin: 8px 0; }
:root body.observatory-interface .ob-data-upgrade .instrument-readings { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 0; }
:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric { padding: 20px; position: relative; min-height: 188px; border: 1px solid #dde6dc; border-radius: 13px; background: #fff; box-shadow: 0 3px 12px #29492c03; transition: transform .18s,box-shadow .18s; }
:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric:hover { transform: translateY(-3px); box-shadow: 0 8px 20px #294c3010; }
:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric-icon { width: 30px; height: 30px; position: absolute; top: 17px; right: 16px; margin: 0; border-radius: 9px; }
:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric-label { font-size: 12px; font-weight: 500; min-height: 32px; padding-right: 23px; color: #708570; }
:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric-value { font-size: 38px; letter-spacing: -1.3px; line-height: 1.4; margin: 9px 0 3px; color: #274e3c; }
:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric-unit { font-size: 10px; white-space: nowrap; letter-spacing: 0; color: #82917d; }
:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric-source { font-size: 10px; color: #8a9683; margin-top: 5px; }
:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric-spark { height: 34px; margin-top: 9px; color: #79a582; }
:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric-note,:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric-quality { font-size: 10px; line-height: 1.7; }
:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric[data-parameter="DO"] { background: linear-gradient(135deg,#24574c,#183e3b); border-color: #2c5b4a; }
:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric[data-parameter="DO"] .metric-value { color: #eef7e8; }
:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric[data-parameter="DO"] .metric-label { color: #c2dec9; }
:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric[data-parameter="DO"] .metric-unit,:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric[data-parameter="DO"] .metric-source,:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric[data-parameter="DO"] .metric-note,:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric[data-parameter="DO"] .metric-quality { color: #b1cdb9; }
:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric[data-parameter="DO"] .metric-icon { background: #c4e2c713; color: #c3e9d2; }
:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric[data-parameter="DO"] .metric-spark { color: #a3d6b1; }
:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric[data-parameter="NH4"] { background: #e0ecdc; border-color: #cbdcc5; }
.ob-measurement-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 23px; border-top: 1px solid #d5e0d0; padding-top: 19px; }
:root body.observatory-interface .ob-data-upgrade .instrument-provenance { border: 0; padding: 0; margin: 0; display: flex; justify-content: flex-start; gap: 35px; font-size: 10px; }
:root body.observatory-interface .ob-data-upgrade .instrument-provenance strong { font-size: 12px; color: #5c7554; padding-left: 21px; margin-top: 5px; }
:root body.observatory-interface .ob-data-upgrade .instrument-detail { width: auto; min-width: 210px; padding: 11px 16px; margin: 0; gap: 25px; background: #244d3e; color: #e2f1de; border: 1px solid #244d3e; border-radius: 8px; }
:root body.observatory-interface .ob-data-upgrade .river-analysis { grid-template-columns: minmax(0,1.9fr) minmax(0,1fr); gap: 22px; margin-bottom: 30px; align-items: stretch; }
:root body.observatory-interface .ob-data-upgrade .analysis-trend { padding: 26px; border-radius: 17px; }
:root body.observatory-interface .ob-data-upgrade .analysis-heading h2 { font-size: 21px; font-weight: 550; letter-spacing: -.6px; }
:root body.observatory-interface .ob-data-upgrade #overview-chart-parameter { min-height: 38px; font-size: 11px; }
.ob-chart-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; padding: 17px 0; border-top: 1px solid #e6ede2; border-bottom: 1px solid #e6ede2; margin-bottom: 8px; }
.ob-chart-stats > div { border-right: 1px solid #e6ede2; }
.ob-chart-stats > div:last-child { border-right: 0; }
.ob-chart-stats span { font-size: 10px; color: #8c9983; display: block; }
.ob-chart-stats strong { display: block; font: 550 24px/1.5 Manrope,sans-serif; color: #496441; margin-top: 5px; letter-spacing: -.5px; }
.ob-chart-stats small { font-family: 'Be Vietnam Pro',sans-serif; font-size: 9px; font-weight: 400; margin-left: 5px; letter-spacing: 0; color: #8a9581; }
.ob-chart-sample-note { font-size: 9px; color: #86927e; margin: 10px 0 16px; }
:root body.observatory-interface .ob-data-upgrade .data-context { padding: 27px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 100% 0,#426853 0,transparent 66%),#264c3c; border: 1px solid #36583e; border-radius: 17px; color: #d9e6ce; }
.ob-data-upgrade .ob-context-heading { color: #b8d4ad; font-size: 9px; letter-spacing: 1.2px; margin-bottom: 23px; }
:root body.observatory-interface .ob-data-upgrade .data-context h2 { font-size: 26px; font-weight: 500; line-height: 1.4; color: #eff4df; margin-bottom: 12px; }
:root body.observatory-interface .ob-data-upgrade .data-context > p { font-size: 11px; color: #bdd1b4; line-height: 1.9; margin-bottom: 23px; }
.ob-data-coverage { display: flex; gap: 13px; align-items: center; }
.ob-data-coverage > strong { font: 500 49px/1.3 Manrope,sans-serif; letter-spacing: -2px; color: #edf3d9; }
.ob-data-coverage small { font-size: 20px; letter-spacing: -.5px; margin-left: 3px; }
.ob-data-coverage > span { font-size: 10px; line-height: 1.8; color: #bad0ad; }
.ob-data-progress { height: 5px; background: #6d956239; border-radius: 5px; overflow: hidden; margin: 12px 0 21px; }
.ob-data-progress > i { display: block; height: 100%; background: #bad29a; border-radius: 5px; }
:root body.observatory-interface .ob-data-upgrade .context-row { font-size: 10px; padding: 13px 0; color: #b2c8a5; border-color: #b4d39920; }
:root body.observatory-interface .ob-data-upgrade .context-row strong { font-size: 10px; color: #e3ecd1; }
.ob-data-upgrade .ob-context-link { font-size: 11px; color: #dfedc7; margin-top: 24px; }
:root body.observatory-interface .ob-data-upgrade .fleet-comparison { border-radius: 17px; padding-top: 28px; overflow: hidden; }
:root body.observatory-interface .ob-data-upgrade .fleet-comparison .analysis-heading { padding: 0 27px 9px; }
:root body.observatory-interface .ob-data-upgrade .fleet-comparison table { font-size: 12px; }
:root body.observatory-interface .ob-data-upgrade .fleet-comparison th { font-size: 11px; padding: 15px 22px; background: #eff4e9; color: #708466; }
:root body.observatory-interface .ob-data-upgrade .fleet-comparison td { padding: 19px 22px; font-size: 15px; font-family: Manrope,sans-serif; font-variant-numeric: tabular-nums; }
:root body.observatory-interface .ob-data-upgrade .fleet-comparison td:first-child strong { display: inline-flex; min-width: 49px; padding: 5px 9px; border: 1px solid #dfe9d6; border-radius: 6px; font: 550 12px 'Be Vietnam Pro',sans-serif; background: #f3f7ed; color: #5d7750; }
:root body.observatory-interface .ob-data-upgrade .fleet-comparison .badge { font-size: 10px; font-family: 'Be Vietnam Pro',sans-serif; }
:root body.observatory-interface .ob-data-upgrade .fleet-comparison .table-footer { padding: 16px 27px; }
@media (max-width: 1180px) {
    .ob-data-upgrade .ob-summary { gap: 12px; }
    .ob-data-upgrade .ob-stat { padding: 17px 15px 15px; }
    .ob-data-upgrade .ob-stat-top { font-size: 10px; }
    .ob-kpi-main > strong { font-size: 52px; }
    .ob-kpi-main > span { font-size: 9px; }
    .ob-kpi-main { gap: 9px; }
    .ob-kpi-fresh .ob-kpi-main > span { display: none; }
    .ob-kpi-ring { width: 54px; height: 54px; }
    .ob-kpi-action,.ob-kpi-caption { font-size: 9px; }
    .ob-data-upgrade .ob-network { padding: 22px; }
    :root body.observatory-interface .ob-data-upgrade .river-node.ob-station-tab { padding: 13px; }
    :root body.observatory-interface .ob-data-upgrade .ob-station-tab small { font-size: 9px; }
    :root body.observatory-interface .ob-data-upgrade .instrument-readings .metric { padding: 16px; }
    :root body.observatory-interface .ob-data-upgrade .instrument-readings .metric-value { font-size: 33px; }
    :root body.observatory-interface .ob-data-upgrade .instrument-readings .metric-label { font-size: 11px; padding-right: 25px; }
    :root body.observatory-interface .ob-data-upgrade .instrument-readings .metric-icon { right: 12px; width: 25px; height: 25px; }
    :root body.observatory-interface .ob-data-upgrade .river-analysis { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); }
    :root body.observatory-interface .ob-data-upgrade .analysis-heading { flex-wrap: wrap; }
}
@media (max-width: 800px) {
    .ob-data-upgrade .ob-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ob-data-upgrade .ob-stat { padding: 21px; min-height: 250px; }
    .ob-data-upgrade .ob-stat-top { font-size: 12px; }
    .ob-kpi-main > strong { font-size: 57px; }
    .ob-kpi-main > span { font-size: 11px; }
    .ob-kpi-fresh .ob-kpi-main > span { display: block; font-size: 10px; }
    .ob-kpi-ring { width: 62px; height: 62px; }
    .ob-kpi-action,.ob-kpi-caption { font-size: 10px; }
    .ob-measurement-header { gap: 20px; }
    :root body.observatory-interface .ob-data-upgrade .instrument-readings { grid-template-columns: repeat(2,minmax(0,1fr)); }
    :root body.observatory-interface .ob-data-upgrade .river-analysis { grid-template-columns: 1fr; }
    .ob-measurement-footer { align-items: flex-start; }
    :root body.observatory-interface .ob-data-upgrade .instrument-provenance { flex-direction: column; gap: 13px; }
}
@media (max-width: 600px) {
    .ob-data-upgrade .ob-summary { gap: 10px; margin: 20px 0 28px; }
    .ob-data-upgrade .ob-stat { min-height: 235px; padding: 15px 14px 14px; border-radius: 13px; }
    .ob-data-upgrade .ob-stat-top { font-size: 10px; gap: 4px; align-items: flex-start; }
    .ob-data-upgrade .ob-stat-icon { width: 27px; height: 27px; border-radius: 8px; flex-shrink: 0; }
    .ob-data-upgrade .ob-stat-icon svg { width: 16px; }
    .ob-kpi-main { gap: 8px; margin: 14px 0 9px; min-height: 65px; }
    .ob-kpi-main > strong { font-size: 49px; }
    .ob-kpi-main > span { font-size: 9px; }
    .ob-kpi-main > span > small { display: none; }
    .ob-kpi-fresh .ob-kpi-main > span { display: none; }
    .ob-kpi-ring { width: 53px; height: 53px; padding: 4px; }
    .ob-kpi-ring > span { font-size: 14px; }
    .ob-kpi-caption,.ob-kpi-action { font-size: 9px; line-height: 1.7; }
    .ob-kpi-levels { gap: 6px; }
    .ob-data-upgrade .ob-network { padding: 20px 16px; border-radius: 14px; }
    .ob-data-upgrade .ob-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .ob-data-upgrade .ob-section-heading h2 { font-size: 21px; line-height: 1.5; }
    .ob-data-upgrade .ob-section-heading p { line-height: 1.8; }
    .ob-data-upgrade .ob-station-tabs { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 8px; }
    :root body.observatory-interface .ob-data-upgrade .river-node.ob-station-tab { flex: 0 0 158px; padding: 16px; }
    :root body.observatory-interface .ob-data-upgrade .river-workspace { padding: 17px; }
    :root body.observatory-interface .ob-data-upgrade .river-header { flex-wrap: wrap; align-items: flex-start; gap: 14px; }
    :root body.observatory-interface .ob-data-upgrade .river-header h3 { font-size: 21px; }
    :root body.observatory-interface .ob-data-upgrade #geographic-map { height: 320px !important; }
    :root body.observatory-interface .ob-data-upgrade .river-stations { gap: 6px; }
    :root body.observatory-interface .ob-data-upgrade .river-station { padding: 7px 5px; }
    :root body.observatory-interface .ob-data-upgrade .river-station strong { font-size: 10px; }
    :root body.observatory-interface .ob-data-upgrade .river-station small { display: none; }
    :root body.observatory-interface .ob-data-upgrade .station-instrument { padding: 18px; }
    .ob-measurement-header { grid-template-columns: 1fr; gap: 17px; }
    :root body.observatory-interface .ob-data-upgrade .station-instrument h2 { font-size: 23px; }
    :root body.observatory-interface .ob-data-upgrade .instrument-selector .form-control { min-height: 44px; max-width: none; }
    :root body.observatory-interface .ob-data-upgrade .instrument-readings { gap: 10px; }
    :root body.observatory-interface .ob-data-upgrade .instrument-readings .metric { min-height: 170px; padding: 14px; }
    :root body.observatory-interface .ob-data-upgrade .instrument-readings .metric-icon { width: 22px; height: 22px; top: 12px; right: 10px; }
    :root body.observatory-interface .ob-data-upgrade .instrument-readings .metric-label { font-size: 10px; padding-right: 15px; }
    :root body.observatory-interface .ob-data-upgrade .instrument-readings .metric-value { font-size: 30px; margin-top: 11px; }
    :root body.observatory-interface .ob-data-upgrade .instrument-readings .metric-unit { font-size: 8px; white-space: normal; }
    :root body.observatory-interface .ob-data-upgrade .instrument-readings .metric-source,:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric-note,:root body.observatory-interface .ob-data-upgrade .instrument-readings .metric-quality { font-size: 9px; }
    .ob-measurement-footer { flex-direction: column; gap: 18px; }
    :root body.observatory-interface .ob-data-upgrade .instrument-provenance { flex-direction: row; flex-wrap: wrap; gap: 16px; }
    :root body.observatory-interface .ob-data-upgrade .instrument-provenance strong { font-size: 10px; }
    :root body.observatory-interface .ob-data-upgrade .instrument-detail { width: 100%; min-height: 44px; }
    :root body.observatory-interface .ob-data-upgrade .analysis-trend { padding: 19px; }
    :root body.observatory-interface .ob-data-upgrade .analysis-heading h2 { font-size: 19px; }
    .ob-chart-stats { gap: 11px; }
    .ob-chart-stats strong { font-size: 21px; }
    .ob-chart-stats small { display: block; margin-left: 0; }
    .ob-chart-sample-note { font-size: 9px; line-height: 1.8; }
    :root body.observatory-interface .ob-data-upgrade .fleet-comparison .analysis-heading { padding: 0 19px 9px; }
    :root body.observatory-interface .ob-data-upgrade .fleet-comparison td { padding: 16px; font-size: 14px; }
    :root body.observatory-interface .ob-data-upgrade .fleet-comparison th { padding: 13px 16px; }
}
@media (max-width: 360px) {
    .ob-data-upgrade .ob-stat { padding: 14px 11px; }
    .ob-data-upgrade .ob-stat-top { font-size: 9px; }
    .ob-kpi-main > strong { font-size: 44px; }
    .ob-kpi-main > span { font-size: 8px; }
    .ob-kpi-ring { width: 46px; height: 46px; }
    .ob-kpi-action { font-size: 8px; }
    .ob-kpi-action svg { width: 12px; }
    :root body.observatory-interface .ob-data-upgrade .instrument-readings .metric { padding: 12px; }
    :root body.observatory-interface .ob-data-upgrade .instrument-readings .metric-value { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
    .ob-data-upgrade *, .ob-data-upgrade *:before { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==== observatory-map.css ==== */
/* Water alerts remain point-specific; the basemap carries geographic context. */
:root body.observatory-interface .water-alert-map .river-header h3 { font-size: 25px; }
:root body.observatory-interface .water-alert-map .river-instruction { font-size: 10px; letter-spacing: 1.8px; color: #688477; }
.map-situation { display: flex; align-items: center; gap: 13px; padding: 16px 18px; margin-bottom: 17px; background: #173e39; border-radius: 11px; color: #eaf4eb; }
.map-situation-symbol { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; background: #fff6e2; color: var(--point-color); border-radius: 12px; }
.map-situation-symbol svg { width: 23px; height: 23px; }
.map-situation strong { font-size: 16px; font-weight: 600; }
.map-situation p { margin: 5px 0 0; font-size: 11px; color: #b9d3c8; }
.map-mode { margin-left: auto; font: 10px/1.6 'JetBrains Mono',monospace; padding: 6px 10px; border: 1px solid #cae4d131; background: #ffffff09; border-radius: 6px; color: #cedbc1; text-align: center; }
.map-command-grid { display: grid; grid-template-columns: minmax(0,1fr) 244px; gap: 16px; }
:root body.observatory-interface .water-alert-map #geographic-map { height: 480px !important; background: #e8efec; }
:root body.observatory-interface .water-alert-map.expanded #geographic-map { height: max(480px,calc(100dvh - 480px)) !important; }
:root body.observatory-interface .water-alert-map .river-canvas { border-radius: 12px; border: 1px solid #d6e3dd; }
.water-alert-map .leaflet-tile-pane { filter: saturate(.38) contrast(.93) brightness(1.055); }
.water-alert-map .leaflet-container { font-family: Manrope,'Segoe UI',sans-serif; }
:root body.observatory-interface .water-alert-map .map-compass { background: #ffffffec; border: 1px solid #d7e4df; box-shadow: 0 3px 10px #193d3510; }
:root body.observatory-interface .water-alert-map .map-floating-tools button { background: #ffffffed; border-color: #d5e2dc; font-size: 11px; padding: 9px 12px; box-shadow: 0 3px 12px #1c453718; }
.map-alert-rail { display: flex; flex-direction: column; border: 1px solid #dde6df; border-radius: 12px; background: #f6f9f3; padding: 17px 12px 12px; min-width: 0; }
.map-rail-heading { padding: 0 5px 13px; border-bottom: 1px solid #dbe5da; }
.map-rail-heading > span { display: block; font-size: 9px; font-weight: 600; letter-spacing: 1px; color: #74907c; }
.map-rail-heading > strong { display: block; font: 600 32px/1.5 Manrope,sans-serif; color: #2c5343; letter-spacing: -1px; }
.map-rail-heading > strong small { font: 11px Manrope,sans-serif; letter-spacing: 0; color: #82917d; }
.map-rail-heading p { font-size: 10px; margin: 0; color: #778d79; }
:root body.observatory-interface .water-alert-map .river-stations { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
:root body.observatory-interface .water-alert-map .river-station { display: flex; align-items: center; flex: initial; gap: 9px; padding: 9px 10px; border-radius: 8px; border: 1px solid transparent; background: transparent; text-align: left; min-width: 0; }
:root body.observatory-interface .water-alert-map .river-station:hover { background: white; border-color: #d9e3d9; }
:root body.observatory-interface .water-alert-map .river-station.active { background: #fff; border-color: var(--point-color); box-shadow: 0 3px 10px #27402c0b; }
.map-rail-icon { color: var(--point-color); display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid color-mix(in srgb,var(--point-color) 30%,white); background: color-mix(in srgb,var(--point-color) 7%,white); border-radius: 9px; flex-shrink: 0; }
.map-rail-icon svg { width: 17px; height: 17px; }
.map-rail-text { flex: 1; min-width: 0; }
:root body.observatory-interface .water-alert-map .river-station strong { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #305141; }
.map-rail-text em { color: var(--point-color); font: 600 9px 'JetBrains Mono',monospace; padding: 2px 4px; background: color-mix(in srgb,var(--point-color) 9%,white); border-radius: 3px; }
:root body.observatory-interface .water-alert-map .river-station small { font-size: 11px; color: var(--point-color); margin: 3px 0; }
.map-rail-text > span { display: block; font-size: 8px; color: #76867a; line-height: 1.6; }
:root body.observatory-interface .water-alert-map .river-station > b { font-size: 15px; color: #8f9e90; margin-left: 0; }
.map-alert-link { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 9px 5px 0; border-top: 1px solid #dde5d9; font-size: 10px; font-weight: 600; color: #36654f; }
.map-focus-strip { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 7px 24px; padding: 15px 18px; margin-top: 16px; border: 1px solid color-mix(in srgb,var(--point-color) 24%,white); border-left: 3px solid var(--point-color); border-radius: 9px; background: color-mix(in srgb,var(--point-color) 4%,white); }
.map-focus-strip > div { grid-row: span 2; }
.map-focus-strip > div > span:first-child { display: block; color: #728275; font-size: 9px; letter-spacing: .5px; margin-bottom: 6px; }
.map-status-badge { display: inline-flex; gap: 7px; align-items: center; color: var(--point-color); font-size: 13px; font-weight: 650; }
.map-status-badge svg { width: 18px; height: 18px; }
.map-focus-strip p { margin: 0; font-size: 12px; color: #3a5345; }
.map-focus-strip > small { font-size: 10px; color: #748779; }
.map-level-legend { display: flex; flex-wrap: wrap; gap: 9px 17px; padding: 16px 0 13px; border-bottom: 1px solid #e3e9e1; }
.map-level-legend > span { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--point-color); }
.map-level-legend svg { width: 14px; height: 14px; }
.map-level-legend b { font: 600 9px 'JetBrains Mono',monospace; }
:root body.observatory-interface .water-alert-map .geographic-legend { gap: 14px; font-size: 10px; }
.geographic-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.map-source-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #627e6f; border: 2px solid #627e6f; }
.map-source-dot.estimated { background: white; border-style: dashed; }
.map-river-key { width: 18px; height: 3px; background: #408c99; border-radius: 2px; }
:root body.observatory-interface .water-alert-map .signal-help { font-size: 10px; line-height: 1.8; margin-top: 9px; }
:root body.observatory-interface .water-alert-map .alert-map-pin { width: 38px; height: 38px; border: 3px solid white; border-radius: 50%; color: white; background: var(--point-color); box-shadow: 0 0 0 8px color-mix(in srgb,var(--point-color) 13%,transparent),0 3px 10px #19382b30; outline: none; }
:root body.observatory-interface .water-alert-map .alert-map-pin > span { display: grid; place-items: center; width: 32px; height: 32px; color: white; background: var(--point-color); border: 0; border-radius: 50%; }
:root body.observatory-interface .water-alert-map .alert-map-pin > span svg { width: 20px; height: 20px; }
:root body.observatory-interface .water-alert-map .alert-map-pin.estimated > span { background: #fff; color: var(--point-color); border: 2px dashed var(--point-color); }
:root body.observatory-interface .water-alert-map .alert-map-pin.selected { box-shadow: 0 0 0 8px color-mix(in srgb,var(--point-color) 18%,transparent),0 0 0 11px #fff9,0 4px 12px #17342840; }
.alert-map-pin .map-pin-label { position: absolute; bottom: 51px; left: 50%; transform: translateX(-50%); width: 116px; padding: 9px 10px; background: #fffffffa; border: 1px solid color-mix(in srgb,var(--point-color) 45%,white); border-top: 3px solid var(--point-color); border-radius: 9px; color: #314e42; box-shadow: 0 5px 16px #294b3b20; font-family: Manrope,sans-serif; line-height: 1.5; }
.map-pin-label:after { content: ''; position: absolute; top: 100%; left: 50%; height: 18px; width: 1px; background: var(--point-color); }
.alert-map-pin.label-below .map-pin-label { top: 51px; bottom: auto; }
.label-below .map-pin-label:after { top: auto; bottom: 100%; }
.map-pin-label > strong { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; }
.map-pin-label em { font: 600 9px 'JetBrains Mono',monospace; color: var(--point-color); background: color-mix(in srgb,var(--point-color) 10%,white); padding: 2px 4px; border-radius: 3px; }
.map-pin-label > small { display: block; font-size: 11px; font-weight: 600; color: var(--point-color); margin: 3px 0; }
.map-pin-label > span { display: block; font-size: 8px; color: #7c8c81; }
.water-alert-map .leaflet-marker-icon:focus-visible .map-pin-label { outline: 3px solid #245845; outline-offset: 3px; }
.water-alert-map .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 10px 35px #19392d26; }
.water-alert-popup { font-family: Manrope,'Segoe UI',sans-serif; min-width: 0; }
.water-alert-popup > strong { line-height: 1.5; margin: 5px 0 10px; color: #26493a; }
.water-alert-popup .eyebrow { color: #6c8677; letter-spacing: .5px; }
.water-alert-popup .map-popup-reason { padding: 10px; border-radius: 6px; background: color-mix(in srgb,var(--point-color) 6%,white); color: #435b4b; font-size: 12px; }
.map-popup-readings { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 10px 0; border-top: 1px solid #e6ebe4; border-bottom: 1px solid #e6ebe4; }
.map-popup-readings small,.map-popup-readings span,.map-popup-readings em { display: block; font-size: 9px; color: #738879; }
.map-popup-readings strong { display: block; font-size: 19px; color: #264c39; font-weight: 600; }
.map-popup-readings em { font-size: 8px; }
.water-alert-popup .geographic-coordinates { font-size: 10px; color: #7c8b80; }
.water-alert-popup .btn { width: 100%; margin-top: 7px; }
@media (max-width: 1100px) {
    .map-command-grid { grid-template-columns: minmax(0,1fr); }
    .map-alert-rail { padding: 14px; }
    .map-rail-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding-bottom: 10px; }
    .map-rail-heading > strong { font-size: 20px; margin-left: auto; }
    .map-rail-heading p { width: 100%; }
    :root body.observatory-interface .water-alert-map .river-stations { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); }
}
@media (max-width: 600px) {
    :root body.observatory-interface .water-alert-map .river-header h3 { font-size: 22px; }
    :root body.observatory-interface .water-alert-map #geographic-map { height: 430px !important; }
    .map-situation { flex-wrap: wrap; padding: 13px; gap: 10px; }
    .map-situation > div { flex: 1 1 calc(100% - 50px); min-width: 0; }
    .map-situation strong { font-size: 14px; }
    .map-situation p { font-size: 10px; line-height: 1.7; }
    .map-mode { flex: 0 0 calc(100% - 50px); margin-left: 50px; font-size: 9px; padding: 4px 7px; text-align: left; }
    .map-focus-strip { grid-template-columns: 1fr; gap: 9px; padding: 13px; }
    .map-focus-strip > div { grid-row: auto; }
    .map-level-legend { gap: 11px 14px; }
    :root body.observatory-interface .water-alert-map .river-stations { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
    :root body.observatory-interface .water-alert-map .river-station { padding: 8px 5px; gap: 6px; }
    .map-rail-text > span { font-size: 8px; }
    .alert-map-pin .map-pin-label { width: 96px; padding: 7px; }
    .map-pin-label > small { font-size: 10px; }
    .map-pin-label > span { display: none; }
    .alert-map-pin.label-below .map-pin-label { left: calc(50% - 30px); }
    .label-below .map-pin-label:after { left: calc(50% + 30px); }
}
@media (prefers-reduced-motion: reduce) {
    .water-alert-map .signal-ring { animation: none !important; }
}
@media (max-width: 400px) {
    .alert-map-pin .map-pin-label { width: 80px; padding: 5px; line-height: 1.4; }
    .map-pin-label > strong { font-size: 11px; }
    .map-pin-label > small { font-size: 9px; margin: 2px 0; }
}

/* ==== observatory-system.css ==== */
/* Project tokens and component rules: /DESIGN.md. */
:root body.observatory-interface {
    --ob-ink: #18212f;
    --ob-muted: #59616e;
    --ob-paper: #f7f8f9;
    --ob-line: #dcdfe4;
    --ob-accent: #11346b;
    --ob-radius: 12px;
    --ob-space: 24px;
    font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}
:root body.observatory-interface button,
:root body.observatory-interface input,
:root body.observatory-interface select {
    font-family: inherit;
}
:root body.observatory-interface .sidebar {
    background: #fff;
    color: #525c6b;
    border-right: 1px solid var(--ob-line);
}
:root body.observatory-interface .brand {
    border-color: var(--ob-line);
    color: var(--ob-ink);
    margin-bottom: 24px;
}
:root body.observatory-interface .brand strong {
    color: #202c3f;
    font-size: 15px;
}
:root body.observatory-interface .brand small {
    color: #666f7d;
    font-size: 13px;
}
:root body.observatory-interface #brand-logo {
    background: #edf0f4;
    color: #143b79;
    border-color: #d6dde8;
}
:root body.observatory-interface .nav-item {
    color: #505866;
    font-size: 13px;
    min-height: 46px;
}
:root body.observatory-interface .nav-item:hover {
    background: #f0f2f5;
    color: #11346b;
}
:root body.observatory-interface .nav-item.active {
    background: #11346b;
    border-color: #11346b;
    color: #fff;
    box-shadow: none;
}
:root body.observatory-interface .ob-nav-label {
    font-size: 13px;
    letter-spacing: 0.9px;
    color: #6d7581;
}
:root body.observatory-interface .ob-nav-count {
    background: #fff0d2;
    color: #7a520c;
    font-size: 13px;
}
:root body.observatory-interface .ob-sidebar-note {
    background: #f3f5f8;
    border-color: #dde1e8;
    border-radius: 10px;
    padding: 16px;
}
:root body.observatory-interface .ob-sidebar-note strong {
    color: #303f57;
    font-size: 13px;
}
:root body.observatory-interface .ob-sidebar-note p {
    color: #586374;
    font-size: 13px;
}
:root body.observatory-interface .ob-sidebar-note svg {
    color: #465f87;
}
:root body.observatory-interface .sidebar-bottom {
    border-color: var(--ob-line);
    color: #6c737e;
    font-size: 13px;
}
:root body.observatory-interface .sidebar-bottom strong {
    color: #3b4659;
    font-size: 13px;
}
:root body.observatory-interface .institute {
    color: #4d5f7d;
    background: #edf0f4;
    border-color: #dadfe6;
}
:root body.observatory-interface .topbar {
    background: #fff;
    border-color: var(--ob-line);
}
:root body.observatory-interface #breadcrumb {
    font-size: 13px;
    color: #5d6571;
}
:root body.observatory-interface .account {
    font-size: 13px;
}
:root body.observatory-interface .notification-button {
    width: 44px;
    height: 44px;
}
:root body.observatory-interface .btn {
    font-size: 13px;
    min-height: 44px;
    border-radius: 8px;
    font-weight: 500;
}
:root body.observatory-interface .form-control {
    font-size: 14px;
    min-height: 44px;
    background: white;
    border-color: #cbd0d8;
}
:root body.observatory-interface .page-head h1 {
    font-size: 30px;
    font-weight: 600;
}
:root body.observatory-interface .page-head p {
    font-size: 14px;
    color: var(--ob-muted);
}
:root body.observatory-interface .card {
    border-radius: var(--ob-radius);
    box-shadow: none;
}
:root body.observatory-interface .card h2 {
    font-size: 20px;
}
:root body.observatory-interface .badge {
    font-size: 13px;
}
:root body.observatory-interface .gate-banner {
    border-radius: 8px;
    padding: 16px;
}
:root body.observatory-interface .gate-banner strong,
:root body.observatory-interface .gate-banner p,
:root body.observatory-interface .gate-banner a {
    font-size: 13px;
    line-height: 1.7;
}
:root body.observatory-interface footer {
    font-size: 13px;
}

.ob-design-system .ob-eyebrow {
    font-size: 13px;
    letter-spacing: 0.9px;
    color: #5e6879;
}
.ob-design-system .ob-page-heading {
    margin: 0 0 24px;
    align-items: center;
}
.ob-design-system .ob-page-heading h1 {
    font-size: clamp(25px, 2.3vw, 32px);
    font-weight: 600;
    letter-spacing: -0.8px;
    line-height: 1.35;
    margin: 9px 0;
}
.ob-design-system .ob-page-heading p {
    font-size: 13px;
    line-height: 1.7;
    max-width: none;
}
:root body.observatory-interface .ob-design-system .ob-report {
    font-size: 13px !important;
    padding: 10px 15px;
    margin-top: 0;
}
.ob-design-system .ob-welcome {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-radius: 16px;
    min-height: 0;
    background: #13223a;
    margin-bottom: 24px;
}
.ob-design-system .ob-welcome:after {
    display: none;
}
.ob-design-system .ob-location {
    font-size: 13px;
    letter-spacing: 0;
    color: #b7c5db;
}
.ob-design-system .ob-welcome h2 {
    font:
        500 clamp(29px, 2.7vw, 40px)/1.25 "Be Vietnam Pro",
        sans-serif;
    letter-spacing: -1.3px;
    margin: 18px 0 14px;
    color: #f4f6fa;
}
.ob-design-system .ob-welcome p {
    color: #c1c9d7;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 23px;
}
.ob-design-system .ob-welcome-actions {
    gap: 17px;
    flex-wrap: wrap;
}
.ob-design-system .ob-primary {
    min-height: 46px;
    padding: 11px 17px;
    font-size: 13px;
    border-radius: 8px;
    background: #d7e2f4;
    color: #14294c;
    border-color: #d7e2f4;
}
.ob-design-system .ob-primary:hover {
    background: #e6edf9;
    transform: none;
}
.ob-hero-guide {
    color: #d2d9e5;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 13px;
}
.ob-design-system .ob-mode {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 21px;
    font-size: 13px;
    line-height: 1.7;
    color: #c4cddc;
}
.ob-design-system .ob-mode i {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
}
.ob-design-system .ob-mode > span {
    color: #afb9c9;
    border-left: 1px solid #a6b3c744;
    padding-left: 9px;
}
.ob-live-preview {
    min-width: 0;
    border: 1px solid #91a2bd45;
    border-radius: 12px;
    padding: 22px 20px 16px;
    background: #ffffff06;
    color: #edf1f7;
}
.ob-preview-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    font-size: 13px;
}
.ob-preview-heading > span:first-child {
    color: #c2ccdd;
}
.ob-preview-level {
    color: #f4d9b4;
    background: #ffffff07;
    border: 1px solid #dabda633;
    border-radius: 5px;
    padding: 5px 7px;
    font-size: 13px;
}
.ob-preview-number {
    display: flex;
    gap: 17px;
    align-items: center;
    padding: 18px 0 10px;
}
.ob-preview-number > strong {
    font:
        500 48px/1.1 "Be Vietnam Pro",
        sans-serif;
    color: #f4f7fb;
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
}
.ob-preview-number > span {
    display: block;
    font-size: 13px;
    color: #bbc6d8;
    line-height: 1.8;
}
.ob-preview-number > span strong {
    display: block;
    font-size: 13px;
    color: #f4d9af;
    font-weight: 500;
}
.ob-preview-route {
    display: grid;
    grid-template-columns: repeat(var(--preview-points), minmax(0, 1fr));
    position: relative;
    gap: 5px;
    padding: 11px 0 17px;
}
.ob-preview-route:before {
    content: "";
    position: absolute;
    top: 53px;
    height: 1px;
    background: #909fb678;
    left: 10%;
    right: 10%;
}
.ob-preview-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    color: var(--preview-color);
    background: transparent;
    border: 0;
    min-width: 0;
    border-radius: 6px;
}
.ob-preview-grade {
    font:
        10px/1.5 "JetBrains Mono",
        monospace;
    margin-bottom: 10px;
}
.ob-preview-dot {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #24334a;
    border: 1px solid var(--preview-color);
    position: relative;
    z-index: 1;
}
.ob-preview-dot svg {
    width: 19px;
    height: 19px;
}
.ob-preview-point.estimated .ob-preview-dot {
    border-style: dashed;
}
.ob-preview-point.measured .ob-preview-dot {
    background: var(--preview-color);
    color: #19263c;
}
.ob-preview-point.selected .ob-preview-dot {
    box-shadow: 0 0 0 4px #c4d0e426;
}
.ob-preview-point:hover .ob-preview-dot {
    box-shadow: 0 0 0 4px #c4d0e439;
}
.ob-preview-point > strong {
    font-size: 13px;
    font-weight: 500;
    margin-top: 10px;
    color: #eceff5;
}
.ob-preview-point > small {
    font-size: 13px;
    margin-top: 3px;
    text-align: center;
    line-height: 1.5;
}
.ob-preview-empty {
    grid-column: 1/-1;
}
.ob-preview-key {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 12px;
    border-top: 1px solid #bdc8da1c;
    font-size: 13px;
    color: #c7cfdb;
}
.ob-preview-key > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ob-preview-key i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b4c1d6;
    border: 1px solid #b4c1d6;
}
.ob-preview-key i.estimated {
    background: transparent;
    border-style: dashed;
}
.ob-design-system .ob-preview-note {
    font-size: 13px;
    line-height: 1.6;
    margin: 9px 0 0;
    color: #a9b4c6;
}

:root body.observatory-interface .ob-design-system .ob-summary {
    gap: 16px;
    margin: 0 0 20px;
}
:root body.observatory-interface .ob-design-system .ob-stat {
    border: 1px solid #dbdee4;
    border-radius: var(--ob-radius);
    background: #fff;
    min-height: 0;
    padding: 14px 16px 10px;
    box-shadow: none;
}
:root body.observatory-interface .ob-design-system .ob-stat:hover {
    transform: none;
    box-shadow: 0 2px 8px #29334409;
}
:root body.observatory-interface .ob-design-system .ob-stat-top {
    font-size: 13px;
    color: #5a6372;
    font-weight: 500;
}
:root body.observatory-interface .ob-design-system .ob-stat-icon {
    background: #edf0f5;
    color: #4a5c7a;
    width: 31px;
    height: 31px;
    border-radius: 8px;
}
.ob-design-system .ob-kpi-network:before {
    display: none;
}
.ob-design-system .ob-kpi-main {
    margin: 17px 0 12px;
    gap: 12px;
}
.ob-design-system .ob-kpi-main > strong {
    font:
        500 48px/1.1 "Be Vietnam Pro",
        sans-serif;
    color: #1c2c46;
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
}
.ob-design-system .ob-kpi-main > span {
    color: #5a6473;
    font-size: 13px;
}
.ob-design-system .ob-kpi-main > span > small {
    color: #5e6877;
    font-size: 13px;
}
.ob-design-system .ob-kpi-caption {
    font-size: 13px;
    color: #5c6675;
}
.ob-design-system .ob-kpi-action {
    font-size: 13px;
    color: #233d66;
    line-height: 1.6;
    padding-top: 13px;
    border-color: #dadee4;
}
.ob-design-system .ob-kpi-nodes:before {
    background: #8597b3;
}
.ob-design-system .ob-kpi-nodes > i {
    border-color: #677c9d;
    background: white;
    width: 12px;
    height: 12px;
}
.ob-design-system .ob-kpi-nodes > i.measured {
    background: #395178;
    box-shadow: 0 0 0 4px #e0e6ef;
}
:root body.observatory-interface .ob-design-system .ob-kpi-attention {
    background: #fff8eb;
    border-color: #e9d9b9;
}
.ob-design-system .ob-kpi-attention .ob-stat-top,
.ob-design-system .ob-kpi-attention .ob-kpi-caption {
    color: #81612b;
}
.ob-design-system .ob-kpi-attention .ob-kpi-main > strong {
    color: #845714;
}
.ob-design-system .ob-kpi-attention .ob-kpi-action {
    color: #775721;
    border-color: #e9d9b9;
}
.ob-design-system .ob-kpi-levels b {
    font-size: 13px;
    color: #816634;
}
.ob-design-system .ob-kpi-levels small {
    font-size: 13px;
    color: #816634;
}
.ob-design-system .ob-kpi-ring {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}
.ob-design-system .ob-kpi-ring > span {
    color: #324769;
    font-size: 17px;
}
.ob-design-system .ob-kpi-ring small {
    font-size: 13px;
}
.ob-design-system .ob-kpi-availability {
    height: 16px;
}

:root body.observatory-interface .ob-design-system .ob-network {
    background: white;
    border: 1px solid var(--ob-line);
    padding: 18px;
    border-radius: var(--ob-radius);
    margin-bottom: 24px;
}
.ob-design-system .ob-section-heading {
    gap: 16px;
    margin-bottom: 20px;
}
.ob-design-system .ob-section-heading h2 {
    font-size: 23px;
    font-weight: 600;
    margin: 7px 0;
    letter-spacing: -0.5px;
}
.ob-design-system .ob-section-heading p {
    font-size: 13px;
    line-height: 1.7;
    color: #616977;
}
.ob-design-system .ob-network-count,
.ob-design-system .ob-count-pill {
    font-size: 13px;
    background: #eff1f5;
    color: #4b5970;
    border-color: #dce0e7;
    padding: 8px 12px;
}
:root body.observatory-interface .ob-design-system .river-node.ob-station-tab {
    background: #f7f8fa;
    padding: 16px;
    border-color: #dce0e7;
    border-radius: 8px;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab:hover {
    transform: none;
    background: #edf0f6;
    box-shadow: none;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab.selected {
    background: #e8ecf3;
    border-color: #657ca2;
    box-shadow: inset 0 0 0 1px #657ca2;
}
:root body.observatory-interface .ob-design-system .ob-station-tab strong {
    font-size: 17px;
    color: #25344c;
}
:root body.observatory-interface .ob-design-system .ob-station-tab small {
    font-size: 13px;
    color: #606a79;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab.selected
    strong {
    color: #25344c;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab.selected
    small {
    color: #4f5c71;
}
.ob-design-system .ob-station-top {
    margin-bottom: 12px;
}
.ob-design-system .ob-station-symbol,
.ob-design-system .selected .ob-station-symbol {
    background: #e0e5ed;
    border-color: #cdd5e2;
    color: #395075;
}
.ob-design-system .ob-station-viewing {
    color: #3c5071;
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system .ob-tab-status .badge {
    display: inline-flex;
    width: auto;
    height: auto;
    overflow: visible;
    font-size: 13px;
    line-height: 1.6;
    color: inherit !important;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-tab-status
    .badge.level-0 {
    color: #176c3e !important;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-tab-status
    .badge.level-1 {
    color: #85620e !important;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-tab-status
    .badge.level-2 {
    color: #ac501c !important;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-tab-status
    .badge.level-3,
:root
    body.observatory-interface
    .ob-design-system
    .ob-tab-status
    .badge.level-4 {
    color: #a52c3f !important;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-tab-status
    .badge.level-null {
    color: #5d6470 !important;
}
:root body.observatory-interface .ob-design-system .river-observatory-map {
    scroll-margin-top: 20px;
    border-radius: var(--ob-radius);
}
:root body.observatory-interface .ob-design-system .station-instrument {
    background: #fff;
    border-color: var(--ob-line);
    border-radius: var(--ob-radius);
    padding: 18px;
}
:root body.observatory-interface .ob-design-system .station-instrument h2 {
    font-size: 25px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-selector
    .form-control {
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system .hydro-hero > .badge {
    font-size: 16px;
}
:root body.observatory-interface .ob-design-system .hydro-hero > p {
    font-size: 13px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric {
    min-height: 0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: none;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric:hover {
    transform: none;
    box-shadow: none;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-label {
    font-size: 13px;
    color: #5b6677;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-value {
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -1px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-unit {
    font-size: 13px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-source,
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-note,
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-quality {
    font-size: 13px;
    line-height: 1.7;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric[data-parameter="DO"] {
    background: #14243e;
    border-color: #14243e;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric[data-parameter="DO"]
    .metric-label {
    color: #c3ccdb;
}
:root body.observatory-interface .ob-design-system .instrument-provenance {
    font-size: 13px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-provenance
    strong {
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system .instrument-detail {
    background: #11346b;
    border-color: #11346b;
    color: white;
}
:root body.observatory-interface .ob-design-system .analysis-trend {
    border-radius: var(--ob-radius);
    padding: 18px;
}
:root body.observatory-interface .ob-design-system .analysis-heading h2 {
    font-size: 22px;
    font-weight: 600;
}
:root body.observatory-interface .ob-design-system .analysis-heading p {
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system #overview-chart-parameter {
    font-size: 13px;
    min-height: 44px;
}
.ob-design-system .ob-chart-stats span {
    font-size: 13px;
    color: #606875;
}
.ob-design-system .ob-chart-stats strong {
    font:
        500 24px/1.5 "Be Vietnam Pro",
        sans-serif;
    color: #25354f;
}
.ob-design-system .ob-chart-stats small {
    font-size: 13px;
    color: #5c6574;
}
.ob-design-system .ob-chart-sample-note {
    font-size: 13px;
    color: #646c7a;
}
:root body.observatory-interface .ob-design-system .data-context {
    background: #edf0f4;
    border: 1px solid #d4dae4;
    border-radius: var(--ob-radius);
    color: #314059;
    padding: 18px;
}
:root body.observatory-interface .ob-design-system .data-context h2 {
    color: #29374e;
    font-size: 26px;
}
.ob-design-system .ob-context-heading {
    color: #505f76;
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system .data-context p {
    color: #535d6e;
    font-size: 13px;
}
.ob-design-system .ob-data-coverage > strong {
    color: #23385a;
    font-family: "Be Vietnam Pro", sans-serif;
}
.ob-design-system .ob-data-coverage > span {
    font-size: 13px;
    color: #525e71;
}
.ob-design-system .ob-data-progress {
    background: #c8d0dc;
}
.ob-design-system .ob-data-progress > i {
    background: #62779a;
}
:root body.observatory-interface .ob-design-system .context-row {
    color: #5a6678;
    font-size: 13px;
    border-color: #cad1dc;
}
:root body.observatory-interface .ob-design-system .context-row strong {
    color: #2a3950;
    font-size: 13px;
}
.ob-design-system .ob-context-link {
    color: #2a4167;
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system .fleet-comparison {
    border-radius: var(--ob-radius);
}
:root body.observatory-interface .ob-design-system .fleet-comparison th {
    background: #f1f3f6;
    font-size: 13px;
    color: #555e6d;
}
:root body.observatory-interface .ob-design-system .fleet-comparison td {
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
:root body.observatory-interface .ob-design-system .fleet-comparison .badge {
    font-size: 13px;
}
:root body.observatory-interface .water-alert-map .river-header p {
    font-size: 13px;
}
:root body.observatory-interface .water-alert-map .map-segment button,
:root body.observatory-interface .water-alert-map #map-fullscreen {
    min-height: 44px;
    font-size: 13px;
}
:root body.observatory-interface .water-alert-map .river-station small {
    display: block;
}

@media (max-width: 1200px) {
    .ob-design-system .ob-welcome {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
        gap: 18px;
        padding: 20px;
    }
    .ob-design-system .ob-welcome-copy {
        max-width: none;
    }
    .ob-design-system .ob-live-preview {
        max-width: none;
    }
    .ob-design-system .ob-welcome h2 {
        font-size: 37px;
    }
    :root body.observatory-interface .ob-design-system .ob-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    :root body.observatory-interface .ob-design-system .ob-stat {
        min-height: 0;
    }
}
@media (max-width: 980px) {
    :root body.observatory-interface #menu-button {
        width: 44px;
        height: 44px;
        min-height: 44px;
    }
    :root body.observatory-interface .sidebar.open #sidebar-close {
        width: 44px;
        height: 44px;
        background: #eff1f5;
        border: 1px solid #d2d8e1;
        color: #374965;
    }
    :root body.observatory-interface .ob-design-system .river-analysis {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 700px) {
    .ob-design-system .ob-page-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .ob-design-system .ob-page-heading h1 {
        font-size: 26px;
    }
    .ob-design-system .ob-page-heading p {
        font-size: 13px;
    }
    .ob-design-system .ob-welcome {
        padding: 18px;
        gap: 25px;
        border-radius: 12px;
    }
    .ob-design-system .ob-welcome h2 {
        font-size: 31px;
        letter-spacing: -0.9px;
    }
    .ob-design-system .ob-welcome p {
        font-size: 13px;
    }
    .ob-live-preview {
        padding: 17px 12px 14px;
    }
    .ob-preview-heading {
        font-size: 13px;
    }
    .ob-preview-level {
        font-size: 13px;
    }
    .ob-preview-number > strong {
        font-size: 41px;
    }
    .ob-preview-dot {
        width: 29px;
        height: 29px;
    }
    .ob-preview-dot svg {
        width: 16px;
        height: 16px;
    }
    .ob-preview-route:before {
        top: 50px;
    }
    .ob-preview-point > strong {
        font-size: 13px;
    }
    .ob-preview-point > small {
        font-size: 13px;
    }
    :root body.observatory-interface .ob-design-system .ob-summary {
        gap: 12px;
    }
    :root body.observatory-interface .ob-design-system .ob-stat {
        padding: 18px 16px 15px;
    }
    :root body.observatory-interface .ob-design-system .ob-stat-top {
        font-size: 13px;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 10px;
    }
    .ob-design-system .ob-kpi-main > span {
        display: none;
    }
    .ob-design-system .ob-kpi-main > strong {
        font-size: 43px;
    }
    .ob-design-system .ob-kpi-ring {
        width: 48px;
        height: 48px;
    }
    .ob-design-system .ob-kpi-ring > span {
        font-size: 13px;
    }
    .ob-design-system .ob-kpi-main {
        gap: 8px;
    }
    .ob-design-system .ob-kpi-caption {
        font-size: 13px;
    }
    .ob-design-system .ob-kpi-action {
        font-size: 13px;
    }
    :root body.observatory-interface .ob-design-system .ob-network {
        padding: 20px 17px;
    }
    .ob-design-system .ob-section-heading h2 {
        font-size: 22px;
    }
    .ob-design-system .ob-section-heading p {
        font-size: 13px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .river-node.ob-station-tab {
        flex: 0 0 178px;
    }
    :root body.observatory-interface .ob-design-system .station-instrument {
        padding: 20px 17px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric {
        padding: 16px 14px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-label {
        font-size: 13px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-value {
        font-size: 30px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-unit {
        font-size: 13px;
        white-space: normal;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-source,
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-note,
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-quality {
        font-size: 13px;
    }
    :root body.observatory-interface .ob-design-system .instrument-detail {
        width: 100%;
    }
    :root body.observatory-interface .ob-design-system .fleet-comparison td {
        font-size: 14px;
    }
}
@media (max-width: 360px) {
    .ob-design-system .ob-welcome {
        padding: 20px 16px;
    }
    .ob-design-system .ob-welcome h2 {
        font-size: 28px;
    }
    .ob-design-system .ob-primary {
        width: 100%;
        justify-content: space-between;
        font-size: 13px;
    }
    .ob-design-system .ob-preview-point > small {
        font-size: 13px;
    }
    .ob-design-system .ob-preview-dot {
        width: 25px;
        height: 25px;
    }
    .ob-design-system .ob-preview-point > strong {
        font-size: 13px;
    }
    .ob-design-system .ob-preview-route:before {
        top: 48px;
    }
    :root body.observatory-interface .ob-design-system .ob-stat {
        padding: 16px 12px;
    }
    .ob-design-system .ob-kpi-ring {
        display: none;
    }
    .ob-design-system .ob-kpi-main > strong {
        font-size: 40px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric {
        padding: 14px 11px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-value {
        font-size: 26px;
    }
}

/* Version 5: balanced density and blue identity across all screens. */
:root body.observatory-interface {
    --ob-ink: #1e304d;
    --ob-muted: #5d6d85;
    --ob-paper: #f4f7fc;
    --ob-line: #dce5f2;
    --ob-accent: #2563eb;
    --ink: #1e304d;
    --muted: #5d6d85;
    --teal: #2563eb;
    --teal-dark: #1d4ed8;
    --navy: #16346b;
    --line: #dce5f2;
    --bg: #f4f7fc;
}
:root body.observatory-interface #content {
    padding: 24px;
}
:root body.observatory-interface .brand {
    padding: 22px 8px 20px;
    margin-bottom: 18px;
}
:root body.observatory-interface .nav-item {
    font-size: 14px;
    min-height: 44px;
    padding: 8px 10px;
    gap: 10px;
}
:root body.observatory-interface .nav-item > svg {
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 9px;
    opacity: 1;
    background: #eaf2ff;
    color: #2563eb;
    flex-shrink: 0;
}
:root body.observatory-interface .nav-item[href="#monitoring"] > svg {
    color: #0891b2;
    background: #e5f8fc;
}
:root body.observatory-interface .nav-item[href="#alerts"] > svg {
    color: #ea580c;
    background: #fff0e5;
}
:root body.observatory-interface .nav-item[href="#manual"] > svg {
    color: #7c3aed;
    background: #f1eaff;
}
:root body.observatory-interface .nav-item[href="#scenarios"] > svg {
    color: #4f46e5;
    background: #ececff;
}
:root body.observatory-interface .nav-item[href="#thresholds"] > svg {
    color: #db2777;
    background: #fce9f3;
}
:root body.observatory-interface .nav-item[href="#operations"] > svg {
    color: #0d9488;
    background: #e5f6f2;
}
:root body.observatory-interface .nav-item[href="#admin"] > svg {
    color: #64748b;
    background: #eef2f7;
}
:root body.observatory-interface .nav-item[href="#guide"] > svg {
    color: #d97706;
    background: #fff5df;
}
:root body.observatory-interface .nav-item.active {
    background: #eaf2ff;
    color: #1d4ed8;
    border-color: #d9e6fd;
    box-shadow: inset 3px 0 #2563eb;
}
:root body.observatory-interface .ob-nav-label {
    font-size: 11px;
    letter-spacing: 0.7px;
    padding-bottom: 6px;
}
:root body.observatory-interface .ob-nav-label:not(:first-child) {
    margin-top: 16px;
}
:root body.observatory-interface .ob-sidebar-note {
    background: linear-gradient(120deg, #edf5ff, #f4f0ff);
    padding: 12px;
    margin: 18px 6px;
}
:root body.observatory-interface .ob-sidebar-note svg {
    margin-bottom: 6px;
}
:root body.observatory-interface .sidebar-bottom {
    padding-top: 12px;
    margin-bottom: 14px;
}
:root body.observatory-interface .topbar {
    height: 64px;
    min-height: 64px;
    padding: 0 24px;
}
:root body.observatory-interface #breadcrumb,
:root body.observatory-interface .account {
    font-size: 14px;
}
:root body.observatory-interface .avatar {
    background: #eef1ff;
    color: #6366d1;
    border-color: #dee3fa;
}
:root body.observatory-interface .btn {
    font-size: 14px;
}
:root body.observatory-interface .form-control {
    font-size: 15px;
}
:root body.observatory-interface .page-head {
    margin-bottom: 18px;
}
:root body.observatory-interface .page-head p {
    font-size: 15px;
}
:root body.observatory-interface .card {
    padding: 18px;
}
:root body.observatory-interface .card-title {
    margin-bottom: 14px;
}
:root body.observatory-interface .card-title h2 > svg {
    width: 32px;
    height: 32px;
    padding: 6px;
    color: #2563eb;
    background: #eaf2ff;
    border-radius: 8px;
}
:root
    body.observatory-interface
    .stack
    > .card:nth-child(2)
    .card-title
    h2
    > svg {
    color: #7c3aed;
    background: #f1eaff;
}
:root
    body.observatory-interface
    .stack
    > .card:nth-child(3)
    .card-title
    h2
    > svg {
    color: #ea580c;
    background: #fff0e5;
}
:root
    body.observatory-interface
    :is(
        .tiny,
        .note,
        .card-title small,
        .samples-info,
        .toolbar-info,
        .chart-legend,
        .checks small,
        .checks .check small,
        .notification-item small,
        .help-text
    ) {
    font-size: 13px;
}
:root
    body.observatory-interface
    :is(label, .field label, .tabs button, .segment button) {
    font-size: 14px;
}
:root body.observatory-interface table,
:root body.observatory-interface td {
    font-size: 14px;
}
:root body.observatory-interface th {
    font-size: 13px;
    background: #f1f5fc;
    color: #516583;
}
:root body.observatory-interface :is(th, td) {
    padding: 12px 14px;
}
:root body.observatory-interface .toolbar {
    padding: 14px 18px;
    gap: 16px;
}
:root body.observatory-interface .metric-label {
    font-size: 15px;
    color: #526780;
}
:root body.observatory-interface .metric-source,
:root body.observatory-interface .metric-note {
    font-size: 13px;
}
:root body.observatory-interface .metric-unit {
    font-size: 13px;
    color: #657792;
    white-space: normal;
}
:root body.observatory-interface .compact-metric {
    position: relative;
    display: block;
    padding: 12px;
    min-height: 0;
    background: #f9fbff;
}
:root body.observatory-interface .compact-metric .metric-icon {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 27px;
    height: 27px;
    padding: 4px;
}
:root body.observatory-interface .compact-metric .metric-icon svg {
    width: 18px;
    height: 18px;
}
:root body.observatory-interface .compact-metric .metric-label {
    padding-right: 25px;
    font-size: 14px;
}
:root body.observatory-interface .compact-metric .metric-value {
    font-size: 28px;
    line-height: 1.35;
    margin: 5px 0;
    color: #244777;
}
:root body.observatory-interface .gate-banner {
    padding: 12px 16px;
}
:root body.observatory-interface .gate-banner :is(strong, p, a) {
    font-size: 13px;
    line-height: 1.65;
}
:root body.observatory-interface :focus-visible {
    outline-color: #2563eb;
}
:root body.observatory-interface footer {
    font-size: 12px;
    padding: 14px 24px;
}

:root body.observatory-interface .ob-design-system .ob-page-heading {
    margin: 0 0 18px;
}
:root body.observatory-interface .ob-design-system .ob-page-heading h1 {
    margin: 6px 0;
}
:root body.observatory-interface .ob-design-system .ob-page-heading p {
    font-size: 15px;
    line-height: 1.6;
}
:root body.observatory-interface .ob-design-system .ob-report {
    font-size: 14px !important;
    padding: 10px 14px;
    margin: 0;
    min-height: 44px !important;
}
:root body.observatory-interface .ob-design-system .ob-welcome {
    padding: 24px;
    gap: 24px;
    min-height: 0;
    border: 1px solid #d5e4fa;
    border-radius: 14px;
    background: linear-gradient(115deg, #f1f6ff, #e7f1ff);
    margin-bottom: 18px;
}
:root body.observatory-interface .ob-design-system .ob-location {
    font-size: 14px;
    color: #4773a8;
}
:root body.observatory-interface .ob-design-system .ob-welcome h2 {
    font:
        600 34px/1.25 "Be Vietnam Pro",
        sans-serif;
    letter-spacing: -1px;
    margin: 12px 0;
    color: #193f80;
}
:root body.observatory-interface .ob-design-system .ob-welcome-copy > p {
    color: #516c91;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 16px;
    max-width: 470px;
}
:root body.observatory-interface .ob-design-system .ob-welcome-actions {
    gap: 14px;
}
:root body.observatory-interface .ob-design-system .ob-primary {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
:root body.observatory-interface .ob-design-system .ob-primary:hover {
    background: #1d4ed8;
}
:root body.observatory-interface .ob-design-system .ob-hero-guide {
    color: #365e96;
    font-size: 14px;
}
:root body.observatory-interface .ob-design-system .ob-mode {
    margin-top: 14px;
    font-size: 12px;
    color: #526c91;
}
:root body.observatory-interface .ob-design-system .ob-mode > span {
    color: #637d9c;
    border-color: #c3d4ed;
}
:root body.observatory-interface .ob-live-preview {
    background: linear-gradient(130deg, #16346b, #244b93);
    color: #f4f8ff;
    border-color: #1e427d;
    padding: 16px 18px;
}
:root body.observatory-interface .ob-preview-heading {
    font-size: 13px;
}
:root body.observatory-interface .ob-preview-heading > span:first-child {
    color: #dce8ff;
}
:root body.observatory-interface .ob-preview-level {
    font-size: 12px;
    padding: 3px 6px;
}
:root body.observatory-interface .ob-preview-number {
    gap: 12px;
    padding: 9px 0 4px;
}
:root body.observatory-interface .ob-preview-number > strong {
    font-size: 32px;
    color: #fff;
    letter-spacing: -1px;
}
:root body.observatory-interface .ob-preview-number > span,
:root body.observatory-interface .ob-preview-number > span strong {
    font-size: 12px;
}
:root body.observatory-interface .ob-preview-route {
    padding: 8px 0 12px;
}
:root body.observatory-interface .ob-preview-route:before {
    top: 40px;
    background: #9ab5e87a;
}
:root body.observatory-interface .ob-preview-grade {
    font-size: 12px;
    margin-bottom: 5px;
}
:root body.observatory-interface .ob-preview-dot {
    width: 30px;
    height: 30px;
    background: #284e89;
}
:root body.observatory-interface .ob-preview-dot svg {
    width: 18px;
    height: 18px;
}
:root body.observatory-interface .ob-preview-point > strong {
    font-size: 13px;
    margin-top: 6px;
}
:root body.observatory-interface .ob-preview-point > small {
    font-size: 12px;
    line-height: 1.4;
    margin-top: 2px;
}
:root body.observatory-interface .ob-preview-key {
    padding-top: 8px;
    font-size: 12px;
    gap: 14px;
}
:root body.observatory-interface .ob-design-system .ob-preview-note {
    font-size: 12px;
    line-height: 1.5;
    color: #bdd1f3;
    margin: 6px 0 0;
}

:root body.observatory-interface .ob-design-system .ob-summary {
    gap: 14px;
    margin: 0 0 20px;
}
:root body.observatory-interface .ob-design-system .ob-stat {
    --tile-color: #2563eb;
    border: 1px solid #dce5f2;
    border-top: 3px solid var(--tile-color);
    border-radius: 10px;
    padding: 14px 16px 10px;
    min-height: 0;
}
:root body.observatory-interface .ob-design-system .ob-stat-top {
    color: #506681;
    font-size: 14px;
}
:root body.observatory-interface .ob-design-system .ob-stat-icon {
    background: #eaf2ff;
    color: #2563eb;
    width: 32px;
    height: 32px;
    border: 0;
    flex-shrink: 0;
}
:root body.observatory-interface .ob-design-system .ob-kpi-fresh {
    --tile-color: #7c3aed;
    background: #fdfbff;
}
:root body.observatory-interface .ob-design-system .ob-kpi-fresh .ob-stat-icon {
    color: #7c3aed;
    background: #f1eaff;
}
:root body.observatory-interface .ob-design-system .ob-kpi-attention {
    --tile-color: #ea8a20;
    background: #fffbf4;
    border-color: #ecdfc6;
    border-top-color: var(--tile-color);
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-kpi-attention
    .ob-stat-icon {
    color: #d97706;
    background: #fff0d5;
}
:root body.observatory-interface .ob-design-system .ob-kpi-pending {
    --tile-color: #0891b2;
    background: #f8fdff;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-kpi-pending
    .ob-stat-icon {
    color: #0891b2;
    background: #e5f8fc;
}
:root body.observatory-interface .ob-design-system .ob-kpi-main {
    min-height: 50px;
    margin: 8px 0;
    gap: 10px;
}
:root body.observatory-interface .ob-design-system .ob-kpi-main > strong {
    font:
        600 40px/1.1 "Be Vietnam Pro",
        sans-serif;
    letter-spacing: -1.5px;
    color: #234e95;
}
:root body.observatory-interface .ob-design-system .ob-kpi-main > span,
:root body.observatory-interface .ob-design-system .ob-kpi-main > span small {
    color: #63728a;
    font-size: 12px;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-kpi-attention
    .ob-kpi-main
    > strong {
    color: #a15d17;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-kpi-fresh
    .ob-kpi-main
    > strong {
    color: #7041b3;
}
:root body.observatory-interface .ob-design-system .ob-kpi-caption {
    font-size: 12px;
    color: #60728a;
    line-height: 1.5;
    margin: 3px 0 6px;
}
:root body.observatory-interface .ob-design-system .ob-kpi-action {
    font-size: 13px;
    color: #2d61ae;
    border-color: #dfe7f3;
    padding: 9px 0 0;
    line-height: 1.5;
    min-height: 36px;
}
:root body.observatory-interface .ob-design-system .ob-kpi-nodes {
    min-height: 14px;
    margin: 2px 0 6px;
}
:root body.observatory-interface .ob-design-system .ob-kpi-nodes:before {
    background: #a9c3ec;
}
:root body.observatory-interface .ob-design-system .ob-kpi-nodes > i {
    width: 11px;
    height: 11px;
    border-color: #6594dc;
}
:root body.observatory-interface .ob-design-system .ob-kpi-nodes > i.measured {
    background: #3b82f6;
    box-shadow: 0 0 0 3px #e5efff;
}
:root body.observatory-interface .ob-design-system .ob-kpi-ring {
    width: 46px;
    height: 46px;
    padding: 4px;
    background: conic-gradient(#8b5cf6 var(--ob-progress), #e8ddfa 0);
}
:root body.observatory-interface .ob-design-system .ob-kpi-ring > span {
    color: #7041b3;
    background: #fdfbff;
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system .ob-kpi-ring small {
    font-size: 10px;
}
:root body.observatory-interface .ob-design-system .ob-kpi-levels {
    height: 40px;
    margin-bottom: 6px;
    gap: 8px;
}
:root body.observatory-interface .ob-design-system .ob-kpi-levels > div {
    padding-top: 0;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-kpi-levels
    :is(b, small) {
    font-size: 11px;
    color: #876736;
    margin: 0;
}
:root body.observatory-interface .ob-design-system .ob-kpi-levels i {
    max-height: 14px;
}
:root body.observatory-interface .ob-design-system .ob-kpi-availability {
    height: 12px;
    margin: 4px 0 7px;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-kpi-availability
    > i.ready {
    background: #d8eef8;
    border-color: #c6e5f2;
}

:root body.observatory-interface .ob-design-system .ob-network {
    padding: 18px;
    margin-bottom: 20px;
}
:root body.observatory-interface .ob-design-system .ob-section-heading {
    margin-bottom: 14px;
}
:root body.observatory-interface .ob-design-system .ob-section-heading h2 {
    margin: 4px 0;
}
:root body.observatory-interface .ob-design-system .ob-section-heading p {
    font-size: 14px;
}
:root
    body.observatory-interface
    .ob-design-system
    :is(.ob-network-count, .ob-count-pill) {
    font-size: 13px;
    padding: 6px 10px;
    background: #edf4ff;
    color: #406ca9;
    border-color: #dce7fa;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-section-heading
    .ob-eyebrow {
    margin-bottom: 4px;
}
:root body.observatory-interface .ob-design-system .ob-station-tabs {
    gap: 10px;
}
:root body.observatory-interface .ob-design-system .river-node.ob-station-tab {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    background: #f9fbff;
    border-color: #dce5f2;
    border-radius: 9px;
    padding: 12px;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab:hover {
    background: #eff5ff;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab.selected {
    background: #edf4ff;
    border-color: #7ba5ed;
    box-shadow: inset 0 0 0 1px #7ba5ed;
}
:root body.observatory-interface .ob-design-system .ob-station-top {
    margin: 0;
}
:root
    body.observatory-interface
    .ob-design-system
    :is(.ob-station-index, .ob-station-viewing) {
    display: none;
}
:root body.observatory-interface .ob-design-system .ob-station-symbol {
    width: 30px;
    height: 34px;
    background: #e7efff;
    border: 0;
    color: #467ed5;
    border-radius: 8px;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-station-tab:nth-child(2n)
    .ob-station-symbol {
    color: #7c3aed;
    background: #f0eaff;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-station-tab:nth-child(3n)
    .ob-station-symbol {
    color: #0891b2;
    background: #e1f4fa;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab
    strong {
    color: #284878;
    font-size: 16px;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab
    small {
    color: #61728c;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 2px;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab.selected
    strong {
    color: #1e4e9c;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab.selected
    .ob-station-name
    small {
    color: #54739e;
}
:root body.observatory-interface .ob-design-system .ob-tab-status {
    grid-column: 1/-1;
    border-color: #dce5f2;
    padding-top: 6px;
    margin: 0;
}
:root body.observatory-interface .ob-design-system .ob-tab-status .badge {
    font-size: 12px;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-observatory.ob-live-grid {
    gap: 20px;
    margin-bottom: 22px;
}
:root body.observatory-interface .ob-design-system .river-workspace {
    padding: 18px;
}
:root body.observatory-interface .ob-design-system .river-header {
    margin-bottom: 14px;
}
:root body.observatory-interface .ob-design-system .station-instrument {
    padding: 18px;
}
:root body.observatory-interface .ob-design-system .station-instrument h2 {
    font-size: 24px;
    margin: 5px 0 10px;
}
:root body.observatory-interface .ob-design-system .ob-measurement-header {
    margin-bottom: 12px;
    gap: 16px;
}
:root body.observatory-interface .ob-design-system .ob-selected-code {
    background: #eaf2ff;
    color: #3162aa;
    font-size: 12px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-selector
    .form-control {
    font-size: 14px;
}
:root body.observatory-interface .ob-design-system .hydro-hero {
    padding: 10px 14px;
}
:root body.observatory-interface .ob-design-system .hydro-hero > p {
    font-size: 14px;
}
:root body.observatory-interface .hydro-hero-meta .freshness {
    font-size: 12px;
}
:root body.observatory-interface .hydro-hero .mode-chip {
    font-size: 11px;
}
:root body.observatory-interface .ob-design-system .instrument-readings {
    gap: 12px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric {
    min-height: 0;
    padding: 14px;
    background: #f9fbff;
    border-color: #e1e8f3;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-icon {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-label {
    font-size: 15px;
    color: #526780;
    padding-right: 32px;
    margin-bottom: 8px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-value {
    font:
        600 32px/1.3 "Be Vietnam Pro",
        sans-serif;
    color: #244777;
    letter-spacing: -1px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 6px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-unit {
    font-size: 13px;
    white-space: normal;
    margin-left: 0;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    :is(.metric-source, .metric-note, .metric-quality, .spark-empty) {
    font-size: 12px;
    line-height: 1.6;
    color: #657791;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-spark {
    height: 24px;
    margin-top: 7px;
    color: #6b96da;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric[data-parameter="DO"] {
    background: linear-gradient(130deg, #1b448a, #285dac);
    border-color: #2856a3;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric[data-parameter="DO"]
    :is(
        .metric-label,
        .metric-source,
        .metric-unit,
        .metric-note,
        .metric-quality
    ) {
    color: #c8defd;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric[data-parameter="DO"]
    .metric-value {
    color: #fff;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric[data-parameter="DO"]
    .metric-icon {
    background: #ffffff1c;
    color: #99e6ff;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric[data-parameter="DO"]
    .metric-spark {
    color: #a3dcff;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric[data-parameter="NH4"] {
    background: #fffbf3;
    border-color: #f1e5cd;
}
:root body.observatory-interface .ob-design-system .instrument-detail {
    background: #2563eb;
    border-color: #2563eb;
    font-size: 14px;
}
:root body.observatory-interface .ob-design-system .ob-measurement-footer {
    margin-top: 12px;
}
:root body.observatory-interface .ob-design-system .river-analysis {
    gap: 20px;
    margin-bottom: 22px;
}
:root body.observatory-interface .ob-design-system .analysis-trend {
    padding: 18px;
}
:root body.observatory-interface .analysis-heading p {
    font-size: 14px;
}
:root body.observatory-interface .ob-design-system #overview-chart-parameter {
    font-size: 14px;
    width: 190px;
}
:root body.observatory-interface .ob-design-system .ob-chart-stats {
    padding: 12px 14px;
    margin-bottom: 8px;
}
:root body.observatory-interface .ob-design-system .ob-chart-stats span {
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system .ob-chart-stats small {
    font-size: 12px;
}
:root body.observatory-interface .ob-design-system .ob-chart-sample-note {
    font-size: 12px;
    margin-bottom: 10px;
}
:root body.observatory-interface .ob-design-system .data-context {
    padding: 18px;
    background: linear-gradient(140deg, #f0f3ff, #edf5ff);
    border-color: #dde4fa;
}
:root body.observatory-interface .ob-design-system .data-context h2 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 10px;
}
:root body.observatory-interface .ob-design-system .data-context p {
    font-size: 14px;
}
:root body.observatory-interface .ob-design-system .ob-data-coverage {
    padding: 12px 0;
}
:root body.observatory-interface .ob-design-system .ob-data-coverage > strong {
    color: #4f46b1;
    font:
        500 40px/1.2 "Be Vietnam Pro",
        sans-serif;
}
:root body.observatory-interface .ob-design-system .ob-data-coverage > span {
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system .ob-data-progress {
    background: #dce3f7;
    margin-bottom: 16px;
}
:root body.observatory-interface .ob-design-system .ob-data-progress > i {
    background: #818cf8;
}
:root body.observatory-interface .ob-design-system .context-row {
    font-size: 13px;
    padding: 10px 0;
}
:root body.observatory-interface .ob-design-system .context-row strong {
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system .ob-context-link {
    font-size: 14px;
    margin-top: 14px;
}
:root
    body.observatory-interface
    .ob-design-system
    .fleet-comparison
    .analysis-heading {
    padding: 18px;
}
:root body.observatory-interface .ob-design-system .fleet-comparison th {
    font-size: 13px;
    background: #f1f5fc;
    color: #516583;
}
:root body.observatory-interface .ob-design-system .fleet-comparison td {
    font-size: 15px;
    padding: 14px 18px;
}

/* Status colors continue to represent data independently of brand colors. */
:root
    body.observatory-interface
    .water-alert-map
    .river-header
    :is(p, .river-instruction) {
    font-size: 13px;
}
:root body.observatory-interface .water-alert-map .map-segment button,
:root body.observatory-interface .water-alert-map #map-fullscreen {
    font-size: 13px;
}
:root body.observatory-interface .map-situation {
    background: #edf4ff;
    border-color: #d8e5fa;
    color: #284f88;
    padding: 12px 16px;
    margin-bottom: 14px;
}
:root body.observatory-interface .map-situation p {
    font-size: 13px;
    color: #617a9d;
}
:root body.observatory-interface .map-mode {
    font-size: 12px;
    color: #426899;
    background: #e1ecfc;
    border-color: #cbdcf5;
}
:root body.observatory-interface .map-alert-rail {
    padding: 14px 10px 10px;
    background: #f6f9ff;
    border-color: #dce5f2;
}
:root body.observatory-interface .map-rail-heading {
    border-color: #dce5f2;
    padding-bottom: 10px;
}
:root body.observatory-interface .map-rail-heading > span {
    font-size: 11px;
    color: #667e9d;
}
:root body.observatory-interface .map-rail-heading > strong {
    font:
        600 28px/1.4 "Be Vietnam Pro",
        sans-serif;
    color: #345c96;
}
:root body.observatory-interface .map-rail-heading :is(p, small) {
    font-size: 12px;
    color: #617695;
}
:root body.observatory-interface .water-alert-map .river-station strong {
    font-size: 14px;
    color: #304d79;
}
:root body.observatory-interface .water-alert-map .river-station small {
    font-size: 12px;
}
:root body.observatory-interface .water-alert-map .map-rail-text > span {
    font-size: 11px;
    color: #6a7e99;
}
:root body.observatory-interface .map-alert-link {
    font-size: 13px;
    color: #3466ad;
    border-color: #dce5f2;
}
:root body.observatory-interface .map-focus-strip {
    padding: 12px 14px;
    margin-top: 14px;
}
:root body.observatory-interface .map-focus-strip p {
    font-size: 14px;
    color: #526580;
}
:root
    body.observatory-interface
    .map-focus-strip
    :is(small, div > span:first-child) {
    font-size: 12px;
    color: #6a7e99;
}
:root body.observatory-interface .map-level-legend > span {
    font-size: 12px;
}
:root
    body.observatory-interface
    .water-alert-map
    :is(.geographic-legend, .map-angle, .signal-help, .map-disclaimer) {
    font-size: 12px;
    color: #637895;
}
:root body.observatory-interface .water-alert-map .map-disclaimer {
    background: #f3f6fc;
    border-color: #e3eaf5;
}
:root body.observatory-interface .water-alert-map .map-floating-tools button {
    font-size: 12px;
}
:root body.observatory-interface .chart text {
    font-size: 12px;
    fill: #71839f;
}

@media (max-width: 1200px) {
    :root body.observatory-interface .ob-design-system .ob-welcome {
        gap: 18px;
        padding: 20px;
    }
    :root body.observatory-interface .ob-design-system .ob-welcome h2 {
        font-size: 29px;
    }
}
@media (max-width: 760px) {
    :root body.observatory-interface #content {
        padding: 18px 16px;
    }
    :root body.observatory-interface .topbar {
        padding: 0 16px;
    }
    :root body.observatory-interface #breadcrumb {
        font-size: 13px;
    }
    :root body.observatory-interface .ob-design-system .ob-welcome {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 18px;
    }
    :root body.observatory-interface .ob-design-system .ob-welcome h2 {
        font-size: 30px;
        margin: 10px 0;
    }
    :root body.observatory-interface .ob-design-system .ob-welcome-copy > p {
        font-size: 15px;
        margin-bottom: 14px;
    }
    :root body.observatory-interface .ob-design-system .ob-page-heading {
        flex-wrap: wrap;
        gap: 12px;
    }
    :root body.observatory-interface .ob-design-system .ob-page-heading h1 {
        font-size: 27px;
    }
    :root body.observatory-interface .ob-design-system .ob-page-heading p {
        font-size: 14px;
    }
    :root body.observatory-interface .ob-design-system .ob-stat {
        padding: 12px;
    }
    :root body.observatory-interface .ob-design-system .ob-stat-top {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 6px;
        font-size: 14px;
    }
    :root body.observatory-interface .ob-design-system .ob-kpi-main > span {
        display: none;
    }
    :root body.observatory-interface .ob-design-system .ob-kpi-main > strong {
        font-size: 36px;
    }
    :root body.observatory-interface .ob-design-system .ob-kpi-main {
        min-height: 44px;
        margin: 7px 0;
    }
    :root body.observatory-interface .ob-design-system .ob-kpi-action {
        font-size: 12px;
        min-height: 44px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        :is(.ob-network, .station-instrument) {
        padding: 16px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .river-node.ob-station-tab {
        flex: 0 0 190px;
    }
    :root body.observatory-interface .ob-design-system .river-workspace {
        padding: 16px;
    }
    :root body.observatory-interface .ob-design-system .instrument-readings {
        gap: 10px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric {
        padding: 12px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-label {
        font-size: 14px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-value {
        font-size: 29px;
    }
    :root body.observatory-interface .ob-design-system .ob-chart-stats strong {
        font-size: 20px;
    }
    :root body.observatory-interface .ob-design-system .ob-chart-stats small {
        display: block;
    }
    :root body.observatory-interface .ob-design-system .ob-measurement-footer {
        flex-direction: column;
        align-items: stretch;
    }
    :root body.observatory-interface .ob-design-system .instrument-detail {
        width: 100%;
    }
    :root body.observatory-interface .map-situation {
        flex-wrap: wrap;
        padding: 12px;
    }
    :root body.observatory-interface .map-mode {
        margin-left: 0;
        flex: 0 0 auto;
    }
}
@media (max-width: 400px) {
    :root body.observatory-interface .ob-design-system .ob-summary {
        gap: 10px;
    }
    :root body.observatory-interface .ob-preview-point > small {
        display: none;
    }
    :root body.observatory-interface .ob-preview-heading {
        font-size: 12px;
    }
    :root body.observatory-interface .ob-live-preview {
        padding: 14px 12px;
    }
    :root body.observatory-interface .ob-design-system .ob-kpi-ring {
        display: none;
    }
    :root body.observatory-interface .ob-design-system .ob-kpi-caption {
        font-size: 12px;
    }
    :root body.observatory-interface .ob-design-system .ob-kpi-main > strong {
        font-size: 34px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-value {
        font-size: 27px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-icon {
        display: none;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-label {
        padding-right: 0;
    }
    :root body.observatory-interface .ob-design-system .ob-primary {
        font-size: 13px;
    }
    :root body.observatory-interface .toolbar .station-selector {
        min-width: 0;
        width: 100%;
    }
}

/* Finish the type hierarchy where earlier module selectors are more specific. */
:root
    body.observatory-interface
    .ob-design-system
    .ob-section-heading
    .ob-eyebrow,
:root
    body.observatory-interface
    .ob-design-system
    .fleet-comparison
    .ob-eyebrow {
    font-size: 12px;
    color: #637c9c;
    letter-spacing: 0.6px;
}
:root body.observatory-interface .ob-preview-point.measured .ob-preview-dot {
    background: var(--preview-color);
    color: #17366b;
}
:root body.observatory-interface .ob-design-system .ob-welcome {
    padding: 20px;
}
:root body.observatory-interface .ob-design-system .ob-welcome h2 {
    font-size: 32px;
    margin: 10px 0;
}
:root body.observatory-interface .ob-design-system .ob-welcome-copy > p {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 12px;
}
:root body.observatory-interface .ob-design-system .ob-mode {
    margin-top: 10px;
}
:root body.observatory-interface .ob-preview-route {
    padding: 5px 0 8px;
}
:root body.observatory-interface .ob-preview-route:before {
    top: 37px;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-kpi-levels
    :is(b, small) {
    font-size: 12px;
}
:root body.observatory-interface .map-rail-text em,
:root body.observatory-interface .map-level-legend b {
    font-size: 11px;
}
:root body.observatory-interface .water-alert-map .map-rail-text > span {
    font-size: 12px;
}
:root body.observatory-interface .water-alert-map .map-rail-heading > span {
    font-size: 12px;
}
:root body.observatory-interface .map-pin-label > span {
    font-size: 10px;
}
:root body.observatory-interface .water-alert-map .map-compass b {
    font-size: 10px;
}
@media (max-width: 760px) {
    :root body.observatory-interface .ob-design-system .ob-welcome {
        padding: 16px;
    }
    :root body.observatory-interface .ob-design-system .ob-welcome h2 {
        font-size: 28px;
    }
    :root body.observatory-interface .ob-design-system .ob-hero-guide {
        display: none;
    }
    :root body.observatory-interface .ob-preview-number {
        display: none;
    }
}
:root body.observatory-interface .segments button {
    font-size: 14px;
    min-height: 44px;
}
@media (max-width: 600px) {
    :root body.observatory-interface .water-alert-map .map-floating-tools {
        flex-direction: column;
        align-items: flex-end;
    }
    :root
        body.observatory-interface
        .water-alert-map
        .map-floating-tools
        button {
        white-space: nowrap;
        padding: 8px 10px;
        min-height: 36px;
    }
}
@media (max-width: 1100px) {
    :root body.observatory-interface .sidebar {
        width: 236px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    :root body.observatory-interface .sidebar.open {
        transform: translateX(0);
        box-shadow: 16px 0 70px #16346b30;
    }
    :root body.observatory-interface .workspace {
        margin-left: 0;
    }
    :root body.observatory-interface #menu-button {
        display: inline-grid;
        place-items: center;
        width: 44px;
        height: 44px;
        min-height: 44px;
        margin-right: 10px;
        background: #edf4ff;
        border: 1px solid #d5e4fc;
        border-radius: 8px;
        color: #3466ad;
    }
    :root body.observatory-interface .sidebar.open #sidebar-close {
        display: grid;
        place-items: center;
        position: static;
        align-self: flex-end;
        flex-shrink: 0;
        margin: 8px 0 0;
        width: 44px;
        height: 44px;
        background: #edf4ff;
        border: 1px solid #d5e4fc;
        border-radius: 8px;
        color: #3466ad;
    }
    :root body.observatory-interface .sidebar.open .brand {
        padding-top: 8px;
    }
    :root body.observatory-interface .topbar-right {
        margin-left: auto;
    }
}
:root body.observatory-interface .alert-summary-stat {
    position: relative;
    border-top: 3px solid var(--summary-color);
    background: color-mix(in srgb, var(--summary-color) 2%, white);
}
:root
    body.observatory-interface
    .alert-summary-stat
    > span:not(.mini-stat-icon) {
    font-size: 14px;
    padding-right: 36px;
}
:root body.observatory-interface .alert-summary-stat .mini-stat-icon {
    position: absolute;
    right: 14px;
    top: 14px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--summary-color);
    background: color-mix(in srgb, var(--summary-color) 9%, white);
    border-radius: 9px;
}
@media (max-width: 760px) {
    :root body.observatory-interface .chart text {
        font-size: 16px;
    }
}

/* ==== observatory-signals.css ==== */
/* Measurement comparisons and restrained, severity-based motion. */
:root body.observatory-interface .ob-design-system .ob-welcome-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}
:root body.observatory-interface .ob-design-system .ob-welcome-copy > p,
:root body.observatory-interface .ob-design-system .ob-welcome-copy .ob-mode {
    margin: 0;
}
:root body.observatory-interface .ob-design-system .ob-location {
    font-size: 18px;
    font-weight: 600;
    color: #204a8c;
}
:root body.observatory-interface .ob-design-system .ob-primary,
:root body.observatory-interface .ob-station-tab,
:root body.observatory-interface .ob-preview-point,
:root body.observatory-interface .ob-stat {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}
@media (hover: hover) {
    :root body.observatory-interface .ob-design-system .ob-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px #2563eb30;
    }
    :root body.observatory-interface .ob-stat:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px #24487812;
    }
}
/* Keep all measurement internals separate from older card layout rules. */
:root body.observatory-interface .metric:has(> .measurement-gauge) {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
}
:root
    body.observatory-interface
    .metric:has(> .measurement-gauge)
    .metric-icon {
    width: 28px;
    height: 28px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}
:root body.observatory-interface .measurement-gauge {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin: 12px 0 0;
    border-top: 1px solid #dbe5f2;
    padding-top: 10px;
    color: #405674;
    font-size: 12px;
    line-height: 1.5;
}
:root body.observatory-interface .measurement-gauge div {
    min-width: 0;
}
:root body.observatory-interface .measurement-gauge small {
    color: inherit;
    font-size: 12px;
    line-height: 1.5;
}
:root body.observatory-interface .measurement-gauge .gauge-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
:root body.observatory-interface .measurement-gauge .gauge-heading small {
    font-size: 10px;
    background: #e7effb;
    border: 1px solid #d6e2f5;
    border-radius: 4px;
    padding: 1px 5px;
    letter-spacing: 0;
}
:root body.observatory-interface .measurement-gauge .gauge-visual {
    position: relative;
    padding-top: 33px;
    margin: 4px 0 8px;
}
:root body.observatory-interface .measurement-gauge .gauge-track {
    position: relative;
    height: 10px;
    border-radius: 10px;
    box-shadow: 0 0 0 2px #fff5;
    overflow: hidden;
}
:root body.observatory-interface .measurement-gauge .gauge-track > i {
    position: absolute;
    height: 100%;
}
:root body.observatory-interface .measurement-gauge .gauge-tick {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #fff9;
    transform: translateX(-1px);
}
:root body.observatory-interface .measurement-gauge .gauge-current {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
:root body.observatory-interface .measurement-gauge .gauge-current b {
    position: absolute;
    left: var(--gauge-label-position);
    top: 0;
    transform: translateX(-50%);
    border-radius: 5px;
    padding: 2px 7px;
    background: #fff;
    color: #213a60;
    box-shadow: 0 2px 6px #11294d18;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    border-bottom: 2px solid var(--gauge-color);
}
:root body.observatory-interface .measurement-gauge .gauge-current i {
    position: absolute;
    left: var(--gauge-position);
    top: 27px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #233e68;
}
:root body.observatory-interface .measurement-gauge .gauge-scale {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 5px;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    opacity: 0.85;
}
:root body.observatory-interface .measurement-gauge .gauge-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-variant-numeric: tabular-nums;
}
:root body.observatory-interface .measurement-gauge .gauge-rules > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    white-space: nowrap;
}
:root body.observatory-interface .measurement-gauge .gauge-rules i {
    width: 5px;
    height: 8px;
    background: var(--rule-color);
    border-radius: 2px;
}
:root body.observatory-interface .measurement-gauge .gauge-reading-note {
    display: block;
    margin-top: 7px;
}
:root body.observatory-interface .measurement-gauge .gauge-details {
    margin-top: 4px;
    font-size: 11px;
}
:root body.observatory-interface .measurement-gauge .gauge-details summary {
    cursor: pointer;
    width: fit-content;
    padding: 6px 0;
    min-height: 30px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
:root
    body.observatory-interface
    .measurement-gauge
    .gauge-details
    summary:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 3px;
    border-radius: 3px;
}
:root body.observatory-interface .measurement-gauge .gauge-details p {
    margin: 5px 0;
    color: inherit;
    font-size: 11px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
:root body.observatory-interface .measurement-gauge.gauge-unconfigured {
    margin-top: auto;
    padding-top: 12px;
    border-top: 0;
}
:root body.observatory-interface .gauge-empty-line {
    display: block;
    height: 5px;
    margin: 6px 0;
    border-radius: 5px;
    background: repeating-linear-gradient(
        90deg,
        #c8d5e7 0 10px,
        #e9eff7 10px 13px
    );
}
:root body.observatory-interface .measurement-gauge.gauge-muted .gauge-track {
    opacity: 0.45;
}
:root
    body.observatory-interface
    .ob-design-system
    .metric[data-parameter="DO"]
    .measurement-gauge {
    color: #dceaff;
    border-color: #ffffff30;
}
:root
    body.observatory-interface
    .ob-design-system
    .metric[data-parameter="DO"]
    .gauge-heading
    small {
    background: #ffffff15;
    border-color: #ffffff30;
    color: #dceaff;
}
:root
    body.observatory-interface
    .ob-design-system
    .metric[data-parameter="DO"]
    .gauge-current
    i {
    border-top-color: #fff;
}
/* Motion uses the published level only. Unknown, stale and normal stay still. */
:root
    body.observatory-interface
    .instrument-readings
    .metric:has(.measurement-gauge:not(.gauge-unconfigured))
    .metric-spark,
:root
    body.observatory-interface
    .instrument-readings
    .measurement-gauge
    .gauge-heading,
:root
    body.observatory-interface
    .instrument-readings
    .measurement-gauge
    .gauge-scale,
:root
    body.observatory-interface
    .instrument-readings
    .measurement-gauge:not(.gauge-muted)
    .gauge-reading-note {
    display: none;
}
body.observatory-interface
    :is(
        .ob-tab-status .badge,
        .hydro-hero > .badge,
        .map-status-badge,
        .ob-preview-point,
        .river-station,
        .alert-map-pin,
        .map-situation
    )[data-alert-level="1"]
    svg {
    animation: signal-breathe 3.6s ease-in-out infinite;
}
body.observatory-interface
    :is(
        .ob-tab-status .badge,
        .hydro-hero > .badge,
        .map-status-badge,
        .ob-preview-point,
        .river-station,
        .alert-map-pin,
        .map-situation
    )[data-alert-level="2"]
    svg,
body.observatory-interface
    .ob-kpi-attention[data-has-attention="true"]
    .ob-stat-icon
    svg {
    animation: signal-attention 4s ease-in-out infinite;
    transform-origin: 50% 65%;
}
body.observatory-interface
    :is(
        .ob-tab-status .badge,
        .hydro-hero > .badge,
        .map-status-badge,
        .ob-preview-point,
        .river-station,
        .alert-map-pin,
        .map-situation
    ):is([data-alert-level="3"], [data-alert-level="4"])
    svg {
    animation: signal-urgent 2.6s ease-in-out infinite;
    transform-origin: center;
}
body.observatory-interface
    .alert-map-pin:is([data-alert-level="0"], [data-alert-level="unknown"])
    .signal-ring {
    animation: none;
}
body.observatory-interface .alert-map-pin[data-alert-level="1"] .signal-ring {
    animation-duration: 4s;
}
body.observatory-interface .alert-map-pin[data-alert-level="2"] .signal-ring {
    animation-duration: 3s;
}
body.observatory-interface
    .ob-preview-point:is(
        [data-alert-level="2"],
        [data-alert-level="3"],
        [data-alert-level="4"]
    )
    .ob-preview-dot {
    animation: signal-halo 3s ease-out infinite;
}
@keyframes signal-breathe {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}
@keyframes signal-attention {
    0%,
    68%,
    100% {
        transform: rotate(0);
    }
    74%,
    86% {
        transform: rotate(-8deg);
    }
    80%,
    92% {
        transform: rotate(8deg);
    }
}
@keyframes signal-urgent {
    0%,
    60%,
    100% {
        transform: scale(1);
    }
    70%,
    90% {
        transform: scale(1.13);
    }
    80% {
        transform: scale(1.03);
    }
}
@keyframes signal-halo {
    0% {
        box-shadow: 0 0 0 0
            color-mix(in srgb, var(--preview-color) 35%, transparent);
    }
    70%,
    100% {
        box-shadow: 0 0 0 9px transparent;
    }
}
@media (max-width: 760px) {
    :root body.observatory-interface .ob-design-system .ob-welcome-copy {
        gap: 12px;
    }
    :root body.observatory-interface .ob-design-system .ob-location {
        font-size: 16px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric:has(.measurement-gauge:not(.gauge-unconfigured)) {
        grid-column: 1 / -1;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric:has(.measurement-gauge:not(.gauge-unconfigured))
        .gauge-rules {
        gap: 6px 14px;
    }
    :root body.observatory-interface .measurement-gauge .gauge-details summary {
        min-height: 40px;
        padding-top: 10px;
    }
}
@media (max-width: 600px) {
    :root body.observatory-interface .metric-grid:has(.compact-metric) {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    :root body.observatory-interface .compact-metric .metric-value {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 4px;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.observatory-interface [data-alert-level] svg,
    body.observatory-interface .ob-kpi-attention .ob-stat-icon svg,
    body.observatory-interface .ob-preview-dot,
    body.observatory-interface .signal-ring {
        animation: none !important;
    }
    :root
        body.observatory-interface
        :is(
            .ob-primary,
            .ob-station-tab,
            .ob-preview-point,
            .ob-stat,
            .metric
        ) {
        transition: none !important;
    }
}

/* ==== observatory-gis.css ==== */
/* GIS workspace: bring the map and primary readings into one working view. */
:root body.observatory-interface #content {
    padding: 18px 22px 28px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-page-heading {
    margin-bottom: 14px;
    gap: 16px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-page-heading
    h1 {
    font-size: 28px;
    margin: 3px 0 4px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-page-heading
    p {
    font-size: 14px;
}
.ob-heading-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
:root body.observatory-interface .ob-gis-upgrade.ob-design-system .ob-mode {
    margin: 0;
    color: #607490;
    font-size: 11px;
    letter-spacing: 0;
}
:root body.observatory-interface .ob-gis-upgrade.ob-design-system .ob-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
:root body.observatory-interface .ob-gis-upgrade.ob-design-system .ob-stat {
    padding: 10px 14px 8px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}
:root body.observatory-interface .ob-gis-upgrade.ob-design-system .ob-kpi-main {
    min-height: 0;
    margin: 5px 0 7px;
    align-items: center;
    gap: 10px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-kpi-main
    > strong {
    font-size: 34px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-kpi-main
    > span {
    font-size: 12px;
    line-height: 1.5;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-kpi-action {
    padding-top: 6px;
    min-height: 30px;
    font-size: 12px;
}
:root body.observatory-interface .ob-gis-upgrade.ob-design-system .ob-network {
    padding: 12px 14px 0;
    margin-bottom: 14px;
    border-radius: 12px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-network
    .ob-section-heading {
    margin-bottom: 10px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-network
    h2 {
    font-size: 16px;
    margin: 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-network-count {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 12px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-station-tabs {
    gap: 8px;
    margin-bottom: 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .river-node.ob-station-tab {
    padding: 8px 10px;
    gap: 3px 8px;
    grid-template-columns: 24px minmax(0, 1fr);
    min-height: 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-station-symbol {
    width: 24px;
    height: 28px;
    border-radius: 6px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-station-symbol
    svg {
    width: 17px;
    height: 17px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-tab-status {
    border: 0;
    margin: 1px 0 0;
    padding: 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-tab-status
    .badge {
    font-size: 11px;
    background: transparent;
    padding: 1px 0;
}
.ob-route-disclosure {
    margin-top: 4px;
}
.ob-route-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: fit-content;
    margin-left: auto;
    min-height: 32px;
    font-size: 12px;
    color: #53749e;
    cursor: pointer;
    list-style: none;
}
.ob-route-disclosure > summary::-webkit-details-marker {
    display: none;
}
.ob-route-disclosure > summary svg {
    transition: transform 0.2s;
}
.ob-route-disclosure[open] > summary svg {
    transform: rotate(90deg);
}
.ob-route-disclosure .ob-live-preview {
    margin: 0 0 12px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .river-observatory.ob-live-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr);
    align-items: start;
    gap: 14px;
    margin-bottom: 18px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .station-instrument {
    padding: 14px;
    min-width: 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-measurement-header {
    display: block;
    margin-bottom: 10px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .station-instrument
    h2 {
    font-size: 20px;
    line-height: 1.4;
    margin: 4px 0 8px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-selector {
    margin-bottom: 10px;
}
:root body.observatory-interface .ob-gis-upgrade.ob-design-system .hydro-hero {
    padding: 10px 12px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .hydro-hero
    > .badge {
    font-size: 14px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .hydro-hero
    > p {
    font-size: 12px;
    margin: 5px 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .hydro-hero
    .trial-note {
    margin: 4px 0 0;
    font-size: 11px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .hydro-hero-meta {
    gap: 6px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .metric {
    padding: 10px 12px;
    min-height: 0;
    border-radius: 9px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .metric-label {
    padding-right: 23px;
    min-height: 0;
    margin: 0 0 3px;
    font-size: 13px;
    line-height: 1.5;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .metric-value {
    font-size: 27px;
    margin: 0;
    line-height: 1.25;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .metric-icon {
    width: 23px;
    height: 23px;
    top: 9px;
    right: 9px;
    border-radius: 6px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .metric-icon
    svg {
    width: 16px;
    height: 16px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .metric-spark {
    height: 16px;
    margin: 3px 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .metric-source {
    margin-top: 3px;
    font-size: 11px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .gauge-unconfigured {
    padding-top: 3px;
    margin-top: auto;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .gauge-empty-line {
    display: none;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .gauge-unconfigured
    small {
    font-size: 10px;
    color: #78899f;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings
    .metric:has(.measurement-gauge:not(.gauge-unconfigured)) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0 12px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings
    .metric:has(.measurement-gauge:not(.gauge-unconfigured))
    > div:not(.measurement-gauge) {
    grid-column: 1;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings
    .metric:has(.measurement-gauge:not(.gauge-unconfigured))
    > .metric-source {
    grid-column: 1;
    align-self: start;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings
    .metric:has(.measurement-gauge:not(.gauge-unconfigured))
    > .measurement-gauge {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    margin: 0;
    padding: 0;
    border: 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings
    .metric:has(.measurement-gauge:not(.gauge-unconfigured))
    .metric-icon {
    display: none;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings
    .metric:has(.measurement-gauge:not(.gauge-unconfigured))
    .metric-label {
    padding-right: 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings:has(.measurement-gauge:not(.gauge-unconfigured))
    > .metric:last-child:nth-child(even):not(
        :has(.measurement-gauge:not(.gauge-unconfigured))
    ) {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings:has(.measurement-gauge:not(.gauge-unconfigured))
    > .metric:last-child:nth-child(even)
    .metric-spark {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    height: 25px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings:has(.measurement-gauge:not(.gauge-unconfigured))
    > .metric:last-child:nth-child(even)
    .measurement-gauge {
    grid-column: 1/-1;
}
.ob-extra-readings {
    margin-top: 8px;
    border: 1px solid #e1e8f4;
    border-radius: 8px;
    background: #f9fbff;
}
.ob-extra-readings > summary {
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 9px 10px;
    min-height: 40px;
    font-size: 12px;
    color: #516885;
    cursor: pointer;
    list-style: none;
}
.ob-extra-readings > summary > svg {
    color: #8b5cf6;
    flex-shrink: 0;
}
.ob-extra-readings > summary > span {
    margin-left: auto;
    color: #3970bd;
    white-space: nowrap;
}
.ob-extra-readings[open] > summary {
    border-bottom: 1px solid #e1e8f4;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-secondary-readings {
    padding: 8px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-measurement-footer {
    display: block;
    padding-top: 10px;
    margin-top: 10px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-provenance {
    gap: 10px;
    justify-content: space-between;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-provenance
    strong {
    font-size: 11px;
    padding-left: 0;
    margin-top: 1px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-detail {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 7px 12px;
    margin-top: 8px;
    justify-content: space-between;
    font-size: 13px;
}

/* Map canvas height follows the map itself, never the length of a station list. */
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map {
    padding: 14px;
    border-radius: 12px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .river-header {
    margin-bottom: 10px;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .river-header h3 {
    font-size: 20px;
    margin: 2px 0;
}
:root
    body.observatory-interface
    .gis-map.water-alert-map
    .river-header
    :is(p, .river-instruction) {
    font-size: 11px;
    letter-spacing: 0.3px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-actions {
    gap: 6px;
    flex-wrap: wrap;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-segment button,
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map #map-fullscreen {
    font-size: 11px;
    min-height: 34px;
    padding: 6px 9px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-situation {
    padding: 9px 10px;
    margin-bottom: 8px;
    gap: 9px;
}
:root
    body.observatory-interface
    .gis-map.water-alert-map
    .map-situation-symbol {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}
:root
    body.observatory-interface
    .gis-map.water-alert-map
    .map-situation-symbol
    svg {
    width: 19px;
    height: 19px;
}
:root
    body.observatory-interface
    .gis-map.water-alert-map
    .map-situation
    strong {
    font-size: 13px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-situation p {
    font-size: 11px;
    margin: 2px 0 0;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-mode {
    padding: 3px 6px;
    font-size: 10px;
    margin-left: auto;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-command-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .river-canvas {
    align-self: start;
    min-height: 0;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map #geographic-map {
    height: 410px !important;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .leaflet-tile-pane {
    filter: saturate(0.95) contrast(1);
}
.gis-layer-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0 8px;
    flex-wrap: wrap;
}
.gis-layer-toolbar > span {
    margin-right: auto;
    font:
        10px/1.4 "JetBrains Mono",
        monospace;
    color: #73839b;
}
.gis-layer-toolbar button {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    padding: 4px 7px;
    font-size: 11px;
    min-height: 30px;
    background: #f8faff;
    color: #687b98;
    border: 1px solid #dce6f4;
    border-radius: 6px;
}
.gis-layer-toolbar button[aria-pressed="true"] {
    background: #eaf2ff;
    border-color: #b8cff3;
    color: #3264a9;
}
.gis-layer-toolbar button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.gis-layer-toolbar svg {
    width: 14px;
    height: 14px;
}
.gis-line-key {
    width: 15px;
    height: 3px;
    border-radius: 2px;
    background: #2875cf;
}
.gis-map.labels-hidden .map-pin-label {
    display: none;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-alert-rail {
    display: none;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-focus-strip {
    display: none;
}
.gis-view-coordinate {
    position: absolute;
    bottom: 28px;
    left: 7px;
    z-index: 500;
    pointer-events: none;
    background: #fffffff0;
    padding: 3px 5px;
    border: 1px solid #d9e3f1;
    border-radius: 4px;
    color: #5b7290;
    font:
        9px/1.4 "JetBrains Mono",
        monospace;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-floating-tools {
    bottom: 48px;
    right: 8px;
    gap: 6px;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-floating-tools button {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 11px;
}
.gis-location-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    padding: 9px 10px;
    background: #f1f6ff;
    border: 1px solid #dce7f8;
    border-radius: 8px;
}
.gis-coordinate-label {
    display: block;
    font-size: 9px;
    color: #6c82a3;
    letter-spacing: 0.4px;
}
.gis-location-bar strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #2e568d;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.gis-location-bar small {
    display: block;
    color: #72839c;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}
.gis-coordinate-state {
    border: 1px solid #dce6f6;
    color: #657994;
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 10px;
    white-space: nowrap;
}
.gis-coordinate-state.confirmed {
    color: #2b7186;
    background: #e9f7fb;
    border-color: #cfe8f0;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-level-legend {
    padding: 9px 0;
    gap: 5px 12px;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-level-legend > span {
    font-size: 11px;
}
:root body:is(.observatory-interface,.community-view) .gis-map .river-footer {
    padding-top: 8px;
    gap: 7px;
    flex-wrap: wrap;
}
:root body:is(.observatory-interface,.community-view) .gis-map .geographic-legend {
    gap: 10px;
    font-size: 10px;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-angle {
    font-size: 10px;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-angle input {
    width: 80px;
}
.gis-map-notes {
    margin-top: 7px;
    border-top: 1px solid #e6ecf5;
    font-size: 12px;
    color: #6a7d97;
}
.gis-map-notes summary {
    min-height: 32px;
    padding-top: 8px;
    cursor: pointer;
    font-size: 11px;
}
.gis-map-notes p {
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.gis-map .geographic-message:empty {
    display: none;
}
:root body:is(.observatory-interface,.community-view) .gis-map .alert-map-pin .map-pin-label {
    width: 76px;
    padding: 5px 6px;
    border-radius: 6px;
    bottom: 47px;
    font-family: "Be Vietnam Pro", sans-serif;
}
:root
    body.observatory-interface
    .gis-map
    .alert-map-pin.label-below
    .map-pin-label {
    top: 47px;
    bottom: auto;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-pin-label > strong {
    font-size: 11px;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-pin-label > small {
    font-size: 9px;
    margin: 2px 0 0;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-pin-label > span {
    display: none;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded {
    display: flex;
    flex-direction: column;
    overflow: auto;
    gap: 0;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded .map-command-grid {
    grid-template-columns: minmax(0, 1fr) 220px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded #geographic-map {
    height: max(350px, calc(100dvh - 310px)) !important;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded .map-alert-rail {
    display: flex;
    margin-left: 12px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded .map-rail-heading {
    padding: 0 5px 8px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded .map-rail-heading strong,
:root body:is(.observatory-interface,.community-view) .gis-map.expanded .map-rail-heading p {
    display: none;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded .river-stations {
    margin: 8px 0;
    gap: 4px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded .river-station {
    padding: 7px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded .map-focus-strip {
    display: grid;
    margin-top: 8px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded .gis-map-notes {
    display: none;
}

/* Remove legacy nested padding and keep optional navigation out of the main flow. */
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .river-observatory-map {
    padding: 0;
}
:root body.observatory-interface .ob-gis-upgrade.ob-design-system .ob-network {
    position: relative;
    padding-bottom: 12px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-network-count {
    display: none;
}
.ob-route-disclosure {
    margin: 0;
}
.ob-route-disclosure > summary {
    position: absolute;
    top: 8px;
    right: 14px;
}
.ob-route-disclosure .ob-live-preview {
    margin: 12px 0 0;
}
.ob-change-station {
    position: relative;
    margin-left: auto;
}
.ob-change-station > summary {
    cursor: pointer;
    font-size: 11px;
    line-height: 1.4;
    color: #4774b5;
    min-height: 30px;
    display: flex;
    align-items: center;
}
.ob-change-station > .instrument-selector {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 800;
    width: min(340px, calc(100vw - 60px));
    border: 1px solid #cddcf3;
    border-radius: 9px;
    padding: 8px;
    background: #fff;
    box-shadow: 0 10px 30px #294b7725;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings
    .metric-spark {
    display: none;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings
    > .metric:last-child:nth-child(even)
    .metric-spark {
    display: block;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .gauge-unconfigured {
    font-size: 10px;
    line-height: 1.3;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .gauge-unconfigured
    small {
    display: block;
    line-height: 1.3;
}
:root body:is(.observatory-interface,.community-view) .gis-map .river-footer {
    margin-top: 0;
    padding-bottom: 0;
}
/* Analysis and utility screens use natural card heights. */
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-trend-heading {
    margin: 0 0 10px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-trend-heading
    .ob-eyebrow,
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-trend-heading
    p {
    display: none;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-trend-heading
    h2 {
    font-size: 20px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .river-analysis {
    gap: 14px;
    margin-bottom: 18px;
    align-items: start;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .analysis-trend,
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .data-context {
    padding: 14px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .data-context
    h2 {
    font-size: 20px;
    margin-top: 8px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .data-context
    p {
    font-size: 12px;
    margin-bottom: 6px;
}
:root body.observatory-interface .ob-gis-upgrade.ob-design-system .context-row {
    padding: 7px 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-data-coverage {
    padding: 7px 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-context-link {
    margin-top: 8px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .fleet-comparison
    .analysis-heading {
    padding: 14px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .fleet-comparison
    td {
    padding: 10px 14px;
}
:root body.observatory-interface .card:not(.metric) {
    padding: 16px;
}
:root body.observatory-interface .page-head {
    margin-bottom: 16px;
}
:root body.observatory-interface .grid.detail {
    gap: 14px;
    align-items: start;
}
@media (max-width: 1250px) {
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .river-observatory.ob-live-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(330px, 1fr);
    }
    :root body:is(.observatory-interface,.community-view) .gis-map .river-header {
        flex-direction: column;
    }
}
@media (max-width: 900px) {
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .river-observatory.ob-live-grid,
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .river-analysis {
        grid-template-columns: minmax(0, 1fr);
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .instrument-readings {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-primary-readings
        .metric:has(.measurement-gauge:not(.gauge-unconfigured)) {
        grid-column: 1/-1;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-primary-readings:has(.measurement-gauge:not(.gauge-unconfigured))
        > .metric:last-child:nth-child(even) {
        grid-column: auto;
        display: flex;
    }
    :root body:is(.observatory-interface,.community-view) .gis-map .river-header {
        flex-direction: row;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .data-context {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 20px;
    }
}
@media (max-width: 760px) {
    :root body.observatory-interface #content {
        padding: 14px 12px 20px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-page-heading {
        align-items: flex-start;
        gap: 10px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-page-heading
        h1 {
        font-size: 23px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-page-heading
        .ob-eyebrow {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-page-heading
        p {
        font-size: 12px;
    }
    .ob-heading-actions {
        gap: 6px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    :root body.observatory-interface .ob-gis-upgrade.ob-design-system .ob-stat {
        padding: 8px 10px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-stat-top {
        font-size: 12px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-kpi-main {
        flex-wrap: wrap;
        gap: 4px 8px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-kpi-main
        > strong {
        font-size: 30px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-kpi-main
        > span {
        font-size: 11px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-kpi-action {
        font-size: 11px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-network-count {
        display: none;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-station-tabs {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-station-tab {
        flex: 0 0 150px;
        scroll-snap-align: start;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .instrument-readings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-primary-readings:has(.measurement-gauge:not(.gauge-unconfigured))
        > .metric:last-child:nth-child(even) {
        grid-column: 1/-1;
    }
    :root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map #geographic-map {
        height: 360px !important;
    }
    :root body:is(.observatory-interface,.community-view) .gis-map .map-situation {
        flex-wrap: nowrap;
    }
    :root body:is(.observatory-interface,.community-view) .gis-map .map-mode {
        display: none;
    }
    .gis-layer-toolbar > span {
        font-size: 9px;
    }
    .gis-location-bar {
        flex-wrap: wrap;
    }
    .gis-view-coordinate {
        max-width: calc(100% - 14px);
        font-size: 8px;
    }
    :root body:is(.observatory-interface,.community-view) .gis-map.expanded .map-command-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    :root body:is(.observatory-interface,.community-view) .gis-map.expanded .map-alert-rail {
        margin: 8px 0 0;
    }
    :root body:is(.observatory-interface,.community-view) .gis-map.expanded .river-stations {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    :root body:is(.observatory-interface,.community-view) .gis-map.expanded .map-focus-strip {
        grid-template-columns: minmax(0, 1fr);
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .data-context {
        display: block;
    }
}
@media (max-width: 480px) {
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-page-heading {
        flex-wrap: wrap;
    }
    .ob-heading-actions {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-report {
        min-height: 34px;
        font-size: 12px;
        padding: 6px 10px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .instrument-readings
        .metric {
        padding: 10px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-primary-readings
        .metric:has(.measurement-gauge:not(.gauge-unconfigured)) {
        display: flex;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-primary-readings
        .metric:has(.measurement-gauge:not(.gauge-unconfigured))
        > .measurement-gauge {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #ffffff30;
    }
    :root body:is(.observatory-interface,.community-view) .gis-map .river-header {
        flex-direction: column;
    }
    :root body:is(.observatory-interface,.community-view) .gis-map .map-actions {
        width: 100%;
        justify-content: space-between;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ob-route-disclosure > summary svg {
        transition: none;
    }
}
@media (max-width: 760px) {
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-stat-top {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        min-height: 30px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-stat-top
        .ob-stat-icon {
        width: 25px;
        height: 25px;
        flex-shrink: 0;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-station-tabs {
        scrollbar-width: thin;
        padding-bottom: 4px;
    }
    :root
        body.observatory-interface
        .gis-map.water-alert-map
        .map-segment
        button,
    :root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map #map-fullscreen,
    :root body:is(.observatory-interface,.community-view) .gis-map .gis-layer-toolbar button {
        min-height: 36px;
        font-size: 12px;
    }
    :root
        body.observatory-interface
        .gis-map
        .alert-map-pin.edge-start
        .map-pin-label {
        left: calc(50% + 20px);
    }
    :root
        body.observatory-interface
        .gis-map
        .alert-map-pin.edge-start
        .map-pin-label:after {
        left: calc(50% - 20px);
    }
}
:root body:is(.observatory-interface,.community-view) .gis-map .gis-location-bar strong {
    font-size: 14px;
}
:root body:is(.observatory-interface,.community-view) .gis-map .gis-location-bar small {
    font-size: 11px;
}

/* ==== observatory-readings.css ==== */
/* Denser, readable rows: values and their scale share the same sight line. */
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .ob-page-heading {
    margin-bottom: 12px;
    align-items: center;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .ob-heading-actions {
    flex-direction: row;
    align-items: center;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .ob-summary {
    gap: 10px;
    margin-bottom: 12px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .ob-stat {
    padding: 11px 13px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .ob-stat-heading {
    font-size: 13px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .ob-network {
    padding: 10px 12px;
    margin-bottom: 12px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .ob-network
    .ob-section-heading {
    margin-bottom: 6px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .ob-station-tab {
    padding: 7px 9px;
    gap: 2px 6px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .ob-station-name {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .ob-station-name
    small {
    font-size: 11px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .ob-live-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .station-instrument {
    padding: 12px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .station-instrument
    h2 {
    font-size: 20px;
    margin: 4px 0 6px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .hydro-hero {
    padding: 8px 10px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .hydro-hero
    > p {
    font-size: 13px;
    margin: 3px 0;
}
.reading-column-head {
    display: grid;
    grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
    padding: 8px 10px;
    color: #667b98;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    border-bottom: 1px solid #dce6f4;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    > .metric {
    position: relative;
    display: grid;
    grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.2fr);
    gap: 0 12px;
    grid-column: 1;
    padding: 11px 10px;
    min-height: 0;
    border: 0;
    border-bottom: 1px solid #e2e9f3;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    color: #233c60;
    align-items: start;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    > .metric
    > div:not(.measurement-gauge):not(.metric-icon) {
    grid-column: 1;
    grid-row: 1 / 3;
    padding-left: 28px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    > .metric
    > .metric-icon {
    display: flex;
    position: absolute;
    left: 8px;
    right: auto;
    top: 12px;
    width: 21px;
    height: 21px;
    border-radius: 5px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    > .metric
    > .metric-icon
    svg {
    width: 15px;
    height: 15px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    .metric-label {
    font-size: 13px;
    padding-right: 0;
    margin: 0 0 2px;
    line-height: 1.4;
    color: #496181;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    .metric-value {
    font-size: 29px;
    color: #173d72;
    line-height: 1.2;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    .metric-unit {
    font-size: 12px;
    color: #7587a0;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    .metric-source {
    grid-column: 1;
    grid-row: 3;
    padding-left: 28px;
    font-size: 11px;
    line-height: 1.5;
    margin: 3px 0 0;
    color: #657c9c;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    .metric-note,
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    .metric-quality {
    font-size: 11px;
    line-height: 1.5;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    .metric-spark {
    display: none;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    > .metric
    > .measurement-gauge {
    grid-column: 2;
    grid-row: 1 / span 5;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    align-self: center;
    color: #415d81;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    .metric[data-parameter="DO"] {
    background: linear-gradient(110deg, #edf4ff, #f8fbff);
    border-left: 3px solid #3780ec;
    padding-left: 7px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    .metric[data-parameter="DO"]
    .metric-value {
    font-size: 32px;
    color: #195abd;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    .metric[data-parameter="DO"]
    .measurement-gauge {
    color: #405d80;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    .gauge-visual {
    padding-top: 27px;
    margin: 0 0 4px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    .gauge-heading {
    display: none;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    .gauge-scale {
    display: flex;
    font-size: 10px;
    color: #687d9b;
    margin-top: 2px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    .gauge-rules {
    gap: 3px 8px;
    font-size: 11px;
    margin: 2px 0;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    .gauge-reading-note {
    display: block;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
    margin: 3px 0;
    color: #805727;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    .gauge-details {
    margin: 4px 0;
    padding: 0;
    border: 0;
    background: transparent;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    .gauge-details
    summary {
    font-size: 11px;
    color: #4774b1;
}
.gauge-provenance {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 11px;
    line-height: 1.45;
    margin: 4px 0;
    color: #647b99;
    overflow-wrap: anywhere;
}
.gauge-provenance b {
    font-weight: 600;
    color: #526785;
}
.reading-scale-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    flex-wrap: wrap;
    color: #73849b;
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: 0.3px;
}
:root body.observatory-interface .reading-scale-heading small {
    font-size: 10px;
    color: #72839b;
    letter-spacing: 0;
}
.reading-visual {
    padding-top: 11px;
}
.reading-track {
    position: relative;
    height: 8px;
    border-radius: 6px;
    background: linear-gradient(90deg, #dbeafe, #91befa);
    box-shadow: inset 0 0 0 1px #699bf229;
}
.reading-track > i {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #fff9;
}
.reading-pointer {
    position: absolute;
    left: var(--reading-position);
    top: -4px;
    width: 4px;
    height: 16px;
    background: #2463c5;
    border-radius: 2px;
    transform: translateX(-50%);
    box-shadow: 0 0 0 2px #fff;
}
.reading-pointer:before {
    content: "";
    position: absolute;
    top: -4px;
    left: -3px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #2463c5;
}
.reading-ticks {
    display: flex;
    justify-content: space-between;
    gap: 3px;
    margin-top: 4px;
    font-size: 10px;
    color: #73839b;
    font-variant-numeric: tabular-nums;
}
.reading-muted .reading-track {
    background: #e3e9f1;
}
.reading-muted .reading-pointer {
    background: #94a3b8;
}
.reading-muted .reading-pointer:before {
    border-top-color: #94a3b8;
}
.reading-reference {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.45;
    color: #687e9b;
    overflow-wrap: anywhere;
}
.reading-reference a {
    color: #346fc0;
    text-decoration: none;
    font-weight: 550;
}
.reading-reference a:hover {
    text-decoration: underline;
}
.reading-reference.no-qcvn {
    margin-top: 5px;
    color: #8390a4;
    font-size: 10px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .ob-extra-readings {
    margin-top: 6px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .ob-extra-readings
    > summary {
    font-size: 13px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .ob-secondary-readings {
    padding: 0;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .ob-measurement-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    padding-top: 8px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-provenance {
    flex: 1;
    min-width: 0;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-provenance
    > span:last-child {
    display: none;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-detail {
    width: auto;
    font-size: 12px;
    margin: 0;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .river-analysis {
    gap: 12px;
    grid-template-columns: minmax(0, 1.3fr) minmax(330px, 1fr);
    align-items: start;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .data-context {
    padding: 16px;
    min-height: 0;
    align-self: start;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .data-context
    > h2 {
    font-size: 20px;
    margin: 7px 0;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .data-context
    > p {
    font-size: 13px;
    margin: 4px 0 8px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .ob-data-coverage {
    gap: 12px;
    margin: 8px 0;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .ob-data-coverage
    > strong {
    font-size: 34px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .ob-data-progress {
    height: 5px;
    margin: 8px 0;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .context-row {
    padding: 6px 0;
    font-size: 13px;
}
.reference-guide {
    margin-top: 12px;
    border-top: 1px solid #d5e2f4;
    padding-top: 12px;
    color: #526b8e;
    font-size: 12px;
    line-height: 1.55;
}
.reference-guide-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.reference-guide-head > strong {
    font-size: 15px;
    color: #284c80;
}
.reference-guide-head > span {
    font-size: 10px;
    background: #e5edff;
    color: #546d96;
    border-radius: 4px;
    padding: 2px 5px;
}
.reference-active {
    margin: 6px 0 10px;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.reference-guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}
.reference-guide-grid > div {
    display: flex;
    flex-direction: column;
    border: 1px solid #d9e3f2;
    border-radius: 6px;
    padding: 8px;
    background: #ffffff9c;
}
.reference-guide-grid > div:last-child {
    grid-column: 1/-1;
}
.reference-guide-grid b {
    color: #365d96;
    margin-bottom: 3px;
}
.reference-guide > a {
    display: inline-block;
    margin: 8px 0;
    color: #2f6bbf;
    font-weight: 600;
    font-size: 12px;
}
.reference-guide details {
    border-top: 1px solid #dbe5f4;
    padding-top: 6px;
}
.reference-guide summary {
    font-size: 12px;
    color: #506d94;
    cursor: pointer;
}
.reference-guide details p {
    font-size: 12px;
    line-height: 1.6;
    margin: 8px 0;
}
:root
    body.observatory-interface
    .ob-reading-upgrade
    .gis-map
    .river-instruction,
:root body.observatory-interface .ob-reading-upgrade .gis-map .river-header p {
    font-size: 12px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade
    .gis-map
    .map-alert-legend {
    font-size: 12px;
}
@media (max-width: 1100px) {
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .ob-live-grid {
        grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr);
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .river-analysis {
        grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr);
    }
}
@media (max-width: 900px) {
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .ob-live-grid {
        grid-template-columns: 1fr;
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .river-analysis {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .ob-heading-actions {
        justify-content: space-between;
        width: 100%;
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .ob-summary {
        gap: 8px;
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .ob-stat {
        padding: 10px;
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        > .metric {
        grid-template-columns: minmax(115px, 0.8fr) minmax(0, 1.2fr);
        gap: 0 10px;
        padding: 10px 8px;
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        > .metric
        > div:not(.measurement-gauge):not(.metric-icon) {
        padding-left: 0;
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        .metric-source {
        padding-left: 0;
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        > .metric
        > .metric-icon {
        display: none;
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        .metric-value {
        font-size: 27px;
    }
    .reading-column-head {
        grid-template-columns: minmax(115px, 0.8fr) minmax(0, 1.2fr);
        padding: 8px;
        font-size: 9px;
        gap: 10px;
    }
    .reading-scale-heading > span {
        display: none;
    }
    .reading-ticks {
        font-size: 9px;
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        .gauge-rules {
        font-size: 10px;
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .ob-measurement-footer {
        flex-wrap: wrap;
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-detail {
        width: 100%;
    }
}
@media (max-width: 380px) {
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        > .metric {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        > .metric
        > .measurement-gauge {
        grid-column: 1;
        grid-row: 4;
        align-self: start;
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        .metric-value {
        font-size: 30px;
    }
    .reading-column-head {
        display: none;
    }
}

:root
    body.observatory-interface
    .ob-reading-upgrade
    .metric[data-parameter="DO"]
    .metric-label {
    color: #365b8b !important;
}
:root
    body.observatory-interface
    .ob-reading-upgrade
    .metric[data-parameter="DO"]
    .metric-source {
    color: #657c9c !important;
}
:root
    body.observatory-interface
    .ob-reading-upgrade
    .metric[data-parameter="DO"]
    .metric-unit {
    color: #7587a0 !important;
}
:root
    body.observatory-interface
    .ob-reading-upgrade
    .metric[data-parameter="DO"]
    .metric-icon {
    color: #3276cb !important;
    background: #e3edff !important;
}
:root
    body.observatory-interface
    .ob-reading-upgrade
    .instrument-readings
    .gauge-details
    summary {
    min-height: 0;
    padding: 0;
    line-height: 1.4;
}
:root
    body.observatory-interface
    .ob-reading-upgrade
    .reading-scale-heading
    > span {
    display: none;
}
:root body.observatory-interface .ob-reading-upgrade .gauge-provenance {
    display: block;
    line-height: 1.4;
}
:root body.observatory-interface .ob-reading-upgrade .gauge-provenance span {
    display: block;
    font-size: 10px;
}
:root body.observatory-interface .ob-reading-upgrade .reading-reference > div {
    line-height: 1.5;
}

:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    > .metric {
    padding-top: 7px;
    padding-bottom: 7px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    > .metric
    > .metric-icon {
    top: 8px;
}
:root body.observatory-interface .ob-reading-upgrade .reading-visual {
    padding-top: 8px;
}
:root body.observatory-interface .ob-reading-upgrade .reading-track {
    height: 7px;
}
:root body.observatory-interface .ob-reading-upgrade .reading-ticks {
    line-height: 1.2;
    margin-top: 3px;
}
:root body.observatory-interface .ob-reading-upgrade .reading-scale-heading {
    line-height: 1.4;
}
:root body.observatory-interface .ob-reading-upgrade .reading-reference {
    margin-top: 4px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade
    .metric[data-parameter="DO"]
    .gauge-provenance
    span {
    display: none;
}
:root
    body.observatory-interface
    .ob-reading-upgrade
    .metric[data-parameter="DO"]
    .reading-reference
    > span {
    display: none;
}

:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system
    .ob-primary-readings
    > .metric:last-child
    .metric-spark {
    display: none !important;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system
    .ob-primary-readings
    > .metric:last-child
    > .measurement-gauge {
    grid-column: 2 !important;
    grid-row: 1 / span 5 !important;
}
@media (max-width: 380px) {
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system
        .ob-primary-readings
        > .metric:last-child
        > .measurement-gauge {
        grid-column: 1 !important;
        grid-row: 4 !important;
    }
}

:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system
    .ob-context-heading {
    margin-bottom: 8px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system
    .ob-data-coverage {
    align-items: center;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system
    .ob-data-coverage
    > span {
    font-size: 12px;
    line-height: 1.4;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system
    .context-row {
    padding: 3px 0;
}
:root body.observatory-interface .ob-reading-upgrade .reference-guide-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}
:root
    body.observatory-interface
    .ob-reading-upgrade
    .reference-guide-grid
    > div {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 1px 10px;
    border: 0;
    border-bottom: 1px solid #dce6f3;
    border-radius: 0;
    background: transparent;
    padding: 6px 0;
}
:root
    body.observatory-interface
    .ob-reading-upgrade
    .reference-guide-grid
    > div
    b {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
}
:root
    body.observatory-interface
    .ob-reading-upgrade
    .reference-guide-grid
    > div
    span {
    grid-column: 2;
}
:root body.observatory-interface .ob-reading-upgrade .reference-active {
    font-size: 11px;
    margin: 5px 0 6px;
}
:root body.observatory-interface .ob-reading-upgrade .reference-guide {
    padding-top: 8px;
    margin-top: 8px;
}
:root
    body.observatory-interface
    .ob-reading-upgrade
    .reference-guide-head
    > span {
    display: none;
}

/* Legacy mobile card rules must not change the row's grid contract. */
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    > .metric {
    display: grid !important;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .instrument-readings
    > .metric
    > .measurement-gauge {
    grid-column: 2 !important;
    grid-row: 1 / span 5 !important;
}
@media (max-width: 600px) {
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        > .metric[data-parameter="DO"] {
        grid-template-columns: 1fr !important;
        gap: 4px;
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        > .metric[data-parameter="DO"]
        > div:not(.measurement-gauge):not(.metric-icon),
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        > .metric[data-parameter="DO"]
        > .metric-source,
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        > .metric[data-parameter="DO"]
        > .measurement-gauge {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
}
@media (max-width: 380px) {
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        > .metric {
        grid-template-columns: 1fr !important;
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        > .metric
        > .measurement-gauge {
        grid-column: 1 !important;
        grid-row: 4 !important;
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        > .metric[data-parameter="DO"]
        > .measurement-gauge {
        grid-row: auto !important;
    }
}

@media (max-width: 600px) {
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        > .metric[data-parameter="DO"]
        > .measurement-gauge {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        > .metric[data-parameter="DO"]
        > div:not(.measurement-gauge):not(.metric-icon) {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        > .metric[data-parameter="DO"]
        .metric-label {
        max-width: 46%;
        margin: 0;
    }
    :root
        body.observatory-interface
        .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
        .instrument-readings
        > .metric[data-parameter="DO"]
        .metric-value {
        white-space: nowrap;
    }
}

:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .context-row {
    padding: 3px 0;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .ob-data-coverage
    > strong {
    line-height: 1.1;
}
:root
    body.observatory-interface
    .ob-reading-upgrade.ob-design-system.ob-gis-upgrade
    .reference-guide
    p {
    font-size: 12px;
    line-height: 1.5;
    margin: 6px 0;
}

/* ==== observatory-flow.css ==== */
/* Each desktop column flows independently; no empty row below the shorter card. */
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .ob-workspace-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, 1fr);
    grid-template-areas: none;
    align-items: start;
    gap: 12px;
    margin: 0 0 12px;
}
.ob-workspace-column { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ob-workspace-column > :is(section,aside) { width: 100%; min-width: 0; margin: 0; }
:root body.observatory-interface .ob-flow-upgrade .analysis-trend { padding: 14px; }
:root body.observatory-interface .ob-flow-upgrade .analysis-heading { gap: 10px; flex-wrap: wrap; }
:root body.observatory-interface .ob-flow-upgrade .analysis-heading h2 { font-size: 20px; line-height: 1.45; }
:root body.observatory-interface .ob-flow-upgrade .analysis-trend .chart { margin-top: 10px; }
.ob-context-overview { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ob-context-title { min-width: 0; }
:root body.observatory-interface .ob-flow-upgrade .ob-context-title h2 { font-size: 20px; margin: 6px 0; }
:root body.observatory-interface .ob-flow-upgrade .ob-context-title p { font-size: 12px; line-height: 1.6; margin: 0; }
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .ob-data-coverage { flex-shrink: 0; display: block; text-align: right; margin: 0; }
:root body.observatory-interface .ob-flow-upgrade .ob-data-coverage > span { display: block; font-size: 11px; line-height: 1.5; }
.ob-context-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 10px 0 4px; }
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .ob-context-facts .context-row { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 5px; padding: 11px 12px; border: 1px solid #dce5f4; border-radius: 9px; background: #ffffffa8; min-width: 0; }
:root body.observatory-interface .ob-flow-upgrade .ob-context-facts .context-row :is(span,strong) { display: block; max-width: none; text-align: left; margin: 0; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
:root body.observatory-interface .ob-flow-upgrade .ob-context-facts .context-row strong { font-size: 15px; font-weight: 650; color: #254b7d; font-variant-numeric: tabular-nums; }

/* Clear map hierarchy: geography, station source, then water alert severity. */
:root body.observatory-interface .gis-beacon-map.water-alert-map { padding: 12px; }
:root body.observatory-interface .gis-beacon-map.water-alert-map .river-header h3 { font-size: 21px; }
:root body.observatory-interface .gis-beacon-map.water-alert-map .river-header :is(p,.river-instruction) { font-size: 12px; }
:root body.observatory-interface .gis-beacon-map.water-alert-map .river-canvas { height: 480px; border-color: #d7e3f4; border-radius: 10px; }
:root body.observatory-interface .gis-beacon-map.water-alert-map #geographic-map { height: 480px !important; background: #e8f2fa; }
:root body.observatory-interface .gis-beacon-map.water-alert-map .map-situation {
    background: linear-gradient(105deg,#f0f5ff,#f9fbff);
    color: #1c365d;
    border: 1px solid #dbe5f4;
    border-left: 3px solid var(--point-color);
    flex-wrap: wrap;
    padding: 9px 10px;
    gap: 8px;
}
:root body.observatory-interface .gis-beacon-map.water-alert-map .map-situation > div:first-of-type { flex: 1; min-width: 180px; }
:root body.observatory-interface .gis-beacon-map.water-alert-map .map-situation strong { font-size: 14px; }
:root body.observatory-interface .gis-beacon-map.water-alert-map .map-situation p { color: #617594; font-size: 12px; }
:root body.observatory-interface .gis-beacon-map.water-alert-map .map-mode { display: none; }
.gis-status-counts { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.gis-status-counts > span { display: inline-flex; align-items: center; gap: 5px; border: 1px solid color-mix(in srgb,var(--count-color) 24%,white); background: white; padding: 4px 7px; border-radius: 7px; color: var(--count-color); font-size: 11px; white-space: nowrap; }
.gis-status-counts i { width: 6px; height: 6px; border-radius: 50%; background: var(--count-color); }
.gis-status-counts b { font-size: 14px; }
:root body.observatory-interface .gis-beacon-map .gis-layer-toolbar > span { font-size: 11px; }
:root body.observatory-interface .gis-beacon-map .map-floating-tools button { display: inline-flex; align-items: center; gap: 6px; color: #245eac; font-size: 12px; border-color: #cfddf0; border-radius: 8px; }
.gis-beacon-map .map-floating-tools svg { width: 17px; height: 17px; }
:root body.observatory-interface .gis-beacon-map .map-compass { border-radius: 9px; color: #225ea8; }
:root body.observatory-interface .gis-beacon-map .gis-location-bar { padding: 9px 10px; margin-top: 8px; }
:root body.observatory-interface .gis-beacon-map .map-level-legend { padding: 9px 0; gap: 6px 11px; }
:root body.observatory-interface .gis-beacon-map .map-level-legend > span { font-size: 11px; }
:root body.observatory-interface .gis-beacon-map .river-footer { padding: 8px 0 6px; flex-wrap: wrap; gap: 8px; }
:root body.observatory-interface .gis-beacon-map .gis-map-notes { padding-top: 6px; }

/* The geographic anchor is fixed. Only rings and the small status badge animate. */
:root body.observatory-interface .gis-beacon-map .alert-map-pin.gis-beacon {
    position: relative;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    outline: none;
    color: var(--point-color);
    --beacon-duration: 3.2s;
}
:root body.observatory-interface .gis-beacon-map .gis-beacon svg { animation: none; }
:root body.observatory-interface .gis-beacon-map .gis-beacon > .beacon-core {
    position: absolute;
    inset: 0;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: white;
    border: 2px solid var(--point-color);
    color: var(--point-color);
    border-radius: 14px;
    box-shadow: 0 4px 14px #20365430,0 0 0 3px #ffffffc9;
}
:root body.observatory-interface .gis-beacon-map .gis-beacon.measured > .beacon-core { background: var(--point-color); color: white; border-color: white; }
:root body.observatory-interface .gis-beacon-map .gis-beacon.estimated > .beacon-core { border-style: dashed; border-radius: 12px; }
:root body.observatory-interface .gis-beacon-map .gis-beacon.selected > .beacon-core { box-shadow: 0 0 0 3px #fff,0 0 0 5px #2563eb,0 5px 16px #16428535; }
:root body.observatory-interface .gis-beacon-map .gis-beacon > .beacon-core svg { width: 27px; height: 27px; }
.gis-beacon .beacon-status { position: absolute; right: -7px; top: -7px; display: grid; place-items: center; width: 23px; height: 23px; background: var(--point-color); color: white; border: 2px solid white; border-radius: 50%; box-shadow: 0 2px 6px #18314d20; }
:root body.observatory-interface .gis-beacon-map .gis-beacon .beacon-status svg { width: 14px; height: 14px; }
.gis-beacon .beacon-wave { position: absolute; inset: -4px; border: 2px solid var(--point-color); border-radius: 50%; pointer-events: none; animation: gis-beacon-ripple var(--beacon-duration) ease-out infinite; }
.gis-beacon .wave-second { animation-delay: calc(var(--beacon-duration) / -2); }
.gis-beacon[data-alert-level="2"] { --beacon-duration: 2.6s !important; }
.gis-beacon[data-alert-level="3"] { --beacon-duration: 2.1s !important; }
.gis-beacon[data-alert-level="4"] { --beacon-duration: 1.7s !important; }
.gis-beacon:is([data-alert-level="3"],[data-alert-level="4"]) .beacon-status { animation: gis-beacon-alert 1.4s ease-in-out infinite; }
@keyframes gis-beacon-ripple { 0% { transform: scale(.9); opacity: .65; } 85%,100% { transform: scale(1.85); opacity: 0; } }
@keyframes gis-beacon-alert { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
:root body.observatory-interface .gis-beacon-map .gis-beacon .map-pin-label {
    width: 108px;
    padding: 6px 8px;
    border: 1px solid color-mix(in srgb,var(--point-color) 35%,white);
    border-left: 3px solid var(--point-color);
    border-radius: 8px;
    background: #fffffffa;
    box-shadow: 0 4px 14px #14325a20;
    bottom: 56px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1.45;
}
:root body.observatory-interface .gis-beacon-map .gis-beacon.label-below .map-pin-label { top: 56px; bottom: auto; }
:root body.observatory-interface .gis-beacon-map .gis-beacon .map-pin-label:after { height: 13px; left: 50%; }
:root body.observatory-interface .gis-beacon-map .gis-beacon .map-pin-label[data-label-side="above"]:after { left: var(--leader-x); height: var(--leader-length); top: 100%; bottom: auto; }
:root body.observatory-interface .gis-beacon-map .gis-beacon .map-pin-label[data-label-side="below"]:after { left: var(--leader-x); height: var(--leader-length); bottom: 100%; top: auto; }
:root body.observatory-interface .gis-beacon-map .gis-beacon .map-pin-label[data-label-side="left"]:after { width: 13px; height: 1px; left: 100%; top: 50%; bottom: auto; }
:root body.observatory-interface .gis-beacon-map .gis-beacon .map-pin-label[data-label-side="right"]:after { width: 13px; height: 1px; left: -14px; top: 50%; bottom: auto; }
:root body.observatory-interface .gis-beacon-map .gis-beacon .map-pin-label > strong { font-size: 13px; color: #1e3655; }
:root body.observatory-interface .gis-beacon-map .gis-beacon .map-pin-label > small { font-size: 11px; margin: 2px 0; }
:root body.observatory-interface .gis-beacon-map .gis-beacon .map-pin-label > span { display: block; font-size: 9px; color: #687b94; }
.gis-beacon-map.labels-hidden .gis-beacon .map-pin-label { display: none; }
:root body.observatory-interface .gis-beacon-map.expanded .river-canvas,
:root body.observatory-interface .gis-beacon-map.expanded #geographic-map { height: max(480px,calc(100dvh - 310px)) !important; }

@media (max-width: 1200px) and (min-width: 901px) {
    :root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .ob-workspace-columns { grid-template-columns: minmax(0,1fr) minmax(400px,1fr); }
}
@media (max-width: 900px) {
    :root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .ob-workspace-columns { grid-template-columns: minmax(0,1fr); grid-template-areas: "map" "readings" "trend" "context"; }
    .ob-workspace-column { display: contents; }
    .ob-workspace-columns #ob-map { grid-area: map; }
    .ob-workspace-columns .station-instrument { grid-area: readings; }
    .ob-workspace-columns .analysis-trend { grid-area: trend; }
    .ob-workspace-columns .data-context { grid-area: context; }
}
@media (max-width: 600px) {
    .ob-context-overview { gap: 10px; }
    .ob-context-facts { grid-template-columns: minmax(0,1fr); gap: 5px; }
    :root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .ob-context-facts .context-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 12px; padding: 10px 12px; }
    :root body.observatory-interface .ob-flow-upgrade .ob-context-facts .context-row strong { font-size: 14px; }
    :root body.observatory-interface .gis-beacon-map.water-alert-map .river-canvas,
    :root body.observatory-interface .gis-beacon-map.water-alert-map #geographic-map { height: 390px !important; }
    :root body.observatory-interface .gis-beacon-map.water-alert-map .map-situation > div:first-of-type { min-width: 150px; }
    .gis-status-counts { padding-left: 38px; width: 100%; }
    :root body.observatory-interface .gis-beacon-map .gis-beacon .map-pin-label { width: 84px; padding: 5px 6px; }
    :root body.observatory-interface .gis-beacon-map .gis-beacon .map-pin-label > strong { font-size: 12px; }
    :root body.observatory-interface .gis-beacon-map .gis-beacon .map-pin-label > span { display: none; }
    :root body.observatory-interface .gis-beacon-map .gis-view-coordinate { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    .gis-beacon .beacon-wave { animation: none; opacity: .22; }
    .gis-beacon .wave-second { display: none; }
    .gis-beacon .beacon-status { animation: none !important; }
}

/* ==== observatory-hydrology.css ==== */
/* Three GIS presentations share the same coordinates, alerts and genuine OSM river banks. */
.gis-basemap-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 8px; flex-wrap:wrap; }
.gis-basemap-switch { display:inline-flex; padding:3px; gap:3px; border:1px solid #dce6f2; border-radius:9px; background:#f1f5fa; }
.gis-basemap-switch button { display:inline-flex; align-items:center; gap:5px; border:0; background:transparent; border-radius:6px; color:#667b98; padding:6px 9px; min-height:32px; font:500 12px 'Be Vietnam Pro',sans-serif; cursor:pointer; }
.gis-basemap-switch button[aria-pressed="true"] { color:#2160ad; background:white; box-shadow:0 1px 5px #25436b18; }
.gis-basemap-switch button svg { width:15px; height:15px; }
.gis-basemap-toolbar > span { font-size:11px; color:#71849d; }
.gis-basemap-switch button:focus-visible { outline:2px solid #2563eb; outline-offset:2px; }
:root body:is(.observatory-interface,.community-view) .gis-beacon-map.gis-style-hydrology #geographic-map { background:#f5f7f6 !important; }
:root body:is(.observatory-interface,.community-view) .gis-beacon-map.gis-style-night #geographic-map { background:#132137 !important; }
.gis-style-night .leaflet-control-zoom a { background:#203047; color:#e3f0fc; border-color:#40536c; }
.gis-style-night .leaflet-control-scale-line { color:#d5e6f5; background:#203047cc; border-color:#88aac8; }
.gis-style-night .leaflet-control-attribution { background:#203047e6; color:#b2c7da; }
.gis-style-night .leaflet-control-attribution a { color:#c1e1ff; }
:root body:is(.observatory-interface,.community-view) .gis-style-night .gis-view-coordinate { background:#203047ed; color:#c3d8eb; border-color:#47647e; }
:root body:is(.observatory-interface,.community-view) .gis-style-night .map-compass { background:#203047ed; color:#c4e3ff; border-color:#47647e; }
.gis-style-night .beacon-wave { border-width:2px; }
:root body:is(.observatory-interface,.community-view) .gis-beacon-map.gis-style-night .gis-beacon .map-pin-label { background:#1c2e46f5; border-color:color-mix(in srgb,var(--point-color) 65%,#607793); box-shadow:0 4px 14px #0005; }
:root body:is(.observatory-interface,.community-view) .gis-beacon-map.gis-style-night .gis-beacon .map-pin-label > strong { color:#e7f1fc; }
:root body:is(.observatory-interface,.community-view) .gis-beacon-map.gis-style-night .gis-beacon .map-pin-label :is(small,em) { color:color-mix(in srgb,var(--point-color) 60%,white); }
:root body:is(.observatory-interface,.community-view) .gis-beacon-map.gis-style-night .gis-beacon .map-pin-label em { background:#ffffff0d; }
:root body:is(.observatory-interface,.community-view) .gis-beacon-map.gis-style-night .gis-beacon .map-pin-label > span { color:#9baec5; }
.atlas-place-label { text-align:center; color:#798991; font:500 10px/20px 'Be Vietnam Pro',sans-serif; letter-spacing:.1px; text-shadow:0 1px 2px white,0 -1px 2px white,1px 0 2px white,-1px 0 2px white; pointer-events:none; }
.atlas-place-label.atlas-label-night { color:#8b9eaf; text-shadow:0 1px 2px #132137,0 -1px 2px #132137,1px 0 2px #132137,-1px 0 2px #132137; }
.gis-water-key { display:inline-block; width:17px; height:9px; border:1px solid #459cbe; border-radius:3px; background:#9ed8ef; }

/* Every axis label sits inside an allocated SVG gutter, including unit and date/time rows. */
:root body.observatory-interface .chart { overflow:visible; }
:root body.observatory-interface .chart .chart-axis-label { fill:#5a7090; font-size:14px; font-weight:500; }
:root body.observatory-interface .chart .chart-unit-label { fill:#607891; font-size:14px; font-weight:600; }
:root body.observatory-interface .chart .chart-time-label tspan { fill:#8798ac; font-size:11px; }
:root body.observatory-interface .chart-legend { flex-wrap:wrap; gap:6px 12px; line-height:1.6; margin-top:8px; }
@media(max-width:760px) {
    :root body.observatory-interface .chart .chart-axis-label,
    :root body.observatory-interface .chart .chart-unit-label { font-size:16px; }
    :root body.observatory-interface .chart .chart-time-label tspan { font-size:14px; }
}
@media(max-width:600px) {
    .gis-basemap-toolbar > span { display:none; }
    .gis-basemap-switch { width:100%; }
    .gis-basemap-switch button { justify-content:center; flex:1; padding:6px 4px; min-height:36px; }
}

/* ==== standards.css ==== */
.qcvn-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px}.qcvn-summary{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid #d9e5fa;border-radius:12px;background:#eff6ff;color:#2563eb}.qcvn-summary.purple{background:#f3f0ff;color:#7c3aed;border-color:#e3dcfa}.qcvn-summary.amber{background:#fffbeb;color:#b7790e;border-color:#f2e6c5}.qcvn-summary span{display:block;font-size:12px;color:#64748b;margin-bottom:5px}.qcvn-summary strong{font-size:20px;color:#17375c}.qcvn-purpose-controls,.qcvn-lookup{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.qcvn-purpose-controls>.field,.qcvn-lookup>.field{min-width:210px;flex:1}.qcvn-lookup{margin-top:16px;border-top:1px solid #e2e8f0;padding-top:16px}.qcvn-lookup>p{width:100%;margin:0;color:#254b7d;font-size:13px}.qcvn-library-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px}.qcvn-library-heading h2{font-size:21px;margin:0}.qcvn-library-heading span{font-size:12px;color:#64748b}.qcvn-library{display:grid;align-items:start;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.qcvn-version{margin:0!important;min-width:0}.qcvn-version-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.qcvn-code{display:flex;align-items:center;gap:8px;color:#2563eb;font-weight:650;font-size:14px}.qcvn-version h3{font-size:18px;line-height:1.5;margin:12px 0 8px}.qcvn-version-meta{display:flex;gap:8px;flex-wrap:wrap;font-size:12px;color:#64748b}.qcvn-version-meta span{background:#f1f5f9;padding:5px 8px;border-radius:6px}.qcvn-version-meta .qcvn-withdrawn{background:#fff1e6;color:#a34b17}.qcvn-limits{margin:12px 0}.qcvn-limits>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid #e8edf5;font-size:13px}.qcvn-limits strong{font-size:13px;color:#254b7d}.qcvn-version details{font-size:13px}.qcvn-version-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.qcvn-version-actions .btn{font-size:12px;padding:9px 11px}.qcvn-table-note{display:block;font-size:12px;line-height:1.6;color:#64748b;margin-top:5px}.qcvn-history-note{display:flex;gap:14px;background:#edf4ff;border:1px solid #dae5fb;padding:18px;margin-top:16px;border-radius:12px;color:#254b7d}.qcvn-history-note p{font-size:13px;line-height:1.7;margin:6px 0}.qcvn-history-note svg{flex-shrink:0}.qcvn-empty{padding:18px;background:#f8fafc;border-radius:8px;color:#64748b;font-size:14px;line-height:1.7}.qcvn-editor fieldset{border:0;padding:0;margin:0;min-width:0}.qcvn-limit-row{padding:14px;border:1px solid #dce5f3;border-radius:10px;margin:14px 0;background:#f8faff}.qcvn-limit-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.qcvn-history-result{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:6px 0}.qcvn-history-result>b{min-width:38px}.qcvn-purpose-filter{max-width:330px;margin-bottom:14px}.reference-guide-grid .badge,.reading-reference .badge{width:fit-content;margin-top:4px;font-size:10px;white-space:normal} .qcvn-page>.card{margin-bottom:16px}
@media(max-width:900px){.qcvn-library{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.qcvn-overview{grid-template-columns:minmax(0,1fr);gap:8px}.qcvn-summary{padding:12px 14px}.qcvn-summary strong{font-size:18px}.qcvn-library-heading{align-items:start;flex-direction:column}.qcvn-version-top{align-items:start;flex-wrap:wrap}.qcvn-code{font-size:13px}.qcvn-purpose-controls>.field,.qcvn-lookup>.field{min-width:0;flex-basis:100%}.qcvn-version-actions>.btn{flex:1}.qcvn-limits>div{font-size:12px}.qcvn-version h3{font-size:17px}}

.qcvn-record-pages{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;font-size:12px;color:#64748b}

@media(max-width:600px){.qcvn-page .card-title{align-items:flex-start;flex-direction:column;gap:12px}.qcvn-page .card-title h2{width:100%}.qcvn-page .card-title h2 svg{flex-shrink:0}}

.gauge-provenance small{display:block;font-size:11px;color:#70849f;line-height:1.6}
.gauge-level-table{width:100%;border-collapse:collapse;margin:10px 0;font-size:12px;text-align:left}
.gauge-level-table th{padding:8px;background:#eef4fd;color:#486487;font-size:11px;font-weight:600}
.gauge-level-table td{padding:8px;border-bottom:1px solid #e1e9f3;white-space:normal;vertical-align:top}
.gauge-level-table td:first-child{width:40%}.gauge-level-table td:first-child b{display:inline-block;margin-right:6px}
.gauge-level-table td small{display:block;margin-top:3px;font-size:10px;color:#7486a0;line-height:1.5}

:root body.observatory-interface .ob-reading-upgrade.ob-design-system.ob-gis-upgrade .instrument-readings .gauge-heading{display:flex;font-size:10px;line-height:1.5;gap:8px}
:root body.observatory-interface .ob-reading-upgrade.ob-design-system.ob-gis-upgrade .metric[data-parameter="DO"] .gauge-heading small{color:#536e93;background:#eaf2ff;border-color:#d5e3fa}
:root body.observatory-interface .ob-reading-upgrade .metric[data-parameter="DO"] .gauge-provenance span{display:block}
:root body.observatory-interface .ob-reading-upgrade .metric[data-parameter="DO"] .reading-reference{border-top:1px solid #dce7f6;padding-top:7px;margin-top:7px}
:root body.observatory-interface .ob-reading-upgrade .metric[data-parameter="DO"] .reading-reference>span{display:block;line-height:1.6}
:root body.observatory-interface .ob-reading-upgrade .metric[data-parameter="DO"] .reading-reference>span.badge{display:inline-flex;width:fit-content}
.standard-gauge{min-width:0;padding:10px 0;color:#375579}
.standard-gauge-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;font-size:12px;line-height:1.5}
.standard-gauge-head b{color:#2563eb;font-size:10px;letter-spacing:.08em}
.standard-gauge-visual{margin:16px 14px 8px}
.standard-gauge-track{position:relative;height:9px;border-radius:5px;background:#fee2e2;box-shadow:inset 0 0 0 1px #f4c7c7}
.standard-gauge-track>i{position:absolute;top:0;height:100%;background:#86cfb7;box-shadow:inset 0 0 0 1px #5eb898;border-radius:3px}
.standard-gauge-track>i.pending{background:#cbd5e1;box-shadow:none}
.standard-gauge-pointer{position:absolute;top:-7px;height:22px;width:3px;background:#1d4ed8;border-radius:2px;box-shadow:0 0 0 2px white;transform:translateX(-50%)}
.standard-gauge-pointer:before{content:'';position:absolute;top:-4px;left:-3px;border:5px solid transparent;border-top-color:#1d4ed8}
.standard-gauge-ticks{position:relative;height:22px;margin-top:5px;font-size:11px;color:#68819d}
.standard-gauge-ticks span{position:absolute;transform:translateX(-50%);white-space:nowrap}
.standard-gauge-status{display:block;font-size:12px;margin:4px 0;color:#34755f}
.standard-gauge[data-reference-state=outside] .standard-gauge-status{color:#c0394e;font-weight:600}
.standard-gauge[data-reference-state=pending] .standard-gauge-status{color:#6b7d95}
.standard-gauge[data-reference-state=pending] .standard-gauge-track{background:#e8edf5;box-shadow:none}
.standard-secondary{font-size:11px;color:#647d9b;border-top:1px dashed #e0e8f3;padding:7px 0}
.standard-secondary>summary{cursor:pointer}
.qcvn-import-library{display:grid;gap:10px;background:#eff6ff;padding:16px;border:1px solid #dbeafe;border-radius:12px}
.qcvn-import-warnings{background:#fff8e9;border:1px solid #f5dfa6;padding:12px;border-radius:10px;margin:12px 0;font-size:13px;line-height:1.7}
.qcvn-import-warnings ul{padding-left:20px;margin:8px 0}
.reference-current-policy{padding:10px 12px;background:#eff6ff;border:1px solid #dbeafe;border-radius:9px;font-size:12px;line-height:1.7;color:#345e91}
.qcvn-import [hidden]{display:none!important}
.standard-gauge[data-reference-state=partial] .standard-gauge-status{color:#a56c16}

/* ==== chart-experience.css ==== */
.chart-panel{min-width:0;overflow-anchor:none}
.chart-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.chart-panel-heading h2{font-size:19px;margin:0;line-height:1.5;color:#16375e}
.chart-quick-label{font-size:12px;color:#7a8ca7;white-space:nowrap}
.chart-parameters{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0 16px}
.chart-parameters button{display:flex;align-items:center;gap:6px;flex:1 0 auto;padding:9px 10px;min-height:40px;border:1px solid #e0e8f3;border-radius:9px;background:#f8faff;color:#60738f;cursor:pointer;font:inherit}
.chart-parameters button svg{color:var(--chart-accent);flex-shrink:0}
.chart-parameters button strong{white-space:nowrap;font-size:13px;font-weight:650}
.chart-parameters button span{font-size:10px;opacity:.8;margin-left:auto}
.chart-parameters button:hover{border-color:var(--chart-accent);background:#fff}
.chart-parameters button[aria-pressed="true"]{color:var(--chart-accent);border-color:var(--chart-accent);background:color-mix(in srgb,var(--chart-accent) 8%,white);box-shadow:0 2px 7px color-mix(in srgb,var(--chart-accent) 12%,transparent)}
.chart-parameters button:focus-visible,.chart-frame:focus-visible{outline:3px solid #a8caff;outline-offset:3px}
.chart-statistics-slot .ob-chart-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:13px 0;border-block:1px solid #e6edf6;margin:0}
.chart-statistics-slot .ob-chart-stats>div{padding:0 16px;border-right:1px solid #e6edf6;min-width:0}
.chart-statistics-slot .ob-chart-stats>div:first-child{padding-left:4px}
.chart-statistics-slot .ob-chart-stats>div:last-child{border:0}
.chart-statistics-slot .ob-chart-stats span{display:block;font-size:12px;color:#71839e;margin-bottom:7px}
.chart-statistics-slot .ob-chart-stats strong{font-size:22px;line-height:1.5;font-weight:650;font-variant-numeric:tabular-nums;color:#16375e;white-space:nowrap}
.chart-statistics-slot .ob-chart-stats small{font-size:11px;margin-left:5px;color:#6d83a1;font-weight:400}
.chart-statistics-slot .ob-chart-sample-note{margin:9px 0 0;font-size:11px;line-height:1.5;color:#7a8da7}
.chart-content{contain:layout style}
.chart-frame{position:relative;border-radius:10px;margin-top:12px;outline:none}
.chart-frame svg{touch-action:pan-y}

:root body .chart-frame .chart .axis{stroke:#e8eef6;stroke-dasharray:2 5;stroke-width:1}
:root body .chart-frame .chart text{fill:#6d83a2}
:root body .chart-frame .chart .chart-unit-label{font-size:12px;fill:#617a9b}
.chart-cursor[hidden],.chart-tooltip[hidden]{display:none}
.chart-tooltip{position:absolute;top:20px;z-index:2;pointer-events:none;min-width:156px;padding:10px 12px;border:1px solid #dde7f4;border-radius:10px;background:#ffffffef;box-shadow:0 6px 24px #16375e18;color:#17375c}
.chart-tooltip time,.chart-tooltip small{display:block;font-size:11px;color:#788ba5;line-height:1.5}
.chart-tooltip strong{display:block;font-size:20px;line-height:1.7;font-variant-numeric:tabular-nums;color:var(--chart-accent)}
:root body .chart-content .chart-legend{font-size:11px;color:#7184a0;gap:7px 14px;flex-wrap:wrap;line-height:1.6;margin-top:5px}
:root body .chart-legend i{background:var(--chart-accent,#2563eb);height:3px;border-radius:2px}
:root body .chart-legend i.dash{background:repeating-linear-gradient(90deg,var(--chart-accent,#2563eb) 0 5px,transparent 5px 8px)}
:root body .chart-legend .chart-band-key i{height:9px;opacity:.3}
.chart-interaction-hint{font-size:10px;color:#8a9bb3;margin:6px 0 0;line-height:1.5}
@media(max-width:600px){.chart-parameters{gap:6px}.chart-parameters button{padding:9px 7px;gap:5px;flex:1 0 28%}.chart-parameters button span{display:none}.chart-parameters button strong{font-size:12px}.chart-parameters button svg{width:15px;height:15px}.chart-panel-heading{align-items:start}.chart-quick-label{display:none}.chart-statistics-slot .ob-chart-stats>div{padding:0 8px}.chart-statistics-slot .ob-chart-stats strong{font-size:19px}.chart-statistics-slot .ob-chart-stats small{display:block;margin:2px 0 0}.chart-statistics-slot .ob-chart-stats span{font-size:11px}.chart-tooltip{top:5px;min-width:140px}.chart-tooltip strong{font-size:18px}}
@media(prefers-reduced-motion:reduce){.chart-parameters button{transition:none}}

/* ==== gis-point-detail.css ==== */
.gis-point-detail[hidden]{display:none!important}
.gis-point-detail{position:absolute;right:12px;top:12px;bottom:12px;z-index:950;width:min(330px,calc(100% - 24px));display:flex;flex-direction:column;background:#fffffffa;border:1px solid #d2e1f1;border-top:3px solid var(--point-color);border-radius:14px;box-shadow:0 12px 32px #20395c30;color:#28476a;overflow:hidden;backdrop-filter:blur(12px)}
.gis-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:13px 14px 10px;border-bottom:1px solid #e4edf6;flex-shrink:0}
.gis-detail-header span{font-size:11px;color:#607e9e}
.gis-detail-header h4{margin:3px 0 0;font-size:16px;line-height:1.4;font-weight:700}
.gis-detail-close{border:0;background:#eff4fa;color:#48668a;width:28px;height:28px;border-radius:8px;font-size:23px;line-height:1;cursor:pointer;flex-shrink:0}
.gis-detail-body{overflow:auto;overscroll-behavior:contain;padding:12px 14px;min-height:0;font-size:12px;line-height:1.6;scrollbar-width:thin}
.gis-detail-body .map-popup-reason{margin:7px 0;font-size:12px}
.gis-detail-time{font-size:11px;color:#637e9c;margin:7px 0 12px}
.gis-point-detail .map-popup-readings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.gis-point-detail .map-popup-readings>div{padding:8px 10px;border:1px solid #deebf7;border-radius:9px;background:#f4f8fd;min-width:0}
.gis-point-detail .map-popup-readings small{display:block;font-size:11px;line-height:1.4;color:#597697}
.gis-point-detail .map-popup-readings strong{display:inline-block;font-size:22px;color:#17579d;line-height:1.6;letter-spacing:-.03em;margin-right:5px}
.gis-point-detail .map-popup-readings span{font-size:10px;color:#738ba6}
.gis-point-detail .map-popup-readings em{display:block;font-size:10px;font-style:normal;color:#8e731f}
.gis-detail-reference{padding:9px 10px;margin:12px 0;background:#edf4ff;border-radius:8px;font-size:11px}
.gis-detail-body .geographic-coordinates{font-size:11px;line-height:1.7;margin:10px 0}
.gis-detail-body .geographic-warning{font-size:11px;margin-bottom:0}
.gis-detail-actions{display:flex;gap:8px;justify-content:flex-end;flex-shrink:0;border-top:1px solid #e4edf6;background:white;padding:10px 12px}
.gis-detail-actions .btn{font-size:12px;padding:9px 11px}
.gis-point-detail button:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}
@media(max-width:480px){.gis-point-detail{top:auto;max-height:72%;right:8px;bottom:8px;width:calc(100% - 16px)}.gis-detail-header{padding:9px 12px}.gis-detail-header h4{font-size:14px}.gis-detail-body{padding:10px 12px}.gis-detail-actions{padding:8px 12px}}

/* ==== instrument-readings.css ==== */
/* Overview readings: one value, one scale and one expandable evidence record. */
.station-instrument .ir-reference-banner{display:flex;align-items:center;gap:10px;margin:12px 0 8px;padding:10px 12px;background:#eff5ff;border:1px solid #dce8fb;border-radius:10px;color:#326ac1}
.ir-reference-banner svg{flex-shrink:0}
.ir-reference-banner strong{display:block;font-size:13px;font-weight:650;color:#244878;line-height:1.5}
.ir-reference-banner span{display:block;font-size:12px;color:#637b9b;margin-top:1px}
.ir-reading-guide{display:flex;flex-wrap:wrap;gap:6px 16px;padding:0 4px 10px;color:#687c97;font-size:11px;line-height:1.5}
.ir-reading-guide>span{display:inline-flex;gap:6px;align-items:center}
.ir-guide-marker{height:12px;width:3px;background:#2563eb;border-radius:2px}
.ir-guide-band{height:7px;width:18px;background:#99d8c0;border-radius:3px}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .ir-column-head{grid-template-columns:minmax(140px,.85fr) minmax(0,1.15fr);gap:16px;padding:8px 12px;font-size:12px;font-weight:500;letter-spacing:0;border:0;color:#7788a1}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .instrument-readings{gap:6px}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .instrument-readings>.metric.instrument-reading{display:grid;grid-template-columns:minmax(140px,.85fr) minmax(0,1.15fr);align-items:center;gap:16px;padding:13px 12px;margin:0;min-height:0;border:1px solid #e5ebf4;border-radius:11px;background:#fff;box-shadow:none;transform:none;color:#24446c;transition:border-color .16s,background .16s}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .instrument-readings>.metric.instrument-reading:hover{border-color:#c7d8f2;background:#fbfdff;transform:none;box-shadow:none}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .instrument-readings>.metric.instrument-reading:before{display:none}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .instrument-readings>.metric.instrument-reading>.ir-identity{grid-column:1;grid-row:1;padding:0;min-width:0}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .instrument-readings>.metric.instrument-reading>.ir-comparison{grid-column:2;grid-row:1;padding:0;min-width:0}
.ir-name{display:flex;gap:8px;align-items:center;font-size:14px;line-height:1.5;color:#466080}
.ir-name>strong{font-weight:550}
.ir-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#ecf4ff;color:#3479d3;flex-shrink:0}
.ir-icon.violet,.ir-icon.purple{background:#f1edff;color:#9161e8}.ir-icon.teal,.ir-icon.green{background:#e8f8f4;color:#229d91}.ir-icon.orange,.ir-icon.amber{background:#fff4e4;color:#cc8a28}.ir-icon.rose,.ir-icon.red{background:#fff0f3;color:#e46985}
.ir-value{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;font-size:29px;font-weight:650;line-height:1.25;letter-spacing:-.8px;font-variant-numeric:tabular-nums;color:#183f76;margin:5px 0 3px}
.ir-value>span{font-size:12px;font-weight:400;letter-spacing:0;color:#7487a0}
.ir-source{font-size:12px;color:#6f839c;line-height:1.5}.ir-quality{font-size:12px;color:#91723c;line-height:1.5;margin-top:3px;overflow-wrap:anywhere}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .instrument-readings .ir-comparison>.ir-gauge{padding:0;margin:0;border:0;width:100%;background:transparent;min-width:0}
.ir-scale-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:2px 8px;line-height:1.5;margin-bottom:8px}
.ir-scale-heading>span{font-size:12px;color:#7b8ca3}.ir-scale-heading>strong{font-size:13px;color:#46658c;font-weight:550}
.ir-gauge .standard-gauge-visual{margin:11px 8px 0}
.ir-gauge .standard-gauge-track{height:7px;box-shadow:none;background:#f9e6e6}
.ir-gauge .standard-gauge-track>i{box-shadow:none;background:#9bdac3}
.ir-gauge .standard-gauge-pointer{height:18px;top:-6px;width:3px}
.ir-gauge .standard-gauge-ticks{height:20px;margin-top:6px;font-size:11px;color:#8b9ab0}
.ir-gauge .standard-gauge-ticks>span:first-child{transform:none}.ir-gauge .standard-gauge-ticks>span:last-child{transform:translateX(-100%)}
.ir-gauge .reading-visual{margin:11px 8px 0;padding:0}
.ir-gauge .reading-track{height:7px;background:#e3edf9;box-shadow:none;border-radius:5px}
.ir-gauge .reading-pointer{background:#2563eb}
.ir-gauge .reading-ticks{font-size:11px;color:#8b9ab0;margin-top:6px;line-height:1.5}
.ir-result{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;margin-top:4px}
.ir-status{display:inline-flex;align-items:center;gap:5px;color:#368365;font-size:12px;font-weight:550;line-height:1.6}
.ir-status>i{font-style:normal;font-size:10px;width:14px;height:14px;display:grid;place-items:center;border-radius:50%;background:#e6f5ed;flex-shrink:0}
[data-reference-state=outside] .ir-status{color:#c05361}[data-reference-state=outside] .ir-status>i{background:#fff0f1}
[data-reference-state=partial] .ir-status{color:#a57a31}[data-reference-state=partial] .ir-status>i{background:#fff5df}
[data-reference-state=pending] .ir-status,.ir-status-neutral{color:#71829a}[data-reference-state=pending] .ir-status>i,.ir-status-neutral>i{background:#eef2f7}
.ir-evidence{flex-basis:auto;min-width:0;margin:0;padding:0;border:0;background:none}.ir-evidence[open]{flex-basis:100%}
.ir-evidence>summary{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;cursor:pointer;font-size:12px;color:#6684aa;line-height:1.7;width:fit-content;list-style:none;padding:0}
.ir-evidence>summary:after{content:'';display:block;flex:0 0 6px;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .15s}.ir-evidence[open]>summary:after{transform:translateY(1px) rotate(225deg)}
.ir-evidence>summary::-webkit-details-marker{display:none}.ir-evidence>summary:hover{color:#2563eb}.ir-evidence>summary:focus-visible{outline:2px solid #2563eb;outline-offset:3px;border-radius:3px}
.ir-evidence-body{margin-top:7px;padding:10px;border:1px solid #dce7f5;background:#f4f8ff;border-radius:8px;font-size:12px;line-height:1.6;overflow-wrap:anywhere;color:#637a98}
.ir-evidence-body .reading-reference{margin:0;font-size:12px;line-height:1.6}.ir-evidence-body p{font-size:12px;line-height:1.6;margin:6px 0}.ir-evidence-body .standard-secondary{margin-top:8px}
@media(max-width:480px){
 :root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .ir-column-head{display:none}
 :root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .instrument-readings>.metric.instrument-reading{grid-template-columns:1fr;gap:12px;padding:13px}
 :root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .instrument-readings>.metric.instrument-reading>.ir-comparison{grid-column:1;grid-row:2;border-top:1px solid #edf1f7;padding-top:10px}
 .ir-identity{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 8px}.ir-name{grid-column:1}.ir-value{grid-column:2;grid-row:1 / 3;margin:0;align-self:center;font-size:27px}.ir-source{grid-column:1;margin-left:36px}.ir-quality{grid-column:1 / -1}
 .ir-result{align-items:center}.ir-evidence{flex-basis:auto}.ir-evidence[open]{flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){.ir-evidence>summary:after{transition:none}}

#account-button{display:inline-flex;align-items:center;flex-wrap:nowrap;white-space:nowrap}
#account-button .avatar{flex-shrink:0}
#account-button .account-chevron{display:inline-flex;align-items:center;justify-content:center;flex:0 0 14px;width:14px;height:14px;line-height:1}
#account-button .account-chevron svg{display:block;width:14px;height:14px}

/* ==== reference-panel.css ==== */
/* Compact saved-reference summary: labels, limits and results share a row. */
:root body.observatory-interface .ob-reading-upgrade .reference-guide.rp-panel{margin:12px 0 0;padding:12px;border:1px solid #dce6f4;border-radius:11px;background:#fff;color:#43617f;min-width:0}
.rp-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;line-height:1.5;margin-bottom:10px}
.rp-heading>strong{font-size:14px;color:#254d7d;font-weight:650}
.rp-heading>a{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px;font-weight:500;text-decoration:none;color:#3978cd}
.rp-heading>a svg{flex-shrink:0;width:14px;height:14px}
.rp-standard{display:flex;align-items:center;gap:9px;padding:10px;background:#f3f7ff;border-radius:8px}
.rp-book{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:8px;background:#e5efff;color:#4278c6}
.rp-standard>div{min-width:0}.rp-standard strong{display:block;font-size:13px;line-height:1.5;font-weight:650;color:#345b8e;overflow-wrap:anywhere}.rp-standard span:not(.rp-book){display:block;font-size:12px;line-height:1.5;color:#8394ac}
.rp-scope{display:flex;flex-wrap:wrap;align-items:center;gap:3px 10px;margin:8px 2px 12px;font-size:12px;color:#6f829c;line-height:1.5}
.rp-scope>span+span{border-left:1px solid #d8e2ef;padding-left:10px}
:root body.observatory-interface .rp-panel .rp-table{width:100%;table-layout:fixed;border-collapse:collapse;margin:0;font-size:13px;background:#fff;min-width:0;border:0}
:root body.observatory-interface .rp-panel .rp-table tr{background:transparent;cursor:default}
:root body.observatory-interface .rp-panel .rp-table :is(th,td){padding:10px 7px;border:0;border-bottom:1px solid #edf1f7;text-align:left;vertical-align:middle;white-space:normal;font-size:12px;line-height:1.5;color:#59708c;overflow-wrap:anywhere}
:root body.observatory-interface .rp-panel .rp-table thead th{background:#f7f9fd;padding:7px;color:#8b9ab0;font-size:11px;font-weight:500}
.rp-table thead th:first-child{width:40%;border-radius:6px 0 0 6px}.rp-table thead th:nth-child(2){width:32%}.rp-table thead th:last-child{width:28%;border-radius:0 6px 6px 0}
:root body.observatory-interface .rp-panel .rp-table tbody th{font-weight:550;color:#3c597c}
:root body.observatory-interface .rp-panel .rp-table tbody tr:hover{background:#fbfcff}
:root body.observatory-interface .rp-panel .rp-table tbody tr:last-child :is(th,td){border-bottom:0}
.rp-parameter{display:flex;align-items:center;gap:7px;min-width:0}.rp-parameter>span:last-child{font-size:13px;line-height:1.5}
.rp-parameter-icon{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:7px;color:#427ccf;background:#edf4ff}
.rp-parameter-icon svg{width:17px;height:17px}.rp-parameter-icon b{font-size:11px}
.rp-parameter-icon.violet,.rp-parameter-icon.purple{color:#9268d8;background:#f2edff}.rp-parameter-icon.teal,.rp-parameter-icon.green{color:#369b92;background:#eaf7f4}.rp-parameter-icon.rose,.rp-parameter-icon.red{color:#df718d;background:#fff0f4}.rp-parameter-icon.orange,.rp-parameter-icon.amber{color:#c58d3b;background:#fff5e7}
.rp-table td small{display:block;font-size:11px;line-height:1.5;color:#8191a7;margin-top:2px}
.rp-status{display:inline-flex;gap:5px;align-items:center;font-size:12px;font-weight:550;line-height:1.5;color:#3a896b}
.rp-status>i{display:grid;place-items:center;flex:0 0 14px;width:14px;height:14px;font-size:10px;font-style:normal;border-radius:50%;background:#e7f5ef}
.rp-outside{color:#bf5966}.rp-outside>i{background:#fff0f2}.rp-pending{color:#8796aa;font-weight:400}.rp-pending>i{background:#f0f3f7}
:root body.observatory-interface .rp-panel .rp-source{margin:8px 0 0;padding:9px 0 0;border-top:1px solid #e8eef7;font-size:12px}
:root body.observatory-interface .rp-panel .rp-source>summary{display:inline-flex;align-items:center;gap:8px;list-style:none;font-size:12px;color:#6e89ac;line-height:1.7;cursor:pointer}
.rp-source>summary:after{content:'';display:block;flex:0 0 6px;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.rp-source[open]>summary:after{transform:translateY(1px) rotate(225deg)}.rp-source>summary::-webkit-details-marker{display:none}
.rp-source>summary:focus-visible,.rp-heading>a:focus-visible{outline:2px solid #2563eb;outline-offset:3px;border-radius:3px}
.rp-source>div{padding:8px 10px;margin-top:8px;background:#f7faff;border-radius:7px}
:root body.observatory-interface .rp-panel .rp-source p{font-size:12px;line-height:1.65;margin:4px 0 8px;color:#6a809d}
.rp-source a{font-size:12px;color:#3978cd}.rp-empty{margin:8px 0 0;font-size:13px;line-height:1.65;color:#7c8da5}
.rp-panel .reference-current-policy{padding:9px 10px;margin:0 0 10px;background:#fff7e8;border:1px solid #f2e3c5;border-radius:7px;font-size:12px;line-height:1.6;color:#97774c}
@media(max-width:480px){
 :root body.observatory-interface .ob-reading-upgrade .reference-guide.rp-panel{padding:10px}
 .rp-table thead th:first-child{width:38%}.rp-table thead th:nth-child(2){width:31%}.rp-table thead th:last-child{width:31%}
 :root body.observatory-interface .rp-panel .rp-table :is(th,td){padding:9px 4px;font-size:12px}
 .rp-parameter{gap:5px}.rp-parameter-icon{flex-basis:22px;width:22px;height:22px}.rp-parameter>span:last-child{font-size:12px}.rp-status{gap:4px;font-size:11px}
}

/* ==== station-alerts.css ==== */
/* Station warning lamps animate without moving the card or geographic anchors. */
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .ob-network .ob-section-heading{padding-right:112px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .ob-station-tabs{gap:8px;padding:2px 1px 5px}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .river-node.ob-station-tab.sa-station{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:12px;position:relative;padding:14px 12px;min-height:106px;min-width:0;border:1px solid #cbdff7;border-left:3px solid #8ab7ef;border-radius:12px;background:linear-gradient(135deg,#edf5ff,#f8fbff);box-shadow:0 2px 6px #254d8310;transform:none;color:#315275;--sa-speed:2.8s;overflow:visible}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .river-node.ob-station-tab.sa-station:hover{border-color:#76a6e8;background:linear-gradient(135deg,#e3efff,#f1f7ff);transform:none;box-shadow:0 4px 14px #265da21a}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .river-node.ob-station-tab.sa-station.selected{outline:2px solid #3779d6;outline-offset:1px;border-color:#6196dd;border-left-color:#2563c4;box-shadow:0 4px 14px #265da21a;background:linear-gradient(135deg,#dbeaff,#edf5ff)}
.sa-top{display:flex;align-items:center;gap:8px;min-width:0}
.sa-source-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:#d8e9ff;color:#2b6dc2;border:1px solid #bdd7f8}
.sa-source-icon svg{width:19px;height:19px;animation:none}
.sa-identity{display:flex;flex-direction:column;align-items:flex-start;gap:2px;flex:1;min-width:0}
:root body.observatory-interface .ob-flow-upgrade .sa-station .sa-identity strong{font-size:15px;line-height:1.4;color:#294975;margin:0}
:root body.observatory-interface .ob-flow-upgrade .sa-station .sa-identity small{font-size:11px;line-height:1.4;color:#5c7798;margin:0}
.sa-lamp{position:relative;display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px}
.sa-lamp>i{display:block;position:relative;width:9px;height:9px;border-radius:50%;background:var(--sa-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--sa-color) 10%,transparent);opacity:.9}
.sa-active .sa-lamp>i{animation:sa-lamp-blink var(--sa-speed) ease-in-out infinite;box-shadow:0 0 6px color-mix(in srgb,var(--sa-color) 50%,transparent)}
.sa-active .sa-lamp:after{content:'';position:absolute;inset:3px;border-radius:50%;border:1px solid var(--sa-color);animation:sa-lamp-ring var(--sa-speed) ease-out infinite;pointer-events:none}
.sa-bottom{display:flex;align-items:flex-start;align-content:flex-start;justify-content:space-between;flex-wrap:wrap;gap:4px 6px;min-height:40px}
.sa-state{display:inline-flex;align-items:center;gap:4px;color:var(--sa-color);font-size:12px;line-height:1.5}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .sa-state .badge{background:none;background-image:none;border:0;margin:0;padding:0;color:var(--sa-color);font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap;animation:none;box-shadow:none}
.sa-viewing{color:#fff;background:#3779d6;border:1px solid #3779d6;border-radius:5px;padding:2px 6px;font-size:10px;font-weight:600;line-height:1.5;white-space:nowrap}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .river-node.ob-station-tab.sa-station[data-station-alert="2"]{--sa-speed:2.1s}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .river-node.ob-station-tab.sa-station[data-station-alert="3"]{--sa-speed:1.7s}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .river-node.ob-station-tab.sa-station[data-station-alert="4"]{--sa-speed:1.4s}
.sa-priority{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid color-mix(in srgb,var(--sa-color) 30%,white);border-radius:7px;background:color-mix(in srgb,var(--sa-color) 7%,white);color:var(--sa-color);font-size:12px;line-height:1.5;cursor:pointer;white-space:nowrap}
.sa-priority strong{font-weight:650}.sa-priority svg{flex-shrink:0}.sa-priority svg:first-child{animation:sa-bell 3s ease-in-out infinite;transform-origin:50% 20%}
.sa-priority:hover{background:color-mix(in srgb,var(--sa-color) 13%,white)}
.sa-station:focus-visible,.sa-priority:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
@keyframes sa-lamp-blink{0%,100%{opacity:1;box-shadow:0 0 8px var(--sa-color)}50%{opacity:.38;box-shadow:0 0 1px transparent}}
@keyframes sa-lamp-ring{0%{transform:scale(.65);opacity:.55}75%,100%{transform:scale(1.2);opacity:0}}
@keyframes sa-bell{0%,15%,100%{transform:rotate(0)}3%,9%{transform:rotate(12deg)}6%,12%{transform:rotate(-12deg)}}
@media(max-width:900px){
 :root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .river-node.ob-station-tab.sa-station{flex:0 0 166px;min-height:106px;padding:12px}
 .sa-viewing{display:none}
 .sa-identity{display:block}
 .sa-priority{font-size:11px;padding:3px 6px;gap:4px}
}
@media(prefers-reduced-motion:reduce){.sa-active .sa-lamp>i,.sa-active .sa-lamp:after,.sa-priority svg:first-child{animation:none}.sa-active .sa-lamp:after{opacity:.3}}

/* ==== community-reference.css ==== */
body.community-view{margin:0;background:#f5f8fb;color:#143759;font-family:Inter,"Segoe UI",sans-serif;font-size:15px}
body.community-view>.sidebar,body.community-view .workspace>.topbar,body.community-view .workspace>footer{display:none!important}
body.community-view>.workspace{margin:0!important;width:100%;min-width:0;padding:0!important}
body.community-view #content{max-width:none!important;margin:0!important;padding:0!important;min-width:0}
.citizen-dashboard{--blue:#073a78;--navy:#0b305b;--line:#e3ebf3;--aqua:#008b9d;color:#143759;line-height:1.5}
.citizen-dashboard *{box-sizing:border-box}
.citizen-dashboard h1,.citizen-dashboard h2,.citizen-dashboard h3,.citizen-dashboard h4,.citizen-dashboard p{margin:0;color:inherit}
.citizen-dashboard button,.citizen-dashboard input,.citizen-dashboard select{font:inherit}
.citizen-dashboard button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.citizen-dashboard button:disabled{opacity:.55;cursor:wait}
.citizen-dashboard button:focus-visible,.citizen-dashboard a:focus-visible,.citizen-dashboard input:focus-visible,.citizen-dashboard select:focus-visible,.citizen-dashboard summary:focus-visible{outline:3px solid #39abc7;outline-offset:3px}
.citizen-dashboard svg{flex-shrink:0;vertical-align:middle}
.citizen-dashboard [hidden]{display:none!important}
.citizen-skip{position:fixed;top:8px;left:8px;z-index:10001;padding:10px 16px;background:white;border-radius:8px}
.citizen-skip:not(:focus){clip-path:inset(50%);width:1px;height:1px;overflow:hidden;padding:0;border:0}
.citizen-header{background:#fff;border-bottom:1px solid #dde7f0}
.citizen-header-inner{max-width:1440px;margin:auto;padding:0 30px;display:flex;align-items:center;gap:22px;min-height:68px}
.citizen-brand{display:flex;align-items:center;gap:10px;color:var(--blue);text-decoration:none;margin-right:auto;flex-shrink:0}
.citizen-brand>span{width:54px;height:41px}.citizen-brand>span svg{width:100%;height:100%}
.citizen-brand strong{font-size:20px;letter-spacing:.15px;display:block;line-height:1.2;font-weight:750}
.citizen-brand small{font-size:10px;color:#6983a0;display:block;margin-top:3px;white-space:nowrap}
.citizen-header nav{display:flex;gap:6px;margin:0 auto}
.citizen-header nav button{border:0;background:none;color:#193c67;padding:23px 12px 19px;font-size:12px;min-height:66px;position:relative;white-space:nowrap}
.citizen-header nav button.active{font-weight:700;color:#072f70}.citizen-header nav button.active:after{content:"";position:absolute;bottom:0;left:5px;right:5px;height:3px;border-radius:3px;background:#1459bc}
.citizen-header nav button:hover{color:#008ba6}
.citizen-staff{border:1px solid #6983a8;border-radius:8px;background:white;color:#073d7a;font-size:11px!important;font-weight:650;padding:9px 12px;min-height:36px;white-space:nowrap}
.citizen-staff-short{display:none}.citizen-staff svg{display:none}
.citizen-header-search{border:0;background:none;color:#133f76;padding:5px;min-width:34px;min-height:38px}
.citizen-hero{position:relative;color:white;background:#06314d url('/assets/images/community-river-hero-v2.png') center center/cover no-repeat;isolation:isolate;overflow:hidden}
.citizen-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#032945bd 0%,#03344c55 43%,#043b4920 75%,#042b3a36 100%);z-index:-1}
.citizen-hero-inner{max-width:1380px;padding:34px 30px 32px;min-height:292px;margin:auto;position:relative}
.citizen-hero-copy{position:relative;z-index:2;max-width:590px}
.citizen-location{font-size:11px;letter-spacing:2px;font-weight:600;color:#c0f6fd;display:block;margin-bottom:10px}
.citizen-hero h1{font-size:clamp(30px,2.8vw,43px);letter-spacing:-1px;line-height:1.17;font-weight:740;color:white}
.citizen-hero h1 span{color:#5ee3e8}
.citizen-hero-copy>p{font-size:15px;line-height:1.6;max-width:530px;margin:12px 0 19px;color:#f0f7ff}
.citizen-hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.citizen-primary,.citizen-secondary{border:1px solid #d4e5f4;background:white;color:#083967;border-radius:8px;padding:11px 16px;font-size:14px!important;font-weight:650;min-height:44px;transition:transform .2s,box-shadow .2s}
.citizen-secondary{border-color:#c2dbe8;background:#14334a80;color:white;backdrop-filter:blur(4px)}
.citizen-primary:hover,.citizen-secondary:hover{transform:translateY(-2px);box-shadow:0 5px 20px #052b6740}
.citizen-hero-visual{position:absolute;inset:0 15px 0 48%;pointer-events:none}
.citizen-hero-pin{position:absolute;display:flex;gap:8px;align-items:center;font-size:12px;text-shadow:0 2px 6px #004753;filter:drop-shadow(0 2px 6px #03354c80);color:#c1fbff}
.citizen-hero-pin>svg{width:31px;height:37px;stroke-width:2;fill:#008d9dba;stroke:#d9ffff}
.citizen-hero-pin b{font-weight:650;color:white;letter-spacing:.2px}
.citizen-hero-pin>i{position:absolute;left:2px;top:30px;width:28px;height:13px;border:1px solid #6fecf1;border-radius:50%;box-shadow:0 0 13px #31d1dd;animation:citizen-ripple 3s ease-out infinite}
.hero-pin-0{left:10%;top:24%}.hero-pin-1{left:31%;top:39%}.hero-pin-2{left:51%;top:47%}.hero-pin-3{left:68%;top:56%}.hero-pin-4{left:86%;top:64%}
.citizen-art-note{position:absolute;top:14px;right:30px;color:#dbf7fc;font-size:9px;border:1px solid #cbe8f33a;border-radius:20px;padding:4px 9px;background:#062a4570}
.citizen-hero-meta{position:absolute;right:30px;bottom:16px;display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:9px;background:#002438d9;border:1px solid #82cfe62b;font-size:10px;backdrop-filter:blur(5px);z-index:2}
.citizen-hero-meta>span{display:flex;align-items:center;gap:6px}.citizen-hero-meta>i{height:16px;width:1px;background:#8cc4d75e}
.citizen-hero-meta button{border:0;color:#b7eaf1;background:none;padding:1px;min-width:24px;min-height:24px}
.citizen-content{max-width:1500px;padding:12px 30px 0;margin:auto}
.citizen-alert-strip{display:flex;align-items:center;gap:12px;min-height:50px;padding:10px 16px;border:1px solid color-mix(in srgb,var(--signal) 25%,white);border-radius:10px;background:color-mix(in srgb,var(--signal) 8%,white);margin:0 0 14px}
.citizen-alert-icon{background:var(--signal);color:white;border-radius:50%;display:grid;place-items:center;width:24px;height:24px;flex-shrink:0}
.citizen-alert-icon svg{width:17px}
.citizen-alert-strip>strong{font-size:13px;color:var(--signal);white-space:nowrap;font-weight:700}
.citizen-alert-strip>i{height:20px;width:1px;flex-shrink:0;background:color-mix(in srgb,var(--signal) 35%,white);margin:0 4px}
.citizen-alert-strip>p{font-size:12px;flex:1;color:#35516c;line-height:1.5}
.citizen-alert-strip>button{font-size:12px;border:0;background:none;color:#064b9b;font-weight:650;white-space:nowrap;padding:4px}
.citizen-explore{scroll-margin-top:15px}.citizen-explore-grid{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(310px,1fr);gap:16px;align-items:stretch}
.citizen-map-column{min-width:0}
.citizen-dashboard .citizen-map{border:1px solid var(--line)!important;border-radius:13px!important;background:white!important;box-shadow:0 4px 16px #193b6610;overflow:hidden;padding:0!important;margin:0!important;height:100%}
.citizen-map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 15px;min-height:54px}
.citizen-map-toolbar h2{font-size:16px;display:flex;align-items:center;gap:8px;font-weight:700;line-height:1.35;color:#143b6e}
.citizen-map-toolbar h2>svg{color:#0395b0;background:#e8f8fd;border-radius:50%;padding:3px;width:27px;height:27px}
.citizen-map-controls{display:flex;gap:7px;align-items:center}
.citizen-map-controls select{min-width:157px;border:1px solid #d0dde9;background:#fff;color:#22466d;border-radius:7px;font-size:11px;padding:8px 22px 8px 9px;height:34px}
.citizen-map-controls button{border:1px solid #d0dde9;background:#fff;color:#214e7b;min-width:34px;min-height:34px;border-radius:7px;font-size:10px}
.citizen-map-controls #map-fullscreen[aria-expanded=true]{padding:0 8px}
.citizen-dashboard .citizen-map .river-canvas{position:relative;margin:0 13px;min-width:0;border:0!important;border-radius:9px!important;overflow:hidden}
.citizen-dashboard .citizen-map .geographic-map{height:318px!important;width:100%;background:#eaf4f6}
.citizen-map .map-floating-tools{top:10px;bottom:auto;right:10px;left:auto;gap:5px}
.citizen-map .map-floating-tools button{font-size:10px;min-height:31px;box-shadow:0 1px 7px #28416d15}
.citizen-map .map-compass{top:51px;right:12px}
.citizen-map-tip{position:absolute;bottom:25px;left:9px;z-index:450;background:#ffffffe8;border-radius:5px;padding:4px 7px;color:#506c88;font-size:9px;pointer-events:none}
.citizen-map-legend{display:flex;align-items:center;flex-wrap:wrap;gap:7px 13px;padding:11px 15px 4px;color:#254467}
.citizen-map-legend>span{display:inline-flex;align-items:center;gap:5px;font-size:10px;white-space:nowrap}
.citizen-map-legend>span>i{width:9px;height:9px;border-radius:50%}
.citizen-legend-source{font-size:10px!important}.citizen-legend-source svg{color:#007789}.citizen-legend-divider{height:15px;width:1px;background:#d0dce9}
.citizen-map-caption{padding:4px 15px 10px;font-size:10px!important;color:#7a8da3!important;line-height:1.5}
.citizen-map #map-load-message:empty{display:none}.citizen-map #map-load-message{padding:0 15px 10px;font-size:12px;color:#b47725}
.citizen-map.expanded{position:fixed!important;inset:16px!important;z-index:5000!important;display:flex!important;flex-direction:column!important;max-width:none!important;width:auto!important;height:auto!important}
.citizen-map.expanded>.river-canvas{flex:1;min-height:0}.citizen-map.expanded .geographic-map{height:100%!important}
.citizen-map .map-pin-label strong em{display:none}.citizen-map .map-pin-label{min-width:82px;background:#ffffffee!important;box-shadow:0 3px 12px #12364819!important}
.citizen-map .map-pin-label small{font-size:10px!important}.citizen-map .map-pin-label span{font-size:8px!important}
.citizen-map .gis-beacon .beacon-core{box-shadow:0 0 0 4px #ffffffe0,0 3px 10px #16446638}
.citizen-map .public-gis-pin{position:relative;width:42px;height:42px;border:0;border-radius:0;background:none;box-shadow:none;color:var(--point-color);--beacon-duration:3s}
.citizen-map .public-gis-pin>.beacon-core{position:absolute;inset:0;width:42px;height:42px;background:none;border:0;box-shadow:none;display:block}
.citizen-map .public-gis-pin>.beacon-core svg{width:42px;height:42px;filter:drop-shadow(0 3px 4px #0c546c45)}
.citizen-map .public-gis-pin.measured>.beacon-core svg{transform:translateY(-16px)}
.citizen-map .public-gis-pin>.beacon-status{position:absolute;right:-3px;top:-9px;width:17px;height:17px;border:2px solid white;background:var(--point-color);color:white;border-radius:50%;box-shadow:0 1px 4px #164b7328;display:grid;place-items:center}
.citizen-map .public-gis-pin>.beacon-status svg{width:11px;height:11px}
.citizen-map .public-gis-pin .beacon-wave{position:absolute;left:3px;right:3px;top:13px;bottom:8px;border:1px solid var(--point-color);border-radius:50%;animation:citizen-ripple var(--beacon-duration) ease-out infinite}
.citizen-map .public-gis-pin .wave-second{animation-delay:-1.5s}
.citizen-map .public-gis-pin.selected>.beacon-core svg{filter:drop-shadow(0 0 3px white) drop-shadow(0 0 5px #0076baaa)}
.citizen-map .public-gis-pin .map-pin-label{position:absolute;width:88px;padding:5px 7px;border:1px solid #d7e6ed;border-left:3px solid var(--point-color);border-radius:6px;background:#ffffffed;line-height:1.4;pointer-events:auto;white-space:normal}
.citizen-map .public-gis-pin .map-pin-label>strong{font-size:11px;display:block;color:#174168}
.citizen-map .public-gis-pin .map-pin-label>small{display:block;color:var(--point-color);font-size:9px}
.citizen-map .public-gis-pin .map-pin-label>span{display:block;font-size:8px;color:#6e899d}
.citizen-map .public-gis-pin .map-pin-label:after{display:none}
.citizen-map .public-gis-pin.signal-offline>.beacon-core svg{filter:grayscale(1) opacity(.8)}
.citizen-map .map-popup-readings{grid-template-columns:1fr}.citizen-map .map-popup-readings>div{padding:8px 10px}
.citizen-map .leaflet-interactive[stroke-dasharray="6 7"]{animation:citizen-flow 18s linear infinite}
.citizen-map .gis-point-detail{width:264px;max-height:calc(100% - 16px);top:8px;right:8px;bottom:auto}
.citizen-map .gis-detail-actions .btn{background:#063c7c;border-color:#063c7c;color:white;font-size:11px}
.citizen-map .gis-detail-header{padding:10px 12px}.citizen-map .gis-detail-body{padding:10px 12px}
.citizen-reading-panel{border:1px solid var(--line);border-radius:13px;padding:17px 16px;background:white;box-shadow:0 4px 16px #193b6610;min-width:0}
.citizen-point-heading{display:flex;align-items:start;gap:8px}.citizen-heading-pin{color:#007b8c;margin-top:1px}
.citizen-point-heading h3{font-size:18px;line-height:1.3;font-weight:700;color:#103a6c}.citizen-point-heading p{font-size:11px;color:#8193a9;margin:5px 0 0}
.citizen-reading-badges{display:flex;gap:7px;align-items:center;margin:10px 0 13px;flex-wrap:wrap}
.citizen-source-badge{background:#d7f7f7;color:#047b86;border-radius:20px;font-size:10px;font-weight:650;padding:4px 9px}
.citizen-source-badge.estimated{background:#eaf0fd;color:#3866aa}
.citizen-point-status{display:inline-flex;align-items:center;gap:3px;background:color-mix(in srgb,var(--signal) 13%,white);padding:3px 8px;border-radius:20px;color:var(--signal)}
.citizen-point-status strong{font-size:10px;font-weight:650}
.citizen-lamp{position:relative;display:inline-flex;width:19px;height:19px;align-items:center;justify-content:center;flex-shrink:0;color:var(--signal)}
.citizen-lamp i{width:7px;height:7px;border-radius:50%;background:var(--signal);box-shadow:0 0 0 3px color-mix(in srgb,var(--signal) 15%,transparent)}
.citizen-lamp.is-alert:after{content:"";position:absolute;inset:2px;border:1px solid currentColor;border-radius:50%;animation:citizen-beacon 2.8s ease-out infinite}
.citizen-stale-note{font-size:12px;color:#6f8298!important;border-left:3px solid #8c9baa;padding-left:9px;margin-bottom:12px!important}
.citizen-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.citizen-value{display:flex;align-items:center;gap:9px;min-width:0;padding:13px 10px;border:1px solid #e5edf5;border-radius:10px;background:linear-gradient(120deg,#fff,#fafcfe);min-height:80px}
.citizen-value-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:50%;background:#e7f9fc;color:#069db6;flex-shrink:0}
.citizen-value>div{min-width:0}.citizen-value h4{font-size:11px;font-weight:600;line-height:1.45;color:#244566}
.citizen-value strong{font-size:25px;letter-spacing:-.5px;line-height:1.5;display:block;font-weight:700;color:#133858;white-space:normal}
.citizen-value strong small{display:inline-block;font-size:11px;margin-left:5px;font-weight:400;letter-spacing:0;color:#405f7d;white-space:nowrap}
.citizen-value p{font-size:11px;color:#8293a5;line-height:1.6;margin-top:5px}.citizen-value-note{display:block;font-size:9px;color:#95814c;line-height:1.5;margin-top:3px}
.citizen-measures-note{font-size:11px;color:#7b8fa5!important;margin:11px 0 10px!important}
.citizen-reading-more>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:7px;min-height:38px;padding:8px 12px;background:#008c9d;color:#fff;font-size:12px;font-weight:650;cursor:pointer}
.citizen-reading-more>summary::-webkit-details-marker{display:none}
.citizen-reading-more[open]>summary>svg{transform:rotate(90deg)}
.extra-values{margin:13px 0}.extra-values .citizen-value{align-items:start}.extra-values .citizen-value-icon{width:27px;height:27px}.extra-values .citizen-value strong{font-size:21px}
.citizen-reading-explain p,.citizen-location-note{font-size:11px;line-height:1.7;color:#768ca3;margin-top:8px!important}
.citizen-reading-help{display:flex!important;align-items:center;justify-content:flex-start!important;gap:13px!important;width:100%;border:0;border-radius:9px;background:#e0f5f8;color:#098fa4;padding:13px 12px;text-align:left;margin-top:12px}
.citizen-reading-help strong{display:block;color:#123f69;font-size:11px;font-weight:650}.citizen-reading-help small{display:block;font-size:11px;color:#12629c;margin-top:3px}.citizen-reading-help small svg{margin-left:3px}
.citizen-points{margin:12px 0;border:1px solid #e1eaf3;border-radius:10px;background:#fff;scroll-margin-top:15px}
.citizen-points>summary,.citizen-guide>summary{list-style:none;display:flex;align-items:center;gap:8px;padding:12px 16px;cursor:pointer;color:#244b77;font-size:12px;font-weight:600;min-height:44px}
.citizen-points>summary::-webkit-details-marker,.citizen-guide>summary::-webkit-details-marker{display:none}
.citizen-points>summary>span{font-size:11px;font-weight:400;color:#7a8ea5;margin-left:auto}.citizen-points>summary>svg:last-child{margin-left:7px}.citizen-points[open]>summary>svg:last-child{transform:rotate(180deg)}
.citizen-point-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 15px 13px}
.citizen-point-tools>span{font-size:11px;color:#7d8fa5}
.citizen-search{display:flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid #d9e4f0;border-radius:7px;color:#92a6b9;background:#fbfdff;max-width:240px}
.citizen-search input{min-width:0;width:100%;border:0;background:none;font-size:12px;color:#2a5075}
.citizen-point-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:0 15px 15px}
.citizen-point{justify-content:flex-start!important;min-height:64px;gap:7px!important;background:#f8fbfe;border:1px solid #e1eaf4;border-radius:8px;text-align:left;padding:10px 8px;color:#23466e;flex-wrap:wrap}
.citizen-point[aria-pressed=true]{background:#eaf6fa;border-color:#4eafc5;box-shadow:inset 0 0 0 1px #4eafc5}
.citizen-point>span:nth-child(2){flex:1;min-width:0}.citizen-point strong{font-size:12px;display:block}.citizen-point small{display:block;font-size:9px;color:#8a9aad}.citizen-point>b{font-size:10px;color:var(--signal);font-weight:600}.citizen-point>svg{display:none}
#citizen-search-empty{padding:0 16px 14px;font-size:12px;color:#7b8a9b}
.citizen-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:12px 0}
.citizen-updates,.citizen-info{border:1px solid #e3ebf3;border-radius:12px;background:#fff;padding:15px 17px;scroll-margin-top:15px;box-shadow:0 3px 12px #26416608}
.citizen-bottom-grid h2{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:700;color:#143b6d;margin-bottom:11px}
.citizen-updates h2 svg{color:#ed9b1b}.citizen-info h2 svg{color:#154879}
.citizen-update,.citizen-info-link{display:flex!important;justify-content:flex-start!important;width:100%;gap:12px!important;text-align:left;background:none;border:0;color:#254465;padding:7px 0}
.citizen-update+.citizen-update{border-top:1px solid #f0f4f8}
.citizen-update-time{font-size:13px;font-weight:700;color:#173e70;min-width:47px}
.citizen-update>span:nth-child(2),.citizen-info-link>span:nth-child(2){flex:1;min-width:0}
.citizen-update strong,.citizen-info-link strong{font-size:12px;font-weight:650;display:block;color:#224368;line-height:1.5}
.citizen-update small,.citizen-info-link small{display:block;font-size:11px;color:#7f90a8;line-height:1.7;margin-top:2px}
.citizen-update>svg,.citizen-info-link>svg{color:#1d4b7a;width:16px}
.citizen-info-art{display:grid;place-items:center;width:86px;height:60px;border-radius:6px;background:#173c55 url('/assets/images/community-river-hero-v2.png') right center/cover;color:#d9fbff;flex-shrink:0}
.citizen-update-empty{font-size:12px;color:#7c8ea4!important;padding:8px 0}
.citizen-guide{margin:12px 0 0;border:1px solid #e2ebf3;border-radius:10px;background:#f9fcfe;scroll-margin-top:15px}
.citizen-guide>summary>svg:last-child{margin-left:auto}.citizen-guide[open]>summary>svg:last-child{transform:rotate(180deg)}
.citizen-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;padding:0 16px 17px}
.citizen-guide-grid article{padding:13px;border-radius:9px;background:#edf7fb}.citizen-guide-grid article>span{color:#0095a8;display:block;margin-bottom:8px}
.citizen-guide-grid h3{font-size:13px;line-height:1.5;margin-bottom:7px}.citizen-guide-grid p{font-size:12px;line-height:1.8;color:#71889f}
.citizen-footer{display:flex;align-items:center;gap:12px;padding:13px 0 17px;color:#718ba7;background:none!important;position:static!important;height:auto!important;margin:0!important;font-size:10px}
.citizen-footer b{font-size:10px;font-weight:650}.citizen-footer button{border:0;background:none;color:#758aa3;font-size:10px;padding:5px;margin-left:auto}
.citizen-access{max-width:600px;margin:80px auto;text-align:center;background:white;padding:40px;border:1px solid #dfe8f6;border-radius:22px}.citizen-access>svg{color:#2e70d9;margin-bottom:15px}.citizen-access h1{font-size:28px;margin:0 0 14px}.citizen-access p{color:#73859b;margin:0 0 25px}.citizen-access>div{display:flex;justify-content:center;gap:15px;align-items:center}
@keyframes citizen-ripple{0%{transform:scale(.8);opacity:.9}100%{transform:scale(2);opacity:0}}
@keyframes citizen-beacon{0%{transform:scale(.75);opacity:.7}85%,100%{transform:scale(1.65);opacity:0}}
@keyframes citizen-flow{to{stroke-dashoffset:-360}}
@media(min-width:1550px){.citizen-hero-inner{min-height:304px}.citizen-dashboard .citizen-map .geographic-map{height:335px!important}.citizen-reading-panel{padding:19px}.citizen-value{min-height:86px}.citizen-value strong{font-size:29px}.citizen-map-toolbar h2{font-size:18px}}
@media(max-width:1200px){.citizen-header-inner{gap:13px;padding:0 24px}.citizen-brand strong{font-size:18px}.citizen-brand>span{width:45px}.citizen-header nav{gap:1px}.citizen-header nav button{font-size:11px;padding:23px 8px 19px}.citizen-content{padding:12px 22px 0}.citizen-hero-inner{padding:31px 28px 53px}.citizen-hero-meta{bottom:10px;font-size:9px;right:24px}.citizen-hero-copy{max-width:550px}.citizen-explore-grid{grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr)}.citizen-map-toolbar h2{font-size:14px}.citizen-map-controls select{min-width:120px;max-width:150px}.citizen-value{padding:11px 8px;gap:7px}.citizen-value-icon{width:29px;height:29px}.citizen-value-icon svg{width:20px}.citizen-value strong{font-size:23px}.citizen-reading-panel{padding:15px}.citizen-point-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.citizen-header nav{display:none}.citizen-header-inner{min-height:66px}.citizen-hero-copy{max-width:490px}.citizen-hero-copy>p{font-size:14px}.citizen-hero-visual{left:52%;opacity:.9}.hero-pin-0{top:17%;left:17%}.hero-pin-1{top:33%;left:38%}.hero-pin-2{top:47%;left:57%}.hero-pin-3{top:58%;left:37%}.hero-pin-4{top:71%;left:78%}.citizen-explore-grid{grid-template-columns:minmax(0,1.5fr) minmax(290px,1fr)}.citizen-map-toolbar{flex-wrap:wrap;gap:8px}.citizen-map-toolbar h2{font-size:14px}.citizen-map-toolbar>div{margin-left:auto}.citizen-alert-strip>p{font-size:11px}.citizen-alert-strip>strong{font-size:12px}.citizen-alert-strip>i{margin:0}.citizen-map-legend{gap:7px 10px}.citizen-value{display:block}.citizen-value-icon{margin-bottom:6px}.citizen-value strong{font-size:25px}.citizen-values{gap:9px}.citizen-reading-help{padding:11px 9px}.citizen-info-art{width:60px;height:56px}}
@media(max-width:760px){.citizen-header-inner{padding:0 18px}.citizen-hero-inner{padding:28px 22px 54px;min-height:310px}.citizen-hero-copy{max-width:490px}.citizen-hero h1{font-size:34px}.citizen-hero-visual{opacity:.6;inset:0 10px 0 60%}.citizen-hero-pin b{display:none}.citizen-hero-pin>svg{width:25px}.citizen-art-note{right:18px;top:10px;font-size:8px}.citizen-hero-meta{left:22px;right:auto;bottom:12px;gap:8px;font-size:9px;padding:7px 10px}.citizen-hero-meta svg{width:14px}.citizen-hero-meta>i{height:13px}.citizen-content{padding:12px 16px 0}.citizen-alert-strip{flex-wrap:wrap;gap:8px;padding:11px 13px}.citizen-alert-strip>i{display:none}.citizen-alert-strip>p{flex-basis:100%;order:3;padding-left:32px;font-size:12px}.citizen-alert-strip>button{margin-left:auto;font-size:11px}.citizen-alert-strip>strong{white-space:normal}.citizen-explore-grid{grid-template-columns:1fr;gap:12px}.citizen-map-toolbar{flex-wrap:nowrap}.citizen-map-toolbar h2{font-size:16px}.citizen-dashboard .citizen-map .geographic-map{height:340px!important}.citizen-map .map-pin-label span{display:none}.citizen-reading-panel{padding:16px}.citizen-point-heading h3{font-size:20px}.citizen-reading-badges{margin:10px 0 13px}.citizen-value{display:flex;padding:15px 13px;min-height:88px}.citizen-value-icon{width:36px;height:36px;margin-bottom:0}.citizen-value strong{font-size:27px}.citizen-value h4{font-size:12px}.citizen-value-note{font-size:10px}.citizen-measures-note{font-size:12px}.citizen-reading-help strong,.citizen-reading-help small{font-size:12px}.citizen-bottom-grid{grid-template-columns:1fr;gap:12px}.citizen-bottom-grid h2{font-size:17px}.citizen-update strong,.citizen-info-link strong{font-size:13px}.citizen-update small,.citizen-info-link small{font-size:12px}.citizen-guide-grid{grid-template-columns:1fr}.citizen-guide-grid article{padding:15px}.citizen-point-list{grid-template-columns:repeat(2,minmax(0,1fr))}.citizen-point>svg{display:block}.citizen-point small{font-size:10px}.citizen-point>b{font-size:11px}.citizen-point-tools>span{display:none}.citizen-map .gis-point-detail{max-height:calc(100% - 16px)}.citizen-footer{align-items:start;font-size:9px}.citizen-footer>span{max-width:240px}}
@media(max-width:480px){.citizen-header-inner{padding:0 14px;gap:10px;min-height:62px}.citizen-brand{gap:7px}.citizen-brand>span{width:42px;height:35px}.citizen-brand strong{font-size:16px}.citizen-brand small{font-size:8px}.citizen-staff-label{display:none}.citizen-staff-short{display:inline}.citizen-staff{font-size:10px!important;padding:8px 10px;min-height:34px}.citizen-header-search{min-width:25px;min-height:34px;padding:0}.citizen-header-search svg{width:19px}.citizen-hero{background-position:65% center}.citizen-hero:before{background:linear-gradient(90deg,#052f48f0,#06334bc7 62%,#063d4c72)}.citizen-hero-inner{padding:32px 20px 80px;min-height:345px}.citizen-location{font-size:9px;letter-spacing:1.7px;margin-bottom:13px}.citizen-hero h1{font-size:29px;letter-spacing:-.65px;line-height:1.22}.citizen-hero-copy>p{font-size:13px;margin:14px 0 20px;max-width:330px;line-height:1.65}.citizen-primary,.citizen-secondary{font-size:12px!important;padding:10px 12px;gap:7px!important}.citizen-hero-actions{gap:9px}.citizen-hero-actions svg{width:16px}.citizen-hero-visual{display:none}.citizen-art-note{top:9px;right:15px;font-size:7px}.citizen-hero-meta{left:18px;right:18px;bottom:13px;flex-wrap:wrap;gap:5px 9px;font-size:9px;border-radius:7px;padding:8px 10px}.citizen-hero-meta>i{display:none}.citizen-hero-meta>span:nth-of-type(2){flex-basis:calc(100% - 35px)}.citizen-hero-meta button{margin-left:auto}.citizen-content{padding:10px 12px 0}.citizen-alert-strip{border-radius:8px;margin-bottom:12px;padding:10px;gap:8px}.citizen-alert-strip>strong{font-size:12px}.citizen-alert-strip>p{padding-left:0;font-size:11px}.citizen-alert-strip>button{font-size:10px}.citizen-map-toolbar{padding:12px;align-items:start;flex-direction:column;gap:9px}.citizen-map-toolbar h2{font-size:14px}.citizen-map-toolbar>div{width:100%;margin:0;justify-content:space-between}.citizen-map-controls select{min-width:180px;max-width:240px;font-size:11px;height:35px}.citizen-map-controls button{min-width:35px;min-height:35px}.citizen-dashboard .citizen-map .river-canvas{margin:0 10px}.citizen-dashboard .citizen-map .geographic-map{height:335px!important}.citizen-map .map-floating-tools{right:7px;top:8px;gap:4px}.citizen-map .map-floating-tools button{font-size:9px;min-height:29px;padding:5px 7px}.citizen-map .map-compass{top:46px;right:9px}.citizen-map-legend{padding:12px 12px 5px;gap:7px 10px}.citizen-map-legend>span{font-size:9px}.citizen-map-caption{padding:3px 12px 11px;font-size:10px!important}.citizen-legend-divider{display:none}.citizen-map-tip{font-size:8px;left:7px;bottom:30px}.citizen-map .gis-point-detail{left:7px;right:7px;width:auto;max-width:none}.citizen-map .map-pin-label{min-width:73px}.citizen-map .map-pin-label small{font-size:9px!important}.citizen-reading-panel{padding:15px 12px}.citizen-point-heading h3{font-size:19px}.citizen-point-heading p{font-size:10px}.citizen-value{padding:12px 9px;gap:7px;min-height:82px}.citizen-value-icon{width:29px;height:29px}.citizen-value-icon svg{width:20px}.citizen-value h4{font-size:10px}.citizen-value strong{font-size:24px}.citizen-value strong small{font-size:10px;margin-left:4px}.citizen-value-note{font-size:9px}.citizen-reading-more>summary{font-size:12px;min-height:40px}.citizen-reading-help{padding:12px 9px}.citizen-reading-help strong,.citizen-reading-help small{font-size:11px}.citizen-points>summary{padding:11px 12px;font-size:12px}.citizen-points>summary>span{font-size:9px}.citizen-point-list{grid-template-columns:1fr;padding:0 12px 12px}.citizen-point{flex-wrap:nowrap;min-height:59px;padding:10px;gap:9px!important}.citizen-point>b{margin-left:auto}.citizen-point-tools{padding:0 12px 12px}.citizen-search{max-width:none;width:100%}.citizen-updates,.citizen-info{padding:14px 13px}.citizen-info-art{width:58px;height:55px}.citizen-update-time{font-size:12px;min-width:41px}.citizen-update strong,.citizen-info-link strong{font-size:12px}.citizen-update small,.citizen-info-link small{font-size:11px}.citizen-guide>summary{padding:11px 13px;font-size:12px}.citizen-footer{padding:13px 2px 17px;align-items:start;gap:8px}.citizen-footer>span{max-width:210px}.citizen-footer button{font-size:9px;white-space:nowrap}.citizen-access{margin:35px 15px;padding:28px 20px}.citizen-access h1{font-size:24px}.citizen-access>div{flex-wrap:wrap}}
@media(max-width:360px){.citizen-brand strong{font-size:14px}.citizen-brand>span{width:35px}.citizen-brand small{font-size:7px}.citizen-header-inner{gap:7px}.citizen-hero-inner{padding-left:16px;padding-right:16px}.citizen-hero h1{font-size:26px}.citizen-primary,.citizen-secondary{padding:10px;font-size:11px!important}.citizen-hero-meta{left:15px;right:15px}.citizen-value{display:block}.citizen-value-icon{margin-bottom:7px}.citizen-value h4{font-size:11px}.citizen-reading-help strong,.citizen-reading-help small{font-size:10px}.citizen-footer>span{max-width:190px}}
@media(prefers-reduced-motion:reduce){.citizen-dashboard *,.citizen-dashboard *:before,.citizen-dashboard *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep public labels legible on desktop and compact screens. */
.citizen-header nav button{font-size:13px}
.citizen-point-heading p{font-size:12px;color:#627d99}
.citizen-source-badge,.citizen-point-status strong{font-size:11px}
.citizen-value h4{font-size:13px}.citizen-value strong small{font-size:12px}
.citizen-value-note{font-size:11px;color:#796333}
.citizen-value p,.citizen-reading-explain p,.citizen-location-note,.citizen-measures-note{font-size:12px;color:#617b98}
.citizen-reading-more>summary{font-size:13px;min-height:42px}
.citizen-reading-help strong,.citizen-reading-help small{font-size:12px}
.citizen-update strong,.citizen-info-link strong{font-size:13px}
.citizen-update small,.citizen-info-link small{font-size:12px;color:#617b98}
.citizen-map-legend>span,.citizen-legend-source{font-size:11px!important}
.citizen-map-caption{font-size:11px!important;color:#617b98!important}
.citizen-map .public-gis-pin .map-pin-label>strong{font-size:12px}
.citizen-map .public-gis-pin .map-pin-label>small{font-size:10px!important}
.citizen-map .public-gis-pin .map-pin-label>span{font-size:9px!important}
@media(max-width:480px){.citizen-value{align-items:start;flex-direction:column}.citizen-value-icon{margin-bottom:1px}.citizen-value h4{font-size:12px}.citizen-value strong small{font-size:11px}.citizen-value-note{font-size:10px}.citizen-update strong,.citizen-info-link strong{font-size:12px}}
.citizen-dashboard .citizen-map{display:flex;flex-direction:column}
.citizen-dashboard .citizen-map .river-canvas{flex:1;min-height:318px}
.citizen-dashboard .citizen-map .geographic-map{position:absolute;inset:0;height:100%!important}
@media(min-width:761px){.citizen-reading-expanded{max-height:330px;overflow:auto;scrollbar-width:thin;padding-right:4px}}
@media(min-width:1550px){.citizen-dashboard .citizen-map .river-canvas{min-height:335px}}
@media(max-width:760px){.citizen-dashboard .citizen-map .river-canvas{min-height:340px}}
@media(max-width:480px){.citizen-dashboard .citizen-map .river-canvas{min-height:335px}}
.citizen-map.expanded>.river-canvas{min-height:0!important}
.citizen-data-summary{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:18px;align-items:center;padding:18px 20px;margin-bottom:14px;background:white;border:1px solid #d9e5f2;border-radius:12px;color:#23466e}
.citizen-data-mode strong{font-size:14px}.citizen-data-mode p,.citizen-fetch-time{font-size:12px;line-height:1.7;margin:4px 0}.citizen-data-mode.is-demo strong{color:#865916}.citizen-data-mode.is-demo{border-left:3px solid #d59b31;padding-left:12px}
.citizen-coverage{display:flex;gap:14px;flex-wrap:wrap}.citizen-coverage span{font-size:12px}.citizen-coverage b{display:block;font-size:24px;color:#1a568b}.citizen-fetch-time small{display:block;font-size:11px;color:#617b98}
.citizen-faq{margin-top:18px;padding:20px;background:#fff;border:1px solid #dfe8f2;border-radius:12px}.citizen-faq h2{font-size:18px;margin:0 0 12px;color:#173e70}.citizen-faq details+details{border-top:1px solid #e6edf5}.citizen-faq summary{padding:14px 0;font-size:14px;cursor:pointer;color:#23466e}.citizen-faq p{font-size:13px;line-height:1.8;max-width:900px;color:#546f8b;margin:0 0 16px}
.citizen-dashboard .citizen-footer-expanded{display:grid;grid-template-columns:1fr auto;gap:20px;margin-top:22px!important;padding:24px 4px!important;border-top:1px solid #d4e1ef;color:#526c89;font-size:12px}.citizen-footer-identity>strong{font-size:16px;color:#173e70}.citizen-footer-identity p{margin:6px 0;font-size:12px}.citizen-footer-links{display:flex;gap:12px;align-items:start;flex-wrap:wrap}.citizen-footer-links button{font-size:12px;color:#23558d;min-height:44px;margin:0}.citizen-footer-credits{grid-column:1/-1;display:flex;gap:10px 22px;flex-wrap:wrap;border-top:1px solid #dfe8f2;padding-top:16px;line-height:1.7}.citizen-footer-credits a{color:#245991;text-decoration:none}.citizen-footer-credits a:hover{text-decoration:underline}
.citizen-dashboard :is(button,a,summary,input,select):focus-visible{outline:3px solid #1c74bb;outline-offset:3px}
@media(max-width:1000px){.citizen-data-summary{grid-template-columns:1fr 1fr}.citizen-fetch-time{grid-column:1/-1}}
@media(max-width:600px){.citizen-data-summary{grid-template-columns:1fr;padding:15px;gap:12px}.citizen-fetch-time{grid-column:auto}.citizen-coverage{justify-content:space-between;gap:10px}.citizen-faq{padding:16px}.citizen-dashboard .citizen-footer-expanded{grid-template-columns:1fr;gap:12px}.citizen-footer-credits{grid-column:auto;flex-direction:column}.citizen-footer-links button{padding:8px 0}.citizen-footer-links{gap:18px}.citizen-footer-identity{min-width:0;overflow-wrap:anywhere}}
/* C0–C4 of the two groups of water users under a point's status (A: water into shrimp ponds, B: animals living in the river) */
.citizen-groups{list-style:none;margin:0 0 13px;padding:0;display:grid;gap:7px;min-width:0}
.citizen-group{display:flex;gap:9px;align-items:flex-start;padding:9px 11px;border-radius:10px;background:color-mix(in srgb,var(--signal) 9%,white);border:1px solid color-mix(in srgb,var(--signal) 28%,white);min-width:0}
.citizen-group .citizen-lamp{margin-top:2px}
.citizen-group>span{display:grid;gap:2px;min-width:0}
.citizen-group small{font-size:11px;color:#526c89;font-weight:600}
.citizen-group strong{font-size:14px;color:var(--signal-ink,#173e70)}
.citizen-group em{font-style:normal;font-size:12px;line-height:1.5;color:#33506f}
.citizen-groups.is-paused{display:block;padding:10px 12px;border-radius:10px;background:#f1f4f7;border:1px dashed #9aabbc;color:#3c5068;font-size:12px;line-height:1.6}
.citizen-groups.is-paused p{margin:0}
@media (prefers-reduced-motion:reduce){.citizen-group .citizen-lamp.is-alert:after{animation:none}}
.citizen-pause-note{display:block;margin-top:4px;font-size:12px;opacity:.85}
/* "Nhận tin cảnh báo" sign-up (đợt 2, 23-10-2026) */
.citizen-subscribe{margin:18px 0;padding:18px 20px;border:1px solid #d9e6fb;border-radius:16px;background:#fff;min-width:0}
.citizen-subscribe h2{display:flex;gap:8px;align-items:center;margin:0 0 6px;font-size:19px}
.citizen-subscribe>p{margin:0 0 12px;color:#3c5068}
.citizen-subscribe-open,.sub-submit{font:inherit;font-weight:700;border:0;border-radius:10px;padding:10px 18px;background:#175adb;color:#fff;cursor:pointer}
.sub-submit[disabled]{opacity:.6;cursor:wait}
.sub-form{display:grid;gap:10px;max-width:560px;min-width:0}
.sub-field{display:grid;gap:4px;min-width:0;border:0;padding:0;margin:0}
.sub-field>span,.sub-field>legend{font-weight:600;font-size:14px}
.sub-field input,.sub-field select{min-height:40px;padding:0 10px;border:1px solid #c6d6ee;border-radius:9px;font:inherit;max-width:100%;box-sizing:border-box;width:100%}
.sub-check{display:flex;gap:8px;align-items:flex-start;font-size:14px;margin:3px 0}
.sub-consent{background:#f5f9ff;border-radius:10px;padding:8px 10px}
.sub-notice summary{cursor:pointer;color:#175adb;font-size:14px}.sub-notice div{font-size:13px;color:#3c5068;margin-top:6px}
.sub-note{color:#3c5068;font-size:14px;margin:0}.sub-error{color:#b42318;font-size:14px;margin:0}
.sub-done{background:#e9f7ef;border:1px solid #9fd8b6;border-radius:10px;padding:10px 12px;margin:0}
.sub-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
/* Đăng ký nhận tin, 3 bước (24-10-2026) */
.sub-form{max-width:760px;gap:14px}
.sub-points{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;padding:0;list-style:none;font-size:13px;color:#2f5f3f}
.sub-points li{display:inline-flex;align-items:center;gap:6px}
.sub-points li::before{content:"";width:16px;height:16px;border-radius:50%;background:#e3f5ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311663a' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat}
.sub-step{margin:0;padding:14px 16px 16px;border:1px solid #dbe6f5;border-radius:14px;background:#fff;min-width:0}
.sub-step>legend{display:flex;align-items:center;gap:8px;padding:0 6px;font-weight:800;font-size:15px;color:#133858}
.sub-step>legend b{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#175adb;color:#fff;font-size:13px}
.sub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;min-width:0}
.sub-wide{grid-column:1/-1;min-width:0}
.sub-field input,.sub-field select{width:100%;min-height:44px;font-size:15px;background:#fff}
.sub-field input:focus,.sub-field select:focus{outline:3px solid #b9d2ff;outline-offset:1px;border-color:#175adb}
.sub-field [aria-invalid="true"]{border-color:#c9372c;background:#fff8f7}
.sub-tip{color:#b42318;font-size:12.5px;font-weight:600}
.sub-wide .sub-field{margin-bottom:8px}
.sub-wide fieldset.sub-field{display:flex;flex-wrap:wrap;gap:8px}
.sub-wide fieldset.sub-field>legend{flex:1 1 100%;margin-bottom:2px}
.sub-wide fieldset.sub-field .sub-check{margin:0;padding:8px 12px;border:1px solid #d3e0f3;border-radius:10px;background:#f7faff;align-items:center;cursor:pointer}
.sub-wide fieldset.sub-field .sub-check:has(input:checked){border-color:#175adb;background:#eaf2ff}
.sub-consent{padding:12px 14px;border:1px solid #d3e0f3;line-height:1.5}
.sub-consent input{width:20px;height:20px;flex:0 0 auto;margin-top:2px}
/* consent and notice text justified on both edges, read left to right (24-10-2026) */
.sub-form .sub-consent{text-align:left}
.sub-form .sub-consent span,.sub-form .sub-notice div{text-align:justify;hyphens:auto}
.sub-form .sub-notice summary{text-align:left}
.sub-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.sub-actions small{color:#526c89;font-size:12.5px}
.sub-submit{min-height:46px;padding:0 26px;font-size:15px}
.sub-error:not([hidden]){padding:10px 12px;border-radius:10px;background:#fff3f2;border:1px solid #f3c2bd}
@media (max-width:700px){.sub-grid{grid-template-columns:minmax(0,1fr)}.sub-step{padding:12px}.sub-submit{width:100%}}
/* "Nhận tin cảnh báo" as its own entry of the residents' menu (Quản trị › Người dân nhận tin › menu_entry) */
.citizen-header nav .citizen-nav-cta{align-self:center;min-height:38px!important;margin-left:6px;background:#175adb!important;color:#fff!important;border-radius:999px!important;padding:0 16px!important;font-weight:700}
.citizen-header nav .citizen-nav-cta:after{display:none}
.citizen-sub-quick{display:none;align-items:center;gap:6px;min-height:40px;padding:0 12px;border:0;border-radius:999px;background:#175adb;color:#fff;font:inherit;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer}
@media(max-width:1000px){.citizen-sub-quick{display:inline-flex}}
/* phones: a round bell only, so the brand and the staff button keep their room (24-10-2026) */
@media(max-width:700px){.citizen-sub-quick{flex:none;width:40px;height:40px;min-height:40px;justify-content:center;padding:0;margin-left:auto}.citizen-sub-quick span{display:none}.citizen-sub-quick svg{width:18px;height:18px}}
.citizen-header nav .citizen-nav-cta:hover{background:#0f47b3!important}
.citizen-subscribe{scroll-margin-top:84px}
/* "Điểm theo dõi" as a card like "Cập nhật quan trắc" (24-10-2026): always open, no repeated counts, search only past 8 points */
@layer readability{
  body#royal-blue-app.community-view #citizen-points{margin:12px 0!important;padding:15px 17px!important;border:1px solid #e3ebf3!important;border-radius:12px!important;background:#fff!important;box-shadow:0 3px 12px #26416608!important}
  body#royal-blue-app.community-view #citizen-points>h2{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:2px 9px!important;margin:0 0 11px!important;font-size:16px!important;font-weight:700!important;color:#143b6d!important}
  body#royal-blue-app.community-view #citizen-points>h2 svg{color:#1f6fd1}
  body#royal-blue-app.community-view #citizen-points>h2 small{flex:1 1 100%;margin-left:31px;font-size:12px!important;font-weight:400!important;color:#6b7f96!important}
  body#royal-blue-app.community-view #citizen-points .citizen-point-list{padding:0!important}
  @media(max-width:700px){
    body#royal-blue-app.community-view #citizen-points{padding:14px 13px!important}
    body#royal-blue-app.community-view #citizen-points>h2{font-size:18px!important;color:#173e65!important}
    body#royal-blue-app.community-view #citizen-points>h2 svg{width:23px;height:23px}
    body#royal-blue-app.community-view #citizen-points>h2 small{margin-left:32px}
    body#royal-blue-app.community-view #citizen-points .citizen-point-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:6px!important}
    body#royal-blue-app.community-view #citizen-points .citizen-point{display:grid!important;grid-template-columns:14px minmax(0,1fr) auto 14px!important;grid-template-areas:none!important;align-items:center!important;column-gap:10px!important;min-height:48px!important;height:auto!important;padding:8px 12px!important;border-radius:10px!important}
    body#royal-blue-app.community-view #citizen-points .citizen-point>*{grid-area:auto!important;margin:0!important}
    body#royal-blue-app.community-view #citizen-points .citizen-point strong{font-size:14px!important;line-height:1.2!important}
    body#royal-blue-app.community-view #citizen-points .citizen-point small{font-size:11.5px!important;line-height:1.3!important}
    body#royal-blue-app.community-view #citizen-points .citizen-point>b{justify-self:end!important;padding:3px 8px!important;border-radius:7px!important;background:color-mix(in srgb,var(--signal) 12%,#fff)!important;border:1px solid color-mix(in srgb,var(--signal) 30%,#fff)!important;color:var(--signal-ink,var(--signal))!important;font-size:11.5px!important;font-weight:700!important;white-space:nowrap!important}
    body#royal-blue-app.community-view #citizen-points .citizen-point>svg{display:block!important;width:14px!important;height:14px!important;color:#8a9bb2!important}
    body#royal-blue-app.community-view #citizen-points .citizen-point::after{display:none!important}
  }
}
/* 24-10-2026: wide screens show "Nhận tin cảnh báo" once (in the menu); the small round button is for 1000 px and down */
@layer readability{
  @media(min-width:1001px){body#royal-blue-app .citizen-header .citizen-sub-quick{display:none!important}}
  /* map column as tall as the reading panel beside it: when an alert lengthens the panel, the map grows instead of leaving a gap */
  @media(min-width:1001px){
    body#royal-blue-app.community-view .citizen-explore-grid>.citizen-map-column{display:flex!important;flex-direction:column!important}
    body#royal-blue-app.community-view .citizen-map-column>#river-workspace{flex:1 1 auto!important;display:flex!important;flex-direction:column!important}
    body#royal-blue-app.community-view .citizen-map-column #river-workspace>.map-command-grid{flex:1 1 auto!important;display:flex!important;flex-direction:column!important}
    body#royal-blue-app.community-view .citizen-map-column .map-command-grid>.river-canvas{flex:1 1 auto!important;display:flex!important;flex-direction:column!important}
    body#royal-blue-app.community-view .citizen-map-column .river-canvas>#geographic-map{flex:1 1 auto!important;height:auto!important;min-height:438px!important}
  }
}
/* Phản ánh nguồn nước (24-10-2026): the description box, the message after sending */
.sub-field textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid #c6d6ee;border-radius:9px;font:inherit;font-size:15px;resize:vertical;background:#fff}
.sub-field textarea:focus{outline:3px solid #b9d2ff;outline-offset:1px;border-color:#175adb}
.pa-done p{margin:0 0 6px}.pa-done p:last-child{margin:0}
/* Thao tác nhanh dưới hai form (24-10-2026) */
.cz-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;min-width:0}
.cz-q{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border:1px solid #cfe0fb;border-radius:999px;background:#f3f8ff;color:#174a9c;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.cz-q:hover{background:#e6f0ff}.cz-q svg{flex:none;color:#1f6fd1}
.citizen-subscribe.is-open .cz-quick{display:none}
.cz-dock{display:none}

/* Residents' forms in a modal (24-10-2026): Phản ánh / Nhận tin / Báo hiện tượng open here from their card, the menu, the FAQ or the phone bar.
   The header repeats the card (icon in a gradient ring, title, one line), the body holds the form; phone layout in device-mobile.css. */
@layer readability {
  html.cz-modal-open, html.cz-modal-open body {overflow:hidden !important}
  .cz-modal {position:fixed !important;inset:0 !important;z-index:2000 !important;display:flex !important;align-items:center !important;justify-content:center !important;padding:24px !important;color:#143759;font-family:inherit;line-height:1.5}
  .cz-modal *, .cz-modal *::before, .cz-modal *::after {box-sizing:border-box}
  .cz-modal button, .cz-modal input, .cz-modal select, .cz-modal textarea {font:inherit}
  .cz-modal-backdrop {position:absolute !important;inset:0 !important;background:rgba(8,28,58,.5) !important;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:cz-fade .18s ease both}
  .cz-modal-dialog {position:relative !important;display:flex !important;flex-direction:column !important;width:min(680px,100%) !important;max-height:calc(100dvh - 48px) !important;border-radius:20px !important;background:#fff !important;box-shadow:0 30px 80px -20px rgba(8,28,58,.55),0 0 0 1px rgba(214,226,242,.7) !important;overflow:hidden !important;animation:cz-rise .22s cubic-bezier(.2,.9,.3,1.1) both}
  .cz-modal-head {flex:none !important;display:grid !important;grid-template-columns:52px minmax(0,1fr) 40px !important;align-items:start !important;gap:14px !important;padding:20px 20px 16px 24px !important;border-bottom:1px solid #e8eef7 !important;background:linear-gradient(160deg,#f2f7ff,#fff 70%) !important}
  .cz-modal[data-form="complaint"] .cz-modal-head {background:radial-gradient(90% 140% at 0% 0%,#fff1e0 0%,#fff8ef 45%,#fff 80%) !important}
  .cz-modal[data-form="report"] .cz-modal-head {background:radial-gradient(90% 140% at 0% 0%,#ffe9e6 0%,#fff6f4 45%,#fff 80%) !important}
  .cz-modal-icon {display:grid !important;place-items:center !important;width:48px !important;height:48px !important;margin-top:2px !important;border-radius:50% !important;background:linear-gradient(145deg,#3b8bff,#0862ff 60%,#0a4fd1) !important;color:#fff !important;box-shadow:0 0 0 6px rgba(8,98,255,.09),0 10px 18px -10px rgba(8,98,255,.8) !important}
  .cz-modal[data-form="complaint"] .cz-modal-icon {background:linear-gradient(145deg,#ffad42,#f08a12 58%,#d97706) !important;box-shadow:0 0 0 6px rgba(217,119,6,.1),0 10px 18px -10px rgba(217,119,6,.75) !important}
  .cz-modal[data-form="report"] .cz-modal-icon {background:linear-gradient(145deg,#ff7a6b,#e5412f 58%,#c22b1b) !important;box-shadow:0 0 0 6px rgba(229,65,47,.1),0 10px 18px -10px rgba(229,65,47,.75) !important}
  .cz-modal-icon svg {width:22px !important;height:22px !important;color:#fff !important;stroke:#fff !important}
  .cz-modal-head h2 {margin:2px 0 4px !important;font-size:19px !important;font-weight:800 !important;line-height:1.3 !important;letter-spacing:-.2px !important;color:#0f2d5e !important}
  .cz-modal-head p {margin:0 !important;font-size:14px !important;line-height:1.55 !important;color:#46607f !important}
  .cz-modal-close {display:grid !important;place-items:center !important;width:40px !important;height:40px !important;padding:0 !important;border:1px solid #d6e3f7 !important;border-radius:50% !important;background:#fff !important;color:#36597f !important;cursor:pointer !important;transition:background-color .15s ease,border-color .15s ease !important}
  .cz-modal-close:hover {background:#eef4ff !important;border-color:#9fc0f5 !important;color:#175adb !important}
  .cz-modal-close:focus-visible {outline:3px solid #aac8ff !important;outline-offset:2px !important}
  .cz-modal-close svg {width:18px !important;height:18px !important}
  .cz-modal-body {flex:1 1 auto !important;min-height:0 !important;overflow:auto !important;overscroll-behavior:contain !important;padding:18px 24px 24px !important;text-align:left !important}
  .cz-modal-body .sub-form {max-width:none !important;margin:0 !important}
  .cz-modal-body .sub-submit {min-height:48px !important;border-radius:999px !important;padding:0 28px !important;background:linear-gradient(145deg,#3b8bff,#0862ff 55%,#0a4fd1) !important;box-shadow:0 2px 4px rgba(8,98,255,.25),0 12px 20px -12px rgba(8,98,255,.85) !important}
  .cz-modal[data-form="complaint"] .cz-modal-body .sub-submit {background:linear-gradient(145deg,#ff9f2e,#f08a12 55%,#d97706) !important;box-shadow:0 2px 4px rgba(217,119,6,.3),0 12px 20px -12px rgba(217,119,6,.85) !important}
  .cz-modal-body .sub-note:only-child {margin:8px 0 !important;color:#46607f !important}
  @keyframes cz-fade {from {opacity:0}}
  @keyframes cz-rise {from {opacity:0;transform:translateY(14px) scale(.98)}}
  @media (prefers-reduced-motion:reduce) {.cz-modal-backdrop, .cz-modal-dialog {animation:none !important}}
}
/* Ô ảnh của form Phản ánh (25-10-2026, image-picker.js): ảnh xem trước là ô vuông cố định 88px (đặt rộng/cao thẳng, không dựa aspect-ratio),
   cỡ sau khi nén ghi trên chân ảnh, tổng dung lượng và lỗi ở dòng ghi chú; nút Chụp / Chọn ảnh bên dưới */
.pa-photos{display:grid;gap:10px;min-width:0;padding:12px;border:1.5px dashed #c6d6ee;border-radius:14px;background:#f8fbff;transition:border-color .15s,background .15s}
.pa-photos.is-drop{border-color:#175adb;background:#eef5ff}
.pa-photo-grid{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.pa-photo-grid:empty{display:none}
.pa-photo{position:relative;flex:0 0 88px;width:88px;height:88px;overflow:hidden;border:1px solid #d6e4fa;border-radius:12px;background:#eef4fd;box-shadow:0 4px 10px -8px rgba(15,45,94,.5)}
.pa-photo img,.pa-photo-wait{display:block;width:88px !important;height:88px !important;max-width:none;margin:0;object-fit:cover;object-position:center}
.pa-photo-wait{display:grid;place-items:center;font-size:22px;font-weight:800;color:#b42318}
.pa-photo.is-busy .pa-photo-wait{background:linear-gradient(90deg,#eef4fd 25%,#dfeafb 50%,#eef4fd 75%) 0 0/200% 100%;animation:pa-shimmer 1.2s linear infinite}
@keyframes pa-shimmer{to{background-position:-200% 0}}
.pa-photo-size{position:absolute;left:0;right:0;bottom:0;padding:3px 4px;background:linear-gradient(0deg,rgba(15,45,94,.82),rgba(15,45,94,.55));color:#fff;font-size:10.5px;line-height:1.3;font-weight:700;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pa-photo.is-busy .pa-photo-size{background:rgba(23,90,219,.75)}
.pa-photo.is-error{border-color:#f1b4ac;background:#fff3f2}.pa-photo.is-error .pa-photo-wait{background:#fff3f2}.pa-photo.is-error .pa-photo-size{background:#b42318}
.pa-photo-del{position:absolute;top:4px;right:4px;display:grid;place-items:center;width:26px;height:26px;min-height:0;padding:0;border:0;border-radius:50%;background:rgba(15,45,94,.75);color:#fff;cursor:pointer}
.pa-photo-del svg{width:14px;height:14px}
.pa-photo-del:focus-visible{outline:2px solid #fff;outline-offset:-4px}
.pa-photo-add{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}
.pa-photo-add[hidden]{display:none}
.pa-photo-btn{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:46px;padding:0 12px;border:1px solid #cfe0fb;border-radius:12px;background:#fff;color:#174a9c;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.pa-photo-btn span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.pa-photo-btn:hover{background:#f1f6ff}
.pa-photo-btn svg{flex:none;color:#1f6fd1}
.pa-photo-note{overflow-wrap:anywhere}
.pa-photo-note.is-error{color:#b42318 !important;font-weight:600}
@media (hover:hover) and (pointer:fine){.pa-photo-add{grid-template-columns:minmax(0,1fr)}.pa-photo-cam{display:none}}
@media (max-width:340px){.pa-photo{flex-basis:76px;width:76px;height:76px}.pa-photo img,.pa-photo-wait{width:76px !important;height:76px !important}.pa-photo-btn{font-size:13px;padding:0 8px}}
@media (prefers-reduced-motion:reduce){.pa-photo.is-busy .pa-photo-wait{animation:none}}
/* Cảnh báo dịch bệnh thủy sản (26-10-2026): strip at the top, section with the bulletins (level colour from Quản trị in --db) */
.citizen-disease-strip{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:4px 12px;min-height:50px;padding:10px 16px;border:1px solid color-mix(in srgb,var(--db) 35%,white);border-left:5px solid var(--db);border-radius:10px;background:color-mix(in srgb,var(--db) 9%,white);margin:0 0 14px}
.citizen-disease-strip .citizen-alert-icon{color:var(--db);display:inline-flex}
.citizen-disease-strip>strong{font-size:14px;color:color-mix(in srgb,var(--db) 70%,black);font-weight:800}
.citizen-disease-strip>strong{grid-column:2}.citizen-disease-strip>p{grid-column:2;min-width:0;margin:0;font-size:13px;color:#33475b}.citizen-disease-strip .citizen-alert-icon{grid-row:1 / span 2}.citizen-disease-strip>button{grid-column:3;grid-row:1 / span 2}
.citizen-disease-strip>button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border:0;border-radius:8px;background:var(--db);color:#fff;font-weight:700;cursor:pointer}
.citizen-disease{margin:0 0 18px;padding:18px;border:1px solid #dfe8f2;border-radius:14px;background:#fff;scroll-margin-top:calc(var(--cz-head-h,74px) + 12px)}
.citizen-disease>h2{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:20px;color:#173e49}
.citizen-disease-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(440px,100%),1fr));gap:12px}
.citizen-disease-item{min-width:0;padding:14px 16px;border:1px solid color-mix(in srgb,var(--db) 30%,white);border-top:5px solid var(--db);border-radius:12px;background:color-mix(in srgb,var(--db) 4%,white)}
.citizen-disease-item.is-ended{--db:#7b8a99;opacity:.92}
.citizen-disease-item header{display:grid;gap:4px;margin-bottom:6px}
.citizen-disease-level{justify-self:start;padding:3px 10px;border-radius:999px;background:var(--db);color:#fff;font-size:12px;font-weight:800;text-shadow:0 1px 1px rgba(0,0,0,.25)}
.citizen-disease-item h3{margin:0;font-size:17px;color:#173e49;overflow-wrap:anywhere}
.citizen-disease-item small,.citizen-disease-time{color:#4a5d70;font-size:13px}
.citizen-disease-time{margin:0 0 6px;font-weight:700}
.citizen-disease-item p{margin:0 0 8px;white-space:pre-line;overflow-wrap:anywhere;line-height:1.5}
.citizen-disease-advice{margin:8px 0;padding:10px 12px;border-radius:10px;background:#fff;border:1px dashed color-mix(in srgb,var(--db) 45%,white)}
.citizen-disease-advice b{display:block;margin-bottom:4px;color:color-mix(in srgb,var(--db) 70%,black)}
.citizen-disease-advice p{margin:0}
.citizen-disease-source{font-size:13px;color:#4a5d70}
.citizen-disease-source a{display:inline-flex;align-items:center;gap:4px;font-weight:700;overflow-wrap:anywhere}
.citizen-disease-empty{margin:0;color:#4a5d70}
.citizen-disease-note{display:flex;gap:6px;align-items:flex-start;margin:12px 0 0;font-size:12.5px;color:#5f7280}
@media (max-width:700px){.citizen-disease{padding:14px 12px}.citizen-disease>h2{font-size:18px}.citizen-disease-strip{grid-template-columns:auto minmax(0,1fr)}.citizen-disease-strip .citizen-alert-icon{grid-row:auto}.citizen-disease-strip>p{grid-column:1 / -1}.citizen-disease-strip>button{grid-column:1 / -1;grid-row:auto;justify-content:center}}
/* Advice in two lines (26-10-2026): what to do in bold, then each reading needing handling as a tag in its level colour (--tag) */
.citizen-alert-strip .cz-action,.citizen-group .cz-action{display:block;font-weight:800;color:var(--signal-ink,#7a1020);line-height:1.4}
.cz-advice{display:block;font-style:normal}
.cz-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px}
.cz-tags>small{font-size:12px;color:#4a5d70;font-weight:600}
.cz-tag{display:inline-flex;align-items:center;gap:5px;padding:3px 9px 3px 3px;border:1px solid color-mix(in srgb,var(--tag) 45%,white);border-radius:999px;background:color-mix(in srgb,var(--tag) 10%,white);color:#1d2a36;font-size:12.5px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.cz-tag>b{padding:1px 7px;border-radius:999px;background:var(--tag);color:#fff;font-size:11px;font-weight:800;text-shadow:0 1px 1px rgba(0,0,0,.25)}
.cz-tag[data-level="1"]>b{color:#3d2f00;text-shadow:none}
/* Header button "Phản ánh" (26-10-2026): same shape as "Nhận Tin", in the orange of the complaint form, with a document icon */
@layer readability {
  :root body#royal-blue-app.community-view .citizen-header nav .citizen-nav-cta.is-complaint {margin-left:4px !important;background:linear-gradient(145deg,#ff9f2e,#f08a12 55%,#d97706) !important;box-shadow:0 2px 4px rgba(217,119,6,.25),0 10px 22px -10px rgba(217,119,6,.55) !important}
  :root body#royal-blue-app.community-view .citizen-header nav .citizen-nav-cta.is-complaint::before {background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E") center/contain no-repeat !important}
}
/* 701-1279 px: with "Phản ánh" (and "Dịch bệnh" when shown) the header kept one line by tightening the buttons */
@layer readability {
  @media (min-width: 701px) and (max-width: 1279px) {
    :root body#royal-blue-app.community-view .citizen-header-inner {gap:8px !important;padding-left:14px !important;padding-right:14px !important}
    :root body#royal-blue-app.community-view .citizen-header nav button:not(.citizen-nav-cta) {padding:0 7px !important;font-size:13px !important}
    :root body#royal-blue-app.community-view .citizen-header nav .citizen-nav-cta {gap:6px !important;margin-left:3px !important;padding:0 12px 0 10px !important;font-size:13px !important}
    :root body#royal-blue-app.community-view .citizen-header nav .citizen-nav-cta::before {width:15px !important;height:15px !important}
    :root body#royal-blue-app.community-view .citizen-staff {padding:0 12px 0 10px !important}
  }
  @media (min-width: 701px) and (max-width: 1100px) {
    :root body#royal-blue-app.community-view .citizen-brand small {display:none !important}
  }
}
@layer readability {
  :root body#royal-blue-app.community-view .citizen-header .citizen-sub-quick.is-complaint {background:linear-gradient(145deg,#ff9f2e,#f08a12 55%,#d97706) !important;color:#fff !important}
}
/* Header "Nhận tin" / "Phản ánh" in the same colours as the two buttons of the bottom bar (.cz-dock-ic), 27-10-2026 */
@layer readability {
  :root body#royal-blue-app.community-view .citizen-header :is(nav .citizen-nav-cta,.citizen-sub-quick):not(.is-complaint) {background:linear-gradient(145deg,#4d97ff,#0862ff 60%,#0a54d8) !important;color:#fff !important;box-shadow:0 0 0 4px rgba(26,95,224,.10),0 6px 12px -6px rgba(8,98,255,.8) !important}
  :root body#royal-blue-app.community-view .citizen-header :is(nav .citizen-nav-cta,.citizen-sub-quick).is-complaint {background:linear-gradient(145deg,#ffad42,#f08a12 58%,#d97706) !important;color:#fff !important;box-shadow:0 0 0 4px rgba(217,119,6,.12),0 6px 12px -6px rgba(217,119,6,.8) !important}
}

/* ===== Thông báo nổi cảnh báo dịch bệnh (27-10-2026, disease-float.js): residents and staff, a card in a corner; folded to a coloured badge ===== */
@layer readability {
body#royal-blue-app .dz-float {--db-deep:color-mix(in srgb,var(--db) 72%,#3b0a0a);position:fixed !important;right:24px;bottom:24px;z-index:95 !important;width:min(372px,calc(100vw - 32px));display:grid;gap:10px;padding:0 0 16px !important;overflow:hidden;border:1px solid color-mix(in srgb,var(--db) 40%,#dbe6f5) !important;border-radius:18px !important;background:#fff !important;box-shadow:0 22px 56px rgba(7,24,41,.26),0 0 0 4px color-mix(in srgb,var(--db) 14%,transparent) !important;color:#12335d;font-size:14px;line-height:1.45;animation:dz-float-in .28s ease-out}
body#royal-blue-app .dz-float.is-left {right:auto;left:24px}
body#royal-blue-app .dz-float:not(.is-collapsed) > :not(header) {margin-left:16px !important;margin-right:16px !important}
body#royal-blue-app .dz-float header {display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 12px 12px 14px;background:linear-gradient(135deg,var(--db-deep),var(--db));color:#fff}
body#royal-blue-app .dz-float-icon {display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:rgba(255,255,255,.2);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}
body#royal-blue-app .dz-float header strong {font-size:14.5px;font-weight:800;color:#fff;min-width:0;letter-spacing:.01em}
body#royal-blue-app .dz-float-fold {display:grid;place-items:center;width:34px;height:34px;padding:0 !important;border:1px solid rgba(255,255,255,.45) !important;border-radius:10px !important;background:rgba(255,255,255,.14) !important;color:#fff !important;cursor:pointer}
body#royal-blue-app .dz-float-fold:hover {background:rgba(255,255,255,.28) !important}
body#royal-blue-app .dz-float p {margin-top:0 !important;margin-bottom:0 !important}
body#royal-blue-app .dz-float-main {display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font-size:16px}
body#royal-blue-app .dz-float-main b {color:#12335d}
body#royal-blue-app .dz-float-level {padding:2px 10px;border-radius:999px;background:var(--db-deep);color:#fff;font-size:12.5px;font-weight:800}
body#royal-blue-app .dz-float-meta {color:#4a6283;font-size:13px}
body#royal-blue-app .dz-float-more {color:#35517a;font-size:13px;font-weight:700}
body#royal-blue-app .dz-float-go {justify-self:start;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 16px !important;border:0 !important;border-radius:11px !important;background:linear-gradient(135deg,var(--db-deep),var(--db)) !important;color:#fff !important;font-weight:800;font-size:14px;text-decoration:none !important;cursor:pointer;box-shadow:0 8px 18px color-mix(in srgb,var(--db) 35%,transparent)}
body#royal-blue-app .dz-float-go:hover {filter:brightness(1.06)}
/* folded: a badge with the disease and the level, a soft pulse around the icon */
body#royal-blue-app .dz-float.is-collapsed {width:auto;padding:0 !important;overflow:visible;border:0 !important;background:transparent !important;box-shadow:none !important}
body#royal-blue-app .dz-float-pill {position:relative;display:inline-flex;align-items:center;gap:10px;max-width:min(330px,calc(100vw - 24px));min-height:54px;padding:6px 14px 6px 6px !important;border:1px solid rgba(255,255,255,.35) !important;border-radius:999px !important;background:linear-gradient(135deg,var(--db-deep),var(--db)) !important;color:#fff !important;text-align:left;box-shadow:0 14px 34px rgba(7,24,41,.3),0 0 0 3px color-mix(in srgb,var(--db) 22%,transparent) !important;cursor:pointer;transition:transform .15s,box-shadow .15s}
body#royal-blue-app .dz-float-pill:hover {transform:translateY(-2px);box-shadow:0 18px 40px rgba(7,24,41,.34),0 0 0 4px color-mix(in srgb,var(--db) 30%,transparent) !important}
body#royal-blue-app .dz-pill-ic {position:relative;display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;border-radius:999px;background:#fff;color:var(--db-deep)}
body#royal-blue-app .dz-pill-ic::after {content:"";position:absolute;inset:-4px;border-radius:999px;border:2px solid #fff;opacity:.85;animation:dz-pulse 1.8s ease-out infinite}
body#royal-blue-app .dz-pill-tx {display:grid;min-width:0;line-height:1.25}
body#royal-blue-app .dz-pill-tx b {font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;opacity:.92}
body#royal-blue-app .dz-pill-tx small {overflow:hidden;font-size:14px;font-weight:700;white-space:nowrap;text-overflow:ellipsis}
body#royal-blue-app .dz-pill-n {position:absolute;top:-6px;right:-4px;display:grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#fff;color:var(--db-deep);font-size:12.5px;font-weight:900;box-shadow:0 0 0 2px var(--db)}
/* "Thu nhỏ thêm" (27-10-2026): a small handle on the badge; one tap leaves only the round button with the sign and the count */
body#royal-blue-app .dz-float.is-collapsed:not(.is-dot) {display:flex;align-items:center;gap:6px}
body#royal-blue-app .dz-float.is-left.is-collapsed:not(.is-dot) {flex-direction:row-reverse}
body#royal-blue-app .dz-float-mini {order:-1;display:grid;place-items:center;flex:0 0 auto;width:30px;height:30px;padding:0 !important;border:1px solid color-mix(in srgb,var(--db) 35%,#dbe6f5) !important;border-radius:999px !important;background:#fff !important;color:var(--db-deep) !important;box-shadow:0 6px 16px rgba(7,24,41,.2) !important;cursor:pointer}
body#royal-blue-app .dz-float.is-left .dz-float-mini {order:1}
body#royal-blue-app .dz-float-mini svg {transform:rotate(-45deg)}
body#royal-blue-app .dz-float.is-left .dz-float-mini svg {transform:rotate(45deg)}
body#royal-blue-app .dz-float-mini:hover {background:#f5f8fd !important}
body#royal-blue-app .dz-float-dot {position:relative;display:grid;place-items:center;width:54px;height:54px;padding:0 !important;border:2px solid rgba(255,255,255,.7) !important;border-radius:999px !important;background:linear-gradient(135deg,var(--db-deep),var(--db)) !important;box-shadow:0 12px 28px rgba(7,24,41,.3),0 0 0 3px color-mix(in srgb,var(--db) 25%,transparent) !important;cursor:pointer}
body#royal-blue-app .dz-float-dot .dz-pill-ic {width:40px;height:40px}
body#royal-blue-app .dz-float-dot:hover {transform:translateY(-2px)}
@keyframes dz-pulse {0% {transform:scale(.9);opacity:.85} 80%,100% {transform:scale(1.35);opacity:0}}
@keyframes dz-float-in {from {opacity:0;transform:translateY(12px)} to {opacity:1;transform:none}}
/* phone (27-10-2026): a smaller card and badge, close to the bottom edge; up above the bar only while it is there (staff bottom bar always,
   the residents' "Phản ánh / Nhận tin" bar while citizen-dock.js shows it) */
@media (max-width:700px) {
    body#royal-blue-app .dz-float,body#royal-blue-app .dz-float.is-left {left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));width:auto;gap:8px;padding-bottom:12px !important;border-radius:16px !important;font-size:13px;transition:bottom .2s ease}
    body#royal-blue-app:not(.community-view) .dz-float,body#royal-blue-app.community-view:has(.cz-dock.is-shown) .dz-float {bottom:calc(84px + env(safe-area-inset-bottom,0px))}
    body#royal-blue-app .dz-float:not(.is-collapsed) > :not(header) {margin-left:12px !important;margin-right:12px !important}
    body#royal-blue-app .dz-float header {gap:8px;padding:9px 9px 9px 11px}
    body#royal-blue-app .dz-float-icon {width:28px;height:28px;border-radius:9px}
    body#royal-blue-app .dz-float header strong {font-size:13.5px}
    body#royal-blue-app .dz-float-fold {width:30px;height:30px}
    body#royal-blue-app .dz-float-main {font-size:14.5px}
    body#royal-blue-app .dz-float-meta,body#royal-blue-app .dz-float-more {font-size:12.5px}
    body#royal-blue-app .dz-float-go {min-height:36px;padding:0 13px !important;font-size:13.5px}
    body#royal-blue-app .dz-float.is-collapsed {left:auto;right:10px}
    body#royal-blue-app .dz-float.is-collapsed.is-left {left:10px;right:auto}
    body#royal-blue-app .dz-float-pill {gap:7px;max-width:min(210px,calc(100vw - 20px));min-height:40px;padding:3px 11px 3px 3px !important}
    body#royal-blue-app .dz-pill-ic {width:34px;height:34px}
    body#royal-blue-app .dz-pill-ic svg {width:16px;height:16px}
    body#royal-blue-app .dz-pill-tx b {font-size:10px}
    body#royal-blue-app .dz-pill-tx small {font-size:12.5px}
    body#royal-blue-app .dz-pill-n {min-width:20px;height:20px;font-size:11px}
    body#royal-blue-app .dz-float-dot {width:46px;height:46px}
    body#royal-blue-app .dz-float-dot .dz-pill-ic {width:34px;height:34px}
    body#royal-blue-app .dz-float-mini {width:28px;height:28px}
}
/* 701–1000 px: the staff bottom bar is shown there too (Quản trị › Menu), so the card sits above it */
@media (min-width:701px) and (max-width:1000px) {body#royal-blue-app:not(.community-view) .dz-float {bottom:calc(84px + env(safe-area-inset-bottom,0px))}}
@media (prefers-reduced-motion:reduce) {body#royal-blue-app .dz-float,body#royal-blue-app .dz-pill-ic::after {animation:none}}
@media print {body#royal-blue-app .dz-float {display:none !important}}
}

/* ==== coastal-presentation.css ==== */
/* Community coastal presentation. Coordinates remain in the shared GIS layer. */
.citizen-dashboard{--line:#d5e2ed;--navy:#0b305b;color:#133654}
.citizen-header-inner{min-height:76px}
.citizen-brand strong{font-size:22px}.citizen-brand small{font-size:12px;color:#496683}
.citizen-header nav button{font-size:14px;min-height:74px;font-weight:550}
.citizen-staff{font-size:13px!important;min-height:40px;border-color:#315d8c;font-weight:650}
.citizen-hero.coastal-hero{background:#072f49;isolation:isolate;overflow:hidden}
.coastal-hero:before{background:radial-gradient(ellipse at 15% 0%,#11687c77,transparent 65%)}
.coastal-hero-layout{display:grid;grid-template-columns:minmax(0,.87fr) minmax(0,1.4fr);max-width:1500px;margin:auto;align-items:center}
.coastal-copy{padding:30px 20px 24px 40px;max-width:none}
.coastal-copy .citizen-location{font-size:11px;letter-spacing:1.6px;font-weight:700;color:#a8efff;margin-bottom:17px}
.coastal-copy h1{font-size:clamp(30px,2.55vw,40px);letter-spacing:-.9px;line-height:1.18;font-weight:750}
.coastal-copy>p{font-size:16px;line-height:1.65;max-width:430px;color:#e5f4ff;margin:17px 0 21px}
.coastal-copy .citizen-hero-actions{gap:10px}
.coastal-copy .citizen-primary,.coastal-copy .citizen-secondary{min-height:46px;font-size:14px!important;padding:11px 15px}
.coastal-source-summary{display:flex;gap:20px;flex-wrap:wrap;margin-top:24px;font-size:13px;color:#d2e8f5}
.coastal-source-summary>span{display:flex;align-items:center;gap:7px}
.coastal-source-summary b{font-size:17px;color:white}
.coastal-source-summary svg{color:#66dfec}
.coastal-diamond{width:15px;height:15px;border:2px solid #70e2ec;border-radius:50%;margin:0 3px;box-shadow:inset 0 0 0 3px #063b54}
.coastal-gps-note{display:flex;align-items:center;gap:9px;margin-top:18px;font-size:13px}
.coastal-gps-note>svg{color:#ff6572}.coastal-gps-note b{display:block;color:#fff;font-weight:600}
.coastal-gps-note small{display:block;margin-top:3px;color:#b9d5e6;font-size:12px}
.coastal-scene{position:relative;min-width:0;margin:17px 24px 17px 0;border:1px solid #56b4be66;border-radius:15px;background:#07445b;overflow:hidden;box-shadow:0 14px 38px #001c2d66}
.coastal-scene-heading{position:absolute;top:0;left:0;right:0;padding:11px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:4;background:linear-gradient(#002f4be8,#002f4b22);color:#e3fcff;font-size:11px;letter-spacing:1.1px;font-weight:650;pointer-events:none}
.coastal-scene-heading>span:first-child{display:flex;align-items:center;gap:7px}
.coastal-scene-heading>span:last-child{letter-spacing:0;padding:4px 8px;border-radius:6px;background:#003149b3;font-size:12px;white-space:nowrap}
.coastal-frame{position:relative;width:100%;aspect-ratio:1000/520;min-width:0;overflow:hidden}
.coastal-frame>img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:fill;filter:saturate(.92) contrast(1.05) brightness(.81)}
.coastal-geography{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.coastal-river-outline{fill:#18cbe01a;stroke:#a7f1f4;stroke-width:1.5;stroke-opacity:.75;stroke-linejoin:round;fill-rule:evenodd}
.coastal-coast-outline{fill:none;stroke:#ffedbc;stroke-width:2;stroke-opacity:.8}
.coastal-sea-label{display:none!important;position:absolute;top:62%;left:73%;font-size:14px;letter-spacing:4px;color:#d4f4ff;text-shadow:0 2px 8px #073757;transform:rotate(-22deg);pointer-events:none}
.coastal-village-label{position:absolute;top:58%;left:67%;font-size:10px;letter-spacing:1.7px;font-weight:700;color:#fff7da;text-shadow:0 2px 6px #042732;pointer-events:none;transform:rotate(42deg)}
.coastal-frame .coastal-point{position:absolute;left:var(--geo-x);top:var(--geo-y);width:44px;height:44px;margin:-22px 0 0 -22px;padding:0;display:block;border:0;background:none;overflow:visible;z-index:3;isolation:isolate}
.coastal-point-icon{position:absolute;width:42px;height:42px;left:1px;top:1px;color:#009fb5;filter:drop-shadow(0 3px 3px #002a48b3);transition:filter .2s,transform .2s;pointer-events:auto}
.coastal-point-icon svg{width:42px;height:42px}
.gps-point .coastal-point-icon{top:-15px;color:#fa3c51}
.coastal-point-ring{position:absolute;left:2px;top:15px;width:40px;height:15px;border:2px solid #a9f4ff;border-radius:50%;background:#29c7da45;box-shadow:0 0 15px #16deef99;pointer-events:none}
.gps-point .coastal-point-ring{border-color:#ffadb4;background:#ff335a44;box-shadow:0 0 19px #ff5b7888}
.coastal-point.has-alert .coastal-point-ring{animation:citizen-ripple 3s ease-out infinite}
.coastal-point-label{position:absolute;left:44px;top:4px;padding:5px 8px;min-width:90px;background:#043a53ed;border:1px solid #81c5d77a;border-radius:11px;color:#fff;text-align:left;white-space:nowrap;box-shadow:0 3px 9px #00273777;pointer-events:auto}
.gps-point .coastal-point-label{top:-15px;border-color:#ff9ca696;background:#4a243ce6}
.coastal-point.label-left .coastal-point-label{left:auto;right:44px}
.coastal-point.label-top .coastal-point-label,.coastal-point.label-bottom .coastal-point-label{left:50%;right:auto;transform:translateX(-50%)}
.coastal-point.label-top .coastal-point-label{top:auto;bottom:46px}
.coastal-point.label-bottom .coastal-point-label{top:46px}
.coastal-point-label strong{display:flex;align-items:center;gap:6px;font-size:14px;line-height:1.4}
.coastal-point-label em{font-size:9px;font-style:normal;padding:1px 4px;border-radius:3px;background:#fa4054;color:white}
.coastal-point-label small{display:block;font-size:10px;color:#d1eefa;line-height:1.5}
.coastal-point:hover .coastal-point-icon{filter:drop-shadow(0 0 7px #ffffffaa)}
.coastal-point:focus-visible{outline:0!important}.coastal-point:focus-visible .coastal-point-label{outline:3px solid #fff;outline-offset:2px}
.coastal-scene-footer{padding:7px 12px;display:flex;align-items:center;gap:9px;justify-content:space-between;font-size:10px;color:#d1e7f1;background:#06374e}
.coastal-scene-footer a{color:#d1e7f1;white-space:nowrap;text-decoration:none}
.coastal-live-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:8px 32px;background:#04253ac7;border-top:1px solid #4a97ad38;color:#c5e7f5;font-size:12px}
.coastal-live-bar>span{display:flex;gap:8px;align-items:center}
.coastal-live-bar>span>i{width:7px;height:7px;border-radius:50%;background:#56d9c3;box-shadow:0 0 0 3px #4cd5bd22}
.coastal-live-bar button{border:0;background:none;color:#dff9ff;font-size:12px;padding:4px 8px;min-height:28px}
.citizen-content{padding-top:16px}
.citizen-alert-strip{padding:12px 17px;min-height:59px;border-width:1px}
.citizen-alert-strip>strong{font-size:15px;font-weight:750}.citizen-alert-strip>p{font-size:14px;color:#294966}
.citizen-alert-strip>button{font-size:13px}.citizen-alert-icon{width:30px;height:30px}
.citizen-map-toolbar{padding:14px 16px}.citizen-map-toolbar h2{font-size:18px;max-width:65%}
.citizen-map-controls select{font-size:12px;min-height:38px}.citizen-map-controls button{min-width:38px;min-height:38px}
.citizen-dashboard .citizen-map .river-canvas{min-height:395px}
.citizen-map.gis-style-coastal .geographic-map{background:radial-gradient(ellipse at 15% 65%,#d6e7dc,transparent 65%),linear-gradient(145deg,#f1f5ed,#e7eee2)}
.citizen-map .coastal-water-river{fill:url(#coastal-river-water)}
.citizen-map .coastal-water-sea{fill:url(#coastal-sea-water)}
.citizen-dashboard .citizen-map{border-color:#c4dfe9;box-shadow:0 7px 28px #0b5a7910}
.citizen-dashboard .citizen-map .river-canvas{border:1px solid #c8e4e8;border-radius:15px;box-shadow:inset 0 0 0 1px #ffffff99}
.citizen-map-toolbar{background:linear-gradient(115deg,#f1fbfd,#fff 70%);border-radius:14px 14px 0 0}
.citizen-source-icon{width:23px;height:23px;flex:none}
.citizen-heading-pin .citizen-source-icon{width:34px;height:34px}
.atlas-coastal-label{background:none!important;border:0!important;white-space:nowrap;text-align:center;pointer-events:none;color:#326774}
.atlas-coastal-label>span{display:inline-block;font-size:13px;letter-spacing:2px;font-weight:750;opacity:.75;text-shadow:0 1px 2px #fff}
.citizen-map .atlas-place-label span{font-size:11px!important;color:#5b6b62!important;text-shadow:0 1px 2px white}
.citizen-map .map-floating-tools button{font-size:12px;min-height:36px;padding:6px 10px;color:#153d5e;font-weight:600;border-color:#c3d7e3;background:#fffffff5}
.citizen-map .map-compass{top:58px;color:#196180}.citizen-map-tip{font-size:11px;color:#244865}
.citizen-map .public-gis-pin>.beacon-core svg{filter:drop-shadow(0 3px 4px #14364f60);transition:filter .25s ease}
.citizen-map .public-gis-pin.selected>.beacon-core svg{filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px #0782bd99)}
.citizen-map .public-gis-pin>.beacon-status{width:20px;height:20px;top:-12px;right:-6px;box-shadow:0 0 0 2px white,0 2px 6px #14385555}
.citizen-map .public-gis-pin>.beacon-status svg{width:13px;height:13px}
.citizen-map .public-gis-pin .beacon-wave{border-width:2px;left:0;right:0;box-shadow:0 0 7px color-mix(in srgb,var(--point-color) 40%,transparent)}
.citizen-map .public-gis-pin .map-pin-label{width:113px;padding:7px 9px;border:1px solid #b9cfda;border-left:4px solid var(--point-color);background:#fffffff5!important;box-shadow:0 5px 17px #17375124!important;border-radius:12px}
.citizen-map .public-gis-pin .map-pin-label>strong{font-size:14px;font-weight:750;line-height:1.35;color:#123959}
.citizen-map .public-gis-pin .map-pin-label>small{font-size:12px!important;font-weight:650;line-height:1.4;color:color-mix(in srgb,var(--point-color) 70%,#312113)}
.citizen-map .public-gis-pin .map-pin-label>span{font-size:10px!important;font-weight:500;color:#42647e}
.citizen-map-legend{gap:8px 12px;padding:13px 16px 5px}.citizen-map-legend>span,.citizen-legend-source{font-size:12px!important;color:#284964}
.citizen-map-legend>span>i{width:10px;height:10px}.citizen-map-caption{font-size:12px!important;color:#46617b!important;padding:5px 16px 12px}
.citizen-point-heading h3{font-size:21px}.citizen-point-heading p{font-size:13px;color:#496881}
.citizen-source-badge,.citizen-point-status strong{font-size:12px}
.citizen-value{min-height:94px;padding:15px 11px;gap:10px;background:#f9fcff}
.citizen-value-icon{width:37px;height:37px;background:#dceefa;color:#087cd0}
.citizen-value:nth-child(2) .citizen-value-icon{background:#ddf4f3;color:#008a8c}
.citizen-value:nth-child(3) .citizen-value-icon{background:#ede8ff;color:#7d42cc}
.citizen-value:nth-child(4) .citizen-value-icon{background:#fff0e4;color:#d86a25}
.citizen-value h4{font-size:14px;color:#294b67;font-weight:600}.citizen-value strong{font-size:30px;line-height:1.35}
.citizen-value strong small{font-size:12px;color:#3e5e79}.citizen-value-note{color:#795721;font-size:11px}
.citizen-measures-note{font-size:13px!important;color:#4f6981!important}
.citizen-reading-more>summary{font-size:14px;min-height:43px;background:#007e9f}
.citizen-reading-help{background:#e2f2fc;color:#127ab3;min-height:66px}
.citizen-reading-help strong{font-size:13px;color:#143d63}.citizen-reading-help small{font-size:12px;color:#1d5885}
.citizen-points>summary,.citizen-guide>summary{font-size:14px}.citizen-points>summary>span{font-size:12px;color:#4d6983}
.citizen-point strong{font-size:14px}.citizen-point small{font-size:11px;color:#56738c}.citizen-point>b{font-size:12px}
.citizen-bottom-grid h2{font-size:19px;color:#173e65}
.citizen-update strong,.citizen-info-link strong{font-size:14px}.citizen-update small,.citizen-info-link small{font-size:13px;color:#47647f}
.citizen-update-time{font-size:14px}.citizen-info-art{background-image:url('/assets/images/community-coastal-hero-v7-360.webp')}/* the card shows it at 86 x 60 px: the 360 px copy of community-coastal-hero-v7.webp (395 KB) is enough up to 3x screens */
.citizen-guide-grid h3{font-size:15px;color:#173e65}.citizen-guide-grid p{font-size:14px;color:#456780}
.citizen-footer,.citizen-footer b,.citizen-footer button{font-size:11px;color:#496881}
.citizen-map .gis-point-detail{width:290px;border:1px solid #bbcddd;box-shadow:0 9px 26px #12395938}
.citizen-map .gis-detail-header h4{font-size:16px}.citizen-map .gis-detail-body{font-size:13px;color:#355570}
.citizen-map .gis-detail-actions .btn{font-size:13px;min-height:36px}
@media(min-width:1550px){.coastal-copy h1{font-size:42px}.coastal-copy>p{font-size:17px}.coastal-copy{padding-left:42px}.citizen-value strong{font-size:32px}.citizen-dashboard .citizen-map .river-canvas{min-height:410px}}
@media(max-width:1200px){.citizen-header nav button{font-size:12px;padding-left:7px;padding-right:7px}.citizen-brand strong{font-size:20px}.citizen-brand small{font-size:10px}.coastal-copy{padding:25px 16px 22px 28px}.coastal-copy h1{font-size:31px}.coastal-copy>p{font-size:15px}.coastal-copy .citizen-location{font-size:10px}.coastal-copy .citizen-primary,.coastal-copy .citizen-secondary{font-size:13px!important;padding:10px 12px}.coastal-source-summary{font-size:12px;gap:12px}.coastal-point-label strong{font-size:13px}.coastal-point-label small{font-size:9px}.coastal-point-label{min-width:82px;padding:4px 6px}.coastal-gps-note{margin-top:13px;font-size:12px}.coastal-gps-note small{font-size:11px}.citizen-map-toolbar h2{font-size:17px;max-width:57%}.citizen-value{padding:13px 10px;gap:8px}.citizen-value-icon{width:30px;height:30px}.citizen-value h4{font-size:13px}.citizen-value strong{font-size:27px}.citizen-dashboard .citizen-map .river-canvas{min-height:405px}}
@media(max-width:1000px){.coastal-hero-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}.coastal-copy{padding-left:24px}.coastal-copy h1{font-size:30px}.coastal-scene{margin-right:20px}.coastal-source-summary{margin-top:18px;gap:10px;font-size:11px}.coastal-gps-note small{font-size:10px}.coastal-point-label small{display:none}.coastal-point-label{min-width:0;left:39px;top:9px;padding:4px 6px}.gps-point .coastal-point-label{top:-7px}.coastal-point-icon,.coastal-point-icon svg{width:34px;height:34px}.coastal-point-icon{left:5px;top:5px}.gps-point .coastal-point-icon{top:-8px}.coastal-point-ring{left:6px;top:16px;width:32px;height:12px}.coastal-scene-heading{font-size:9px;padding:8px}.coastal-sea-label{font-size:11px;letter-spacing:2px}.coastal-scene-footer{font-size:9px;line-height:1.6;padding:5px 9px;flex-wrap:wrap}.citizen-alert-strip>strong{font-size:14px}.citizen-alert-strip>p{font-size:13px}.citizen-map-toolbar{flex-direction:column;align-items:start;gap:9px}.citizen-map-toolbar h2{max-width:none;width:100%;font-size:17px}.citizen-map-toolbar>div{margin:0;width:100%;justify-content:space-between}.citizen-map .map-floating-tools button{font-size:11px;padding:6px 8px}.citizen-value{display:flex;flex-direction:column;align-items:start;padding:13px 11px}.citizen-value-icon{margin-bottom:0}.citizen-value strong{font-size:28px}.citizen-reading-panel{padding:15px 13px}.citizen-point-heading h3{font-size:20px}.citizen-point-heading p{font-size:12px}}
@media(max-width:760px){.citizen-header-inner{min-height:66px;padding:0 18px}.citizen-brand strong{font-size:19px}.citizen-brand small{font-size:10px}.citizen-staff{font-size:12px!important}.coastal-hero-layout{display:block}.coastal-copy{padding:26px 24px 22px}.coastal-copy .citizen-location{font-size:10px}.coastal-copy h1{font-size:35px;max-width:600px}.coastal-copy>p{font-size:15px;max-width:500px;margin:14px 0 19px}.coastal-source-summary{margin-top:20px;font-size:13px;gap:20px}.coastal-gps-note{margin-top:16px;font-size:12px}.coastal-gps-note small{font-size:11px}.coastal-scene{margin:0 20px 18px}.coastal-scene-heading{font-size:10px;padding:10px}.coastal-point-label small{display:block;font-size:9px}.coastal-point-label strong{font-size:13px}.coastal-point-label{padding:4px 7px}.coastal-live-bar{padding:8px 20px;font-size:11px}.coastal-village-label{font-size:9px}.coastal-sea-label{font-size:12px}.citizen-map .public-gis-pin .map-pin-label{width:100px}.citizen-map .public-gis-pin .map-pin-label>strong{font-size:13px}.citizen-map .public-gis-pin .map-pin-label>small{font-size:11px!important}.citizen-map-legend>span,.citizen-legend-source{font-size:11px!important}.citizen-map-caption{font-size:11px!important}.citizen-value{display:flex;flex-direction:row;align-items:center;padding:16px 14px;min-height:94px}.citizen-value h4{font-size:14px}.citizen-value strong{font-size:30px}.citizen-value-icon{width:36px;height:36px}.citizen-point-heading h3{font-size:21px}.citizen-points>summary>span{font-size:11px}.citizen-alert-strip{padding:12px}.citizen-alert-strip>p{font-size:13px;padding-left:0}.citizen-alert-strip>button{font-size:12px}.citizen-dashboard .citizen-map .river-canvas{min-height:380px}}
@media(max-width:480px){.citizen-header-inner{padding:0 13px;gap:8px;min-height:64px}.citizen-brand>span{width:38px}.citizen-brand strong{font-size:17px}.citizen-brand small{font-size:8px}.citizen-staff{font-size:11px!important;padding:8px 10px;min-height:36px}.coastal-copy{padding:26px 20px 20px}.coastal-copy h1{font-size:30px;line-height:1.2;letter-spacing:-.6px}.coastal-copy .citizen-location{font-size:9px;letter-spacing:1.2px}.coastal-copy>p{font-size:14px;line-height:1.6}.coastal-copy .citizen-primary,.coastal-copy .citizen-secondary{font-size:12px!important;min-height:42px;padding:10px 12px}.coastal-copy .citizen-hero-actions{gap:8px}.coastal-source-summary{gap:14px;font-size:11px;margin-top:19px}.coastal-source-summary b{font-size:15px}.coastal-gps-note{font-size:12px}.coastal-gps-note small{font-size:10px}.coastal-scene{margin:0 12px 14px;border-radius:10px}.coastal-frame{aspect-ratio:1000/560}.coastal-scene-heading{font-size:8px;padding:6px 8px;letter-spacing:.6px}.coastal-scene-heading svg{width:13px}.coastal-scene-heading>span:last-child{font-size:9px;padding:3px 6px}.coastal-point-icon,.coastal-point-icon svg{width:29px;height:29px}.coastal-point-icon{left:7.5px;top:7.5px}.gps-point .coastal-point-icon{top:-3.5px}.coastal-point-label{left:37px;top:12px;padding:3px 5px;border-radius:5px}.coastal-point-label strong{font-size:11px;gap:4px}.coastal-point-label small{display:none}.coastal-point-label em{font-size:7px;padding:1px 3px}.gps-point .coastal-point-label{top:-2px}.coastal-point-ring{width:26px;height:10px;left:9px;top:17px;border-width:1.5px}.coastal-village-label{display:none}.coastal-sea-label{font-size:10px;letter-spacing:1.5px;left:74%;top:50%}.coastal-scene-footer{font-size:8px;padding:5px 8px;gap:3px}.coastal-live-bar{font-size:10px;padding:7px 13px}.coastal-live-bar button{font-size:11px}.citizen-content{padding-top:12px}.citizen-alert-strip>strong{font-size:13px}.citizen-alert-strip>p{font-size:12px;line-height:1.6}.citizen-alert-strip>button{font-size:11px}.citizen-alert-icon{width:25px;height:25px}.citizen-map-toolbar h2{font-size:16px;line-height:1.45}.citizen-map-controls select{font-size:12px;min-width:170px}.citizen-map .map-floating-tools button{font-size:10px;min-height:31px;padding:5px 7px}.citizen-map .map-compass{top:48px}.citizen-map-tip{font-size:9px}.citizen-map .public-gis-pin .map-pin-label{width:88px;padding:5px 7px}.citizen-map .public-gis-pin .map-pin-label>strong{font-size:12px}.citizen-map .public-gis-pin .map-pin-label>small{font-size:10px!important}.citizen-dashboard .citizen-map .river-canvas{min-height:370px}.citizen-value{flex-direction:column;align-items:start;gap:6px;padding:13px 12px;min-height:107px}.citizen-value-icon{width:31px;height:31px}.citizen-value h4{font-size:13px}.citizen-value strong{font-size:27px}.citizen-value strong small{font-size:11px}.citizen-value-note{font-size:10px}.citizen-point-heading p{font-size:12px}.citizen-source-badge,.citizen-point-status strong{font-size:11px}.citizen-measures-note{font-size:12px!important}.citizen-reading-help strong,.citizen-reading-help small{font-size:12px}.citizen-points>summary,.citizen-guide>summary{font-size:13px}.citizen-points>summary>span{font-size:10px}.citizen-bottom-grid h2{font-size:18px}.citizen-update strong,.citizen-info-link strong{font-size:13px}.citizen-update small,.citizen-info-link small{font-size:12px}.citizen-footer,.citizen-footer b,.citizen-footer button{font-size:10px}.citizen-map .gis-point-detail{width:auto}}
@media(max-width:360px){.citizen-brand strong{font-size:15px}.citizen-brand small{font-size:7px}.citizen-brand>span{width:32px}.coastal-copy{padding:25px 16px 18px}.coastal-copy h1{font-size:27px}.coastal-copy .citizen-primary,.coastal-copy .citizen-secondary{font-size:11px!important;padding:10px}.coastal-source-summary{gap:11px;font-size:10px}.citizen-alert-strip>strong{font-size:12px}.citizen-alert-strip>button{font-size:10px}.citizen-value h4{font-size:12px}.citizen-value strong{font-size:25px}.citizen-map-controls select{min-width:160px}.citizen-points>summary>span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.coastal-point.has-alert .coastal-point-ring{animation:none}.coastal-point-icon{transition:none}}
.coastal-point-icon{pointer-events:auto}
/* Only the visible glyph and label capture clicks where close points meet. */
.coastal-frame .coastal-point{pointer-events:none}
.coastal-point-icon,.coastal-point-label{pointer-events:auto}
@media(max-width:480px){
    .citizen-map .public-gis-pin .map-pin-label{width:64px;min-width:64px;padding:5px 6px}
    .citizen-map .public-gis-pin .map-pin-label>strong{font-size:13px;line-height:1.25}
    .citizen-map .public-gis-pin .map-pin-label>small,.citizen-map .public-gis-pin .map-pin-label>span{display:none}
}
.community-view .citizen-dashboard .citizen-map.gis-beacon-map .public-gis-pin .map-pin-label[data-label-side]:after{content:'';display:block;position:absolute;background:var(--point-color);pointer-events:none;width:1.5px;height:var(--leader-length);opacity:.9}
.community-view .citizen-dashboard .citizen-map.gis-beacon-map .public-gis-pin .map-pin-label[data-label-side="above"]:after{left:var(--leader-x);top:100%;bottom:auto;width:1.5px;height:var(--leader-length)}
.community-view .citizen-dashboard .citizen-map.gis-beacon-map .public-gis-pin .map-pin-label[data-label-side="below"]:after{left:var(--leader-x);bottom:100%;top:auto;width:1.5px;height:var(--leader-length)}
.community-view .citizen-dashboard .citizen-map.gis-beacon-map .public-gis-pin .map-pin-label[data-label-side="left"]:after{width:14px;height:1.5px;left:100%;top:50%;bottom:auto}
.community-view .citizen-dashboard .citizen-map.gis-beacon-map .public-gis-pin .map-pin-label[data-label-side="right"]:after{width:14px;height:1.5px;left:-14px;top:50%;bottom:auto}
@media(max-width:1000px){.citizen-explore-grid{grid-template-columns:minmax(0,1fr)}}
@media(min-width:761px) and (max-width:1000px){
    #citizen-reading>.citizen-values{grid-template-columns:repeat(4,minmax(0,1fr))}
    .citizen-reading-panel{padding:18px}
    .citizen-map-toolbar{flex-direction:row;align-items:center}
    .citizen-map-toolbar h2{width:auto}
    .citizen-map-toolbar>div{width:auto;margin-left:auto}
    .citizen-value{min-height:104px}
}
/* TG13 label sits to the left of its icon: anchored by its right edge so it can never cover the icon, whatever its width. */
.coastal-point[data-citizen-select="TG13"] .coastal-point-label{left:auto;right:44px;top:7px}

/* ==== monitoring-workspace.css ==== */
/* Monitoring: one hierarchy, shared edges, and content-sized panels. */
.monitor-workspace{display:grid;gap:14px;min-width:0}
:root body.observatory-interface .monitor-workspace .page-head{margin:0;gap:16px;align-items:center}
:root body.observatory-interface .monitor-workspace .page-head h1{font-size:26px;line-height:1.35;margin:0}
:root body.observatory-interface .monitor-workspace .page-head p{font-size:14px;line-height:1.5;margin:6px 0 0}
.monitor-workspace .card{min-width:0;margin:0}
.monitor-workspace h2{font-size:18px;line-height:1.4;margin:0}
.monitor-workspace .head-actions{gap:8px}
.monitor-basis-notice{background:#fff9ee;border:1px solid #eddfbf;border-radius:10px;color:#86611d;font-size:12px}
.monitor-basis-notice>summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;padding:10px 14px}
.monitor-basis-notice>summary span{flex:1}.monitor-basis-notice summary::-webkit-details-marker{display:none}
.monitor-basis-notice>.gate-banner{margin:0;border:0;border-top:1px solid #eddfbf;border-radius:0;background:transparent}
.monitor-workspace .monitor-controls{padding:0;overflow:hidden}
.monitor-workspace .monitor-toolbar{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(320px,1fr) auto;align-items:end;gap:20px;padding:14px 18px;margin:0;border:0;background:transparent;box-shadow:none}
.monitor-toolbar>div{min-width:0!important;flex:none!important}.monitor-toolbar .field{margin:0;gap:6px;font-size:13px}.monitor-toolbar .field>span{font-size:12px;color:#526883}
.monitor-toolbar .form-control{height:40px;min-height:40px;width:100%;font-size:14px}
.monitor-toolbar .segments{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}
.monitor-toolbar .segments button{white-space:nowrap;padding:8px 12px;min-height:40px;font-size:13px}
.monitor-toolbar>span{font-size:11px;padding-bottom:10px}
.monitor-workspace .tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:4px;margin:0;padding:0 10px;border-top:1px solid #e3eaf4;border-bottom:0;background:#f8faff}
.monitor-workspace .tab{flex-shrink:0;white-space:nowrap;padding:12px 14px;font-size:13px}
.monitor-workspace .monitor-analysis{padding:0;overflow:hidden}
.monitor-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.46fr);gap:0;align-items:stretch}
.monitor-layout #monitor-chart{min-width:0;padding:18px;border:0;border-radius:0;box-shadow:none;background:white}
#monitor-chart .chart-panel-heading{margin:0 0 10px;min-height:25px}
#monitor-chart .chart-panel-heading h2{font-size:18px;margin:0}
#monitor-chart .chart-parameters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:0 0 12px}
#monitor-chart .chart-parameters button{min-width:0;min-height:36px;padding:7px 6px;justify-content:center;gap:5px;font-size:12px}
#monitor-chart .chart-parameters button strong{font-size:12px}#monitor-chart .chart-parameters button span{display:none}
#monitor-chart .chart-statistics-slot .ob-chart-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:10px 0;margin:0;border-block:1px solid #e7edf6}
#monitor-chart .ob-chart-stats>div{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;padding:0 10px;border-right:1px solid #e7edf6}
#monitor-chart .ob-chart-stats>div:first-child{padding-left:0}#monitor-chart .ob-chart-stats>div:last-child{border:0}
#monitor-chart .ob-chart-stats span{margin:0;font-size:12px;color:#526780}#monitor-chart .ob-chart-stats strong{font-size:21px;line-height:1.4;color:#16375e}
#monitor-chart .ob-chart-stats small{font-size:11px;margin-left:4px}
#monitor-chart .ob-chart-sample-note{font-size:11px;line-height:1.5;margin:7px 0 0;color:#677b94}
#monitor-chart .chart-frame{margin-top:6px}#monitor-chart .chart-frame .chart{width:100%;height:auto;max-height:250px}
#monitor-chart .chart-content .chart-legend{font-size:11px;line-height:1.5;color:#536c89;gap:5px 12px;margin-top:0}
#monitor-chart .chart-interaction-hint{font-size:11px;line-height:1.5;color:#61758d;margin:4px 0 0}
.monitor-layout .monitor-latest{padding:18px;min-width:0;background:#f8faff;border-left:1px solid #e1e9f4;display:flex;flex-direction:column}
.monitor-latest .card-title{margin:0 0 8px}.monitor-latest .card-title h2{font-size:18px}
.monitor-timestamp{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;color:#536c89;padding-bottom:10px;border-bottom:1px solid #e4ebf5}
.monitor-readings{display:block}.monitor-reading{border-bottom:1px solid #e4ebf5}.monitor-reading:last-child{border-bottom:0}
.monitor-reading .monitor-reading-trigger{display:flex;align-items:center;gap:9px;box-sizing:border-box;min-height:55px;padding:7px 0;cursor:pointer;list-style:none}
.monitor-reading .monitor-reading-trigger::-webkit-details-marker{display:none}
.monitor-reading-icon{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:10px;background:color-mix(in srgb,var(--reading-color) 10%,white);color:var(--reading-color)}
.monitor-reading-name{flex:1;min-width:0;font-size:13px;font-weight:600;line-height:1.4;color:#223d60}.monitor-reading-name>small{display:block;margin-top:3px}
.monitor-reading-name .badge{font-size:10px;padding:2px 5px;line-height:1.2}
.monitor-reading-value{font-size:22px;font-weight:700;line-height:1.3;color:#163b66;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.monitor-reading-value>small{display:block;font-size:11px;font-weight:400;color:#62758c}
.monitor-reading .monitor-reading-trigger>svg{flex-shrink:0;color:#7890ac;transition:transform .2s}.monitor-reading[open] summary>svg{transform:rotate(180deg)}
.monitor-reading-basis{padding:4px 0 12px}.monitor-latest .note{font-size:11px;line-height:1.5;margin:8px 0 0;padding-top:8px;border-top:1px solid #e4ebf5}
.monitor-latest .action-link{font-size:12px;margin-top:8px;text-align:left}
.monitor-workspace .monitor-context{padding:0;display:block;overflow:hidden}
.monitor-context-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-bottom:1px solid #e1e9f4}
.monitor-context-heading h2{display:flex;align-items:center;gap:8px;font-size:17px;color:#23466d}.monitor-context-heading h2>svg{color:#2563eb}
.monitor-context-switch{display:flex;padding:3px;border:1px solid #dee7f4;border-radius:9px;background:#f4f7fc;gap:3px}
.monitor-context-switch button{display:flex;align-items:center;gap:7px;border:0;background:transparent;border-radius:6px;padding:8px 12px;font:inherit;font-size:12px;color:#586f8b;cursor:pointer}
.monitor-context-switch button[aria-pressed=true]{background:white;color:#1e58ae;box-shadow:0 1px 4px #17375c15}
#monitor-context-content{padding:14px 18px}
.monitor-workspace .scroll-table{overflow:auto;max-height:480px}.monitor-workspace .scroll-table th{white-space:nowrap;font-size:12px}
.monitor-workspace .scroll-table thead{position:sticky;top:0;z-index:2;background:#f3f7fd}.monitor-workspace .scroll-table td{font-size:13px}
.monitor-workspace .scroll-table tbody tr:hover{background:#eff6ff}
.monitor-comparison td,.monitor-comparison .badge{white-space:nowrap}.monitor-comparison .note{margin:10px 0 0;font-size:12px}
.monitor-comparison td{padding-block:11px}
.monitor-reading .monitor-reading-trigger:focus-visible,.monitor-context-switch button:focus-visible,.monitor-basis-notice>summary:focus-visible{outline:3px solid #93c5fd;outline-offset:2px;border-radius:8px}
@media(max-width:1199px){.monitor-layout{grid-template-columns:minmax(0,1fr) 320px}#monitor-chart .chart-parameters{grid-template-columns:repeat(3,minmax(0,1fr))}#monitor-chart .ob-chart-stats>div{display:block}#monitor-chart .ob-chart-stats span{display:block;margin-bottom:3px}.monitor-toolbar>span{display:none}.monitor-workspace .monitor-toolbar{grid-template-columns:minmax(200px,.85fr) minmax(280px,1fr)}}
@media(max-width:850px){.monitor-layout{grid-template-columns:1fr}.monitor-layout .monitor-latest{border-left:0;border-top:1px solid #e1e9f4}.monitor-readings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}#monitor-chart .chart-parameters{grid-template-columns:repeat(6,minmax(0,1fr))}.monitor-workspace .page-head{flex-wrap:wrap}}
@media(max-width:600px){.monitor-workspace{gap:12px}.monitor-workspace .monitor-toolbar{grid-template-columns:1fr;gap:12px;padding:14px}.monitor-toolbar .segments button{padding:8px 5px;font-size:12px}.monitor-workspace .tab{padding:11px 12px;font-size:12px}.monitor-layout #monitor-chart,.monitor-layout .monitor-latest{padding:14px}#monitor-chart .chart-parameters{grid-template-columns:repeat(3,minmax(0,1fr))}#monitor-chart .chart-frame .chart{max-height:230px}#monitor-chart .ob-chart-stats strong{font-size:19px}#monitor-chart .ob-chart-stats small{display:inline;font-size:10px}.monitor-readings{display:block}.monitor-reading .monitor-reading-trigger{min-height:58px}.monitor-reading-name{font-size:14px}.monitor-reading-value{font-size:23px}.monitor-context-heading{align-items:start;flex-direction:column;gap:10px;padding:14px}.monitor-context-switch{width:100%;box-sizing:border-box}.monitor-context-switch button{flex:1;justify-content:center}#monitor-context-content{padding:12px}.monitor-basis-notice>summary{font-size:11px}:root body.observatory-interface .monitor-workspace .page-head h1{font-size:24px}}
@media(prefers-reduced-motion:reduce){.monitor-reading .monitor-reading-trigger>svg{transition:none}}
:root body.observatory-interface .monitor-workspace .monitor-controls,:root body.observatory-interface .monitor-workspace .monitor-analysis,:root body.observatory-interface .monitor-workspace .monitor-context{padding:0}
:root body.observatory-interface .monitor-workspace .monitor-toolbar{padding:14px 18px;margin:0;border:0;box-shadow:none;background:transparent}
:root body.observatory-interface .monitor-workspace .tabs{margin:0;padding:0 10px}
@media(max-width:600px){:root body.observatory-interface .monitor-workspace .monitor-toolbar{padding:14px}}

.monitor-reading-trigger{width:100%;border:0;background:transparent;font:inherit;text-align:left;color:inherit;border-radius:6px;transition:background .15s}
.monitor-reading-trigger:hover{background:#edf3fe}.monitor-reading-detail{display:grid;gap:14px}.monitor-detail-value{display:flex;align-items:center;gap:14px}.monitor-detail-value strong{font-size:32px;color:#163b66}.monitor-detail-value small{font-size:16px;font-weight:400}.monitor-reading-detail .note{margin:0;line-height:1.6}.monitor-reading-detail .measurement-gauge{margin:0}
@media(max-width:600px){:root body.observatory-interface .monitor-workspace .head-actions{display:flex;flex-wrap:nowrap;width:100%;gap:6px}:root body.observatory-interface .monitor-workspace .head-actions>button,:root body.observatory-interface .monitor-workspace .head-actions>.action-menu{flex:1;min-width:0}:root body.observatory-interface .monitor-workspace .head-actions .btn,:root body.observatory-interface .monitor-workspace .action-menu>summary{box-sizing:border-box;width:100%;min-height:40px;padding:8px 6px;font-size:11px;gap:5px;justify-content:center}:root body.observatory-interface .monitor-workspace .head-actions .btn svg{width:14px;height:14px;flex-shrink:0}}
@media(max-width:600px){:root body.observatory-interface .monitor-workspace .action-menu>summary{white-space:nowrap;font-size:10px;height:40px;display:flex;align-items:center;gap:3px}}
/* Stronger contrast, distinct parameter colors, restrained interaction feedback. */
:root body.observatory-interface .monitor-workspace{color:#203755}
:root body.observatory-interface .monitor-workspace .page-head h1{color:#123567;font-weight:750}
:root body.observatory-interface .monitor-workspace .page-head p{color:#405575;font-weight:500}
:root body.observatory-interface .monitor-workspace h2{color:#143d71;font-weight:700}
:root body.observatory-interface .monitor-workspace .card{border-color:#cbdcf1;box-shadow:0 3px 14px #1b4a8710}
.monitor-workspace .monitor-controls{background:linear-gradient(110deg,#fff,#f2f7ff)}
:root body.observatory-interface .monitor-workspace .field>span,:root body.observatory-interface .monitor-workspace .field>label{color:#314b6c;font-weight:650}
:root body.observatory-interface .monitor-workspace .form-control{color:#203c60;border-color:#c6d7ec;font-weight:500}
:root body.observatory-interface .monitor-workspace .segments button{color:#405b7b;font-weight:600}
:root body.observatory-interface .monitor-workspace .segments button.active{color:#1254be;background:#e5efff;box-shadow:inset 0 0 0 1px #9dbfff}
:root body.observatory-interface .monitor-workspace .tab{color:#405777;font-weight:600;transition:background .18s,color .18s}
:root body.observatory-interface .monitor-workspace .tab.active{color:#1559cd;background:#eaf2ff;border-bottom-color:#2563eb}
.monitor-layout .monitor-latest{background:linear-gradient(150deg,#edf4ff,#f7f9ff 70%);border-left-color:#cbdcf1}
:root body.observatory-interface .monitor-workspace .monitor-timestamp{color:#405a7c;font-weight:500}
.monitor-point-state{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 0;border-bottom:1px solid #d5e3f5;font-size:11px;color:#405a7c;font-weight:600}
.monitor-point-state .badge{font-size:11px;line-height:1.4;font-weight:650;position:relative;gap:5px}
.monitor-latest[data-point-level="1"] .monitor-point-state{color:#835207}.monitor-latest[data-point-level="2"] .monitor-point-state{color:#9a3c0b}.monitor-latest[data-point-level="3"] .monitor-point-state,.monitor-latest[data-point-level="4"] .monitor-point-state{color:#a91d38}
.monitor-point-state .badge:is(.level-1,.level-2,.level-3,.level-4)::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor;flex-shrink:0;animation:monitor-beacon 2.6s ease-out infinite}
.monitor-latest[data-point-level="2"]{box-shadow:inset 0 3px #ff7a1a}.monitor-latest[data-point-level="3"]{box-shadow:inset 0 3px #e5251b}.monitor-latest[data-point-level="4"]{box-shadow:inset 0 3px #7e0023}
.monitor-reading-icon{background:color-mix(in srgb,var(--reading-color) 17%,white);border:1px solid color-mix(in srgb,var(--reading-color) 28%,white);box-sizing:border-box;transition:transform .2s,background .2s}
.monitor-reading-name{color:#213c61;font-weight:650}.monitor-reading-value{color:#11376a;font-weight:750}.monitor-reading-value>small{color:#405777;font-weight:500}
.monitor-reading .monitor-reading-trigger{transition:background .2s,box-shadow .2s}
.monitor-reading .monitor-reading-trigger>svg{color:#356199;transition:transform .2s}
.monitor-reading-trigger:hover{background:color-mix(in srgb,var(--reading-color) 8%,white);box-shadow:inset 3px 0 var(--reading-color)}
.monitor-reading-trigger:hover .monitor-reading-icon{transform:scale(1.08) rotate(-4deg)}.monitor-reading-trigger:hover>svg{transform:translateX(3px)}
:root body.observatory-interface #monitor-chart .chart-parameters button{color:var(--chart-accent);background:color-mix(in srgb,var(--chart-accent) 7%,white);border-color:color-mix(in srgb,var(--chart-accent) 25%,white);font-weight:650;transition:transform .18s,box-shadow .18s,background .18s}
:root body.observatory-interface #monitor-chart .chart-parameters button[aria-pressed=true]{background:color-mix(in srgb,var(--chart-accent) 15%,white);border-color:var(--chart-accent);box-shadow:inset 0 -2px var(--chart-accent),0 2px 6px #12356b0b}
#monitor-chart .chart-statistics-slot .ob-chart-stats{gap:8px;border:0;padding:2px 0 0}
#monitor-chart .ob-chart-stats>div{background:#eff5ff;border:1px solid #dde8f8;border-radius:8px;padding:10px!important}
#monitor-chart .ob-chart-stats>div:nth-child(2){background:#f4f0ff;border-color:#e6def9}#monitor-chart .ob-chart-stats>div:nth-child(3){background:#eaf8fc;border-color:#ceeaf1}
#monitor-chart .ob-chart-stats>div:last-child{border:1px solid #ceeaf1}
:root body.observatory-interface #monitor-chart .ob-chart-stats span{color:#3c5577;font-weight:600}
:root body.observatory-interface #monitor-chart .ob-chart-stats small{color:#405777;font-weight:500}
:root body.observatory-interface #monitor-chart .chart .chart-unit-label,:root body.observatory-interface #monitor-chart .chart text{fill:#405778}
:root body.observatory-interface #monitor-chart .ob-chart-sample-note,:root body.observatory-interface #monitor-chart .chart-legend,:root body.observatory-interface #monitor-chart .chart-interaction-hint,:root body.observatory-interface .monitor-latest .note,:root body.observatory-interface .monitor-comparison .note{color:#405a7c}
.monitor-context-heading{background:linear-gradient(110deg,#eff5ff,#fff)}.monitor-context-switch button{color:#395574;font-weight:600;transition:background .18s,box-shadow .18s}
.monitor-context-switch button[aria-pressed=true]{color:#164eb5;box-shadow:0 2px 6px #12356b15}
:root body.observatory-interface .monitor-comparison th{color:#314d71;font-weight:650;background:#edf4ff}
:root body.observatory-interface .monitor-comparison td{color:#263e5d;font-weight:500;transition:background .2s}
:root body.observatory-interface .monitor-comparison tr:has(.level-2)>td{background:#fff5e9}:root body.observatory-interface .monitor-comparison tr:has(.level-3,.level-4)>td{background:#fff0f3}
.monitor-comparison tr:has(.level-2)>td:first-child{box-shadow:inset 3px 0 #ff7a1a}.monitor-comparison tr:has(.level-3)>td:first-child{box-shadow:inset 3px 0 #e5251b}.monitor-comparison tr:has(.level-4)>td:first-child{box-shadow:inset 3px 0 #7e0023}
.monitor-comparison .badge:is(.level-2,.level-3,.level-4)>svg{animation:monitor-warning 3s ease-in-out infinite;transform-origin:center}
.monitor-workspace .badge{font-weight:600}.monitor-workspace .badge.level-1{background:#fff0c2;color:#805006}.monitor-workspace .badge.level-2{background:#ffe4c9;color:#9c3908}.monitor-workspace .badge.level-3{background:#ffe1e7;color:#af1633}.monitor-workspace .badge.level-4{background:#ffd9e4;color:#9c1243}
@media(hover:hover){:root body.observatory-interface #monitor-chart .chart-parameters button:hover{transform:translateY(-2px);box-shadow:0 4px 10px color-mix(in srgb,var(--chart-accent) 18%,transparent)}.monitor-workspace .tab:hover{background:#eaf2ff}.monitor-context-switch button:hover{background:#e5efff}.monitor-workspace .btn:hover{box-shadow:0 4px 12px #245bb828}.monitor-comparison tbody tr:hover>td{background:#e8f1ff!important}}
@keyframes monitor-beacon{0%{box-shadow:0 0 0 0 color-mix(in srgb,currentColor 35%,transparent);opacity:1}65%{box-shadow:0 0 0 5px transparent;opacity:.55}100%{box-shadow:0 0 0 0 transparent;opacity:1}}
@keyframes monitor-warning{0%,12%,100%{transform:rotate(0)}3%,9%{transform:rotate(-8deg)}6%{transform:rotate(8deg)}}
@media(prefers-reduced-motion:reduce){.monitor-workspace *,.monitor-workspace *::before{animation:none!important;transition:none!important}.monitor-workspace .monitor-reading-trigger:hover>svg,.monitor-workspace .monitor-reading-trigger:hover .monitor-reading-icon,:root body.observatory-interface #monitor-chart .chart-parameters button:hover{transform:none}}
:root body.observatory-interface #monitor-chart .chart-parameters button[aria-pressed=true]{background:color-mix(in srgb,var(--chart-accent) 72%,#16324f);color:white;border-color:var(--chart-accent);box-shadow:0 3px 9px color-mix(in srgb,var(--chart-accent) 24%,transparent)}
:root body.observatory-interface #monitor-chart .chart-parameters button[aria-pressed=true] svg{color:white}
:root body.observatory-interface .monitor-workspace .monitor-context-heading h2{color:#164b94}
/* Pastel mauve and dusty rose replace saturated amber on KPI surfaces. */
:root body.observatory-interface .ob-design-system .ob-kpi-attention{--tile-color:#b28aa5;background:linear-gradient(135deg,#fbf6fa,#f4eaf1);border-color:#e6d6e2;border-top-color:#b28aa5}
:root body.observatory-interface .ob-design-system .ob-kpi-attention .ob-stat-icon{background:#eee1eb;color:#895d7b}
:root body.observatory-interface .ob-design-system .ob-kpi-attention .ob-kpi-main>strong{color:#76526d}
:root body.observatory-interface .ob-design-system .ob-kpi-attention .ob-stat-top,:root body.observatory-interface .ob-design-system .ob-kpi-attention .ob-kpi-caption,:root body.observatory-interface .ob-design-system .ob-kpi-attention .ob-kpi-main>span{color:#67536a}
:root body.observatory-interface .ob-design-system .ob-kpi-attention .ob-kpi-action{color:#795570;border-color:#e6d6e2}
:root body.observatory-interface .ir-icon.orange,:root body.observatory-interface .ir-icon.amber{background:#f3e9f0;color:#956582}
.monitor-workspace .badge.level-1{background:#eeeaf6;color:#66547f}.monitor-workspace .badge.level-2{background:#f6e6ec;color:#8b4d66}
.monitor-latest[data-point-level="1"] .monitor-point-state{color:#66547f}.monitor-latest[data-point-level="2"] .monitor-point-state{color:#8b4d66}
.monitor-latest[data-point-level="2"]{box-shadow:inset 0 3px #c38da3}
:root body.observatory-interface .monitor-comparison tr:has(.level-2)>td{background:#fbf2f6}.monitor-comparison tr:has(.level-2)>td:first-child{box-shadow:inset 3px 0 #c38da3}
.monitor-basis-notice{background:#f6f3fa;border-color:#e2dbea;color:#675579}.monitor-basis-notice>.gate-banner{border-top-color:#e2dbea;color:#675579}

/* the tab body is swapped in place (app.js swapBody): as a grid item it must be allowed to shrink, or a wide table pushes the whole page past the screen */
#monitor-tab-body{min-width:0;max-width:100%}
#monitor-tab-body[aria-busy="true"]{opacity:.6;transition:opacity .15s}

/* Chi tiết quan trắc: every block title (chart, latest figures, tables, points on the route) shares one look:
   a 34px icon chip, then the title at 18px (16px on a phone), weight 800, one ink colour. */
@layer readability {
  :root body#royal-blue-app #content .monitor-workspace :is(.chart-panel-heading, .card-title, .monitor-context-heading) h2 {display:flex !important;align-items:center;gap:10px;min-width:0;margin:0 !important;font-size:18px !important;font-weight:800 !important;line-height:1.35 !important;letter-spacing:-.2px !important;color:#0f2a57 !important}
  :root body#royal-blue-app #content .monitor-workspace :is(.chart-panel-heading, .monitor-context-heading) h2 > span:not(.rb-form-title-icon) {min-width:0}
  :root body#royal-blue-app #content .monitor-workspace :is(.chart-panel-heading, .card-title, .monitor-context-heading) .rb-form-title-icon {display:grid;place-items:center;flex:none;width:32px;height:32px}
  :root body#royal-blue-app #content .monitor-workspace :is(.chart-panel-heading, .card-title, .monitor-context-heading) .rb-form-title-icon svg {width:20px !important;height:20px !important}
  @media (max-width:600px) {
    :root body#royal-blue-app #content .monitor-workspace :is(.chart-panel-heading, .card-title, .monitor-context-heading) h2 {font-size:16px !important}
  }
}

/* Staff footer on a phone: one centred column (system name, credit line, "Thông tin đề tài" as a small button, designer) under a hairline. */
@layer readability {
  @media (max-width:640px) {
    :root body#royal-blue-app .workspace > footer {display:flex !important;flex-direction:column !important;align-items:center !important;justify-content:flex-start !important;gap:8px !important;padding:18px 16px 22px !important;border-top:1px solid #d9e5f4;text-align:center}
    :root body#royal-blue-app .workspace > footer > span:first-child {order:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px !important;font-weight:700;color:#173e70 !important}
    :root body#royal-blue-app .workspace > footer > #footer-mode {order:2;display:flex !important;flex-direction:column;align-items:center;gap:8px;max-width:340px;font-size:12px !important;line-height:1.5 !important;color:#5a7391 !important}
    :root body#royal-blue-app .workspace > footer #footer-mode .fm-sep {display:none}
    :root body#royal-blue-app .workspace > footer #footer-mode .project-credit-details {display:inline-flex !important;align-items:center;justify-content:center;min-height:36px !important;padding:0 16px !important;border:1px solid #cddcee !important;border-radius:999px !important;background:#fff !important;font-size:13px !important;font-weight:600;text-decoration:none !important;color:#17406e !important}
    :root body#royal-blue-app .workspace > footer > .footer-designer {order:3;font-size:12px !important;color:#1f5fa8 !important}
  }
}
/* C0–C4: the two groups of water users under the point's level */
.monitor-groups{list-style:none;margin:6px 0 10px;padding:0;display:grid;gap:8px;min-width:0}
.monitor-groups li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;align-items:center;padding:7px 9px;border-radius:8px;background:#f5f8fc;border:1px solid #e1e9f4;min-width:0}
.monitor-groups li>span{font-size:12px;font-weight:650;color:#29466b;min-width:0}
.monitor-groups li>small{grid-column:1/-1;font-size:11.5px;line-height:1.45;color:#4a6382;overflow-wrap:anywhere}
.monitor-paused{margin:0 0 10px;padding:6px 9px;border-radius:8px;background:#f1f4f7;border:1px dashed #9aabbc;font-size:12px;color:#3c5068}

/* ==== warning-clarity.css ==== */
/* Alert accents retain their configured meaning; labels use a readable ink. */
.gis-beacon .beacon-status{color:var(--point-on-color,#fff)}
.citizen-dashboard .citizen-map .public-gis-pin>.beacon-status{color:var(--point-on-color,#fff)}
.map-status-badge{color:var(--point-ink,var(--point-color))}
:root body.observatory-interface .gis-beacon-map .gis-beacon .map-pin-label>small,
.citizen-dashboard .citizen-map .public-gis-pin .map-pin-label>small{color:var(--point-ink,var(--point-color))}
.gis-beacon[data-alert-level="1"] .map-pin-label{background:#fffaf0!important;border-color:color-mix(in srgb,var(--point-color) 45%,white)!important;border-left-color:var(--point-color)!important}
.gis-beacon[data-alert-level="1"] .map-pin-label>small{display:block;width:fit-content;padding:2px 5px;margin:4px 0;border-radius:5px;background:color-mix(in srgb,var(--point-color) 12%,white);font-weight:700}
.gis-beacon[data-alert-level="1"] .beacon-status{box-shadow:0 0 0 2px #fff,0 2px 7px #49371030}
.gis-beacon[data-alert-level="1"] .beacon-wave{opacity:.45}
:root body.observatory-interface .gis-beacon-map.gis-style-night .gis-beacon[data-alert-level="1"] .map-pin-label{background:#1c2e46fa!important}
:root body.observatory-interface .gis-beacon-map.gis-style-night .gis-beacon[data-alert-level="1"] .map-pin-label>small{color:#ffdfa0;background:#ffffff12}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .sa-station .sa-state .badge{color:var(--sa-ink,var(--sa-color));padding:3px 7px;border:1px solid color-mix(in srgb,var(--sa-color) 28%,white);border-radius:6px;background:color-mix(in srgb,var(--sa-color) 10%,white);font-size:12px;font-weight:650}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .river-node.ob-station-tab.sa-station[data-station-alert="1"]{--sa-speed:3.6s}
.sa-state{color:var(--sa-ink,var(--sa-color))}
.citizen-dashboard .citizen-point-status{color:var(--signal-ink,var(--signal));border:1px solid color-mix(in srgb,var(--signal) 35%,white);padding:4px 10px;gap:5px}
.citizen-dashboard .citizen-point-status[data-alert-level="1"]{background:#fff4d6}
.citizen-dashboard .citizen-lamp[data-alert-level="1"]{width:23px;height:23px}
.citizen-dashboard .citizen-lamp[data-alert-level="1"] i{display:grid;place-items:center;width:20px;height:20px;background:color-mix(in srgb,var(--signal) 15%,white);color:var(--signal-ink);box-shadow:none}
.citizen-dashboard .citizen-lamp[data-alert-level="1"] svg{width:15px;height:15px}
.citizen-attention-note{padding:10px 12px;margin:0 0 13px!important;border:1px solid #efdbab;border-left:3px solid #ce850d;border-radius:8px;background:#fffbf0;color:#76500d!important;font-size:13px;line-height:1.65}
.citizen-dashboard .citizen-point{position:relative;align-content:start;align-items:center;gap:8px!important;min-height:104px;padding:12px;border:1px solid #cbdff7;border-left:3px solid #8ab7ef;border-radius:12px;background:linear-gradient(135deg,#edf5ff,#f8fbff);transition:background .18s,border-color .18s,box-shadow .18s}
.citizen-dashboard .citizen-point>b{display:flex;align-items:center;gap:6px;flex-basis:100%;width:fit-content;padding:4px 8px;border:1px solid color-mix(in srgb,var(--signal) 30%,white);border-radius:6px;background:color-mix(in srgb,var(--signal) 10%,white);color:var(--signal-ink,var(--signal));font-size:12px;font-weight:650}
.citizen-dashboard .citizen-point:hover{border-color:#76a6e8;background:linear-gradient(135deg,#e3efff,#f1f7ff);box-shadow:0 4px 14px #265da21a}
.citizen-dashboard .citizen-point[aria-pressed="true"]{outline:2px solid #3779d6;outline-offset:1px;border-color:#6196dd;border-left-color:#2563c4;background:linear-gradient(135deg,#dbeaff,#edf5ff);box-shadow:0 4px 14px #265da21a}
.citizen-dashboard .citizen-point[aria-pressed="true"]:after{content:'Đang xem';color:#2563a4;font-size:11px;font-weight:650;line-height:1.4}
@media(max-width:600px){
 .citizen-dashboard .citizen-point-list{gap:10px}
 .citizen-dashboard .citizen-point{display:grid;grid-template-columns:23px minmax(0,1fr) auto;gap:6px 8px!important;min-height:88px;padding:12px}
 .citizen-dashboard .citizen-point>.citizen-lamp{grid-column:1;grid-row:1}
 .citizen-dashboard .citizen-point>span:nth-child(2){grid-column:2;grid-row:1}
 .citizen-dashboard .citizen-point>b{grid-column:2;grid-row:2;margin:0;max-width:100%;white-space:normal}
 .citizen-dashboard .citizen-point>svg{display:block;grid-column:3;grid-row:1;color:#5481a4}
 .citizen-dashboard .citizen-point[aria-pressed="true"]:after{grid-column:3;grid-row:2;white-space:nowrap}
 .citizen-attention-note{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.citizen-dashboard .citizen-point{transition:none}}

/* ==== map-refinement.css ==== */
/* Compact vector markers: 30px artwork within the original 42px geographic hit area. */
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon{border-radius:0;background:transparent;box-shadow:none;color:#3974b9}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon>.beacon-core{inset:6px;width:30px;height:30px;display:grid;place-items:center;border:1.5px solid #8fb4df;border-radius:9px;background:#f1f7ff;color:#3974b9;box-shadow:0 1px 4px #17375120}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon.estimated>.beacon-core{border-radius:50%;border:1.5px solid #8fb4df;background:#f5f9ff;color:#3974b9}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon.measured>.beacon-core{background:#397bd0;color:#fff;border-color:#fff}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon>.beacon-core svg{width:20px;height:20px;transform:none;filter:none;animation:none}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon.selected>.beacon-core{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #568ee0,0 2px 5px #17375120}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon.selected>.beacon-core svg{filter:none}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon.signal-offline>.beacon-core{background:#f1f4f7;border-color:#9eafbf;color:#798b9d}

/* Muted amber notes: restrained surfaces, clear ink, no yellow glow. */
:root{--attention-surface:#f8f3e9;--attention-border:#e5d7bd;--attention-ink:#73572b;--attention-accent:#b58b4b}
:root body.observatory-interface .badge.level-1,
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .sa-station[data-station-alert="1"] .sa-state .badge,
:root body:is(.observatory-interface,.community-view) .map-status-badge[data-alert-level="1"],
:root body .citizen-dashboard .citizen-point-status[data-alert-level="1"],
:root body .citizen-dashboard .citizen-point[data-alert-level="1"]>b{background:var(--attention-surface)!important;color:var(--attention-ink)!important;border:1px solid var(--attention-border)!important;border-radius:6px;box-shadow:none!important;font-weight:600}
:root body.observatory-interface .hydro-hero.level-1{background:linear-gradient(110deg,#faf7f0,#fff)!important;border:1px solid var(--attention-border)!important;border-radius:9px;box-shadow:none!important}
:root body.observatory-interface .hydro-hero.level-1:before{background:var(--attention-accent)!important;width:3px}
:root body.observatory-interface .hydro-hero.level-1>.badge.level-1{border:0!important;padding-left:0;background:transparent!important}
:root body .citizen-attention-note{background:#faf7f0;border:1px solid var(--attention-border);border-left:3px solid var(--attention-accent);color:var(--attention-ink)!important}
:root body .citizen-dashboard .citizen-lamp[data-alert-level="1"] i{background:var(--attention-surface);color:var(--attention-ink)}
:root body.observatory-interface .sa-station[data-station-alert="1"] .sa-lamp{box-shadow:none}

/* GIS workspace: generous canvas, quiet chrome, consistent controls. */
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .river-header{display:flex!important;flex-direction:row!important;justify-content:space-between;text-align:left!important}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .river-header>div:first-child{flex:1 1 220px;width:auto!important;text-align:left!important}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .river-header .map-actions{flex:0 1 auto;width:auto!important;justify-content:flex-end}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .river-observatory.ob-live-grid{grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:20px;align-items:start}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map{padding:18px;background:#fff;border:1px solid #dce6f1;border-radius:16px;box-shadow:0 4px 18px #24476b08}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .river-header{align-items:center;gap:12px;margin-bottom:14px}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .river-instruction{color:#7290af;font-size:9px;letter-spacing:1.3px;font-weight:650}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .river-header h3{font-size:21px;color:#193a5c;letter-spacing:-.4px;margin:4px 0}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .river-header p{color:#7990a8;font-size:11px}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-actions{margin-left:auto;gap:6px}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-segment{background:#f3f6fa;border:1px solid #e4ebf3;border-radius:8px;padding:3px}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-segment button{border-radius:5px;box-shadow:none;font-size:10px;min-height:28px;padding:5px 7px}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-segment button.active{background:white;color:#3269a9;box-shadow:0 1px 3px #17375114}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-situation{border:1px solid #e3eaf3!important;border-left:0!important;background:#f7f9fc!important;padding:9px 12px!important;margin-bottom:10px}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .gis-control-row{padding:8px;background:#f6f8fb;border:1px solid #e5ebf3;border-radius:10px;margin:0 0 12px;gap:8px}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .gis-basemap-switch{background:transparent;border:0;padding:0;gap:2px}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .gis-control-row button{min-height:30px;font-size:10px;border-radius:6px;box-shadow:none;padding:5px 8px}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .gis-control-row button[aria-pressed="true"]{background:white;color:#3269a9;border:1px solid #dce6f1}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .river-canvas{border:1px solid #dce6ef;border-radius:12px;overflow:hidden}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map #geographic-map{height:480px!important;background:#e8f2f7}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-floating-tools{right:12px;bottom:34px;gap:4px;background:#fffffff5;border:1px solid #dce6f1;border-radius:8px;padding:3px;box-shadow:0 2px 8px #17375110}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-floating-tools button{background:transparent;border:0;border-radius:5px;box-shadow:none;padding:6px 8px;font-size:11px}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .gis-point-detail{border:1px solid #dce6f1;border-radius:12px;box-shadow:0 8px 24px #17375120}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .gis-detail-header{background:#f5f8fc;border-bottom:1px solid #e3ebf4}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-pin-label>strong em{color:var(--point-ink);background:color-mix(in srgb,var(--point-color) 12%,white)}
@media(max-width:1200px){:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .river-observatory.ob-live-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map{padding:12px;border-radius:12px}:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map #geographic-map{height:420px!important}:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-actions{margin-left:0;width:100%}}

/* Consistent circular symbols; selection and alert state use separate visual channels. */
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon:is(.measured,.estimated)>.beacon-core{inset:5px;width:32px;height:32px;border-radius:50%;border-width:2px;background:color-mix(in srgb,var(--point-color) 24%,white);color:var(--point-ink);box-shadow:0 2px 5px #17375124;transition:background .18s ease,box-shadow .18s ease,border-color .18s ease}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon>.beacon-core svg{width:20px;height:20px;stroke-width:2}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon[data-alert-level="1"]>.beacon-core{background:#fff0c2;border-color:#d99a23;color:#8b5b12}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon[data-alert-level="2"]>.beacon-core{background:#ffe1cd;border-color:#ea7a35;color:#a34317}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon:is([data-alert-level="3"],[data-alert-level="4"])>.beacon-core{background:var(--point-color);color:var(--point-on-color);border-color:#fff}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon.selected>.beacon-core{box-shadow:0 0 0 2px #fff,0 0 0 4px #347dde,0 3px 9px #225ca438}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon:hover>.beacon-core{box-shadow:0 0 0 3px #d5e7fc,0 3px 9px #225ca430}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon.selected:hover>.beacon-core{box-shadow:0 0 0 2px #fff,0 0 0 4px #347dde,0 4px 12px #225ca440}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon.selected .map-pin-label{background:#eaf3ff!important;border-color:#75a7e8!important;box-shadow:0 2px 6px #225ca420!important}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon.selected .map-pin-label>strong{color:#1e579c;font-weight:750}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon.signal-offline>.beacon-core{background:#edf1f5;border-color:#98a9ba;color:#697d92}
@media(prefers-reduced-motion:reduce){:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon>.beacon-core{transition:none}}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon>.beacon-status{top:1px;right:0;width:16px;height:16px;border:1.5px solid #fff;color:var(--point-on-color,#fff);background:var(--point-color);border-radius:50%;box-shadow:0 1px 3px #17375125;animation:none}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon .beacon-status svg{width:10px;height:10px}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon .beacon-wave{inset:5px;left:5px;right:5px;top:5px;bottom:5px;border:1px solid var(--point-color);border-radius:50%;box-shadow:none;animation:map-soft-pulse 3.6s ease-out infinite}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon .wave-second,
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon:not([data-alert-level="3"]):not([data-alert-level="4"]) .beacon-wave{display:none}
@keyframes map-soft-pulse{0%{transform:scale(1);opacity:.3}85%,100%{transform:scale(1.5);opacity:0}}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon .map-pin-label{width:94px;min-width:0;padding:6px 7px;border:1px solid #ccdaec!important;border-left:2px solid #8ab1e1!important;border-radius:7px;background:#fffffffa!important;box-shadow:0 2px 6px #17375114!important;line-height:1.4}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon.selected .map-pin-label{border-color:#8bb4ea!important;border-left-color:#397bd0!important;background:#f5f9ff!important}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon .map-pin-label>strong{font-size:12px;font-weight:650;line-height:1.4;color:#294f7b}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon .map-pin-label>strong em{font-size:9px;background:#edf3fb;color:#4c6d95;border-radius:3px;padding:1px 3px}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon .map-pin-label>small{display:block;width:fit-content;font-size:10px!important;font-weight:550;line-height:1.4;color:var(--point-ink);padding:0;margin:2px 0;background:transparent;border-radius:0}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon .map-pin-label>span{font-size:9px!important;line-height:1.4;color:#6d8097}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon .map-pin-label:after{background:#9fb8d6!important;opacity:.7!important}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map.gis-style-night .gis-beacon .map-pin-label{background:#21354df5!important;border-color:#496381!important;border-left-color:#79a6dd!important}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map.gis-style-night .gis-beacon .map-pin-label>strong{color:#e0ecfa}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map.gis-style-night .gis-beacon .map-pin-label>small{color:color-mix(in srgb,var(--point-color) 55%,white);background:transparent}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map.gis-style-night .gis-beacon .map-pin-label>span{color:#a8bbd1}
@media(max-width:600px){:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon .map-pin-label{width:78px;padding:5px 6px}:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon .map-pin-label>strong{font-size:11px}:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon .map-pin-label>small{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon .beacon-wave{animation:none;opacity:.2}}

/* One-line station tags; readings and source details live in the selected-point panel. */
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-control-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin:8px 0 10px}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-control-row .gis-basemap-toolbar,
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-control-row .gis-layer-toolbar{margin:0;padding:0}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon .map-pin-label{width:max-content;max-width:100px;padding:4px 7px;border-left-width:1px!important;border-radius:6px;line-height:1.2;box-shadow:0 1px 3px #17375112!important}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon .map-pin-label>strong{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:11px;line-height:16px}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon .map-pin-label>small,
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon .map-pin-label>span{display:none!important}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon .map-pin-label:after{display:none!important}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .map-situation{padding:10px 12px;border-left:0;border:1px solid #dbe5f0;background:#f6f9fd;box-shadow:none;border-radius:8px;gap:10px}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .map-situation-symbol{width:28px;height:28px;background:transparent}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .map-situation>div>p{display:none}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .map-situation strong{font-size:12px}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-basemap-toolbar{padding:8px 0;border:0;background:transparent;flex-wrap:wrap;gap:6px}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map #map-basemap-description{display:none}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-layer-toolbar{margin:0 0 10px;padding:0;background:transparent;border:0;gap:6px;justify-content:flex-end}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-layer-toolbar>span{display:none}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-layer-toolbar button{padding:5px 8px;font-size:10px}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .map-compass{width:30px;height:38px;top:12px;right:12px;background:#ffffffed;border:1px solid #dce6f2;border-radius:6px;box-shadow:none}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .map-compass b{font-size:8px}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-view-coordinate{display:none}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-location-bar{padding:9px 12px;background:#f8fafd;border:1px solid #e1e9f2;border-radius:8px;margin-top:10px}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-location-bar strong{font-size:11px}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-location-bar small{display:none}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .map-level-legend{display:flex;flex-wrap:wrap;gap:7px 12px;padding:10px 0;border:0}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .map-level-legend>span{font-size:10px;padding:0;border:0;background:transparent;box-shadow:none}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .map-level-legend svg{width:12px;height:12px}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .river-footer{border-top:1px solid #e5edf5;padding-top:10px;gap:10px}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .geographic-legend{gap:8px 12px;font-size:10px}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .geographic-legend .atlas-water-legend,
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .geographic-legend>span:last-child{display:none}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-map-notes{font-size:11px;margin-top:10px;border-top:1px solid #e5edf5;padding-top:10px}

/* A single source icon carries its alert state through the surface and outline. */
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon:is(.measured,.estimated)>.beacon-core{background:color-mix(in srgb,var(--point-color) 17%,white);border:1.5px solid var(--point-color);color:var(--point-ink);box-shadow:0 1px 3px #17375118}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon:is([data-alert-level="3"],[data-alert-level="4"])>.beacon-core{background:var(--point-color);color:var(--point-on-color);border-color:#fff}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon.selected>.beacon-core{box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--point-color),0 2px 5px #17375120}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon.signal-offline>.beacon-core{background:#f1f4f7;border-color:#9eafbf;color:#798b9d}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon.selected>.beacon-core{box-shadow:0 0 0 2px #fff,0 0 0 4px #347dde,0 3px 9px #225ca438!important}
.river-quality-control{position:absolute;top:10px;left:52px;z-index:450;background:#ffffffed;border:1px solid #d5e2ef;border-radius:9px;padding:7px 9px;color:#274563;font-size:11px;box-shadow:0 2px 8px #18365a10;backdrop-filter:blur(8px);max-width:calc(100% - 110px)}
.river-quality-control button{border:1px solid #cddaea;border-radius:6px;background:#f3f7fc;color:#274563;padding:5px 8px;font:inherit;font-weight:600;cursor:pointer;margin:0}
.river-quality-control button[aria-pressed=true]{background:#e7f0ff;border-color:#397bd5;color:#18549e}
.river-quality-control button:disabled{opacity:.6;cursor:default}
.river-quality-control small{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:7px;font-size:11px}
.river-quality-control small i{display:inline-block;width:14px;height:5px;border-radius:3px;margin-left:6px}
.river-quality-popup{max-width:280px;line-height:1.5}
.river-quality-popup small{color:#526479}

.river-quality-switches{display:flex;gap:5px}
.river-natural-flow{position:absolute;z-index:3;pointer-events:none;opacity:.95}
.gis-flow-active .river-centerline{opacity:.2}
.river-quality-scale{display:flex;gap:5px;align-items:center;margin-top:6px;font-size:10px;white-space:nowrap}
.river-quality-scale>i{width:74px;height:5px;border-radius:5px;background:linear-gradient(90deg,#245bff,#e8b847,#ed842f,#e34b63,#ae285c)}
.river-quality-scale>b{width:7px;height:7px;border-radius:50%;background:#71817f;margin-left:2px}
.citizen-map .citizen-map-legend{display:flex!important;flex-wrap:wrap;align-items:center;gap:6px 12px!important;padding:10px 14px!important;font-size:11px!important;line-height:1.5}
.citizen-map .citizen-map-legend>span{white-space:nowrap;display:inline-flex;align-items:center;gap:5px}
.citizen-map .citizen-map-caption{font-size:11px!important;line-height:1.6!important;margin-top:0!important}
@media(max-width:600px){.river-quality-control{top:10px;left:50px;padding:6px 8px;max-width:calc(100% - 105px)}}

/* ==== alert-design-system.css ==== */
/* Shared alert palette across station cards, map symbols and legend chips. */
:is([data-alert-level="0"],[data-station-alert="0"],.badge.level-0){--status:#078575;--status-ink:#05665c;--status-soft:#e0f4ee;--status-line:#a6dace}
:is([data-alert-level="1"],[data-station-alert="1"],.badge.level-1){--status:#d18a15;--status-ink:#845008;--status-soft:#fff2d5;--status-line:#edce90}
:is([data-alert-level="2"],[data-station-alert="2"],.badge.level-2){--status:#e86b2a;--status-ink:#a44317;--status-soft:#ffeadf;--status-line:#f3bc9c}
:is([data-alert-level="3"],[data-station-alert="3"],.badge.level-3){--status:#dc4056;--status-ink:#a6283c;--status-soft:#fde8ed;--status-line:#efa9b7}
:is([data-alert-level="4"],[data-station-alert="4"],.badge.level-4){--status:#a92868;--status-ink:#871c51;--status-soft:#f8e6ef;--status-line:#dfabc5}
:is([data-alert-level="unknown"],[data-station-alert="unknown"],.badge.level-null){--status:#7b8da2;--status-ink:#52677e;--status-soft:#edf1f6;--status-line:#cbd5e2}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon:is(.measured,.estimated)>.beacon-core{width:32px;height:32px;inset:5px;border-radius:50%;background:var(--status)!important;border:2px solid white!important;color:white!important;box-shadow:0 2px 6px #17375130}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon.selected>.beacon-core{box-shadow:0 0 0 2px #fff,0 0 0 4px #327bea,0 3px 10px #225ca440!important}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon .map-pin-label>strong em{background:var(--status-soft);color:var(--status-ink)}
:root body.observatory-interface .gis-map.water-alert-map .map-level-legend{gap:6px;padding:12px 0}
:root body.observatory-interface .gis-map.water-alert-map .map-level-legend>span{display:inline-flex;align-items:center;gap:5px;min-height:29px;padding:4px 8px;border:1px solid var(--status-line)!important;border-radius:7px;background:var(--status-soft)!important;color:var(--status-ink)!important;font-size:10px;font-weight:600}
:root body.observatory-interface .gis-map.water-alert-map .map-level-legend>span>svg{display:none}
:root body.observatory-interface .gis-map.water-alert-map .map-level-legend>span>b{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:var(--status);color:#fff;font-size:9px}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade #ob-network{padding:16px;background:#f5f8fd;border:1px solid #d3e1f2;border-radius:14px;box-shadow:none}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .ob-station-tabs{gap:12px;padding:4px 2px}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .river-node.ob-station-tab.sa-station{background:#fff;border:1px solid #c9d9ee;border-left:1px solid #c9d9ee;border-radius:10px;min-height:120px;padding:14px 12px;gap:14px;box-shadow:0 2px 5px #244e8510;transition:border-color .18s,background .18s,box-shadow .18s}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .river-node.ob-station-tab.sa-station.selected{background:#e5efff;border:1px solid #3579dc;border-left:1px solid #3579dc;outline:2px solid #3579dc;outline-offset:1px;box-shadow:0 3px 10px #235ba220}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .river-node.ob-station-tab.sa-station:hover{background:#f0f6ff;border-color:#6b9bde;box-shadow:0 4px 10px #244e8518}
:root body.observatory-interface .ob-flow-upgrade .sa-station .sa-identity strong{color:#183f70;font-size:16px;font-weight:750}
:root body.observatory-interface .ob-flow-upgrade .sa-station .sa-identity small{color:#58708f;font-size:11px}
:root body.observatory-interface .sa-station .sa-source-icon{background:var(--status);color:#fff;border:2px solid white;border-radius:50%;width:34px;height:34px;box-shadow:0 1px 4px #17375120}
:root body.observatory-interface .sa-station .sa-lamp{display:none}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .sa-station .sa-state .badge{background:var(--status-soft)!important;color:var(--status-ink)!important;border:1px solid var(--status-line)!important;padding:4px 7px;border-radius:6px;font-size:11px;font-weight:650}
:root body.observatory-interface .sa-station .sa-viewing{background:#2569ca;border-color:#2569ca;color:#fff;font-weight:650}

/* Alert halos animate independently of the geographic anchor and source glyph. */
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon{--alert-period:3.6s}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon[data-alert-level="2"]{--alert-period:2.9s}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon[data-alert-level="3"]{--alert-period:2.3s}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon[data-alert-level="4"]{--alert-period:1.8s}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon:is([data-alert-level="1"],[data-alert-level="2"],[data-alert-level="3"],[data-alert-level="4"])>.beacon-wave{display:block!important;position:absolute;inset:5px;width:32px;height:32px;box-sizing:border-box;border:1.5px solid var(--status);border-radius:50%;background:transparent;box-shadow:none;pointer-events:none;transform-origin:center;animation:gis-alert-halo var(--alert-period) ease-out infinite;z-index:0}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon:is([data-alert-level="1"],[data-alert-level="2"],[data-alert-level="3"],[data-alert-level="4"])>.wave-second{animation-delay:calc(var(--alert-period) / -2)}
:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon>.beacon-core{z-index:1}
@keyframes gis-alert-halo{0%{transform:scale(1);opacity:.55}75%,100%{transform:scale(1.75);opacity:0}}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .river-node.ob-station-tab.sa-station{min-height:98px;height:auto;padding:13px 12px;gap:12px;justify-content:center}
:root body.observatory-interface .sa-station .sa-top{gap:9px}
:root body.observatory-interface .sa-station .sa-bottom{min-height:0;display:block}
:root body.observatory-interface .sa-station .sa-source-icon{flex-basis:32px;width:32px;height:32px}
:root body.observatory-interface .sa-station .sa-status-chip{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:4px 8px;border:1px solid var(--status-line);border-radius:7px;background:var(--status-soft);color:var(--status-ink);font-size:11px;font-weight:650;line-height:1.3}
:root body.observatory-interface .sa-station .sa-status-chip>b{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:var(--status);color:#fff;font-size:9px;flex-shrink:0}
:root body.observatory-interface .sa-station .sa-selected-check{position:absolute;top:5px;right:6px;display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#2569ca;color:#fff;font-size:10px;font-weight:700}
:root body.observatory-interface .ob-flow-upgrade .sa-station .sa-identity strong{font-size:15px;line-height:1.3}
:root body.observatory-interface .ob-flow-upgrade .sa-station .sa-identity small{line-height:1.4;white-space:nowrap}
@media(prefers-reduced-motion:reduce){:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon>.beacon-wave{animation:none!important;transform:scale(1.2);opacity:.25}:root body:is(.observatory-interface,.community-view) .gis-beacon-map .gis-beacon>.wave-second{display:none!important}}

/* Compact station navigation with an active underline instead of a card grid. */
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade #ob-network{background:#fff;padding:14px 16px;border-color:#dce6f1}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .ob-station-tabs{gap:0;padding:0;background:#f4f7fc;border:1px solid #e0e8f2;border-radius:10px;overflow-x:auto}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .river-node.ob-station-tab.sa-station{border:0;border-right:1px solid #e0e8f2;border-radius:0;background:transparent;min-height:90px;padding:12px 14px;gap:8px;box-shadow:none;outline:0;justify-content:center}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .river-node.ob-station-tab.sa-station.selected{background:#e8f1ff;outline:0;border:0;border-right:1px solid #e0e8f2;box-shadow:inset 0 -3px #327bea;border-radius:0}
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .river-node.ob-station-tab.sa-station:hover{background:#eaf2fd;box-shadow:inset 0 -3px #9cbee9;border:0;border-right:1px solid #e0e8f2}
:root body.observatory-interface .sa-station .sa-source-icon{flex-basis:28px;width:28px;height:28px;box-shadow:none}
:root body.observatory-interface .sa-station .sa-source-icon svg{width:17px;height:17px}
:root body.observatory-interface .sa-station .sa-status-chip{padding:2px 6px;min-height:24px;font-size:10px;border-color:transparent}
:root body.observatory-interface .sa-station .sa-selected-check{display:none}
:root body.observatory-interface .ob-compact-summary .ob-kpi-main{display:flex!important;flex-direction:column;align-items:flex-start;gap:6px}
:root body.observatory-interface .ob-compact-summary .ob-kpi-main>span{display:block!important;font-size:11px;line-height:1.5;min-height:34px;max-width:none;color:#60758f}
:root body.observatory-interface .ob-compact-summary .ob-stat{background:#fff!important;border:1px solid #dce6f1;border-top:3px solid #7c9dc7!important;border-radius:10px;padding:14px;box-shadow:none}
:root body.observatory-interface .ob-compact-summary .ob-kpi-attention[data-has-attention="true"]{border-top-color:#e86b2a!important;background:#fffaf6!important}
:root body.observatory-interface .ob-compact-summary .ob-stat-top>span:first-child{font-size:12px;font-weight:650;color:#2b4669}
:root body.observatory-interface .ob-compact-summary .ob-kpi-main strong{font-size:30px;color:#214e87;line-height:1.2}
:root body.observatory-interface .ob-compact-summary .ob-kpi-action{font-size:10px;line-height:1.5;padding-top:9px;margin-top:9px;color:#3269a9}
:root body.observatory-interface .ob-compact-summary .ob-stat-top{min-height:34px;align-items:flex-start}
:root body.observatory-interface .ob-compact-summary .ob-kpi-main strong{width:auto!important;text-align:left!important;color:#214e87!important}
:root body.observatory-interface .ob-compact-summary .ob-kpi-main{justify-content:flex-start!important;text-align:left!important}

/* One-line station selector and readable numeric breakdowns. */
:root body.observatory-interface .ob-flow-upgrade.ob-reading-upgrade.ob-design-system.ob-gis-upgrade .river-node.ob-station-tab.sa-station{flex-direction:row;align-items:center;justify-content:center;min-height:48px;padding:10px 12px;gap:8px;flex:1 0 auto}
:root body.observatory-interface .sa-station .sa-source-icon,
:root body.observatory-interface .sa-station .sa-identity small{display:none}
:root body.observatory-interface .sa-station .sa-top{display:block}
:root body.observatory-interface .sa-station .sa-status-chip{background:transparent;border:0;padding:0;min-height:0;font-size:0;gap:0}
:root body.observatory-interface .sa-station .sa-status-chip>b{width:21px;height:21px;font-size:10px}
:root body.observatory-interface .ob-flow-upgrade .sa-station .sa-identity strong{font-size:13px;white-space:nowrap}
:root body.observatory-interface .ob-compact-summary .ob-kpi-main .kpi-unit{font-size:11px;font-weight:500;margin-left:6px;color:#71859e;display:inline}
.kpi-breakdown{margin:10px 0 0;padding:9px 0 0;border-top:1px solid #e5ecf4;display:grid;gap:7px}
.kpi-breakdown>div{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:11px;line-height:1.4}
.kpi-breakdown dt{color:#60758f}.kpi-breakdown dd{margin:0;color:#244c7b;font-size:13px;font-weight:750}

/* Reversible KPI variant: number and breakdown side by side. */
:root body.observatory-interface .ob-compact-summary.kpi-dashboard-v2 .ob-stat{padding:12px;min-height:0}
:root body.observatory-interface .ob-compact-summary.kpi-dashboard-v2 .ob-stat-top{min-height:32px;gap:5px}
.kpi-v2-body{display:grid;grid-template-columns:45px minmax(0,1fr);align-items:center;gap:9px;margin:5px 0 12px}
:root body.observatory-interface .ob-compact-summary.kpi-dashboard-v2 .ob-kpi-main{gap:0;align-items:flex-start}
:root body.observatory-interface .ob-compact-summary.kpi-dashboard-v2 .ob-kpi-main strong{font-size:32px;line-height:1.1}
.kpi-v2-body .ob-kpi-main>small{font-size:10px;color:#74869c;margin-top:3px}
.kpi-v2-body .kpi-breakdown{border-top:0;border-left:1px solid #e1e8f2;padding:0 0 0 9px;margin:0;gap:7px}
.kpi-v2-body .kpi-breakdown>div{font-size:10px;align-items:flex-start;gap:4px}
.kpi-v2-body .kpi-breakdown dd{font-size:12px;white-space:nowrap}
.kpi-ratio-track{height:5px;background:#e9eef5;border-radius:4px;overflow:hidden;display:flex}
.kpi-ratio-track>i{height:100%;display:block}
:root body.observatory-interface .ob-compact-summary.kpi-dashboard-v2 .ob-kpi-action{margin-top:8px;padding-top:8px;min-height:32px;font-size:10px}
@media(max-width:600px){.kpi-v2-body{grid-template-columns:40px minmax(0,1fr);gap:6px}}

/* ==== text-readability.css ==== */
/* Shared readable text hierarchy on light surfaces. */
:root{--muted:#4b617a;--ink:#18334f;--text-secondary:#435b76;--text-caption:#52677f}
body.observatory-interface,body.community-view{--muted:#4b617a;--ink:#18334f}
:root body :is(.muted,.text-muted,.note,.help-text,.field-help,.form-help,.empty,.loading){color:#4b617a!important;opacity:1}
:root body :is(.page-heading p,.page-header p,.ob-page-heading p,.ob-section-heading p,.card-subtitle,.section-subtitle,.signal-help,.geographic-warning,.map-popup-reason,.gis-detail-time,.gis-detail-reference,.geographic-coordinates,.citizen-measures-note,.citizen-location-note,.citizen-reading-explain,.ob-chart-sample-note){color:#435b76!important}
:root body.observatory-interface :is(.ob-stat-top>span:first-child,.kpi-breakdown dt,.ob-kpi-main>span,.ob-kpi-caption,.ob-chart-stats>div>span){color:#435b76!important}
:root body.observatory-interface :is(.kpi-unit,.kpi-v2-body .ob-kpi-main>small,.sa-identity small,.river-header p,.river-instruction,.gis-coordinate-label,.gis-coordinate-state,.geographic-legend,.map-angle,.gis-map-notes summary){color:#4b617a!important}
:root body :is(.table th,table thead th,table th,.form-grid label,.field label,.form-label){color:#344e6c!important}
:root body :is(table td small,.table td small,.monitor-timestamp,.monitor-point-state>span,.chart-statistics-slot small,.chart-panel-heading p,.chart-source-note,.reference-panel small,.instrument-caption){color:#4b617a!important}
:root body :is(input,textarea)::placeholder{color:#63748a;opacity:1}
:root body :is(.ob-kpi-action,.gis-basemap-switch button,.gis-layer-toolbar button,.map-segment button,.map-floating-tools button,.chart-selector button,.citizen-reading-help small){color:#315e93!important}
:root body :is(.sidebar nav a,.sidebar-bottom,.sidebar .sidebar-note p,#breadcrumb,.workspace>footer){color:#49617c!important}
:root body .sidebar nav a.active{color:#195bc5!important}
:root body :is(.chart,.chart-content,.chart-frame) svg text{fill:#4b617a!important}
:root body :is(.citizen-point-heading p,.citizen-point-tools>span,.citizen-point>span>small,.citizen-guide p,.citizen-search-empty){color:#435b76!important}
/* Preserve alert inks, selected white labels and dark basemap labels. */
:root body .gis-style-night .map-pin-label>strong{color:#e5efff!important}
:root body .gis-style-night .map-pin-label>span{color:#c1d1e5!important}
@media(forced-colors:active){body{--muted:CanvasText}}
:root body.observatory-interface .kpi-breakdown>div{font-size:11px!important;line-height:1.5}
:root body.observatory-interface .ob-compact-summary .ob-kpi-action{font-size:11px!important}
:root body.observatory-interface :is(.gis-detail-time,.gis-map-notes,.geographic-legend,.chart-source-note,.ob-chart-sample-note){font-size:12px!important;line-height:1.6}

/* Descriptive statistic colors are independent of water-quality severity. */
:root body.observatory-interface .ob-chart-stats>div:nth-child(1){background:#edf8f8;border-left:3px solid #16858d;padding:10px 14px;border-radius:7px}
:root body.observatory-interface .ob-chart-stats>div:nth-child(2){background:#edf3ff;border-left:3px solid #3476cf;padding:10px 14px;border-radius:7px}
:root body.observatory-interface .ob-chart-stats>div:nth-child(3){background:#f4effc;border-left:3px solid #8456b6;padding:10px 14px;border-radius:7px}
:root body.observatory-interface .ob-chart-stats>div:nth-child(1) strong{color:#116971!important}
:root body.observatory-interface .ob-chart-stats>div:nth-child(2) strong{color:#245caa!important}
:root body.observatory-interface .ob-chart-stats>div:nth-child(3) strong{color:#6c419b!important}
:root body.observatory-interface .ob-chart-stats{gap:10px}
:root body.observatory-interface .instrument-reading[data-reading-outside="true"] .ir-value{color:#af4619!important}
:root body.observatory-interface .instrument-reading[data-reading-alert="1"] .ir-value{color:#845008!important}
:root body.observatory-interface .instrument-reading[data-reading-alert="2"] .ir-value{color:#a44317!important}
:root body.observatory-interface .instrument-reading[data-reading-alert="3"] .ir-value{color:#a6283c!important}
:root body.observatory-interface .instrument-reading[data-reading-alert="4"] .ir-value{color:#871c51!important}
:root body.observatory-interface .instrument-reading:is([data-reading-outside="true"],[data-reading-alert="1"],[data-reading-alert="2"],[data-reading-alert="3"],[data-reading-alert="4"]) .ir-value>span{color:inherit!important}

#threshold-form .threshold-intro{font-size:13px;line-height:1.6;color:#435b76;margin:0 0 16px}
#threshold-form .threshold-rule-preview{font-size:12px;color:#435b76;margin:7px 0 0;line-height:1.5}
#threshold-form .threshold-unit{font-size:12px;color:#52677f;white-space:nowrap}
#threshold-form .field-values{display:flex;gap:8px;align-items:center}
#threshold-form .field-values select{min-width:150px;flex:1.3}
#threshold-form .field-values input{width:90px;flex:1}
#threshold-form .threshold-current-note{font-size:12px;line-height:1.6;color:#435b76;padding:10px;background:#f3f7fc;border-radius:7px}
#threshold-form .threshold-table th{font-size:12px}
#threshold-form .threshold-table td{padding:13px 10px;vertical-align:top}
@media(max-width:600px){#threshold-form .field-values{flex-wrap:wrap}#threshold-form .field-values select{min-width:120px}#threshold-form .threshold-table{min-width:580px}}
@media(max-width:1300px){#threshold-form>.grid.detail{grid-template-columns:minmax(0,1fr)}#threshold-form>.grid.detail>.stack:last-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
@media(max-width:700px){#threshold-form>.grid.detail>.stack:last-child{grid-template-columns:minmax(0,1fr)}}

/* Approval and version records should size to their content. */
#threshold-form>.grid.detail>.stack:last-child{min-width:0;gap:16px}
#threshold-form>.grid.detail>.stack:last-child>.card{min-width:0;height:auto}
#threshold-form .workflow{display:flex;flex-direction:column;gap:14px;padding:4px 0 14px;min-height:0;height:auto;justify-content:flex-start}
#threshold-form .workflow-step{display:flex;align-items:center;gap:12px;min-height:46px;margin:0;padding:0}
#threshold-form .workflow-step .number{flex:0 0 30px;width:30px;height:30px;font-size:14px}
#threshold-form .workflow-step .number:after{display:none}
#threshold-form .workflow-step>div{min-width:0}
#threshold-form .workflow-step strong{font-size:13px;line-height:1.4}
#threshold-form .workflow-step small{display:block;margin-top:3px;font-size:12px;line-height:1.4}
#threshold-form .version-card{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;min-width:0}
#threshold-form .version-card>div{flex:1 1 200px;min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}
#threshold-form .version-card>div strong{font-size:13px;overflow-wrap:anywhere}
#threshold-form .version-card>div small{font-size:12px;white-space:nowrap}
#threshold-form .version-card .badge{white-space:nowrap;width:auto;word-break:normal}
#threshold-form .version-card>button{flex:0 0 auto;white-space:nowrap;padding:7px 10px;font-size:12px}
@media(max-width:1300px){#threshold-form>.grid.detail>.stack:last-child>.card:last-child{grid-column:1/-1}}
@media(max-width:700px){#threshold-form .version-card>div{flex-basis:100%}#threshold-form .version-card>button{flex:1 1 auto}}

.compact-basis{margin:12px 0;padding:0;border:1px solid #dce6f1;border-radius:8px;background:#f6f9fd}
.compact-basis summary{display:flex;align-items:center;gap:8px;padding:10px 12px;cursor:pointer;font-size:12px;color:#435b76;list-style:none}
.compact-basis summary>svg{width:16px;height:16px;flex-shrink:0}.compact-basis summary>svg:last-child{margin-left:auto}
.compact-basis-body{padding:0 12px 12px;font-size:12px;line-height:1.6;color:#435b76}
.compact-basis-body p{margin:5px 0}.compact-basis-body a{color:#315e93;font-weight:600}

.gate-details{padding-left:18px;margin:10px 0 0;color:#435b76;font-size:12px;line-height:1.65}.gate-details li+li{margin-top:5px}.gate-item{min-width:0;overflow-wrap:anywhere}

.account-scope{border:1px solid #dce5f2;border-radius:8px;padding:12px}.account-scope legend{font-weight:600;color:#1e304d}.scope-stations{display:flex;flex-wrap:wrap;gap:10px 18px}.scope-stations label{display:flex;gap:6px;align-items:center}

/* ==== royal-blue.css ==== */
/* Reference: Royal Blue Vietnamese Water-Quality Dashboard, 06/10/2026.
   Presentation only. Monitoring values, timestamps and rules remain API-driven. */
:root body#royal-blue-app.royal-blue-interface {
 --rb-blue:#0862ff; --rb-ink:#061b70; --rb-text:#173eae; --rb-muted:#5976bd;
 --teal:#0862ff; --teal-dark:#064ee0; --ink:#061b70; --muted:#5976bd;
 --bg:#edf5ff; --white:#fff; --font-family:'Be Vietnam Pro', 'Segoe UI', sans-serif;
 --sidebar-width:200px; --card-radius:9px;
 font-family:var(--font-family); color:var(--rb-ink); background:#edf5ff;
}
:root body#royal-blue-app.royal-blue-interface .workspace {background:linear-gradient(115deg,#f2f7ff,#eaf4ff);}
:root body#royal-blue-app.royal-blue-interface #content {padding:18px 18px 14px;max-width:1700px;margin:auto;}
:root body#royal-blue-app.royal-blue-interface .sidebar {background:#fff;border-right:1px solid #deebff;box-shadow:none;color:var(--rb-text);}
:root body#royal-blue-app.royal-blue-interface .brand {padding:19px 12px 22px;gap:9px;}
:root body#royal-blue-app.royal-blue-interface #brand-name {color:var(--rb-ink);font-size:14px;font-weight:800;letter-spacing:-.3px;}
:root body#royal-blue-app.royal-blue-interface #brand-subtitle {color:var(--rb-muted);font-size:11px;margin-top:4px;}
:root body#royal-blue-app.royal-blue-interface #brand-logo {color:#0877ff;}
:root body#royal-blue-app.royal-blue-interface #navigation {padding:0 10px;}
:root body#royal-blue-app.royal-blue-interface #navigation a {color:var(--rb-text);font-size:13px;font-weight:500;border:0;border-radius:8px;margin:2px 0;min-height:44px;padding:10px;gap:12px;background:transparent;box-shadow:none;}
:root body#royal-blue-app.royal-blue-interface #navigation a.active {background:#e8f2ff;color:var(--rb-blue);font-weight:700;box-shadow:none;}
:root body#royal-blue-app.royal-blue-interface #navigation a.active::before {display:none;}
:root body#royal-blue-app.royal-blue-interface #navigation a svg {width:23px;height:23px;color:#0862ff;}
:root body#royal-blue-app.royal-blue-interface #navigation a[href='#alerts'] svg {color:#ff2836;}
:root body#royal-blue-app.royal-blue-interface #navigation a:is([href='#manual'],[href='#scenarios']) svg {color:#8b18ff;}
:root body#royal-blue-app.royal-blue-interface #navigation a[href='#thresholds'] svg {color:#1643b0;}
:root body#royal-blue-app.royal-blue-interface .ob-nav-label {display:none;}
:root body#royal-blue-app.royal-blue-interface .ob-sidebar-note {display:none;}
:root body#royal-blue-app.royal-blue-interface .sidebar-bottom {display:none;}
:root body#royal-blue-app.royal-blue-interface .rb-sidebar-account {margin-top:auto;padding:14px 10px;border-top:1px solid #dce9ff;}
:root body#royal-blue-app.royal-blue-interface .rb-sidebar-account .account {display:flex;gap:8px;width:100%;padding:8px 0;color:var(--rb-ink);background:transparent;border:0;font-size:12px;}
:root body#royal-blue-app.royal-blue-interface .avatar {background:#deecff;color:var(--rb-blue);}
:root body#royal-blue-app.royal-blue-interface .topbar {height:54px;min-height:54px;padding:8px 18px;border-bottom:1px solid #d5e5ff;background:#f7fbff;box-shadow:none;}
:root body#royal-blue-app.royal-blue-interface #breadcrumb {color:#294db5;font-size:12px;}
:root body#royal-blue-app.royal-blue-interface .topbar-right {gap:16px;}
:root body#royal-blue-app.royal-blue-interface .notification-button {color:#2143b9;}
.rb-clock {font-size:12px;white-space:nowrap;color:#4b6ab6;}
.rb-top-export {display:inline-flex;align-items:center;gap:7px;background:#0862ff;color:white;padding:9px 14px;font-size:12px;font-weight:600;border-radius:6px;text-decoration:none;white-space:nowrap;}
.rb-top-export:hover {background:#064ee0;}
:root body#royal-blue-app.royal-blue-interface .btn:not(.secondary):not(.danger) {background:#0862ff;border-color:#0862ff;color:white;box-shadow:none;}
:root body#royal-blue-app.royal-blue-interface .ob-page-heading {margin:0 0 15px;padding:0;align-items:center;}
:root body#royal-blue-app.royal-blue-interface .ob-page-heading h1 {font-size:29px;font-weight:800;color:var(--rb-ink);line-height:1.35;letter-spacing:-.8px;margin:0 0 4px;}
:root body#royal-blue-app.royal-blue-interface .ob-page-heading p {color:var(--rb-text);font-size:14px;margin:0;}
:root body#royal-blue-app.royal-blue-interface .ob-heading-actions {display:none;}
:root body#royal-blue-app.royal-blue-interface .rb-summary {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 12px;}
:root body#royal-blue-app.royal-blue-interface .rb-summary .ob-stat {display:grid;grid-template-columns:46px minmax(0,1fr);grid-template-rows:auto auto;gap:6px 12px;position:relative;padding:13px 12px 10px;min-height:108px;border:1px solid #d4e5ff;border-radius:8px;background:#fff;box-shadow:none;overflow:hidden;}
:root body#royal-blue-app.royal-blue-interface .rb-summary .ob-stat::before {display:none;}
.rb-kpi-icon {display:grid;place-items:center;width:44px;height:44px;background:#e4efff;border-radius:8px;color:#0862ff;}
.rb-kpi-content {display:flex;flex-direction:column;gap:1px;min-width:0;}
.rb-kpi-label {font-size:12px;color:#092c89;font-weight:600;line-height:1.5;}
.rb-kpi-value {font-size:36px;line-height:1.12;letter-spacing:-1px;color:#061b70;font-weight:800;}
.rb-kpi-value small {font-size:24px;margin-left:3px;color:#0862ff;}
.rb-kpi-caption {grid-column:1/-1;font-size:10px;color:#5876bd;line-height:1.5;margin:0;padding-right:18px;}
.rb-kpi-link {position:absolute;right:9px;bottom:9px;color:#0862ff;border:0;background:none;padding:2px;display:flex;}
:root body#royal-blue-app.royal-blue-interface .rb-summary .ob-kpi-fresh .rb-kpi-icon {background:#e2f7ff;}
:root body#royal-blue-app.royal-blue-interface .rb-summary .ob-kpi-attention[data-has-attention=true] {border-color:#ffac26;background:#fffaf1;}
.ob-kpi-attention .rb-kpi-icon {color:#ff8b00;background:#fff0d4;}
.ob-kpi-attention .rb-kpi-label {color:#d85d00;}
.ob-kpi-pending .rb-kpi-icon {color:#092c89;}
:root body#royal-blue-app.royal-blue-interface .ob-network {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:5px;border:1px solid #e0ecff;border-radius:8px;background:#fff;margin-bottom:12px;}
:root body#royal-blue-app.royal-blue-interface .ob-network .ob-section-heading {grid-column:2;grid-row:1;margin:0;}
:root body#royal-blue-app.royal-blue-interface .ob-network .ob-section-heading h2 {display:none;}
:root body#royal-blue-app.royal-blue-interface .ob-network .ob-station-tabs {grid-column:1;grid-row:1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:0;border:0;background:transparent;overflow:auto;}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-station {height:36px;min-height:36px;min-width:65px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #e1edff;border-radius:6px;background:#f4f8ff;color:#173eae;padding:7px 10px;box-shadow:none;}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-station.selected {background:#0862ff;color:#fff;border-color:#0862ff;box-shadow:0 2px 6px #0862ff20;}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-station::before {display:none;}
:root body#royal-blue-app.royal-blue-interface .ob-network :is(.sa-source-icon,.sa-identity small,.sa-selected-check) {display:none;}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-top {display:contents;}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-identity strong {color:inherit;font-size:12px;}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-bottom {display:block;padding:0;background:none;border:0;}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-status-chip {display:block;width:10px;height:10px;min-width:0;border-radius:50%;padding:0;font-size:0;background:var(--sa-color);box-shadow:none;border:1px solid #ffffffa0;}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-status-chip b {display:none;}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-priority {height:34px;border:1px solid #ff3540;border-radius:6px;background:#fff;color:#f02030;padding:6px 9px;font-size:11px;gap:5px;white-space:nowrap;}
:root body#royal-blue-app.royal-blue-interface .ob-route-disclosure {grid-column:1/-1;justify-self:end;font-size:11px;}
:root body#royal-blue-app.royal-blue-interface .ob-route-disclosure:not([open]) {position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden;}
:root body#royal-blue-app.royal-blue-interface .ob-route-disclosure:focus-within {position:static;clip-path:none;width:auto;height:auto;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-workspace-columns {display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:start;gap:12px;margin-bottom:12px;}
:root body#royal-blue-app.royal-blue-interface .ob-workspace-column {gap:12px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview :is(.station-instrument,.analysis-trend,.data-context,.fleet-comparison) {padding:13px;border:1px solid #dceaff;border-radius:9px;background:#fff;box-shadow:none;}
:root body#royal-blue-app.royal-blue-interface .ob-overview :is(h2,h3) {color:#061b70;font-size:18px;line-height:1.4;font-weight:750;letter-spacing:-.45px;margin:0;}
:root body#royal-blue-app.royal-blue-interface .ob-overview :is(.analysis-heading,.rb-station-heading) h2 {display:flex;align-items:center;gap:9px;}
.rb-station-heading {display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:10px;}
:root body#royal-blue-app.royal-blue-interface .rb-station-heading h2 {flex:1;min-width:180px;font-size:16px;}
.rb-station-heading .badge {font-size:10px;white-space:nowrap;background:#e6f0ff;color:#0862ff;border:1px solid #cce0ff;border-radius:16px;padding:4px 9px;}
:root body#royal-blue-app.royal-blue-interface .rb-station-heading .ob-change-station {margin:0;}
:root body#royal-blue-app.royal-blue-interface .ob-measurement-header {display:block;padding:0;margin:0;border:0;}
:root body#royal-blue-app.royal-blue-interface .station-instrument .hydro-hero {margin:0 0 10px;padding:11px 12px;border:1px solid #ffd48c;border-radius:7px;background:#fff8ec;color:#bf6200;display:block;}
:root body#royal-blue-app.royal-blue-interface .station-instrument .hydro-hero::before {display:none;}
:root body#royal-blue-app.royal-blue-interface .station-instrument .hydro-hero.level-0 {border-color:#b7d7ff;background:#f0f7ff;}
:root body#royal-blue-app.royal-blue-interface .station-instrument .hydro-hero:is(.level-2,.level-3,.level-4) {border-color:#ffb2ba;background:#fff1f3;}
:root body#royal-blue-app.royal-blue-interface .station-instrument .hydro-hero.level-null {border-color:#d5dfef;background:#f3f6fb;}
:root body#royal-blue-app.royal-blue-interface .station-instrument .hydro-hero .badge {background:transparent;font-size:13px;border:0;padding:0;box-shadow:none;}
:root body#royal-blue-app.royal-blue-interface .station-instrument .hydro-hero p {font-size:11px;color:#4269b3;margin:5px 0 0;}
:root body#royal-blue-app.royal-blue-interface .station-instrument .hydro-hero :is(.hydro-eyebrow,.hydro-hero-meta,.hydro-hero>a) {display:none;}
:root body#royal-blue-app.royal-blue-interface .station-instrument .ir-reference-banner {margin:0 0 10px;background:#e7f2ff;border-color:#d0e3ff;border-radius:6px;padding:9px 10px;color:#0862ff;}
:root body#royal-blue-app.royal-blue-interface .station-instrument .ir-reference-banner strong {font-size:12px;color:#092578;}
:root body#royal-blue-app.royal-blue-interface .station-instrument .ir-reference-banner span {font-size:10px;color:#5475bc;}
:root body#royal-blue-app.royal-blue-interface .station-instrument .ir-reading-guide {display:none;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .instrument-readings {gap:6px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .instrument-readings>.metric.instrument-reading {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:10px 9px;border:1px solid #e2edff;border-radius:7px;background:linear-gradient(110deg,#fff,#fbfdff);min-height:77px;box-shadow:none;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-name {font-size:12px;color:#092578;gap:7px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-name strong {font-weight:650;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-icon {width:30px;height:30px;border-radius:6px;background:#e5f0ff;color:#0862ff;}
:root body#royal-blue-app.royal-blue-interface [data-parameter=NH4] .ir-icon {color:#9024e8;background:#f1e8ff;}
:root body#royal-blue-app.royal-blue-interface [data-parameter=PH] .ir-icon {color:#009c91;background:#e2f6ef;}
:root body#royal-blue-app.royal-blue-interface [data-parameter=TEMP] .ir-icon {color:#ff1836;background:#ffeaf0;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-value {font-size:27px;font-weight:800;color:#061b70;margin:2px 0 0 37px;line-height:1.2;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-value>span {font-size:11px;color:#183eac;font-weight:500;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-source {display:none;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-quality {font-size:10px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-scale-heading {margin-bottom:5px;gap:2px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-scale-heading>span {font-size:9px;color:#6480bb;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-scale-heading>strong {font-size:10px;color:#193c9f;font-weight:600;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-status {color:#00a27e;font-size:10px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-status-neutral {color:#6380b6;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-evidence>summary {font-size:9px;color:#5471b0;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-gauge :is(.reading-ticks,.standard-gauge-ticks) {font-size:9px;color:#6380b6;height:12px;margin-top:3px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .standard-gauge-pointer {background:#063ca8;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-extra-readings {margin-top:7px;font-size:11px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-measurement-footer {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 0 0;margin-top:7px;border-top:1px solid #e5edfc;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .instrument-provenance {display:block;font-size:10px;color:#234ba6;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .instrument-provenance>span {display:flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:10px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .instrument-provenance strong {font-size:10px;font-weight:500;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .instrument-detail {font-size:11px;padding:7px 10px;white-space:nowrap;border-radius:5px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .rb-coverage-card h2,.rb-source-card h2 {display:flex;align-items:center;gap:10px;}
.rb-coverage-card h2 svg,.rb-source-card h2 svg {color:#0862ff;}
.rb-coverage-value {display:flex;align-items:center;gap:20px;margin:8px 0 5px;}
.rb-coverage-value>strong {font-size:44px;line-height:1;color:#0862ff;font-weight:800;letter-spacing:-1px;}
.rb-coverage-value small {font-size:29px;margin-left:4px;}
.rb-coverage-value>span {font-size:12px;color:#123991;line-height:1.6;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-data-progress {height:10px;background:#e6efff;border-radius:10px;margin:6px 0 0;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-data-progress i {background:#0862ff;border-radius:10px;}
.rb-missing-note {font-size:11px;color:#6076aa;margin:6px 0;}
.rb-reference-details>summary {display:flex;align-items:center;justify-content:space-between;gap:9px;cursor:pointer;list-style:none;margin:8px 0 0 36px;color:#0862ff;}
.rb-reference-details>summary::-webkit-details-marker {display:none;}
.rb-reference-details>summary strong {display:block;font-size:12px;color:#0a287a;}
.rb-reference-details>summary span {display:block;font-size:10px;line-height:1.6;color:#6380bc;margin-top:3px;}
.rb-reference-details[open]>summary {margin-bottom:12px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-heading {margin-bottom:8px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-heading p {font-size:12px;color:#2149aa;margin:3px 0 0;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .chart-quick-label {display:none;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .chart-parameters {gap:5px;margin:10px 0 8px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .chart-parameters button {padding:7px 5px;border:1px solid #e0ebff;border-radius:6px;background:#f5f9ff;color:var(--chart-accent);font-size:10px;gap:5px;min-height:32px;box-shadow:none;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .chart-parameters button[aria-pressed=true] {background:#0862ff;border-color:#0862ff;color:white;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .chart-parameters button>span {display:none;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-chart-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0;border:0;margin:0;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-chart-stats>div {display:block;padding:10px 12px;border:0;border-radius:6px;background:#ddf8f3;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-chart-stats>div:nth-child(2) {background:#e3f0ff;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-chart-stats>div:nth-child(3) {background:#eee2ff;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-chart-stats span {font-size:11px;color:#2645a4;display:block;margin-bottom:4px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-chart-stats strong {font-size:23px;color:#061b70;line-height:1.25;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-chart-stats small {font-size:11px;color:#2447a9;margin-left:3px;font-weight:400;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-chart-stats>div:nth-child(3) :is(strong,span) {color:#6a19b4;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-chart-sample-note {font-size:10px;color:#6882b6;margin:6px 0 0;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .chart text {fill:#254bac;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .chart-interaction-hint {font-size:10px;color:#6480b6;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .chart-legend {font-size:10px;color:#5376b9;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison {margin-bottom:0;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-count-pill {font-size:10px;padding:7px 9px;color:#4b70bc;background:#f0f6ff;border-radius:5px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison table {font-size:11px;border:1px solid #e0ebff;border-radius:7px;overflow:hidden;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison th {font-size:10px;color:#254baa;background:#eff6ff;padding:8px 10px;border-color:#e0ebff;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison td {font-size:11px;color:#2449a4;padding:7px 10px;border-color:#edf2ff;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison tr:hover td {background:#f2f7ff;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison .badge {font-size:10px;border-radius:6px;padding:4px 8px;white-space:nowrap;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison .table-footer {display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#6480b6;font-size:10px;padding-top:12px;}
.fleet-comparison .table-footer>span:first-child {display:flex;align-items:center;gap:8px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .river-observatory-map {border:0;padding:0;background:none;box-shadow:none;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map.water-alert-map {position:relative;padding:13px;border:1px solid #dceaff;border-radius:9px;background:#fff;box-shadow:none;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .river-header {margin:0 0 8px;padding:0;border:0;align-items:center;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .river-header h3 {font-size:17px;color:#061b70;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .river-instruction {font-size:18px;font-weight:750;letter-spacing:-.4px;color:#061b70;display:flex;align-items:center;gap:9px;text-transform:none;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .river-header h3 {font-size:12px;font-weight:500;color:#224cae;margin:3px 0 0 31px;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .river-header p {font-size:10px;color:#6680b6;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-actions {display:none;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-situation {display:flex;position:absolute;right:13px;top:13px;width:auto;padding:6px 8px;gap:5px;border:1px solid #ffd694;border-radius:6px;background:#fff8ed;box-shadow:none;color:#eb7900;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-situation>div:first-of-type {min-width:0;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-situation strong {font-size:10px;font-weight:600;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-situation-symbol {width:17px;height:17px;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-situation :is(p,.gis-status-counts) {display:none;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .gis-control-row {border:0;padding:0;margin:8px 0;background:none;display:block;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .gis-basemap-switch {background:none;gap:4px;padding:0;border:0;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .gis-basemap-switch button {padding:5px 10px;font-size:10px;color:#1946b3;border:1px solid #dfebff;border-radius:18px;background:#f3f8ff;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .gis-basemap-switch button[aria-pressed=true] {background:#0862ff;color:white;border-color:#0862ff;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .gis-layer-toolbar {display:none;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .river-canvas {height:440px;border:1px solid #d9e8fd;border-radius:7px;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map #geographic-map {height:440px!important;background:#e9f5f9;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-level-legend {padding:10px 2px 0;gap:9px;display:flex;flex-wrap:wrap;border:0;background:none;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-level-legend>span {font-size:9px;color:#4464b3;display:inline-flex;align-items:center;gap:5px;background:none;border:0;padding:0;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-level-legend>span::before {content:'';width:11px;height:11px;border-radius:50%;background:var(--point-color);}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-level-legend :is(svg,b) {display:none;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .river-footer {font-size:10px;padding:8px 0 0;border:0;gap:8px;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .gis-map-notes {font-size:10px;margin-top:7px;color:#5c78b3;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .gis-coordinate-panel {font-size:10px;padding:6px 8px;margin:7px 0 0;background:#f4f8ff;border-color:#e0ebff;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .gis-coordinate-panel :is(strong,span,small) {font-size:10px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview [data-station-alert='0'],:root body#royal-blue-app.royal-blue-interface :is(.ob-overview,.shared-observatory-map) [data-alert-level='0'] {--sa-color:#12a150!important;--point-color:#12a150!important;}
:root body#royal-blue-app.royal-blue-interface .ob-overview [data-station-alert='1'],:root body#royal-blue-app.royal-blue-interface :is(.ob-overview,.shared-observatory-map) [data-alert-level='1'] {--sa-color:#f5c000!important;--point-color:#f5c000!important;}
:root body#royal-blue-app.royal-blue-interface .ob-overview [data-station-alert='2'],:root body#royal-blue-app.royal-blue-interface :is(.ob-overview,.shared-observatory-map) [data-alert-level='2'] {--sa-color:#ff7a1a!important;--point-color:#ff7a1a!important;}
:root body#royal-blue-app.royal-blue-interface .ob-overview [data-station-alert='unknown'],:root body#royal-blue-app.royal-blue-interface :is(.ob-overview,.shared-observatory-map) [data-alert-level='unknown'] {--sa-color:#809acd!important;--point-color:#809acd!important;}
:root body#royal-blue-app.royal-blue-interface .badge.level-0 {color:#0b7a3b;background:#e7f7ee;border-color:#bfe6cf;}
:root body#royal-blue-app.royal-blue-interface .badge.level-1 {color:#946b00;background:#fff8db;border-color:#f6e08a;}
:root body#royal-blue-app.royal-blue-interface .badge.level-2 {color:#c25200;background:#fff0e3;border-color:#ffd1a8;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-pin-label {border-color:#bdd8ff;background:#fffffff2;color:#092c89;}
:root body#royal-blue-app.royal-blue-interface footer {color:#6783ba;font-size:10px;background:transparent;border-top:0;}
:root body#royal-blue-app.royal-blue-interface :is(button,a,summary,input,select):focus-visible {outline:3px solid #8cb9ff;outline-offset:3px;}
@media(min-width:1000px) {
 :root body#royal-blue-app.royal-blue-interface:not(.community-view) .sidebar {display:flex;transform:none;visibility:visible;width:200px;}
 :root body#royal-blue-app.royal-blue-interface:not(.community-view) .workspace {margin-left:200px;width:calc(100% - 200px);}
 :root body#royal-blue-app.royal-blue-interface:not(.community-view) .mobile-menu {display:none;}
 :root body#royal-blue-app.royal-blue-interface:not(.community-view) .topbar #account-button {display:none;}
}
@media(max-width:999px) {
 :root body#royal-blue-app.royal-blue-interface .ob-overview .ob-workspace-columns {grid-template-columns:1fr;}
 :root body#royal-blue-app.royal-blue-interface .workspace {margin-left:0;width:100%;}
 :root body#royal-blue-app.royal-blue-interface .rb-summary .ob-stat {gap:6px 8px;padding:11px 9px;}
 :root body#royal-blue-app.royal-blue-interface .topbar .rb-clock {display:none;}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .station-instrument .instrument-readings>.metric {grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
}
@media(max-width:600px) {
 :root body#royal-blue-app.royal-blue-interface #content {padding:14px 10px;}
 :root body#royal-blue-app.royal-blue-interface .topbar {padding:8px 10px;}
 :root body#royal-blue-app.royal-blue-interface .topbar-right {gap:8px;}
 :root body#royal-blue-app.royal-blue-interface .topbar .rb-top-export {font-size:10px;padding:8px;}
 :root body#royal-blue-app.royal-blue-interface .topbar .account-name {display:none;}
 :root body#royal-blue-app.royal-blue-interface .ob-page-heading h1 {font-size:23px;}
 :root body#royal-blue-app.royal-blue-interface .ob-page-heading p {font-size:12px;}
 :root body#royal-blue-app.royal-blue-interface .rb-summary {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
 :root body#royal-blue-app.royal-blue-interface .rb-summary .ob-stat {min-height:100px;}
 .rb-kpi-value {font-size:31px;}.rb-kpi-label {font-size:11px;}
 :root body#royal-blue-app.royal-blue-interface .ob-network {display:flex;flex-wrap:wrap;gap:6px;}
 :root body#royal-blue-app.royal-blue-interface .ob-network .ob-station-tabs {order:1;width:100%;}
 :root body#royal-blue-app.royal-blue-interface .ob-network .ob-section-heading {order:2;margin-left:auto;}
 :root body#royal-blue-app.royal-blue-interface .ob-overview :is(.station-instrument,.analysis-trend,.data-context,.fleet-comparison) {padding:11px;}
 :root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map.water-alert-map {padding:10px;}
 :root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-situation {right:10px;top:12px;}
 :root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .river-canvas {height:340px;}
 :root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map #geographic-map {height:340px!important;}
 :root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .river-instruction {font-size:15px;}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .ob-chart-stats>div {padding:9px 7px;}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .ob-chart-stats strong {font-size:20px;}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .ob-chart-stats small {font-size:9px;}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .chart-parameters {grid-template-columns:repeat(3,minmax(0,1fr));}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .instrument-readings>.metric.instrument-reading {grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:7px;}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .metric.instrument-reading>.ir-identity {display:block;grid-column:1;grid-row:1;}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .metric.instrument-reading>.ir-comparison {grid-column:2;grid-row:1;border:0;padding:0;}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .ir-name {font-size:11px;gap:5px;}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .ir-value {font-size:24px;margin-left:35px;}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .ir-scale-heading>span {font-size:8px;}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .ir-scale-heading>strong {font-size:9px;}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .instrument-provenance>span {font-size:9px;}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .instrument-detail {padding:7px;font-size:10px;}
 .rb-coverage-value {gap:12px;}.rb-coverage-value>span {font-size:11px;}
}
:root body#royal-blue-app.royal-blue-interface #navigation a {color:#173eae!important;}
:root body#royal-blue-app.royal-blue-interface #navigation a.active {color:#0862ff!important;}
:root body#royal-blue-app.royal-blue-interface :is(.river-instruction,.river-header p,.geographic-legend,.gis-map-notes summary,#breadcrumb) {color:#244baa!important;}
:root body#royal-blue-app.royal-blue-interface .gis-basemap-switch button {color:#214bac!important;}
:root body#royal-blue-app.royal-blue-interface .gis-basemap-switch button[aria-pressed=true] {color:#fff!important;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-workspace-columns {grid-template-areas:none;}
:root body#royal-blue-app.royal-blue-interface .ob-workspace-column {display:flex;flex-direction:column;}
:root body#royal-blue-app.royal-blue-interface .ob-overview :is(#ob-map,.station-instrument,.analysis-trend,.data-context) {grid-area:auto;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .chart svg text {fill:#244baa!important;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .instrument-reading .ir-value {color:#061b70!important;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .instrument-reading .ir-value>span {color:#244baa!important;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-chart-stats>div strong {color:#061b70!important;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-chart-stats>div:nth-child(3) strong {color:#6a19b4!important;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison th {color:#244baa!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .gis-map-notes {font-size:10px!important;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-chart-sample-note {font-size:10px!important;}
:root body#royal-blue-app.royal-blue-interface .sidebar {padding:0;}
:root body#royal-blue-app.royal-blue-interface .brand {width:100%;box-sizing:border-box;}
:root body#royal-blue-app.royal-blue-interface .brand>span:last-child {flex:1;min-width:0;}
:root body#royal-blue-app.royal-blue-interface #brand-name {font-size:13px;white-space:nowrap;}
:root body#royal-blue-app.royal-blue-interface #brand-subtitle {white-space:nowrap;}
:root body#royal-blue-app.royal-blue-interface #navigation {width:100%;box-sizing:border-box;}
:root body#royal-blue-app.royal-blue-interface #navigation a {gap:10px;min-height:43px;font-size:12px;padding:9px 8px;}
:root body#royal-blue-app.royal-blue-interface #navigation a svg {padding:0;background:none;border-radius:0;flex-shrink:0;width:23px;height:23px;box-shadow:none;}
:root body#royal-blue-app.royal-blue-interface .rb-support {padding-top:8px;}
:root body#royal-blue-app.royal-blue-interface .rb-support>summary {font-size:10px;color:#6983b8;padding:8px;cursor:pointer;}
:root body#royal-blue-app.royal-blue-interface .rb-summary .ob-stat {border-top-width:1px;}
:root body#royal-blue-app.royal-blue-interface .rb-summary .ob-kpi-network {border-top-color:#d4e5ff;}
:root body#royal-blue-app.royal-blue-interface .rb-summary .ob-kpi-fresh {border-top-color:#d4e5ff;}
:root body#royal-blue-app.royal-blue-interface .rb-summary .ob-kpi-attention[data-has-attention=true] {border-top-color:#ffac26;}
:root body#royal-blue-app.royal-blue-interface .rb-summary .ob-kpi-pending {border-top-color:#d4e5ff;}
:root body#royal-blue-app.royal-blue-interface .ob-page-heading p {color:#173eae!important;}
:root body#royal-blue-app.royal-blue-interface .rb-station-heading .badge {font-size:9px;color:#0862ff;background:#e6f0ff;border:1px solid #cce0ff;border-radius:14px;padding:4px 7px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .instrument-readings>.metric.instrument-reading {grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:7px;padding:9px 7px;min-height:81px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-scale-heading {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px;align-items:start;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-scale-heading>span {font-size:8px;line-height:1.4;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-scale-heading>strong {font-size:9px;line-height:1.4;white-space:nowrap;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .gauge-unconfigured .ir-scale-heading {display:block;text-align:right;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .gauge-unconfigured .ir-scale-heading>span {display:none;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-gauge :is(.standard-gauge-visual,.reading-visual) {margin:7px 0 0;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-result {display:block;position:relative;margin-top:3px;padding-right:12px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-status {display:inline-flex;font-size:9px;line-height:1.4;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-evidence {position:static;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-evidence>summary {position:absolute;right:0;top:0;font-size:0;gap:0;padding:4px 0;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-evidence>summary::after {width:5px;height:5px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-evidence[open] {margin-top:5px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .reading-ticks>span:not(:first-child):not(:last-child),
:root body#royal-blue-app.royal-blue-interface .ob-overview .standard-gauge-ticks>span:not(:first-child):not(:last-child) {display:none;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend {min-height:0;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .hydro-hero.level-1 {background:#fff8ec;border-color:#ffd48c;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .hydro-hero.level-1 .badge {color:#946b00!important;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .map-situation {background:#fff8db!important;color:#946b00!important;border-color:#f6e08a!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-style-night .map-pin-label {background:#14294a;border-color:#6085b7;}
@media(max-width:600px) {
 :root body#royal-blue-app.royal-blue-interface .brand {padding-top:20px;}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .instrument-readings>.metric.instrument-reading {grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .ir-scale-heading {display:flex;}
}
@media(prefers-reduced-motion:reduce) {body#royal-blue-app.royal-blue-interface * {scroll-behavior:auto!important;}}
/* Replace legacy !important presentation rules at the final cascade boundary. */
:root body#royal-blue-app.royal-blue-interface .rb-summary .ob-stat {border-top:1px solid #d4e5ff!important;background:#fff!important;}
:root body#royal-blue-app.royal-blue-interface .rb-summary .ob-kpi-attention[data-has-attention=true] {border-color:#ffac26!important;background:#fffaf1!important;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .hydro-hero.level-1 {background:#fff8ec!important;border-color:#ffd48c!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .river-header p {display:none;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-situation {padding:6px 8px!important;margin:0;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-level-legend>span {min-height:0;line-height:1.4;flex:0 0 auto;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .gis-location-bar {padding:5px 7px;margin:6px 0 0;min-height:0;gap:5px;font-size:9px;background:#f5f9ff;border:1px solid #e2edff;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .gis-location-bar :is(span,strong,small) {font-size:9px;line-height:1.4;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .geographic-legend {gap:5px;line-height:1.4;font-size:9px!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .geographic-legend>span {font-size:9px;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .gis-map-notes {padding:6px 0 0;min-height:0;line-height:1.4!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .gis-map-notes>summary {font-size:9px;line-height:1.4;min-height:0;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-name {font-size:11px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-value {font-size:25px;gap:3px;margin-left:35px;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ir-value>span {font-size:10px;}

/* Availability and provenance share a card; they do not imply water compliance. */
:root body#royal-blue-app.royal-blue-interface .rb-data-basis h2 {display:flex;align-items:center;gap:9px;}
:root body#royal-blue-app.royal-blue-interface .rb-data-basis h2 svg {color:#0862ff;}
:root body#royal-blue-app.royal-blue-interface .rb-data-availability {display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:13px 0 5px;color:#173eae;}
:root body#royal-blue-app.royal-blue-interface .rb-data-availability>span {font-size:13px;font-weight:600;}
:root body#royal-blue-app.royal-blue-interface .rb-data-availability>strong {font-size:22px;color:#061b70;}
:root body#royal-blue-app.royal-blue-interface .rb-data-availability small {font-size:11px;font-weight:500;}
:root body#royal-blue-app.royal-blue-interface .rb-data-usable {font-size:10px;line-height:1.6;color:#5974ad;margin:0 0 10px;}
:root body#royal-blue-app.royal-blue-interface .rb-data-issues {padding:9px 10px;background:#f5f8ff;border:1px solid #e1eaff;border-radius:6px;}
:root body#royal-blue-app.royal-blue-interface .rb-data-clear {font-size:11px;line-height:1.6;margin:0;color:#3c5d9c;}
:root body#royal-blue-app.royal-blue-interface .rb-data-status {display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 5px;font-size:11px;line-height:1.7;margin:3px 0;}
:root body#royal-blue-app.royal-blue-interface .rb-data-status>strong {font-weight:600;color:#244a9c;}
:root body#royal-blue-app.royal-blue-interface .rb-data-status>span {min-width:0;}
:root body#royal-blue-app.royal-blue-interface [data-data-status] strong {color:#a05910;}
:root body#royal-blue-app.royal-blue-interface [data-data-status=invalid] strong {color:#bd263e;}
:root body#royal-blue-app.royal-blue-interface .rb-data-parameter {display:inline;border:0;background:none;color:#174db8;font:inherit;text-align:left;padding:1px 0;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#b8cced;cursor:pointer;}
:root body#royal-blue-app.royal-blue-interface .rb-data-parameter:hover {color:#0862ff;text-decoration-color:#0862ff;}
:root body#royal-blue-app.royal-blue-interface .rb-data-separator {color:#5974ad;}
:root body#royal-blue-app.royal-blue-interface .rb-data-basis h3 {font-size:12px;font-weight:650;margin:0 0 6px;letter-spacing:0;}
:root body#royal-blue-app.royal-blue-interface .rb-data-sources {padding:12px 0 9px;}
:root body#royal-blue-app.royal-blue-interface .rb-data-sources>p {font-size:11px;color:#5974ad;}
:root body#royal-blue-app.royal-blue-interface .rb-data-time {display:flex;gap:7px;align-items:flex-start;padding:9px 0;border-top:1px solid #e5edfc;font-size:10px;line-height:1.6;color:#4d68a5;}
:root body#royal-blue-app.royal-blue-interface .rb-data-time svg {flex-shrink:0;margin-top:2px;}
:root body#royal-blue-app.royal-blue-interface .rb-data-time strong {font-weight:600;}
:root body#royal-blue-app.royal-blue-interface .rb-manual-times {display:grid;gap:3px;margin:0 0 9px 22px;font-size:10px;line-height:1.5;color:#5974ad;}
:root body#royal-blue-app.royal-blue-interface .rb-data-reference {padding-top:11px;border-top:1px solid #e5edfc;}
:root body#royal-blue-app.royal-blue-interface .rb-data-reference h3 {display:flex;align-items:center;gap:7px;}
:root body#royal-blue-app.royal-blue-interface .rb-data-reference .rb-reference-details>summary {margin-left:0;padding:8px 10px;background:#f1f7ff;border:1px solid #dceaff;border-radius:6px;}
:root body#royal-blue-app.royal-blue-interface .rb-reference-action {color:#1758bd;font-weight:600;margin-top:5px;}
:root body#royal-blue-app.royal-blue-interface .instrument-reading:focus {outline:3px solid #8cb9ff;outline-offset:2px;}

/* Selected chart controls keep the parameter color on a pale surface. */
:root body#royal-blue-app.royal-blue-interface .ob-overview .chart-parameters button {
 background:#f6f9ff;color:var(--chart-accent);border:1px solid #dce7fa;min-height:36px;
}
:root body#royal-blue-app.royal-blue-interface .ob-overview .chart-parameters button[aria-pressed=true] {
 background:color-mix(in srgb,var(--chart-accent) 10%,white);color:var(--chart-accent)!important;
 border-color:var(--chart-accent);box-shadow:inset 0 -3px var(--chart-accent);font-weight:750;
}
:root body#royal-blue-app.royal-blue-interface .ob-overview .chart-parameters button :is(svg,strong) {color:inherit!important;opacity:1;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .chart-parameters button svg {width:17px;height:17px;padding:0;flex-shrink:0;}
/* Plain colored dots, as in the supplied reference; no miniature status chips. */
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-level-legend {
 display:flex;flex-wrap:wrap;gap:9px 16px;padding:11px 2px 2px;
}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-level-legend>span {
 background:transparent!important;border:0!important;border-radius:0;padding:0;min-height:18px;
 color:#3656a4!important;font-size:11px;font-weight:500;line-height:1.5;gap:7px;
}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-level-legend>span::before {
 width:14px;height:14px;flex-shrink:0;background:var(--point-color);box-shadow:none;
}
/* Compact map dots preserve the geographic hit area and accessible status labels. */
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .gis-beacon>.beacon-core {
 width:20px;height:20px;inset:11px;border:2px solid #fff!important;
 background:var(--point-color)!important;border-radius:50%;box-shadow:0 0 0 1px var(--point-color)!important;
}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .gis-beacon>.beacon-core svg {display:none;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .gis-beacon.selected>.beacon-core {
 width:25px;height:25px;inset:8.5px;background:#0862ff!important;
 box-shadow:0 0 0 2px #fff,0 0 0 4px #0862ff!important;
}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-pin-label {
 width:auto;min-width:40px;padding:3px 7px;border:1px solid #a4c7ff;border-radius:5px;
 background:#fff;color:#092c89;box-shadow:0 1px 4px #194a8d15;
}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-pin-label>strong {font-size:12px;line-height:1.4;color:#092c89;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-pin-label strong em {display:none;}
/* Severity is animated separately from the blue selection state. */
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-station:is([data-station-alert='2'],[data-station-alert='3'],[data-station-alert='4']) {
 border-color:var(--sa-color);box-shadow:inset 0 -2px var(--sa-color);
}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-station:is([data-station-alert='2'],[data-station-alert='3'],[data-station-alert='4']) .sa-status-chip {
 animation:rb-station-alert 1.8s ease-out infinite;
}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-priority {animation:rb-priority-alert 2.4s ease-in-out infinite;}
@keyframes rb-station-alert {0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--sa-color) 45%,transparent)}60%{box-shadow:0 0 0 5px transparent}}
@keyframes rb-priority-alert {0%,100%{box-shadow:0 0 0 0 #ff354000}50%{box-shadow:0 0 0 3px #ff35401c}}
@media(prefers-reduced-motion:reduce) {
 :root body#royal-blue-app.royal-blue-interface .ob-network :is(.sa-status-chip,.sa-priority) {animation:none!important;}
}

/* Map review: compact controls, landscape river view and local evidence. */
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-situation {display:none!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .river-header {margin-bottom:4px!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .gis-control-row {margin:4px 0 8px!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .gis-basemap-switch {display:flex!important;flex-wrap:wrap;gap:5px!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map :is(.river-canvas,#geographic-map) {height:320px!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .river-footer .geographic-legend {display:none!important;}
:root body#royal-blue-app.royal-blue-interface .hero-pending-basis {margin-top:8px;font-size:11px;line-height:1.6;}
:root body#royal-blue-app.royal-blue-interface .hero-pending-basis summary {cursor:pointer;color:#1754bc!important;font-weight:600;}
:root body#royal-blue-app.royal-blue-interface .hero-pending-basis>div {padding:8px 10px;margin-top:6px;border:1px solid #d6e5ff;border-radius:6px;background:#fff;color:#244477;}
:root body#royal-blue-app.royal-blue-interface .hero-pending-basis :is(p,li) {font-size:11px!important;color:#244477!important;}
:root body#royal-blue-app.royal-blue-interface .hero-pending-basis ul {padding-left:18px;margin:6px 0;}

/* Station picker: selection uses blue outline; severity keeps its own readable label. */
:root body#royal-blue-app.royal-blue-interface .ob-network {display:block!important;padding:12px 14px!important;border-radius:12px!important;background:#fff!important;}
:root body#royal-blue-app.royal-blue-interface .ob-network .ob-section-heading {display:flex!important;justify-content:space-between;align-items:center;margin:0 0 9px!important;}
:root body#royal-blue-app.royal-blue-interface .ob-network .ob-section-heading h2 {display:block!important;font-size:13px!important;color:#263653!important;}
.rb-station-hint {color:#67758b;font-size:11px;}
:root body#royal-blue-app.royal-blue-interface .ob-network .ob-station-tabs {gap:8px!important;overflow:visible!important;}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-station {position:relative;height:auto!important;min-height:78px!important;padding:10px 12px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:space-between!important;gap:8px!important;border:1px solid #e1e6ed!important;border-radius:9px!important;background:#fff!important;color:#263653!important;box-shadow:none!important;transition:border-color .15s,background .15s;}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-station:hover {background:#f6f8fc!important;border-color:#b7c8df!important;}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-station.selected {background:#f0f5ff!important;border:2px solid #2563eb!important;padding:9px 11px!important;box-shadow:none!important;}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-top {display:flex!important;width:100%;align-items:center;}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-identity strong {font-size:13px!important;color:#24344f!important;}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-identity small {display:block!important;font-size:10px!important;color:#6b788e!important;margin-top:2px;}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-bottom {position:static!important;display:block!important;width:auto!important;}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-status-chip {display:inline-flex!important;align-items:center;gap:5px;width:auto!important;height:auto!important;min-width:0!important;padding:3px 7px!important;border:0!important;border-radius:5px!important;background:#eff3f8!important;color:#52647b!important;font-size:10px!important;line-height:1.3!important;animation:none!important;box-shadow:none!important;}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-status-chip::before {content:'';width:6px;height:6px;border-radius:50%;background:currentColor;}
:root body#royal-blue-app.royal-blue-interface .ob-network [data-station-alert='1'] .sa-status-chip {background:#fff3df!important;color:#95600d!important;}
:root body#royal-blue-app.royal-blue-interface .ob-network :is([data-station-alert='2'],[data-station-alert='3'],[data-station-alert='4']) .sa-status-chip {background:#ffebeb!important;color:#bd3039!important;}
:root body#royal-blue-app.royal-blue-interface .ob-network [data-station-alert='0'] .sa-status-chip {background:#e9f4ee!important;color:#28774d!important;}
:root body#royal-blue-app.royal-blue-interface .ob-network .sa-selected-check {display:block!important;position:absolute;top:10px;right:10px;background:none!important;color:#2563eb!important;font-size:13px;}
.live-update-notice {border:1px solid #bfdbfe;border-radius:7px;padding:7px 10px;background:#eff6ff;color:#1d4ed8;font:inherit;font-size:11px;cursor:pointer;}
.live-update-notice[hidden] {display:none!important;}
@media(max-width:600px){:root body#royal-blue-app.royal-blue-interface .ob-network .ob-station-tabs {grid-template-columns:repeat(3,minmax(0,1fr))!important;} .rb-station-hint {display:none;} .live-update-notice {position:fixed;right:12px;bottom:16px;z-index:1100;box-shadow:0 3px 15px #162b4520;}}

:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-distance-label {display:block!important;font-size:10px!important;font-weight:500;line-height:1.5;color:#536683!important;white-space:nowrap;margin-top:1px;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-distance-caption {font-size:10px!important;color:#5b708d!important;line-height:1.5;margin:7px 0 0;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .gis-detail-distance {font-size:12px!important;font-weight:600;color:#25528a!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-style-night .map-distance-label {color:#c4d6ef!important;}

.gis-sea-name {pointer-events:none!important;background:none!important;border:0!important;text-align:center;}
.gis-sea-name span {display:block;white-space:nowrap;font-size:15px;font-weight:600;letter-spacing:1px;color:#397692;text-shadow:0 1px 2px #ffffffb0;}
.gis-style-night .gis-sea-name span {color:#9bd1ec;text-shadow:0 1px 3px #061d35;}

/* Stretch both desktop columns; let the map absorb the height difference. */
@media(min-width:1000px){
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-workspace-columns {align-items:stretch!important;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-spatial-column #ob-map {flex:1;display:flex;flex-direction:column;min-height:0;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-spatial-column .analysis-trend {flex:none;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map.water-alert-map {flex:1;display:flex!important;flex-direction:column!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-command-grid {flex:1;display:flex!important;flex-direction:column;align-items:stretch!important;min-height:440px;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .river-canvas {flex:1;align-self:stretch!important;width:100%!important;height:auto!important;min-height:440px;position:relative;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map #geographic-map {position:absolute;inset:0;height:100%!important;}
:root body#royal-blue-app.royal-blue-interface .ob-overview .ob-readings-column>.data-context {flex:1;}
}
@media(max-width:999px){
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map :is(.river-canvas,#geographic-map) {height:400px!important;}
}

@media(min-width:1000px){
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-inline {position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:9px;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-inline .map-level-legend {flex:none;padding:0!important;gap:7px!important;flex-wrap:nowrap!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-inline .river-footer {flex:none;padding:0!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-inline .map-angle {width:auto!important;gap:4px!important;font-size:9px!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-inline .map-angle input {width:55px!important;flex:none!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-inline .map-angle output {width:27px!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-inline .map-distance-caption {flex:none;display:flex;gap:5px;align-items:center;margin:0!important;white-space:nowrap;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-inline .gis-map-notes {position:static;margin:0!important;padding:0!important;border:0!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-inline .gis-map-notes summary {display:flex;align-items:center;gap:4px;white-space:nowrap;list-style:none;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-inline .gis-map-notes summary svg {width:13px;height:13px;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-inline .gis-map-notes[open] {position:absolute;left:0;right:0;bottom:0;z-index:1100;padding:12px!important;background:#fff!important;border:1px solid #cbdcf1!important;border-radius:8px;box-shadow:0 4px 20px #18345825;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-inline .gis-map-notes[open] summary {margin-bottom:8px;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-distance-text {display:none;}
}
@media(min-width:1500px){
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-distance-text {display:inline;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-inline .map-angle input {width:85px!important;}
}
@media(min-width:1000px) and (max-width:1199px){
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-source-text {display:none;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-inline .gis-map-notes[open] .map-footer-source-text {display:inline;}
}

@media(min-width:1000px) and (max-width:1199px){
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-inline {gap:5px;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-inline .map-level-legend {gap:5px!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-inline .map-level-legend>span {font-size:8px!important;gap:3px!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-inline .map-level-legend>span::before {width:8px;height:8px;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map .map-footer-inline .map-angle input {width:40px!important;}
}

:root body#royal-blue-app.royal-blue-interface .map-compass.rb-compass {position:absolute;top:12px;right:12px;width:54px;height:54px;display:block;padding:0;border:0;border-radius:50%;background:#fff;box-shadow:0 2px 10px #23466f20;cursor:pointer;z-index:450;}
:root body#royal-blue-app.royal-blue-interface .rb-compass .compass-dial {display:block;width:100%;height:100%;}
:root body#royal-blue-app.royal-blue-interface .rb-compass #map-compass-arrow {position:absolute;inset:0;display:block;width:100%;height:100%;transform-origin:center;transition:transform .15s ease;}
:root body#royal-blue-app.royal-blue-interface .rb-compass #map-compass-arrow svg {width:100%;height:100%;}
:root body#royal-blue-app.royal-blue-interface .rb-compass:hover {box-shadow:0 2px 12px #23466f38;}
:root body#royal-blue-app.royal-blue-interface .rb-compass:focus-visible {outline:2px solid #2563eb;outline-offset:3px;}

:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-topbar {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 14px;padding-bottom:9px;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-topbar .river-header {flex:1 0 195px;margin:0!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-topbar .gis-control-row {flex:0 1 auto;margin:0 0 0 auto!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-toolbar {margin:0;padding:0;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-switch {justify-content:flex-end!important;}

/* Keep basemap choices at the upper-right, including narrower desktop cards. */
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-topbar {display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:start!important;gap:10px!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-topbar .river-header {min-width:0;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-topbar .gis-control-row {grid-column:2;grid-row:1;justify-self:end;align-self:start;margin:0!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-switch {display:grid!important;grid-template-columns:repeat(2,max-content);gap:4px!important;}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-switch button {padding:4px 8px!important;font-size:9px!important;white-space:nowrap;}
@media(min-width:1400px){
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-switch {grid-template-columns:repeat(4,max-content);}
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-switch button {padding:5px 10px!important;font-size:10px!important;}
}

:root body#royal-blue-app.royal-blue-interface .gis-style-satellite .gis-sea-name span {color:#e4f4ff;text-shadow:0 1px 4px #071f38,0 0 8px #071f38;}
@media(min-width:1400px){
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-switch {grid-template-columns:repeat(3,max-content);}
}
@media(min-width:1700px){
:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-switch {grid-template-columns:repeat(5,max-content);}
}

.map-interface-credit {color:#365572;white-space:normal;}
.map-source-credit {display:inline-block;position:relative;margin-left:8px;text-align:left;}
.map-source-credit summary {cursor:pointer;color:#456b91;font-size:10px;}
.map-source-credit>div {position:absolute;right:0;bottom:22px;width:280px;max-width:70vw;padding:10px;border:1px solid #cfdeed;border-radius:7px;background:#fff;color:#425b77;box-shadow:0 3px 14px #17334f26;line-height:1.5;}
:root body#royal-blue-app.royal-blue-interface .workspace>footer .footer-designer {color:#315cad;text-decoration:none;font-size:11px;}
:root body#royal-blue-app.royal-blue-interface .workspace>footer .footer-designer:hover {text-decoration:underline;}
:root body#royal-blue-app.royal-blue-interface .workspace>footer {flex-wrap:wrap;gap:8px 16px;}

.map-source-credit summary {display:inline-flex;align-items:center;list-style:none;font-size:12px;line-height:1;}
.map-source-credit summary::-webkit-details-marker {display:none;}
.map-source-credit {margin-left:5px;}

:root body#royal-blue-app.royal-blue-interface .map-interface-credit {display:inline-block;white-space:nowrap!important;font-size:10px;line-height:1.4;}
/* Three colored summaries; station navigation belongs to the map workspace. */
:root body#royal-blue-app.royal-blue-interface .rb-three-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
:root body#royal-blue-app.royal-blue-interface .rb-three-summary .ob-stat{--card-accent:#245bff;grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto 1fr;min-height:144px;padding:18px 18px 14px;gap:10px 14px;border:1px solid #c9daff;border-top:3px solid var(--card-accent);border-radius:12px;background:linear-gradient(125deg,#fff 38%,#eef4ff);box-shadow:0 3px 12px #1e52ad08;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;isolation:isolate}
:root body#royal-blue-app.royal-blue-interface .rb-three-summary .ob-stat::after{content:'';position:absolute;width:110px;height:110px;right:-38px;top:-42px;border-radius:50%;background:var(--card-accent);opacity:.055;pointer-events:none;z-index:-1}
:root body#royal-blue-app.royal-blue-interface .rb-three-summary .ob-stat:hover,:root body#royal-blue-app.royal-blue-interface .rb-three-summary .ob-stat:focus-within{transform:translateY(-3px);box-shadow:0 9px 24px #1c4caa17;border-color:var(--card-accent)}
:root body#royal-blue-app.royal-blue-interface .rb-three-summary .ob-kpi-attention[data-has-attention=true]{--card-accent:#f59a23;border-color:#f5d09c;border-top-color:var(--card-accent);background:linear-gradient(125deg,#fffcf6 35%,#fff0d8)}
:root body#royal-blue-app.royal-blue-interface .rb-three-summary .ob-kpi-pending{--card-accent:#089cc0;border-color:#bce4ef;border-top-color:var(--card-accent);background:linear-gradient(125deg,#fff 35%,#eaf8fc)}
:root body#royal-blue-app.royal-blue-interface .rb-three-summary .rb-kpi-icon{width:50px;height:50px;border-radius:12px;background:#e2edff;color:#245bff;box-shadow:inset 0 1px 0 #ffffffb3;transition:transform .2s ease}
:root body#royal-blue-app.royal-blue-interface .rb-three-summary .ob-stat:hover .rb-kpi-icon{transform:rotate(-5deg)}
:root body#royal-blue-app.royal-blue-interface .rb-three-summary .ob-kpi-attention[data-has-attention=true] .rb-kpi-icon{background:#ffe8c0;color:#de7d08}
:root body#royal-blue-app.royal-blue-interface .rb-three-summary .ob-kpi-pending .rb-kpi-icon{background:#d9f2f9;color:#0584a6}
:root body#royal-blue-app.royal-blue-interface .rb-three-summary .rb-kpi-label{font-size:13px;line-height:1.45}
:root body#royal-blue-app.royal-blue-interface .rb-three-summary .rb-kpi-value{font-size:36px;line-height:1.15;margin-top:3px}
:root body#royal-blue-app.royal-blue-interface .rb-three-summary .rb-kpi-value small{font-size:12px;font-weight:500;margin-left:7px;color:#57739d;letter-spacing:0}
:root body#royal-blue-app.royal-blue-interface .rb-three-summary .rb-kpi-footer{grid-column:1/-1;align-self:end;display:flex;gap:7px;flex-wrap:wrap;align-items:center;padding-right:15px}
:root body#royal-blue-app.royal-blue-interface .rb-three-summary .rb-kpi-caption{font-size:11px;line-height:1.55;color:#567099;margin:0;padding:0}
:root body#royal-blue-app.royal-blue-interface .rb-three-summary .rb-fresh-pill{display:inline-flex;align-items:center;gap:5px;color:#245bce;background:#e4eeff;border-radius:5px;padding:3px 7px;font-size:11px;text-decoration:none;font-weight:600}
:root body#royal-blue-app.royal-blue-interface .rb-three-summary .rb-fresh-pill:hover{text-decoration:underline}
:root body#royal-blue-app.royal-blue-interface .rb-three-summary .rb-kpi-link{right:13px;bottom:13px;color:var(--card-accent)}
:root body#royal-blue-app.royal-blue-interface .ob-network.rb-station-navigation{padding:13px 16px 0!important;border-radius:11px!important;border:1px solid #d7e4fa!important;margin:0 0 12px!important;box-shadow:0 2px 8px #16448205}
:root body#royal-blue-app.royal-blue-interface .rb-station-navigation .ob-section-heading{margin:0 0 8px!important}
:root body#royal-blue-app.royal-blue-interface .rb-station-navigation .ob-section-heading h2{font-size:13px!important;color:#153d7f!important}
:root body#royal-blue-app.royal-blue-interface .rb-station-navigation .ob-station-tabs{display:flex!important;gap:5px!important;overflow-x:auto!important;margin:0!important}
:root body#royal-blue-app.royal-blue-interface .rb-station-navigation .sa-station{flex:1 0 126px;min-width:0;min-height:47px!important;padding:9px 10px!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:9px!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:7px 7px 0 0!important;background:transparent!important;transition:background .18s ease,border-color .18s ease}
:root body#royal-blue-app.royal-blue-interface .rb-station-navigation .sa-station:hover{background:#f0f5ff!important}
:root body#royal-blue-app.royal-blue-interface .rb-station-navigation .sa-station.selected{border:0!important;border-bottom:3px solid #245bff!important;background:linear-gradient(180deg,#f5f8ff,#eaf0ff)!important;padding:9px 10px!important}
:root body#royal-blue-app.royal-blue-interface .rb-station-navigation .sa-top{width:auto!important;gap:6px}
:root body#royal-blue-app.royal-blue-interface .rb-station-navigation .sa-identity strong{font-size:12px!important}
:root body#royal-blue-app.royal-blue-interface .rb-station-navigation .selected .sa-identity strong{color:#245bff!important}
:root body#royal-blue-app.royal-blue-interface .rb-station-navigation .sa-identity small,:root body#royal-blue-app.royal-blue-interface .rb-station-navigation .sa-selected-check{display:none!important}
:root body#royal-blue-app.royal-blue-interface .rb-station-navigation .sa-bottom{margin:0!important}
:root body#royal-blue-app.royal-blue-interface .rb-station-navigation [data-station-alert='0'] .sa-status-chip{color:#245bce!important;background:#e8efff!important}
@media(max-width:700px){:root body#royal-blue-app.royal-blue-interface .rb-three-summary{gap:9px}:root body#royal-blue-app.royal-blue-interface .rb-three-summary .ob-stat{padding:13px 11px;grid-template-columns:1fr;gap:8px}:root body#royal-blue-app.royal-blue-interface .rb-three-summary .rb-kpi-icon{width:36px;height:36px}:root body#royal-blue-app.royal-blue-interface .rb-three-summary .rb-kpi-icon svg{width:22px;height:22px}:root body#royal-blue-app.royal-blue-interface .rb-three-summary .rb-kpi-label{font-size:12px}:root body#royal-blue-app.royal-blue-interface .rb-three-summary .rb-kpi-value{font-size:29px}:root body#royal-blue-app.royal-blue-interface .rb-three-summary .rb-kpi-footer{padding-right:0}:root body#royal-blue-app.royal-blue-interface .rb-three-summary .rb-kpi-link{top:13px;bottom:auto;right:10px}}
@media(max-width:440px){:root body#royal-blue-app.royal-blue-interface .rb-three-summary{grid-template-columns:1fr}:root body#royal-blue-app.royal-blue-interface .rb-three-summary .ob-stat{grid-template-columns:42px minmax(0,1fr);min-height:112px}:root body#royal-blue-app.royal-blue-interface .rb-station-navigation .rb-station-hint{display:none}}
@media(prefers-reduced-motion:reduce){:root body#royal-blue-app.royal-blue-interface .rb-three-summary .ob-stat,:root body#royal-blue-app.royal-blue-interface .rb-three-summary .rb-kpi-icon,:root body#royal-blue-app.royal-blue-interface .rb-station-navigation .sa-station{transition:none}:root body#royal-blue-app.royal-blue-interface .rb-three-summary .ob-stat:hover,:root body#royal-blue-app.royal-blue-interface .rb-three-summary .ob-stat:focus-within,:root body#royal-blue-app.royal-blue-interface .rb-three-summary .ob-stat:hover .rb-kpi-icon{transform:none}}
/* All three summaries and the station picker share one horizontal row. */
:root body#royal-blue-app.royal-blue-interface .rb-overview-row{display:grid;grid-template-columns:repeat(3,minmax(165px,1fr)) minmax(330px,1.65fr);gap:12px;align-items:stretch;margin:0 -4px 12px;padding:4px;overflow-x:auto}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-three-summary{display:contents}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-three-summary .ob-stat{grid-template-columns:38px minmax(0,1fr);min-height:140px;padding:14px 12px;gap:9px 10px}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-kpi-icon{width:38px;height:40px;border-radius:10px}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-kpi-icon svg{width:23px;height:23px}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-kpi-label{font-size:12px;line-height:1.35}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-kpi-value{font-size:32px}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-kpi-footer{gap:5px;padding-right:10px}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-kpi-caption{font-size:11px}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-fresh-pill{font-size:10px;padding:3px 5px;white-space:nowrap}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-station-navigation{margin:0!important;padding:14px 12px 12px!important;border-top:3px solid #245bff!important;background:linear-gradient(135deg,#fff 45%,#f3f6ff)!important;display:flex!important;flex-direction:column;justify-content:space-between;gap:12px}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-station-navigation .ob-section-heading{width:100%;margin:0!important;align-items:flex-start;flex-direction:column;gap:5px}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-station-hint{font-size:11px}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .ob-station-tabs{width:100%;gap:3px!important;overflow:visible!important}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-station{flex:1 1 0;min-width:0;min-height:60px!important;flex-direction:column!important;gap:7px!important;padding:8px 3px!important}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-station.selected{padding:8px 3px!important}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-status-chip{font-size:10px!important;padding:3px!important;gap:3px!important;white-space:nowrap}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-status-chip::before{width:4px;height:4px}
/* Source icons and compact colored station tiles, within the same overview row. */
/* Browser review: readable supporting data, balanced headings and map controls. */
:root body#royal-blue-app.royal-blue-interface #breadcrumb{display:flex;align-items:center;gap:9px;font-size:13px;color:#496386}
:root body#royal-blue-app.royal-blue-interface #breadcrumb>svg{color:#245bff;background:#e7efff;box-sizing:content-box;padding:6px;border-radius:8px}
:root body#royal-blue-app.royal-blue-interface #breadcrumb strong{color:#153d7f;font-weight:650}
.rb-breadcrumb-separator{color:#8092ac;font-size:19px}
:root body#royal-blue-app.royal-blue-interface .ob-page-heading{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
:root body#royal-blue-app.royal-blue-interface .rb-heading-main{display:flex;align-items:center;gap:13px;flex:1;min-width:280px}
.rb-heading-icon{display:grid;place-items:center;width:52px;height:52px;flex:none;border-radius:15px;color:#245bff;background:linear-gradient(145deg,#fff,#dce9ff);border:1px solid #ccddff;box-shadow:0 4px 12px #245bff0c}
:root body#royal-blue-app.royal-blue-interface .rb-heading-main h1{font-size:27px!important;line-height:1.25}
:root body#royal-blue-app.royal-blue-interface .rb-heading-status{display:flex;align-items:center;gap:9px;padding:10px 13px;border:1px solid #d5e3f9;border-radius:10px;background:#ffffffb3;color:#476489;font-size:12px}
.rb-heading-status>svg{color:#245bff}
.rb-heading-status strong{display:block;margin-top:3px;color:#173d77;font-size:13px;font-weight:650}
:root body#royal-blue-app.royal-blue-interface .rb-data-basis :is(.rb-data-usable,.rb-data-clear,.rb-data-status,.rb-data-time,.rb-manual-times,.rb-data-sources>p){font-size:12px!important;line-height:1.7!important;color:#405979!important}
:root body#royal-blue-app.royal-blue-interface .rb-data-basis h3{font-size:14px!important;color:#153d7f!important}
:root body#royal-blue-app.royal-blue-interface .rb-data-basis .rb-data-parameter{color:#184ea8!important;font-weight:500}
:root body#royal-blue-app.royal-blue-interface .rb-data-basis .rb-reference-details summary span{font-size:12px!important;color:#405979!important}
:root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison h2{font-size:22px!important}
:root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison :is(.analysis-heading p,.ob-count-pill,.table-footer){font-size:12px!important;color:#405979!important}
:root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison th{font-size:12px!important;font-weight:650!important;line-height:1.5;padding:12px 10px!important;color:#173d77!important;white-space:normal;min-width:75px}
:root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison td{font-size:12px!important;padding:11px 10px!important;color:#25476f!important}
:root body#royal-blue-app.royal-blue-interface .chart-legend,:root body#royal-blue-app.royal-blue-interface .chart-interaction-hint{font-size:12px!important;line-height:1.6;color:#405979!important}
.chart-time-range{flex-basis:100%}
:root body#royal-blue-app.royal-blue-interface .gis-map-notes{display:none!important}
.map-quick-rotation{position:absolute;z-index:800;top:76px;right:12px;display:flex;gap:3px;padding:4px;background:#ffffffed;border:1px solid #d5e3f1;border-radius:9px;box-shadow:0 3px 8px #153d7710}
.map-quick-rotation button{padding:5px 6px;background:#f2f6ff;border:0;border-radius:5px;color:#2453a4;font-size:11px;cursor:pointer;min-height:28px}
.map-quick-rotation button[data-map-turn]{font-size:20px;padding:0 6px}
.map-quick-rotation button:hover{background:#dfe9ff;color:#245bff}
.map-quick-rotation button:focus-visible{outline:2px solid #245bff;outline-offset:1px}
.river-quality-scale>i{position:relative;overflow:hidden;background:var(--quality-base,#a8d5e3)!important;height:8px!important}
.river-quality-scale>i::after{content:'';position:absolute;inset:0;background:var(--quality-gradient);opacity:.38}
.river-quality-scale>b{background:color-mix(in srgb,#71817f 38%,var(--quality-base,#a8d5e3))!important}
@media(max-width:1100px){:root body#royal-blue-app.royal-blue-interface .rb-heading-main h1{font-size:24px!important}.rb-heading-icon{width:44px;height:44px}:root body#royal-blue-app.royal-blue-interface .rb-heading-status{padding:8px 10px}:root body#royal-blue-app.royal-blue-interface .rb-overview-row{grid-template-columns:repeat(3,minmax(140px,1fr)) minmax(330px,1.65fr);gap:9px}:root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-three-summary .ob-stat{grid-template-columns:30px minmax(0,1fr);padding:12px 9px;column-gap:7px}:root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-kpi-icon{width:30px;height:34px}}
.rb-kpi-evidence{grid-column:1/-1;align-self:center;min-width:0}
.rb-kpi-detail{display:flex;align-items:flex-start;gap:6px;color:#657b99;font-size:10px;line-height:1.5}
.rb-kpi-detail>svg{flex:none;margin-top:2px;color:var(--card-accent)}
.rb-kpi-detail strong{display:block;font-size:10px;font-weight:600;color:#385779;overflow-wrap:anywhere}
.rb-readiness-track{height:4px;margin:7px 0 0 19px;background:#d9eaf0;border-radius:5px;overflow:hidden}
.rb-readiness-track i{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#20bfd4,#089cc0)}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-three-summary .ob-stat{grid-template-rows:auto 1fr auto;min-height:177px;gap:8px 10px}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-station-navigation{gap:9px;padding:12px 12px 10px!important}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .ob-station-tabs{gap:5px!important}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-station{--station-accent:#078ca8;--station-tint:#dcf5fa;min-height:87px!important;padding:7px 2px!important;gap:5px!important;border:1px solid #d8e9f2!important;border-bottom:3px solid #b8dce7!important;border-radius:9px!important;background:linear-gradient(160deg,#fff,#eff8fc)!important;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-station[data-station-source='measured']{--station-accent:#245bff;--station-tint:#e1eaff}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-station[data-station-alert='2'],:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-station[data-station-alert='3'],:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-station[data-station-alert='4']{background:linear-gradient(160deg,#fff,#fff1f3)!important;border-color:#f0d3db!important;border-bottom-color:#e99aaa!important}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-station .sa-top{display:flex!important;flex-direction:column;gap:4px!important;align-items:center!important}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-station .sa-source-icon{display:grid!important;place-items:center;flex:0 0 28px;width:28px;height:28px;border:1px solid #ffffffb3;border-radius:9px;background:var(--station-tint);color:var(--station-accent);box-shadow:0 2px 5px #1c58800a;transition:transform .2s ease,background .2s ease}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-source-icon svg{width:19px;height:19px}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-identity strong{line-height:1.25!important;letter-spacing:.1px}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-station.selected{padding:7px 2px!important;background:linear-gradient(155deg,#f2f6ff,#dee9ff)!important;border:1px solid #91afff!important;border-bottom:3px solid #245bff!important;box-shadow:0 3px 8px #245bff14!important}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-station.selected .sa-source-icon{background:linear-gradient(145deg,#4878ff,#245bff);color:#fff;box-shadow:0 3px 7px #245bff30;border-color:#ffffff66}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-station:hover{transform:translateY(-2px);border-color:#91afff!important;box-shadow:0 5px 10px #245bff16!important}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-station:hover .sa-source-icon{transform:translateY(-1px)}
:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-station:focus-visible{outline:2px solid #245bff;outline-offset:2px}
@media(prefers-reduced-motion:reduce){:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-station,:root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-source-icon{transition:none!important;transform:none!important}}
/* Responsive controls: one map dock, compact basemaps and readable mobile records. */
:root body#royal-blue-app.royal-blue-interface .map-floating-tools{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:3px;max-width:calc(100% - 24px)}
:root body#royal-blue-app.royal-blue-interface .map-floating-tools .map-quick-rotation{position:static;display:flex;gap:2px;padding:0 0 0 4px;margin-left:3px;border:0;border-left:1px solid #dbe5f4;border-radius:0;background:none;box-shadow:none}
:root body#royal-blue-app.royal-blue-interface .map-floating-tools button{min-height:34px;white-space:nowrap}
.map-basemap-select{display:none}
@media(max-width:1200px){
 :root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-topbar{align-items:center!important}
 :root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-switch{display:none!important}
 .map-basemap-select{display:block}
 .map-basemap-select select{max-width:140px;min-height:38px;padding:7px 28px 7px 10px;border:1px solid #cbdcff;border-radius:9px;color:#184fae;background:#f2f7ff;font:600 12px 'Be Vietnam Pro',sans-serif;cursor:pointer}
 :root body#royal-blue-app.royal-blue-interface .rb-overview-row{grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:10px}
 :root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-station-navigation{grid-column:1/-1;padding:12px!important;gap:10px}
 :root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-station-navigation .ob-section-heading{flex-direction:row;align-items:center}
 :root body#royal-blue-app.royal-blue-interface .rb-overview-row .ob-station-tabs{gap:8px!important}
 :root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-station{min-height:80px!important}
}
@media(max-width:600px){
 :root body#royal-blue-app.royal-blue-interface .topbar{gap:8px;flex-wrap:nowrap;min-height:56px}
 :root body#royal-blue-app.royal-blue-interface #breadcrumb{min-width:0;flex:1;gap:5px;white-space:nowrap;font-size:12px}
 :root body#royal-blue-app.royal-blue-interface #breadcrumb>span{display:none}
 :root body#royal-blue-app.royal-blue-interface #breadcrumb>svg{display:none}
 :root body#royal-blue-app.royal-blue-interface #breadcrumb strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 :root body#royal-blue-app.royal-blue-interface .topbar-right{flex:none;gap:5px}
 :root body#royal-blue-app.royal-blue-interface .topbar .rb-top-export{width:34px;height:34px;box-sizing:border-box;display:grid;place-items:center;font-size:0;padding:0}
 :root body#royal-blue-app.royal-blue-interface .topbar .rb-top-export::before{content:'↓';font-size:23px}
 :root body#royal-blue-app.royal-blue-interface .rb-heading-main{min-width:0;gap:10px;width:100%;flex-basis:100%}
 :root body#royal-blue-app.royal-blue-interface .rb-heading-main h1{font-size:21px!important}
 :root body#royal-blue-app.royal-blue-interface .ob-page-heading{gap:10px}
 :root body#royal-blue-app.royal-blue-interface .rb-heading-status{padding:7px 10px;gap:7px;display:flex;width:100%;box-sizing:border-box}
 .rb-heading-status>span{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:1}
 .rb-heading-status strong{margin:0;font-size:12px}
 :root body#royal-blue-app.royal-blue-interface .rb-overview-row{gap:7px;margin-bottom:12px}
 :root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-three-summary .ob-stat{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto 1fr auto;gap:7px;padding:10px 8px;min-height:0}
 :root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-kpi-icon{height:30px;width:30px}
 :root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-kpi-label{font-size:11px;min-height:30px;display:block}
 :root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-kpi-value{font-size:28px}
 :root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-kpi-value small{font-size:10px;margin-left:3px}
 :root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-kpi-footer{padding:0}
 :root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-fresh-pill{white-space:normal;line-height:1.5}
 :root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-kpi-link{display:none}
 :root body#royal-blue-app.royal-blue-interface .rb-overview-row .rb-station-hint{display:none}
 :root body#royal-blue-app.royal-blue-interface .rb-overview-row .ob-station-tabs{gap:5px!important}
 :root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-station{min-width:0;min-height:85px!important}
 :root body#royal-blue-app.royal-blue-interface .rb-overview-row .sa-status-chip{font-size:9px!important;padding:3px 2px!important}
 :root body#royal-blue-app.royal-blue-interface .map-floating-tools{left:10px;right:10px;bottom:30px;max-width:none}
 :root body#royal-blue-app.royal-blue-interface .map-floating-tools button{min-height:38px;font-size:11px;padding:5px 7px}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison .table-wrap{overflow:visible}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison table{display:block;width:100%;min-width:0;border:0;border-radius:0;overflow:visible}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison tbody{display:grid;gap:10px}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison tr.click-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;padding:10px 12px;border:1px solid #dbe7fa;border-radius:10px;background:linear-gradient(150deg,#fff,#f5f8ff)}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison td{display:flex;flex-direction:column;align-items:flex-start;white-space:normal!important;padding:7px 0!important;border:0;font-size:15px!important;min-width:0}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison td::before{content:attr(data-label);font-size:11px;color:#536a8c;line-height:1.5;margin-bottom:4px;font-weight:500}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison td:last-child{grid-column:1/-1;border-top:1px solid #e2eaf8;margin-top:5px;flex-direction:row;align-items:center;justify-content:space-between}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison td:first-child strong{font-size:14px;background:#e7efff;color:#245bce}
 :root body#royal-blue-app.royal-blue-interface .ob-overview .fleet-comparison .badge{font-size:11px}
}
@media(max-width:380px){:root body#royal-blue-app.royal-blue-interface .map-floating-tools .map-quick-rotation{border-left:0;margin-left:0;padding-left:0;flex-basis:100%;justify-content:center}}
:root body#royal-blue-app.royal-blue-interface .rb-station-navigation .ob-section-heading{order:0!important}
:root body#royal-blue-app.royal-blue-interface .rb-station-navigation .ob-station-tabs{order:1!important}
:root body#royal-blue-app.royal-blue-interface .map-floating-tools{flex-direction:row!important}
:root body#royal-blue-app.royal-blue-interface .map-floating-tools .map-quick-rotation{flex-direction:row!important}
:root body#royal-blue-app.royal-blue-interface .map-floating-tools button[data-map-turn]{font-size:20px!important;min-width:30px;padding:0 5px}
@media(max-width:600px){:root body#royal-blue-app.royal-blue-interface .map-floating-tools{padding:4px!important}:root body#royal-blue-app.royal-blue-interface .map-floating-tools .map-quick-rotation{margin:0;border-left:0;padding:0}}
/* Compact layer switches and basemap picker for laptop, tablet and phone. */
@media(max-width:1366px){
 :root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-topbar{align-items:center!important}
 :root body#royal-blue-app.royal-blue-interface .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-switch{display:none!important}
 .map-basemap-select{display:block;position:relative}
 .map-basemap-select select{max-width:150px;min-height:38px;padding:7px 27px 7px 34px;border:1px solid #cbdcff;border-radius:9px;color:#184fae;background:#f2f7ff;font:600 12px 'Be Vietnam Pro',sans-serif;cursor:pointer}
}
.map-basemap-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);display:grid;place-items:center;pointer-events:none;color:#245bff}
.map-basemap-icon svg{width:17px;height:17px}
.quality-label-small{display:none}
:root body#royal-blue-app.royal-blue-interface .river-quality-control{padding:6px 7px;border-radius:9px;max-width:calc(100% - 130px)}
:root body#royal-blue-app.royal-blue-interface .river-quality-switches{display:grid;grid-template-columns:1fr 1fr;gap:4px}
:root body#royal-blue-app.royal-blue-interface .river-quality-switches button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:5px 7px;font-size:11px;white-space:nowrap;border-radius:6px}
:root body#royal-blue-app.royal-blue-interface .river-quality-switches button svg{width:15px;height:15px;flex:none}
:root body#royal-blue-app.royal-blue-interface .river-quality-switches button[aria-pressed=true]{color:#174eaf;background:#e6efff;border-color:#7ba5ff}
:root body#royal-blue-app.royal-blue-interface .river-quality-switches button[aria-pressed=false]{color:#61728a;background:#f5f7fa;border-color:#d5dce6}
:root body#royal-blue-app.royal-blue-interface .river-quality-scale{display:flex;gap:4px;font-size:10px;line-height:1.4;justify-content:space-between}
:root body#royal-blue-app.royal-blue-interface .river-quality-scale>i{flex:1;min-width:40px;width:60px}
@media(max-width:600px){
 :root body#royal-blue-app.royal-blue-interface .river-quality-control{left:50px!important;top:10px;width:174px;max-width:calc(100% - 124px);box-sizing:border-box;padding:5px 6px}
 .quality-label-wide{display:none}
 .quality-label-small{display:inline}
 :root body#royal-blue-app.royal-blue-interface .river-quality-switches button{min-height:36px;padding:5px 3px;gap:3px;font-size:10px}
 :root body#royal-blue-app.royal-blue-interface .river-quality-switches button svg{width:14px;height:14px}
 :root body#royal-blue-app.royal-blue-interface .river-quality-scale{font-size:9px;gap:3px;margin-top:5px}
 :root body#royal-blue-app.royal-blue-interface .river-quality-scale>i{min-width:26px;width:35px}
 :root body#royal-blue-app.royal-blue-interface .river-quality-scale>b{margin-left:0;width:6px;height:6px;flex:none}
 .map-basemap-select select{padding-left:32px;font-size:12px;min-height:40px}
}
/* Align the heading icon with the complete title and subtitle block. */
:root body#royal-blue-app.royal-blue-interface .rb-heading-main{align-items:center;gap:14px}
:root body#royal-blue-app.royal-blue-interface .rb-heading-icon{width:60px;height:60px;box-sizing:border-box;border-radius:16px}
:root body#royal-blue-app.royal-blue-interface .rb-heading-icon svg{width:30px;height:30px}
:root body#royal-blue-app.royal-blue-interface .rb-heading-main h1{margin:0!important;line-height:1.2!important}
:root body#royal-blue-app.royal-blue-interface .rb-heading-main p{margin:6px 0 0!important;line-height:1.5!important}
@media(max-width:1100px){:root body#royal-blue-app.royal-blue-interface .rb-heading-icon{width:56px;height:56px;border-radius:14px}:root body#royal-blue-app.royal-blue-interface .rb-heading-main p{margin-top:5px!important}}
@media(max-width:600px){:root body#royal-blue-app.royal-blue-interface .rb-heading-icon{width:48px;height:48px;border-radius:13px}:root body#royal-blue-app.royal-blue-interface .rb-heading-icon svg{width:27px;height:27px}:root body#royal-blue-app.royal-blue-interface .rb-heading-main{gap:12px}}
/* Shared heading treatment across operational pages and form sections. */
:root body#royal-blue-app.royal-blue-interface .rb-unified-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 18px;padding:0}
:root body#royal-blue-app.royal-blue-interface .rb-unified-heading .rb-heading-main{min-width:0;flex:1 1 360px;align-items:center}
:root body#royal-blue-app.royal-blue-interface .rb-unified-heading h1{font-size:27px!important;line-height:1.2!important;font-weight:800;color:var(--rb-ink);letter-spacing:-.6px;margin:0!important}
:root body#royal-blue-app.royal-blue-interface .rb-unified-heading p{font-size:14px!important;line-height:1.5!important;color:#173eae!important;margin:6px 0 0!important}
:root body#royal-blue-app.royal-blue-interface .rb-unified-heading .head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 1 auto}
:root body#royal-blue-app.royal-blue-interface .card-title{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
:root body#royal-blue-app.royal-blue-interface .card-title h2{display:flex;align-items:center;gap:10px;min-width:0;line-height:1.4;margin:0;font-size:17px}
:root body#royal-blue-app.royal-blue-interface .rb-form-title-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border:1px solid #d3e2ff;border-radius:10px;background:linear-gradient(145deg,#f6f9ff,#e2edff);color:#245bff}
:root body#royal-blue-app.royal-blue-interface .rb-form-title-icon svg{width:20px;height:20px;margin:0!important}
@media(max-width:1100px){:root body#royal-blue-app.royal-blue-interface .rb-unified-heading h1{font-size:24px!important}}
@media(max-width:600px){:root body#royal-blue-app.royal-blue-interface .rb-unified-heading{gap:12px}:root body#royal-blue-app.royal-blue-interface .rb-unified-heading .rb-heading-main{flex-basis:100%}:root body#royal-blue-app.royal-blue-interface .rb-unified-heading h1{font-size:21px!important}:root body#royal-blue-app.royal-blue-interface .rb-unified-heading p{font-size:12px!important;margin-top:5px!important}:root body#royal-blue-app.royal-blue-interface .rb-unified-heading .head-actions{width:100%;justify-content:flex-start}:root body#royal-blue-app.royal-blue-interface .card-title h2{font-size:16px}:root body#royal-blue-app.royal-blue-interface .rb-form-title-icon{width:32px;height:32px}}
:root body#royal-blue-app.royal-blue-interface .rb-form-title-icon svg{color:#245bff!important}
:root body#royal-blue-app.royal-blue-interface .modal-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
:root body#royal-blue-app.royal-blue-interface .modal-title h2{display:flex;align-items:center;gap:10px;margin:0;line-height:1.4;min-width:0}
:root body#royal-blue-app.royal-blue-interface .modal-title>button{flex:none}
/* SVG icons in every basemap option, with an aligned custom dropdown. */
.map-basemap-select{position:relative;z-index:900}
.map-basemap-select>summary{display:flex;align-items:center;gap:8px;min-height:38px;box-sizing:border-box;min-width:140px;padding:8px 10px;border:1px solid #cbdcff;border-radius:9px;color:#184fae;background:#f2f7ff;font:600 12px 'Be Vietnam Pro',sans-serif;cursor:pointer;list-style:none}
.map-basemap-select>summary::-webkit-details-marker{display:none}
.map-basemap-select .map-basemap-icon{position:static;transform:none;display:grid;flex:none}
.map-basemap-chevron{margin-left:auto;font-size:17px;line-height:1}
.map-basemap-select[open]>summary{border-color:#245bff;box-shadow:0 0 0 2px #245bff1a}
.map-basemap-options{position:absolute;right:0;top:calc(100% + 5px);min-width:160px;padding:5px;background:#fff;border:1px solid #d5e3fa;border-radius:10px;box-shadow:0 8px 24px #173d7726;display:grid;gap:3px}
:root body#royal-blue-app.royal-blue-interface .map-basemap-options button{display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:8px 10px;text-align:left;border:0;border-radius:6px;background:#fff;color:#264f8f;font:500 12px 'Be Vietnam Pro',sans-serif;cursor:pointer}
.map-basemap-options button svg{width:18px;height:18px;flex:none}
:root body#royal-blue-app.royal-blue-interface .map-basemap-options button[aria-pressed=true]{background:#e6efff;color:#245bff;font-weight:650}
:root body#royal-blue-app.royal-blue-interface .map-basemap-options button:hover{background:#f0f5ff}
.map-basemap-options button:focus-visible,.map-basemap-select>summary:focus-visible{outline:2px solid #245bff;outline-offset:2px}
@media(max-width:600px){.map-basemap-select>summary{min-height:40px;min-width:132px}.map-basemap-options button{min-height:42px}}

/* Shared parameter identity; alert and sample quality colors remain semantic. */
:root body#royal-blue-app.royal-blue-interface .rb-data-basis .rb-data-parameter{color:var(--parameter-color)!important;font-weight:600;text-decoration-color:color-mix(in srgb,var(--parameter-color) 40%,transparent)}
:root body#royal-blue-app.royal-blue-interface .instrument-reading .ir-icon{color:var(--parameter-color)!important;background:color-mix(in srgb,var(--parameter-color) 17%,white)!important}
:root body#royal-blue-app.royal-blue-interface .instrument-reading .ir-name>strong{color:var(--parameter-color)!important}
:root body#royal-blue-app.royal-blue-interface .monitor-reading .monitor-reading-trigger{padding:8px 10px;gap:10px}
:root body#royal-blue-app.royal-blue-interface .monitor-reading .monitor-reading-name{color:var(--reading-color)}
:root body#royal-blue-app.royal-blue-interface .monitor-reading-trigger:hover .monitor-reading-icon{transform:none}
.map-basemap-select>summary::after{content:none!important}

/* Content-sized basemap button and compact monitoring filters. */
.map-basemap-select>summary{min-width:0;width:max-content;gap:7px;padding:8px 10px;white-space:nowrap}
:root body#royal-blue-app.royal-blue-interface .monitor-workspace .monitor-toolbar{grid-template-columns:minmax(0,.85fr) minmax(0,1fr);gap:20px}
:root body#royal-blue-app.royal-blue-interface .monitor-toolbar .field>label{display:flex;align-items:center;gap:7px;margin-bottom:7px;line-height:1.4}
.monitor-toolbar .field>label>svg{color:#245bff;flex:none}
.monitor-station-input{position:relative;display:flex;align-items:center}
.monitor-station-input>svg{position:absolute;left:12px;color:#245bff;pointer-events:none;width:18px;height:18px}
:root body#royal-blue-app.royal-blue-interface .monitor-station-input>.form-control{padding-left:39px!important}
.monitor-toolbar .segments button{display:flex;align-items:center;justify-content:center;gap:5px}
@media(max-width:600px){:root body#royal-blue-app.royal-blue-interface .monitor-workspace .monitor-toolbar{grid-template-columns:1fr;gap:14px}.map-basemap-select>summary{min-width:0;width:max-content}}

:root body#royal-blue-app.royal-blue-interface .admin-tabs .btn{display:inline-flex;align-items:center;gap:7px;min-height:36px}
.admin-tabs .btn>svg{flex:none;color:#245bff}.admin-tabs .btn[aria-pressed=true]>svg{color:inherit}

/* Consistent disclosure arrows: CSS geometry avoids font-dependent glyph placement. */
:root body#royal-blue-app.royal-blue-interface .action-menu>summary{display:flex;align-items:center;justify-content:center;gap:9px;list-style:none}
:root body#royal-blue-app.royal-blue-interface .action-menu>summary::after{content:'';display:block;flex:0 0 6px;width:6px;height:6px;margin:0 1px 3px 2px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);line-height:0}
:root body#royal-blue-app.royal-blue-interface .action-menu[open]>summary::after{transform:rotate(225deg);margin-top:4px}
:root body#royal-blue-app.royal-blue-interface select.form-control{appearance:none;padding-right:34px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23184fae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 11px center!important;background-size:16px 16px!important}
:root body#royal-blue-app.royal-blue-interface .report-summary .mini-stat{position:relative;overflow:hidden;padding:18px!important;border-top:3px solid var(--report-accent)!important;background:linear-gradient(145deg,white,color-mix(in srgb,var(--report-accent) 5%,white))!important;box-shadow:0 4px 14px #173c7510;display:flex;flex-direction:column;gap:9px;transition:transform .18s,box-shadow .18s}
.report-summary .report-stat-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;color:var(--report-accent);background:color-mix(in srgb,var(--report-accent) 12%,white)}
:root body#royal-blue-app.royal-blue-interface .report-summary .mini-stat>strong{font-size:30px;line-height:1.2;margin:0;color:#102a61}
.report-summary strong em{font-size:12px;font-weight:500;font-style:normal;margin-left:6px;color:#536881}
.report-summary .mini-stat>small{font-size:11px;color:#536881;line-height:1.5}
.report-summary .mini-stat>span:not(.report-stat-icon){min-height:36px;line-height:1.5}
@media(hover:hover){.report-summary .mini-stat:hover{transform:translateY(-2px);box-shadow:0 7px 18px #173c751a!important}}
@media(max-width:600px){:root body#royal-blue-app.royal-blue-interface .report-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}.report-summary .mini-stat>small{font-size:10px}}
@media(prefers-reduced-motion:reduce){.report-summary .mini-stat{transition:none!important;transform:none!important}}

/* Selected administration category and readable configuration records. */
:root body#royal-blue-app.royal-blue-interface .admin-tabs .btn[aria-pressed=true]{background:#245bff!important;color:white!important;border-color:#245bff!important;box-shadow:0 3px 9px #245bff35;font-weight:700}
:root body#royal-blue-app.royal-blue-interface .admin-tabs .btn[aria-pressed=true]>svg{color:white!important}
:root body#royal-blue-app.royal-blue-interface .settings-records{overflow:visible!important;max-height:none!important;border:0!important;background:transparent!important}
:root body#royal-blue-app.royal-blue-interface .settings-records table{display:block;width:100%!important;min-width:0!important}
.settings-records thead{display:none!important}
.settings-records tbody{display:grid;gap:14px}
:root body#royal-blue-app.royal-blue-interface .settings-records tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px;border:1px solid #ceddF4;border-radius:12px;background:linear-gradient(145deg,#fff,#f7faff)}
:root body#royal-blue-app.royal-blue-interface .settings-records td{display:block;min-width:0;padding:0!important;border:0!important;white-space:normal!important}
.settings-cell-label{display:block;font-size:12px;font-weight:600;line-height:1.5;margin-bottom:6px;color:#284a76}
:root body#royal-blue-app.royal-blue-interface .settings-records :is(input:not([type=checkbox]),select,textarea){box-sizing:border-box;width:100%!important;min-width:0!important;max-width:none!important;font-size:13px!important;min-height:40px}
.settings-records td[data-field="name"],.settings-records td[data-field="reference"],.settings-records td[data-field="next_step"],.settings-records td[data-field="replace_with"],.settings-records td[data-field="value"]{grid-column:span 2}
.settings-records td[data-field-type="checkbox"]{display:flex!important;align-items:center;gap:10px;min-height:40px}
.settings-records td[data-field-type="checkbox"] .settings-cell-label{margin:0}
.settings-records .settings-row-actions{grid-column:1/-1;display:flex!important;justify-content:flex-end;gap:12px;border-top:1px solid #deE8f8!important;padding-top:10px!important}
@media(max-width:700px){:root body#royal-blue-app.royal-blue-interface .settings-records tr{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}}
@media(max-width:420px){:root body#royal-blue-app.royal-blue-interface .settings-records tr{grid-template-columns:minmax(0,1fr)}.settings-records td{grid-column:1!important}}

.settings-cell-label,#settings-form .field>label{display:flex;align-items:center;gap:5px}
.settings-cell-label>svg,#settings-form .field>label>svg{flex:none;color:#245bff}
:root body#royal-blue-app.royal-blue-interface #settings-form[data-settings-group="parameters"] .settings-records tr{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px 10px;padding:12px}
#settings-form[data-settings-group="parameters"] .settings-records tbody{gap:10px}
:root body#royal-blue-app.royal-blue-interface #settings-form[data-settings-group="parameters"] .settings-records :is(input:not([type=checkbox]),select){min-height:34px;height:34px;padding-top:5px;padding-bottom:5px;font-size:12px!important}
#settings-form[data-settings-group="parameters"] .settings-cell-label{font-size:11px;margin-bottom:4px}
#settings-form[data-settings-group="parameters"] td[data-field="kind"],#settings-form[data-settings-group="parameters"] td[data-field="display_color"]{grid-column:span 2}
:root body#royal-blue-app.royal-blue-interface #settings-form[data-settings-group="parameters"] .settings-row-actions{padding-top:5px!important}
@media(max-width:1000px){:root body#royal-blue-app.royal-blue-interface #settings-form[data-settings-group="parameters"] .settings-records tr{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:650px){:root body#royal-blue-app.royal-blue-interface #settings-form[data-settings-group="parameters"] .settings-records tr{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){#settings-form[data-settings-group="parameters"] .settings-records td[data-field="name"],#settings-form[data-settings-group="parameters"] .settings-records td[data-field="kind"],#settings-form[data-settings-group="parameters"] .settings-records td[data-field="display_color"]{grid-column:span 2!important}}

/* Laptop administration workspace: content density follows available panel width. */
:root body#royal-blue-app.royal-blue-interface #admin-panel{min-width:0;container-type:inline-size}
:root body#royal-blue-app.royal-blue-interface #admin-panel .settings-title{margin-bottom:12px;gap:8px}
:root body#royal-blue-app.royal-blue-interface #admin-panel .settings-title>.card-title{margin-bottom:0}
:root body#royal-blue-app.royal-blue-interface #settings-form>.form-grid:empty{display:none}
:root body#royal-blue-app.royal-blue-interface #admin-panel .settings-array{margin-top:14px;padding-top:14px}
:root body#royal-blue-app.royal-blue-interface #admin-panel .settings-records tr{gap:9px 12px;padding:12px}
:root body#royal-blue-app.royal-blue-interface #admin-panel .settings-records textarea{height:66px;min-height:66px!important;resize:vertical;line-height:1.5;padding:8px}
:root body#royal-blue-app.royal-blue-interface #admin-panel .field>label{font-size:12px;line-height:1.5}
:root body#royal-blue-app.royal-blue-interface #admin-panel .form-grid{gap:12px 16px}
@media(min-width:1001px) and (max-width:1366px){
 :root body#royal-blue-app.royal-blue-interface #content .admin-tabs{gap:5px;padding:6px}
 :root body#royal-blue-app.royal-blue-interface #content .admin-tabs .btn{padding:6px 9px;min-height:34px;font-size:12px;gap:5px}
 :root body#royal-blue-app.royal-blue-interface #admin-panel .card{padding:16px}
 :root body#royal-blue-app.royal-blue-interface #admin-panel .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@container(max-width:1020px){
 :root body#royal-blue-app.royal-blue-interface #settings-form[data-settings-group="parameters"] .settings-records tr{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px 9px}
 :root body#royal-blue-app.royal-blue-interface #admin-panel .settings-cell-label{font-size:11px}
}
@container(max-width:800px){
 :root body#royal-blue-app.royal-blue-interface #settings-form[data-settings-group="parameters"] .settings-records tr{grid-template-columns:repeat(4,minmax(0,1fr))}
 :root body#royal-blue-app.royal-blue-interface #admin-panel .settings-records tr{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container(max-width:480px){
 :root body#royal-blue-app.royal-blue-interface #settings-form[data-settings-group="parameters"] .settings-records tr{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Numeric controls fit their values rather than filling the whole form column. */
:root body#royal-blue-app.royal-blue-interface #admin-panel #settings-form input[type=number]{width:var(--numeric-ch,9ch)!important;min-width:7ch!important;max-width:100%!important;font-variant-numeric:tabular-nums;padding-left:9px;padding-right:5px}
:root body#royal-blue-app.royal-blue-interface #settings-form>.form-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important}
:root body#royal-blue-app.royal-blue-interface #settings-form>.form-grid>.field.full{grid-column:1/-1}
@media(max-width:600px){:root body#royal-blue-app.royal-blue-interface #settings-form>.form-grid{grid-template-columns:minmax(0,1fr)!important}}

/* ==== business-pages.css ==== */
/* Royal Blue companion pages. Overview and community dashboards are excluded. */
:root body#royal-blue-app.royal-blue-interface.rb-business-view {
 --line:#d4e5ff; --muted:#526b98;
}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) {line-height:1.65;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.grid,.stack,.card,.field,.form-grid,.monitor-layout,.monitor-latest,.monitor-chart,.qcvn-page) {min-width:0;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.page-head,.ob-page-heading) {display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 18px;padding:0;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.page-head,.ob-page-heading) h1 {font-size:clamp(23px,2.3vw,29px);line-height:1.35;letter-spacing:-.6px;color:var(--rb-ink);margin:0 0 6px;font-weight:800;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.subtitle,.page-head p,.ob-page-heading p) {font-size:14px;line-height:1.65;color:#526b98;margin:0;max-width:75ch;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.head-actions,.ob-heading-actions) {display:flex;flex-wrap:wrap;gap:8px;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .card {background:#fff;border:1px solid #d4e5ff;border-radius:9px;box-shadow:none;padding:18px;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.card-title,.settings-title,.qcvn-library-heading) {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:14px;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.card-title h2,.qcvn-library-heading h2) {font-size:17px;line-height:1.5;color:var(--rb-ink);margin:0;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.section-note,.note,.privacy-note,.threshold-intro) {font-size:13px;line-height:1.7;color:#526b98;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.btn,.form-control) {font-family:inherit;font-size:13px;border-radius:7px;min-height:42px;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .btn {white-space:normal;line-height:1.5;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .btn.secondary {background:#f3f8ff;border-color:#cedfff;color:#214da8;box-shadow:none;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .form-control {max-width:100%;min-width:0;background:#fbfdff;border-color:#cedfff;color:#183768;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .field>label {font-size:13px;line-height:1.6;color:#294578;margin-bottom:7px;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.form-grid,.grid.two,.grid.equal) {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .grid.detail {grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:16px;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.notice,.qcvn-history-note) {border:1px solid #d4e5ff;border-radius:9px;background:#f3f8ff;color:#294578;font-size:13px;line-height:1.7;padding:14px 16px;overflow-wrap:anywhere;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.table-wrap,.table-responsive) {max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .threshold-table {min-width:0;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .threshold-table table {min-width:580px;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.file-zone,input[type="file"]) {min-width:0;max-width:100%;overflow-wrap:anywhere;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) table {font-size:13px;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) th {background:#f1f7ff;color:#294578;font-size:12px;line-height:1.6;padding:12px;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) td {padding:12px;line-height:1.65;border-color:#e5edfa;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.admin-tabs,.tabs,.head-actions,.filter-bar,.filters) {gap:8px;flex-wrap:wrap;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.code-box,.copy-token) {overflow-wrap:anywhere;white-space:normal;max-width:100%;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(button,a,input,select,textarea,summary):focus-visible {outline:2px solid #0862ff;outline-offset:3px;}
@media(max-width:1000px) {
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .grid.detail {grid-template-columns:minmax(0,1fr);}
}
@media(max-width:740px) {
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) {padding:16px 12px;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.grid.two,.grid.equal,.form-grid,.monitor-layout,.qcvn-library) {grid-template-columns:minmax(0,1fr);}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .card {padding:15px;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .form-control {font-size:16px;min-height:44px;width:100%;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .btn {min-height:44px;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.head-actions,.ob-heading-actions) {width:100%;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.head-actions,.ob-heading-actions)>.btn {flex:1 1 140px;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .head-actions>.action-menu {flex:0 0 auto;min-width:125px;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .action-menu>summary {min-height:44px;display:flex;align-items:center;justify-content:center;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.monitor-toolbar,.filter-bar,.filters) {display:flex;flex-wrap:wrap;gap:12px;padding:14px 0;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.monitor-toolbar,.filter-bar,.filters)>.field {flex:1 1 100%;min-width:0;max-width:100%;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .field-values {flex-wrap:wrap;min-width:200px;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.admin-tabs,.tabs) {display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:8px;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.admin-tabs,.tabs)>* {flex-shrink:0;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view .topbar {height:auto;min-height:54px;gap:8px;padding:10px 12px;flex-wrap:wrap;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view #breadcrumb {flex:1;min-width:0;overflow-wrap:anywhere;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view .topbar-right {gap:10px;margin-left:auto;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view .topbar-right #account-button {display:none;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view .topbar .rb-top-export {padding:9px;font-size:11px;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view .rb-clock {display:none;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view .workspace>footer {padding:14px 12px;line-height:1.6;}
}
@media(max-width:380px) {
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .card {padding:12px;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.segments,.chart-parameters) {display:flex!important;flex-wrap:wrap;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.segments,.chart-parameters)>button {flex:1 1 65px;min-height:44px;}
}

/* Form actions: quiet secondary controls, one clear primary action. */
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .btn {
 min-height:38px;padding:8px 13px;border-radius:8px;font-size:12px;font-weight:600;
 gap:7px;letter-spacing:0;box-shadow:none;transition:background .15s,border-color .15s;
}

/* The same form language also applies to editors and import dialogs. */
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .form-actions {
 display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:18px;
}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .form-actions>.btn {flex:0 1 auto;width:auto;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) form.stack>.btn {justify-self:start;width:auto;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(input[type="checkbox"],input[type="radio"]) {
 width:18px;height:18px;min-height:0;padding:0;flex-shrink:0;accent-color:#3679df;vertical-align:middle;
}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.checkbox,.form-actions>label) {font-size:13px;color:#42618d;line-height:1.6;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) input[type="file"] {font:inherit;font-size:13px;max-width:100%;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) input[type="file"]::file-selector-button {
 padding:8px 12px;margin-right:10px;border:1px solid #dce6f4;border-radius:7px;background:#f4f8ff;color:#42618d;font:inherit;cursor:pointer;
}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .action-link {
 display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:6px 9px;min-height:32px;border:1px solid #dce6f4;border-radius:7px;background:#fff;color:#42618d;font:inherit;font-size:12px;text-decoration:none;white-space:normal;
}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .action-link:hover {background:#edf5ff;border-color:#c5d9f5;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.btn.danger,.action-link.danger) {background:#fff5f6;border-color:#f0d5db;color:#a94256;box-shadow:none;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view #content .admin-tabs {gap:5px;padding:5px;background:#f4f7fc;border:1px solid #e1e9f5;border-radius:10px;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view #content .admin-tabs .btn {background:transparent;border-color:transparent;color:#526b8d;min-height:34px;padding:7px 11px;font-weight:500;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view #content .admin-tabs .btn:not(.secondary) {background:#fff;border-color:#d7e4f7;color:#205bb5;font-weight:600;box-shadow:none;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view #modal-root .modal {padding:22px;border:1px solid #dce6f4;border-radius:12px;scrollbar-gutter:stable;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view #modal-root .modal-title {gap:12px;margin-bottom:20px;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view #modal-root .modal-title h2 {font-size:19px;line-height:1.5;color:var(--rb-ink);}
:root body#royal-blue-app.royal-blue-interface.rb-business-view #modal-root .modal-title .icon-button {display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border:1px solid #e2e9f3;border-radius:8px;background:#f8faff;color:#526b8d;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view #modal-root :is(.form-grid,.stack,form,fieldset) {min-width:0;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view #modal-root .form-control {width:100%;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view #modal-root .field>input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
 width:100%;min-width:0;max-width:100%;min-height:42px;padding:10px 12px;border:1px solid #cedfff;border-radius:7px;background:#fbfdff;color:#183768;font:inherit;font-size:13px;
}
:root body#royal-blue-app.royal-blue-interface.rb-business-view #modal-root .table-wrap {width:100%;min-width:0;}
@media(max-width:740px) {
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .action-link {min-height:44px;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view #content .admin-tabs .btn {min-height:44px;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view #modal-root .modal-overlay {padding:10px;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view #modal-root .modal {padding:16px;max-height:calc(100dvh - 20px);}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .form-grid {grid-template-columns:minmax(0,1fr)!important;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .form-actions {align-items:flex-start;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .form-actions>label {min-width:0;max-width:100%;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view #modal-root .modal-title .icon-button {width:44px;height:44px;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view #modal-root .field>input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {font-size:16px;min-height:44px;}
}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .btn svg {width:16px;height:16px;flex-shrink:0;stroke-width:1.7;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .btn.secondary {
 background:#fff;border:1px solid #dce6f4;color:#42618d;
}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .btn.ghost {
 background:transparent;border:1px solid transparent;color:#526b8d;box-shadow:none;
}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.btn.secondary,.btn.ghost):hover {
 background:#f0f6ff;border-color:#cbdcf4;color:#205bb5;box-shadow:none;
}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .btn:disabled {opacity:.5;cursor:not-allowed;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .action-menu>summary {
 display:flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;
 border:1px solid #dce6f4;border-radius:8px;background:#fff;color:#526b8d;font-size:12px;font-weight:500;box-shadow:none;
}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .action-menu-panel {
 max-width:calc(100vw - 48px);padding:6px;border:1px solid #dce6f4;border-radius:10px;box-shadow:0 8px 24px #17376814;
}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .action-menu-panel .btn {text-align:left;justify-content:flex-start;background:transparent;border-color:transparent;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view #report-xlsx,
:root body#royal-blue-app.royal-blue-interface.rb-business-view #monitor-refresh {
 background:#eef5ff;border:1px solid #d5e4fa;color:#245cb5;
}
:root body#royal-blue-app.royal-blue-interface.rb-business-view #report-xlsx:hover,
:root body#royal-blue-app.royal-blue-interface.rb-business-view #monitor-refresh:hover {background:#e1edff;border-color:#b9d1f4;box-shadow:none;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view #report-filter {
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;align-items:end;margin:0 0 16px;padding:0;background:transparent;border:0;
}
:root body#royal-blue-app.royal-blue-interface.rb-business-view #report-filter .field {min-width:0;margin:0;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view #report-filter .btn {min-height:42px;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .card:has(>#report-filter)>.tabs {
 display:flex;flex-wrap:wrap;gap:4px;overflow:visible;width:fit-content;max-width:100%;padding:4px;background:#f4f7fc;border:1px solid #e5ecf6!important;border-radius:10px;
}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) [data-report-days] {padding:7px 12px;min-height:34px;border-radius:7px;font-weight:500;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) [data-report-days][aria-pressed="true"] {background:#fff;border-color:#d7e4f7;color:#205bb5;font-weight:600;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .segments {
 background:#f4f7fc;border:1px solid #e5ecf6;border-radius:10px;padding:4px;gap:3px;
}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .segments button {
 background:transparent;border:1px solid transparent;border-radius:7px;color:#526b8d;min-height:34px;padding:7px 10px;font-size:12px;font-weight:500;box-shadow:none;
}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .segments button.active {background:#fff;border-color:#d7e4f7;color:#205bb5;font-weight:600;box-shadow:none;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .chart-parameters button {
 min-height:36px;padding:7px 9px;border:1px solid #e2e9f3;border-radius:8px;background:#fff;color:#526b8d;box-shadow:none;transform:none;
}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .chart-parameters button strong {font-size:12px;font-weight:500;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .chart-parameters button[aria-pressed="true"] {
 background:#edf5ff;border-color:#bfd6f5;color:#205bb5;box-shadow:none;
}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .chart-parameters button[aria-pressed="true"] svg {color:#205bb5;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .chart-parameters button:hover {background:#f4f8ff;border-color:#cbdcf4;box-shadow:none;transform:none;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .monitor-workspace .tabs {background:#fff;padding:0 12px;gap:8px;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .monitor-workspace .tab {font-size:12px;font-weight:500;color:#526b8d;padding:12px 10px;box-shadow:none;border-radius:0;}
:root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .monitor-workspace .tab.active {background:transparent;color:#205bb5;border-bottom:2px solid #3d7ce0;box-shadow:none;}
@media(max-width:1100px) {
 :root body#royal-blue-app.royal-blue-interface.rb-business-view #report-filter {grid-template-columns:repeat(2,minmax(0,1fr));}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view #report-filter>.btn {justify-self:start;align-self:end;}
}
@media(max-width:740px) {
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .btn {min-height:44px;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) :is(.head-actions,.ob-heading-actions)>.btn {flex:0 1 auto;width:auto;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .head-actions>.action-menu {min-width:0;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .action-menu>summary {min-height:44px;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view #report-filter {grid-template-columns:minmax(0,1fr);gap:14px;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view #report-filter>.btn {justify-self:stretch;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) [data-report-days] {min-height:44px;padding:7px 10px;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .monitor-toolbar>div {width:100%;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .segments {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .segments button {min-height:44px;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .chart-parameters {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .chart-parameters button {min-height:44px;justify-content:center;}
 :root body#royal-blue-app.royal-blue-interface.rb-business-view :is(#content,#modal-root) .chart-parameters button span {display:none;}
}

/* ==== admin-workspace.css ==== */
/* Admin-only layout; loaded after the shared design system. */
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace {display:grid;grid-template-columns:218px minmax(0,1fr);gap:22px;align-items:start;--admin-line:#dfe7f2;--admin-ink:#19365c;--admin-muted:#5c708c;}
:root body#royal-blue-app.royal-blue-interface #content .admin-navigation {position:sticky;top:76px;max-height:calc(100dvh - 94px);overflow-y:auto;scrollbar-width:thin;background:#fff;border:1px solid var(--admin-line);border-radius:16px;padding:14px 10px;}
.admin-nav-heading {display:grid;gap:3px;padding:4px 12px 16px;border-bottom:1px solid #edf1f7;}
.admin-nav-heading strong {font-size:14px;color:#19365c;}
.admin-nav-heading>span {font-size:12px;color:#63758f;}
.admin-nav-group {padding-top:14px;}
.admin-nav-group h2 {margin:0 12px 8px;font-size:10px;font-weight:700;letter-spacing:.65px;text-transform:uppercase;color:#63758f;}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-item {display:flex;align-items:center;gap:10px;min-height:42px;margin:3px 0;padding:9px 11px;border:1px solid transparent;border-radius:9px;color:#536986;text-decoration:none;font-size:12px;font-weight:500;line-height:1.5;}
.admin-nav-item>svg {flex-shrink:0;color:#7a90ad;}
.admin-nav-item>span:not(.admin-active-dot) {flex:1;}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-item:hover {background:#f5f8fd;color:#225bbb;}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-item.is-active {background:#edf4ff;border-color:#d7e6ff;color:#185adb;font-weight:700;}
.admin-nav-item.is-active>svg {color:#286be7;}
.admin-active-dot {width:6px;height:6px;border-radius:50%;background:#286be7;flex-shrink:0;}
.admin-main {min-width:0;}
.admin-context {display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:4px 2px;}
.admin-eyebrow {color:#6a7e9a;font-size:11px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-context h2 {margin:3px 0 6px;font-size:23px;line-height:1.4;color:#19365c;letter-spacing:-.4px;}
.admin-context p {margin:0;color:#5c708c;font-size:13px;line-height:1.7;max-width:65ch;}
.admin-context-icon {display:grid;place-items:center;width:52px;height:52px;flex-shrink:0;background:#e8f1ff;border:1px solid #d8e7ff;border-radius:14px;color:#286be7;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace #admin-panel .card {padding:22px;border:1px solid var(--admin-line);border-radius:16px;background:#fff;box-shadow:0 4px 16px #20365c04;margin-bottom:18px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .settings-title {padding-bottom:16px;border-bottom:1px solid #e9eef6;margin-bottom:22px;gap:8px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .settings-title .card-title {margin:0;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .card-title h2 {font-size:15px;line-height:1.6;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .appearance-section {border:0;padding:0;margin:0 0 26px;min-width:0;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .appearance-section legend {width:100%;display:block;font-size:13px;font-weight:700;color:#244268;padding:0 0 12px;margin-bottom:16px;border-bottom:1px solid #edf1f7;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;padding:0;margin:0;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-hidden-grid {display:none;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .field {min-width:0;margin:0;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .field.full {grid-column:1/-1;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .field>label {display:flex;align-items:center;gap:6px;min-height:22px;margin:0 0 7px;color:#435c7c;font-size:12px;line-height:1.6;font-weight:600;}
.admin-required {color:#c64a52;font-size:13px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace :is(.form-control,.settings-records input:not([type=checkbox]),.settings-records select,.settings-records textarea) {width:100%!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto;padding:10px 12px;border:1px solid #d6e0ee;border-radius:8px;background:#fcfdff;box-shadow:none;font-size:13px!important;color:#243e60;line-height:1.6;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace textarea.form-control {min-height:108px;resize:vertical;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .form-control:focus {border-color:#5285e6;box-shadow:0 0 0 3px #2c72ea12;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-toggle-field {display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;background:#f8fafd;border:1px solid #e5ecf5;border-radius:9px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-toggle-field>label {margin:0;flex:1;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace input[type=checkbox] {width:18px;height:18px;accent-color:#286be7;flex-shrink:0;cursor:pointer;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace input[type=color] {height:44px;padding:5px;cursor:pointer;}
.admin-color-value {display:block;margin-top:4px;font-size:11px;font-family:Consolas,monospace;color:#6a7e9a;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace [hidden], :root body#royal-blue-app.royal-blue-interface #modal-root :is(.admin-station-form,.admin-account-form) [hidden] {display:none!important;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace #admin-panel #settings-form input[type=number] {width:100%!important;min-width:0!important;padding:10px 12px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace #admin-panel .settings-array {padding:20px 0 0;margin:22px 0 0;border-top:1px solid #e9eef6;}
.admin-record-count {font-size:11px;color:#63758f;margin-left:auto;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace #admin-panel .settings-records tr {grid-template-columns:repeat(3,minmax(0,1fr));padding:18px;gap:16px;background:#f9fbff;border:1px solid #e0e8f4;border-radius:12px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .settings-cell-label {display:flex;align-items:center;gap:5px;color:#536986;font-size:11px;line-height:1.5;margin-bottom:7px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .settings-records td[data-field=name] {grid-column:span 2;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .settings-records td:is([data-field=reference],[data-field=next_step],[data-field=replace_with],[data-field=value],[data-field=evidence],[data-field=reason],[data-field=description]) {grid-column:1/-1;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .settings-records .settings-row-actions {border-top:1px solid #e3eaf5!important;gap:8px;padding-top:12px!important;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .action-link {min-width:36px;min-height:36px;padding:6px 10px;border:1px solid #dce5f2;border-radius:7px;background:#fff;font-size:12px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .action-link.danger {color:#bd4551;border-color:#f0dce0;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .action-link:disabled {opacity:.35;cursor:default;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .btn {min-height:42px;border-radius:8px;font-size:12px;padding:9px 14px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-save-area {margin-top:26px;padding:20px;background:#f5f8fd;border:1px solid #dfe8f5;border-radius:12px;}
.admin-save-heading {display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:15px;font-size:13px;color:#244268;}
.admin-save-status {font-size:11px;color:#6a7e9a;font-weight:500;}
[data-dirty=true] .admin-save-status {color:#a56a12;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .form-actions {gap:10px;display:flex;flex-wrap:wrap;margin-top:16px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .table-wrap:not(.settings-records) {border:1px solid #e2e9f4;border-radius:10px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace :is(input,select,textarea):disabled {background:#f0f3f8;color:#8390a4;cursor:not-allowed;}
@media(min-width:1500px) {
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace {grid-template-columns:236px minmax(0,1fr);gap:28px;}
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace #settings-form[data-settings-group=parameters] .settings-records tr {grid-template-columns:repeat(4,minmax(0,1fr));}
}

/* Detailed editors and business-specific panels. */
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-detailed-form>fieldset {margin:0 0 20px;padding:20px;border:1px solid #e1e8f3;border-radius:12px;background:#fff;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-detailed-form>fieldset>legend {float:left;display:flex;align-items:center;gap:10px;width:100%;padding:0;margin:0 0 8px;border:0;font-size:14px;}
.admin-section-index {display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:8px;background:#edf4ff;color:#2f6dcc;font-size:11px;font-weight:700;}
.admin-section-description {clear:both;margin:0 0 16px;font-size:12px;line-height:1.75;color:#647792;}
.admin-field-help {display:block;line-height:1.65;font-size:12px;color:#64758e;margin-top:7px;overflow-wrap:anywhere;}
.admin-character-count {display:block;text-align:right;font-size:10px;color:#63758f;margin-top:4px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-live-preview {padding:18px 20px;margin:0 0 22px;border:1px solid #d9e7f9;border-radius:12px;background:linear-gradient(115deg,#f6faff,#f1f6fd);}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-live-preview .card-title {margin-bottom:5px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-live-preview .card-title h2 {font-size:13px;}
.admin-live-preview .admin-section-description {margin-bottom:14px;font-size:11px;}
.admin-preview-metrics {display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:12px 0;}
.admin-preview-metric {display:grid;gap:4px;padding:10px 12px;background:#ffffffb8;border:1px solid #e3eaf5;border-radius:8px;min-width:0;}
.admin-preview-metric>span {font-size:10px;color:#63758f;}
.admin-preview-metric>strong {font-size:13px;color:#27466e;overflow-wrap:anywhere;line-height:1.6;font-weight:600;}
.admin-preview-content>svg {display:block;width:100%;max-height:170px;background:#fff;border:1px solid #e1eaf6;border-radius:9px;}
.admin-preview-footnote {margin:10px 0 0;font-size:10px;color:#63758f;line-height:1.7;}
.admin-brand-preview {display:flex;gap:12px;align-items:center;padding:6px 0;}
.admin-brand-preview>div {min-width:0;}
.admin-brand-preview strong {font-size:16px;color:#25446e;overflow-wrap:anywhere;}
.admin-brand-preview p {font-size:11px;color:#63758f;margin:3px 0 0;}
.admin-data-flow {display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.admin-data-flow>span {font-size:12px;color:#43658c;background:#fff;border:1px solid #dfe9f7;border-radius:8px;padding:10px 14px;}
.admin-data-flow>b {color:#91a8c7;font-weight:400;}
.admin-preview-caption {display:block;font-size:10px;letter-spacing:.5px;font-weight:600;color:#63758f;margin-bottom:7px;}
.admin-message-preview {padding:16px;background:#fff;border:1px solid #e1e9f5;border-radius:10px;}
.admin-message-preview strong {font-size:14px;color:#25446e;overflow-wrap:anywhere;}
.admin-message-preview p {font-size:13px;line-height:1.8;color:#56708e;margin:10px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;}
.admin-excel-preview {display:grid;gap:6px;margin-top:12px;}
.admin-excel-preview>div {display:grid;grid-template-columns:minmax(90px,1fr) 2fr;gap:10px;padding:9px 12px;background:#fff;border:1px solid #e0e8f3;border-radius:7px;font-size:11px;line-height:1.7;}
.admin-excel-preview strong {color:#466382;font-weight:600;}
.admin-excel-preview span {color:#63758f;font-family:Consolas,monospace;overflow-wrap:anywhere;}
.admin-menu-preview {display:flex;flex-wrap:wrap;gap:7px;}
.admin-menu-preview>span {font-size:11px;padding:7px 10px;background:#fff;border:1px solid #e0e8f3;border-radius:7px;color:#466382;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-record-collection {border:0!important;margin:22px 0!important;padding:0!important;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-record-collection>.card-title {gap:8px;margin:0 0 7px;}
.admin-collection-tools,.admin-list-toolbar {display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0;}
.admin-record-search {display:flex;align-items:center;gap:9px;flex:1;min-width:150px;border:1px solid #dce5f2;border-radius:8px;background:#fff;padding:0 12px;color:#63758f;}
.admin-record-search:focus-within {outline:2px solid #3974df;outline-offset:2px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-record-search input {width:100%;min-width:0;height:40px;background:transparent;border:0;outline:0;box-shadow:none;color:#395777;font:inherit;font-size:12px;}
.admin-record-search input::placeholder {color:#94a1b4;}
.admin-text-button,.admin-undo-button {border:0;background:transparent;color:#416fb6;font:inherit;font-size:11px;padding:8px 6px;cursor:pointer;text-decoration:underline;text-underline-offset:3px;}
.admin-search-count,.admin-list-result-count {font-size:10px;color:#63758f;white-space:nowrap;}
.admin-record-list {display:grid;gap:10px;}
.admin-record {border:1px solid #e0e7f2;border-radius:11px;background:#fff;min-width:0;}
.admin-record>summary {display:flex;align-items:center;gap:12px;list-style:none;padding:14px 16px;cursor:pointer;user-select:none;}
.admin-record>summary::-webkit-details-marker {display:none;}
.admin-record-index {display:grid;place-items:center;flex:none;width:32px;height:32px;background:#f0f5fc;color:#7a91b4;border:1px solid #e2eaf6;border-radius:9px;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;}
.admin-record-summary {flex:1;min-width:0;display:grid;gap:3px;}
.admin-record-summary strong {font-size:13px;font-weight:600;line-height:1.6;color:#29496f;overflow-wrap:anywhere;}
.admin-record-summary small {font-size:11px;line-height:1.6;color:#63758f;overflow-wrap:anywhere;}
.admin-record-chevron {flex:none;color:#9aadca;transition:transform .15s;}
.admin-record[open]>.summary,.admin-record[open]>summary {background:#f7faff;border-radius:11px 11px 0 0;}
.admin-record[open] .admin-record-chevron {transform:rotate(180deg);}
.admin-record-body {padding:18px;border-top:1px solid #e7edf6;}
.admin-record-section+.admin-record-section {padding-top:18px;margin-top:18px;border-top:1px solid #edf1f7;}
.admin-record-section h3 {font-size:12px;margin:0 0 12px;color:#667d9b;font-weight:600;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-record .form-grid {gap:14px 16px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-record .field>label {font-size:12px;color:#4d6585;}
.admin-record-actions {display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;padding-top:15px;margin-top:18px;border-top:1px solid #edf1f7;}
.admin-record-actions>span {font-size:10px;color:#63758f;margin-right:auto;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-record-actions>.btn {min-height:34px;padding:6px 9px;font-size:10px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-record-actions>.admin-danger {color:#b45a64;background:#fff7f7;border-color:#efdce0;}
.admin-empty-state {display:grid;justify-items:center;gap:7px;padding:28px 18px;background:#f8fafd;border:1px dashed #d8e3f3;border-radius:10px;text-align:center;color:#8395af;font-size:12px;}
.admin-empty-state strong {font-size:13px;color:#5b7799;}
.admin-empty-state p {max-width:44ch;font-size:11px;line-height:1.7;margin:0;}
.admin-no-results {font-size:12px;color:#8192aa;text-align:center;padding:16px;}
.admin-inline-error {font-size:12px;line-height:1.7;color:#b24c5b;background:#fff6f6;padding:12px;border:1px solid #f1dce0;border-radius:8px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-code-input {font-family:Consolas,monospace;font-size:12px!important;min-height:180px;line-height:1.7;tab-size:2;}
.admin-editor-tools {display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:6px;}
.admin-json-status {font-size:10px;color:#63758f;}
.admin-template-variables {display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:10px;}
.admin-template-variables>span {font-size:10px;color:#63758f;}
.admin-template-variables>button {padding:5px 8px;background:#edf4ff;border:1px solid #dbe7f8;border-radius:5px;font-family:Consolas,monospace;font-size:10px;color:#507aba;cursor:pointer;}
.admin-detail-note {font-size:11px;line-height:1.8;color:#617b9b;background:#f2f7ff;border:1px solid #dfeafa;border-radius:8px;padding:12px 14px;margin:0 0 18px;}
.admin-list-toolbar>.form-control {flex:0 1 180px;}
.admin-station-list {display:grid;gap:12px;}
.admin-station-card {padding:18px;border:1px solid #e1e8f3;border-radius:12px;background:#fff;}
.admin-station-top {display:flex;gap:12px;align-items:center;}
.admin-station-symbol {display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:11px;background:#ecf4ff;border:1px solid #dde9fa;color:#5486c7;}
.admin-station-top>div {flex:1;min-width:0;}
.admin-station-top h3 {margin:0;font-size:14px;color:#2c4c72;line-height:1.6;}
.admin-station-top .admin-preview-caption {margin:0 0 2px;}
.admin-status {display:inline-block;padding:4px 8px;font-size:10px;border-radius:5px;white-space:nowrap;}
.admin-status.ok {color:#43816d;background:#eef8f3;border:1px solid #d9eee4;}
.admin-status.neutral {color:#63758f;background:#f4f6f9;border:1px solid #e5eaf0;}
.admin-station-meta {display:grid;grid-template-columns:120px minmax(0,1fr);gap:8px 14px;font-size:11px;line-height:1.7;margin:16px 0;padding:14px;background:#f8fafd;border-radius:8px;}
.admin-station-meta span {color:#63758f;}
.admin-station-meta strong {color:#57708f;font-weight:500;overflow-wrap:anywhere;}
.admin-station-meta .admin-unconfirmed {color:#b58a4a;}
.admin-station-actions {display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;}
.admin-history-list {position:relative;display:grid;gap:0;margin-top:8px;}
.admin-history-entry {display:flex;align-items:center;gap:16px;position:relative;padding:20px 0 20px 24px;border-bottom:1px solid #ecf0f7;}
.admin-history-entry::before {content:'';position:absolute;left:5px;top:0;bottom:0;border-left:1px solid #dde6f4;}
.admin-history-dot {position:absolute;top:29px;left:0;width:11px;height:11px;border:3px solid #edf4ff;border-radius:50%;background:#73a0df;box-shadow:0 0 0 1px #dbe6f6;}
.admin-history-body {flex:1;min-width:0;}
.admin-history-heading {display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
.admin-history-heading h3 {margin:0;font-size:13px;color:#3b5b7e;}
.admin-version-pill {font-size:9px;color:#63758f;background:#f0f5fc;border-radius:4px;padding:3px 6px;}
.admin-history-body p {font-size:12px;color:#63758f;line-height:1.7;margin:8px 0 4px;overflow-wrap:anywhere;}
.admin-history-body time {font-size:10px;color:#63758f;}
.admin-template-grid {display:grid;gap:18px;}
.admin-feature-list {list-style:none;display:grid;gap:12px;padding:0;margin:18px 0;}
.admin-feature-list li {display:flex;align-items:center;gap:10px;font-size:12px;color:#5e7390;}
.admin-feature-list li>svg {color:#6b9dd9;flex:none;}
.admin-template-steps {font-size:12px;line-height:1.8;color:#5e7390;display:grid;gap:10px;padding-left:20px;}
.admin-import-process {list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0;padding:0;}
.admin-import-process li {display:grid;gap:6px;padding:13px;background:#f5f9ff;border:1px solid #e0e9f8;border-radius:9px;min-width:0;}
.admin-import-process li>span {color:#8baddc;font-size:11px;font-weight:600;}
.admin-import-process strong {font-size:11px;color:#56759b;font-weight:600;line-height:1.6;}
.admin-import-process small {font-size:11px;color:#63758f;line-height:1.6;}
.admin-import-types {display:grid;gap:14px;margin:20px 0;}
.admin-import-type {border:1px solid #e1e8f3;border-radius:11px;padding:18px;background:#fff;}
.admin-import-type-heading {display:flex;align-items:center;gap:10px;}
.admin-import-type-heading>span:first-child {color:#6b9ad6;display:grid;place-items:center;padding:9px;background:#eff5ff;border:1px solid #dfeafa;border-radius:9px;}
.admin-import-type-heading h3 {font-size:13px;line-height:1.6;color:#416286;margin:0;flex:1;}
.admin-import-type>p {font-size:11px;line-height:1.8;color:#63758f;margin:12px 0;}
.admin-import-columns {font-size:10px;color:#63758f;}
.admin-import-columns summary {cursor:pointer;padding:5px 0;}
.admin-import-columns>div {display:flex;gap:5px;flex-wrap:wrap;margin:8px 0;}
.admin-import-columns code {font-size:10px;padding:4px 6px;border:1px solid #e2e9f4;background:#f8fafd;color:#6f89ac;border-radius:4px;overflow-wrap:anywhere;max-width:100%;}
.admin-import-type-actions {display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding-top:12px;margin-top:12px;border-top:1px solid #edf1f7;}
.admin-import-type-actions>div {display:flex;gap:8px;align-items:center;}
.admin-import-type-actions>div>span {font-size:10px;color:#63758f;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace #logo-form.admin-logo-upload {display:grid;grid-template-columns:1fr 1fr;padding:18px;border:1px solid #e1e8f3;border-radius:11px;margin-top:24px;gap:14px;background:#f9fbff;}
.admin-upload-heading {grid-column:1/-1;}
.admin-upload-heading>strong {font-size:14px;color:#4a6a90;}
.admin-upload-heading>p {font-size:11px;color:#63758f;line-height:1.8;margin:7px 0;}
.admin-logo-preview {display:flex;gap:12px;align-items:center;grid-column:1/-1;border:1px dashed #d7e3f4;border-radius:9px;padding:16px;background:#fff;}
.admin-logo-preview img {max-width:100px;max-height:72px;object-fit:contain;}
.admin-logo-preview span {font-size:11px;color:#63758f;overflow-wrap:anywhere;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace #logo-form>label {grid-column:1/-1;display:grid;gap:8px;min-width:0;font-size:11px;color:#63758f;}
.admin-json-preview {padding:18px;border:1px solid #e1e8f3;border-radius:11px;margin-top:24px;}
.admin-json-payload-status {display:block;font-size:11px;color:#63758f;line-height:1.8;margin-top:7px;}
.admin-upload-label {display:grid;gap:10px;padding:16px;border:1px dashed #cfddf1;border-radius:10px;background:#f9fbff;font-size:12px;color:#6c83a3;}
.admin-file-status {font-size:11px;color:#63758f;overflow-wrap:anywhere;margin:0;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-api-cards {grid-template-columns:minmax(0,1fr);gap:16px;}
.admin-account-directory td {overflow-wrap:anywhere;}
.admin-account-directory table {min-width:580px;}
.admin-account-directory .table-wrap {max-height:none;}
.admin-api-cards .code-box {font-size:12px;line-height:2.1;background:#f7faff;border:1px solid #e2eaf6;color:#577196;}
:root body#royal-blue-app.royal-blue-interface:has(.admin-workspace) #modal-root .modal {border-radius:16px;}
:root body#royal-blue-app.royal-blue-interface:has(.admin-workspace) #modal-root :is(.admin-station-form,.admin-account-form) fieldset {border:1px solid #e1e9f4;border-radius:10px;padding:16px;margin:0 0 18px;min-width:0;}
:root body#royal-blue-app.royal-blue-interface:has(.admin-workspace) #modal-root .admin-station-form .form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
:root body#royal-blue-app.royal-blue-interface:has(.admin-workspace) #modal-root .admin-station-form legend {font-size:12px;font-weight:600;color:#6a82a2;padding:0 8px;}
:root body#royal-blue-app.royal-blue-interface:has(.admin-workspace) #modal-root #station-form input[type=number] {width:100%!important;min-width:0!important;}
:root body#royal-blue-app.royal-blue-interface:has(.admin-workspace) #modal-root .admin-toggle-field {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #e2eaf4;border-radius:8px;background:#f8fafd;}
:root body#royal-blue-app.royal-blue-interface:has(.admin-workspace) #modal-root .admin-toggle-field>label {margin:0;}
.admin-scope-muted {opacity:.6;}
.admin-account-form .scope-stations {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.admin-account-form .scope-stations label {padding:10px;border:1px solid #e4ebf5;border-radius:7px;font-size:11px;background:#f9fbff;}
#location-preview-result:not(:empty) {font-size:12px;color:#547598;padding:12px 14px;border:1px solid #dfe9f7;border-radius:8px;background:#f2f7ff;width:100%;}
:root body#royal-blue-app.royal-blue-interface:has(.admin-workspace) #modal-root .admin-import-form>label {display:grid;gap:9px;font-size:12px;color:#4d6585;padding:14px;border:1px solid #e0e8f4;border-radius:9px;background:#f9fbff;}
.admin-import-form .admin-import-file-status {display:block;margin-top:6px;font-size:11px;line-height:1.7;color:#7087a5;}
:root body#royal-blue-app.royal-blue-interface:has(.admin-workspace) #modal-root .import-steps {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0;list-style:none;gap:7px;}
:root body#royal-blue-app.royal-blue-interface:has(.admin-workspace) #modal-root .import-steps>li {font-size:11px;line-height:1.7;padding:9px 11px;background:#f4f7fc;color:#63758f;border:1px solid #e2e9f4;border-radius:7px;}
:root body#royal-blue-app.royal-blue-interface:has(.admin-workspace) #modal-root .import-steps>li[aria-current=step] {color:#467bca;background:#edf4ff;border-color:#cddff8;}
@media(max-width:600px) {
 .admin-import-process {grid-template-columns:repeat(2,minmax(0,1fr));}
 .admin-import-type {padding:14px;}
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace #logo-form.admin-logo-upload {grid-template-columns:minmax(0,1fr);padding:14px;}
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-detailed-form>fieldset {padding:14px;}
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-live-preview {padding:14px;}
 .admin-preview-metrics {grid-template-columns:repeat(2,minmax(0,1fr));}
 .admin-record>summary {padding:12px;gap:9px;}
 .admin-record-body {padding:14px;}
 .admin-record-actions>span {width:100%;}
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace :is(.admin-text-button,.admin-template-variables>button,.admin-record-actions>.btn) {min-height:44px;}
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-record-search input {font-size:16px;height:44px;}
 .admin-list-toolbar>.form-control {flex:1 1 100%;}
 .admin-station-top {flex-wrap:wrap;}
 .admin-station-meta {grid-template-columns:85px minmax(0,1fr);gap:8px;font-size:10px;padding:12px;}
 .admin-history-entry {flex-wrap:wrap;gap:10px;}
 .admin-history-entry>.btn {margin-left:auto;}
 .admin-history-body {flex-basis:100%;}
 .admin-excel-preview>div {grid-template-columns:minmax(0,1fr);gap:3px;}
 :root body#royal-blue-app.royal-blue-interface:has(.admin-workspace) #modal-root .admin-station-form .form-grid {grid-template-columns:minmax(0,1fr);}
 .admin-account-form .scope-stations {grid-template-columns:minmax(0,1fr);}
 :root body#royal-blue-app.royal-blue-interface:has(.admin-workspace) #modal-root .import-steps {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:1050px) {
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace {grid-template-columns:minmax(0,1fr);gap:18px;}
 :root body#royal-blue-app.royal-blue-interface #content .admin-navigation {position:static;max-height:none;overflow:visible;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px;}
 .admin-nav-heading {grid-column:1/-1;padding-bottom:10px;}
 .admin-nav-group {padding:0;}
}
@media(max-width:600px) {
 :root body#royal-blue-app.royal-blue-interface:has(.admin-workspace) .rb-top-export {font-size:0;overflow:hidden;display:grid;place-items:center;}
 :root body#royal-blue-app.royal-blue-interface:has(.admin-workspace) .rb-top-export::before {content:'↗';font-size:20px;line-height:1;}
 :root body#royal-blue-app.royal-blue-interface #content .admin-navigation {display:block;padding:10px;}
 .admin-nav-group {display:flex;flex-wrap:wrap;gap:5px;padding-top:12px;}
 .admin-nav-group h2 {width:100%;margin:0 5px 5px;}
 :root body#royal-blue-app.royal-blue-interface #content .admin-nav-item {min-height:44px;margin:0;font-size:11px;padding:7px 9px;background:#f8fafd;border-color:#e7edf6;gap:6px;}
 .admin-nav-item>svg {width:15px;height:15px;}
 .admin-active-dot {display:none;}
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace #admin-panel .card {padding:16px;border-radius:12px;}
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace :is(.form-grid,#admin-panel .settings-records tr,#settings-form[data-settings-group=parameters] .settings-records tr) {grid-template-columns:minmax(0,1fr)!important;}
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace .settings-records td {grid-column:1/-1!important;}
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace :is(.form-control,.settings-records input:not([type=checkbox]),.settings-records select,.settings-records textarea) {font-size:16px!important;}
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace :is(.btn,.action-link) {min-height:44px;}
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-save-area {padding:14px;}
 .admin-context-icon {width:44px;height:44px;}
}
/* Parameter catalog: compact overview and a focused editor. */
.parameter-catalog-meta {font-size:12px;color:#526783;margin:4px 0 16px;line-height:1.7;}
.parameter-list-heading {display:flex;justify-content:space-between;padding:8px 54px 8px 16px;font-size:11px;color:#64748b;font-weight:600;}
.parameter-summary-icon {display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:9px;background:#f0f5fc;}
.parameter-range {white-space:nowrap;font-size:12px;color:#344563;font-variant-numeric:tabular-nums;}
.parameter-state {font-size:10px;white-space:nowrap;color:#166534;background:#edf8ef;border-radius:5px;padding:4px 7px;}
.parameter-state.is-off {color:#64748b;background:#f1f5f9;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .parameter-record>summary {padding:12px 14px;gap:12px;min-height:70px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .parameter-record .admin-record-summary strong {font-size:14px;line-height:1.5;color:#243957;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .parameter-record .admin-record-body {padding:0 18px 14px;}
.parameter-tabs {display:flex;gap:6px;border-bottom:1px solid #e2e8f0;margin:0 0 18px;padding-top:8px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .parameter-tabs button {border:0;border-bottom:3px solid transparent;background:transparent;color:#526783;padding:12px 10px;font-size:12px;font-weight:600;min-height:44px;cursor:pointer;border-radius:0;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .parameter-tabs button[aria-selected=true] {color:#1d4ed8;border-bottom-color:#2563eb;}
.parameter-tabs button:focus-visible {outline:2px solid #2563eb;outline-offset:-2px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .parameter-record .form-grid {gap:14px 16px;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .parameter-record .admin-toggle-field {display:grid;grid-template-columns:1fr auto;padding:10px 12px;gap:3px 12px;}
.parameter-record .admin-toggle-field .admin-field-help {grid-column:1;grid-row:2;margin:0;}
.parameter-record .admin-toggle-field input {grid-column:2;grid-row:1 / span 2;width:20px;height:20px;accent-color:#2563eb;}
.parameter-section-note {font-size:12px;color:#526783;line-height:1.8;margin:0 0 16px;padding:11px 13px;background:#f3f7fc;border-radius:8px;}
.parameter-section-note a {color:#1d4ed8;text-decoration:underline;}
.parameter-method-note {font-size:12px;color:#526783;line-height:1.7;margin:10px 0 0;}
.parameter-preview {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:16px;margin:16px 0 6px;}
.parameter-sample-card {display:flex;gap:13px;align-items:center;border:1px solid #e2e8f0;border-left:4px solid var(--parameter-color);border-radius:10px;padding:14px;background:#fff;}
.parameter-sample-card>span {color:var(--parameter-color);}
.parameter-sample-card strong {font-size:12px;color:#334155;}
.parameter-sample-card p {margin:5px 0 0;font-size:12px;color:#64748b;}
.parameter-sample-card b {font-size:23px;line-height:1.3;color:var(--parameter-color);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.parameter-preview-status {font-size:12px;color:#526783;line-height:1.8;}
.parameter-field-error {font-size:12px;line-height:1.7;color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;padding:10px 12px;border-radius:7px;margin:14px 0 0;}
.parameter-record .admin-record-actions {margin-top:16px;}
@media(max-width:600px) {
 .parameter-list-heading {padding-right:40px;}
 .parameter-state {display:none;}
 .parameter-range {font-size:11px;}
 .parameter-summary-icon {width:28px;height:32px;flex-basis:28px;}
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace .parameter-record>summary {padding:12px 9px;gap:8px;flex-wrap:nowrap;}
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace .parameter-record .admin-record-summary strong {font-size:12px;}
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace .parameter-record .admin-record-body {padding:0 12px 14px;}
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace .parameter-tabs button {padding:10px 6px;font-size:11px;}
 .parameter-preview {grid-template-columns:minmax(0,1fr);gap:8px;}
}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .parameter-record [data-parameter-panel=quality] .form-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
@media(max-width:600px) {
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace .parameter-record [data-parameter-panel=quality] .form-grid {grid-template-columns:minmax(0,1fr)!important;}
}
.parameter-chart-color {display:flex;gap:7px;align-items:center;margin-top:8px;font-size:11px;color:#526783;}
.parameter-chart-color i {width:18px;height:4px;border-radius:2px;flex:none;}
@media(max-width:600px) {
 :root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-parameters .admin-record-search {flex:1 1 100%;}
}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .parameter-record .field:not(.admin-toggle-field) {align-content:start;}
/* Focused editors for the complete admin workspace. */
.admin-editor-overview {display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px;}
.admin-editor-revision {font-size:11px;font-weight:600;color:#526783;}
.admin-editor-summary {font-size:12px;color:#475569;line-height:1.8;margin:5px 0 0;overflow-wrap:anywhere;}
.admin-editor-overview>.btn {flex-shrink:0;}
.admin-editor-tabs {display:flex;flex-wrap:wrap;gap:5px;border-bottom:1px solid #dbe5f1;padding:0 0 5px;margin:0 0 18px;grid-column:1/-1;}
:root body#royal-blue-app.royal-blue-interface :is(#content .admin-workspace,#modal-root) .admin-editor-tabs>button {display:flex;align-items:center;gap:7px;min-height:44px;padding:9px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:#526783;font-size:12px;line-height:1.6;font-weight:600;cursor:pointer;}
:root body#royal-blue-app.royal-blue-interface :is(#content .admin-workspace,#modal-root) .admin-editor-tabs>button[aria-selected=true] {background:#edf4ff;color:#1d4ed8;border-color:#cddff8;}
.admin-editor-tabs>button:focus-visible {outline:2px solid #2563eb;outline-offset:2px;}
.admin-tab-changes {font-size:9px;color:#b45309;}
:root body#royal-blue-app.royal-blue-interface :is(#content .admin-workspace,#modal-root) [hidden] {display:none!important;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-focused-editor>fieldset.admin-editor-panel {padding:0;margin:0;border:0;border-radius:0;}
.admin-focused-editor>.admin-editor-panel>legend {display:none;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace #admin-panel .admin-focused-editor>.settings-array.admin-editor-panel {margin:0;padding:0;border:0;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-focused-editor>.admin-live-preview.admin-editor-panel {padding:16px;margin:0;}
:root body#royal-blue-app.royal-blue-interface :is(#content .admin-workspace,#modal-root) .field:not(.admin-toggle-field) {align-content:start;}
.admin-focused-editor .admin-record-section {border:0!important;padding:0!important;margin:0!important;}
.admin-focused-editor .admin-record-section.admin-editor-panel>h3 {display:none;}
.admin-control-error {display:block;color:#b91c1c;font-size:12px;line-height:1.7;margin-top:6px;}
:root body#royal-blue-app.royal-blue-interface :is(#content .admin-workspace,#modal-root) [aria-invalid=true] {border-color:#dc2626!important;}
.admin-supplemental-tool {border:1px solid #dfe7f2;border-radius:10px;margin-top:18px;overflow:hidden;}
.admin-supplemental-tool>summary {display:flex;align-items:center;gap:9px;cursor:pointer;padding:14px;font-size:13px;font-weight:600;color:#334155;}
.admin-supplemental-tool>summary>span {margin-left:auto;font-size:10px;font-weight:400;color:#64748b;}
.admin-supplemental-tool>form {padding:0 16px 16px;margin:0!important;}
.admin-supplemental-tool>#api-preview-result {padding:0 16px 16px;}
.admin-station-detail {border-top:1px solid #e5edf6;border-bottom:1px solid #e5edf6;}
.admin-station-detail>summary {display:flex;align-items:center;gap:8px;cursor:pointer;font-size:12px;color:#526783;padding:12px 16px;}
.admin-station-location-state {margin-left:auto;font-size:11px;}
.admin-station-detail .admin-station-meta {border:0;}
.admin-history-reason>summary {font-size:12px;color:#1d4ed8;cursor:pointer;margin:8px 0;}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace :is(.admin-template-grid.admin-template-editor,.admin-import-types:has(.admin-editor-tabs)) {display:block;}
.admin-template-editor>.admin-editor-panel {margin-top:0;}
.admin-import-tab-content {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
:root body#royal-blue-app.royal-blue-interface:has(.admin-workspace) #modal-root .admin-editor-panel {padding:14px;margin:0 0 18px;}
:root body#royal-blue-app.royal-blue-interface:has(.admin-workspace) #modal-root .admin-editor-panel>legend {display:none;}
@media(max-width:600px) {
 .admin-editor-overview {align-items:flex-start;flex-wrap:wrap;}
 .admin-editor-tabs {gap:5px;}
 :root body#royal-blue-app.royal-blue-interface :is(#content .admin-workspace,#modal-root) .admin-editor-tabs>button {padding:8px 9px;font-size:11px;}
 .admin-import-tab-content {grid-template-columns:minmax(0,1fr);}
 .admin-supplemental-tool>summary {flex-wrap:wrap;}
 .admin-station-location-state {font-size:10px;}
}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-focused-editor>fieldset.admin-editor-panel>legend {display:none;}
:root body#royal-blue-app.royal-blue-interface :is(#content .admin-workspace .admin-focused-editor,#modal-root .admin-editor-panel) .admin-toggle-field {display:grid;grid-template-columns:minmax(0,1fr) auto;grid-column:1/-1;gap:5px 12px;padding:11px 13px;}
:root body#royal-blue-app.royal-blue-interface :is(#content .admin-workspace .admin-focused-editor,#modal-root .admin-editor-panel) .admin-toggle-field>label {display:flex;align-items:center;gap:7px;margin:0;min-width:0;}
:root body#royal-blue-app.royal-blue-interface :is(#content .admin-workspace .admin-focused-editor,#modal-root .admin-editor-panel) .admin-toggle-field>input[type=checkbox] {grid-column:2;grid-row:1 / span 2;accent-color:#2563eb;}
:root body#royal-blue-app.royal-blue-interface :is(#content .admin-workspace .admin-focused-editor,#modal-root .admin-editor-panel) .admin-toggle-field>.admin-field-help {grid-column:1;grid-row:2;margin:0;}
.admin-history-older>summary {font-size:13px;color:#1d4ed8;font-weight:600;padding:14px;border:1px solid #dfe7f2;background:#f7faff;border-radius:8px;cursor:pointer;margin:6px 0 12px;}
:root body#royal-blue-app.royal-blue-interface:has(.admin-workspace) #modal-root .form-actions:has(>#location-preview[hidden]) {display:none;}

/* ==== admin-upgrade.css ==== */
/* Administration, 08/10/2026: folding section list on narrow screens and a follow-the-screen "unsaved changes" bar.
   Loaded after admin-workspace.css and uses the same selector prefix. */
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-list {display:contents}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-toggle {display:none}

@media(max-width:1050px) {
  :root body#royal-blue-app.royal-blue-interface #content .admin-nav-toggle {
    display:inline-flex;align-items:center;gap:6px;justify-self:start;min-height:44px;margin-top:8px;padding:8px 14px;
    border:1px solid #cfe0fb;border-radius:10px;background:#f3f8ff;color:#185adb;font:inherit;font-size:13px;font-weight:600;cursor:pointer;
  }
  :root body#royal-blue-app.royal-blue-interface #content .admin-nav-toggle:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  :root body#royal-blue-app.royal-blue-interface #content .admin-nav-toggle[aria-expanded=true] svg {transform:rotate(180deg)}
  :root body#royal-blue-app.royal-blue-interface #content .admin-navigation[data-collapsed=true] .admin-nav-list {display:none}
  :root body#royal-blue-app.royal-blue-interface #content .admin-navigation[data-collapsed=true] .admin-nav-heading {border-bottom:0;padding-bottom:4px}
}

:root body#royal-blue-app.royal-blue-interface #content .admin-dirty-bar {
  position:sticky;bottom:14px;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:16px 0 0;padding:8px 10px 8px 16px;background:#fff8e8;border:1px solid #f0d9a4;border-radius:12px;
  box-shadow:0 8px 24px #1d4a8a26;color:#6b4a12;font-size:13px;
}
:root body#royal-blue-app.royal-blue-interface #content .admin-dirty-bar span {display:flex;align-items:center;font-weight:600}
:root body#royal-blue-app.royal-blue-interface #content .admin-dirty-bar i {display:inline-block;width:9px;height:9px;margin-right:9px;border-radius:50%;background:#e59a1a;box-shadow:0 0 0 3px #fbe7bd}
:root body#royal-blue-app.royal-blue-interface #content .admin-dirty-bar .btn {min-height:40px}

/* Admin upgrade, phase 1 (14/10/2026): the save area is one compact row (reason | Lưu), and while something is unsaved it sticks to the bottom
   of the screen, so a change is saved where it was made. The reason is written for the user by admin-save-assist.js. */
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-save-area {display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 14px}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-save-area > .admin-save-heading {flex:1 1 100%;order:0}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-save-area > .field {flex:1 1 320px;min-width:0;order:1;margin:0}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-save-area > .form-actions {flex:0 0 auto;order:2;margin:0}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-save-area > #settings-save-error {flex:1 1 100%;order:3}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-save-area > .admin-undo-button {order:4}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace #settings-form[data-dirty] .admin-save-area {position:sticky;bottom:10px;z-index:40;background:#fffdf6;border-color:#f0c46a;box-shadow:0 12px 30px rgba(16,42,90,.18)}
:root body#royal-blue-app.royal-blue-interface #content .admin-reason-note {display:block;margin-top:5px;color:#5a6f8c;font-size:12.5px;line-height:1.45}
:root body#royal-blue-app.royal-blue-interface #content .admin-reason-note:empty {display:none}
:root body#royal-blue-app.royal-blue-interface #content .admin-reason-note[data-tone="warn"] {color:#8a5300;font-weight:600}
@media (max-width:700px) {
  :root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-save-area > .form-actions {flex:1 1 100%}
  :root body#royal-blue-app.royal-blue-interface #content .admin-workspace #settings-form[data-dirty] .admin-save-area {bottom:6px}
}
/* TEST / LIVE card at the top of "Vận hành" (admin-mode-switch.js) */
:root body#royal-blue-app.royal-blue-interface #content .admin-mode-card {display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px 16px;align-items:center;margin:0 0 16px;padding:16px 18px;border:1px solid #cfe0ff;border-radius:14px;background:linear-gradient(135deg,#f3f8ff,#fff)}
:root body#royal-blue-app.royal-blue-interface #content .admin-mode-card[data-mode="live"] {border-color:#bfe7d0;background:linear-gradient(135deg,#eefaf3,#fff)}
:root body#royal-blue-app.royal-blue-interface #content .admin-mode-icon {display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#e3edff;color:#175adb}
:root body#royal-blue-app.royal-blue-interface #content .admin-mode-card[data-mode="live"] .admin-mode-icon {background:#d9f3e4;color:#17664f}
:root body#royal-blue-app.royal-blue-interface #content .admin-mode-eyebrow {display:block;color:#6b7f9b;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
:root body#royal-blue-app.royal-blue-interface #content .admin-mode-text strong {display:block;color:#0e2a4d;font-size:16px}
:root body#royal-blue-app.royal-blue-interface #content .admin-mode-text p {margin:3px 0 0;color:#42597a;font-size:13.5px;line-height:1.5}
@media (max-width:700px) {
  :root body#royal-blue-app.royal-blue-interface #content .admin-mode-card {grid-template-columns:auto minmax(0,1fr)}
  :root body#royal-blue-app.royal-blue-interface #content .admin-mode-card > .btn {grid-column:1/-1;justify-content:center}
}
.admin-mode-list {margin:0 0 12px;padding-left:20px;line-height:1.55}
.admin-mode-confirm {display:flex;gap:8px;align-items:flex-start;margin:6px 0 10px;font-weight:600}
/* Quản trị › Tổng quan (admin-overview.js) */
:root body#royal-blue-app.royal-blue-interface #content .aov {display:grid;gap:16px}
:root body#royal-blue-app.royal-blue-interface #content .aov-attention {padding:16px 18px !important}
:root body#royal-blue-app.royal-blue-interface #content .aov-attention-head {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px;margin-bottom:10px}
:root body#royal-blue-app.royal-blue-interface #content .aov-attention-head h3 {display:flex;align-items:center;gap:8px;margin:0;color:#0e2a4d;font-size:16px}
:root body#royal-blue-app.royal-blue-interface #content .aov-attention-head span {color:#6b7f9b;font-size:13px;font-weight:600}
:root body#royal-blue-app.royal-blue-interface #content .aov-checks {display:grid;gap:8px;margin:0;padding:0;list-style:none}
:root body#royal-blue-app.royal-blue-interface #content .aov-checks li {display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid #e3ebf7;border-radius:10px;background:#f8fbff}
:root body#royal-blue-app.royal-blue-interface #content .aov-checks li[data-level="warn"] {border-color:#f3d7a1;background:#fffaf0}
:root body#royal-blue-app.royal-blue-interface #content .aov-dot {width:9px;height:9px;border-radius:50%;background:#8aa0bd}
:root body#royal-blue-app.royal-blue-interface #content .aov-checks li[data-level="warn"] .aov-dot {background:#e59a1a;box-shadow:0 0 0 3px #fbe7bd}
:root body#royal-blue-app.royal-blue-interface #content .aov-check-text {color:#22395a;font-size:14px;line-height:1.45}
:root body#royal-blue-app.royal-blue-interface #content .aov-checks .btn {min-height:36px !important;white-space:nowrap}
:root body#royal-blue-app.royal-blue-interface #content .aov-ready {display:flex;align-items:center;gap:8px;margin:0;color:#17664f;font-weight:600}
:root body#royal-blue-app.royal-blue-interface #content .aov-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
:root body#royal-blue-app.royal-blue-interface #content .aov-card {display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid #e1e9f4;border-top:4px solid #9db0c9;border-radius:12px;background:#fff}
:root body#royal-blue-app.royal-blue-interface #content .aov-card[data-tone="good"] {border-top-color:#1fa971}
:root body#royal-blue-app.royal-blue-interface #content .aov-card[data-tone="bad"] {border-top-color:#e86b2a}
:root body#royal-blue-app.royal-blue-interface #content .aov-card header {display:flex;gap:10px;align-items:center}
:root body#royal-blue-app.royal-blue-interface #content .aov-icon {display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:10px;background:#eef4ff;color:#175adb}
:root body#royal-blue-app.royal-blue-interface #content .aov-card h3 {margin:0;color:#0e2a4d;font-size:15px}
:root body#royal-blue-app.royal-blue-interface #content .aov-state {color:#42597a;font-size:13px;font-weight:600}
:root body#royal-blue-app.royal-blue-interface #content .aov-card dl {display:grid;gap:6px;margin:0;flex:1;align-content:start}
:root body#royal-blue-app.royal-blue-interface #content .aov-row {display:flex;justify-content:space-between;gap:10px;padding-bottom:6px;border-bottom:1px dashed #e6edf6;font-size:13px}
:root body#royal-blue-app.royal-blue-interface #content .aov-row dt {color:#6b7f9b}
:root body#royal-blue-app.royal-blue-interface #content .aov-row dd {margin:0;color:#17304f;font-weight:600;text-align:right}
:root body#royal-blue-app.royal-blue-interface #content .aov-row dd[data-tone="good"] {color:#17664f}
:root body#royal-blue-app.royal-blue-interface #content .aov-row dd[data-tone="bad"] {color:#b03a12}
:root body#royal-blue-app.royal-blue-interface #content .aov-row dd[data-tone="warn"] {color:#8a5300}
:root body#royal-blue-app.royal-blue-interface #content .aov-link {display:inline-flex;align-items:center;gap:5px;color:#175adb;font-weight:700;font-size:13.5px;text-decoration:none}
:root body#royal-blue-app.royal-blue-interface #content .aov-updated {margin:0;color:#6b7f9b;font-size:12.5px}
@media (max-width:600px) {
  :root body#royal-blue-app.royal-blue-interface #content .aov-checks li {grid-template-columns:auto minmax(0,1fr)}
  :root body#royal-blue-app.royal-blue-interface #content .aov-checks .btn {grid-column:1/-1;justify-content:center}
}
/* Phase 3 (admin-compact.js): SMTP folded away, recipients as rows, draggable menu rows */
:root body#royal-blue-app.royal-blue-interface #content .admin-advanced {grid-column:1/-1;border:1px solid #dfe8f5;border-radius:12px;background:#f8fbff}
:root body#royal-blue-app.royal-blue-interface #content .admin-advanced > summary {display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:12px 14px;cursor:pointer;list-style:none}
:root body#royal-blue-app.royal-blue-interface #content .admin-advanced > summary::-webkit-details-marker {display:none}
:root body#royal-blue-app.royal-blue-interface #content .admin-advanced > summary::before {content:"▸";color:#175adb;font-weight:700}
:root body#royal-blue-app.royal-blue-interface #content .admin-advanced[open] > summary::before {content:"▾"}
:root body#royal-blue-app.royal-blue-interface #content .admin-advanced-title {color:#17304f;font-weight:700}
:root body#royal-blue-app.royal-blue-interface #content .admin-advanced-state {color:#5a6f8c;font-size:12.5px}
:root body#royal-blue-app.royal-blue-interface #content .admin-advanced > .form-grid {padding:4px 14px 14px}
:root body#royal-blue-app.royal-blue-interface #content .admin-compact-rows .admin-compact-record > summary {display:none}
:root body#royal-blue-app.royal-blue-interface #content .admin-compact-rows .admin-compact-record {margin-bottom:8px;border:1px solid #e1e9f4;border-radius:10px;background:#fff}
:root body#royal-blue-app.royal-blue-interface #content .admin-compact-rows .admin-record-body {padding:10px 12px !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-compact-rows .admin-record-body .form-grid {display:grid !important;grid-template-columns:minmax(0,1.1fr) minmax(90px,.6fr) minmax(0,1.6fr) auto !important;gap:8px 10px !important;align-items:end}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-compact-rows .admin-record-body .form-grid > .field {grid-column:auto !important;min-width:0;margin:0 !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-compact-rows .admin-record-body .form-grid > .admin-toggle-field {display:flex !important;flex-direction:column;align-items:center;gap:6px;padding:0 4px !important;border:0 !important;background:transparent !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-compact-rows .admin-record-actions {display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-end;margin-top:8px;padding-top:8px;border-top:1px dashed #e6edf6}
:root body#royal-blue-app.royal-blue-interface #content .admin-compact-rows .admin-record-actions > span,
:root body#royal-blue-app.royal-blue-interface #content .admin-compact-rows .admin-record-actions [data-move] {display:none}
@media (max-width:700px) {
  :root body#royal-blue-app.royal-blue-interface #content .admin-compact-rows .admin-record-body .form-grid {grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important}
}
:root body#royal-blue-app.royal-blue-interface #content .admin-drag-handle {display:inline-grid;place-items:center;width:22px;margin-right:4px;color:#8aa0bd;font-weight:700;letter-spacing:-2px;cursor:grab;user-select:none}
:root body#royal-blue-app.royal-blue-interface #content .admin-draggable-rows .admin-record.is-dragging {opacity:.45}
:root body#royal-blue-app.royal-blue-interface #content .admin-draggable-rows .admin-record.drop-before {box-shadow:inset 0 3px 0 #175adb}
:root body#royal-blue-app.royal-blue-interface #content .admin-draggable-rows .admin-record.drop-after {box-shadow:inset 0 -3px 0 #175adb}
@media (pointer:coarse) {
  :root body#royal-blue-app.royal-blue-interface #content .admin-drag-handle {display:none}
}
/* Phase 2 (admin-nav.js): search box, folded "Công cụ nâng cao", member count and the bar that switches inside a grouped entry */
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-search {display:flex;align-items:center;gap:8px;margin:12px 8px 2px;padding:0 10px;border:1px solid #d9e4f2;border-radius:10px;background:#fff;color:#7a90ad}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-search input {flex:1;min-width:0;min-height:38px;border:0;outline:0;background:transparent;font-size:13.5px;color:#17304f}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-search:focus-within {border-color:#7aa7ef;box-shadow:0 0 0 3px #dbe8ff}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-item[hidden], :root body#royal-blue-app.royal-blue-interface #content .admin-nav-group[hidden] {display:none !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-advanced > summary {list-style:none;cursor:pointer}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-advanced > summary::-webkit-details-marker {display:none}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-advanced > summary h2::after {content:" ▸";letter-spacing:0}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-advanced[open] > summary h2::after {content:" ▾"}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-count {flex:none;min-width:20px;padding:1px 6px;border-radius:999px;background:#eef3fa;color:#5a6f8c;font-size:11px;font-weight:700;text-align:center}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-empty {margin:10px 14px;color:#6b7f9b;font-size:13px}
:root body#royal-blue-app.royal-blue-interface #content .admin-subnav {display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px;padding:5px;border:1px solid #dfe8f5;border-radius:12px;background:#f4f8fd}
:root body#royal-blue-app.royal-blue-interface #content .admin-subnav-item {flex:1 1 auto;padding:9px 14px;border-radius:9px;color:#35517a;font-weight:600;font-size:14px;text-align:center;text-decoration:none}
:root body#royal-blue-app.royal-blue-interface #content .admin-subnav-item:hover {background:#e8f0fd}
:root body#royal-blue-app.royal-blue-interface #content .admin-subnav-item.is-active {background:#fff;color:#175adb;box-shadow:0 1px 4px rgba(20,50,100,.14)}
/* Chỉ tiêu: the open parameter is edited in a panel on the right on wide screens (admin-parameters.js) */
:root body#royal-blue-app.royal-blue-interface #content .parameter-drawer-head {display:none}
:root body#royal-blue-app.royal-blue-interface #content .parameter-drawer-backdrop {display:none}
@media (min-width:1100px) {
  :root body#royal-blue-app.royal-blue-interface #content .parameter-drawer-mode .parameter-record[open] > .admin-record-body {position:fixed !important;top:0;right:0;bottom:0;z-index:1150;width:min(560px,92vw);margin:0 !important;padding:0 22px 24px !important;overflow:auto;background:#fff;border-left:1px solid #dbe6f6;box-shadow:-14px 0 40px rgba(10,30,70,.22)}
  :root body#royal-blue-app.royal-blue-interface #content .parameter-drawer-mode .parameter-drawer-head {position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 -22px 14px;padding:16px 22px;border-bottom:1px solid #e3ebf7;background:#fff}
  :root body#royal-blue-app.royal-blue-interface #content .parameter-drawer-head strong {color:#0e2a4d;font-size:17px}
  :root body#royal-blue-app.royal-blue-interface #content .parameter-drawer-mode:has(.parameter-record[open]) .parameter-drawer-backdrop {display:block;position:fixed;inset:0;z-index:1140;background:rgba(10,25,55,.28)}
  :root body#royal-blue-app.royal-blue-interface #content .parameter-drawer-mode .parameter-record[open] {outline:2px solid #7aa7ef;outline-offset:-2px}
}
/* Tổng quan › Thiết lập ban đầu */
:root body#royal-blue-app.royal-blue-interface #content .aov-setup {padding:16px 18px !important}
:root body#royal-blue-app.royal-blue-interface #content .aov-setup-head {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px}
:root body#royal-blue-app.royal-blue-interface #content .aov-setup-head h3 {display:flex;align-items:center;gap:8px;margin:0;color:#0e2a4d;font-size:16px}
:root body#royal-blue-app.royal-blue-interface #content .aov-setup-head span, :root body#royal-blue-app.royal-blue-interface #content .aov-setup > summary span {color:#6b7f9b;font-size:13px;font-weight:600}
:root body#royal-blue-app.royal-blue-interface #content .aov-setup > summary {display:flex;align-items:center;gap:8px;cursor:pointer;color:#17664f;list-style:none}
:root body#royal-blue-app.royal-blue-interface #content .aov-setup > summary strong {flex:1}
:root body#royal-blue-app.royal-blue-interface #content .aov-progress {height:8px;margin:12px 0 8px;border-radius:999px;background:#e6edf7;overflow:hidden}
:root body#royal-blue-app.royal-blue-interface #content .aov-progress i {display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1fa971,#2bc48a)}
:root body#royal-blue-app.royal-blue-interface #content .aov-next {margin:0 0 10px;color:#35517a;font-size:13.5px}
:root body#royal-blue-app.royal-blue-interface #content .aov-steps {display:grid;gap:6px;margin:10px 0 0;padding:0;list-style:none}
:root body#royal-blue-app.royal-blue-interface #content .aov-steps li {display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 12px;border:1px solid #e3ebf7;border-radius:10px;background:#fff}
:root body#royal-blue-app.royal-blue-interface #content .aov-steps li[data-done="true"] {background:#f5fbf7;border-color:#cfeedd}
:root body#royal-blue-app.royal-blue-interface #content .aov-step-mark {display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e6edf7;color:#35517a;font-size:12.5px;font-weight:700}
:root body#royal-blue-app.royal-blue-interface #content .aov-steps li[data-done="true"] .aov-step-mark {background:#1fa971;color:#fff}
:root body#royal-blue-app.royal-blue-interface #content .aov-steps strong {display:block;color:#17304f;font-size:14px}
:root body#royal-blue-app.royal-blue-interface #content .aov-steps small {display:block;color:#6b7f9b;font-size:12.5px;line-height:1.4}
:root body#royal-blue-app.royal-blue-interface #content .aov-step-state {color:#17664f;font-weight:700;font-size:13px}
:root body#royal-blue-app.royal-blue-interface #content .aov-steps .btn {min-height:34px !important;white-space:nowrap}
@media (max-width:600px) {
  :root body#royal-blue-app.royal-blue-interface #content .aov-steps li {grid-template-columns:auto minmax(0,1fr)}
  :root body#royal-blue-app.royal-blue-interface #content .aov-steps li > :last-child {grid-column:2}
}
/* Visual pickers for icons and colours (admin-pickers.js); the original control stays for saving but is hidden */
:root body#royal-blue-app.royal-blue-interface #content .adm-picker-source {position:absolute !important;width:1px !important;height:1px !important;min-width:0 !important;max-width:1px !important;padding:0 !important;margin:0 !important;border:0 !important;overflow:hidden !important;clip-path:inset(50%) !important;opacity:0 !important;pointer-events:none !important}
:root body#royal-blue-app.royal-blue-interface #content .adm-picker {display:flex;flex-wrap:wrap;gap:8px}
:root body#royal-blue-app.royal-blue-interface #content .adm-picker button {display:grid;justify-items:center;gap:4px;min-width:74px;padding:8px 6px;border:1.5px solid #d6e2f1;border-radius:10px;background:#fff;color:#35517a;font-size:12px;font-weight:600;cursor:pointer}
:root body#royal-blue-app.royal-blue-interface #content .adm-picker button:hover {border-color:#9ec0ff;background:#f4f8ff}
:root body#royal-blue-app.royal-blue-interface #content .adm-picker button[aria-checked="true"] {border-color:#175adb;background:#eef4ff;color:#12335d;box-shadow:0 0 0 3px #dbe8ff}
:root body#royal-blue-app.royal-blue-interface #content .adm-picker button:focus-visible {outline:3px solid #9ec0ff;outline-offset:2px}
:root body#royal-blue-app.royal-blue-interface #content .adm-icon-picker i {display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#eef4ff;color:#175adb}
:root body#royal-blue-app.royal-blue-interface #content .adm-icon-picker button[aria-checked="true"] i {background:#175adb;color:#fff}
:root body#royal-blue-app.royal-blue-interface #content .adm-swatch {display:block;width:34px;height:34px;border-radius:50%;box-shadow:inset 0 0 0 2px rgba(255,255,255,.6)}
:root body#royal-blue-app.royal-blue-interface #content .adm-swatch-picker button[aria-checked="true"] .adm-swatch {box-shadow:inset 0 0 0 3px #fff,0 0 0 2px #175adb}
:root body#royal-blue-app.royal-blue-interface #content .adm-hex-picker {display:flex;gap:8px;align-items:center}
:root body#royal-blue-app.royal-blue-interface #content .adm-hex-picker > input:not(.adm-hex-wheel) {flex:1;min-width:0}
:root body#royal-blue-app.royal-blue-interface #content .adm-hex-wheel {flex:none;width:46px;height:42px;padding:2px;border:1px solid #d6e2f1;border-radius:10px;background:#fff;cursor:pointer}
:root body#royal-blue-app.royal-blue-interface #content .adm-hex-state {display:block;margin-top:5px;color:#5a6f8c;font-size:12.5px}
:root body#royal-blue-app.royal-blue-interface #content .adm-hex-state[data-tone="warn"] {color:#b03a12;font-weight:600}
:root body#royal-blue-app.royal-blue-interface #content .adm-color-suggest {display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
:root body#royal-blue-app.royal-blue-interface #content .adm-color-chip {width:22px;height:22px;padding:0;border:1px solid rgba(15,40,80,.18);border-radius:50%;cursor:pointer}
:root body#royal-blue-app.royal-blue-interface #content .adm-color-chip[aria-pressed="true"] {box-shadow:0 0 0 2px #fff,0 0 0 4px #175adb}
:root body#royal-blue-app.royal-blue-interface #content .adm-color-default {padding:3px 10px;border:1px solid #d6e2f1;border-radius:999px;background:#fff;color:#35517a;font-size:12px;font-weight:600;cursor:pointer}
:root body#royal-blue-app.royal-blue-interface #content .adm-color-default[aria-pressed="true"] {border-color:#175adb;background:#eef4ff;color:#175adb}
.badge.amber {background:#fff5e4;color:#9a5b00;border-color:#f6d9a8}

/* ================================================================================================================
   Quản trị, console look (15/10/2026): a deep navy navigation where each group has its colour (Bắt đầu blue, Hiển thị violet,
   Dữ liệu teal, Hệ thống amber, Nâng cao slate), the page header carries that colour, and the content gets firmer contrast.
   ================================================================================================================ */
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace {grid-template-columns:252px minmax(0,1fr);gap:24px;
  --tone-blue:#3b82f6;--tone-violet:#8b5cf6;--tone-teal:#14b8a6;--tone-amber:#f59e0b;--tone-slate:#94a3b8}
:root body#royal-blue-app.royal-blue-interface #content [data-tone="blue"] {--tone:var(--tone-blue)}
:root body#royal-blue-app.royal-blue-interface #content [data-tone="violet"] {--tone:var(--tone-violet)}
:root body#royal-blue-app.royal-blue-interface #content [data-tone="teal"] {--tone:var(--tone-teal)}
:root body#royal-blue-app.royal-blue-interface #content [data-tone="amber"] {--tone:var(--tone-amber)}
:root body#royal-blue-app.royal-blue-interface #content [data-tone="slate"] {--tone:var(--tone-slate)}
:root body#royal-blue-app.royal-blue-interface #content .admin-navigation {background:linear-gradient(180deg,#0f2a57 0%,#0b2149 60%,#0a1d40 100%) !important;border:0 !important;border-radius:18px !important;padding:16px 12px !important;box-shadow:0 18px 40px rgba(9,28,64,.28);color:#c9d7ee;scrollbar-color:#2c4a7c transparent}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-heading {border-bottom:1px solid rgba(255,255,255,.1) !important;padding:2px 10px 14px !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-heading strong {color:#fff !important;font-size:15px !important;letter-spacing:.01em}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-heading > span {color:#8fa6cb !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-search {background:rgba(255,255,255,.08) !important;border-color:rgba(255,255,255,.14) !important;color:#9fb4d6 !important;margin:12px 4px 4px !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-search input {color:#fff !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-search input::placeholder {color:#8fa6cb}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-search:focus-within {border-color:#60a5fa !important;box-shadow:0 0 0 3px rgba(96,165,250,.25) !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-group {padding-top:16px !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-group h2 {display:flex;align-items:center;gap:8px;margin:0 10px 8px !important;color:#8fa6cb !important;font-size:10.5px !important;letter-spacing:.08em !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-group h2::before {content:"";width:8px;height:8px;border-radius:3px;background:var(--tone,#3b82f6)}
:root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-item {position:relative;gap:11px !important;min-height:42px !important;margin:2px 0 !important;padding:6px 10px !important;border:0 !important;border-radius:11px !important;color:#d6e2f5 !important;font-size:13px !important;font-weight:500 !important;transition:background .15s,color .15s}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-ico {display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:9px;background:color-mix(in srgb,var(--tone) 22%,transparent);color:color-mix(in srgb,var(--tone) 55%,#fff);font-style:normal}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-ico svg {color:inherit !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-item:hover {background:rgba(255,255,255,.08) !important;color:#fff !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-item.is-active {background:#fff !important;color:#0f2a57 !important;font-weight:700 !important;box-shadow:0 6px 16px rgba(0,0,0,.22)}
:root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-item.is-active .admin-nav-ico {background:var(--tone);color:#fff}
:root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-item.is-active::before {content:"";position:absolute;left:-12px;top:9px;bottom:9px;width:4px;border-radius:0 4px 4px 0;background:var(--tone)}
:root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-active-dot {display:none !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-count {background:rgba(255,255,255,.12) !important;color:#c9d7ee !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-item.is-active .admin-nav-count {background:color-mix(in srgb,var(--tone) 18%,#fff) !important;color:#0f2a57 !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-empty {color:#8fa6cb !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-nav-toggle {color:#fff !important;border-color:rgba(255,255,255,.25) !important;background:rgba(255,255,255,.08) !important}

:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-context {position:relative;margin:0 0 16px !important;padding:18px 22px 18px 26px !important;border:1px solid #d8e3f2;border-radius:16px;background:#fff;box-shadow:0 6px 18px rgba(16,42,90,.06);overflow:hidden}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-context::before {content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--tone,#3b82f6)}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-context .admin-eyebrow {display:inline-block;padding:2px 10px;border-radius:999px;background:color-mix(in srgb,var(--tone) 14%,#fff);color:color-mix(in srgb,var(--tone) 70%,#0f2a57);font-size:11.5px !important;font-weight:700;letter-spacing:.03em}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-context h2 {color:#0f2a57 !important;font-size:24px !important;font-weight:800 !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-context p {color:#42597a !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-context-icon {background:var(--tone) !important;border:0 !important;color:#fff !important;box-shadow:0 8px 18px color-mix(in srgb,var(--tone) 35%,transparent)}

:root body#royal-blue-app.royal-blue-interface #content .admin-workspace #admin-panel .card {border-color:#d5e1f0 !important;box-shadow:0 6px 18px rgba(16,42,90,.06) !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .card-title h2, :root body#royal-blue-app.royal-blue-interface #content .admin-workspace .card-title h3 {color:#0f2a57 !important;font-weight:800 !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .field > label {color:#1d3557 !important;font-weight:600}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-editor-tabs {border-bottom:2px solid #e3ebf6 !important;gap:4px !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-editor-tabs [role="tab"] {color:#42597a !important;font-weight:600 !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-editor-tabs [role="tab"][aria-selected="true"] {color:#1546b8 !important;background:#eaf1ff !important;box-shadow:inset 0 -3px 0 #1d5ce0 !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .btn.primary {background:#1d5ce0 !important;border-color:#1d5ce0 !important;color:#fff !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-subnav {background:#eaf1fb !important;border-color:#d5e1f0 !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-subnav-item.is-active {background:#1d5ce0 !important;color:#fff !important;box-shadow:0 4px 12px rgba(29,92,224,.28) !important}
@media (max-width:1050px) {
  :root body#royal-blue-app.royal-blue-interface #content .admin-workspace {grid-template-columns:minmax(0,1fr)}
}
/* the readability layer forces muted greys on some admin texts with !important; in the navy panel the same layer (higher specificity) wins */
@layer readability {
  :root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-item, :root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-item span {color:#d6e2f5 !important}
  :root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-item:hover, :root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-item:hover span {color:#fff !important}
  :root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-item.is-active, :root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-item.is-active span {color:#0f2a57 !important}
  :root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-heading strong {color:#fff !important}
  :root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-heading > span, :root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-group h2, :root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-empty {color:#8fa6cb !important}
  :root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-count {color:#c9d7ee !important}
  :root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-item.is-active .admin-nav-count {color:#0f2a57 !important}
  :root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-context p {color:#42597a !important}
  :root body#royal-blue-app.royal-blue-interface #content .admin-workspace .admin-context h2 {color:#0f2a57 !important}
}
/* the narrow layout turns the items into chips with a light background: keep them on the navy panel */
:root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-item:not(.is-active):not(:hover) {background:transparent !important}
@media (max-width:1050px) {
  :root body#royal-blue-app.royal-blue-interface #content .admin-navigation .admin-nav-item:not(.is-active):not(:hover) {background:rgba(255,255,255,.07) !important}
}

/* ================================================================================================================
   Option C (15/10/2026): no left column in Quản trị. A top bar ("Chọn mục" + the screens of the same group + search) and a panel with the
   whole list; the settings use the full width (two to three columns).
   ================================================================================================================ */
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace.admin-workspace-top {display:block !important;position:relative}
:root body#royal-blue-app.royal-blue-interface #content .admin-topbar {position:sticky;top:58px;z-index:70;display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:8px;border-radius:16px;background:linear-gradient(180deg,#0f2a57,#0b2149);box-shadow:0 12px 28px rgba(9,28,64,.22)}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu-button {display:flex;align-items:center;gap:10px;flex:none;min-height:48px;padding:6px 12px 6px 6px;border:0;border-radius:12px;background:#fff;color:#0f2a57;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.18)}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu-button:hover {background:#f2f6ff}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu-ico {display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--tone,#3b82f6);color:#fff}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu-label {display:grid;text-align:left;line-height:1.2}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu-label small {color:color-mix(in srgb,var(--tone) 70%,#0f2a57);font-size:11px;font-weight:700;letter-spacing:.03em}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu-label b {font-size:15px;font-weight:800;color:#0f2a57}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu-chevron {color:#5a6f8c;transition:transform .15s}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu-button[aria-expanded="true"] .admin-menu-chevron {transform:rotate(180deg)}
:root body#royal-blue-app.royal-blue-interface #content .admin-topbar-tabs {display:flex;flex:1;min-width:0;gap:4px;overflow-x:auto;scrollbar-width:none;padding:2px}
:root body#royal-blue-app.royal-blue-interface #content .admin-topbar-tabs::-webkit-scrollbar {display:none}
:root body#royal-blue-app.royal-blue-interface #content .admin-topbar-tab {display:inline-flex;align-items:center;gap:7px;flex:none;min-height:40px;padding:0 13px;border-radius:10px;color:#c9d7ee;font-size:13.5px;font-weight:600;text-decoration:none;white-space:nowrap}
:root body#royal-blue-app.royal-blue-interface #content .admin-topbar-tab svg {color:color-mix(in srgb,var(--tone) 60%,#fff)}
:root body#royal-blue-app.royal-blue-interface #content .admin-topbar-tab:hover {background:rgba(255,255,255,.09);color:#fff}
:root body#royal-blue-app.royal-blue-interface #content .admin-topbar-tab.is-active {background:rgba(255,255,255,.14);color:#fff;box-shadow:inset 0 -3px 0 var(--tone)}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu-search {display:inline-flex;align-items:center;gap:8px;flex:none;min-height:40px;padding:0 10px 0 12px;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:rgba(255,255,255,.08);color:#c9d7ee;font-size:13px;font-weight:600;cursor:pointer}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu-search:hover {background:rgba(255,255,255,.14);color:#fff}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu-search kbd {padding:1px 7px;border-radius:6px;background:rgba(255,255,255,.14);color:#fff;font:600 12px/1.6 inherit}
/* the panel with every screen */
:root body#royal-blue-app.royal-blue-interface #content .admin-menu.admin-navigation {position:absolute !important;top:72px;left:0;right:0;z-index:75;max-height:min(72vh,680px) !important;overflow:auto;padding:14px 16px 18px !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu[hidden] {display:none !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu-head {display:flex;align-items:center;gap:10px;padding:2px 4px 10px;border-bottom:1px solid rgba(255,255,255,.1)}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu-head strong {color:#fff;font-size:15px}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu-head span {flex:1;color:#8fa6cb;font-size:12.5px}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu-close {display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(255,255,255,.18);border-radius:9px;background:rgba(255,255,255,.06);color:#fff;cursor:pointer}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu #admin-nav-list {display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:2px 20px;align-items:start}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu #admin-nav-list > .admin-nav-search, :root body#royal-blue-app.royal-blue-interface #content .admin-menu #admin-nav-list > .admin-nav-empty {grid-column:1/-1}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu .admin-nav-advanced[open], :root body#royal-blue-app.royal-blue-interface #content .admin-menu .admin-nav-advanced {display:block}
:root body#royal-blue-app.royal-blue-interface #content .admin-menu .admin-navigation .admin-nav-item::before, :root body#royal-blue-app.royal-blue-interface #content .admin-menu .admin-nav-item.is-active::before {left:-6px}
/* the full width is used: three columns of fields on wide screens */
@media (min-width:1280px) {
  :root body#royal-blue-app.royal-blue-interface #content .admin-workspace-top #settings-form .form-grid:not(.admin-record-body .form-grid) {grid-template-columns:repeat(3,minmax(0,1fr)) !important}
}
@media (max-width:760px) {
  :root body#royal-blue-app.royal-blue-interface #content .admin-topbar {flex-wrap:wrap;top:56px}
  :root body#royal-blue-app.royal-blue-interface #content .admin-menu-button {flex:1 1 auto}
  :root body#royal-blue-app.royal-blue-interface #content .admin-menu-search span, :root body#royal-blue-app.royal-blue-interface #content .admin-menu-search kbd {display:none}
  :root body#royal-blue-app.royal-blue-interface #content .admin-topbar-tabs {order:3;flex:1 1 100%}
  :root body#royal-blue-app.royal-blue-interface #content .admin-menu.admin-navigation {top:auto;position:relative !important;margin-top:-6px;max-height:none !important}
}
/* the bar already names the group and the screen: the header below it only explains the screen */
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace-top .admin-context {padding:12px 18px 12px 22px !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace-top .admin-context .admin-eyebrow {display:none !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace-top .admin-context h2 {font-size:19px !important;margin:0 0 2px !important}
:root body#royal-blue-app.royal-blue-interface #content .admin-workspace-top .admin-context-icon {width:42px !important;height:42px !important;border-radius:12px !important}

/* Quản trị › Thông báo › Lịch sử gửi (admin-notify-history.js) */
:root body#royal-blue-app.royal-blue-interface #content .anh {display:grid;gap:14px}
:root body#royal-blue-app.royal-blue-interface #content .anh-note {display:flex;gap:8px;align-items:flex-start;margin:0;padding:10px 12px;border:1px solid #f3d7a1;border-radius:10px;background:#fffaf0;color:#7a4a00;font-size:13.5px}
:root body#royal-blue-app.royal-blue-interface #content .anh-counts {display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
:root body#royal-blue-app.royal-blue-interface #content .anh-count {display:grid;gap:2px;padding:10px 12px;border:1px solid #dbe5f3;border-radius:12px;background:#fff;text-align:left;cursor:pointer}
:root body#royal-blue-app.royal-blue-interface #content .anh-count b {color:#0f2a57;font-size:20px;font-weight:800}
:root body#royal-blue-app.royal-blue-interface #content .anh-count span {color:#5a6f8c;font-size:12.5px;font-weight:600}
:root body#royal-blue-app.royal-blue-interface #content .anh-count[aria-pressed="true"] {border-color:#1d5ce0;box-shadow:0 0 0 3px #dbe8ff;background:#f4f8ff}
:root body#royal-blue-app.royal-blue-interface #content .anh-count[data-tone="good"] b {color:#17664f}
:root body#royal-blue-app.royal-blue-interface #content .anh-count[data-tone="bad"] b {color:#b42318}
:root body#royal-blue-app.royal-blue-interface #content .anh-count[data-tone="warn"] b {color:#9a5b00}
:root body#royal-blue-app.royal-blue-interface #content .anh-count-static {cursor:default;background:#f8fbff}
:root body#royal-blue-app.royal-blue-interface #content .anh-filters {display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;padding:12px;border:1px solid #e3ebf6;border-radius:12px;background:#f8fbff}
:root body#royal-blue-app.royal-blue-interface #content .anh-filters label {display:grid;gap:4px;font-size:12.5px;font-weight:600;color:#35517a}
:root body#royal-blue-app.royal-blue-interface #content .anh-filters input, :root body#royal-blue-app.royal-blue-interface #content .anh-filters select {min-height:38px;padding:6px 10px;border:1px solid #d6e2f1;border-radius:9px;background:#fff;font:inherit;font-weight:400;color:#17304f}
:root body#royal-blue-app.royal-blue-interface #content .anh-filters .anh-q {flex:1 1 240px}
:root body#royal-blue-app.royal-blue-interface #content .anh-setup {display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
:root body#royal-blue-app.royal-blue-interface #content .anh-setup > div {display:grid;align-content:start;gap:4px;padding:10px 12px;border:1px solid #dbe5f3;border-radius:12px;background:#fff;min-width:0;color:#17304f;font-size:13.5px;overflow-wrap:anywhere}
:root body#royal-blue-app.royal-blue-interface #content .anh-setup-k {color:#5a6f8c;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
:root body#royal-blue-app.royal-blue-interface #content .anh-setup small {color:#5a6f8c;font-size:12.5px;font-weight:400}
:root body#royal-blue-app.royal-blue-interface #content .anh-setup ul {margin:0;padding:0;list-style:none;display:grid;gap:3px}
:root body#royal-blue-app.royal-blue-interface #content .anh-setup li small {margin-left:4px}
:root body#royal-blue-app.royal-blue-interface #content .anh-setup-link {font-size:12.5px;font-weight:700}
:root body#royal-blue-app.royal-blue-interface #content .anh-people-btn {display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border:1px solid #d6e2f1;border-radius:999px;background:#f4f8ff;color:#1d4fb8;font:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}
:root body#royal-blue-app.royal-blue-interface #content .anh-people-btn:hover, :root body#royal-blue-app.royal-blue-interface #content .anh-people-btn[aria-expanded="true"] {border-color:#1d5ce0;background:#e8f0ff}
:root body#royal-blue-app.royal-blue-interface #content .anh-people-bad {color:#b42318}
:root body#royal-blue-app.royal-blue-interface .anh-pop {position:fixed;z-index:3000;min-width:220px;max-width:min(360px,calc(100vw - 16px));max-height:60vh;overflow:auto;padding:10px 12px;border:1px solid #d6e2f1;border-radius:12px;background:#fff;box-shadow:0 12px 32px rgba(15,42,87,.18);color:#17304f;font-size:13px}
:root body#royal-blue-app.royal-blue-interface .anh-pop > b {display:block;margin-bottom:6px;color:#5a6f8c;font-size:12px;text-transform:uppercase;letter-spacing:.03em}
:root body#royal-blue-app.royal-blue-interface .anh-pop .anh-people {margin:0;padding:0;list-style:none;display:grid;gap:5px}
:root body#royal-blue-app.royal-blue-interface .anh-pop .anh-people li {display:flex;flex-wrap:wrap;align-items:center;gap:6px;overflow-wrap:anywhere}
:root body#royal-blue-app.royal-blue-interface .anh-pop .anh-people small {flex-basis:100%;color:#b42318;font-size:12px}
:root body#royal-blue-app.royal-blue-interface .anh-pop .anh-chip {display:inline-block;padding:0 7px;border-radius:999px;font-size:11px;font-weight:700;background:#eef2f8;color:#475d7b}
:root body#royal-blue-app.royal-blue-interface .anh-pop .anh-chip[data-tone="good"] {background:#e7f7ee;color:#17664f}
:root body#royal-blue-app.royal-blue-interface .anh-pop .anh-chip[data-tone="bad"] {background:#fdecea;color:#b42318}
:root body#royal-blue-app.royal-blue-interface #content .anh-people {margin:0;padding:0;list-style:none;display:grid;gap:3px}
:root body#royal-blue-app.royal-blue-interface #content .anh-chip-sm {padding:0 7px;font-size:11px}
:root body#royal-blue-app.royal-blue-interface #content .anh-kind {display:inline-block;padding:2px 9px;border-radius:999px;background:#eef4ff;color:#1d4fb8;font-size:12px;font-weight:700;white-space:nowrap}
:root body#royal-blue-app.royal-blue-interface #content .anh-kind[data-kind="offline"], :root body#royal-blue-app.royal-blue-interface #content .anh-kind[data-kind="reminder"] {background:#fff1e6;color:#a4400b}
:root body#royal-blue-app.royal-blue-interface #content .anh-kind[data-kind="recovery"] {background:#e7f7ee;color:#17664f}
:root body#royal-blue-app.royal-blue-interface #content .anh-kind[data-kind="test"] {background:#f1f3f7;color:#475d7b}
:root body#royal-blue-app.royal-blue-interface #content .anh-subject {min-width:220px;color:#35517a !important}
:root body#royal-blue-app.royal-blue-interface #content .anh-hint {margin:-4px 0 0;color:#5a6f8c;font-size:12.5px}
@media (max-width:700px) {
:root body#royal-blue-app.royal-blue-interface #content .anh-filters label {flex:1 1 calc(50% - 5px);min-width:0}
:root body#royal-blue-app.royal-blue-interface #content .anh-filters .anh-q {flex-basis:100%}
:root body#royal-blue-app.royal-blue-interface #content .anh-filters input, :root body#royal-blue-app.royal-blue-interface #content .anh-filters select {width:100%;min-width:0;box-sizing:border-box}
}
:root body#royal-blue-app.royal-blue-interface #content .anh-actions {display:flex;flex-wrap:wrap;gap:6px}
:root body#royal-blue-app.royal-blue-interface #content .anh-actions .btn {display:inline-flex;align-items:center;gap:6px}
:root body#royal-blue-app.royal-blue-interface #content .anh-scroll {overflow-x:auto;border:1px solid #e3ebf6;border-radius:12px}
:root body#royal-blue-app.royal-blue-interface #content .anh-table {width:100%;border-collapse:collapse;font-size:13.5px}
:root body#royal-blue-app.royal-blue-interface #content .anh-table th {position:sticky;top:0;padding:10px 12px;background:#f1f5fc;color:#35517a;font-size:12px;font-weight:700;text-align:left;white-space:nowrap}
:root body#royal-blue-app.royal-blue-interface #content .anh-table td {padding:9px 12px;border-top:1px solid #edf2fa;vertical-align:top;color:#17304f;white-space:normal}
:root body#royal-blue-app.royal-blue-interface #content .anh-table td small {display:block;color:#5a6f8c;font-size:12px}
:root body#royal-blue-app.royal-blue-interface #content .anh-table tr[data-status="failed"] td {background:#fff7f6}
:root body#royal-blue-app.royal-blue-interface #content .anh-when {white-space:nowrap !important}
:root body#royal-blue-app.royal-blue-interface #content .anh-num {text-align:right}
:root body#royal-blue-app.royal-blue-interface #content .anh-recipient {white-space:nowrap}
:root body#royal-blue-app.royal-blue-interface #content .anh-table td:nth-child(4) {white-space:nowrap}
:root body#royal-blue-app.royal-blue-interface #content .anh-muted {color:#9db0c9}
:root body#royal-blue-app.royal-blue-interface #content .anh-chip {display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap;background:#eef2f8;color:#475d7b}
:root body#royal-blue-app.royal-blue-interface #content .anh-chip[data-tone="good"] {background:#e7f7ee;color:#17664f}
:root body#royal-blue-app.royal-blue-interface #content .anh-chip[data-tone="bad"] {background:#fdecea;color:#b42318}
:root body#royal-blue-app.royal-blue-interface #content .anh-chip[data-tone="warn"] {background:#fff3dc;color:#9a5b00}
:root body#royal-blue-app.royal-blue-interface #content .anh-error {margin-top:3px;color:#b42318 !important}
:root body#royal-blue-app.royal-blue-interface #content .anh-level {font-weight:700}
:root body#royal-blue-app.royal-blue-interface #content .anh-level[data-level="1"] {color:#9a6a00 !important}
:root body#royal-blue-app.royal-blue-interface #content .anh-level[data-level="2"] {color:#c2410c !important}
:root body#royal-blue-app.royal-blue-interface #content .anh-level[data-level="3"], :root body#royal-blue-app.royal-blue-interface #content .anh-level[data-level="4"] {color:#b42318 !important}
:root body#royal-blue-app.royal-blue-interface #content .anh-empty {margin:0;padding:22px;border:1px dashed #d6e2f1;border-radius:12px;color:#5a6f8c;text-align:center}
:root body#royal-blue-app.royal-blue-interface #content .anh-pager {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;color:#5a6f8c;font-size:13px}
:root body#royal-blue-app.royal-blue-interface #content .anh-pager span {margin-right:auto}

/* Quản trị › Thử nghiệm nội suy (admin-model-lab.js); the table reuses .anh-* of Lịch sử gửi */
:root body#royal-blue-app.royal-blue-interface #content .aml {display:grid;gap:14px}
:root body#royal-blue-app.royal-blue-interface #content .aml-intro {margin:0;padding:12px 14px;border:1px solid #d6e4fb;border-radius:12px;background:#f4f8ff;color:#17304f;font-size:14px;line-height:1.6}
:root body#royal-blue-app.royal-blue-interface #content .aml-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:12px}
:root body#royal-blue-app.royal-blue-interface #content .aml-box {display:grid;align-content:start;gap:10px;padding:14px;border:1px solid #dbe5f3;border-radius:12px;background:#fff;min-width:0}
:root body#royal-blue-app.royal-blue-interface #content .aml-switch {display:inline-flex;align-items:center;gap:10px;font-weight:700;color:#0f2a57;cursor:pointer}
:root body#royal-blue-app.royal-blue-interface #content .aml-switch input {width:20px;height:20px;accent-color:#1d5ce0}
:root body#royal-blue-app.royal-blue-interface #content .aml-email {display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}
:root body#royal-blue-app.royal-blue-interface #content .aml-email label {display:grid;gap:4px;flex:1 1 240px;font-size:12.5px;font-weight:600;color:#35517a}
:root body#royal-blue-app.royal-blue-interface #content .aml-email input, :root body#royal-blue-app.royal-blue-interface #content .aml-link input {min-height:38px;padding:6px 10px;border:1px solid #d6e2f1;border-radius:9px;background:#fff;font:inherit;font-weight:400;color:#17304f;min-width:0}
:root body#royal-blue-app.royal-blue-interface #content .aml-link {display:flex;flex-wrap:wrap;gap:8px;align-items:center}
:root body#royal-blue-app.royal-blue-interface #content .aml-link input {flex:1 1 260px;font-family:'JetBrains Mono',Consolas,monospace;font-size:12.5px;background:#f8fbff}
:root body#royal-blue-app.royal-blue-interface #content .aml-link .btn, :root body#royal-blue-app.royal-blue-interface #content .aml-row-actions .btn {display:inline-flex;align-items:center;gap:6px}
:root body#royal-blue-app.royal-blue-interface #content .aml-muted {color:#5a6f8c;font-size:12.5px}
:root body#royal-blue-app.royal-blue-interface #content .aml-list-head {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px}
:root body#royal-blue-app.royal-blue-interface #content .aml-list-head h3 {margin:0;font-size:16px;color:#0f2a57}
:root body#royal-blue-app.royal-blue-interface #content .aml-list-head h3 span {color:#5a6f8c;font-weight:600}
:root body#royal-blue-app.royal-blue-interface #content .aml-row-actions {display:flex;gap:6px;white-space:nowrap}
:root body#royal-blue-app.royal-blue-interface #content .aml-del {color:#b42318 !important}
:root body#royal-blue-app.royal-blue-interface #content .aml-armed {background:#fdecea !important;border-color:#f3b4ad !important;color:#b42318 !important}
:root body#royal-blue-app.royal-blue-interface #content .aml-table tr.aml-open td {background:#f4f8ff}
:root body#royal-blue-app.royal-blue-interface #content .aml-detail td {background:#f8fbff}
:root body#royal-blue-app.royal-blue-interface #content .aml-summary {margin:0 0 10px;padding:12px 14px;max-height:420px;overflow:auto;border:1px solid #dbe5f3;border-radius:10px;background:#fff;color:#17304f;font:13px/1.6 'Be Vietnam Pro','Segoe UI',sans-serif;white-space:pre-wrap}
:root body#royal-blue-app.royal-blue-interface #content .aml-sr {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ==== typography-accessibility.css ==== */
/* Readability priority: layered important rules outrank legacy unlayered
   important declarations, including compact/mobile typography. */
@layer readability {
  @media(min-width:1101px) and (max-width:1400px) {
    body#royal-blue-app .rb-overview-row .rb-station-navigation .ob-station-tabs {grid-template-columns:repeat(5,minmax(0,1fr)) !important}
    /* (13/10: the dot-only status chip that stood here was for tiles squeezed beside the three cards; the tiles now have a row of their
       own, so they show the same level icon with its status word as above 1400 px and below 1100 px) */
  }
  body#royal-blue-app .rb-overview-row .rb-station-navigation .ob-station-tabs {display:grid !important;grid-template-columns:repeat(auto-fit,minmax(78px,1fr)) !important;overflow:visible !important;gap:6px !important}
  body#royal-blue-app .rb-overview-row .rb-station-navigation .ob-station-tabs .sa-station {min-width:0 !important;width:100% !important}
  body#royal-blue-app .staff-entry {max-width:1120px;margin:0 auto;padding:38px 32px;min-height:calc(100vh - 70px);display:flex;flex-direction:column;box-sizing:border-box}
  body#royal-blue-app .staff-entry-brand {display:flex;align-items:center;gap:12px;color:#143a75}
  body#royal-blue-app .staff-entry-brand div {display:grid;gap:2px}
  body#royal-blue-app .staff-entry-brand strong {font-size:16px}
  body#royal-blue-app .staff-entry-brand span {font-size:12px;color:#506580}
  body#royal-blue-app .staff-entry-grid {display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:60px;align-items:center;flex:1;padding:50px 0}
  body#royal-blue-app .staff-entry-eyebrow {font-size:11px;color:#2464df;font-weight:600;letter-spacing:1.5px}
  body#royal-blue-app .staff-entry-intro h1 {font-size:36px !important;line-height:1.35;color:#102c68;margin:14px 0 18px;letter-spacing:-1px}
  body#royal-blue-app .staff-entry-intro > p {font-size:15px;line-height:1.8;color:#506580;max-width:490px}
  body#royal-blue-app .staff-entry-features {display:grid;gap:20px;margin-top:30px}
  body#royal-blue-app .staff-entry-features > div {display:flex;gap:12px;align-items:flex-start}
  body#royal-blue-app .staff-entry-features svg {color:#2464df;margin-top:4px;flex:none}
  body#royal-blue-app .staff-entry-features span {display:grid;gap:3px}
  body#royal-blue-app .staff-entry-features strong {font-size:14px;color:#24446c}
  body#royal-blue-app .staff-entry-features small {font-size:12px !important;color:#506580}
  body#royal-blue-app .staff-entry-card {padding:32px;border:1px solid #d9e5f7;border-top:3px solid #2464df;border-radius:18px;background:#fff;box-shadow:0 18px 48px #244e8c10}
  body#royal-blue-app .staff-entry-shield {display:grid;place-items:center;width:60px;height:60px;border-radius:16px;background:#edf4ff;color:#2464df;margin-bottom:22px}
  body#royal-blue-app .staff-entry-card h2 {font-size:22px !important;line-height:1.45;color:#102c68;margin:0 0 12px}
  body#royal-blue-app .staff-entry-card p {font-size:14px;line-height:1.8;color:#506580;margin-bottom:26px}
  body#royal-blue-app .staff-entry-card .btn {display:flex;justify-content:center;width:100%;padding:12px !important;box-sizing:border-box}
  body#royal-blue-app .staff-entry-public {display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;color:#2464df;margin-top:18px}
  body#royal-blue-app .staff-entry-account-note {display:flex;gap:8px;align-items:flex-start;border-top:1px solid #e4ecf8;padding-top:18px;margin-top:24px;font-size:12px;color:#506580}
  body#royal-blue-app .staff-entry-footer {display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:18px 0;border-top:1px solid #dce7f6;font-size:11px;color:#506580;background:none}
  @media(max-width:760px) {
    body#royal-blue-app .staff-entry {padding:24px 18px}
    body#royal-blue-app .staff-entry-grid {grid-template-columns:1fr;gap:28px;padding:32px 0}
    body#royal-blue-app .staff-entry-intro h1 {font-size:28px !important}
    body#royal-blue-app .staff-entry-card {padding:24px}
  }
  /* Keep the card geometry and decorative ::after intact. The inset adds
     two pixels to the existing one-pixel border without shifting content. */
  body#royal-blue-app .rb-overview-row :is(.ob-kpi-network,.ob-kpi-pending):is(:hover,:focus-within) {
    border-top-color:#245bff !important;
    box-shadow:inset 0 2px 0 #245bff,0 9px 24px #1c4caa17 !important;
  }
  @media(min-width:1101px) and (max-width:1400px) {
    body#royal-blue-app .rb-station-navigation .ob-station-tabs {overflow-x:auto !important;align-items:stretch}
    body#royal-blue-app .rb-station-navigation .ob-station-tabs {gap:5px !important}
    body#royal-blue-app .rb-overview-row .sa-station {min-width:78px !important;padding:7px 3px !important}
    body#royal-blue-app .rb-station-navigation .ob-station-tabs .sa-station .sa-status-chip {white-space:nowrap !important;flex-wrap:nowrap !important;font-size:10px !important;max-width:none !important}
    body#royal-blue-app .rb-overview-row .sa-status-chip {font-size:10px !important;white-space:nowrap !important;line-height:1.5 !important;padding:3px !important;gap:2px !important}
  }
  @media(min-width:1101px) and (max-width:1400px) {
    body#royal-blue-app .instrument-reading .ir-scale-heading {flex-wrap:wrap !important;gap:2px 8px !important}
    body#royal-blue-app .instrument-reading .ir-scale-heading > span {white-space:nowrap !important;font-size:12px !important}
    body#royal-blue-app .instrument-reading .ir-scale-heading > strong {margin-left:auto;white-space:nowrap;font-size:12px !important}
    body#royal-blue-app .instrument-reading .ir-result {gap:4px 6px !important}
    body#royal-blue-app .instrument-reading .ir-status {flex:1 1 auto !important;white-space:nowrap;font-size:12px !important}
    body#royal-blue-app .rb-kpi-footer .rb-kpi-caption {font-size:12px !important;line-height:1.5 !important}
  }
  body#royal-blue-app #modal-root {position:relative !important;z-index:11000 !important;isolation:isolate}
  body#royal-blue-app #modal-root .modal-overlay {z-index:11000 !important}
  body#royal-blue-app .river-canvas {isolation:isolate}
  body#royal-blue-app button.ir-reference-banner {width:100%;text-align:left;cursor:pointer;font:inherit;display:flex;align-items:center;gap:10px}
  body#royal-blue-app .ir-reference-banner > div {flex:1;min-width:0}
  body#royal-blue-app .ir-reference-open {display:flex;align-items:center;color:#2464df !important}
  body#royal-blue-app button.ir-reference-banner:hover {background:#dceaff !important;border-color:#8bb4fa !important}
  body#royal-blue-app button.ir-reference-banner:focus-visible {outline:3px solid #83afff;outline-offset:3px}
  body#royal-blue-app .standard-reference-modal {width:min(820px,calc(100vw - 32px)) !important;max-width:820px !important;padding:24px !important}
  body#royal-blue-app .standard-modal-context {display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;padding:10px 12px;background:#f5f8fd;border-radius:8px;color:#36516f;font-size:13px !important;margin-bottom:16px}
  body#royal-blue-app .standard-modal-context > span {margin-left:auto;color:#506580}
  body#royal-blue-app .standard-reference-modal .rp-panel {padding:0;background:#fff;min-width:0}
  body#royal-blue-app .standard-reference-modal .rp-standard {padding:16px;background:linear-gradient(135deg,#edf4ff,#f6fbff);border:1px solid #dce7fa;border-radius:12px}
  body#royal-blue-app .standard-reference-modal .rp-standard strong {font-size:17px !important}
  body#royal-blue-app .standard-reference-modal .rp-scope {display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px}
  body#royal-blue-app .standard-reference-modal .rp-table {width:100%;border-collapse:collapse}
  body#royal-blue-app .standard-reference-modal .rp-table :is(th,td) {padding:12px 10px !important;border-bottom:1px solid #e2eaf6;vertical-align:middle;text-align:left}
  body#royal-blue-app .standard-reference-modal .rp-table thead {background:#f2f7ff}
  body#royal-blue-app .standard-reference-modal .rp-source {margin-top:16px;padding:12px;background:#f7faff;border:1px solid #e0e9f6;border-radius:9px;line-height:1.7}
  @media(max-width:600px) {
    body#royal-blue-app .standard-reference-modal {padding:16px !important}
    body#royal-blue-app .standard-reference-modal .rp-table :is(th,td) {padding:8px 5px !important;font-size:12px !important;overflow-wrap:anywhere}
    body#royal-blue-app .standard-reference-modal .rp-parameter-icon {display:none}
  }
  body#royal-blue-app .map-pin-label .map-distance-label {
    font-size:10px !important;line-height:1.4 !important;letter-spacing:0 !important;
    white-space:nowrap !important;overflow-wrap:normal !important;max-width:none;
  }
  body#royal-blue-app #geographic-map .map-pin-label {
    width:max-content !important;min-width:76px;max-width:none !important;box-sizing:border-box;
  }
  body#royal-blue-app .gis-point-detail {width:min(350px,calc(100% - 24px));border-top-width:3px;background:#fff !important}
  body#royal-blue-app .gis-detail-header {padding:12px 14px !important;background:#f4f8ff}
  body#royal-blue-app .gis-detail-header h4 {font-size:15px !important;line-height:1.45 !important}
  body#royal-blue-app .gis-detail-body {padding:10px 12px !important}
  body#royal-blue-app .gis-point-detail .map-popup-readings {gap:7px !important;margin-top:10px}
  body#royal-blue-app .gis-point-detail .map-popup-readings > .gis-reading-card {
    padding:9px !important;background:color-mix(in srgb,var(--parameter-color) 5%,white) !important;
    border:1px solid color-mix(in srgb,var(--parameter-color) 18%,#e6edf5) !important;border-radius:8px !important;
  }
  body#royal-blue-app .gis-reading-card small {color:var(--parameter-color) !important;font-size:12px !important;line-height:1.45 !important;font-weight:500}
  body#royal-blue-app .gis-reading-value {display:flex;align-items:baseline;gap:4px;flex-wrap:wrap;margin-top:3px}
  body#royal-blue-app .gis-reading-value strong {font-size:21px !important;color:#153b6b !important;line-height:1.4 !important;margin:0 !important}
  body#royal-blue-app .gis-reading-value span {font-size:10px !important;color:#506580 !important;white-space:nowrap}
  body#royal-blue-app .gis-reading-card em {font-size:10px !important;line-height:1.5 !important;margin-top:4px}
  body#royal-blue-app .gis-detail-reference {margin:10px 0 !important;padding:8px 10px !important;border:1px solid #dbe7fa}
  @media(max-width:480px) {body#royal-blue-app .gis-point-detail {width:calc(100% - 16px);max-height:76%}}
  body#royal-blue-app #brand-logo {width:40px !important;height:40px !important;flex:0 0 40px !important;background:none !important;border:0 !important;padding:0 !important;display:grid !important;place-items:center}
  body#royal-blue-app #brand-logo img {width:40px !important;height:40px !important;object-fit:contain !important}
  body#royal-blue-app .project-credit-modal {width:min(780px,calc(100vw - 32px)) !important;max-width:780px !important;padding:24px !important}
  body#royal-blue-app .project-title-card {padding:18px;background:linear-gradient(135deg,#eef5ff,#f6fbff);border:1px solid #dbe8fa;border-radius:12px}
  body#royal-blue-app .project-eyebrow {display:flex;align-items:center;gap:7px;font-size:11px !important;font-weight:600;color:#42638b;letter-spacing:.5px}
  body#royal-blue-app .project-title-card h3 {font-size:16px !important;line-height:1.65 !important;margin:10px 0 0 !important;color:#102b65 !important;font-weight:600}
  body#royal-blue-app .project-role-grid {display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}
  body#royal-blue-app .project-role-card {display:flex;gap:10px;padding:14px;border:1px solid #e0e9f6;border-radius:10px;background:#fff}
  body#royal-blue-app .project-role-card > svg {flex:none;color:#2464df;margin-top:3px}
  body#royal-blue-app .project-role-card h3 {font-size:12px !important;margin:0 0 6px !important;color:#506580 !important;font-weight:500}
  body#royal-blue-app .project-role-card p {font-size:14px !important;font-weight:600;color:#173b70}
  body#royal-blue-app .project-members h3 {display:flex;gap:8px;align-items:center;margin:20px 0 10px !important}
  body#royal-blue-app .project-members ul {display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;list-style:none;padding:0;margin:0}
  body#royal-blue-app .project-members li {display:flex;align-items:baseline;gap:8px;font-size:13px;line-height:1.6;color:#36516f}
  body#royal-blue-app .project-members li svg {flex:none;color:#168a90}
  @media(max-width:600px) {
    body#royal-blue-app .project-credit-modal {padding:18px !important}
    body#royal-blue-app .project-role-grid,body#royal-blue-app .project-members ul {grid-template-columns:1fr}
  }
  body#royal-blue-app .river-quality-control {padding:4px 5px !important;border-radius:7px !important;width:184px;box-sizing:border-box}
  body#royal-blue-app .river-quality-switches {gap:3px !important}
  body#royal-blue-app .river-quality-switches button {min-height:28px !important;padding:3px 4px !important;gap:3px !important;font-size:10px !important}
  body#royal-blue-app .river-quality-switches button svg {width:13px !important;height:13px !important}
  body#royal-blue-app .river-quality-scale {font-size:10px !important;line-height:1.3 !important;margin-top:3px !important;gap:3px !important}
  body#royal-blue-app .gis-location-bar > div {display:flex !important;align-items:baseline;flex-wrap:wrap;gap:3px 8px;min-width:0}
  body#royal-blue-app .gis-location-bar .gis-coordinate-label {text-transform:none !important;letter-spacing:normal !important}
  body#royal-blue-app .gis-location-bar strong {margin:0 !important;font-size:12px !important;white-space:nowrap}
  body#royal-blue-app .topbar .rb-top-export {display:inline-flex !important;align-items:center;justify-content:center;gap:7px !important;padding:8px 12px !important;line-height:1.4 !important}
  body#royal-blue-app .topbar .rb-top-export::before {display:none !important}
  body#royal-blue-app .topbar .rb-top-export svg {width:17px;height:17px;flex:none}
  body#royal-blue-app #notification-button {width:36px;height:36px;padding:8px !important;display:grid !important;place-items:center}
  body#royal-blue-app #notification-button::after {display:none !important}
  body#royal-blue-app #notification-button svg {width:20px;height:20px}
  body#royal-blue-app #notification-button .notification-count {top:1px !important;right:0 !important;min-width:16px;height:16px;box-sizing:border-box;padding:0 3px !important;display:flex;align-items:center;justify-content:center;font-size:9px !important;line-height:1 !important;border:1px solid white !important;border-radius:8px !important}
  body#royal-blue-app #footer-mode {font-size:11px !important;color:#506580 !important;line-height:1.5}
  body#royal-blue-app .project-credit-details {font:inherit !important;color:#1758bd !important;background:none;border:0;padding:2px 0;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
  body#royal-blue-app .project-credit-body h3 {font-size:14px !important;margin:16px 0 5px;color:#173eae}
  body#royal-blue-app .project-credit-body p {font-size:14px !important;line-height:1.7;margin:0;overflow-wrap:anywhere}
  @media(max-width:600px) {
    body#royal-blue-app .river-quality-switches button {min-height:32px !important}
    body#royal-blue-app .topbar .rb-top-export {padding:8px !important}
    body#royal-blue-app .topbar .rb-top-export span {display:none}
  }
  body#royal-blue-app {
    --readable-caption: max(13px, calc(var(--font-size, 16px) * .8125));
    --rb-muted: #506580 !important;
    --rb-text: #2d4e7a !important;
    --muted: #506580 !important;
    --text-secondary: #405b78 !important;
    --text-caption: #506580 !important;
    font-family: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif !important;
    font-size: max(15px, calc(var(--font-size, 16px) - 1px)) !important;
    line-height: 1.6 !important;
  }
  body#royal-blue-app :is(button,input,select,textarea) {font-family:inherit !important}
  body#royal-blue-app :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea) {
    font-size: max(15px, calc(var(--font-size, 16px) - 1px)) !important;
    line-height:1.55 !important;
  }
  body#royal-blue-app :is(.btn,.tabs button,.segments button,.admin-nav-item,.account,.rb-top-export,.live-update-notice) {
    font-size:14px !important; line-height:1.5 !important;
  }
  body#royal-blue-app #navigation a {font-size:14px !important;line-height:1.5 !important;font-weight:500 !important}
  body#royal-blue-app #navigation a.active {font-weight:600 !important}
  body#royal-blue-app :is(#breadcrumb,#brand-name) {font-size:var(--readable-caption) !important;line-height:1.6 !important}
  body#royal-blue-app :is(small,.tiny,.muted,.text-muted,.note,.section-note,.help-text,.field-help,.form-help,.empty,.loading,.subtitle,.privacy-note,
    .field>label,.form-label,legend,.badge,.chip,.section-subtitle,.card-subtitle,
    .rb-clock,.rb-support>summary,.admin-nav-heading>span,.admin-nav-group h2,
    .admin-eyebrow,.admin-context p,.admin-editor-revision,.admin-editor-summary,.admin-editor-tabs button,.admin-editor-tabs button span,
    .parameter-tabs button,.admin-section-description,.admin-save-heading strong,.admin-save-status,
    .admin-upload-heading p,.admin-logo-preview p,.admin-logo-upload label,.admin-supplemental-tool summary,.admin-supplemental-tool summary span,
    .rb-kpi-label,.rb-kpi-caption,.rb-kpi-content>span,.rb-kpi-content>span strong,.rb-kpi-detail span,.rb-kpi-detail strong,.rb-kpi-value small,.rb-fresh-pill,.rb-station-hint,
    .rb-heading-status span,.rb-heading-status strong,.ob-nav-count,
    .ob-page-heading p,.ob-page-heading p span,.ob-page-heading p strong,.ob-section-heading p,.ob-heading-meta,
    .sa-identity strong,.sa-status-chip,.ob-route-disclosure,.ob-extra-readings,.ob-extra-readings summary,
    .ir-name,.ir-name strong,.ir-source,.ir-quality,.ir-value>span,.ir-reference-banner strong,.ir-reference-banner span,
    .ir-scale-heading span,.ir-scale-heading strong,.ir-status,.ir-evidence summary,.ir-column-head,
    .reading-ticks,.standard-gauge-ticks,.ir-reading-guide,.instrument-caption,
    .chart-selector button,.chart-parameters button strong,.chart-parameters button span,.chart-panel-heading p,.chart-source-note,.chart-source-note span,.ob-chart-sample-note,
    .chart-legend,.chart-legend span,.chart-interaction-hint,.ob-chart-stats span,.ob-chart-stats small,.kpi-breakdown,.ob-kpi-action,
    .hydro-hero p,.ir-evidence-body p,.ir-evidence-body strong,.gauge-heading,.gauge-current,.gauge-scale,.gauge-rules,.gauge-rules li,.gauge-rules strong,
    .monitor-timestamp,.monitor-point-state>span,.reference-panel small,
    .data-context p,.data-context li,.data-context button,.data-basis-caption,.data-basis-details summary,
    .threshold-intro,.threshold-rule-preview,.threshold-unit,.threshold-current-note,.mini-stat>span,.checkbox,.form-actions>label,
    .compact-basis summary,.compact-basis-body,.gate-details,.code-box,pre,code,
    .qcvn-page p,.qcvn-page summary,.timeline-time,.timeline-text small,
    .citizen-brand small,.citizen-header nav button,.citizen-source-badge,.citizen-point-status strong,
    .citizen-staff-label,.citizen-location,.coastal-source-summary span,.coastal-source-summary strong,.coastal-live-bar span,.coastal-live-bar button,
    .citizen-alert-strip button,.citizen-attention-note,.citizen-point strong,.citizen-point em,.citizen-points-summary,
    .citizen-point-heading p,.citizen-point>span>small,.citizen-point-tools>span,
    .citizen-value h4,.citizen-value strong small,.citizen-value-note,.citizen-value p,
    .citizen-reading-explain p,.citizen-location-note,.citizen-measures-note,.citizen-reading-more>summary,
    .citizen-reading-help strong,.citizen-reading-help small,.citizen-update strong,.citizen-update small,
    .citizen-info-link strong,.citizen-info-link small,.citizen-map-caption,.citizen-map-legend>span,.citizen-legend-source,
    .citizen-data-mode p,.citizen-fetch-time,.citizen-fetch-time small,.citizen-coverage span,
    .citizen-faq p,.citizen-guide p,.citizen-footer-expanded,.citizen-footer-identity p,.citizen-footer-links button,
    .citizen-footer-credits,.citizen-search-empty,.citizen-primary,.citizen-secondary) {
    font-size:var(--readable-caption) !important;
    line-height:1.55 !important;
  }
  body#royal-blue-app :is(.card-title h2,.ob-section-heading h2,.rb-station-heading h2,.ob-network h2,.river-header h3,.admin-nav-heading strong) {
    font-size:17px !important;line-height:1.45 !important;font-weight:650 !important;
  }
  body#royal-blue-app :is(table th,table td) {font-size:14px !important;line-height:1.6 !important}
  body#royal-blue-app .fleet-comparison th .comparison-column-unit {
    display:block; font-size:11px !important;line-height:1.5 !important;
    font-weight:400 !important;color:#64748b !important;margin-top:3px;white-space:nowrap;
  }
  body#royal-blue-app :is(.rb-kpi-label,.ir-name strong,.field>label,.form-label,.sa-status-chip,.ir-status,.chart-parameters button strong) {font-weight:500 !important}
  body#royal-blue-app :is(.muted,.text-muted,.note,.section-note,.help-text,.field-help,.form-help,.empty,.loading,.subtitle,
    .rb-kpi-caption,.rb-kpi-content>span,.rb-kpi-detail span,.rb-kpi-detail strong,.rb-heading-status span,.rb-kpi-value small,.rb-station-hint,.rb-clock,
    .admin-nav-heading>span,.admin-nav-group h2,.admin-nav-item:not(.is-active),
    .admin-eyebrow,.admin-context p,.admin-editor-revision,.admin-editor-summary,.admin-section-description,
    .admin-save-status,.admin-upload-heading p,.admin-logo-preview p,.admin-logo-upload label,
    .ir-source,.ir-value>span,.ir-scale-heading span,.ir-scale-heading strong,.ir-evidence summary,
    .reading-ticks,.standard-gauge-ticks,.ir-column-head,.ir-reading-guide,
    .chart-source-note,.ob-chart-sample-note,.chart-panel-heading p,.chart-legend,.chart-legend span,.chart-interaction-hint,.ob-chart-stats span,
    .hydro-hero p,.ir-evidence-body p,.ir-evidence-body strong,.gauge-heading,.gauge-scale,.gauge-rules,
    .citizen-brand small,.citizen-point-heading p,.citizen-point>span>small,.citizen-point-tools>span,
    .citizen-value p,.citizen-reading-explain p,.citizen-location-note,.citizen-measures-note,
    .citizen-update small,.citizen-info-link small,.citizen-map-caption,.citizen-fetch-time small,
    .citizen-faq p,.citizen-footer-expanded,.citizen-footer-identity p,.citizen-search-empty) {
    color:#506580 !important;opacity:1 !important;
  }
  body#royal-blue-app :is(.field>label,.form-label,table th,.ir-name,.ir-reference-banner span) {color:#36516f !important}
  body#royal-blue-app :is(input,textarea)::placeholder {color:#58677b !important;opacity:1 !important}
  body#royal-blue-app :is(#navigation a,.rb-support>summary,#brand-subtitle,.workspace>footer) {color:#36516f !important}
  body#royal-blue-app #navigation a.active {color:#0752c4 !important}
  body#royal-blue-app .ob-kpi-attention .rb-kpi-label {color:#9a4700 !important}
  body#royal-blue-app .ir-status {color:#176548 !important}
  body#royal-blue-app [data-reference-state=outside] .ir-status {color:#a52d3c !important}
  body#royal-blue-app [data-reference-state=partial] .ir-status {color:#80530c !important}
  body#royal-blue-app :is(.ir-quality,.citizen-value-note) {color:#80530c !important}
  body#royal-blue-app .chart-parameters button strong {color:#36516f !important}
  body#royal-blue-app .chart-parameters button[aria-pressed=true] strong {color:#0752c4 !important}
  body#royal-blue-app .chart-parameters button span {color:#506580 !important;opacity:1 !important}

  /* Smaller reference captions with a real layout slot for the explanation. */
  body#royal-blue-app .instrument-reading .ir-result {
    display:flex !important;align-items:flex-start !important;flex-wrap:wrap !important;
    gap:5px 8px !important;padding-right:0 !important;
  }
  body#royal-blue-app .instrument-reading .ir-result .ir-status {
    font-size:12px !important;line-height:1.5 !important;flex:1 1 110px;min-width:0;
  }
  body#royal-blue-app .instrument-reading .ir-result .ir-evidence {flex:0 0 auto !important}
  body#royal-blue-app .instrument-reading .ir-result .ir-evidence[open] {flex-basis:100% !important}
  body#royal-blue-app .instrument-reading .ir-result .ir-evidence>summary {
    position:static !important;font-size:12px !important;line-height:1.5 !important;padding:0 !important;gap:5px !important;
  }

  /* Map labels keep a compact, readable size; they remain geographically anchored. */
  body#royal-blue-app :is(.map-floating-tools button,.map-basemap-name,.map-basemap-dropdown button,
    .map-level-legend>span,.map-angle,.map-angle output,.gis-coordinate-label,.gis-coordinate-state,
    .geographic-coordinates strong,.gis-location-bar strong,.map-distance-label,.map-pin-label strong,.map-pin-label small,.map-pin-label span,
    .gis-map-notes,.gis-map-notes summary,.map-interface-credit,.map-quality-legend span,.map-quality-scale span,
    .coastal-point strong,.coastal-point small,.coastal-point-label small,.coastal-scene-heading,.coastal-scene-heading>span,.coastal-scene-footer span,
    .coastal-village-label,.citizen-map-tip,.river-quality-scale span,.river-quality-layer span,.river-layer-toggle span) {
    font-size:12px !important;line-height:1.5 !important;
  }
  body#royal-blue-app :is(.gis-coordinate-label,.gis-coordinate-state,.geographic-coordinates strong,.map-distance-label,
    .map-level-legend>span,.map-angle,.map-angle output,.map-interface-credit) {color:#36516f !important}
  body#royal-blue-app .gis-style-night :is(.map-pin-label strong,.map-pin-label small,.map-pin-label span,.map-distance-label) {color:#eff6ff !important}
  body#royal-blue-app :is(.coastal-scene-heading,.coastal-scene-heading>span) {color:#effcff !important}
  body#royal-blue-app :is(.chart,.chart-frame,.chart-content) svg text {font-size:12px !important;fill:#36516f !important}
  body#royal-blue-app .standard-gauge-ticks {height:22px !important}
  body#royal-blue-app :is(.rb-kpi-content>span,.rb-kpi-caption,.ob-heading-meta) {white-space:normal !important}
  body#royal-blue-app :is(.map-footer-inline,.map-level-legend,.geographic-coordinates,.rb-station-heading) {flex-wrap:wrap !important}
  body#royal-blue-app :is(.map-footer-inline,.map-level-legend) {gap:8px 12px !important}
  body#royal-blue-app .rb-overview-row .sa-tile {min-height:72px !important;height:auto !important}
  body#royal-blue-app .rb-overview-row .sa-status-chip {white-space:normal !important}
  body#royal-blue-app .rb-summary .ob-stat {height:auto !important;min-height:135px !important}
  body#royal-blue-app .citizen-brand small {white-space:normal !important;max-width:230px}
  body#royal-blue-app .citizen-header-inner {flex-wrap:wrap;padding-block:12px}
  body#royal-blue-app .citizen-footer-credits {line-height:1.8 !important}
  @media(max-width:600px) {
    body#royal-blue-app :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea) {font-size:16px !important}
    body#royal-blue-app .topbar .rb-top-export {font-size:0 !important}
    body#royal-blue-app .topbar .rb-top-export::before {font-size:23px !important}
    body#royal-blue-app .rb-overview-row {grid-template-columns:minmax(0,1fr) !important}
    body#royal-blue-app .rb-overview-row .rb-three-summary .ob-stat {
      grid-template-columns:42px minmax(0,1fr) !important;grid-template-rows:auto 1fr auto !important;padding:16px !important;
    }
    body#royal-blue-app .rb-station-navigation .ob-station-tabs {overflow-x:auto !important;padding-bottom:6px}
    body#royal-blue-app .rb-station-navigation .sa-station {flex:0 0 106px !important;min-width:106px !important}
    body#royal-blue-app .instrument-readings .metric.instrument-reading {grid-template-columns:minmax(0,1fr) !important;gap:12px !important}
    body#royal-blue-app .instrument-reading :is(.ir-identity,.ir-comparison) {grid-column:1 !important;grid-row:auto !important}
    body#royal-blue-app .ir-scale-heading {flex-wrap:wrap !important}
    body#royal-blue-app :is(.citizen-primary,.citizen-secondary) {white-space:normal !important}
    body#royal-blue-app .citizen-brand small {font-size:12px !important;max-width:185px}
    body#royal-blue-app .citizen-header nav {flex-wrap:wrap}
    body#royal-blue-app .rb-summary .ob-stat {min-height:145px !important}
  }
  /* Small maps keep every anchor, with a label only for the active point. */
  @media(max-width:900px), (max-width:1100px) and (orientation:portrait) {
    body#royal-blue-app .gis-beacon:not(.selected) .map-pin-label {display:none !important}
    body#royal-blue-app .gis-beacon:not(.selected)::after {display:none !important}
    body#royal-blue-app .rb-data-basis {
      display:flex !important;flex-direction:column !important;gap:0 !important;min-height:0 !important;
    }
    body#royal-blue-app .rb-data-basis > * {
      grid-column:auto !important;grid-row:auto !important;order:0 !important;width:auto;min-width:0;
    }
    body#royal-blue-app .rb-data-basis .rb-data-sources {padding-top:14px !important}
    body#royal-blue-app .rb-data-basis .rb-data-reference {margin-top:4px !important}
  }
  @media(forced-colors:active) {
    body#royal-blue-app :is(.muted,.note,.field>label,.ir-source,.ir-status) {color:CanvasText !important}
  }
  @media(min-width:1101px) and (max-width:1400px) {
    body#royal-blue-app #ob-network .ob-station-tabs {grid-template-columns:repeat(5,minmax(0,1fr)) !important;overflow:visible !important}
  }
}



/* ==== estimation-editor.css ==== */
/* Estimation settings: table of calculation methods, editor for the opened cell, and one apply step.
   Rules sit in the readability layer like the rest of the administration styles. */
@layer readability {
  body#royal-blue-app .est-board {padding:22px !important}
  body#royal-blue-app .est-board :is(h3,h4,p) {margin-top:0}
  body#royal-blue-app .est-board [hidden] {display:none !important}
  body#royal-blue-app .est-board .settings-title h3 {display:flex;align-items:center;gap:9px;font-size:18px !important}
  body#royal-blue-app .est-intro {color:#506580;line-height:1.7;margin:0 0 16px;font-size:14px !important}

  /* Where things stand now */
  body#royal-blue-app .est-status {display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border-radius:12px;background:#f0f7ff;border:1px solid #d5e5fa}
  body#royal-blue-app .est-status>div {flex:1;min-width:0}
  body#royal-blue-app .est-status strong {display:block;font-size:15px !important;color:#1f4272}
  body#royal-blue-app .est-status p {margin:3px 0 0;font-size:13px !important;line-height:1.6;color:#36516f}
  body#royal-blue-app .est-status-icon {display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#dcebff;color:#245bba;flex:none}
  body#royal-blue-app .est-status[data-state=active] {background:#eef9f5;border-color:#c4e6da}
  body#royal-blue-app .est-status[data-state=active] .est-status-icon {background:#d6f0e5;color:#18826a}
  body#royal-blue-app .est-status:is([data-state=scheduled],[data-state=draft]) {background:#fff8e8;border-color:#f0dcae}
  body#royal-blue-app .est-status:is([data-state=scheduled],[data-state=draft]) .est-status-icon {background:#fbe9bd;color:#8a5a00}
  body#royal-blue-app .est-context {display:flex;flex-wrap:wrap;gap:6px 22px;list-style:none;margin:10px 2px 0;padding:0;color:#506580;font-size:13px !important}
  body#royal-blue-app .est-context li {display:flex;align-items:center;gap:6px}
  body#royal-blue-app .est-context b {color:#24446b;font-weight:600}
  body#royal-blue-app .est-guide {margin:12px 0 4px}
  body#royal-blue-app .est-guide>summary {display:flex;align-items:center;gap:8px;cursor:pointer;color:#245bba;font-size:13px !important;list-style:none;min-height:36px}
  body#royal-blue-app .est-guide>summary>svg:last-child {margin-left:auto}
  body#royal-blue-app .est-guide ol {margin:6px 0 4px;padding:12px 16px 12px 34px;background:#f7faff;border:1px solid #e1eafa;border-radius:10px;font-size:13px !important;line-height:1.75;color:#36516f}

  /* Step headings */
  body#royal-blue-app .est-section-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 12px;flex-wrap:wrap}
  body#royal-blue-app .est-section-heading>div {display:flex;align-items:center;gap:10px}
  body#royal-blue-app .est-section-heading h3 {margin:0;font-size:17px !important}
  body#royal-blue-app .est-step {display:inline-grid;place-items:center;flex:0 0 26px;width:26px;height:26px;background:#e8f0ff;color:#175adb;border-radius:8px;font-size:13px;font-weight:700}

  /* The table */
  body#royal-blue-app .est-matrix-wrap {overflow-x:auto;border:1px solid #d5e3f9;border-radius:12px;background:#fff}
  body#royal-blue-app .est-matrix-wrap:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .est-matrix {width:100%;min-width:640px;table-layout:fixed;border-collapse:separate;border-spacing:0}
  body#royal-blue-app .est-matrix thead th:first-child {width:170px}
  body#royal-blue-app .est-matrix caption {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  body#royal-blue-app .est-matrix :is(th,td) {padding:8px !important;vertical-align:top;text-align:left;border-bottom:1px solid #e6eefb;font-size:13px !important}
  body#royal-blue-app .est-matrix tbody tr:last-child :is(th,td) {border-bottom:0}
  body#royal-blue-app .est-matrix thead th {background:#f5f9ff;color:#24446b;vertical-align:bottom;padding:10px 10px 8px}
  body#royal-blue-app .est-matrix thead th strong {display:block;font-size:14px !important}
  body#royal-blue-app .est-matrix thead th small {display:block;font-size:12px !important;font-weight:400;color:#506580}
  body#royal-blue-app .est-matrix :is(thead th:first-child,tbody th[scope=row]) {position:sticky;left:0;z-index:1;background:#f9fbff;min-width:170px;border-right:1px solid #e6eefb}
  body#royal-blue-app .est-matrix tbody th[scope=row] {display:table-cell}
  body#royal-blue-app .est-param-icon {display:inline-block;vertical-align:top;margin:1px 8px 0 0;color:#3d73bc}
  body#royal-blue-app .est-param-text {display:inline-block;vertical-align:top;max-width:calc(100% - 30px)}
  body#royal-blue-app .est-matrix tbody th[scope=row] strong {display:block;font-size:13px !important;color:#24446b;line-height:1.4}
  body#royal-blue-app .est-matrix tbody th[scope=row] small {display:block;font-size:12px !important;font-weight:400;color:#62758d}
  body#royal-blue-app .est-cell {position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:4px;width:100%;min-width:0;min-height:84px;padding:10px 12px;text-align:left;font:inherit;white-space:normal;overflow-wrap:anywhere;color:#264667;background:#fff;border:1px solid #dbe7fb;border-radius:10px;cursor:pointer;align-content:start}
  body#royal-blue-app .est-cell>* {white-space:normal;min-width:0}
  body#royal-blue-app .est-cell:hover {border-color:#96b8f4;background:#f8fbff}
  body#royal-blue-app .est-cell:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .est-cell[aria-pressed=true] {border-color:#2b65ea;background:#edf4ff;box-shadow:0 0 0 2px #cfe0ff}
  body#royal-blue-app .est-cell[data-tone=custom] {border-left:4px solid #21927c;background:#f4fbf8}
  body#royal-blue-app .est-cell[data-tone=custom][aria-pressed=true] {background:#edf4ff;border-left-color:#21927c}
  body#royal-blue-app .est-cell[data-tone=reverting] {border-style:dashed}
  body#royal-blue-app .est-cell[data-blocked=true] {border-color:#e8c36b;background:#fffaf0}
  body#royal-blue-app .est-cell[data-dirty=true]::after {content:"";position:absolute;top:8px;right:8px;width:9px;height:9px;border-radius:50%;background:#e59a1a;box-shadow:0 0 0 3px #fbe7bd}
  body#royal-blue-app .est-cell-result {display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 6px;min-height:28px}
  body#royal-blue-app .est-value {font-size:21px !important;font-weight:700;line-height:1.25;color:#133858;font-variant-numeric:tabular-nums}
  body#royal-blue-app .est-cell-result small {font-size:12px !important;color:#506580}
  body#royal-blue-app .est-value-none,body#royal-blue-app .est-value-pending {color:#8a9bb0}
  body#royal-blue-app .est-was {font-size:12px !important;color:#8a5a00;background:#fff1cf;border-radius:5px;padding:0 6px;line-height:1.6}
  body#royal-blue-app .est-cell-method {font-size:12.5px !important;line-height:1.45;color:#36516f}
  body#royal-blue-app .est-cell-warning {font-size:12px !important;line-height:1.45;color:#8a5a00}
  body#royal-blue-app .est-cell-badge {justify-self:start;font-size:11.5px !important;line-height:1.6;padding:0 8px;border-radius:999px;background:#edf2f9;color:#506580}
  body#royal-blue-app .est-cell[data-tone=custom] .est-cell-badge {background:#d9f0e6;color:#17664f}
  body#royal-blue-app .est-cell[data-dirty=true] .est-cell-badge {background:#fbe7bd;color:#7a4b00}
  body#royal-blue-app .est-static {color:#506580}
  body#royal-blue-app .est-static,body#royal-blue-app .est-static * {white-space:normal !important;overflow-wrap:anywhere}
  body#royal-blue-app .est-static :is(span,a) {display:block;font-size:13px !important;color:#36516f}
  body#royal-blue-app .est-static a {color:#245bba}
  body#royal-blue-app .est-static small {display:block;font-size:12px !important;color:#62758d;margin-top:2px}
  body#royal-blue-app .est-empty {display:flex;gap:14px;align-items:center;padding:22px;color:#2466cf}
  body#royal-blue-app .est-empty p {color:#506580;font-size:13px !important;margin:5px 0 0}
  body#royal-blue-app .est-legend {display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:10px 2px 0;font-size:12.5px !important;color:#506580}
  body#royal-blue-app .est-dot {display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:-6px}
  body#royal-blue-app .est-dot-default {background:#c9d6e8}
  body#royal-blue-app .est-dot-custom {background:#21927c}
  body#royal-blue-app .est-dot-dirty {background:#e59a1a;border-radius:50%}
  body#royal-blue-app .est-links {display:flex;flex-wrap:wrap;gap:6px 20px;margin:8px 2px 0}
  body#royal-blue-app .est-links a {display:inline-flex;align-items:center;gap:6px;font-size:13px !important;color:#245bba}

  /* The editor for the opened cell */
  body#royal-blue-app .est-editor {margin-top:16px;padding:18px 20px;background:#f8fbff;border:1px solid #bcd3f7;border-radius:14px;box-shadow:0 8px 24px #1d4a8a14;scroll-margin-top:90px}
  body#royal-blue-app .est-editor-head {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
  body#royal-blue-app .est-editor-head h4 {margin:2px 0 3px;font-size:18px !important;color:#1f4272}
  body#royal-blue-app .est-editor-head h4:focus {outline:none}
  body#royal-blue-app .est-editor-head p {margin:0;font-size:13px !important;color:#506580;line-height:1.6}
  body#royal-blue-app .est-editor-eyebrow {font-size:12px !important;font-weight:600;color:#245bba;letter-spacing:.2px}
  body#royal-blue-app .est-choices {border:0;padding:0;margin:0 0 12px;min-width:0}
  body#royal-blue-app .est-choices legend {padding:0;margin-bottom:8px;font-size:14px !important;font-weight:600;color:#24446b}
  body#royal-blue-app .est-choice-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  body#royal-blue-app .est-choice {position:relative;display:block;cursor:pointer;min-width:0}
  body#royal-blue-app .est-choice input {position:absolute;top:15px;left:14px;width:18px;height:18px;margin:0;accent-color:#2b65ea;cursor:pointer}
  body#royal-blue-app .est-choice-body {display:block;height:100%;padding:13px 14px 13px 44px;background:#fff;border:1px solid #d5e3f9;border-radius:10px}
  body#royal-blue-app .est-choice-body strong {display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:14px !important;color:#24446b;line-height:1.4}
  body#royal-blue-app .est-choice-body em {font-style:normal;font-size:11.5px !important;font-weight:500;padding:0 7px;border-radius:999px;background:#edf2f9;color:#506580;line-height:1.6}
  body#royal-blue-app .est-choice-body small {display:block;margin-top:5px;font-size:12.5px !important;line-height:1.6;color:#506580}
  body#royal-blue-app .est-choice:hover .est-choice-body {border-color:#96b8f4}
  body#royal-blue-app .est-choice input:checked+.est-choice-body {border-color:#2b65ea;background:#edf4ff;box-shadow:0 0 0 1px #2b65ea}
  body#royal-blue-app .est-choice input:focus-visible+.est-choice-body {outline:3px solid #aac8ff;outline-offset:3px}
  body#royal-blue-app .est-adjust {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:14px;background:#fff;border:1px solid #dbe7fb;border-radius:10px;margin-bottom:12px}
  body#royal-blue-app .est-adjust .field {margin:0}
  body#royal-blue-app .est-result {padding:14px 16px;border-radius:10px;background:#eef8f4;border:1px solid #c4e6da;color:#176548;margin-bottom:12px}
  body#royal-blue-app .est-result-title {display:block;font-size:12.5px !important;font-weight:600;margin-bottom:8px;letter-spacing:.1px}
  body#royal-blue-app .est-result-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:0}
  body#royal-blue-app .est-result-grid>div {padding:10px 12px;background:#fff;border:1px solid #d3eadf;border-radius:8px}
  body#royal-blue-app .est-result-grid dt {font-size:12px !important;color:#506580;margin:0 0 3px}
  body#royal-blue-app .est-result-grid dd {margin:0;font-size:19px !important;font-weight:700;color:#133858;font-variant-numeric:tabular-nums}
  body#royal-blue-app .est-result-grid dd small {display:block;font-size:12px !important;font-weight:400;color:#506580;margin-top:2px}
  body#royal-blue-app .est-after[data-changed=true] {border-color:#7fc4a8;background:#e5f6ee}
  body#royal-blue-app .est-after[data-changed=true] dd {color:#0f6a4c}
  body#royal-blue-app .est-result-note {margin:8px 0 0;font-size:13px !important;line-height:1.6;color:#36516f}
  body#royal-blue-app .est-result-note[data-state=error] {color:#a52d3c}
  body#royal-blue-app .est-advanced {border-top:1px solid #e1eafa;padding-top:10px;margin-top:4px}
  body#royal-blue-app .est-advanced>summary {display:flex;gap:8px;align-items:center;cursor:pointer;font-size:13px !important;color:#245bba;line-height:1.6;list-style:none;min-height:36px}
  body#royal-blue-app .est-advanced>summary>span {font-size:12px !important;color:#62758d;margin-left:4px}
  body#royal-blue-app .est-advanced>summary>svg:last-child {margin-left:auto}
  body#royal-blue-app .est-advanced[open]>summary>svg:last-child {transform:rotate(180deg)}
  body#royal-blue-app .est-advanced>.form-grid {margin-top:12px;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:14px !important}
  body#royal-blue-app .est-copy {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 0;padding-top:12px;border-top:1px solid #e1eafa;font-size:13px !important;color:#36516f}
  body#royal-blue-app .est-copy small {flex-basis:100%;font-size:12.5px !important;color:#17664f;min-height:1em}
  body#royal-blue-app .est-editor-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:14px}

  /* Step 2 */
  body#royal-blue-app .est-apply {margin:26px 0 0;padding:18px;border:1px solid #d5e3f9;border-radius:12px;min-width:0;background:#f9fbff}
  body#royal-blue-app .est-apply legend {display:flex;align-items:center;gap:10px;padding:0 8px;font-size:16px !important;font-weight:600}
  body#royal-blue-app .est-no-changes {margin:0 0 12px;font-size:13px !important;color:#62758d}
  body#royal-blue-app .est-changes-count {margin:0 0 8px;font-size:13px !important;color:#36516f}
  body#royal-blue-app .est-changes {list-style:none;margin:0 0 14px;padding:0;display:grid;gap:6px}
  body#royal-blue-app .est-changes li {display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;padding:8px 12px;background:#fff;border:1px solid #e1eafa;border-radius:8px;font-size:13px !important;color:#36516f}
  body#royal-blue-app .est-changes strong {color:#24446b}
  body#royal-blue-app .est-change-tag {font-size:11.5px !important;padding:0 8px;border-radius:999px;line-height:1.7;background:#e1ecff;color:#1c4aa5}
  body#royal-blue-app .est-changes li[data-kind=added] .est-change-tag {background:#d9f0e6;color:#17664f}
  body#royal-blue-app .est-changes li[data-kind=removed] .est-change-tag {background:#fbe7bd;color:#7a4b00}
  body#royal-blue-app .est-orphans {margin:0 0 14px;padding:12px 14px;border-radius:10px;background:#fff6e5;border:1px solid #f0d9a4;color:#6b4a12;font-size:13px !important}
  body#royal-blue-app .est-orphans ul {margin:8px 0 0;padding-left:18px}
  body#royal-blue-app .est-orphans li {margin:4px 0}
  body#royal-blue-app .est-apply-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
  body#royal-blue-app .est-when {display:grid;gap:8px}
  body#royal-blue-app .est-when input[type=datetime-local]:disabled {display:none}
  body#royal-blue-app .est-label {font-size:13px !important;font-weight:600;color:#24446b}
  body#royal-blue-app .est-radio {display:flex;align-items:flex-start;gap:9px;font-size:13px !important;color:#24446b;cursor:pointer;min-height:32px}
  body#royal-blue-app .est-radio input {margin:3px 0 0;width:17px;height:17px;accent-color:#2b65ea}
  body#royal-blue-app .est-radio small {display:block;font-size:12.5px !important;color:#506580;line-height:1.55;margin-top:2px}
  body#royal-blue-app .est-board .admin-save-area {margin-top:20px}
  body#royal-blue-app .est-save-note {margin:4px 0 14px;font-size:13px !important;line-height:1.65;color:#506580}

  @media(max-width:900px) {
    body#royal-blue-app .est-choice-grid {grid-template-columns:1fr}
    body#royal-blue-app .est-apply-fields {grid-template-columns:1fr}
  }
  @media(max-width:600px) {
    body#royal-blue-app .est-board {padding:16px !important}
    body#royal-blue-app .est-status {flex-wrap:wrap}
    body#royal-blue-app .est-matrix {min-width:640px}
    body#royal-blue-app .est-matrix thead th:first-child {width:130px}
    body#royal-blue-app .est-matrix :is(thead th:first-child,tbody th[scope=row]) {min-width:130px}
    body#royal-blue-app .est-editor {padding:14px}
    body#royal-blue-app .est-adjust,body#royal-blue-app .est-advanced>.form-grid {grid-template-columns:1fr !important}
    body#royal-blue-app .est-advanced>summary>span {display:none}
    body#royal-blue-app .est-editor-actions .btn {flex:1}
  }
}

/* ==== map-consistency.css ==== */
/* Shared Dashboard map; only its surrounding page and canvas height vary. */
:root body#royal-blue-app .shared-observatory-map {min-width:0;box-sizing:border-box}
:root body#royal-blue-app .shared-observatory-map .map-command-grid {display:flex !important;flex-direction:column;min-width:0}
:root body#royal-blue-app .shared-observatory-map .river-canvas {isolation:isolate;min-width:0;width:100%;align-self:stretch !important}
:root body#royal-blue-app .shared-observatory-map .gis-beacon {border:0 !important}
:root body#royal-blue-app .shared-observatory-map :is(.map-alert-rail,.map-focus-strip,.gis-view-coordinate,#map-basemap-description) {display:none !important}
:root body#royal-blue-app .shared-observatory-map .map-floating-tools {top:auto;bottom:34px;right:12px;gap:4px;background:#fffffff5;border:1px solid #dce6f1;border-radius:8px;padding:3px;box-shadow:0 2px 8px #17375110}
:root body#royal-blue-app .shared-observatory-map .map-floating-tools button {background:transparent;border:0;border-radius:5px;box-shadow:none;padding:6px 8px;font-size:11px}
:root body#royal-blue-app .shared-observatory-map .gis-coordinate-state {flex:none}
:root body#royal-blue-app .shared-observatory-map .gis-location-bar small {display:none}
:root body#royal-blue-app .shared-observatory-map .gis-basemap-toolbar {flex-wrap:nowrap;align-items:flex-start}
:root body#royal-blue-app .shared-observatory-map .map-expand-button {display:inline-flex;flex:none;align-items:center;justify-content:center;width:32px;min-height:32px;padding:5px;border:1px solid #dce7fa;border-radius:8px;color:#245bff;background:#f3f8ff;cursor:pointer}
:root body#royal-blue-app .shared-observatory-map .map-expand-button svg {width:17px;height:17px}
:root body#royal-blue-app .shared-observatory-map .map-expand-button[aria-expanded=true] {background:#e6efff;border-color:#245bff}
:root body#royal-blue-app .shared-observatory-map.expanded {position:fixed !important;inset:16px !important;z-index:5000 !important;display:flex !important;flex-direction:column;max-width:none !important;width:auto !important;height:auto !important;overflow:auto}
:root body#royal-blue-app .shared-observatory-map.expanded .map-command-grid {flex:1;min-height:200px}
:root body#royal-blue-app .shared-observatory-map.expanded .river-canvas {flex:1;min-height:200px;height:auto !important}
:root body#royal-blue-app .shared-observatory-map.expanded #geographic-map {position:absolute;inset:0;height:100% !important}
@media(max-width:600px) {
 :root body#royal-blue-app .shared-observatory-map .map-floating-tools {left:10px;right:10px;bottom:30px}
 :root body#royal-blue-app .shared-observatory-map.expanded {inset:8px !important}
}
@media(max-width:760px) {
 .citizen-explore-grid {grid-template-columns:minmax(0,1fr)}
}
@layer readability {
 body#royal-blue-app .shared-observatory-map.expanded .river-canvas {height:auto !important;min-height:200px !important;flex:1 !important}
 body#royal-blue-app .shared-observatory-map.expanded #geographic-map {position:absolute !important;inset:0;height:100% !important}
}
/* GIS point card (26-10-2026): each reading tagged with its own level C0-C4 in the agreed colours (--param-level), so a point at C2 for
   salinity also shows which other readings are at C1-C4. Switch: Quan tri > Ban do > gis_param_levels. */
@layer readability {
 body#royal-blue-app .gis-point-detail .map-popup-readings > .gis-reading-card[data-param-level] {position:relative !important;padding-right:40px !important;border-left:4px solid var(--param-level) !important}
 body#royal-blue-app .gis-point-detail .map-popup-readings > .gis-reading-card[data-param-level]:not([data-param-level="0"]) {background:color-mix(in srgb,var(--param-level) 9%,white) !important;border-color:color-mix(in srgb,var(--param-level) 55%,white) !important;border-left-color:var(--param-level) !important}
 body#royal-blue-app .gis-reading-card .gis-param-level {position:absolute;top:7px;right:7px;min-width:26px;padding:2px 6px;border-radius:999px;background:var(--param-level);color:#fff;font-size:11px;font-weight:800;line-height:1.3;text-align:center;text-shadow:0 1px 1px rgba(0,0,0,.25)}
 body#royal-blue-app .gis-reading-card[data-param-level="1"] .gis-param-level {color:#3d2f00;text-shadow:none}
}

/* GIS point card, reason in labelled lines (27-10-2026): field signal, by the readings (level tag in the agreed colour), what was not counted */
@layer readability {
 body#royal-blue-app .gis-point-detail .gis-reason {display:grid;gap:8px;margin:8px 0 10px !important;padding:0 !important;list-style:none}
 body#royal-blue-app .gis-point-detail .gis-reason-item {display:grid;gap:3px;padding:8px 10px;border:1px solid #e1e9f4;border-radius:10px;background:#f8fbff}
 body#royal-blue-app .gis-point-detail .gis-reason-item.is-field {border-color:#f3c9c9;background:#fff6f6}
 body#royal-blue-app .gis-point-detail .gis-reason-item.is-note {padding:6px 10px;border-style:dashed;background:#fff}
 body#royal-blue-app .gis-point-detail .gis-reason-label {display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;font-weight:800;color:#173e49;text-transform:none}
 body#royal-blue-app .gis-point-detail .gis-reason-label em {padding:1px 7px;border-radius:999px;background:#fff1d6;color:#8a5a00;font-size:11px;font-style:normal;font-weight:700}
 body#royal-blue-app .gis-point-detail .gis-reason-level {padding:1px 7px;border-radius:999px;background:var(--lv);color:#fff;font-size:11px;font-weight:800;text-shadow:0 1px 1px rgba(0,0,0,.25)}
 body#royal-blue-app .gis-point-detail .gis-reason-level[data-level="1"] {color:#3d2f00;text-shadow:none}
 body#royal-blue-app .gis-point-detail .gis-reason-text {font-size:13px;line-height:1.45;color:#33475b;overflow-wrap:anywhere}
 body#royal-blue-app .gis-point-detail .gis-reason-item.is-note .gis-reason-text {font-size:12px;color:#5f7280}
}

/* ==== community-upgrade.css ==== */
/* Resident page upgrade, 08/10/2026.
   Loaded after every other stylesheet. Rules sit in the existing `readability` layer: an !important
   rule in a layer beats an unlayered !important rule, which is how the earlier sizing rules are written.
   Staff pages and the shared map keep their layout; map rules are scoped to .public-observatory-map. */
@layer readability {
  /* 1. The answer to "is the water OK?" leads the page. */
  body#royal-blue-app .citizen-alert-strip {
    gap: 12px 16px !important; min-height: 76px !important; padding: 16px 20px !important;
    border-left: 6px solid var(--signal) !important; border-radius: 12px !important;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--signal) 14%, transparent);
  }
  body#royal-blue-app .citizen-alert-strip > strong {font-size: 20px !important; line-height: 1.35 !important; white-space: normal !important}
  body#royal-blue-app .citizen-alert-strip > p {font-size: 15px !important; line-height: 1.55 !important; color: #2d4660 !important}
  body#royal-blue-app .citizen-alert-icon {width: 40px !important; height: 40px !important; flex: none}
  body#royal-blue-app .citizen-alert-strip > button {
    min-height: 44px !important; padding: 8px 14px !important; font-size: 14px !important; background: #fff !important;
    border: 1px solid color-mix(in srgb, var(--signal) 45%, white) !important; border-radius: 10px !important;
  }

  /* 2. Old readings never look current. */
  body#royal-blue-app .citizen-value.is-stale {background: #f3f5f8 !important; border-style: dashed !important}
  body#royal-blue-app .citizen-value.is-stale :is(strong, .citizen-value-icon) {opacity: .62}
  body#royal-blue-app .citizen-value-note.citizen-stale-flag {color: #7a4b00 !important; font-weight: 650 !important; font-size: 12px !important}
  body#royal-blue-app .citizen-stale-note {
    color: #6b4a12 !important; background: #fff6e0; border-left: 3px solid #e0a030 !important;
    padding: 9px 12px !important; border-radius: 0 8px 8px 0; font-size: 13px !important; line-height: 1.55 !important;
  }
  body#royal-blue-app .citizen-sample-age {display: block !important; margin: 3px 0 0 !important; font-size: 13px !important; font-weight: 650; color: #245b8f}
  body#royal-blue-app .citizen-sample-age.is-stale {color: #8a5200}
  body#royal-blue-app .coastal-live-bar em {font-style: normal; font-weight: 650; color: #fff}
  /* One centred group (time, age, refresh) instead of text on the left and a button on the far right. */
  body#royal-blue-app .coastal-live-bar {justify-content: center !important; flex-wrap: wrap !important; gap: 2px 16px !important; text-align: center}
  body#royal-blue-app .coastal-live-bar > span {flex: 0 1 auto !important; justify-content: center; flex-wrap: wrap; row-gap: 2px; text-align: center}
  body#royal-blue-app .coastal-live-bar button {margin: 0 !important}
  body#royal-blue-app .coastal-live-bar.is-stale {background: #5a3a05d9 !important; color: #ffe6b3 !important; border-top-color: #f0b24a66 !important}
  body#royal-blue-app .coastal-live-bar.is-stale > span > i {background: #ffb84d !important; box-shadow: 0 0 0 3px #ffb84d33 !important}

  /* 3. Small print and touch targets on a phone held in one hand. */
  body#royal-blue-app .citizen-header-search {min-width: 44px !important; min-height: 44px !important}
  body#royal-blue-app .citizen-staff {min-height: 44px !important}
  body#royal-blue-app .citizen-staff-short {font-size: 12px !important}
  body#royal-blue-app .citizen-header nav button {min-height: 44px}
  body#royal-blue-app .coastal-live-bar button {min-height: 44px !important; padding: 8px 12px !important}
  body#royal-blue-app .coastal-point-label em {font-size: 10px !important; padding: 1px 5px !important}
  body#royal-blue-app .coastal-scene-footer {font-size: 12px !important}
  body#royal-blue-app .coastal-scene-footer a {display: inline-flex; align-items: center; min-height: 32px}
  body#royal-blue-app .coastal-sea-label {font-size: 12px !important}
  body#royal-blue-app .citizen-points > summary > span {font-size: 12px !important; color: #506580 !important}
  @media (pointer: coarse), (max-width: 760px) {
    body#royal-blue-app .public-observatory-map .leaflet-control-zoom a {width: 36px !important; height: 36px !important; line-height: 36px !important}
    body#royal-blue-app .public-observatory-map .map-expand-button {width: 40px !important; min-height: 40px !important}
  }

  /* 4. Map controls stop covering the map on phones: they sit in a row under it. */
  @media (max-width: 760px) {
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .river-canvas {height: auto !important; min-height: 0 !important; overflow: visible !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools {
      position: static !important; left: auto !important; right: auto !important; bottom: auto !important; top: auto !important;
      width: auto !important; margin: 8px 0 0 !important; flex-wrap: nowrap !important; gap: 0 !important;
      justify-content: space-between; overflow-x: auto;
    }
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools button {min-height: 44px !important; padding: 6px 5px !important; white-space: nowrap}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-quick-rotation {gap: 0 !important; flex-wrap: nowrap !important}
  }

  /* Very narrow phones: the sample bar stacks its age line, and the map buttons wrap instead of scrolling. */
  @media (max-width: 480px) {
    body#royal-blue-app .coastal-live-bar {flex-wrap: wrap !important; padding: 8px 16px !important; gap: 2px 12px !important}
    body#royal-blue-app .coastal-live-bar em {flex-basis: 100%; padding-left: 0}
  }
  @media (max-width: 360px) {
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools {flex-wrap: wrap !important; justify-content: center; overflow-x: visible}
  }

  /* The point list summary wraps under its title instead of breaking the title. */
  @media (max-width: 560px) {
    body#royal-blue-app .citizen-points > summary {flex-wrap: wrap !important; row-gap: 2px}
    body#royal-blue-app .citizen-points > summary > svg:last-child {order: 2; margin-left: auto !important}
    body#royal-blue-app .citizen-points > summary > span {order: 3; flex: 1 1 100%; margin-left: 27px !important}
  }

  /* 5. Narrow phones keep the status card readable. */
  @media (max-width: 640px) {
    body#royal-blue-app .citizen-alert-strip {flex-wrap: wrap !important; padding: 14px 16px !important}
    body#royal-blue-app .citizen-alert-strip > strong {font-size: 18px !important; flex: 1 1 calc(100% - 60px)}
    body#royal-blue-app .citizen-alert-strip > i {display: none !important}
    body#royal-blue-app .citizen-alert-strip > .citizen-alert-icon {order: 0 !important}
    body#royal-blue-app .citizen-alert-strip > strong {order: 1 !important}
    body#royal-blue-app .citizen-alert-strip > p {flex: 1 1 100% !important; order: 2 !important}
    body#royal-blue-app .citizen-alert-strip > button {flex: 1 1 100% !important; justify-content: center; order: 3 !important}
  }

  /* 6. The map on a phone: taller (every point fits with room around it), the zoom buttons stand in a column so the layer switch never
        lies on them, the compass sits under them, the bottom row has even cells and the credit line wraps instead of being cut. */
  @media (max-width: 760px) {
    :root body#royal-blue-app .public-observatory-map:not(.expanded) #geographic-map {height: clamp(470px, 68vh, 640px) !important}
    @supports (height: 1svh) {
      :root body#royal-blue-app .public-observatory-map:not(.expanded) #geographic-map {height: clamp(470px, 68svh, 640px) !important}
    }
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .leaflet-control-zoom {display: grid !important; grid-template-columns: 38px; width: 38px !important; height: auto !important; margin: 10px 0 0 10px !important; border: 0 !important; border-radius: 12px !important; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(20, 50, 100, .18) !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .leaflet-control-zoom a {position: relative !important; float: none !important; width: 38px !important; height: 38px !important; margin: 0 !important; line-height: 38px !important; border: 0 !important; border-radius: 0 !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .leaflet-control-zoom a + a {border-top: 1px solid #dce6f1 !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .river-quality-control {left: 58px !important; top: 10px !important; width: auto !important; max-width: calc(100% - 68px) !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-compass {top: 98px !important; left: 10px !important; right: auto !important; width: 38px !important; height: 38px !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .leaflet-control-attribution {max-width: calc(100% - 100px) !important; text-align: right; line-height: 1.3 !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-interface-credit {display: block !important; white-space: normal !important}
    /* the names written on the map lie behind the points, never over them */
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .atlas-place-label,
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .atlas-coastal-label,
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .gis-sea-name {z-index: 1 !important; pointer-events: none}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .atlas-place-label {font-size: 10px !important; opacity: .8}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .atlas-coastal-label {font-size: 11px !important; opacity: .75}
    /* bottom: Phao | Tất cả on the first row, the four rotation buttons on the second, every cell of even size */
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools {display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px !important; padding: 6px !important; overflow: visible !important; justify-content: stretch !important; align-items: stretch}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools > button, :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-quick-rotation button {justify-content: center; min-width: 0; padding: 6px 4px !important; border: 1px solid #d6e2f1 !important; border-radius: 9px !important; background: #f4f8fd !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-quick-rotation {display: grid !important; grid-column: 1 / -1; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.6fr) 44px; gap: 6px !important; min-width: 0; padding-top: 6px; border-top: 1px solid #dce6f1}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-quick-rotation button {min-width: 0; justify-content: center; padding: 6px 2px !important}
    /* the colour key under the map: two even columns instead of three and one */
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-level-legend {display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px 12px !important}
  }

  /* 7. The + and − of the zoom buttons are drawn, not typed: a character sits at a different height in every font and browser (Chrome on iOS put
        them low and uneven), two bars always sit exactly in the middle of the button. */
  @media (max-width: 760px), (pointer: coarse) {
    body#royal-blue-app .leaflet-control-zoom a {position: relative !important; display: block; padding: 0 !important; font-size: 0 !important; line-height: 0 !important; text-indent: 0 !important; color: #17406e}
    body#royal-blue-app .leaflet-control-zoom a > span {display: none !important}
    body#royal-blue-app .leaflet-control-zoom a::before, body#royal-blue-app .leaflet-control-zoom a::after {content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: 0; border-radius: 1px; background: currentColor; transform: translate(-50%, -50%)}
    body#royal-blue-app .leaflet-control-zoom a.leaflet-control-zoom-out::after {display: none}
    body#royal-blue-app .leaflet-control-zoom a.leaflet-control-zoom-in::after {transform: translate(-50%, -50%) rotate(90deg)}
    body#royal-blue-app .leaflet-control-zoom a.leaflet-disabled {color: #a5b4c8; cursor: default}
  }

  /* 8. The list of map styles (Ven biển, Thủy văn, Nền tối, Vệ tinh) opens over everything under it: the layer bar, the map and its controls. */
  :root body#royal-blue-app .shared-observatory-map .map-topbar {position: relative; z-index: 60}
  :root body#royal-blue-app .shared-observatory-map .gis-lens {position: relative; z-index: 1}
  :root body#royal-blue-app .shared-observatory-map .map-basemap-select[open] {position: relative; z-index: 61}
  :root body#royal-blue-app .shared-observatory-map .map-basemap-options {z-index: 62}

  /* 8b. Photo credit under the resident banner: the long wording stays on desktop, a phone gets one short line (credit and OSM link kept). */
  body#royal-blue-app .coastal-scene-footer .csf-short {display: none !important}
  @media (max-width: 760px) {
    body#royal-blue-app .coastal-scene-footer {padding: 4px 10px !important; gap: 8px !important; font-size: 11px !important; line-height: 1.3 !important}
    body#royal-blue-app .coastal-scene-footer .csf-full {display: none !important}
    body#royal-blue-app .coastal-scene-footer .csf-short {display: inline !important; min-width: 0}
    body#royal-blue-app .coastal-scene-footer a {min-height: 24px !important}
  }

  /* 8d. Phone: the title strip of the banner photo sits above the photo instead of on it, so it never hides a pin (TG11). */
  @media (max-width: 760px) {
    body#royal-blue-app .coastal-scene-heading {position: static !important; padding: 9px 12px !important; background: #002f4b !important}
  }

  /* 8f. The brand is already the footer title, so the phone copyright line is written without it (no capitals mixed into the sentence). */
  body#royal-blue-app .citizen-footer-credits .cf-short {display: none !important}
  @media (max-width: 640px) {
    body#royal-blue-app .citizen-footer-credits .cf-full {display: none !important}
    body#royal-blue-app .citizen-footer-credits .cf-short {display: inline !important}
  }

  /* 8g. TEMPORARY (21/10/2026, owner request): the "Bản đồ nền · OpenStreetMap" line of the footer is hidden. The map keeps its own credit. Delete this rule to show it again. */
  body#royal-blue-app .citizen-footer-credits > span:last-child {display: none !important}

  /* 8e. Phone footer (21/10/2026): name on top, two even buttons, one centred credit block under a hairline. */
  @media (max-width: 640px) {
    :root body#royal-blue-app .citizen-dashboard .citizen-footer-expanded {grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; margin-top: 18px !important; padding: 20px 2px 16px !important}
    :root body#royal-blue-app .citizen-dashboard .citizen-footer-identity > strong {display: block; font-size: 15px !important; letter-spacing: .4px; line-height: 1.2}
    :root body#royal-blue-app .citizen-dashboard .citizen-footer-identity p {margin: 3px 0 0 !important; font-size: 13px !important; line-height: 1.4 !important; color: #5a7391}
    :root body#royal-blue-app .citizen-dashboard .citizen-footer-links {display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important}
    :root body#royal-blue-app .citizen-dashboard .citizen-footer-links button {display: inline-flex; align-items: center; justify-content: center; min-width: 0; height: 42px; min-height: 42px !important; padding: 0 8px !important; margin: 0 !important; border: 1px solid #cddcee !important; border-radius: 10px !important; background: #fff !important; color: #17406e !important; font-size: 13px !important; font-weight: 600; line-height: 1.2; text-align: center}
    :root body#royal-blue-app .citizen-dashboard .citizen-footer-credits {display: flex !important; flex-direction: column !important; align-items: center; gap: 3px !important; padding-top: 14px; border-top: 1px solid #dbe6f2; text-align: center; font-size: 12px !important; line-height: 1.5 !important; color: #6b819b}
    :root body#royal-blue-app .citizen-dashboard .citizen-footer-credits a {color: #1f5fa8; text-underline-offset: 2px}
  }

  /* 8c. Phone: the sample bar and the status card take less height (21/10/2026). Desktop untouched. */
  @media (max-width: 640px) {
    :root body#royal-blue-app .coastal-live-bar {display: flex !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; padding: 8px 14px !important; text-align: left}
    :root body#royal-blue-app .coastal-live-bar > span {display: block !important; flex: 1 1 auto; min-width: 0; position: relative; padding-left: 16px !important; line-height: 1.35 !important}
    :root body#royal-blue-app .coastal-live-bar > span > i {position: absolute; left: 0; top: .45em; display: block}
    :root body#royal-blue-app .coastal-live-bar em {display: block !important; flex: none !important; padding: 0 !important; margin: 0 !important; font-size: 12px !important}
    :root body#royal-blue-app .coastal-live-bar > button {flex: none !important; width: 40px !important; min-width: 40px !important; height: 40px !important; min-height: 40px !important; padding: 0 !important; font-size: 0 !important; justify-content: center; gap: 0 !important}
    :root body#royal-blue-app .coastal-live-bar > button svg {width: 20px !important; height: 20px !important}

    :root body#royal-blue-app .citizen-alert-strip {gap: 4px 10px !important; padding: 10px 14px !important; min-height: 0 !important; margin-bottom: 10px !important}
    :root body#royal-blue-app .citizen-alert-strip > strong {font-size: 17px !important; flex: 1 1 calc(100% - 50px) !important}
    :root body#royal-blue-app .citizen-alert-strip > p {font-size: 14px !important; line-height: 1.4 !important; margin: 0 !important}
    :root body#royal-blue-app .citizen-alert-strip > button {flex: 1 1 100% !important; min-height: 38px !important; height: 38px !important; padding: 0 12px !important; margin-top: 2px !important}
  }

  /* 9. Phone map, tidied (21/10/2026): one even grid of controls. Desktop (> 760px) is untouched.
        - header: the map-style picker fills the row, the enlarge button sits at its end, same height;
        - over the map: the two layer switches share the card width, the colour scale spans it;
        - under the map: Phao | Tất cả, then four equal buttons (↶ Bắc Theo sông ↷), all 44px high, same gap and corner radius. */
  @media (max-width: 760px) {
    :root body#royal-blue-app .public-observatory-map.shared-observatory-map.gis-beacon-map:not(.expanded) .map-topbar .gis-control-row {display: grid !important; grid-template-columns: minmax(0, 1fr) 44px; align-items: stretch !important; gap: 8px !important; flex: 1 1 100% !important; width: 100% !important; max-width: none !important; margin: 0 !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-topbar {gap: 8px !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .gis-control-row .gis-basemap-toolbar {display: contents !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .gis-control-row .map-basemap-select {display: block !important; width: 100% !important; min-width: 0}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .gis-control-row .map-basemap-select > summary {width: 100% !important; box-sizing: border-box !important; height: 44px !important; min-height: 44px !important; max-height: 44px !important; justify-content: flex-start}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .gis-control-row .map-expand-button {grid-column: 2; width: 44px !important; min-width: 44px !important; height: 44px !important; min-height: 44px !important; max-height: 44px !important; margin: 0 !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .gis-control-row .gis-basemap-switch,
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .gis-control-row #map-basemap-description {display: none !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .gis-lens {margin: 8px 0 10px !important}

    :root body#royal-blue-app .public-observatory-map:not(.expanded) .river-quality-control {box-sizing: border-box; width: min(228px, calc(100% - 68px)) !important; max-width: none !important; padding: 6px !important; border-radius: 12px !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .river-quality-switches {display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .river-quality-switches button {display: inline-flex !important; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 32px; padding: 0 4px !important; white-space: nowrap}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .river-quality-scale {display: grid !important; grid-template-columns: auto minmax(20px, 1fr) auto; align-items: center; gap: 6px !important; margin-top: 6px !important; padding: 0 2px; font-size: 10px !important; line-height: 1}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .river-quality-scale > i {width: auto !important; height: 6px !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .river-quality-scale > b {display: none !important}

    /* the zoom column and the layer card share one top edge and one height (70px), on the resident and the staff map alike */
    :root body#royal-blue-app .shared-observatory-map:not(.expanded) .leaflet-control-zoom {display: grid !important; grid-template-columns: 38px; width: 38px !important; height: 70px !important; margin: 10px 0 0 10px !important; border: 0 !important; border-radius: 12px !important; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(20, 50, 100, .18) !important}
    :root body#royal-blue-app .shared-observatory-map:not(.expanded) .leaflet-control-zoom a {position: relative !important; display: block !important; float: none !important; width: 38px !important; height: 35px !important; margin: 0 !important; line-height: 35px !important; border: 0 !important; border-radius: 0 !important}
    :root body#royal-blue-app .shared-observatory-map:not(.expanded) .leaflet-control-zoom a + a {border-top: 1px solid #dce6f1 !important}
    :root body#royal-blue-app .shared-observatory-map:not(.expanded) .river-quality-control {display: flex !important; flex-direction: column; justify-content: space-between; box-sizing: border-box; left: 58px !important; top: 10px !important; height: 70px !important; width: min(228px, calc(100% - 68px)) !important; max-width: none !important; padding: 6px !important; border-radius: 12px !important}
    :root body#royal-blue-app .shared-observatory-map:not(.expanded) .river-quality-switches {display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px !important}
    :root body#royal-blue-app .shared-observatory-map:not(.expanded) .river-quality-switches button {display: inline-flex !important; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 30px; padding: 0 4px !important; white-space: nowrap}
    :root body#royal-blue-app .shared-observatory-map:not(.expanded) .river-quality-scale {display: grid !important; grid-template-columns: auto minmax(20px, 1fr) auto; align-items: center; gap: 6px !important; margin: 0 !important; padding: 0 2px; font-size: 10px !important; line-height: 1}
    :root body#royal-blue-app .shared-observatory-map:not(.expanded) .river-quality-scale > i {width: auto !important; height: 6px !important}
    :root body#royal-blue-app .shared-observatory-map:not(.expanded) .river-quality-scale > b {display: none !important}
    :root body#royal-blue-app .shared-observatory-map:not(.expanded) .map-compass {top: 90px !important; left: 10px !important; right: auto !important; width: 38px !important; height: 38px !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools {grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px !important; padding: 8px !important; border-radius: 12px !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools > button {grid-column: span 2; height: 44px; min-height: 44px !important; padding: 0 8px !important; gap: 6px}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-quick-rotation {display: contents !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-quick-rotation button {grid-column: auto; height: 44px; min-height: 44px !important; padding: 0 2px !important; font-size: 13px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-quick-rotation button[data-map-turn] {font-size: 26px !important; font-weight: 400 !important; line-height: 1 !important; color: #17406e !important}
  }
}

/* Map credits (geographic-map.js): the OpenStreetMap / Esri sources stay on every map after the name of the system.
   On a phone the sources alone are kept, they are the part that has to be there. In the readability layer like the rule it overrides. */
@layer readability {
  :root body#royal-blue-app .leaflet-control-attribution .map-provider-sources {font-size: 10px; line-height: 1.35}
  :root body#royal-blue-app .leaflet-control-attribution .map-provider-sources::before {content: " · "}
  @media (max-width: 760px) {
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .leaflet-control-attribution .map-interface-credit,
    :root body#royal-blue-app .leaflet-control-attribution .map-interface-credit {display: none !important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .leaflet-control-attribution,
    :root body#royal-blue-app .leaflet-control-attribution {width: max-content !important; max-width: calc(100vw - 120px) !important}
    :root body#royal-blue-app .leaflet-control-attribution .map-provider-sources::before {content: none}
  }
}

/* ==== scenario-update.css ==== */
/* Updating the interpolation source from a newer Excel file: the four-step dialog and the warning above the version list.
   Rules sit in the readability layer like the rest of the administration styles. */
@layer readability {
  body#royal-blue-app .notice.amber {display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;padding:12px 16px;border:1px solid #f0dcae;border-radius:12px;background:#fff8e8;color:#6f4a05;line-height:1.6}
  body#royal-blue-app .notice.amber svg {flex:none;margin-top:2px;color:#b87500}

  body#royal-blue-app .su {display:grid;gap:16px;min-width:0}
  body#royal-blue-app .su>*,body#royal-blue-app .su-body,body#royal-blue-app .su-body>* {min-width:0;max-width:100%}
  body#royal-blue-app .su [hidden] {display:none !important}
  body#royal-blue-app .su :is(h3,p,ol,ul,fieldset) {margin-top:0}
  body#royal-blue-app .su h3 {margin:0 0 6px;font-size:18px !important;color:#1f3f6b}
  body#royal-blue-app .su h3:focus-visible {outline:3px solid #aac8ff;outline-offset:3px;border-radius:6px}
  body#royal-blue-app .su-lead {margin:0 0 14px;color:#36516f;font-size:14px !important;line-height:1.7}
  body#royal-blue-app .su-small {margin:10px 0 0;color:#506580;font-size:13px !important;line-height:1.6}

  /* The set in use */
  body#royal-blue-app .su-context {display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:12px 14px;border:1px solid #d5e3f9;border-radius:12px;background:#f5f9ff}
  body#royal-blue-app .su-context>div {flex:1 1 220px;min-width:0}
  body#royal-blue-app .su-context strong {display:block;font-size:15px !important;color:#1f3f6b}
  body#royal-blue-app .su-context small {display:block;margin-top:2px;font-size:13px !important;color:#506580}
  body#royal-blue-app .su-context .su-note {flex:1 1 100%;margin:0}
  body#royal-blue-app .su-mode {flex:none;padding:3px 11px;border-radius:999px;background:#175adb;color:#fff;font-size:12px !important;font-weight:700;letter-spacing:.04em}

  /* Steps */
  body#royal-blue-app .su-steps {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;list-style:none;margin:0;padding:0}
  body#royal-blue-app .su-steps li {display:flex;align-items:center;gap:8px;min-width:0;padding:8px 10px;border-radius:10px;background:#f2f6fc;color:#62758d;font-size:13px !important;line-height:1.3}
  body#royal-blue-app .su-steps li span {display:inline-grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:#dde6f3;color:#4b6384;font-size:12px;font-weight:700}
  body#royal-blue-app .su-steps li.done {background:#eef9f5;color:#17664f}
  body#royal-blue-app .su-steps li.done span {background:#c9eadc;color:#17664f}
  body#royal-blue-app .su-steps li[aria-current=step] {background:#e6efff;color:#1f4a9a;font-weight:600;box-shadow:inset 0 0 0 2px #b9d0fb}
  body#royal-blue-app .su-steps li[aria-current=step] span {background:#175adb;color:#fff}

  /* Choosing the file */
  body#royal-blue-app .su-drop {position:relative;display:grid;justify-items:center;gap:4px;padding:26px 16px;border:2px dashed #a9c2ec;border-radius:14px;background:#f8fbff;color:#36516f;text-align:center;cursor:pointer}
  body#royal-blue-app .su-drop:hover,body#royal-blue-app .su-drop.over {border-color:#2b65ea;background:#edf4ff}
  body#royal-blue-app .su-drop:focus-within {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .su-drop input {position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
  body#royal-blue-app .su-drop-icon {color:#3d73bc}
  body#royal-blue-app .su-drop-title {font-size:15px !important;font-weight:600;color:#1f3f6b}
  body#royal-blue-app .su-drop-file {font-size:13px !important;color:#506580;overflow-wrap:anywhere}
  body#royal-blue-app .su-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:14px}
  body#royal-blue-app .su-help {margin-top:14px;padding:2px 14px 12px;border:1px solid #e1eafa;border-radius:12px;background:#fbfdff}
  body#royal-blue-app .su-help>summary {display:flex;align-items:center;min-height:42px;color:#245bba;font-size:14px !important;cursor:pointer}
  body#royal-blue-app .su-help ol {margin:0 0 10px;padding-left:22px;color:#36516f;font-size:13.5px !important;line-height:1.75}

  /* Messages */
  body#royal-blue-app .su-note {display:flex;align-items:flex-start;gap:9px;margin:12px 0 0;padding:10px 14px;border:1px solid #d5e5fa;border-radius:10px;background:#f0f7ff;color:#24446b;font-size:13.5px !important;line-height:1.6}
  body#royal-blue-app .su-note svg {flex:none;margin-top:2px}
  body#royal-blue-app .su-note>span {min-width:0;overflow-wrap:anywhere}
  body#royal-blue-app .su-note.ok {border-color:#c4e6da;background:#eef9f5;color:#17664f}
  body#royal-blue-app .su-note.warn {border-color:#f0dcae;background:#fff8e8;color:#6f4a05}
  body#royal-blue-app .su-note.bad {border-color:#f1c6c1;background:#fff3f2;color:#8f2a24}
  body#royal-blue-app .su-note.info {border-color:#d5e5fa;background:#f0f7ff}
  body#royal-blue-app .su-inline {display:inline-flex;align-items:center;gap:6px;margin-left:6px;font-weight:600;white-space:nowrap}
  body#royal-blue-app .su-hints {margin:12px 0;padding:10px 16px 10px 34px;border-radius:10px;background:#f7faff;border:1px solid #e1eafa;color:#36516f;font-size:13.5px !important;line-height:1.7}

  /* Tables */
  body#royal-blue-app .su-table {max-height:320px;overflow:auto;margin:10px 0 0;border:1px solid #d5e3f9;border-radius:12px;background:#fff}
  body#royal-blue-app .su-table:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .su-table table {width:100%;border-collapse:separate;border-spacing:0;min-width:520px}
  body#royal-blue-app .su-table :is(th,td) {padding:8px 12px;text-align:left;vertical-align:top;white-space:normal;overflow-wrap:anywhere;border-bottom:1px solid #e6eefb;font-size:13px !important;line-height:1.5;color:#2c4766}
  body#royal-blue-app .su-table thead th {position:sticky;top:0;z-index:1;background:#f1f6ff;color:#24446b;font-weight:600}
  body#royal-blue-app .su-table tbody tr:last-child :is(th,td) {border-bottom:0}
  body#royal-blue-app .su-table code {padding:1px 6px;border-radius:5px;background:#eaf1fc;color:#1f4a9a;font-size:12.5px;white-space:nowrap}
  body#royal-blue-app .su-changes {margin-top:12px}
  body#royal-blue-app .su-changes>summary {min-height:40px;display:flex;align-items:center;color:#245bba;font-size:14px !important;cursor:pointer}

  /* How the file differs */
  body#royal-blue-app .su-tiles {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
  body#royal-blue-app .su-tile {display:grid;gap:2px;align-content:start;padding:12px 14px;border:1px solid #dbe7fb;border-radius:12px;background:#fff}
  body#royal-blue-app .su-tile strong {font-size:26px !important;line-height:1.15;color:#133858;font-variant-numeric:tabular-nums}
  body#royal-blue-app .su-tile span {font-size:13px !important;color:#36516f;line-height:1.4}
  body#royal-blue-app .su-tile small {font-size:12px !important;color:#62758d;line-height:1.4;overflow-wrap:anywhere}
  body#royal-blue-app .su-tile.good {border-color:#c4e6da;background:#f4fbf8}
  body#royal-blue-app .su-tile.good strong {color:#17664f}
  body#royal-blue-app .su-tile.attention {border-color:#f0dcae;background:#fffaf0}
  body#royal-blue-app .su-tile.attention strong {color:#8a5a00}
  body#royal-blue-app .su-tile.warn {border-color:#f1c6c1;background:#fff6f5}
  body#royal-blue-app .su-tile.warn strong {color:#9b2c26}
  body#royal-blue-app .su-tile.quiet strong {color:#506580}

  /* Choosing how to import */
  body#royal-blue-app .su-modes {display:grid;gap:10px;margin:14px 0 0;padding:0;border:0;min-width:0}
  body#royal-blue-app .su .su-modes .su-legend {padding:0;margin-bottom:8px;font-size:15px !important;font-weight:600;color:#1f3f6b}
  body#royal-blue-app .su-mode-card {display:grid;grid-template-columns:22px minmax(0,1fr);column-gap:10px;row-gap:3px;align-items:start;padding:12px 14px;border:1px solid #dbe7fb;border-radius:12px;background:#fff;cursor:pointer}
  body#royal-blue-app .su-mode-card.single {grid-template-columns:minmax(0,1fr);cursor:default}
  body#royal-blue-app .su-mode-card:hover {border-color:#96b8f4;background:#f8fbff}
  body#royal-blue-app .su-mode-card.selected {border-color:#2b65ea;background:#edf4ff;box-shadow:0 0 0 2px #cfe0ff}
  body#royal-blue-app .su-mode-card:focus-within {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .su-mode-card input {grid-row:1 / span 3;width:18px;height:18px;margin:3px 0 0}
  body#royal-blue-app .su-mode-name {font-size:15px !important;font-weight:600;color:#1f3f6b}
  body#royal-blue-app .su-mode-text {font-size:13px !important;line-height:1.6;color:#36516f}
  body#royal-blue-app .su-mode-result {font-size:13px !important;color:#24446b;font-variant-numeric:tabular-nums}
  body#royal-blue-app .su-badge {margin-left:6px;padding:1px 8px;border-radius:999px;background:#d9f0e6;color:#17664f;font-size:11.5px;font-style:normal;font-weight:600;vertical-align:middle}
  body#royal-blue-app .su-lost {color:#9b2c26}
  body#royal-blue-app .su-check {display:flex;align-items:flex-start;gap:10px;margin:14px 0 0;padding:10px 14px;border:1px solid #e1eafa;border-radius:12px;background:#fbfdff;cursor:pointer}
  body#royal-blue-app .su-check input {width:18px;height:18px;margin-top:3px;flex:none}
  body#royal-blue-app .su-check small {display:block;margin-top:2px;font-size:12.5px !important;line-height:1.55;color:#506580}
  body#royal-blue-app .su-fields {display:grid;gap:6px;margin-top:16px}
  body#royal-blue-app .su-fields label {font-size:14px !important;font-weight:600;color:#24446b}
  body#royal-blue-app .su-fields small {margin-bottom:8px;font-size:12.5px !important;color:#62758d}
  body#royal-blue-app .su-fields :is(input,textarea) {width:100%;box-sizing:border-box}
  body#royal-blue-app .su-next {margin:12px 0;padding:12px 18px 12px 36px;border:1px solid #e1eafa;border-radius:12px;background:#f7faff;color:#36516f;font-size:14px !important;line-height:1.8}

  /* The list of sets on the Kịch bản mô hình page: the set in use in full, those waiting, old ones folded */
  body#royal-blue-app :is(.sv-active,.sv-pending,.sv-empty,.sv-fold,.sv-history) {min-width:0}
  body#royal-blue-app .sv-active .card-title {margin-bottom:6px}
  body#royal-blue-app .sv-ident {display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 14px;margin:0 0 14px}
  body#royal-blue-app .sv-code {font-size:22px !important;font-weight:700;line-height:1.3;color:#133858;overflow-wrap:anywhere}
  body#royal-blue-app .sv-desc {margin:0;color:#36516f;font-size:14px !important;line-height:1.5;overflow-wrap:anywhere}
  body#royal-blue-app .sv-lead {margin:6px 0 0;color:#36516f;font-size:14px !important;line-height:1.7}
  body#royal-blue-app .sv-facts {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,.8fr);gap:10px;margin:0 0 12px}
  body#royal-blue-app .sv-facts>div {padding:10px 12px;border:1px solid #dbe7fb;border-radius:12px;background:#f8fbff;min-width:0}
  body#royal-blue-app .sv-facts dt {margin:0;color:#506580;font-size:13px !important;line-height:1.4}
  body#royal-blue-app .sv-facts dd {margin:2px 0 0;font-size:18px !important;font-weight:700;line-height:1.35;color:#133858;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
  body#royal-blue-app .sv-facts dd span {white-space:nowrap}
  body#royal-blue-app .sv-day {margin:0 0 10px;color:#36516f;font-size:13.5px !important;line-height:1.6}
  body#royal-blue-app .sv-rules {margin:0 0 12px;border:1px solid #e1eafa;border-radius:12px;background:#fbfdff}
  body#royal-blue-app .sv-rules>div {display:grid;grid-template-columns:minmax(150px,34%) minmax(0,1fr);gap:4px 14px;padding:10px 14px}
  body#royal-blue-app .sv-rules>div+div {border-top:1px solid #e6eefb}
  body#royal-blue-app .sv-rules dt {margin:0;color:#506580;font-size:13px !important;line-height:1.5}
  body#royal-blue-app .sv-rules dd {margin:0;min-width:0}
  body#royal-blue-app .sv-rules dd b {display:block;color:#1f3f6b;font-size:14px !important;line-height:1.5;overflow-wrap:anywhere}
  body#royal-blue-app .sv-rules dd small {display:block;margin-top:2px;color:#62758d;font-size:13px !important;line-height:1.55}
  body#royal-blue-app .sv-form {display:grid;gap:12px;margin:0 0 12px;padding:14px;border:1px solid #e1eafa;border-radius:12px;background:#fbfdff}
  body#royal-blue-app .sv-field {display:grid;gap:4px;min-width:0}
  body#royal-blue-app .sv-field label {font-size:14px !important;color:#1f3f6b}
  body#royal-blue-app .sv-field small {color:#62758d;font-size:13px !important;line-height:1.55}
  body#royal-blue-app .sv-field select,body#royal-blue-app .sv-field input:not([type=checkbox]) {width:100%;max-width:420px;box-sizing:border-box}
  body#royal-blue-app .sv-check {display:flex;align-items:flex-start;gap:8px;cursor:pointer}
  body#royal-blue-app .sv-check input {width:18px;height:18px;margin-top:3px;flex:none}
  body#royal-blue-app .sv-error {margin:0;padding:8px 12px;border:1px solid #f1c6c1;border-radius:10px;background:#fff3f2;color:#8f2a24;font-size:13.5px !important}
  body#royal-blue-app .sv-more {margin:0 0 12px}
  body#royal-blue-app .sv-more>summary {min-height:40px;display:flex;align-items:center;gap:8px;color:#245bba;font-size:14px !important;cursor:pointer;list-style:none}
  body#royal-blue-app .sv-more>summary::-webkit-details-marker {display:none}
  body#royal-blue-app .sv-more>summary::after {content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .15s}
  body#royal-blue-app .sv-more[open]>summary::after {transform:rotate(-135deg)}
  body#royal-blue-app .sv-more p {margin:4px 0 8px;color:#36516f;font-size:13px !important;line-height:1.65;overflow-wrap:anywhere}
  body#royal-blue-app .sv-actions {display:flex;flex-wrap:wrap;gap:8px}
  body#royal-blue-app .sv-hint {margin:10px 0 0;color:#62758d;font-size:13px !important;line-height:1.6}
  body#royal-blue-app .sv-list {list-style:none;margin:0;padding:0;display:grid;gap:10px}
  body#royal-blue-app .sv-row {display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 16px;padding:12px 14px;border:1px solid #e1eafa;border-radius:12px;background:#fbfdff}
  body#royal-blue-app .sv-row[data-status=draft],body#royal-blue-app .sv-row[data-status=reviewed],body#royal-blue-app .sv-row[data-status=approved] {border-color:#f0dcae;background:#fffaf0}
  body#royal-blue-app .sv-row-main {flex:1 1 260px;min-width:0}
  body#royal-blue-app .sv-row-title {display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
  body#royal-blue-app .sv-row .sv-code {font-size:16px !important}
  body#royal-blue-app .sv-row p {margin:3px 0 0}
  body#royal-blue-app .sv-meta {color:#506580;font-size:13px !important;line-height:1.5}
  body#royal-blue-app .sv-next {color:#245bba;font-size:13px !important;font-weight:600}
  body#royal-blue-app .sv-row-actions {display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px}
  body#royal-blue-app .sv-chip {padding:1px 9px;border-radius:999px;font-size:12px !important;line-height:1.6;font-weight:600}
  body#royal-blue-app .sv-chip.same {background:#e3f2fb;color:#1f5f8a}
  body#royal-blue-app .sv-chip.mode {background:#fff1cf;color:#7a4b00}
  body#royal-blue-app details.card:is(.sv-fold,.sv-history) {padding:0 !important}
  body#royal-blue-app :is(.sv-fold,.sv-history)>summary {display:flex;align-items:center;gap:10px;min-height:52px;padding:12px 18px;list-style:none;cursor:pointer;color:#1f3f6b}
  body#royal-blue-app :is(.sv-fold,.sv-history)>summary::-webkit-details-marker {display:none}
  body#royal-blue-app :is(.sv-fold,.sv-history)>summary::after {content:"";flex:none;width:8px;height:8px;margin-left:auto;border-right:2px solid #6c82a0;border-bottom:2px solid #6c82a0;transform:rotate(45deg);transition:transform .15s}
  body#royal-blue-app :is(.sv-fold,.sv-history)[open]>summary::after {transform:rotate(-135deg)}
  body#royal-blue-app :is(.sv-fold,.sv-history)>summary:focus-visible {outline:3px solid #aac8ff;outline-offset:-3px;border-radius:14px}
  body#royal-blue-app :is(.sv-fold,.sv-history)>summary small {color:#62758d;font-size:13px !important;white-space:nowrap}
  body#royal-blue-app .sv-fold-title {font-size:16px !important;font-weight:600}
  body#royal-blue-app :is(.sv-fold,.sv-history)[open]>summary {border-bottom:1px solid #e6eefb}
  body#royal-blue-app .sv-history>.sv-list {padding:14px 18px 18px}
  body#royal-blue-app .sv-fold>.table-wrap {margin:14px 18px 18px;width:auto}
  body#royal-blue-app .sv-calendar>.coverage-calendar {margin:0;padding:14px 18px 18px;border:0;border-radius:0;box-shadow:none;background:none}
  body#royal-blue-app .sv-calendar>.coverage-calendar .analysis-heading h2 {display:none}

  @media (max-width:760px) {
    body#royal-blue-app .su-steps {grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
    body#royal-blue-app .su-steps li {justify-content:center;padding:8px 4px;font-size:0 !important;gap:0}
    body#royal-blue-app .su-steps li[aria-current=step] {font-size:12.5px !important;gap:6px;grid-column:span 1}
    body#royal-blue-app .su-steps li:not([aria-current=step]) {flex:0 0 auto}
    body#royal-blue-app .su-tiles {grid-template-columns:repeat(2,minmax(0,1fr))}
    body#royal-blue-app .su-actions>.btn {flex:1 1 140px;justify-content:center}
    body#royal-blue-app .su-drop {padding:22px 12px}
    body#royal-blue-app .sv-facts {grid-template-columns:repeat(2,minmax(0,1fr))}
    body#royal-blue-app .sv-rules>div {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .sv-facts>div:nth-child(2) {grid-column:1 / -1;order:3}
    body#royal-blue-app .sv-row-actions {width:100%}
    body#royal-blue-app .sv-row-actions>.btn {flex:1 1 130px;justify-content:center}
    body#royal-blue-app .su-problems table {min-width:0}
    body#royal-blue-app .su-problems :is(th,td):nth-child(2) {display:none}
  }
}

/* Kịch bản mô hình in four tabs (scenario-page.js): the tab bar, the path phao → bảng → mặt cắt, "Việc cần làm",
   every estimate explained in a sentence, the update choices as large buttons and the rules in words. */
@layer readability {
  body#royal-blue-app .sp {display:grid;gap:0;min-width:0}
  body#royal-blue-app .sp-tabs {display:flex;gap:2px;margin:0 0 16px;border-bottom:1px solid #dbe5f3;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
  body#royal-blue-app .sp-tabs [role=tab] {display:inline-flex;align-items:center;gap:7px;flex:none;margin:0;padding:10px 14px;border:0;border-bottom:3px solid transparent;background:none;color:#4a5f80;font:inherit;font-size:14.5px;font-weight:650;white-space:nowrap;cursor:pointer;border-radius:8px 8px 0 0}
  body#royal-blue-app .sp-tabs [role=tab]:hover {background:#f4f8ff;color:#1d4fb8}
  body#royal-blue-app .sp-tabs [role=tab][aria-selected=true] {border-bottom-color:#1d5ce0;color:#1d4fb8;background:#f4f8ff}
  body#royal-blue-app .sp-tabs [role=tab]:focus-visible {outline:2px solid #1d5ce0;outline-offset:-2px}
  body#royal-blue-app .sp-tab-count {display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#f59e0b;color:#fff;font-size:11.5px;font-style:normal;font-weight:800}
  body#royal-blue-app .sp-panel {display:grid;gap:14px;min-width:0}
  body#royal-blue-app .sp-panel[hidden] {display:none !important}
  body#royal-blue-app .sp-lead {margin:0;max-width:90ch;color:#35517a;font-size:15px;line-height:1.65}
  body#royal-blue-app .sp-note {margin:0 0 10px;color:#5a6f8c;font-size:13.5px;line-height:1.6}
  body#royal-blue-app .sp-empty {margin:0;padding:16px;border:1px dashed #d6e2f1;border-radius:12px;color:#5a6f8c;text-align:center}

  body#royal-blue-app .sp-glossary {border:1px solid #e3ebf6;border-radius:12px;background:#fbfdff}
  body#royal-blue-app .sp-glossary > summary {display:flex;align-items:center;gap:8px;padding:9px 12px;cursor:pointer;color:#1d4fb8;font-size:14px;font-weight:650}
  body#royal-blue-app .sp-glossary > summary svg {color:#1d5ce0}
  body#royal-blue-app .sp-glossary[open] > summary {border-bottom:1px solid #e3ebf6}
  body#royal-blue-app .sp-glossary dl {display:grid;gap:0;margin:0;padding:4px 12px 8px}
  body#royal-blue-app .sp-glossary dl > div {display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);gap:4px 14px;padding:8px 0;border-top:1px solid #edf2fa}
  body#royal-blue-app .sp-glossary dl > div:first-child {border-top:0}
  body#royal-blue-app .sp-glossary dt {color:#0f2a57;font-weight:700;font-size:14px}
  body#royal-blue-app .sp-glossary dd {margin:0;color:#35517a;font-size:14px;line-height:1.55}
  body#royal-blue-app .sv-when {color:#4a5f80}
  body#royal-blue-app .sp-flow {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);align-items:stretch;gap:8px}
  body#royal-blue-app .sp-step {display:grid;justify-items:center;align-content:center;gap:3px;padding:12px 10px;border:1px solid #dbe5f3;border-radius:12px;background:#fff;text-align:center;min-width:0}
  body#royal-blue-app .sp-step svg {color:#1d5ce0}
  body#royal-blue-app .sp-step b {color:#0f2a57;font-size:14.5px}
  body#royal-blue-app .sp-step small {color:#5a6f8c;font-size:12.5px;line-height:1.45;overflow-wrap:anywhere}
  body#royal-blue-app .sp-arrow {display:grid;place-items:center;color:#9db0c9}
  body#royal-blue-app .sp-day {margin:0;padding:9px 12px;border:1px solid #d6e4fb;border-radius:10px;background:#f4f8ff;color:#24456f;font-size:13.5px;line-height:1.55}

  body#royal-blue-app .sp-todo {padding:12px 14px;border:1px solid #d6e4fb;border-radius:12px;background:#f4f8ff}
  body#royal-blue-app .sp-todo[data-tone=bad] {border-color:#f5c8c0;background:#fff5f3}
  body#royal-blue-app .sp-todo[data-tone=warn] {border-color:#f0dcae;background:#fffaf0}
  body#royal-blue-app .sp-todo[data-tone=good] {border-color:#bfe6cf;background:#effaf4}
  body#royal-blue-app .sp-todo h3 {display:flex;align-items:center;gap:8px;margin:0 0 8px;color:#0f2a57;font-size:15.5px}
  body#royal-blue-app .sp-todo[data-tone=bad] h3 svg {color:#b42318}
  body#royal-blue-app .sp-todo[data-tone=warn] h3 svg {color:#b87500}
  body#royal-blue-app .sp-todo ol {display:grid;gap:8px;margin:0;padding:0 0 0 22px}
  body#royal-blue-app .sp-todo li {color:#24384f;font-size:14px;line-height:1.55}
  body#royal-blue-app .sp-todo li > span {margin-right:10px}
  body#royal-blue-app .sp-todo li[data-tone=bad] > span {color:#9b1c13;font-weight:600}
  body#royal-blue-app .sp-todo li .btn {vertical-align:middle;margin:4px 0 0}
  body#royal-blue-app .sp-todo-ok {display:flex;align-items:center;gap:8px;margin:0;color:#17664f;font-weight:600}

  body#royal-blue-app .sp-point-tabs {display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
  body#royal-blue-app .sp-point-tab {padding:6px 14px;border:1px solid #d6e2f1;border-radius:999px;background:#fff;color:#35517a;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
  body#royal-blue-app .sp-point-tab:hover {border-color:#1d5ce0;color:#1d4fb8}
  body#royal-blue-app .sp-point-tab[aria-pressed=true] {border-color:#1d5ce0;background:#1d5ce0;color:#fff}
  body#royal-blue-app .sp-lines {display:grid;gap:0;margin:0;padding:0;list-style:none}
  body#royal-blue-app .sp-lines > li {padding:12px 0;border-top:1px solid #edf2fa}
  body#royal-blue-app .sp-lines > li:first-child {border-top:0;padding-top:4px}
  body#royal-blue-app .sp-line-head {display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px}
  body#royal-blue-app .sp-line-head b {color:#0f2a57;font-size:14.5px}
  body#royal-blue-app .sp-value {color:#0f2a57;font-size:19px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
  body#royal-blue-app .sp-value small {color:#5a6f8c;font-size:12.5px;font-weight:600}
  body#royal-blue-app .sp-lines > li[data-empty=true] .sp-value {color:#9db0c9;font-size:14px}
  body#royal-blue-app .sp-lines > li p {margin:4px 0 0;max-width:95ch;color:#35517a;font-size:14px;line-height:1.6}
  body#royal-blue-app .sp-bar {max-width:420px;margin-top:8px}
  body#royal-blue-app .sp-bar-track {position:relative;display:block;height:8px;border-radius:4px;background:#e3ebf6}
  body#royal-blue-app .sp-bar-track i {position:absolute;top:-4px;width:4px;height:16px;border-radius:2px;background:#1d5ce0;transform:translateX(-50%)}
  body#royal-blue-app .sp-bar-labels {display:flex;justify-content:space-between;margin-top:3px}
  body#royal-blue-app .sp-bar-labels small {color:#5a6f8c;font-size:12px}

  body#royal-blue-app .sp-current .sv-ident {margin-bottom:4px}
  body#royal-blue-app .sp-fold {margin-top:10px;padding:0;border:1px solid #e3ebf6;border-radius:10px;background:#fbfdff}
  body#royal-blue-app .sp-fold > summary {display:flex;align-items:center;gap:8px;padding:10px 12px;cursor:pointer;color:#24456f;font-weight:650}
  body#royal-blue-app .sp-fold[open] > summary {border-bottom:1px solid #e3ebf6}
  body#royal-blue-app .sp-fold > :not(summary) {margin:10px 12px 12px}
  body#royal-blue-app .sp-actions {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:10px}
  body#royal-blue-app .sp-action {display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid #dbe5f3;border-radius:12px;background:#fff;color:#35517a;font:inherit;text-align:left;cursor:pointer}
  body#royal-blue-app .sp-action > svg {flex:none;margin-top:1px;color:#1d5ce0}
  body#royal-blue-app .sp-action:hover {border-color:#1d5ce0;background:#f7faff}
  body#royal-blue-app .sp-action.primary {border-color:#1d5ce0;background:#f4f8ff;box-shadow:0 0 0 1px #1d5ce0 inset}
  body#royal-blue-app .sp-action b {display:block;color:#0f2a57;font-size:15px}
  body#royal-blue-app .sp-action em {display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;background:#1d5ce0;color:#fff;font-size:11px;font-style:normal;font-weight:700;vertical-align:2px}
  body#royal-blue-app .sp-action small {display:block;margin-top:3px;color:#5a6f8c;font-size:13px;line-height:1.5}

  body#royal-blue-app .sp-rules {display:grid;gap:8px;margin:0 0 12px;padding:0;list-style:none}
  body#royal-blue-app .sp-rules > li {padding:10px 12px;border:1px solid #e3ebf6;border-radius:10px;background:#fbfdff}
  body#royal-blue-app .sp-rule-head {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 10px}
  body#royal-blue-app .sp-rule-head b {color:#0f2a57;font-size:14.5px}
  body#royal-blue-app .sp-rule-how {padding:2px 10px;border-radius:999px;background:#eef4ff;color:#1d4fb8;font-size:12.5px;font-weight:700;white-space:nowrap}
  body#royal-blue-app .sp-rules p {margin:4px 0 0;color:#35517a;font-size:14px;line-height:1.6}
  body#royal-blue-app .sp-example {margin:0 0 12px;padding:10px 12px;border:1px solid #d6e4fb;border-radius:10px;background:#f4f8ff;color:#24456f;font-size:14px;line-height:1.6}
  body#royal-blue-app .sp-math > summary {cursor:pointer;color:#1d4fb8;font-weight:650}
  body#royal-blue-app .sp-math[open] > summary {margin-bottom:8px}

  @media (max-width: 700px) {
    body#royal-blue-app .sp-flow {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .sp-arrow {transform:rotate(90deg);height:18px}
    body#royal-blue-app .sp-step {grid-template-columns:auto minmax(0,1fr);justify-items:start;text-align:left;column-gap:10px}
    body#royal-blue-app .sp-step svg {grid-row:span 2}
    body#royal-blue-app .sp-tabs {flex-wrap:wrap;overflow:visible;gap:4px;border-bottom:0}
    body#royal-blue-app .sp-tabs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
    body#royal-blue-app .sp-tabs [role=tab] {justify-content:center;gap:5px;min-width:0;padding:9px 6px;border:1px solid #dbe5f3;border-radius:10px;font-size:13.5px;white-space:normal;text-align:center;line-height:1.25}
    body#royal-blue-app .sp-tabs [role=tab][aria-selected=true] {border-color:#1d5ce0;border-bottom-color:#1d5ce0;box-shadow:0 0 0 1px #1d5ce0 inset}
    body#royal-blue-app .sp-actions {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .sp-glossary dl > div {grid-template-columns:minmax(0,1fr)}
  }
}

/* ==== password-dialogs.css ==== */
/* Forgot-password and reset-password dialogs. */
@layer readability {
  body#royal-blue-app .auth-dialog {display:grid;gap:14px;justify-items:stretch;min-width:0;padding:4px 2px 2px}
  body#royal-blue-app .auth-dialog [hidden] {display:none !important}
  body#royal-blue-app .auth-badge {display:grid;place-items:center;width:60px;height:60px;margin:0 auto;border-radius:18px;background:linear-gradient(145deg,#e4efff,#cfe2ff);color:#175adb;box-shadow:0 6px 18px rgba(23,90,219,.18)}
  body#royal-blue-app .auth-lead {margin:0;text-align:center;color:#36516f;font-size:15px !important;line-height:1.7}
  body#royal-blue-app .auth-note {margin:0;padding:9px 12px;border:1px solid #e1eafa;border-radius:10px;background:#f7faff;color:#506580;font-size:13px !important;line-height:1.6;text-align:center}
  body#royal-blue-app .auth-chip {display:inline-block;max-width:100%;padding:2px 12px;border-radius:999px;background:#eef3fb;color:#1f3f6b;font-weight:600;overflow-wrap:anywhere}
  body#royal-blue-app .auth-form {display:grid;gap:8px}
  body#royal-blue-app .auth-form label {font-size:14px !important;font-weight:600;color:#24446b}
  body#royal-blue-app .auth-form .form-control {width:100%;box-sizing:border-box;min-height:46px;font-size:15px}
  body#royal-blue-app .auth-field {position:relative}
  body#royal-blue-app .auth-field .form-control {padding-right:64px}
  body#royal-blue-app .auth-eye {position:absolute;top:50%;right:6px;transform:translateY(-50%);min-width:48px;min-height:36px;padding:0 10px;border:0;border-radius:8px;background:#eef3fb;color:#245bba;font-size:13px !important;font-weight:600;cursor:pointer}
  body#royal-blue-app .auth-eye:hover {background:#dfe9fb}
  body#royal-blue-app .auth-eye:focus-visible,body#royal-blue-app .auth-link:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .auth-primary {width:100%;justify-content:center;min-height:48px;margin-top:6px;font-size:15px}
  body#royal-blue-app .auth-link {justify-self:center;margin-top:2px;padding:8px 10px;border:0;background:none;color:#245bba;font-size:14px !important;cursor:pointer;border-radius:8px}
  body#royal-blue-app .auth-link:hover {text-decoration:underline}
  body#royal-blue-app .auth-error {margin:0;padding:9px 12px;border:1px solid #f1c6c1;border-radius:10px;background:#fff3f2;color:#8f2a24;font-size:13.5px !important;line-height:1.55}
  body#royal-blue-app .auth-sent {display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:12px;background:#eef9f5;color:#17664f;font-size:16px !important}
  body#royal-blue-app .auth-tips {margin:0;padding:12px 16px 12px 34px;border:1px solid #e1eafa;border-radius:12px;background:#f7faff;color:#36516f;font-size:13.5px !important;line-height:1.75}
  body#royal-blue-app .auth-meter {display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:2px}
  body#royal-blue-app .auth-meter i {height:6px;border-radius:99px;background:#e3eaf4}
  body#royal-blue-app .auth-meter[data-level="1"] i:nth-child(-n+1) {background:#d9534f}
  body#royal-blue-app .auth-meter[data-level="2"] i:nth-child(-n+2) {background:#e59a1a}
  body#royal-blue-app .auth-meter[data-level="3"] i:nth-child(-n+3) {background:#4f9d6a}
  body#royal-blue-app .auth-meter[data-level="4"] i {background:#1f8a5b}
  body#royal-blue-app .auth-meter-label {margin:0;color:#506580;font-size:13px !important}
  body#royal-blue-app .auth-rules {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;margin:0 0 6px;padding:0;list-style:none;color:#62758d;font-size:13px !important}
  body#royal-blue-app .auth-rules li {display:flex;align-items:center;gap:7px}
  body#royal-blue-app .auth-rules li::before {content:"";flex:none;width:14px;height:14px;border-radius:50%;border:2px solid #c3d0e2;box-sizing:border-box}
  body#royal-blue-app .auth-rules li.ok {color:#17664f}
  body#royal-blue-app .auth-rules li.ok::before {border-color:#1f8a5b;background:#1f8a5b;box-shadow:inset 0 0 0 2px #fff}
  body#royal-blue-app .auth-match {min-height:20px;margin:0;font-size:13px !important}
  body#royal-blue-app .auth-match.ok {color:#17664f}
  body#royal-blue-app .auth-match.bad {color:#9b2c26}
  body#royal-blue-app .auth-primary[disabled] {opacity:.55;cursor:not-allowed}
  @media (max-width:520px) {
    body#royal-blue-app .auth-rules {grid-template-columns:minmax(0,1fr)}
  }
}

/* Sign-in dialog: brand panel + form */
@layer readability {
  body#royal-blue-app .auth-error[hidden] {display:none !important}
  body#royal-blue-app #modal-root .modal:has(.login-split) {position:relative;padding:0 !important;overflow:hidden;max-width:880px;border-radius:20px !important}
  body#royal-blue-app #modal-root .modal:has(.login-split) .modal-title {position:absolute;top:12px;right:12px;z-index:3;margin:0 !important}
  body#royal-blue-app #modal-root .modal:has(.login-split) .modal-title h2 {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  body#royal-blue-app .login-split {display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);min-height:520px}
  body#royal-blue-app .login-aside {position:relative;display:flex;flex-direction:column;gap:22px;padding:36px 32px;color:#fff;background:radial-gradient(circle at 85% 8%,rgba(255,255,255,.18),transparent 46%),linear-gradient(155deg,#0f4fc4 0%,#175adb 45%,#2a8ed8 100%);overflow:hidden}
  body#royal-blue-app .login-aside::after {content:"";position:absolute;inset:auto -60px -70px auto;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.08)}
  body#royal-blue-app .login-brand {display:flex;align-items:center;gap:12px}
  body#royal-blue-app .login-mark {display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:rgba(255,255,255,.18);color:#fff}
  body#royal-blue-app .login-brand small {display:block;font-size:11px !important;letter-spacing:.14em;color:#cfe2ff}
  body#royal-blue-app .login-brand strong {display:block;font-size:19px !important;line-height:1.3}
  body#royal-blue-app .login-aside h3 {margin:6px 0 0;font-size:26px !important;line-height:1.3;color:#fff}
  body#royal-blue-app .login-features {display:grid;gap:16px;margin:0;padding:0;list-style:none}
  body#royal-blue-app .login-features li {display:flex;gap:12px;align-items:flex-start}
  body#royal-blue-app .login-feat-icon {display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.16)}
  body#royal-blue-app .login-features b {display:block;font-size:14.5px !important;color:#fff}
  body#royal-blue-app .login-features small {display:block;margin-top:2px;font-size:13px !important;line-height:1.5;color:#dbe9ff}
  body#royal-blue-app .login-org {margin:auto 0 0;font-size:12.5px !important;color:#cfe2ff;position:relative;z-index:1}
  body#royal-blue-app .login-main {display:flex;flex-direction:column;justify-content:center;padding:44px 40px 32px;background:#fff;min-width:0}
  body#royal-blue-app .login-main h3 {margin:0;font-size:26px !important;color:#133858}
  body#royal-blue-app .login-sub {margin:6px 0 22px;color:#62758d;font-size:14.5px !important}
  body#royal-blue-app .login-row {display:flex;justify-content:flex-end;margin-top:-2px}
  body#royal-blue-app .login-row .auth-link {margin:0;padding:4px 2px}
  body#royal-blue-app .login-help {margin:22px 0 0;padding-top:16px;border-top:1px solid #e6eefb;color:#7a8ca3;font-size:13px !important;line-height:1.6;text-align:center}
  @media (max-width:760px) {
    body#royal-blue-app .login-split {grid-template-columns:minmax(0,1fr);min-height:0}
    body#royal-blue-app .login-aside {padding:22px 22px 18px;gap:12px}
    body#royal-blue-app .login-aside h3,body#royal-blue-app .login-features,body#royal-blue-app .login-org {display:none}
    body#royal-blue-app .login-main {padding:26px 22px 22px}
  }
}

/* Account dialog */
@layer readability {
  body#royal-blue-app .acct {display:grid;gap:16px;min-width:0}
  body#royal-blue-app .acct [hidden] {display:none !important}
  body#royal-blue-app .acct-card {display:flex;align-items:center;gap:16px;padding:18px;border-radius:16px;color:#fff;background:radial-gradient(circle at 90% 0,rgba(255,255,255,.2),transparent 50%),linear-gradient(150deg,#0f4fc4,#175adb 50%,#2a8ed8)}
  body#royal-blue-app .acct-avatar {display:grid;place-items:center;flex:none;width:60px;height:60px;border-radius:50%;background:rgba(255,255,255,.2);border:2px solid rgba(255,255,255,.55);font-size:21px;font-weight:700;letter-spacing:.02em}
  body#royal-blue-app .acct-who {display:grid;gap:3px;min-width:0}
  body#royal-blue-app .acct-who strong {font-size:18px !important;color:#fff;overflow-wrap:anywhere}
  body#royal-blue-app .acct-who span {font-size:13.5px !important;color:#dbe9ff;overflow-wrap:anywhere}
  body#royal-blue-app .acct-role {justify-self:start;margin-top:4px;padding:2px 11px;border-radius:999px;background:rgba(255,255,255,.2);color:#fff;font-size:12.5px !important;font-style:normal;font-weight:600}
  body#royal-blue-app .acct-meta {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
  body#royal-blue-app .acct-meta>div {padding:10px 14px;border:1px solid #dbe7fb;border-radius:12px;background:#f8fbff}
  body#royal-blue-app .acct-meta dt {margin:0;color:#62758d;font-size:12.5px !important}
  body#royal-blue-app .acct-meta dd {margin:2px 0 0;color:#133858;font-size:14px !important;font-weight:600;line-height:1.45}
  body#royal-blue-app .acct-actions {display:grid;gap:10px}
  body#royal-blue-app .acct-row {display:flex;align-items:center;gap:14px;width:100%;padding:13px 16px;border:1px solid #dbe7fb;border-radius:14px;background:#fff;color:#1f3f6b;text-align:left;cursor:pointer;font:inherit}
  body#royal-blue-app .acct-row:hover {border-color:#96b8f4;background:#f8fbff}
  body#royal-blue-app .acct-row:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .acct-row b {display:block;font-size:15px !important}
  body#royal-blue-app .acct-row small {display:block;margin-top:2px;color:#62758d;font-size:13px !important;line-height:1.5;white-space:normal}
  body#royal-blue-app .acct-row>span:nth-child(2) {flex:1;min-width:0}
  body#royal-blue-app .acct-ico {display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:#e8f0ff;color:#175adb}
  body#royal-blue-app .acct-go {color:#8aa0bd}
  body#royal-blue-app .acct-row.danger .acct-ico {background:#fdecea;color:#c0392b}
  body#royal-blue-app .acct-row.danger:hover {border-color:#f1b7b0;background:#fff7f6}
  body#royal-blue-app .acct-confirm {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:14px 16px;border:1px solid #f1c6c1;border-radius:14px;background:#fff3f2}
  body#royal-blue-app .acct-confirm p {margin:0;color:#8f2a24;font-size:14.5px !important;font-weight:600}
  body#royal-blue-app .acct-confirm div {display:flex;gap:8px;flex-wrap:wrap}
  body#royal-blue-app .acct-danger {background:#c0392b !important;border-color:#c0392b !important;color:#fff !important}
  @media (max-width:520px) {
    body#royal-blue-app .acct-meta {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .acct-confirm div .btn {flex:1}
  }
}

/* ==== mobile-stations.css ==== */
/* "Điểm quan trắc" on phones: the same one-row layout as a small desktop, all five points visible at once. */
@layer readability {
  @media (max-width:600px) {
    body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tabs {display:grid !important;grid-template-columns:repeat(5,minmax(0,1fr)) !important;gap:5px !important;padding:0 !important;overflow:visible !important}
    body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tab {display:flex !important;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;min-width:0 !important;min-height:0 !important;padding:9px 2px 7px !important;border-radius:12px !important;text-align:center}
    body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tab .sa-top {display:flex !important;flex-direction:column;align-items:center;gap:4px;width:100% !important}
    body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tab .sa-source-icon {display:grid !important;place-items:center;width:30px !important;height:30px !important;border-radius:9px}
    body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tab .sa-source-icon svg {width:17px;height:17px}
    body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tab .sa-identity {min-width:0;max-width:100%}
    body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tab .sa-identity small {display:none !important}
    body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tab .sa-identity strong {display:block;font-size:12.5px !important;line-height:1.2 !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tab .sa-bottom {display:block !important;width:100% !important;padding:0 !important;background:none !important;border:0 !important}
    body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tab .sa-status-chip {padding:3px 4px !important;border-radius:8px !important}
    body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tab .sa-status-chip .sa-status-name {display:none !important}
    body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tab .sa-selected-check {display:none !important}
  }
}

/* Station tiles: the level icon is centred; the status word (description) sits under it where there is room. */
@layer readability {
  body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tab .sa-bottom {display:block !important;width:100% !important;text-align:center !important}
  body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tab .sa-state {display:flex !important;justify-content:center !important;width:100% !important}
  body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tab .sa-status-chip {display:inline-flex !important;flex-direction:column !important;align-items:center !important;justify-content:center !important;gap:3px !important;width:auto !important;height:auto !important;min-width:0 !important;padding:2px 6px !important;border:0 !important;background:transparent !important;box-shadow:none !important;font-size:12px !important;font-weight:600 !important;line-height:1.2 !important;text-align:center !important;white-space:nowrap !important;color:inherit !important}
  body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tab .sa-status-chip::before,body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tab .sa-status-chip::after {content:none !important;display:none !important}
  body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tab .sa-status-chip .lvl-icon {display:block;width:24px;height:24px;flex:none}
  body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tab .sa-status-chip .sa-status-name {display:block}
  @media (max-width:600px) {
    body#royal-blue-app .rb-station-navigation.ob-network .ob-station-tab .sa-status-chip .sa-status-name {display:none !important}
  }
}

/* ==== mobile-topbar.css ==== */
/* Top bar on phones and small tablets: one row, four equal 40px controls, the page title in the middle. */
@layer readability {
  @media (max-width:760px) {
    body#royal-blue-app .topbar {display:flex !important;align-items:center;gap:8px !important;min-height:60px;padding:10px 12px !important;background:#fff !important;border-bottom:1px solid #e3ecf8 !important;box-shadow:0 1px 0 rgba(23,90,219,.04)}
    body#royal-blue-app .topbar #breadcrumb {flex:1 1 auto;min-width:0;order:2;display:block !important;margin:0 !important;padding:0 !important;font-size:15px !important;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    body#royal-blue-app .topbar #breadcrumb :is(svg,span) {display:none !important}
    body#royal-blue-app .topbar #breadcrumb strong {display:inline !important;font-size:15px !important;font-weight:700;color:#133858}
    body#royal-blue-app .topbar .mobile-menu {order:1;flex:none}
    body#royal-blue-app .topbar .topbar-right {order:3;display:flex !important;align-items:center;gap:8px !important;flex:none;margin:0 !important}
    body#royal-blue-app .topbar :is(.mobile-menu,.notification-button,.account,.rb-top-export) {position:relative;display:grid !important;place-items:center;flex:none;box-sizing:border-box;width:40px !important;height:40px !important;min-width:40px !important;min-height:40px !important;padding:0 !important;margin:0 !important;border:1px solid #d9e6f8 !important;border-radius:12px !important;background:#f7faff !important;color:#245bba !important;font-size:20px !important;line-height:1}
    body#royal-blue-app .topbar :is(.mobile-menu,.notification-button,.account):hover {background:#eaf2ff !important}
    body#royal-blue-app .topbar .account {border-radius:12px !important}
    body#royal-blue-app .topbar .account :is(.account-name,.account-chevron) {display:none !important}
    body#royal-blue-app .topbar .account .avatar {display:grid;place-items:center;width:100%;height:100%;border-radius:11px;background:transparent}
    body#royal-blue-app .topbar .rb-top-export {border-color:#0862ff !important;background:#0862ff !important;color:#fff !important}
    body#royal-blue-app .topbar .rb-top-export :is(span,small) {display:none !important}
    body#royal-blue-app .topbar .notification-count {position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border:2px solid #fff;border-radius:99px;box-sizing:content-box;font-size:10.5px !important;line-height:18px;text-align:center}
    /* ba nút bên phải cùng một kiểu: ô vuông bo góc 40px; số thông báo là chấm đỏ đặc để nổi bật */
    body#royal-blue-app .topbar #notification-button .notification-count {top:-6px !important;right:-6px !important;min-width:20px !important;height:20px !important;padding:0 5px !important;border:2px solid #fff !important;border-radius:99px !important;background:#e5233d !important;color:#fff !important;font-size:11px !important;font-weight:800 !important;line-height:16px !important;box-sizing:border-box !important;display:flex !important;align-items:center;justify-content:center;box-shadow:0 1px 4px rgba(229,35,61,.45)}
    body#royal-blue-app .topbar :is(.mobile-menu,.notification-button,.account,.rb-top-export):focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  }
  /* Menu drawer: the close button sits on the logo row, vertically centred, instead of floating above it */
  @media (max-width:1100px) {
    body#royal-blue-app .sidebar.open {position:fixed}
    body#royal-blue-app .sidebar.open .brand {position:relative;display:flex !important;align-items:center;min-height:72px;padding:14px 44px 14px 16px !important;box-sizing:border-box}
    body#royal-blue-app .sidebar.open #sidebar-close {position:absolute !important;top:6px !important;right:6px !important;left:auto !important;margin:0 !important;z-index:2;display:grid !important;place-items:center;width:26px !important;height:26px !important;padding:0 !important;border:1px solid #d6e4fa !important;border-radius:50% !important;background:#f3f8ff !important;color:#245bba !important;font-size:16px !important;line-height:1 !important;cursor:pointer}
    body#royal-blue-app .sidebar.open #sidebar-close:hover {background:#e3eeff !important}
  }
  /* The top bar stays put while the page scrolls, and the page heading under it is compact. */
  @media (max-width:760px) {
    body#royal-blue-app .topbar {position:sticky !important;top:0;z-index:29 !important;box-shadow:0 1px 0 #e3ecf8,0 6px 14px -10px rgba(19,56,88,.35)}
    body#royal-blue-app .ob-overview .ob-page-heading {display:block !important;margin:0 0 10px !important;padding:10px 12px !important;border-radius:14px !important}
    body#royal-blue-app .ob-page-heading .rb-heading-main {display:flex;align-items:center;gap:10px;width:auto !important;height:auto !important}
    body#royal-blue-app .ob-page-heading .rb-heading-icon {display:grid;place-items:center;flex:none;width:36px !important;height:36px !important;border-radius:10px !important}
    body#royal-blue-app .ob-page-heading .rb-heading-icon svg {width:20px !important;height:20px !important}
    body#royal-blue-app .ob-page-heading h1 {margin:0 !important;font-size:18px !important;line-height:1.25 !important;letter-spacing:0 !important}
    body#royal-blue-app .ob-page-heading .rb-heading-main p {margin:2px 0 0 !important;font-size:12.5px !important;line-height:1.35 !important}
    body#royal-blue-app .ob-page-heading .rb-heading-status {display:flex !important;align-items:center;justify-content:space-between;gap:8px;min-height:0 !important;height:auto !important;margin:8px 0 0 !important;padding:5px 10px !important;font-size:12px !important;border-radius:10px !important}
  }
  /* map panes keep their own stacking, so they never slide over the fixed bar */
  @media (max-width:760px) {
    body#royal-blue-app .geographic-map,body#royal-blue-app .river-canvas {isolation:isolate}
  }
  /* the open drawer sits above every page block on a phone (the map header has z-index 60 and used to float over the menu) */
  @media (max-width:700px) {
    body#royal-blue-app .sidebar.open {z-index:1200 !important}
    /* the sticky top bar stays above the map header (z-index 60) while the page scrolls under it */
    body#royal-blue-app .topbar {z-index:100 !important}
    /* the logo row is exactly as tall as the top bar, so the two lines under them meet */
    body#royal-blue-app .sidebar.open .brand {min-height:52px !important;height:52px !important;padding-top:6px !important;padding-bottom:6px !important}
  }
  /* dim the page behind the open drawer so it is clear a tap outside closes it */
  @media (max-width:980px) {
    body#royal-blue-app .sidebar.open {box-shadow:0 0 0 100vmax rgba(10,30,60,.38),6px 0 24px rgba(10,30,60,.25)}
  }
}

/* ==== alert-level-icon.css ==== */
/* The shared alert-level icon: same drawing everywhere, only the size changes. */
.lvl-icon {display:inline-block;flex:none;vertical-align:middle;overflow:visible}
[data-level-icon="unknown"] {opacity:.9}
.map-pin-label strong em {display:inline-flex;align-items:center;margin-left:5px;font-style:normal;vertical-align:middle}
.map-status-badge {display:inline-flex;align-items:center;gap:6px}
.map-level-legend > span {display:inline-flex;align-items:center;gap:5px}
.gis-status-counts > span {display:inline-flex;align-items:center;gap:5px}
.map-rail-icon,.map-situation-symbol,.ob-preview-dot {display:inline-grid;place-items:center;background:transparent !important;border:0 !important;box-shadow:none !important}
.gauge-rules > span {display:inline-flex;align-items:center;gap:6px}
.gauge-rules > span > i {display:none !important}

/* Level words share the icon's colours (darker tones where text needs contrast on white). */
.sa-station[data-station-alert="0"] .sa-status-name {color:#0b7a3b !important}
.sa-station[data-station-alert="1"] .sa-status-name {color:#946b00 !important}
.sa-station[data-station-alert="2"] .sa-status-name {color:#c25200 !important}
.sa-station[data-station-alert="3"] .sa-status-name {color:#bf1a12 !important}
.sa-station[data-station-alert="4"] .sa-status-name {color:#7e0023 !important}
.sa-station[data-station-alert="unknown"] .sa-status-name {color:#5f7396 !important}
.sa-station .sa-status-name {font-weight:700 !important}

/* ==== mobile-community.css ==== */
/* Resident page on phones: one compact, fixed header instead of two stacked bars. */
@layer readability {
  @media (max-width:760px) {
    body#royal-blue-app:has(.citizen-dashboard) .topbar {display:none !important}
    body#royal-blue-app #content {overflow-x:clip}
    body#royal-blue-app .citizen-header {position:sticky !important;top:0;z-index:60;background:#fff !important;border-bottom:1px solid #dde7f0 !important;box-shadow:0 6px 14px -12px rgba(19,56,88,.45)}
    body#royal-blue-app .citizen-header .citizen-header-inner {display:flex !important;align-items:center;gap:8px !important;min-height:56px !important;height:56px;padding:0 10px 0 12px !important}
    body#royal-blue-app .citizen-header .citizen-brand {flex:1 1 auto;min-width:0;margin:0 !important;gap:8px !important}
    body#royal-blue-app .citizen-header .citizen-brand > span {flex:none;width:38px !important;height:30px !important}
    body#royal-blue-app .citizen-header .citizen-brand > div {min-width:0}
    body#royal-blue-app .citizen-header .citizen-brand strong {font-size:16px !important;line-height:1.15 !important;white-space:nowrap}
    body#royal-blue-app .citizen-header .citizen-brand small {display:block;margin:1px 0 0 !important;font-size:11px !important;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    body#royal-blue-app .citizen-header .citizen-staff {flex:none;display:inline-flex !important;align-items:center;gap:5px;min-height:36px !important;padding:0 11px !important;border-radius:18px !important;font-size:12.5px !important}
    body#royal-blue-app .citizen-header .citizen-staff svg {display:block !important;width:15px;height:15px}
    body#royal-blue-app .citizen-header .citizen-staff-short {display:inline !important;font-size:12.5px !important}
    body#royal-blue-app .citizen-header .citizen-header-search {flex:none;display:grid !important;place-items:center;width:40px !important;min-width:40px !important;height:40px;min-height:40px !important;padding:0 !important;border-radius:50% !important;background:#f1f6fd !important}
    body#royal-blue-app .citizen-header .citizen-header-search svg {width:20px;height:20px}
    body#royal-blue-app .citizen-header .citizen-staff-label {display:none !important}
  }
}

/* ==== map-beacon-rings.css ==== */
/* Map pins: the dot and its pulsing rings share one centre and the colour of the station's current level. */
@layer readability {
  body#royal-blue-app .geographic-marker.gis-beacon.alert-map-pin > .beacon-core {
    position:absolute !important;inset:5px !important;box-sizing:border-box !important;width:24px !important;height:24px !important;margin:0 !important;
    border-radius:50% !important;border:2px solid #fff !important;background:var(--point-color,#94a3b8) !important;color:var(--point-on-color,#fff) !important;
  }
  body#royal-blue-app .geographic-marker.gis-beacon.alert-map-pin > .beacon-core svg {width:14px;height:14px;display:block;margin:auto}
  body#royal-blue-app .geographic-marker.gis-beacon.alert-map-pin > .beacon-wave {
    position:absolute !important;inset:0 !important;box-sizing:border-box !important;width:34px !important;height:34px !important;margin:0 !important;
    border-radius:50% !important;border:2px solid var(--point-color,#94a3b8) !important;background:transparent !important;transform-origin:50% 50% !important;
  }
  /* the selected pin is marked in the station's own colour, never a fixed blue */
  body#royal-blue-app .geographic-marker.gis-beacon.alert-map-pin.selected > .beacon-core,
  body#royal-blue-app .geographic-marker.gis-beacon.alert-map-pin.selected:hover > .beacon-core {box-shadow:none !important}
  body#royal-blue-app .geographic-marker.gis-beacon.alert-map-pin.selected .map-pin-label {background:#fff !important;border-color:var(--point-color,#94a3b8) !important;border-left-color:var(--point-color,#94a3b8) !important;box-shadow:0 2px 6px rgba(19,56,88,.18) !important}
  body#royal-blue-app .geographic-marker.gis-beacon.alert-map-pin.selected .map-pin-label > strong {color:var(--point-ink,#133654) !important}
  body#royal-blue-app .geographic-marker.gis-beacon.alert-map-pin.selected {outline:0 !important}
  /* the buoy always has two ripples in its current status colour (grey when the sample is old or unknown), slower when idle */
  body#royal-blue-app .geographic-marker.gis-beacon.measured > .beacon-wave {display:block !important;opacity:.6;animation:pin-spread var(--buoy-period,2.8s) ease-out infinite !important}
  body#royal-blue-app .geographic-marker.gis-beacon.measured > .beacon-wave.wave-second {display:block !important;animation-delay:calc(var(--buoy-period,2.8s) / -2) !important}
  body#royal-blue-app .geographic-marker.gis-beacon.measured.signal-offline > .beacon-wave {--buoy-period:4.2s;opacity:.45}
  body#royal-blue-app .geographic-marker.gis-beacon.measured[data-alert-level="3"],body#royal-blue-app .geographic-marker.gis-beacon.measured[data-alert-level="4"] {--buoy-period:2.1s}
  @media (prefers-reduced-motion:reduce) {
    body#royal-blue-app .geographic-marker.gis-beacon.measured > .beacon-wave {animation:none !important;opacity:.35;transform:scale(1.45)}
    body#royal-blue-app .geographic-marker.gis-beacon.measured > .beacon-wave.wave-second {display:none !important}
  }
  /* hero labels: the name only, on one line, centred on its pin; where it sits (right, left, above, below) is chosen by placeCoastalLabels */
  body#royal-blue-app .coastal-frame button.coastal-point[data-citizen-select] .coastal-point-label {position:absolute !important;left:40px !important;right:auto !important;top:50% !important;bottom:auto !important;transform:translateY(-50%) !important;width:auto !important;min-width:0 !important;padding:3px 10px !important;border-radius:999px !important;white-space:nowrap !important;line-height:1 !important}
  body#royal-blue-app .coastal-frame button.coastal-point[data-citizen-select] .coastal-point-label strong {display:block !important;font-size:13px !important;line-height:1.35 !important;text-align:center !important}
  body#royal-blue-app .coastal-frame button.coastal-point[data-citizen-select] .coastal-point-label small, body#royal-blue-app .coastal-frame button.coastal-point[data-citizen-select] .coastal-point-label em {display:none !important}
  body#royal-blue-app .coastal-frame button.coastal-point[data-citizen-select].label-left .coastal-point-label {left:auto !important;right:40px !important}
  body#royal-blue-app .coastal-frame button.coastal-point[data-citizen-select].label-top .coastal-point-label {left:50% !important;top:auto !important;bottom:calc(50% + 19px) !important;transform:translateX(-50%) !important}
  body#royal-blue-app .coastal-frame button.coastal-point[data-citizen-select].label-bottom .coastal-point-label {left:50% !important;top:calc(50% + 19px) !important;bottom:auto !important;transform:translateX(-50%) !important}
  /* diagonal places, for pins that are crowded on every straight side */
  body#royal-blue-app .coastal-frame button.coastal-point[data-citizen-select].label-tr .coastal-point-label {left:calc(50% + 12px) !important;top:auto !important;bottom:calc(50% + 12px) !important;transform:none !important}
  body#royal-blue-app .coastal-frame button.coastal-point[data-citizen-select].label-tl .coastal-point-label {left:auto !important;right:calc(50% + 12px) !important;top:auto !important;bottom:calc(50% + 12px) !important;transform:none !important}
  body#royal-blue-app .coastal-frame button.coastal-point[data-citizen-select].label-br .coastal-point-label {left:calc(50% + 12px) !important;top:calc(50% + 12px) !important;bottom:auto !important;transform:none !important}
  body#royal-blue-app .coastal-frame button.coastal-point[data-citizen-select].label-bl .coastal-point-label {left:auto !important;right:calc(50% + 12px) !important;top:calc(50% + 12px) !important;bottom:auto !important;transform:none !important}
  /* layer switches keep a clear gap from the zoom buttons */
  body#royal-blue-app .river-canvas .river-quality-control {left:62px !important;top:10px !important}
  /* pin = station tile mark: source tile (buoy / cross-section) with the level icon on its corner */
  body#royal-blue-app .geographic-marker.gis-beacon.alert-map-pin > .beacon-core {background:transparent !important;border:0 !important;width:32px !important;height:32px !important;inset:1px !important;box-shadow:none !important;overflow:visible !important}
  /* hero scene: the point is the level icon, its ripple takes the same colour */
  body#royal-blue-app .coastal-point .coastal-point-icon {display:grid;place-items:center;filter:drop-shadow(0 2px 3px rgba(0,30,50,.6))}
  body#royal-blue-app .coastal-point .coastal-point-icon .lvl-icon {display:block}
  body#royal-blue-app .coastal-point.gps-point .coastal-point-icon {top:8.5px !important}
  .pin-source {position:absolute;inset:0;display:grid;place-items:center;border-radius:9px;box-shadow:0 2px 5px rgba(10,30,60,.35)}
  .pin-source svg {width:19px;height:19px;display:block !important}
  .pin-source {background:var(--pin-bg,#809acd) !important;color:var(--pin-ink,#fff) !important;border:2px solid #fff !important}
  body#royal-blue-app .coastal-point .coastal-point-icon {position:absolute;width:27px !important;height:27px !important;left:8.5px !important;top:8.5px !important}
  body#royal-blue-app .coastal-point .coastal-point-icon .pin-source svg {width:15px !important;height:15px !important}
  /* round pins */
  .pin-source {border-radius:50% !important}
  /* hero ripple: two round waves spreading from the centre of the pin, in the level colour */
  body#royal-blue-app .coastal-point .coastal-point-ring {position:absolute !important;left:50% !important;top:50% !important;width:27px !important;height:27px !important;margin:-13.5px 0 0 -13.5px !important;box-sizing:border-box;border:2px solid var(--signal,#809acd) !important;border-radius:50% !important;background:color-mix(in srgb,var(--signal,#809acd) 18%,transparent) !important;box-shadow:none !important;opacity:0;animation:none !important;pointer-events:none}
  body#royal-blue-app .coastal-point .coastal-point-ring::after {content:"";position:absolute;inset:-2px;border:2px solid var(--signal,#809acd);border-radius:50%;opacity:0}
  body#royal-blue-app .coastal-point:is(.has-alert,.gps-point) .coastal-point-ring {animation:pin-spread 2.8s ease-out infinite !important}
  body#royal-blue-app .coastal-point:is(.has-alert,.gps-point) .coastal-point-ring::after {animation:pin-spread 2.8s ease-out infinite 1.4s}
  @media (prefers-reduced-motion:reduce) {
    body#royal-blue-app .coastal-point:is(.has-alert,.gps-point) .coastal-point-ring {animation:none !important;opacity:.35;transform:scale(1.5)}
    body#royal-blue-app .coastal-point:is(.has-alert,.gps-point) .coastal-point-ring::after {animation:none}
  }
}
@keyframes pin-spread {0% {transform:scale(.9);opacity:.75} 70% {opacity:.18} 100% {transform:scale(2.5);opacity:0}}

/* ==== mobile-coastal-points.css ==== */
/* Hero scene on phones: smaller markers with a short name under each, so labels never cover the icons. */
@layer readability {
  @media (max-width:760px) {
    body#royal-blue-app .coastal-frame .coastal-point {width:30px !important;height:30px !important;margin:-15px 0 0 -15px !important}
    body#royal-blue-app .coastal-point .coastal-point-icon {width:23px !important;height:23px !important;left:3.5px !important;top:3.5px !important}
    body#royal-blue-app .coastal-point .coastal-point-icon .pin-source svg {width:13px !important;height:13px !important}
    body#royal-blue-app .coastal-point.gps-point .coastal-point-icon {top:3.5px !important}
    body#royal-blue-app .coastal-point .coastal-point-ring {width:23px !important;height:23px !important;margin:-11.5px 0 0 -11.5px !important}
    body#royal-blue-app .coastal-point .coastal-point-label,
    body#royal-blue-app .coastal-point[data-citizen-select] .coastal-point-label {left:50% !important;top:calc(100% + 1px) !important;transform:translateX(-50%);min-width:0 !important;padding:1px 6px !important;border-radius:8px !important;text-align:center}
    body#royal-blue-app .coastal-point.gps-point .coastal-point-label {top:calc(100% + 1px) !important}
    body#royal-blue-app .coastal-point .coastal-point-label strong {justify-content:center;gap:4px;font-size:11.5px !important;line-height:1.35 !important}
    body#royal-blue-app .coastal-point .coastal-point-label small {display:none !important}
    body#royal-blue-app .coastal-point .coastal-point-label em {font-size:8.5px !important;padding:0 3px !important}
    /* the GPS buoy sits among the sections: its name goes to the right so it never covers S8 */
    body#royal-blue-app .coastal-point.gps-point .coastal-point-label {left:calc(100% + 1px) !important;top:-8px !important;transform:none}
    /* TG13 is next to the buoy: its name sits below, shifted left */
    body#royal-blue-app .coastal-point[data-citizen-select="TG13"] .coastal-point-label {left:auto !important;right:calc(50% - 4px) !important;top:calc(100% + 1px) !important;transform:none}
  }
}

/* ==== admin-reports.css ==== */
/* Status block of Quản trị > Báo cáo tuần và sao lưu. */
@layer readability {
  .admin-reports {display:grid;gap:12px;font-size:14px;color:#2d4e7a}
  .admin-reports h4 {margin:10px 0 0 !important;font-size:12px !important;letter-spacing:.08em;text-transform:uppercase;color:#175adb !important;font-weight:800 !important}
  .admin-reports .ar-loading {margin:0;color:#62758d}
  .admin-reports .ar-warning {display:flex !important;align-items:flex-start;gap:8px;margin:0 !important;padding:10px 12px !important;border:1px solid #f0dcae;border-radius:10px;background:#fff7e6;color:#6f4a05 !important;line-height:1.55}
  .admin-reports .ar-warning svg {flex:none;margin-top:2px;color:#b76600}
  .admin-reports .ar-summary {display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}
  .admin-reports .ar-summary > div {display:grid;gap:2px;padding:12px 14px;border:1px solid #dbe7fb;border-radius:12px;background:#f5f9ff}
  .admin-reports .ar-summary span {font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#62758d}
  .admin-reports .ar-summary strong {font-size:15px;line-height:1.4;color:#133858;white-space:normal !important}
  .admin-reports .ar-summary small {color:#62758d;line-height:1.5}
  .admin-reports .ar-list {display:grid;margin:0 !important;padding:0 !important;list-style:none;border:1px solid #e3ecf8;border-radius:12px;background:#fff;overflow:hidden}
  .admin-reports .ar-list li {display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 14px;border-top:1px solid #edf2fa;line-height:1.45;white-space:normal !important}
  .admin-reports .ar-list li:first-child {border-top:0}
  .admin-reports .ar-list b {color:#133858}
  .admin-reports .ar-list small {display:block;color:#62758d;font-size:12px !important;line-height:1.4}
  .admin-reports .ar-empty {display:block !important;color:#62758d;font-style:italic}
  .admin-reports .ar-people li {grid-template-columns:auto minmax(0,1fr);justify-content:start}
  .admin-reports .ar-people li svg {color:#175adb}
  .admin-reports .ar-people li > span {display:grid;min-width:0;overflow-wrap:anywhere}
  .admin-reports .ar-stations li {grid-template-columns:auto minmax(0,1.1fr) minmax(0,1.2fr) auto}
  .admin-reports .ar-dot {width:10px;height:10px;border-radius:50%;background:#1f9d62;box-shadow:0 0 0 3px #d6f1e4}
  .admin-reports .ar-down .ar-dot {background:#ff382c;box-shadow:0 0 0 3px #ffd9d6}
  .admin-reports .ar-runs li {grid-template-columns:minmax(120px,.8fr) minmax(0,1fr) auto;row-gap:2px}
  .admin-reports .ar-runs .ar-note {grid-column:1 / -1;color:#51647c;font-size:12.5px;overflow-wrap:anywhere}
  .admin-reports .ar-runs .ar-note:empty {display:none}
  .admin-reports .ar-time {font-weight:700;color:#36516f}
  .admin-reports .ar-backups li {grid-template-columns:minmax(0,1.6fr) auto auto auto}
  .admin-reports .ar-file {display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}
  .admin-reports .ar-file svg {flex:none;color:#175adb}
  .admin-reports .ar-when {color:#51647c;font-size:13px}
  .admin-reports .ar-link {font-weight:700;color:#175adb;text-decoration:none}
  .admin-reports .ar-link:hover {text-decoration:underline}
  .admin-reports .ar-chip {display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.4;white-space:nowrap}
  .admin-reports .ar-ok {background:#e0f5ea;color:#14683f}
  .admin-reports .ar-warn {background:#fff0c2;color:#7a5600}
  .admin-reports .ar-bad {background:#fde3e0;color:#a8261d}
  .admin-reports .ar-muted {background:#edf2fa;color:#51647c}
  .admin-reports .ar-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
  .admin-reports .ar-hint {margin:0 !important;font-size:12.5px !important;line-height:1.55;color:#62758d !important}
  @media (max-width:640px) {
    .admin-reports .ar-stations li,.admin-reports .ar-backups li {grid-template-columns:1fr auto}
    .admin-reports .ar-stations .ar-dot {display:none}
    .admin-reports .ar-runs li {grid-template-columns:1fr auto}
    .admin-reports .ar-runs .ar-time {grid-column:1 / -1}
  }
}

/* ==== help-center.css ==== */
/* "Hỗ trợ & hướng dẫn": help hub, articles, "Cách đọc số liệu", "Sẵn sàng vận hành", the sidebar group and the help links. */
@layer readability {
  /* ------------------------------------------------------------------ sidebar group */
  body#royal-blue-app #navigation .rb-support {margin:8px 0 0 !important;padding:8px 0 0 !important;border-top:1px solid #e3ecf8}
  body#royal-blue-app #navigation .rb-support > summary {display:flex !important;align-items:center;gap:10px;padding:10px 12px !important;border-radius:10px;font-size:13.5px !important;font-weight:700 !important;color:#36516f !important;cursor:pointer;list-style:none;user-select:none}
  body#royal-blue-app #navigation .rb-support > summary::-webkit-details-marker {display:none}
  body#royal-blue-app #navigation .rb-support > summary:hover {background:#eef4ff}
  body#royal-blue-app #navigation .rb-support > summary:focus-visible {outline:3px solid #aac8ff;outline-offset:1px}
  body#royal-blue-app #navigation .rb-support > summary svg {flex:none;color:#175adb}
  body#royal-blue-app #navigation .rb-support[open] > summary {color:#175adb !important}
  body#royal-blue-app #navigation .rb-support-chevron {margin-left:auto;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
  body#royal-blue-app #navigation .rb-support[open] .rb-support-chevron {transform:rotate(45deg)}
  body#royal-blue-app #navigation .rb-support .nav-item {margin-left:0}

  /* ------------------------------------------------------- topbar help button, heading link */
  /* Nút trợ giúp và chuông cảnh báo đồng nhất: lúc nghỉ chỉ có icon, hover mới hiện nền + nổi lên (hiệu ứng chung của .icon-button) */
  body#royal-blue-app .topbar .help-button[hidden] {display:none}
  @media (min-width:701px) {
    body#royal-blue-app .topbar :is(#help-button,#notification-button) {position:relative;display:grid;place-items:center;flex:none;width:40px !important;height:40px !important;min-width:40px !important;padding:0 !important;box-sizing:border-box;border:1px solid transparent !important;border-radius:12px !important;background:transparent !important;color:#245bba;text-decoration:none}
    body#royal-blue-app .topbar #help-button[hidden] {display:none}
    body#royal-blue-app .topbar :is(#help-button,#notification-button):not(:disabled):hover {background:var(--hv-tint-strong,#eaf2ff) !important}
    body#royal-blue-app .topbar :is(#help-button,#notification-button):focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
    body#royal-blue-app .topbar #notification-button .notification-count {top:-6px !important;right:-6px !important;border:2px solid #fff !important}
  }
  body#royal-blue-app .head-actions .hc-page-help {display:inline-flex !important;align-items:center;gap:6px;min-height:36px;padding:0 12px !important;border:1px solid #cfe0fb !important;border-radius:10px !important;background:#fff !important;color:#245bba !important;font-size:13px !important;font-weight:700;text-decoration:none}
  body#royal-blue-app .head-actions .hc-page-help:hover {background:#eef4ff !important}
  @media (max-width:760px) {
    body#royal-blue-app .topbar #help-button {display:none}
    body#royal-blue-app .head-actions .hc-page-help span {display:none}
    body#royal-blue-app .head-actions .hc-page-help {width:44px !important;min-width:44px !important;flex:0 0 44px !important;justify-content:center;padding:0 !important}
  }

  /* ------------------------------------------------------------------------- shared */
  body#royal-blue-app .hc-page {display:grid;grid-template-columns:minmax(0,1fr);gap:18px;color:#2d4e7a}
  body#royal-blue-app .hc-page > * {min-width:0}
  body#royal-blue-app .hc-page :is(h2,h3,h4,p,ul,ol,dl,dd) {margin:0}
  body#royal-blue-app .hc-page h2 {font-size:20px !important;line-height:1.35 !important;color:#133858 !important;font-weight:800 !important}
  body#royal-blue-app .hc-page h3 {font-size:16px !important;line-height:1.4 !important;color:#133858 !important;font-weight:800 !important}
  body#royal-blue-app .hc-page h4 {font-size:12px !important;letter-spacing:.08em;text-transform:uppercase;color:#175adb !important;font-weight:800 !important}
  body#royal-blue-app .hc-page p,body#royal-blue-app .hc-page li,body#royal-blue-app .hc-page dd {font-size:14.5px;line-height:1.7;color:#36516f}
  body#royal-blue-app .hc-page a {color:#175adb}
  body#royal-blue-app .hc-page code {padding:1px 6px;border-radius:6px;background:#eef3fb;color:#133858;font-size:.92em}
  body#royal-blue-app .hc-page mark {padding:0 2px;border-radius:3px;background:#ffe9a8;color:inherit}
  body#royal-blue-app .hc-page .card {border-radius:12px !important;border-color:#dbe7fb !important;padding:20px 22px !important}
  body#royal-blue-app .hc-page .hc-fine {font-size:12.5px;line-height:1.6;color:#62758d}
  body#royal-blue-app .hc-page .hc-lead {font-size:14.5px;color:#51647c}
  body#royal-blue-app .hc-chip {display:inline-flex;align-items:center;min-height:32px;padding:0 13px;border:1px solid #cfe0fb;border-radius:999px;background:#fff;color:#245bba !important;font:inherit;font-size:13px;font-weight:600;text-decoration:none;cursor:pointer;white-space:nowrap}
  body#royal-blue-app .hc-chip:hover {background:#eef4ff}
  body#royal-blue-app .hc-chip:focus-visible,body#royal-blue-app .hc-card:focus-visible,body#royal-blue-app .hc-task:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .hc-section {display:grid;gap:14px}
  body#royal-blue-app #hc-browse {display:grid;gap:20px;min-width:0}
  body#royal-blue-app #hc-browse > .hc-section:not(.card) {margin-top:12px}
  body#royal-blue-app .hc-section-head {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
  body#royal-blue-app .hc-switch {display:inline-flex;align-items:center;gap:8px;font-size:13px;color:#51647c;cursor:pointer}

  /* ------------------------------------------------------------------------ search */
  body#royal-blue-app .hc-hero {display:grid;gap:12px;padding:24px 26px;border:1px solid #cfe0fb;border-radius:16px;background:linear-gradient(135deg,#e9f1ff 0%,#f5f9ff 55%,#e6f5fa 100%)}
  body#royal-blue-app .hc-hero label {font-size:18px;font-weight:800;color:#133858}
  body#royal-blue-app .hc-search {position:relative;display:flex;align-items:center;gap:10px;height:54px;padding:0 14px;border:1.5px solid #b8cff5;border-radius:14px;background:#fff;box-shadow:0 2px 10px rgba(23,90,219,.08)}
  body#royal-blue-app .hc-search:focus-within {border-color:#175adb;box-shadow:0 0 0 4px rgba(23,90,219,.16)}
  body#royal-blue-app .hc-search > svg {flex:none;color:#62758d}
  body#royal-blue-app .hc-search input {flex:1;min-width:0;height:100%;border:0 !important;outline:0 !important;background:transparent !important;box-shadow:none !important;font:inherit;font-size:16px !important;color:#133858 !important;padding:0 !important}
  body#royal-blue-app .hc-search input::placeholder {color:#8a9bb2}
  body#royal-blue-app .hc-search input::-webkit-search-cancel-button,body#royal-blue-app .hc-search input::-webkit-search-decoration {-webkit-appearance:none;appearance:none;display:none}
  body#royal-blue-app .hc-clear {display:grid;place-items:center;flex:none;width:30px;height:30px;border:0;border-radius:50%;background:#eef3fb;color:#51647c;cursor:pointer}
  body#royal-blue-app .hc-clear[hidden] {display:none}
  body#royal-blue-app .hc-suggest {display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;color:#62758d}
  body#royal-blue-app .hc-results {display:grid;gap:16px}
  body#royal-blue-app .hc-results[hidden],body#royal-blue-app #hc-browse[hidden] {display:none}
  body#royal-blue-app .hc-results-head p {color:#8a5a00}
  body#royal-blue-app .hc-rgroup {display:grid;gap:8px}
  body#royal-blue-app .hc-result {display:flex;align-items:center;gap:14px;padding:12px 14px;border:1px solid #dbe7fb;border-radius:12px;background:#fff;text-decoration:none;color:inherit}
  body#royal-blue-app .hc-result:hover {border-color:#9ec0f7;box-shadow:0 4px 14px rgba(23,90,219,.1)}
  body#royal-blue-app .hc-result > svg {flex:none;margin-left:auto;color:#8a9bb2}
  body#royal-blue-app .hc-rbody {display:grid;gap:2px;min-width:0}
  body#royal-blue-app .hc-rbody strong {font-size:15px;color:#133858}
  body#royal-blue-app .hc-rbody small {font-size:13px !important;line-height:1.5;color:#62758d}
  body#royal-blue-app .hc-empty {display:grid;justify-items:center;gap:8px;padding:34px 16px;text-align:center;border:1px dashed #b8cff5;border-radius:14px;background:#fff}
  body#royal-blue-app .hc-empty > svg {color:#8a9bb2}

  /* ---------------------------------------------------------------- hub sections */
  body#royal-blue-app .hc-jump {display:flex;gap:8px;flex-wrap:wrap}
  body#royal-blue-app .hc-role {display:grid;gap:14px}
  body#royal-blue-app .hc-role-main {display:flex;align-items:center;gap:14px}
  body#royal-blue-app .hc-avatar {display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#175adb,#2b9fd6);color:#fff;font-size:16px;font-weight:800}
  body#royal-blue-app .hc-role-main strong {font-size:16px;color:#133858}
  body#royal-blue-app .hc-role-start {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
  body#royal-blue-app .hc-role-start > span {font-size:13px;color:#62758d}
  body#royal-blue-app .hc-quick {display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
  body#royal-blue-app .hc-task {display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid #dbe7fb;border-radius:12px;background:#fff;color:#133858 !important;font-size:14.5px;font-weight:700;text-decoration:none}
  body#royal-blue-app .hc-task svg {flex:none;color:#175adb}
  body#royal-blue-app .hc-task:hover {border-color:#9ec0f7;box-shadow:0 4px 14px rgba(23,90,219,.1)}
  body#royal-blue-app .hc-category {display:grid;gap:12px;margin-top:6px}
  body#royal-blue-app .hc-category > h3 {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
  body#royal-blue-app .hc-category > h3 small {font-size:13px !important;font-weight:400;color:#62758d}
  body#royal-blue-app .hc-cat-dot {display:inline-grid;place-items:center;width:28px;height:28px;border-radius:9px}
  body#royal-blue-app .hc-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px}
  body#royal-blue-app .hc-card {display:grid;grid-template-columns:auto 1fr;gap:6px 14px;align-content:start;padding:16px;border:1px solid #dbe7fb;border-radius:14px;background:#fff;color:inherit;text-decoration:none}
  body#royal-blue-app .hc-card:hover {border-color:#9ec0f7;box-shadow:0 6px 18px rgba(23,90,219,.12);transform:translateY(-1px)}
  body#royal-blue-app .hc-card.hc-dim {background:#fafcff;opacity:.78}
  body#royal-blue-app .hc-card-icon {display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:12px}
  body#royal-blue-app .hc-card-body {display:grid;gap:4px;min-width:0}
  body#royal-blue-app .hc-card-body strong {font-size:15.5px;line-height:1.4;color:#133858}
  body#royal-blue-app .hc-card-body small {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px !important;line-height:1.55;color:#62758d}
  body#royal-blue-app .hc-card-foot {grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:6px;border-top:1px solid #edf2fa;color:#8a9bb2}
  body#royal-blue-app .hc-aud {font-size:12px;font-weight:700;color:#51647c}
  body#royal-blue-app .hc-cat-bat-dau {background:#e6efff;color:#175adb}
  body#royal-blue-app .hc-cat-theo-doi {background:#dff6f4;color:#0d8f86}
  body#royal-blue-app .hc-cat-nghiep-vu {background:#efe9ff;color:#6a4fd6}
  body#royal-blue-app .hc-cat-quan-tri {background:#fff1dc;color:#b76600}
  body#royal-blue-app .hc-readcta {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
  body#royal-blue-app .hc-faqlist {display:grid;gap:8px}
  body#royal-blue-app .hc-q {border:1px solid #dbe7fb;border-radius:12px;background:#fff}
  body#royal-blue-app .hc-q > summary {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;font-size:15px;font-weight:700;color:#133858;cursor:pointer;list-style:none}
  body#royal-blue-app .hc-q > summary::-webkit-details-marker {display:none}
  body#royal-blue-app .hc-q > summary::after {content:"";flex:none;width:9px;height:9px;border-right:2px solid #62758d;border-bottom:2px solid #62758d;transform:rotate(45deg);transition:transform .15s}
  body#royal-blue-app .hc-q[open] > summary::after {transform:rotate(-135deg)}
  body#royal-blue-app .hc-q[open] > summary {border-bottom:1px solid #edf2fa}
  body#royal-blue-app .hc-q .hc-a {display:grid;gap:8px;padding:14px 16px 16px}
  body#royal-blue-app .hc-q .hc-more {font-size:13px;color:#62758d}
  body#royal-blue-app .hc-gloss {display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
  body#royal-blue-app .hc-gloss > div {padding:12px 14px;border:1px solid #dbe7fb;border-radius:12px;background:#fff}
  body#royal-blue-app .hc-gloss dt {font-size:14.5px;font-weight:800;color:#133858}
  body#royal-blue-app .hc-gloss dd {font-size:13.5px;line-height:1.6}
  body#royal-blue-app .hc-contact {display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:14px;align-items:start}
  body#royal-blue-app .hc-contact-card,body#royal-blue-app .hc-info-card {display:grid;gap:10px}
  body#royal-blue-app .hc-contact-card h3,body#royal-blue-app .hc-info-card h3 {display:flex;align-items:center;gap:8px}
  body#royal-blue-app .hc-contact-card ul {display:grid;gap:4px;padding:0;list-style:none}
  body#royal-blue-app .hc-contact-card ul.hc-bullets {padding-left:18px;list-style:disc}
  body#royal-blue-app .hc-actions {display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
  body#royal-blue-app .hc-info-card dl {display:grid;gap:0;margin:0}
  body#royal-blue-app .hc-info-card dl > div {display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-top:1px solid #edf2fa}
  body#royal-blue-app .hc-info-card dt {font-size:13px;color:#62758d}
  body#royal-blue-app .hc-info-card dd {font-size:13.5px;font-weight:700;color:#133858;text-align:right;overflow-wrap:anywhere}
  body#royal-blue-app .hc-unknown {margin-bottom:14px}

  /* ---------------------------------------------------------------------- articles */
  body#royal-blue-app .hc-crumbs {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:-4px 0 14px;font-size:13px;color:#62758d}
  body#royal-blue-app .hc-crumbs a {color:#175adb;text-decoration:none;font-weight:600}
  body#royal-blue-app .hc-article-wrap {display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}
  body#royal-blue-app .hc-article {display:grid;gap:18px;min-width:0}
  body#royal-blue-app .hc-article .hc-h {margin-top:4px}
  body#royal-blue-app .hc-audience {display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:10px;background:#eef4ff;font-size:13px !important;color:#245bba !important}
  body#royal-blue-app .hc-audience.hc-audience-other {background:#fff7e6;color:#7a5600 !important}
  body#royal-blue-app .hc-audience svg {flex:none}
  body#royal-blue-app .hc-steps {display:grid;gap:12px}
  body#royal-blue-app .hc-steps ol {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr));gap:12px;margin:0;padding:0;list-style:none;counter-reset:hc}
  body#royal-blue-app .hc-steps li {position:relative;display:grid;align-content:start;gap:4px;padding:14px 16px 14px 58px;border:1px solid #dbe7fb;border-radius:12px;background:#fafcff;counter-increment:hc}
  body#royal-blue-app .hc-steps li::before {content:counter(hc);position:absolute;left:14px;top:14px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#175adb;color:#fff;font-size:14px;font-weight:800}
  body#royal-blue-app .hc-steps li strong {font-size:15px;color:#133858}
  body#royal-blue-app .hc-listing {display:grid;gap:8px}
  body#royal-blue-app .hc-listing ul {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:10px;margin:0;padding:0;list-style:none}
  body#royal-blue-app .hc-listing li {padding:10px 14px;border:1px solid #dbe7fb;border-radius:10px;background:#fafcff}
  body#royal-blue-app .hc-note {display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border-radius:12px;border:1px solid}
  body#royal-blue-app .hc-note > svg {flex:none;margin-top:2px}
  body#royal-blue-app .hc-note > div {display:grid;gap:2px}
  body#royal-blue-app .hc-note b {font-size:12px;letter-spacing:.06em;text-transform:uppercase}
  body#royal-blue-app .hc-note p {font-size:14px}
  body#royal-blue-app .hc-note-note {background:#f0f6ff;border-color:#cfe0fb}
  body#royal-blue-app .hc-note-note > svg,body#royal-blue-app .hc-note-note b {color:#175adb}
  body#royal-blue-app .hc-note-tip {background:#eaf7f0;border-color:#bfe6d1}
  body#royal-blue-app .hc-note-tip > svg,body#royal-blue-app .hc-note-tip b {color:#14683f}
  body#royal-blue-app .hc-note-warn {background:#fff7e6;border-color:#f0dcae}
  body#royal-blue-app .hc-note-warn > svg,body#royal-blue-app .hc-note-warn b {color:#9a5b00}
  body#royal-blue-app .hc-table-wrap {overflow-x:auto;border:1px solid #dbe7fb;border-radius:12px}
  body#royal-blue-app .hc-table-wrap table {width:100%;border-collapse:collapse;background:#fff}
  body#royal-blue-app .hc-table-wrap th,body#royal-blue-app .hc-table-wrap td {padding:10px 14px !important;border-bottom:1px solid #edf2fa;font-size:14px !important;line-height:1.55;text-align:left;vertical-align:top;white-space:normal !important;color:#36516f}
  body#royal-blue-app .hc-table-wrap thead th {background:#f5f9ff;font-size:12px !important;letter-spacing:.04em;text-transform:uppercase;color:#62758d}
  body#royal-blue-app .hc-table-wrap tbody th {font-weight:800;color:#133858;width:26%}
  body#royal-blue-app .hc-table-wrap tbody tr:last-child > * {border-bottom:0}
  body#royal-blue-app .hc-side {display:grid;gap:12px;min-width:0}
  body#royal-blue-app .hc-side-card {display:grid;gap:10px;padding:16px;border:1px solid #dbe7fb;border-radius:12px;background:#fff}
  body#royal-blue-app .hc-side-card h3 {font-size:12px !important;letter-spacing:.08em;text-transform:uppercase;color:#175adb !important}
  body#royal-blue-app .hc-side-card ul {display:grid;gap:2px;margin:0;padding:0;list-style:none}
  body#royal-blue-app .hc-side-card li a {display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:8px;font-size:13.5px;line-height:1.45;color:#36516f;text-decoration:none}
  body#royal-blue-app .hc-side-card li a:hover {background:#eef4ff}
  body#royal-blue-app .hc-side-card li a.is-current {background:#e6efff;color:#175adb;font-weight:700}
  body#royal-blue-app .hc-side-card li svg {flex:none;color:#175adb}
  body#royal-blue-app .hc-open .hc-open-btn {width:100%;justify-content:center}
  body#royal-blue-app .hc-locked {display:flex;align-items:flex-start;gap:8px;font-size:13.5px;color:#7a5600}
  body#royal-blue-app .hc-side-help p {font-size:13.5px}
  body#royal-blue-app .hc-side-help a {display:inline-flex;align-items:center;gap:8px;font-weight:700;text-decoration:none}
  body#royal-blue-app .hc-article :is(.hc-p,.hc-note p,.hc-a p) {max-width:90ch}
  body#royal-blue-app .hc-pager {display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
  body#royal-blue-app .hc-pager a {display:grid;gap:2px;padding:12px 16px;border:1px solid #dbe7fb;border-radius:12px;background:#fff;text-decoration:none}
  body#royal-blue-app .hc-pager a:hover {border-color:#9ec0f7}
  body#royal-blue-app .hc-pager small {font-size:12px !important;letter-spacing:.06em;text-transform:uppercase;color:#62758d}
  body#royal-blue-app .hc-pager span {font-size:14.5px;font-weight:700;color:#133858}
  body#royal-blue-app .hc-pager .hc-next {text-align:right}

  /* ----------------------------------------------------------------- reading guide */
  body#royal-blue-app .hc-block {display:grid;gap:14px}
  body#royal-blue-app .hc-levels {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:12px}
  body#royal-blue-app .hc-level {display:flex;gap:14px;padding:14px 16px;border:1px solid #dbe7fb;border-radius:12px;background:#fff}
  body#royal-blue-app .hc-level-icon {flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#f5f9ff}
  body#royal-blue-app .hc-level > div {display:grid;gap:4px;min-width:0}
  body#royal-blue-app .hc-level strong {font-size:16px;color:#133858}
  body#royal-blue-app .hc-level .hc-do {padding:8px 12px;border-radius:10px;background:#f5f9ff;color:#2d4e7a}
  body#royal-blue-app .hc-shapes {display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
  body#royal-blue-app .hc-shapes > div {display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #edf2fa;border-radius:12px;background:#fafcff;font-size:13.5px;color:#36516f}
  body#royal-blue-app .hc-pins {display:grid;gap:10px}
  body#royal-blue-app .hc-pins > div {display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:10px 14px;border-radius:12px;background:linear-gradient(135deg,#e7f3f7,#dceaf0)}
  body#royal-blue-app .hc-pins b {min-width:70px;color:#133858}
  body#royal-blue-app .hc-pins > div > span {display:flex;gap:12px;flex-wrap:wrap}
  body#royal-blue-app .hc-pin {position:relative;display:inline-block;width:34px;height:34px}
  body#royal-blue-app .hc-sources,body#royal-blue-app .hc-quality {display:grid;margin:0;padding:0;list-style:none}
  body#royal-blue-app .hc-sources li,body#royal-blue-app .hc-quality li {display:grid;grid-template-columns:190px minmax(0,1fr);align-items:start;gap:6px 16px;padding:12px 0;border-top:1px solid #edf2fa}
  body#royal-blue-app .hc-sources li:first-child,body#royal-blue-app .hc-quality li:first-child {border-top:0}
  body#royal-blue-app .hc-sources .badge,body#royal-blue-app .hc-quality .badge {justify-self:start}
  body#royal-blue-app .hc-facts {display:grid;gap:8px;margin:0;padding-left:20px}
  body#royal-blue-app .hc-compare {display:grid;grid-template-columns:1fr 1fr;gap:12px}
  body#royal-blue-app .hc-compare > div {display:grid;gap:6px;padding:14px 16px;border:1px solid #dbe7fb;border-radius:12px;background:#f8fbff}
  body#royal-blue-app .hc-next {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}

  /* --------------------------------------------------------------- readiness page */
  body#royal-blue-app .hc-gate-banner {display:flex;align-items:flex-start;gap:12px;margin:0;padding:14px 16px;border-radius:12px;border:1px solid;font-size:14.5px;line-height:1.6}
  body#royal-blue-app .hc-gate-banner > svg {flex:none;margin-top:1px}
  body#royal-blue-app .hc-gate-info {background:#f0f6ff;border-color:#cfe0fb;color:#245bba}
  body#royal-blue-app .hc-gate-ok {background:#eaf7f0;border-color:#bfe6d1;color:#14683f}
  body#royal-blue-app .hc-gate-warn {background:#fff7e6;border-color:#f0dcae;color:#7a5600}
  body#royal-blue-app .hc-progress {display:grid;gap:12px}
  body#royal-blue-app .hc-progress-top {display:flex;align-items:baseline;justify-content:space-between;gap:12px}
  body#royal-blue-app .hc-progress-top strong {font-size:17px;color:#133858}
  body#royal-blue-app .hc-progress-top span {font-size:22px;font-weight:800;color:#175adb}
  body#royal-blue-app .hc-bar {height:10px;border-radius:999px;background:#e6eefb;overflow:hidden}
  body#royal-blue-app .hc-bar i {display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#175adb,#2b9fd6)}
  body#royal-blue-app .hc-todo {display:grid;gap:6px;margin:0;padding:0;list-style:none}
  body#royal-blue-app .hc-todo a {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 12px;padding:10px 14px;border:1px solid #dbe7fb;border-radius:12px;background:#fafcff;text-decoration:none}
  body#royal-blue-app .hc-todo a:hover {border-color:#9ec0f7}
  body#royal-blue-app .hc-todo-static {display:grid;gap:2px;padding:10px 14px;border:1px solid #dbe7fb;border-radius:12px;background:#fafcff}
  body#royal-blue-app .hc-locked-card {display:grid;gap:12px;justify-items:start}
  body#royal-blue-app .hc-todo span {font-size:14.5px;font-weight:700;color:#133858}
  body#royal-blue-app .hc-todo small {grid-column:1;font-size:13px !important;line-height:1.5;color:#62758d}
  body#royal-blue-app .hc-todo svg {grid-row:1 / span 2;grid-column:2;color:#8a9bb2}
  body#royal-blue-app .hc-gate-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px}
  body#royal-blue-app .hc-gate {display:grid;gap:12px;align-content:start;border-top:4px solid #dbe7fb !important}
  body#royal-blue-app .hc-gate-ok {border-top-color:#1f9d62 !important}
  body#royal-blue-app .hc-gate-info.hc-gate {border-top-color:#175adb !important}
  body#royal-blue-app .hc-gate-warn.hc-gate {border-top-color:#f5c000 !important}
  body#royal-blue-app .hc-gate-bad {border-top-color:#e5251b !important}
  body#royal-blue-app .hc-gate header {display:grid;gap:8px}
  body#royal-blue-app .hc-state {justify-self:start;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:800}
  body#royal-blue-app .hc-state-ok {background:#e0f5ea;color:#14683f}
  body#royal-blue-app .hc-state-info {background:#e6efff;color:#245bba}
  body#royal-blue-app .hc-state-warn {background:#fff0c2;color:#7a5600}
  body#royal-blue-app .hc-state-bad {background:#fde3e0;color:#a8261d}
  body#royal-blue-app .hc-gate dl {display:grid;gap:8px;margin:0}
  body#royal-blue-app .hc-gate dl > div {display:grid;gap:1px}
  body#royal-blue-app .hc-gate dt {font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#62758d}
  body#royal-blue-app .hc-gate dd {font-size:14px;line-height:1.6}
  body#royal-blue-app .hc-gate .hc-gate-what {color:#51647c}
  body#royal-blue-app .hc-tech summary {cursor:pointer;font-size:13px;font-weight:700;color:#175adb}
  body#royal-blue-app .hc-tech ul {margin:8px 0 0;padding-left:18px}
  body#royal-blue-app .hc-tech li {font-size:13px;line-height:1.6;color:#51647c;overflow-wrap:anywhere}
  body#royal-blue-app .hc-gate .btn {justify-self:start}

  /* ------------------------------------------------------------------------ narrow */
  @media (max-width:1280px) {
    body#royal-blue-app .hc-article-wrap {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .hc-side {grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));align-items:start}
  }
  @media (max-width:980px) {
    body#royal-blue-app .hc-contact {grid-template-columns:minmax(0,1fr)}
  }
  @media (max-width:760px) {
    body#royal-blue-app .hc-page {gap:14px}
    body#royal-blue-app .hc-page .card {padding:16px !important}
    body#royal-blue-app .hc-hero {padding:16px;border-radius:14px}
    body#royal-blue-app .hc-hero label {font-size:16px}
    body#royal-blue-app .hc-search {height:50px}
    body#royal-blue-app .hc-jump {flex-wrap:nowrap;overflow-x:auto;margin:0 -2px;padding:2px 2px 6px;scrollbar-width:none}
    body#royal-blue-app .hc-jump::-webkit-scrollbar {display:none}
    body#royal-blue-app .hc-quick,body#royal-blue-app .hc-grid {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .hc-card {padding:14px}
    body#royal-blue-app .hc-gloss {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .hc-compare,body#royal-blue-app .hc-pager {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .hc-pager .hc-next {text-align:left}
    body#royal-blue-app .hc-sources li,body#royal-blue-app .hc-quality li {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .hc-level {gap:12px}
    body#royal-blue-app .hc-level-icon {width:42px;height:42px}
    body#royal-blue-app .hc-gate-grid {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .hc-actions .btn {flex:1 1 100%;justify-content:center}
    body#royal-blue-app .hc-info-card dl > div {flex-direction:column;gap:2px}
    body#royal-blue-app .hc-info-card dd {text-align:left}
    /* tables become one card per row */
    body#royal-blue-app .hc-table-wrap {border:0;overflow:visible}
    body#royal-blue-app .hc-table-wrap :is(table,tbody,tr,th,td) {display:block;width:auto}
    body#royal-blue-app .hc-table-wrap thead {display:none}
    body#royal-blue-app .hc-table-wrap tr {margin-bottom:10px;border:1px solid #dbe7fb;border-radius:12px;background:#fff;overflow:hidden}
    body#royal-blue-app .hc-table-wrap tbody th {width:auto;background:#f5f9ff;border-bottom:1px solid #edf2fa}
    body#royal-blue-app .hc-table-wrap td {border-bottom:1px solid #edf2fa}
    body#royal-blue-app .hc-table-wrap td::before {content:attr(data-label);display:block;margin-bottom:2px;font-size:11.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#8a9bb2}
    body#royal-blue-app .hc-table-wrap td:empty {display:none}
    body#royal-blue-app .hc-table-wrap tr > :last-child {border-bottom:0}
  }
  @media (prefers-reduced-motion:reduce) {
    body#royal-blue-app .hc-card {transform:none !important}
    body#royal-blue-app #navigation .rb-support-chevron {transition:none}
  }
}

/* Hint line under a form field (manual measurement: time and slip code). */
@layer readability {
  body#royal-blue-app .field .field-hint {display:block;margin-top:4px;font-size:12.5px !important;line-height:1.5 !important;color:#62758d !important;font-weight:400}
}

/* Chart note below the plot: what the hatched bands mean (kept outside the drawing so it never covers the line). */
@layer readability {
  body#royal-blue-app .chart-frame .chart-gap-note {display:flex;align-items:center;gap:8px;margin:6px 0 0;font-size:12.5px !important;line-height:1.4 !important;color:#62758d !important}
  body#royal-blue-app .chart-frame .chart-gap-note i {flex:none;width:16px;height:12px;border:1px solid #c5d3e6;border-radius:3px;background:repeating-linear-gradient(135deg,#eef2f8 0 3px,#d4deec 3px 4px)}
}

/* Alert thresholds under a chart: one chip per level, written out because the bands only draw inside the plotted range. */
@layer readability {
  body#royal-blue-app .chart-legend .chart-threshold-note {display:grid;gap:10px;flex:1 1 100%;order:3;margin-top:6px;padding:12px 14px;border:1px solid #dbe7fb;border-radius:12px;background:#f8fbff;color:#36516f !important;font-size:13px !important;line-height:1.4 !important}
  body#royal-blue-app .chart-threshold-note .th-head {display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}
  body#royal-blue-app .chart-threshold-note .th-head strong {font-size:13.5px !important;color:#133858 !important}
  body#royal-blue-app .chart-threshold-note .th-head small {max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:1px 8px;border-radius:999px;background:#eaf1fc;color:#4a6285 !important;font-size:11.5px !important}
  body#royal-blue-app .chart-threshold-note .th-now {display:inline-flex;align-items:center;gap:7px;margin-left:auto;padding:3px 10px;border-radius:999px;background:#fff;border:1px solid color-mix(in srgb,var(--lv) 40%,#fff);color:#36516f !important;font-size:12.5px !important}
  body#royal-blue-app .chart-legend .chart-threshold-note .th-now i {display:inline-block;flex:none;width:9px !important;height:9px !important;min-width:0;border-radius:50% !important;background:var(--lv) !important;border:0 !important}
  body#royal-blue-app .chart-threshold-note .th-now b {color:#133858}
  body#royal-blue-app .chart-threshold-note .th-rules {display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:0;padding:0;list-style:none}
  body#royal-blue-app .chart-threshold-note .th-rules li {display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:2px 10px;padding:8px 10px;border:1px solid color-mix(in srgb,var(--lv) 30%,#fff);border-left:4px solid var(--lv);border-radius:9px;background:#fff}
  body#royal-blue-app .chart-threshold-note .th-rules li b {grid-row:1 / span 2;align-self:center;padding:2px 7px;border-radius:6px;background:color-mix(in srgb,var(--lv) 14%,#fff);color:var(--lv);font-size:12.5px;font-weight:800}
  body#royal-blue-app .chart-threshold-note .th-cond {font-size:15px;font-weight:800;color:#133858}
  body#royal-blue-app .chart-threshold-note .th-cond small {font-size:11.5px !important;font-weight:600;color:#62758d !important}
  body#royal-blue-app .chart-threshold-note .th-name {grid-column:2;font-size:12px;color:#62758d}
  body#royal-blue-app .chart-threshold-note .th-empty {margin:0;color:#62758d}
  @media (max-width:560px) {
    body#royal-blue-app .chart-threshold-note .th-now {margin-left:0}
  }
}
@layer readability {
  /* narrow sidebars (laptops): keep the label on one line */
  body#royal-blue-app #navigation .rb-support > summary {gap:8px !important;padding:10px 10px !important;white-space:nowrap}
  body#royal-blue-app #navigation .rb-support > summary span {min-width:0;overflow:hidden;text-overflow:ellipsis}
  @media (max-width:1440px) and (min-width:761px) {
    body#royal-blue-app #navigation .rb-support > summary {font-size:12.5px !important}
  }
}
@layer readability {
  body#royal-blue-app .chart-threshold-note .th-held {margin:2px 0 0;padding:7px 10px;border-radius:8px;background:#fff7ec;border:1px solid #f7d7a8;color:#6b3f06;font-size:12.5px;line-height:1.5}
  body#royal-blue-app .chart-threshold-note .th-held b {color:#8a4b00}
  body#royal-blue-app .chart-threshold-note .th-name {display:grid;gap:1px}
  body#royal-blue-app .chart-threshold-note .th-name small {font-size:11.5px;color:#62758d;font-weight:400}
}
@layer readability {
  body#royal-blue-app .chart-threshold-note .th-unset {margin:2px 0 0;font-size:12px;line-height:1.5;color:#62758d}
}
@layer readability {
  /* compact threshold note: one line per level, two columns when there is room */
  body#royal-blue-app .chart-threshold-note {gap:8px !important;padding:10px 12px !important}
  body#royal-blue-app .chart-threshold-note .th-rules {grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:6px}
  body#royal-blue-app .chart-threshold-note .th-rules li {grid-template-columns:auto auto 1fr auto;align-items:center;gap:8px;padding:5px 9px;border-left-width:3px;border-radius:7px}
  body#royal-blue-app .chart-threshold-note .th-rules li b {grid-row:auto;padding:1px 6px;font-size:11.5px}
  body#royal-blue-app .chart-threshold-note .th-cond {font-size:13px;white-space:nowrap}
  body#royal-blue-app .chart-threshold-note .th-cond small {font-size:11px !important}
  body#royal-blue-app .chart-threshold-note .th-name {grid-column:auto;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body#royal-blue-app .chart-threshold-note .th-hold {padding:1px 7px;border-radius:999px;background:color-mix(in srgb,var(--lv) 12%,#fff);color:var(--lv);font-size:11px;font-weight:700;white-space:nowrap}
  body#royal-blue-app .chart-threshold-note .th-foot, body#royal-blue-app .chart-threshold-note .th-unset {margin:0;font-size:11.5px;line-height:1.45;color:#7a8ca3}
  body#royal-blue-app .chart-threshold-note .th-held {margin:0;padding:5px 9px;font-size:12px}
}
@layer readability {
  body#royal-blue-app .chart-threshold-note .th-rules .th-cond small {display:none}
  body#royal-blue-app .chart-threshold-note .th-rules {grid-template-columns:repeat(auto-fit,minmax(225px,1fr))}
  body#royal-blue-app .chart-threshold-note .th-name {overflow:visible;text-overflow:clip}
}
@layer readability {
  /* tightest form: a header line and one strip of level chips */
  body#royal-blue-app .chart-threshold-note {gap:6px !important;padding:8px 10px !important;border-radius:10px !important}
  body#royal-blue-app .chart-threshold-note .th-head {gap:4px 8px;flex-wrap:nowrap;align-items:center}
  body#royal-blue-app .chart-threshold-note .th-head strong {font-size:12.5px !important;white-space:nowrap}
  body#royal-blue-app .chart-threshold-note .th-head small {flex:0 1 auto;min-width:0;font-size:10.5px !important;padding:0 6px !important}
  body#royal-blue-app .chart-threshold-note .th-now {margin-left:auto;padding:1px 8px;font-size:11.5px;white-space:nowrap}
  body#royal-blue-app .chart-threshold-note .th-rules {display:flex;flex-wrap:wrap;gap:5px}
  body#royal-blue-app .chart-threshold-note .th-rules li {display:inline-flex;gap:6px;padding:2px 8px 2px 6px;border-radius:6px}
  body#royal-blue-app .chart-threshold-note .th-rules li b {padding:0 5px;font-size:11px}
  body#royal-blue-app .chart-threshold-note .th-cond {font-size:12px}
  body#royal-blue-app .chart-threshold-note .th-name {display:none}
  body#royal-blue-app .chart-threshold-note .th-hold {padding:0 6px;font-size:10.5px}
  body#royal-blue-app .chart-threshold-note .th-held {padding:3px 8px;font-size:11.5px;line-height:1.4}
  body#royal-blue-app .chart-threshold-note .th-unset {font-size:11px;line-height:1.35}
  @media (max-width:560px) {
    body#royal-blue-app .chart-threshold-note .th-head {flex-wrap:wrap}
    body#royal-blue-app .chart-threshold-note .th-now {margin-left:0}
  }
}
/* "Quyền thực tế của tài khoản bạn" on the help hub */
@layer readability {
  body#royal-blue-app .hc-my-permissions {margin-top:12px;padding:10px 12px;border:1px solid #dfe8f5;border-radius:10px;background:#f8fbff}
  body#royal-blue-app .hc-my-permissions > summary {display:flex;align-items:center;gap:8px;color:#17304f;font-weight:700;cursor:pointer}
  body#royal-blue-app .hc-my-permissions ul {display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:4px 14px;margin:10px 0 6px;padding:0;list-style:none}
  body#royal-blue-app .hc-my-permissions li {display:flex;gap:6px;align-items:flex-start;color:#22395a;font-size:13.5px;line-height:1.45}
  body#royal-blue-app .hc-my-permissions li svg {flex:none;margin-top:3px;color:#1fa971}
  body#royal-blue-app .hc-my-permissions p {margin:4px 0 0;color:#6b7f9b;font-size:12.5px}
}

/* Phone: the title row keeps the guide button at its end (icon only) instead of dropping it onto a row of its own; the guide opens in a dialog. */
@layer readability {
  @media (max-width:760px) {
    :root body#royal-blue-app .rb-unified-heading:has(> .head-actions > .hc-page-help:only-child) {flex-wrap:nowrap !important;align-items:flex-start !important;gap:10px !important}
    :root body#royal-blue-app .rb-unified-heading:has(> .head-actions > .hc-page-help:only-child) > .rb-heading-main {flex:1 1 0 !important;min-width:0 !important}
    :root body#royal-blue-app .rb-unified-heading:has(> .head-actions > .hc-page-help:only-child) > .head-actions {flex:0 0 auto !important;margin:0 !important}
    :root body#royal-blue-app .rb-unified-heading .head-actions .hc-page-help {width:40px !important;min-width:40px !important;height:40px !important;min-height:40px !important;flex:0 0 40px !important}
  }
  /* Hộp thoại Hướng dẫn rộng khoảng 85% màn hình để đọc thoải mái */
  :root body#royal-blue-app #modal-root .modal:has(.hc-modal-body) {width:min(85vw,1700px) !important;max-width:none !important;max-height:92dvh !important;overflow:auto !important}
  body#royal-blue-app .hc-modal-body .hc-article :is(.hc-p,.hc-note p,.hc-a p) {max-width:120ch}
  @media (max-width:760px) {
    :root body#royal-blue-app #modal-root .modal:has(.hc-modal-body) {width:calc(100vw - 20px) !important}
  }
  body#royal-blue-app .hc-modal-body .hc-crumbs {display:none}
  body#royal-blue-app .hc-modal-body .page-head {margin:0 0 8px !important;padding:0 !important;background:none !important;border:0 !important;box-shadow:none !important}
  body#royal-blue-app .hc-modal-body .hc-modal-full {margin:14px 0 0;text-align:right;font-size:13px}
  body#royal-blue-app .hc-modal-body .hc-modal-full a {display:inline-flex;align-items:center;gap:5px;font-weight:600}
}

/* Quan trắc on a phone: the guide, "Thao tác khác", Xuất Excel and Cập nhật stay on one row (the last two as icons; their names are in the tooltip and the accessible label). */
@layer readability {
  @media (max-width:600px) {
    :root body#royal-blue-app .monitor-workspace .rb-unified-heading .head-actions {flex:1 1 100% !important;width:100% !important;margin:0 !important;justify-content:flex-start !important;flex-wrap:nowrap !important;gap:8px !important}
    :root body#royal-blue-app .monitor-workspace .head-actions .action-menu {flex:1 1 auto;min-width:0}
    :root body#royal-blue-app .monitor-workspace .head-actions .action-menu > summary {box-sizing:border-box;height:40px;min-height:40px;display:flex;align-items:center;justify-content:space-between;white-space:nowrap}
    :root body#royal-blue-app .monitor-workspace .head-actions :is(#monitor-export,#monitor-refresh) {flex:0 0 40px !important;width:40px !important;min-width:40px !important;height:40px !important;min-height:40px !important;padding:0 !important;font-size:0 !important;gap:0 !important;display:inline-grid !important;place-items:center}
    :root body#royal-blue-app .monitor-workspace .head-actions :is(#monitor-export,#monitor-refresh) svg {width:20px !important;height:20px !important}
  }
}

/* ==== small-screens.css ==== */
/* Laptop and phone refinements: keep long text from squeezing, splitting or overflowing. Loaded last. */
@layer readability {
  /* a notice is an icon plus running text; with flex every <b> and link became its own column (the "−9999" note broke into letters) */
  body#royal-blue-app .notice {display:block !important}
  body#royal-blue-app .notice > svg {float:left;margin:2px 10px 0 0}
  body#royal-blue-app .notice::after {content:"";display:block;clear:both}
  /* long codes, file names and versions wrap instead of pushing the page sideways */
  body#royal-blue-app #content :is(p,li,td,th,small,strong,span,.notice,.card) {overflow-wrap:anywhere}
  body#royal-blue-app #content :is(input,select,textarea,button) {max-width:100%}
  @media (max-width:1440px) {
    body#royal-blue-app #navigation .nav-item {gap:8px !important;font-size:13.5px !important;white-space:nowrap}
    body#royal-blue-app #navigation .nav-item svg {flex:none}
  }
  @media (max-width:760px) {
    body#royal-blue-app #content h1 {font-size:21px !important;line-height:1.3 !important}
    body#royal-blue-app #content :is(.notice,.note,.tiny) {font-size:12.5px;line-height:1.5}
    body#royal-blue-app #content .card {padding-left:14px;padding-right:14px}
  }
}
@layer readability {
  /* phone: the three summary cards were a full screen tall before any station; keep the figure and one short line */
  @media (max-width:760px) {
    body#royal-blue-app .rb-three-summary .ob-stat .rb-kpi-evidence {display:none !important}
    body#royal-blue-app .rb-three-summary .ob-stat {padding-top:12px !important;padding-bottom:12px !important;min-height:0 !important}
    body#royal-blue-app .rb-three-summary .ob-stat .rb-kpi-footer {margin-top:6px !important;font-size:12px !important;line-height:1.4 !important}
  }
}
@layer readability {
  /* the map's basemap picker and its fit-to-view button share one height */
  body#royal-blue-app .gis-control-row {align-items:center !important;gap:8px}
  body#royal-blue-app .gis-control-row .map-basemap-select > summary, body#royal-blue-app .gis-control-row .map-expand-button {box-sizing:border-box !important;height:36px !important;min-height:36px !important;max-height:36px !important}
  body#royal-blue-app .gis-control-row .map-expand-button {width:36px !important;min-width:36px !important;padding:0 !important;display:grid !important;place-items:center}
  body#royal-blue-app .gis-control-row .map-basemap-select > summary {display:flex !important;align-items:center}
}
@layer readability {
  /* sidebar: every item stays on one line at any width (long ones end with "…" and show the full name on hover), including the help group */
  body#royal-blue-app #navigation .nav-item {display:flex !important;align-items:center;gap:8px !important;font-size:13.5px !important;white-space:nowrap !important;overflow:hidden;text-overflow:ellipsis;padding-left:10px !important;padding-right:8px !important}
  body#royal-blue-app #navigation .nav-item svg {flex:none;width:19px;height:19px}
  body#royal-blue-app #navigation .nav-item .ob-nav-count {margin-left:auto;flex:none}
  body#royal-blue-app #navigation .rb-support .nav-item {padding-left:14px !important}
}
@layer readability {
  body#royal-blue-app #navigation .rb-support .nav-item {font-size:13px !important;padding-left:12px !important}
}
@layer readability {
  body#royal-blue-app #navigation .rb-support .nav-item {padding-left:10px !important;padding-right:4px !important;gap:7px !important}
}
@layer readability {
  /* the threshold note under a chart never grows past its card: header wraps, chips wrap, nothing is cut at any width */
  body#royal-blue-app .chart-content, body#royal-blue-app .chart-content .chart-legend {min-width:0;max-width:100%}
  body#royal-blue-app .chart-legend .chart-threshold-note {box-sizing:border-box;width:100% !important;min-width:0;max-width:100%;overflow:hidden}
  body#royal-blue-app .chart-threshold-note .th-head {flex-wrap:wrap !important;min-width:0}
  body#royal-blue-app .chart-threshold-note .th-head small {max-width:100%;overflow:hidden;text-overflow:ellipsis}
  body#royal-blue-app .chart-threshold-note .th-now {flex:0 1 auto;min-width:0;max-width:100%;white-space:normal !important;margin-left:auto}
  body#royal-blue-app .chart-threshold-note .th-rules {min-width:0}
  body#royal-blue-app .chart-threshold-note .th-rules li {max-width:100%;min-width:0}
  @media (max-width:640px) {
    body#royal-blue-app .chart-threshold-note .th-now {margin-left:0}
    body#royal-blue-app .chart-threshold-note .th-rules li {flex:1 1 calc(50% - 6px);justify-content:space-between}
  }
}

/* touch screens: small inline links keep their look but get a 40px tap area (padding cancelled by the negative margin) */
@media (max-width:600px){
  #content :is(p,li,td,small,span,div) > a:not(.btn):not(.rp-link):not([class*="citizen"]),
  footer a{display:inline-block;padding:11px 5px;margin:-11px -5px}
  .rp-link,.action-link{min-height:40px;display:inline-flex;align-items:center}
}

/* status badges inside tables never wrap (role, level, state); the table scrolls instead */
td .badge, th .badge{white-space:nowrap}

/* messages (saved, errors from a form) must show above an open dialog, not behind its dark backdrop */
#toast{z-index:12000 !important}

/* ==== threshold-page.css ==== */
/* Simple "Ngưỡng cảnh báo" page: steps, pickers, levels as sentences, edit rows, preview, confirmation. */
@layer readability {
  body#royal-blue-app .th-steps {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px;padding:0;list-style:none}
  body#royal-blue-app .th-steps li {display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid #dbe7fb;border-radius:12px;background:#fff;color:#62758d}
  body#royal-blue-app .th-steps li span {flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e8f0fe;color:#175adb;font-weight:800;font-size:12px}
  body#royal-blue-app .th-steps li strong {display:block;font-size:13px;color:#133858}
  body#royal-blue-app .th-steps li small {display:block;margin-top:2px;font-size:11.5px;line-height:1.4}
  body#royal-blue-app .th-steps li.now {border-color:#175adb;background:#f3f8ff}
  body#royal-blue-app .th-steps li.now span {background:#175adb;color:#fff}
  body#royal-blue-app .th-steps li.done span {background:#12a150;color:#fff}
  body#royal-blue-app .th-layout {display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr);gap:16px;align-items:start}
  body#royal-blue-app .th-main {display:grid;gap:14px;min-width:0}
  body#royal-blue-app .th-side {display:grid;gap:14px;min-width:0}
  body#royal-blue-app .th-card-head {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
  body#royal-blue-app .th-card-head small {color:#62758d}
  body#royal-blue-app .th-label {display:block;margin:10px 0 6px;font-size:12px;font-weight:700;color:#62758d;text-transform:uppercase;letter-spacing:.3px}
  body#royal-blue-app .th-chips {display:flex;flex-wrap:wrap;gap:6px}
  body#royal-blue-app .th-chip {min-height:34px;padding:0 12px;border:1px solid #cfe0fb;border-radius:999px;background:#fff;color:#245bba;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
  body#royal-blue-app .th-chip:hover {background:#eef4ff}
  body#royal-blue-app .th-chip.active {background:#175adb;border-color:#175adb;color:#fff}
  body#royal-blue-app .th-chip:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .th-meta {display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;margin:6px 0 10px;font-size:12px;color:#62758d}
  body#royal-blue-app .th-meta code {padding:1px 8px;border-radius:999px;background:#eaf1fc;color:#143d82;font-size:11.5px;word-break:break-all}
  body#royal-blue-app .th-levels {display:grid;gap:6px;margin:0;padding:0;list-style:none}
  body#royal-blue-app .th-levels li {display:flex;gap:10px;align-items:center;padding:8px 10px;border:1px solid color-mix(in srgb,var(--lv) 30%,#fff);border-left:4px solid var(--lv);border-radius:9px;background:#fff}
  body#royal-blue-app .th-levels li b {flex:none;padding:2px 7px;border-radius:6px;background:color-mix(in srgb,var(--lv) 14%,#fff);color:var(--lv);font-size:12px}
  body#royal-blue-app .th-levels li strong {display:block;font-size:13px;color:#133858}
  body#royal-blue-app .th-levels li span {display:block;font-size:12.5px;line-height:1.45;color:#36516f}
  body#royal-blue-app .th-levels li.unset {border-style:dashed;border-left-style:solid;background:#fafcff}
  body#royal-blue-app .th-levels li.unset span {color:#8a9bb2}
  body#royal-blue-app .th-now-line {display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:12px 0 0;padding:8px 10px;border-radius:9px;background:#f3f8ff;font-size:13px;color:#244477}
  body#royal-blue-app .th-tip {display:flex;gap:8px;align-items:flex-start;margin:12px 0 0;font-size:12.5px;line-height:1.5;color:#62758d}
  body#royal-blue-app .th-tip.first {margin-top:0;margin-bottom:12px}
  body#royal-blue-app .th-tip svg {flex:none;margin-top:2px}
  body#royal-blue-app .th-rows {display:grid;gap:8px}
  body#royal-blue-app .th-row {padding:10px 12px;border:1px solid color-mix(in srgb,var(--lv) 30%,#fff);border-left:4px solid var(--lv);border-radius:10px;background:#fff}
  body#royal-blue-app .th-row.off {background:#fafcff;border-style:dashed;border-left-style:solid}
  body#royal-blue-app .th-row.off .th-row-body {opacity:.45}
  body#royal-blue-app .th-row-head {display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
  body#royal-blue-app .th-row-head b {padding:2px 7px;border-radius:6px;background:color-mix(in srgb,var(--lv) 14%,#fff);color:var(--lv);font-size:12px}
  body#royal-blue-app .th-row-head strong {font-size:13.5px;color:#133858}
  body#royal-blue-app .th-row-head small {flex:1 1 180px;min-width:0;color:#7a8ca3;font-size:12px}
  body#royal-blue-app .th-off {display:inline-flex;align-items:center;gap:6px;margin-left:auto;font-size:12px;color:#62758d;cursor:pointer}
  body#royal-blue-app .th-row-body {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;font-size:13px;color:#36516f}
  body#royal-blue-app .th-row-body select, body#royal-blue-app .th-row-body input[name^="value"] {height:36px;padding:0 10px;border:1px solid #cfe0fb;border-radius:8px;background:#fff;font:inherit;color:#133858}
  body#royal-blue-app .th-row-body input[name^="value"] {width:92px;font-weight:700}
  body#royal-blue-app .th-hold {display:inline-flex;align-items:center;gap:6px}
  body#royal-blue-app .th-hold input {width:64px;height:36px;padding:0 8px;border:1px solid #cfe0fb;border-radius:8px;font:inherit;text-align:center}
  body#royal-blue-app .th-fixed {color:#7a8ca3;font-style:italic}
  body#royal-blue-app .th-unit {font-weight:700}
  body#royal-blue-app .th-preview {margin:12px 0;padding:10px 12px;border:1px solid #cfe0fb;border-radius:10px;background:#f3f8ff;font-size:13px;color:#244477}
  body#royal-blue-app .th-preview.warn {background:#fff4f2;border-color:#f3c3bd;color:#8a2a20}
  body#royal-blue-app .th-preview ul {margin:6px 0;padding-left:18px}
  body#royal-blue-app .th-preview p {margin:6px 0 0}
  body#royal-blue-app .th-field {display:grid;gap:4px;margin:0 0 10px;font-size:13px;font-weight:600;color:#133858}
  body#royal-blue-app .th-field em {font-weight:400;font-style:normal;color:#7a8ca3}
  body#royal-blue-app .th-field textarea {width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid #cfe0fb;border-radius:8px;font:inherit;resize:vertical}
  body#royal-blue-app .th-advanced {margin:0 0 12px;border:1px solid #dbe7fb;border-radius:10px;background:#fbfdff}
  body#royal-blue-app .th-advanced summary {padding:9px 12px;cursor:pointer;color:#175adb;font-weight:700;font-size:13px}
  body#royal-blue-app .th-adv-body {padding:0 12px 12px}
  body#royal-blue-app .th-adv-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
  body#royal-blue-app .th-adv-grid label {display:grid;gap:3px;font-size:12.5px;font-weight:600;color:#133858}
  body#royal-blue-app .th-adv-grid input {height:34px;padding:0 8px;border:1px solid #cfe0fb;border-radius:8px;font:inherit}
  body#royal-blue-app .th-adv-grid small {font-weight:400;color:#7a8ca3}
  body#royal-blue-app .th-others {margin:12px 0 0;padding:8px 10px;border:1px solid #dbe7fb;border-radius:8px;display:flex;flex-wrap:wrap;gap:6px 14px}
  body#royal-blue-app .th-others legend {padding:0 6px;font-size:12.5px;font-weight:700;color:#133858}
  body#royal-blue-app .th-others label {display:inline-flex;align-items:center;gap:6px;font-size:13px}
  body#royal-blue-app .th-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
  body#royal-blue-app .th-help ol {margin:0;padding-left:18px;display:grid;gap:8px;font-size:12.5px;line-height:1.5;color:#36516f}
  body#royal-blue-app .th-links {display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
  body#royal-blue-app .th-diff {display:grid;gap:8px;margin:0 0 10px;padding:0;list-style:none}
  body#royal-blue-app .th-diff li {display:flex;gap:10px;padding:8px 10px;border:1px solid color-mix(in srgb,var(--lv) 30%,#fff);border-left:4px solid var(--lv);border-radius:9px}
  body#royal-blue-app .th-diff li b {flex:none;color:var(--lv)}
  body#royal-blue-app .th-diff s {display:block;color:#8a9bb2;font-size:12.5px}
  body#royal-blue-app .th-diff span {display:block;font-size:13px;font-weight:600;color:#133858}
  @media (max-width:1100px) {
    body#royal-blue-app .th-layout {grid-template-columns:minmax(0,1fr)}
  }
  @media (max-width:760px) {
    body#royal-blue-app .th-steps {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .th-steps li small {display:none}
    body#royal-blue-app .th-chip {min-height:40px}
    body#royal-blue-app .th-actions .btn {flex:1 1 100%}
    body#royal-blue-app .th-off {margin-left:0}
  }
}
@layer readability {
  body#royal-blue-app .th-row.th-base {background:#f6fbf8;border-style:solid}
  /* version cards in the narrow side panel: the code and status on top, the buttons on their own row, nothing wrapped inside a label */
  body#royal-blue-app .version-card {display:flex!important;flex-wrap:wrap!important;align-items:center;gap:8px}
  body#royal-blue-app .version-card>div:first-child {flex:1 1 100%!important;min-width:0}
  body#royal-blue-app .version-card .badge,
  body#royal-blue-app .version-card .btn {white-space:nowrap!important;word-break:keep-all!important}
  body#royal-blue-app .version-card>.btn {flex:0 0 auto}
}
/* C0–C4 rule set of the two groups (read only) */
.th-set-page{display:grid;gap:14px;min-width:0}
.th-set-head p{margin:6px 0}
.th-set-groups{list-style:none;margin:8px 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
.th-set-groups li{display:grid;gap:2px;padding:9px 12px;border-radius:10px;background:#f3f7fc;border:1px solid #dbe6f3}
.th-set-groups small{color:#526c89}
.th-set-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:14px;min-width:0}
.th-set-grid>.card{min-width:0}
.th-set-table{width:100%;border-collapse:collapse;font-size:13px}
.th-set-table th,.th-set-table td{padding:6px 8px;border-bottom:1px solid #e5edf6;text-align:left;vertical-align:top}
.th-set-table th{font-size:12px;color:#526c89;font-weight:650}
.th-c{display:inline-flex;align-items:center;justify-content:center;min-width:26px;padding:1px 6px;border-radius:6px;background:var(--lv);color:#fff;font-size:11px;font-weight:700}
.th-c[style*="#f5c000"]{color:#3a2c00}
.th-set-extra,.th-set-notes{margin:6px 0 0;padding-left:18px;display:grid;gap:8px;font-size:13px}
.th-set-extra small{display:block;color:#526c89;font-size:12px;margin-top:2px}
.th-band-form{display:grid;gap:10px;min-width:0}
.th-band-table{width:100%;border-collapse:collapse;font-size:13px}
.th-band-table th,.th-band-table td{padding:5px 6px;border-bottom:1px solid #e5edf6;text-align:left;vertical-align:middle}
.th-band-table th{font-size:12px;color:#526c89;font-weight:650}
.th-band-table input,.th-band-table select{min-height:34px;padding:0 6px;border:1px solid #cfe0fb;border-radius:8px;font:inherit;font-size:13px;background:#fff;color:#133858}
.th-band-table input[name="minutes"]{width:72px}
.th-band-edge{white-space:nowrap}
.th-band-edge input{width:96px;margin-left:4px}
.th-set-param .th-card-head .btn.small{margin-left:auto}
/* settings of the C0–C4 rule set (22-10-2026): general summary, parameter notes, editor fieldsets */
.th-set-param .th-card-head .th-card-actions{margin-left:auto;display:inline-flex;gap:6px;flex-wrap:wrap}
.th-set-param .th-card-head .th-card-actions .btn.small{margin-left:0}
.th-general{margin:10px 0 0;padding:10px 12px;border:1px solid #d9e6fb;border-radius:10px;background:#f7faff;min-width:0}
.th-general .th-card-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.th-general .th-card-head .btn{margin-left:auto}
.th-advice{list-style:none;margin:8px 0 6px;padding:0;display:grid;gap:5px;font-size:13px;min-width:0}
.th-param-notes{margin:4px 0 8px;padding-left:18px;font-size:12.5px;color:#2d4a6b;display:grid;gap:3px}
.th-set-extra li.is-off{opacity:.62}
.th-set-fs{border:1px solid #d9e6fb;border-radius:10px;padding:8px 12px 10px;margin:0 0 10px;min-width:0}
.th-set-fs legend{font-weight:700;font-size:13px;padding:0 4px;color:#133858}
.th-set-fs .th-field{display:grid;gap:3px;margin:6px 0}
.th-set-fs input.form-control,.th-set-fs select{min-height:34px;padding:0 8px;border:1px solid #cfe0fb;border-radius:8px;font:inherit;font-size:13px;background:#fff;color:#133858;max-width:100%}
.th-combo-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:4px 0}
.th-band-table input[name="dr_gt"]{width:80px}
.th-band-table .th-dr-mean{display:flex;align-items:center;gap:4px;margin-top:4px;font-size:12px;color:#5d7088;white-space:nowrap}
.th-band-table .th-dr-mean input{width:56px}
.th-season{margin-top:10px;padding-top:8px;border-top:1px dashed #dbe7fb}
.th-season .th-others{margin-top:4px}
.th-band-table .th-dr-mean[hidden]{display:none}
/* Ngưỡng cảnh báo, bộ C0–C4 (24-10-2026): one layout for every staff account, a summary row on top, a jump bar to each parameter, cards that
   keep their own height, the source of each limit on its own line, the colour legend once instead of under every card. */
.th-set-top{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px;align-items:start}
.th-set-top .th-general{margin:0}
.th-set-about{display:grid;gap:8px;min-width:0}
.th-set-about .th-set-groups{margin:0}
.th-set-title{margin:0!important;font-size:15px;font-weight:650;line-height:1.45;color:#133858}
.th-readonly{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;background:#eef2f7;color:#4b5d73;font-size:12px;font-weight:700}
.th-set-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}
.th-set-facts div{padding:8px 10px;border:1px solid #e1eafa;border-radius:10px;background:#fff;min-width:0}
.th-set-facts dt{font-size:11.5px;font-weight:700;letter-spacing:.2px;color:#62758d;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.th-set-facts dd{margin:2px 0 0;font-size:18px;font-weight:800;color:#133858;font-variant-numeric:tabular-nums}
.th-set-about .th-tip{margin:0}
.th-param-nav{position:sticky;top:var(--th-nav-top,64px);z-index:5;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px;border:1px solid #dbe7fb;border-radius:12px;background:rgba(255,255,255,.94);backdrop-filter:blur(6px);box-shadow:0 4px 14px rgba(19,56,88,.06)}
.th-param-nav a{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border:1px solid #cfe0fb;border-radius:999px;background:#fff;color:#245bba;font-size:13px;font-weight:650;text-decoration:none;white-space:nowrap}
.th-param-nav a:hover{background:#175adb;border-color:#175adb;color:#fff}
.th-legend{margin-left:auto;color:#62758d;font-size:12px}
.th-set-grid{align-items:start}
.th-set-param{scroll-margin-top:130px;display:grid;gap:10px}
#th-p-extra{scroll-margin-top:130px}
.th-set-param .th-card-head{row-gap:4px}
.th-set-param .th-card-head .th-cite{flex:1 1 100%;order:3;font-size:12px;line-height:1.4}
.th-set-param .th-set-table th:first-child,.th-set-param .th-set-table td.th-range{width:42%}
@media (max-width:1100px){.th-set-top{grid-template-columns:minmax(0,1fr)}}
@media (max-width:700px){
  .th-set-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .th-param-nav{top:56px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;border-radius:10px}
  .th-param-nav::-webkit-scrollbar{display:none}
  .th-legend{display:none}
  .th-set-param .th-card-head .th-card-actions{flex:1 1 100%;margin-left:0}
  .th-set-param .th-card-head .th-card-actions .btn{flex:1 1 0;min-height:40px}
}

/* ==== report-page.css ==== */
/* Báo cáo: conclusion, four figures, tabs and their panels. Built to read from a 360px phone to a 1920px screen. */
@layer readability {
  body#royal-blue-app .rp-page {display:grid;gap:14px;min-width:0;width:100%;max-width:none;margin-inline:0}
  body#royal-blue-app .rp-page > * {min-width:0}
  body#royal-blue-app .rp-page :is(h2,h3,p,ul,ol,dl,dd) {margin:0}
  body#royal-blue-app .rp-page small {font-size:inherit}

  /* ------------------------------------------------------------------ filter */
  body#royal-blue-app .rp-filter {display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:10px 28px;padding:12px 16px;border:1px solid #dbe7fb;border-radius:14px;background:#fff}
  body#royal-blue-app .rp-field {display:grid;gap:6px;align-content:start;min-width:0}
  body#royal-blue-app .rp-label {font-size:11.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:#62758d}
  body#royal-blue-app .rp-chips {display:flex;flex-wrap:wrap;gap:6px}
  body#royal-blue-app .rp-chip {display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 13px;border:1px solid #cfe0fb;border-radius:999px;background:#fff;color:#245bba;font:inherit;font-size:13px !important;font-weight:650;cursor:pointer;white-space:nowrap}
  body#royal-blue-app .rp-chip small {font-size:10.5px !important;font-weight:600;color:#7a8ca3}
  body#royal-blue-app .rp-chip:hover {background:#eef4ff}
  body#royal-blue-app .rp-chip[aria-pressed="true"] {background:#175adb;border-color:#175adb;color:#fff}
  body#royal-blue-app .rp-chip[aria-pressed="true"] small {color:#cfe0ff}
  body#royal-blue-app .rp-chip:focus-visible, body#royal-blue-app .rp-pcard:focus-visible, body#royal-blue-app .rp-tabs button:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .rp-range {display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 12px;margin-top:4px;padding:10px 12px;border-radius:10px;background:#f3f8ff}
  body#royal-blue-app .rp-range label {display:grid;gap:3px;font-size:12px;font-weight:700;color:#36516f}
  body#royal-blue-app .rp-range input {height:36px;padding:0 8px;border:1px solid #cfe0fb;border-radius:8px;background:#fff;font:inherit;font-size:13px;color:#133858}
  body#royal-blue-app .rp-range small {flex:1 1 100%;color:#62758d;font-size:12px}
  body#royal-blue-app .rp-filter-foot {grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding-top:8px;border-top:1px solid #e8eef7;font-size:13px;color:#36516f}
  body#royal-blue-app .rp-problem {color:#b0241c}
  body#royal-blue-app .rp-switch {display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-weight:650}
  body#royal-blue-app .rp-switch input {width:18px;height:18px;accent-color:#175adb}

  /* ----------------------------------------------------------------- summary */
  body#royal-blue-app .rp-summary {--tone:#2867a4;display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "kpis" "bullets" "advice";gap:10px;padding:14px 18px;border:1px solid #dbe7fb;border-left:6px solid var(--tone);border-radius:14px;background:#fff}
  body#royal-blue-app .rp-sum-head {grid-area:head}
  body#royal-blue-app .rp-summary > .rp-kpis {grid-area:kpis}
  body#royal-blue-app .rp-summary > .rp-findings {grid-area:bullets}
  body#royal-blue-app .rp-summary > .rp-advice {grid-area:advice}
  body#royal-blue-app .rp-more-li {list-style:none;grid-column:1 / -1}
  body#royal-blue-app .rp-more summary {cursor:pointer;font-size:12.5px;font-weight:700;color:#175adb}
  body#royal-blue-app .rp-more[open] summary {margin-bottom:7px}
  body#royal-blue-app .rp-t-ok {--tone:#12a150}
  body#royal-blue-app .rp-t-watch {--tone:#946b00}
  body#royal-blue-app .rp-t-alert {--tone:#bf1a12}
  body#royal-blue-app .rp-t-muted {--tone:#7a8ca3}
  body#royal-blue-app .rp-tag {display:inline-block;margin-bottom:6px;font-size:11px;font-weight:800;letter-spacing:.5px;color:var(--tone)}
  body#royal-blue-app .rp-summary h2 {margin:0 0 6px !important;font-size:20px !important;line-height:1.3 !important;color:var(--tone) !important;font-weight:750 !important}
  body#royal-blue-app .rp-bullets, body#royal-blue-app .rp-advice ul {list-style:none;padding:0;display:grid;gap:6px 30px;grid-template-columns:repeat(2,minmax(0,1fr))}
  body#royal-blue-app .rp-bullets li {display:flex;gap:10px;align-items:flex-start;font-size:13.5px;line-height:1.55;color:#244477}
  body#royal-blue-app .rp-bullets li i {flex:none;width:9px;height:9px;margin-top:7px;border-radius:50%;background:#7a8ca3}
  body#royal-blue-app .rp-b-ok i {background:#12a150 !important}
  body#royal-blue-app .rp-b-watch i {background:#e8a317 !important}
  body#royal-blue-app .rp-b-alert i {background:#d6453d !important}
  body#royal-blue-app .rp-b-info i {background:#2867a4 !important}
  body#royal-blue-app .rp-findings summary {cursor:pointer;font-size:13px;font-weight:800;color:#133858;list-style:none;margin-bottom:0}
  body#royal-blue-app .rp-findings summary::-webkit-details-marker {display:none}
  body#royal-blue-app .rp-findings summary::before, body#royal-blue-app .rp-advice summary::before {content:"▸";display:inline-block;width:14px;color:#175adb;transition:transform .15s}
  body#royal-blue-app .rp-findings[open] > summary::before, body#royal-blue-app .rp-advice[open] > summary::before {transform:rotate(90deg)}
  body#royal-blue-app .rp-findings summary b {display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:6px;border-radius:99px;background:#175adb;color:#fff;font-size:11px}
  body#royal-blue-app .rp-findings[open] > summary {margin-bottom:8px}
  body#royal-blue-app .rp-findings {padding:8px 14px;border-radius:10px;background:#f8fbff;border:1px solid #e3ecf8}
  body#royal-blue-app .rp-advice {align-self:start;padding:8px 14px;border-radius:10px;background:#f3f8ff}
  body#royal-blue-app .rp-advice summary {cursor:pointer;font-size:13px;font-weight:800;color:#133858;list-style:none;margin-bottom:0}
  body#royal-blue-app .rp-advice[open] summary {margin-bottom:8px}
  body#royal-blue-app .rp-advice summary::-webkit-details-marker {display:none}
  body#royal-blue-app .rp-advice summary b {display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:6px;border-radius:99px;background:#175adb;color:#fff;font-size:11px}
  body#royal-blue-app .rp-advice li {position:relative;padding-left:16px;font-size:13px;line-height:1.5;color:#36516f}
  body#royal-blue-app .rp-advice li::before {content:"→";position:absolute;left:0;color:#175adb;font-weight:800}

  body#royal-blue-app .rp-kpis {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  body#royal-blue-app .rp-kpi {--tone:#2867a4;display:grid;grid-template-rows:auto auto auto 1fr;gap:4px;align-content:start;min-width:0;padding:12px 14px 13px;border:1px solid #dbe7fb;border-top:4px solid var(--tone);border-radius:12px;background:#fff}
  body#royal-blue-app .rp-kpi-top {display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
  body#royal-blue-app .rp-kpi-label {font-size:12px;font-weight:700;color:#62758d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body#royal-blue-app .rp-kpi-val {display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px}
  body#royal-blue-app .rp-kpi strong {font-size:28px;line-height:1.1;font-weight:800;color:var(--tone)}
  body#royal-blue-app .rp-kpi-sub {font-size:12px;line-height:1.4;color:#62758d}
  body#royal-blue-app .rp-kpi-delta {margin-top:2px}
  body#royal-blue-app .rp-kpi-body {display:grid;gap:7px;align-content:start;margin-top:6px;padding-top:9px;border-top:1px dashed #dbe7fb;min-width:0}
  body#royal-blue-app .rp-kpi-note {font-size:12px;line-height:1.4;color:#4d6481}
  body#royal-blue-app .rp-link {flex:none;border:0;background:none;padding:2px 0;font:inherit;font-size:12px;font-weight:700;color:#175adb;cursor:pointer;white-space:nowrap}
  body#royal-blue-app .rp-link:hover {text-decoration:underline}
  body#royal-blue-app .rp-link:focus-visible {outline:3px solid #aac8ff;outline-offset:2px;border-radius:4px}
  body#royal-blue-app .rp-k-list, body#royal-blue-app .rp-k-eps {list-style:none;margin:0;padding:0;display:grid;gap:7px}
  body#royal-blue-app .rp-k-list li {display:grid;grid-template-columns:minmax(0,1fr) 56px 38px;align-items:center;gap:8px;font-size:12.5px}
  body#royal-blue-app .rp-k-list li > span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#38506b;font-weight:600}
  body#royal-blue-app .rp-k-list b {text-align:right;color:var(--tone,#133858);font-variant-numeric:tabular-nums}
  body#royal-blue-app .rp-k-list .rp-t-ok {--tone:#12a150}
  body#royal-blue-app .rp-k-eps li {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px}
  body#royal-blue-app .rp-k-ep {display:grid;gap:0;min-width:0;font-size:12.5px}
  body#royal-blue-app .rp-k-ep b {color:#133858;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body#royal-blue-app .rp-k-ep em {font-style:normal;color:#62758d;font-size:11.5px}

  /* -------------------------------------------------------------------- tabs */
  body#royal-blue-app .rp-tabs {display:flex;gap:2px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;border-bottom:2px solid #dbe7fb}
  body#royal-blue-app .rp-tabs button {flex:none;position:relative;display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:0 15px;border:0;border-bottom:3px solid transparent;margin-bottom:-2px;background:none;color:#4d6481;font:inherit;font-size:13.5px !important;font-weight:650;cursor:pointer;white-space:nowrap;scroll-snap-align:start}
  body#royal-blue-app .rp-tabs button:hover {color:#175adb}
  body#royal-blue-app .rp-tabs button[aria-selected="true"] {color:#175adb;border-bottom-color:#175adb;font-weight:800}
  body#royal-blue-app .rp-tabs button b {display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#d6453d;color:#fff;font-size:11px;font-weight:800}
  body#royal-blue-app .rp-panels {display:grid;gap:14px;min-width:0}

  /* ------------------------------------------------------------------- cards */
  body#royal-blue-app .rp-card {padding:14px 16px;border:1px solid #dbe7fb;border-radius:14px;background:#fff;min-width:0}
  body#royal-blue-app .rp-card-head {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;margin-bottom:10px}
  body#royal-blue-app .rp-card h3 {margin:0 !important;font-size:15.5px !important;line-height:1.35 !important;color:#133858 !important;font-weight:750 !important}
  body#royal-blue-app .rp-card h3 small {font-size:12px !important;font-weight:500;color:#7a8ca3}
  body#royal-blue-app .rp-intro p {font-size:13.5px;line-height:1.6;color:#36516f}
  body#royal-blue-app .rp-note {margin-top:10px !important;font-size:12.5px;line-height:1.55;color:#62758d}
  body#royal-blue-app .rp-empty {padding:10px 0;font-size:13.5px;color:#7a8ca3}
  body#royal-blue-app .rp-good {color:#12a150}
  body#royal-blue-app .rp-loading {padding:14px 0;color:#62758d}

  body#royal-blue-app .rp-badge {display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:999px;font-size:11.5px;font-weight:750;white-space:nowrap;background:#eef2f7;color:#4d6481}
  body#royal-blue-app .rp-badge.rp-ok {background:#e4f5ec;color:#126b42}
  body#royal-blue-app .rp-badge.rp-watch {background:#fff1d6;color:#8a5200}
  body#royal-blue-app .rp-badge.rp-alert {background:#fde4e1;color:#a3231b}
  body#royal-blue-app .rp-delta {display:inline-block;font-size:11.5px;font-weight:700;color:#62758d;white-space:nowrap}
  body#royal-blue-app .rp-delta.rp-good {color:#126b42}
  body#royal-blue-app .rp-delta.rp-bad {color:#a3231b}

  body#royal-blue-app .rp-bar {display:block;height:8px;border-radius:99px;background:#e8eef7;overflow:hidden}
  body#royal-blue-app .rp-bar i {display:block;height:100%;border-radius:99px;background:#12a150}
  body#royal-blue-app .rp-bar.rp-watch i {background:#e8a317}
  body#royal-blue-app .rp-bar.rp-alert i {background:#d6453d}
  body#royal-blue-app .rp-bar.rp-muted i {background:#8a9bb2}
  body#royal-blue-app .rp-stack {display:flex;height:14px;border-radius:99px;overflow:hidden;background:#e8eef7}
  body#royal-blue-app .rp-stack i {display:block;height:100%}

  /* -------------------------------------------------------- parameter cards */
  body#royal-blue-app .rp-params {display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:10px}
  body#royal-blue-app .rp-pcard {--accent:#2563eb;display:grid;gap:4px;align-content:start;min-width:0;padding:11px 12px 10px;border:1px solid #dbe7fb;border-top:4px solid var(--accent);border-radius:12px;background:#fff;color:inherit;font:inherit;text-align:left;cursor:pointer}
  body#royal-blue-app .rp-pcard:hover {background:#f6faff}
  body#royal-blue-app .rp-pcard[aria-pressed="true"] {background:#eef5ff;border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 28%,transparent)}
  body#royal-blue-app .rp-pcard-name {font-size:12.5px;font-weight:700;color:#4d6481;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body#royal-blue-app .rp-pcard-value {font-size:25px;line-height:1.1;font-weight:800;color:#133858}
  body#royal-blue-app .rp-pcard-value small {font-size:12px !important;font-weight:600;color:#7a8ca3}
  body#royal-blue-app .rp-pcard-sub {font-size:11.5px;color:#7a8ca3}
  body#royal-blue-app .rp-spark {display:block;height:44px}
  body#royal-blue-app .rp-spark svg {display:block;width:100%;height:44px}
  body#royal-blue-app .rp-pcard-foot {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 8px}

  /* ------------------------------------------------------------------ charts */
  body#royal-blue-app .rp-chart {position:relative;min-height:200px;outline:none}
  body#royal-blue-app .rp-chart:focus-visible {outline:3px solid #aac8ff;outline-offset:3px;border-radius:8px}
  body#royal-blue-app .rp-svg {display:block;width:100%;height:auto;overflow:visible;font-family:inherit}
  body#royal-blue-app .rp-svg rect, body#royal-blue-app .rp-svg line, body#royal-blue-app .rp-svg path {pointer-events:none}
  body#royal-blue-app .rp-svg {pointer-events:auto}
  body#royal-blue-app .rp-plot {fill:#f8fbff;stroke:#e3ecf8}
  body#royal-blue-app .rp-grid {stroke:#e6edf7;stroke-width:1}
  body#royal-blue-app .rp-tick {fill:#7a8ca3;font-size:10.5px}
  body#royal-blue-app .rp-line {fill:none;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}
  body#royal-blue-app .rp-band {opacity:.16}
  body#royal-blue-app .rp-zone {fill:rgb(214 69 61 / .06);pointer-events:none}
  body#royal-blue-app .rp-limit {stroke:#d6453d;stroke-width:1.4;stroke-dasharray:6 4}
  body#royal-blue-app .rp-rule {stroke:#e8710a;stroke-width:1.2;stroke-dasharray:2 4}
  body#royal-blue-app .rp-ref {font-size:10px;font-weight:700}
  body#royal-blue-app .rp-ref-limit {fill:#b0241c}
  body#royal-blue-app .rp-ref-rule {fill:#b85a06}
  body#royal-blue-app .rp-clip {fill:#d6453d}
  body#royal-blue-app .rp-cursor line {stroke:#8a9bb2;stroke-dasharray:3 3}
  body#royal-blue-app .rp-cursor[hidden] {display:none}
  body#royal-blue-app .rp-svg-note {fill:#8a9bb2;font-size:13px}
  body#royal-blue-app .rp-daybar {opacity:.85}
  body#royal-blue-app .rp-daymean {stroke:#133858;stroke-width:2}
  body#royal-blue-app .rp-hl-low {fill:#d6453d;stroke:#fff;stroke-width:1.5}
  body#royal-blue-app .rp-hl-high {fill:#12a150;stroke:#fff;stroke-width:1.5}
  body#royal-blue-app .rp-tip {position:absolute;z-index:3;display:grid;gap:1px;min-width:110px;padding:7px 10px;border:1px solid #bcd3f7;border-radius:9px;background:#fff;box-shadow:0 8px 22px rgb(20 50 100 / .18);pointer-events:none}
  body#royal-blue-app .rp-tip[hidden] {display:none}
  body#royal-blue-app .rp-tip time {font-size:11px;color:#7a8ca3}
  body#royal-blue-app .rp-tip strong {font-size:15px;color:#133858}
  body#royal-blue-app .rp-tip small {font-size:11px;color:#62758d}
  body#royal-blue-app .rp-toggles {display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12.5px;color:#36516f}
  body#royal-blue-app .rp-toggles label {display:inline-flex;align-items:center;gap:6px;cursor:pointer}
  body#royal-blue-app .rp-toggles input {accent-color:#175adb}
  body#royal-blue-app .rp-legend {display:flex;flex-wrap:wrap;gap:4px 16px;margin:8px 0 0;font-size:12px;color:#62758d}
  body#royal-blue-app .rp-legend span {display:inline-flex;align-items:center;gap:6px}
  body#royal-blue-app .rp-legend i {display:inline-block;width:18px;height:0;border-top:2px dashed #d6453d}
  body#royal-blue-app .rp-legend i.rp-k-rule {border-top:2px dotted #e8710a}
  body#royal-blue-app .rp-legend i.rp-k-gap {height:10px;width:14px;border:1px solid #d3dce8;background:repeating-linear-gradient(45deg,#f1f5f9 0 3px,#d3dce8 3px 5px)}
  body#royal-blue-app .rp-legend-flags i, body#royal-blue-app .rp-legend i.rp-c-ok, body#royal-blue-app .rp-legend i.rp-c-watch, body#royal-blue-app .rp-legend i.rp-c-alert, body#royal-blue-app .rp-legend i.rp-c-none {width:11px;height:11px;border:0;border-radius:3px}
  body#royal-blue-app .rp-stats {display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:8px;margin-top:12px}
  body#royal-blue-app .rp-stat {display:grid;gap:1px;padding:8px 10px;border-radius:9px;background:#f3f8ff}
  body#royal-blue-app .rp-stat span {font-size:11.5px;font-weight:650;color:#62758d}
  body#royal-blue-app .rp-stat span i {display:inline-block;width:9px;height:9px;margin-right:5px;border-radius:50%}
  body#royal-blue-app .rp-stat strong {font-size:16px;color:#133858;font-weight:800}
  body#royal-blue-app .rp-stat strong small {font-size:11px !important;font-weight:600;color:#7a8ca3}
  body#royal-blue-app .rp-stat em {font-style:normal;font-size:11px;color:#7a8ca3}
  /* figure tiles (statistics under the chart, alert counts): one look, label on top, value in the middle, note at the foot */
  body#royal-blue-app .rp-stats {grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:10px}
  body#royal-blue-app .rp-stat {display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;padding:10px 12px 11px;border:1px solid #dbe7fb;border-top:3px solid #c9d8ee;border-radius:10px;background:#fff}
  body#royal-blue-app .rp-stat > span {font-size:12px !important;font-weight:700 !important;letter-spacing:0;white-space:nowrap;color:#5d7391 !important;line-height:1.3}
  body#royal-blue-app .rp-stat > strong {display:block;white-space:nowrap;font-size:19px !important;line-height:1.1 !important;font-weight:800 !important;color:#0b2a5b !important}
  body#royal-blue-app .rp-stat > strong small {font-size:11px !important;font-weight:600 !important;color:#7a8ca3 !important}
  body#royal-blue-app .rp-stat > em {margin-top:auto;font-style:normal;font-size:11.5px !important;line-height:1.35;color:#6a7f99 !important}
  body#royal-blue-app .rp-stat.rp-s-min {border-top-color:#1a5fb4}
  body#royal-blue-app .rp-stat.rp-s-min > strong {color:#1a5fb4 !important}
  body#royal-blue-app .rp-stat.rp-s-max {border-top-color:#b4530b}
  body#royal-blue-app .rp-stat.rp-s-max > strong {color:#b4530b !important}
  body#royal-blue-app .rp-stat.rp-s-mean {border-top-color:#0b2a5b;background:#f1f7ff}
  body#royal-blue-app .rp-stat.rp-s-mean > strong {font-size:21px !important}
  body#royal-blue-app .rp-chart ~ .rp-stats .rp-stat:not(.rp-s-min):not(.rp-s-max):not(.rp-s-mean) > strong {color:#3f5775 !important;font-weight:750 !important}

  /* ------------------------------------------------------------------ tables */
  body#royal-blue-app .rp-scroll {overflow-x:auto;border-radius:10px;-webkit-overflow-scrolling:touch}
  body#royal-blue-app .rp-scroll:focus-visible {outline:3px solid #aac8ff}
  body#royal-blue-app .rp-table {width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
  body#royal-blue-app .rp-table th, body#royal-blue-app .rp-table td {padding:8px 10px !important;border-bottom:1px solid #e8eef7 !important;text-align:left;vertical-align:middle;color:#36516f;font-weight:500;background:#fff}
  body#royal-blue-app .rp-table thead th {position:sticky;top:0;z-index:1;background:#f3f8ff !important;color:#36516f;font-size:12px;font-weight:750;white-space:nowrap}
  body#royal-blue-app .rp-table tbody tr:nth-child(even) :is(th,td) {background:#fafcff}
  body#royal-blue-app .rp-table tbody th {font-weight:700;color:#133858;position:sticky;left:0;z-index:1;box-shadow:1px 0 0 #e8eef7}
  body#royal-blue-app .rp-table .rp-num {text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
  body#royal-blue-app .rp-when {display:block;font-size:10.5px;color:#8a9bb2;font-weight:500}
  body#royal-blue-app .rp-reason {font-size:12px;color:#62758d}
  body#royal-blue-app .rp-table .rp-stack {min-width:120px}
  body#royal-blue-app .rp-dot {display:inline-block;width:9px;height:9px;margin-right:7px;border-radius:50%}
  body#royal-blue-app .rp-you {display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;background:#175adb;color:#fff;font-size:10.5px;font-weight:700}

  /* ----------------------------------------------------------------- quality */
  body#royal-blue-app .rp-q-head {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:14px 28px;align-items:center}
  body#royal-blue-app .rp-meter {--tone:#2867a4;display:grid;gap:6px}
  body#royal-blue-app .rp-meter-label {font-size:12.5px;font-weight:700;color:#62758d}
  body#royal-blue-app .rp-meter strong {font-size:40px;line-height:1;font-weight:850;color:var(--tone)}
  body#royal-blue-app .rp-meter-sub {font-size:12.5px;color:#62758d}
  body#royal-blue-app .rp-facts {display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px 14px}
  body#royal-blue-app .rp-facts dt {font-size:11.5px;font-weight:700;color:#7a8ca3}
  body#royal-blue-app .rp-facts dd {margin-top:1px !important;font-size:14px;font-weight:750;color:#133858}
  body#royal-blue-app .rp-facts dd small {font-size:11.5px !important;font-weight:500;color:#7a8ca3}
  body#royal-blue-app .rp-facts-wide {grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
  body#royal-blue-app .rp-strip {display:flex;flex-wrap:wrap;gap:4px}
  body#royal-blue-app .rp-cell {position:relative;display:block;width:30px;height:46px;border-radius:5px;overflow:hidden;background:#eef2f7}
  body#royal-blue-app .rp-cell i {position:absolute;left:0;right:0;bottom:0;display:block;background:#12a150;opacity:.85}
  body#royal-blue-app .rp-cell b {position:absolute;z-index:1;left:0;right:0;top:3px;text-align:center;font-size:10px;font-weight:700;color:#36516f}
  body#royal-blue-app .rp-cell.rp-c-watch i {background:#e8a317}
  body#royal-blue-app .rp-cell.rp-c-alert i {background:#d6453d}
  body#royal-blue-app .rp-cell.rp-c-none i {display:none}
  body#royal-blue-app .rp-legend i.rp-c-ok {background:#12a150}
  body#royal-blue-app .rp-legend i.rp-c-watch {background:#e8a317}
  body#royal-blue-app .rp-legend i.rp-c-alert {background:#d6453d}
  body#royal-blue-app .rp-legend i.rp-c-none {background:#eef2f7}
  body#royal-blue-app .rp-gaps {list-style:none;padding:0;display:grid;gap:8px}
  body#royal-blue-app .rp-gaps li {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;font-size:13px;color:#36516f}
  body#royal-blue-app .rp-gaps li .rp-bar {grid-column:1 / -1;height:6px}
  body#royal-blue-app .rp-notes {list-style:none;padding:0;display:grid;gap:8px}
  body#royal-blue-app .rp-notes li {display:flex;gap:10px;align-items:flex-start;padding:9px 11px;border-radius:9px;background:#f6f9fd;font-size:13px;line-height:1.5;color:#36516f}
  body#royal-blue-app .rp-notes li i {flex:none;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#2867a4;color:#fff;font-style:normal;font-size:12px;font-weight:800}
  body#royal-blue-app .rp-notes li.rp-n-warn {background:#fff8e8}
  body#royal-blue-app .rp-notes li.rp-n-warn i {background:#e8a317}

  /* -------------------------------------------------------------- compliance */
  body#royal-blue-app .rp-comps {display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:12px}
  body#royal-blue-app .rp-comp {--tone:#12a150;display:grid;gap:8px;align-content:start;padding:13px 14px;border:1px solid #dbe7fb;border-left:5px solid var(--tone);border-radius:12px;background:#fff;min-width:0}
  body#royal-blue-app .rp-comp header {display:flex;align-items:center;justify-content:space-between;gap:8px}
  body#royal-blue-app .rp-comp header strong {font-size:14.5px;color:#133858}
  body#royal-blue-app .rp-limit-text {font-size:12.5px;color:#62758d}
  body#royal-blue-app .rp-comp .rp-facts {grid-template-columns:repeat(2,minmax(0,1fr))}
  body#royal-blue-app .rp-more summary {cursor:pointer;font-size:12.5px;font-weight:700;color:#175adb}
  body#royal-blue-app .rp-more ul {list-style:none;padding:0;margin-top:6px !important;display:grid;gap:6px}
  body#royal-blue-app .rp-more li {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 8px;font-size:12px;color:#36516f}
  body#royal-blue-app .rp-more li em {grid-column:1 / -1;font-style:normal;color:#7a8ca3}
  body#royal-blue-app .rp-swings {position:relative;display:flex;align-items:flex-end;gap:3px;height:100px;margin-top:10px;padding:0 2px;border-bottom:1px solid #dbe7fb}
  body#royal-blue-app .rp-sw {position:relative;flex:1 1 0;max-width:26px;height:100%;display:flex;align-items:flex-end}
  body#royal-blue-app .rp-sw i {display:block;width:100%;border-radius:3px 3px 0 0;background:#8fb0e6}
  body#royal-blue-app .rp-sw-over i {background:#e8a317}
  body#royal-blue-app .rp-swing-line {position:absolute;left:0;right:0;border-top:1.5px dashed #d6453d;z-index:1}
  body#royal-blue-app .rp-swing-line em {position:absolute;right:0;top:-16px;font-style:normal;font-size:10.5px;color:#b0241c}

  /* ------------------------------------------------------------------ alerts */
  body#royal-blue-app .rp-timeline {margin-top:14px}
  body#royal-blue-app .rp-track {position:relative;height:30px;border-radius:8px;background:#eef3fa}
  body#royal-blue-app .rp-ep {position:absolute;top:4px;bottom:4px;min-width:5px;border-radius:4px}
  body#royal-blue-app .rp-axis {display:flex;justify-content:space-between;margin-top:5px;font-size:11px;color:#7a8ca3}
  body#royal-blue-app .rp-episodes {list-style:none;padding:0;display:grid;gap:10px}
  body#royal-blue-app .rp-episode {display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px 14px;align-items:start;padding:11px 12px;border:1px solid #e3ecf8;border-radius:11px}
  body#royal-blue-app .rp-lv {display:inline-grid;place-items:center;min-width:34px;height:26px;padding:0 7px;border-radius:7px;color:#fff;font-size:12.5px;font-weight:800}
  body#royal-blue-app .rp-lv-sm {min-width:28px;height:21px;font-size:11px}
  body#royal-blue-app .rp-ep-main {display:grid;gap:2px;min-width:0;font-size:13px;color:#36516f}
  body#royal-blue-app .rp-ep-main strong {color:#133858;font-size:14px}
  body#royal-blue-app .rp-ep-meta {font-size:12px;color:#7a8ca3}
  body#royal-blue-app .rp-ep-side {display:grid;gap:4px;justify-items:end;font-size:12px;color:#7a8ca3}
  body#royal-blue-app .rp-link {font-weight:700;color:#175adb;text-decoration:none}
  body#royal-blue-app .rp-link:hover {text-decoration:underline}

  /* ------------------------------------------------------------ daily/intake */
  body#royal-blue-app .rp-chips-scroll {flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;margin-bottom:6px;scrollbar-width:thin}
  body#royal-blue-app .rp-chart-static {min-height:0}
  body#royal-blue-app .rp-daycols {display:flex;align-items:flex-end;gap:4px;height:150px;padding-bottom:18px;overflow-x:auto}
  body#royal-blue-app .rp-daycol {position:relative;flex:1 0 20px;max-width:34px;height:100%;border-radius:5px 5px 0 0;background:#eef2f7}
  body#royal-blue-app .rp-daycol i {position:absolute;left:0;right:0;bottom:0;display:block;border-radius:5px 5px 0 0;background:#12a150}
  body#royal-blue-app .rp-daycol b {position:absolute;left:0;right:0;bottom:-17px;text-align:center;font-size:10px;font-weight:600;color:#7a8ca3}
  body#royal-blue-app .rp-windows {list-style:none;padding:0;display:grid;gap:8px}
  body#royal-blue-app .rp-windows li {display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:10px;background:#f3faf6}
  body#royal-blue-app .rp-rank {display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#12a150;color:#fff;font-size:12.5px;font-weight:800}
  body#royal-blue-app .rp-windows li div {display:grid;gap:1px;font-size:12.5px;color:#36516f}
  body#royal-blue-app .rp-windows li strong {font-size:14px;color:#133858}
  body#royal-blue-app .rp-seg {display:inline-flex;flex-wrap:wrap;border:1px solid #cfe0fb;border-radius:10px;overflow:hidden}
  body#royal-blue-app .rp-seg button {min-height:36px;padding:0 14px;border:0;border-right:1px solid #cfe0fb;background:#fff;color:#245bba;font:inherit;font-size:13px !important;font-weight:650;cursor:pointer}
  body#royal-blue-app .rp-seg button:last-child {border-right:0}
  body#royal-blue-app .rp-seg button[aria-pressed="true"] {background:#175adb;color:#fff}
  body#royal-blue-app .rp-methods {padding-left:18px;display:grid;gap:7px;font-size:13.5px;line-height:1.55;color:#36516f}

  /* ------------------------------------------------------- frozen, menu, form */
  body#royal-blue-app .rp-frozen {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:12px 16px;border:1px solid #f0d49a;border-radius:12px;background:#fff8e6}
  body#royal-blue-app .rp-frozen.rp-bad {border-color:#f1b8b2;background:#fde9e7}
  body#royal-blue-app .rp-frozen > div:first-child {display:grid;gap:3px;font-size:13px;color:#5a4208}
  body#royal-blue-app .rp-frozen strong {font-size:14.5px;color:#4a3405}
  body#royal-blue-app .rp-frozen code {padding:1px 6px;border-radius:5px;background:#fff;font-size:12px}
  body#royal-blue-app .rp-menu {position:relative}
  body#royal-blue-app .rp-menu summary {list-style:none;cursor:pointer}
  body#royal-blue-app .rp-menu summary::-webkit-details-marker {display:none}
  body#royal-blue-app .rp-menu-list {position:absolute;right:0;top:calc(100% + 6px);z-index:20;display:grid;min-width:230px;padding:6px;border:1px solid #cfe0fb;border-radius:12px;background:#fff;box-shadow:0 12px 30px rgb(20 50 100 / .18)}
  body#royal-blue-app .rp-menu-list button {min-height:40px;padding:0 12px;border:0;border-radius:8px;background:none;color:#133858;font:inherit;font-size:13.5px !important;text-align:left;cursor:pointer}
  body#royal-blue-app .rp-menu-list button:hover {background:#eef4ff}
  body#royal-blue-app .rp-form {display:grid;gap:12px}
  body#royal-blue-app .rp-form label {display:grid;gap:4px;font-size:13px;font-weight:650;color:#133858}
  body#royal-blue-app .rp-form input, body#royal-blue-app .rp-form textarea {width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid #cfe0fb;border-radius:8px;font:inherit;font-weight:400;color:#133858}
  body#royal-blue-app .rp-form-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
  body#royal-blue-app .rp-snaps {list-style:none;padding:0;display:grid;gap:10px}
  body#royal-blue-app .rp-snaps li {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;padding:10px 12px;border:1px solid #e3ecf8;border-radius:10px}
  body#royal-blue-app .rp-snaps li > div:first-child {display:grid;gap:2px;font-size:12.5px;color:#62758d;min-width:0}
  body#royal-blue-app .rp-snaps strong {font-size:14px;color:#133858}
  body#royal-blue-app .rp-snaps code {font-size:11.5px;color:#7a8ca3}
  body#royal-blue-app .rp-snap-actions {display:flex;gap:6px}

  /* the statistics table: names stand out, the key figure (mean) is the boldest, min and max carry a colour, the spread is quieter */
  body#royal-blue-app .rp-sttable {font-size:13.5px}
  body#royal-blue-app .rp-sttable thead th {background:#eaf2ff !important;color:#2a4a73 !important;font-size:12px;letter-spacing:.2px}
  body#royal-blue-app .rp-sttable thead th.rp-c-min, body#royal-blue-app .rp-sttable td.rp-c-min b {color:#1a5fb4 !important}
  body#royal-blue-app .rp-sttable thead th.rp-c-max, body#royal-blue-app .rp-sttable td.rp-c-max b {color:#b4530b !important}
  body#royal-blue-app .rp-sttable thead th.rp-c-mean {color:#0b2a5b !important}
  body#royal-blue-app .rp-sttable tbody th {min-width:150px;white-space:normal}
  body#royal-blue-app .rp-sttable .rp-sname {display:block;font-size:14px;font-weight:750;color:#0b2a5b !important}
  body#royal-blue-app .rp-sttable tbody th small {display:block;margin-top:1px;font-size:11.5px;font-weight:500;color:#6a7f99 !important}
  body#royal-blue-app .rp-sttable td {color:#4a5f7a !important}
  body#royal-blue-app .rp-sttable td.rp-c-mean {background:#f1f7ff !important}
  body#royal-blue-app .rp-sttable td.rp-c-mean b {font-size:15.5px;font-weight:800;color:#0b2a5b !important}
  body#royal-blue-app .rp-sttable td.rp-c-min b, body#royal-blue-app .rp-sttable td.rp-c-max b {font-weight:750}
  body#royal-blue-app .rp-sttable td.rp-c-dist {color:#6a7f99 !important}
  body#royal-blue-app .rp-sttable td .rp-when {margin-top:1px;font-size:11px;color:#8497ae !important}
  body#royal-blue-app .rp-sttable tbody tr:hover :is(th,td) {background:#f3f8ff !important}
  body#royal-blue-app .rp-sttable .rp-c-limit {white-space:nowrap}
  body#royal-blue-app .rp-limit-pill {display:inline-block;padding:3px 9px;border-radius:999px;background:#eef4ff;color:#2a4a73;font-size:12px;font-weight:650}
  body#royal-blue-app .rp-sttable .rp-none {font-size:12px;color:#8497ae}
  body#royal-blue-app .rp-sttable th, body#royal-blue-app .rp-sttable td {padding:9px 9px !important}
  /* header and figures share one alignment: numbers (and their headings) to the right, words to the left */
  body#royal-blue-app .rp-sttable thead th, body#royal-blue-app .rp-sttable tbody td {text-align:left !important}
  body#royal-blue-app .rp-sttable thead th.rp-num, body#royal-blue-app .rp-sttable tbody td.rp-num {text-align:right !important;padding-right:16px !important}
  body#royal-blue-app .rp-sttable thead th.rp-num:last-child, body#royal-blue-app .rp-sttable tbody td.rp-num:last-child {text-align:center !important;padding-right:9px !important}
  body#royal-blue-app .rp-sttable thead th:not(.rp-num), body#royal-blue-app .rp-sttable tbody td:not(.rp-num) {padding-left:14px !important}
  body#royal-blue-app .rp-sttable thead th:first-child, body#royal-blue-app .rp-sttable tbody th {text-align:left !important;padding-left:14px !important}
  body#royal-blue-app .rp-sttable td .rp-when {text-align:right}

  /* titles, labels and figures never wrap: what does not fit moves to the next row as a whole, it is not squeezed */
  body#royal-blue-app .rp-page .page-head {flex-wrap:wrap;gap:8px 16px}
  body#royal-blue-app .rp-page .rb-heading-main {flex:0 0 auto;max-width:100%}
  body#royal-blue-app .rp-page .page-head h1 {white-space:nowrap;font-size:clamp(20px,2.1vw,27px) !important}
  body#royal-blue-app .rp-page .page-head .subtitle {white-space:nowrap}
  body#royal-blue-app .rp-page .head-actions {margin-left:auto}
  body#royal-blue-app .rp-page .btn, body#royal-blue-app .rp-chip, body#royal-blue-app .rp-tabs button, body#royal-blue-app .rp-link {white-space:nowrap}
  body#royal-blue-app .rp-kpi-sub, body#royal-blue-app .rp-kpi-note, body#royal-blue-app .rp-pcard-sub, body#royal-blue-app .rp-sttable .rp-sname, body#royal-blue-app .rp-limit-pill {white-space:nowrap}
  body#royal-blue-app .rp-sttable tbody th {min-width:0 !important;white-space:nowrap !important}
  body#royal-blue-app .rp-limit-more {display:block;margin-top:2px;font-size:11px;color:#6a7f99;white-space:nowrap}
  body#royal-blue-app .rp-sttable .rp-c-limit {min-width:0 !important;white-space:nowrap !important}
  /* header actions stay on one row while they fit, instead of leaving one button alone on a second row */
  body#royal-blue-app .rp-page .head-actions {flex-wrap:wrap !important;max-width:none !important;width:auto !important;align-items:center;gap:8px}
  body#royal-blue-app .rp-page .head-actions > * {flex:none}

  /* -------------------------------------------------------------- responsive */
  /* laptops: 1440 px wide or less, or under 800 px tall. Everything above the first chart is made shallower so the figures and the tabs show without scrolling */
  @media (max-width:1440px), (max-height:800px) {
    body#royal-blue-app .rp-page {gap:10px}
    body#royal-blue-app .rp-filter {display:flex;flex-wrap:wrap;align-items:center;gap:6px 20px;padding:8px 14px}
    body#royal-blue-app .rp-filter .rp-field {display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
    body#royal-blue-app .rp-filter .rp-label {white-space:nowrap}
    body#royal-blue-app .rp-filter .rp-chip {min-height:32px;padding:0 11px}
    body#royal-blue-app .rp-filter-foot {border:0;padding:0;margin-left:auto;gap:4px 14px}
    body#royal-blue-app .rp-summary {padding:10px 14px;gap:8px}
    body#royal-blue-app .rp-summary h2 {font-size:18px !important;margin:0 0 2px !important}
    body#royal-blue-app .rp-kpis {gap:10px}
    body#royal-blue-app .rp-kpi {padding:9px 11px 10px}
    body#royal-blue-app .rp-kpi strong {font-size:24px}
    body#royal-blue-app .rp-kpi-body {margin-top:3px;padding-top:6px;gap:5px}
    body#royal-blue-app .rp-card {padding:12px 14px}
    body#royal-blue-app .rp-pcard {padding:8px 10px 8px}
    body#royal-blue-app .rp-pcard-value {font-size:22px}
    body#royal-blue-app .rp-tabs button {min-height:38px}
  }
  @media (max-width:1280px) {
    body#royal-blue-app .rp-sttable th, body#royal-blue-app .rp-sttable td {padding:8px 5px !important}
    body#royal-blue-app .rp-sttable tbody th {min-width:112px}
    body#royal-blue-app .rp-sttable .rp-c-limit {white-space:normal;min-width:96px}
    body#royal-blue-app .rp-limit-pill {padding:2px 7px;font-size:11.5px}
  }
  /* small and short (1024x768): the lists inside the figures wait behind "Chi tiết" so both rows of figures fit the first screen */
  @media (max-width:1100px) and (max-height:800px) {
    body#royal-blue-app .rp-k-list, body#royal-blue-app .rp-k-eps {display:none}
    body#royal-blue-app .rp-kpi-body:empty {display:none}
  }
  @media (max-width:1100px) {
    body#royal-blue-app .rp-bullets, body#royal-blue-app .rp-advice ul {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .rp-kpis {grid-template-columns:repeat(2,minmax(0,1fr))}
    body#royal-blue-app .rp-q-head {grid-template-columns:minmax(0,1fr)}
  }
  @media (max-width:860px) {
    body#royal-blue-app .rp-filter {grid-template-columns:minmax(0,1fr)}
  }
  @media (max-width:760px) {
    body#royal-blue-app .rp-page {gap:12px}
    body#royal-blue-app .rp-filter {padding:12px}
    body#royal-blue-app .rp-summary {padding:13px 14px}
    body#royal-blue-app .rp-summary h2 {font-size:17px !important}
    body#royal-blue-app .rp-bullets li {font-size:13px}
    body#royal-blue-app .rp-kpi {padding:11px 12px}
    body#royal-blue-app .rp-kpi strong {font-size:22px}
    body#royal-blue-app .rp-tabs {margin:0 -2px}
    body#royal-blue-app .rp-tabs button {padding:0 12px;min-height:44px}
    body#royal-blue-app .rp-card {padding:12px}
    body#royal-blue-app .rp-params {grid-template-columns:repeat(2,minmax(0,1fr))}
    body#royal-blue-app .rp-stats {grid-template-columns:repeat(2,minmax(0,1fr))}
    body#royal-blue-app .rp-stat > strong {font-size:19px !important}
    body#royal-blue-app .rp-pcard {padding:10px}
    body#royal-blue-app .rp-pcard-value {font-size:21px}
    body#royal-blue-app .rp-chip {min-height:40px;flex:none}
    body#royal-blue-app .rp-filter .rp-chips {flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:none;margin:0 -2px}
    body#royal-blue-app .rp-filter .rp-chips::-webkit-scrollbar {display:none}
    body#royal-blue-app .rp-seg button {min-height:40px;flex:1 1 auto}
    body#royal-blue-app .rp-episode {grid-template-columns:auto minmax(0,1fr)}
    body#royal-blue-app .rp-ep-side {grid-column:1 / -1;grid-auto-flow:column;justify-content:space-between;align-items:center}
    body#royal-blue-app .rp-comps {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .rp-meter strong {font-size:34px}
    body#royal-blue-app .rp-menu-list {right:auto;left:0}
    body#royal-blue-app .rp-range {flex-direction:column;align-items:stretch}
    body#royal-blue-app .rp-range input {width:100%;box-sizing:border-box}
    body#royal-blue-app .rp-table th, body#royal-blue-app .rp-table td {padding:7px 8px !important}
  }
  @media (max-width:560px) {
    body#royal-blue-app .rp-card h3 small {display:none !important}
    body#royal-blue-app .rp-page .head-actions {flex-wrap:wrap !important;width:100% !important}
    body#royal-blue-app .rp-page .head-actions .btn {min-height:40px}
    body#royal-blue-app .rp-kpis {grid-template-columns:minmax(0,1fr)}
  }
  @media (max-width:340px) {
    body#royal-blue-app .rp-params {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .rp-kpi strong {font-size:20px}
  }
  @media print {
    body#royal-blue-app .rp-filter, body#royal-blue-app .rp-tabs, body#royal-blue-app .rp-menu {display:none !important}
  }
  @media (prefers-reduced-motion:no-preference) {
    body#royal-blue-app .rp-bar i, body#royal-blue-app .rp-stack i {transition:width .35s ease}
  }
}

/* Phone: the chart of one parameter opens in a dialog; its previous / next buttons sit under the chart. */
@layer readability {
  body#royal-blue-app .rp-dlg-nav {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;margin-top:12px}
  body#royal-blue-app .rp-dlg-nav > span {font-size:12px;color:#62758d}
  body#royal-blue-app .rp-dlg-nav .btn {min-width:0;justify-content:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:40px}
}

/* Time at each level per group (C0–C4 rule set of the two groups) and the groups of an alert episode. Level colours come from the shared
   tokens (color-system.css turns data-alert-level into --status); --lv is the plain colour set inline for when the tokens are absent. */
@layer readability {
  body#royal-blue-app .rp-lvstack i, body#royal-blue-app .rp-lvdot {background:var(--status,var(--lv))}
  body#royal-blue-app .rp-glvs {display:grid;gap:10px;margin:4px 0 12px}
  body#royal-blue-app .rp-glv {display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr) auto;align-items:center;gap:6px 14px;min-width:0}
  body#royal-blue-app .rp-glv-name {display:flex;align-items:center;gap:8px;min-width:0}
  body#royal-blue-app .rp-glv-name > span:last-child {display:grid;min-width:0;line-height:1.3}
  body#royal-blue-app .rp-glv-name b {font-size:13px;font-weight:800;color:#133858}
  body#royal-blue-app .rp-glv-name small {font-size:11.5px;color:#62758d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body#royal-blue-app .rp-glv-g {display:inline-grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:#133858;color:#fff;font-size:12px;font-weight:900;line-height:1}
  body#royal-blue-app .rp-glv .rp-stack {height:18px}
  body#royal-blue-app .rp-glv-high {font-size:12px;color:#62758d;white-space:nowrap}
  body#royal-blue-app .rp-glv-high b {color:var(--lv2-ink,#c25200);font-weight:800}
  body#royal-blue-app .rp-t-glv td b {font-weight:750;color:#133858}
  body#royal-blue-app .rp-t-glv thead th .rp-when {font-weight:600}
  body#royal-blue-app .rp-levels > .rp-more {margin-top:10px}
  body#royal-blue-app .rp-levels > .rp-more summary small {font-weight:500;color:#62758d}
  body#royal-blue-app .rp-levels > .rp-more .rp-stack {margin-bottom:8px}
  body#royal-blue-app .rp-ep-groups {display:flex;flex-wrap:wrap;align-items:center;gap:3px 8px;margin:2px 0;font-size:12px;color:#36516f}
  body#royal-blue-app .rp-gsums {display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:12px;padding-top:10px;border-top:1px solid #e8eef7}
  body#royal-blue-app .rp-gsum {display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0;font-size:12.5px;color:#36516f}
  body#royal-blue-app .rp-gsum b {color:#133858;font-weight:800}
  body#royal-blue-app .rp-gsum em {font-style:normal;color:#62758d}
  @media (max-width:760px) {
    body#royal-blue-app .rp-glv {grid-template-columns:minmax(0,1fr) auto}
    body#royal-blue-app .rp-glv .rp-stack {grid-column:1 / -1;grid-row:2}
  }
  /* phone: the bars above already name the groups, so the table keeps "Nhóm A / Nhóm B" and fits without scrolling */
  @media (max-width:560px) {
    body#royal-blue-app .rp-t-glv thead th .rp-when {display:none}
    body#royal-blue-app .rp-t-glv :is(th,td) {padding:7px 6px !important}
  }
}

/* ==== operations-page.css ==== */
/* "Vận hành hệ thống": health cards, tabbed logs, status chips, folded repeats. Scoped to .op-page. */
@layer readability {
  body#royal-blue-app .op-page {display:grid;gap:14px;min-width:0}
  body#royal-blue-app .op-cards {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  body#royal-blue-app .op-card {display:flex;flex-direction:column;gap:3px;min-width:0;padding:13px 15px;border:1px solid #dbe7fb;border-left:4px solid var(--op,#175adb);border-radius:12px;background:#fff;color:#133858;font:inherit;text-align:left;box-shadow:0 1px 2px rgba(20,60,120,.05)}
  body#royal-blue-app button.op-card {cursor:pointer}
  body#royal-blue-app button.op-card:hover {background:#f6faff;border-color:#c3d8f8;border-left-color:var(--op,#175adb)}
  body#royal-blue-app button.op-card:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .op-t-ok {--op:#12a150}
  body#royal-blue-app .op-t-watch {--op:#c77b00}
  body#royal-blue-app .op-t-alert {--op:#c9372c}
  body#royal-blue-app .op-t-muted {--op:#8a9bb2}
  body#royal-blue-app .op-t-info {--op:#175adb}
  body#royal-blue-app .op-card-label {font-size:12px;font-weight:700;color:#62758d;text-transform:uppercase;letter-spacing:.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body#royal-blue-app .op-card strong {font-size:20px;line-height:1.25;color:var(--op,#133858);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body#royal-blue-app .op-card-sub {font-size:12px;line-height:1.4;color:#62758d;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  body#royal-blue-app .op-logs {padding:0;overflow:hidden}
  body#royal-blue-app .op-tabs {display:flex;gap:2px;padding:6px 10px 0;border-bottom:1px solid #dbe7fb;background:#f7faff;overflow-x:auto;scrollbar-width:none}
  body#royal-blue-app .op-tabs::-webkit-scrollbar {display:none}
  body#royal-blue-app .op-tabs button {flex:none;min-height:42px;padding:0 16px;border:0;border-bottom:3px solid transparent;background:none;color:#62758d;font:inherit;font-size:14px;font-weight:600;white-space:nowrap;cursor:pointer}
  body#royal-blue-app .op-tabs button:hover {color:#175adb}
  body#royal-blue-app .op-tabs button[aria-selected="true"] {color:#175adb;border-bottom-color:#175adb}
  body#royal-blue-app .op-tabs button:focus-visible {outline:3px solid #aac8ff;outline-offset:-3px;border-radius:6px}
  body#royal-blue-app .op-panel {display:grid;gap:12px;padding:14px 16px 16px;min-width:0}
  body#royal-blue-app .op-filters {display:flex;flex-wrap:wrap;gap:6px}
  body#royal-blue-app .op-filter {display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border:1px solid #cfe0fb;border-radius:999px;background:#fff;color:#245bba;font:inherit;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}
  body#royal-blue-app .op-filter b {padding:0 6px;border-radius:999px;background:#eaf1fc;color:#143d82;font-size:11.5px}
  body#royal-blue-app .op-filter:hover {background:#eef4ff}
  body#royal-blue-app .op-filter[aria-pressed="true"] {background:#175adb;border-color:#175adb;color:#fff}
  body#royal-blue-app .op-filter[aria-pressed="true"] b {background:rgba(255,255,255,.22);color:#fff}
  body#royal-blue-app .op-filter:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .op-tools {display:flex}
  body#royal-blue-app .op-search {position:relative;flex:1;max-width:460px}
  body#royal-blue-app .op-search svg {position:absolute;left:11px;top:50%;transform:translateY(-50%);color:#8a9bb2;pointer-events:none}
  body#royal-blue-app .op-search input {width:100%;min-height:40px;padding:0 12px 0 34px;border:1px solid #cfe0fb;border-radius:10px;background:#fff;color:#133858;font:inherit;font-size:14px}
  body#royal-blue-app .op-search input:focus {outline:3px solid #aac8ff;outline-offset:1px;border-color:#175adb}
  body#royal-blue-app .op-sr {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  body#royal-blue-app .op-scroll {overflow-x:auto;border:1px solid #e1eafa;border-radius:10px}
  body#royal-blue-app .op-scroll:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .op-table {width:100%;border-collapse:collapse;font-size:13.5px}
  body#royal-blue-app .op-table th {position:sticky;top:0;padding:9px 12px;background:#f3f8ff;color:#4a6382;font-size:12px;font-weight:700;text-align:left;text-transform:uppercase;letter-spacing:.25px;white-space:nowrap;border-bottom:1px solid #dbe7fb}
  body#royal-blue-app .op-table td {padding:9px 12px;border-bottom:1px solid #edf2fb;color:#244477;vertical-align:top}
  body#royal-blue-app .op-table tbody tr:last-child td {border-bottom:0}
  body#royal-blue-app .op-table tbody tr:hover td {background:#fafcff}
  body#royal-blue-app .op-table .op-num {text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
  body#royal-blue-app .op-table th.op-num {text-align:right}
  body#royal-blue-app .op-when {white-space:nowrap}
  body#royal-blue-app .op-table td small {display:block;margin-top:1px;font-size:11.5px;color:#8a9bb2;white-space:nowrap}
  body#royal-blue-app .op-table td.op-msg {white-space:normal;min-width:140px;max-width:420px;word-break:normal;overflow-wrap:anywhere;color:#36516f}
  body#royal-blue-app .op-id {color:#8a9bb2;font-size:12px}
  body#royal-blue-app .op-times {margin-left:6px;padding:1px 7px;border-radius:999px;background:#eaf1fc;color:#143d82;font-size:12px;font-weight:700}
  body#royal-blue-app .op-chip {display:inline-block;padding:2px 10px;border-radius:999px;background:color-mix(in srgb,var(--op) 14%,#fff);color:var(--op);font-size:12px;font-weight:700;white-space:nowrap}
  body#royal-blue-app .op-chip.op-ok {--op:#12a150}
  body#royal-blue-app .op-chip.op-watch {--op:#9a5d00}
  body#royal-blue-app .op-chip.op-alert {--op:#c9372c}
  body#royal-blue-app .op-chip.op-muted {--op:#5b6f88}
  body#royal-blue-app .op-note {display:flex;gap:8px;align-items:flex-start;margin:0;font-size:12.5px;line-height:1.5;color:#62758d}
  body#royal-blue-app .op-note svg {flex:none;margin-top:2px}
  body#royal-blue-app .op-empty {margin:0;padding:22px 12px;border:1px dashed #cfe0fb;border-radius:10px;background:#fafcff;color:#62758d;text-align:center;font-size:13.5px}
  body#royal-blue-app .op-sub {margin:6px 0 0;font-size:14px;color:#133858}
  body#royal-blue-app .op-sim {grid-template-columns:repeat(3,minmax(0,1fr))}
  @media (max-width:1100px) {
    body#royal-blue-app .op-cards {grid-template-columns:repeat(2,minmax(0,1fr))}
  }
  @media (max-width:700px) {
    body#royal-blue-app .op-cards {gap:8px}
    body#royal-blue-app .op-card {padding:10px 12px}
    body#royal-blue-app .op-card strong {font-size:17px}
    body#royal-blue-app .op-panel {padding:12px}
    body#royal-blue-app .op-sim {grid-template-columns:repeat(2,minmax(0,1fr))}
    body#royal-blue-app .op-search {max-width:none}
  }
  @media (max-width:430px) {
    body#royal-blue-app .op-sim {grid-template-columns:1fr}
  }
}

/* ==== standards-page.css ==== */
/* "Quản lý QCVN" redesign: current-basis hero, counters, schedule timeline, lookup, filterable library. Scoped to .qx-page. */
@layer readability {
  body#royal-blue-app .qx-page {display:grid;gap:14px;min-width:0}
  body#royal-blue-app .qx-page>.card {margin:0}
  body#royal-blue-app .qx-chip {display:inline-block;padding:2px 10px;border-radius:999px;background:color-mix(in srgb,var(--qx) 14%,#fff);color:var(--qx);font-size:12px;font-weight:700;white-space:nowrap}
  body#royal-blue-app .qx-ok {--qx:#12a150}
  body#royal-blue-app .qx-watch {--qx:#9a5d00}
  body#royal-blue-app .qx-alert {--qx:#c9372c}
  body#royal-blue-app .qx-info {--qx:#175adb}
  body#royal-blue-app .qx-muted {--qx:#5b6f88}
  body#royal-blue-app .qx-hint {margin:0;font-size:12.5px;line-height:1.5;color:#62758d}
  body#royal-blue-app .qx-sr {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  body#royal-blue-app .qx-empty {margin:0;padding:18px 14px;border:1px dashed #cfe0fb;border-radius:10px;background:#fafcff;color:#62758d;font-size:13.5px;line-height:1.6}
  body#royal-blue-app .qx-schedule {display:flex;flex-direction:column}
  body#royal-blue-app .qx-schedule .qx-note {margin-top:auto;padding-top:12px}
  body#royal-blue-app .qx-note {display:flex;gap:8px;align-items:flex-start;margin:12px 0 0;font-size:12.5px;line-height:1.5;color:#62758d}
  body#royal-blue-app .qx-note svg {flex:none;margin-top:2px}
  body#royal-blue-app .qx-link {border:0;background:none;color:#c9372c;font:inherit;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
  body#royal-blue-app .qx-link:hover {text-decoration:underline}

  /* hero: what applies now */
  body#royal-blue-app .qx-now {display:grid;grid-template-columns:auto minmax(0,1fr) minmax(300px,420px);gap:20px;align-items:stretch;padding:18px 20px;border-left:5px solid #12a150;background:linear-gradient(135deg,#f2faf6,#fff 55%)}
  body#royal-blue-app .qx-now.is-empty {border-left-color:#c77b00;background:linear-gradient(135deg,#fff9ee,#fff 55%)}
  body#royal-blue-app .qx-now-icon {display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:#dff3e8;color:#12a150}
  body#royal-blue-app .qx-now.is-empty .qx-now-icon {background:#fdecc8;color:#9a5d00}
  body#royal-blue-app .qx-eyebrow {display:block;font-size:12px;font-weight:700;color:#12a150;text-transform:uppercase;letter-spacing:.3px}
  body#royal-blue-app .qx-none .qx-eyebrow {color:#9a5d00}
  body#royal-blue-app .qx-now-main h2 {margin:4px 0 2px;font-size:22px;line-height:1.3;color:#133858;overflow-wrap:anywhere}
  body#royal-blue-app .qx-now-main h2 small {font-size:15px;font-weight:600;color:#4a6382}
  body#royal-blue-app .qx-now-name {margin:0 0 10px;font-size:14px;line-height:1.5;color:#36516f}
  body#royal-blue-app .qx-facts {display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;font-size:13px;color:#4a6382}
  body#royal-blue-app .qx-defs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px;margin:0}
  body#royal-blue-app .qx-defs div {min-width:0}
  body#royal-blue-app .qx-defs dt {font-size:12px;font-weight:700;color:#62758d;text-transform:uppercase;letter-spacing:.25px}
  body#royal-blue-app .qx-defs dd {margin:2px 0 0;font-size:14px;line-height:1.45;color:#133858}
  body#royal-blue-app .qx-warn {display:flex;gap:10px;align-items:flex-start;margin:12px 0 0;padding:10px 12px;border:1px solid #f1d9a6;border-radius:10px;background:#fff8e8;color:#6b4300;font-size:13px;line-height:1.5}
  body#royal-blue-app .qx-warn svg {flex:none;margin-top:1px;color:#c77b00}
  body#royal-blue-app .qx-basis {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  body#royal-blue-app .qx-basis,
  body#royal-blue-app .qx-others {margin:8px 0 0;font-size:13px;line-height:1.5;color:#62758d}
  body#royal-blue-app .qx-picker {display:grid;align-content:start;gap:10px;padding:14px;border:1px solid #dbe7fb;border-radius:12px;background:#fff}
  body#royal-blue-app .qx-picker-actions {display:flex;flex-wrap:wrap;gap:8px}

  /* counters */
  body#royal-blue-app .qx-counters {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  body#royal-blue-app .qx-counter {display:flex;gap:12px;align-items:center;min-width:0;padding:12px 16px;border:1px solid #dbe7fb;border-radius:12px;background:#fff;color:#175adb}
  body#royal-blue-app .qx-counter>div {min-width:0}
  body#royal-blue-app .qx-counter span {display:block;font-size:12px;font-weight:700;color:#62758d;text-transform:uppercase;letter-spacing:.25px}
  body#royal-blue-app .qx-counter strong {display:block;font-size:19px;color:#133858}
  body#royal-blue-app .qx-counter small {display:block;font-size:12px;line-height:1.4;color:#62758d}

  /* schedule + lookup side by side */
  body#royal-blue-app .qx-two {display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:14px;align-items:stretch}
  body#royal-blue-app .qx-two>.card {margin:0;min-width:0}
  body#royal-blue-app .qx-timeline {position:relative;display:grid;gap:10px;margin:0;padding:0;list-style:none}
  body#royal-blue-app .qx-timeline::before {content:"";position:absolute;left:6px;top:8px;bottom:8px;width:2px;background:#dbe7fb}
  body#royal-blue-app .qx-timeline[data-all="0"] .is-past {display:none}
  body#royal-blue-app .qx-step {position:relative;display:flex;gap:12px;align-items:flex-start;justify-content:space-between;padding:0 0 0 24px}
  body#royal-blue-app .qx-dot {position:absolute;left:0;top:7px;width:14px;height:14px;border-radius:50%;border:3px solid #fff;background:#8a9bb2;box-shadow:0 0 0 1px #cfe0fb}
  body#royal-blue-app .qx-s-active .qx-dot {background:#12a150}
  body#royal-blue-app .qx-s-scheduled .qx-dot {background:#175adb}
  body#royal-blue-app .qx-step-body {min-width:0;flex:1;padding:10px 12px;border:1px solid #e1eafa;border-radius:10px;background:#fff}
  body#royal-blue-app .qx-s-active .qx-step-body {border-color:#bfe3cf;background:#f7fcf9}
  body#royal-blue-app .qx-step-top {display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center}
  body#royal-blue-app .qx-step-top strong {font-size:14px;color:#133858}
  body#royal-blue-app .qx-tag {padding:1px 8px;border-radius:6px;background:#f1f5f9;color:#62758d;font-size:11.5px;font-weight:600;white-space:nowrap}
  body#royal-blue-app .qx-step-ver {margin-top:3px;font-size:13px;color:#36516f;overflow-wrap:anywhere}
  body#royal-blue-app .qx-step-time {margin-top:2px;font-size:12.5px;color:#62758d}
  body#royal-blue-app .qx-step-time i {font-style:normal;color:#8a9bb2}
  body#royal-blue-app .qx-step-reason {margin:4px 0 0;font-size:12px;line-height:1.45;color:#8a9bb2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  body#royal-blue-app .qx-toggle {margin-top:10px;min-height:36px;padding:0 14px;border:1px solid #cfe0fb;border-radius:10px;background:#fff;color:#175adb;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
  body#royal-blue-app .qx-toggle:hover {background:#eef4ff}
  body#royal-blue-app .qx-lookup-form {display:grid;gap:10px;margin-top:10px}
  body#royal-blue-app .qx-lookup-result {margin:12px 0 0;padding:10px 12px;border-radius:10px;background:#f3f8ff;color:#244477;font-size:13.5px;line-height:1.5}
  body#royal-blue-app .qx-lookup-result:empty {display:none}

  /* library */
  body#royal-blue-app .qx-library-head {display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:6px}
  body#royal-blue-app .qx-library-head h2 {margin:0;font-size:20px;color:#133858}
  body#royal-blue-app .qx-library-head span {font-size:12.5px;color:#62758d}
  body#royal-blue-app .qx-search {position:relative;flex:0 1 320px;min-width:200px}
  body#royal-blue-app .qx-search svg {position:absolute;left:11px;top:50%;transform:translateY(-50%);color:#8a9bb2;pointer-events:none}
  body#royal-blue-app .qx-search input {width:100%;min-height:40px;padding:0 12px 0 34px;border:1px solid #cfe0fb;border-radius:10px;background:#fff;color:#133858;font:inherit;font-size:14px}
  body#royal-blue-app .qx-search input:focus {outline:3px solid #aac8ff;outline-offset:1px;border-color:#175adb}
  body#royal-blue-app .qx-filters {display:flex;flex-wrap:wrap;gap:6px}
  body#royal-blue-app .qx-filter {display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border:1px solid #cfe0fb;border-radius:999px;background:#fff;color:#245bba;font:inherit;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}
  body#royal-blue-app .qx-filter b {padding:0 6px;border-radius:999px;background:#eaf1fc;color:#143d82;font-size:11.5px}
  body#royal-blue-app .qx-filter[aria-pressed="true"] {background:#175adb;border-color:#175adb;color:#fff}
  body#royal-blue-app .qx-filter[aria-pressed="true"] b {background:rgba(255,255,255,.22);color:#fff}
  body#royal-blue-app .qx-filter:focus-visible,
  body#royal-blue-app .qx-toggle:focus-visible,
  body#royal-blue-app .qx-link:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .qx-library {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr))!important;gap:14px;align-items:stretch!important}
  body#royal-blue-app .qx-version {display:flex;flex-direction:column;gap:10px;min-width:0;margin:0}
  body#royal-blue-app .qx-version[hidden] {display:none}
  body#royal-blue-app .qx-version:only-child {max-width:620px}
  body#royal-blue-app .qx-version.is-active {border-color:#bfe3cf;box-shadow:0 0 0 1px #bfe3cf}
  body#royal-blue-app .qx-version-top {display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
  body#royal-blue-app .qx-code {display:flex;align-items:center;gap:8px;margin-right:auto;color:#175adb;font-weight:700;font-size:14px}
  body#royal-blue-app .qx-inuse {padding:2px 10px;border-radius:999px;background:#12a150;color:#fff;font-size:12px;font-weight:700;white-space:nowrap}
  body#royal-blue-app .qx-version h3 {margin:0;font-size:17px;line-height:1.45;color:#133858}
  body#royal-blue-app .qx-version-meta {display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;font-size:12px;color:#62758d}
  body#royal-blue-app .qx-version-meta>span {padding:3px 8px;border-radius:6px;background:#f1f5f9}
  body#royal-blue-app .qx-limits {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body#royal-blue-app .qx-limit {min-width:0;padding:8px 10px;border:1px solid #e1eafa;border-radius:9px;background:#fafcff}
  body#royal-blue-app .qx-limit span {display:block;font-size:12px;color:#62758d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body#royal-blue-app .qx-limit strong {display:block;margin-top:1px;font-size:13.5px;color:#133858;overflow-wrap:anywhere}
  body#royal-blue-app .qx-limit small {display:block;margin-top:2px;font-size:11.5px;color:#62758d}
  body#royal-blue-app .qx-more>summary,
  body#royal-blue-app .qx-source>summary {cursor:pointer;font-size:13px;font-weight:600;color:#175adb}
  body#royal-blue-app .qx-more .qx-limits {margin-top:8px}
  body#royal-blue-app .qx-source p {margin:8px 0 0;font-size:13px;line-height:1.55;color:#36516f}
  body#royal-blue-app .qx-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:4px}
  body#royal-blue-app .qx-actions .btn {white-space:nowrap}
  body#royal-blue-app .qx-history {display:flex;gap:14px;padding:16px 18px;border:1px solid #dbe7fb;border-radius:12px;background:#f3f8ff;color:#244477}
  body#royal-blue-app .qx-history svg {flex:none}
  body#royal-blue-app .qx-history p {margin:4px 0 6px;font-size:13px;line-height:1.6}

  @media (max-width:1100px) {
    body#royal-blue-app .qx-now {grid-template-columns:auto minmax(0,1fr)}
    body#royal-blue-app .qx-now .qx-picker {grid-column:1/-1}
    body#royal-blue-app .qx-two {grid-template-columns:minmax(0,1fr)}
  }
  @media (max-width:900px) {
  }
  @media (max-width:600px) {
    body#royal-blue-app .qx-counters {grid-template-columns:minmax(0,1fr);gap:8px}
    body#royal-blue-app .qx-now {grid-template-columns:minmax(0,1fr);padding:14px}
    body#royal-blue-app .qx-now-icon {width:40px;height:40px}
    body#royal-blue-app .qx-now-main h2 {font-size:19px}
    body#royal-blue-app .qx-defs {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .qx-search {flex-basis:100%}
    body#royal-blue-app .qx-limits {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .qx-actions .btn {flex:1 1 auto;justify-content:center}
    body#royal-blue-app .qx-step {flex-direction:column;gap:4px}
  }
}

@media (max-width:600px) {
  .qx-source a {display:inline-block;padding:11px 0}
}

/* ==== staff-entry-bg.css ==== */
/* Login gateway ("Không gian dành cho cán bộ"): the river map of the resident page as a soft, blurred background. */
body#royal-blue-app .staff-entry {position:relative;isolation:isolate}
body#royal-blue-app .staff-entry::before {content:"";position:fixed;inset:-24px;z-index:-2;background:url("/assets/images/community-coastal-hero-v7.webp") center 38%/cover no-repeat;filter:blur(1.5px) saturate(1);opacity:.8;transform:scale(1.03);pointer-events:none}
body#royal-blue-app .staff-entry::after {content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(238,245,255,.9) 0%,rgba(238,245,255,.72) 36%,rgba(238,245,255,.16) 72%,rgba(238,245,255,.3) 100%),linear-gradient(180deg,rgba(238,245,255,.45) 0%,rgba(238,245,255,0) 22%,rgba(238,245,255,0) 80%,rgba(238,245,255,.5) 100%);pointer-events:none}
body#royal-blue-app .staff-entry-card {backdrop-filter:blur(3px);background:rgba(255,255,255,.96)}
@media (prefers-reduced-data:reduce) {
  body#royal-blue-app .staff-entry::before {background-image:none}
}
@media (max-width:700px) {
  body#royal-blue-app .staff-entry::before {opacity:.66;filter:blur(2px)}
  body#royal-blue-app .staff-entry::after {background:linear-gradient(180deg,rgba(238,245,255,.78) 0%,rgba(238,245,255,.62) 60%,rgba(238,245,255,.74) 100%)}
}

/* ==== table-pager.css ==== */
/* Pager under every long table (table-pager.js). */
@layer readability {
  body#royal-blue-app .pg-off {display:none!important}
  body#royal-blue-app .pg-nav {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:10px 0 0;padding:8px 2px 0;font-size:13px;color:#4a6382}
  body#royal-blue-app .pg-nav[hidden] {display:none}
  body#royal-blue-app .pg-info b {color:#133858}
  body#royal-blue-app .pg-size {display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
  body#royal-blue-app .pg-size select {min-height:34px;padding:0 28px 0 10px;border:1px solid #cfe0fb;border-radius:8px;background-color:#fff;color:#133858;font:inherit;font-size:13px}
  body#royal-blue-app .pg-pages {display:flex;flex-wrap:wrap;align-items:center;gap:4px}
  body#royal-blue-app .pg-btn {min-width:34px;min-height:34px;padding:0 10px;border:1px solid #cfe0fb;border-radius:8px;background:#fff;color:#245bba;font:inherit;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}
  body#royal-blue-app .pg-btn:hover:not(:disabled) {background:#eef4ff}
  body#royal-blue-app .pg-btn.is-current {background:#175adb;border-color:#175adb;color:#fff}
  body#royal-blue-app .pg-btn:disabled {opacity:.45;cursor:default}
  body#royal-blue-app .pg-btn:focus-visible,
  body#royal-blue-app .pg-size select:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .pg-gap {padding:0 4px;color:#8a9bb2}
  @media (max-width:700px) {
    body#royal-blue-app .pg-nav {flex-direction:column;align-items:stretch;gap:8px}
    body#royal-blue-app .pg-pages {justify-content:center}
    body#royal-blue-app .pg-size {justify-content:space-between}
    body#royal-blue-app .pg-btn {min-width:38px;min-height:38px}
    body#royal-blue-app .pg-step {flex:1 1 auto}
  }
  /* status badges inside tables (role, level, state) never wrap: the table scrolls instead */
  body#royal-blue-app td .badge, body#royal-blue-app th .badge {white-space:nowrap!important;word-break:keep-all!important}
}

/* ==== alerts-page.css ==== */
/* "Cảnh báo" page: summary cards that filter, instant filters, level-coloured rows. Scoped to .ap-page. */
@layer readability {
  body#royal-blue-app .ap-page {display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0}
  body#royal-blue-app .ap-cards {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  body#royal-blue-app .ap-card {display:flex;flex-direction:column;gap:3px;min-width:0;padding:13px 15px;border:1px solid #dbe7fb;border-left:4px solid var(--ap,#175adb);border-radius:12px;background:#fff;color:#133858;font:inherit;text-align:left;cursor:pointer;box-shadow:0 1px 2px rgba(20,60,120,.05)}
  body#royal-blue-app .ap-card:hover {background:#f6faff;border-color:#c3d8f8;border-left-color:var(--ap,#175adb)}
  body#royal-blue-app .ap-card:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .ap-t-ok {--ap:#12a150}
  body#royal-blue-app .ap-t-watch {--ap:#c77b00}
  body#royal-blue-app .ap-t-alert {--ap:#c9372c}
  body#royal-blue-app .ap-t-info {--ap:#175adb}
  body#royal-blue-app .ap-card-label {font-size:12px;font-weight:700;color:#62758d;text-transform:uppercase;letter-spacing:.3px}
  body#royal-blue-app .ap-card strong {font-size:28px;line-height:1.1;color:var(--ap,#133858)}
  body#royal-blue-app .ap-card-sub {font-size:12px;line-height:1.4;color:#62758d}
  body#royal-blue-app .ap-main {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0;margin:0}
  body#royal-blue-app .ap-toolbar {display:grid;grid-template-columns:minmax(200px,1.3fr) repeat(5,minmax(132px,1fr));gap:10px;align-items:end}
  body#royal-blue-app .ap-toolbar>*,
  body#royal-blue-app .ap-toolbar .field {margin:0!important;min-width:0!important;max-width:none!important}
  body#royal-blue-app .ap-toolbar .form-control {width:100%!important;min-width:0!important}
  body#royal-blue-app .ap-search {position:relative;display:block}
  body#royal-blue-app .ap-search svg {position:absolute;left:11px;top:50%;transform:translateY(-50%);color:#8a9bb2;pointer-events:none}
  body#royal-blue-app .ap-search input {width:100%;min-height:42px;padding:0 12px 0 34px;border:1px solid #cfe0fb;border-radius:10px;background:#fff;color:#133858;font:inherit;font-size:14px}
  body#royal-blue-app .ap-search input:focus {outline:3px solid #aac8ff;outline-offset:1px;border-color:#175adb}
  body#royal-blue-app .ap-sr {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  body#royal-blue-app .ap-filters {display:flex;flex-wrap:wrap;align-items:center;gap:6px}
  body#royal-blue-app .ap-filter {display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border:1px solid #cfe0fb;border-radius:999px;background:#fff;color:#245bba;font:inherit;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}
  body#royal-blue-app .ap-filter b {padding:0 6px;border-radius:999px;background:#eaf1fc;color:#143d82;font-size:11.5px}
  body#royal-blue-app .ap-filter[aria-pressed="true"] {background:#175adb;border-color:#175adb;color:#fff}
  body#royal-blue-app .ap-filter[aria-pressed="true"] b {background:rgba(255,255,255,.22);color:#fff}
  body#royal-blue-app .ap-filter:focus-visible,
  body#royal-blue-app .ap-clear:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .ap-clear {margin-left:auto;border:0;background:none;color:#c9372c;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
  body#royal-blue-app .ap-clear[hidden] {display:none}
  body#royal-blue-app .ap-count {margin:0;font-size:13px;color:#62758d}
  body#royal-blue-app .ap-table {overflow-x:auto;border:1px solid #e1eafa;border-radius:10px}
  body#royal-blue-app .ap-table table {width:100%;border-collapse:collapse;font-size:13.5px}
  body#royal-blue-app .ap-table th {padding:9px 10px;background:#f3f8ff;color:#4a6382;font-size:12px;font-weight:700;text-align:left;text-transform:uppercase;letter-spacing:.25px;white-space:nowrap;border-bottom:1px solid #dbe7fb}
  body#royal-blue-app .ap-table td {padding:8px 10px!important;height:auto!important;border-bottom:1px solid #edf2fb;color:#244477;vertical-align:middle;white-space:nowrap}
  body#royal-blue-app .ap-table .ap-row td:first-child {border-left:4px solid var(--ap-level,#8a9bb2)}
  body#royal-blue-app .ap-table .ap-row:hover td {background:#f6faff}
  body#royal-blue-app .ap-table .ap-row:focus-visible {outline:3px solid #aac8ff;outline-offset:-3px}
  body#royal-blue-app .ap-table tbody tr:last-child td {border-bottom:0}
  body#royal-blue-app .ap-table small {display:block;margin-top:1px;font-size:11.5px;color:#8a9bb2;white-space:nowrap}
  body#royal-blue-app .ap-table td.ap-when {white-space:normal;min-width:130px;max-width:190px}
  body#royal-blue-app .ap-table td.ap-when small {white-space:normal}
  body#royal-blue-app .ap-table .ap-num {text-align:right}
  body#royal-blue-app .ap-table .ap-value {text-align:right;font-variant-numeric:tabular-nums}
  body#royal-blue-app .ap-table .ap-value strong {font-size:15px;color:#133858}
  body#royal-blue-app .ap-table .ap-id strong {color:#133858}
  body#royal-blue-app .ap-table .ap-station {white-space:normal;min-width:120px;max-width:170px}
  body#royal-blue-app .ap-table .ap-param {white-space:normal;min-width:100px;max-width:150px}
  body#royal-blue-app .ap-table .ap-go {color:#8a9bb2;width:20px;padding-left:2px!important}
  body#royal-blue-app .ap-table .badge {display:inline-flex;align-items:center;gap:4px;width:auto;max-width:none;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;writing-mode:horizontal-tb}
  body#royal-blue-app .ap-toolbar .field>span,
  body#royal-blue-app .ap-toolbar .field>label {display:block;text-align:left;margin:0 0 4px;font-size:12px;font-weight:700;color:#62758d}
  body#royal-blue-app .ap-chip {display:inline-block;padding:2px 10px;border-radius:999px;background:color-mix(in srgb,var(--ap) 14%,#fff);color:var(--ap);font-size:12px;font-weight:700;white-space:nowrap}
  body#royal-blue-app .ap-chip.ap-ok {--ap:#12a150}
  body#royal-blue-app .ap-chip.ap-watch {--ap:#9a5d00}
  body#royal-blue-app .ap-chip.ap-info {--ap:#175adb}
  body#royal-blue-app .ap-chip.ap-muted {--ap:#5b6f88}
  body#royal-blue-app .ap-sub {display:block}
  body#royal-blue-app .ap-empty {display:grid;justify-items:center;gap:6px;padding:34px 16px;border:1px dashed #cfe0fb;border-radius:12px;background:#fafcff;color:#62758d;text-align:center}
  body#royal-blue-app .ap-empty svg {color:#12a150}
  body#royal-blue-app .ap-empty strong {color:#133858;font-size:15px}
  @media (max-width:1279px) {
    body#royal-blue-app .ap-table td.ap-station,
    body#royal-blue-app .ap-table td.ap-param,
    body#royal-blue-app .ap-table td.ap-when,
    body#royal-blue-app .ap-table td.ap-when small {white-space:nowrap;max-width:none}
  }
  @media (max-width:1180px) {
    body#royal-blue-app .ap-toolbar {grid-template-columns:repeat(2,minmax(0,1fr))}
    body#royal-blue-app .ap-toolbar .ap-search {grid-column:1/-1}
  }
  @media (max-width:900px) {
    body#royal-blue-app .ap-cards {grid-template-columns:repeat(2,minmax(0,1fr))}
  }
  @media (max-width:560px) {
    body#royal-blue-app .ap-cards {gap:8px}
    body#royal-blue-app .ap-card {padding:10px 12px}
    body#royal-blue-app .ap-card strong {font-size:22px}
    body#royal-blue-app .ap-toolbar {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .ap-clear {margin-left:0}
  }
}

/* admin: preview of the designed alert e-mail (opened from Quản trị › Thông báo) */
.email-preview-backdrop {position:fixed;inset:0;z-index:10050;display:grid;place-items:center;background:rgba(10,30,60,.55);padding:16px}
.email-preview {width:min(760px,100%);height:min(92vh,900px);display:grid;grid-template-rows:auto 1fr;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 20px 70px rgba(7,24,41,.35)}
.email-preview-bar {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid #dbe7fb;background:#f7faff}
.email-preview iframe {width:100%;height:100%;border:0;background:#eef4fb}

/* "no permission" panel (app.js render, HTTP 403) */
.error-panel.denied {display:grid;justify-items:start;gap:8px;text-align:left}
.error-panel.denied strong {font-size:17px;color:#133858}
.error-panel.denied p {margin:0;text-align:left;color:#36516f}
.error-panel.denied .btn {margin-top:6px}

/* One sentence that sums up the cards; on phones the cards drop their grey sub-lines (the sentence says it) and stay compact. */
@layer readability {
  body#royal-blue-app .ap-lead {margin:0;font-size:14px;font-weight:600;line-height:1.45;color:#2d4e7a}
  @media (max-width:560px) {
    body#royal-blue-app .ap-card-sub {display:none}
    body#royal-blue-app .ap-card-label {font-size:11px}
  }

  /* Tín hiệu hiện trường (Nguyên tắc 4) */
  body#royal-blue-app .fs-card {display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0;margin:0;border-left:4px solid #c77b00}
  body#royal-blue-app .fs-top {display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0}
  body#royal-blue-app .fs-top h2 {display:flex;align-items:center;gap:8px;margin:0;font-size:17px;color:#133858}
  body#royal-blue-app .fs-lead {margin:4px 0 0;font-size:13.5px;color:#4b5f78}
  body#royal-blue-app .fs-list {display:grid;gap:8px;margin:0;padding:0;list-style:none;min-width:0}
  body#royal-blue-app .fs-item {display:grid;gap:4px;min-width:0;padding:10px 12px;border:1px solid #f0d9a8;border-radius:10px;background:#fffaf0}
  body#royal-blue-app .fs-item[data-fs-status="removed"] {border-color:#dbe3ee;background:#f7f9fc}
  body#royal-blue-app .fs-head {display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
  body#royal-blue-app .fs-head small {margin-left:auto;color:#62758d}
  body#royal-blue-app .fs-note {margin:0;font-size:14px;color:#133858;overflow-wrap:anywhere}
  body#royal-blue-app .fs-meta {color:#62758d;font-size:12.5px;overflow-wrap:anywhere}
  body#royal-blue-app .fs-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
  body#royal-blue-app .fs-past summary {cursor:pointer;font-size:13px;font-weight:600;color:#245bba;margin-bottom:6px}
}
/* "Tạm dừng cảnh báo" card on the Cảnh báo page (22-10-2026) */
.ap-pause{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:12px 16px;margin-bottom:14px;min-width:0}
.ap-pause p{margin:0;display:flex;gap:8px;align-items:flex-start;flex:1 1 320px;min-width:0;font-size:13.5px;line-height:1.5}
.ap-pause.is-paused{border-left:4px solid #9aabbc;background:#f4f6f9}
.ap-pause-note{flex:1 1 100%;color:#8a4b00;font-size:12.5px;font-weight:600}
.ap-pause .fs-actions{flex-wrap:wrap;align-items:center}
.ap-pause .ap-season{flex:1 1 100%;margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:13px;color:#33506e}
.ap-pause .ap-season select{min-height:32px;padding:0 8px;border:1px solid #cfe0fb;border-radius:8px;font:inherit;font-size:13px;background:#fff}
/* Người dân nhận tin (đợt 2, 23-10-2026) */
.sb-settings p{margin:0;display:flex;gap:8px;align-items:flex-start;font-size:13.5px;line-height:1.5;min-width:0}
.sb-tools{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.sb-tools input,.sb-tools select{min-height:36px;padding:0 10px;border:1px solid #cfe0fb;border-radius:9px;font:inherit;font-size:13.5px;background:#fff;color:#133858;max-width:100%}
.sb-tools input{flex:1 1 220px;min-width:0}
.sb-table td{vertical-align:top}
.sb-table td small{display:block;color:#526c89;font-size:12px;margin-top:2px}
.sb-status{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.sb-status.sb-ok{background:#e3f5ea;color:#11663a}.sb-status.sb-warn{background:#fff3d6;color:#7a4b00}.sb-status.sb-bad{background:#fde7e5;color:#a1271b}.sb-status.sb-muted{background:#eef2f7;color:#4b5d73}
.sb-ok{color:#11663a;font-weight:700}.sb-warn{color:#7a4b00;font-size:12px}
.sb-levels{white-space:nowrap;font-weight:600}
.sb-bulk{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:8px 10px;margin:0 0 10px;border-radius:10px;background:#f2f7ff;border:1px solid #d9e6fb}
.sb-bulk>span{font-weight:700;font-size:13.5px;margin-right:6px}
.sb-history ul{margin:6px 0 0;padding-left:18px;font-size:13px;display:grid;gap:4px}
.sb-delete{margin-top:8px}.sb-delete summary{cursor:pointer;color:#a1271b;font-size:13px}
/* Tin từ người dân (đợt 3, 23-10-2026) */
.rep-photos{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.rep-photos img{width:96px;height:72px;object-fit:cover;border-radius:8px;border:1px solid #d9e6fb;display:block}
/* "Thông báo" panel under the bell (23-10-2026; redesigned 24-10-2026: filters, day groups, phone sheet) */
.sn-panel{position:fixed;z-index:1200;display:flex;flex-direction:column;width:min(420px,calc(100vw - 16px));max-height:min(78vh,640px);overflow:hidden;background:#fff;border:1px solid #d9e6fb;border-radius:16px;box-shadow:0 24px 60px rgba(19,56,88,.22),0 2px 6px rgba(19,56,88,.08);color:#133858}
.sn-head{display:flex;align-items:center;gap:8px;padding:14px 12px 10px 16px}
.sn-title{display:flex;align-items:center;gap:8px;flex:1 1 auto;min-width:0}
.sn-title strong{font-size:16px;font-weight:800}
.sn-badge{padding:2px 8px;border-radius:999px;background:#e8f0ff;color:#175adb;font-size:12px;font-weight:700;white-space:nowrap}
.sn-readall{flex:0 0 auto;font:inherit;font-size:12.5px;font-weight:600;border:0;background:none;color:#175adb;cursor:pointer;padding:6px 8px;border-radius:8px}
.sn-readall:hover{background:#f0f5ff}
.sn-readall[disabled]{opacity:.6;cursor:wait}
.sn-allread{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;padding:6px 8px;font-size:12.5px;font-weight:600;color:#11663a}
.sn-allread::before{content:"";width:7px;height:7px;border-radius:50%;background:#12a150}
.sn-close{display:none;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:10px;background:#f2f6fc;color:#33506e;cursor:pointer}
.sn-alerts{display:flex;align-items:center;gap:10px;margin:0 12px 8px;padding:10px 12px;border-radius:12px;background:#f5f8fd;text-decoration:none;color:#33506e;font-size:13.5px}
.sn-alerts.is-on{background:#fff4e5;color:#7a4b00}
.sn-alerts b{font-size:15px}
.sn-alerts em{display:inline-flex;align-items:center;gap:4px;margin-left:auto;font-style:normal;color:#175adb;font-weight:700}
.sn-filters{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 10px;scrollbar-width:none;border-bottom:1px solid #eef3fb}
.sn-filters::-webkit-scrollbar{display:none}
.sn-filters button{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:0 11px;border:1px solid #d9e6fb;border-radius:999px;background:#fff;color:#33506e;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}
.sn-filters button b{font-size:11px;padding:0 6px;border-radius:999px;background:#eef3fb;color:#4a6382}
.sn-filters button[aria-pressed="true"]{background:#175adb;border-color:#175adb;color:#fff}
.sn-filters button[aria-pressed="true"] b{background:rgba(255,255,255,.22);color:#fff}
.sn-filters button b.sn-unread-n,.sn-filters button[aria-pressed="true"] b.sn-unread-n{min-width:18px;padding:0 5px;border-radius:999px;background:#e5233d;color:#fff;font-weight:800;text-align:center;box-shadow:0 0 0 1.5px #fff}
.sn-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:6px}
.sn-group h3{position:sticky;top:0;z-index:1;margin:0;padding:8px 16px 4px;background:rgba(255,255,255,.96);font-size:11.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:#7a8ca3}
.sn-list{list-style:none;margin:0;padding:0 6px}
.sn-item button{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr) 10px;gap:10px;align-items:start;width:100%;text-align:left;font:inherit;color:inherit;background:none;border:0;border-radius:12px;padding:10px;cursor:pointer}
.sn-item button:hover{background:#f4f8ff}
.sn-item button:focus-visible{outline:3px solid #aac8ff;outline-offset:-3px}
.sn-ico{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#e8f0ff;color:#175adb}
.sn-ico.sn-green{background:#e3f5ea;color:#11663a}.sn-ico.sn-amber{background:#fff1d6;color:#a35a00}.sn-ico.sn-violet{background:#efe9fd;color:#5b3cc4}.sn-ico.sn-grey{background:#eef2f7;color:#4b5d73}
.sn-text{display:grid;gap:2px;min-width:0}
.sn-text strong{font-size:13.5px;line-height:1.35;font-weight:600;color:#133858;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sn-item.is-unread .sn-text strong{font-weight:800}
.sn-body{color:#526c89;font-size:12.5px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.sn-time{font-size:11.5px;color:#7a8ca3}
.sn-item.is-unread .sn-time{color:#175adb;font-weight:600}
.sn-dot{width:9px;height:9px;margin-top:6px;border-radius:50%;background:#175adb}
.sn-empty{margin:0;padding:28px 16px;text-align:center;color:#526c89;font-size:13.5px}
.sn-backdrop{position:fixed;inset:0;z-index:1199;background:rgba(10,30,60,.38)}
body.sn-open{overflow:hidden}
.sn-panel.is-sheet{left:0;right:0;bottom:0;top:auto;width:100%;max-height:70vh;max-height:70dvh;border-radius:18px 18px 0 0;border:0;padding-bottom:env(safe-area-inset-bottom);animation:sn-up .2s ease-out}
/* a fixed height while there are notices: switching the filter changes the list, not the size of the panel (24-10-2026) */
.sn-panel:has(.sn-filters){height:min(78vh,640px)}
.sn-panel.is-sheet:has(.sn-filters){height:70vh;height:70dvh} /* at most 70 % of the phone screen (24-10-2026) */
.sn-scroll .sn-empty{padding-top:48px}
/* the scrollbar keeps its place whether the list overflows or not: the rows do not jump sideways when the filter changes */
.sn-scroll{overflow-y:auto;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#c9d6ea transparent}
.sn-scroll::-webkit-scrollbar{width:6px}
.sn-scroll::-webkit-scrollbar-thumb{background:#c9d6ea;border-radius:6px}
.sn-scroll::-webkit-scrollbar-track{background:transparent}
.sn-panel.is-sheet::before{content:"";flex:none;align-self:center;width:42px;height:4px;margin-top:8px;border-radius:4px;background:#d3dceb} /* flex:none: the handle was squeezed by a long list, so a short list (Đăng ký nhận tin) moved everything 3 px */
.sn-panel.is-sheet .sn-close{display:inline-flex}
.sn-panel.is-sheet .sn-badge{display:none}
.sn-title strong{white-space:nowrap}
.sn-panel.is-sheet .sn-item button{min-height:56px;padding:12px 10px}
/* the head, the alerts line and the filters keep their height: only the list scrolls (24-10-2026, the filters were covered on phones) */
.sn-head,.sn-alerts,.sn-filters{flex:none}
.sn-panel.is-sheet .sn-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.sn-panel.is-sheet .sn-filters button{justify-content:center;min-width:0}
.sn-panel.is-sheet .sn-filters button{min-height:38px;padding:0 13px;font-size:13px}
@keyframes sn-up{from{transform:translateY(24px);opacity:.4}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.sn-panel.is-sheet{animation:none}}
/* Cảnh báo page tabs and one-line lists of field signals / residents' reports (24-10-2026) */
@layer readability {
  body#royal-blue-app .ap-tabs {display:flex;gap:4px;min-width:0;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid #dbe7fb;margin:2px 0 -4px}
  body#royal-blue-app .ap-tabs::-webkit-scrollbar {display:none}
  body#royal-blue-app .ap-tab {display:inline-flex !important;align-items:center;gap:8px;flex:0 0 auto;min-height:44px !important;padding:0 16px !important;border:0 !important;border-bottom:3px solid transparent !important;border-radius:0 !important;background:none !important;color:#4a6382 !important;font:inherit;font-size:14px !important;font-weight:650 !important;cursor:pointer;white-space:nowrap;box-shadow:none !important}
  body#royal-blue-app .ap-tab:hover {color:#175adb !important;background:#f6faff !important}
  body#royal-blue-app .ap-tab[aria-selected="true"] {color:#133858 !important;border-bottom-color:#175adb !important}
  body#royal-blue-app .ap-tab:focus-visible {outline:3px solid #aac8ff;outline-offset:-3px}
  body#royal-blue-app .ap-tab-n {min-width:22px;padding:1px 7px;border-radius:999px;background:#eaf1fc;color:#143d82;font-size:12px;font-weight:800;text-align:center}
  body#royal-blue-app .ap-tab-n.is-watch {background:#fff1d6;color:#7a4b00}
  body#royal-blue-app .ap-tab-n.is-alert {background:#c9372c;color:#fff}
  body#royal-blue-app .ap-panel[hidden] {display:none !important}
  body#royal-blue-app .fx-card {gap:12px !important}
  body#royal-blue-app .fx-tools {display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-width:0}
  body#royal-blue-app .fx-filters {display:flex;flex-wrap:wrap;gap:6px;min-width:0}
  body#royal-blue-app .fx-search {flex:1 1 220px;max-width:340px;margin-left:auto}
  body#royal-blue-app .fx-search input {min-height:36px !important}
  body#royal-blue-app .fx-list {display:grid;margin:0;padding:0;list-style:none;min-width:0;border:1px solid #e1eafa;border-radius:12px;overflow:hidden;background:#fff}
  body#royal-blue-app .fx-row {min-width:0;border-top:1px solid #edf2fb}
  body#royal-blue-app .fx-row:first-child {border-top:0}
  body#royal-blue-app .fx-row details {min-width:0}
  body#royal-blue-app .fx-row summary {display:grid;grid-template-columns:auto minmax(0,1fr) auto auto 16px;align-items:center;gap:12px;min-height:56px;padding:8px 14px;cursor:pointer;list-style:none}
  body#royal-blue-app .fx-row summary::-webkit-details-marker {display:none}
  body#royal-blue-app .fx-row summary:hover {background:#f6faff}
  body#royal-blue-app .fx-row summary:focus-visible {outline:3px solid #aac8ff;outline-offset:-3px}
  body#royal-blue-app .fx-row details[open] > summary {background:#f3f8ff}
  body#royal-blue-app .fx-row[data-fs-status="removed"] summary {opacity:.72}
  body#royal-blue-app .fx-level .badge {white-space:nowrap !important}
  body#royal-blue-app .fx-title {display:grid;gap:1px;min-width:0}
  body#royal-blue-app .fx-title strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:#133858}
  body#royal-blue-app .fx-title small {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;color:#62758d}
  body#royal-blue-app .fx-chips {display:flex;gap:6px;justify-content:flex-end}
  body#royal-blue-app .fx-aside {display:flex;justify-content:flex-end;min-width:0}
  body#royal-blue-app .fx-count {display:inline-flex;align-items:center;gap:3px;padding:2px 7px;border-radius:999px;background:#eef3fb;color:#4a6382;font-size:12px;font-weight:700}
  body#royal-blue-app .fx-chevron {width:9px;height:9px;border-right:2px solid #8a9bb2;border-bottom:2px solid #8a9bb2;transform:rotate(45deg) translate(-2px,-2px);transition:transform .15s}
  body#royal-blue-app .fx-row details[open] .fx-chevron {transform:rotate(225deg) translate(-2px,-2px)}
  body#royal-blue-app .fx-body {display:grid;gap:6px;min-width:0;padding:4px 14px 14px 14px;margin-left:clamp(0px,7vw,92px);border-left:3px solid #e1eafa;padding-left:14px}
  body#royal-blue-app .fx-empty {margin:0;padding:18px;border:1px dashed #d4e2f7;border-radius:12px;text-align:center;color:#62758d;font-size:13.5px}
  body#royal-blue-app .fx-pager {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;font-size:13px;color:#62758d}
  body#royal-blue-app .fx-pager > span {margin-right:auto}
  body#royal-blue-app .fx-pager b {color:#133858;font-variant-numeric:tabular-nums}
  @media (max-width:700px) {
    body#royal-blue-app .ap-tab {padding:0 12px !important;font-size:13.5px !important}
    body#royal-blue-app .fx-search {max-width:none;margin-left:0}
    body#royal-blue-app .fx-row summary {grid-template-columns:auto minmax(0,1fr) 14px;grid-template-areas:"title title chev" "lv chips chev";gap:6px 8px;padding:10px 12px}
    body#royal-blue-app .fx-level {grid-area:lv}
    body#royal-blue-app .fx-title {grid-area:title}
    body#royal-blue-app .fx-chips {grid-area:chips;justify-content:flex-start;flex-wrap:wrap}
    body#royal-blue-app .fx-aside {display:none}
    body#royal-blue-app .fx-chevron {grid-area:chev}
    body#royal-blue-app .fx-title strong {white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
    body#royal-blue-app .fx-body {margin-left:0;border-left:0;padding:4px 12px 14px}
    body#royal-blue-app .fx-body .fs-actions .btn {flex:1 1 140px;min-height:44px}
    body#royal-blue-app .fx-pager {justify-content:space-between}
    body#royal-blue-app .fx-pager > span {flex:1 1 100%;text-align:center}
  }
}
/* Cảnh báo › Dịch bệnh (26-10-2026): bulletin rows with their own level colour, the write form in a wide dialog. */
@layer readability {
  body#royal-blue-app .db-level {display:inline-flex;align-items:center;min-height:26px;padding:3px 10px;border-radius:999px;background:var(--db,#ff7a1a);color:#fff;font-weight:800;font-size:.82rem;white-space:nowrap;text-shadow:0 1px 1px rgba(0,0,0,.25)}
  body#royal-blue-app #disease-alerts .fs-top {display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px}
  body#royal-blue-app #disease-alerts .fs-top > div {flex:1 1 320px;min-width:0}
  body#royal-blue-app .db-text {white-space:pre-line}
  body#royal-blue-app .db-files {display:flex;flex-wrap:wrap;gap:8px}
  body#royal-blue-app .db-files a {display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #dbe7fb;border-radius:8px;background:#f6f9ff;font-weight:700;overflow-wrap:anywhere}
  body#royal-blue-app .db-log summary {cursor:pointer;font-weight:700;color:#3f5672}
  body#royal-blue-app .db-log ul {margin:6px 0 0;padding-left:18px;display:grid;gap:3px;font-size:.88rem;color:#3f5672}
  body#royal-blue-app .db-log li span {font-variant-numeric:tabular-nums;font-weight:700}
  body#royal-blue-app .db-wait {align-self:center;font-weight:700;color:#8a5a00}
  body#royal-blue-app .db-form .db-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:12px}
  body#royal-blue-app .db-form fieldset {min-width:0;margin:0;padding:10px 12px;border:1px solid #dbe7fb;border-radius:10px}
  body#royal-blue-app .db-form legend {padding:0 6px;font-weight:800;color:#173e49}
  body#royal-blue-app .db-form .db-set {display:flex;flex-wrap:wrap;gap:6px 14px;align-items:flex-start}
  body#royal-blue-app .db-form .db-set > legend + * , body#royal-blue-app .db-form .db-set > .form-field, body#royal-blue-app .db-form .db-set > input[type="file"] {flex:1 1 100%}
  body#royal-blue-app .db-form .db-commune {flex:1 1 100%;display:flex;flex-wrap:wrap;gap:4px 14px}
  body#royal-blue-app .db-form .db-check {display:inline-flex;align-items:center;gap:6px;min-height:36px;font-weight:600}
  body#royal-blue-app .db-form .db-check input {width:18px;height:18px;flex:0 0 auto}
  body#royal-blue-app .db-form .db-other {margin-top:6px}
}

/* ===== Tạo / sửa cảnh báo dịch bệnh (26-10-2026): the same dialog as the account dialog (account-form.css): a head saying what the bulletin is,
   cards on a soft background that scroll, a footer that stays. Red tone of the disease card. In the layer so it wins over the plain .modal. ===== */
@layer readability {
  body#royal-blue-app #modal-root .modal:has(.dbf) {display:flex!important;flex-direction:column;position:relative;width:min(860px,100%)!important;max-width:none!important;max-height:min(920px,calc(100vh - 40px))!important;padding:0!important;overflow:hidden!important;border:1px solid #d6e2f4!important;border-radius:20px!important;background:#fff;box-shadow:0 30px 80px rgba(7,24,41,.38)}
  @supports (height:1dvh) {body#royal-blue-app #modal-root .modal:has(.dbf) {max-height:min(920px,calc(100dvh - 40px))!important}}
  body#royal-blue-app #modal-root .modal:has(.dbf) .modal-title {position:absolute;top:14px;right:14px;z-index:6;margin:0!important;padding:0!important;border:0!important;background:none!important}
  body#royal-blue-app #modal-root .modal:has(.dbf) .modal-title h2 {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  body#royal-blue-app #modal-root .modal:has(.dbf) .modal-title .icon-button {display:grid;place-items:center;width:38px;height:38px;border:1px solid #d6e2f4;border-radius:50%;background:#fff;color:#4d6584;box-shadow:0 1px 3px rgba(16,42,86,.12)}
  body#royal-blue-app #modal-root .modal:has(.dbf) .modal-title .icon-button:hover {background:#fff1ef;color:#a3281f}
  body#royal-blue-app .dbf {display:flex;flex-direction:column;flex:1 1 auto;min-height:0;min-width:0;margin:0;gap:0!important}
  body#royal-blue-app .dbf [hidden] {display:none!important}

  /* head */
  body#royal-blue-app .dbf-head {display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 18px;align-items:center;padding:22px 66px 18px 24px;border-bottom:1px solid #f3dcd8;background:radial-gradient(120% 140% at 0% 0%,#fff1ef 0%,#fff 60%)}
  body#royal-blue-app .dbf-badge {display:grid;place-items:center;width:62px;height:62px;border-radius:18px;color:#fff;background:linear-gradient(145deg,#ff6b5e,#c9372c);box-shadow:0 10px 22px rgba(201,55,44,.3),inset 0 0 0 3px rgba(255,255,255,.35)}
  body#royal-blue-app .dbf-who {display:grid;gap:4px;min-width:0}
  body#royal-blue-app .dbf-who h3 {margin:0;font-size:21px!important;line-height:1.3;font-weight:800;color:#0e2a4d}
  body#royal-blue-app .dbf-sub {margin:0;color:#52698a;font-size:13.5px!important;line-height:1.5}
  body#royal-blue-app .dbf-chips {display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 0}
  body#royal-blue-app .dbf-tag {display:inline-flex;align-items:center;gap:6px;padding:3px 11px 3px 9px;border:1px solid #d3e0f4;border-radius:999px;background:#fff;color:#35517a;font-size:12.5px!important;font-weight:600;line-height:1.5}
  body#royal-blue-app .dbf-tag[data-state="on"] {border-color:#bfe7d0;background:#eaf8f0;color:#17664f}
  body#royal-blue-app .dbf-tag[data-state="off"],body#royal-blue-app .dbf-tag[data-state="draft"] {border-color:#ffe2b0;background:#fff6e5;color:#9a5b00}
  body#royal-blue-app .dbf-dot {width:8px;height:8px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px color-mix(in srgb,currentColor 20%,transparent)}

  /* body: cards on a soft background */
  body#royal-blue-app .dbf-body {display:grid;align-content:start;gap:14px;flex:1 1 auto;min-height:0;padding:18px 24px 22px;overflow:auto;overscroll-behavior:contain;background:#f4f7fc}
  body#royal-blue-app .dbf-card {min-width:0;padding:18px 20px 20px;border:1px solid #e0e8f4;border-radius:16px;background:#fff;box-shadow:0 1px 2px rgba(16,42,86,.05)}
  body#royal-blue-app .dbf-card-title {display:flex;align-items:center;gap:10px;margin:0 0 14px;color:#12335d;font-size:15px!important;font-weight:700;line-height:1.4}
  body#royal-blue-app .dbf-ico {display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:9px;background:#fff1ef;color:#c9372c}
  body#royal-blue-app .dbf-card>.dbf-hint {margin:-8px 0 12px}
  body#royal-blue-app .dbf-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
  body#royal-blue-app .dbf-wide {grid-column:1/-1}
  body#royal-blue-app .dbf-sub-title {margin:14px 0 8px;color:#506580;font-size:12.5px!important;font-weight:700;text-transform:uppercase;letter-spacing:.3px}
  body#royal-blue-app .dbf-card>.dbf-sub-title:first-of-type {margin-top:0}

  /* fields */
  body#royal-blue-app .dbf-field {min-width:0}
  body#royal-blue-app .dbf-field>label {display:block;margin:0 0 6px;color:#24446b;font-size:13px!important;font-weight:600;line-height:1.4}
  body#royal-blue-app .dbf-req {color:#d64545}
  body#royal-blue-app .dbf-control {display:block;width:100%;min-width:0;box-sizing:border-box;min-height:46px;padding:10px 13px;border:1px solid #c9d7ec;border-radius:11px;background:#fff;color:#12335d;font:inherit;font-size:15px!important;line-height:1.45}
  body#royal-blue-app textarea.dbf-control {resize:vertical}
  body#royal-blue-app .dbf-control::placeholder {color:#9aabc3}
  body#royal-blue-app .dbf-control:hover {border-color:#9db8e3}
  body#royal-blue-app .dbf-control:focus {outline:0!important;border-color:#e0534a;box-shadow:none!important}
  body#royal-blue-app .dbf-control+.dbf-control {margin-top:8px}
  body#royal-blue-app .dbf-hint {margin:6px 0 0;color:#6b7f9a;font-size:12.5px!important;line-height:1.5}

  /* level cards */
  body#royal-blue-app .dbf-levels {display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:0 0 14px}
  body#royal-blue-app .dbf-level {position:relative;display:flex;align-items:flex-start;gap:11px;min-width:0;padding:13px 14px;border:1.5px solid #dbe6f5;border-radius:14px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
  body#royal-blue-app .dbf-level input {position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
  body#royal-blue-app .dbf-level-dot {flex:none;width:18px;height:18px;margin-top:1px;border:2px solid var(--lv);border-radius:50%;background:#fff;transition:background .15s,box-shadow .15s}
  body#royal-blue-app .dbf-level-text {display:grid;gap:2px;min-width:0}
  body#royal-blue-app .dbf-level-text b {color:#12335d;font-size:14.5px!important;line-height:1.35}
  body#royal-blue-app .dbf-level-text small {color:#6b7f9a;font-size:12px!important;line-height:1.45}
  body#royal-blue-app .dbf-level:hover {border-color:var(--lv)}
  body#royal-blue-app .dbf-level:has(input:checked) {border-color:var(--lv);background:color-mix(in srgb,var(--lv) 9%,#fff);box-shadow:0 0 0 3px color-mix(in srgb,var(--lv) 18%,transparent)}
  body#royal-blue-app .dbf-level:has(input:checked) .dbf-level-dot {background:var(--lv);box-shadow:inset 0 0 0 3px #fff}
  body#royal-blue-app .dbf-level:has(input:checked) .dbf-level-text b {color:color-mix(in srgb,var(--lv) 75%,#000)}
  body#royal-blue-app .dbf-level:has(input:focus-visible) {outline:3px solid #aac8ff;outline-offset:2px}

  /* chips (species, villages, stations, files) */
  body#royal-blue-app .dbf-chiprow {display:flex;flex-wrap:wrap;gap:8px}
  body#royal-blue-app .dbf-chip {position:relative;display:inline-flex;cursor:pointer}
  body#royal-blue-app .dbf-chip input {position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
  body#royal-blue-app .dbf-chip>span {display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 13px;border:1.5px solid #dbe6f5;border-radius:999px;background:#fff;color:#35517a;font-size:13.5px!important;font-weight:600;transition:border-color .15s,background .15s,color .15s}
  body#royal-blue-app .dbf-chip>span::before {content:"";flex:none;width:14px;height:14px;border:1.5px solid #b3c3da;border-radius:50%;background:#fff center/10px no-repeat}
  body#royal-blue-app .dbf-chip:hover>span {border-color:#f0a9a2}
  body#royal-blue-app .dbf-chip input:checked+span {border-color:#e0534a;background:#fff1ef;color:#a3281f}
  body#royal-blue-app .dbf-chip input:checked+span::before {border-color:#e0534a;background-color:#e0534a;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")}
  body#royal-blue-app .dbf-chip input:focus-visible+span {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .dbf-chip.is-file>span::before {content:none}
  body#royal-blue-app .dbf-chip.is-file a {color:#175adb;text-decoration:none}
  body#royal-blue-app .dbf-chip.is-file i {font-style:normal;font-size:11.5px;color:#8a9bb2}
  body#royal-blue-app .dbf-chip.is-file input:checked+span {text-decoration:line-through}
  body#royal-blue-app .dbf-chip.is-file input:checked+span i {color:#a3281f;text-decoration:none}
  body#royal-blue-app .dbf-communes {display:grid;gap:10px;margin:0 0 12px}
  body#royal-blue-app .dbf-commune {padding:10px 12px;border:1px dashed #dbe6f5;border-radius:12px;background:#fbfdff}
  body#royal-blue-app .dbf-commune-name {display:inline-flex;align-items:center;gap:6px;margin:0 0 8px;color:#12335d;font-size:13.5px!important;font-weight:700}
  body#royal-blue-app .dbf-drop {position:relative;display:flex;align-items:center;gap:12px;margin-top:10px;padding:14px 16px;border:1.5px dashed #c9d7ec;border-radius:14px;background:#fbfdff;color:#c9372c;cursor:pointer;transition:border-color .15s,background .15s}
  body#royal-blue-app .dbf-drop:hover {border-color:#e0534a;background:#fff8f7}
  body#royal-blue-app .dbf-drop span {display:grid;gap:2px;color:#35517a;font-size:13.5px!important}
  body#royal-blue-app .dbf-drop small {color:#7a8ca3;font-size:12px!important}
  body#royal-blue-app .dbf-drop input {position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}

  /* footer */
  body#royal-blue-app .dbf-foot {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:14px 24px;border-top:1px solid #e3ebf7;background:#fff}
  body#royal-blue-app .dbf-foot-note {display:flex;align-items:flex-start;gap:8px;flex:1 1 300px;min-width:0;margin:0;color:#52698a;font-size:13px!important;line-height:1.5}
  body#royal-blue-app .dbf-foot-note svg {flex:none;margin-top:2px;color:#c9372c}
  body#royal-blue-app .dbf-actions {display:flex;gap:10px;margin-left:auto}
  body#royal-blue-app .dbf-actions .btn {min-height:44px;padding-inline:20px}
  body#royal-blue-app .dbf-primary {border-color:transparent!important;background:linear-gradient(135deg,#d13a32,#ff6b5e)!important;color:#fff!important;box-shadow:0 10px 20px -10px #d13a32}
  body#royal-blue-app .dbf-primary:hover {filter:brightness(1.05)}

  @media (max-width:640px) {
    body#royal-blue-app #modal-root .modal:has(.dbf) {width:100%!important;max-height:calc(100vh - 20px)!important;border-radius:18px!important}
    @supports (height:1dvh) {body#royal-blue-app #modal-root .modal:has(.dbf) {max-height:calc(100dvh - 20px)!important}}
    body#royal-blue-app .dbf-head {padding:18px 58px 14px 16px;gap:8px 14px}
    body#royal-blue-app .dbf-badge {width:48px;height:48px;border-radius:14px}
    body#royal-blue-app .dbf-badge svg {width:22px;height:22px}
    body#royal-blue-app .dbf-who h3 {font-size:18px!important}
    body#royal-blue-app .dbf-sub {display:none}
    body#royal-blue-app .dbf-body {padding:14px 12px 18px}
    body#royal-blue-app .dbf-card {padding:16px 14px 18px}
    body#royal-blue-app .dbf-grid,body#royal-blue-app .dbf-levels {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .dbf-foot {padding:12px 14px}
    body#royal-blue-app .dbf-foot-note {order:2;flex-basis:100%}
    body#royal-blue-app .dbf-actions {order:1;width:100%}
    body#royal-blue-app .dbf-actions .btn {flex:1;justify-content:center}
  }
  @media (max-height:560px) {
    body#royal-blue-app #modal-root .modal:has(.dbf) {display:block!important;overflow:auto!important;overscroll-behavior:contain}
    body#royal-blue-app .dbf {display:block}
    body#royal-blue-app .dbf-body {overflow:visible}
    body#royal-blue-app .dbf-foot {position:sticky;bottom:0;z-index:4;box-shadow:0 -6px 14px rgba(16,42,86,.08)}
  }
  @media (prefers-reduced-motion:reduce) {
    body#royal-blue-app :is(.dbf-level,.dbf-level-dot,.dbf-chip>span,.dbf-drop) {transition:none}
  }
}
@layer readability {
  /* a phone: a shorter head and the levels side by side (name only), so the first card is in view at once */
  @media (max-width:640px) {
    body#royal-blue-app .dbf-head {align-items:start;padding:16px 58px 12px 14px;gap:6px 12px}
    body#royal-blue-app .dbf-badge {width:42px;height:42px;border-radius:12px}
    body#royal-blue-app .dbf-badge svg {width:20px;height:20px}
    body#royal-blue-app .dbf-who h3 {font-size:17px!important}
    body#royal-blue-app .dbf-chips {gap:5px}
    body#royal-blue-app .dbf-tag {padding:2px 9px 2px 7px;font-size:12px!important}
    body#royal-blue-app .dbf-levels {grid-template-columns:repeat(auto-fit,minmax(92px,1fr))!important;gap:8px}
    body#royal-blue-app .dbf-level {flex-direction:column;align-items:center;gap:6px;padding:10px 6px;text-align:center}
    body#royal-blue-app .dbf-level-text small {display:none}
    body#royal-blue-app .dbf-level-text b {font-size:13.5px!important}
  }
}

/* ===== Cảnh báo › Tín hiệu hiện trường: "Đặt mức C0–C4" for the technician (26-10-2026): five coloured choices, the level in force greyed ===== */
body#royal-blue-app .fs-set-where {display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;color:#35517a;font-size:14px}
body#royal-blue-app .fs-set-where b {color:#12335d}
body#royal-blue-app .fs-set-now {padding:1px 9px;border-radius:999px;background:var(--lv);color:#fff;font-size:12.5px;font-weight:800}
body#royal-blue-app .fs-set-chips {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
@media (max-width:520px) {body#royal-blue-app .fs-set-chips {grid-template-columns:repeat(3,minmax(0,1fr))}}
body#royal-blue-app .fs-set-chip {position:relative;display:block;cursor:pointer}
body#royal-blue-app .fs-set-chip input {position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
body#royal-blue-app .fs-set-chip span {display:grid;justify-items:center;gap:2px;padding:10px 6px;border:1.5px solid color-mix(in srgb,var(--lv) 40%,#dbe6f5);border-radius:12px;background:#fff;text-align:center;transition:background .15s,border-color .15s,box-shadow .15s}
body#royal-blue-app .fs-set-chip b {color:var(--lv);font-size:17px;line-height:1.1}
body#royal-blue-app .fs-set-chip small {color:#62758d;font-size:11.5px;line-height:1.3}
body#royal-blue-app .fs-set-chip:hover span {border-color:var(--lv)}
body#royal-blue-app .fs-set-chip input:checked+span {border-color:var(--lv);background:var(--lv);box-shadow:0 8px 16px -10px var(--lv)}
body#royal-blue-app .fs-set-chip input:checked+span :is(b,small) {color:#fff}
body#royal-blue-app .fs-set-chip input:focus-visible+span {outline:3px solid #aac8ff;outline-offset:2px}
body#royal-blue-app .fs-set-chip.is-current {cursor:not-allowed}
body#royal-blue-app .fs-set-chip.is-current span {border-style:dashed;background:#f6f8fb;opacity:.7}
body#royal-blue-app .fs-set-chip.is-current small::after {content:" · đang"}

/* a confirmed report on Tin từ người dân: the level its signal holds now, with "Tăng / giảm mức" and "Gỡ tín hiệu" (26-10-2026) */
body#royal-blue-app .rep-signal {display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:10px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--lv,#ff7a1a) 25%,#e1eafa);border-radius:12px;background:#fbfdff}
body#royal-blue-app .rep-signal-now {display:inline-flex;align-items:center;gap:6px;margin-right:auto;color:#35517a;font-size:13px}
body#royal-blue-app .rep-signal-now b {padding:0 8px;border-radius:999px;background:var(--lv);color:#fff;font-size:12.5px}
body#royal-blue-app .rep-signal:has(.rep-signal-now) {--lv:inherit}
body#royal-blue-app .fs-set-chips.is-four {grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:520px) {
  body#royal-blue-app .fs-set-chips.is-four {grid-template-columns:repeat(2,minmax(0,1fr))}
  body#royal-blue-app .rep-signal .btn {flex:1;justify-content:center}
  body#royal-blue-app .rep-signal-now {width:100%;margin-right:0}
}

/* links between the Cảnh báo page and the trang Cài đặt (27-10-2026) */
body#royal-blue-app .ap-quick {display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:8px 0 0;font-size:12.5px;color:#62758d}
body#royal-blue-app .ap-quick span {display:inline-flex;align-items:center;gap:5px;font-weight:600}
body#royal-blue-app .ap-quick a {display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border:1px solid #d9e6fb;border-radius:999px;background:#fff;color:#175adb;font-weight:600;text-decoration:none}
body#royal-blue-app .ap-quick a:hover {background:#eef4ff;border-color:#b9cff5}
body#royal-blue-app a.ap-settings,body#royal-blue-app a.dk-go {text-decoration:none}

/* ===== Xác nhận hiện trường theo tuyến (27-10-2026, field-route.js): one row per point, upstream first; cards on a phone ===== */
body#royal-blue-app .fs-head-actions {display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
body#royal-blue-app .fs-batch {display:flex;flex-wrap:wrap;align-items:center;gap:6px}
body#royal-blue-app .fr-form .note {margin:0}
body#royal-blue-app .fr-report {display:flex;gap:8px;align-items:flex-start;margin:0;padding:10px 12px;border:1px solid #f3d3a8;border-radius:12px;background:#fff8ef;color:#5a3a12;font-size:14px}
body#royal-blue-app .fr-list {display:grid;gap:8px;margin:0;padding:0;list-style:none}
body#royal-blue-app .fr-row {display:grid;grid-template-columns:minmax(110px,1.1fr) minmax(80px,.7fr) minmax(140px,1.3fr) minmax(200px,1.6fr);gap:10px;align-items:center;padding:10px 12px;border:1px solid #dbe6f5;border-radius:12px;background:#fff;min-width:0}
body#royal-blue-app .fr-row > * {min-width:0}
body#royal-blue-app .fr-row.is-focus {border-color:#ff9a3c;box-shadow:inset 4px 0 0 #ff7a1a;background:#fffaf4}
body#royal-blue-app .fr-row.is-set {border-color:#7aa7ef;background:#f5f9ff}
body#royal-blue-app .fr-point {display:grid;gap:3px}
body#royal-blue-app .fr-point b {color:#12335d;font-size:15px}
body#royal-blue-app .fr-point small {display:flex;align-items:center;gap:5px;color:#5b6f88;font-size:12.5px}
body#royal-blue-app .fr-star {margin-right:4px;color:#ff7a1a}
body#royal-blue-app .fr-cell {display:grid;gap:3px;align-content:start;color:#35517a;font-size:13px}
body#royal-blue-app .fr-cell small {color:#5b6f88}
body#royal-blue-app .fr-label {color:#6b7f99;font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.02em}
body#royal-blue-app .fr-tag {display:inline-block;width:max-content;padding:1px 9px;border-radius:999px;background:var(--lv);color:#fff;font-size:12.5px;font-weight:800}
body#royal-blue-app .fr-tag.is-none {background:#eef2f7;color:#6b7f99;font-weight:600}
body#royal-blue-app .fr-pick select {width:100%;min-height:40px}
body#royal-blue-app .fr-down {justify-self:start;display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border:1px dashed #b9cff5;border-radius:999px;background:#fff;color:#175adb;font-size:12px;font-weight:600;cursor:pointer}
body#royal-blue-app .fr-down:hover {background:#eef4ff}
body#royal-blue-app .fr-preview {margin:0;padding:10px 12px;border-radius:12px;background:#eef4ff;color:#12335d;font-size:14px;font-weight:600}
@media (max-width:760px) {
    body#royal-blue-app .fr-row {grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
    body#royal-blue-app .fr-point,body#royal-blue-app .fr-pick {grid-column:1 / -1}
}
body#royal-blue-app .fr-head {display:none}
/* desktop (27-10-2026): a large dialog, one header row instead of a label in every cell, the save button always in view */
@layer readability {
@media (min-width:1100px) {
    body#royal-blue-app #modal-root .modal.wide:has(.fr-form) {width:min(1560px,calc(100vw - 64px)) !important;max-width:none !important;max-height:calc(100dvh - 40px) !important;padding:22px 30px 0 !important}
    body#royal-blue-app .modal-overlay:has(.fr-form) {padding:20px !important}
    body#royal-blue-app .fr-form {gap:14px !important}
    body#royal-blue-app .fr-form .note {font-size:14.5px !important}
    body#royal-blue-app .fr-head {display:grid !important;grid-template-columns:minmax(170px,1.2fr) minmax(110px,.7fr) minmax(220px,1.6fr) minmax(320px,2fr);gap:16px;padding:0 20px;color:#6b7f99;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
    body#royal-blue-app .fr-list {gap:10px !important}
    body#royal-blue-app .fr-row {grid-template-columns:minmax(170px,1.2fr) minmax(110px,.7fr) minmax(220px,1.6fr) minmax(320px,2fr) !important;gap:16px !important;padding:14px 20px !important;border-radius:14px !important}
    body#royal-blue-app .fr-row .fr-label {position:absolute !important;width:1px !important;height:1px !important;overflow:hidden !important;clip:rect(0 0 0 0) !important;white-space:nowrap !important}
    body#royal-blue-app .fr-point b {font-size:17px !important}
    body#royal-blue-app .fr-point small,body#royal-blue-app .fr-cell {font-size:14px !important}
    body#royal-blue-app .fr-tag {font-size:13.5px !important;padding:2px 11px !important}
    body#royal-blue-app .fr-pick {grid-template-columns:minmax(0,1fr) auto !important;align-items:center !important;gap:10px !important}
    body#royal-blue-app .fr-pick select {min-height:44px !important;font-size:15px !important}
    body#royal-blue-app .fr-down {justify-self:auto !important;padding:6px 12px !important;font-size:13px !important;white-space:nowrap}
    body#royal-blue-app .fr-preview {font-size:15px !important;padding:12px 16px !important}
    body#royal-blue-app .fr-form .form-actions {position:sticky;bottom:0;z-index:2;margin:0 -30px !important;padding:14px 30px 18px !important;background:linear-gradient(to top,#fff 80%,rgba(255,255,255,0)) !important}
}
}
/* Người dân nhận tin, hộp chi tiết (27-10-2026): resident on top, three cards, C1–C4 pills, channel toggles, history timeline */
@layer readability {
  body#royal-blue-app #modal-root .modal.wide:has(.sbm) {width:min(980px,calc(100vw - 32px)) !important;max-width:none !important}
  body#royal-blue-app .sbm {display:grid;gap:14px;min-width:0}
  body#royal-blue-app .sbm-head {display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid #dbe7fb;border-radius:14px;background:linear-gradient(135deg,#f3f8ff,#fff)}
  body#royal-blue-app .sbm-avatar {display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:50%;background:linear-gradient(145deg,#4d97ff,#0862ff 60%,#0a54d8);color:#fff;font-weight:800;font-size:18px;box-shadow:0 0 0 4px rgba(26,95,224,.10)}
  body#royal-blue-app .sbm-who {display:grid;gap:4px;min-width:0}
  body#royal-blue-app .sbm-who strong {font-size:19px;color:#0f2d5e;overflow-wrap:anywhere}
  body#royal-blue-app .sbm-tags {display:flex;flex-wrap:wrap;align-items:center;gap:8px}
  body#royal-blue-app .sbm-id {font-size:12.5px;color:#5f7280}
  body#royal-blue-app .sbm-facts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body#royal-blue-app .sbm-fact {display:flex;gap:10px;align-items:flex-start;min-width:0;padding:10px 12px;border:1px solid #e3ebf6;border-radius:12px;background:#fff}
  body#royal-blue-app .sbm-fact-ic {display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:10px;background:#eef4ff;color:#175adb}
  body#royal-blue-app .sbm-fact div {display:grid;gap:2px;min-width:0}
  body#royal-blue-app .sbm-fact small {font-size:11.5px;color:#5f7280;font-weight:600}
  body#royal-blue-app .sbm-fact span {font-size:13.5px;color:#16324f;font-weight:600;overflow-wrap:anywhere}
  body#royal-blue-app .sbm-fact em {font-style:normal;font-size:11.5px;font-weight:700;white-space:nowrap}
  body#royal-blue-app .sbm-ok {color:#11663a} body#royal-blue-app .sbm-warn {color:#8a5a00}
  body#royal-blue-app .sbm-ver {display:block;font-size:11.5px;color:#5f7280;font-weight:500}
  body#royal-blue-app .sbm-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  body#royal-blue-app .sbm-card {display:grid;align-content:start;gap:12px;min-width:0;padding:14px 16px;border:1px solid #dbe7fb;border-radius:14px;background:#fff}
  body#royal-blue-app .sbm-card.sbm-wide {grid-column:1 / -1}
  body#royal-blue-app .sbm-card h3 {display:flex;align-items:center;gap:8px;margin:0 0 2px;font-size:15px;color:#0f2d5e}
  body#royal-blue-app .sbm-card h3 svg {color:#175adb}
  body#royal-blue-app .sbm-card .th-field {display:grid;gap:5px;margin:0}
  body#royal-blue-app .sbm-group {display:grid;gap:8px}
  body#royal-blue-app .sbm-label {font-size:12.5px;font-weight:700;color:#3f5672}
  body#royal-blue-app .sbm-levels {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  body#royal-blue-app .sbm-level {position:relative;display:block;cursor:pointer}
  body#royal-blue-app .sbm-level input {position:absolute;opacity:0;pointer-events:none}
  body#royal-blue-app .sbm-level span {display:grid;place-items:center;min-height:42px;border:2px solid color-mix(in srgb,var(--lv) 45%,white);border-radius:12px;background:#fff;color:color-mix(in srgb,var(--lv) 70%,black);font-weight:800;transition:background-color .15s ease}
  body#royal-blue-app .sbm-level input:checked + span {background:var(--lv);border-color:var(--lv);color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.25)}
  body#royal-blue-app .sbm-level input:focus-visible + span {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .sbm-toggle {display:flex;align-items:center;gap:10px;min-height:52px;padding:8px 12px;border:1px solid #e3ebf6;border-radius:12px;background:#f8fbff;cursor:pointer}
  body#royal-blue-app .sbm-toggle input {position:absolute;opacity:0;pointer-events:none}
  body#royal-blue-app .sbm-toggle-ic {display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:10px;background:#eef4ff;color:#175adb}
  body#royal-blue-app .sbm-toggle-text {display:grid;gap:1px;flex:1 1 auto;min-width:0}
  body#royal-blue-app .sbm-toggle-text b {font-size:13.5px;color:#16324f}
  body#royal-blue-app .sbm-toggle-text small {font-size:12px;color:#5f7280;overflow-wrap:anywhere}
  body#royal-blue-app .sbm-switch {position:relative;flex:0 0 40px;width:40px;height:22px;border-radius:999px;background:#cfd9e6;transition:background-color .15s ease}
  body#royal-blue-app .sbm-switch::after {content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .15s ease}
  body#royal-blue-app .sbm-toggle:has(input:checked) {border-color:#9fc0f5;background:#eef4ff}
  body#royal-blue-app .sbm-toggle:has(input:checked) .sbm-switch {background:#0862ff}
  body#royal-blue-app .sbm-toggle:has(input:checked) .sbm-switch::after {transform:translateX(18px)}
  body#royal-blue-app .sbm-toggle:has(input:focus-visible) {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .sbm-toggle.is-off {opacity:.55;cursor:not-allowed}
  body#royal-blue-app .sbm-row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  body#royal-blue-app .sbm-actions {display:flex;justify-content:flex-end;margin:0}
  body#royal-blue-app .sbm-actions .btn {display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 20px}
  body#royal-blue-app .sbm-history {border:1px solid #e3ebf6;border-radius:12px;background:#fff}
  body#royal-blue-app .sbm-history summary {display:flex;align-items:center;gap:8px;padding:10px 14px;cursor:pointer;font-weight:700;color:#0f2d5e}
  body#royal-blue-app .sbm-history summary b {padding:0 8px;border-radius:999px;background:#eef4ff;color:#175adb;font-size:12px}
  body#royal-blue-app .sbm-history ol {display:grid;gap:0;margin:0;padding:0 14px 12px 28px;list-style:none;border-left:0}
  body#royal-blue-app .sbm-history li {position:relative;display:grid;gap:2px;padding:6px 0 6px 14px;border-left:2px solid #dbe7fb;font-size:13px;color:#33475b}
  body#royal-blue-app .sbm-history li::before {content:"";position:absolute;left:-6px;top:11px;width:10px;height:10px;border-radius:50%;background:#175adb;box-shadow:0 0 0 3px #fff}
  body#royal-blue-app .sbm-history time {font-size:12px;font-weight:700;color:#3f5672}
  body#royal-blue-app .sbm-history q {display:block;margin-top:2px;color:#5f7280;font-style:italic}
  body#royal-blue-app .sbm-delete summary {cursor:pointer;color:#a1271b;font-size:13px}
  @media (max-width: 700px) {
    body#royal-blue-app .sbm-grid, body#royal-blue-app .sbm-row, body#royal-blue-app .sbm-facts {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .sbm-head {padding:12px}
    body#royal-blue-app .sbm-avatar {flex-basis:44px;width:44px;height:44px;font-size:16px}
    body#royal-blue-app .sbm-actions .btn {flex:1 1 auto;justify-content:center}
  }
}
/* C1–C4 pills (27-10-2026): chosen = filled level colour + "✓ Nhận tin"; not chosen = grey dashed box + "Không nhận", easy to tell apart */
@layer readability {
  body#royal-blue-app .sbm-level span {display:grid !important;place-items:center;gap:1px;min-height:52px !important;padding:4px 2px;border:2px dashed #c9d3e0 !important;background:#f4f6f9 !important;color:#7a8797 !important}
  body#royal-blue-app .sbm-level span b {font-size:16px;font-weight:800}
  body#royal-blue-app .sbm-level span small {font-size:11px;font-weight:700;line-height:1.2}
  body#royal-blue-app .sbm-level .sbm-on {display:none}
  body#royal-blue-app .sbm-level input:checked + span {border:2px solid var(--lv) !important;background:var(--lv) !important;color:#fff !important;box-shadow:0 4px 10px -4px color-mix(in srgb,var(--lv) 70%,transparent)}
  body#royal-blue-app .sbm-level input:checked + span .sbm-on {display:block}
  body#royal-blue-app .sbm-level input:checked + span .sbm-off {display:none}
  body#royal-blue-app .sbm-level[style*="#f5c000"] input:checked + span {color:#3d2f00 !important;text-shadow:none}
  body#royal-blue-app .sbm-level:hover input:not(:checked) + span {border-color:color-mix(in srgb,var(--lv) 60%,white) !important;color:color-mix(in srgb,var(--lv) 70%,black) !important}
}

/* ==== evidence-view.css ==== */
/* "Chuỗi căn cứ cảnh báo": readable steps instead of JSON (evidence-view.js). */
@layer readability {
  body#royal-blue-app .ev-card .evidence-steps {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;margin:14px 0 0!important}
  body#royal-blue-app .ev-card .evidence-step {padding:0!important;border:1px solid #dbe7fb;border-radius:12px;background:#fff;overflow:hidden}
  body#royal-blue-app .ev-card .evidence-step[open] {border-color:#b9d1f7;box-shadow:0 1px 6px rgba(23,90,219,.08)}
  body#royal-blue-app .ev-card .evidence-step>summary {display:flex;align-items:center;gap:12px;min-height:52px!important;padding:10px 14px;list-style:none;cursor:pointer;font-size:14px;font-weight:600;color:#133858}
  body#royal-blue-app .ev-card .evidence-step>summary::-webkit-details-marker {display:none}
  body#royal-blue-app .ev-card .evidence-step>summary::after {content:"";flex:none;margin-left:auto;width:8px;height:8px;border-right:2px solid #8a9bb2;border-bottom:2px solid #8a9bb2;transform:rotate(45deg);transition:transform .15s}
  body#royal-blue-app .ev-card .evidence-step[open]>summary::after {transform:rotate(-135deg)}
  body#royal-blue-app .ev-card .evidence-step>summary:hover {background:#f6faff}
  body#royal-blue-app .ev-card .evidence-step>summary:focus-visible {outline:3px solid #aac8ff;outline-offset:-3px}
  body#royal-blue-app .ev-n {flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e8f0fe;color:#175adb;font-size:12px;font-weight:800}
  body#royal-blue-app .ev-title {flex:none;white-space:nowrap}
  body#royal-blue-app .ev-sum {min-width:0;font-size:12.5px;font-weight:400;color:#62758d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body#royal-blue-app .ev-body {display:grid;gap:12px;padding:4px 16px 16px 54px;min-width:0}
  body#royal-blue-app .ev-note {margin:0;padding:10px 12px;border-radius:10px;background:#f6f8fb;color:#62758d;font-size:13px;line-height:1.5}
  body#royal-blue-app .ev-dl {display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px 18px;margin:0}
  body#royal-blue-app .ev-dl>div {min-width:0}
  body#royal-blue-app .ev-dl dt {font-size:12px;font-weight:700;color:#62758d;text-transform:uppercase;letter-spacing:.25px}
  body#royal-blue-app .ev-dl dd {margin:2px 0 0;font-size:14px;line-height:1.45;color:#133858;overflow-wrap:anywhere}
  body#royal-blue-app .ev-dl code {padding:1px 6px;border-radius:6px;background:#eef3fb;font-size:12.5px}
  body#royal-blue-app .ev-scroll {overflow-x:auto;border:1px solid #e1eafa;border-radius:10px}
  body#royal-blue-app .ev-table {width:100%;border-collapse:collapse;font-size:13.5px}
  body#royal-blue-app .ev-table th {padding:8px 10px;background:#f3f8ff;color:#4a6382;font-size:12px;font-weight:700;text-align:left;text-transform:uppercase;letter-spacing:.2px;white-space:nowrap;border-bottom:1px solid #dbe7fb}
  body#royal-blue-app .ev-table td {padding:8px 10px;border-bottom:1px solid #edf2fb;color:#244477;vertical-align:top;white-space:nowrap}
  body#royal-blue-app .ev-table tbody tr:last-child td {border-bottom:0}
  body#royal-blue-app .ev-table td.ev-wrap {white-space:normal;min-width:160px}
  body#royal-blue-app .ev-table .ev-num {text-align:right;font-variant-numeric:tabular-nums}
  body#royal-blue-app .ev-table tr.ev-hit td {background:#fff8e8}
  body#royal-blue-app .ev-tag {margin-left:4px;padding:1px 7px;border-radius:999px;background:#e8710a;color:#fff;font-size:11px;font-style:normal;font-weight:700}
  body#royal-blue-app .ev-chip {display:inline-block;padding:2px 10px;border-radius:999px;background:color-mix(in srgb,var(--ev) 14%,#fff);color:var(--ev);font-size:12px;font-weight:700;white-space:nowrap}
  body#royal-blue-app .ev-ok {--ev:#12a150}
  body#royal-blue-app .ev-watch {--ev:#9a5d00}
  body#royal-blue-app .ev-alert {--ev:#c9372c}
  body#royal-blue-app .ev-info {--ev:#175adb}
  body#royal-blue-app .ev-muted {--ev:#5b6f88}
  body#royal-blue-app .ev-list {margin:0;padding-left:18px;display:grid;gap:4px;font-size:13.5px;line-height:1.5;color:#36516f}
  body#royal-blue-app .ev-rules {margin:0;padding:0;list-style:none;display:grid;gap:6px}
  body#royal-blue-app .ev-rules li {display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:8px 12px;border:1px solid #e1eafa;border-radius:10px;font-size:13.5px;color:#36516f}
  body#royal-blue-app .ev-rules li b {color:#133858}
  body#royal-blue-app .ev-rules li em {margin-left:auto;padding:1px 8px;border-radius:999px;background:#175adb;color:#fff;font-size:11.5px;font-style:normal;font-weight:700}
  body#royal-blue-app .ev-rules li.is-published {border-color:#175adb;background:#f3f8ff}
  body#royal-blue-app .ev-logs {margin:0;padding:0;list-style:none;display:grid;gap:8px}
  body#royal-blue-app .ev-logs li {padding:8px 12px;border:1px solid #e1eafa;border-radius:10px}
  body#royal-blue-app .ev-logs p {margin:4px 0 0;font-size:13.5px;line-height:1.5;color:#36516f;white-space:pre-wrap;overflow-wrap:anywhere}
  body#royal-blue-app .ev-logs small {color:#8a9bb2}
  @media (max-width:700px) {
    body#royal-blue-app .ev-body {padding:4px 12px 14px}
    body#royal-blue-app .ev-card .evidence-step>summary {flex-wrap:wrap;row-gap:2px}
    body#royal-blue-app .ev-sum {flex-basis:100%;padding-left:38px;white-space:normal}
    body#royal-blue-app .ev-card .evidence-step>summary::after {position:absolute;right:14px}
    body#royal-blue-app .ev-card .evidence-step>summary {position:relative;padding-right:34px}
  }
}

/* ==== alert-detail.css ==== */
/* Chi tiết cảnh báo: facts strip + two tabbed cards so the page needs little scrolling (alert-detail.js). */
@layer readability {
  body#royal-blue-app #modal-root .modal.av-modal {width:min(1240px,97vw)!important;max-width:min(1240px,97vw)!important;max-height:96dvh!important;overflow:auto!important;padding:12px 18px 12px!important}
  body#royal-blue-app .av-hint {margin:8px 0 0;padding:6px 10px;border-radius:10px;background:#f3f8ff;color:#36516f;font-size:12.5px;line-height:1.5}
  body#royal-blue-app .av-hint summary {cursor:pointer;font-weight:600;color:#175adb}
  body#royal-blue-app .av-hint span {display:block;margin-top:4px}
  body#royal-blue-app .av-form-foot {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin-top:8px}
  body#royal-blue-app .av-form-foot .checkbox {margin:0;font-size:13px}
  body#royal-blue-app .av-form-foot .form-actions {margin:0!important}
  @media (min-width:1000px) {
    body#royal-blue-app #modal-root .modal.av-modal {position:relative}
    body#royal-blue-app .av-in-modal .av-top {position:absolute;top:20px;right:76px;max-width:60%}
  }
  body#royal-blue-app .av-acked {display:flex;gap:8px;align-items:flex-start;margin:0 0 8px;padding:5px 10px;border:1px solid #bfe3cf;border-radius:10px;background:#f2faf6;color:#1b5e3f;font-size:12.5px;line-height:1.4}
  body#royal-blue-app .av-acked svg {flex:none;margin-top:1px;color:#12a150}
  body#royal-blue-app .av-top {display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
  body#royal-blue-app .av-where {margin-left:auto;font-size:13px;color:#62758d}
  body#royal-blue-app #modal-root .modal.av-modal .modal-title {margin-bottom:8px!important}
  body#royal-blue-app .av-in-modal {gap:8px}
  body#royal-blue-app .av-in-modal .av-fact {padding:6px 12px;gap:0}
  body#royal-blue-app .av-in-modal .av-fact strong {font-size:15px}
  body#royal-blue-app .av-in-modal .av-fact .av-big {font-size:19px}
  body#royal-blue-app .av-in-modal .av-fact small {font-size:11.5px;line-height:1.3}
  body#royal-blue-app .av-in-modal .chart-threshold-note {display:none!important}
  body#royal-blue-app .av-in-modal [data-av-panel="evidence"],
  body#royal-blue-app .av-in-modal [data-av-panel="timeline"] {max-height:min(500px,60dvh);overflow:auto}
  body#royal-blue-app .av-in-modal .av-tabs button {min-height:36px}
  body#royal-blue-app .av-in-modal .form-grid {gap:6px 12px}
  body#royal-blue-app .av-in-modal .form-grid .field {gap:2px!important}
  body#royal-blue-app .av-in-modal #alert-note-form select.form-control,
  body#royal-blue-app .av-in-modal #alert-note-form textarea.form-control {min-height:36px!important;padding-top:6px!important;padding-bottom:6px!important}
  body#royal-blue-app .av-in-modal .form-grid>.field:first-child {grid-column:1/-1}
  body#royal-blue-app .av-in-modal .file-zone {display:flex!important;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:6px 10px!important;text-align:left!important;font-size:13px}
  body#royal-blue-app .av-in-modal .file-zone {font-size:0!important;gap:2px 10px!important}
  body#royal-blue-app .av-in-modal .file-zone input {font-size:13px;margin:0;max-width:100%}
  body#royal-blue-app .av-in-modal .file-zone small {display:inline!important;margin:0;font-size:11.5px}
  body#royal-blue-app .av-in-modal .av-panel textarea.form-control {min-height:0}
  body#royal-blue-app .av-in-modal .av-fact small {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body#royal-blue-app .av-in-modal .av-fact strong {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body#royal-blue-app .av-in-modal .av-hint {margin-top:8px;padding:6px 10px;font-size:12px;line-height:1.4}
  body#royal-blue-app .av-in-modal .av-panel .note {margin-top:6px}
  body#royal-blue-app .av-in-modal .av-panel {padding:8px 12px 10px}
  body#royal-blue-app .av-in-modal .av-card {box-shadow:none;border:1px solid #dbe7fb}
  body#royal-blue-app .av-page {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
  body#royal-blue-app .av-page>.go-back {justify-self:start;margin:0!important}
  body#royal-blue-app .av-panel .file-zone {padding:10px 12px}
  body#royal-blue-app .av-panel .form-actions {margin-top:10px}
  body#royal-blue-app .av-lead {display:flex;gap:10px;align-items:flex-start;margin:0;padding:10px 14px;border:1px solid #f1d9a6;border-radius:12px;background:#fff8e8;color:#5c3d00;font-size:13.5px;line-height:1.5}
  body#royal-blue-app .av-lead svg {flex:none;margin-top:1px;color:#c77b00}
  body#royal-blue-app .av-facts {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
  body#royal-blue-app .av-fact {display:flex;flex-direction:column;gap:2px;min-width:0;padding:11px 14px;border:1px solid #dbe7fb;border-radius:12px;background:#fff}
  body#royal-blue-app .av-fact span {font-size:12px;font-weight:700;color:#62758d;text-transform:uppercase;letter-spacing:.25px}
  body#royal-blue-app .av-fact strong {font-size:16px;line-height:1.3;color:#133858;overflow-wrap:anywhere}
  body#royal-blue-app .av-fact .av-big {font-size:22px;color:#c9372c}
  body#royal-blue-app .av-fact small {font-size:12px;line-height:1.4;color:#62758d}
  body#royal-blue-app .av-grid {display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,1fr);gap:12px;align-items:start}
  body#royal-blue-app .av-card {padding:0;margin:0;min-width:0;overflow:hidden}
  body#royal-blue-app .av-tabs {display:flex;gap:2px;padding:6px 10px 0;border-bottom:1px solid #dbe7fb;background:#f7faff;overflow-x:auto;scrollbar-width:none}
  body#royal-blue-app .av-tabs::-webkit-scrollbar {display:none}
  body#royal-blue-app .av-tabs button {flex:none;display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:0 14px;border:0;border-bottom:3px solid transparent;background:none;color:#62758d;font:inherit;font-size:14px;font-weight:600;white-space:nowrap;cursor:pointer}
  body#royal-blue-app .av-tabs button b {padding:0 6px;border-radius:999px;background:#eaf1fc;color:#143d82;font-size:11.5px}
  body#royal-blue-app .av-tabs button:hover {color:#175adb}
  body#royal-blue-app .av-tabs button[aria-selected="true"] {color:#175adb;border-bottom-color:#175adb}
  body#royal-blue-app .av-tabs button:focus-visible {outline:3px solid #aac8ff;outline-offset:-3px;border-radius:6px}
  body#royal-blue-app .av-panel {padding:14px 16px 16px;min-width:0}
  body#royal-blue-app .av-panel[hidden] {display:none}
  body#royal-blue-app .av-panel .note {margin:10px 0 0}
  body#royal-blue-app .av-panel .form-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  body#royal-blue-app .av-note {padding:10px 0;border-bottom:1px solid #edf2fb}
  body#royal-blue-app .av-note:last-child {border-bottom:0}
  body#royal-blue-app .av-note p {margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
  body#royal-blue-app .ev-bare {display:grid;gap:10px}
  body#royal-blue-app .ev-bare-head {display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;justify-content:space-between}
  body#royal-blue-app .ev-bare-head p {margin:0;font-size:13px;color:#62758d}
  body#royal-blue-app .ev-bare .evidence-steps {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;margin:0!important}
  body#royal-blue-app .ev-bare .evidence-step {padding:0!important;border:1px solid #dbe7fb;border-radius:12px;background:#fff;overflow:hidden}
  body#royal-blue-app .ev-bare .evidence-step[open] {border-color:#b9d1f7}
  body#royal-blue-app .ev-bare .evidence-step>summary {display:flex;align-items:center;gap:12px;min-height:48px!important;padding:8px 14px;list-style:none;cursor:pointer;font-size:14px;font-weight:600;color:#133858}
  body#royal-blue-app .ev-bare .evidence-step>summary::-webkit-details-marker {display:none}
  body#royal-blue-app .ev-bare .evidence-step>summary::after {content:"";flex:none;margin-left:auto;width:8px;height:8px;border-right:2px solid #8a9bb2;border-bottom:2px solid #8a9bb2;transform:rotate(45deg);transition:transform .15s}
  body#royal-blue-app .ev-bare .evidence-step[open]>summary::after {transform:rotate(-135deg)}
  body#royal-blue-app .ev-bare .evidence-step>summary:hover {background:#f6faff}
  body#royal-blue-app .ev-bare .evidence-step>summary:focus-visible {outline:3px solid #aac8ff;outline-offset:-3px}
  @media (max-width:1280px) {
    body#royal-blue-app .av-facts {grid-template-columns:repeat(3,minmax(0,1fr))}
  }
  @media (max-width:1180px) {
    body#royal-blue-app .av-grid {grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr)}
  }
  @media (max-width:900px) {
    body#royal-blue-app .av-grid {grid-template-columns:minmax(0,1fr)}
  }
  @media (max-width:700px) {
    body#royal-blue-app .av-facts {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    body#royal-blue-app .av-fact {padding:9px 11px}
    body#royal-blue-app .av-fact strong {font-size:15px}
    body#royal-blue-app .av-fact .av-big {font-size:19px}
    body#royal-blue-app .av-panel {padding:12px}
    body#royal-blue-app .av-panel .form-grid {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .ev-bare .evidence-step>summary {flex-wrap:wrap;row-gap:2px;position:relative;padding-right:34px}
    body#royal-blue-app .ev-bare .ev-sum {flex-basis:100%;padding-left:38px;white-space:normal}
    body#royal-blue-app .ev-bare .evidence-step>summary::after {position:absolute;right:14px}
  }
}

/* ==== explain-panel.css ==== */
/* Explanation of a reading: the one-line reason on the card, and the side panel (bottom sheet on a phone). */
@layer readability {
  /* ----------------------------------------------------------------- on the card */
  body#royal-blue-app .ir-explain {display:grid;gap:8px;margin-top:10px}
  body#royal-blue-app .ir-reason {display:flex;align-items:flex-start;gap:8px;margin:0;font-size:13px !important;line-height:1.5 !important;color:#36516f !important}
  body#royal-blue-app .ir-reason i {flex:none;width:9px;height:9px;margin-top:6px;border-radius:50%;background:#8a9bb2}
  body#royal-blue-app .ir-reason-ok i {background:#12a150}
  body#royal-blue-app .ir-reason-bad i {background:#d6453d}
  body#royal-blue-app .ir-reason-warn i {background:#e8710a}
  body#royal-blue-app .ir-reason-bad {color:#7a2620 !important;font-weight:600}
  body#royal-blue-app .ir-explain-btn {display:inline-flex;align-items:center;justify-content:center;gap:8px;justify-self:start;min-height:40px;padding:0 14px 0 8px;border:1px solid #cfe0fb;border-radius:999px;background:#fff;color:#245bba;font:inherit;font-size:13px !important;font-weight:700;cursor:pointer}
  body#royal-blue-app .ir-explain-btn i {display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#175adb;color:#fff;font-style:normal;font-size:13px;font-weight:800}
  body#royal-blue-app .ir-explain-btn:hover {background:#eef4ff}
  body#royal-blue-app .ir-explain-btn:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}

  /* ------------------------------------------------------------------ side panel */
  body.ex-open {overflow:hidden}
  body#royal-blue-app .ex-overlay {position:fixed;inset:0;z-index:12000;display:flex;justify-content:flex-end;background:rgba(15,35,64,.42)}
  body#royal-blue-app .ex-overlay[hidden] {display:none}
  body#royal-blue-app .ex-drawer {position:relative;width:min(440px,100%);height:100%;overflow-y:auto;padding:22px 22px 28px;background:#fff;box-shadow:-12px 0 32px rgba(15,35,64,.22);color:#2d4e7a;animation:ex-in .2s ease-out;outline:0}
  @keyframes ex-in {from {transform:translateX(24px);opacity:0} to {transform:none;opacity:1}}
  body#royal-blue-app .ex-close {position:absolute;top:14px;right:14px;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:#eef3fb;color:#36516f;font-size:24px;line-height:1;cursor:pointer}
  body#royal-blue-app .ex-close:hover {background:#e0eaf8}
  body#royal-blue-app .ex-head {display:grid;gap:12px;padding-right:44px;margin-bottom:6px}
  body#royal-blue-app .ex-eyebrow {font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#175adb}
  body#royal-blue-app .ex-head h2 {margin:2px 0 0;font-size:22px !important;line-height:1.3 !important;color:#133858 !important}
  body#royal-blue-app .ex-value {display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
  body#royal-blue-app .ex-value strong {font-size:28px;line-height:1.1;color:#133858}
  body#royal-blue-app .ex-badge {padding:4px 12px;border-radius:999px;font-size:13px;font-weight:800}
  body#royal-blue-app .ex-ok {background:#e4f5ec;color:#14683f}
  body#royal-blue-app .ex-bad {background:#fde8e6;color:#9b2c24}
  body#royal-blue-app .ex-warn {background:#fff1dc;color:#9a5b00}
  body#royal-blue-app .ex-muted {background:#eef2f7;color:#51647c}
  body#royal-blue-app .ex-sec {display:grid;gap:8px;padding:16px 0;border-top:1px solid #e3ecf8}
  body#royal-blue-app .ex-sec h3 {margin:0;font-size:12.5px !important;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#175adb !important}
  body#royal-blue-app .ex-sec h3 small {margin-left:6px;font-size:11.5px !important;font-weight:600;letter-spacing:0;text-transform:none;color:#62758d !important}
  body#royal-blue-app .ex-drawer p,body#royal-blue-app .ex-drawer li {margin:0;font-size:15px !important;line-height:1.65 !important;color:#2d4e7a}
  body#royal-blue-app .ex-drawer b {color:#133858}
  body#royal-blue-app .ex-conclusion {font-size:17px !important;font-weight:800;line-height:1.4 !important}
  body#royal-blue-app .ex-conclusion.ex-ok {background:none;color:#14683f}
  body#royal-blue-app .ex-conclusion.ex-bad {background:none;color:#9b2c24}
  body#royal-blue-app .ex-conclusion small {font-size:13px;font-weight:600;color:#62758d}
  body#royal-blue-app .ex-facts,body#royal-blue-app .ex-actions {display:grid;gap:8px;margin:0;padding:0 0 0 20px}
  body#royal-blue-app .ex-note {font-size:13px !important;line-height:1.55 !important;color:#62758d !important}
  body#royal-blue-app .ex-limit {font-size:16px !important;font-weight:800;color:#133858 !important}
  body#royal-blue-app .ex-bars {display:grid;gap:6px;margin-top:4px}
  body#royal-blue-app .ex-bars > div {display:grid;grid-template-columns:72px 1fr auto;align-items:center;gap:10px;font-size:13px}
  body#royal-blue-app .ex-bars span {color:#51647c}
  body#royal-blue-app .ex-bars i {display:block;height:12px;border-radius:6px;background:#8a9bb2}
  body#royal-blue-app .ex-bars i.bad {background:#d6453d}
  body#royal-blue-app .ex-bars i.ok {background:#12a150}
  body#royal-blue-app .ex-bars i.allowed {background:#b8cff5}
  body#royal-blue-app .ex-rules {display:grid;gap:8px;margin:0;padding:0;list-style:none}
  body#royal-blue-app .ex-rules li {display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:8px 12px;border:1px solid color-mix(in srgb,var(--lv) 30%,#fff);border-left:4px solid var(--lv);border-radius:9px;background:#fff}
  body#royal-blue-app .ex-rules li b {padding:2px 8px;border-radius:6px;background:color-mix(in srgb,var(--lv) 14%,#fff);color:var(--lv);font-size:13px}
  body#royal-blue-app .ex-rules li span {font-size:15px;font-weight:800;color:#133858}
  body#royal-blue-app .ex-rules li small {font-size:12.5px;color:#62758d}
  body#royal-blue-app .ex-foot {padding-top:14px;border-top:1px solid #e3ecf8}
  body#royal-blue-app .ex-foot a,body#royal-blue-app .ex-actions a {color:#175adb;font-weight:700}

  /* ------------------------------------------------------- phone: bottom sheet */
  @media (max-width:760px) {
    body#royal-blue-app .ex-overlay {align-items:flex-end;justify-content:center}
    body#royal-blue-app .ex-drawer {width:100%;height:auto;max-height:88vh;padding:20px 18px 26px;border-radius:18px 18px 0 0;box-shadow:0 -10px 30px rgba(15,35,64,.25);animation:ex-up .22s ease-out}
    @keyframes ex-up {from {transform:translateY(28px);opacity:0} to {transform:none;opacity:1}}
  }
  @media (prefers-reduced-motion:reduce) {
    body#royal-blue-app .ex-drawer {animation:none}
  }
}
@layer readability {
  /* compact: the reason and the button share one row so the indicator cells stay short */
  body#royal-blue-app .ir-explain {display:flex !important;flex-wrap:wrap;align-items:center;gap:4px 8px !important;margin-top:6px !important}
  body#royal-blue-app .ir-reason {flex:1 1 150px;min-width:0;font-size:12px !important;line-height:1.35 !important}
  body#royal-blue-app .ir-reason i {margin-top:4px;width:8px;height:8px}
  body#royal-blue-app .ir-explain-btn {min-height:32px !important;padding:0 10px 0 4px !important;gap:6px !important;font-size:12px !important;flex:none}
  body#royal-blue-app .ir-explain-btn i {width:20px;height:20px;font-size:12px}
}
@layer readability {
  body#royal-blue-app .hero-th {margin:0 0 10px;font-size:12px}
  body#royal-blue-app .hero-th summary {cursor:pointer;color:#1754bc;font-weight:700;list-style:none}
  body#royal-blue-app .hero-th summary::-webkit-details-marker {display:none}
  body#royal-blue-app .hero-th summary code {padding:1px 6px;border-radius:5px;background:#eaf1ff;color:#143d82;font-size:11px;word-break:break-all}
  body#royal-blue-app .hero-th[open] summary {margin-bottom:6px}
  body#royal-blue-app .hero-th > div {padding:8px 10px;border:1px solid #d6e5ff;border-radius:8px;background:#fff;color:#244477}
  body#royal-blue-app .hero-th ul {margin:0 0 8px;padding-left:16px;line-height:1.5}
  body#royal-blue-app .hero-th a {font-weight:700;color:#175adb}
}
@layer readability {
  /* laptop screens (1280-1366): the cells are about 200px wide, so the button becomes a quiet link under the reason */
  @media (min-width:761px) and (max-width:1440px) {
    body#royal-blue-app .ir-explain {display:block !important;margin-top:4px !important}
    body#royal-blue-app .ir-reason {font-size:11.5px !important;line-height:1.3 !important;overflow-wrap:anywhere}
    body#royal-blue-app .ir-explain-btn {min-height:24px !important;margin-top:2px;padding:0 !important;border:0 !important;background:none !important;font-size:11.5px !important;gap:5px !important}
    body#royal-blue-app .ir-explain-btn i {width:16px;height:16px;font-size:10px}
    body#royal-blue-app .ir-explain-btn:hover {text-decoration:underline;background:none !important}
  }
}
@layer readability {
  /* "i" next to the alert level: a tap opens the explanation inside the banner (in the flow, so the card never clips it) */
  body#royal-blue-app .hero-tip {position:absolute;top:10px;right:10px;z-index:2;display:grid;place-items:center;width:24px;height:24px;padding:0;border:1.5px solid #175adb;border-radius:50%;background:#eaf2ff;animation:hero-tip-shake 3.6s ease-in-out infinite;color:#175adb;cursor:pointer;transition:background .15s,color .15s,transform .15s}
  body#royal-blue-app .hero-tip svg {width:12px;height:12px;margin:0}
  body#royal-blue-app .hero-tip:hover {background:#d7e7ff;transform:scale(1.12);animation:none}
  body#royal-blue-app .hero-tip[aria-expanded="true"] {animation:none;background:#175adb;color:#fff;border-color:#175adb}
  body#royal-blue-app .hero-tip:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .hero-tip-body {display:none !important}
  .hero-tip-pop {position:fixed;z-index:2147483000;display:grid;gap:0;box-sizing:border-box;padding:14px 16px 12px;border:1px solid #bcd3f7;border-radius:12px;background:#fff;color:#36516f;box-shadow:0 16px 40px rgb(20 50 100 / .22);font:400 13px/1.5 Inter,"Segoe UI",sans-serif;text-align:left}
  .hero-tip-pop::before {content:"";position:absolute;top:-6px;left:calc(var(--arrow,20px) - 6px);width:10px;height:10px;transform:rotate(45deg);background:#fff;border-left:1px solid #bcd3f7;border-top:1px solid #bcd3f7}
  .hero-tip-pop .tp-title {display:block;margin:0 0 8px;padding-bottom:8px;border-bottom:1px solid #e3ecf8;color:#133858;font-size:14px;font-weight:700}
  .hero-tip-pop .tp-item {display:block;position:relative;padding:6px 0 6px 14px}
  .hero-tip-pop .tp-item::before {content:"";position:absolute;left:0;top:7px;bottom:7px;width:3px;border-radius:3px;background:var(--tp,#8a9bb2)}
  .hero-tip-pop .tp-item em {display:block;font-style:normal;font-weight:700;color:var(--tp,#133858);font-size:12px;letter-spacing:.2px;text-transform:uppercase}
  .hero-tip-pop .tp-up {--tp:#e8710a}
  .hero-tip-pop .tp-hold {--tp:#d6453d}
  .hero-tip-pop .tp-down {--tp:#12a150}
  .hero-tip-pop .tp-stale {--tp:#6b7c93}
}
/* draw attention: the "i" wiggles briefly every few seconds; a serious level also makes its warning icon pulse and tilt */
@keyframes hero-tip-shake {
  0%,70%,100% {transform:rotate(0)}
  74% {transform:rotate(-16deg) scale(1.12)}
  78% {transform:rotate(14deg) scale(1.12)}
  82% {transform:rotate(-10deg)}
  86% {transform:rotate(8deg)}
  90% {transform:rotate(-4deg)}
}
@keyframes hero-warn-pulse {
  0%,60%,100% {transform:scale(1) rotate(0);filter:none}
  68% {transform:scale(1.18) rotate(-8deg);filter:drop-shadow(0 0 5px rgb(214 69 61 / .55))}
  76% {transform:scale(1.18) rotate(8deg)}
  84% {transform:scale(1.08) rotate(-4deg)}
}
body#royal-blue-app .hydro-hero.level-2 > .badge svg, body#royal-blue-app .hydro-hero.level-3 > .badge svg, body#royal-blue-app .hydro-hero.level-4 > .badge svg {transform-origin:50% 60%;animation:hero-warn-pulse 3.6s ease-in-out infinite}
body#royal-blue-app .hydro-hero.level-4 > .badge svg {animation-duration:1.8s}
@media (prefers-reduced-motion:reduce) {
  body#royal-blue-app .hero-tip, body#royal-blue-app .hydro-hero > .badge svg {animation:none !important}
}
body#royal-blue-app .hero-tip::after {content:"";position:absolute;inset:-10px}
/* the "i" takes the colour of the alert level, like the label beside it */
body#royal-blue-app .hydro-hero .hero-tip {--tip:#0b7a3b;color:var(--tip);border-color:var(--tip);background:color-mix(in srgb,var(--tip) 12%,#fff)}
body#royal-blue-app .hydro-hero.level-1 .hero-tip {--tip:#946b00}
body#royal-blue-app .hydro-hero.level-2 .hero-tip {--tip:#c25200}
body#royal-blue-app .hydro-hero.level-3 .hero-tip {--tip:#bf1a12}
body#royal-blue-app .hydro-hero.level-4 .hero-tip {--tip:#7e0023}
body#royal-blue-app .hydro-hero.level-null .hero-tip {--tip:#70849b}
body#royal-blue-app .hydro-hero .hero-tip:hover {background:color-mix(in srgb,var(--tip) 22%,#fff)}
body#royal-blue-app .hydro-hero .hero-tip[aria-expanded="true"] {background:var(--tip);color:#fff;border-color:var(--tip)}
body#royal-blue-app .hydro-hero .hero-tip:focus-visible {outline-color:color-mix(in srgb,var(--tip) 45%,#fff)}
@layer readability {
  /* C0–C4: the two groups of water users under the point's level */
  body#royal-blue-app .hero-groups {list-style:none;margin:8px 0 10px;padding:0;display:grid;gap:8px;min-width:0}
  body#royal-blue-app .hero-groups li {display:flex;gap:10px;align-items:flex-start;min-width:0}
  body#royal-blue-app .hero-groups li>span {display:grid;gap:2px;min-width:0}
  body#royal-blue-app .hero-groups b {font-size:13px}
  body#royal-blue-app .hero-groups small {font-size:12px;line-height:1.45;color:#3d5573;overflow-wrap:anywhere}
  body#royal-blue-app .hero-groups .badge {flex:none}
  body#royal-blue-app .hero-groups small {display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  body#royal-blue-app .hero-more {margin:0 0 8px;font-size:12px}
  body#royal-blue-app .hero-more summary {cursor:pointer;color:#1754bc;font-weight:700;list-style:none}
  body#royal-blue-app .hero-more summary::-webkit-details-marker {display:none}
  body#royal-blue-app .hero-more>div {margin-top:6px;padding:8px 10px;border:1px solid #d6e5ff;border-radius:8px;background:#fff;color:#244477;display:grid;gap:8px;max-height:220px;overflow:auto}
  body#royal-blue-app .hero-more p {margin:0!important;font-size:12px!important;line-height:1.5;color:#244477!important;overflow-wrap:anywhere}
  body#royal-blue-app .hero-more p b {display:block}
  body#royal-blue-app .hero-paused {margin:0 0 10px;padding:7px 10px;border-radius:8px;background:#f1f4f7;border:1px dashed #9aabbc;font-size:12px;color:#3c5068}
}

/* ==== color-system.css ==== */
/* One colour system for the whole software. Loaded last; every rule sits in the readability layer so it wins over the older themes.
   Alert levels: green (normal), yellow, orange, red and maroon (the strongest, "khẩn cấp", which also blinks) — the same five colours as the map pins, icons, e-mails and PDF reports.
   Measured parameters: the colours in chart-experience.js (chartColor). A change to either set is made here, in alert-level-icon.js,
   in ReportFormat.php and in chart-experience.js together; tests/ui-color-system.mjs keeps them equal. */
:root {
  --lv0: #12a150; --lv1: #f5c000; --lv2: #ff7a1a; --lv3: #e5251b; --lv4: #7e0023; --lv-unknown: #809acd;
  --lv0-ink: #0b7a3b; --lv1-ink: #946b00; --lv2-ink: #c25200; --lv3-ink: #bf1a12; --lv4-ink: #7e0023; --lv-unknown-ink: #5f7396;
  --lv0-soft: #e7f7ee; --lv1-soft: #fff8db; --lv2-soft: #fff0e3; --lv3-soft: #fdeceb; --lv4-soft: #f6e3e8; --lv-unknown-soft: #eef2f9;
  --lv0-line: #bfe6cf; --lv1-line: #f6e08a; --lv2-line: #ffd1a8; --lv3-line: #f5b3ae; --lv4-line: #d9a3b1; --lv-unknown-line: #d3dcec;
}
@layer readability {
  /* the five tones as variables on every element that carries a level */
  body#royal-blue-app :is([data-alert-level="0"],[data-station-alert="0"],.badge.level-0,.hydro-hero.level-0) {--status:var(--lv0)!important;--status-ink:var(--lv0-ink)!important;--status-soft:var(--lv0-soft)!important;--status-line:var(--lv0-line)!important;--sa-color:var(--lv0)!important;--point-color:var(--lv0)!important}
  body#royal-blue-app :is([data-alert-level="1"],[data-station-alert="1"],.badge.level-1,.hydro-hero.level-1) {--status:var(--lv1)!important;--status-ink:var(--lv1-ink)!important;--status-soft:var(--lv1-soft)!important;--status-line:var(--lv1-line)!important;--sa-color:var(--lv1)!important;--point-color:var(--lv1)!important}
  body#royal-blue-app :is([data-alert-level="2"],[data-station-alert="2"],.badge.level-2,.hydro-hero.level-2) {--status:var(--lv2)!important;--status-ink:var(--lv2-ink)!important;--status-soft:var(--lv2-soft)!important;--status-line:var(--lv2-line)!important;--sa-color:var(--lv2)!important;--point-color:var(--lv2)!important}
  body#royal-blue-app :is([data-alert-level="3"],[data-station-alert="3"],.badge.level-3,.hydro-hero.level-3) {--status:var(--lv3)!important;--status-ink:var(--lv3-ink)!important;--status-soft:var(--lv3-soft)!important;--status-line:var(--lv3-line)!important;--sa-color:var(--lv3)!important;--point-color:var(--lv3)!important}
  body#royal-blue-app :is([data-alert-level="4"],[data-station-alert="4"],.badge.level-4,.hydro-hero.level-4) {--status:var(--lv4)!important;--status-ink:var(--lv4-ink)!important;--status-soft:var(--lv4-soft)!important;--status-line:var(--lv4-line)!important;--sa-color:var(--lv4)!important;--point-color:var(--lv4)!important}
  body#royal-blue-app :is([data-alert-level="unknown"],[data-station-alert="unknown"],.badge.level-null) {--status:var(--lv-unknown)!important;--status-ink:var(--lv-unknown-ink)!important;--status-soft:var(--lv-unknown-soft)!important;--status-line:var(--lv-unknown-line)!important;--sa-color:var(--lv-unknown)!important;--point-color:var(--lv-unknown)!important}

  /* level badges everywhere (tables, cards, alert dialog) */
  body#royal-blue-app .badge:is(.level-0,.level-1,.level-2,.level-3,.level-4,.level-null) {color:var(--status-ink)!important;background:var(--status-soft)!important;border-color:var(--status-line)!important}

  /* station tabs: the level word and the chip */
  body#royal-blue-app .sa-station :is(.sa-status-name) {color:var(--status-ink)!important}
  body#royal-blue-app :is(.ob-network,.rb-station-navigation,.rb-overview-row) .sa-station:is([data-station-alert="0"],[data-station-alert="1"],[data-station-alert="2"],[data-station-alert="3"],[data-station-alert="4"]) .sa-status-chip {background:transparent!important;color:var(--status-ink)!important;box-shadow:none!important;border-color:transparent!important}
  body#royal-blue-app :is(.ob-network,.rb-station-navigation,.rb-overview-row) .sa-station[data-station-alert="unknown"] .sa-status-chip {background:transparent!important;color:var(--lv-unknown-ink)!important;box-shadow:none!important;border-color:transparent!important}

  /* the big reading card of a point */
  body#royal-blue-app .hydro-hero.level-0 {border-color:var(--lv0-line)!important;background:linear-gradient(110deg,#fff,var(--lv0-soft))!important}
  body#royal-blue-app .hydro-hero.level-1 {border-color:var(--lv1-line)!important;background:linear-gradient(110deg,#fff,var(--lv1-soft))!important}
  body#royal-blue-app .hydro-hero:is(.level-2,.level-3,.level-4) {border-color:var(--status-line)!important;background:linear-gradient(110deg,#fff,var(--status-soft))!important}
  body#royal-blue-app .hydro-hero .hero-tip {--tip:var(--status-ink)!important}

  /* chart backdrop: one plain surface behind every parameter (the limit stays a dashed line, never a tinted zone) */
  body#royal-blue-app .rp-plot {fill:#f8faff!important;stroke:#e3ecf8!important}
  body#royal-blue-app .rp-zone {fill:transparent!important}
}

/* Level 4 (khẩn cấp) blinks: a slow pulse of the badge, chip, icon and map dot (no ring or glow around them). Level 3 stays steady red. */
@keyframes lv4-pulse {0%,100% {opacity:1} 50% {opacity:.5}}
@layer readability {
  body#royal-blue-app .badge.level-4,
  body#royal-blue-app .sa-station[data-station-alert="4"] .sa-status-chip,
  body#royal-blue-app .lvl-icon[data-level-icon="4"],
  body#royal-blue-app .geographic-marker[data-alert-level="4"] .beacon-core {animation:lv4-pulse 1.2s ease-in-out infinite}
  @media (prefers-reduced-motion:reduce) {
    body#royal-blue-app .badge.level-4,
    body#royal-blue-app .sa-station[data-station-alert="4"] .sa-status-chip,
    body#royal-blue-app .lvl-icon[data-level-icon="4"],
    body#royal-blue-app .geographic-marker[data-alert-level="4"] .beacon-core {animation:none}
  }
}

/* Station tiles: no outline of their own. The level shows as the dot (or chip) inside and a soft tint of the same palette; the dot has no ring around it. */
@layer readability {
  body#royal-blue-app :is(.ob-network,.rb-station-navigation,.rb-overview-row) .sa-station:is([data-station-alert="0"],[data-station-alert="1"],[data-station-alert="2"],[data-station-alert="3"],[data-station-alert="4"]) {border-color:transparent!important;box-shadow:none!important;background:linear-gradient(160deg,#fff,var(--status-soft))!important}
  body#royal-blue-app :is(.ob-network,.rb-station-navigation,.rb-overview-row) .sa-station[data-station-alert="unknown"] {border-color:#e3ecf8!important;box-shadow:none!important}
  body#royal-blue-app :is(.ob-network,.rb-station-navigation,.rb-overview-row) .sa-station.selected {box-shadow:0 6px 16px rgba(18,53,95,.12)!important}
}

/* Sources of a number (data-source.js): one colour each, on every chip, card label, legend dot and "Nguồn số liệu" line.
   Chosen apart from the alert levels: blue = Đo tại phao, violet = Đo thủ công, teal + dashed = Ước tính tại mặt cắt (the dashed chart line),
   sand + dotted = Giả định theo phao, slate = NH₃ tính toán. */
:root {
  --src-measured: #1d63d8; --src-measured-ink: #1650b0; --src-measured-soft: #e8f0fd; --src-measured-line: #b6cdf6;
  --src-manual: #7c3aed; --src-manual-ink: #5b2bb5; --src-manual-soft: #f2ecfe; --src-manual-line: #d6c6fb;
  --src-estimated: #0b8aa4; --src-estimated-ink: #086d82; --src-estimated-soft: #e3f5f8; --src-estimated-line: #8fd0dc;
  --src-assumed: #a56a12; --src-assumed-ink: #7f5008; --src-assumed-soft: #fbf3e3; --src-assumed-line: #d9b674;
  --src-calculated: #546479; --src-calculated-ink: #3e4c60; --src-calculated-soft: #eef1f6; --src-calculated-line: #c3ccd9;
}
@layer readability {
  body#royal-blue-app :is(.badge.measured,[data-source="measured"],[data-data-source="measured"]) {--src:var(--src-measured);--src-ink:var(--src-measured-ink);--src-soft:var(--src-measured-soft);--src-line:var(--src-measured-line)}
  body#royal-blue-app :is(.badge.manual,[data-source="manual"],[data-data-source="manual"]) {--src:var(--src-manual);--src-ink:var(--src-manual-ink);--src-soft:var(--src-manual-soft);--src-line:var(--src-manual-line)}
  body#royal-blue-app :is(.badge.estimated,[data-source="estimated"],[data-data-source="estimated"]) {--src:var(--src-estimated);--src-ink:var(--src-estimated-ink);--src-soft:var(--src-estimated-soft);--src-line:var(--src-estimated-line)}
  body#royal-blue-app :is(.badge.assumed,[data-source="assumed"],[data-data-source="assumed"]) {--src:var(--src-assumed);--src-ink:var(--src-assumed-ink);--src-soft:var(--src-assumed-soft);--src-line:var(--src-assumed-line)}
  body#royal-blue-app :is(.badge.calculated,[data-source="calculated"],[data-data-source="calculated"]) {--src:var(--src-calculated);--src-ink:var(--src-calculated-ink);--src-soft:var(--src-calculated-soft);--src-line:var(--src-calculated-line)}

  /* chips */
  body#royal-blue-app :is(.badge.measured,.badge.manual,.badge.estimated,.badge.assumed,.badge.calculated,.badge.src-chip) {color:var(--src-ink)!important;background:var(--src-soft)!important;border:1px solid var(--src-line)!important}
  body#royal-blue-app :is(.badge.estimated,.badge.src-chip.estimated) {border-style:dashed!important}
  body#royal-blue-app :is(.badge.assumed,.badge.src-chip.assumed) {border-style:dotted!important;border-width:1.5px!important}

  /* the source line on reading cards and on the public page: coloured text after a dot of the same kind */
  body#royal-blue-app :is(.metric-source,.ir-source,.citizen-source-badge)[data-source] {color:var(--src-ink)!important;font-weight:600}
  body#royal-blue-app :is(.metric-source,.ir-source)[data-source]::before,
  body#royal-blue-app .rb-data-status[data-data-source] > strong::before {content:"";display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:var(--src);vertical-align:1px}
  body#royal-blue-app :is(.metric-source,.ir-source)[data-source="estimated"]::before,
  body#royal-blue-app .rb-data-status[data-data-source="estimated"] > strong::before {background:transparent;border:1.5px dashed var(--src);width:6px;height:6px}
  body#royal-blue-app :is(.metric-source,.ir-source)[data-source="assumed"]::before,
  body#royal-blue-app .rb-data-status[data-data-source="assumed"] > strong::before {background:transparent;border:1.5px dotted var(--src);width:6px;height:6px}
  body#royal-blue-app .rb-data-status[data-data-source] > strong {color:var(--src-ink)!important}
  body#royal-blue-app .citizen-source-badge[data-source] {background:var(--src-soft)!important;border:1px solid var(--src-line)!important}
  body#royal-blue-app .citizen-source-badge[data-source="estimated"] {border-style:dashed!important}

  /* legend dots on the map and the route strip */
  body#royal-blue-app :is(.map-source-dot,.ob-preview-key i)[data-source] {background:var(--src)!important;border-color:var(--src)!important}
  body#royal-blue-app :is(.map-source-dot,.ob-preview-key i)[data-source="estimated"] {background:#fff!important;border-style:dashed!important}
}

/* ==== fit-rows.css ==== */
/* Rows of tabs and pills stay on one line: a row that does not fit moves down as a whole instead of leaving one item alone on the next line.
   Layered rules (readability) so they win over the older themes; own class prefix is not needed because every selector is scoped. */
@layer readability {
  /* Overview: the monitoring points (one tile each) — five tiles share the row, more than fit wrap by whole tiles */
  @media (min-width:601px) {
    body#royal-blue-app #ob-network.rb-station-navigation .ob-station-tabs {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(58px,1fr))!important;gap:5px!important;overflow:visible!important}
    body#royal-blue-app #ob-network.rb-station-navigation .ob-station-tabs .sa-station {min-width:0!important;width:100%!important}
    body#royal-blue-app #ob-network.rb-station-navigation .ob-station-tabs .sa-station .sa-status-chip {white-space:nowrap!important;max-width:100%!important;padding-inline:4px!important;font-size:10px!important}
  }

  /* Map header: the five base-map pills and the fit button stay together; when the header is too narrow they drop below the title as one row */
  body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar {display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:8px 14px!important}
  body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar .river-header {flex:1 1 200px!important;min-width:0!important}
  body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar .map-situation {flex:1 1 100%!important}
  body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar .gis-control-row {flex:0 0 auto!important;grid-column:auto!important;grid-row:auto!important;margin:0 0 0 auto!important;max-width:100%!important;width:auto!important}
  body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-toolbar {flex-wrap:nowrap!important;width:auto!important}
  body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-switch {display:flex!important;flex-wrap:nowrap!important;justify-content:flex-end!important;width:auto!important}
  body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-switch button {flex:0 0 auto!important;white-space:nowrap!important}

  /* Report summary cards (one per parameter): one row that scrolls sideways when the window is narrow, never a lone card on a second row */
  @media (min-width:901px) {
    body#royal-blue-app .rp-params {display:grid!important;grid-auto-flow:column!important;grid-template-columns:none!important;grid-auto-columns:minmax(172px,1fr)!important;overflow-x:auto!important;padding-bottom:4px}
  }

  /* Threshold page: the parameter chips share the width in equal columns (4 + 4 instead of 6 + 2) */
  body#royal-blue-app .th-chips {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:6px!important}
  body#royal-blue-app .th-chips > * {justify-content:center;min-width:0}

  /* QCVN cards: the main action takes the first row, the two others share the second one */
  body#royal-blue-app .qx-actions {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body#royal-blue-app .qx-actions .btn {width:100%;justify-content:center;white-space:nowrap}
  body#royal-blue-app .qx-actions .btn:first-child {grid-column:1/-1}
  body#royal-blue-app .qx-actions .btn:first-child:nth-last-child(2) {grid-column:auto}

  /* "Số liệu mới": one short line, a pill with a soft dot instead of a two-line box */
  body#royal-blue-app .live-update-notice {display:inline-flex!important;align-items:center;gap:7px;width:auto!important;height:auto!important;padding:5px 13px!important;border-radius:999px!important;white-space:nowrap!important;font-size:13px!important;font-weight:700!important;line-height:1.4!important}
  body#royal-blue-app .live-update-notice[hidden] {display:none!important}
  body#royal-blue-app .live-update-notice i {flex:none;width:8px;height:8px;border-radius:50%;background:#2563eb;box-shadow:0 0 0 0 rgba(37,99,235,.45);animation:lu-pulse 2s ease-out infinite}
  @keyframes lu-pulse {0% {box-shadow:0 0 0 0 rgba(37,99,235,.45)} 70%,100% {box-shadow:0 0 0 7px rgba(37,99,235,0)}}
  @media (prefers-reduced-motion:reduce) {body#royal-blue-app .live-update-notice i {animation:none}}

  /* breadcrumb: the home icon and "Hệ thống" are links to the overview */
  body#royal-blue-app #breadcrumb .rb-crumb {display:inline-flex;align-items:center;color:inherit;text-decoration:none;border-radius:8px;cursor:pointer}
  body#royal-blue-app #breadcrumb .rb-crumb-home svg {box-sizing:content-box;padding:6px;border-radius:8px;color:#245bff;background:#e7efff;transition:background-color .15s}
  body#royal-blue-app #breadcrumb .rb-crumb-home:hover svg {background:#d3e2ff}
  body#royal-blue-app #breadcrumb .rb-crumb-label {font-weight:500;color:#496386}
  body#royal-blue-app #breadcrumb .rb-crumb-label:hover {color:#0a3a9a;text-decoration:underline;text-underline-offset:3px}
  body#royal-blue-app #breadcrumb .rb-crumb:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  @media (max-width:760px) {
    body#royal-blue-app #breadcrumb .rb-crumb, body#royal-blue-app #breadcrumb .rb-breadcrumb-separator {display:none!important}
  }

  /* numbered form steps ("1 Thông tin lấy mẫu"): the number sits in front of the title on one line; the icon box would be a second badge, so it steps aside */
  body#royal-blue-app .card-title h2:has(.step-number) .rb-form-title-icon {display:none!important}
  body#royal-blue-app .card-title h2 > span:has(> .step-number) {display:inline-flex;align-items:center;gap:10px}
  body#royal-blue-app .step-number {display:inline-grid!important;flex:none;place-items:center;width:28px;height:28px;margin:0;border-radius:50%;background:linear-gradient(145deg,#2f6bff,#0862ff)!important;color:#fff;font-size:14px;font-weight:800;line-height:1;box-shadow:0 3px 8px rgba(8,98,255,.28)}

  /* a form field never grows its input just because the field next to it (with a hint) makes the row taller */
  body#royal-blue-app .form-grid > .field {align-content:start!important}
}

/* ==== gis-experience.css ==== */
/* GIS experience: parameter lens bar, point value chips, tour highlight and a soft frame around the map. */
@layer readability {
  body#royal-blue-app .gis-lens {position:relative;z-index:1200;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:2px 0 8px;padding:6px 10px;border:1px solid #d7e4fa;border-radius:12px;background:linear-gradient(135deg,#fff 0%,#f2f7ff 100%);box-shadow:0 4px 14px rgba(23,58,120,.06)}
  body#royal-blue-app .gis-lens-title {font-size:10.5px;font-weight:800;letter-spacing:.9px;text-transform:uppercase;color:#175adb;white-space:nowrap}
  body#royal-blue-app .gis-lens-menu {position:relative;flex:0 1 auto}
  body#royal-blue-app .gis-lens-menu > summary {display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:5px 12px;border:1px solid #cbdcff;border-radius:999px;background:#f2f7ff;color:#184fae;font:700 12.5px/1.2 'Be Vietnam Pro',sans-serif;cursor:pointer;list-style:none;white-space:nowrap}
  body#royal-blue-app .gis-lens-menu > summary::-webkit-details-marker {display:none}
  body#royal-blue-app .gis-lens-menu > summary::after {content:"";width:7px;height:7px;margin:-3px 0 0 3px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)}
  body#royal-blue-app .gis-lens-menu[open] > summary {border-color:#245bff;box-shadow:0 0 0 2px #245bff1a}
  body#royal-blue-app .gis-lens-dot {width:9px;height:9px;border-radius:50%;background:var(--lens,#0862ff)}
  body#royal-blue-app .gis-lens-options {position:absolute;left:0;top:calc(100% + 6px);z-index:1300;display:grid;grid-template-columns:repeat(3,minmax(96px,1fr));gap:4px;width:max-content;max-width:min(92vw,420px);padding:6px;border:1px solid #d5e3fa;border-radius:12px;background:#fff;box-shadow:0 10px 28px rgba(23,61,119,.2)}
  body#royal-blue-app .gis-lens-options button {display:inline-flex;align-items:center;gap:7px;min-width:0;min-height:34px;padding:6px 10px;border:1px solid transparent;border-radius:8px;background:#fff;color:#2a4466;font:600 12.5px/1.2 'Be Vietnam Pro',sans-serif;text-align:left;white-space:nowrap;cursor:pointer}
  body#royal-blue-app .gis-lens-options button i {width:9px;height:9px;flex:none;border-radius:50%;background:var(--lens,#0862ff)}
  body#royal-blue-app .gis-lens-options button:hover {background:#f0f5ff}
  body#royal-blue-app .gis-lens-options button[aria-pressed="true"] {background:color-mix(in srgb,var(--lens,#0862ff) 12%,white);border-color:var(--lens,#0862ff);color:#133858;font-weight:800}
  body#royal-blue-app .gis-lens button:focus-visible,body#royal-blue-app .gis-lens summary:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .gis-tour {display:inline-flex;align-items:center;gap:6px;min-height:32px;margin-left:auto;padding:5px 14px;border:0;border-radius:999px;background:linear-gradient(135deg,#0862ff,#00a6d6);color:#fff;font:700 12px/1.2 'Be Vietnam Pro',sans-serif;white-space:nowrap;cursor:pointer;box-shadow:0 4px 12px rgba(8,98,255,.28)}
  body#royal-blue-app .gis-tour[aria-pressed="true"] {background:linear-gradient(135deg,#c4132f,#ff382c);box-shadow:0 4px 12px rgba(196,19,47,.28)}
  body#royal-blue-app .gis-tour-status {font-size:12px;font-weight:600;color:#175adb}
  body#royal-blue-app .gis-tour-status:empty {display:none}
  body#royal-blue-app .gis-lens-legend {flex:1 1 100%;display:flex;flex-wrap:nowrap;align-items:center;gap:6px 12px;padding-top:6px;border-top:1px dashed #d7e4fa}
  body#royal-blue-app .gis-lens-legend[hidden] {display:none}
  body#royal-blue-app .gis-lens-legend strong {font-size:12px;color:#133858;white-space:nowrap}
  body#royal-blue-app .gis-lens-scale {display:inline-flex;align-items:center;gap:7px;flex:0 1 240px;min-width:140px}
  body#royal-blue-app .gis-lens-scale i {flex:1;height:8px;border-radius:5px;background:var(--lens-gradient,#ddd);box-shadow:inset 0 0 0 1px rgba(20,50,100,.12)}
  body#royal-blue-app .gis-lens-scale em {font-style:normal;font-weight:700;font-size:11.5px;color:#2a4466;font-variant-numeric:tabular-nums}
  body#royal-blue-app .gis-lens-legend small {flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#62758d}

  /* value chip inside each point label while a parameter lens is on (the label grows to hold it) */
  body#royal-blue-app .gis-lens-chip {display:none}
  body#royal-blue-app .gis-lens-on .gis-beacon .map-pin-label {height:auto!important;min-height:41px;padding-bottom:7px!important}
  body#royal-blue-app .gis-lens-on .map-pin-label .gis-lens-chip {display:flex!important;position:static!important;flex-wrap:wrap;align-items:baseline;gap:2px 4px;width:auto;margin:5px 0 0;padding:2px 8px;border:2px solid var(--lens);border-radius:9px;background:#fff;color:var(--lens-ink);font:800 13px/1.35 'Be Vietnam Pro',sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}
  body#royal-blue-app .gis-lens-on .map-pin-label .gis-lens-chip small {display:inline!important;margin:0;font:600 10px/1.2 'Be Vietnam Pro',sans-serif;color:#62758d}
  body#royal-blue-app .gis-lens-on .map-pin-label .gis-lens-chip .gis-lens-old {display:block!important;flex:1 1 100%;font:600 9.5px/1.2 'Be Vietnam Pro',sans-serif;color:#7b8da2}
  body#royal-blue-app .gis-lens-on .map-pin-label .gis-lens-chip.is-empty {border-color:#cbd5e2;color:#7b8da2}
  body#royal-blue-app .gis-lens-on .map-pin-label .gis-lens-chip.is-stale {border:2px dashed #b9c6d8;color:#5f7396;background:#f6f8fb}

  /* the point being visited on the tour */
  body#royal-blue-app .gis-beacon.tour-focus > .beacon-core {box-shadow:0 0 0 7px color-mix(in srgb,var(--point-color) 30%,transparent),0 0 24px color-mix(in srgb,var(--point-color) 55%,transparent)!important;transform:scale(1.14)}
  body#royal-blue-app .gis-beacon.tour-focus .map-pin-label {box-shadow:0 8px 26px color-mix(in srgb,var(--point-color) 38%,transparent)}

  /* a soft frame: the map reads as one finished surface */
  body#royal-blue-app .river-canvas {position:relative}
  body#royal-blue-app .river-canvas::after {content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:690;box-shadow:inset 0 0 64px rgba(10,45,100,.13)}

  @media (max-width:600px) {
    body#royal-blue-app .gis-lens-title {display:none}
    body#royal-blue-app .gis-lens-legend {flex-wrap:wrap}
    body#royal-blue-app .gis-lens-legend small {flex:1 1 100%;white-space:normal}
    body#royal-blue-app .gis-lens-options {grid-template-columns:repeat(2,minmax(110px,1fr))}
  }
}
.gis-coordinate-label .gis-datum{font-style:normal}

/* Hoàng Sa, Trường Sa (29-10-2026, Quản trị › Bản đồ): the Vietnamese names sit centred on the spots where the OpenStreetMap basemap writes
   its foreign ones; on that basemap ("Thủy văn") the label is a patch the colour of the OSM sea (#aad3df) so the foreign text under it is
   hidden; on the other basemaps it is a light tag. The district name shows from zoom 8 only. */
@layer readability {
  :root body#royal-blue-app .leaflet-marker-icon.gis-sovereignty {background:none !important;border:0 !important;pointer-events:none !important}
  :root body#royal-blue-app .leaflet-marker-icon.gis-sovereignty > span {position:absolute !important;left:0 !important;top:0 !important;transform:translate(-50%,-50%) !important;white-space:nowrap !important;padding:3px 9px 4px !important;border-radius:7px !important;font-size:12px !important;font-weight:700 !important;line-height:1.2 !important;color:#0b3b6f !important;background:rgba(255,255,255,.88) !important;box-shadow:0 0 0 1px rgba(11,59,111,.14) !important}
  :root body#royal-blue-app .gis-style-hydrology .leaflet-marker-icon.gis-sovereignty > span {background:#aad3df !important}
  :root body#royal-blue-app .leaflet-marker-icon.gis-sovereignty-minor > span {font-size:11px !important;font-weight:600 !important;padding:2px 7px 3px !important}
  :root body#royal-blue-app .gis-zoom-far .leaflet-marker-icon.gis-sovereignty-minor {display:none !important}
}

/* ==== threshold-note.css ==== */
/* "Ngưỡng cảnh báo" under every trend chart: a flat, quiet strip with one tile per level (no heavy box, no wrapped chips).
   Layered rules so they replace the older patchwork in help-center.css and small-screens.css. */
@layer readability {
  body#royal-blue-app .chart-legend .chart-threshold-note {display:grid!important;gap:8px!important;flex:1 1 100%;margin:8px 0 0!important;padding:10px 0 0!important;border:0!important;border-top:1px solid #e6edf6!important;border-radius:0!important;background:transparent!important;overflow:visible!important}

  /* header: title, version as a ghost tag, current state on the right */
  body#royal-blue-app .chart-threshold-note .th-head {display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:4px 10px!important}
  body#royal-blue-app .chart-threshold-note .th-head strong {font-size:12.5px!important;font-weight:750!important;color:#133858!important;letter-spacing:.1px}
  body#royal-blue-app .chart-threshold-note .th-head small {max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 8px!important;border:1px solid #e1e9f5;border-radius:999px;background:transparent!important;color:#7a8ca3!important;font-size:10.5px!important;line-height:18px}
  body#royal-blue-app .chart-threshold-note .th-now {margin-left:0!important;padding:2px 10px!important;border:0!important;border-radius:999px;background:color-mix(in srgb,var(--lv) 11%,#fff)!important;color:#62758d!important;font-size:11.5px!important;white-space:nowrap!important}
  body#royal-blue-app .chart-threshold-note .th-now b {color:#133858!important;font-weight:800}

  /* how long the current level has been held: a quiet line, no banner */
  body#royal-blue-app .chart-threshold-note .th-held {position:relative;margin:0!important;padding:0 0 0 14px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#62758d!important;font-size:11.5px!important;line-height:1.5!important}
  body#royal-blue-app .chart-threshold-note .th-held::before {content:"";position:absolute;left:2px;top:.55em;width:6px;height:6px;border-radius:50%;background:#e6a000}
  body#royal-blue-app .chart-threshold-note .th-held b {color:#7a4d00!important;font-weight:700}

  /* the ladder: one tile per level, the colour only as a thin top edge and a tint */
  body#royal-blue-app .chart-threshold-note .th-rules {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(104px,1fr))!important;gap:6px!important;margin:0!important;padding:0!important;list-style:none}
  body#royal-blue-app .chart-threshold-note .th-rules li {display:grid!important;grid-template-columns:auto 1fr!important;grid-template-areas:"code hold" "cond cond" "name name";align-items:center!important;gap:1px 6px!important;min-width:0;padding:7px 10px 8px!important;border:0!important;border-radius:9px!important;background:color-mix(in srgb,var(--lv) 7%,#fff)!important;box-shadow:inset 0 3px 0 var(--lv)}
  body#royal-blue-app .chart-threshold-note .th-rules li b {grid-area:code;grid-row:auto!important;padding:0!important;background:transparent!important;color:var(--lv)!important;font-size:11px!important;font-weight:800!important;letter-spacing:.4px}
  body#royal-blue-app .chart-threshold-note .th-rules li .th-hold {grid-area:hold;justify-self:end;padding:0 7px!important;border-radius:999px;background:#fff!important;color:#62758d!important;font-size:10.5px!important;font-weight:700!important;line-height:17px}
  body#royal-blue-app .chart-threshold-note .th-rules li .th-cond {grid-area:cond;margin-top:3px;font-size:14.5px!important;font-weight:800!important;color:#133858!important;white-space:nowrap}
  body#royal-blue-app .chart-threshold-note .th-rules li .th-cond small {display:inline!important;font-size:10.5px!important;font-weight:600!important;color:#7a8ca3!important}
  body#royal-blue-app .chart-threshold-note .th-rules li .th-name {grid-area:name;display:block!important;grid-column:auto!important;overflow:visible!important;font-size:11px!important;color:#7a8ca3!important;white-space:nowrap;text-overflow:clip}
  body#royal-blue-app .chart-threshold-note .th-unset {margin:0!important;font-size:11px!important;line-height:1.45!important;color:#7a8ca3!important}

  @media (max-width:600px) {
    body#royal-blue-app .chart-threshold-note .th-head {flex-wrap:wrap!important}
    body#royal-blue-app .chart-threshold-note .th-now {margin-left:0!important}
    body#royal-blue-app .chart-threshold-note .th-rules {display:grid!important;flex-wrap:nowrap}
    body#royal-blue-app .chart-threshold-note .th-rules li {display:grid!important;flex:none}
  }

  /* alert-level lines drawn in the trend charts, and the switch in the chart legend */
  /* the level lines carry no text: pointing at one names it in the chart tooltip; the legend keys below spell out the limits */
  body#royal-blue-app .chart-frame .chart .chart-level-draw {transition:stroke-width .12s,opacity .12s}
  body#royal-blue-app .chart-frame .chart .chart-level-line.is-hover .chart-level-draw {stroke-width:2.6;opacity:1}
  /* the switch lives in the panel header: "Đường trên biểu đồ" */
  body#royal-blue-app .chart-threshold-note .chart-levels-toggle {display:inline-flex;align-items:center;gap:7px;margin-left:auto;padding:0;border:0;background:transparent;color:#62758d;font:600 11px/1.6 'Be Vietnam Pro',sans-serif;cursor:pointer}
  body#royal-blue-app .chart-threshold-note .chart-levels-toggle::after {content:"";order:-1;width:26px;height:15px;border-radius:999px;background:radial-gradient(circle at 7.5px 50%,#fff 5.5px,transparent 6px) #c3cfe0;transition:background .15s}
  body#royal-blue-app .chart-threshold-note .chart-levels-toggle[aria-pressed="true"] {color:#0a4fd6}
  body#royal-blue-app .chart-threshold-note .chart-levels-toggle[aria-pressed="true"]::after {background:radial-gradient(circle at calc(100% - 7.5px) 50%,#fff 5.5px,transparent 6px) #1a5fd0}
  body#royal-blue-app .chart-threshold-note .chart-levels-toggle:focus-visible {outline:3px solid #aac8ff;outline-offset:3px;border-radius:6px}
  /* each level tile shows the dashed line it draws; faint when the line is hidden or outside the picture */
  body#royal-blue-app .chart-threshold-note .th-rules li {grid-template-columns:auto 1fr auto!important;grid-template-areas:"code dash hold" "cond cond cond" "name name name"!important}
  body#royal-blue-app .chart-threshold-note .th-rules li .th-dash {grid-area:dash;align-self:center;height:0;margin:0 2px;border-top:2px dashed var(--lv);opacity:.28}
  body#royal-blue-app .chart-threshold-note .th-rules li .th-dash[data-on="true"] {opacity:1}
  body#royal-blue-app .chart-threshold-note .th-rules li {transition:box-shadow .15s,background .15s}
  body#royal-blue-app .chart-threshold-note .th-rules li:hover {background:color-mix(in srgb,var(--lv) 13%,#fff)!important}

  /* the latest sample lies outside the window the viewer picked */
  body#royal-blue-app .monitor-latest-note {display:flex;flex-wrap:wrap;align-items:flex-start;gap:4px 8px;margin:8px 0 2px;padding:8px 10px;border:1px solid #f0dcae;border-radius:10px;background:#fff8e6;color:#6f4a05;font-size:12px;line-height:1.5}
  body#royal-blue-app .monitor-latest-note svg {flex:none;margin-top:2px}
  body#royal-blue-app .monitor-latest-note span {flex:1 1 180px}
  body#royal-blue-app .monitor-latest-jump {padding:3px 11px;border:1px solid #e0c379;border-radius:999px;background:#fff;color:#7a4d00;font:700 11.5px/1.5 'Be Vietnam Pro',sans-serif;cursor:pointer}
  body#royal-blue-app .monitor-latest-jump:hover {background:#fff1c9}
  /* a reading in the data table that was not accepted as VALID: still shown, but visibly set apart */
  body#royal-blue-app td.cell-flag {color:#9a6a00;font-style:italic;text-decoration:underline dotted #c9a24a;text-underline-offset:3px;cursor:help}
}
@layer readability {
  /* one light tile per level: "C1 · Chú ý ... ngay" on top, both limits on one line below; colour only in the code and a thin left edge */
  body#royal-blue-app .chart-threshold-note .th-rules {grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:8px!important}
  body#royal-blue-app .chart-threshold-note .th-rules li {grid-template-columns:auto 1fr auto!important;grid-template-areas:"code name hold" "cond cond cond"!important;gap:2px 8px!important;padding:8px 12px 9px!important;border:1px solid #e3ebf6!important;border-left:3px solid var(--lv)!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important}
  body#royal-blue-app .chart-threshold-note .th-rules li:hover {background:color-mix(in srgb,var(--lv) 6%,#fff)!important}
  body#royal-blue-app .chart-threshold-note .th-rules li b {font-size:12px!important;letter-spacing:0!important}
  body#royal-blue-app .chart-threshold-note .th-rules li .th-name {grid-area:name!important;font-size:12px!important;font-weight:600!important;color:#5d718a!important}
  body#royal-blue-app .chart-threshold-note .th-rules li .th-hold {grid-area:hold!important;padding:0!important;background:transparent!important;font-size:11px!important;font-weight:600!important;color:#8a9bb0!important}
  body#royal-blue-app .chart-threshold-note .th-rules li .th-cond {grid-area:cond!important;display:grid!important;gap:3px!important;margin:4px 0 0!important;white-space:normal!important}
  body#royal-blue-app .chart-threshold-note .th-rules li .th-lim {display:flex!important;align-items:baseline;gap:6px;padding:0!important;background:transparent!important;color:#133858!important;font:inherit!important;white-space:nowrap}
  body#royal-blue-app .chart-threshold-note .th-rules li .th-lim::before {content:"↓";flex:none;width:16px;text-align:center;font-weight:800;color:var(--lv)}
  body#royal-blue-app .chart-threshold-note .th-rules li .th-lim[data-dir="hi"]::before {content:"↑"}
  body#royal-blue-app .chart-threshold-note .th-rules li .th-lim em {font-style:normal;font-size:12px;font-weight:600;color:#5d718a}
  body#royal-blue-app .chart-threshold-note .th-rules li .th-lim strong {font-size:15px;font-weight:800}
  body#royal-blue-app .chart-threshold-note .th-rules li[data-on="false"] {opacity:.7}
}

/* ==== vn-datepicker.css ==== */
/* Date and time picker in Vietnamese format (vn-datepicker.js). The browser's own field is kept but hidden; the person sees a text box and a small calendar. */
@layer readability {
  body#royal-blue-app .vn-dt {position:relative;display:flex;align-items:center;width:100%;min-width:0}
  body#royal-blue-app .vn-dt input.vn-dt-text, body#royal-blue-app .vn-dt input.vn-dt-text.form-control, body#royal-blue-app .field .vn-dt input.vn-dt-text {width:100%;padding-left:10px!important;padding-right:30px!important;font-size:13.5px!important;letter-spacing:-.01em;font-variant-numeric:tabular-nums;text-overflow:clip}
  body#royal-blue-app .vn-dt .vn-dt-text[aria-invalid="true"] {border-color:#d4231a!important;box-shadow:0 0 0 3px rgba(212,35,26,.12)!important}
  body#royal-blue-app .vn-dt .vn-dt-native {position:absolute!important;inset:auto 0 0 auto!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;opacity:0!important;pointer-events:none!important}
  body#royal-blue-app .vn-dt-open {position:absolute;right:3px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:28px;height:30px;border:0;border-radius:9px;background:transparent;color:#4d6b8f;cursor:pointer}
  body#royal-blue-app .vn-dt-open:hover:not(:disabled) {background:#eaf1fb;color:#1a4fa0}
  body#royal-blue-app .vn-dt-open:disabled {opacity:.4;cursor:not-allowed}

  body#royal-blue-app .vn-dt-popup {position:fixed;z-index:13000;width:292px;max-width:calc(100vw - 16px);box-sizing:border-box;padding:12px;border:1px solid #d7e2f0;border-radius:14px;background:#fff;box-shadow:0 18px 44px rgba(18,53,95,.22);font-family:'Be Vietnam Pro',system-ui,sans-serif;color:#17324f}
  body#royal-blue-app .vn-dt-head {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
  body#royal-blue-app .vn-dt-head strong {font-size:14px;font-weight:700}
  body#royal-blue-app .vn-dt-nav {width:30px;height:30px;border:1px solid #d7e2f0;border-radius:9px;background:#f6f9fd;color:#27476e;font-size:18px;line-height:1;cursor:pointer}
  body#royal-blue-app .vn-dt-nav:hover {background:#eaf1fb}
  body#royal-blue-app .vn-dt-week, body#royal-blue-app .vn-dt-grid {display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
  body#royal-blue-app .vn-dt-week span {padding:4px 0;text-align:center;font-size:11.5px;font-weight:700;color:#6b819b}
  body#royal-blue-app .vn-dt-day {height:34px;border:0;border-radius:9px;background:transparent;color:#17324f;font:600 13px/1 'Be Vietnam Pro',system-ui,sans-serif;font-variant-numeric:tabular-nums;cursor:pointer}
  body#royal-blue-app .vn-dt-day:hover:not(:disabled) {background:#eaf1fb}
  body#royal-blue-app .vn-dt-day.today {box-shadow:inset 0 0 0 1.5px #8fb2e6}
  body#royal-blue-app .vn-dt-day.selected {background:#1a5fd0;color:#fff;box-shadow:none}
  body#royal-blue-app .vn-dt-day:disabled {color:#b4c0cf;cursor:not-allowed}
  body#royal-blue-app .vn-dt-time {display:flex;align-items:center;gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid #e6edf6}
  body#royal-blue-app .vn-dt-time span {margin-right:auto;font-size:12.5px;font-weight:700;color:#4d6b8f}
  body#royal-blue-app .vn-dt-time select {height:34px;min-width:54px;padding:0 8px;border:1px solid #d7e2f0;border-radius:9px;background:#fff;color:#17324f;font:600 13.5px/1 'Be Vietnam Pro',system-ui,sans-serif;font-variant-numeric:tabular-nums}
  body#royal-blue-app .vn-dt-foot {display:flex;gap:6px;margin-top:10px}
  body#royal-blue-app .vn-dt-foot button {flex:1;height:34px;border:1px solid #d7e2f0;border-radius:9px;background:#f6f9fd;color:#27476e;font:700 12.5px/1 'Be Vietnam Pro',system-ui,sans-serif;cursor:pointer}
  body#royal-blue-app .vn-dt-foot button:hover {background:#eaf1fb}
  body#royal-blue-app .vn-dt-foot button.primary {border-color:#1a5fd0;background:#1a5fd0;color:#fff}
  body#royal-blue-app .vn-dt-foot button.primary:hover {background:#1550b3}
  body#royal-blue-app .vn-dt-popup button:focus-visible, body#royal-blue-app .vn-dt-popup select:focus-visible {outline:2px solid #1a5fd0;outline-offset:2px}
}

/* ==== hover-feedback.css ==== */
/* Hover (and keyboard focus) feedback for everything that can be clicked, one family of effects:
   - the left menu and the top bar: a soft blue tint, a thin accent edge and the icon nudging forward;
   - buttons and chips: a small lift (buttons) or a blue tint (chips, tabs, filters);
   - cards: a lift with a deeper shadow and a blue edge; list rows: a tint and a sliding arrow;
   - table rows that open something: the row is tinted with an accent edge.
   Hover only where the device really hovers (no sticky hover on touch); motion only when the person has not asked for less. */
@layer readability {
  body#royal-blue-app {
    --hv-tint: #eef4ff;
    --hv-tint-strong: #e2edff;
    --hv-edge: #8fb2e6;
    --hv-blue: #0a4fd6;
    --hv-ring: rgba(26, 95, 208, .22);
    --hv-ease: .16s cubic-bezier(.2, .7, .3, 1);
  }

  /* ---------- left menu ---------- */
  body#royal-blue-app .sidebar .nav-item {position:relative;transition:background var(--hv-ease),color var(--hv-ease),transform var(--hv-ease),box-shadow var(--hv-ease)!important}
  body#royal-blue-app .sidebar .nav-item svg {transition:transform var(--hv-ease),color var(--hv-ease)}
  body#royal-blue-app .sidebar .nav-item::after {content:"";position:absolute;left:0;top:22%;bottom:22%;width:3px;border-radius:0 3px 3px 0;background:var(--hv-edge);opacity:0;transform:scaleY(.4);transition:opacity var(--hv-ease),transform var(--hv-ease)}
  body#royal-blue-app .sidebar .nav-item.active::after {background:#0862ff;opacity:1;transform:none}
  body#royal-blue-app .sidebar .brand {transition:background var(--hv-ease),box-shadow var(--hv-ease)}
  body#royal-blue-app .sidebar .rb-support > summary {transition:background var(--hv-ease),color var(--hv-ease)}
  body#royal-blue-app .rb-support-chevron {transition:transform var(--hv-ease),color var(--hv-ease)}

  /* ---------- top bar ---------- */
  body#royal-blue-app .icon-button,
  body#royal-blue-app .account,
  body#royal-blue-app .rb-top-export,
  body#royal-blue-app .live-update-notice,
  body#royal-blue-app .rb-fresh-pill {transition:background var(--hv-ease),color var(--hv-ease),box-shadow var(--hv-ease),transform var(--hv-ease),border-color var(--hv-ease)}
  body#royal-blue-app .rb-crumb {position:relative;transition:color var(--hv-ease)}
  body#royal-blue-app .rb-crumb::after {content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;border-radius:2px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform var(--hv-ease)}

  /* ---------- buttons, chips, tabs, filters ---------- */
  body#royal-blue-app .btn,
  body#royal-blue-app .tab,
  body#royal-blue-app .segments button,
  body#royal-blue-app .th-chip,
  body#royal-blue-app .rp-chip,
  body#royal-blue-app .hc-chip,
  body#royal-blue-app .ap-filter,
  body#royal-blue-app .op-filter,
  body#royal-blue-app .qx-filter,
  body#royal-blue-app .pg-btn {transition:background var(--hv-ease),color var(--hv-ease),border-color var(--hv-ease),box-shadow var(--hv-ease),transform var(--hv-ease)}

  /* ---------- cards and rows ---------- */
  body#royal-blue-app .ap-card,
  body#royal-blue-app .op-card,
  body#royal-blue-app .rp-pcard,
  body#royal-blue-app .hc-card,
  body#royal-blue-app .hc-task,
  body#royal-blue-app .rb-kpi-link,
  body#royal-blue-app .ob-station-tab,
  body#royal-blue-app .ir-reference-banner {transition:transform var(--hv-ease),box-shadow var(--hv-ease),border-color var(--hv-ease),background var(--hv-ease)}
  body#royal-blue-app .monitor-reading-trigger,
  body#royal-blue-app .rb-data-parameter,
  body#royal-blue-app .river-station,
  body#royal-blue-app .admin-nav-item,
  body#royal-blue-app summary {transition:background var(--hv-ease),color var(--hv-ease),box-shadow var(--hv-ease)}
  body#royal-blue-app .monitor-reading-trigger > svg:last-child,
  body#royal-blue-app .td-go svg,
  body#royal-blue-app td.ap-go svg {transition:transform var(--hv-ease)}
  body#royal-blue-app tr.click-row > td {transition:background var(--hv-ease)}
  body#royal-blue-app tr.click-row {cursor:pointer}

  @media (hover:hover) {
    /* left menu */
    body#royal-blue-app .sidebar .nav-item:not(.active):hover,
    body#royal-blue-app .sidebar .nav-item:not(.active):focus-visible,
    body#royal-blue-app #navigation .nav-item:not(.active):hover,
    body#royal-blue-app #navigation .nav-item:not(.active):focus-visible {background:var(--hv-tint)!important;color:var(--hv-blue)!important;transform:translateX(3px)}
    body#royal-blue-app .sidebar .nav-item:not(.active):hover > *:not(.ob-nav-count):not(svg),
    body#royal-blue-app #navigation .nav-item:not(.active):hover > *:not(.ob-nav-count):not(svg) {color:var(--hv-blue)!important}
    body#royal-blue-app .sidebar .nav-item:not(.active):hover svg,
    body#royal-blue-app #navigation .nav-item:not(.active):hover svg {color:var(--hv-blue)!important;filter:saturate(1.2)}
    body#royal-blue-app .sidebar .nav-item:not(.active):hover::after,
    body#royal-blue-app .sidebar .nav-item:not(.active):focus-visible::after {opacity:1;transform:none}
    body#royal-blue-app .sidebar .nav-item:hover svg,
    body#royal-blue-app .sidebar .nav-item:focus-visible svg {transform:scale(1.14)}
    body#royal-blue-app .sidebar .nav-item.active:hover {background:var(--hv-tint-strong)!important;box-shadow:0 4px 12px rgba(10,79,214,.12)}
    body#royal-blue-app .sidebar .brand:hover {background:var(--hv-tint)!important;border-radius:10px}
    body#royal-blue-app .sidebar .rb-support > summary:hover {background:var(--hv-tint)!important;color:var(--hv-blue)!important}
    body#royal-blue-app .sidebar .rb-support > summary:hover .rb-support-chevron {color:var(--hv-blue)}

    /* top bar */
    body#royal-blue-app .icon-button:not(:disabled):hover {background:var(--hv-tint-strong)!important;color:var(--hv-blue)!important;transform:translateY(-1px);box-shadow:0 5px 12px rgba(10,79,214,.14)}
    body#royal-blue-app .account:hover {background:var(--hv-tint)!important;box-shadow:0 0 0 1px #cfe0fb}
    body#royal-blue-app .account:hover .account-chevron {transform:translateY(1px)}
    body#royal-blue-app .rb-top-export:hover {transform:translateY(-1px);box-shadow:0 8px 18px rgba(10,79,214,.28)!important;filter:brightness(1.06)}
    body#royal-blue-app .live-update-notice:hover,
    body#royal-blue-app .rb-fresh-pill:hover {transform:translateY(-1px);box-shadow:0 5px 12px rgba(10,79,214,.16)}
    body#royal-blue-app a.rb-crumb:hover {color:var(--hv-blue)!important}
    body#royal-blue-app a.rb-crumb:hover::after {transform:scaleX(1)}

    /* buttons */
    body#royal-blue-app .btn:not(:disabled):not([aria-disabled="true"]):hover {transform:translateY(-1px);box-shadow:0 7px 16px rgba(10,79,214,.18)!important}
    body#royal-blue-app .btn:not(.secondary):not(.ghost):not(:disabled):hover {filter:brightness(1.07)}
    body#royal-blue-app .btn.secondary:not(:disabled):hover {background:var(--hv-tint)!important;border-color:#9dbcf3!important;color:var(--hv-blue)!important}
    body#royal-blue-app .btn.ghost:not(:disabled):hover {background:var(--hv-tint)!important;color:var(--hv-blue)!important}
    body#royal-blue-app .btn:not(:disabled):active {transform:translateY(0) scale(.98);box-shadow:none!important}

    /* chips, tabs, filters (the selected one keeps its own look) */
    body#royal-blue-app .tab:not(.active):hover,
    body#royal-blue-app .segments button:not(.active):hover,
    body#royal-blue-app .th-chip:not(.active):hover,
    body#royal-blue-app .rp-chip:not(.active):not([aria-pressed="true"]):hover,
    body#royal-blue-app .hc-chip:not(.active):hover,
    body#royal-blue-app .ap-filter:not(.active):not([aria-pressed="true"]):hover,
    body#royal-blue-app .op-filter:not(.active):not([aria-pressed="true"]):hover,
    body#royal-blue-app .qx-filter:not(.active):not([aria-pressed="true"]):hover,
    body#royal-blue-app .pg-btn:not(.is-current):not(:disabled):hover {background:var(--hv-tint)!important;border-color:#b7d0ff!important;color:var(--hv-blue)!important}
    body#royal-blue-app .tab:not(.active):hover {box-shadow:inset 0 -2px 0 #b7d0ff}

    /* cards: lift, deeper shadow, blue edge */
    body#royal-blue-app .ap-card:hover,
    body#royal-blue-app .op-card:hover,
    body#royal-blue-app .rp-pcard:hover,
    body#royal-blue-app .hc-card:hover,
    body#royal-blue-app .hc-task:hover,
    body#royal-blue-app .rb-kpi-link:hover,
    body#royal-blue-app .ob-station-tab:hover,
    body#royal-blue-app .ir-reference-banner:hover {transform:translateY(-2px)!important;box-shadow:0 12px 26px rgba(18,53,95,.14)!important;border-color:#b7d0ff!important}
    body#royal-blue-app .hc-card:hover .hc-card-icon {transform:scale(1.06)}

    /* list rows: a tint and the arrow moving forward */
    body#royal-blue-app .monitor-reading-trigger:hover,
    body#royal-blue-app .rb-data-parameter:hover,
    body#royal-blue-app .river-station:hover:not(.active) {background:var(--hv-tint)!important;box-shadow:inset 3px 0 0 var(--hv-edge)}
    body#royal-blue-app .monitor-reading-trigger:hover > svg:last-child {transform:translateX(4px);color:var(--hv-blue)}
    body#royal-blue-app summary:hover {background:var(--hv-tint);}
    body#royal-blue-app .admin-nav-item:not(.is-active):hover {transform:translateX(2px);box-shadow:inset 3px 0 0 var(--hv-edge)}

    /* table rows that open something */
    body#royal-blue-app tr.click-row:hover > td {background:var(--hv-tint)!important}
    body#royal-blue-app tr.click-row:hover > td:first-child {box-shadow:inset 3px 0 0 var(--hv-edge)}
    body#royal-blue-app tr.click-row:hover td.ap-go svg,
    body#royal-blue-app tr.click-row:hover .td-go svg {transform:translateX(4px);color:var(--hv-blue)}

    /* text links */
    body#royal-blue-app #content a:not([class]):hover,
    body#royal-blue-app .action-link:hover,
    body#royal-blue-app .rp-link:hover,
    body#royal-blue-app .admin-text-button:hover {color:var(--hv-blue)!important;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}

    /* map markers and pills */
    body#royal-blue-app .geographic-marker-wrap .map-pin-label {transition:transform var(--hv-ease),box-shadow var(--hv-ease)}
    body#royal-blue-app .geographic-marker-wrap:hover .map-pin-label {transform:translateY(-1px) scale(1.05);box-shadow:0 6px 14px rgba(18,53,95,.22)}
    body#royal-blue-app .geographic-marker-wrap:hover .beacon-core {transform:scale(1.18)}
    body#royal-blue-app .map-alert-link:hover,
    body#royal-blue-app .ob-context-link:hover {color:var(--hv-blue)!important;text-decoration:underline;text-underline-offset:4px}
  }

  /* keyboard focus gets the same cue as the pointer, plus a visible ring */
  body#royal-blue-app .sidebar .nav-item:focus-visible,
  body#royal-blue-app .icon-button:focus-visible,
  body#royal-blue-app .btn:focus-visible,
  body#royal-blue-app .tab:focus-visible,
  body#royal-blue-app .ap-card:focus-visible,
  body#royal-blue-app .op-card:focus-visible,
  body#royal-blue-app .rp-pcard:focus-visible,
  body#royal-blue-app .hc-card:focus-visible,
  body#royal-blue-app tr.click-row:focus-visible {outline:3px solid var(--hv-ring)!important;outline-offset:2px}

  @media (prefers-reduced-motion:reduce) {
    body#royal-blue-app .sidebar .nav-item,
    body#royal-blue-app .sidebar .nav-item *,
    body#royal-blue-app .btn,
    body#royal-blue-app .icon-button,
    body#royal-blue-app .ap-card,
    body#royal-blue-app .op-card,
    body#royal-blue-app .rp-pcard,
    body#royal-blue-app .hc-card,
    body#royal-blue-app .hc-task,
    body#royal-blue-app .rb-kpi-link,
    body#royal-blue-app .ob-station-tab {transition:none!important;transform:none!important}
  }
}

/* ==== account-form.css ==== */
/* The account dialog (edit and create), see account-form.js: header with who the account is, cards, sticky footer. */
@layer readability {
  /* ---------- the dialog: header and footer stay, only the middle scrolls; the standard title bar becomes the close button ---------- */
  body#royal-blue-app #modal-root .modal:has(.acf) {display:flex!important;flex-direction:column;position:relative;width:min(780px,100%)!important;max-width:none!important;max-height:min(900px,calc(100vh - 40px))!important;padding:0!important;overflow:hidden!important;border:1px solid #d6e2f4!important;border-radius:20px!important;background:#fff;box-shadow:0 30px 80px rgba(7,24,41,.38)}
  @supports (height:1dvh) {body#royal-blue-app #modal-root .modal:has(.acf) {max-height:min(900px,calc(100dvh - 40px))!important}}
  body#royal-blue-app #modal-root .modal:has(.acf) .modal-title {position:absolute;top:14px;right:14px;z-index:6;margin:0!important}
  body#royal-blue-app #modal-root .modal:has(.acf) .modal-title h2 {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  body#royal-blue-app #modal-root .modal:has(.acf) .modal-title .icon-button {display:grid;place-items:center;width:38px;height:38px;border:1px solid #d6e2f4;border-radius:50%;background:#fff;color:#4d6584;box-shadow:0 1px 3px rgba(16,42,86,.12)}
  body#royal-blue-app #modal-root .modal:has(.acf) .modal-title .icon-button:hover {background:#eef4ff;color:#12335d}
  body#royal-blue-app .acf {display:flex;flex-direction:column;flex:1 1 auto;min-height:0;min-width:0;margin:0}
  body#royal-blue-app .acf [hidden] {display:none!important}

  /* ---------- header ---------- */
  body#royal-blue-app .acf-head {display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px 18px;align-items:center;padding:22px 66px 18px 24px;border-bottom:1px solid #e3ebf7;background:radial-gradient(circle at 100% 0,rgba(37,99,235,.09),transparent 55%),linear-gradient(180deg,#f2f7ff 0%,#fff 100%)}
  body#royal-blue-app .acf-avatar {display:grid;place-items:center;width:62px;height:62px;border-radius:50%;color:#fff;font-size:21px!important;font-weight:700;letter-spacing:.02em;background:linear-gradient(145deg,#2f7bff,#175adb);box-shadow:0 8px 18px rgba(23,90,219,.28),inset 0 0 0 3px rgba(255,255,255,.4)}
  body#royal-blue-app .acf-avatar[data-tone="purple"] {background:linear-gradient(145deg,#8a5cf0,#5a2fc2);box-shadow:0 8px 18px rgba(90,47,194,.28),inset 0 0 0 3px rgba(255,255,255,.4)}
  body#royal-blue-app .acf-avatar[data-tone="teal"] {background:linear-gradient(145deg,#1cc2ae,#0b8f87);box-shadow:0 8px 18px rgba(11,143,135,.28),inset 0 0 0 3px rgba(255,255,255,.4)}
  body#royal-blue-app .acf-avatar[data-tone="slate"] {background:linear-gradient(145deg,#8394ad,#55657d);box-shadow:0 8px 18px rgba(85,101,125,.26),inset 0 0 0 3px rgba(255,255,255,.4)}
  body#royal-blue-app .acf-who {display:grid;gap:4px;min-width:0}
  body#royal-blue-app .acf-name {margin:0;font-size:21px!important;line-height:1.3;font-weight:800;color:#0e2a4d;overflow-wrap:anywhere}
  body#royal-blue-app .acf-handle {display:flex;flex-wrap:wrap;align-items:center;margin:0;color:#52698a;font-size:14px!important;overflow-wrap:anywhere}
  body#royal-blue-app .acf-handle:not(:has(:not(:empty))) {display:none}
  body#royal-blue-app .acf-handle > span:not(:empty) + span:not(:empty)::before {content:"·";margin:0 8px;color:#9db0c9}
  body#royal-blue-app .acf-chips {display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 0}
  body#royal-blue-app .acf-chip {display:inline-flex;align-items:center;gap:6px;padding:3px 11px 3px 9px;border:1px solid #d3e0f4;border-radius:999px;background:#fff;color:#35517a;font-size:12.5px!important;font-weight:600;line-height:1.5;white-space:nowrap}
  body#royal-blue-app .acf-chip svg {flex:none}
  body#royal-blue-app .acf-chip[data-tone="purple"] {border-color:#dccffa;background:#f4efff;color:#5a2fc2}
  body#royal-blue-app .acf-chip[data-tone="blue"] {border-color:#cfe0ff;background:#eef4ff;color:#175adb}
  body#royal-blue-app .acf-chip[data-tone="teal"] {border-color:#bfeae4;background:#e9faf7;color:#0b7a73}
  body#royal-blue-app .acf-chip[data-tone="slate"] {border-color:#d8e0ec;background:#f1f4f9;color:#4a5d78}
  body#royal-blue-app .acf-chip[data-tone="self"] {border-color:#ffe2b0;background:#fff6e5;color:#9a5b00}
  body#royal-blue-app .acf-chip[data-state="warn"] {border-color:#ffe2b0;background:#fff6e5;color:#9a5b00}
  body#royal-blue-app .acf-chip[data-state="on"] {border-color:#bfe7d0;background:#eaf8f0;color:#17664f}
  body#royal-blue-app .acf-chip[data-state="off"] {border-color:#f1c6c1;background:#fff1ef;color:#a3281f}
  body#royal-blue-app .acf-dot {width:8px;height:8px;border-radius:50%;background:#8aa0bd}
  body#royal-blue-app .acf-chip[data-state="on"] .acf-dot {background:#1fa971;box-shadow:0 0 0 3px rgba(31,169,113,.2)}
  body#royal-blue-app .acf-chip[data-state="off"] .acf-dot {background:#d64545;box-shadow:0 0 0 3px rgba(214,69,69,.18)}
  body#royal-blue-app .acf-meta {display:grid;gap:8px;margin:0;align-self:end;text-align:right}
  body#royal-blue-app .acf-meta dt {display:flex;align-items:center;justify-content:flex-end;gap:5px;margin:0;color:#7a8ca3;font-size:12px!important;font-weight:600}
  body#royal-blue-app .acf-meta dd {margin:1px 0 0;color:#133858;font-size:13.5px!important;font-weight:600}

  /* ---------- body: cards on a soft background ---------- */
  /* the soft shadows at the top and bottom edge appear only while there is more to scroll to */
  body#royal-blue-app .acf-body {display:grid;align-content:start;gap:14px;flex:1 1 auto;min-height:0;padding:18px 24px 22px;overflow:auto;overscroll-behavior:contain;background-color:#f4f7fc;background-image:linear-gradient(#f4f7fc 30%,rgba(244,247,252,0)),linear-gradient(rgba(244,247,252,0),#f4f7fc 70%),radial-gradient(farthest-side at 50% 0,rgba(16,42,86,.16),rgba(16,42,86,0)),radial-gradient(farthest-side at 50% 100%,rgba(16,42,86,.16),rgba(16,42,86,0));background-repeat:no-repeat;background-size:100% 28px,100% 28px,100% 9px,100% 9px;background-position:0 0,0 100%,0 0,0 100%;background-attachment:local,local,scroll,scroll}
  body#royal-blue-app .acf-banner {margin:0;padding:11px 14px;border:1px solid #f1c6c1;border-radius:12px;background:#fff3f2;color:#8f2a24;font-size:14px!important;font-weight:600;line-height:1.55}
  body#royal-blue-app .acf-card {min-width:0;padding:18px 20px 20px;border:1px solid #e0e8f4;border-radius:16px;background:#fff;box-shadow:0 1px 2px rgba(16,42,86,.05)}
  body#royal-blue-app .acf-card-title {display:flex;align-items:center;gap:10px;margin:0 0 14px;color:#12335d;font-size:15px!important;font-weight:700;line-height:1.4}
  body#royal-blue-app .acf-ico {display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:9px;background:#e8f0ff;color:#175adb}
  body#royal-blue-app .acf-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
  body#royal-blue-app .acf-wide {grid-column:1/-1}

  /* ---------- fields ---------- */
  body#royal-blue-app .acf-field {min-width:0}
  body#royal-blue-app .acf-field > label {display:block;margin:0 0 6px;color:#24446b;font-size:13px!important;font-weight:600;line-height:1.4}
  body#royal-blue-app .acf-field > label small {color:#7a8ca3;font-size:12.5px!important;font-weight:500}
  body#royal-blue-app .acf-req {color:#d64545}
  body#royal-blue-app .acf-input {position:relative;display:flex;align-items:center}
  body#royal-blue-app .acf-in-ico,body#royal-blue-app .acf-in-pre {position:absolute;left:13px;display:grid;place-items:center;color:#7a90ad;pointer-events:none}
  body#royal-blue-app .acf-in-pre {font-size:16px!important;font-weight:600;left:14px}
  body#royal-blue-app .acf-control {width:100%;min-width:0;box-sizing:border-box;min-height:46px;padding:10px 13px;border:1px solid #c9d7ec;border-radius:11px;background:#fff;color:#12335d;font:inherit;font-size:15px!important;line-height:1.4;transition:border-color .15s,box-shadow .15s,background .15s}
  body#royal-blue-app .acf-input .acf-control {padding-left:40px}
  body#royal-blue-app .acf-control::placeholder {color:#9aabc3}
  body#royal-blue-app .acf-control:hover {border-color:#9db8e3}
  body#royal-blue-app .acf-control:focus {outline:0;border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.16)}
  body#royal-blue-app .acf-control[aria-invalid="true"] {border-color:#d64545;background:#fffafa}
  body#royal-blue-app .acf-control[aria-invalid="true"]:focus {box-shadow:0 0 0 4px rgba(214,69,69,.14)}
  body#royal-blue-app .acf-hint {margin:6px 0 0;color:#6b7f9a;font-size:12.5px!important;line-height:1.5}
  body#royal-blue-app .acf-error {display:flex;align-items:flex-start;gap:6px;margin:6px 0 0;color:#b3261e;font-size:12.5px!important;font-weight:600;line-height:1.5}
  body#royal-blue-app .acf-error::before {content:"!";display:grid;place-items:center;flex:none;width:16px;height:16px;margin-top:1px;border-radius:50%;background:#d64545;color:#fff;font-size:11px;font-weight:800}
  body#royal-blue-app .acf-note {display:flex;align-items:flex-start;gap:9px;margin:14px 0 0;padding:10px 12px;border:1px solid #dbe7fb;border-radius:11px;background:#f3f8ff;color:#37557c;font-size:13px!important;line-height:1.55}
  body#royal-blue-app .acf-note svg {flex:none;margin-top:2px}
  body#royal-blue-app .acf-note[data-tone="warn"] {border-color:#ffe2b0;background:#fff8ea;color:#8a5200}
  body#royal-blue-app .acf-note[data-tone="error"] {border-color:#f1c6c1;background:#fff3f2;color:#a3281f;font-weight:600}

  /* ---------- role cards ---------- */
  body#royal-blue-app .acf-roles {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body#royal-blue-app .acf-role {--fg:#175adb;--bg:#e8f0ff;--soft:#f3f8ff;--ring:rgba(23,90,219,.16);position:relative;display:flex;align-items:flex-start;gap:12px;min-width:0;padding:14px 38px 14px 14px;border:1.5px solid #dbe6f5;border-radius:14px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
  body#royal-blue-app .acf-role[data-tone="purple"] {--fg:#5a2fc2;--bg:#f0e9ff;--soft:#f8f4ff;--ring:rgba(90,47,194,.16)}
  body#royal-blue-app .acf-role[data-tone="teal"] {--fg:#0b8f87;--bg:#def7f3;--soft:#f1fcfa;--ring:rgba(11,143,135,.16)}
  body#royal-blue-app .acf-role[data-tone="slate"] {--fg:#55657d;--bg:#eaeef4;--soft:#f6f8fb;--ring:rgba(85,101,125,.16)}
  body#royal-blue-app .acf-role:hover {border-color:var(--fg)}
  body#royal-blue-app .acf-role input {position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
  body#royal-blue-app .acf-role-ico {display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:var(--bg);color:var(--fg)}
  body#royal-blue-app .acf-role-text {display:grid;gap:3px;min-width:0}
  body#royal-blue-app .acf-role-text b {color:#12335d;font-size:14.5px!important;line-height:1.35}
  body#royal-blue-app .acf-role-text small {color:#5d7391;font-size:12.5px!important;line-height:1.5;white-space:normal}
  body#royal-blue-app .acf-role-check {position:absolute;top:11px;right:11px;display:none;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--fg);color:#fff}
  body#royal-blue-app .acf-role:has(input:checked) {border-color:var(--fg);background:var(--soft);box-shadow:0 0 0 3px var(--ring)}
  body#royal-blue-app .acf-role:has(input:checked) .acf-role-check {display:grid}
  body#royal-blue-app .acf-role:has(input:focus-visible) {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .acf-role:has(input:disabled) {opacity:.5;cursor:not-allowed}
  body#royal-blue-app .acf-role:has(input:disabled) input {cursor:not-allowed}

  /* ---------- switch ---------- */
  body#royal-blue-app .acf-switch {position:relative;display:flex;align-items:flex-start;gap:12px;cursor:pointer}
  body#royal-blue-app .acf-switch input {position:absolute;opacity:0;width:42px;height:24px;margin:0;cursor:pointer}
  body#royal-blue-app .acf-switch-ui {position:relative;flex:none;width:42px;height:24px;margin-top:1px;border-radius:999px;background:#bccbe0;transition:background .15s}
  body#royal-blue-app .acf-switch-ui::after {content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(7,24,41,.35);transition:transform .15s}
  body#royal-blue-app .acf-switch input:checked + .acf-switch-ui {background:#175adb}
  body#royal-blue-app .acf-switch input:checked + .acf-switch-ui::after {transform:translateX(18px)}
  body#royal-blue-app .acf-switch input:focus-visible + .acf-switch-ui {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .acf-switch input:disabled {cursor:not-allowed}
  body#royal-blue-app .acf-switch input:disabled + .acf-switch-ui {opacity:.55}
  body#royal-blue-app .acf-switch-text {display:grid;gap:2px;min-width:0}
  body#royal-blue-app .acf-switch-text b {color:#12335d;font-size:14.5px!important;line-height:1.4}
  body#royal-blue-app .acf-switch-text small {color:#6b7f9a;font-size:12.5px!important;line-height:1.5}

  /* ---------- stations ---------- */
  body#royal-blue-app .acf-stations {margin-top:14px;padding-top:14px;border-top:1px dashed #d8e3f3}
  body#royal-blue-app .acf-stations-bar {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;color:#506580;font-size:13px!important;font-weight:600}
  body#royal-blue-app .acf-link {margin-left:14px;padding:2px 0;border:0;background:none;color:#175adb;font:inherit;font-size:13px!important;font-weight:600;cursor:pointer}
  body#royal-blue-app .acf-link:hover {text-decoration:underline}
  body#royal-blue-app .acf-station-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
  body#royal-blue-app .acf-station {position:relative;display:flex;align-items:center;gap:9px;min-width:0;padding:9px 12px;border:1.5px solid #dbe6f5;border-radius:12px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s}
  body#royal-blue-app .acf-station::before {content:"";flex:none;width:18px;height:18px;border:1.5px solid #b3c3da;border-radius:50%;background:#fff center/12px no-repeat}
  body#royal-blue-app .acf-station input {position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
  body#royal-blue-app .acf-station > span {display:grid;min-width:0}
  body#royal-blue-app .acf-station b {color:#12335d;font-size:13.5px!important;line-height:1.35;overflow-wrap:anywhere}
  body#royal-blue-app .acf-station small {color:#7a8ca3;font-size:11.5px!important;letter-spacing:.02em}
  body#royal-blue-app .acf-station:hover {border-color:#8fb0e6}
  body#royal-blue-app .acf-station:has(input:checked) {border-color:#175adb;background:#f1f6ff}
  body#royal-blue-app .acf-station:has(input:checked)::before {border-color:#175adb;background-color:#175adb;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E")}
  body#royal-blue-app .acf-station:has(input:focus-visible) {outline:3px solid #aac8ff;outline-offset:2px}

  /* ---------- security: password tools ---------- */
  body#royal-blue-app .acf-pw-toggle {display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px;padding-top:16px;border-top:1px dashed #d8e3f3}
  body#royal-blue-app .acf-pw-toggle > span {display:grid;gap:2px;min-width:0}
  body#royal-blue-app .acf-pw-toggle b {color:#12335d;font-size:14.5px!important}
  body#royal-blue-app .acf-pw-toggle small {color:#6b7f9a;font-size:12.5px!important;line-height:1.5}
  body#royal-blue-app .acf-pw-toggle .btn {flex:none;white-space:nowrap}
  body#royal-blue-app .acf-pw {margin-top:14px}
  body#royal-blue-app .acf-card .acf-pw:first-child {margin-top:0}
  body#royal-blue-app .acf-pw-row {display:flex;flex-wrap:wrap;gap:8px}
  body#royal-blue-app .acf-pw-row .acf-control {flex:1 1 220px;width:auto}
  body#royal-blue-app .acf-mini {display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:46px;padding:0 14px;border:1px solid #c9d7ec;border-radius:11px;background:#f4f8ff;color:#1f4f9f;font:inherit;font-size:13px!important;font-weight:600;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s}
  body#royal-blue-app .acf-mini:hover {border-color:#8fb0e6;background:#eaf2ff}
  body#royal-blue-app .acf-mini:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .acf-pw .auth-meter {margin-top:10px}
  body#royal-blue-app .acf-meter-label {margin:6px 0 0;color:#6b7f9a;font-size:12.5px!important;line-height:1.5}

  /* ---------- footer ---------- */
  body#royal-blue-app .acf-foot {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:14px 24px;border-top:1px solid #e3ebf7;background:#fff}
  body#royal-blue-app .acf-state {margin:0;color:#6b7f9a;font-size:13px!important}
  body#royal-blue-app .acf-state[data-state="dirty"] {color:#a35a00;font-weight:700}
  body#royal-blue-app .acf-actions {display:flex;gap:10px;margin-left:auto}
  body#royal-blue-app .acf-actions .btn {min-height:44px;padding-inline:20px}
  body#royal-blue-app .acf-actions .btn:disabled {opacity:.5;cursor:not-allowed;box-shadow:none}
  body#royal-blue-app .acf-confirm {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;width:100%;padding:10px 14px;border:1px solid #f1c6c1;border-radius:12px;background:#fff3f2}
  body#royal-blue-app .acf-confirm p {margin:0;color:#8f2a24;font-size:14.5px!important;font-weight:700}
  body#royal-blue-app .acf-confirm div {display:flex;flex-wrap:wrap;gap:8px}
  body#royal-blue-app .acf-danger {background:#c0392b!important;border-color:#c0392b!important;color:#fff!important}

  /* ---------- a tablet or phone: one column, the footer buttons share the row ---------- */
  @media (max-width:640px) {
    body#royal-blue-app #modal-root .modal:has(.acf) {width:100%!important;max-height:calc(100vh - 20px)!important;border-radius:18px!important}
    @supports (height:1dvh) {body#royal-blue-app #modal-root .modal:has(.acf) {max-height:calc(100dvh - 20px)!important}}
    body#royal-blue-app .acf-head {grid-template-columns:auto minmax(0,1fr);padding:18px 58px 14px 16px;gap:8px 14px}
    body#royal-blue-app .acf-avatar {width:50px;height:50px;font-size:18px!important}
    body#royal-blue-app .acf-name {font-size:18px!important}
    body#royal-blue-app .acf-handle {flex-direction:column;align-items:flex-start}
    body#royal-blue-app .acf-handle > span:not(:empty) + span:not(:empty)::before {content:none}
    body#royal-blue-app .acf-meta {grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));text-align:left;align-self:auto}
    body#royal-blue-app .acf-meta dt {justify-content:flex-start}
    body#royal-blue-app .acf-body {padding:14px 14px 18px}
    body#royal-blue-app .acf-card {padding:16px 14px 18px}
    body#royal-blue-app .acf-grid,body#royal-blue-app .acf-roles {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .acf-pw-toggle {flex-direction:column;align-items:stretch}
    body#royal-blue-app .acf-pw-toggle .btn {justify-content:center}
    body#royal-blue-app .acf-foot {padding:12px 14px}
    body#royal-blue-app .acf-state {order:2;width:100%;text-align:center}
    body#royal-blue-app .acf-actions {order:1;width:100%}
    body#royal-blue-app .acf-actions .btn {flex:1;justify-content:center}
    body#royal-blue-app .acf-confirm div {width:100%}
    body#royal-blue-app .acf-confirm div .btn {flex:1}
  }
  /* a short screen (a phone held sideways): the header scrolls away with the cards, only the footer stays */
  @media (max-height:560px) {
    body#royal-blue-app #modal-root .modal:has(.acf) {display:block!important;overflow:auto!important;overscroll-behavior:contain}
    body#royal-blue-app .acf {display:block}
    body#royal-blue-app .acf-head {padding-top:14px;padding-bottom:12px}
    body#royal-blue-app .acf-body {overflow:visible;background-image:none}
    body#royal-blue-app .acf-foot {position:sticky;bottom:0;z-index:4;box-shadow:0 -6px 14px rgba(16,42,86,.08)}
  }
  /* a finger needs more room for the small links */
  @media (pointer:coarse) {
    body#royal-blue-app .acf-link {min-height:36px;padding:6px 4px}
    body#royal-blue-app .acf-mini {min-height:48px}
  }
  @media (prefers-reduced-motion:reduce) {
    body#royal-blue-app .acf-control,body#royal-blue-app .acf-role,body#royal-blue-app .acf-station,body#royal-blue-app .acf-switch-ui,body#royal-blue-app .acf-switch-ui::after,body#royal-blue-app .acf-mini {transition:none}
  }
}
/* roles an administrator added: amber */
@layer readability {
  body#royal-blue-app .acf-avatar[data-tone="amber"] {background:linear-gradient(145deg,#f0a63a,#c46d06);box-shadow:0 8px 18px rgba(196,109,6,.26),inset 0 0 0 3px rgba(255,255,255,.4)}
  body#royal-blue-app .acf-chip[data-tone="amber"] {border-color:#f6d9a8;background:#fff5e4;color:#9a5b00}
  body#royal-blue-app .acf-role[data-tone="amber"] {--fg:#b56a00;--bg:#fdeccc;--soft:#fffaf0;--ring:rgba(196,109,6,.16)}
}

/* ==== roles-admin.css ==== */
/* "Phân quyền vai trò" (Quản trị), see roles-admin.js: a matrix of functions and roles with a bar that knows whether anything changed. */
@layer readability {
  body#royal-blue-app .rpm {display:flex;flex-direction:column;gap:16px;padding:0;overflow:visible;container-type:inline-size;container-name:rpm}
  body#royal-blue-app .rpm [hidden] {display:none!important}

  /* ---------- intro ---------- */
  body#royal-blue-app .rpm-intro {display:flex;gap:14px;align-items:flex-start;padding:18px 22px;border-bottom:1px solid #e3ebf7;background:linear-gradient(135deg,#f4f8ff,#fff)}
  body#royal-blue-app .rpm-introicon {display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;background:#e8f0ff;color:#175adb}
  body#royal-blue-app .rpm-intro strong {display:block;color:#0e2a4d;font-size:17px!important}
  body#royal-blue-app .rpm-intro p {margin:5px 0 0;max-width:78ch;color:#42597a;font-size:14px!important;line-height:1.55}
  body#royal-blue-app .rpm-intro .rpm-when {color:#6b7f9b;font-size:13px!important}

  /* ---------- matrix ---------- */
  body#royal-blue-app .rpm-scroll {padding:0 22px;overflow-x:auto}
  body#royal-blue-app .rpm-table {display:grid;min-width:calc(260px + var(--rpm-cols, 4) * 118px)}
  body#royal-blue-app .rpm-head, body#royal-blue-app .rpm-row {display:grid;grid-template-columns:minmax(240px,1.7fr) repeat(var(--rpm-cols, 4),minmax(112px,1fr));align-items:stretch}
  body#royal-blue-app .rpm-head {position:sticky;top:0;z-index:3;background:#fff;border-bottom:2px solid #dbe6f6}
  body#royal-blue-app .rpm-corner {display:flex;align-items:flex-end;padding:12px 12px 12px 0;color:#6b7f9b;font-size:12.5px!important;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
  body#royal-blue-app .rpm-rolehead {display:grid;justify-items:center;align-content:start;gap:2px;padding:12px 8px;text-align:center}
  body#royal-blue-app .rpm-roleicon {display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:#fff;background:#175adb}
  body#royal-blue-app .rpm-rolehead[data-tone="purple"] .rpm-roleicon {background:linear-gradient(145deg,#8a5cf0,#5a2fc2)}
  body#royal-blue-app .rpm-rolehead[data-tone="blue"] .rpm-roleicon {background:linear-gradient(145deg,#3b82f6,#175adb)}
  body#royal-blue-app .rpm-rolehead[data-tone="teal"] .rpm-roleicon {background:linear-gradient(145deg,#1cc2ae,#0b8f87)}
  body#royal-blue-app .rpm-rolehead[data-tone="slate"] .rpm-roleicon {background:linear-gradient(145deg,#8394ad,#55657d)}
  body#royal-blue-app .rpm-rolehead strong {margin-top:4px;color:#0e2a4d;font-size:14px!important;line-height:1.25}
  body#royal-blue-app .rpm-rolehead small {color:#6b7f9b;font-size:12px!important}
  body#royal-blue-app .rpm-rolehead em {font-style:normal;color:#35517a;font-size:12px!important;font-weight:600}
  body#royal-blue-app .rpm-link {display:inline-flex;align-items:center;gap:4px;margin-top:3px;padding:2px 8px;border:1px solid #cfe0ff;border-radius:999px;background:#eef4ff;color:#175adb;font-size:11.5px!important;font-weight:600;cursor:pointer}
  body#royal-blue-app .rpm-link:hover {background:#dfeaff}

  body#royal-blue-app .rpm-grouptitle {margin-top:12px;padding:10px 12px;border-radius:10px;background:#f1f5fc}
  body#royal-blue-app .rpm-grouptitle h3 {margin:0;color:#133858;font-size:13.5px!important;font-weight:800;letter-spacing:.02em}
  body#royal-blue-app .rpm-row {border-bottom:1px solid #edf2fa}
  body#royal-blue-app .rpm-row:hover {background:#f8fbff}
  body#royal-blue-app .rpm-label {display:grid;gap:2px;align-content:center;padding:11px 14px 11px 12px}
  body#royal-blue-app .rpm-label strong {color:#17304f;font-size:14px!important;font-weight:650;line-height:1.35}
  body#royal-blue-app .rpm-label small {color:#6b7f9b;font-size:12.5px!important;line-height:1.45}
  body#royal-blue-app .rpm-cell {position:relative;display:grid;place-items:center;padding:8px 6px}
  body#royal-blue-app .rpm-cell[data-role="admin"] {background:#faf7ff}
  body#royal-blue-app .rpm-cell[data-changed="true"] {background:#fff8e6;box-shadow:inset 0 0 0 1.5px #f0c46a;border-radius:10px}

  /* the switch: a real checkbox, so it works with the keyboard and screen readers */
  body#royal-blue-app .rpm-switch {display:inline-flex;align-items:center;gap:8px;cursor:pointer;min-height:36px}
  body#royal-blue-app .rpm-switch input {position:absolute;opacity:0;width:1px;height:1px}
  body#royal-blue-app .rpm-track {position:relative;flex:none;width:38px;height:22px;border-radius:999px;background:#c5d2e6;transition:background .15s}
  body#royal-blue-app .rpm-track::after {content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(15,35,70,.3);transition:transform .15s}
  body#royal-blue-app .rpm-switch input:checked + .rpm-track {background:#175adb}
  body#royal-blue-app .rpm-switch input:checked + .rpm-track::after {transform:translateX(16px)}
  body#royal-blue-app .rpm-switch input:focus-visible + .rpm-track {outline:3px solid #9ec0ff;outline-offset:2px}
  body#royal-blue-app .rpm-state {min-width:2.2em;color:#35517a;font-size:13px!important;font-weight:600}
  body#royal-blue-app .rpm-nondefault {position:absolute;top:7px;right:8px;width:8px;height:8px;border-radius:50%;background:#e59a1a;box-shadow:0 0 0 3px #fbe7bd}
  body#royal-blue-app .rpm-fixed {display:inline-flex;align-items:center;gap:5px;color:#17664f;font-size:13px!important;font-weight:600}
  body#royal-blue-app .rpm-fixed svg:last-child {color:#8aa0bd}
  body#royal-blue-app .rpm-fixed-no {color:#8394ad}

  /* ---------- bar ---------- */
  body#royal-blue-app .rpm-bar {position:sticky;bottom:0;z-index:4;display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:space-between;padding:12px 22px;border-top:1px solid #dbe6f6;background:rgba(255,255,255,.96);backdrop-filter:blur(6px);border-radius:0 0 14px 14px}
  body#royal-blue-app .rpm-barinfo {display:inline-flex;align-items:center;gap:9px;color:#35517a;font-weight:600;font-size:14px!important}
  body#royal-blue-app .rpm-barinfo i {width:9px;height:9px;border-radius:50%;background:#9db0c9}
  body#royal-blue-app .rpm-barinfo[data-state="dirty"] {color:#7a4a00}
  body#royal-blue-app .rpm-barinfo[data-state="dirty"] i {background:#e59a1a;box-shadow:0 0 0 3px #fbe7bd}
  body#royal-blue-app .rpm-baractions {display:flex;flex-wrap:wrap;gap:8px;align-items:center}
  body#royal-blue-app .rpm-baractions .btn {display:inline-flex;align-items:center;gap:6px}

  /* ---------- confirmation dialogs ---------- */
  body#royal-blue-app .rpm-confirm p {margin:0 0 10px;line-height:1.55}
  body#royal-blue-app .rpm-changes {display:grid;gap:6px;margin:0 0 12px;padding:0;list-style:none;max-height:320px;overflow:auto}
  body#royal-blue-app .rpm-changes li {display:flex;gap:9px;align-items:flex-start;padding:8px 11px;border:1px solid #e3ebf7;border-radius:10px;background:#f8fbff;font-size:13.5px!important}
  body#royal-blue-app .rpm-changes li[data-to="true"] svg {color:#1fa971}
  body#royal-blue-app .rpm-changes li[data-to="false"] svg {color:#d64545}
  body#royal-blue-app .rpm-changes svg {flex:none;margin-top:2px}
  body#royal-blue-app .rpm-warn {display:flex;gap:9px;align-items:flex-start;padding:10px 12px;border:1px solid #ffe2b0;border-radius:10px;background:#fff6e5;color:#7a4a00;font-size:13.5px!important}
  body#royal-blue-app .rpm-warn svg {flex:none;margin-top:2px}

  /* ---------- narrow: every row becomes a card, the four roles sit in a row under the label ---------- */
  @container rpm (max-width: 760px) {
    body#royal-blue-app .rpm-scroll {padding:0 14px;overflow-x:visible}
    body#royal-blue-app .rpm-table {min-width:0}
    body#royal-blue-app .rpm-head {position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border-bottom:0;padding-top:12px}
    body#royal-blue-app .rpm-corner {display:none}
    body#royal-blue-app .rpm-rolehead {grid-template-columns:auto minmax(0,1fr);justify-items:start;text-align:left;column-gap:10px;padding:8px 10px;border:1px solid #e3ebf7;border-radius:12px}
    body#royal-blue-app .rpm-roleicon {grid-row:1 / span 3}
    body#royal-blue-app .rpm-rolehead strong {margin:0}
    body#royal-blue-app .rpm-row {grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 8px;padding:10px 0}
    body#royal-blue-app .rpm-label {grid-column:1 / -1;padding:2px 4px 6px}
    body#royal-blue-app .rpm-cell {place-items:center start;padding:6px 10px;border-radius:10px;background:#f8fbff}
    body#royal-blue-app .rpm-cell[data-role="admin"] {background:#faf7ff}
    body#royal-blue-app .rpm-cell::after {content:attr(data-label);display:block;order:-1;font-size:11.5px;font-weight:700;color:#6b7f9b;letter-spacing:.03em;text-transform:uppercase}
    body#royal-blue-app .rpm-bar {padding:10px 14px}
    body#royal-blue-app .rpm-baractions {width:100%}
    body#royal-blue-app .rpm-baractions .btn {flex:1 1 auto;justify-content:center}
  }
  @media (prefers-reduced-motion: reduce) {
    body#royal-blue-app .rpm-track, body#royal-blue-app .rpm-track::after {transition:none}
  }
}
/* added roles: amber column head, its badge and the Sửa / Xóa links; the "Thêm vai trò" button in the intro */
@layer readability {
  body#royal-blue-app .rpm-rolehead[data-tone="amber"] .rpm-roleicon {background:linear-gradient(145deg,#f0a63a,#c46d06)}
  body#royal-blue-app .rpm-rolebadge {display:inline-block;margin:2px 0;padding:1px 8px;border-radius:999px;background:#fff5e4;color:#9a5b00;font-size:11px !important;font-weight:700}
  body#royal-blue-app .rpm-roleactions {display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin-top:3px}
  body#royal-blue-app .rpm-danger {border-color:#f3c9c4 !important;background:#fff3f1 !important;color:#b42318 !important}
  body#royal-blue-app .rpm-intro {flex-wrap:wrap}
  body#royal-blue-app .rpm-intro > div {flex:1 1 320px}
  body#royal-blue-app .rpm-add {flex:none;display:inline-flex;align-items:center;gap:6px;align-self:center}
  body#royal-blue-app .rpm-role-form .admin-field-help {display:block;margin-top:4px;color:#5a6f8c;font-size:12.5px}
}

/* ==== admin-system.css ==== */
/* "Máy chủ & CSDL" (Quản trị, NetPlus only), see admin-system.js: meters for the server, tiles and a sortable table for the database. */
@layer readability {
  body#royal-blue-app .asys {display:grid;gap:16px;min-width:0}
  body#royal-blue-app .asys [hidden] {display:none!important}
  body#royal-blue-app .asys .sr-only {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  body#royal-blue-app .asys code {padding:1px 6px;border-radius:6px;background:#eef3fb;color:#1c3558;font-size:12.5px!important;word-break:break-all}

  /* ---------- head ---------- */
  body#royal-blue-app .asys-head {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:14px 18px;border:1px solid #cfe0ff;border-radius:14px;background:linear-gradient(135deg,#f3f8ff,#fff)}
  body#royal-blue-app .asys-head strong {display:block;color:#0e2a4d;font-size:17px!important}
  body#royal-blue-app .asys-head span {color:#42597a;font-size:13.5px!important}
  body#royal-blue-app .asys-tools {display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
  body#royal-blue-app .asys-auto {display:inline-flex;align-items:center;gap:7px;color:#22395a;font-size:13.5px!important;cursor:pointer}
  body#royal-blue-app .asys-updated {margin:0;color:#6b7f9b;font-size:12.5px!important}
  body#royal-blue-app .asys-note {margin:8px 0 0;max-width:90ch;color:#5a6f8c;font-size:12.5px!important;line-height:1.5}

  /* ---------- what needs attention (the same look as the overview) ---------- */
  body#royal-blue-app .asys-attention {padding:16px 18px!important}
  body#royal-blue-app .asys-attention-head {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px;margin-bottom:10px}
  body#royal-blue-app .asys-attention-head h3 {display:flex;align-items:center;gap:8px;margin:0;color:#0e2a4d;font-size:16px!important}
  body#royal-blue-app .asys-attention-head span {color:#6b7f9b;font-size:13px!important;font-weight:600}
  body#royal-blue-app .asys-checks {display:grid;gap:8px;margin:0;padding:0;list-style:none}
  body#royal-blue-app .asys-checks li {display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;padding:10px 12px;border:1px solid #e3ebf7;border-radius:10px;background:#f8fbff}
  body#royal-blue-app .asys-checks li[data-level="warn"] {border-color:#f3d7a1;background:#fffaf0}
  body#royal-blue-app .asys-dot {width:9px;height:9px;border-radius:50%;background:#8aa0bd}
  body#royal-blue-app .asys-checks li[data-level="warn"] .asys-dot {background:#e59a1a;box-shadow:0 0 0 3px #fbe7bd}
  body#royal-blue-app .asys-check-text {color:#22395a;font-size:14px!important;line-height:1.45}
  body#royal-blue-app .asys-ready {display:flex;align-items:center;gap:8px;margin:0;color:#17664f;font-weight:600}

  /* ---------- meters ---------- */
  body#royal-blue-app .asys-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}
  body#royal-blue-app .asys-card {display:flex;flex-direction:column;gap:10px;min-width:0;padding:16px;border:1px solid #e1e9f4;border-top:4px solid #9db0c9;border-radius:12px;background:#fff}
  body#royal-blue-app .asys-card[data-tone="good"] {border-top-color:#1fa971}
  body#royal-blue-app .asys-card[data-tone="warn"] {border-top-color:#e59a1a}
  body#royal-blue-app .asys-card[data-tone="bad"] {border-top-color:#e86b2a}
  body#royal-blue-app .asys-card header {display:flex;gap:10px;align-items:center}
  body#royal-blue-app .asys-card header > div {min-width:0;flex:1}
  body#royal-blue-app .asys-icon {display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:10px;background:#eef4ff;color:#175adb}
  body#royal-blue-app .asys-card h3 {margin:0;color:#0e2a4d;font-size:15px!important}
  body#royal-blue-app .asys-state {display:block;color:#35517a;font-size:13.5px!important;font-weight:700;overflow-wrap:anywhere}
  body#royal-blue-app .asys-badge {flex:none;padding:3px 9px;border-radius:999px;background:#eef2f8;color:#42597a;font-size:12px!important;font-weight:700}
  body#royal-blue-app .asys-badge[data-tone="good"] {background:#e3f6ec;color:#17664f}
  body#royal-blue-app .asys-badge[data-tone="warn"] {background:#fff1d6;color:#8a5300}
  body#royal-blue-app .asys-badge[data-tone="bad"] {background:#ffe6d9;color:#a8360c}
  body#royal-blue-app .asys-meter {height:9px;border-radius:999px;background:#e6edf6;overflow:hidden}
  body#royal-blue-app .asys-meter i {display:block;height:100%;border-radius:999px;background:#9db0c9;transition:width .4s ease}
  body#royal-blue-app .asys-meter[data-tone="good"] i {background:#1fa971}
  body#royal-blue-app .asys-meter[data-tone="warn"] i {background:#e59a1a}
  body#royal-blue-app .asys-meter[data-tone="bad"] i {background:#e86b2a}
  body#royal-blue-app .asys dl {display:grid;gap:6px;margin:0;align-content:start}
  body#royal-blue-app .asys-row {display:flex;justify-content:space-between;gap:12px;padding-bottom:6px;border-bottom:1px dashed #e6edf6;font-size:13px!important}
  body#royal-blue-app .asys-row dt {flex:none;max-width:48%;color:#6b7f9b}
  body#royal-blue-app .asys-row dd {min-width:0;margin:0;color:#17304f;font-weight:600;text-align:right;overflow-wrap:anywhere}
  body#royal-blue-app .asys-row dd[data-tone="good"] {color:#17664f}
  body#royal-blue-app .asys-row dd[data-tone="bad"] {color:#a8360c}
  body#royal-blue-app .asys-row dd[data-tone="warn"] {color:#8a5300}

  /* ---------- sections, tables ---------- */
  body#royal-blue-app .asys-section {display:block;min-width:0;padding:16px 18px!important}
  body#royal-blue-app .asys-section h3 {display:flex;align-items:center;gap:8px;margin:0 0 10px;color:#0e2a4d;font-size:16px!important}
  body#royal-blue-app .asys-section h4 {margin:14px 0 6px;color:#35517a;font-size:13px!important;letter-spacing:.03em;text-transform:uppercase}
  body#royal-blue-app .asys-section-head {display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 14px;margin-bottom:8px}
  body#royal-blue-app .asys-section-head h3 {margin:0}
  body#royal-blue-app .asys-section-head span {color:#6b7f9b;font-size:13px!important}
  body#royal-blue-app .asys-info {display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;align-items:start}
  body#royal-blue-app .asys-scroll {max-width:100%;overflow-x:auto}
  body#royal-blue-app .asys-table {width:100%;border-collapse:collapse;font-size:13.5px!important}
  body#royal-blue-app .asys-table th, body#royal-blue-app .asys-table td {padding:9px 12px;border-bottom:1px solid #e8eef7;text-align:left;vertical-align:middle;white-space:nowrap}
  body#royal-blue-app .asys-table thead th {position:sticky;top:0;background:#f4f8ff;color:#35517a;font-size:12.5px!important;font-weight:700;border-bottom:2px solid #dbe6f6}
  body#royal-blue-app .asys-table tbody th {color:#17304f;font-weight:600}
  body#royal-blue-app .asys-table .num {text-align:right;font-variant-numeric:tabular-nums}
  body#royal-blue-app .asys-table thead th {white-space:normal;line-height:1.25;vertical-align:bottom}
  /* business-pages.css tints every th of #content; the cells of these tables stay white and only the header is tinted */
  body#royal-blue-app .asys-table tbody th, body#royal-blue-app .asys-table tfoot th {background:#fff!important;color:#17304f!important;font-size:13.5px!important}
  body#royal-blue-app .asys-table thead th {background:#f4f8ff!important;font-size:12.5px!important}
  body#royal-blue-app .asys-table tbody td, body#royal-blue-app .asys-table tfoot td {font-size:13.5px!important;line-height:1.4!important}
  body#royal-blue-app .asys-tables tbody tr:not(.asys-detail):hover th {background:#f6f9ff!important}
  /* the name column stays in view while the many columns scroll sideways on a narrow screen */
  body#royal-blue-app .asys-tables thead th:first-child, body#royal-blue-app .asys-tables tbody tr:not(.asys-detail) th, body#royal-blue-app .asys-tables tfoot th {position:sticky;left:0;z-index:1;box-shadow:1px 0 0 #e8eef7}
  body#royal-blue-app .asys-tables thead th:first-child {z-index:2}
  body#royal-blue-app .asys-table tfoot th, body#royal-blue-app .asys-table tfoot td {border-top:2px solid #dbe6f6;border-bottom:0;color:#0e2a4d}
  body#royal-blue-app .asys-table thead button {display:inline-flex;align-items:center;gap:2px;padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:700;cursor:pointer}
  body#royal-blue-app .asys-table thead button:hover {color:#175adb}
  body#royal-blue-app .asys-tables tbody tr:not(.asys-detail):hover {background:#f6f9ff}
  body#royal-blue-app .asys-toggle {padding:0;border:0;background:none;color:#175adb;font:inherit;font-weight:700;text-align:left;cursor:pointer}
  body#royal-blue-app .asys-toggle:hover {text-decoration:underline}
  /* the "Tăng 7 ngày" cell: rows on top, megabytes under them */
  body#royal-blue-app .asys-growth small {display:block;color:#5a6f8c;font-size:12px!important;font-weight:400}
  body#royal-blue-app .asys-tag {margin-left:6px;padding:1px 7px;border-radius:999px;background:#eef2f8;color:#5a6f8c;font-size:11.5px!important;font-weight:600}
  body#royal-blue-app .asys-detail td {padding:12px 16px 16px;background:#f8fbff;white-space:normal}
  body#royal-blue-app .asys-detail-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:6px 24px}
  body#royal-blue-app .asys-detail-grid h4 {margin-top:0}
  body#royal-blue-app .asys-detail-grid ul {display:grid;gap:3px;margin:0;padding:0;list-style:none;font-size:13px!important}
  body#royal-blue-app .asys-detail-grid small {color:#6b7f9b;font-size:12px!important}
  body#royal-blue-app .asys-share {display:inline-flex;align-items:center;gap:8px;min-width:130px;font-variant-numeric:tabular-nums}
  body#royal-blue-app .asys-bar {flex:none;width:80px;height:7px;border-radius:999px;background:#e6edf6;overflow:hidden}
  body#royal-blue-app .asys-bar i {display:block;height:100%;border-radius:999px;background:#2f6fe4}
  body#royal-blue-app .asys-files {display:grid;gap:4px;margin:0;padding:0;list-style:none}
  body#royal-blue-app .asys-files li {display:flex;justify-content:space-between;gap:12px;font-size:13px!important}
  body#royal-blue-app .asys-files li span {flex:none;color:#17304f;font-weight:600}

  /* ---------- database tiles, filter, integrity ---------- */
  body#royal-blue-app .asys-tiles {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
  body#royal-blue-app .asys-tile {display:grid;gap:3px;min-width:0;padding:14px 16px;border:1px solid #e1e9f4;border-radius:12px;background:#fff}
  body#royal-blue-app .asys-tile span {color:#6b7f9b;font-size:12px!important;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
  body#royal-blue-app .asys-tile strong {color:#0e2a4d;font-size:22px!important;line-height:1.2;overflow-wrap:anywhere}
  body#royal-blue-app .asys-tile small {color:#5a6f8c;font-size:12.5px!important;line-height:1.4}
  body#royal-blue-app .asys-filter {display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin-bottom:10px}
  body#royal-blue-app .asys-search {flex:1 1 260px;max-width:420px}
  body#royal-blue-app .asys-search input {width:100%;min-height:38px;padding:0 12px;border:1px solid #cfdbec;border-radius:10px;background:#fff;color:#17304f;font-size:14px!important}
  body#royal-blue-app .asys-check-result {margin-top:10px}
  body#royal-blue-app .asys-check-line {display:flex;align-items:center;gap:8px;margin:0;font-size:13.5px!important;font-weight:600}
  body#royal-blue-app .asys-check-line[data-tone="good"] {color:#17664f}
  body#royal-blue-app .asys-check-line[data-tone="bad"] {color:#a8360c}
  body#royal-blue-app .asys-check-list {margin:8px 0 0;padding-left:20px;color:#7a2b0e;font-size:13px!important}

  @media (max-width:700px) {
    body#royal-blue-app .asys-head, body#royal-blue-app .asys-section, body#royal-blue-app .asys-attention {padding-left:14px!important;padding-right:14px!important}
    body#royal-blue-app .asys-row dt {max-width:44%}
    body#royal-blue-app .asys-tile strong {font-size:19px!important}
  }
}

/* ==== overview-layout.css ==== */
/* Overview: the map and the point panel lay themselves out by the width of their own area (container queries), not by the screen:
   beside the left menu a 1180 px window leaves only ~930 px, which is too little for two columns. Also the point heading. */
@layer readability {
  body#royal-blue-app .ob-overview {container:obv / inline-size}

  /* narrow work area (below 1000 px, a window under ~1250 px beside the menu): map on top, the point panel below, each at full width */
  @container obv (max-width:999px) {
    body#royal-blue-app .ob-overview .ob-workspace-columns {grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"map" "readings" "trend" "context"!important}
    body#royal-blue-app .ob-overview .ob-workspace-column {display:contents!important}
    body#royal-blue-app .ob-overview .ob-workspace-columns #ob-map {grid-area:map!important}
    body#royal-blue-app .ob-overview .ob-workspace-columns .station-instrument {grid-area:readings!important}
    body#royal-blue-app .ob-overview .ob-workspace-columns .analysis-trend {grid-area:trend!important}
    body#royal-blue-app .ob-overview .ob-workspace-columns .data-context {grid-area:context!important}
  }

  /* two columns (1000 px and more): both columns end on the same line. The map keeps its height; the last card of the shorter column takes up
     the difference; in the trend card the chart (or its empty message) is centred in the room that is left and the legend stays at the bottom */
  @container obv (min-width:1000px) {
    body#royal-blue-app .ob-overview .ob-workspace-columns {align-items:stretch!important}
    body#royal-blue-app .ob-overview .ob-workspace-column > :last-child {flex:1 1 auto!important}
    body#royal-blue-app .ob-overview .ob-spatial-column > #ob-map {flex:none!important}
    body#royal-blue-app .ob-overview .ob-workspace-column > .analysis-trend {display:flex!important;flex-direction:column!important}
    body#royal-blue-app .ob-overview .analysis-trend .chart-content {flex:1 1 auto!important;display:flex!important;flex-direction:column!important}
    body#royal-blue-app .ob-overview .analysis-trend .chart-content > :is(.chart-frame,.empty) {margin-top:auto!important;margin-bottom:auto!important}
  }

  /* the five base-map buttons (card content 650 px and more): the title keeps only the room its own text needs, so the buttons stay on its row
     at the right corner instead of dropping under it (title 166 + gap 14 + buttons and "fit" button 453 = 633 px at most). Narrower, the
     drop-down (responsive-system.css) takes their place on the same row */
  @container obmap (min-width:650px) {
    body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar .river-header {flex:1 1 auto!important}
  }

  /* a very narrow map card (a phone): the base-map control takes a row of its own under the title; wider, it sits at the right of the title row */
  @container obmap (max-width:339px) {
    body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar .gis-control-row {flex:1 1 100%!important}
    body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-toolbar {flex-wrap:wrap!important;row-gap:6px!important}
    body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-switch {flex-wrap:wrap!important;justify-content:flex-start!important;row-gap:4px!important}
  }

  /* ---------- the three cards: the arrow stands in the last row of the card, at its right end: the chip "5/5 đã cập nhật · 100%" (first card) or the
     caption (the others). So it is centred on that row at any card width and any height of the chip, and never closer than 12 px to the text,
     which wraps instead of running under it. From 701 px the three cards stand in a row; up to 700 px the row is transparent (display:contents)
     and the arrow keeps its old place (top right from 601 px, hidden below) ---------- */
  body#royal-blue-app .rb-three-summary .rb-kpi-row {display:contents}
  @media (min-width:701px) {
    body#royal-blue-app .ob-overview .rb-three-summary .rb-kpi-footer {padding-right:0!important}
    body#royal-blue-app .ob-overview .rb-three-summary .rb-kpi-row {display:flex;flex:1 1 auto;align-items:center;gap:12px;min-width:0}
    body#royal-blue-app .ob-overview .rb-three-summary .rb-kpi-row > :is(.rb-kpi-caption,.rb-fresh-pill) {flex:0 1 auto;min-width:0}
    body#royal-blue-app .ob-overview .rb-three-summary .rb-kpi-row > .rb-kpi-link {position:static!important;flex:none;margin-left:auto}
  }

  /* ---------- "Điểm quan trắc": where the card has a row of its own (tablets and laptops) the hint sits at the right corner of the heading row ---------- */
  @media (min-width:601px) and (max-width:1400px) {
    body#royal-blue-app .rb-overview-row .rb-station-navigation .ob-section-heading {flex-direction:row!important;align-items:center!important;justify-content:space-between!important;padding-right:0!important}
    body#royal-blue-app .rb-overview-row .rb-station-navigation .ob-section-heading .rb-station-hint {margin-left:auto;text-align:right;white-space:nowrap}
  }

  /* ---------- readings of the point: the status line and the "Giải thích" button run along the whole card, under both columns, so a status such as
     "Chưa đủ mẫu kiểm tra dao động" or "Thấp hơn giới hạn QCVN" is no longer squeezed into the right half and broken onto a second line ---------- */
  @media (min-width:601px) {
    body#royal-blue-app .ob-overview .station-instrument .instrument-reading .ir-comparison,
    body#royal-blue-app .ob-overview .station-instrument .instrument-reading .ir-comparison > .measurement-gauge {display:contents!important}
    body#royal-blue-app .ob-overview .station-instrument .instrument-reading > .ir-identity {grid-column:1!important;grid-row:1 / span 2!important}
    body#royal-blue-app .ob-overview .station-instrument .instrument-reading .measurement-gauge > :not(.ir-explain) {grid-column:2!important}
    body#royal-blue-app .ob-overview .station-instrument .instrument-reading .measurement-gauge > .ir-explain {grid-column:1 / -1!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin:0!important;min-width:0}
    body#royal-blue-app .ob-overview .station-instrument .instrument-reading .ir-explain .ir-reason {flex:1 1 auto!important;min-width:0;align-items:center!important}
    body#royal-blue-app .ob-overview .station-instrument .instrument-reading .ir-explain .ir-explain-btn {flex:none!important;margin:0!important}
  }
  /* a point panel of about 440-470 px (a 1280 window): less text. The "Tham chiếu QCVN" caption shrinks to "QCVN" */
  @container obv (min-width:1000px) and (max-width:1100px) {
    body#royal-blue-app .ob-overview .station-instrument .instrument-reading .ir-scale-heading > span:first-child {font-size:0!important}
    body#royal-blue-app .ob-overview .station-instrument .instrument-reading .ir-scale-heading > span:first-child::before {content:"QCVN";font-size:12px}
  }

  /* ---------- heading of the point panel: a mark, "Điểm đang xem" + source on a small line, the name big, the switch on the right ---------- */
  body#royal-blue-app .rb-station-heading {display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:0 14px;margin:0 0 14px!important;padding:0 0 14px;border-bottom:1px solid #e6edf6}
  body#royal-blue-app .rb-station-heading .rb-station-mark {display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:linear-gradient(145deg,#eaf2ff,#d9e8ff);color:#0a4fd6;box-shadow:inset 0 0 0 1px #cfe0fb}
  body#royal-blue-app .rb-station-heading .rb-station-mark svg {width:22px;height:22px}
  body#royal-blue-app .rb-station-heading .rb-station-title {min-width:0;display:grid;gap:3px}
  body#royal-blue-app .rb-station-heading .rb-station-eyebrow {display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#7a8ca3}
  body#royal-blue-app .rb-station-heading .rb-station-source {margin:0!important;padding:2px 9px!important;font-size:10.5px!important;font-weight:700;letter-spacing:0;text-transform:none;line-height:16px}
  body#royal-blue-app .rb-station-heading h2 {display:block!important;flex:none!important;min-width:0!important;margin:0!important;font-size:19px!important;line-height:1.25;font-weight:800!important;color:#0a2a52}
  body#royal-blue-app .rb-station-name {display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

  body#royal-blue-app .rb-station-heading .ob-change-station {margin:0!important;position:relative}
  body#royal-blue-app .rb-station-heading .ob-change-station > summary {display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 13px 0 15px;border:1px solid #bcd3f6;border-radius:999px;background:#fff;color:#0a4fd6;font:700 12.5px/1 'Be Vietnam Pro',sans-serif;cursor:pointer;list-style:none;white-space:nowrap;box-shadow:0 1px 2px rgba(10,79,214,.08);transition:background .16s,border-color .16s,box-shadow .16s,color .16s}
  body#royal-blue-app .rb-station-heading .ob-change-station > summary::-webkit-details-marker {display:none}
  body#royal-blue-app .rb-station-heading .ob-change-station > summary svg {flex:none;transition:transform .16s}
  body#royal-blue-app .rb-station-heading .ob-change-station > summary:hover {background:#eef4ff;border-color:#8fb2e6;box-shadow:0 5px 12px rgba(10,79,214,.16)}
  body#royal-blue-app .rb-station-heading .ob-change-station > summary:focus-visible {outline:3px solid rgba(26,95,208,.28);outline-offset:2px}
  body#royal-blue-app .rb-station-heading .ob-change-station[open] > summary {background:#0a4fd6;border-color:#0a4fd6;color:#fff;box-shadow:0 6px 14px rgba(10,79,214,.28)}
  body#royal-blue-app .rb-station-heading .ob-change-station[open] > summary svg {transform:rotate(180deg)}
  body#royal-blue-app .rb-station-heading .ob-change-station > .instrument-selector {top:calc(100% + 8px);border-radius:12px;box-shadow:0 16px 36px rgba(18,53,95,.2)}
  /* a very narrow panel: keep the name on one line and show only the chevron of the control */
  @container obv (max-width:420px) {
    body#royal-blue-app .rb-station-heading .ob-change-station > summary span {display:none}
    body#royal-blue-app .rb-station-heading .ob-change-station > summary {padding:0 11px}
    body#royal-blue-app .rb-station-heading {gap:0 10px}
    body#royal-blue-app .rb-station-heading .rb-station-mark {width:38px;height:38px;border-radius:11px}
    body#royal-blue-app .rb-station-heading h2 {font-size:17px!important}
  }

  /* browsers without container queries (iPadOS 15 and older): the same stacking, decided by the width of the screen (the work area is about 251 px less than the window) */
  @supports not (container-type:inline-size) {
    @media (min-width:1450px) {
      body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar .river-header {flex:1 1 auto!important}
    }
    @media (max-width:1250px) {
      body#royal-blue-app .ob-overview .ob-workspace-columns {grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"map" "readings" "trend" "context"!important}
      body#royal-blue-app .ob-overview .ob-workspace-column {display:contents!important}
      body#royal-blue-app .ob-overview .ob-workspace-columns #ob-map {grid-area:map!important}
      body#royal-blue-app .ob-overview .ob-workspace-columns .station-instrument {grid-area:readings!important}
      body#royal-blue-app .ob-overview .ob-workspace-columns .analysis-trend {grid-area:trend!important}
      body#royal-blue-app .ob-overview .ob-workspace-columns .data-context {grid-area:context!important}
    }
    @media (max-width:480px) {
      body#royal-blue-app .rb-station-heading .ob-change-station > summary span {display:none}
      body#royal-blue-app .rb-station-heading .ob-change-station > summary {padding:0 11px}
      body#royal-blue-app .rb-station-heading {gap:0 10px}
      body#royal-blue-app .rb-station-heading .rb-station-mark {width:38px;height:38px;border-radius:11px}
      body#royal-blue-app .rb-station-heading h2 {font-size:17px!important}
    }
  }
}

/* ==== weather.css ==== */
/* Weather strip (staff overview and public page) and the rain layer of the trend charts. Own prefix: wx-. */
@layer readability {
  body#royal-blue-app .wx-slot:empty {display:none}
  /* the strip lays itself out by the width of its own slot (container query), not by the screen: it is right in a narrow window, beside a sidebar, or on a 2K monitor */
  body#royal-blue-app .wx-slot {margin:0 0 14px;container:wx / inline-size}
  body#royal-blue-app .wx-slot.wx-public {margin:18px 0}

  body#royal-blue-app .wx-strip {display:grid;grid-template-columns:max-content minmax(220px,460px) minmax(362px,max-content);justify-content:space-between;gap:10px 28px;align-items:center;padding:12px 16px;border:1px solid #dbe7fb;border-radius:14px;background:linear-gradient(135deg,#fff 0%,#f4f8ff 100%);box-shadow:0 4px 14px rgba(23,58,120,.05)}
  body#royal-blue-app .wx-empty {display:block;padding:10px 14px;color:#7a8ca3;font-size:12.5px}

  body#royal-blue-app .wx-now {display:flex;align-items:center;gap:12px;min-width:0;justify-self:start}
  /* the drawings carry a wide transparent margin: draw them large and pull the margin back in */
  body#royal-blue-app .wx-icon {flex:none;margin:-14px;filter:drop-shadow(0 2px 3px rgba(52,86,140,.28))}
  body#royal-blue-app .wx-days .wx-icon {margin:-12px -12px -8px}
  body#royal-blue-app .wx-temp {display:block;font-size:28px;line-height:1.1;font-weight:800;color:#0a2a52;font-variant-numeric:tabular-nums}
  body#royal-blue-app .wx-temp small {margin-left:2px;font-size:14px;font-weight:700;color:#5a7290}
  body#royal-blue-app .wx-desc {display:block;font-size:12.5px;color:#4a6285;white-space:nowrap}
  body#royal-blue-app .wx-facts {display:grid;grid-template-columns:auto auto;gap:2px 14px;margin:0 0 0 6px;font-size:11.5px}
  body#royal-blue-app .wx-facts > div {display:flex;gap:6px;white-space:nowrap}
  body#royal-blue-app .wx-facts dt {color:#7a8ca3}
  body#royal-blue-app .wx-facts dd {margin:0;font-weight:700;color:#1d3a5f}
  body#royal-blue-app .wx-facts .wx-wide {grid-column:1/-1}

  body#royal-blue-app .wx-rain {min-width:0}
  body#royal-blue-app .wx-rain-head {display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin-bottom:3px}
  body#royal-blue-app .wx-rain-head span {font-size:11.5px;color:#62758d}
  body#royal-blue-app .wx-rain-head strong {font-size:13.5px;color:#0a4fd6;font-variant-numeric:tabular-nums}
  body#royal-blue-app .wx-rain-head em {margin-left:auto;font-style:normal;font-size:11px;color:#7a8ca3}
  body#royal-blue-app .wx-bars {display:block;width:100%;height:44px}
  body#royal-blue-app .wx-bar {fill:#5aa9ff;opacity:.5}
  body#royal-blue-app .wx-bar.is-likely {fill:#2f7df6;opacity:.9}
  body#royal-blue-app .wx-axis {display:flex;justify-content:space-between;font-size:10px;color:#8a9bb3}

  body#royal-blue-app .wx-days {display:grid;grid-template-columns:repeat(4,minmax(86px,108px));gap:6px;justify-self:end;margin:0;padding:0;list-style:none}
  body#royal-blue-app .wx-days li {display:grid;justify-items:center;gap:2px;padding:7px 4px;border-radius:10px;background:#f1f6fd;text-align:center}
  body#royal-blue-app .wx-days b {font-size:11.5px;font-weight:700;color:#4a6285;white-space:nowrap}
  body#royal-blue-app .wx-range {font-size:13px;font-weight:800;color:#133858;font-variant-numeric:tabular-nums}
  body#royal-blue-app .wx-range small {font-size:11.5px;font-weight:600;color:#7a8ca3}
  body#royal-blue-app .wx-mm {font-size:11.5px;font-weight:700;color:#2f6fd0;font-variant-numeric:tabular-nums;white-space:nowrap}
  body#royal-blue-app .wx-mm small {font-weight:500;color:#8a9bb3}

  body#royal-blue-app .wx-notes {grid-column:1/-1;contain:inline-size;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
  body#royal-blue-app .wx-note {display:inline-flex;align-items:center;gap:7px;padding:4px 11px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.4}
  body#royal-blue-app .wx-note i {flex:none;width:7px;height:7px;border-radius:50%;background:currentColor}
  body#royal-blue-app .wx-note.wx-watch {background:#fff6e0;color:#7a4d00}
  body#royal-blue-app .wx-note.wx-strong {background:#ffecec;color:#a3141f}
  body#royal-blue-app .wx-foot {grid-column:1/-1;contain:inline-size;margin:0;font-size:11px;line-height:1.5;color:#8a9bb3}
  body#royal-blue-app .wx-foot a {color:#5a7290}
  body#royal-blue-app .wx-old {margin-left:6px;color:#b4443b;font-weight:700}

  /* rain under the trend charts: soft bars at the bottom of the plot */
  body#royal-blue-app .wx-chart-bar {fill:#5aa9ff;opacity:.34}
  body#royal-blue-app .chart-legend .wx-key {display:inline-flex;align-items:center;gap:6px}
  body#royal-blue-app .chart-legend .wx-key i {display:inline-block!important;flex:none;width:10px!important;height:10px!important;border-radius:2px!important;background:#5aa9ff!important;opacity:.6}

  /* medium slot (under about 1010 px): the day cards drop under the first two blocks and share the row */
  @container wx (max-width:1010px) {
    body#royal-blue-app .wx-strip {grid-template-columns:auto minmax(0,1fr);justify-content:stretch}
    body#royal-blue-app .wx-days {grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr));justify-self:stretch}
  }
  /* narrow slot: one column */
  @container wx (max-width:600px) {
    body#royal-blue-app .wx-strip {grid-template-columns:minmax(0,1fr);padding:11px 12px;gap:10px}
    body#royal-blue-app .wx-facts {margin-left:0}
    body#royal-blue-app .wx-now {flex-wrap:wrap}
    body#royal-blue-app .wx-days li {padding:6px 2px}
  }
}

/* ==== forecast.css ==== */
/* Dự báo page (forecast-page.js). Own prefix: fc-. Same surfaces, type and colours as the Cảnh báo page (alerts-page.css):
   cards #dbe7fb / radius 12, labels #62758d, ink #133858, table head #f3f8ff, primary #175adb. Parameter colours come in as --pc
   (chartColor), level colours through data-alert-level (--status, --status-soft, --status-line, --status-ink in color-system.css). */
@layer readability {
  body#royal-blue-app .fc-page {display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0;color:#133858}
  body#royal-blue-app .fc-page > * {min-width:0}
  body#royal-blue-app .fc-card {margin:0 !important;padding:16px 18px !important;min-width:0;border:1px solid #dbe7fb !important;border-radius:12px !important;background:#fff !important;box-shadow:0 4px 14px rgba(23,58,120,.05) !important}
  body#royal-blue-app .fc-card-head {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin-bottom:12px}
  body#royal-blue-app .fc-h {display:flex;align-items:center;gap:9px;margin:0;font-size:16px;font-weight:700;color:#133858;letter-spacing:-.1px}
  body#royal-blue-app .fc-h > svg {flex:none;color:#175adb}
  body#royal-blue-app .fc-h small {font-weight:500;font-size:13px;color:#62758d}
  body#royal-blue-app .fc-lead {margin:-4px 0 14px;font-size:13.5px;line-height:1.55;color:#4a6382}
  body#royal-blue-app .fc-empty, body#royal-blue-app .fc-foot {margin:8px 0 0;font-size:13px;color:#62758d;line-height:1.5}
  body#royal-blue-app .fc-ok {display:flex;align-items:center;gap:8px;margin:0;padding:12px 14px;border-radius:10px;background:var(--lv0-soft);color:var(--lv0-ink);font-size:14px;font-weight:600}

  /* small "how to read" buttons that open a dialog */
  body#royal-blue-app .fc-info {display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border:1px solid #cfe0fb;border-radius:999px;background:#fff;color:#245bba;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
  body#royal-blue-app .fc-info:hover {background:#f3f8ff}
  body#royal-blue-app :is(.fc-info,.fc-sum,.fc-tab,.fc-param,.fc-link):focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
  body#royal-blue-app .fc-link {margin-top:auto;padding:6px 0 0;border:0;background:none;color:#175adb;font:inherit;font-size:13px;font-weight:600;text-align:left;cursor:pointer}
  body#royal-blue-app .fc-link:hover {text-decoration:underline}

  /* parameter icon tile: the parameter colour, as in Quan trắc */
  body#royal-blue-app .fc-picon {display:inline-grid;place-items:center;flex:none;width:28px;height:28px;border-radius:8px;background:color-mix(in srgb,var(--pc,#175adb) 12%,#fff);color:var(--pc,#175adb)}

  /* when it was made, from which data */
  body#royal-blue-app .fc-meta {display:flex;flex-wrap:wrap;gap:6px 20px;font-size:13px;color:#4a6382}
  body#royal-blue-app .fc-meta span {display:inline-flex;align-items:center;gap:6px}
  body#royal-blue-app .fc-meta svg {color:#5976bd}
  body#royal-blue-app .fc-meta b {color:#133858;font-variant-numeric:tabular-nums}
  body#royal-blue-app .fc-test {padding:2px 10px;border-radius:999px;background:var(--lv1-soft);color:var(--lv1-ink);font-weight:600}
  body#royal-blue-app .fc-banner {display:grid;gap:6px;margin:0;padding:0;list-style:none}
  body#royal-blue-app .fc-banner li {display:flex;align-items:flex-start;gap:8px;padding:10px 14px;border:1px solid var(--lv1-line);border-left:4px solid var(--lv1);border-radius:10px;background:var(--lv1-soft);color:var(--lv1-ink);font-size:13.5px;font-weight:500}
  body#royal-blue-app .fc-banner svg {flex:none;margin-top:2px}

  /* summary cards: the Cảnh báo cards */
  body#royal-blue-app .fc-sums {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  body#royal-blue-app .fc-sum {display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;padding:13px 15px;border:1px solid #dbe7fb;border-left:4px solid var(--fc,#175adb);border-radius:12px;background:#fff;color:#133858;font:inherit;text-align:left;cursor:pointer;box-shadow:0 4px 14px rgba(23,58,120,.05)}
  body#royal-blue-app .fc-sum:hover {background:#f6faff;border-color:#c3d8f8;border-left-color:var(--fc,#175adb)}
  body#royal-blue-app .fc-t-ok {--fc:#12a150}
  body#royal-blue-app .fc-t-watch {--fc:#c77b00}
  body#royal-blue-app .fc-t-alert {--fc:#c9372c}
  body#royal-blue-app .fc-t-info {--fc:#175adb}
  body#royal-blue-app .fc-sum-label {font-size:12px;font-weight:700;color:#62758d;text-transform:uppercase;letter-spacing:.3px}
  body#royal-blue-app .fc-sum strong {font-size:28px;line-height:1.15;color:var(--fc,#133858);font-variant-numeric:tabular-nums}
  body#royal-blue-app .fc-sum-sub {font-size:12px;line-height:1.4;color:#62758d}

  /* what needs attention: one card per parameter and level in three calm rows (name and level, one meta line, the points) */
  body#royal-blue-app .fc-watch-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:12px}
  body#royal-blue-app .fc-watch-card {display:flex;flex-direction:column;gap:10px;min-width:0;padding:12px 14px;border:1px solid #e1eafa;border-left:4px solid var(--status,#8a9bb2);border-radius:10px;background:linear-gradient(120deg,#fff 60%,var(--status-soft,#fff))}
  body#royal-blue-app .fc-watch-card[data-kind="possible"] {background:#fff;border-style:dashed;border-left-style:solid}
  body#royal-blue-app .fc-watch-card header {display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}
  body#royal-blue-app .fc-watch-name {font-size:14.5px;font-weight:700;color:#133858;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body#royal-blue-app .fc-watch-card header .badge {white-space:nowrap}
  body#royal-blue-app .fc-watch-meta {display:flex;flex-wrap:wrap;gap:4px 14px;margin:0;padding-bottom:8px;border-bottom:1px dashed var(--status-line,#e1eafa);font-size:12.5px;color:#62758d}
  body#royal-blue-app .fc-watch-meta span {white-space:nowrap}
  body#royal-blue-app .fc-watch-kind {font-weight:600;color:var(--status-ink,#4a6382)}
  body#royal-blue-app .fc-watch-points {display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px;margin:0;padding:0;list-style:none}
  body#royal-blue-app .fc-watch-points li {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:8px;padding:6px 10px;border:1px solid var(--status-line,#e1eafa);border-radius:8px;background:#fff;cursor:default}
  body#royal-blue-app .fc-pt-name {font-size:13px;font-weight:600;color:#4a6382;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body#royal-blue-app .fc-watch-points b {font-size:14.5px;font-weight:700;color:var(--status-ink,#133858);font-variant-numeric:tabular-nums;white-space:nowrap}
  body#royal-blue-app .fc-watch-points small {grid-column:1/-1;font-size:11px;color:#62758d;white-space:nowrap}
  body#royal-blue-app .fc-later {margin-top:12px}
  body#royal-blue-app .fc-later summary {cursor:pointer;font-size:13.5px;font-weight:600;color:#175adb;margin-bottom:10px}

  /* point tabs */
  body#royal-blue-app .fc-tabs {display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px;padding:4px;border-radius:12px;background:#f3f8ff;width:max-content;max-width:100%}
  body#royal-blue-app .fc-tab {display:grid;gap:1px;min-width:92px;min-height:44px;padding:6px 14px;border:1px solid transparent;border-radius:9px;background:transparent;color:#245bba;font:inherit;text-align:left;cursor:pointer}
  body#royal-blue-app .fc-tab strong {font-size:14px;font-weight:700}
  body#royal-blue-app .fc-tab span {font-size:11.5px;font-weight:600;color:var(--src-ink,#62758d)}
  body#royal-blue-app .fc-tab[aria-selected="true"] {background:#fff;border-color:#c3d8f8;color:#133858;box-shadow:0 2px 8px rgba(23,58,120,.08)}

  /* the forecast table: the alert-table look */
  body#royal-blue-app .fc-scroll {position:relative;overflow-x:auto;min-width:0;border:1px solid #e1eafa;border-radius:10px;-webkit-overflow-scrolling:touch}
  body#royal-blue-app .fc-table {width:100%;min-width:900px;border-collapse:separate;border-spacing:0;font-size:13.5px}
  body#royal-blue-app .fc-table th, body#royal-blue-app .fc-table td {padding:8px 9px !important;height:auto !important;border-bottom:1px solid #edf2fb;text-align:center;vertical-align:middle;white-space:nowrap;color:#244477}
  body#royal-blue-app .fc-table tbody tr:last-child > * {border-bottom:0}
  body#royal-blue-app .fc-table thead th {background:#f3f8ff;color:#4a6382;font-size:12px;font-weight:700;letter-spacing:.2px;border-bottom:1px solid #e1eafa}
  body#royal-blue-app .fc-table thead th:first-child, body#royal-blue-app .fc-table thead th.fc-now {text-transform:uppercase}
  body#royal-blue-app .fc-table th:first-child {position:sticky;left:0;z-index:1;background:#fff;text-align:left;min-width:178px;box-shadow:1px 0 0 #edf2fb}
  body#royal-blue-app .fc-table thead th:first-child {background:#f3f8ff;z-index:2}
  body#royal-blue-app .fc-day {display:block;color:#133858;font-size:12.5px}
  body#royal-blue-app .fc-wx {display:block;font-weight:500;font-size:11.5px;color:#62758d}
  body#royal-blue-app .fc-param {display:flex;align-items:center;gap:9px;width:100%;min-height:40px;padding:4px 6px;border:0;border-radius:9px;background:none;color:#133858;font:inherit;font-size:13.5px;font-weight:650;text-align:left;cursor:pointer}
  body#royal-blue-app .fc-param > span:last-child {display:grid;line-height:1.25}
  body#royal-blue-app .fc-param small {font-weight:500;font-size:11.5px;color:#62758d}
  body#royal-blue-app .fc-param:hover {background:#f6faff}
  body#royal-blue-app .fc-param[aria-pressed="true"] {background:#eaf1fc;box-shadow:inset 3px 0 0 #175adb}
  body#royal-blue-app .fc-v {display:block;font-size:14px;font-weight:700;color:#133858;font-variant-numeric:tabular-nums}
  body#royal-blue-app .fc-r {display:block;font-size:11.5px;color:#62758d;font-variant-numeric:tabular-nums}
  body#royal-blue-app .fc-assumed {color:var(--src-assumed-ink)}
  body#royal-blue-app .fc-table .fc-now {background:#f8fbff}
  body#royal-blue-app .fc-none {color:#62758d !important;text-align:left !important;white-space:normal !important}
  body#royal-blue-app .fc-table :is(td,th).fc-trend {background:repeating-linear-gradient(135deg,#fbfcfe 0 6px,#f3f6fb 6px 12px)}
  body#royal-blue-app .fc-table td[data-conf="thap"] .fc-v {color:#5976bd;font-weight:600}
  body#royal-blue-app .fc-table td[data-alert-level] {background:var(--status-soft) !important;box-shadow:inset 0 -3px 0 var(--status)}
  body#royal-blue-app .fc-table td[data-alert-level] .fc-v {color:var(--status-ink)}
  body#royal-blue-app .fc-table td[data-edge] {box-shadow:inset 0 0 0 2px var(--lv1-line)}
  body#royal-blue-app .fc-table td:is([data-edge="2"],[data-edge="3"],[data-edge="4"]) {box-shadow:inset 0 0 0 2px var(--lv2-line)}

  /* chart: the parameter colour */
  body#royal-blue-app .fc-chart-card .chart-parameters {margin:0 0 12px}
  body#royal-blue-app .fc-chart {display:block;width:100%;height:auto;max-height:360px;border-radius:10px;background:#f8faff;border:1px solid #e3ecf8}
  body#royal-blue-app .fc-grid {stroke:#e7eef8;stroke-width:1}
  body#royal-blue-app .fc-tick {fill:#62758d;font-size:11.5px;font-variant-numeric:tabular-nums}
  body#royal-blue-app .fc-tick-today {fill:#133858;font-weight:700}
  body#royal-blue-app .fc-zone-label {fill:#62758d;font-size:11px;font-weight:600}
  body#royal-blue-app .fc-trend-zone {fill:#eef2f9;opacity:.8}
  body#royal-blue-app .fc-today {stroke:#8aa0c2;stroke-width:1;stroke-dasharray:3 3}
  body#royal-blue-app .fc-band {fill:color-mix(in srgb,var(--pc,#175adb) 16%,transparent);stroke:none}
  body#royal-blue-app .fc-line-measured {fill:none;stroke:var(--pc,#175adb);stroke-width:2.4}
  body#royal-blue-app .fc-line-forecast {fill:none;stroke:var(--pc,#175adb);stroke-width:2.2;stroke-dasharray:7 5}
  body#royal-blue-app .fc-dot-measured {fill:var(--pc,#175adb);stroke:#fff;stroke-width:1.5}
  body#royal-blue-app .fc-dot-forecast {fill:#fff;stroke:var(--pc,#175adb);stroke-width:2}
  body#royal-blue-app .fc-rain {fill:#5aa9ff;opacity:.45}
  body#royal-blue-app .fc-legend {display:flex;flex-wrap:wrap;gap:6px 18px;margin:10px 0 0;font-size:12.5px;color:#4a6382}
  body#royal-blue-app .fc-legend span {display:inline-flex;align-items:center;gap:7px}
  body#royal-blue-app .fc-key {display:inline-block;width:18px;height:10px;border-radius:3px}
  body#royal-blue-app .fc-key-m {height:3px;background:var(--pc,#175adb)}
  body#royal-blue-app .fc-key-f {height:0;border-top:3px dashed var(--pc,#175adb);border-radius:0}
  body#royal-blue-app .fc-key-b {background:color-mix(in srgb,var(--pc,#175adb) 18%,transparent)}
  body#royal-blue-app .fc-key-rain {background:#5aa9ff;opacity:.55}

  /* check against the buoy */
  body#royal-blue-app .fc-check-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px}
  body#royal-blue-app .fc-check-card {display:flex;flex-direction:column;gap:10px;min-width:0;padding:13px 14px;border:1px solid #e1eafa;border-top:3px solid var(--pc,#175adb);border-radius:12px;background:#fff}
  body#royal-blue-app .fc-check-card header {display:flex;align-items:center;gap:9px;min-width:0}
  body#royal-blue-app .fc-check-card header strong {font-size:14px;font-weight:650;color:#133858;min-width:0}
  body#royal-blue-app .fc-state {margin-left:auto;padding:3px 10px;border-radius:999px;font-size:11.5px;font-weight:700;white-space:nowrap;background:#eaf1fc;color:#245bba}
  body#royal-blue-app .fc-check-card[data-state="ok"] .fc-state {background:var(--lv0-soft);color:var(--lv0-ink)}
  body#royal-blue-app .fc-check-card[data-state="watch"] .fc-state {background:var(--lv1-soft);color:var(--lv1-ink)}
  body#royal-blue-app .fc-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  body#royal-blue-app .fc-metric {display:grid;gap:1px;min-width:0;padding:7px 8px;border-radius:9px;background:#f6f9fe}
  body#royal-blue-app .fc-metric span {font-size:12px;font-weight:600;color:#62758d;white-space:nowrap}
  body#royal-blue-app .fc-metric b {font-size:16px;color:#133858;font-variant-numeric:tabular-nums}
  body#royal-blue-app .fc-metric small {font-size:11px;color:#62758d;white-space:nowrap}
  body#royal-blue-app .fc-check {display:block;width:100%;height:auto;max-height:80px;border-radius:8px;background:#f8faff}
  body#royal-blue-app .fc-check-range {fill:color-mix(in srgb,var(--pc,#175adb) 22%,transparent)}
  body#royal-blue-app .fc-check-fc {fill:#fff;stroke:var(--pc,#175adb);stroke-width:1.8}
  body#royal-blue-app .fc-check-obs {fill:#133858}
  body#royal-blue-app .fc-check g[data-inside="false"] .fc-check-obs {fill:var(--lv3)}
  body#royal-blue-app .fc-notes-list {display:grid;gap:6px;margin:0;padding:0;list-style:none}
  body#royal-blue-app .fc-notes-list li {position:relative;padding:6px 10px 6px 26px;border-radius:8px;font-size:13px;line-height:1.5;color:#244477;background:#f6f9fe}
  body#royal-blue-app .fc-notes-list li::before {content:"";position:absolute;left:10px;top:12px;width:8px;height:8px;border-radius:50%;background:#175adb}
  body#royal-blue-app .fc-notes-list li[data-tone="ok"] {background:var(--lv0-soft)}
  body#royal-blue-app .fc-notes-list li[data-tone="ok"]::before {background:var(--lv0)}
  body#royal-blue-app .fc-notes-list li[data-tone="watch"] {background:var(--lv1-soft);color:#5c4300}
  body#royal-blue-app .fc-notes-list li[data-tone="watch"]::before {background:var(--lv1)}

  /* dialogs */
  body#royal-blue-app .fc-dialog {display:grid;gap:12px;font-size:14px;line-height:1.6;color:#244477}
  body#royal-blue-app .fc-dialog p {margin:0}
  body#royal-blue-app .fc-dialog h3 {display:flex;align-items:center;gap:8px;margin:6px 0 0;font-size:14.5px;font-weight:700;color:#133858}
  body#royal-blue-app .fc-steps {display:grid;gap:8px;margin:0;padding-left:20px}
  body#royal-blue-app .fc-steps li::marker {color:#175adb;font-weight:700}
  body#royal-blue-app .fc-note {padding:10px 14px;border-radius:10px;background:#eaf1fc;border-left:4px solid #175adb}
  body#royal-blue-app .fc-note[data-tone="watch"] {background:var(--lv1-soft);border-left-color:var(--lv1);color:#5c4300}
  body#royal-blue-app .fc-dlg-param {display:grid;gap:6px;padding:12px 14px;border:1px solid #e1eafa;border-radius:10px}
  body#royal-blue-app .fc-dlg-param h3 {margin:0}
  body#royal-blue-app .fc-dlg-param ul:not(.fc-notes-list) {margin:0;padding-left:20px;font-size:13.5px}
  body#royal-blue-app .fc-dlg-table {min-width:520px}
  body#royal-blue-app .fc-dlg-table th:first-child {min-width:110px}
  body#royal-blue-app .fc-miss {color:var(--lv3-ink)}
  body#royal-blue-app .fc-swatch {display:inline-block;width:18px;height:14px;margin-right:4px;border-radius:4px;background:var(--status-soft);box-shadow:inset 0 -3px 0 var(--status);vertical-align:-2px}
  body#royal-blue-app .fc-swatch-edge {background:#fff;box-shadow:inset 0 0 0 2px var(--lv1-line)}

  /* stage 1: view modes, the day's extremes on the chart, the alert limits, the input quality and the equipment log */
  body#royal-blue-app .fc-head-tools {display:flex;flex-wrap:wrap;align-items:center;gap:8px}
  body#royal-blue-app .fc-modes {display:inline-flex;padding:3px;border-radius:10px;background:#f3f8ff;gap:2px}
  body#royal-blue-app .fc-mode {min-height:32px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:#245bba;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;white-space:nowrap}
  body#royal-blue-app .fc-mode[aria-pressed="true"] {background:#fff;color:#133858;box-shadow:0 1px 4px rgba(23,58,120,.12)}
  body#royal-blue-app .fc-mode:focus-visible {outline:3px solid #aac8ff;outline-offset:1px}
  body#royal-blue-app .fc-mode-short {display:none}
  body#royal-blue-app .fc-v-range {font-size:12.5px;font-weight:650;color:#4a6382}
  body#royal-blue-app .fc-whisker {stroke:var(--pc,#175adb);stroke-width:5;stroke-linecap:round;opacity:.22}
  body#royal-blue-app .fc-whisker-f {opacity:.16}
  body#royal-blue-app .fc-limit line {stroke:var(--status,#c9372c);stroke-width:1.2;stroke-dasharray:5 4;opacity:.85}
  body#royal-blue-app .fc-limit text {fill:var(--status-ink,#c9372c);font-size:10.5px;font-weight:700}
  body#royal-blue-app .fc-key-w {width:6px;height:14px;border-radius:3px;background:var(--pc,#175adb);opacity:.3}
  body#royal-blue-app .fc-key-l {height:0;border-top:2px dashed var(--lv2,#ff7a1a);border-radius:0}
  body#royal-blue-app .fc-input-grid {display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0}
  body#royal-blue-app .fc-input-grid > * {min-width:0}
  @media (min-width: 1250px) { body#royal-blue-app .fc-input-grid {grid-template-columns:minmax(0,3fr) minmax(0,2fr)} }
  body#royal-blue-app .fc-quality-table {min-width:720px}
  body#royal-blue-app .fc-quality-table th:first-child {min-width:170px}
  body#royal-blue-app .fc-quality-table tbody th {font-weight:650;color:#133858}
  body#royal-blue-app .fc-q-name {display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
  body#royal-blue-app .fc-quality-table td small {display:block;font-size:11px;color:#62758d;white-space:nowrap}
  body#royal-blue-app .fc-quality-table td[data-low="true"] {color:var(--lv1-ink);font-weight:650}
  body#royal-blue-app .fc-h3 {margin:14px 0 6px;font-size:14px;font-weight:700;color:#133858}
  body#royal-blue-app .fc-manual {display:grid;gap:6px;margin:0;padding:0;list-style:none}
  body#royal-blue-app .fc-manual li {display:flex;align-items:center;gap:8px;font-size:13.5px;color:#244477}
  body#royal-blue-app .fc-events {display:grid;gap:8px;margin:0;padding:0;list-style:none}
  body#royal-blue-app .fc-events li {position:relative;display:grid;gap:3px;padding:10px 40px 10px 12px;border:1px solid #e1eafa;border-left:3px solid #175adb;border-radius:10px;background:#fbfdff}
  body#royal-blue-app .fc-event-main {display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;font-size:13.5px;color:#244477}
  body#royal-blue-app .fc-event-main b {color:#133858;font-variant-numeric:tabular-nums}
  body#royal-blue-app .fc-event-kind {padding:1px 8px;border-radius:999px;background:#eaf1fc;color:#245bba;font-size:12px;font-weight:650}
  body#royal-blue-app .fc-events p {margin:0;font-size:13px;color:#4a6382}
  body#royal-blue-app .fc-events small {font-size:11.5px;color:#62758d}
  body#royal-blue-app .fc-event-delete {position:absolute;top:8px;right:8px;display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:8px;background:transparent;color:#62758d;cursor:pointer}
  body#royal-blue-app .fc-event-delete:hover {background:var(--lv3-soft);color:var(--lv3-ink)}
  body#royal-blue-app .fc-form {display:grid;gap:12px}
  body#royal-blue-app .fc-form fieldset {display:flex;flex-wrap:wrap;gap:6px 10px;margin:0;padding:10px 12px;border:1px solid #e1eafa;border-radius:10px}
  body#royal-blue-app .fc-form legend {padding:0 4px;font-size:13px;font-weight:700;color:#133858}
  body#royal-blue-app .fc-check-option {display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 10px;border:1px solid #dbe7fb;border-radius:999px;background:#fff;font-size:13px;color:#244477;cursor:pointer}
  body#royal-blue-app .fc-check-option:has(input:checked) {border-color:#175adb;background:#eaf1fc;color:#133858}
  body#royal-blue-app .fc-check-all {font-weight:650}
  body#royal-blue-app .fc-field {display:grid;gap:4px;font-size:13px;font-weight:650;color:#133858}
  body#royal-blue-app .fc-form-actions {display:flex;flex-wrap:wrap;gap:8px}
  body#royal-blue-app .fc-form-error {margin:0;padding:8px 12px;border-radius:8px;background:var(--lv3-soft);color:var(--lv3-ink);font-size:13px}

  /* two views: the forecast and the history of earlier forecasts against what happened (forecast-history.js, prefix fh-) */
  body#royal-blue-app :is(.fc-page,.fc-history)[hidden] {display:none !important}
  body#royal-blue-app .fc-views {display:flex;gap:2px;margin:0 0 14px;border-bottom:2px solid #dbe7fb;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
  body#royal-blue-app .fc-views::-webkit-scrollbar {display:none}
  body#royal-blue-app .fc-views button {flex:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:0;border-bottom:3px solid transparent;margin-bottom:-2px;background:none;color:#4d6481;font:inherit;font-size:14px;font-weight:650;cursor:pointer;white-space:nowrap}
  body#royal-blue-app .fc-views button:hover {color:#175adb}
  body#royal-blue-app .fc-views button[aria-selected="true"] {color:#175adb;border-bottom-color:#175adb;font-weight:800}
  body#royal-blue-app .fc-views button:focus-visible {outline:3px solid #aac8ff;outline-offset:-3px;border-radius:8px 8px 0 0}
  body#royal-blue-app .fc-view-short {display:none}
  body#royal-blue-app .fh-page {display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0;color:#133858}
  body#royal-blue-app .fh-page > * {min-width:0}
  body#royal-blue-app .fh-overview {min-width:760px}
  body#royal-blue-app .fh-overview tbody tr {cursor:pointer}
  body#royal-blue-app .fh-overview tbody tr:hover > * {background:#f6faff}
  body#royal-blue-app .fh-overview tbody tr:focus-visible {outline:3px solid #aac8ff;outline-offset:-3px}
  body#royal-blue-app .fh-skill {font-weight:700;color:var(--lv1-ink)}
  body#royal-blue-app .fh-skill[data-good="true"] {color:var(--lv0-ink)}
  /* filters: the four lists on one row, the comparison modes under them (wide screens: all on one row) */
  body#royal-blue-app .fh-filters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;align-items:end}
  @media (min-width: 1250px) { body#royal-blue-app .fh-filters {grid-template-columns:repeat(4,minmax(0,1fr))} }
  body#royal-blue-app .fh-field {display:grid;gap:4px;min-width:0;font-size:12px;font-weight:700;color:#62758d}
  body#royal-blue-app .fh-field > span {text-transform:uppercase;letter-spacing:.3px;white-space:nowrap}
  body#royal-blue-app .fh-field select {min-width:0;width:100%;height:38px}
  body#royal-blue-app .fh-field-modes {grid-column:1 / -1}
  body#royal-blue-app .fh-field-modes .fc-modes {display:flex;justify-self:start}
  @media (min-width: 1500px) { body#royal-blue-app .fh-filters {grid-template-columns:repeat(4,minmax(0,1fr)) auto} body#royal-blue-app .fh-field-modes {grid-column:auto} }
  body#royal-blue-app .fh-bar-line {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:12px 0}
  body#royal-blue-app .fh-status {display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin:0;font-size:13px;color:#4a6382}
  body#royal-blue-app .fh-status svg {color:#12a150}
  body#royal-blue-app .fh-status b {color:#133858;font-variant-numeric:tabular-nums}
  body#royal-blue-app .fh-exports {display:flex;flex-wrap:wrap;gap:8px}
  body#royal-blue-app .fh-exports .btn {white-space:nowrap}
  body#royal-blue-app .fh-note {margin:-4px 0 12px;padding:8px 12px;border-radius:9px;background:#f3f8ff;font-size:13px;color:#4a6382}
  body#royal-blue-app .fh-sums .fc-sum strong small {margin-left:4px;font-size:14px;font-weight:600;color:#62758d}
  /* charts: the days and the miss per day ahead */
  body#royal-blue-app .fh-charts {display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
  @media (min-width: 1250px) { body#royal-blue-app .fh-charts {grid-template-columns:minmax(0,1.9fr) minmax(0,1fr)} }
  body#royal-blue-app .fh-figure {margin:0;min-width:0}
  body#royal-blue-app .fh-figure figcaption {margin:0 0 8px;font-size:13px;font-weight:650;color:#4a6382}
  body#royal-blue-app .fh-band {fill:color-mix(in srgb,var(--pc,#175adb) 22%,transparent)}
  body#royal-blue-app .fh-dot-observed {fill:var(--pc,#175adb);stroke:#fff;stroke-width:1.5}
  body#royal-blue-app .fh-dot-observed.fh-out {fill:var(--lv3,#c9372c)}
  body#royal-blue-app .fh-lead-chart {display:block;width:100%;height:auto;max-height:240px;border-radius:10px;background:#f8faff;border:1px solid #e3ecf8}
  body#royal-blue-app .fh-bar {fill:color-mix(in srgb,var(--lv1,#c77b00) 55%,#fff)}
  body#royal-blue-app .fh-bar.fh-better {fill:color-mix(in srgb,var(--pc,#175adb) 60%,#fff)}
  body#royal-blue-app .fh-naive {stroke:#133858;stroke-width:2.4;stroke-linecap:round}
  body#royal-blue-app .fh-key-band {width:8px;height:14px;background:color-mix(in srgb,var(--pc,#175adb) 22%,transparent)}
  body#royal-blue-app .fh-key-o {width:10px;height:10px;border-radius:50%;background:var(--pc,#175adb)}
  body#royal-blue-app .fh-key-out {width:10px;height:10px;border-radius:50%;background:var(--lv3,#c9372c)}
  body#royal-blue-app .fh-key-f {width:10px;height:10px;border:2px solid var(--pc,#175adb);border-radius:50%;background:#fff}
  body#royal-blue-app .fh-key-bar {background:color-mix(in srgb,var(--pc,#175adb) 60%,#fff)}
  body#royal-blue-app .fh-key-bar-worse {background:color-mix(in srgb,var(--lv1,#c77b00) 55%,#fff)}
  body#royal-blue-app .fh-key-naive {height:0;border-top:3px solid #133858;border-radius:0}
  /* the rows */
  body#royal-blue-app .fh-table-wrap {border:1px solid #e1eafa !important;border-radius:10px !important}
  body#royal-blue-app .fh-table {min-width:940px}
  body#royal-blue-app .fh-table th:first-child {min-width:150px}
  body#royal-blue-app .fh-table td small {display:block;font-size:11px;color:#62758d}
  body#royal-blue-app .fh-table td[data-out="true"] {color:var(--lv3-ink);font-weight:700}
  body#royal-blue-app .fh-table tr[data-status="pending"] > * {color:#62758d}
  body#royal-blue-app .fh-wait {display:inline-block;padding:1px 8px;border-radius:999px;background:#eef3fa;color:#62758d;font-size:12px;font-weight:600}
  body#royal-blue-app .fh-wait[data-status="missing"] {background:var(--lv1-soft);color:var(--lv1-ink)}
  body#royal-blue-app .fh-levels {white-space:nowrap}
  body#royal-blue-app .fh-levels > span[aria-hidden] {margin:0 5px;color:#8a9bb2}
  body#royal-blue-app .fh-lv {display:inline-grid;place-items:center;min-width:30px;height:22px;padding:0 6px;border-radius:6px;background:var(--status-soft,#eef3fa);color:var(--status-ink,#4a6382);font-size:12px;font-weight:700}
  body#royal-blue-app .fh-lv-none {background:#f3f6fa;color:#8a9bb2}
  /* what a calibration needs */
  body#royal-blue-app .fh-tips {display:grid;gap:8px;margin:0 0 6px;padding:0;list-style:none}
  body#royal-blue-app .fh-tips li {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;padding:10px 12px;border:1px solid #e1eafa;border-left:4px solid #175adb;border-radius:10px;background:#fbfdff}
  body#royal-blue-app .fh-tips li[data-tone="ok"] {border-left-color:var(--lv0);background:var(--lv0-soft)}
  body#royal-blue-app .fh-tips li[data-tone="watch"] {border-left-color:var(--lv1);background:var(--lv1-soft)}
  body#royal-blue-app .fh-area {padding:2px 9px;border-radius:999px;background:#fff;border:1px solid #dbe7fb;color:#245bba;font-size:12px;font-weight:700;white-space:nowrap}
  body#royal-blue-app .fh-tip-text {min-width:0;font-size:13.5px;line-height:1.55;color:#244477}
  body#royal-blue-app .fh-tip-text small {display:block;margin-top:2px;font-size:12px;color:#62758d}
  body#royal-blue-app .fh-tip-text code {padding:0 4px;border-radius:4px;background:#eef3fa;font-size:11.5px;color:#244477;white-space:normal;word-break:break-word}
  body#royal-blue-app .fh-panels {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:8px}
  @media (min-width: 1100px) { body#royal-blue-app .fh-panels {grid-template-columns:repeat(2,minmax(0,1fr))} body#royal-blue-app .fh-panel-wide {grid-column:1 / -1} }
  body#royal-blue-app .fh-panel {min-width:0;padding:12px 14px;border:1px solid #e1eafa;border-radius:10px}
  body#royal-blue-app .fh-panel .fc-h3 {margin:0 0 8px}
  body#royal-blue-app .fh-panel .fc-h3 small {font-weight:500;color:#62758d}
  body#royal-blue-app .fh-mini {min-width:560px}
  body#royal-blue-app .fh-mini th:first-child {min-width:150px}
  body#royal-blue-app .fh-sub {margin:10px 0 6px;font-size:13px;color:#4a6382}
  body#royal-blue-app .fh-facts {display:grid;gap:6px;margin:0;padding-left:18px;font-size:13.5px;line-height:1.55;color:#244477}
  body#royal-blue-app .fh-facts li::marker {color:#175adb}
  body#royal-blue-app .fh-foot-li {color:#62758d;font-size:12.5px}

  @media (max-width: 1100px) {
    body#royal-blue-app .fc-sums {grid-template-columns:repeat(2,minmax(0,1fr))}
  }
  @media (max-width: 700px) {
    body#royal-blue-app .fc-card {padding:12px !important}
    body#royal-blue-app .fc-sums {gap:8px}
    body#royal-blue-app .fc-sum {padding:10px 11px}
    body#royal-blue-app .fc-sum strong {font-size:21px}
    body#royal-blue-app .fc-sum-label {font-size:11px;letter-spacing:.1px}
    body#royal-blue-app .fc-sum-sub {font-size:11.5px}
    body#royal-blue-app .fc-watch-grid {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .fc-watch-card header {grid-template-columns:auto minmax(0,1fr);row-gap:6px}
    body#royal-blue-app .fc-watch-name {white-space:normal}
    body#royal-blue-app .fc-watch-card header .badge {grid-column:2;justify-self:start}
    body#royal-blue-app .fc-table th:first-child {min-width:132px}
    body#royal-blue-app .fc-param {gap:6px}
    body#royal-blue-app .fc-tabs {width:100%}
    body#royal-blue-app .fc-tab {flex:1 1 calc(33% - 6px);min-width:0}
    body#royal-blue-app .fc-info span {display:none}
    body#royal-blue-app .fc-main .fc-card-head {flex-wrap:wrap}
    body#royal-blue-app .fc-head-tools {width:100%;justify-content:space-between}
    body#royal-blue-app .fc-modes {flex:1 1 auto;display:flex}
    body#royal-blue-app .fc-mode {flex:1 1 0;padding:0 6px;font-size:12.5px}
    body#royal-blue-app .fc-mode-long {display:none}
    body#royal-blue-app .fc-mode-short {display:inline}
    body#royal-blue-app .fc-card-head {flex-wrap:nowrap;align-items:flex-start}
    body#royal-blue-app .fc-card-head .fc-h {min-width:0;font-size:15px}
    body#royal-blue-app .fc-info {flex:none;width:36px;padding:0;justify-content:center}
    body#royal-blue-app .fc-views button {flex:1 1 auto;justify-content:center;padding:0 10px;font-size:13.5px}
    body#royal-blue-app .fc-view-long {display:none}
    body#royal-blue-app .fc-view-short {display:inline}
    body#royal-blue-app .fh-page .fc-card-head .fc-h {flex-wrap:wrap;row-gap:2px}
    body#royal-blue-app .fh-page .fh-title {flex:1 1 0;min-width:0}
    body#royal-blue-app .fh-page .fc-h small {flex:1 0 100%;padding-left:27px}
    body#royal-blue-app .fh-page .fc-h:has(> .fc-picon) small {padding-left:37px}
    body#royal-blue-app .fh-filters {grid-template-columns:repeat(2,minmax(0,1fr))}
    body#royal-blue-app .fh-filters > .fh-field:nth-child(-n+2) {grid-column:1 / -1}
    body#royal-blue-app .fh-field-modes .fc-modes {width:100%}
    body#royal-blue-app .fh-exports {width:100%}
    body#royal-blue-app .fh-exports .btn {flex:1 1 0;justify-content:center;min-width:0}
    body#royal-blue-app .fh-tips li {grid-template-columns:minmax(0,1fr)}
    body#royal-blue-app .fh-area {justify-self:start}
  }
}

/* ==== manual-entry.css ==== */
/* Đo thủ công: nhập nhanh. Khối "Nhập nhanh" (điểm, chỉ tiêu, giá trị, chất lượng, xác nhận) đứng đầu trang;
   thời điểm, mã phiếu, ghi chú, ảnh gấp lại trên điện thoại; nút Lưu dính đáy màn hình. */
@layer readability {
  body#royal-blue-app #manual-form .mq-value {margin-top:12px!important}
  body#royal-blue-app #manual-form .mq-valuebox {display:flex!important;align-items:stretch!important;gap:8px!important}
  body#royal-blue-app #manual-form .mq-valuebox input {flex:1 1 auto!important;min-width:0!important;height:52px!important;padding:0 12px!important;font-size:20px!important;font-weight:700!important;font-variant-numeric:tabular-nums;-moz-appearance:textfield;appearance:textfield}
  body#royal-blue-app #manual-form .mq-valuebox input::-webkit-outer-spin-button,
  body#royal-blue-app #manual-form .mq-valuebox input::-webkit-inner-spin-button {-webkit-appearance:none!important;margin:0!important}
  body#royal-blue-app #manual-form .mq-valuebox input::placeholder {font-size:15px!important;font-weight:500!important}
  body#royal-blue-app #manual-form .mq-unit {flex:0 0 auto!important;display:flex!important;align-items:center!important;padding:0 12px!important;border:1px solid #cfdcec!important;border-radius:7px!important;background:#f1f6fd!important;color:#35506f!important;font-size:14px!important;font-weight:650!important;white-space:nowrap}
  body#royal-blue-app #manual-form .mq-quality {margin-top:12px!important}
  body#royal-blue-app #manual-form .mq-seg {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  body#royal-blue-app #manual-form .mq-seg label {margin:0!important;display:block!important}
  body#royal-blue-app #manual-form .mq-seg input {position:absolute!important;opacity:0!important;width:1px!important;height:1px!important}
  body#royal-blue-app #manual-form .mq-seg span {display:flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;padding:0 8px!important;border:1px solid #cfdcec!important;border-radius:10px!important;background:#fff!important;color:#35506f!important;font-size:14px!important;font-weight:650!important;cursor:pointer;text-align:center}
  body#royal-blue-app #manual-form .mq-seg input:checked + span {border-color:#175adb!important;background:#e8f0ff!important;color:#0e3f9e!important;box-shadow:inset 0 0 0 1px #175adb}
  body#royal-blue-app #manual-form .mq-seg input:focus-visible + span {outline:2px solid #175adb!important;outline-offset:2px}
  body#royal-blue-app #manual-form .mq-confirm {margin-top:12px!important}
  body#royal-blue-app #manual-form .mq-more > summary {display:flex!important;flex-direction:column!important;gap:2px!important;cursor:pointer;list-style:none;padding:2px 0}
  body#royal-blue-app #manual-form .mq-more > summary::-webkit-details-marker {display:none}
  body#royal-blue-app #manual-form .mq-more > summary::after {content:"▾";position:absolute;right:16px;top:14px;color:#62758d;transition:transform .15s}
  body#royal-blue-app #manual-form .mq-more {position:relative!important}
  body#royal-blue-app #manual-form .mq-more[open] > summary::after {transform:rotate(180deg)}
  body#royal-blue-app #manual-form .mq-more[open] > summary {margin-bottom:12px!important}
  body#royal-blue-app #manual-form .mq-more-title {font-weight:750!important;color:#133858!important;font-size:15px!important}
  body#royal-blue-app #manual-form .mq-more > summary small {color:#62758d!important;font-size:12.5px!important;overflow-wrap:anywhere}

  @media (max-width:700px) {
    body#royal-blue-app #manual-form .grid.detail {display:flex!important;flex-direction:column!important;gap:12px!important}
    body#royal-blue-app #manual-form .stack {display:flex!important;flex-direction:column!important;gap:12px!important;min-width:0!important}
    body#royal-blue-app #manual-form .card {padding:14px!important;margin:0!important}
    body#royal-blue-app #manual-form .mq-main .card-title {margin-bottom:10px!important}
    body#royal-blue-app #manual-form .mq-pick {grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important}
    body#royal-blue-app #manual-form .mq-pick .form-control,
    body#royal-blue-app #manual-form .mq-more .form-control {min-height:44px!important;font-size:16px!important}
    body#royal-blue-app #manual-form .mq-valuebox input {height:56px!important;font-size:22px!important}
    body#royal-blue-app #manual-form .mq-more .form-grid {grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
    body#royal-blue-app #manual-form .mq-latest,
    body#royal-blue-app #manual-form .mq-checks {display:none!important}
    body#royal-blue-app #manual-form .footer-actions {position:sticky!important;bottom:0!important;margin:12px -4px 0!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;border-radius:12px 12px 0 0!important;box-shadow:0 -6px 18px rgba(19,56,88,.12)!important;gap:10px!important;flex-wrap:nowrap!important}
    body#royal-blue-app #manual-form .footer-actions .processing-status {display:none!important}
    body#royal-blue-app #manual-form .manual-controls {flex:1 1 auto!important;display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:8px!important}
    body#royal-blue-app #manual-form .manual-controls .btn {min-height:48px!important;justify-content:center!important}
  }
}
@layer readability {
  body#royal-blue-app #manual-form .mq-attach {margin-top:12px!important}
  body#royal-blue-app #manual-form .mq-attach .field {margin:0!important}
  body#royal-blue-app #manual-form .mq-attach .file-zone {display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:6px 10px!important;padding:10px 12px!important;text-align:left!important;min-height:56px}
  body#royal-blue-app #manual-form .mq-attach .file-zone > div {font-weight:650!important;font-size:14px!important}
  body#royal-blue-app #manual-form .mq-attach .file-zone input {flex:1 1 100%!important;min-width:0!important;font-size:14px!important}
  body#royal-blue-app #manual-form .mq-attach .file-zone small {flex:1 1 100%!important;font-size:12px!important}
}
@layer readability {
  body#royal-blue-app #manual-form .mq-legend {margin:0 0 6px!important;font-size:13px!important;font-weight:650!important;color:#35506f!important}
  /* mỗi mức chất lượng một màu: Hợp lệ xanh lá, Nghi ngờ vàng cam, Lỗi đỏ */
  body#royal-blue-app #manual-form .mq-seg label:nth-child(1) {--q:#16864a;--qbg:#e6f6ec;--qline:#a9dcbd}
  body#royal-blue-app #manual-form .mq-seg label:nth-child(2) {--q:#b36b00;--qbg:#fff3dc;--qline:#f0cf94}
  body#royal-blue-app #manual-form .mq-seg label:nth-child(3) {--q:#c42b45;--qbg:#fde8ec;--qline:#f1b0bc}
  body#royal-blue-app #manual-form .mq-seg span {border-color:var(--qline)!important;background:#fff!important;color:var(--q)!important}
  body#royal-blue-app #manual-form .mq-seg input:checked + span {border-color:var(--q)!important;background:var(--q)!important;color:#fff!important;box-shadow:none!important}
  body#royal-blue-app #manual-form .mq-seg input:not(:checked) + span:hover {background:var(--qbg)!important}
  body#royal-blue-app #manual-form .mq-seg input:focus-visible + span {outline:2px solid var(--q)!important}
}
@layer readability {
  @media (max-width:700px) {
    body#royal-blue-app #manual-form .mq-pick {grid-template-columns:minmax(0,3fr) minmax(0,2fr)!important;gap:8px!important}
    body#royal-blue-app #manual-form .mq-pick .form-control {min-height:42px!important;padding:8px 26px 8px 10px!important;font-size:14px!important;background-position:right 8px center!important;text-overflow:ellipsis}
    body#royal-blue-app #manual-form .mq-main .field > label,
    body#royal-blue-app #manual-form .mq-legend {font-size:12.5px!important}
    body#royal-blue-app #manual-form .mq-more .form-control {font-size:14px!important;min-height:42px!important}
    body#royal-blue-app #manual-form .mq-confirm {font-size:13.5px!important}
    body#royal-blue-app #manual-form .mq-seg span {min-height:40px!important;font-size:13.5px!important}
    body#royal-blue-app #manual-form .field-hint {font-size:12px!important}
  }
}
@layer readability {
  body#royal-blue-app #manual-form .mq-row {margin-top:12px!important}
  body#royal-blue-app #manual-form .mq-row .field {margin:0!important}
  body#royal-blue-app #manual-form .mq-valuebox input {height:44px!important;font-size:17px!important;font-weight:700!important}
  body#royal-blue-app #manual-form .mq-valuebox input::placeholder {font-size:14px!important}
  body#royal-blue-app #manual-form .mq-unit {font-size:13.5px!important;padding:0 10px!important}
  @media (max-width:700px) {
    body#royal-blue-app #manual-form .mq-valuebox input {height:44px!important;font-size:17px!important}
    body#royal-blue-app #manual-form .mq-row .form-control {min-height:42px!important;font-size:14px!important}
    body#royal-blue-app #manual-form .mq-row textarea.form-control {min-height:64px!important}
  }
}
@layer readability {
  @media (max-width:700px) {
    body#royal-blue-app #manual-form .grid.detail {align-items:stretch!important;grid-template-columns:minmax(0,1fr)!important}
    body#royal-blue-app #manual-form .grid.detail > .stack {width:100%!important;max-width:100%!important;align-self:stretch!important}
    body#royal-blue-app #manual-form .mq-history .table-wrap {max-width:100%!important;overflow-x:auto!important}
    body#royal-blue-app #manual-form .mq-history table {width:100%!important}
  }
}
@layer readability {
  body#royal-blue-app #manual-form .mq-pick .full {grid-column:1/-1!important}
  body#royal-blue-app #manual-form .mq-pick .mq-value {margin:0!important}
  body#royal-blue-app #manual-form .mq-pick {gap:10px!important}
  body#royal-blue-app #manual-form .mq-pick input#manual-value {height:42px!important;min-height:42px!important;font-size:17px!important;font-weight:700!important;padding:8px 12px!important;-moz-appearance:textfield;appearance:textfield}
  body#royal-blue-app #manual-form .mq-pick input#manual-value::-webkit-outer-spin-button,
  body#royal-blue-app #manual-form .mq-pick input#manual-value::-webkit-inner-spin-button {-webkit-appearance:none!important;margin:0!important}
  body#royal-blue-app #manual-form .mq-pick input#manual-value::placeholder {font-size:14px!important;font-weight:500!important}
  body#royal-blue-app #manual-form .mq-unit {position:static!important;display:inline!important;padding:0!important;border:0!important;background:none!important;font-size:11.5px!important;font-weight:600!important;color:#62758d!important;white-space:nowrap}
  body#royal-blue-app #manual-form .mq-hint {display:block!important;margin-top:6px!important}
  @media (max-width:700px) {
    body#royal-blue-app #manual-form .mq-pick {grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
    body#royal-blue-app #manual-form .mq-pick input#manual-value {font-size:17px!important}
  }
}
@layer readability {
  .attachment-preview {display:block!important;margin-top:8px!important;border:1px solid #cfdcec!important;border-radius:10px!important;background:#f1f6fd!important;overflow:hidden!important;text-align:center;flex:1 1 100%!important}
  .attachment-preview[hidden] {display:none!important}
  .attachment-preview img {display:block!important;max-width:100%!important;max-height:240px!important;width:auto!important;margin:0 auto!important;object-fit:contain!important}
}
@layer readability {
  body#royal-blue-app #manual-form .mq-hist-btn {display:none!important}
  @media (max-width:700px) {
    /* trên điện thoại, Lịch sử nằm trong thanh Lưu dính đáy: không phải kéo lên đầu trang */
    body#royal-blue-app #manual-form .mq-hist-btn {display:inline-flex!important}
    body#royal-blue-app #manual-form .manual-controls {grid-template-columns:auto auto minmax(0,1fr)!important}
    body#royal-blue-app #manual-form .manual-controls .btn {padding-left:12px!important;padding-right:12px!important}
    body#royal-blue-app #manual-history {display:none!important}
  }
}
@layer readability {
  .av-attach-view {display:grid!important;gap:12px!important;justify-items:center;min-width:0}
  .av-attach-img {display:block!important;max-width:100%!important;max-height:68vh!important;object-fit:contain!important;border:1px solid #cfdcec!important;border-radius:10px!important;background:#f1f6fd!important;cursor:zoom-in}
  .av-attach-img.zoom {max-height:none!important;cursor:zoom-out}
  .av-attach-view:has(.av-attach-img.zoom) {overflow:auto!important;max-height:70vh}
  .av-attach-pdf {width:100%!important;height:68vh!important;border:1px solid #cfdcec!important;border-radius:10px!important}
  .av-attach-save {justify-self:center}
}
@layer readability {
  body#royal-blue-app .mq-hist-all {width:100%!important;justify-content:center!important;margin-top:10px!important}
  /* Lịch sử đo thủ công: bộ lọc + danh sách thẻ nhóm theo ngày */
  .mh {display:grid;gap:10px;min-width:0}
  .mh-filters {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;position:sticky;top:0;z-index:2;background:#fff;padding-bottom:6px}
  .mh-filters .mh-q {grid-column:1/-1}
  .mh-filters .form-control {min-height:40px!important;font-size:14px!important}
  .mh-count {font-size:12.5px}
  .mh-list {display:grid;gap:8px;max-height:58vh;overflow:auto;padding-right:2px}
  .mh-day {position:sticky;top:0;z-index:1;margin:4px 0 0;padding:6px 2px;background:#fff;color:#35506f;font-size:12.5px;font-weight:750;border-bottom:1px solid #e3ecf8}
  .mh-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;padding:10px 12px;border:1px solid #d9e6f8;border-radius:12px;background:#fbfdff}
  .mh-top {grid-column:1;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
  .mh-param {font-weight:750;color:#133858;font-size:14px}
  .mh-val {grid-column:2;grid-row:1/3;align-self:center;text-align:right;white-space:nowrap}
  .mh-val b {font-size:20px;color:#0e3f9e;font-variant-numeric:tabular-nums}
  .mh-val span {font-size:11.5px;color:#62758d}
  .mh-meta {grid-column:1;display:flex;flex-wrap:wrap;gap:2px 10px;font-size:12.5px;color:#62758d}
  .mh-meta span:first-child {font-weight:700;color:#35506f}
  .mh-ref {font-family:Consolas,monospace;font-size:12px}
  .mh-note {grid-column:1/-1;margin:4px 0 0;font-size:12.5px;color:#35506f;overflow-wrap:anywhere}
  .mh-file {grid-column:1/-1;justify-self:start;margin-top:6px;padding:6px 12px;border:1px solid #cfe0fb;border-radius:8px;background:#fff;color:#0a4fd6;font-size:13px;font-weight:650;text-decoration:none}
  .mh-more {display:grid}
  .mh-more .btn {justify-content:center}
  @media (max-width:700px) {
    .mh-filters {grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
    .mh-filters #mh-quality {grid-column:1/-1}
    .mh-list {max-height:62vh}
  }
}
@layer readability {
  .mh-filters {grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  .mh-filters .form-control {min-height:38px!important;padding:6px 22px 6px 8px!important;font-size:13px!important;text-overflow:ellipsis;background-position:right 6px center!important}
  .mh-filters .mh-q {font-size:14px!important;padding-right:10px!important}
  .mh-meta {display:block!important;line-height:1.5}
  .mh-meta b {color:#35506f}
  .mh-ref {display:block}
  @media (max-width:700px) {
    .mh-filters {grid-template-columns:repeat(3,minmax(0,1fr))!important}
    .mh-filters #mh-quality {grid-column:auto!important}
    .mh-list {max-height:68vh!important}
  }
}

/* ==== alert-bands.css ==== */
/* C0–C4 of the two groups (A: cấp nước ao tôm, B: nuôi trực tiếp trên sông), read the same way everywhere (alert-bands.js):
   - the split pill "A C2 | B C3" (point picker, tables, resident page), the point's two group cards (overview)
   - trend charts: pale background per level, the level scale outside the plot at the right, the compact tooltip, the note under the chart
   - the colour scale of a parameter, the ladder of bands (threshold page, under the chart)
   Linked before responsive-system.css; layered with !important so it wins over the older chart-note and point-picker rules. */
@layer readability {
  /* ================================================================ the split pill: one half per group, on the shared level colours
     (soft background, ink text, line border, the group letter in the level colour) like every level badge of the software */
  .ab-pair {display:inline-flex!important;flex-wrap:wrap;align-items:center;gap:6px!important;vertical-align:middle;min-width:0}
  .ab-split {display:inline-flex!important;flex:none;border-radius:999px}
  .ab-half {display:inline-flex!important;align-items:center;gap:4px;padding:0 9px 0 3px;border:1px solid var(--status-line,color-mix(in srgb,var(--lv) 40%,#fff));background:var(--status-soft,color-mix(in srgb,var(--lv) 13%,#fff));color:var(--status-ink,#36516f);font-size:12px;font-weight:800;line-height:20px;white-space:nowrap}
  .ab-half:first-child {border-radius:999px 0 0 999px}
  .ab-half:last-child {border-radius:0 999px 999px 0}
  .ab-half:only-child {border-radius:999px}
  .ab-half + .ab-half {margin-left:-1px}
  .ab-half .ab-g {display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:var(--status,var(--lv));color:var(--on,#fff);font-size:9.5px;font-weight:900;line-height:1}
  .ab-half b {font-weight:800}
  .ab-pair-name {font-size:12.5px;font-weight:700;color:#36516f;white-space:nowrap}
  .ab-pair-sm .ab-half {gap:3px;padding:0 6px 0 2px;font-size:10.5px;line-height:16px}
  .ab-pair-sm .ab-half .ab-g {width:13px;height:13px;font-size:8px}
  table .ab-pair {flex-wrap:nowrap}

  /* ================================================================ overview point picker: icon, the pill A|B, what caused the higher level.
     The tiles are narrow (five in one card), so the level word gives way to the pill; a point without levels keeps its word, on two lines */
  body#royal-blue-app #ob-network.rb-station-navigation .ob-station-tabs .ob-station-tab .sa-bottom {display:flex!important;flex-direction:column!important;align-items:center!important;gap:4px!important;width:100%!important;min-width:0!important}
  body#royal-blue-app #ob-network.rb-station-navigation .ob-station-tabs .ob-station-tab .sa-status-chip {display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:4px!important;min-height:0!important;max-width:100%!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  body#royal-blue-app #ob-network.rb-station-navigation .ob-station-tabs .ob-station-tab .sa-status-chip svg {width:17px!important;height:17px!important}
  body#royal-blue-app #ob-network.rb-station-navigation .ob-station-tabs .ob-station-tab:has(.sa-groups) .sa-status-name {display:none!important}
  body#royal-blue-app #ob-network.rb-station-navigation .ob-station-tabs .ob-station-tab[data-station-alert="unknown"] .sa-groups {display:none!important}
  body#royal-blue-app #ob-network.rb-station-navigation .ob-station-tabs .ob-station-tab[data-station-alert="unknown"] .sa-status-name {display:block!important;white-space:normal!important;text-align:center!important;font-size:10.5px!important;line-height:1.25!important;font-weight:700!important}
  body#royal-blue-app #ob-network.rb-station-navigation .ob-station-tabs .ob-station-tab[data-station-alert="unknown"] .sa-status-chip {flex-direction:column!important;gap:2px!important}
  body#royal-blue-app #ob-network.rb-station-navigation .ob-station-tabs .ob-station-tab .sa-groups {display:flex!important;justify-content:center!important;max-width:100%!important;margin:0!important}
  body#royal-blue-app #ob-network.rb-station-navigation .ob-station-tabs .ob-station-tab .sa-groups .ab-half {padding:0 5px 0 2px!important;font-size:10px!important;line-height:15px!important}
  body#royal-blue-app #ob-network.rb-station-navigation .ob-station-tabs .ob-station-tab .sa-groups .ab-g {width:12px!important;height:12px!important;font-size:7.5px!important}
  body#royal-blue-app #ob-network.rb-station-navigation .ob-station-tabs .ob-station-tab .sa-cause {display:block!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px!important;font-weight:700!important;color:var(--status-ink,#5d718a)!important;line-height:1.3!important}

  /* ================================================================ overview "Tình trạng nước": the point's level, then one card per group,
     each with the standard level badge, the reason in short and what the group should do */
  body#royal-blue-app .hydro-hero.has-groups .hero-point-label {margin-right:6px;font-size:11px;font-weight:700;color:#62758d;letter-spacing:.2px}
  body#royal-blue-app .hero-groups.hero-groups-ab {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;gap:8px!important;margin:10px 0 8px!important;padding:0!important;list-style:none!important}
  body#royal-blue-app .hero-groups.hero-groups-ab li {display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:6px!important;min-width:0;margin:0!important;padding:9px 11px 10px!important;border:1px solid var(--status-line,color-mix(in srgb,var(--lv) 40%,#fff))!important;border-left:4px solid var(--status,var(--lv))!important;border-radius:10px!important;background:#fff!important}
  body#royal-blue-app .hero-groups-ab .hg-head {display:flex!important;align-items:center;gap:6px;min-width:0;max-width:100%;font-size:12px!important;font-weight:700!important;color:#36516f!important}
  body#royal-blue-app .hero-groups-ab .hg-head > span:last-child {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body#royal-blue-app .hero-groups-ab .hg-g {display:inline-grid;place-items:center;flex:none;width:18px;height:18px;border-radius:50%;background:#133858;color:#fff;font-size:10px;font-weight:900;line-height:1}
  body#royal-blue-app .hero-groups-ab .badge {margin:0!important}
  body#royal-blue-app .hero-groups-ab .hg-why {display:block!important;font-size:12px!important;line-height:1.45!important;color:#36516f!important;-webkit-line-clamp:unset!important}
  body#royal-blue-app .hero-groups-ab .hg-advice {display:block;padding-top:6px;border-top:1px dashed var(--status-line,color-mix(in srgb,var(--lv) 40%,#fff));font-style:normal;font-size:12px;line-height:1.45;font-weight:700;color:var(--status-ink,#36516f)}

  /* ================================================================ trend charts */
  /* the level scale at the right of the plot */
  body#royal-blue-app .chart-frame .chart text.chart-zone-label,
  :root body .chart-frame svg text.chart-zone-label {fill:var(--zone-ink)!important;font-weight:800!important;letter-spacing:0}
  body#royal-blue-app .chart-frame .chart text.chart-zone-rise, :root body .chart-frame svg text.chart-zone-rise {font-weight:700!important;opacity:.85}
  /* the key under the chart for the coloured background */
  body#royal-blue-app .chart-legend .chart-zone-key {display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:#5d718a}
  body#royal-blue-app .chart-legend .chart-zone-key i {display:inline-block;width:16px;height:10px;border-radius:3px;background:linear-gradient(180deg,#12a15055 0 33%,#f5c00066 33% 66%,#ff7a1a66 66%)}
  /* the old one-sided strip (a point without the two groups): limits wrap instead of running out of the tile */
  body#royal-blue-app .chart-threshold-note .th-rules li .th-lim {white-space:normal!important;flex-wrap:wrap}

  /* the tooltip: small, beside the point, the level line under the value */
  body#royal-blue-app .chart-frame .chart-tooltip {top:0;min-width:0!important;max-width:240px!important;padding:6px 9px 7px!important;border:1px solid #dbe5f2!important;border-radius:8px!important;background:#fffffff5!important;box-shadow:0 4px 14px rgba(22,55,94,.16)!important;color:#17375c!important;line-height:1.35!important;transition:left .06s linear,top .06s linear}
  body#royal-blue-app .chart-frame .chart-tooltip time {display:block!important;font-size:10.5px!important;line-height:1.4!important;color:#6f829b!important}
  body#royal-blue-app .chart-frame .chart-tooltip strong {display:block!important;font-size:14px!important;line-height:1.35!important;font-weight:800!important;color:var(--chart-accent)!important}
  body#royal-blue-app .chart-frame .chart-tooltip small {display:block!important;font-size:10.5px!important;line-height:1.4!important;color:#6f829b!important}
  body#royal-blue-app .chart-frame .chart-tooltip .tip-zone {display:grid!important;gap:1px;margin-top:4px;padding-top:4px;border-top:1px solid #edf2f8;font-style:normal;font-size:10.5px;line-height:1.4;color:#4f6178}
  body#royal-blue-app .chart-frame .chart-tooltip .tip-zone[hidden] {display:none!important}
  body#royal-blue-app .chart-frame .chart-tooltip .tip-zone b {justify-self:start;padding:0 7px;border:1px solid var(--status-line,color-mix(in srgb,var(--lv) 40%,#fff));border-radius:999px;background:var(--status-soft,color-mix(in srgb,var(--lv) 13%,#fff));color:var(--status-ink,#36516f);font-size:10.5px;font-weight:800;line-height:16px}

  /* the note under the chart */
  body#royal-blue-app .chart-legend .chart-group-note {gap:10px!important}
  body#royal-blue-app .chart-group-note .cg-paused {margin:0!important;padding:6px 10px!important;border-radius:8px!important;background:#f1f4f8!important;color:#4f6178!important;font-size:12px!important}
  body#royal-blue-app .chart-group-note .cg-tabs {display:inline-flex!important;flex-wrap:wrap;gap:0!important;margin:0!important;padding:3px!important;border-radius:11px!important;background:#eef3fa!important;justify-self:start;max-width:100%}
  body#royal-blue-app .chart-group-note .cg-tab {display:inline-flex!important;align-items:center!important;gap:7px!important;min-width:0;padding:6px 10px 6px 6px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#4f6178!important;font:600 12px/1.3 'Be Vietnam Pro',sans-serif!important;cursor:pointer;transition:background .15s,box-shadow .15s}
  body#royal-blue-app .chart-group-note .cg-tab:hover {background:#ffffffa8!important}
  body#royal-blue-app .chart-group-note .cg-tab[aria-selected="true"] {background:#fff!important;color:#133858!important;box-shadow:0 1px 3px rgba(19,56,88,.14)!important}
  body#royal-blue-app .chart-group-note .cg-tab:focus-visible {outline:3px solid #aac8ff!important;outline-offset:1px}
  body#royal-blue-app .chart-group-note .cg-tab-g {display:inline-grid;place-items:center;flex:none;width:20px;height:20px;border-radius:50%;background:#133858;color:#fff;font-size:10.5px;font-weight:900;line-height:1}
  body#royal-blue-app .chart-group-note .cg-tab[aria-selected="false"] .cg-tab-g {background:#8a9bb0}
  body#royal-blue-app .chart-group-note .cg-tab-name {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body#royal-blue-app .chart-group-note .cg-tab-lv {flex:none;padding:0 7px;border:1px solid var(--status-line,color-mix(in srgb,var(--lv) 40%,#fff));border-radius:999px;background:var(--status-soft,color-mix(in srgb,var(--lv) 13%,#fff));color:var(--status-ink,#36516f);font-size:11px;font-weight:800;line-height:17px}

  body#royal-blue-app .chart-group-note .cg-status {display:grid!important;gap:7px!important;padding:10px 12px!important;border:1px solid #e3ebf6!important;border-radius:10px!important;background:#fbfdff!important}
  body#royal-blue-app .chart-group-note .cg-reading {display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;gap:2px 6px!important;margin:0!important;color:#36516f!important;font-size:12.5px!important;line-height:1.5!important}
  body#royal-blue-app .chart-group-note .cg-reading > b {color:#133858!important;font-weight:800!important}
  body#royal-blue-app .chart-group-note .cg-reading > b:first-child {font-size:15px!important}
  body#royal-blue-app .chart-group-note .cg-held {flex:1 1 100%;font-size:11.5px;color:#62758d}
  body#royal-blue-app .chart-group-note .cg-point {margin:0!important;font-size:12px!important;line-height:1.5!important;color:#4f6178!important}
  body#royal-blue-app .chart-group-note .cg-point > b {color:#133858!important;font-weight:800!important}
  body#royal-blue-app .chart-group-note .cg-point > b::before {content:"";display:inline-block;width:8px;height:8px;margin-right:5px;border-radius:50%;background:var(--lv);vertical-align:1px}
  body#royal-blue-app .chart-group-note .cg-scale .ab-scale-row:not([data-audience]) {opacity:1}
  body#royal-blue-app .chart-group-note .cg-scale[data-group="A"] .ab-scale-row[data-audience="B"],
  body#royal-blue-app .chart-group-note .cg-scale[data-group="B"] .ab-scale-row[data-audience="A"] {opacity:.55}
  body#royal-blue-app .chart-group-note .cg-ladder-wrap {margin:0!important;padding:0!important;border:0!important;background:transparent!important}
  body#royal-blue-app .chart-group-note .cg-ladder-wrap > summary {display:list-item;cursor:pointer;margin:0 0 6px!important;color:#1a5fd0!important;font-size:12px!important;font-weight:700!important}
  body#royal-blue-app .chart-group-note .cg-foot {margin:6px 0 0!important;font-size:11px!important;line-height:1.45!important;color:#7a8ca3!important}

  /* the levels of a band as a progress line: reached (filled, ✓) or ahead (outlined, "còn 12′") */
  body#royal-blue-app .ab-progress {display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;gap:6px!important;margin:0!important;padding:0!important;list-style:none!important;counter-reset:none}
  body#royal-blue-app .ab-pstep {position:relative;display:inline-flex!important;align-items:center!important;gap:6px!important;margin:0!important;padding:2px 9px 2px 2px!important;border:1px solid var(--status-line,color-mix(in srgb,var(--lv) 40%,#fff))!important;border-radius:999px!important;background:#fff!important;color:#36516f!important;font-size:11.5px!important;font-weight:600!important;line-height:18px!important;white-space:nowrap}
  body#royal-blue-app .ab-pstep + .ab-pstep::before {content:"";position:absolute;left:-7px;top:50%;width:6px;border-top:1.5px solid #c5d2e2}
  body#royal-blue-app .ab-pstep b {display:inline-grid;place-items:center;min-width:26px;height:18px;padding:0 5px;border-radius:999px;background:var(--status-soft,color-mix(in srgb,var(--lv) 13%,#fff));color:var(--status-ink,#36516f);font-size:10.5px;font-weight:800}
  body#royal-blue-app .ab-pstep[data-reached="true"] {background:var(--status-soft,color-mix(in srgb,var(--lv) 13%,#fff))!important;color:var(--status-ink,#36516f)!important;font-weight:700!important}
  body#royal-blue-app .ab-pstep[data-reached="true"] b {background:var(--status,var(--lv));color:var(--on,#fff)}
  body#royal-blue-app .ab-pstep .ab-ok {font-style:normal;font-weight:900;color:#0b7a3b}
  body#royal-blue-app .ab-pstep .ab-left {font-style:normal;font-weight:700;color:#946b00}

  /* ================================================================ a level chip with its time: "C2 sau 30 phút" */
  body#royal-blue-app .ab-step, .citizen-dashboard .ab-step {display:inline-flex!important;align-items:center!important;gap:5px!important;padding:1px 8px 1px 2px!important;border:1px solid var(--status-line,color-mix(in srgb,var(--lv) 40%,#fff))!important;border-radius:999px!important;background:var(--status-soft,color-mix(in srgb,var(--lv) 13%,#fff))!important;color:var(--status-ink,#36516f)!important;font-size:11.5px!important;font-weight:600!important;line-height:17px!important;white-space:nowrap!important}
  body#royal-blue-app .ab-step b, .citizen-dashboard .ab-step b {display:inline-grid;place-items:center;min-width:24px;height:17px;padding:0 5px;border-radius:999px;background:var(--status,var(--lv))!important;color:#fff!important;font-size:10.5px!important;font-weight:800!important;letter-spacing:0!important}
  body#royal-blue-app .ab-step[data-alert-level="1"] b, .citizen-dashboard .ab-step[data-alert-level="1"] b, body#royal-blue-app .ab-pstep[data-alert-level="1"][data-reached="true"] b {color:#3d2c00!important}
  body#royal-blue-app .ab-arrow {margin:0 2px;font-style:normal;color:#9aabbf;font-size:11px}

  /* ================================================================ the ladder of one group */
  body#royal-blue-app .ab-ladder {display:grid!important;gap:4px!important;margin:0!important;padding:0!important;list-style:none!important}
  body#royal-blue-app .ab-rung {display:grid!important;grid-template-columns:minmax(92px,auto) minmax(0,1fr) auto!important;align-items:center!important;gap:4px 10px!important;min-width:0;margin:0!important;padding:5px 10px!important;border:1px solid #e6edf6!important;border-left:3px solid var(--status,var(--lv))!important;border-radius:8px!important;background:#fff!important}
  body#royal-blue-app .ab-rung.ab-normal {background:#f6fbf8!important;border-style:dashed!important;border-left-style:solid!important}
  body#royal-blue-app .ab-rung[data-now="true"] {background:color-mix(in srgb,var(--lv) 9%,#fff)!important;border-color:color-mix(in srgb,var(--lv) 55%,#fff)!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--lv) 35%,transparent)}
  body#royal-blue-app .ab-range {font-size:12.5px!important;font-weight:800!important;color:#133858!important;white-space:nowrap}
  body#royal-blue-app .ab-steps {display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:4px!important;min-width:0}
  body#royal-blue-app .ab-here {justify-self:end;padding:0 7px;border-radius:999px;background:#133858;color:#fff;font-style:normal;font-size:10.5px;font-weight:700;line-height:18px;white-space:nowrap}
  body#royal-blue-app .ab-empty {margin:0!important;font-size:12px!important;color:#7a8ca3!important}

  /* ================================================================ colour scale of a parameter, A over B */
  body#royal-blue-app .ab-scale {position:relative;display:grid!important;gap:5px!important;margin:4px 0 2px!important;padding:0 0 18px 66px!important}
  body#royal-blue-app .ab-scale-row {position:relative;display:block!important;height:16px}
  body#royal-blue-app .ab-scale-label {position:absolute;left:-66px;top:0;width:60px;font-size:11px!important;font-weight:800!important;line-height:16px;color:#36516f!important;white-space:nowrap}
  body#royal-blue-app .ab-scale-bar {position:relative;height:16px;overflow:hidden;border-radius:6px;background:#eef2f7}
  body#royal-blue-app .ab-scale-bar .ab-piece {position:absolute;top:0;bottom:0;display:block;background:var(--lv);box-shadow:inset -1px 0 0 rgba(255,255,255,.75)}
  body#royal-blue-app .ab-scale-bar .ab-piece[data-rises="true"] {background:repeating-linear-gradient(135deg,var(--lv) 0 5px,var(--lv-top) 5px 8px)}
  body#royal-blue-app .ab-scale-axis {position:absolute;left:66px;right:0;top:0;bottom:0;pointer-events:none}
  body#royal-blue-app .ab-scale-ticks {position:absolute;left:0;right:0;bottom:0;height:16px}
  body#royal-blue-app .ab-scale-ticks span {position:absolute;top:2px;transform:translateX(-50%);font-size:10.5px;font-weight:600;color:#62758d;white-space:nowrap}
  body#royal-blue-app .ab-scale-value {position:absolute;top:-3px;bottom:15px;width:0;border-left:2px solid #133858}
  body#royal-blue-app .ab-scale-value::before {content:"";position:absolute;top:-4px;left:-6px;border:5px solid transparent;border-top-color:#133858}

  @media (max-width:600px) {
    body#royal-blue-app .ab-rung {grid-template-columns:minmax(0,1fr) auto!important}
    body#royal-blue-app .ab-steps {grid-column:1 / -1}
    body#royal-blue-app .chart-group-note .cg-tabs {display:grid!important;grid-template-columns:1fr 1fr!important;width:100%}
    body#royal-blue-app .chart-group-note .cg-tab-name {white-space:normal;font-size:11px}
    body#royal-blue-app .ab-scale {padding-left:52px!important}
    body#royal-blue-app .ab-scale-label {left:-52px;width:48px;font-size:10px!important}
    body#royal-blue-app .ab-scale-axis {left:52px}
  }

  /* ================================================================ the overview trend card: the chart sits under its tabs, the note right below */
  @container obv (min-width:1000px) {
    body#royal-blue-app .ob-overview .analysis-trend .chart-content > :is(.chart-frame,.empty) {margin-top:6px!important;margin-bottom:0!important}
  }

  /* ================================================================ resident page */
  .citizen-dashboard .citizen-update .ab-pair, .citizen-dashboard .citizen-point .ab-pair {display:flex!important;margin-top:5px!important}

  /* ================================================================ threshold page: one row per range, both groups' levels in time */
  body#royal-blue-app .th-set-param .ab-scale {margin:6px 0 12px!important}
  body#royal-blue-app .th-set-param .th-set-table {table-layout:fixed!important;width:100%!important;min-width:0!important}
  body#royal-blue-app .th-set-param .th-set-table th:first-child, body#royal-blue-app .th-set-param .th-set-table td.th-range {width:30%!important}
  body#royal-blue-app .th-set-param .th-set-table td, body#royal-blue-app .th-set-param .th-set-table th {padding:7px 8px!important;min-width:0!important;white-space:normal!important;vertical-align:middle!important}
  body#royal-blue-app .th-set-table td.th-range {font-weight:800!important;color:#133858!important;white-space:normal!important}
  body#royal-blue-app .th-set-table tr.th-normal td {background:#f6fbf8!important;color:#4f6178!important}
  body#royal-blue-app .th-set-table .ab-steps {display:flex!important;flex-wrap:wrap!important;gap:4px!important}
  body#royal-blue-app .th-set-param .th-set-table .ab-step {white-space:nowrap!important}

  /* ================================================================ forecast */
  body#royal-blue-app .fc-groups-note {margin:0 0 10px!important;padding:7px 11px!important;border-radius:8px!important;background:#f3f6fb!important;color:#4f6178!important;font-size:12px!important;line-height:1.5!important}
}
@layer readability {
  /* phone: the point tiles are ~65 px wide, so the two halves of the pill stand one over the other */
  @media (max-width:600px) {
    body#royal-blue-app #ob-network.rb-station-navigation .ob-station-tabs .ob-station-tab .sa-groups .ab-split {flex-direction:column!important;gap:2px!important}
    body#royal-blue-app #ob-network.rb-station-navigation .ob-station-tabs .ob-station-tab .sa-groups .ab-half {margin:0!important;border-radius:999px!important}
  }
}
@layer readability {
  /* forecast: each point of "Cần chú ý" carries what its forecast value means for A and B */
  body#royal-blue-app .fc-watch-points li .ab-pair {grid-column:1 / -1;margin-top:4px}
}

/* ==== station-cards.css ==== */
/* Point cards (Điểm quan trắc): one soft gradient card per point, tinted by its alert level.
   head: source icon, name, level icon · body: the A / B group pills · foot: the deciding reading. New class names (pc-*) on purpose:
   the older tile rules (ob-station-tab, sa-*) no longer apply to these cards. */
@layer readability {
  /* the strip around the cards: no frame, a plain responsive grid */
  body#royal-blue-app .ov-panel .ob-station-tabs.pc-grid {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:12px!important;padding:6px 2px 10px!important;margin:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;align-items:stretch!important}

  body#royal-blue-app .pc-card {--pc-line:color-mix(in srgb,var(--pc-color) 22%,#e3eaf4);position:relative;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;min-width:0!important;width:100%!important;min-height:152px;padding:14px 16px 14px!important;margin:0!important;text-align:left!important;font:inherit;cursor:pointer;color:#0f2a4a!important;border:1px solid var(--pc-line)!important;border-radius:16px!important;background:linear-gradient(145deg,color-mix(in srgb,var(--pc-color) 15%,#fff) 0%,#fff 88%)!important;box-shadow:0 8px 20px -14px color-mix(in srgb,var(--pc-color) 60%,transparent)!important;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
  body#royal-blue-app .pc-card:hover {transform:translateY(-2px);box-shadow:0 14px 26px -14px color-mix(in srgb,var(--pc-color) 65%,transparent)!important}
  body#royal-blue-app .pc-card:focus-visible {outline:3px solid color-mix(in srgb,var(--pc-color) 50%,#fff)!important;outline-offset:2px}
  body#royal-blue-app .pc-card.selected {border-color:var(--pc-color)!important;box-shadow:0 0 0 2px var(--pc-color),0 14px 26px -14px color-mix(in srgb,var(--pc-color) 65%,transparent)!important}
  body#royal-blue-app .pc-card.pc-unknown {--pc-color:#94a3b8;background:linear-gradient(145deg,#eef2f8 0%,#fff 90%)!important;box-shadow:0 6px 16px -14px rgba(60,80,110,.45)!important}
  body#royal-blue-app .pc-card.pc-unknown.selected {box-shadow:0 0 0 2px #7b8ba3,0 10px 22px -14px rgba(60,80,110,.5)!important;border-color:#7b8ba3!important}

  body#royal-blue-app .pc-head {display:flex!important;align-items:center;gap:10px;min-width:0}
  body#royal-blue-app .pc-ico {flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#e1f4f7;color:#0e7490}
  body#royal-blue-app .pc-ico[data-kind="measured"] {background:#2563eb;color:#fff;box-shadow:0 6px 12px -8px #2563eb}
  body#royal-blue-app .pc-ico svg {width:21px;height:21px}
  body#royal-blue-app .pc-name {flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:18px;line-height:1.2;font-weight:800;letter-spacing:-.1px;color:#0f2a4a}
  body#royal-blue-app .pc-level {flex:none;display:grid;place-items:center}
  body#royal-blue-app .pc-level svg {width:28px;height:28px;display:block}

  body#royal-blue-app .pc-groups {display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
  body#royal-blue-app .pc-pill {--lv:#94a3b8;display:inline-flex;align-items:center;gap:7px;padding:3px 13px 3px 3px;border-radius:999px;border:1px solid color-mix(in srgb,var(--lv) 38%,#fff);background:color-mix(in srgb,var(--lv) 11%,#fff);white-space:nowrap}
  body#royal-blue-app .pc-pill i {display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--lv);color:#fff;font:800 12px/1 inherit;font-style:normal}
  body#royal-blue-app .pc-pill[data-level="1"] i {color:#4a2f00}
  body#royal-blue-app .pc-pill b {font-size:16px;font-weight:800;color:color-mix(in srgb,var(--lv) 72%,#0b1f38)}
  body#royal-blue-app .pc-pill[data-level="none"] {background:#eef2f7;border-color:#dbe3ee}
  body#royal-blue-app .pc-pill[data-level="none"] b {color:#7b8ba3}
  body#royal-blue-app .pc-pill:not([data-group]) {padding-left:13px}

  body#royal-blue-app .pc-foot {display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:auto;padding-top:11px;border-top:1px solid color-mix(in srgb,var(--pc-color) 16%,#dfe7f1)}
  body#royal-blue-app .pc-groups+.pc-foot {margin-top:14px}
  body#royal-blue-app .pc-param {font-size:14px;font-weight:600;color:#5d718a}
  body#royal-blue-app .pc-val {font-size:25px;line-height:1;font-weight:800;color:#0f2a4a;white-space:nowrap}
  body#royal-blue-app .pc-val small {margin-left:4px;font-size:11px;font-weight:600;color:#8a9bb0}

  body#royal-blue-app .pc-empty {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;margin-top:8px;text-align:center}
  body#royal-blue-app .pc-empty i {display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:2px dashed #94a3b8;color:#94a3b8;font:800 17px/1 inherit;font-style:normal}
  body#royal-blue-app .pc-empty span {font-size:15px;font-weight:600;color:#5d718a}

  @media (max-width:760px) {
    body#royal-blue-app .ov-panel .ob-station-tabs.pc-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
    body#royal-blue-app .pc-card {min-height:136px;padding:12px 12px!important;border-radius:14px!important}
    body#royal-blue-app .pc-card:last-child:nth-child(odd) {grid-column:1/-1}
    body#royal-blue-app .pc-name {font-size:16px}
    body#royal-blue-app .pc-ico {width:34px;height:34px}
    body#royal-blue-app .pc-groups {gap:6px;margin-top:12px}
    body#royal-blue-app .pc-pill {gap:5px;padding-right:9px}
    body#royal-blue-app .pc-pill b {font-size:14px}
    body#royal-blue-app .pc-val {font-size:21px}
  }
  @media (prefers-reduced-motion:reduce) {body#royal-blue-app .pc-card {transition:none}body#royal-blue-app .pc-card:hover {transform:none}}
}

/* ==== overview-panel.css ==== */
/* Overview panel: the figures of the whole route and the point cards in one white panel, with a few quiet effects:
   a soft light in the corner, a wave line at the foot, the entrance of the numbers and cards (first draw only), a halo on the level icon of
   points that need attention, a sheen on the card under the pointer. Everything stops under prefers-reduced-motion.
   Layouts: figures in a row above five cards (default) · figures on the left, cards on the right (wide screens, 1600 px and up) ·
   phone (700 px and down): figures card, then one horizontal card per point. */
@layer readability {
  body#royal-blue-app .ov-panel {--ov-line:#e6edf6;position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin:0 0 14px;padding:0;border:1px solid var(--ov-line);border-radius:20px;background:#fff;box-shadow:0 18px 40px -30px rgba(20,55,110,.5);overflow:hidden}
  /* soft light in the top-left corner and a wave line along the foot */
  body#royal-blue-app .ov-panel::before {content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(520px 260px at 0% 0%,rgba(37,99,235,.09),transparent 70%),radial-gradient(420px 220px at 100% 100%,rgba(14,165,198,.08),transparent 70%)}
  body#royal-blue-app .ov-panel::after {content:"";position:absolute;left:0;right:0;bottom:0;height:46px;z-index:-1;pointer-events:none;opacity:.55;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='46' viewBox='0 0 240 46'%3E%3Cpath d='M0 28c20 0 20-10 40-10s20 10 40 10 20-10 40-10 20 10 40 10 20-10 40-10 20 10 40 10' fill='none' stroke='%232b6fe0' stroke-opacity='.13' stroke-width='2'/%3E%3Cpath d='M0 38c20 0 20-10 40-10s20 10 40 10 20-10 40-10 20 10 40 10 20-10 40-10 20 10 40 10' fill='none' stroke='%230ea5c6' stroke-opacity='.11' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 100%/240px 46px;animation:ov-wave 22s linear infinite}

  /* default: the figures run in one row above the cards */
  body#royal-blue-app .ov-summary {display:flex;flex-wrap:wrap;align-items:center;gap:14px 36px;padding:20px 26px 18px;border-bottom:1px solid var(--ov-line)}
  body#royal-blue-app .ov-eyebrow {flex:1 0 100%;margin:0!important;font-size:13px!important;font-weight:700!important;letter-spacing:.9px;text-transform:uppercase;color:#4b6584!important}
  body#royal-blue-app .ov-stats {display:grid;grid-template-columns:repeat(3,minmax(104px,1fr));align-items:end;width:min(100%,380px)}
  body#royal-blue-app .ov-stat {display:flex;flex-direction:column;align-items:center;padding:0 8px;text-align:center}
  body#royal-blue-app .ov-stat+.ov-stat {border-left:1px solid var(--ov-line)}
  body#royal-blue-app .ov-ico {display:none}
  body#royal-blue-app .ov-fig {display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
  body#royal-blue-app .ov-fig strong {font-size:40px;line-height:1.05;font-weight:800;color:#0f2a4a;font-variant-numeric:tabular-nums}
  body#royal-blue-app .ov-fig span {font-size:14px;font-weight:600;color:#6b7f98;white-space:nowrap}
  body#royal-blue-app .ov-stat[data-kind="attention"] .ov-fig strong {color:#f97316}
  body#royal-blue-app .ov-stat[data-kind="unknown"] .ov-fig strong {color:#4a6fa5}
  body#royal-blue-app .ov-stat[data-zero="true"]:not([data-kind="total"]) .ov-fig strong {color:#12a150}

  body#royal-blue-app .ov-events {display:flex;align-items:center;gap:12px;text-decoration:none;color:#0f2a4a}
  body#royal-blue-app .ov-events>span:last-child {display:grid;gap:1px;font-size:15px;font-weight:400;color:#2457d6}
  body#royal-blue-app .ov-events strong {font-size:15px;font-weight:400;color:#2457d6}
  body#royal-blue-app .ov-events small {font-size:12px;color:#7a8da6}
  body#royal-blue-app .ov-bell {position:relative;display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;color:#9aa8bb;background:#f1f4f9}
  body#royal-blue-app .ov-events[data-open="true"] .ov-bell {color:#f97316;background:#fff1e4}
  body#royal-blue-app .ov-events[data-open="true"] .ov-bell::after {content:"";position:absolute;top:7px;right:8px;width:9px;height:9px;border-radius:50%;background:#f97316;box-shadow:0 0 0 2px #fff;animation:ov-ping 2.2s ease-out infinite}
  body#royal-blue-app .ov-events[data-open="true"] .ov-bell svg {transform-origin:50% 8%;animation:ov-ring 6s ease-in-out infinite}
  body#royal-blue-app .ov-events:hover .ov-bell {filter:brightness(.97)}
  body#royal-blue-app .ov-events:focus-visible {outline:3px solid rgba(37,99,235,.35);outline-offset:4px;border-radius:10px}
  body#royal-blue-app .ov-updated {display:flex;align-items:center;gap:8px;margin-left:auto;font-size:14px;font-weight:400;color:#2457d6}
  body#royal-blue-app .ov-updated svg {flex:none;color:#2457d6}
  body#royal-blue-app .ov-updated strong {font-weight:400;color:#2457d6;white-space:nowrap}

  body#royal-blue-app .ov-points {min-width:0;padding:20px 26px 28px}
  body#royal-blue-app .ov-points-head h2 {margin:0!important;font-size:15px!important;line-height:1.3!important;font-weight:750!important;letter-spacing:-.4px!important;color:#244baa!important}
  body#royal-blue-app .ov-points-head p {margin:4px 0 0 28px!important;font-size:12.5px!important;color:#6b7f98!important}
  body#royal-blue-app .ov-points-head h2 {display:flex!important;align-items:center;gap:8px}
  body#royal-blue-app .ov-h-ico {display:grid;place-items:center;flex:none;width:20px;height:20px;color:#244baa}
  body#royal-blue-app .ov-h-ico svg {width:20px;height:20px}
  body#royal-blue-app .ov-points .ob-station-tabs.pc-grid {margin-top:14px!important;padding:2px 2px 4px!important}

  /* wide screens: figures on the left, cards on the right */
  @media (min-width:1600px) {
    body#royal-blue-app .ov-panel {grid-template-columns:minmax(260px,300px) minmax(0,1fr)}
    body#royal-blue-app .ov-summary {display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:18px;padding:24px 24px 22px;border-bottom:0;border-right:1px solid var(--ov-line)}
    body#royal-blue-app .ov-stats {width:auto}
    body#royal-blue-app .ov-events {padding-top:14px;border-top:1px solid var(--ov-line)}
    body#royal-blue-app .ov-updated {margin-left:0}
    body#royal-blue-app .ov-points {padding:22px 24px 28px}
  }

  /* the reading is right-aligned with its unit, whichever way the foot is laid out */
  body#royal-blue-app .pc-val {text-align:right}

  /* cards: a sheen sweeps over the one under the pointer; points that need attention get a halo on the level icon */
  body#royal-blue-app .pc-card {overflow:hidden;container-type:inline-size}
  body#royal-blue-app .pc-card::after {content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.65) 50%,transparent 65%);transform:translateX(-120%);transition:transform .7s ease}
  body#royal-blue-app .pc-card:hover::after {transform:translateX(120%)}
  body#royal-blue-app .pc-active .pc-level {position:relative}
  body#royal-blue-app .pc-active .pc-level::before {content:"";position:absolute;inset:-3px;border-radius:50%;background:var(--pc-color);opacity:.28;animation:ov-halo 2.6s ease-out infinite}
  body#royal-blue-app .pc-card[data-station-alert="4"] .pc-level::before,body#royal-blue-app .pc-card[data-station-alert="3"] .pc-level::before {animation-duration:1.7s}
  body#royal-blue-app .pc-level svg {position:relative}
  body#royal-blue-app .pc-card.selected {animation:ov-glow 3.4s ease-in-out infinite}

  /* narrow cards (five across at 1100–1400 px, or beside the figures): tighter pills and numbers */
  @container (max-width:200px) {
    body#royal-blue-app .pc-name {font-size:16px}
    body#royal-blue-app .pc-ico {width:34px;height:34px}
    body#royal-blue-app .pc-groups {gap:6px}
    body#royal-blue-app .pc-pill {gap:5px;padding-right:9px}
    body#royal-blue-app .pc-pill i {width:22px;height:22px;font-size:11px}
    body#royal-blue-app .pc-pill b {font-size:14px}
    body#royal-blue-app .pc-val {font-size:22px}
    body#royal-blue-app .pc-val small {display:block;margin:2px 0 0;text-align:right}
    body#royal-blue-app .pc-foot {align-items:flex-end}
    body#royal-blue-app .pc-param {font-size:13px}
  }

  /* the entrance (first draw only): the panel rises, the numbers and the cards follow one after another */
  body#royal-blue-app .ov-panel.ov-enter {animation:ov-rise .5s ease both}
  body#royal-blue-app .ov-panel.ov-enter .ov-stat {animation:ov-rise .55s ease both}
  body#royal-blue-app .ov-panel.ov-enter .ov-stat:nth-child(2) {animation-delay:.08s}
  body#royal-blue-app .ov-panel.ov-enter .ov-stat:nth-child(3) {animation-delay:.16s}
  body#royal-blue-app .ov-panel.ov-enter .pc-card {animation:ov-rise .55s ease both}
  body#royal-blue-app .ov-panel.ov-enter .pc-card:nth-child(1) {animation-delay:.10s}
  body#royal-blue-app .ov-panel.ov-enter .pc-card:nth-child(2) {animation-delay:.18s}
  body#royal-blue-app .ov-panel.ov-enter .pc-card:nth-child(3) {animation-delay:.26s}
  body#royal-blue-app .ov-panel.ov-enter .pc-card:nth-child(4) {animation-delay:.34s}
  body#royal-blue-app .ov-panel.ov-enter .pc-card:nth-child(5) {animation-delay:.42s}
  body#royal-blue-app .ov-panel.ov-enter .pc-card.selected {animation:ov-rise .55s ease both,ov-glow 3.4s ease-in-out 1s infinite}

  @keyframes ov-rise {from {opacity:0;transform:translateY(10px)} to {opacity:1;transform:none}}
  @keyframes ov-wave {from {background-position-x:0} to {background-position-x:240px}}
  @keyframes ov-ping {0% {box-shadow:0 0 0 2px #fff,0 0 0 2px rgba(249,115,22,.55)} 70%,100% {box-shadow:0 0 0 2px #fff,0 0 0 9px rgba(249,115,22,0)}}
  @keyframes ov-ring {0%,88%,100% {transform:rotate(0)} 91% {transform:rotate(14deg)} 94% {transform:rotate(-12deg)} 97% {transform:rotate(7deg)}}
  @keyframes ov-halo {0% {transform:scale(.8);opacity:.38} 80%,100% {transform:scale(1.55);opacity:0}}
  @keyframes ov-glow {0%,100% {box-shadow:0 0 0 2px var(--pc-color),0 14px 26px -14px color-mix(in srgb,var(--pc-color) 60%,transparent)} 50% {box-shadow:0 0 0 2px var(--pc-color),0 0 0 7px color-mix(in srgb,var(--pc-color) 16%,transparent),0 16px 28px -14px color-mix(in srgb,var(--pc-color) 70%,transparent)}}

  /* tablet: figures wrap, the updated time moves under them */
  @media (max-width:1000px) {
    body#royal-blue-app .ov-summary {gap:14px 24px;padding:18px 20px 16px}
    body#royal-blue-app .ov-updated {margin-left:0;flex:1 0 100%}
    body#royal-blue-app .ov-points {padding:18px 20px 22px}
  }

  /* phone: two separate cards (figures, then the points), each point as one horizontal card:
     icon · name + level icon + A/B pills on the left, the deciding reading on the right */
  @media (max-width:700px) {
    body#royal-blue-app .ov-panel {display:flex!important;flex-direction:column!important;gap:12px!important;margin:0 0 12px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
    body#royal-blue-app .ov-panel::before,body#royal-blue-app .ov-panel::after {display:none}
    body#royal-blue-app .ov-summary,body#royal-blue-app .ov-points {border:1px solid var(--ov-line);border-radius:18px;background:#fff;box-shadow:0 12px 26px -22px rgba(20,55,110,.5)}
    body#royal-blue-app .ov-summary {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0;padding:16px 12px 12px}
    body#royal-blue-app .ov-eyebrow {display:none!important}
    body#royal-blue-app .ov-stats {grid-column:1/-1;width:auto;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;margin-bottom:18px}
    body#royal-blue-app .ov-stat {flex-direction:row;align-items:center;gap:7px;padding:0 6px;text-align:left}
    body#royal-blue-app .ov-stat:first-child {padding-left:0}
    body#royal-blue-app .ov-ico {display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:11px;background:#e8f0ff;color:#2b6fe0}
    body#royal-blue-app .ov-stat[data-kind="attention"] .ov-ico {background:#fff0e3;color:#f97316}
    body#royal-blue-app .ov-stat[data-kind="unknown"] .ov-ico {background:#e3f6f4;color:#0e8f8a}
    body#royal-blue-app .ov-ico svg {width:19px;height:19px}
    body#royal-blue-app .ov-fig {align-items:flex-start;gap:0}
    body#royal-blue-app .ov-fig strong {font-size:25px}
    body#royal-blue-app .ov-fig span {font-size:11px;font-weight:500;white-space:normal;line-height:1.2}
    body#royal-blue-app .ov-events {display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;margin:0!important;padding:12px 2px 0!important;border-top:1px solid var(--ov-line);gap:7px;min-width:0}
    body#royal-blue-app .ov-bell {width:auto;height:auto;background:transparent!important;border-radius:0}
    body#royal-blue-app .ov-events[data-open="true"] .ov-bell::after {display:none}
    body#royal-blue-app .ov-events[data-open="true"]::before {content:"";order:1;flex:none;width:9px;height:9px;border-radius:50%;background:#f97316;animation:ov-ping 2.2s ease-out infinite}
    body#royal-blue-app .ov-events>span:last-child {order:2;display:block;font-size:13px}
    body#royal-blue-app .ov-events strong {font-size:13px;font-weight:400}
    body#royal-blue-app .ov-bell svg {width:19px;height:19px}
    body#royal-blue-app .ov-events small {display:none}
    body#royal-blue-app .ov-events,body#royal-blue-app .ov-updated {align-self:stretch}
    body#royal-blue-app .ov-updated {flex:none;margin:0;padding:12px 2px 0 8px;border-top:1px solid var(--ov-line);justify-content:flex-end;gap:5px;font-size:11.5px;white-space:nowrap}
    body#royal-blue-app .ov-updated svg {width:14px;height:14px}
    body#royal-blue-app .ov-points {padding:16px 12px 12px}
    body#royal-blue-app .ov-points-head p {font-size:12.5px!important}
    body#royal-blue-app .ov-points .ob-station-tabs.pc-grid {grid-template-columns:minmax(0,1fr)!important;gap:9px!important;margin-top:10px!important}

    body#royal-blue-app .pc-card {display:grid!important;grid-template-columns:auto auto minmax(0,1fr) auto;grid-template-areas:"ico name lvl read" "ico groups groups read";align-items:center!important;column-gap:11px!important;row-gap:6px!important;min-height:0;padding:10px 12px!important;border-radius:14px!important}
    body#royal-blue-app .pc-head {display:contents!important}
    body#royal-blue-app .pc-ico {grid-area:ico;align-self:center;width:40px;height:40px;border-radius:12px}
    body#royal-blue-app .pc-ico svg {width:19px;height:19px}
    body#royal-blue-app .pc-name {grid-area:name;flex:none;font-size:17px}
    body#royal-blue-app .pc-level {grid-area:lvl;justify-self:start}
    body#royal-blue-app .pc-level svg {width:22px;height:22px}
    body#royal-blue-app .pc-groups {grid-area:groups;margin:0;gap:5px;flex-wrap:nowrap}
    body#royal-blue-app .pc-pill {gap:4px;padding:2px 8px 2px 2px}
    body#royal-blue-app .pc-pill i {width:19px;height:19px;font-size:10px}
    body#royal-blue-app .pc-pill b {font-size:12.5px}
    body#royal-blue-app .pc-groups+.pc-foot,body#royal-blue-app .pc-foot {grid-area:read;margin:0;padding:0;border:0;display:grid;justify-items:end;gap:1px;align-self:center}
    body#royal-blue-app .pc-param {font-size:12px}
    body#royal-blue-app .pc-val {font-size:22px}
    body#royal-blue-app .pc-val small {display:block;margin:0;font-size:11px;text-align:right}
    body#royal-blue-app .pc-card.pc-unknown {grid-template-areas:"ico name name read";min-height:56px}
    body#royal-blue-app .pc-empty {grid-area:read;flex-direction:row;margin:0;gap:0}
    body#royal-blue-app .pc-empty i {display:none}
    body#royal-blue-app .pc-empty span {font-size:13px}
    body#royal-blue-app .pc-card:last-child:nth-child(odd) {grid-column:auto}
  }
  @media (prefers-reduced-motion:reduce) {
    body#royal-blue-app .ov-panel,body#royal-blue-app .ov-panel *,body#royal-blue-app .ov-panel::after,body#royal-blue-app .ov-bell::after {animation:none!important}
    body#royal-blue-app .pc-card::after {display:none}
    body#royal-blue-app .pc-active .pc-level::before {display:none}
  }
}

/* ==== public-timeline.css ==== */
/* Timeline "chạy lại màu nước" inside the residents' map frame (public-timeline.js). Settings: Quản trị › Timeline màu nước. */
@layer readability {
  .ptl{position:absolute!important;left:8px!important;right:8px!important;bottom:50px;z-index:650!important;max-width:460px!important;padding:3px 8px!important;border:1px solid #d5e0ec!important;border-radius:10px!important;background:#ffffffe8!important;box-shadow:0 3px 12px #1d3a5f2e!important;backdrop-filter:blur(4px)!important;min-width:0!important;box-sizing:border-box!important}
  .ptl-top{top:var(--ptl-top,10px)!important;min-height:var(--ptl-h,0)!important;display:flex!important;flex-direction:column!important;justify-content:center!important;bottom:auto!important;right:auto!important;left:var(--ptl-left)!important;width:var(--ptl-w)!important}
  .ptl[hidden],.ptl-more[hidden],.ptl-live[hidden]{display:none!important}
  .ptl-player{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important}
  .ptl-play{flex:0 0 auto!important;display:grid!important;place-items:center!important;width:22px!important;height:22px!important;min-height:0!important;border-radius:50%!important;border:0!important;background:#1f5fa8!important;color:#fff!important;line-height:1!important;cursor:pointer!important;padding:0!important;transition:background .15s!important}
  .ptl-play:hover{background:#174b87!important}
  .ptl-play svg{width:10px!important;height:10px!important;display:block!important}
  .ptl-range{-webkit-appearance:none!important;appearance:none!important;flex:1 1 auto!important;min-width:0!important;margin:0!important;height:16px!important;background:transparent!important;cursor:pointer!important}
  .ptl-range::-webkit-slider-runnable-track{height:3px!important;border-radius:2px!important;background:linear-gradient(to right,#1f5fa8 var(--p,0%),#d3deea var(--p,0%))!important}
  .ptl-range::-moz-range-track{height:3px!important;border-radius:2px!important;background:#d3deea!important}
  .ptl-range::-moz-range-progress{height:3px!important;border-radius:2px!important;background:#1f5fa8!important}
  .ptl-range::-webkit-slider-thumb{-webkit-appearance:none!important;appearance:none!important;width:11px!important;height:11px!important;margin-top:-4px!important;border-radius:50%!important;border:2px solid #1f5fa8!important;background:#fff!important;box-shadow:0 1px 3px #1d3a5f40!important}
  .ptl-range::-moz-range-thumb{width:7px!important;height:7px!important;border-radius:50%!important;border:2px solid #1f5fa8!important;background:#fff!important}
  .ptl-range:hover::-webkit-slider-thumb{box-shadow:0 0 0 4px #1f5fa81f!important}
  .ptl-time{flex:0 0 auto!important;width:11.4ch!important;text-align:right!important;font-variant-numeric:tabular-nums!important;font-family:inherit!important;font-weight:700!important;color:#16324f!important;font-size:.72rem!important;white-space:nowrap!important;overflow:hidden!important}
  .ptl-row{display:flex!important;gap:5px!important;align-items:flex-start!important;min-width:0!important;margin-top:4px!important}
  .ptl-btn{flex:0 0 auto!important;height:22px!important;min-height:0!important;border:1px solid #c9d6e4!important;border-radius:7px!important;background:#fff!important;color:#16324f!important;font:inherit!important;font-size:.7rem!important;font-weight:600!important;padding:0 7px!important;cursor:pointer!important;line-height:1!important}
  .ptl-speed{width:36px!important;padding:0!important}
  .ptl-seg{flex:0 0 auto!important;display:inline-flex!important;border:1px solid #c9d6e4!important;border-radius:7px!important;overflow:hidden!important}
  .ptl-seg button,.ptl-strip button{min-height:0!important;height:22px!important;border:0!important;background:#fff!important;color:#16324f!important;font:inherit!important;font-size:.7rem!important;font-weight:600!important;padding:0 7px!important;cursor:pointer!important;line-height:1!important;white-space:nowrap!important}
  .ptl-seg button[aria-pressed="true"]{background:#16324f!important;color:#fff!important}
  .ptl-strip{flex:1 1 0!important;min-width:0!important;display:flex!important;flex-wrap:wrap!important;gap:3px!important}
  .ptl-strip button{flex:0 0 auto!important;border:1px solid #c9d6e4!important;border-radius:999px!important;padding:0 5px!important}
  .ptl-strip button[aria-pressed="true"]{background:#1f5fa8!important;border-color:#1f5fa8!important;color:#fff!important}
  .ptl-label{flex:0 0 auto!important;height:22px!important;line-height:22px!important;font-size:.7rem!important;font-weight:700!important;color:#16324f!important;white-space:nowrap!important}
  .ptl-i{padding:0 6px!important}
  .ptl-play:focus-visible,.ptl-range:focus-visible,.ptl-btn:focus-visible,.ptl-seg button:focus-visible,.ptl-strip button:focus-visible{outline:3px solid #f0a800!important;outline-offset:1px!important}
  .ptl-more{margin:6px 0 0!important;padding:6px 8px!important;border-radius:7px!important;background:#f3f7fb!important;font-size:.7rem!important;line-height:1.35!important;color:#33485f!important}
  .ptl-legend{display:flex!important;flex-wrap:wrap!important;gap:2px 8px!important;margin:0 0 4px!important}
  .ptl-legend span{display:inline-flex!important;align-items:center!important;gap:3px!important}
  .ptl-legend i{display:inline-block!important;width:8px!important;height:8px!important;border-radius:50%!important}
  .ptl-none{background:#aab6c3!important}
  .ptl-note{color:#5d6e82!important;margin:0!important}
  /* 24-10-2026: the map under the timeline already has its colour legend, so the ⓘ panel keeps only the words; the how-to line stands out */
  body:has(.map-level-legend) .ptl-legend{display:none!important}
  .ptl-note .ptl-intro{display:block!important;margin:0 0 2px!important;color:#16324f!important;font-weight:600!important}
  .ptl-more:has(.ptl-note){line-height:1.4!important}
  @media (max-width:700px){.ptl{left:6px!important;right:6px!important;max-width:none!important}.ptl-row{flex-wrap:wrap!important}.ptl-strip{flex:1 1 100%!important;order:3!important;flex-wrap:nowrap!important;justify-content:space-between!important}.ptl-i{margin-left:auto!important}.ptl-speed{display:none!important}}
  /* phone: the bar joins the map-tools panel under the map (public-timeline.js docks it there) and the tools shrink to one row of six.
     The prefix matches the specificity of the panel's own rules in coastal-presentation.css. */
  /* the page header stays above every map layer (the map bar had z-index 60, the same as the header, and painted over it while scrolling) */
  :root body#royal-blue-app .citizen-header{z-index:1000!important}
  .ptl-below{position:static!important;max-width:none!important;width:auto!important;margin:6px 0 0!important;box-shadow:none!important;background:#f3f7fb!important;backdrop-filter:none!important;left:auto!important;right:auto!important;bottom:auto!important;padding:5px 8px!important}
  .ptl-below .ptl-speed{display:none!important}
  .ptl-dock{position:static!important;grid-column:1/-1!important;max-width:none!important;width:auto!important;border:0!important;box-shadow:none!important;background:transparent!important;backdrop-filter:none!important;padding:0 0 2px!important;transform:none!important}
  .ptl-dock .ptl-label,.ptl-dock .ptl-speed{display:none!important}
  .ptl-dock .ptl-row{flex-wrap:nowrap!important}
  .ptl-dock .ptl-strip{flex:1 1 0!important;order:0!important;flex-wrap:wrap!important;justify-content:space-between!important;gap:2px!important}
  :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools:has(.ptl){grid-template-columns:.9fr 1fr 1.9fr .9fr .9fr!important;gap:5px!important;padding:6px 8px!important;align-items:center!important}
  :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools:has(.ptl) > button,
  :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools:has(.ptl) .map-quick-rotation button{grid-column:auto!important;width:100%!important;min-width:0!important;justify-self:stretch!important;height:34px!important;min-height:0!important;padding:0 4px!important;font-size:.72rem!important;gap:3px!important;white-space:nowrap!important}
  :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools:has(.ptl) > button svg{width:18px!important;height:18px!important;display:block!important;margin:0!important}
  :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools:has(.ptl) > #map-home{font-size:0!important}
  :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools:has(.ptl) > #map-fit{display:none!important}
  :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools:has(.ptl) > #map-home{order:1!important}
  :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools:has(.ptl) [data-map-orientation="north"]{order:2!important}
  :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools:has(.ptl) [data-map-orientation="river"]{order:3!important}
  :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools:has(.ptl) [data-map-turn="-45"]{order:4!important}
  :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools:has(.ptl) [data-map-turn="45"]{order:5!important}
  :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools .ptl-dock button{min-height:0!important;height:22px!important;width:auto!important;padding:0 7px!important;border:1px solid #c9d6e4!important;border-radius:999px!important;background:#fff!important;color:#16324f!important;font-size:.7rem!important;font-weight:600!important;white-space:nowrap!important;gap:0!important;justify-content:center!important;grid-column:auto!important}
  :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools .ptl-dock .ptl-play{width:22px!important;height:22px!important;padding:0!important;border:0!important;border-radius:50%!important;background:#1f5fa8!important;color:#fff!important}
  :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools .ptl-dock .ptl-strip button{padding:0 4px!important}
  :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools .ptl-dock button[aria-pressed="true"]{background:#1f5fa8!important;border-color:#1f5fa8!important;color:#fff!important}
  :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools .ptl-dock .ptl-i,
  :root body#royal-blue-app .public-observatory-map:not(.expanded) .map-floating-tools .ptl-dock .ptl-live{border-radius:7px!important}
  @media (max-width:700px){
    /* phone: the layer picker and the basemap picker share the row equally; the enlarge button is gone (the map already fills the width) */
    :root:root body#royal-blue-app #river-workspace.public-observatory-map:not(.expanded) .gis-lens,
    :root:root body#royal-blue-app #content #river-workspace.public-observatory-map:not(.expanded) .gis-lens{width:calc(50% - 4px)!important;margin-left:0!important;box-sizing:border-box!important}
    :root:root body#royal-blue-app #river-workspace.public-observatory-map:not(.expanded) .gis-lens .gis-lens-menu,
    :root:root body#royal-blue-app #content #river-workspace.public-observatory-map:not(.expanded) .gis-lens .gis-lens-menu,
    :root:root body#royal-blue-app #river-workspace.public-observatory-map:not(.expanded) .gis-lens summary,
    :root:root body#royal-blue-app #content #river-workspace.public-observatory-map:not(.expanded) .gis-lens summary{width:100%!important;box-sizing:border-box!important}
    :root:root body#royal-blue-app #river-workspace.public-observatory-map:not(.expanded) .map-topbar .gis-control-row,
    :root:root body#royal-blue-app #content #river-workspace.public-observatory-map:not(.expanded) .map-topbar .gis-control-row{display:block!important;margin-left:calc(50% + 4px)!important;width:calc(50% - 4px)!important;box-sizing:border-box!important}
    :root:root body#royal-blue-app #river-workspace.public-observatory-map:not(.expanded) .gis-lens summary,
    :root:root body#royal-blue-app #content #river-workspace.public-observatory-map:not(.expanded) .gis-lens summary,
    :root:root body#royal-blue-app #river-workspace.public-observatory-map:not(.expanded) .gis-basemap-toolbar summary,
    :root:root body#royal-blue-app #content #river-workspace.public-observatory-map:not(.expanded) .gis-basemap-toolbar summary{height:40px!important;min-height:40px!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important}
    :root:root body#royal-blue-app #river-workspace.public-observatory-map:not(.expanded) .gis-basemap-toolbar,
    :root:root body#royal-blue-app #content #river-workspace.public-observatory-map:not(.expanded) .gis-basemap-toolbar{display:block!important}
    :root:root body#royal-blue-app #river-workspace.public-observatory-map:not(.expanded) .gis-basemap-toolbar .map-basemap-select,
    :root:root body#royal-blue-app #content #river-workspace.public-observatory-map:not(.expanded) .gis-basemap-toolbar .map-basemap-select,
    :root:root body#royal-blue-app #river-workspace.public-observatory-map:not(.expanded) .gis-basemap-toolbar summary,
    :root:root body#royal-blue-app #content #river-workspace.public-observatory-map:not(.expanded) .gis-basemap-toolbar summary{width:100%!important;box-sizing:border-box!important;justify-content:center!important}
    :root:root body#royal-blue-app:not(.community-view) #river-workspace.public-observatory-map:not(.expanded) .gis-lens{top:-4px!important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) #map-fullscreen,:root body#royal-blue-app .public-observatory-map:not(.expanded) .map-expand-button{display:none!important}
    /* staff pages: the map frame grows with the tools panel under the map, as on the residents' page (their own rule fixes it to 54vh) */
    :root body#royal-blue-app .shared-observatory-map.public-observatory-map:not(.expanded) .river-canvas{height:auto!important;min-height:0!important;max-height:none!important}
    /* ... and the map is as tall as the residents' one (their own rules fix the staff map to 54vh) */
    :root body#royal-blue-app.royal-blue-interface .shared-observatory-map.public-observatory-map:not(.expanded) #geographic-map{height:clamp(470px,68vh,640px)!important}
    @supports (height:1svh){:root body#royal-blue-app.royal-blue-interface .shared-observatory-map.public-observatory-map:not(.expanded) #geographic-map{height:clamp(470px,68svh,640px)!important}}
    /* phone: the compass sits in the top right corner, level with the zoom buttons, and the layer key stops short of it */
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .river-canvas .river-quality-control{width:min(228px,calc(100% - 112px))!important}
    :root body#royal-blue-app .public-observatory-map:not(.expanded) .river-canvas .map-compass{top:10px!important;right:10px!important;left:auto!important}
  }
  /* the three counters of the old "Thông tin quan trắc" card now sit in the hero, where the GPS note was */
  .coastal-kpis{display:flex!important;gap:8px!important;margin-top:16px!important;max-width:460px!important}
  .coastal-kpis span{flex:1 1 auto!important;justify-content:center!important;min-width:0!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:5px!important;white-space:nowrap!important;padding:7px 8px!important;border:1px solid #ffffff38!important;border-radius:10px!important;background:#ffffff1f!important;color:#cfe3f0!important;font-size:.72rem!important;line-height:1.2!important}
  .coastal-kpis i{flex:0 0 auto!important;display:grid!important;place-items:center!important;width:24px!important;height:24px!important;border-radius:50%!important;background:#ffffff26!important;color:#9fd8ff!important;font-style:normal!important}
  .coastal-kpis span:nth-child(2) i{color:#ffd36b!important}
  .coastal-kpis span:nth-child(3) i{color:#c4d3e0!important}
  .coastal-kpis svg{width:15px!important;height:15px!important}
  .coastal-kpis b{flex:0 0 auto!important;display:block!important;color:#fff!important;font-size:1.35rem!important;font-weight:800!important;line-height:1.1!important}
}

/* ==== quick-nav.css ==== */
/* Điều hướng nhanh (25-10-2026, docs/KE_HOACH_TOI_UU_DIEU_HUONG.md): the quick search (button in the top bar + dialog), the "Đi tiếp" links
   between pages, and the "Gần đây" row of Quản trị. Code: quick-nav.js, app.js (nextLinks). Device files only adjust sizes. */
@layer readability {
  /* ---------- top-bar button: magnifier only; from 1280 px with its label and the Ctrl K hint ---------- */
  body#royal-blue-app.community-view .qn-button {display:none !important}
  body#royal-blue-app:not(.community-view) .topbar-right .qn-button {display:inline-flex !important;align-items:center;justify-content:center;gap:8px;flex:none}
  body#royal-blue-app .qn-button .qn-button-label,body#royal-blue-app .qn-button .qn-kbd {display:none}
  @media (min-width:1280px) {
    body#royal-blue-app .topbar-right .qn-button {width:auto !important;min-width:0 !important;padding:0 10px 0 12px !important;border:1px solid #d9e5f5 !important;border-radius:10px !important;background:#f6f9ff !important;color:#36507a !important}
    body#royal-blue-app .qn-button .qn-button-label {display:inline;font-size:13px;font-weight:600;white-space:nowrap}
    body#royal-blue-app .qn-button .qn-kbd {display:inline-block;padding:1px 6px;border:1px solid #d3deef;border-radius:6px;background:#fff;color:#6a7d99;font-family:inherit;font-weight:600;font-size:11px;line-height:16px;white-space:nowrap}
    body#royal-blue-app .topbar-right .qn-button:hover {background:#eaf1ff !important;border-color:#bcd0f0 !important}
  }

  /* ---------- dialog ---------- */
  .qn-overlay {position:fixed;inset:0;z-index:1500;display:flex;align-items:flex-start;justify-content:center;padding:10vh 16px 16px;background:rgba(12,32,62,.42);box-sizing:border-box}
  .qn-overlay[hidden] {display:none !important}
  body.qn-open {overflow:hidden}
  .qn-dialog {display:flex;flex-direction:column;width:min(640px,100%);max-height:min(560px,78vh);overflow:hidden;border-radius:16px;background:#fff;box-shadow:0 24px 60px -20px rgba(10,30,60,.55);font-family:inherit}
  .qn-field {display:flex;align-items:center;gap:10px;margin:0;padding:12px 14px;border-bottom:1px solid #e6edf8;color:#4c6386}
  .qn-field svg {flex:none}
  .qn-input {flex:1 1 auto;min-width:0;height:36px;border:0 !important;outline:0;background:transparent;color:#132a4c;font-family:inherit;font-weight:500;font-size:16px;line-height:1.3;box-shadow:none !important}
  .qn-input::-webkit-search-cancel-button {display:none}
  .qn-close {flex:none;min-height:30px;padding:0 9px;border:1px solid #d9e3f2;border-radius:8px;background:#f5f8fd;color:#5a6f8f;font-family:inherit;font-weight:600;font-size:12px;line-height:1;cursor:pointer}
  .qn-results {flex:1 1 auto;margin:0;padding:6px;overflow:auto;list-style:none;overscroll-behavior:contain}
  .qn-group {padding:10px 10px 4px;color:#6b7f9e;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
  .qn-item {display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 10px;border-radius:10px;color:#1d3558;cursor:pointer}
  .qn-item svg {flex:none;color:#3f68b5}
  .qn-item .qn-label {flex:1 1 auto;min-width:0;overflow:hidden;font-size:14px;font-weight:600;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
  .qn-item .qn-hint {flex:none;max-width:40%;overflow:hidden;color:#7286a4;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
  .qn-item.is-active,.qn-item:hover {background:#eaf1ff}
  .qn-item.is-active {box-shadow:inset 3px 0 0 #2f6fe0}
  .qn-empty {padding:22px 12px;color:#6b7f9e;font-size:14px;text-align:center}
  .qn-foot {display:flex;flex-wrap:wrap;gap:14px;margin:0;padding:8px 14px;border-top:1px solid #e6edf8;color:#7286a4;font-size:12px}
  .qn-foot kbd {display:inline-block;min-width:16px;margin-right:3px;padding:0 4px;border:1px solid #d3deef;border-radius:5px;background:#f7f9fd;font-family:inherit;font-weight:600;font-size:11px;line-height:16px;text-align:center}

  /* ---------- "Đi tiếp" links (Quan trắc, Đo thủ công, alert dialog) ---------- */
  body#royal-blue-app #content .qn-next,body#royal-blue-app #modal-root .qn-next {display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px;padding:0}
  body#royal-blue-app #modal-root .qn-next-alert {margin:0 0 12px}
  body#royal-blue-app .qn-next .qn-next-link {display:inline-flex !important;align-items:center;gap:6px;min-height:34px;margin:0 !important;padding:6px 12px !important;border:1px solid #d6e2f4;border-radius:999px;background:#f5f9ff;color:#1f4f9e !important;font-size:13px !important;font-weight:600 !important;line-height:1.2 !important;text-decoration:none !important;white-space:nowrap}
  body#royal-blue-app .qn-next .qn-next-link:hover {background:#e8f0ff;border-color:#b9cdf0}
  body#royal-blue-app .qn-next .qn-next-link:focus-visible {outline:3px solid #aac8ff;outline-offset:1px}
  body#royal-blue-app .qn-next .qn-next-link svg {flex:none;width:16px;height:16px}

  /* ---------- "Gần đây" of Quản trị ---------- */
  body#royal-blue-app #content .qn-recent {display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:10px 0 4px;padding:0}
  body#royal-blue-app #content .qn-recent-title {display:inline-flex;align-items:center;gap:5px;color:#6b7f9e;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
  body#royal-blue-app #content .qn-recent-chip {display:inline-flex !important;align-items:center;gap:6px;min-height:30px;margin:0 !important;padding:4px 10px !important;border:1px solid #dbe5f3;border-radius:999px;background:#fff;color:#2a466f !important;font-size:12.5px !important;font-weight:600 !important;line-height:1.2 !important;text-decoration:none !important;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
  body#royal-blue-app #content .qn-recent-chip:hover {background:#eef4ff;border-color:#bcd0f0}
  body#royal-blue-app #content .qn-recent-chip svg {flex:none;width:15px;height:15px;color:#3f68b5}
}

/* ==== desk-page.css ==== */
/* Điều hành nhanh (26-10-2026), see desk-page.js. Same language as the rest of the software (white cards on the blue-grey page, gradient icon
   tiles like .rb-heading-icon, pill chips, #133858 text, #175adb primary), with one colour per card so a glance tells where you are:
   Phản ánh amber · Tin người dân orange · Dịch bệnh red · Nhận tin green · NH₃ violet · Nhật ký blue. Toggles for switches, a changed value is
   marked, the save bar floats above the bottom of the screen (above the phone/tablet bottom bar). Grids fit 320 px to 2K. */
body#royal-blue-app .dk-tone-amber {--dk:#c77b00;--dk-2:#f5a524;--dk-soft:#fff7e6;--dk-line:#f3d79a}
body#royal-blue-app .dk-tone-orange {--dk:#e0620a;--dk-2:#ff9a3d;--dk-soft:#fff2e8;--dk-line:#f8c9a0}
body#royal-blue-app .dk-tone-red {--dk:#d13a32;--dk-2:#ff6b5e;--dk-soft:#fff1ef;--dk-line:#f5beb8}
body#royal-blue-app .dk-tone-green {--dk:#0f9a4c;--dk-2:#34c77b;--dk-soft:#eaf8f0;--dk-line:#b5e5c8}
body#royal-blue-app .dk-tone-violet {--dk:#6a48e0;--dk-2:#9b7bff;--dk-soft:#f3efff;--dk-line:#d6cafb}
body#royal-blue-app .dk-tone-blue {--dk:#175adb;--dk-2:#4b8bff;--dk-soft:#eef4ff;--dk-line:#c6d9fb}
body#royal-blue-app .dk-tone-slate {--dk:#4f6380;--dk-2:#8a9bb2;--dk-soft:#f2f5f9;--dk-line:#d6dee9}
body#royal-blue-app .dk-tone-teal {--dk:#0d8a85;--dk-2:#2fc2b8;--dk-soft:#e8f8f7;--dk-line:#b2e4e0}
body#royal-blue-app .dk-page svg {flex:none}

/* badges under the heading */
body#royal-blue-app .dk-badges {display:flex;flex-wrap:wrap;gap:8px;margin:-4px 0 14px}
body#royal-blue-app .dk-badge {display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 12px;border:1px solid #d9e6fb;border-radius:999px;background:#fff;color:#33507a;font-size:12.5px;font-weight:600;box-shadow:0 1px 2px rgba(20,60,120,.05)}
body#royal-blue-app .dk-badge svg {color:#175adb}
body#royal-blue-app .dk-badge.is-on {border-color:#b5e5c8;background:#eaf8f0;color:#0b6b36}
body#royal-blue-app .dk-badge.is-on svg {color:#0f9a4c}
body#royal-blue-app .dk-badge.is-off {border-color:#f3d79a;background:#fff7e6;color:#7a4b00}
body#royal-blue-app .dk-badge.is-off svg {color:#c77b00}

/* summary tiles */
body#royal-blue-app .dk-stats {display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:0 0 16px}
body#royal-blue-app .dk-stat {position:relative;display:flex;align-items:center;gap:14px;min-width:0;padding:16px;overflow:hidden;border:1px solid #dfe9fa;border-radius:16px;background:#fff;color:#133858;text-decoration:none;box-shadow:0 1px 2px rgba(20,60,120,.06),0 8px 24px -18px rgba(20,60,120,.35);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
body#royal-blue-app .dk-stat::before {content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,var(--dk),var(--dk-2))}
body#royal-blue-app .dk-stat::after {content:"";position:absolute;right:-30px;bottom:-40px;width:120px;height:120px;border-radius:50%;background:radial-gradient(circle,var(--dk-soft),transparent 70%);pointer-events:none}
body#royal-blue-app .dk-stat:hover {transform:translateY(-2px);border-color:var(--dk-line);box-shadow:0 2px 4px rgba(20,60,120,.06),0 16px 32px -18px rgba(20,60,120,.45)}
body#royal-blue-app .dk-stat:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
body#royal-blue-app .dk-stat-ico {position:relative;display:grid;place-items:center;flex:none;width:48px;height:48px;border:1px solid var(--dk-line);border-radius:14px;background:linear-gradient(145deg,#fff,var(--dk-soft));color:var(--dk)}
body#royal-blue-app .dk-stat.is-hot .dk-stat-ico {border-color:transparent;background:linear-gradient(135deg,var(--dk),var(--dk-2));color:#fff;box-shadow:0 8px 18px -8px var(--dk)}
body#royal-blue-app .dk-stat.is-hot .dk-stat-ico::after {content:"";position:absolute;inset:-4px;border:2px solid var(--dk-2);border-radius:17px;opacity:0;animation:dk-pulse 2.4s ease-out infinite}
body#royal-blue-app .dk-stat-body {position:relative;display:grid;gap:1px;min-width:0;flex:1}
body#royal-blue-app .dk-stat-label {font-size:12px;font-weight:700;color:#62758d;text-transform:uppercase;letter-spacing:.3px;line-height:1.3}
body#royal-blue-app .dk-stat strong {font-size:30px;line-height:1.1;font-weight:800;color:var(--dk);font-variant-numeric:tabular-nums}
body#royal-blue-app .dk-stat small {font-size:12.5px;color:#62758d;line-height:1.35}
body#royal-blue-app .dk-stat-go {position:relative;display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:var(--dk-soft);color:var(--dk);transition:transform .18s ease}
body#royal-blue-app .dk-stat:hover .dk-stat-go {transform:translateX(3px)}

/* tabs */
body#royal-blue-app .dk-nav {display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px;padding:6px;border:1px solid #dfe9fa;border-radius:16px;background:#fff;box-shadow:0 1px 2px rgba(20,60,120,.05)}
body#royal-blue-app .dk-nav-item {display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:6px 14px 6px 6px;border-radius:12px;color:#274766;font-size:14px;font-weight:650;text-decoration:none;white-space:nowrap;transition:background .15s ease,color .15s ease,box-shadow .15s ease}
body#royal-blue-app .dk-nav-ico {display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--dk-soft);color:var(--dk);transition:background .15s ease,color .15s ease}
body#royal-blue-app .dk-nav-item:hover {background:var(--dk-soft);color:var(--dk)}
body#royal-blue-app .dk-nav-item:focus-visible {outline:3px solid #aac8ff;outline-offset:1px}
body#royal-blue-app .dk-nav-item[aria-current="page"] {background:linear-gradient(135deg,var(--dk),var(--dk-2));color:#fff;box-shadow:0 8px 18px -10px var(--dk)}
body#royal-blue-app .dk-nav-item[aria-current="page"] .dk-nav-ico {background:rgba(255,255,255,.22);color:#fff}
body#royal-blue-app .dk-nav-n {min-width:22px;padding:1px 7px;border-radius:999px;background:var(--dk);color:#fff;font-size:12px;font-weight:800;text-align:center}
body#royal-blue-app .dk-nav-item[aria-current="page"] .dk-nav-n {background:#fff;color:var(--dk)}

/* entrance */
body#royal-blue-app .dk-body {display:grid;gap:16px;min-width:0}
body#royal-blue-app .dk-body>* {margin:0;animation:dk-rise .35s ease both}
body#royal-blue-app .dk-body>*:nth-child(2) {animation-delay:.05s}
body#royal-blue-app .dk-body>*:nth-child(3) {animation-delay:.1s}
body#royal-blue-app .dk-body>*:nth-child(4) {animation-delay:.15s}
@keyframes dk-rise {from {opacity:0;transform:translateY(8px)} to {opacity:1;transform:none}}
@keyframes dk-pulse {0% {opacity:.7;transform:scale(.92)} 70%,100% {opacity:0;transform:scale(1.18)}}

/* callout */
body#royal-blue-app .dk-callout {display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:14px 16px;border:1px solid var(--dk-line);border-left:4px solid var(--dk);border-radius:14px;background:linear-gradient(100deg,var(--dk-soft),#fff 85%);min-width:0}
body#royal-blue-app .dk-callout-ico {display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:#fff;color:var(--dk);box-shadow:0 2px 6px -2px rgba(20,60,120,.25)}
body#royal-blue-app .dk-callout-text {flex:1 1 200px;min-width:0;font-size:13.5px;line-height:1.6;color:#244477}
body#royal-blue-app .dk-callout-text b {color:#133858}
body#royal-blue-app .dk-panel .dk-callout {margin:0 0 14px}

/* panel */
body#royal-blue-app .dk-panel {min-width:0;margin:0}
body#royal-blue-app .dk-panel-head {display:flex;flex-wrap:wrap;align-items:center;gap:12px 14px;margin:0 0 16px;padding:0 0 14px;border-bottom:1px solid #edf2fb}
body#royal-blue-app .dk-panel-ico {display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:14px;background:linear-gradient(135deg,var(--dk),var(--dk-2));color:#fff;box-shadow:0 10px 20px -10px var(--dk)}
body#royal-blue-app .dk-panel-title {flex:1 1 260px;min-width:0}
body#royal-blue-app .dk-panel-title h2 {margin:0;font-size:18px;line-height:1.3;color:#133858}
body#royal-blue-app .dk-panel-title p {margin:3px 0 0;font-size:13.5px;line-height:1.5;color:#4a6382}
body#royal-blue-app .dk-panel-actions {display:flex;flex-wrap:wrap;gap:8px}
body#royal-blue-app .dk-empty {display:grid;justify-items:center;gap:8px;padding:28px 12px;border:1px dashed #cfe0fb;border-radius:14px;background:#fbfdff;color:#12a150;text-align:center}
body#royal-blue-app .dk-empty p {margin:0;color:#4a6382;font-size:14px}
body#royal-blue-app .dk-foot {display:flex;align-items:flex-start;gap:6px;margin:12px 0 0;font-size:12.5px;line-height:1.5;color:#62758d}
body#royal-blue-app .dk-foot svg {margin-top:2px}

/* form groups */
body#royal-blue-app .dk-form {display:grid;gap:16px;min-width:0}
body#royal-blue-app .dk-group {margin:0;padding:14px 16px 16px;border:1px solid #e3ecfb;border-radius:16px;background:linear-gradient(180deg,#fbfdff,#fff);min-width:0}
body#royal-blue-app .dk-group>legend {display:inline-flex;align-items:center;gap:7px;padding:0 8px;font-size:12px;font-weight:800;color:var(--dk);text-transform:uppercase;letter-spacing:.4px}
body#royal-blue-app .dk-group>legend b {padding:0 7px;border-radius:999px;background:var(--dk-soft);color:var(--dk);font-size:11px;line-height:18px}
body#royal-blue-app .dk-group.is-changed {border-color:var(--dk-2);box-shadow:0 0 0 3px var(--dk-soft)}

/* value tiles */
body#royal-blue-app .dk-tiles {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:12px;min-width:0}
body#royal-blue-app .dk-tile {position:relative;display:grid;gap:8px;align-content:start;margin:0 !important;padding:12px;border:1px solid #e1eafa;border-radius:14px;background:#fff;min-width:0;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
body#royal-blue-app .dk-tile>label {display:flex;align-items:flex-start;gap:9px;font-size:13px;font-weight:600;line-height:1.4;color:#133858}
body#royal-blue-app .dk-tile-ico {display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:9px;background:var(--dk-soft);color:var(--dk)}
body#royal-blue-app .dk-tile .form-control,body#royal-blue-app .dk-coef .form-control {width:100%;min-width:0;min-height:42px;box-sizing:border-box;border-radius:10px}
body#royal-blue-app .dk-tile:focus-within,body#royal-blue-app .dk-coef:focus-within {border-color:var(--dk-2);box-shadow:0 0 0 3px var(--dk-soft)}
body#royal-blue-app :is(.dk-tile,.dk-coef,.dk-switch).is-changed {border-color:var(--dk-2);background:linear-gradient(180deg,var(--dk-soft),#fff)}
body#royal-blue-app :is(.dk-tile,.dk-coef).is-changed::after {content:"Đã sửa";position:absolute;top:-9px;right:12px;padding:1px 8px;border-radius:999px;background:var(--dk);color:#fff;font-size:11px;font-weight:700}

/* level chips (C1–C4) */
body#royal-blue-app .dk-levels {display:flex;flex-wrap:wrap;gap:8px}
body#royal-blue-app .dk-level {position:relative;cursor:pointer}
body#royal-blue-app .dk-level input {position:absolute;opacity:0;pointer-events:none}
body#royal-blue-app .dk-level span {display:inline-grid;place-items:center;min-width:48px;min-height:40px;padding:0 12px;border:2px solid var(--lv);border-radius:12px;background:#fff;color:var(--lv);font-weight:800;transition:background .15s ease,color .15s ease}
body#royal-blue-app .dk-level input:checked+span {background:var(--lv);color:#fff;box-shadow:0 6px 14px -8px var(--lv)}
body#royal-blue-app .dk-level input:focus-visible+span {outline:3px solid #aac8ff;outline-offset:2px}

/* switches */
body#royal-blue-app .dk-switches {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:10px;min-width:0}
body#royal-blue-app .dk-switch {position:relative;display:flex;align-items:center;gap:12px;min-height:52px;padding:10px 14px;border:1px solid #e1eafa;border-radius:14px;background:#fff;cursor:pointer;min-width:0;transition:border-color .15s ease,background .15s ease}
body#royal-blue-app .dk-switch:hover {border-color:var(--dk-line)}
body#royal-blue-app .dk-switch:has(input:checked) {border-color:var(--dk-line);background:linear-gradient(90deg,var(--dk-soft),#fff)}
body#royal-blue-app .dk-switch-text {flex:1;min-width:0;font-size:13.5px;line-height:1.45;color:#133858;overflow-wrap:anywhere}
body#royal-blue-app .dk-switch input,body#royal-blue-app .dk-mini-switch input {position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
body#royal-blue-app .dk-toggle {position:relative;flex:none;width:44px;height:24px;border-radius:999px;background:#cfd8e6;transition:background .2s ease}
body#royal-blue-app .dk-toggle::after {content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s ease}
body#royal-blue-app :is(.dk-switch,.dk-mini-switch) input:checked+.dk-toggle {background:linear-gradient(135deg,var(--dk),var(--dk-2))}
body#royal-blue-app :is(.dk-switch,.dk-mini-switch) input:checked+.dk-toggle::after {transform:translateX(20px)}
body#royal-blue-app :is(.dk-switch,.dk-mini-switch) input:focus-visible+.dk-toggle {outline:3px solid #aac8ff;outline-offset:2px}
body#royal-blue-app :is(.dk-switch,.dk-mini-switch) input:disabled+.dk-toggle {opacity:.55}
body#royal-blue-app .dk-mini-switch {position:relative;display:inline-flex;cursor:pointer}

/* NH₃ coefficients */
body#royal-blue-app .dk-coefs {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:14px;min-width:0}
body#royal-blue-app .dk-coef {position:relative;display:flex;gap:14px;padding:14px;border:1px solid #e1eafa;border-radius:16px;background:#fff;min-width:0;transition:border-color .15s ease,box-shadow .15s ease}
body#royal-blue-app .dk-coef-sym {display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,var(--dk),var(--dk-2));color:#fff;font:italic 700 21px/1 Georgia,"Times New Roman",serif;box-shadow:0 10px 20px -10px var(--dk)}
body#royal-blue-app .dk-coef-main {display:grid;gap:7px;flex:1;min-width:0}
body#royal-blue-app .dk-coef-main>label {font-size:13px;font-weight:600;line-height:1.4;color:#133858}
body#royal-blue-app .dk-coef-foot {display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
body#royal-blue-app .dk-default {font-size:12px;color:#62758d}
body#royal-blue-app .dk-default b {color:#33507a}
body#royal-blue-app .dk-delta:empty {display:none}
body#royal-blue-app .dk-delta {padding:1px 8px;border-radius:999px;background:var(--dk-soft);color:var(--dk);font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
body#royal-blue-app .dk-delta.is-over {background:#fde7e5;color:#a1271b}
body#royal-blue-app .dk-reset {display:inline-flex;align-items:center;gap:5px;margin-left:auto;min-height:30px;padding:0 10px;border:1px solid var(--dk-line);border-radius:999px;background:#fff;color:var(--dk);font:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:background .15s ease}
body#royal-blue-app .dk-reset:hover {background:var(--dk-soft)}
body#royal-blue-app .dk-reset:disabled {opacity:.5;cursor:default}

/* editable rows */
body#royal-blue-app .dk-rows-hint {margin:0 0 10px;font-size:13px;color:#4a6382;line-height:1.5}
body#royal-blue-app .dk-rows .table-wrap {border:1px solid #e1eafa;border-radius:12px;overflow-x:auto;margin:0 0 10px;background:#fff}
body#royal-blue-app .dk-table {width:100%;border-collapse:collapse;font-size:13.5px}
body#royal-blue-app .dk-table th {padding:9px 10px;background:#f3f8ff;color:#4a6382;font-size:12px;font-weight:700;text-align:left;text-transform:uppercase;letter-spacing:.25px;white-space:nowrap;border-bottom:1px solid #dbe7fb}
body#royal-blue-app .dk-edit th {background:var(--dk-soft);color:var(--dk);border-bottom-color:var(--dk-line)}
body#royal-blue-app .dk-table td {padding:7px 10px;vertical-align:middle;border-bottom:1px solid #edf2fb;color:#244477}
body#royal-blue-app .dk-table tbody tr:last-child td {border-bottom:0}
body#royal-blue-app .dk-table tbody tr:hover td {background:#f8fbff}
body#royal-blue-app .dk-table td small {display:block;margin-top:2px;font-size:11.5px;color:#7a8ca3;overflow-wrap:anywhere}
body#royal-blue-app .dk-edit td input[type="text"],body#royal-blue-app .dk-edit td textarea,body#royal-blue-app .dk-edit td select {width:100%;min-width:120px;min-height:40px;box-sizing:border-box;padding:4px 10px;border:1px solid #cfe0fb;border-radius:9px;background:#fff;color:#133858;font:inherit;font-size:13.5px}
body#royal-blue-app .dk-edit td :is(input,select,textarea):focus {outline:none;border-color:var(--dk-2);box-shadow:0 0 0 3px var(--dk-soft)}
body#royal-blue-app .dk-edit td input[type="color"] {width:46px;height:40px;padding:3px;border:1px solid #cfe0fb;border-radius:9px;background:#fff;cursor:pointer}
body#royal-blue-app .dk-edit td.dk-del {width:1%;text-align:right}
body#royal-blue-app .dk-x {display:inline-grid;place-items:center;width:38px;height:38px;border:1px solid #f5c6c0;border-radius:10px;background:#fff5f4;color:#c0392b;cursor:pointer;transition:background .15s ease,transform .15s ease}
body#royal-blue-app .dk-x:hover {background:#fde7e5;transform:scale(1.05)}
body#royal-blue-app .dk-add {display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:42px;border:1.5px dashed var(--dk-line);border-radius:12px;background:var(--dk-soft);color:var(--dk);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;transition:border-color .15s ease,background .15s ease}
body#royal-blue-app .dk-add:hover {border-color:var(--dk-2);background:#fff}
body#royal-blue-app .dk-add span {font-size:18px;line-height:1}
body#royal-blue-app .dk-nowrap {white-space:nowrap}

/* floating save bar */
body#royal-blue-app .dk-save {position:sticky;bottom:14px;z-index:6;display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;padding:10px 12px;border:1px solid #d9e6fb;border-radius:16px;background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 14px 34px -16px rgba(20,60,120,.45)}
body#royal-blue-app .dk-save-state {display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#62758d;white-space:nowrap}
body#royal-blue-app .dk-save-dot {width:10px;height:10px;border-radius:50%;background:#b8c4d6}
body#royal-blue-app .dk-save.is-dirty {border-color:var(--dk-line)}
body#royal-blue-app .dk-save.is-dirty .dk-save-state {color:var(--dk)}
body#royal-blue-app .dk-save.is-dirty .dk-save-dot {background:var(--dk);animation:dk-dot 1.6s ease-out infinite}
@keyframes dk-dot {0% {box-shadow:0 0 0 0 var(--dk-line)} 100% {box-shadow:0 0 0 8px transparent}}
body#royal-blue-app .dk-reason {display:flex;align-items:center;gap:8px;flex:1 1 300px;min-width:0;min-height:44px;padding:0 12px;border:1px solid #cfe0fb;border-radius:12px;background:#fff;color:var(--dk)}
body#royal-blue-app .dk-reason:focus-within {border-color:var(--dk-2);box-shadow:0 0 0 3px var(--dk-soft)}
body#royal-blue-app .dk-reason input {flex:1;min-width:0;min-height:42px;border:0;outline:0;background:none;color:#133858;font:inherit;font-size:14px}
body#royal-blue-app .dk-save-btn {min-height:44px;padding:0 18px;border:0;border-radius:12px;background:linear-gradient(135deg,var(--dk),var(--dk-2)) !important;color:#fff !important;font-weight:700;box-shadow:0 10px 20px -10px var(--dk);transition:transform .15s ease,box-shadow .15s ease}
body#royal-blue-app .dk-save-btn:hover {transform:translateY(-1px);box-shadow:0 14px 24px -10px var(--dk)}

/* field signals */
body#royal-blue-app .dk-signals {list-style:none;margin:0;padding:0;display:grid;gap:12px}
body#royal-blue-app .dk-signal {display:grid;grid-template-columns:86px minmax(0,1fr);overflow:hidden;border:1px solid #e1eafa;border-radius:16px;background:#fff;box-shadow:0 8px 22px -18px rgba(20,60,120,.4)}
body#royal-blue-app .dk-signal-level {display:grid;place-content:center;justify-items:center;gap:2px;padding:12px 6px;background:linear-gradient(160deg,var(--lv),color-mix(in srgb,var(--lv) 70%,#000));color:#fff}
body#royal-blue-app .dk-signal-level b {font-size:26px;line-height:1;font-weight:800}
body#royal-blue-app .dk-signal-level span {font-size:11px;opacity:.9;text-transform:uppercase;letter-spacing:.3px}
body#royal-blue-app .dk-signal-main {padding:12px 14px;min-width:0}
body#royal-blue-app .dk-signal-head {display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
body#royal-blue-app .dk-signal-head strong {display:inline-flex;align-items:center;gap:5px;font-size:15px;color:#133858}
body#royal-blue-app .dk-signal-head strong svg {color:var(--lv)}
body#royal-blue-app .dk-signal-head small {display:inline-flex;align-items:center;gap:4px;margin-left:auto;color:#62758d}
body#royal-blue-app .dk-signal-note {margin:6px 0 0;font-size:13.5px;line-height:1.55;color:#244477;overflow-wrap:anywhere}
body#royal-blue-app .dk-signal-act {display:grid;grid-template-columns:auto minmax(200px,1fr) auto auto;gap:8px;align-items:center;margin-top:12px;padding-top:12px;border-top:1px dashed #e1eafa}
body#royal-blue-app .dk-signal-to {display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;color:#4a6382;white-space:nowrap}
body#royal-blue-app .dk-signal-to span {display:inline-flex;align-items:center;gap:4px}
body#royal-blue-app .dk-signal-act select,body#royal-blue-app .dk-signal-act input {min-width:0;min-height:42px;box-sizing:border-box;padding:0 10px;border:1px solid #cfe0fb;border-radius:10px;background:#fff;color:#133858;font:inherit;font-size:14px}
body#royal-blue-app .dk-signal-act :is(select,input):focus {outline:none;border-color:#e0620a;box-shadow:0 0 0 3px #fff2e8}
body#royal-blue-app .dk-danger {color:#c0392b !important;border-color:#f5c6c0 !important}
body#royal-blue-app .dk-danger:hover {background:#fff5f4 !important}

/* disease table inside */
body#royal-blue-app .dk-embed>.card {margin:0}

/* log */
body#royal-blue-app .dk-filters {display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(3,minmax(140px,1fr)) repeat(2,minmax(150px,.9fr));gap:8px;margin:0 0 14px;align-items:end}
body#royal-blue-app .dk-filters select,body#royal-blue-app .dk-filters input {min-width:0;width:100%;min-height:42px;box-sizing:border-box;padding:0 10px;border:1px solid #cfe0fb;border-radius:10px;background:#fff;color:#133858;font:inherit;font-size:14px}
body#royal-blue-app .dk-filters :is(input,select):focus {outline:none;border-color:#175adb;box-shadow:0 0 0 3px #eef4ff}
body#royal-blue-app .dk-search {position:relative;display:block;min-width:0}
body#royal-blue-app .dk-search svg {position:absolute;left:11px;top:50%;transform:translateY(-50%);color:#8a9bb2;pointer-events:none}
body#royal-blue-app .dk-filters .dk-search input {padding-left:34px}
body#royal-blue-app .dk-date {display:flex;flex-direction:column;gap:3px;font-size:12px;font-weight:700;color:#4a6382;min-width:0}
body#royal-blue-app .dk-date span {display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
body#royal-blue-app .dk-date>:not(span) {min-width:0;width:100%}
body#royal-blue-app .dk-date nb-dt {display:block;min-width:0;max-width:100%}
body#royal-blue-app .dk-log-wrap {overflow-x:auto;border:1px solid #e1eafa;border-radius:12px}
body#royal-blue-app .dk-log td {font-size:13px}
body#royal-blue-app .dk-log td>svg {color:#8a9bb2;vertical-align:-2px}
body#royal-blue-app .dk-who {display:flex;align-items:center;gap:9px;min-width:0}
body#royal-blue-app .dk-avatar {display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#175adb,#4b8bff);color:#fff;font-size:12px;font-weight:800}
body#royal-blue-app .dk-avatar.is-anon {background:linear-gradient(135deg,#8a9bb2,#b8c4d6)}
body#royal-blue-app .dk-act {display:flex;align-items:flex-start;gap:9px;min-width:0}
body#royal-blue-app .dk-act-ico {display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:9px;background:var(--dk-soft);color:var(--dk)}
body#royal-blue-app .dk-quote {display:block;padding-left:8px;border-left:3px solid #c6d9fb;color:#244477;font-style:italic}
body#royal-blue-app .dk-pill {display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
body#royal-blue-app .dk-pill.is-ok {background:#e3f5ea;color:#11663a}
body#royal-blue-app .dk-pill.is-watch {background:#fff3d6;color:#7a4b00}
body#royal-blue-app .dk-pill.is-bad {background:#fde7e5;color:#a1271b}
body#royal-blue-app .dk-more summary {cursor:pointer;color:#175adb;font-size:13px;font-weight:700;white-space:nowrap}
body#royal-blue-app .dk-more>div {margin-top:8px;min-width:260px;max-width:520px}
body#royal-blue-app .dk-more h4 {margin:8px 0 4px;font-size:12px;color:#4a6382;text-transform:uppercase;letter-spacing:.25px}
body#royal-blue-app .dk-more ul {margin:0;padding-left:18px;display:grid;gap:3px}
body#royal-blue-app .dk-more s {color:#a1271b}
body#royal-blue-app .dk-more ins {color:#11663a;text-decoration:none;font-weight:700}
body#royal-blue-app .dk-more pre {margin:0;padding:8px;border-radius:8px;background:#f2f7ff;border:1px solid #d9e6fb;font-size:12px;max-height:200px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
body#royal-blue-app .dk-more dl {display:grid;grid-template-columns:auto 1fr;gap:3px 10px;margin:8px 0 0;font-size:12.5px}
body#royal-blue-app .dk-more dt {color:#62758d}
body#royal-blue-app .dk-more dd {margin:0;overflow-wrap:anywhere}
body#royal-blue-app .dk-pager {display:flex;gap:12px;align-items:center;justify-content:center;margin:14px 0 4px}

/* wide screens */
@media (min-width:1600px) {
  body#royal-blue-app .dk-tiles {grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}
}

/* small laptops and tablets */
@media (max-width:1450px) {
  body#royal-blue-app .dk-filters {grid-template-columns:repeat(3,minmax(0,1fr))}
  body#royal-blue-app .dk-filters .dk-search {grid-column:1 / -1}
}
@media (max-width:1100px) {
  body#royal-blue-app .dk-signal-act {grid-template-columns:auto minmax(0,1fr)}
  body#royal-blue-app .dk-signal-act .btn {width:100%;justify-content:center}
}
/* the bottom bar of phones and tablets (Điều hướng nhanh) covers the last 70 px: the save bar floats above it */
@media (max-width:1000px) {
  body#royal-blue-app .dk-save {bottom:calc(86px + env(safe-area-inset-bottom,0px))}
}
@media (min-width:701px) and (max-width:1100px) {
  body#royal-blue-app .dk-stats {grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
  body#royal-blue-app .dk-stat {padding:14px 12px;gap:10px}
  body#royal-blue-app .dk-stat-ico {width:40px;height:40px;border-radius:12px}
  body#royal-blue-app .dk-stat-go {display:none}
}

/* phones */
@media (max-width:700px) {
  body#royal-blue-app .dk-badges {gap:6px}
  body#royal-blue-app .dk-badge {font-size:12px;min-height:28px;padding:0 10px}
  body#royal-blue-app .dk-stats {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body#royal-blue-app .dk-stat {flex-direction:column;align-items:flex-start;gap:8px;padding:12px}
  body#royal-blue-app .dk-stat-ico {width:38px;height:38px;border-radius:11px}
  body#royal-blue-app .dk-stat strong {font-size:26px}
  body#royal-blue-app .dk-stat-label {font-size:11px}
  body#royal-blue-app .dk-stat small {font-size:11.5px}
  body#royal-blue-app .dk-stat-go {display:none}
  body#royal-blue-app .dk-nav {flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
  body#royal-blue-app .dk-nav::-webkit-scrollbar {display:none}
  body#royal-blue-app .dk-nav-item {flex:none;scroll-snap-align:start}
  body#royal-blue-app .dk-panel-ico {width:42px;height:42px;border-radius:12px}
  body#royal-blue-app .dk-panel-title h2 {font-size:16.5px}
  body#royal-blue-app .dk-panel-actions,body#royal-blue-app .dk-panel-actions .btn {width:100%;justify-content:center}
  body#royal-blue-app .dk-callout {padding:12px}
  body#royal-blue-app .dk-callout .btn {width:100%;justify-content:center}
  body#royal-blue-app .dk-group {padding:12px 10px}
  body#royal-blue-app .dk-tiles,body#royal-blue-app .dk-switches,body#royal-blue-app .dk-coefs {grid-template-columns:minmax(0,1fr)}
  body#royal-blue-app .dk-coef {padding:12px;gap:12px}
  body#royal-blue-app .dk-coef-sym {width:42px;height:42px;font-size:19px}
  body#royal-blue-app .dk-save {gap:8px;padding:8px}
  body#royal-blue-app .dk-save-state {width:100%;justify-content:center}
  body#royal-blue-app .dk-reason {flex-basis:100%}
  body#royal-blue-app .dk-save-btn {width:100%;justify-content:center}
  body#royal-blue-app .dk-signal {grid-template-columns:64px minmax(0,1fr)}
  body#royal-blue-app .dk-signal-level b {font-size:22px}
  body#royal-blue-app .dk-signal-main {padding:10px 12px}
  body#royal-blue-app .dk-signal-head small {margin-left:0;width:100%}
  body#royal-blue-app .dk-signal-act {grid-template-columns:minmax(0,1fr)}
  body#royal-blue-app .dk-signal-to {justify-content:space-between}
  body#royal-blue-app .dk-signal-to select {flex:1}
  body#royal-blue-app .dk-filters {grid-template-columns:minmax(0,1fr)}
  body#royal-blue-app .dk-more>div {min-width:0;max-width:none}
  body#royal-blue-app .dk-more dl {grid-template-columns:minmax(0,1fr)}
  body#royal-blue-app .dk-more dt {margin-top:4px}

  /* a table of rows becomes one labelled card per row */
  body#royal-blue-app .dk-rows .table-wrap,body#royal-blue-app .dk-log-wrap {border:0;overflow:visible;background:none}
  body#royal-blue-app .dk-table thead {display:none}
  body#royal-blue-app .dk-table,body#royal-blue-app .dk-table tbody,body#royal-blue-app .dk-table tr,body#royal-blue-app .dk-table td {display:block;width:100%;box-sizing:border-box}
  body#royal-blue-app .dk-table tr {position:relative;margin:0 0 10px;padding:10px 12px;border:1px solid #e1eafa;border-radius:14px;background:#fff;box-shadow:0 6px 16px -14px rgba(20,60,120,.45)}
  body#royal-blue-app .dk-table tbody tr:hover td {background:none}
  body#royal-blue-app .dk-table td {height:auto !important;min-height:0 !important;padding:3px 0 !important;border:0;line-height:1.4}
  body#royal-blue-app .dk-table td[data-label]:not([data-label=""])::before {content:attr(data-label);display:block;margin-bottom:3px;font-size:11px;font-weight:700;color:#62758d;text-transform:uppercase;letter-spacing:.25px}
  body#royal-blue-app .dk-edit td :is(input[type="text"],textarea,select) {min-width:0}
  body#royal-blue-app .dk-edit td.dk-del {text-align:right;padding-top:6px !important}
  body#royal-blue-app .dk-edit td.dk-del:empty {display:none}
  body#royal-blue-app .dk-x {width:auto;padding:0 14px;gap:6px;display:inline-flex;align-items:center}
  body#royal-blue-app .dk-x::after {content:"Xóa dòng";font-size:13px;font-weight:700}
  body#royal-blue-app .dk-nowrap {white-space:normal}
  body#royal-blue-app .dk-table.dk-log tr {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 14px}
  body#royal-blue-app .dk-table.dk-log td {min-width:0;width:auto}
  body#royal-blue-app .dk-table.dk-log td:is([data-label="Việc"],[data-label="Lý do"],[data-label="Thiết bị"],.dk-detail) {grid-column:1 / -1}
  body#royal-blue-app .dk-table.dk-log td.dk-detail {margin-top:4px;padding-top:8px !important;border-top:1px dashed #e1eafa}
}
@media (max-width:380px) {
  body#royal-blue-app .dk-stats {gap:8px}
  body#royal-blue-app .dk-stat {padding:10px}
  body#royal-blue-app .dk-nav-item {padding-right:10px;font-size:13.5px}
}

@media (prefers-reduced-motion:reduce) {
  body#royal-blue-app .dk-body>*,body#royal-blue-app .dk-stat.is-hot .dk-stat-ico::after,body#royal-blue-app .dk-save.is-dirty .dk-save-dot {animation:none}
  body#royal-blue-app :is(.dk-stat,.dk-stat-go,.dk-toggle,.dk-toggle::after,.dk-save-btn) {transition:none}
}
/* the arrow of a summary tile only where there is room for it next to the words */
@media (max-width:1599px) {
  body#royal-blue-app .dk-stat-go {display:none}
}
/* the log fits its card instead of scrolling sideways: only the time keeps one line, the rest wraps */
@media (min-width:701px) {
  body#royal-blue-app .dk-log td {white-space:normal;overflow-wrap:anywhere}
  body#royal-blue-app .dk-log td:first-child {white-space:nowrap}
  body#royal-blue-app .dk-log th {white-space:normal}
  body#royal-blue-app .dk-log td[data-label="Lý do"] {min-width:140px}
  body#royal-blue-app .dk-log .dk-more summary {white-space:nowrap}
}
@media (min-width:701px) {
  body#royal-blue-app .dk-log td {overflow-wrap:break-word}
  body#royal-blue-app .dk-log td[data-label="IP · tên máy"] {white-space:nowrap}
  body#royal-blue-app .dk-log td[data-label="IP · tên máy"] small {white-space:normal;overflow-wrap:anywhere;max-width:150px}
  body#royal-blue-app .dk-log td[data-label="Người làm"] {min-width:150px}
}
/* on a phone the save bar only floats once something was changed (it takes three rows there) */
@media (max-width:700px) {
  body#royal-blue-app .dk-save:not(.is-dirty) {position:static;box-shadow:none}
  body#royal-blue-app .dk-save:not(.is-dirty) .dk-save-state {display:none}
}
body#royal-blue-app .dk-who>span:last-child,body#royal-blue-app .dk-act>span:last-child {min-width:0}
body#royal-blue-app .dk-who small,body#royal-blue-app .dk-act small {overflow-wrap:anywhere}
@media (min-width:701px) and (max-width:1100px) {
  body#royal-blue-app .dk-stats {grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
  /* tablets: the log as cards in three columns (8 columns of a table do not fit) */
  body#royal-blue-app .dk-log-wrap {border:0;overflow:visible}
  body#royal-blue-app .dk-table.dk-log thead {display:none}
  body#royal-blue-app .dk-table.dk-log,body#royal-blue-app .dk-table.dk-log tbody {display:block;width:100%}
  body#royal-blue-app .dk-table.dk-log tr {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 16px;margin:0 0 10px;padding:12px 14px;border:1px solid #e1eafa;border-radius:14px;background:#fff;box-shadow:0 6px 16px -14px rgba(20,60,120,.45)}
  body#royal-blue-app .dk-table.dk-log td {display:block;min-width:0;padding:2px 0 !important;border:0;height:auto !important}
  body#royal-blue-app .dk-table.dk-log tbody tr:hover td {background:none}
  body#royal-blue-app .dk-table.dk-log td[data-label]::before {content:attr(data-label);display:block;margin-bottom:3px;font-size:11px;font-weight:700;color:#62758d;text-transform:uppercase;letter-spacing:.25px}
  body#royal-blue-app .dk-table.dk-log td:is([data-label="Việc"],[data-label="Lý do"]) {grid-column:span 2}
  body#royal-blue-app .dk-table.dk-log td.dk-detail {grid-column:1 / -1;padding-top:8px !important;border-top:1px dashed #e1eafa}
}

/* ===== 26-10-2026 (2): "Giá trị và lựa chọn" and "Công tắc" as setting rows, the catalogues as a compact list ===== */
/* one white box per group, one setting per row: title (bold) + explanation (small) on the left, the control on the right, a line between rows */
body#royal-blue-app .dk-setrows {display:grid;grid-template-columns:minmax(0,1fr);gap:0;overflow:hidden;border:1px solid #e1eafa;border-radius:14px;background:#fff}
body#royal-blue-app .dk-setrows>.dk-setrow {position:relative;margin:0 !important;padding:12px 16px;border:0;border-bottom:1px solid #edf2fb;border-radius:0;background:#fff;box-shadow:none;min-width:0}
body#royal-blue-app .dk-setrows>.dk-setrow:last-child {border-bottom:0}
body#royal-blue-app .dk-setrows>.dk-setrow:hover {background:#fafcff}
body#royal-blue-app .dk-setrows>.dk-setrow:focus-within {box-shadow:inset 3px 0 0 var(--dk-2);background:#fbfdff}
body#royal-blue-app .dk-setrows>.dk-tile {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 20px}
body#royal-blue-app .dk-setrow-text {display:flex;align-items:flex-start;gap:11px;min-width:0}
body#royal-blue-app .dk-setrow-text>div {display:grid;gap:2px;min-width:0}
body#royal-blue-app .dk-setrow-text label {font-size:14px;font-weight:700;line-height:1.35;color:#133858;cursor:pointer}
body#royal-blue-app .dk-setrow small,body#royal-blue-app .dk-switch-text small {display:block;font-size:12.5px;font-weight:400;line-height:1.45;color:#62758d}
body#royal-blue-app .dk-setrow .dk-tile-ico {margin-top:1px}
body#royal-blue-app .dk-setrow-ctl {display:flex;justify-content:flex-end;min-width:0}
body#royal-blue-app .dk-setrow-ctl .form-control {min-height:40px;border-radius:10px}
body#royal-blue-app .dk-setrow[data-kind="number"] .dk-setrow-ctl .form-control {width:120px;text-align:right;font-variant-numeric:tabular-nums;font-weight:700}
body#royal-blue-app .dk-setrow[data-kind="select"] .dk-setrow-ctl .form-control {width:min(440px,100%)}
body#royal-blue-app .dk-setrow[data-kind="text"] .dk-setrow-ctl .form-control {width:min(260px,100%)}
body#royal-blue-app .dk-setrow[data-kind="textarea"] {grid-template-columns:minmax(0,1fr)}
body#royal-blue-app .dk-setrow[data-kind="textarea"] .dk-setrow-ctl .form-control {width:100%}
/* a changed row: tinted, a bar on the left and "đã sửa" after the title (no floating badge in a list) */
body#royal-blue-app .dk-setrows>.dk-setrow.is-changed {background:linear-gradient(90deg,var(--dk-soft),#fff 70%);box-shadow:inset 3px 0 0 var(--dk)}
body#royal-blue-app .dk-setrows>.dk-setrow.is-changed::after {content:none}
body#royal-blue-app .dk-setrow.is-changed :is(.dk-setrow-text label,.dk-switch-text b)::after {content:"đã sửa";margin-left:8px;padding:1px 7px;border-radius:999px;background:var(--dk);color:#fff;font-size:10.5px;font-weight:700;vertical-align:1px}
/* switches in the same rows: icon, title + explanation, toggle */
body#royal-blue-app .dk-setrows>.dk-switch {display:flex;align-items:center;gap:12px;min-height:0}
body#royal-blue-app .dk-setrows>.dk-switch:has(input:checked) {background:#fff}
body#royal-blue-app .dk-setrows>.dk-switch:has(input:checked) .dk-tile-ico {background:linear-gradient(135deg,var(--dk),var(--dk-2));color:#fff}
body#royal-blue-app .dk-switch-text {display:grid;gap:2px}
body#royal-blue-app .dk-switch-text b {font-size:14px;font-weight:700;line-height:1.35;color:#133858}
/* two columns of rows where the screen is wide enough to read both */
@media (min-width:1500px) {
  body#royal-blue-app .dk-setrows {grid-template-columns:repeat(2,minmax(0,1fr))}
  body#royal-blue-app .dk-setrows>.dk-setrow:nth-child(odd) {border-right:1px solid #edf2fb}
  body#royal-blue-app .dk-setrows>.dk-setrow:nth-last-child(2):nth-child(odd) {border-bottom:0}
}

/* catalogue as a list */
body#royal-blue-app .dk-rows-hint {display:flex;align-items:flex-start;gap:7px;margin:0 0 10px;font-size:12.5px;line-height:1.5;color:#4a6382}
body#royal-blue-app .dk-rows-hint svg {margin-top:2px;color:var(--dk)}
body#royal-blue-app .dk-list {list-style:none;margin:0 0 10px;padding:0;counter-reset:dk;border:1px solid #e1eafa;border-radius:14px;background:#fff;overflow:hidden}
body#royal-blue-app .dk-item {counter-increment:dk;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 10px 8px 12px;border-bottom:1px solid #edf2fb;transition:background .12s ease}
body#royal-blue-app .dk-item:last-child {border-bottom:0}
body#royal-blue-app .dk-item:hover {background:#fafcff}
body#royal-blue-app .dk-item:focus-within {background:#fbfdff;box-shadow:inset 3px 0 0 var(--dk-2)}
body#royal-blue-app .dk-item-n {display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:8px;background:var(--dk-soft);color:var(--dk);font-size:12px;font-weight:800}
body#royal-blue-app .dk-item-n::before {content:counter(dk)}
body#royal-blue-app .dk-item-cell {min-width:0}
body#royal-blue-app .dk-item-cell.is-text,body#royal-blue-app .dk-item-cell.is-long {flex:1 1 220px}
body#royal-blue-app .dk-item-cell:is(.is-level,.is-switch,.is-color) {flex:none}
body#royal-blue-app .dk-item-input {width:100%;min-height:38px;box-sizing:border-box;padding:6px 10px;border:1px solid transparent;border-radius:9px;background:#f5f8fd;color:#133858;font:inherit;font-size:14px;font-weight:600;transition:border-color .12s ease,background .12s ease}
body#royal-blue-app .dk-item-input:hover {border-color:#d9e6fb}
body#royal-blue-app .dk-item-input:focus {outline:none;border-color:var(--dk-2);background:#fff;box-shadow:0 0 0 3px var(--dk-soft)}
body#royal-blue-app .dk-item-input::placeholder {color:#9aabc0;font-weight:400}
body#royal-blue-app .dk-list .dk-x {flex:none;width:34px;height:34px;padding:0;border-color:transparent;background:transparent;color:#a3b1c4}
body#royal-blue-app .dk-list .dk-x::after {content:none}
body#royal-blue-app .dk-list .dk-x:hover {background:#fde7e5;color:#c0392b;transform:none}
body#royal-blue-app .dk-lv-pick {position:relative}
body#royal-blue-app .dk-lv-select {position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
body#royal-blue-app .dk-lv-chips {display:inline-flex;overflow:hidden;border:1px solid #d9e6fb;border-radius:10px;background:#fff}
body#royal-blue-app .dk-lv-chip {min-width:40px;min-height:34px;padding:0 10px;border:0;border-right:1px solid #e6eef9;background:#fff;color:#4a6382;font:inherit;font-size:12.5px;font-weight:800;cursor:pointer;transition:background .12s ease,color .12s ease}
body#royal-blue-app .dk-lv-chip:last-child {border-right:0}
body#royal-blue-app .dk-lv-chip[data-lv=""] {font-weight:600;font-size:12px}
body#royal-blue-app .dk-lv-chip:hover {background:#f3f8ff;color:var(--lv,#133858)}
body#royal-blue-app .dk-lv-chip.is-on {background:var(--lv,#62758d);color:#fff}
body#royal-blue-app .dk-lv-chip:focus-visible {outline:3px solid #aac8ff;outline-offset:-3px}
body#royal-blue-app .dk-lv-chip:disabled {cursor:default}
body#royal-blue-app .dk-swatch {display:inline-grid;place-items:center;width:38px;height:38px;overflow:hidden;border:1px solid #d9e6fb;border-radius:10px;background:#fff;cursor:pointer}
body#royal-blue-app .dk-swatch input {width:52px;height:52px;padding:0;border:0;background:none;cursor:pointer}
body#royal-blue-app .dk-mini-switch {align-items:center;gap:7px;font-size:12.5px;font-weight:600;color:#4a6382;white-space:nowrap}
body#royal-blue-app .dk-rows.is-changed .dk-list {border-color:var(--dk-line)}

@media (max-width:700px) {
  body#royal-blue-app .dk-setrows>.dk-setrow {padding:12px}
  body#royal-blue-app .dk-setrows>.dk-tile {grid-template-columns:minmax(0,1fr);gap:8px}
  body#royal-blue-app .dk-setrow-ctl {justify-content:stretch}
  body#royal-blue-app .dk-setrow-ctl>* {width:100% !important}
  body#royal-blue-app .dk-setrow[data-kind="number"] .dk-setrow-ctl .form-control {width:100%;text-align:left}
  body#royal-blue-app .dk-item {padding:10px;gap:8px}
  body#royal-blue-app .dk-item-cell.is-text,body#royal-blue-app .dk-item-cell.is-long {flex:1 1 calc(100% - 90px)}
  body#royal-blue-app .dk-item-cell.is-level {order:5;flex:1 1 100%;padding-left:34px}
  body#royal-blue-app .dk-lv-chips {display:flex;width:100%}
  body#royal-blue-app .dk-lv-chip {flex:1;min-height:38px;padding:0 4px}
  body#royal-blue-app .dk-list .dk-x {order:2}
}
@media (max-width:700px) {
  /* a number stays on the row of its title (a small box on the right); only lists and texts take the full width */
  body#royal-blue-app .dk-setrows>.dk-tile[data-kind="number"] {grid-template-columns:minmax(0,1fr) 92px;align-items:center}
  body#royal-blue-app .dk-setrows>.dk-tile[data-kind="number"] .dk-setrow-ctl .form-control {width:92px !important;text-align:right}
  body#royal-blue-app .dk-setrows>.dk-tile[data-kind="number"] .dk-setrow-ctl>* {width:92px !important}
  body#royal-blue-app .dk-setrow-text {gap:9px}
  body#royal-blue-app .dk-setrow-text label,body#royal-blue-app .dk-switch-text b {font-size:13.5px}
}
@media (max-width:700px) {
  body#royal-blue-app .dk-lv-chip[data-lv=""] {flex:1.8;white-space:nowrap;font-size:11.5px}
  body#royal-blue-app .dk-item-input {font-size:13.5px}
}

/* ===== 26-10-2026 (3): no blue ring around a box being typed in (business-pages.css draws one on every :focus-visible); the border takes the
   colour of the card instead, so you still see where you are */
body#royal-blue-app .dk-page :is(input,select,textarea):is(:focus,:focus-visible) {outline:none !important;box-shadow:none !important}
body#royal-blue-app .dk-page :is(.form-control,.dk-item-input,.dk-filters input,.dk-filters select,.dk-signal-act input,.dk-signal-act select,.dk-edit td input,.dk-edit td select,.dk-edit td textarea):focus {border-color:var(--dk-2,#4b8bff) !important}
body#royal-blue-app .dk-page :is(.dk-tile,.dk-coef,.dk-reason):focus-within {box-shadow:none !important}
body#royal-blue-app .dk-page .dk-reason:focus-within {border-color:var(--dk-2)}

/* field signal: the five levels C0–C4 as coloured chips; the level in force is outlined and named */
body#royal-blue-app .dk-set-level {display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
body#royal-blue-app .dk-set-level>span {display:inline-flex;align-items:center;gap:4px;font-size:12.5px;font-weight:700;color:#4a6382;white-space:nowrap}
body#royal-blue-app .dk-set-chips {display:inline-flex;overflow:hidden;border:1px solid #d9e6fb;border-radius:10px;background:#fff}
body#royal-blue-app .dk-set-chip {position:relative;min-width:46px;min-height:38px;padding:0 10px;border:0;border-right:1px solid #e6eef9;background:#fff;color:var(--lv);font:inherit;font-size:13px;font-weight:800;cursor:pointer;transition:background .12s ease,color .12s ease}
body#royal-blue-app .dk-set-chip:last-child {border-right:0}
body#royal-blue-app .dk-set-chip:hover {background:color-mix(in srgb,var(--lv) 10%,#fff)}
body#royal-blue-app .dk-set-chip.is-current {box-shadow:inset 0 0 0 2px var(--lv)}
body#royal-blue-app .dk-set-chip.is-current::after {content:"đang";position:absolute;top:1px;right:3px;font-size:8.5px;font-weight:700;line-height:1;opacity:.75}
body#royal-blue-app .dk-set-chip.is-on {background:var(--lv);color:#fff}
body#royal-blue-app .dk-set-chip:focus-visible {outline:none;box-shadow:inset 0 0 0 2px #133858}
body#royal-blue-app .dk-set-select {position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
body#royal-blue-app .dk-signal-act {grid-template-columns:auto minmax(200px,1fr) auto auto}
@media (max-width:1100px) {
  body#royal-blue-app .dk-signal-act {grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  body#royal-blue-app .dk-signal-act .dk-set-level,body#royal-blue-app .dk-signal-act input {grid-column:1 / -1}
}
@media (max-width:700px) {
  body#royal-blue-app .dk-signal-act {grid-template-columns:minmax(0,1fr)}
  body#royal-blue-app .dk-set-chips {display:flex;width:100%}
  body#royal-blue-app .dk-set-chip {flex:1;min-width:0;padding:0 4px}
}

/* ===== 26-10-2026 (4): the reason is written by the system (no box to type in), and "Thử tính NH₃ ngay" ===== */
body#royal-blue-app .dk-reason.is-auto {align-items:center;padding:8px 12px;border-style:dashed;background:#fafcff;color:#4a6382;font-size:13px;line-height:1.45;cursor:default}
body#royal-blue-app .dk-reason.is-auto .dk-reason-ico {color:var(--dk)}
body#royal-blue-app .dk-save.is-dirty .dk-reason.is-auto {border-color:var(--dk-line);background:var(--dk-soft);color:#244477}
body#royal-blue-app #dk-reason-auto {min-width:0;overflow-wrap:anywhere}
body#royal-blue-app .dk-signal-auto {display:inline-flex;align-items:center;gap:5px;padding:0 10px;min-height:34px;border:1px dashed #d9e6fb;border-radius:999px;color:#62758d;font-size:12px;font-weight:600;white-space:nowrap}

body#royal-blue-app .dk-calc-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:16px;align-items:start}
body#royal-blue-app .dk-calc-ins {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border:1px solid #e3ecfb;border-radius:14px;background:linear-gradient(180deg,#fbfdff,#fff)}
body#royal-blue-app .dk-calc-in {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px 9px;padding:10px;border:1px solid #e1eafa;border-radius:12px;background:#fff;cursor:text}
body#royal-blue-app .dk-calc-in:focus-within {border-color:var(--dk-2)}
body#royal-blue-app .dk-calc-ico {display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--dk-soft);color:var(--dk)}
body#royal-blue-app .dk-calc-label {font-size:13px;font-weight:700;color:#133858}
body#royal-blue-app .dk-calc-label small {font-weight:600;color:#7a8ca3}
body#royal-blue-app .dk-calc-in input {grid-column:1 / -1;width:100%;min-height:42px;box-sizing:border-box;padding:0 12px;border:1px solid #cfe0fb;border-radius:10px;background:#fff;color:#133858;font:inherit;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}
body#royal-blue-app .dk-calc-src {grid-column:1 / -1;margin:0;font-size:12px;color:#62758d}
body#royal-blue-app .dk-calc-src:empty {display:none}
body#royal-blue-app .dk-calc-outs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body#royal-blue-app .dk-calc-out {position:relative;display:grid;gap:2px;align-content:start;padding:14px;overflow:hidden;border:1px solid #e1eafa;border-radius:14px;background:#fff}
body#royal-blue-app .dk-calc-out::before {content:"";position:absolute;inset:0 0 auto 0;height:3px;background:#b8c4d6}
body#royal-blue-app #dk-calc-draft::before {background:linear-gradient(90deg,var(--dk),var(--dk-2))}
body#royal-blue-app #dk-calc-draft {border-color:var(--dk-line);background:linear-gradient(180deg,var(--dk-soft),#fff 60%)}
body#royal-blue-app .dk-calc-out-title {font-size:12px;font-weight:800;color:#62758d;text-transform:uppercase;letter-spacing:.3px}
body#royal-blue-app .dk-calc-out strong {font-size:30px;line-height:1.15;font-weight:800;color:#133858;font-variant-numeric:tabular-nums}
body#royal-blue-app #dk-calc-draft strong {color:var(--dk)}
body#royal-blue-app .dk-calc-out>small {font-size:12.5px;font-weight:600;color:#4a6382}
body#royal-blue-app .dk-calc-out.is-empty strong {color:#b8c4d6}
body#royal-blue-app .dk-calc-out dl {display:grid;grid-template-columns:auto 1fr;gap:3px 10px;margin:8px 0 6px;padding-top:8px;border-top:1px dashed #e1eafa;font-size:12.5px}
body#royal-blue-app .dk-calc-out dt {color:#62758d}
body#royal-blue-app .dk-calc-out dd {margin:0;font-weight:700;color:#244477;font-variant-numeric:tabular-nums}
body#royal-blue-app .dk-calc-out em {font-size:11.5px;font-style:normal;color:#8a9bb2}
body#royal-blue-app .dk-calc-diff {grid-column:1 / -1;padding:10px 12px;border-radius:12px;background:#f2f5f9;color:#33507a;font-size:13px;font-weight:600}
body#royal-blue-app .dk-calc-diff.is-up {background:#fff3e8;color:#9a4a00}
body#royal-blue-app .dk-calc-diff.is-down {background:#e9f5ff;color:#0b4f8a}
body#royal-blue-app .dk-calc-diff.is-same {background:#eaf8f0;color:#0b6b36}
@media (max-width:1100px) {
  body#royal-blue-app .dk-calc-grid {grid-template-columns:minmax(0,1fr)}
}
@media (max-width:700px) {
  body#royal-blue-app .dk-calc-ins {padding:10px;gap:8px}
  body#royal-blue-app .dk-calc-outs {grid-template-columns:minmax(0,1fr)}
  body#royal-blue-app .dk-calc-out strong {font-size:26px}
  body#royal-blue-app .dk-signal-auto {justify-content:center}
}
@media (max-width:380px) {
  body#royal-blue-app .dk-calc-ins {grid-template-columns:minmax(0,1fr)}
}

/* ===== 26-10-2026 (5): a lighter page: smaller icons and numbers, less heavy weights and softer colours, closer to the rest of the software ===== */
body#royal-blue-app .dk-badge {min-height:28px;padding:0 10px;font-size:12px;font-weight:500;color:#4a6382;box-shadow:none}
body#royal-blue-app .dk-badge svg {width:13px;height:13px;color:#6b8bc4}
body#royal-blue-app .dk-stat {gap:12px;padding:13px 14px;box-shadow:0 1px 2px rgba(20,60,120,.05)}
body#royal-blue-app .dk-stat::before {height:2px;opacity:.75}
body#royal-blue-app .dk-stat-ico {width:40px;height:40px;border-radius:12px}
body#royal-blue-app .dk-stat-ico svg {width:19px;height:19px}
body#royal-blue-app .dk-stat.is-hot .dk-stat-ico {background:color-mix(in srgb,var(--dk) 14%,#fff);color:var(--dk);border:1px solid var(--dk-line);box-shadow:none}
body#royal-blue-app .dk-stat-label {font-size:11.5px;font-weight:600;color:#6b7f9a}
body#royal-blue-app .dk-stat strong {font-size:24px;font-weight:700}
body#royal-blue-app .dk-stat small {font-size:12px;color:#7a8ca3}
body#royal-blue-app .dk-stat-go {width:26px;height:26px}
body#royal-blue-app .dk-nav-item {min-height:40px;padding:5px 12px 5px 5px;font-size:13.5px;font-weight:500;color:#3d5876}
body#royal-blue-app .dk-nav-ico {width:28px;height:28px;border-radius:8px}
body#royal-blue-app .dk-nav-ico svg {width:15px;height:15px}
body#royal-blue-app .dk-nav-item[aria-current="page"] {font-weight:600;box-shadow:0 6px 14px -10px var(--dk)}
body#royal-blue-app .dk-nav-n {min-width:20px;padding:0 6px;font-size:11px;font-weight:700}
body#royal-blue-app .dk-callout {padding:12px 14px;border-left-width:3px}
body#royal-blue-app .dk-callout-ico {width:32px;height:32px;box-shadow:none;border:1px solid var(--dk-line)}
body#royal-blue-app .dk-callout-ico svg {width:16px;height:16px}
body#royal-blue-app .dk-callout-text {font-size:13px;color:#3d5876}
body#royal-blue-app .dk-callout-text b {font-weight:600}
body#royal-blue-app .dk-panel-head {gap:10px 12px;margin-bottom:14px;padding-bottom:12px}
body#royal-blue-app .dk-panel-ico {width:38px;height:38px;border-radius:11px;box-shadow:0 6px 14px -10px var(--dk)}
body#royal-blue-app .dk-panel-ico svg {width:18px;height:18px}
body#royal-blue-app .dk-panel-title h2 {font-size:16px;font-weight:600}
body#royal-blue-app .dk-panel-title p {font-size:13px;color:#62758d}
body#royal-blue-app .dk-group>legend {font-size:11.5px;font-weight:600;letter-spacing:.3px}
body#royal-blue-app .dk-group>legend svg {width:13px;height:13px}
body#royal-blue-app .dk-group>legend b {font-weight:600}
body#royal-blue-app .dk-tile-ico {width:24px;height:24px;border-radius:7px}
body#royal-blue-app .dk-tile-ico svg {width:13px;height:13px}
body#royal-blue-app .dk-setrows>.dk-switch:has(input:checked) .dk-tile-ico {background:var(--dk-soft);color:var(--dk)}
body#royal-blue-app .dk-setrow-text label,body#royal-blue-app .dk-switch-text b {font-size:13.5px;font-weight:600;color:#24446b}
body#royal-blue-app .dk-setrow small,body#royal-blue-app .dk-switch-text small {font-size:12px;color:#7a8ca3}
body#royal-blue-app .dk-setrow[data-kind="number"] .dk-setrow-ctl .form-control {font-weight:600}
body#royal-blue-app .dk-toggle {width:40px;height:22px}
body#royal-blue-app .dk-toggle::after {width:16px;height:16px}
body#royal-blue-app :is(.dk-switch,.dk-mini-switch) input:checked+.dk-toggle::after {transform:translateX(18px)}
body#royal-blue-app .dk-item-n {width:24px;height:24px;font-size:11.5px;font-weight:700}
body#royal-blue-app .dk-item-input {font-weight:500}
body#royal-blue-app .dk-lv-chip {font-weight:700;font-size:12px;min-height:32px}
body#royal-blue-app .dk-coef-sym {width:40px;height:40px;font-size:18px;box-shadow:0 6px 14px -10px var(--dk)}
body#royal-blue-app .dk-coef-main>label,body#royal-blue-app .dk-calc-label {font-weight:600;color:#24446b}
body#royal-blue-app .dk-calc-out strong {font-size:26px;font-weight:700}
body#royal-blue-app .dk-calc-out-title {font-weight:700;font-size:11.5px}
body#royal-blue-app .dk-save-btn {font-weight:600;box-shadow:0 6px 14px -10px var(--dk)}
body#royal-blue-app .dk-save-state {font-weight:600}
body#royal-blue-app .dk-avatar {width:28px;height:28px;font-size:11px;font-weight:700}
body#royal-blue-app .dk-act-ico {width:26px;height:26px}
body#royal-blue-app .dk-act-ico svg {width:13px;height:13px}
body#royal-blue-app .dk-log td strong {font-weight:600}
@media (max-width:700px) {
  body#royal-blue-app .dk-stat strong {font-size:22px}
  body#royal-blue-app .dk-stat-ico {width:34px;height:34px}
}

/* ===== Trang Cài đặt trên điện thoại (27-10-2026): the head, badges and the four figures took the whole screen, so a tab's content changed
   out of sight. Now: a one-line head, the badges in one scrolling row, the four figures as one row of small tiles; the tabs come into view. ===== */
@layer readability {
@media (max-width:700px) {
  body#royal-blue-app .dk-page > .page-head {display:grid !important;grid-template-columns:max-content minmax(0,1fr) !important;align-items:center !important;gap:8px !important;margin:0 0 8px !important;padding:10px 12px !important}
  body#royal-blue-app .dk-page > .page-head .rb-heading-main {gap:10px !important;min-width:0}
  body#royal-blue-app .dk-page > .page-head .rb-heading-icon {width:36px !important;height:36px !important;border-radius:11px !important}
  body#royal-blue-app .dk-page > .page-head .rb-heading-icon svg {width:19px !important;height:19px !important}
  body#royal-blue-app .dk-page > .page-head h1 {font-size:19px !important;line-height:1.2 !important;margin:0 !important;white-space:nowrap !important}
  body#royal-blue-app .dk-page > .page-head p.subtitle {display:none !important}
  body#royal-blue-app .dk-page > .page-head .head-actions {justify-self:end;width:auto !important;min-width:0 !important;max-width:100% !important;margin:0 !important;gap:6px !important;flex-wrap:nowrap !important}
  body#royal-blue-app .dk-page > .page-head .head-actions .btn {width:auto !important;min-width:0 !important;max-width:100% !important;min-height:36px !important;padding:0 10px !important;font-size:12.5px !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body#royal-blue-app .dk-page > .page-head .head-actions .btn svg {flex:none}
  body#royal-blue-app .dk-page > .page-head .head-actions .hc-page-help span {display:none !important}
  body#royal-blue-app .dk-page > .dk-badges {flex-wrap:nowrap !important;overflow-x:auto;gap:6px !important;margin:0 0 8px !important;padding-bottom:2px;scrollbar-width:none}
  body#royal-blue-app .dk-page > .dk-badges::-webkit-scrollbar {display:none}
  body#royal-blue-app .dk-page > .dk-badges .dk-badge {flex:none;min-height:26px !important;padding:0 9px !important;font-size:11.5px !important;white-space:nowrap}
  body#royal-blue-app .dk-page > .dk-stats {grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:6px !important;margin:0 0 10px !important}
  body#royal-blue-app .dk-page > .dk-stats .dk-stat {display:grid !important;grid-template-columns:minmax(0,1fr) !important;justify-items:center !important;gap:2px !important;min-height:0 !important;padding:8px 4px !important;border-radius:12px !important;text-align:center}
  body#royal-blue-app .dk-page > .dk-stats .dk-stat-ico,body#royal-blue-app .dk-page > .dk-stats .dk-stat small,body#royal-blue-app .dk-page > .dk-stats .dk-stat-go {display:none !important}
  body#royal-blue-app .dk-page > .dk-stats .dk-stat-body {display:flex !important;flex-direction:column-reverse !important;align-items:center !important;gap:2px !important;min-width:0}
  body#royal-blue-app .dk-page > .dk-stats .dk-stat strong {font-size:21px !important;line-height:1 !important}
  body#royal-blue-app .dk-page > .dk-stats .dk-stat::before,body#royal-blue-app .dk-page > .dk-stats .dk-stat::after {display:none !important}
  body#royal-blue-app .dk-page > .dk-stats .dk-stat,body#royal-blue-app .dk-page > .dk-stats .dk-stat * {opacity:1 !important}
  body#royal-blue-app .dk-page > .dk-stats .dk-stat-label {color:#35517a !important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px !important;line-height:1.25 !important;letter-spacing:0 !important}
  body#royal-blue-app .dk-page > .dk-nav {position:sticky;top:0;z-index:5;margin-bottom:10px !important;background:#f3f7fd;box-shadow:0 6px 12px -10px rgba(20,60,120,.35)}
}
}

/* ==== admin-switches.css ==== */
/* Quản trị in the look of the "Cài đặt" page (27-10-2026): checkboxes drawn as switches, short selects as iOS-style segmented buttons
   (admin-switches.js), and the written-for-you save note (admin-save-assist.js). Switched in Quản trị › Cài đặt cán bộ. The selectors
   carry three ids so they beat the device files' 22px checkbox size inside the same layer. */
@layer readability {
  /* ---- switches ---- */
  :root body#royal-blue-app :is(#content .admin-workspace.admin-switches #admin-panel, #modal-root:is(body:has(.admin-switches) *)) input[type=checkbox]:not(:is(.rpm-switch,.acf-role,.acf-switch,.acf-station,.dk-switch,.dk-mini-switch,.adm-codes) input) {
    -webkit-appearance:none !important;appearance:none !important;position:relative !important;flex:none !important;display:inline-block !important;
    width:40px !important;height:23px !important;min-width:40px !important;min-height:23px !important;margin:0 !important;padding:0 !important;
    border:0 !important;border-radius:999px !important;background:#cfd8e6 !important;box-shadow:inset 0 0 0 1px rgba(15,40,80,.06) !important;
    cursor:pointer !important;vertical-align:middle !important;transition:background .2s ease !important;opacity:1 !important;
  }
  :root body#royal-blue-app :is(#content .admin-workspace.admin-switches #admin-panel, #modal-root:is(body:has(.admin-switches) *)) input[type=checkbox]:not(:is(.rpm-switch,.acf-role,.acf-switch,.acf-station,.dk-switch,.dk-mini-switch,.adm-codes) input)::before {
    content:"" !important;position:absolute !important;top:3px !important;left:3px !important;width:17px !important;height:17px !important;
    border-radius:50% !important;background:#fff !important;box-shadow:0 1px 3px rgba(0,0,0,.25) !important;transition:transform .2s ease !important;
  }
  :root body#royal-blue-app :is(#content .admin-workspace.admin-switches #admin-panel, #modal-root:is(body:has(.admin-switches) *)) input[type=checkbox]:not(:is(.rpm-switch,.acf-role,.acf-switch,.acf-station,.dk-switch,.dk-mini-switch,.adm-codes) input):checked {
    background:linear-gradient(135deg,#2563eb,#3b82f6) !important;box-shadow:none !important;
  }
  :root body#royal-blue-app :is(#content .admin-workspace.admin-switches #admin-panel, #modal-root:is(body:has(.admin-switches) *)) input[type=checkbox]:not(:is(.rpm-switch,.acf-role,.acf-switch,.acf-station,.dk-switch,.dk-mini-switch,.adm-codes) input):checked::before {
    transform:translateX(17px) !important;
  }
  :root body#royal-blue-app :is(#content .admin-workspace.admin-switches #admin-panel, #modal-root:is(body:has(.admin-switches) *)) input[type=checkbox]:not(:is(.rpm-switch,.acf-role,.acf-switch,.acf-station,.dk-switch,.dk-mini-switch,.adm-codes) input):disabled {
    opacity:.5 !important;cursor:not-allowed !important;
  }
  :root body#royal-blue-app :is(#content .admin-workspace.admin-switches #admin-panel, #modal-root:is(body:has(.admin-switches) *)) input[type=checkbox]:not(:is(.rpm-switch,.acf-role,.acf-switch,.acf-station,.dk-switch,.dk-mini-switch,.adm-codes) input):focus-visible {
    outline:3px solid #aac8ff !important;outline-offset:2px !important;
  }
  /* the switch row: white card, blue tint when on (as .dk-switch) */
  :root body#royal-blue-app #content .admin-workspace.admin-switches #admin-panel .admin-toggle-field {
    background:#fff !important;border:1px solid #e1eafa !important;border-radius:12px !important;transition:border-color .15s ease,background .15s ease !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-switches #admin-panel .admin-toggle-field:has(input:checked) {
    border-color:#c7d8fb !important;background:linear-gradient(90deg,#f1f6ff,#fff) !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-switches #admin-panel .admin-toggle-field > label {cursor:pointer !important}

  /* ---- iOS-style segmented choice ---- */
  :root body#royal-blue-app #content .admin-workspace #admin-panel .adm-seg {
    display:grid !important;grid-template-columns:repeat(var(--seg-n,2),minmax(0,1fr)) !important;gap:3px !important;padding:3px !important;
    border-radius:11px !important;background:#eef2f8 !important;box-shadow:inset 0 0 0 1px #e1e8f2 !important;min-width:0 !important;max-width:560px !important;width:100% !important;
  }
  :root body#royal-blue-app #content .admin-workspace #admin-panel .adm-seg-btn {
    min-width:0 !important;min-height:34px !important;margin:0 !important;padding:6px 10px !important;border:0 !important;border-radius:8px !important;
    background:transparent !important;color:#3c5373 !important;font:inherit !important;font-size:13px !important;font-weight:600 !important;line-height:1.25 !important;
    cursor:pointer !important;overflow-wrap:anywhere !important;transition:background .15s ease,color .15s ease,box-shadow .15s ease !important;box-shadow:none !important;
  }
  :root body#royal-blue-app #content .admin-workspace #admin-panel .adm-seg-btn:hover:not(:disabled) {color:#163a63 !important;background:rgba(255,255,255,.55) !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .adm-seg-btn[aria-checked=true] {
    background:#fff !important;color:#1d4ed8 !important;box-shadow:0 1px 2px rgba(15,40,80,.12),0 2px 8px rgba(37,99,235,.12) !important;
  }
  :root body#royal-blue-app #content .admin-workspace #admin-panel .adm-seg-btn:focus-visible {outline:3px solid #aac8ff !important;outline-offset:1px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .adm-seg-btn:disabled {opacity:.5 !important;cursor:not-allowed !important}

  /* ---- written-for-you save note ---- */
  :root body#royal-blue-app #content .admin-workspace #admin-panel .admin-save-area > .admin-reason-auto {
    flex:1 1 320px !important;order:1 !important;min-width:0 !important;margin:0 !important;padding:9px 12px !important;
    border:1px dashed #c7d8fb !important;border-radius:10px !important;background:#f6f9ff !important;
  }
  :root body#royal-blue-app #content .admin-workspace #admin-panel .admin-reason-auto-head {
    display:block !important;font-size:11.5px !important;font-weight:700 !important;letter-spacing:.02em !important;text-transform:uppercase !important;color:#4b6a95 !important;
  }
  :root body#royal-blue-app #content .admin-workspace #admin-panel .admin-reason-auto-text {
    margin:3px 0 0 !important;font-size:13.5px !important;line-height:1.45 !important;color:#163a63 !important;overflow-wrap:anywhere !important;
  }
  :root body#royal-blue-app #content .admin-workspace #admin-panel .admin-reason-auto[data-state=clean] .admin-reason-auto-text {color:#7387a3 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .admin-reason-auto-hint {display:block !important;margin-top:2px !important;font-size:12px !important;color:#6b7f99 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .admin-save-area > .admin-reason-own[hidden] {display:none !important}

  @media (max-width:700px) {
    :root body#royal-blue-app #content .admin-workspace #admin-panel .adm-seg {max-width:none !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .adm-seg-btn {min-height:40px !important;padding:6px !important}
  }
  @media (prefers-reduced-motion:reduce) {
    :root body#royal-blue-app :is(#content,#modal-root) :is(input[type=checkbox],input[type=checkbox]::before,.adm-seg-btn) {transition:none !important}
  }
}

/* ===== 27-10-2026 (2): the whole Quản trị form in the language of the Cài đặt page (desk-page.css): one setting per row (icon tile, bold title,
   small explanation, control on the right) in a white box per section, sections as soft groups, a floating save bar, NH₃ coefficient tiles.
   Switched in Quản trị › Cài đặt cán bộ (admin_desk_look). ===== */
@layer readability {
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel {--dk:#175adb;--dk-2:#4b8bff;--dk-soft:#eef4ff;--dk-line:#c6d9fb}
  /* sections */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel fieldset.admin-field-section {
    margin:0 0 16px !important;padding:14px 16px 16px !important;border:1px solid #e3ecfb !important;border-radius:16px !important;
    background:linear-gradient(180deg,#fbfdff,#fff) !important;box-shadow:none !important;min-width:0 !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel fieldset.admin-field-section > legend {
    display:inline-flex !important;align-items:center !important;gap:7px !important;padding:0 8px !important;margin:0 !important;
    font-size:11.5px !important;font-weight:600 !important;letter-spacing:.3px !important;text-transform:uppercase !important;color:var(--dk) !important;background:none !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel fieldset.admin-field-section > legend .admin-section-index {
    display:inline-grid !important;place-items:center !important;min-width:22px !important;height:18px !important;padding:0 6px !important;border-radius:999px !important;
    background:var(--dk-soft) !important;color:var(--dk) !important;font-size:11px !important;font-weight:600 !important;border:0 !important;box-shadow:none !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel fieldset.admin-field-section > .admin-section-description {margin:2px 0 12px !important;font-size:13px !important;line-height:1.5 !important;color:#62758d !important}

  /* a white box of rows */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .form-grid:has(> .adm-row) {
    display:grid !important;grid-template-columns:minmax(0,1fr) !important;gap:0 !important;padding:0 !important;
    border:1px solid #e1eafa !important;border-radius:14px !important;background:#fff !important;overflow:hidden !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .form-grid:has(> .adm-row) > :not(.adm-row) {grid-column:1 / -1 !important;margin:0 !important;border-bottom:1px solid #edf2fb !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .form-grid:has(> .adm-row) > .admin-advanced {padding:10px 16px !important;background:#fbfdff !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .form-grid:has(> .adm-row) > .adm-coefs-wrap {padding:14px !important;background:#fbfdff !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .form-grid:has(> .adm-row) > :last-child {border-bottom:0 !important}
  /* one setting per row */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row {
    position:relative !important;display:grid !important;grid-template-columns:minmax(0,1fr) auto !important;align-items:center !important;gap:6px 20px !important;
    grid-column:1 / -1 !important;margin:0 !important;padding:12px 16px !important;min-height:0 !important;
    border:0 !important;border-bottom:1px solid #edf2fb !important;border-radius:0 !important;background:#fff !important;box-shadow:none !important;min-width:0 !important;
    transition:background .15s ease !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row:last-child {border-bottom:0 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row:hover {background:#fafcff !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row:focus-within {background:#fbfdff !important;box-shadow:inset 3px 0 0 var(--dk-2) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > label {
    grid-column:1 !important;display:grid !important;grid-template-columns:24px minmax(0,1fr) !important;align-items:start !important;gap:2px 11px !important;
    margin:0 !important;font-size:13.5px !important;font-weight:600 !important;line-height:1.35 !important;color:#24446b !important;cursor:pointer !important;min-width:0 !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > label > svg {
    grid-row:1 / span 2 !important;width:24px !important;height:24px !important;padding:5.5px !important;box-sizing:border-box !important;margin:0 !important;
    border-radius:7px !important;background:var(--dk-soft) !important;color:var(--dk) !important;flex:none !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > label > span:not(.admin-required) {grid-column:2 !important;grid-row:1 !important;overflow-wrap:anywhere !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > label > .admin-required {grid-column:2 !important;grid-row:1 !important;justify-self:end !important;align-self:start !important;margin:0 0 0 6px !important;color:#d13a32 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > label:has(> .admin-required) > span:not(.admin-required) {padding-right:14px !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > label > .adm-row-hint {grid-column:2 !important;grid-row:2 !important;display:block !important;font-size:12px !important;font-weight:400 !important;line-height:1.45 !important;color:#7a8ca3 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > :is(input,select,textarea,.adm-seg) {grid-column:2 !important;grid-row:1 !important;justify-self:end !important;margin:0 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > :not(label):not(input):not(select):not(textarea):not(.adm-seg) {grid-column:1 / -1 !important;margin:0 0 0 35px !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > :is(.admin-field-help,.admin-character-count,small) {font-size:12px !important;line-height:1.45 !important;color:#7a8ca3 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row .form-control {min-height:40px !important;border-radius:10px !important;max-width:100% !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row[data-kind=number] > .form-control {width:130px !important;text-align:right !important;font-weight:600 !important;font-variant-numeric:tabular-nums !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row:is([data-kind=text],[data-kind=email],[data-kind=url],[data-kind=password],[data-kind=time],[data-kind=date],[data-kind=datetime-local]) > .form-control {width:min(320px,100%) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row[data-kind=select] > select.form-control {width:min(420px,100%) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > .adm-seg {width:min(440px,100%) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row[data-kind=color] > input[type=color] {width:56px !important;min-width:56px !important;height:40px !important;padding:3px !important}
  /* long text, wide fields: control under the title */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row:is([data-kind=textarea],.full) {grid-template-columns:minmax(0,1fr) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row:is([data-kind=textarea],.full) > :is(input,select,textarea,.adm-seg) {grid-column:1 / -1 !important;grid-row:auto !important;justify-self:stretch !important;width:100% !important;max-width:none !important}
  /* switches in the same rows */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row[data-kind=switch] > input[type=checkbox] {align-self:center !important}
  /* changed */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row.is-changed {background:linear-gradient(90deg,var(--dk-soft),#fff 70%) !important;box-shadow:inset 3px 0 0 var(--dk) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row.is-changed > label > span:not(.admin-required)::after {
    content:"đã sửa";margin-left:8px;padding:1px 7px;border-radius:999px;background:var(--dk);color:#fff;font-size:10.5px;font-weight:700;vertical-align:1px;white-space:nowrap;
  }

  /* NH₃ coefficient tiles + test box (desk-page.css draws them) */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-coefs-wrap {grid-column:1 / -1 !important;display:grid !important;gap:16px !important;margin:0 0 16px !important;min-width:0 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-coefs .dk-coef > .dk-coef-main > .form-control {width:100% !important;min-height:42px !important;font-weight:600 !important;font-variant-numeric:tabular-nums !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-coefs .dk-coef .admin-field-help {font-size:12px !important;color:#7a8ca3 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-coefs-wrap .dk-calc {margin:0 !important;padding:16px !important;border:1px solid #e3ecfb !important;border-radius:16px !important;box-shadow:none !important}

  /* floating save bar */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel #settings-form .admin-save-area {
    padding:12px 14px !important;border:1px solid #d9e6fb !important;border-radius:16px !important;
    background:rgba(255,255,255,.94) !important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 10px 30px -18px rgba(23,90,219,.45) !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel #settings-form[data-dirty] .admin-save-area {border-color:var(--dk-line) !important;background:rgba(255,255,255,.96) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel #settings-form .admin-save-area button[type=submit]:not(.secondary) {
    min-height:44px !important;padding:0 18px !important;border:0 !important;border-radius:12px !important;
    background:linear-gradient(135deg,var(--dk),var(--dk-2)) !important;color:#fff !important;font-weight:600 !important;box-shadow:0 6px 14px -10px var(--dk) !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel #settings-form .admin-save-area .admin-save-status {font-weight:600 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel #settings-form[data-dirty] .admin-save-area .admin-save-status {color:var(--dk) !important}

  @media (max-width:700px) {
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel fieldset.admin-field-section {padding:12px 10px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row {grid-template-columns:minmax(0,1fr) !important;padding:12px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > :is(input,select,textarea,.adm-seg) {grid-column:1 / -1 !important;grid-row:auto !important;justify-self:stretch !important;width:100% !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row[data-kind=switch] {grid-template-columns:minmax(0,1fr) auto !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row[data-kind=switch] > input[type=checkbox] {grid-column:2 !important;grid-row:1 !important;justify-self:end !important;width:40px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > :not(label):not(input):not(select):not(textarea):not(.adm-seg) {margin-left:0 !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row[data-kind=number] > .form-control {text-align:left !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row[data-kind]:not([data-kind=switch]):not([data-kind=color]) > :is(.form-control,.adm-seg) {width:100% !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row[data-kind=color] > input {justify-self:start !important}
  }
}

/* ===== 27-10-2026 (3): the lists of Quản trị (người nhận, ánh xạ, menu, cấp cảnh báo…) as the compact lists of the Cài đặt page: one white box,
   one line per item (number chip, name, small summary, quick switch, chevron), the opened item's fields as setting rows. ===== */
@layer readability {
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-collection > .admin-section-description {margin:2px 0 10px !important;font-size:12.5px !important;line-height:1.5 !important;color:#62758d !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-collection-tools {margin:0 0 10px !important;gap:8px 12px !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-search {min-height:38px !important;border-radius:10px !important;border:1px solid #d9e6fb !important;background:#fff !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-list {
    display:grid !important;gap:0 !important;padding:0 !important;margin:0 0 10px !important;
    border:1px solid #e1eafa !important;border-radius:14px !important;background:#fff !important;overflow:hidden !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-list > .admin-empty-state {border:0 !important;border-radius:0 !important;margin:0 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-list > details.admin-record {
    margin:0 !important;border:0 !important;border-bottom:1px solid #edf2fb !important;border-radius:0 !important;background:#fff !important;box-shadow:none !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-list > details.admin-record:last-of-type {border-bottom:0 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-list > details.admin-record > summary {
    display:flex !important;align-items:center !important;gap:10px 12px !important;min-height:52px !important;padding:8px 12px !important;
    border:0 !important;border-radius:0 !important;background:transparent !important;box-shadow:none !important;cursor:pointer !important;transition:background .12s ease !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-list > details.admin-record > summary:hover {background:#fafcff !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-list > details.admin-record > summary:focus-visible {outline:none !important;box-shadow:inset 3px 0 0 var(--dk-2) !important;background:#fbfdff !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-list > details.admin-record[open] > summary {background:linear-gradient(90deg,var(--dk-soft),#fff 75%) !important;box-shadow:inset 3px 0 0 var(--dk) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-list .admin-record-index {
    display:grid !important;place-items:center !important;flex:none !important;width:26px !important;height:26px !important;min-width:26px !important;padding:0 !important;
    border:0 !important;border-radius:8px !important;background:var(--dk-soft) !important;color:var(--dk) !important;font-size:11.5px !important;font-weight:700 !important;box-shadow:none !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-list .admin-record-summary {display:grid !important;gap:1px !important;flex:1 1 auto !important;min-width:0 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-list .admin-record-summary strong {font-size:13.5px !important;font-weight:600 !important;line-height:1.35 !important;color:#24446b !important;overflow-wrap:anywhere !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-list .admin-record-summary small {font-size:12px !important;font-weight:400 !important;line-height:1.4 !important;color:#7a8ca3 !important;overflow-wrap:anywhere !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-list .admin-record-chevron {display:grid !important;place-items:center !important;flex:none !important;width:28px !important;height:28px !important;border-radius:8px !important;background:transparent !important;color:#8aa0bd !important;border:0 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-list .admin-drag-handle {flex:none !important;color:#a3b1c4 !important}
  /* the quick switch on the line */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-quick {
    position:relative !important;flex:none !important;display:inline-flex !important;align-items:center !important;gap:7px !important;margin:0 !important;padding:4px 6px !important;
    border:0 !important;border-radius:999px !important;background:transparent !important;color:#62758d !important;font:inherit !important;font-size:12px !important;font-weight:600 !important;cursor:pointer !important;box-shadow:none !important;min-height:0 !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-quick::before {content:"" !important;flex:none !important;width:36px !important;height:20px !important;border-radius:999px !important;background:#cfd8e6 !important;transition:background .2s ease !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-quick::after {content:"" !important;position:absolute !important;left:9px !important;top:50% !important;width:14px !important;height:14px !important;margin-top:-7px !important;border-radius:50% !important;background:#fff !important;box-shadow:0 1px 3px rgba(0,0,0,.25) !important;transition:transform .2s ease !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-quick[aria-checked=true]::before {background:linear-gradient(135deg,var(--dk),var(--dk-2)) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-quick[aria-checked=true]::after {transform:translateX(16px) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-quick:focus-visible {outline:3px solid #aac8ff !important;outline-offset:1px !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-quick:disabled {opacity:.5 !important;cursor:default !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel details.admin-record:has(.adm-quick[aria-checked=false]) .admin-record-summary strong {color:#7a8ca3 !important}

  /* the opened item */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-list > details.admin-record > .admin-record-body {
    display:grid !important;gap:12px !important;margin:0 !important;padding:12px 14px 14px 50px !important;border:0 !important;border-top:1px solid #edf2fb !important;
    border-radius:0 !important;background:#fbfdff !important;box-shadow:none !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .admin-editor-tabs {margin:0 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .admin-record-section {margin:0 !important;padding:0 !important;border:0 !important;background:none !important;box-shadow:none !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .admin-record-section > h3 {margin:0 0 6px !important;font-size:11.5px !important;font-weight:600 !important;letter-spacing:.3px !important;text-transform:uppercase !important;color:var(--dk) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .form-grid {
    display:grid !important;grid-template-columns:minmax(0,1fr) !important;gap:0 !important;padding:0 !important;
    border:1px solid #e1eafa !important;border-radius:12px !important;background:#fff !important;overflow:hidden !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .form-grid > .field {
    display:grid !important;grid-template-columns:minmax(0,1fr) min(300px,55%) !important;align-items:center !important;gap:4px 16px !important;
    grid-column:1 / -1 !important;margin:0 !important;padding:10px 12px !important;min-height:0 !important;
    border:0 !important;border-bottom:1px solid #edf2fb !important;border-radius:0 !important;background:#fff !important;box-shadow:none !important;min-width:0 !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .form-grid > .field:last-child {border-bottom:0 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .form-grid > .field:focus-within {background:#fbfdff !important;box-shadow:inset 3px 0 0 var(--dk-2) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .form-grid > .field > label {grid-column:1 !important;margin:0 !important;font-size:13px !important;font-weight:600 !important;line-height:1.35 !important;color:#24446b !important;min-width:0 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .form-grid > .field > :is(input,select,textarea,.adm-seg) {grid-column:2 !important;grid-row:1 !important;justify-self:end !important;margin:0 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .form-grid > .field > :is(input,select).form-control {width:100% !important;min-height:38px !important;border-radius:10px !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .form-grid > .field > input[type=number].form-control {width:120px !important;text-align:right !important;font-variant-numeric:tabular-nums !important;font-weight:600 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .form-grid > .field > :not(label):not(input):not(select):not(textarea):not(.adm-seg) {grid-column:1 / -1 !important;margin:0 !important;font-size:12px !important;color:#7a8ca3 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .form-grid > .field.full {grid-template-columns:minmax(0,1fr) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .form-grid > .field.full > :is(input,select,textarea) {grid-column:1 !important;grid-row:auto !important;justify-self:stretch !important;width:100% !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .form-grid > .field.admin-toggle-field > input[type=checkbox] {align-self:center !important}
  /* item actions: small ghost buttons */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-actions {display:flex !important;flex-wrap:wrap !important;align-items:center !important;gap:6px 8px !important;margin:0 !important;padding:0 !important;border:0 !important;background:none !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-actions > span {flex:1 1 auto !important;font-size:12px !important;color:#7a8ca3 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-actions .btn {min-height:34px !important;padding:0 12px !important;border-radius:999px !important;border:1px solid #d9e6fb !important;background:#fff !important;color:#33507a !important;font-size:12.5px !important;font-weight:600 !important;box-shadow:none !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-actions .btn:hover:not(:disabled) {background:var(--dk-soft) !important;color:var(--dk) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-actions .btn.admin-danger {border-color:#f5d0cc !important;color:#c0392b !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-actions .btn.admin-danger:hover:not(:disabled) {background:#fde7e5 !important;color:#a1271b !important}

  @media (max-width:700px) {
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-list > details.admin-record > summary {padding:8px 10px !important;gap:8px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-list > details.admin-record > .admin-record-body {padding:10px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .form-grid > .field {grid-template-columns:minmax(0,1fr) !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .form-grid > .field > :is(input,select,textarea,.adm-seg) {grid-column:1 !important;grid-row:auto !important;justify-self:stretch !important;width:100% !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .form-grid > .field > :is(input,select).form-control {width:100% !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .form-grid > .field.admin-toggle-field {grid-template-columns:minmax(0,1fr) auto !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .form-grid > .field.admin-toggle-field > input[type=checkbox] {grid-column:2 !important;grid-row:1 !important;justify-self:end !important;width:40px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .form-grid > .field > input[type=number].form-control {width:100% !important;text-align:left !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-quick span {display:none !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-actions .btn {flex:1 1 auto !important;justify-content:center !important}
  }
}

/* the hidden source control of a code picker (admin-code-pickers.js) stays hidden inside the rows above */
@layer readability {
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel :is(.adm-row, .admin-record-body .form-grid > .field) > .adm-picker-source.adm-picker-source.adm-picker-source {
    position:absolute !important;width:1px !important;height:1px !important;min-width:0 !important;max-width:1px !important;min-height:0 !important;
    padding:0 !important;margin:0 !important;border:0 !important;opacity:0 !important;overflow:hidden !important;clip:rect(0 0 0 0) !important;pointer-events:none !important;
  }
}

/* ===== 27-10-2026 (4): every screen of Quản trị (Tổng quan, Điểm quan trắc, Tài khoản, Phân quyền, Lịch sử, Máy chủ & CSDL, Nhập số liệu,
   Lịch sử gửi, Liên thông, Sao chép hệ thống, Thử nghiệm nội suy…) in the common language of the Cài đặt page: white cards with a fine blue-grey
   border, a gradient icon tile before each card title, the sub-tabs as a pill bar with the chosen one filled, pill buttons, soft badges and tables
   with a pale head and thin lines. Only the shared pieces are touched; each screen keeps its own layout. ===== */
@layer readability {
  /* cards */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .card {border:1px solid #e1eafa !important;border-radius:16px !important;background:#fff !important;box-shadow:0 1px 2px rgba(20,60,120,.05) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .card .card {box-shadow:none !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel :is(.card-title,.settings-title) {gap:10px 12px !important;align-items:center !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel :is(.card-title,.settings-title) h2 {display:flex !important;align-items:center !important;gap:12px !important;margin:0 !important;font-size:16px !important;font-weight:600 !important;line-height:1.3 !important;color:#133858 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .rb-form-title-icon {
    display:grid !important;place-items:center !important;flex:none !important;width:38px !important;height:38px !important;border:0 !important;border-radius:11px !important;
    background:linear-gradient(135deg,var(--dk),var(--dk-2)) !important;color:#fff !important;box-shadow:0 6px 14px -10px var(--dk) !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .rb-form-title-icon svg {width:18px !important;height:18px !important;color:#fff !important;stroke:currentColor !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel :is(.admin-section-description,.section-note) {font-size:13px !important;line-height:1.5 !important;color:#62758d !important}

  /* sub-tabs: a pill bar, the chosen tab filled */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-editor-tabs {gap:6px !important;padding:5px !important;margin:0 0 14px !important;border:1px solid #dfe9fa !important;border-radius:14px !important;background:#fff !important;box-shadow:0 1px 2px rgba(20,60,120,.05) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-editor-tabs > button {
    min-height:38px !important;margin:0 !important;padding:6px 12px !important;border:0 !important;border-radius:10px !important;background:transparent !important;
    color:#3d5876 !important;font-size:13.5px !important;font-weight:500 !important;line-height:1.3 !important;box-shadow:none !important;transition:background .15s ease,color .15s ease !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-editor-tabs > button::after {content:none !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-editor-tabs > button:hover {background:var(--dk-soft) !important;color:var(--dk) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-editor-tabs > button[aria-selected=true] {background:linear-gradient(135deg,var(--dk),var(--dk-2)) !important;color:#fff !important;font-weight:600 !important;box-shadow:0 6px 14px -10px var(--dk) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-editor-tabs > button[aria-selected=true] .admin-tab-changes {background:#fff !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-editor-tabs > button:focus-visible {outline:3px solid #aac8ff !important;outline-offset:1px !important}

  /* buttons */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .btn {border-radius:10px !important;font-weight:600 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .btn.secondary {border:1px solid #d9e6fb !important;background:#fff !important;color:#33507a !important;box-shadow:none !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .btn.secondary:hover:not(:disabled) {background:var(--dk-soft) !important;border-color:var(--dk-line) !important;color:var(--dk) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .btn.ghost {border:1px solid transparent !important;background:transparent !important;color:#33507a !important;box-shadow:none !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .btn.ghost:hover:not(:disabled) {background:var(--dk-soft) !important;color:var(--dk) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel :is(.btn.primary,.btn:not(.secondary):not(.ghost):not(.admin-danger):not(.danger)) {background:linear-gradient(135deg,var(--dk),var(--dk-2)) !important;border-color:transparent !important;color:#fff !important;box-shadow:0 6px 14px -10px var(--dk) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel :is(.btn.admin-danger,.btn.danger) {border:1px solid #f5d0cc !important;background:#fff !important;color:#c0392b !important;box-shadow:none !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel :is(.btn.admin-danger,.btn.danger):hover:not(:disabled) {background:#fde7e5 !important;color:#a1271b !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-text-button {color:var(--dk) !important;font-weight:600 !important}

  /* badges and states */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .badge {display:inline-flex !important;align-items:center !important;gap:6px !important;min-height:24px !important;padding:0 10px !important;border-radius:999px !important;font-size:12px !important;font-weight:600 !important;box-shadow:none !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .badge.blue {border:1px solid var(--dk-line) !important;background:var(--dk-soft) !important;color:var(--dk) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-status {border-radius:999px !important;font-weight:600 !important}

  /* search boxes and plain inputs */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel :is(.admin-record-search,.admin-list-toolbar input[type=search]) {border-radius:10px !important;border-color:#d9e6fb !important;background:#fff !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .form-control {border-color:#d9e6fb !important;border-radius:10px !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .form-control:focus {border-color:var(--dk-2) !important;box-shadow:0 0 0 3px var(--dk-soft) !important;outline:none !important}

  /* the blocks of the bespoke screens: same border, corner and hover */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel :is(.admin-station-card,.aov-card,.asys-card,.admin-import-type,.aml-box) {border-color:#e1eafa !important;border-radius:14px !important;box-shadow:none !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel :is(.admin-station-card,.aov-card,.asys-card,.admin-import-type):hover {border-color:var(--dk-line) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel :is(.aov-icon,.asys-icon) {border-radius:11px !important}

  /* tables (phones keep the card view of device-mobile.css) */
  @media (min-width:701px) {
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .table-wrap {border:1px solid #e1eafa !important;border-radius:14px !important;background:#fff !important;overflow:auto !important;box-shadow:none !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel table:not(.rpm-table) > thead th {padding:9px 10px !important;background:#f3f8ff !important;color:#4a6382 !important;font-size:12px !important;font-weight:600 !important;text-transform:uppercase !important;letter-spacing:.25px !important;border-bottom:1px solid #dbe7fb !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel table:not(.rpm-table) > tbody td {border-bottom:1px solid #edf2fb !important;color:#244477 !important;vertical-align:middle !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel table:not(.rpm-table) > tbody tr:last-child td {border-bottom:0 !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel table:not(.rpm-table) > tbody tr:hover td {background:#f8fbff !important}
  }
}

/* ===== 27-10-2026 (5): the dialogs of Quản trị (sửa / thêm điểm, tạo điểm từ mẫu, tài khoản, vai trò, khóa API, chuyển TEST/LIVE, thay đổi
   chưa lưu…) in the language of the Cài đặt page: a white sheet with a fine border, a gradient icon tile before the title, sections as soft
   groups, one setting per row (title left, control right), pill buttons. The account dialog keeps its own cards (account-form.css). ===== */
@layer readability {
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal {--dk:#175adb;--dk-2:#4b8bff;--dk-soft:#eef4ff;--dk-line:#c6d9fb;border:1px solid #e1eafa !important;border-radius:18px !important;box-shadow:0 24px 60px -24px rgba(19,56,88,.35) !important;background:#fff !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal > .modal-title {gap:12px !important;margin:0 0 14px !important;padding:0 0 12px !important;border-bottom:1px solid #edf2fb !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal > .modal-title h2 {display:flex !important;align-items:center !important;gap:12px !important;margin:0 !important;font-size:17px !important;font-weight:600 !important;line-height:1.35 !important;color:#133858 !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal > .modal-title .rb-form-title-icon {
    display:grid !important;place-items:center !important;flex:none !important;width:38px !important;height:38px !important;border:0 !important;border-radius:11px !important;
    background:linear-gradient(135deg,var(--dk),var(--dk-2)) !important;color:#fff !important;box-shadow:0 6px 14px -10px var(--dk) !important;
  }
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal > .modal-title .rb-form-title-icon svg {width:18px !important;height:18px !important;color:#fff !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal > .modal-title .icon-button {width:38px !important;height:38px !important;border:1px solid #d9e6fb !important;border-radius:10px !important;background:#fff !important;color:#4a6382 !important;box-shadow:none !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal > .modal-title .icon-button:hover {background:var(--dk-soft) !important;color:var(--dk) !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal :is(.admin-detail-note,.admin-section-hint) {margin:0 0 12px !important;padding:10px 12px !important;border:1px solid var(--dk-line) !important;border-left:3px solid var(--dk) !important;border-radius:12px !important;background:var(--dk-soft) !important;color:#3d5876 !important;font-size:13px !important;line-height:1.5 !important}
  /* sections */
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal fieldset.admin-field-section {margin:0 0 14px !important;padding:12px 14px 14px !important;border:1px solid #e3ecfb !important;border-radius:16px !important;background:linear-gradient(180deg,#fbfdff,#fff) !important;box-shadow:none !important;min-width:0 !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal fieldset.admin-field-section > legend {padding:0 8px !important;font-size:11.5px !important;font-weight:600 !important;letter-spacing:.3px !important;text-transform:uppercase !important;color:var(--dk) !important}
  /* one setting per row, in a white box */
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal :is(.form-grid,form.stack):has(> .field) {display:grid !important;grid-template-columns:minmax(0,1fr) !important;gap:0 !important;padding:0 !important;border:1px solid #e1eafa !important;border-radius:12px !important;background:#fff !important;overflow:hidden !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal :is(.form-grid,form.stack):has(> .field) > :not(.field) {grid-column:1 / -1 !important;margin:0 !important;padding:10px 12px !important;border-bottom:1px solid #edf2fb !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal :is(.form-grid,form.stack):has(> .field) > .field {
    display:grid !important;grid-template-columns:minmax(0,1fr) min(300px,58%) !important;align-items:center !important;gap:4px 16px !important;
    grid-column:1 / -1 !important;margin:0 !important;padding:10px 12px !important;min-height:0 !important;
    border:0 !important;border-bottom:1px solid #edf2fb !important;border-radius:0 !important;background:#fff !important;box-shadow:none !important;min-width:0 !important;
  }
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal :is(.form-grid,form.stack):has(> .field) > :last-child {border-bottom:0 !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal :is(.form-grid,form.stack):has(> .field) > .field:focus-within {background:#fbfdff !important;box-shadow:inset 3px 0 0 var(--dk-2) !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal :is(.form-grid,form.stack) > .field > label {grid-column:1 !important;margin:0 !important;font-size:13px !important;font-weight:600 !important;line-height:1.35 !important;color:#24446b !important;min-width:0 !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal :is(.form-grid,form.stack) > .field > :is(input,select,textarea,.adm-seg):not([type=checkbox]):not([type=hidden]) {grid-column:2 !important;grid-row:1 !important;width:100% !important;margin:0 !important;min-height:40px !important;border-radius:10px !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal :is(.form-grid,form.stack) > .field > input[type=checkbox] {grid-column:2 !important;grid-row:1 !important;justify-self:end !important;margin:0 !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal :is(.form-grid,form.stack) > .field > :not(label):not(input):not(select):not(textarea):not(.adm-seg) {grid-column:1 / -1 !important;margin:0 !important;font-size:12px !important;line-height:1.45 !important;color:#7a8ca3 !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal :is(.form-grid,form.stack) > .field.full {grid-template-columns:minmax(0,1fr) !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal :is(.form-grid,form.stack) > .field.full > :is(input,select,textarea,.adm-seg):not([type=checkbox]) {grid-column:1 !important;grid-row:auto !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal :is(.form-grid,form.stack) > .field:has(> textarea) {grid-template-columns:minmax(0,1fr) !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal :is(.form-grid,form.stack) > .field > textarea {grid-column:1 !important;grid-row:auto !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .form-control {border-color:#d9e6fb !important;border-radius:10px !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .form-control:focus {border-color:var(--dk-2) !important;box-shadow:0 0 0 3px var(--dk-soft) !important;outline:none !important}
  /* iOS-style choices inside a dialog (admin-switches.js) */
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .adm-seg {display:grid !important;grid-template-columns:repeat(var(--seg-n,2),minmax(0,1fr)) !important;gap:3px !important;padding:3px !important;border-radius:11px !important;background:#eef2f8 !important;box-shadow:inset 0 0 0 1px #e1e8f2 !important;min-width:0 !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .adm-seg-btn {min-width:0 !important;min-height:34px !important;margin:0 !important;padding:6px 8px !important;border:0 !important;border-radius:8px !important;background:transparent !important;color:#3c5373 !important;font:inherit !important;font-size:13px !important;font-weight:600 !important;line-height:1.25 !important;cursor:pointer !important;overflow-wrap:anywhere !important;box-shadow:none !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .adm-seg-btn[aria-checked=true] {background:#fff !important;color:#1d4ed8 !important;box-shadow:0 1px 2px rgba(15,40,80,.12),0 2px 8px rgba(37,99,235,.12) !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .adm-seg-btn:disabled {opacity:.5 !important;cursor:not-allowed !important}
  /* buttons */
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .btn {border-radius:10px !important;font-weight:600 !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .btn.secondary {border:1px solid #d9e6fb !important;background:#fff !important;color:#33507a !important;box-shadow:none !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .btn.secondary:hover:not(:disabled) {background:var(--dk-soft) !important;border-color:var(--dk-line) !important;color:var(--dk) !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .btn.ghost {border:1px solid transparent !important;background:transparent !important;color:#33507a !important;box-shadow:none !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal :is(.btn.primary,.btn:not(.secondary):not(.ghost):not(.admin-danger):not(.danger):not(.acf-danger)) {background:linear-gradient(135deg,var(--dk),var(--dk-2)) !important;border-color:transparent !important;color:#fff !important;box-shadow:0 6px 14px -10px var(--dk) !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal :is(.btn.admin-danger,.btn.danger,.btn.acf-danger) {border:1px solid #f5d0cc !important;background:#fff !important;color:#c0392b !important;box-shadow:none !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .form-actions {gap:8px 10px !important;margin-top:14px !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .acf-card {border-color:#e1eafa !important;border-radius:14px !important}
  @media (max-width:700px) {
    :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal {border-radius:16px !important}
    :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal :is(.form-grid,form.stack):has(> .field) > .field {grid-template-columns:minmax(0,1fr) !important}
    :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal :is(.form-grid,form.stack) > .field > :is(input,select,textarea,.adm-seg):not([type=checkbox]):not([type=hidden]) {grid-column:1 !important;grid-row:auto !important}
    :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal :is(.form-grid,form.stack) > .field:has(> input[type=checkbox]) {grid-template-columns:minmax(0,1fr) auto !important}
  }
}

/* tabs inside a dialog: the same pill bar as the screens */
@layer readability {
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .admin-editor-tabs {gap:6px !important;padding:5px !important;margin:0 0 12px !important;border:1px solid #dfe9fa !important;border-radius:14px !important;background:#fff !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .admin-editor-tabs > button {min-height:36px !important;margin:0 !important;padding:6px 12px !important;border:0 !important;border-radius:10px !important;background:transparent !important;color:#3d5876 !important;font-size:13.5px !important;font-weight:500 !important;box-shadow:none !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .admin-editor-tabs > button::after {content:none !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .admin-editor-tabs > button:hover {background:var(--dk-soft) !important;color:var(--dk) !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .admin-editor-tabs > button[aria-selected=true] {background:linear-gradient(135deg,var(--dk),var(--dk-2)) !important;color:#fff !important;font-weight:600 !important;box-shadow:0 6px 14px -10px var(--dk) !important}
}

/* a dialog form whose buttons sit in its own box: buttons on a pale strip, "Hủy" visible as a bordered button */
@layer readability {
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal form.stack:has(> .field) > :not(.field):not(.admin-field-help):not(small):not(p) {background:#fbfdff !important;border-top:1px solid #edf2fb !important;padding:12px !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .btn.ghost {border:1px solid #d9e6fb !important;background:#fff !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .btn.ghost:hover:not(:disabled) {background:var(--dk-soft) !important;color:var(--dk) !important}
}

/* the written-for-you note inside a dialog (Khôi phục cấu hình) */
@layer readability {
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .admin-reason-auto {margin:4px 0 14px !important;padding:9px 12px !important;border:1px dashed #c7d8fb !important;border-radius:10px !important;background:#f6f9ff !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .admin-reason-auto-head {display:block !important;font-size:11.5px !important;font-weight:700 !important;letter-spacing:.02em !important;text-transform:uppercase !important;color:#4b6a95 !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .admin-reason-auto-text {margin:3px 0 0 !important;font-size:13.5px !important;line-height:1.45 !important;color:#163a63 !important}
  :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal .admin-reason-auto-hint {display:block !important;margin-top:2px !important;font-size:12px !important;color:#6b7f99 !important}
}

/* ===== 27-10-2026 (6): fixes seen on screenshots at 1440 px. A hidden tab or field stays hidden (the display rules above must not show a
   panel the editor hid); the required star sits right after the title; text boxes wide enough for their value; switch rows stay white
   when on (only a changed row is tinted); no line above the save buttons; the points catalogue in columns with readable figures. ===== */
@layer readability {
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel [hidden]:not(#adm-never), :root body#royal-blue-app:has(.admin-workspace.admin-desk-look) #modal-root .modal [hidden]:not(#adm-never) {display:none !important}
  /* title · star · explanation */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > label {grid-template-columns:24px minmax(0,max-content) minmax(0,1fr) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > label > span:not(.admin-required) {grid-column:2 !important;grid-row:1 !important;padding-right:0 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > label > .admin-required {grid-column:3 !important;grid-row:1 !important;justify-self:start !important;align-self:start !important;margin:0 0 0 4px !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > label > .adm-row-hint {grid-column:2 / -1 !important;grid-row:2 !important}
  /* wider text boxes */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row:is([data-kind=text],[data-kind=email],[data-kind=url],[data-kind=password],[data-kind=search],[data-kind=tel]) > .form-control {width:min(440px,100%) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row[data-kind=select] > select.form-control {width:min(440px,100%) !important}
  /* switch rows: white when on, the icon tinted */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row.admin-toggle-field:has(input:checked):not(.is-changed) {background:#fff !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row.admin-toggle-field:has(input:checked):not(.is-changed):hover {background:#fafcff !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .field.admin-toggle-field:has(input:checked) {background:#fff !important}
  /* save bar */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel #settings-form .admin-save-area > .form-actions {border-top:0 !important;padding-top:0 !important;align-self:center !important}
  /* points catalogue: figures as tiles, cards in columns */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-preview-metrics {gap:10px !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-preview-metric {padding:12px 14px !important;border:1px solid #e1eafa !important;border-radius:14px !important;background:#fff !important;box-shadow:none !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-preview-metric > :first-child {font-size:12px !important;font-weight:600 !important;color:#6b7f9a !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-preview-metric > :last-child {font-size:22px !important;font-weight:700 !important;line-height:1.2 !important;color:#133858 !important}
  @media (min-width:1100px) {
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-station-list {display:grid !important;grid-template-columns:repeat(auto-fill,minmax(420px,1fr)) !important;gap:12px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-station-list > .admin-station-card {margin:0 !important}
  }
}

/* (6b) text boxes sized from the screen (a % width inside the auto column of the row collapses to the box's own small width);
   a full-width row keeps the whole width; the side sections of a form (Kiểm tra gửi email…) as soft groups */
@layer readability {
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row:is([data-kind=text],[data-kind=email],[data-kind=url],[data-kind=password],[data-kind=search],[data-kind=tel]) > .form-control {width:clamp(220px,32vw,460px) !important;max-width:100% !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row[data-kind=select] > select.form-control {width:clamp(220px,32vw,460px) !important;max-width:100% !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row:is(.full,[data-kind=textarea]) > :is(.form-control,.adm-seg) {width:100% !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > label > .admin-required {margin-left:-6px !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel #settings-form > .admin-section {margin:16px 0 0 !important;padding:14px 16px 16px !important;border:1px solid #e3ecfb !important;border-radius:16px !important;background:linear-gradient(180deg,#fbfdff,#fff) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel #settings-form > .admin-section > h3 {margin:0 0 6px !important;font-size:11.5px !important;font-weight:600 !important;letter-spacing:.3px !important;text-transform:uppercase !important;color:var(--dk) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel #settings-form > .admin-section > p {margin:0 0 8px !important;font-size:13px !important;line-height:1.5 !important;color:#62758d !important;max-width:none !important}
  @media (max-width:700px) {
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row:is([data-kind=text],[data-kind=email],[data-kind=url],[data-kind=password],[data-kind=search],[data-kind=tel]) > .form-control,
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row[data-kind=select] > select.form-control {width:100% !important}
  }
}

/* (6c) a field whose label has no icon (side editors such as Phương pháp ước tính): the label is plain text, not the icon grid */
@layer readability {
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > label:not(:has(> svg)) {display:block !important;grid-column:1 / -1 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row:has(> label:not(:has(> svg))) {grid-template-columns:minmax(0,1fr) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row:has(> label:not(:has(> svg))) > :is(input,select,textarea,.adm-seg) {grid-column:1 !important;grid-row:auto !important;justify-self:stretch !important;width:100% !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row:has(> label:not(:has(> svg))) > :not(label):not(input):not(select):not(textarea):not(.adm-seg) {margin-left:0 !important}
}

/* (6d) a second label inside a row (secret fields: "Xóa thông tin xác thực đang lưu" with its switch) is a plain line, not the icon grid;
   table cells wrap between words, not inside them */
@layer readability {
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > label ~ label {display:flex !important;align-items:center !important;gap:10px !important;grid-column:1 / -1 !important;grid-row:auto !important;margin:2px 0 0 35px !important;font-weight:500 !important;font-size:13px !important;color:#3d5876 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > label ~ label > input[type=checkbox] {margin:0 !important;flex:none !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > small.muted {grid-column:1 / -1 !important;margin-left:35px !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel table td {word-break:normal !important;overflow-wrap:break-word !important;hyphens:none !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel table th {white-space:nowrap !important}
}

/* (6e) Thử nghiệm nội suy / Góp ý giao diện: the row buttons wrap instead of pushing the table past its card; the unit column readable */
@layer readability {
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .aml-row-actions {flex-wrap:wrap !important;white-space:normal !important;justify-content:flex-end !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .aml-table td:nth-child(5) {min-width:120px !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .aml-table td:nth-child(4) {min-width:140px !important}
}

/* ===== 27-10-2026 (7): the menu of Quản trị, light and one level. Wide screens: a column on the left that always shows every screen, grouped
   by task (admin-nav.js NAV), the open one filled. Small screens (and "Thanh trên cùng" in Quản trị › Cài đặt cán bộ): the bar with the
   screens of the same group as pills and a "Chọn mục" button opening the whole list, both in the light look of the page. ===== */
@layer readability {
  /* tones of the groups */
  :root body#royal-blue-app #content .admin-workspace [data-tone] {--mt:#175adb;--mt2:#4b8bff;--mts:#eef4ff}
  :root body#royal-blue-app #content .admin-workspace [data-tone=red] {--mt:#d13a32;--mt2:#ff6b5e;--mts:#fff1ef}
  :root body#royal-blue-app #content .admin-workspace [data-tone=green] {--mt:#0f9a4c;--mt2:#34c77b;--mts:#eaf8f0}
  :root body#royal-blue-app #content .admin-workspace [data-tone=teal] {--mt:#0f8f86;--mt2:#2cc4b6;--mts:#e6f7f5}
  :root body#royal-blue-app #content .admin-workspace [data-tone=violet] {--mt:#6a48e0;--mt2:#9b7bff;--mts:#f3efff}
  :root body#royal-blue-app #content .admin-workspace [data-tone=amber] {--mt:#c77b00;--mt2:#f5a524;--mts:#fff7e6}
  :root body#royal-blue-app #content .admin-workspace [data-tone=slate] {--mt:#52627a;--mt2:#8494ab;--mts:#f1f4f8}

  /* ---------- the list (left column and panel share it) ---------- */
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-search {display:flex !important;align-items:center !important;gap:8px !important;margin:0 0 10px !important;padding:0 10px !important;min-height:38px !important;border:1px solid #d9e6fb !important;border-radius:10px !important;background:#fff !important;color:#7a8ca3 !important;box-shadow:none !important}
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-search input {flex:1 !important;min-width:0 !important;border:0 !important;outline:none !important;background:transparent !important;color:#133858 !important;font:inherit !important;font-size:13.5px !important;box-shadow:none !important;padding:0 !important;min-height:0 !important}
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-group {margin:0 0 10px !important;padding:0 !important;border:0 !important;background:none !important;box-shadow:none !important}
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-group h2 {display:flex !important;align-items:center !important;gap:7px !important;margin:0 0 4px !important;padding:4px 8px !important;font-size:11px !important;font-weight:700 !important;letter-spacing:.4px !important;text-transform:uppercase !important;color:var(--mt) !important;background:none !important}
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-group h2::before {content:"" !important;width:6px !important;height:6px !important;border-radius:50% !important;background:var(--mt) !important;flex:none !important}
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-advanced > summary {list-style:none !important;cursor:pointer !important}
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-advanced > summary::-webkit-details-marker {display:none}
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-advanced > summary h2::after {content:"›" !important;margin-left:auto !important;font-size:14px !important;transition:transform .15s ease !important}
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-advanced[open] > summary h2::after {transform:rotate(90deg) !important}
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-item {
    position:relative !important;display:flex !important;align-items:center !important;gap:10px !important;margin:1px 0 !important;padding:6px 8px !important;min-height:38px !important;
    border:0 !important;border-radius:10px !important;background:transparent !important;color:#24446b !important;font-size:13.5px !important;font-weight:500 !important;line-height:1.3 !important;
    text-decoration:none !important;box-shadow:none !important;transition:background .12s ease,color .12s ease !important;
  }
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-item:hover {background:var(--mts) !important;color:var(--mt) !important}
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-item:focus-visible {outline:3px solid #aac8ff !important;outline-offset:1px !important}
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-ico {display:grid !important;place-items:center !important;flex:none !important;width:28px !important;height:28px !important;border-radius:8px !important;background:var(--mts) !important;color:var(--mt) !important;border:0 !important;box-shadow:none !important}
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-ico svg {width:15px !important;height:15px !important}
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-item.is-active {background:linear-gradient(135deg,var(--mt),var(--mt2)) !important;color:#fff !important;font-weight:600 !important;box-shadow:0 6px 14px -10px var(--mt) !important}
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-item.is-active .admin-nav-ico {background:rgba(255,255,255,.22) !important;color:#fff !important}
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-item.is-active::before {content:none !important}
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-item > :is(small,em,.admin-nav-count) {margin-left:auto !important;font-size:11px !important;font-style:normal !important;color:#7a8ca3 !important;background:none !important}
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-empty {margin:6px 8px !important;font-size:13px !important;color:#7a8ca3 !important}

  /* ---------- wide screens: the column ---------- */
  @media (min-width:1100px) {
    :root body#royal-blue-app #content .admin-workspace.admin-menu-side {display:grid !important;grid-template-columns:248px minmax(0,1fr) !important;column-gap:18px !important;align-items:start !important}
    :root body#royal-blue-app #content .admin-workspace.admin-menu-side > * {grid-column:2 !important;min-width:0 !important}
    :root body#royal-blue-app #content .admin-workspace.admin-menu-side > .admin-side {
      grid-column:1 !important;grid-row:1 / span 20 !important;position:sticky !important;top:74px !important;max-height:calc(100dvh - 92px) !important;overflow:auto !important;
      padding:12px !important;border:1px solid #e1eafa !important;border-radius:16px !important;background:#fff !important;box-shadow:0 1px 2px rgba(20,60,120,.05) !important;
      scrollbar-width:thin;
    }
    :root body#royal-blue-app #content .admin-workspace.admin-menu-side > .admin-side .admin-side-head {display:none !important}
    :root body#royal-blue-app #content .admin-workspace.admin-menu-side > :is(.admin-topbar,#admin-menu,.qn-recent) {display:none !important}
  }
  @media (max-width:1099.98px) {
    :root body#royal-blue-app #content .admin-workspace.admin-menu-side > .admin-side {display:none !important}
  }

  /* ---------- the bar (small screens, or "Thanh trên cùng") in the light look ---------- */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-topbar {
    gap:8px !important;padding:6px !important;border:1px solid #dfe9fa !important;border-radius:16px !important;background:rgba(255,255,255,.96) !important;
    -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 6px 18px -14px rgba(19,56,88,.35) !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-menu-button {border:1px solid #d9e6fb !important;border-radius:12px !important;background:#fff !important;color:#133858 !important;box-shadow:none !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-menu-button:hover {background:var(--mts,#eef4ff) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-menu-ico {border-radius:9px !important;background:linear-gradient(135deg,var(--mt,#175adb),var(--mt2,#4b8bff)) !important;color:#fff !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-menu-label small {color:var(--mt,#175adb) !important;font-weight:600 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-menu-label b {color:#133858 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-menu-chevron {color:#7a8ca3 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-topbar-tab {min-height:38px !important;padding:6px 12px !important;border:0 !important;border-radius:10px !important;background:transparent !important;color:#3d5876 !important;font-weight:500 !important;box-shadow:none !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-topbar-tab svg {color:var(--mt,#175adb) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-topbar-tab:hover {background:var(--mts,#eef4ff) !important;color:var(--mt,#175adb) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-topbar-tab.is-active {background:linear-gradient(135deg,var(--mt,#175adb),var(--mt2,#4b8bff)) !important;color:#fff !important;font-weight:600 !important;box-shadow:0 6px 14px -10px var(--mt,#175adb) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-topbar-tab.is-active svg {color:#fff !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-topbar-tab.is-active::after {content:none !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-menu-search {border:1px solid #d9e6fb !important;border-radius:12px !important;background:#fff !important;color:#3d5876 !important;box-shadow:none !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-menu-search kbd {border:1px solid #d9e6fb !important;background:#f5f8fd !important;color:#4a6382 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-menu {
    padding:14px !important;border:1px solid #dfe9fa !important;border-radius:16px !important;background:#fff !important;color:#133858 !important;
    box-shadow:0 24px 60px -24px rgba(19,56,88,.35) !important;
  }
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-menu-head {color:#133858 !important;border-color:#edf2fb !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-menu-head strong {color:#133858 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-menu-head span {color:#7a8ca3 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-menu-close {border:1px solid #d9e6fb !important;background:#fff !important;color:#4a6382 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-menu .admin-nav-list {display:grid !important;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr)) !important;gap:4px 16px !important;align-items:start !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-menu .admin-nav-list > .admin-nav-search {grid-column:1 / -1 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-menu .admin-nav-list > .admin-nav-group {display:block !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-menu .admin-nav-item {display:flex !important;width:100% !important}
}

@layer readability {
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-item::after {content:none !important;display:none !important}
}

/* (7b) the panel kept the light-on-navy text colours of the old menu (admin-upgrade.css, same layer): one class more wins */
@layer readability {
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look :is(.admin-side,.admin-menu) .admin-nav-item, :root body#royal-blue-app #content .admin-workspace.admin-desk-look :is(.admin-side,.admin-menu) .admin-nav-item span {color:#24446b !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look :is(.admin-side,.admin-menu) .admin-nav-item:hover, :root body#royal-blue-app #content .admin-workspace.admin-desk-look :is(.admin-side,.admin-menu) .admin-nav-item:hover span {color:var(--mt) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look :is(.admin-side,.admin-menu) .admin-nav-item.is-active, :root body#royal-blue-app #content .admin-workspace.admin-desk-look :is(.admin-side,.admin-menu) .admin-nav-item.is-active span {color:#fff !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look :is(.admin-side,.admin-menu) .admin-nav-group h2, :root body#royal-blue-app #content .admin-workspace.admin-desk-look :is(.admin-side,.admin-menu) .admin-nav-empty {color:var(--mt) !important}
}

/* ===== 27-10-2026 (8): one scale for every form of Quản trị (measured at 1440 px: 13 font sizes from 11 to 22 px, inputs 15 px above 13.5 px
   titles, 44 px buttons, cards 16–22 px, three nested frames). On screens from 701 px:
     card title 16/600 · section title 12/700 caps · field title 13.5/600 · text 13.5 · notes 12 · inputs 14 px, 38 px high · buttons 38 px
     (small 32) · tabs 36 px · card padding 18 · row 10×14 · a section is a title over its white box (no frame of its own).
   Phones keep their own sizes (16 px inputs so the screen does not zoom). Big figures of the overview screens are left as they are. ===== */
@layer readability {
  @media (min-width:701px) {
    /* cards and their titles */
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .card {padding:18px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel :is(.card-title,.settings-title) h2, :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-editor-overview + * h2 {font-size:16px !important;font-weight:600 !important;line-height:1.35 !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel :is(.card,.admin-section) h3:not([class]) {font-size:14px !important;font-weight:600 !important;line-height:1.4 !important;color:#133858 !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel :is(.admin-section-description,.section-note,.admin-detail-note) {font-size:13px !important;line-height:1.5 !important}
    /* plain text, notes */
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel :is(p:not([class]),td,li,dd) {font-size:13.5px !important;line-height:1.5 !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel :is(.admin-field-help,.admin-character-count,.adm-row-hint,.admin-record-summary small,td small,.muted,small:not([class])) {font-size:12px !important;line-height:1.45 !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel th {font-size:11.5px !important}
    /* the summary line under the tabs bar */
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-editor-overview {gap:10px 16px !important;margin:0 0 12px !important;padding:0 !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-editor-revision {font-size:12px !important;font-weight:600 !important;color:#62758d !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-editor-summary {margin:2px 0 0 !important;font-size:13px !important;color:#4a6382 !important}
    /* inputs */
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel :is(input.form-control,select.form-control,.admin-record-search input,.admin-list-toolbar input,.admin-list-toolbar select) {font-size:14px !important;min-height:38px !important;height:38px !important;padding-top:0 !important;padding-bottom:0 !important;border-radius:10px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel input[type=color].form-control {height:38px !important;padding:3px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel textarea.form-control {font-size:14px !important;line-height:1.5 !important;min-height:76px !important;padding:8px 12px !important;border-radius:10px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-search {min-height:38px !important;height:38px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-seg-btn {min-height:32px !important;font-size:12.5px !important}
    /* buttons */
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .btn {min-height:38px !important;height:auto !important;padding:0 14px !important;font-size:13.5px !important;gap:7px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .btn.small {min-height:32px !important;padding:0 11px !important;font-size:12.5px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .btn svg {width:16px !important;height:16px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel #settings-form .admin-save-area button[type=submit]:not(.secondary) {min-height:40px !important}
    /* tabs */
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-editor-tabs > button {min-height:36px !important;padding:5px 12px !important;font-size:13px !important}
    /* sections: a title over the white box of rows, no frame around both */
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel fieldset.admin-field-section {margin:0 0 16px !important;padding:0 !important;border:0 !important;border-radius:0 !important;background:none !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel fieldset.admin-field-section > legend {margin:0 0 4px !important;padding:0 !important;float:none !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel fieldset.admin-field-section > .admin-section-description {margin:0 0 8px !important;font-size:12.5px !important}
    /* rows */
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row {padding:10px 14px !important;gap:4px 18px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > label {font-size:13.5px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > label > svg {width:22px !important;height:22px !important;padding:5px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > label {grid-template-columns:22px minmax(0,max-content) minmax(0,1fr) !important;column-gap:10px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-row > :not(label):not(input):not(select):not(textarea):not(.adm-seg) {margin-left:32px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-body .form-grid > .field {padding:9px 12px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-list > details.admin-record > summary {min-height:46px !important;padding:7px 12px !important}
    /* the save bar */
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel #settings-form .admin-save-area {padding:10px 12px !important;gap:8px 12px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-save-heading strong {font-size:13px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-reason-auto {padding:7px 10px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-reason-auto-text {font-size:13px !important}
    /* the page header of the open screen */
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-context {padding:14px 18px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-context h2 {font-size:19px !important;line-height:1.3 !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-context p {font-size:13px !important;line-height:1.5 !important;max-width:820px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-context-icon {width:42px !important;height:42px !important;border-radius:12px !important}
  }
}

/* (8b) on a desktop with a mouse (from 1280 px) controls are 38 px, not the 44 px touch size of device-desktop.css (whose selectors carry
   many :not() and win on weight: one id more here). Tablets keep 44 px. */
@layer readability {
  @media (min-width:1280px) {
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]),select):not(#adm-n) {min-height:38px !important;height:38px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel :is(.btn,.admin-text-button,.pg-btn):not(#adm-n) {min-height:38px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .btn.small:not(#adm-n), :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-record-actions > .btn:not(#adm-n) {min-height:32px !important;padding:0 11px !important;font-size:12.5px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .pg-btn:not(#adm-n) {min-width:36px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-editor-tabs > *:not(#adm-n) {min-height:36px !important;padding:5px 12px !important;font-size:13px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .adm-seg-btn:not(#adm-n) {min-height:32px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel summary:not(#adm-n):not(.admin-record > summary) {min-height:0 !important}
  }
}

@layer readability {
  @media (min-width:1280px) {
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .admin-editor-tabs > button:not(#adm-n):not(#adm-m) {min-height:36px !important;padding:5px 12px !important;font-size:13px !important}
  }
}

/* (7c) the two new group colours (red, green) for everything that reads --tone (page header, bar), and no dot after the open line */
:root body#royal-blue-app.royal-blue-interface #content [data-tone="red"] {--tone:#e5484d}
:root body#royal-blue-app.royal-blue-interface #content [data-tone="green"] {--tone:#22a35a}
@layer readability {
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-active-dot {display:none !important}
}

/* (8c) Kiểm tra gửi email: the address and its two buttons on one line */
@layer readability {
  @media (min-width:701px) {
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel #settings-form > .admin-section:has([data-email-test]) {display:flex !important;flex-wrap:wrap !important;align-items:center !important;gap:8px 10px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel #settings-form > .admin-section:has([data-email-test]) > :is(h3,p) {flex:1 1 100% !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel #settings-form > .admin-section:has([data-email-test]) > label {display:flex !important;align-items:center !important;gap:10px !important;flex:1 1 360px !important;margin:0 !important;font-size:13.5px !important;font-weight:600 !important;color:#24446b !important;white-space:nowrap !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel #settings-form > .admin-section:has([data-email-test]) > label > input {flex:1 !important;min-width:0 !important;white-space:normal !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel #settings-form > .admin-section:has([data-email-test]) > .btn {flex:none !important}
  }
}

/* (8d) tables inside the narrower column: cells wrap, a little less padding */
@layer readability {
  @media (min-width:701px) {
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel table:not(.rpm-table) :is(td,th) {padding:8px 10px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .aml-table td {white-space:normal !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .aml-table td:last-child {min-width:0 !important}
  }
}

@layer readability {
  @media (min-width:701px) {
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .aml-table {table-layout:auto !important;width:100% !important;min-width:0 !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .aml-table td:has(> .aml-row-actions), :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .aml-table th:last-child {position:static !important;width:1% !important;background:inherit !important;box-shadow:none !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .aml-row-actions {flex-direction:column !important;align-items:stretch !important;gap:4px !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .aml-row-actions .btn {min-height:28px !important;padding:0 10px !important;font-size:12px !important;justify-content:center !important;white-space:nowrap !important}
  }
}

@layer readability {
  @media (min-width:701px) {
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .aml-table th {white-space:normal !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel .aml-table td:nth-child(2) {white-space:nowrap !important}
  }
}

/* (8e) phones too: a section is its title over the white box, not one more frame */
@layer readability {
  @media (max-width:700px) {
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel fieldset.admin-field-section {margin:0 0 14px !important;padding:0 !important;border:0 !important;border-radius:0 !important;background:none !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel fieldset.admin-field-section > legend {margin:0 0 4px !important;padding:0 !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look #admin-panel fieldset.admin-field-section > .admin-section-description {margin:0 0 8px !important;font-size:12.5px !important}
  }
}

/* ===== 27-10-2026 (9): the tabs bar of an entry that holds several screens (Chia sẻ dữ liệu / LGSP, Hồ sơ dự án, Nhập số liệu, Cấu hình: lịch sử
   & sao chép, Mô hình / NH₃, Máy chủ & CSDL): the pill bar of the page, the open screen filled in the colour of its group ===== */
@layer readability {
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-subnav {display:flex !important;flex-wrap:wrap !important;gap:6px !important;margin:0 0 14px !important;padding:5px !important;border:1px solid #dfe9fa !important;border-radius:14px !important;background:#fff !important;box-shadow:0 1px 2px rgba(20,60,120,.05) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-subnav .admin-subnav-item {display:inline-flex !important;align-items:center !important;justify-content:center !important;flex:0 0 auto !important;min-height:36px !important;min-width:0 !important;padding:5px 14px !important;border:0 !important;border-radius:10px !important;background:transparent !important;color:#3d5876 !important;font-size:13.5px !important;font-weight:500 !important;text-decoration:none !important;box-shadow:none !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-subnav .admin-subnav-item:hover {background:#eef4ff !important;color:#175adb !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-subnav .admin-subnav-item.is-active {background:linear-gradient(135deg,var(--tone,#175adb),color-mix(in srgb,var(--tone,#175adb) 70%,#fff)) !important;color:#fff !important;font-weight:600 !important;box-shadow:0 6px 14px -10px var(--tone,#175adb) !important}
  @media (max-width:700px) {
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-subnav .admin-subnav-item {flex:1 1 auto !important;min-height:40px !important}
  }
}

/* (9b) the number of screens of a shared entry: a small pill, white on the open line */
@layer readability {
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look :is(.admin-side,.admin-menu) .admin-nav-item > :last-child:not(span:first-of-type):not(.admin-nav-ico):not(.admin-active-dot) {margin-left:auto !important;min-width:20px !important;padding:0 6px !important;border-radius:999px !important;background:#eef2f8 !important;color:#62758d !important;font-size:11px !important;font-weight:700 !important;text-align:center !important;line-height:18px !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look :is(.admin-side,.admin-menu) .admin-nav-item.is-active > :last-child:not(span:first-of-type):not(.admin-nav-ico):not(.admin-active-dot) {background:rgba(255,255,255,.25) !important;color:#fff !important}
}

/* ===== 28-10-2026 (10): Tổng quan of Quản trị in the look of the other screens. Four figures on top (mode, things to fix, points with data,
   setup), "Cần chú ý" beside a short "Thiết lập ban đầu" (finished steps folded), area cards in the colour of their menu group with the state as
   a pill, label | value rows on one line, links as small pills at the foot of the card. Cards of a row share their height. ===== */
@layer readability {
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov {--aov-line:#e1eafa;display:grid !important;gap:16px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov [data-tone=good] {--t:#0f9a4c;--t2:#34c77b;--ts:#eaf8f0;--tt:#0f6e3a}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov [data-tone=bad] {--t:#e0620a;--t2:#ff9a3d;--ts:#fff2e8;--tt:#b03a12}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov [data-tone=neutral] {--t:#4f6380;--t2:#8a9bb2;--ts:#f2f5f9;--tt:#42597a}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov [data-area=teal] {--a:#0d8a85;--as:#e8f8f7;--al:#b2e4e0}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov [data-area=red] {--a:#d13a32;--as:#fff1ef;--al:#f5beb8}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov [data-area=amber] {--a:#c77b00;--as:#fff7e6;--al:#f3d79a}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov [data-area=violet] {--a:#6a48e0;--as:#f3efff;--al:#d6cafb}

  /* the four figures */
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-stats {display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:12px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-stat {position:relative !important;display:flex !important;align-items:center !important;gap:12px !important;min-width:0 !important;margin:0 !important;padding:14px 16px !important;border:1px solid var(--aov-line) !important;border-radius:16px !important;background:#fff !important;color:inherit !important;text-decoration:none !important;overflow:hidden !important;box-shadow:0 1px 2px rgba(20,60,120,.05) !important;transition:border-color .15s ease,box-shadow .15s ease !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-stat::before {content:"" !important;position:absolute !important;inset:0 0 auto 0 !important;height:3px !important;background:linear-gradient(90deg,var(--t),var(--t2)) !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-stat:hover {border-color:color-mix(in srgb,var(--t) 35%,#fff) !important;box-shadow:0 10px 24px -18px rgba(20,60,120,.5) !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-stat-icon {display:grid !important;place-items:center !important;flex:none !important;width:42px !important;height:42px !important;border-radius:12px !important;background:var(--ts) !important;color:var(--t) !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-stat-text {display:grid !important;min-width:0 !important;gap:1px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-stat-text small {color:#62758d !important;font-size:12px !important;font-weight:600 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-stat-text strong {color:#0e2a4d !important;font-size:22px !important;font-weight:700 !important;line-height:1.2 !important;font-variant-numeric:tabular-nums !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-stat-text em {overflow:hidden !important;color:var(--tt) !important;font-size:12px !important;font-style:normal !important;font-weight:600 !important;white-space:nowrap !important;text-overflow:ellipsis !important}

  /* attention beside the setup */
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-main {display:grid !important;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) !important;gap:16px !important;align-items:start !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-main.is-single {grid-template-columns:minmax(0,1fr) !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel :is(.aov-attention,.aov-setup) {margin:0 !important;padding:16px 18px !important;border:1px solid var(--aov-line) !important;border-radius:16px !important;box-shadow:0 1px 2px rgba(20,60,120,.05) !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel :is(.aov-attention-head,.aov-setup-head) h3 {font-size:15px !important;font-weight:600 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel :is(.aov-attention-head,.aov-setup-head) span {font-size:12.5px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-attention-head h3 svg {color:#e0620a !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-setup-head h3 svg {color:#0f9a4c !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-checks li {gap:10px !important;padding:9px 10px 9px 12px !important;border-radius:12px !important;border-color:#e6edf8 !important;background:#fff !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-checks li[data-level=warn] {border-color:#f6d3b5 !important;background:linear-gradient(100deg,#fff4ec,#fff 80%) !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-checks li[data-level=warn] .aov-dot {background:#e0620a !important;box-shadow:0 0 0 3px #fde1cc !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-check-text {font-size:13.5px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-checks .btn {min-height:32px !important;padding:0 11px !important;font-size:12.5px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-progress {height:6px !important;margin:10px 0 8px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-next {margin:0 0 8px !important;font-size:13px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-steps {gap:6px !important;margin:6px 0 0 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-steps li {gap:10px !important;padding:8px 10px !important;border-radius:12px !important;border-color:#e6edf8 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-steps strong {font-size:13.5px !important;font-weight:600 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-steps small {font-size:12px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-steps .btn {min-height:32px !important;padding:0 11px !important;font-size:12.5px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-step-mark {width:24px !important;height:24px !important;font-size:12px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-done {margin:10px 0 0 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-done > summary {display:flex !important;align-items:center !important;gap:7px !important;padding:6px 2px !important;color:#0f6e3a !important;font-size:13px !important;font-weight:600 !important;cursor:pointer !important;list-style:none !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-done > summary::-webkit-details-marker {display:none !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-done > summary::after {content:"Xem" !important;margin-left:auto !important;color:#175adb !important;font-size:12.5px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-done[open] > summary::after {content:"Ẩn" !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-done .aov-steps li {padding:6px 10px !important;background:#f7fcf9 !important}

  /* the area cards */
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-grid {display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:14px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-card {display:flex !important;flex-direction:column !important;gap:12px !important;min-width:0 !important;padding:16px !important;border:1px solid var(--aov-line) !important;border-radius:16px !important;background:#fff !important;box-shadow:0 1px 2px rgba(20,60,120,.05) !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-card:hover {border-color:var(--al) !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-card header {display:flex !important;align-items:center !important;gap:12px !important;min-width:0 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-card header > div {display:grid !important;justify-items:start !important;gap:4px !important;min-width:0 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-card .aov-icon {width:40px !important;height:40px !important;border:1px solid var(--al) !important;border-radius:12px !important;background:linear-gradient(145deg,#fff,var(--as)) !important;color:var(--a) !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-card h3 {margin:0 !important;color:#0e2a4d !important;font-size:15px !important;font-weight:600 !important;line-height:1.3 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-card .aov-state {display:inline-flex !important;align-items:center !important;gap:6px !important;max-width:100% !important;padding:2px 9px !important;border-radius:999px !important;background:var(--ts) !important;color:var(--tt) !important;font-size:12px !important;font-weight:600 !important;line-height:18px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-card .aov-state::before {content:"" !important;flex:none !important;width:6px !important;height:6px !important;border-radius:50% !important;background:var(--t) !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-card dl {display:grid !important;gap:0 !important;margin:0 !important;flex:1 1 auto !important;align-content:start !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-row {display:grid !important;grid-template-columns:auto minmax(0,1fr) !important;align-items:baseline !important;gap:12px !important;padding:7px 0 !important;border-bottom:1px solid #eef2f8 !important;font-size:13px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-row:last-child {border-bottom:0 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-row dt {color:#62758d !important;white-space:nowrap !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-row dd {min-width:0 !important;margin:0 !important;color:#17304f !important;font-weight:600 !important;text-align:right !important;overflow-wrap:anywhere !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-card footer {display:flex !important;flex-wrap:wrap !important;justify-content:flex-start !important;gap:6px !important;margin-top:auto !important;padding:10px 0 0 !important;border-top:1px solid #eef2f8 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-card .aov-link {display:inline-flex !important;align-items:center !important;gap:5px !important;min-height:30px !important;margin:0 !important;padding:0 10px !important;border-radius:9px !important;background:var(--as) !important;color:var(--a) !important;font-size:12.5px !important;font-weight:600 !important;white-space:nowrap !important;text-decoration:none !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-card .aov-link:hover {background:var(--a) !important;color:#fff !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-updated {font-size:12px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-part {white-space:nowrap !important}

  @media (max-width:1279px) {
    :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-grid {grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  }
  @media (max-width:1099px) {
    :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-stats {grid-template-columns:repeat(2,minmax(0,1fr)) !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-main {grid-template-columns:minmax(0,1fr) !important}
  }
  @media (max-width:700px) {
    :root body#royal-blue-app #content .admin-workspace #admin-panel .aov {gap:12px !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-stats {gap:8px !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-stat {gap:9px !important;padding:11px 12px !important;border-radius:14px !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-stat-icon {width:34px !important;height:34px !important;border-radius:10px !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-stat-text strong {font-size:18px !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-stat-text em {white-space:normal !important;font-size:11.5px !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-grid {grid-template-columns:minmax(0,1fr) !important;gap:12px !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel :is(.aov-attention,.aov-setup) {padding:14px !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .aov-card .aov-link {min-height:40px !important;flex:1 1 auto !important;justify-content:center !important}
  }
}

/* ===== 28-10-2026 (11): every screen of Quản trị in the look of its Tổng quan. The marks of a screen take the colour of its menu group (the
   .admin-main carries data-tone): card title icons as soft tiles, the chosen tab, section labels and numbers, row icons, open list lines and
   changed rows. Figures (.admin-preview-metric, .anh-count) are tiles with a coloured top line; states are pills with a dot. Actions stay
   blue everywhere (save, primary buttons, switches) so a button always looks like a button. ===== */
@layer readability {
  :root body#royal-blue-app #content .admin-workspace .admin-main[data-tone] {--g:var(--mt);--g2:var(--mt2);--gs:var(--mts);--gl:color-mix(in srgb,var(--mt) 28%,#fff)}

  /* card titles: the soft tile of the overview cards */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .rb-form-title-icon {border:1px solid var(--gl) !important;background:linear-gradient(145deg,#fff,var(--gs)) !important;color:var(--g) !important;box-shadow:none !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .rb-form-title-icon svg {color:var(--g) !important}
  /* the chosen tab and section marks */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-editor-tabs > button:hover {background:var(--gs) !important;color:var(--g) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-editor-tabs > button[aria-selected=true] {background:linear-gradient(135deg,var(--g),var(--g2)) !important;color:#fff !important;box-shadow:0 6px 14px -10px var(--g) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel fieldset.admin-field-section > legend {color:var(--g) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel fieldset.admin-field-section > legend .admin-section-index {background:var(--gs) !important;color:var(--g) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel :is(.admin-record-body .admin-record-section > h3, #settings-form > .admin-section > h3) {color:var(--g) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .adm-row > label > svg {background:var(--gs) !important;color:var(--g) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .adm-row:focus-within {box-shadow:inset 3px 0 0 var(--g) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .adm-row.is-changed {background:linear-gradient(90deg,var(--gs),#fff 70%) !important;box-shadow:inset 3px 0 0 var(--g) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-record-list > details.admin-record[open] > summary {background:linear-gradient(90deg,var(--gs),#fff 75%) !important;box-shadow:inset 3px 0 0 var(--g) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-record-list > details.admin-record > summary > :first-child:is(span,b,strong):not(:only-child) {background:var(--gs) !important;color:var(--g) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-text-button {color:var(--g) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel :is(.admin-station-card,.asys-card,.admin-import-type):hover {border-color:var(--gl) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-station-symbol {border:1px solid var(--gl) !important;border-radius:12px !important;background:linear-gradient(145deg,#fff,var(--gs)) !important;color:var(--g) !important}

  /* figures: tiles like the four of Tổng quan */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel :is(.admin-preview-metric,.anh-count) {position:relative !important;overflow:hidden !important;padding:14px 16px !important;border:1px solid #e1eafa !important;border-radius:16px !important;background:#fff !important;box-shadow:0 1px 2px rgba(20,60,120,.05) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel :is(.admin-preview-metric,.anh-count)::before {content:"" !important;position:absolute !important;inset:0 0 auto 0 !important;height:3px !important;background:linear-gradient(90deg,var(--g),var(--g2)) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-preview-metric > :first-child, :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .anh-count > span {color:#62758d !important;font-size:12px !important;font-weight:600 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-preview-metric > :last-child, :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .anh-count > b {font-size:22px !important;font-weight:700 !important;line-height:1.2 !important;font-variant-numeric:tabular-nums !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .anh-count[aria-pressed=true], :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .anh-count.is-active {border-color:var(--gl) !important;background:linear-gradient(180deg,var(--gs),#fff 70%) !important}

  /* states: pills with a dot */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel :is(.admin-status,.badge) {display:inline-flex !important;align-items:center !important;gap:6px !important;padding:2px 9px !important;border-radius:999px !important;font-size:12px !important;font-weight:600 !important;line-height:18px !important;white-space:nowrap !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel :is(.admin-status,.badge)::before {content:"" !important;flex:none !important;width:6px !important;height:6px !important;border-radius:50% !important;background:currentColor !important;opacity:.85 !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-status.ok {border:0 !important;background:#eaf8f0 !important;color:#0f6e3a !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-status.neutral {border:0 !important;background:#f2f5f9 !important;color:#42597a !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-status:is(.bad,.error,.warn) {border:0 !important;background:#fff2e8 !important;color:#b03a12 !important}

  /* Tài khoản: state, stations and the edit button on one line */
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-user-state {display:flex !important;flex-wrap:wrap !important;align-items:center !important;gap:6px 10px !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-user-state small {color:#62758d !important;font-size:12.5px !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-user-state .action-link {margin-left:auto !important}
}

/* (11b) Lịch sử gửi: the five setup cards on one row on wide screens, as cards of the overview */
@layer readability {
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .anh-setup > div {padding:12px 14px !important;border:1px solid #e1eafa !important;border-radius:14px !important;background:#fff !important;box-shadow:0 1px 2px rgba(20,60,120,.05) !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .anh-setup-k {color:var(--g) !important;font-size:11.5px !important;font-weight:600 !important}
  @media (min-width:1280px) {
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .anh-setup {grid-template-columns:repeat(5,minmax(0,1fr)) !important}
  }
}

/* (11c) Máy chủ: the four resource cards as two rows of two from 1280 px (four in a row squeezed their titles). Phương pháp ước tính: the save box as the other screens, words and the
   written note on the left, the buttons on the right */
@layer readability {
  @media (min-width:1280px) {
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .asys-grid {grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  }
  @media (min-width:900px) {
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-save-area:has(> .est-save-note) {display:grid !important;grid-template-columns:minmax(0,1fr) auto !important;gap:8px 18px !important;align-items:center !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-save-area:has(> .est-save-note) > :is(.admin-save-heading,.admin-inline-error,.admin-reason-own) {grid-column:1 / -1 !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-save-area:has(> .est-save-note) > :is(.admin-reason-auto,.est-save-note) {grid-column:1 !important;margin:0 !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-save-area:has(> .est-save-note) > .form-actions {grid-column:2 !important;grid-row:2 / span 2 !important;display:flex !important;flex-wrap:wrap !important;justify-content:flex-end !important;gap:8px !important;margin:0 !important}
    :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-save-area:has(> .est-save-note) > .form-actions > .btn {width:auto !important}
  }
}

/* (11d) Nhập số liệu: the file cards of a row end on the same line (actions at the foot), the four steps numbered in the group colour */
@layer readability {
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-import-type {display:flex !important;flex-direction:column !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-import-type > .admin-import-type-actions {margin-top:auto !important}
  :root body#royal-blue-app #content .admin-workspace.admin-desk-look .admin-main[data-tone] #admin-panel .admin-import-process > * > :first-child {color:var(--g) !important}
}

/* ===== 28-10-2026 (12): Quản trị › Lượt truy cập (admin-visits.js). Thống kê uses the tiles and cards of Tổng quan (.aov-*); here only what is
   its own: the range buttons, the bars of the days (residents and staff stacked), the ranked lists with a bar, the log table and filters. ===== */
@layer readability {
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-toolbar {display:flex !important;flex-wrap:wrap !important;align-items:center !important;justify-content:space-between !important;gap:8px 12px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-range {display:inline-flex !important;gap:4px !important;padding:4px !important;border:1px solid #dfe9fa !important;border-radius:12px !important;background:#fff !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-range button {min-height:32px !important;padding:0 12px !important;border:0 !important;border-radius:9px !important;background:transparent !important;color:#3d5876 !important;font-size:13px !important;font-weight:500 !important;cursor:pointer !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-range button:hover {background:var(--gs,#eef4ff) !important;color:var(--g,#175adb) !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-range button[aria-pressed=true] {background:linear-gradient(135deg,var(--g,#175adb),var(--g2,#4b8bff)) !important;color:#fff !important;font-weight:600 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-period {color:#62758d !important;font-size:12.5px !important;font-weight:600 !important}

  /* bars of the days */
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-chart {padding:16px 18px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-chart-head {display:flex !important;flex-wrap:wrap !important;align-items:center !important;justify-content:space-between !important;gap:6px 12px !important;margin:0 0 10px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-chart-head h3, :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-hints h3 {display:flex !important;align-items:center !important;gap:8px !important;margin:0 !important;color:#0e2a4d !important;font-size:15px !important;font-weight:600 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-legend {display:inline-flex !important;align-items:center !important;gap:6px !important;color:#62758d !important;font-size:12px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-legend i {display:inline-block !important;width:10px !important;height:10px !important;border-radius:3px !important;margin-left:6px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel :is(.avs-legend,.avs-stack) i.is-public {background:linear-gradient(180deg,#2bc48a,#0f9a4c) !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel :is(.avs-legend,.avs-stack) i.is-staff {background:linear-gradient(180deg,#8fb4ff,#175adb) !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-days {display:grid !important;grid-template-columns:repeat(var(--n),minmax(0,1fr)) !important;gap:3px !important;align-items:end !important;height:180px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-day {display:grid !important;grid-template-rows:1fr 18px !important;height:100% !important;min-width:0 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-stack {display:flex !important;flex-direction:column-reverse !important;justify-content:flex-start !important;border-radius:6px 6px 2px 2px !important;background:#f3f6fb !important;overflow:hidden !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-stack i {display:block !important;width:100% !important;min-height:0 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-day > span {overflow:hidden !important;color:#62758d !important;font-size:10.5px !important;text-align:center !important;white-space:nowrap !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-hints {padding:14px 18px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-hints ul {display:grid !important;gap:6px !important;margin:8px 0 0 !important;padding-left:18px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-hints li {color:#22395a !important;font-size:13.5px !important;line-height:1.5 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-hints h3 svg {color:var(--g,#175adb) !important}

  /* ranked lists */
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-card {--a:var(--g,#175adb);--as:var(--gs,#eef4ff);--al:var(--gl,#c6d9fb)}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-list {display:grid !important;gap:0 !important;margin:0 !important;padding:0 !important;list-style:none !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-list li, :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-head {display:grid !important;grid-template-columns:minmax(0,1fr) 56px auto !important;align-items:center !important;gap:10px !important;padding:7px 0 !important;border-bottom:1px solid #eef2f8 !important;font-size:13px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-list.has-load li, :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-head {grid-template-columns:minmax(0,1fr) 48px auto 46px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-head {padding:0 0 4px !important;color:#62758d !important;font-size:11.5px !important;font-weight:600 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-list li:last-child {border-bottom:0 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-label {overflow:hidden !important;color:#17304f !important;font-weight:600 !important;white-space:nowrap !important;text-overflow:ellipsis !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-bar {height:6px !important;border-radius:999px !important;background:#eef2f8 !important;overflow:hidden !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-bar i {display:block !important;height:100% !important;border-radius:inherit !important;background:linear-gradient(90deg,var(--g,#175adb),var(--g2,#4b8bff)) !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-num {color:#17304f !important;font-weight:700 !important;text-align:right !important;font-variant-numeric:tabular-nums !important;white-space:nowrap !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-num small {margin-left:6px !important;color:#62758d !important;font-size:11.5px !important;font-weight:600 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-load {color:#42597a !important;font-size:12px !important;text-align:right !important;white-space:nowrap !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-empty {display:block !important;padding:10px 0 !important;color:#62758d !important;font-size:13px !important;text-align:center !important}

  /* the log */
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-log {padding:16px 18px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-filters {display:grid !important;grid-template-columns:repeat(6,minmax(0,1fr)) !important;gap:8px 10px !important;align-items:end !important;margin:0 0 12px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-filters label {display:grid !important;gap:4px !important;margin:0 !important;color:#42597a !important;font-size:12px !important;font-weight:600 !important;min-width:0 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-filter-actions {grid-column:1 / -1 !important;display:flex !important;flex-wrap:wrap !important;gap:8px !important;justify-content:flex-end !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-scroll {overflow-x:auto !important;border:1px solid #e6edf8 !important;border-radius:12px !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-table {width:100% !important;min-width:640px !important;border-collapse:collapse !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-table th {padding:9px 10px !important;background:#f6f9fe !important;color:#62758d !important;font-size:11.5px !important;font-weight:600 !important;text-align:left !important;white-space:nowrap !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-table td {padding:8px 10px !important;border-top:1px solid #eef2f8 !important;color:#17304f !important;font-size:13px !important;vertical-align:top !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-table td small {display:block !important;margin-top:2px !important;overflow:hidden !important;max-width:300px !important;color:#62758d !important;font-size:11.5px !important;white-space:nowrap !important;text-overflow:ellipsis !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-table td strong {font-weight:600 !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-when, :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-ms {white-space:nowrap !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-ip {font-variant-numeric:tabular-nums !important}
  :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-pager {display:flex !important;flex-wrap:wrap !important;align-items:center !important;justify-content:space-between !important;gap:8px !important;margin:10px 0 0 !important;color:#62758d !important;font-size:12.5px !important}

  @media (max-width:1279px) {
    :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-filters {grid-template-columns:repeat(3,minmax(0,1fr)) !important}
  }
  @media (max-width:700px) {
    :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-filters {grid-template-columns:repeat(2,minmax(0,1fr)) !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-q {grid-column:1 / -1 !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-days {height:140px !important;gap:2px !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-range {width:100% !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-range button {flex:1 1 0 !important;min-height:38px !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-filter-actions .btn {flex:1 1 auto !important}
  }
}

/* (12b) the log table keeps to the width of the panel from 701 px: fixed columns, long host names and agents end in "…" (full text on hover) */
@layer readability {
  @media (min-width:701px) {
    :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-table {table-layout:fixed !important;min-width:0 !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-table th:nth-child(1) {width:16.5% !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-table th:nth-child(2) {width:18% !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-table th:nth-child(3) {width:17% !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-table th:nth-child(4) {width:21% !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-table td {overflow:hidden !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-table td :is(strong,small,.avs-ip) {display:block !important;max-width:100% !important;overflow:hidden !important;white-space:nowrap !important;text-overflow:ellipsis !important}
    :root body#royal-blue-app #content .admin-workspace #admin-panel .avs-table td .admin-status {max-width:100% !important;overflow:hidden !important;text-overflow:ellipsis !important}
  }
}

/* ===== 28-10-2026 (13): "Liên quan" line: Vận hành and Kịch bản mô hình lead to their settings in Quản trị, and those lead back (app.js
   relatedHtml, administrators only, switch Quản trị › Menu & điều hướng › related_links). Small pills; margin 0 so the phone's tap rule
   (negative margins on links) does not pull them over the heading. ===== */
@layer readability {
  :root body#royal-blue-app #content .rb-related {display:flex !important;flex-wrap:wrap !important;align-items:center !important;gap:6px 8px !important;margin:-4px 0 14px !important;padding:0 !important;font-size:12.5px !important}
  :root body#royal-blue-app #content .admin-context .rb-related {margin:8px 0 0 !important}
  :root body#royal-blue-app #content .rb-related > span {color:#62758d !important;font-weight:600 !important}
  :root body#royal-blue-app #content .rb-related a {display:inline-flex !important;align-items:center !important;gap:5px !important;min-height:28px !important;margin:0 !important;padding:0 10px !important;border:1px solid #dfe9fa !important;border-radius:999px !important;background:#fff !important;color:#175adb !important;font-weight:600 !important;text-decoration:none !important;white-space:nowrap !important}
  :root body#royal-blue-app #content .rb-related a:hover {border-color:#c6d9fb !important;background:#eef4ff !important}
  :root body#royal-blue-app #content .rb-related a svg {width:14px !important;height:14px !important}
  @media (max-width:700px) {
    :root body#royal-blue-app #content .rb-related {margin:0 0 12px !important}
    :root body#royal-blue-app #content .rb-related a {min-height:36px !important}
  }
}

/* (14) 28-10-2026: the number of screens of a shared entry stays readable on the chosen line (it kept the grey of the idle lines on the coloured
   fill): a white pill with the group colour, bold; idle lines a soft grey pill */
@layer readability {
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-item > .admin-nav-count {min-width:20px !important;padding:0 6px !important;border-radius:999px !important;background:#eef2f8 !important;color:#52627a !important;font-size:11px !important;font-weight:700 !important;line-height:18px !important;text-align:center !important}
  :root body#royal-blue-app #content .admin-workspace :is(.admin-side,.admin-menu) .admin-nav-item.is-active > .admin-nav-count {background:#fff !important;color:var(--mt,#175adb) !important;box-shadow:0 1px 2px rgba(15,42,87,.18) !important}
}

/* (15) 29-10-2026: changing screen inside Quản trị keeps the menu still; the screen dims for the short wait (app.js adminSwitch) */
@layer readability {
  :root body#royal-blue-app #content .admin-workspace .admin-main.is-switching {opacity:.55 !important;pointer-events:none !important;transition:opacity .12s ease .08s !important}
}

/* ===== 29-10-2026 (16): Quản trị on phones (≤ 700 px). Measured on 29 screens at 390 px: five layers above the content (~380 px), three nested
   frames each with its own padding (text squeezed into short lines), tab bars wrapping into a grid of two-line labels, long screen texts.
   Here: one compact header, the "Gần đây" row hidden (the tab row above already leads everywhere), screen text to two lines, tabs in one
   scrolling row, the row icons dropped (their 32 px went to the text), lighter paddings, figures three to a row. ===== */
@layer readability {
  @media (max-width:700px) {
    /* the page header of Quản trị: one slim line */
    :root body#royal-blue-app:not(#adm-m) #content:has(.admin-workspace) > .page-head {margin:0 0 8px !important;padding:0 !important;gap:8px !important;min-height:0 !important}
    :root body#royal-blue-app:not(#adm-m) #content:has(.admin-workspace) > .page-head h1 {font-size:18px !important;line-height:1.25 !important}
    :root body#royal-blue-app:not(#adm-m) #content:has(.admin-workspace) > .page-head .rb-heading-icon {width:34px !important;height:34px !important;border-radius:10px !important}
    :root body#royal-blue-app:not(#adm-m) #content:has(.admin-workspace) > .page-head .rb-heading-icon svg {width:18px !important;height:18px !important}
    :root body#royal-blue-app:not(#adm-m) #content:has(.admin-workspace) > .page-head .subtitle {display:none !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) .qn-recent {display:none !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) .admin-topbar {margin-bottom:8px !important}

    /* the name of the screen: two lines of text at most */
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) .admin-context {padding:10px 12px !important;gap:10px !important;margin-bottom:10px !important;align-items:center !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) .admin-context h2 {font-size:16.5px !important;line-height:1.3 !important;margin:0 !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) .admin-context p {display:-webkit-box !important;-webkit-line-clamp:2 !important;-webkit-box-orient:vertical !important;overflow:hidden !important;margin:2px 0 0 !important;font-size:12.5px !important;line-height:1.45 !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) .admin-context .admin-context-icon {width:36px !important;height:36px !important;flex:none !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) .admin-context .admin-context-icon svg {width:19px !important;height:19px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) .admin-context .admin-eyebrow {display:none !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) .admin-subnav {margin-bottom:10px !important}

    /* cards and sections: one frame less */
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .card {padding:12px !important;border-radius:14px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .card .card {padding:10px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel :is(.card-title,.settings-title) {flex-wrap:nowrap !important;gap:8px !important;margin-bottom:8px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel :is(.card-title,.settings-title) h2 {font-size:15px !important;min-width:0 !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel :is(.card-title,.settings-title) > :is(.btn,button,a) {flex:none !important;min-height:36px !important;padding:0 10px !important;font-size:12.5px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .rb-form-title-icon {width:32px !important;height:32px !important;border-radius:9px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel fieldset.admin-field-section {margin:0 0 12px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel fieldset.admin-field-section > .admin-section-description {font-size:12.5px !important;line-height:1.45 !important}

    /* the summary line: the version and what is set; the "go to save" button is not needed on a phone (the save box follows the form) */
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .admin-editor-overview {margin:0 0 8px !important;gap:4px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel [data-editor-save] {display:none !important}

    /* sub-tabs: one row that scrolls sideways, labels on one line */
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .admin-editor-tabs {display:flex !important;flex-wrap:nowrap !important;overflow-x:auto !important;scrollbar-width:none !important;gap:4px !important;padding:4px !important;margin:0 0 10px !important;-webkit-overflow-scrolling:touch}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .admin-editor-tabs::-webkit-scrollbar {display:none !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .admin-editor-tabs > button {flex:0 0 auto !important;width:auto !important;min-width:0 !important;min-height:36px !important;padding:0 12px !important;white-space:nowrap !important;font-size:13px !important;line-height:1.2 !important}

    /* rows: no icon column, the text gets the width */
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .adm-row {padding:10px 12px !important;gap:6px 10px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .adm-row > label {grid-template-columns:0 minmax(0,1fr) auto !important;column-gap:0 !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .adm-row > label > svg {display:none !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .adm-row > :not(label):not(input):not(select):not(textarea):not(.adm-seg) {margin-left:0 !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .adm-row .adm-row-hint {font-size:12px !important;line-height:1.4 !important}

    /* the save box */
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel #settings-form .admin-save-area {padding:10px !important;gap:8px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .admin-reason-auto {padding:8px 10px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .admin-reason-auto-hint {display:none !important}

    /* figures three to a row */
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .admin-preview-metrics {display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:8px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .admin-preview-metric {padding:10px !important;border-radius:12px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .admin-preview-metric > :first-child {font-size:11px !important;line-height:1.3 !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .admin-preview-metric > :last-child {font-size:18px !important}

    /* Phân quyền vai trò: the explanation of each permission in two lines (tap the row to read it all), a lighter intro */
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .rpm-intro {padding:10px 12px !important;gap:8px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .rpm-intro p {font-size:12.5px !important;line-height:1.45 !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .rpm-label small {display:-webkit-box !important;-webkit-line-clamp:2 !important;-webkit-box-orient:vertical !important;overflow:hidden !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .rpm-label.is-open small {display:block !important;-webkit-line-clamp:unset !important}
  }
}

/* (16b) 29-10-2026: the three longest screens on a phone.
   Phân quyền vai trò: the administrator's column (always "Có") is left out, the three other roles side by side with short names, the switch alone.
   Lịch sử gửi: setup cards two by two, counts three to a row, the two dates on one line, rows of the list with a narrower label column.
   Phương pháp ước tính: the four sections of a parameter two by two, the section name above its value. */
@layer readability {
  @media (max-width:700px) {
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .rpm-row {grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:6px 8px !important;padding:10px 0 !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .rpm-row > .rpm-label {grid-column:1 / -1 !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .rpm-row > .rpm-cell-fixed {display:none !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .rpm-row > .rpm-cell {padding:6px 8px !important;min-height:0 !important;border-radius:10px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .rpm-row > .rpm-cell::after {font-size:10.5px !important;letter-spacing:0 !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .rpm-row > .rpm-cell[data-label="Cán bộ kỹ thuật"]::after {content:"Kỹ thuật" !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .rpm-row > .rpm-cell[data-label="Thẩm định chuyên môn"]::after {content:"Thẩm định" !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .rpm-row > .rpm-cell[data-label="Chỉ xem số liệu"]::after {content:"Chỉ xem" !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .rpm-row .rpm-state {display:none !important}

    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .anh-setup {grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .anh-setup > div {padding:10px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .anh-setup > div:last-child:nth-child(odd) {grid-column:1 / -1 !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .anh-counts {grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:6px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .anh-count {padding:10px 8px !important;border-radius:12px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .anh-count > b {font-size:18px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .anh-count > span {font-size:11px !important;line-height:1.3 !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .anh-filters {display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .anh-filters > :is(.anh-q,.anh-actions) {grid-column:1 / -1 !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .anh-filters > label:nth-child(n+3):not(.anh-q) {grid-column:1 / -1 !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .anh-table td {padding-left:96px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .anh-table td::before {width:86px !important;font-size:11.5px !important}

    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .est-matrix tbody tr {grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:6px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .est-matrix tbody tr > th {grid-column:1 / -1 !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .est-matrix tbody td {padding:0 !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .est-matrix tbody td::before {position:static !important;display:block !important;width:auto !important;margin:0 0 3px !important;font-size:11.5px !important}
    :root body#royal-blue-app #content .admin-workspace:not(#adm-m) #admin-panel .est-matrix .est-cell {padding:8px !important;min-height:0 !important}
  }
}

/* (17) 29-10-2026: Quản trị › Trợ lý AI › Nhật ký hỏi đáp (admin-ai.js). Tiles, filters and table reuse Lượt truy cập (.aov-stat, .avs-*). */
@layer readability {
  body#royal-blue-app #admin-panel .aai {display:grid;gap:16px}
  body#royal-blue-app #admin-panel .aai-test {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center}
  body#royal-blue-app #admin-panel .aai-test p {margin:4px 0 0 !important;font-size:13px;color:#5a7095}
  body#royal-blue-app #admin-panel .aai-test-actions {display:flex;gap:8px;flex-wrap:wrap}
  body#royal-blue-app #admin-panel .aai-test-result {grid-column:1 / -1;white-space:pre-line;margin:0 !important;padding:10px 12px !important;border-radius:10px;background:#f3f6fb;font-size:13.5px}
  body#royal-blue-app #admin-panel .aai-test-result.is-ok {background:#ecfbf3;color:#11643b}
  body#royal-blue-app #admin-panel .aai-test-result.is-bad {background:#fff1f1;color:#9b1c1c}
  body#royal-blue-app #admin-panel .aai-table td {vertical-align:top}
  body#royal-blue-app #admin-panel .aai-table .aai-q {min-width:180px;max-width:320px;white-space:pre-wrap;overflow-wrap:anywhere}
  body#royal-blue-app #admin-panel .aai-table .aai-a {min-width:220px;max-width:460px;overflow-wrap:anywhere}
  body#royal-blue-app #admin-panel .aai-table summary {cursor:pointer;color:#12335d}
  body#royal-blue-app #admin-panel .aai-full {margin-top:8px;padding:10px 12px;border-radius:10px;background:#f7f9fd;font-size:13px}
  body#royal-blue-app #admin-panel .aai-full :is(p,ul,ol,h4) {margin:0 0 6px !important}
  body#royal-blue-app #admin-panel .aai-table tr.is-error td {background:#fff8f8}
  body#royal-blue-app #admin-panel .aai-chain-head {display:grid;gap:2px;margin-bottom:10px}
  body#royal-blue-app #admin-panel .aai-chain-head small {font-size:12.5px;color:#5a7095}
  body#royal-blue-app #admin-panel .aai-chain-table td small {display:block;font-size:11.5px;color:#6a7f9f}
  body#royal-blue-app #admin-panel .aai-chain-table tr.is-next td {background:#effaf3}
  body#royal-blue-app #admin-panel .aai-chain-table tr.is-out td {color:#8a9bb6}
  body#royal-blue-app #admin-panel .aai-table td small {display:block}
  @media (max-width:700px) {
    body#royal-blue-app #admin-panel .aai-test {grid-template-columns:1fr}
    body#royal-blue-app #admin-panel .aai-table :is(.aai-q,.aai-a) {min-width:0;max-width:none}
  }
}

/* (18) 29-10-2026: Quản trị › Trợ lý AI › Góp ý đã lưu (admin-ai.js aiNotesHtml): one card per suggestion, status pill, inline edit row. */
@layer readability {
  body#royal-blue-app #admin-panel .aai-note-list {display:grid;gap:12px;margin-top:14px}
  body#royal-blue-app #admin-panel .aai-note {display:grid;gap:8px;min-width:0;padding:14px 16px;border:1px solid #e1e8f4;border-left:4px solid #8f9cf0;border-radius:12px;background:#fff}
  body#royal-blue-app #admin-panel .aai-note[data-status="new"] {border-left-color:#e8a317}
  body#royal-blue-app #admin-panel .aai-note[data-status="done"] {border-left-color:#1f9d5c}
  body#royal-blue-app #admin-panel .aai-note[data-status="skip"] {border-left-color:#a7b4c8;opacity:.85}
  body#royal-blue-app #admin-panel .aai-note header {display:flex;gap:10px;align-items:baseline;min-width:0}
  body#royal-blue-app #admin-panel .aai-note header strong {flex:1;min-width:0;font-size:14.5px;color:#12335d;overflow-wrap:anywhere}
  body#royal-blue-app #admin-panel .aai-note-id {flex:none;font-size:12px;font-weight:700;color:#6a7f9f}
  body#royal-blue-app #admin-panel .aai-note-meta {margin:0 !important;font-size:12px;color:#6a7f9f}
  body#royal-blue-app #admin-panel .aai-note-text {margin:0 !important;padding:8px 12px !important;border-left:3px solid #d6e1f3;background:#f7f9fd;font-size:13.5px;color:#24406b;overflow-wrap:anywhere}
  body#royal-blue-app #admin-panel .aai-note-edit {display:grid;grid-template-columns:minmax(0,180px) minmax(0,200px) minmax(0,1fr) auto;gap:8px 10px;align-items:end}
  body#royal-blue-app #admin-panel .aai-note-edit label {display:grid;gap:4px;font-size:12px;font-weight:600;color:#5a7095;min-width:0}
  body#royal-blue-app #admin-panel .aai-note-edit textarea {min-height:38px;resize:vertical}
  body#royal-blue-app #admin-panel .aai-note-actions {display:flex;gap:6px}
  @media (max-width:900px) {
    body#royal-blue-app #admin-panel .aai-note-edit {grid-template-columns:1fr 1fr}
    body#royal-blue-app #admin-panel .aai-note-edit :is(.aai-note-wide,.aai-note-actions) {grid-column:1 / -1}
  }
}

/* ==== responsive-system.css ==== */
/* Responsive system: one set of rules for every screen (phone, tablet, laptop, desktop), loaded last.
   The older sheets each had their own breakpoints (360, 380, 420, 480, 560, 600, 700, 760, 900, 1000, 1100, 1200...); this file replaces
   the visible effect of those where they disagreed:
     1. type scale: titles follow the width of the screen smoothly (clamp), instead of jumping between a few fixed sizes;
     2. no orphan words in short texts (text-wrap), no buttons that break their own label;
     3. page header: the buttons stay together, on one row when they fit and on the next row when they do not;
     4. overview: the map keeps a sensible height (it no longer grows with the reading panel), one base-map control (not two),
        the readings of the point panel are shorter (the explain button shares the line of the status text), the station tabs take their own row below 1400 px;
     5. weather strip, report period chips, alert list and touch targets on small screens.
   Screens: 360-430 phones, 744-834 tablets upright, 1024-1194 tablets across, 1280-1536 laptops, 1920-2560 desktops. */
@layer readability {
  body#royal-blue-app {
    /* type scale (max sizes are the former desktop sizes; the min is what a 360 px phone reads comfortably) */
    --rs-t1: clamp(20px, .55vw + 16.4px, 27px);      /* page title */
    --rs-t2: clamp(17px, .42vw + 13.8px, 22px);      /* big section title */
    --rs-t3: clamp(15px, .25vw + 13px, 18px);        /* card title */
    --rs-t4: clamp(13.5px, .15vw + 12.4px, 15px);    /* small card title */
    --rs-kpi: clamp(24px, .8vw + 19px, 32px);        /* the big number of a KPI card */
    --rs-reading: clamp(21px, .45vw + 17.5px, 25px); /* value of a reading row */
    --rs-temp: clamp(23px, .6vw + 19.5px, 28px);     /* temperature in the weather strip */
    --rs-sub: clamp(12.5px, .15vw + 11.8px, 14px);   /* subtitle under a title */
  }

  /* a phone turned sideways: iOS Safari and Android Chrome would otherwise enlarge the text of wide blocks on their own, and the cards overflow */
  html {-webkit-text-size-adjust:100%;text-size-adjust:100%}

  /* ---------- 1. fluid titles ---------- */
  body#royal-blue-app :is(.rb-unified-heading, .rb-heading-main, .ob-page-heading, .page-head) h1 {font-size:var(--rs-t1)!important;line-height:1.22!important;overflow-wrap:anywhere}
  body#royal-blue-app :is(.rb-unified-heading, .rb-heading-main, .ob-page-heading, .page-head) :is(p.subtitle, p) {font-size:var(--rs-sub)!important;line-height:1.5!important}
  body#royal-blue-app #content :is(.admin-context, .hc-section-head, .monitor-context-heading, .qx-now-main) h2,
  body#royal-blue-app #content .hc-section > h2 {font-size:var(--rs-t2)!important;line-height:1.3!important}
  body#royal-blue-app #content :is(.card-title, .analysis-heading, .ob-section-heading, .chart-panel-heading, .rp-sum-head, .rb-data-basis > h2, .settings-title) h2,
  body#royal-blue-app #content :is(.rb-data-basis > h2, .qcvn-version > h3, .river-instruction),
  body#royal-blue-app #content .fleet-comparison .analysis-heading h2 {font-size:var(--rs-t3)!important;line-height:1.3!important}
  body#royal-blue-app #content :is(.rb-data-sources, .rb-data-reference, .rp-card-head, .hc-category) h3,
  body#royal-blue-app #content .card-title:not(:has(h2)) {font-size:var(--rs-t4)!important;line-height:1.35!important}
  body#royal-blue-app .rb-station-heading h2 {font-size:var(--rs-t3)!important}
  body#royal-blue-app .rb-kpi-value {font-size:var(--rs-kpi)!important;line-height:1.1!important}
  body#royal-blue-app .ir-value {font-size:var(--rs-reading)!important}
  body#royal-blue-app .wx-temp {font-size:var(--rs-temp)!important}

  /* ---------- 2. text that breaks well ---------- */
  body#royal-blue-app #content :is(p, li, dd, small, .note, .hint, .subtitle, .rb-kpi-detail, .rb-kpi-evidence, .th-help) {overflow-wrap:break-word}
  /* balanced titles and no lonely last word: only the style longhand (the text-wrap shorthand would also switch wrapping back on for pills that must stay on one line) */
  @supports (text-wrap-style:pretty) {
    body#royal-blue-app :is(.rb-unified-heading, .rb-heading-main, .ob-page-heading, .page-head) :is(p.subtitle, p),
    body#royal-blue-app #content :is(p, li, dd, summary > span, .note, .hint, .subtitle, .rb-kpi-detail, .rb-kpi-evidence, .th-help) {text-wrap-style:pretty}
    body#royal-blue-app :is(.rb-unified-heading, .rb-heading-main, .ob-page-heading, .page-head) h1,
    body#royal-blue-app #content :is(h1, h2, h3, h4, .card-title, strong.rb-kpi-value, .ob-stat strong) {text-wrap-style:balance}
  }
  @supports not (text-wrap-style:pretty) {
    body#royal-blue-app #content :is(h1, h2, h3, h4) {text-wrap:balance}
    body#royal-blue-app #content p {text-wrap:pretty}
  }
  /* values with their unit, dates and times never split in the middle */
  body#royal-blue-app #content :is(.ir-value, .rb-kpi-value, .wx-temp, .wx-range, .metric-value, time, .nowrap, td.ap-value, .ob-chart-stats strong, .rp-when, .ap-id small, .ap-sub, .rp-delta) {white-space:nowrap!important}
  /* a date with its time never breaks after a hyphen ("03-" / "10-2026"); responsive-enhance.js puts each one in an <nb-dt> element */
  body#royal-blue-app nb-dt {white-space:nowrap!important}
  /* a button keeps its label on one line; a row of buttons wraps as whole buttons */
  body#royal-blue-app :is(.btn, .tab, .th-chip, .rp-chip, .ap-filter, .op-filter, .qx-filter, .badge, summary.btn) {white-space:nowrap!important}
  /* the help-page chips hold whole sentences ("Báo cáo tuần, sao lưu và cảnh báo mất dữ liệu"): they may wrap inside a narrow card instead of running out of it */
  body#royal-blue-app .hc-chip {max-width:100%;white-space:normal}
  /* ...except a button that carries a long name from the data (a QCVN code, a source to copy from): that one wraps inside its card, as it must on a phone */
  body#royal-blue-app .btn:is([data-library], [data-est-copy]) {white-space:normal!important;text-align:left;max-width:100%}

  /* ---------- 3. page header ---------- */
  body#royal-blue-app .rb-unified-heading {row-gap:12px}
  body#royal-blue-app .rb-unified-heading .head-actions {flex:0 0 auto!important;width:auto!important;max-width:100%!important;margin-left:auto;justify-content:flex-end;row-gap:8px}
  body#royal-blue-app .rb-unified-heading .head-actions .btn {flex:0 0 auto}
  /* the actions sit beside the title when both fit; when they do not, the whole group goes under the title (never a lone button on a row of its own beside an empty space) */
  body#royal-blue-app .rb-unified-heading .rb-heading-main {flex:1 1 340px!important;min-width:0}
  /* the report page had its own title size (2.1vw, 27 px at 1366 while the other pages read 23.9) and a one-line rule; same scale as everywhere, and it may wrap on the smallest phones */
  body#royal-blue-app .rp-page .page-head h1 {font-size:var(--rs-t1)!important;white-space:normal}
  @media (max-width:640px) {
    body#royal-blue-app .rb-unified-heading {align-items:flex-start}
    body#royal-blue-app .rb-unified-heading .head-actions {justify-content:flex-start;flex:1 1 100%!important;margin-left:0}
  }

  /* phone header: a home button beside the menu button takes you back to the overview without opening the menu
     (the breadcrumb that holds it is hidden below 760 px by fit-rows.css, which left only the page name);
     app.js puts data-page on the breadcrumb, and on the overview itself the button would only link to where you are */
  @media (max-width:760px) {
    body#royal-blue-app .topbar #breadcrumb {display:flex!important;align-items:center;gap:8px;overflow:visible!important}
    body#royal-blue-app .topbar #breadcrumb .rb-crumb-home {display:grid!important;place-items:center;flex:none;box-sizing:border-box;width:40px;height:40px;border:1px solid #d9e6f8;border-radius:12px;background:#f7faff;color:#245bba}
    body#royal-blue-app .topbar #breadcrumb .rb-crumb-home:hover {background:#eaf2ff}
    body#royal-blue-app .topbar #breadcrumb .rb-crumb-home svg {display:block!important;width:20px;height:20px;padding:0!important;box-sizing:border-box;border-radius:0;background:none!important;color:inherit}
    /* the page name may take a second line instead of being cut ("Kịch bản mô hình" had 99 px left at 360) */
    body#royal-blue-app .topbar #breadcrumb strong {min-width:0;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden!important;white-space:normal!important;text-overflow:clip!important;line-height:1.2!important;font-size:14.5px!important}
    body#royal-blue-app .topbar #breadcrumb[data-page="overview"] .rb-crumb-home {display:none!important}
  }

  /* top bar on a tablet held upright (761-999 px, no side menu): "Hệ thống" and the page name were broken into two lines each because the account chip
     (avatar + name + chevron) took 162 px. The account becomes its avatar, like on a phone, and the breadcrumb stays on one line */
  @media (min-width:761px) and (max-width:999px) {
    body#royal-blue-app .topbar .account {position:relative;display:grid!important;place-items:center;flex:none;box-sizing:border-box;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;padding:0!important;margin:0!important;border:1px solid #d9e6f8!important;border-radius:50%!important;background:#f7faff!important;color:#245bba!important}
    body#royal-blue-app .topbar .account:hover {background:#eaf2ff!important}
    body#royal-blue-app .topbar .account :is(.account-name,.account-chevron) {display:none!important}
    body#royal-blue-app .topbar .account .avatar {display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:transparent}
    body#royal-blue-app .topbar #breadcrumb {min-width:0;flex:1 1 auto;display:flex!important;align-items:center;white-space:nowrap;overflow:hidden}
    body#royal-blue-app .topbar #breadcrumb :is(.rb-crumb,.rb-breadcrumb-separator) {flex:none;white-space:nowrap}
    body#royal-blue-app .topbar #breadcrumb strong {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  }
  /* ---------- 4. overview ---------- */
  /* below 1400 px the station tabs take a row of their own, so the three KPI cards are not squeezed to ~230 px */
  @media (min-width:1001px) and (max-width:1400px) {
    body#royal-blue-app .ob-overview .rb-overview-row {grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
    body#royal-blue-app .ob-overview .rb-overview-row .rb-station-navigation {grid-column:1/-1!important}
  }
  /* the map keeps its own height: it no longer follows the height of the reading panel next to it (overview-layout.css stretches only the LAST card of a column) */
  body#royal-blue-app .ob-overview .ob-spatial-column #ob-map {flex:none!important}
  body#royal-blue-app .ob-overview .shared-observatory-map:not(.expanded) .map-command-grid {min-height:0!important;height:auto!important}
  body#royal-blue-app .ob-overview .shared-observatory-map:not(.expanded) #geographic-map,
  body#royal-blue-app .ob-overview .shared-observatory-map:not(.expanded) .river-canvas {height:clamp(340px, 54vh, 600px)!important;min-height:0!important;flex:none!important}
  @supports (height:1dvh) {
    body#royal-blue-app .ob-overview .shared-observatory-map:not(.expanded) #geographic-map,
    body#royal-blue-app .ob-overview .shared-observatory-map:not(.expanded) .river-canvas {height:clamp(340px, 54dvh, 600px)!important}
  }
  /* ONE base-map control: the five buttons when the map card is wide enough for them to share the title row (title 166 + gap 14 + buttons 453
     = 633 px at most; the card content must be 650 px), a drop-down at the right corner of the title row when it is not */
  body#royal-blue-app .shared-observatory-map {container:obmap / inline-size}
  @container obmap (min-width:650px) {
    body#royal-blue-app .shared-observatory-map .gis-basemap-toolbar .map-basemap-select,
    body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-toolbar .map-basemap-select {display:none!important}
    body#royal-blue-app .shared-observatory-map .gis-basemap-toolbar .gis-basemap-switch,
    body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-toolbar .gis-basemap-switch {display:flex!important}
  }
  @container obmap not (min-width:650px) {
    body#royal-blue-app .shared-observatory-map .gis-basemap-toolbar .gis-basemap-switch,
    body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-toolbar .gis-basemap-switch {display:none!important}
    body#royal-blue-app .shared-observatory-map .gis-basemap-toolbar .map-basemap-select,
    body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-toolbar .map-basemap-select {display:block!important}
    /* the drop-down sits at the left of the card here, so its list opens to the right (it was right-aligned and ran 40 px off the left edge of a phone) */
    body#royal-blue-app .shared-observatory-map .map-basemap-options {left:0!important;right:auto!important}
  }
  /* no container queries (iPadOS 15 and older): the same switch by the width of the screen; the map card is about 640 px wide in a 1450 px window */
  @supports not (container-type:inline-size) {
    @media (min-width:1450px) {
      body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-toolbar .map-basemap-select {display:none!important}
      body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-toolbar .gis-basemap-switch {display:flex!important}
    }
    @media (max-width:1449.98px) {
      body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-toolbar .gis-basemap-switch {display:none!important}
      body#royal-blue-app .shared-observatory-map.gis-beacon-map .map-topbar .gis-basemap-toolbar .map-basemap-select {display:block!important}
      body#royal-blue-app .shared-observatory-map .map-basemap-options {left:0!important;right:auto!important}
    }
  }
  /* a reading of the selected point is shorter: the "Giải thích" button shares the line of the status text instead of taking a line of its own */
  body#royal-blue-app .ob-overview .station-instrument .ir-explain {display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 10px!important;margin-top:4px!important}
  body#royal-blue-app .ob-overview .station-instrument .ir-explain .ir-reason {flex:1 1 150px;min-width:0;margin:0}
  body#royal-blue-app .ob-overview .station-instrument .ir-explain-btn {flex:none;min-height:30px!important}

  /* ---------- 5. weather strip on a narrow card ---------- */
  body#royal-blue-app .wx-mm small::before {content:" · "}
  @container wx (max-width:480px) {
    body#royal-blue-app .wx-days {gap:4px}
    body#royal-blue-app .wx-days li {padding:6px 2px}
    body#royal-blue-app .wx-range {font-size:12px}
    body#royal-blue-app .wx-mm {font-size:10.5px;white-space:normal;text-align:center;line-height:1.3}
    body#royal-blue-app .wx-mm small {display:block}
    body#royal-blue-app .wx-mm small::before {content:none}
  }

  /* monitoring: below 800 px the station list and the period buttons each take a full row (side by side the station name was cut: "Trạm Phao Sông Trường Gi") */
  @media (max-width:800px) {
    body#royal-blue-app .monitor-workspace .monitor-toolbar {grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
  }

  /* ---------- 6. report period chips: wrap instead of hiding the last ones behind a sideways scroll ---------- */
  body#royal-blue-app .rp-chips {flex-wrap:wrap!important;overflow:visible!important}

  /* ---------- 7. alert list: one card per event on a phone ---------- */
  @media (max-width:640px) {
    body#royal-blue-app .ap-table {overflow:visible;border:0;background:transparent}
    body#royal-blue-app .ap-table table, body#royal-blue-app .ap-table tbody {display:block;width:100%}
    body#royal-blue-app .ap-table thead {display:none}
    body#royal-blue-app .ap-table tbody tr.ap-row {display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"id level" "station value" "param value" "when when" "state handling";gap:4px 12px;align-items:center;margin:0 0 10px;padding:12px 14px;border:1px solid #e1eafa;border-left:4px solid var(--ap-level,#8a9bb2);border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(23,58,120,.05)}
    body#royal-blue-app .ap-table tbody tr.ap-row > td {display:block;padding:0!important;border:0!important;white-space:normal!important;min-width:0!important;max-width:none!important;height:auto!important;background:transparent!important}
    body#royal-blue-app .ap-table tr.ap-row > td.ap-id {grid-area:id}
    body#royal-blue-app .ap-table tr.ap-row > td:nth-child(3) {grid-area:level;justify-self:end}
    body#royal-blue-app .ap-table tr.ap-row > td.ap-station {grid-area:station;font-weight:700;color:#133858}
    body#royal-blue-app .ap-table tr.ap-row > td.ap-param {grid-area:param;color:#62758d}
    body#royal-blue-app .ap-table tr.ap-row > td.ap-value {grid-area:value;justify-self:end;text-align:right}
    body#royal-blue-app .ap-table tr.ap-row > td.ap-when {grid-area:when;padding-top:6px!important;border-top:1px dashed #e1eafa!important;color:#4a6382}
    body#royal-blue-app .ap-table tr.ap-row > td:nth-child(7) {grid-area:state}
    body#royal-blue-app .ap-table tr.ap-row > td:nth-child(8) {grid-area:handling;justify-self:end}
    body#royal-blue-app .ap-table tr.ap-row > td.ap-go {display:none}
    body#royal-blue-app .ap-table tr.ap-row:hover td {background:transparent!important}
    body#royal-blue-app #content .ap-table tr.ap-row .ap-sub {white-space:normal!important}
  }
  /* the smallest phones (320 px): the level pill takes so much of the row that the state pill beside it ran out of its cell; both may wrap */
  @media (max-width:340px) {
    body#royal-blue-app .ap-table tr.ap-row > td:is(:nth-child(3), :nth-child(7), :nth-child(8)) * {white-space:normal!important;text-align:left}
    body#royal-blue-app #content .ap-table tr.ap-row td.ap-id small {white-space:normal!important}
  }
  /* operations: the small label of a status card wraps on a phone instead of being cut with an ellipsis */
  @media (max-width:640px) {
    body#royal-blue-app .op-card-label {white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
  }

  /* ---------- 7b. a note that carries a badge or a button lays them out as a wrapping row ---------- */
  body#royal-blue-app #content p.note:has(.badge, button), body#royal-blue-app #modal-root p.note:has(.badge, button) {display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
  body#royal-blue-app #content p.note > svg, body#royal-blue-app #modal-root p.note > svg {flex:none}

  /* ---------- 7c. rows of tabs / chips / segmented buttons that do not fit: a soft fade on the side that has more (responsive-enhance.js sets the marks) ---------- */
  body#royal-blue-app [data-scrolls] {scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-behavior:smooth}
  body#royal-blue-app [data-scrolls]::-webkit-scrollbar {display:none}
  body#royal-blue-app [data-more-right]:not([data-more-left]) {-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent)}
  body#royal-blue-app [data-more-left]:not([data-more-right]) {-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(to left,#000 calc(100% - 36px),transparent)}
  body#royal-blue-app [data-more-left][data-more-right] {-webkit-mask-image:linear-gradient(to right,transparent,#000 36px,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(to right,transparent,#000 36px,#000 calc(100% - 36px),transparent)}

  /* ---------- 7e. the public pages and the sign-in gate have no staff top bar or menu (on a phone the staff top bar came back, with a clipped "báo cáo" button) ---------- */
  body#royal-blue-app.community-view .workspace > .topbar,
  body#royal-blue-app.community-view > .sidebar,
  body#royal-blue-app.community-view .mobile-menu {display:none!important}

  /* public header on a small phone (360 px and less): logo, name, staff button and search stay on ONE row; the search button used to wrap under the header and cover the first line of the page */
  @media (max-width:370px) {
    body#royal-blue-app .citizen-header .citizen-header-inner {flex-wrap:nowrap!important;gap:6px!important;padding:0 8px 0 10px!important}
    body#royal-blue-app .citizen-header .citizen-brand {flex:1 1 0!important;min-width:0!important;gap:6px!important}
    body#royal-blue-app .citizen-header .citizen-brand strong {font-size:14.5px!important;overflow:hidden;text-overflow:ellipsis}
    body#royal-blue-app .citizen-header .citizen-staff {padding:0 9px!important}
  }
  @supports (text-wrap-style:balance) {
    @media (max-width:370px) {
      body#royal-blue-app .citizen-header .citizen-brand small {white-space:normal!important;text-wrap-style:balance}
    }
  }

  /* ---------- 7d. left menu on a short screen: all the entries stay reachable without scrolling the menu ---------- */
  @media (min-width:1000px) and (max-height:820px) {
    body#royal-blue-app #sidebar .brand {padding:12px 12px 12px!important;margin-bottom:8px!important}
    body#royal-blue-app #navigation {gap:1px!important}
    body#royal-blue-app #navigation .nav-item {min-height:38px!important;padding-top:6px!important;padding-bottom:6px!important;margin:1px 0!important}
    body#royal-blue-app #navigation .rb-support > summary {min-height:0!important;padding-top:8px!important;padding-bottom:8px!important}
    body#royal-blue-app .rb-sidebar-account {padding-top:8px!important;padding-bottom:8px!important}
  }
  @media (min-width:1000px) and (max-height:640px) {
    body#royal-blue-app #navigation .nav-item {min-height:34px!important;padding-top:4px!important;padding-bottom:4px!important;font-size:13px!important}
    body#royal-blue-app #sidebar .brand {padding-top:8px!important;padding-bottom:8px!important}
  }

  /* ---------- 8. dialogs ---------- */
  body#royal-blue-app #modal-root .modal {max-height:calc(100vh - 24px);overflow:auto;overscroll-behavior:contain}
  @supports (height:1dvh) {body#royal-blue-app #modal-root .modal {max-height:calc(100dvh - 24px)}}
  @media (max-width:600px) {
    body#royal-blue-app #modal-root .modal {width:calc(100vw - 20px)!important;max-width:none!important}
  }
  /* sign-in dialog: it clipped everything below the screen edge (overflow:hidden), so on a short screen (a phone held sideways, a small window) the button could not be reached.
     It scrolls now, the decorative circle is clipped by its own column, and below 560 px of height the promo column goes away. */
  body#royal-blue-app #modal-root .modal:has(.login-split) {overflow:auto!important;overscroll-behavior:contain}
  body#royal-blue-app .login-aside {overflow:hidden}
  @media (max-height:560px) {
    body#royal-blue-app #modal-root .modal:has(.login-split) {max-width:520px!important}
    body#royal-blue-app .login-split {grid-template-columns:minmax(0,1fr)!important;min-height:0!important}
    body#royal-blue-app .login-aside {display:none!important}
    body#royal-blue-app .login-main {padding:22px 24px 18px!important}
    body#royal-blue-app .login-main h3 {font-size:22px!important}
    body#royal-blue-app .login-sub {margin:4px 0 14px!important}
    body#royal-blue-app .login-help {margin-top:14px!important;padding-top:10px!important}
  }
  /* alert detail: the fact tiles wrap their text (two lines at most beside a mouse, the whole text on a tablet or phone where there is no tooltip) instead of cutting it with an ellipsis */
  body#royal-blue-app .av-in-modal .av-fact small {white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}
  body#royal-blue-app .av-in-modal .av-fact strong {white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
  @media (max-width:1100px), (pointer:coarse) {
    body#royal-blue-app .av-in-modal .av-fact small {display:block;-webkit-line-clamp:unset;line-clamp:unset;overflow:visible!important}
  }
  /* 320 px: two tiles side by side are too narrow for a date with its time, so each takes a row */
  @media (max-width:340px) {
    body#royal-blue-app .av-facts {grid-template-columns:minmax(0,1fr)!important}
  }

  /* ---------- 9. touch screens: controls big enough for a finger ---------- */
  @media (pointer:coarse) {
    body#royal-blue-app #content :is(.btn, a.btn, select, input[type=text], input[type=search], input[type=number], input[type=email], input[type=password], input[type=tel], input[type=url]) {min-height:42px}
    body#royal-blue-app #content :is(.tab, .th-chip, .rp-chip, .hc-chip, .ap-filter, .op-filter, .qx-filter, .pg-btn, .segments button, .chart-parameters button) {min-height:38px}
    body#royal-blue-app #content :is(.rb-data-parameter, .rb-fresh-pill, .monitor-latest-jump, .ob-context-link, .rp-link, .project-credit-details, a.action-link) {min-height:36px;display:inline-flex;align-items:center}
    body#royal-blue-app .vn-dt-open {width:36px;height:36px}
    body#royal-blue-app .topbar #breadcrumb a.rb-crumb:not(.rb-crumb-home) {min-height:36px;display:inline-flex;align-items:center}
    body#royal-blue-app #content summary:not(.btn) {min-height:40px;box-sizing:border-box}
    body#royal-blue-app input[type=range] {height:32px}
    /* footer link, chart-line switch and parameter chips: a finger needs more than 18-21 px */
    body#royal-blue-app :is(.project-credit-details, .chart-levels-toggle, .staff-entry-public) {min-height:36px;display:inline-flex;align-items:center}
    body#royal-blue-app #close-modal {min-width:40px;min-height:40px}
    body#royal-blue-app :is(#map-layer-quality, #map-layer-flow) {min-height:34px}
    body#royal-blue-app .rb-data-parameter {min-width:36px;justify-content:center}
    /* iOS Safari zooms the page when a field has text under 16 px: keep every field at 16 px on touch screens */
    body#royal-blue-app #content :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]), select, textarea),
    body#royal-blue-app #modal-root :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]), select, textarea),
    body#royal-blue-app .vn-dt input.vn-dt-text {font-size:16px!important;letter-spacing:0}
    body#royal-blue-app #content input[type=checkbox], body#royal-blue-app #content input[type=radio] {width:20px;height:20px}
  }
  /* ---------- 10. details of single pages ---------- */
  /* manual entry, latest result: the value block takes the width its unit needs ("Độ kiềm · mg CaCO₃/L" was split after "mg"), the details beside it wrap */
  body#royal-blue-app .big-result > div:first-child {flex:0 0 auto;max-width:62%}
  body#royal-blue-app .big-result > div:last-child {flex:1 1 0;min-width:0}
  /* in a narrow card (a phone, the right column of a tablet) the details go under the value instead of being squeezed beside it (the date overflowed the card) */
  body#royal-blue-app section.card:has(> .big-result) {container:bigres / inline-size}
  @container bigres (max-width:374px) {
    body#royal-blue-app .big-result {flex-direction:column;align-items:flex-start!important;gap:12px}
    body#royal-blue-app .big-result > div:first-child {max-width:none}
    body#royal-blue-app .big-result > div:last-child {flex:none;width:100%;border-left:0!important;padding-left:0!important;border-top:1px solid #c6e3e8;padding-top:12px}
  }

  /* estimation settings: the parameter name in the first column of the matrix wraps inside its column (the row header was nowrap and ran 19 px into the next cell on a phone) */
  body#royal-blue-app .est-param-text, body#royal-blue-app .est-param-text * {white-space:normal!important}

  /* scenarios, folded cards ("Phiên bản cũ (1)", "Xem thử số liệu mẫu"): the title stays whole and the grey note beside it wraps. The note was forced onto one line
     and squeezed the title of a phone to three lines of two words */
  body#royal-blue-app :is(.sv-fold, .sv-history) > summary {flex-wrap:wrap}
  body#royal-blue-app .sv-fold-title {flex:0 1 auto}
  body#royal-blue-app :is(.sv-fold, .sv-history) > summary small {white-space:normal!important;flex:1 1 140px;min-width:0}
  @media (max-width:640px) {
    /* on a phone: icon, title and chevron on the first row, the grey note under them */
    body#royal-blue-app :is(.sv-fold, .sv-history) > summary::after {order:2}
    body#royal-blue-app :is(.sv-fold, .sv-history) > summary small {order:3;flex:1 1 100%}
  }

  /* scenarios, set in use: three facts side by side only while the card is wide enough; below that the date range takes a row of its own (the card is narrow beside the pending card on tablets) */
  body#royal-blue-app .sv-active {container:svact / inline-size}
  @container svact (max-width:470px) {
    body#royal-blue-app .sv-facts {grid-template-columns:repeat(2,minmax(0,1fr))}
    body#royal-blue-app .sv-facts>div:nth-child(2) {grid-column:1 / -1;order:3}
  }
}

/* Header row: the logo block of the sidebar and the top bar share one height and one bottom line, so they read as a single band
   (desktop only, where the sidebar stays on screen; phones keep their own top bar in mobile-topbar.css). */
:root {--rb-header-h: 64px; --rb-header-line: #dbe7fb}
@layer readability {
  @media (min-width:1000px) {
    body#royal-blue-app.royal-blue-interface:not(.community-view) .sidebar .brand {box-sizing:border-box !important;height:var(--rb-header-h) !important;min-height:var(--rb-header-h) !important;margin:0 !important;padding:0 14px !important;display:flex !important;align-items:center !important;border-bottom:1px solid var(--rb-header-line) !important}
    body#royal-blue-app.royal-blue-interface:not(.community-view) .topbar {box-sizing:border-box !important;height:var(--rb-header-h) !important;min-height:var(--rb-header-h) !important;padding-top:0 !important;padding-bottom:0 !important;flex-wrap:nowrap !important;align-items:center !important;border-bottom:1px solid var(--rb-header-line) !important}
    body#royal-blue-app.royal-blue-interface:not(.community-view) .topbar #breadcrumb {min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
    /* the logo square spans exactly the ink of the two lines: its top edge level with the tilde of "NẴNG", its bottom with the tail of
       "g" in "Giang" (Be Vietnam Pro 800/13px over 13px, 2px apart). The drawn square sits 0.5/48 inside the image, hence 42.35px. */
    body#royal-blue-app.royal-blue-interface:not(.community-view) .sidebar .brand #brand-logo,
    body#royal-blue-app.royal-blue-interface:not(.community-view) .sidebar .brand #brand-logo img {width:42.35px !important;height:42.35px !important;flex:none !important}
    body#royal-blue-app.royal-blue-interface:not(.community-view) .sidebar .brand #brand-subtitle {margin-top:2px !important}
    body#royal-blue-app.royal-blue-interface:not(.community-view) .sidebar .brand > span:last-child {position:relative !important;top:1.32px !important}
  }
}

/* Map tools (Phao · Tất cả | ↶ Bắc Theo sông ↷): the credit box on the map is hidden (user request 19/10/2026 for the staff map,
   20/10/2026 for the resident page); the OpenStreetMap / Esri sources it carried are written under the map instead (geographic-map.js:
   map notes on the staff page, .map-source-caption on the resident page). The bar sits in the bottom-right corner with the same 12px
   margin as the compass in the top-right corner; equal 34px buttons, the turn arrows square, a thin divider between "where" and
   "which way". On phones the bar spans the map with equal margins, rotation on a second row. */
@layer readability {
  body#royal-blue-app #geographic-map .leaflet-control-attribution {display:none !important}
  /* the resident map: on a computer the bar moves down to the same 12px (on phones it already sits in a row under the map) */
  @media (min-width:761px) { body#royal-blue-app.community-view .public-observatory-map .map-floating-tools {bottom:12px !important} }
  body#royal-blue-app .public-observatory-map .map-source-caption {margin:6px 0 0 !important;padding:0 !important;font-size:11px !important;line-height:1.4 !important;color:#6b7f96 !important;text-align:right}
  body#royal-blue-app .public-observatory-map .map-source-caption a {color:inherit !important;text-decoration:underline;text-underline-offset:2px}
  body#royal-blue-app .public-observatory-map .map-source-caption[hidden] {display:none !important}
  body#royal-blue-app:not(.community-view) .map-floating-tools {bottom:12px !important;right:12px !important;left:auto !important;top:auto !important;height:auto !important;padding:3px !important;gap:2px !important;align-items:center !important}
  body#royal-blue-app:not(.community-view) .map-floating-tools button {box-sizing:border-box !important;height:34px !important;min-height:34px !important;padding:0 10px !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;gap:6px !important;line-height:1 !important;margin:0 !important}
  body#royal-blue-app:not(.community-view) .map-floating-tools button svg {width:16px !important;height:16px !important;flex:none}
  body#royal-blue-app:not(.community-view) .map-floating-tools [data-map-turn] {width:34px !important;padding:0 !important;font-size:17px !important}
  body#royal-blue-app:not(.community-view) .map-floating-tools .map-quick-rotation {display:flex !important;align-items:center !important;gap:2px !important;margin:0 0 0 3px !important;padding:0 0 0 5px !important;border-left:1px solid #dce6f1 !important;height:26px}
  body#royal-blue-app:not(.community-view) #map-center-coordinate {bottom:12px !important}
  @media (max-width:760px) {
    body#royal-blue-app:not(.community-view) .map-floating-tools {left:12px !important;right:12px !important;flex-wrap:wrap !important;justify-content:center !important;row-gap:2px !important}
    body#royal-blue-app:not(.community-view) .map-floating-tools .map-quick-rotation {flex:1 0 100% !important;justify-content:center !important;margin:0 !important;padding:2px 0 0 !important;border-left:0 !important;border-top:1px solid #dce6f1 !important;height:auto !important}
  }
}

/* ==== device-mobile.css ==== */
/* Nhanh Mobile: <= 700px
   Chi dat CSS cua dai man hinh nay, trong @media cua dai do; khong sua tep CSS cu.
   Quy uoc: ghi de trong @layer readability voi !important (xem CLAUDE.md). Sua xong chay: php artisan assets:bundle

   Khung dien thoai cho nhan vien (khong ap dung cho trang nguoi dan, body.community-view):
   - thanh tieu de: logo + ten he thong ben trai, chuong co so, nut menu ben phai;
   - thanh menu duoi: Tong quan / Quan trac / Canh bao / Them (Them mo ngan menu). */
@layer readability {
  /* The two pieces of markup exist in the page for every screen; they only show on a phone, for staff */
  .topbar-brand,.bottom-nav {display:none !important}

  @media (max-width: 700px) {
    /* ---------- top bar: logo + name · bell with its count · menu ---------- */
    body#royal-blue-app:not(.community-view) .topbar {gap:6px !important;padding:8px 8px 8px 12px !important;background:#fff !important}
    body#royal-blue-app:not(.community-view) .topbar .topbar-brand {display:flex !important;order:1;flex:1 1 auto;align-items:center;gap:10px;min-width:0;text-decoration:none;color:#0b2a6b}
    body#royal-blue-app:not(.community-view) .topbar .topbar-brand img {flex:none;box-sizing:border-box;width:34px;height:34px;padding:5px;border-radius:10px;background:#e8f0ff}
    body#royal-blue-app:not(.community-view) .topbar .topbar-brand strong {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px;line-height:1.2;font-weight:800;letter-spacing:-.2px;color:#0b2a6b}
    /* the title, the account, the clock and the export button leave the bar: the menu and the drawer carry them */
    body#royal-blue-app:not(.community-view) .topbar :is(#breadcrumb,#hydro-public-nav,.rb-clock,.help-button) {display:none !important}
    body#royal-blue-app:not(.community-view) .topbar .topbar-right {order:2;gap:0 !important}
    body#royal-blue-app:not(.community-view) .topbar .mobile-menu {order:3}
    /* ---------- action buttons: bell · account · report · menu — one family of soft 32px tiles ---------- */
    body#royal-blue-app:not(.community-view) .topbar {flex-wrap:nowrap !important;gap:0 !important;height:52px !important;min-height:52px !important;max-height:52px !important;padding:6px 8px 6px 12px !important}
    body#royal-blue-app:not(.community-view) .topbar .topbar-brand {gap:8px !important;margin-right:6px}
    body#royal-blue-app:not(.community-view) .topbar .topbar-brand strong {font-size:16px !important}
    body#royal-blue-app:not(.community-view) .topbar .topbar-right {order:2;display:flex !important;align-items:center;gap:4px !important;margin:0 4px 0 0 !important}
    body#royal-blue-app:not(.community-view) .topbar .mobile-menu {order:3}
    body#royal-blue-app:not(.community-view) .topbar :is(.notification-button,.mobile-menu,.account,.rb-top-export) {position:relative;display:grid !important;place-items:center;flex:none;box-sizing:border-box;width:32px !important;min-width:32px !important;height:32px !important;min-height:32px !important;margin:0 !important;padding:0 !important;overflow:visible;border:1px solid #e1eafa !important;border-radius:10px !important;background-color:#f4f8ff !important;background-image:none !important;color:#1a3d78 !important;font-size:0 !important;line-height:0 !important;box-shadow:0 1px 1px rgba(19,56,88,.05) !important;-webkit-tap-highlight-color:transparent}
    body#royal-blue-app:not(.community-view) .topbar #notification-button {width:32px !important;min-width:32px !important;height:32px !important;min-height:32px !important;padding:0 !important;border:1px solid #e1eafa !important;border-radius:10px !important;background-color:#f4f8ff !important;background-image:none !important;box-shadow:0 1px 1px rgba(19,56,88,.05) !important}
    /* account: soft blue tile */
    body#royal-blue-app:not(.community-view) .topbar .account {background-color:#e6f0ff !important;border-color:#d0e0fb !important;color:#1754bc !important}
    body#royal-blue-app:not(.community-view) .topbar #account-button :is(.account-name,.account-chevron) {display:none !important}
    body#royal-blue-app:not(.community-view) .topbar #account-button .avatar {display:grid;place-items:center;width:100% !important;height:100% !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;background:transparent !important;color:inherit !important}
    body#royal-blue-app:not(.community-view) .topbar #account-button .avatar svg {width:18px;height:18px}
    /* report: the one solid primary tile, with a white report glyph (a sheet with bars) */
    body#royal-blue-app:not(.community-view) .topbar .rb-top-export {background:center/18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 00-2 2v14a2 2 0 002 2h10a2 2 0 002-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E"),linear-gradient(145deg,#3b8bff,#0862ff 58%,#0a54d8) !important;border-color:#0a58e6 !important;color:#fff !important;box-shadow:0 1px 2px rgba(8,98,255,.35),0 10px 18px -8px rgba(8,98,255,.8) !important}
    body#royal-blue-app:not(.community-view) .topbar .rb-top-export::after {content:none !important}
    /* the button is redrawn on every page change with its own download arrow inside: never show it over the document icon (24-10-2026) */
    body#royal-blue-app:not(.community-view) .topbar .rb-top-export > :is(svg,span,small) {display:none !important}
    /* the map scale is hidden on phones for now (user, 24-10-2026): wherever it sits it meets a control */
    body#royal-blue-app .geographic-map .leaflet-control-scale {display:none !important}
    /* "Diễn biến" on a phone (24-10-2026): the card keeps the same inner margin as the other cards, the three figures keep value and unit on one line */
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .analysis-trend.chart-panel {padding:12px 10px !important}
    /* Quan trắc: the card already has its margin; the chart panel inside added 14 px more on each side */
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .card.monitor-analysis {padding:12px 10px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content #monitor-chart.chart-panel {padding:0 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content :is(.analysis-trend,#monitor-chart) .ob-chart-stats {gap:6px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content :is(.analysis-trend,#monitor-chart) .ob-chart-stats > div {padding:7px 8px !important;min-width:0 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content :is(.analysis-trend,#monitor-chart) .ob-chart-stats > div strong {display:flex !important;align-items:baseline !important;gap:3px !important;white-space:nowrap !important;font-size:clamp(17px,5.4vw,21px) !important;line-height:1.2 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content :is(.analysis-trend,#monitor-chart) .ob-chart-stats > div strong small {display:none !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content :is(.analysis-trend,#monitor-chart) .ob-chart-stats:not([data-unit=""])::before {content:"Đơn vị: " attr(data-unit);grid-column:1 / -1;margin:0 0 -2px;font-size:11.5px;font-weight:600;color:#5d6e82}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .analysis-trend .chart-parameters button {min-width:0 !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important}
    /* residents map on a phone: every point shows its name (S8, TG11…) as a small tag, placed by placeLabels() away from other tags, pins and controls; the chosen point keeps its full label (24-10-2026) */
    body#royal-blue-app.community-view .public-observatory-map .gis-beacon:not(.selected) .map-pin-label {display:block !important;min-width:0 !important;width:auto !important;padding:2px 7px !important;border-radius:7px !important;background:#ffffffee !important;border:1px solid #d6e2f1 !important;box-shadow:0 2px 6px rgba(18,54,72,.12) !important;white-space:nowrap !important}
    body#royal-blue-app.community-view .public-observatory-map .gis-beacon:not(.selected) .map-pin-label > :not(strong) {display:none !important}
    body#royal-blue-app.community-view .public-observatory-map .gis-beacon:not(.selected) .map-pin-label > strong {font-size:11.5px !important;line-height:1.3 !important;font-weight:700 !important;color:#173e65 !important}
    body#royal-blue-app.community-view .public-observatory-map .gis-beacon:not(.selected) .map-pin-label::after {display:none !important}
    /* point cards (24-10-2026): one row each — icon | name over one level chip "C2 · Cảnh báo" | reading on the right; the second level icon next to the name is gone; .pc-card twice: the older card rules come later in this file */
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card.pc-card {display:grid !important;grid-template-columns:36px minmax(0,1fr) auto !important;grid-template-areas:"ico name read" "ico groups read" !important;align-items:center !important;column-gap:12px !important;row-gap:4px !important;min-height:62px !important;padding:9px 12px !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card.pc-card .pc-level {display:none !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card.pc-card .pc-name {grid-area:name !important;align-self:end !important;font-size:15.5px !important;line-height:1.2 !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card.pc-card .pc-groups {grid-area:groups !important;align-self:start !important;display:flex !important;flex-wrap:wrap !important;gap:5px !important;margin:0 !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card.pc-card .pc-pill {display:inline-flex !important;align-items:center !important;gap:5px !important;height:22px !important;padding:0 8px !important;border-radius:7px !important;border:1px solid color-mix(in srgb,var(--lv) 35%,#fff) !important;background:color-mix(in srgb,var(--lv) 12%,#fff) !important;line-height:1 !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card.pc-card .pc-pill b {font-size:12px !important;font-weight:800 !important;color:var(--ink) !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card.pc-card .pc-pill em {font-style:normal !important;font-size:12px !important;font-weight:600 !important;color:var(--ink) !important;white-space:nowrap}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card.pc-card .pc-pill b + em::before {content:"·";margin-right:5px;opacity:.55}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card.pc-card .pc-foot {grid-area:read !important;display:flex !important;flex-direction:column !important;align-items:flex-end !important;justify-content:center !important;text-align:right !important}
    /* staff map: the buoy position on one line, no seconds line, no "GPS đã xác nhận" chip (24-10-2026) */
    body#royal-blue-app:not(.community-view) .gis-location-bar {display:flex !important;align-items:center !important;min-height:0 !important;padding:6px 10px !important}
    body#royal-blue-app:not(.community-view) .gis-location-bar > div {display:flex !important;flex-wrap:nowrap !important;align-items:baseline !important;gap:6px !important;min-width:0 !important;flex:1 1 auto !important;margin:0 !important}
    body#royal-blue-app:not(.community-view) .gis-location-bar :is(small,.gis-coordinate-state,.gis-datum) {display:none !important}
    body#royal-blue-app:not(.community-view) .gis-location-bar .gis-coordinate-label {flex:none;font-size:11.5px !important;line-height:1.3 !important;white-space:nowrap}
    body#royal-blue-app:not(.community-view) .gis-location-bar strong {min-width:0;margin:0 !important;font-size:12px !important;line-height:1.3 !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    /* "Mưa 24h tới" and its value as close as "Mưa 24h qua 0,0 mm" (one space) (24-10-2026) */
    body#royal-blue-app #content .wx-strip .wx-rain-head {column-gap:0 !important}
    body#royal-blue-app #content .wx-strip .wx-rain-head > strong {padding-left:4px !important}
    /* map timeline: the parameter chips and the small buttons take the corners of the map buttons (Bắc, Theo sông) (24-10-2026) */
    /* the id twice: an older map rule (.public-observatory-map … .ptl-dock button, 999px) is more specific */
    :root body#royal-blue-app#royal-blue-app .map-floating-tools .ptl :is(.ptl-strip button,.ptl-btn) {border-radius:9px !important}
    :root body#royal-blue-app#royal-blue-app .map-floating-tools .ptl :is(.ptl-strip button,.ptl-btn):not([aria-pressed="true"]) {background:#f4f8fd !important;border-color:#d6e2f1 !important;color:#315e93 !important}
    /* menu: three bars drawn on the tile itself, centred with the other glyphs */
    body#royal-blue-app:not(.community-view) .topbar .mobile-menu {background:linear-gradient(#1a3d78,#1a3d78) center 8.5px/16px 2px no-repeat,linear-gradient(#1a3d78,#1a3d78) center 14px/16px 2px no-repeat,linear-gradient(#1a3d78,#1a3d78) center 19.5px/16px 2px no-repeat,linear-gradient(#f4f8ff,#f4f8ff) !important}
    /* the hit area of each tile reaches 2px past the drawn tile on the sides (the gap between tiles is 4px) and 6px above and below: a 32px tile keeps a 36 x 44px touch target */
    body#royal-blue-app:not(.community-view) .topbar :is(.notification-button,.mobile-menu,.account,.rb-top-export)::before {content:"" !important;position:absolute !important;inset:-7px -3px !important;display:block !important;width:auto !important;height:auto !important;background:transparent !important;border:0 !important;border-radius:14px !important;box-shadow:none !important;transform:none !important;opacity:1 !important}
    body#royal-blue-app:not(.community-view) .topbar .mobile-menu[aria-expanded="true"] {border-color:#9fc0f6 !important;box-shadow:0 0 0 3px rgba(8,98,255,.14) !important}
    /* bell: glyph and the red count riding on its corner */
    body#royal-blue-app:not(.community-view) .topbar .notification-button svg {width:18px !important;height:18px !important}
    body#royal-blue-app:not(.community-view) .topbar #notification-button .notification-count {top:-5px !important;right:-5px !important;box-sizing:border-box !important;min-width:16px !important;height:16px !important;padding:0 4px !important;border:1.5px solid #fff !important;font-size:10px !important;line-height:13px !important;box-shadow:none !important}
    /* effects: lift on hover, press on tap, a ring for keyboard focus */
    body#royal-blue-app:not(.community-view) .topbar :is(.notification-button,.mobile-menu,.account,.rb-top-export) {transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,filter .16s ease}
    body#royal-blue-app:not(.community-view) .topbar :is(.notification-button,.mobile-menu,.account,.rb-top-export):hover {transform:translateY(-1px);border-color:#b4cdf6 !important;box-shadow:0 2px 4px rgba(19,56,88,.1),0 8px 14px -10px rgba(19,56,88,.5) !important}
    body#royal-blue-app:not(.community-view) .topbar .rb-top-export:hover {filter:brightness(1.07);border-color:#0a58e6 !important;box-shadow:0 2px 4px rgba(8,98,255,.35),0 14px 22px -8px rgba(8,98,255,.85) !important}
    body#royal-blue-app:not(.community-view) .topbar :is(.notification-button,.mobile-menu,.account,.rb-top-export):active {transform:scale(.93);box-shadow:0 1px 2px rgba(19,56,88,.1) !important}
    body#royal-blue-app:not(.community-view) .topbar :is(.notification-button,.mobile-menu,.account,.rb-top-export):focus-visible {outline:3px solid #aac8ff !important;outline-offset:2px}

    body#royal-blue-app:not(.community-view) #content .admin-topbar {top:52px !important}

    /* ---------- Overview page heading, compact: icon + one-line title, the sub line runs under both; figures row with room for its labels ---------- */
    body#royal-blue-app:not(.community-view) #content .ob-overview .ob-page-heading {padding:8px 12px !important;margin:0 0 8px !important;border-radius:14px !important}
    body#royal-blue-app:not(.community-view) #content .ob-overview .ob-page-heading .rb-heading-main {display:grid !important;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"ico title" "sub sub";align-items:center;column-gap:10px;row-gap:3px;width:auto !important;height:auto !important;min-width:0}
    body#royal-blue-app:not(.community-view) #content .ob-overview .ob-page-heading .rb-heading-main > div {display:contents !important}
    body#royal-blue-app:not(.community-view) #content .ob-overview .ob-page-heading .rb-heading-icon {grid-area:ico;width:26px !important;height:26px !important;border-radius:8px !important}
    body#royal-blue-app:not(.community-view) #content .ob-overview .ob-page-heading .rb-heading-icon svg {width:16px !important;height:16px !important}
    body#royal-blue-app:not(.community-view) #content .ob-overview .ob-page-heading .rb-heading-main h1 {grid-area:title;min-width:0;margin:0 !important;font-size:clamp(15px,4.7vw,18px) !important;line-height:1.2 !important;letter-spacing:-.2px !important;white-space:nowrap !important}
    body#royal-blue-app:not(.community-view) #content .ob-overview .ob-page-heading .rb-heading-main p {grid-area:sub;min-width:0;margin:0 !important;font-size:clamp(11px,3.3vw,12.5px) !important;line-height:1.35 !important;white-space:nowrap !important}
    /* three figures in content-sized columns spread over the row, so no label or 3-digit number breaks onto a second line */
    body#royal-blue-app:not(.community-view) #content .ob-overview .ov-panel .ov-stats {grid-template-columns:auto auto auto !important;justify-content:space-between !important}
    body#royal-blue-app:not(.community-view) #content .ob-overview .ov-panel .ov-stat {gap:5px !important;padding:0 4px !important}
    body#royal-blue-app:not(.community-view) #content .ob-overview .ov-panel .ov-ico {width:28px !important;height:28px !important;border-radius:9px !important}
    body#royal-blue-app:not(.community-view) #content .ob-overview .ov-panel .ov-ico svg {width:16px !important;height:16px !important}
    body#royal-blue-app:not(.community-view) #content .ob-overview .ov-panel .ov-fig span,body#royal-blue-app:not(.community-view) #content .ob-overview .ov-panel .ov-fig strong {white-space:nowrap !important}

    /* ---------- point cards on a phone: lighter. Near-white card, a thin colour edge, the colour only on the level icon and the A/B pills ---------- */
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card {padding:8px 10px !important;column-gap:10px !important;row-gap:5px !important;border-radius:12px !important;border:1px solid color-mix(in srgb,var(--pc-color) 16%,#e3eaf4) !important;background:linear-gradient(90deg,color-mix(in srgb,var(--pc-color) 7%,#fff),#fff 60%) !important;box-shadow:inset 3px 0 0 var(--pc-color) !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card.pc-unknown {background:#f6f8fc !important;box-shadow:inset 3px 0 0 #b9c5d6 !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card:hover {transform:none !important;box-shadow:inset 3px 0 0 var(--pc-color),0 6px 14px -12px rgba(19,56,88,.5) !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card.selected,body#royal-blue-app:not(.community-view) #content .ov-points .pc-card.selected.pc-unknown {animation:none !important;border-color:color-mix(in srgb,var(--pc-color) 75%,#fff) !important;box-shadow:inset 4px 0 0 var(--pc-color),0 0 0 1px color-mix(in srgb,var(--pc-color) 55%,#fff) !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card.pc-unknown.selected {border-color:#8fa0b8 !important;box-shadow:inset 4px 0 0 #8fa0b8,0 0 0 1px #8fa0b8 !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card.pc-active .pc-level::before {display:none !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card .pc-ico {width:36px !important;height:36px !important;border-radius:11px !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card .pc-name {font-size:16px !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card .pc-level svg {width:22px !important;height:22px !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card .pc-groups {gap:5px !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card .pc-pill {--ink:#5f7391;gap:4px !important;padding:2px 8px 2px 2px !important;border:1px solid color-mix(in srgb,var(--lv) 28%,#fff) !important;background:color-mix(in srgb,var(--lv) 6%,#fff) !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card .pc-pill[data-level="0"] {--ink:#0b7a3b}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card .pc-pill[data-level="1"] {--ink:#7a5800}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card .pc-pill[data-level="2"] {--ink:#b34700}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card .pc-pill[data-level="3"] {--ink:#bf1a12}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card .pc-pill[data-level="4"] {--ink:#7e0023}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card .pc-pill i {width:18px !important;height:18px !important;background:color-mix(in srgb,var(--lv) 18%,#fff) !important;color:var(--ink) !important;font-size:10px !important;font-weight:700 !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card .pc-pill b {color:var(--ink) !important;font-size:12px !important;font-weight:700 !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card .pc-pill[data-level="none"] {background:#f1f4f9 !important;border-color:#dbe3ee !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card .pc-val {font-size:20px !important;line-height:1.1 !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card .pc-val small {display:inline !important;margin:0 0 0 3px !important;font-size:11px !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card .pc-foot {gap:0 !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card .pc-name {line-height:1.15 !important}
    body#royal-blue-app:not(.community-view) #content .ov-points .pc-card .pc-param {font-size:11.5px !important}

    /* ---------- Weather card on a phone, after the user's sample: icon + big temperature | feels-like and humidity; the wind line under them; the rain
       24h strip in two halves (the hourly bars are hidden); four equal day tiles; the legend; a footer with the update time at the right ---------- */
    body#royal-blue-app:not(.community-view) #content .wx-strip {display:flex !important;flex-direction:column !important;align-items:stretch !important;gap:6px !important;padding:10px 12px !important;border-radius:18px !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip > * {align-self:stretch !important;min-width:0;width:auto !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-now {display:grid !important;grid-template-columns:auto minmax(0,1fr) 50% !important;justify-content:stretch !important;column-gap:0 !important;row-gap:2px !important;align-items:center !important;padding:0 !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-now > .wx-icon {grid-column:1;grid-row:1 / span 2;width:48px !important;height:48px !important;margin:0 6px 0 0 !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-now > div {grid-column:2;grid-row:1 / span 2;align-self:center;display:grid;justify-items:center;gap:0;min-width:0;padding-right:10px;border-right:1px solid #dbe6f5}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-temp {font-size:32px !important;line-height:1.05 !important;font-weight:800 !important;letter-spacing:-1px !important;color:#0b1f4a !important;white-space:nowrap}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-temp small {margin-left:2px;font-size:14px !important;font-weight:500 !important;letter-spacing:0 !important;color:#33507a !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-desc {font-size:13px !important;font-weight:600 !important;color:#1d3558 !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-facts {display:contents !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-facts > div {display:flex !important;align-items:center;gap:6px;min-width:0;margin:0 !important;white-space:nowrap}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-facts > div:nth-child(1) {grid-column:3;grid-row:1;padding-left:12px !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-facts > div:nth-child(2) {grid-column:3;grid-row:2;padding-left:12px !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-facts > div.wx-wide {grid-column:1 / -1;grid-row:3;justify-content:center;padding:4px 0 0 !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-facts dt {display:flex;align-items:center;gap:6px;margin:0 !important;font-size:12px !important;font-weight:500 !important;color:#5f7391 !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-facts dd {margin:0 !important;font-size:13px !important;font-weight:800 !important;color:#0b1f4a !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-facts dt::before {content:"";flex:none;width:16px;height:16px;background:center / contain no-repeat}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-facts > div:nth-child(1) dt::before {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b6fe0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 14.8V5a2 2 0 10-4 0v9.8a4 4 0 104 0z'/%3E%3C/svg%3E")}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-facts > div:nth-child(2) dt::before {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M12 2.5s6.2 6.4 6.2 11a6.2 6.2 0 11-12.4 0c0-4.6 6.2-11 6.2-11z' fill='%231a6cf0'/%3E%3C/svg%3E")}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-facts > div.wx-wide dt::before {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10a3 3 0 10-3-3M3 12h15a3 3 0 11-3 3M3 16h7'/%3E%3C/svg%3E")}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-beaufort {font-size:12px;font-weight:500;color:#5f7391}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-dir {display:inline-flex;align-items:center;gap:5px;padding:2px 9px 2px 5px;border-radius:999px;background:#eaf2ff;color:#173d77;font-size:12px;font-weight:700;vertical-align:middle}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-sep {display:none !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-facts > div.wx-wide dd {display:flex !important;align-items:center;gap:5px}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-dir::before {content:"";flex:none;width:13px;height:13px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l6.8 17.2L12 16.4l-6.8 3.8z' fill='%232b6fe0' stroke='%232b6fe0' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;transform:rotate(var(--wx-deg,0deg))}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain {padding:0 !important;margin:0 !important;background:transparent !important;border:0 !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain .wx-bars,body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain .wx-axis {display:none !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain-head {position:relative;display:flex !important;flex-wrap:nowrap !important;min-height:42px;align-items:center;margin:0 !important;padding:6px 10px !important;border-radius:14px !important;background:#f1f6ff !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain-head::before {content:"";position:absolute;left:10px;top:50%;width:30px;height:30px;transform:translateY(-50%);border-radius:50%;background:#e1edff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M12 2.5s6.2 6.4 6.2 11a6.2 6.2 0 11-12.4 0c0-4.6 6.2-11 6.2-11z' fill='%231a6cf0'/%3E%3C/svg%3E") center / 14px 17px no-repeat}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain-head > span {flex:none;white-space:nowrap;padding-left:40px;font-size:11px !important;line-height:1.25;font-weight:600;color:#33507a !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain-head > strong {flex:1 1 0;min-width:0;white-space:nowrap;padding-left:5px;font-size:11px !important;line-height:1.25;font-weight:700 !important;color:#0a53d6 !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain-head > em {flex:0 0 50% !important;width:50% !important;box-sizing:border-box;margin:0 !important;position:relative;align-self:stretch;display:flex;align-items:center;padding-left:44px;border-left:1px solid #d3e2fa;font-style:normal;font-size:11px !important;line-height:1.25;font-weight:600;white-space:nowrap;color:#33507a !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain-head > em::before {content:"";position:absolute;left:8px;top:50%;width:30px;height:30px;transform:translateY(-50%);border-radius:50%;background:#e8edf4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M12 2.5s6.2 6.4 6.2 11a6.2 6.2 0 11-12.4 0c0-4.6 6.2-11 6.2-11z' fill='%238696aa'/%3E%3C/svg%3E") center / 14px 17px no-repeat}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-days {display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:6px !important;margin:0 !important;padding:0 !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-days li {display:flex !important;flex-direction:column;align-items:center;gap:1px !important;min-width:0;padding:6px 2px 6px !important;border:1px solid #e3ebf6 !important;border-radius:12px !important;background:#fbfdff !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-days li:first-child {background:#eaf3ff !important;border-color:#c5dcfa !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-days li b {font-size:12.5px !important;font-weight:800 !important;color:#0b1f4a !important;white-space:nowrap}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-days li .wx-icon {width:34px !important;height:34px !important;margin:0 !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-days li .wx-range {font-size:14px !important;font-weight:800 !important;color:#0b1f4a !important;white-space:nowrap}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-days li .wx-range small {font-size:13px !important;font-weight:600 !important;color:#5f7391 !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-days li .wx-mm {display:block !important;position:relative;width:fit-content;margin:2px auto 0 !important;padding-left:13px !important;font-size:12px !important;line-height:1.35 !important;font-weight:700 !important;letter-spacing:-.1px !important;color:#0a53d6 !important;text-align:left;white-space:nowrap;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M12 2.5s6.2 6.4 6.2 11a6.2 6.2 0 11-12.4 0c0-4.6 6.2-11 6.2-11z' fill='%231a6cf0'/%3E%3C/svg%3E") left 3px / 8px 11px no-repeat !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-days li .wx-mm small {display:block !important;position:relative;font-size:12px !important;font-weight:600 !important;letter-spacing:-.1px !important;white-space:nowrap !important;color:#5f7391 !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-days li .wx-mm small::before {content:"";position:absolute;left:-13px;top:3px;width:8px;height:11px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M12 2.5s6.2 6.4 6.2 11a6.2 6.2 0 11-12.4 0c0-4.6 6.2-11 6.2-11z' fill='%238696aa'/%3E%3C/svg%3E") center / contain no-repeat}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-legend {display:block !important;margin:0 !important;text-align:center;font-size:11.5px !important;line-height:1.3 !important;color:#5f7391 !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-foot {margin:0 !important;padding:6px 0 0 !important;border-top:1px solid #e3ebf6 !important;font-size:11.5px !important;line-height:1.4 !important;color:#5f7391 !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-foot a {color:#1754bc !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-foot .wx-foot-long {display:none !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-foot .wx-foot-short {display:inline !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-foot .wx-foot-time {float:right;margin-left:8px;white-space:nowrap;color:#5f7391}

    /* ---------- Map: "Cảnh báo" and "Thủy văn" on one row, the same chip style (the lens box is pulled up beside the basemap chip; no markup change) ---------- */
    body#royal-blue-app:not(.community-view) #content #river-workspace .gis-lens {margin:-45px 0 17px !important;padding:0 !important;border:0 !important;background:transparent !important;box-shadow:none !important;height:36px !important;min-height:0 !important;width:calc(50% - 26px) !important;max-width:none !important}
    body#royal-blue-app:not(.community-view) #content #river-workspace .gis-lens .gis-lens-menu summary {box-sizing:border-box !important;height:36px !important;min-height:36px !important;padding:8px 10px !important;gap:7px !important;border:1px solid #cbdcff !important;border-radius:9px !important;background:#f2f7ff !important;color:#184fae !important;font-size:12px !important;font-weight:600 !important;white-space:nowrap !important}
    body#royal-blue-app:not(.community-view) #content #river-workspace .gis-lens .gis-lens-current {font-size:12px !important;font-weight:600 !important;white-space:nowrap !important}
    /* the basemap chip and the full-screen button hug the right edge at every phone width (a narrower rule used to stretch this row over the whole line) */
    body#royal-blue-app:not(.community-view) #content #river-workspace .map-topbar .gis-control-row {flex:0 0 auto !important;width:calc(50% + 18px) !important;margin:0 0 0 auto !important}
    body#royal-blue-app:not(.community-view) #content #river-workspace .map-topbar .gis-basemap-toolbar {justify-content:flex-start !important;width:100% !important;gap:8px !important}
    /* one group of three: two equal chips (the lens box is half the row minus 26px, the basemap chip fills the rest of its half) and the 36px square locate button, 8px apart */
    body#royal-blue-app:not(.community-view) #content #river-workspace .map-topbar .map-basemap-select {flex:1 1 0 !important;width:auto !important;min-width:0 !important}
    body#royal-blue-app:not(.community-view) #content #river-workspace .map-topbar .map-basemap-select summary,body#royal-blue-app:not(.community-view) #content #river-workspace .gis-lens .gis-lens-menu summary {width:100% !important;justify-content:center !important}
    body#royal-blue-app:not(.community-view) #content #river-workspace .gis-lens .gis-lens-menu {flex:1 1 auto !important;width:100% !important;min-width:0 !important}
    body#royal-blue-app:not(.community-view) #content #river-workspace .map-topbar #map-fullscreen {flex:none !important;width:36px !important;height:36px !important}

    /* ---------- Help dialog on a phone: a sticky 52px title bar with a 40px close button, a compact article head (icon + balanced title, the sub line under both), smaller audience pill and steps ---------- */
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) {padding:0 14px 14px !important;border-radius:16px !important;max-height:calc(100dvh - 20px) !important}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .modal-title {position:sticky;top:0;z-index:5;min-height:52px;margin:0 -14px 10px !important;padding:6px 14px !important;background:#fff;border-bottom:1px solid #e6edf6}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .modal-title h2 {font-size:16px !important;gap:8px !important}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .modal-title .rb-form-title-icon {width:30px !important;height:30px !important;border-radius:9px !important}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .modal-title .rb-form-title-icon svg {width:17px !important;height:17px !important}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) #close-modal {width:40px !important;height:40px !important;min-width:40px !important;min-height:40px !important;border-radius:12px !important}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .hc-head {margin:0 0 8px !important}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .hc-head .rb-heading-main {display:grid !important;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"ico title" "sub sub";align-items:center;column-gap:10px;row-gap:4px;width:auto !important;min-width:0}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .hc-head .rb-heading-main > div {display:contents !important}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .hc-head .rb-heading-icon {grid-area:ico;width:38px !important;height:38px !important;border-radius:11px !important}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .hc-head .rb-heading-icon svg {width:20px !important;height:20px !important}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .hc-head h1 {grid-area:title;min-width:0;margin:0 !important;font-size:18px !important;line-height:1.25 !important;letter-spacing:-.2px !important;text-wrap:balance}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .hc-head p.subtitle {grid-area:sub;margin:0 !important;font-size:12.5px !important;line-height:1.4 !important}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .hc-crumbs {white-space:nowrap;overflow:hidden;font-size:12px !important;margin:0 0 6px !important}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .hc-article {gap:10px !important}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .hc-audience {margin:0 !important;padding:6px 10px !important;font-size:12.5px !important;border-radius:999px !important;width:fit-content;max-width:100%}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .hc-h {margin:0 0 6px !important;font-size:15px !important;line-height:1.3 !important}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .hc-steps ol {gap:8px !important}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .hc-steps li {padding:10px 12px 10px 48px !important;gap:2px !important;border-radius:10px !important}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .hc-steps li::before {left:10px !important;top:10px !important;width:28px !important;height:28px !important;font-size:13px !important}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .hc-steps li strong {font-size:15px !important;line-height:1.3 !important}
    body#royal-blue-app:not(.community-view) #modal-root .modal.wide:has(.hc-modal-body) .hc-steps li p {margin:2px 0 0 !important;font-size:14px !important;line-height:1.5 !important}

    /* ---------- Alerts page filters on a phone: search on its own row, the five selects in two columns (the odd last one spans), each label floats small inside its box ---------- */
    body#royal-blue-app:not(.community-view) #content .ap-toolbar {grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important}
    body#royal-blue-app:not(.community-view) #content .ap-toolbar .ap-search {grid-column:1/-1 !important;height:40px !important;min-height:40px !important}
    body#royal-blue-app:not(.community-view) #content .ap-toolbar .ap-search input {height:40px !important;min-height:40px !important}
    body#royal-blue-app:not(.community-view) #content .ap-toolbar .field {position:relative;min-width:0;margin:0 !important}
    body#royal-blue-app:not(.community-view) #content .ap-toolbar .field:last-child {grid-column:1/-1}
    body#royal-blue-app:not(.community-view) #content .ap-toolbar .field > label {position:absolute !important;top:6px;left:12px;z-index:1;max-width:calc(100% - 40px);margin:0 !important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px !important;line-height:1 !important;font-weight:600 !important;color:#6b7f98 !important;pointer-events:none}
    body#royal-blue-app:not(.community-view) #content .ap-toolbar .field select.form-control {height:44px !important;min-height:44px !important;padding:18px 28px 3px 12px !important;border-radius:10px !important;font-size:14px !important;line-height:1.2 !important;text-overflow:ellipsis}

    /* ---------- bottom bar ---------- */
    body#royal-blue-app:not(.community-view) .bottom-nav {display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;position:fixed;left:0;right:0;bottom:0;z-index:90;box-sizing:border-box;padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #e3ecf8;border-radius:16px 16px 0 0;box-shadow:0 -12px 28px -20px rgba(19,56,88,.5)}
    body#royal-blue-app .bottom-nav .bn-item {position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:48px;padding:4px 2px;border:0;border-radius:12px;background:transparent;color:#5f7391 !important;font-family:inherit !important;font-size:11px !important;font-weight:600 !important;line-height:1.2 !important;text-decoration:none !important;cursor:pointer;-webkit-tap-highlight-color:transparent}
    body#royal-blue-app .bottom-nav .bn-item span {max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px !important;font-weight:600 !important;line-height:1.2 !important;color:inherit !important}
    body#royal-blue-app .bottom-nav .bn-item svg {width:21px;height:21px}
    body#royal-blue-app .bottom-nav .bn-item.active {background:#e8f0ff !important;color:#1754bc !important}
    body#royal-blue-app .bottom-nav .bn-item:focus-visible {outline:3px solid #aac8ff;outline-offset:1px}
    body#royal-blue-app .bottom-nav .bn-count {position:absolute;top:2px;left:calc(50% + 5px);box-sizing:border-box;min-width:17px;height:17px;padding:0 4px;border:2px solid #fff;border-radius:99px;background:#e5251b;color:#fff;font-size:10px;font-style:normal;font-weight:700;line-height:13px;text-align:center}
    /* room under the page for the bar, and the floating "new data" button above it */
    body#royal-blue-app:not(.community-view) .workspace {padding-bottom:calc(68px + env(safe-area-inset-bottom,0px)) !important}
    body#royal-blue-app:not(.community-view) .live-update-notice {bottom:calc(74px + env(safe-area-inset-bottom,0px)) !important}
  }
  @media (max-width: 340px) {
    body#royal-blue-app:not(.community-view) #content .ob-overview .ov-panel .ov-ico {display:none !important}
    body#royal-blue-app:not(.community-view) #content .ap-toolbar .field > label {font-size:10px !important;max-width:calc(100% - 28px) !important;letter-spacing:-.1px !important}
    body#royal-blue-app:not(.community-view) #content .ob-overview .ov-panel .ov-events > span:last-child {white-space:nowrap !important;font-size:12px !important}
    body#royal-blue-app:not(.community-view) #content .ob-overview .ov-panel .ov-events strong {font-size:12px !important}
    body#royal-blue-app:not(.community-view) #content .ob-overview .ov-panel .ov-updated {font-size:11px !important;gap:3px !important}
    body#royal-blue-app:not(.community-view) #content .ob-overview .ov-panel .ov-updated svg {display:none !important}
    body#royal-blue-app:not(.community-view) .topbar .topbar-brand strong {font-size:14px !important;letter-spacing:-.4px !important}
    body#royal-blue-app:not(.community-view) .topbar .topbar-brand img {width:34px !important;height:34px !important}
  }
  @media (max-width: 340px) {
body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain-head > em {padding-left:10px !important;font-size:10.5px !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain-head > em::before {display:none !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain-head > span {padding-left:4px !important;font-size:10.5px !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain-head > strong {padding-left:3px !important;font-size:10.5px !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain-head::before {display:none !important}    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain-head > em::before {left:6px !important;width:24px !important;height:24px !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-now > .wx-icon {width:40px !important;height:40px !important;margin-right:4px !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-temp {font-size:28px !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-now > div {padding-right:8px !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-facts > div:nth-child(1),body#royal-blue-app:not(.community-view) #content .wx-strip .wx-facts > div:nth-child(2) {padding-left:8px !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-facts dt {font-size:11px !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-facts dd {font-size:12px !important}
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-days li .wx-mm,body#royal-blue-app:not(.community-view) #content .wx-strip .wx-days li .wx-mm small {font-size:11.5px !important}
  }
  /* very narrow phones (360 px): a little tighter so the whole system name still fits */
  @media (max-width: 380px) {
    body#royal-blue-app:not(.community-view) .topbar .topbar-right {gap:4px !important;margin-right:4px !important}
    body#royal-blue-app:not(.community-view) .topbar .topbar-brand {gap:6px !important;margin-right:2px}
    body#royal-blue-app:not(.community-view) .topbar .topbar-brand strong {font-size:15px !important;letter-spacing:-.3px !important}
  }
  @media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
    body#royal-blue-app:not(.community-view) .topbar .notification-button .notification-count {animation:tb-pop .4s cubic-bezier(.2,1.7,.4,1) both}
    body#royal-blue-app:not(.community-view) .topbar .notification-button:has(.notification-count) svg {transform-origin:50% 10%;animation:tb-ring 6s ease-in-out 1s infinite}
  }
  @keyframes tb-pop {from {transform:scale(.2);opacity:0} to {transform:scale(1);opacity:1}}
  @keyframes tb-ring {0%,86%,100% {transform:rotate(0)} 89% {transform:rotate(14deg)} 92% {transform:rotate(-12deg)} 95% {transform:rotate(7deg)}}
  @media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
    body#royal-blue-app .bottom-nav .bn-item {transition:background-color .15s ease,color .15s ease}
    body#royal-blue-app .bottom-nav .bn-item:active {transform:scale(.96)}
  }
  /* Trang nguoi dan (<=700px): khoi "Thong tin quan trac" gon: tieu de co bieu tuong, 3 o thong ke dong deu, gio cap nhat dang chip */
  @media (max-width: 700px) {
    body#royal-blue-app.community-view .citizen-data-summary { position: relative; display: grid !important; align-items: center; gap: 14px 22px !important; padding: 16px 20px !important; margin: 0 0 14px !important; background: linear-gradient(180deg, #fff, #fbfdff) !important; border: 1px solid #dbe8f7 !important; border-radius: 16px !important; box-shadow: 0 6px 20px rgba(23, 62, 174, .06) !important; color: #1f3d66 !important; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-data-mode { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 12px; align-items: center; min-width: 0; border: 0 !important; padding: 0 !important; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-data-mode::before { content: ""; grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 13px; border: 1px solid #d3e2fa; background: #eaf2ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5fe0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20V10h3v10M10 20V4h3v16M16 20v-7h3v7'/%3E%3C/svg%3E") center / 22px 22px no-repeat; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-data-mode strong { font-size: 15px !important; font-weight: 800; line-height: 1.25; color: #0f2d5e; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-data-mode p { margin: 2px 0 0 !important; font-size: 12.5px !important; line-height: 1.45 !important; color: #566f8f; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px !important; min-width: 0; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span { position: relative; display: grid; gap: 1px; min-width: 0; padding: 9px 12px 9px 15px !important; border-radius: 12px; background: #f3f8ff; border: 1px solid #dfeafb; font-size: 12px !important; line-height: 1.3; color: #566f8f; white-space: nowrap; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--cv, #1a5fe0); }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span:nth-child(1) { --cv: #1a5fe0; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span:nth-child(2) { --cv: #0f9d7a; background: #f1faf7; border-color: #d8f0e8; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span:nth-child(3) { --cv: #7c8ca6; background: #f5f7fa; border-color: #e3e8f0; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage b { display: block; font-size: 26px !important; line-height: 1.1; font-weight: 800; letter-spacing: -.4px; color: var(--cv, #1a5fe0) !important; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-fetch-time { margin: 0 !important; min-width: 0; font-size: 12px !important; line-height: 1.5 !important; color: #566f8f; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-fetch-time nb-dt { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 3px 10px 3px 8px; border-radius: 999px; background: #eef5ff; border: 1px solid #d3e2fa; font-weight: 800; color: #14407f; white-space: nowrap; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-fetch-time nb-dt::before { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5fe0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 110 18 9 9 0 010-18M12 7.5V12l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-fetch-time small { display: block; margin-top: 4px; font-size: 11.5px !important; line-height: 1.4; color: #6b819d; }

    body#royal-blue-app.community-view .citizen-data-summary { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; padding: 14px !important; border-radius: 14px !important; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-data-mode { grid-template-columns: 38px minmax(0, 1fr); column-gap: 10px; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-data-mode::before { width: 38px; height: 38px; border-radius: 12px; background-size: 20px 20px; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-data-mode strong { font-size: 14.5px !important; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-data-mode p { font-size: 12px !important; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage { gap: 8px !important; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span { padding: 8px 4px 8px 12px !important; font-size: 10.5px !important; letter-spacing: -.1px; white-space: nowrap; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage b { font-size: 22px !important; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-fetch-time { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-fetch-time nb-dt { margin-left: 0; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-fetch-time small { flex-basis: 100%; margin-top: 2px; }
  }

  @media (max-width: 340px) {
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span { white-space: normal; line-height: 1.2; }
  }

  /* Trang nguoi dan (<=700px): the thoi tiet dung chung kieu voi trang quan tri (cum dau can giua, dai mua 1 hang, 4 o ngay, chu giai, chan the gon) */
  @media (max-width: 700px) {
    body#royal-blue-app.community-view #content .wx-strip {display:flex !important;flex-direction:column !important;align-items:stretch !important;gap:6px !important;padding:10px 12px !important;border-radius:18px !important}
    body#royal-blue-app.community-view #content .wx-strip > * {align-self:stretch !important;min-width:0;width:auto !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-now {display:grid !important;grid-template-columns:auto minmax(0,1fr) 50% !important;justify-content:stretch !important;column-gap:0 !important;row-gap:2px !important;align-items:center !important;padding:0 !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-now > .wx-icon {grid-column:1;grid-row:1 / span 2;width:48px !important;height:48px !important;margin:0 6px 0 0 !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-now > div {grid-column:2;grid-row:1 / span 2;align-self:center;display:grid;justify-items:center;gap:0;min-width:0;padding-right:10px;border-right:1px solid #dbe6f5}
    body#royal-blue-app.community-view #content .wx-strip .wx-temp {font-size:32px !important;line-height:1.05 !important;font-weight:800 !important;letter-spacing:-1px !important;color:#0b1f4a !important;white-space:nowrap}
    body#royal-blue-app.community-view #content .wx-strip .wx-temp small {margin-left:2px;font-size:14px !important;font-weight:500 !important;letter-spacing:0 !important;color:#33507a !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-desc {font-size:13px !important;font-weight:600 !important;color:#1d3558 !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-facts {display:contents !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-facts > div {display:flex !important;align-items:center;gap:6px;min-width:0;margin:0 !important;white-space:nowrap}
    body#royal-blue-app.community-view #content .wx-strip .wx-facts > div:nth-child(1) {grid-column:3;grid-row:1;padding-left:12px !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-facts > div:nth-child(2) {grid-column:3;grid-row:2;padding-left:12px !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-facts > div.wx-wide {grid-column:1 / -1;grid-row:3;justify-content:center;padding:4px 0 0 !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-facts dt {display:flex;align-items:center;gap:6px;margin:0 !important;font-size:12px !important;font-weight:500 !important;color:#5f7391 !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-facts dd {margin:0 !important;font-size:13px !important;font-weight:800 !important;color:#0b1f4a !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-facts dt::before {content:"";flex:none;width:16px;height:16px;background:center / contain no-repeat}
    body#royal-blue-app.community-view #content .wx-strip .wx-facts > div:nth-child(1) dt::before {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b6fe0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 14.8V5a2 2 0 10-4 0v9.8a4 4 0 104 0z'/%3E%3C/svg%3E")}
    body#royal-blue-app.community-view #content .wx-strip .wx-facts > div:nth-child(2) dt::before {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M12 2.5s6.2 6.4 6.2 11a6.2 6.2 0 11-12.4 0c0-4.6 6.2-11 6.2-11z' fill='%231a6cf0'/%3E%3C/svg%3E")}
    body#royal-blue-app.community-view #content .wx-strip .wx-facts > div.wx-wide dt::before {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10a3 3 0 10-3-3M3 12h15a3 3 0 11-3 3M3 16h7'/%3E%3C/svg%3E")}
    body#royal-blue-app.community-view #content .wx-strip .wx-beaufort {font-size:12px;font-weight:500;color:#5f7391}
    body#royal-blue-app.community-view #content .wx-strip .wx-dir {display:inline-flex;align-items:center;gap:5px;padding:2px 9px 2px 5px;border-radius:999px;background:#eaf2ff;color:#173d77;font-size:12px;font-weight:700;vertical-align:middle}
    body#royal-blue-app.community-view #content .wx-strip .wx-sep {display:none !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-facts > div.wx-wide dd {display:flex !important;align-items:center;gap:5px}
    body#royal-blue-app.community-view #content .wx-strip .wx-dir::before {content:"";flex:none;width:13px;height:13px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l6.8 17.2L12 16.4l-6.8 3.8z' fill='%232b6fe0' stroke='%232b6fe0' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;transform:rotate(var(--wx-deg,0deg))}
    body#royal-blue-app.community-view #content .wx-strip .wx-rain {padding:0 !important;margin:0 !important;background:transparent !important;border:0 !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-rain .wx-bars,body#royal-blue-app.community-view #content .wx-strip .wx-rain .wx-axis {display:none !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-rain-head {position:relative;display:flex !important;flex-wrap:nowrap !important;min-height:42px;align-items:center;margin:0 !important;padding:6px 10px !important;border-radius:14px !important;background:#f1f6ff !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-rain-head::before {content:"";position:absolute;left:10px;top:50%;width:30px;height:30px;transform:translateY(-50%);border-radius:50%;background:#e1edff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M12 2.5s6.2 6.4 6.2 11a6.2 6.2 0 11-12.4 0c0-4.6 6.2-11 6.2-11z' fill='%231a6cf0'/%3E%3C/svg%3E") center / 14px 17px no-repeat}
    body#royal-blue-app.community-view #content .wx-strip .wx-rain-head > span {flex:none;white-space:nowrap;padding-left:40px;font-size:11px !important;line-height:1.25;font-weight:600;color:#33507a !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-rain-head > strong {flex:1 1 0;min-width:0;white-space:nowrap;padding-left:5px;font-size:11px !important;line-height:1.25;font-weight:700 !important;color:#0a53d6 !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-rain-head > em {flex:0 0 50% !important;width:50% !important;box-sizing:border-box;margin:0 !important;position:relative;align-self:stretch;display:flex;align-items:center;padding-left:44px;border-left:1px solid #d3e2fa;font-style:normal;font-size:11px !important;line-height:1.25;font-weight:600;white-space:nowrap;color:#33507a !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-rain-head > em::before {content:"";position:absolute;left:8px;top:50%;width:30px;height:30px;transform:translateY(-50%);border-radius:50%;background:#e8edf4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M12 2.5s6.2 6.4 6.2 11a6.2 6.2 0 11-12.4 0c0-4.6 6.2-11 6.2-11z' fill='%238696aa'/%3E%3C/svg%3E") center / 14px 17px no-repeat}
    body#royal-blue-app.community-view #content .wx-strip .wx-days {display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:6px !important;margin:0 !important;padding:0 !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-days li {display:flex !important;flex-direction:column;align-items:center;gap:1px !important;min-width:0;padding:6px 2px 6px !important;border:1px solid #e3ebf6 !important;border-radius:12px !important;background:#fbfdff !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-days li:first-child {background:#eaf3ff !important;border-color:#c5dcfa !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-days li b {font-size:12.5px !important;font-weight:800 !important;color:#0b1f4a !important;white-space:nowrap}
    body#royal-blue-app.community-view #content .wx-strip .wx-days li .wx-icon {width:34px !important;height:34px !important;margin:0 !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-days li .wx-range {font-size:14px !important;font-weight:800 !important;color:#0b1f4a !important;white-space:nowrap}
    body#royal-blue-app.community-view #content .wx-strip .wx-days li .wx-range small {font-size:13px !important;font-weight:600 !important;color:#5f7391 !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-days li .wx-mm {display:block !important;position:relative;width:fit-content;margin:2px auto 0 !important;padding-left:13px !important;font-size:12px !important;line-height:1.35 !important;font-weight:700 !important;letter-spacing:-.1px !important;color:#0a53d6 !important;text-align:left;white-space:nowrap;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M12 2.5s6.2 6.4 6.2 11a6.2 6.2 0 11-12.4 0c0-4.6 6.2-11 6.2-11z' fill='%231a6cf0'/%3E%3C/svg%3E") left 3px / 8px 11px no-repeat !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-days li .wx-mm small {display:block !important;position:relative;font-size:12px !important;font-weight:600 !important;letter-spacing:-.1px !important;white-space:nowrap !important;color:#5f7391 !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-days li .wx-mm small::before {content:"";position:absolute;left:-13px;top:3px;width:8px;height:11px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M12 2.5s6.2 6.4 6.2 11a6.2 6.2 0 11-12.4 0c0-4.6 6.2-11 6.2-11z' fill='%238696aa'/%3E%3C/svg%3E") center / contain no-repeat}
    body#royal-blue-app.community-view #content .wx-strip .wx-legend {display:block !important;margin:0 !important;text-align:center;font-size:11.5px !important;line-height:1.3 !important;color:#5f7391 !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-foot {margin:0 !important;padding:6px 0 0 !important;border-top:1px solid #e3ebf6 !important;font-size:11.5px !important;line-height:1.4 !important;color:#5f7391 !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-foot a {color:#1754bc !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-foot .wx-foot-long {display:none !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-foot .wx-foot-short {display:inline !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-foot .wx-foot-time {float:right;margin-left:8px;white-space:nowrap;color:#5f7391}
  }
  @media (max-width: 340px) {
body#royal-blue-app.community-view #content .wx-strip .wx-rain-head > em {padding-left:10px !important;font-size:10.5px !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-rain-head > em::before {display:none !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-rain-head > span {padding-left:4px !important;font-size:10.5px !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-rain-head > strong {padding-left:3px !important;font-size:10.5px !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-rain-head::before {display:none !important}    body#royal-blue-app.community-view #content .wx-strip .wx-rain-head > em::before {left:6px !important;width:24px !important;height:24px !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-now > .wx-icon {width:40px !important;height:40px !important;margin-right:4px !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-temp {font-size:28px !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-now > div {padding-right:8px !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-facts > div:nth-child(1),body#royal-blue-app.community-view #content .wx-strip .wx-facts > div:nth-child(2) {padding-left:8px !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-facts dt {font-size:11px !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-facts dd {font-size:12px !important}
    body#royal-blue-app.community-view #content .wx-strip .wx-days li .wx-mm,body#royal-blue-app.community-view #content .wx-strip .wx-days li .wx-mm small {font-size:11.5px !important}
  }

  /* Dai mua 1 hang o <=400px (trang quan tri va trang nguoi dan): bo hai bieu tuong giot nuoc de "Mua 24 gio toi 1,4 mm" khong bi cat */
  @media (max-width: 400px) {
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain-head::before, body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain-head > em::before { display: none !important; }
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain-head > span { padding-left: 4px !important; font-size: 10.5px !important; }
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain-head > strong { padding-left: 3px !important; font-size: 10.5px !important; }
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-rain-head > em { padding-left: 10px !important; font-size: 10.5px !important; }
    body#royal-blue-app.community-view #content .wx-strip .wx-rain-head::before, body#royal-blue-app.community-view #content .wx-strip .wx-rain-head > em::before { display: none !important; }
    body#royal-blue-app.community-view #content .wx-strip .wx-rain-head > span { padding-left: 4px !important; font-size: 10.5px !important; }
    body#royal-blue-app.community-view #content .wx-strip .wx-rain-head > strong { padding-left: 3px !important; font-size: 10.5px !important; }
    body#royal-blue-app.community-view #content .wx-strip .wx-rain-head > em { padding-left: 10px !important; font-size: 10.5px !important; }
  }

  /* Trang nguoi dan (<=700px): ban do: "Canh bao" va nen ban do cung mot hang, hai chip bang nhau + nut dinh vi vuong 36px (nhu trang quan tri) */
  @media (max-width: 700px) {
    body#royal-blue-app.community-view #content #river-workspace .gis-lens {margin:-45px 0 17px !important;padding:0 !important;border:0 !important;background:transparent !important;box-shadow:none !important;height:36px !important;min-height:0 !important;width:calc(50% - 26px) !important;max-width:none !important}
    body#royal-blue-app.community-view #content #river-workspace .gis-lens .gis-lens-menu summary {box-sizing:border-box !important;height:36px !important;min-height:36px !important;padding:8px 10px !important;gap:7px !important;border:1px solid #cbdcff !important;border-radius:9px !important;background:#f2f7ff !important;color:#184fae !important;font-size:12px !important;font-weight:600 !important;white-space:nowrap !important}
    body#royal-blue-app.community-view #content #river-workspace .gis-lens .gis-lens-current {font-size:12px !important;font-weight:600 !important;white-space:nowrap !important}
    body#royal-blue-app.community-view #content #river-workspace .map-topbar .gis-control-row {flex:0 0 auto !important;width:calc(50% + 18px) !important;margin:0 0 0 auto !important}
    body#royal-blue-app.community-view #content #river-workspace .map-topbar .gis-basemap-toolbar {justify-content:flex-start !important;width:100% !important;gap:8px !important}
    body#royal-blue-app.community-view #content #river-workspace .map-topbar .map-basemap-select {flex:1 1 0 !important;width:auto !important;min-width:0 !important}
    body#royal-blue-app.community-view #content #river-workspace .map-topbar .map-basemap-select summary,body#royal-blue-app.community-view #content #river-workspace .gis-lens .gis-lens-menu summary {width:100% !important;justify-content:center !important}
    body#royal-blue-app.community-view #content #river-workspace .gis-lens .gis-lens-menu {flex:1 1 auto !important;width:100% !important;min-width:0 !important}
    body#royal-blue-app.community-view #content #river-workspace .map-topbar #map-fullscreen {flex:none !important;width:36px !important;height:36px !important}
  }

  /* Chan the thoi tiet 1 hang (trang quan tri + trang nguoi dan): chi con ghi cong nguon (Open-Meteo, Meteocons) va gio cap nhat; bo cau mo ta mo hinh va dong "Da cu" lap lai gio */
  @media (max-width: 700px) {
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-foot { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap !important; text-align: center; font-size: 11px !important; line-height: 1.3 !important; }
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-foot .wx-foot-short, body#royal-blue-app:not(.community-view) #content .wx-strip .wx-foot .wx-old { display: none !important; }
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-foot .wx-foot-time { float: none !important; margin-left: 0 !important; }
    body#royal-blue-app.community-view #content .wx-strip .wx-foot { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap !important; text-align: center; font-size: 11px !important; line-height: 1.3 !important; }
    body#royal-blue-app.community-view #content .wx-strip .wx-foot .wx-foot-short, body#royal-blue-app.community-view #content .wx-strip .wx-foot .wx-old { display: none !important; }
    body#royal-blue-app.community-view #content .wx-strip .wx-foot .wx-foot-time { float: none !important; margin-left: 0 !important; }
  }

  @media (max-width: 340px) {
    body#royal-blue-app:not(.community-view) #content .wx-strip .wx-foot, body#royal-blue-app.community-view #content .wx-strip .wx-foot { font-size: 10px !important; letter-spacing: -.2px; }
  }

  /* Trang nguoi dan (<=700px) dot nang cap giao dien 23-10-2026: 9 y (nut ban do, KPI, thanh toa do, bang canh bao, cap nhat, dang ky tin, chan trang) */
  @media (max-width: 700px) {
    /* 1. Hai nut chon + nut toan man hinh cung cao 40px */
    body#royal-blue-app.community-view #content #river-workspace .map-topbar .gis-control-row {align-items:center !important;height:40px !important;min-height:0 !important}
    body#royal-blue-app.community-view #content #river-workspace .map-topbar .gis-basemap-toolbar {align-items:center !important;height:40px !important;min-height:0 !important}
    body#royal-blue-app.community-view #content #river-workspace .map-topbar .map-basemap-select,body#royal-blue-app.community-view #content #river-workspace .gis-lens .gis-lens-menu {display:block !important;height:40px !important;min-height:0 !important}
    body#royal-blue-app.community-view #content #river-workspace .gis-lens {height:40px !important;margin:-49px 0 13px !important}
    body#royal-blue-app.community-view #content #river-workspace .map-topbar .map-basemap-select summary,body#royal-blue-app.community-view #content #river-workspace .gis-lens .gis-lens-menu summary {display:flex !important;align-items:center !important;justify-content:center !important;box-sizing:border-box !important;height:40px !important;min-height:40px !important;margin:0 !important;padding:0 10px !important;gap:7px !important;border:1px solid #cbdcff !important;border-radius:12px !important;background:#f2f7ff !important;color:#184fae !important;font-size:12.5px !important;font-weight:600 !important;line-height:1 !important;white-space:nowrap !important;box-shadow:none !important}
    body#royal-blue-app.community-view #content #river-workspace .map-topbar #map-fullscreen {box-sizing:border-box !important;width:40px !important;min-width:40px !important;height:40px !important;min-height:40px !important;border:1px solid #cbdcff !important;border-radius:12px !important;background-color:#f2f7ff !important;box-shadow:none !important}

    /* 2. Ba o KPI "Thong tin quan trac": bieu tuong rieng o goc tren phai */
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span {padding-right:8px !important}
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span::after {content:"";position:absolute;top:8px;right:7px;width:22px;height:22px;border-radius:50%;background-color:color-mix(in srgb,var(--cv) 14%,#fff);background-position:center;background-repeat:no-repeat;background-size:13px 13px}
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span:nth-child(1)::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5fe0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0114 0C19 14.800 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.500' r='2.500'/%3E%3C/svg%3E")}
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span:nth-child(2) {--cv:#b45f06;background:#fff8ee;border-color:#f7e3c4}
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span:nth-child(2)::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45f06' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.500l9 16H3z'/%3E%3Cpath d='M12 10v4.500M12 17.500v.1'/%3E%3C/svg%3E")}
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span:nth-child(3)::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2358698a' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.500 9.500a2.600 2.600 0 115 .8c0 1.700-2.500 2-2.500 3.700M12 17.200v.1'/%3E%3C/svg%3E")}
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span:nth-child(3) {--cv:#58698a}

    /* 3. Thanh toa do phao mot dong */
    body#royal-blue-app.community-view .gis-location-bar {display:flex !important;flex-wrap:nowrap !important;align-items:center !important;justify-content:space-between !important;gap:8px !important;box-sizing:border-box !important;min-height:0 !important;height:44px !important;padding:0 10px !important;border:1px solid #dbe8f7 !important;border-radius:12px !important;background:#f3f8ff !important;overflow:hidden}
    body#royal-blue-app.community-view .gis-location-bar > div {display:flex !important;flex-wrap:nowrap !important;flex:1 1 auto !important;align-items:center !important;gap:6px !important;min-width:0 !important;margin:0 !important}
    body#royal-blue-app.community-view .gis-location-bar > div::before {content:"";flex:none;width:22px;height:22px;border-radius:50%;background:#e1edff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5fe0' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.200-7-11.500a7 7 0 0114 0C19 14.800 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.500' r='2.500'/%3E%3C/svg%3E") center / 13px 13px no-repeat}
    body#royal-blue-app.community-view .gis-location-bar .gis-coordinate-label,body#royal-blue-app.community-view .gis-location-bar small {display:none !important}
    body#royal-blue-app.community-view .gis-location-bar strong {min-width:0;margin:0 !important;font-size:clamp(10px,calc((100vw - 210px) / 14.7),12px) !important;line-height:1.2 !important;font-weight:700 !important;letter-spacing:-.1px;white-space:nowrap !important;font-variant-numeric:tabular-nums;color:#0f2d5e !important}
    body#royal-blue-app.community-view .gis-location-bar .gis-coordinate-state {flex:none;margin:0 !important;padding:2px 7px !important;border-radius:999px !important;font-size:10px !important;line-height:1.3 !important;font-weight:700 !important;white-space:nowrap !important}

    /* 4. Bo dong nguon ban do tren dien thoai (ghi cong OSM con o chan trang) */
    body#royal-blue-app.community-view .map-source-caption {display:none !important}

    /* 5. Bang doc diem: tieu de + huy hieu + hop canh bao ro rang */
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-point-heading {display:grid !important;grid-template-columns:36px minmax(0,1fr);align-items:center;column-gap:10px;margin:0 0 10px !important} /* 24-10-2026: gọn 2 dòng: tên điểm, giờ mẫu + tuổi mẫu trên một hàng */
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-heading-pin {display:grid !important;place-items:center;width:36px !important;height:36px !important;border-radius:11px !important;background:linear-gradient(145deg,#eaf3ff,#d5e6ff) !important;border:1px solid #c5dcfa !important;box-shadow:0 6px 12px -8px rgba(26,95,224,.6)}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-heading-pin svg {width:24px !important;height:24px !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-point-heading h3 {margin:0 !important;font-size:18px !important;line-height:1.2 !important;font-weight:800 !important;letter-spacing:-.3px;color:#0f2d5e !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-point-heading p {display:flex !important;flex-wrap:wrap;align-items:center;gap:2px 6px;margin:2px 0 0 !important;font-size:12px !important;line-height:1.35 !important;color:#4a6285 !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-sample-age {display:inline-block !important;width:fit-content;margin:0 !important;padding:0 7px !important;border-radius:999px;background:#eaf2ff;border:1px solid #d3e2fa;font-size:11px !important;font-weight:700 !important;color:#1754bc !important;white-space:nowrap}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-sample-age.is-stale {background:#fff4e0;border-color:#f2d39b;color:#8a5200 !important}
    /* "Mẫu gần nhất ·" is shortened to "Mẫu lúc" so the time and its age chip stay on one row on a phone */
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-point-heading p {font-size:0 !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-point-heading p nb-dt {font-size:12px;white-space:nowrap}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-point-heading p nb-dt::before {content:"Mẫu lúc "}
    /* the age chip sits on the row of the point name: two rows on every phone width */
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-point-heading > div {display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;grid-auto-rows:0;align-items:center;column-gap:8px;row-gap:0;min-width:0;overflow:hidden}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-point-heading p {display:contents !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-point-heading h3 {grid-row:1;grid-column:1;min-width:0}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-point-heading p .citizen-sample-age {grid-row:1;grid-column:2;justify-self:end}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-point-heading p nb-dt {grid-row:2;grid-column:1 / -1;margin-top:2px;color:#4a6285}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-reading-badges {display:flex !important;flex-wrap:wrap !important;align-items:center;gap:6px 8px !important;margin:0 0 10px !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-source-badge {display:inline-flex;align-items:center;min-height:30px;padding:0 12px !important;border-radius:999px !important;background:#eaf2ff !important;border:1px solid #cfe0fa !important;font-size:12px !important;font-weight:700 !important;color:#173d77 !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-point-status {display:inline-flex !important;align-items:center;min-height:30px;padding:0 14px !important;border-radius:999px !important;border:0 !important;background:var(--signal-ink,#c11f16) !important;box-shadow:0 6px 12px -8px var(--signal-ink,#c11f16) !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-point-status .citizen-lamp {display:none !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-point-status strong {font-size:13px !important;font-weight:800 !important;letter-spacing:.1px;color:#fff !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-groups {display:grid !important;gap:10px !important;margin:0 0 12px !important;padding:0 !important;list-style:none}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-group {--sg:var(--signal,#7c8ca6);--sk:var(--signal-ink,#4a5f80);position:relative;display:grid !important;grid-template-columns:44px minmax(0,1fr);align-items:start;column-gap:12px;padding:12px 12px 12px 14px !important;border:1px solid color-mix(in srgb,var(--sg) 32%,#fff) !important;border-left:6px solid var(--sg) !important;border-radius:14px !important;background:linear-gradient(100deg,color-mix(in srgb,var(--sg) 11%,#fff),color-mix(in srgb,var(--sg) 4%,#fff)) !important;box-shadow:0 8px 16px -12px color-mix(in srgb,var(--sk) 70%,transparent) !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-group .citizen-lamp {position:relative;display:grid !important;place-items:center;width:44px !important;height:44px !important;margin:0 !important;border-radius:13px !important;background:var(--sk) !important;border:0 !important;box-shadow:0 6px 12px -6px var(--sk) !important;animation:none !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-group .citizen-lamp i {display:none !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-group .citizen-lamp::before,body#royal-blue-app.community-view .citizen-reading-panel .citizen-group .citizen-lamp::after {content:none !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-group .citizen-lamp {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.500l9 16H3z'/%3E%3Cpath d='M12 10v4.500M12 17.500v.1'/%3E%3C/svg%3E") !important;background-repeat:no-repeat !important;background-position:center !important;background-size:26px 26px !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-group[data-alert-level="0"] .citizen-lamp {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.400' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.500l2.800 2.800L16.200 9.500'/%3E%3C/svg%3E") !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-group[data-alert-level="1"] .citizen-lamp {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.400' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.500M12 7.700v.1'/%3E%3C/svg%3E") !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-group[data-alert-level="4"] .citizen-lamp {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.200 3h7.600L21 8.200v7.600L15.800 21H8.200L3 15.800V8.200z'/%3E%3Cpath d='M12 7.500v5.500M12 16.500v.1'/%3E%3C/svg%3E") !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-group > span:last-child {display:grid;gap:3px;min-width:0}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-group small {display:block;font-size:12px !important;line-height:1.4 !important;font-weight:600 !important;color:#3b4f6b !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-group strong {display:block;font-size:16px !important;line-height:1.25 !important;font-weight:800 !important;letter-spacing:-.1px;color:var(--sk) !important}
    body#royal-blue-app.community-view .citizen-reading-panel .citizen-group em {display:block;font-style:normal;font-size:13px !important;line-height:1.45 !important;font-weight:500 !important;color:#1c2f4d !important}

    /* 6. Cap nhat quan trac: the dong co vach mau theo muc */
    body#royal-blue-app.community-view #citizen-updates {display:grid !important;gap:8px !important}
    body#royal-blue-app.community-view #citizen-updates > h2 {margin:0 0 2px !important}
    body#royal-blue-app.community-view #citizen-updates .citizen-update {--ul:#7c8ca6;--uk:#4a5f80;position:relative;display:grid !important;grid-template-columns:48px minmax(0,1fr) 18px;grid-template-areas:"t s a" "c m a";align-items:start;column-gap:11px;row-gap:4px;width:100%;box-sizing:border-box;min-height:64px;margin:0 !important;padding:11px 12px 11px 14px !important;text-align:left;border:1px solid #dbe8f7 !important;border-left:5px solid var(--ul) !important;border-radius:14px !important;background:#fff !important;box-shadow:0 6px 14px -12px rgba(19,56,88,.55) !important;transition:transform .12s ease,background-color .12s ease,box-shadow .12s ease;-webkit-tap-highlight-color:transparent}
    body#royal-blue-app.community-view #citizen-updates .citizen-update:has([data-level="0"]) {--ul:#16a34a;--uk:#0b7a3b}
    body#royal-blue-app.community-view #citizen-updates .citizen-update:has([data-level="1"]) {--ul:#eab308;--uk:#7a5800}
    body#royal-blue-app.community-view #citizen-updates .citizen-update:has([data-level="2"]) {--ul:#ff7a1a;--uk:#b34700}
    body#royal-blue-app.community-view #citizen-updates .citizen-update:has([data-level="3"]) {--ul:#e5251b;--uk:#bf1a12}
    body#royal-blue-app.community-view #citizen-updates .citizen-update:has([data-level="4"]) {--ul:#8b0024;--uk:#7e0023}
    body#royal-blue-app.community-view #citizen-updates .citizen-update:active {transform:scale(.985);background:#f3f8ff !important;box-shadow:none !important}
    body#royal-blue-app.community-view #citizen-updates .citizen-update:focus-visible {outline:3px solid #aac8ff !important;outline-offset:2px}
    body#royal-blue-app.community-view #citizen-updates .citizen-update-time {grid-area:t;display:grid !important;place-items:center;box-sizing:border-box;width:48px;margin:1px 0 0 !important;padding:4px 0 !important;white-space:nowrap;border-radius:999px !important;background:color-mix(in srgb,var(--ul) 14%,#fff) !important;border:1px solid color-mix(in srgb,var(--ul) 35%,#fff) !important;font-size:12px !important;line-height:1.2 !important;font-weight:800 !important;font-variant-numeric:tabular-nums;color:var(--uk) !important}
    body#royal-blue-app.community-view #citizen-updates .citizen-update > span:nth-child(2) {display:contents !important}
    body#royal-blue-app.community-view #citizen-updates .citizen-update strong {grid-area:s;min-width:0;font-size:13.5px !important;line-height:1.3 !important;font-weight:800 !important;color:#0f2d5e !important}
    body#royal-blue-app.community-view #citizen-updates .citizen-update small {grid-area:m;min-width:0;font-size:12px !important;line-height:1.4 !important;font-weight:500 !important;color:#4a6285 !important}
    body#royal-blue-app.community-view #citizen-updates .citizen-update .ab-pair {grid-area:c;align-self:start;display:flex !important;width:48px;margin:0 !important;padding:0 !important}
    body#royal-blue-app.community-view #citizen-updates .citizen-update :is(.ab-split,.ab-half) {display:flex !important;flex:1 1 auto;width:100%;margin:0 !important;padding:0 !important;border:0 !important;background:transparent !important}
    body#royal-blue-app.community-view #citizen-updates .citizen-update .ab-half b {display:inline-flex !important;align-items:center;justify-content:center;box-sizing:border-box;width:100%;padding:3px 0 !important;border-radius:999px !important;background:var(--lv) !important;color:var(--on,#fff) !important;font-size:12.5px !important;line-height:1.3 !important;font-weight:800 !important;letter-spacing:.2px;box-shadow:0 4px 8px -5px var(--lv)}
    body#royal-blue-app.community-view #citizen-updates .citizen-update > svg {grid-area:a;align-self:center;justify-self:center;width:18px !important;height:18px !important;color:#8aa4c8 !important}

    /* 7. Dang ky nhan tin: the can doi, chuong trong vong toa, nut day chieu rong */
    body#royal-blue-app.community-view #citizen-subscribe {display:grid !important;justify-items:center;gap:10px;padding:20px 16px 18px !important;border:1px solid #d3e2fa !important;border-radius:18px !important;background:radial-gradient(120% 90% at 50% 0%,#e3eeff 0%,#f3f8ff 45%,#fff 100%) !important;box-shadow:0 14px 28px -22px rgba(26,95,224,.6) !important;text-align:center}
    body#royal-blue-app.community-view #citizen-subscribe > h2 {display:grid !important;justify-items:center;gap:12px;margin:0 !important;font-size:16.5px !important;line-height:1.3 !important;font-weight:800 !important;text-wrap:balance;color:#0f2d5e !important}
    body#royal-blue-app.community-view #citizen-subscribe > h2 svg {box-sizing:content-box !important;width:26px !important;height:26px !important;padding:14px;border-radius:50%;background:linear-gradient(145deg,#4d97ff,#0862ff 60%,#0a54d8);color:#fff !important;stroke:#fff !important;box-shadow:0 0 0 6px rgba(26,95,224,.1),0 10px 18px -8px rgba(8,98,255,.8)}
    body#royal-blue-app.community-view #citizen-subscribe > p {max-width:34em;margin:0 !important;font-size:12.5px !important;line-height:1.55 !important;text-wrap:pretty;color:#4a6285 !important}
    body#royal-blue-app.community-view #citizen-subscribe #citizen-subscribe-box {width:100%}
    body#royal-blue-app.community-view #citizen-subscribe .citizen-subscribe-open {display:flex !important;align-items:center;justify-content:center;gap:9px;box-sizing:border-box;width:100% !important;min-height:48px;margin:0 !important;padding:0 18px !important;border:0 !important;border-radius:14px !important;background:linear-gradient(145deg,#3b8bff,#0862ff 58%,#0a54d8) !important;color:#fff !important;font-size:15px !important;font-weight:800 !important;letter-spacing:.1px;box-shadow:0 2px 4px rgba(8,98,255,.35),0 12px 20px -10px rgba(8,98,255,.85) !important;transition:transform .12s ease,filter .12s ease;-webkit-tap-highlight-color:transparent}
    body#royal-blue-app.community-view #citizen-subscribe .citizen-subscribe-open::before {content:"";flex:none;width:20px;height:20px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M3.500 7.500l8.500 6 8.500-6'/%3E%3C/svg%3E") center / contain no-repeat}
    body#royal-blue-app.community-view #citizen-subscribe .citizen-subscribe-open:active {transform:scale(.98);filter:brightness(.94)}
    body#royal-blue-app.community-view #citizen-subscribe .citizen-subscribe-open:focus-visible {outline:3px solid #aac8ff !important;outline-offset:3px}

    /* 7b. Phan anh nguon nuoc (24-10-2026): cung kieu the "Dang ky nhan tin" (bieu tuong trong vong toa, chu can giua, nut day chieu rong); form mo ra thi can trai */
    body#royal-blue-app.community-view #citizen-complaint {display:grid !important;justify-items:center;gap:10px;padding:20px 16px 18px !important;border:1px solid #d3e2fa !important;border-radius:18px !important;background:radial-gradient(120% 90% at 50% 0%,#e3eeff 0%,#f3f8ff 45%,#fff 100%) !important;box-shadow:0 14px 28px -22px rgba(26,95,224,.6) !important;text-align:center}
    body#royal-blue-app.community-view #citizen-complaint > h2 {display:grid !important;justify-items:center;gap:12px;margin:0 !important;font-size:16.5px !important;line-height:1.3 !important;font-weight:800 !important;text-wrap:balance;color:#0f2d5e !important}
    body#royal-blue-app.community-view #citizen-complaint > h2 svg {box-sizing:content-box !important;width:26px !important;height:26px !important;padding:14px;border-radius:50%;background:linear-gradient(145deg,#4d97ff,#0862ff 60%,#0a54d8);color:#fff !important;stroke:#fff !important;box-shadow:0 0 0 6px rgba(26,95,224,.1),0 10px 18px -8px rgba(8,98,255,.8)}
    body#royal-blue-app.community-view #citizen-complaint > p {max-width:34em;margin:0 !important;font-size:12.5px !important;line-height:1.55 !important;text-wrap:pretty;color:#4a6285 !important}
    body#royal-blue-app.community-view #citizen-complaint #citizen-complaint-box {width:100%;min-width:0;text-align:left}
    body#royal-blue-app.community-view #citizen-complaint .citizen-subscribe-open {display:flex !important;align-items:center;justify-content:center;gap:9px;box-sizing:border-box;width:100% !important;min-height:48px;margin:0 !important;padding:0 18px !important;border:0 !important;border-radius:14px !important;background:linear-gradient(145deg,#3b8bff,#0862ff 58%,#0a54d8) !important;color:#fff !important;font-size:15px !important;font-weight:800 !important;letter-spacing:.1px;box-shadow:0 2px 4px rgba(8,98,255,.35),0 12px 20px -10px rgba(8,98,255,.85) !important;transition:transform .12s ease,filter .12s ease;-webkit-tap-highlight-color:transparent}
    body#royal-blue-app.community-view #citizen-complaint .citizen-subscribe-open::before {content:"";flex:none;width:20px;height:20px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 3 10 14'/%3E%3Cpath d='M21 3l-7 18-4-7-7-4z'/%3E%3C/svg%3E") center / contain no-repeat}
    body#royal-blue-app.community-view #citizen-complaint .citizen-subscribe-open:active {transform:scale(.98);filter:brightness(.94)}
    body#royal-blue-app.community-view #citizen-complaint .citizen-subscribe-open:focus-visible {outline:3px solid #aac8ff !important;outline-offset:3px}
    body#royal-blue-app.community-view #citizen-complaint #citizen-complaint-box > .sub-note {text-align:center}
    /* 7c. Thao tac nhanh duoi hai the (24-10-2026): luoi 2 cot, nut cao 44px de cham; nut le cuoi chiem ca hang */
    body#royal-blue-app.community-view :is(#citizen-complaint,#citizen-subscribe) .cz-quick {display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin:2px 0 0 !important}
    body#royal-blue-app.community-view :is(#citizen-complaint,#citizen-subscribe) .cz-q {justify-content:center;box-sizing:border-box;min-width:0;min-height:44px;padding:6px 10px !important;border:1px solid #cfe0fb !important;border-radius:12px !important;background:#fff !important;color:#174a9c !important;font-size:12.5px !important;line-height:1.25 !important;font-weight:700 !important;text-align:center;box-shadow:0 6px 12px -10px rgba(26,95,224,.6);-webkit-tap-highlight-color:transparent;transition:transform .12s ease,background .12s ease}
    body#royal-blue-app.community-view :is(#citizen-complaint,#citizen-subscribe) .cz-q span {min-width:0;overflow-wrap:anywhere}
    body#royal-blue-app.community-view :is(#citizen-complaint,#citizen-subscribe) .cz-q:active {transform:scale(.97);background:#eaf2ff !important}
    body#royal-blue-app.community-view :is(#citizen-complaint,#citizen-subscribe) .cz-q:last-child:nth-child(odd) {grid-column:1 / -1}
    body#royal-blue-app.community-view #citizen-complaint .cz-q svg {color:#d97706 !important}
    body#royal-blue-app.community-view :is(#citizen-complaint,#citizen-subscribe).is-open .cz-quick {display:none !important}

    /* 8. Chan trang nguoi dan: toi gian, phang, mot duong ke tren */
    :root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer.citizen-footer-expanded {display:block !important;position:static !important;overflow:visible !important;margin:18px 0 0 !important;padding:18px 4px 18px !important;border:0 !important;border-top:1px solid #e3ebf6 !important;border-radius:0 !important;background:#f6f9fe !important;box-shadow:none !important;text-align:left}
    :root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer::before,:root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer::after {content:none !important;display:none !important}
    :root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer .citizen-footer-identity {display:grid !important;grid-template-columns:36px minmax(0,1fr) !important;column-gap:12px !important;row-gap:1px !important;align-items:start !important;margin:0 0 6px !important;padding:0 !important;border:0 !important}
    :root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer .citizen-footer-identity::before {content:"" !important;grid-row:1 / span 3;align-self:start;width:36px !important;height:36px !important;border-radius:10px !important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5fe0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2s4.500 4.600 4.500 7.800a4.500 4.500 0 11-9 0C7.500 6.600 12 2 12 2z' fill='%231a5fe0' fill-opacity='.14'/%3E%3Cpath d='M3.500 17.200c1.700-1.500 3.400-1.500 5.100 0s3.400 1.500 5.100 0 3.400-1.500 5.100 0'/%3E%3Cpath d='M3.500 21c1.700-1.500 3.400-1.500 5.100 0s3.400 1.500 5.100 0 3.400-1.500 5.100 0' stroke-opacity='.55'/%3E%3C/svg%3E") center / 24px 24px no-repeat,#eaf2ff !important;box-shadow:none !important}
    :root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer .citizen-footer-identity strong {font-size:15px !important;line-height:1.3 !important;font-weight:800 !important;letter-spacing:.3px;color:#0f2d5e !important}
    :root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer .citizen-footer-identity p {margin:0 !important;padding:0 !important;font-size:12.5px !important;line-height:1.4 !important;color:#566f8f !important}
    :root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer .citizen-footer-identity p:last-child {width:auto !important;margin-top:2px !important;border:0 !important;border-radius:0 !important;background:none !important;font-size:11.5px !important;font-weight:400 !important;color:#6b819d !important}
    :root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer .citizen-footer-links {display:flex !important;flex-wrap:wrap;justify-content:center;align-items:center;gap:0 28px !important;margin:0 !important;padding:0 !important;border:0 !important}
    :root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer .citizen-footer-links button {display:inline-flex !important;align-items:center;justify-content:center;box-sizing:border-box;width:auto !important;height:auto !important;min-height:44px !important;margin:0 !important;padding:0 2px !important;border:0 !important;border-radius:0 !important;background:none !important;box-shadow:none !important;font-size:13px !important;line-height:1.3 !important;font-weight:600 !important;white-space:nowrap !important;text-align:center;color:#1754bc !important;text-decoration:underline;text-decoration-color:#b4cdf6;text-underline-offset:4px;-webkit-tap-highlight-color:transparent}
    :root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer .citizen-footer-links button::before,:root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer .citizen-footer-links button::after {content:none !important;display:none !important}
    :root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer .citizen-footer-links button:active {opacity:.6}
    :root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer .citizen-footer-links button:focus-visible {outline:3px solid #aac8ff !important;outline-offset:2px}
    :root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer .citizen-footer-credits {display:block !important;margin:2px 0 0 !important;padding:8px 0 0 !important;border:0 !important;border-top:1px solid #e3ebf6 !important;text-align:center;font-size:11px !important;line-height:1.55 !important;color:#6b819d !important}
    :root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer .citizen-footer-credits > * {display:inline !important;flex:none !important;min-height:0 !important;margin:0 !important;padding:0 !important;border:0 !important;background:none !important;font-size:11px !important;font-weight:400 !important;line-height:1.6 !important;color:#6b819d !important}
    :root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer .citizen-footer-credits > span:first-child {display:block !important}
    :root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer .citizen-footer-credits > a,:root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer .citizen-footer-credits > span:last-child {display:block !important}
    :root body#royal-blue-app.community-view .citizen-dashboard footer.citizen-footer .citizen-footer-credits a {color:#3b6fc4 !important;font-weight:400 !important;text-decoration:underline;text-decoration-color:#c6d8f4;text-underline-offset:2px}

    /* 9. Chan trang toan cuc trung y "Thiet ke boi": an tren trang nguoi dan (chi con mot cho o chan trang tren) */
    body#royal-blue-app.community-view .workspace > footer {display:none !important}
  }

  @media (max-width: 340px) {
    body#royal-blue-app.community-view .gis-location-bar {gap:5px !important;padding:0 7px !important}
    body#royal-blue-app.community-view .gis-location-bar > div {gap:5px !important}
    body#royal-blue-app.community-view .gis-location-bar > div::before {width:18px;height:18px;background-size:11px 11px}
    body#royal-blue-app.community-view .gis-location-bar strong {font-size:9.6px !important;letter-spacing:-.3px}
    body#royal-blue-app.community-view .gis-location-bar .gis-coordinate-state {padding:2px 5px !important;font-size:9px !important}
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span::after {top:6px;right:5px;width:18px;height:18px;background-size:11px 11px}
    body#royal-blue-app.community-view #citizen-updates .citizen-update {grid-template-columns:44px minmax(0,1fr) 16px;column-gap:8px;padding-left:10px !important}
    body#royal-blue-app.community-view #citizen-updates .citizen-update-time {width:44px;padding:3px 0 !important;font-size:11px !important}
    body#royal-blue-app.community-view #citizen-updates .citizen-update .ab-pair {width:44px}
  }

  @media (prefers-reduced-motion: no-preference) and (max-width: 700px) {
    body#royal-blue-app.community-view #citizen-subscribe > h2 svg {animation:cz-bell-ring 2.6s ease-out infinite}
    @keyframes cz-bell-ring {
      0% {box-shadow:0 0 0 0 rgba(26,95,224,.32),0 10px 18px -8px rgba(8,98,255,.8)}
      70%,100% {box-shadow:0 0 0 16px rgba(26,95,224,0),0 10px 18px -8px rgba(8,98,255,.8)}
    }
  }

  /* 10. Header trang nguoi dan (<=700px): bo nut tim kiem; mot hang 56px, logo + ten ben trai, nut "Can bo" ben phai */
  @media (max-width: 700px) {
    body#royal-blue-app.community-view header.citizen-header .citizen-header-search {display:none !important}
    body#royal-blue-app.community-view header.citizen-header .citizen-header-inner {display:flex !important;flex-wrap:nowrap !important;align-items:center !important;box-sizing:border-box !important;height:56px !important;min-height:56px !important;max-height:56px !important;padding:0 10px 0 12px !important;gap:8px !important;overflow:hidden}
    body#royal-blue-app.community-view header.citizen-header .citizen-brand {flex:1 1 0 !important;min-width:0 !important}
    body#royal-blue-app.community-view header.citizen-header .citizen-brand > div {min-width:0 !important;overflow:hidden}
    body#royal-blue-app.community-view header.citizen-header .citizen-brand strong {display:block;overflow:hidden;text-overflow:clip;white-space:nowrap !important}
    body#royal-blue-app.community-view header.citizen-header .citizen-brand small {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap !important}
    body#royal-blue-app.community-view header.citizen-header .citizen-staff {flex:none !important;min-height:40px !important}
  }

  /* 14. Cong dang nhap can bo (<=700px): the dang nhap len tren, nut dang nhap nam trong man hinh dau */
  @media (max-width: 700px) {
    body#royal-blue-app .staff-entry {min-height:0 !important;padding:8px 16px 16px !important}
    body#royal-blue-app .staff-entry-brand {gap:10px !important;min-height:56px;align-items:center}
    body#royal-blue-app .staff-entry-brand img {width:36px !important;height:36px !important}
    body#royal-blue-app .staff-entry-brand strong {font-size:15px !important;line-height:1.2 !important;color:#0f2d5e}
    body#royal-blue-app .staff-entry-brand span {font-size:11.5px !important;line-height:1.3 !important;color:#42587a !important}
    body#royal-blue-app .staff-entry-grid {display:flex !important;flex-direction:column !important;gap:14px !important;padding:6px 0 12px !important;flex:none !important}
    body#royal-blue-app .staff-entry-card {order:-1;display:grid !important;grid-template-columns:44px minmax(0,1fr);column-gap:12px;align-items:center;padding:16px !important;border-radius:16px !important;box-shadow:0 14px 30px -18px rgba(20,60,140,.55) !important}
    body#royal-blue-app .staff-entry-shield {width:44px !important;height:44px !important;margin:0 !important;border-radius:13px !important}
    body#royal-blue-app .staff-entry-shield svg {width:24px;height:24px}
    body#royal-blue-app .staff-entry-card h2 {margin:0 !important;font-size:19px !important;line-height:1.25 !important;text-wrap:balance;color:#0f2d5e !important}
    body#royal-blue-app .staff-entry-card p {grid-column:1 / -1;margin:10px 0 12px !important;font-size:13px !important;line-height:1.5 !important;color:#3f5578 !important}
    body#royal-blue-app .staff-entry-card .btn {grid-column:1 / -1;min-height:48px !important;padding:0 14px !important;font-size:15px !important;border-radius:12px !important}
    body#royal-blue-app .staff-entry-public {grid-column:1 / -1;min-height:44px !important;margin:2px 0 0 !important;font-size:13px !important;font-weight:600;color:#1754bc !important}
    body#royal-blue-app .staff-entry-account-note {grid-column:1 / -1;margin:2px 0 0 !important;padding-top:10px !important;font-size:11.5px !important;line-height:1.4 !important;color:#4a6285 !important}
    body#royal-blue-app .staff-entry-intro {padding:14px !important;border-radius:14px;background:rgba(255,255,255,.78)}
    body#royal-blue-app .staff-entry-eyebrow {font-size:10.5px !important;color:#1f56c8 !important}
    body#royal-blue-app .staff-entry-intro h1 {margin:6px 0 8px !important;font-size:22px !important;line-height:1.3 !important;letter-spacing:-.4px !important}
    body#royal-blue-app .staff-entry-intro > p {max-width:none !important;margin:0 !important;font-size:13px !important;line-height:1.55 !important;color:#3f5578 !important}
    body#royal-blue-app .staff-entry-features {gap:10px !important;margin-top:12px !important}
    body#royal-blue-app .staff-entry-features > div {gap:10px !important;align-items:center !important}
    body#royal-blue-app .staff-entry-features svg {margin-top:0 !important;width:20px;height:20px}
    body#royal-blue-app .staff-entry-features strong {font-size:13px !important}
    body#royal-blue-app .staff-entry-features small {font-size:11.5px !important;line-height:1.35 !important;color:#4a6285 !important}
    body#royal-blue-app .staff-entry-footer {padding:12px 0 0 !important;font-size:11px !important}
  }

  /* 15. Thanh dieu huong/tran trinh duyet an hien (<=700px): tach lop ghep rieng cho phan tu co dinh, chieu cao theo khung nho (svh), vung an toan phia duoi */
  @media (max-width: 700px) {
    body#royal-blue-app .bottom-nav {transform:translate3d(0,0,0) !important;backface-visibility:hidden !important;will-change:transform !important;contain:layout style !important;background-clip:padding-box}
    body#royal-blue-app .live-update-notice,body#royal-blue-app #toast {backface-visibility:hidden !important;will-change:transform !important}
    body#royal-blue-app .topbar,body#royal-blue-app header.citizen-header {backface-visibility:hidden !important}
    html {scroll-padding-bottom:calc(84px + env(safe-area-inset-bottom,0px)) !important}
    body#royal-blue-app:not(.community-view) [id],body#royal-blue-app.community-view [id] {scroll-margin-bottom:12px}
  }
  @supports (height: 1svh) {
    @media (max-width: 700px) {
      body#royal-blue-app .workspace,:root body.observatory-interface .workspace {min-height:100svh !important}
    }
  }


  /* ---------- Small phones: iPhone X / SE and below (≤ 375 px, also a 375 px phone with Safari's larger text) (24-10-2026) ----------
     Text that ran out of its button or chip at 320–375 px: brand, eyebrow, the three figures, weather days, map colour panel, timeline chips,
     coordinate chip. The id twice outranks the older phone rules above. */
  @media (max-width: 375px) {
    :root body#royal-blue-app#royal-blue-app .citizen-header-inner {gap:8px !important;padding-left:10px !important;padding-right:10px !important}
    :root body#royal-blue-app#royal-blue-app .citizen-brand {gap:6px !important;min-width:0 !important;flex:1 1 auto !important}
    :root body#royal-blue-app#royal-blue-app .citizen-brand > span {width:32px !important;height:28px !important;flex:none !important}
    :root body#royal-blue-app#royal-blue-app .citizen-brand > div {min-width:0 !important}
    :root body#royal-blue-app#royal-blue-app .citizen-brand strong {font-size:14.5px !important;letter-spacing:-.2px !important;white-space:nowrap !important}
    :root body#royal-blue-app#royal-blue-app .citizen-brand small {font-size:9.5px !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important}
    :root body#royal-blue-app#royal-blue-app .citizen-sub-quick {width:36px !important;height:36px !important;min-height:36px !important}
    :root body#royal-blue-app#royal-blue-app .citizen-staff {height:36px !important;min-height:36px !important;padding:0 9px !important;gap:4px !important;font-size:12px !important}
    :root body#royal-blue-app#royal-blue-app .citizen-staff svg {width:13px !important;height:13px !important}
    :root body#royal-blue-app#royal-blue-app .coastal-copy .citizen-location {font-size:10.5px !important;letter-spacing:.04em !important}
    :root body#royal-blue-app#royal-blue-app .coastal-kpis {gap:6px !important}
    :root body#royal-blue-app#royal-blue-app .coastal-kpis span {min-width:0 !important;padding:6px 7px !important;gap:4px !important;font-size:10.5px !important;white-space:nowrap !important;justify-content:center !important}
    :root body#royal-blue-app#royal-blue-app .coastal-kpis span i {display:none !important}
    :root body#royal-blue-app#royal-blue-app .coastal-kpis span b {font-size:17px !important}
    :root body#royal-blue-app#royal-blue-app .wx-range {font-size:12.5px !important;white-space:nowrap !important}
    :root body#royal-blue-app#royal-blue-app .wx-range small {font-size:11px !important}
    :root body#royal-blue-app#royal-blue-app .river-quality-switches button {padding:0 6px !important;font-size:10.5px !important}
    :root body#royal-blue-app#royal-blue-app .river-quality-scale {display:flex !important;align-items:center !important;font-size:10px !important;gap:5px !important;white-space:nowrap !important}
    :root body#royal-blue-app#royal-blue-app .river-quality-scale > i {flex:0 0 20px !important;width:20px !important;min-width:0 !important}
    :root body#royal-blue-app#royal-blue-app .wx-range {letter-spacing:-.3px !important}
    :root body#royal-blue-app#royal-blue-app .map-floating-tools .ptl .ptl-strip {gap:3px !important}
    :root body#royal-blue-app#royal-blue-app .map-floating-tools .ptl .ptl-strip button {padding:0 5px !important;font-size:10.5px !important}
    :root body#royal-blue-app#royal-blue-app .gis-location-bar .gis-coordinate-state {display:none !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .analysis-trend .chart-parameters button {padding:0 4px !important;gap:4px !important;font-size:12px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .analysis-trend .chart-parameters button svg {width:14px !important;height:14px !important;flex:none !important}
  }

  /* 24-10-2026 · Hướng dẫn (#help), Cách đọc số liệu (#guide) và Đối chiếu toàn tuyến (#overview) trên điện thoại:
     dải nhảy mục cuộn ngang (không bẻ chữ dọc), thẻ gọn dạng hàng, màu mức C0–C4 ở viền thẻ, trạng thái lên đầu thẻ điểm. */
  @media (max-width: 700px) {
    /* --- chung cho hai trang hỗ trợ --- */
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-page {gap:14px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-page :is(.hc-section,.hc-block)[id] {scroll-margin-top:118px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content :is(.hc-jump,.hc-suggest) {flex-wrap:nowrap !important;overflow-x:auto !important;overscroll-behavior-x:contain !important;scrollbar-width:none !important;scroll-snap-type:x proximity !important;margin-left:-12px !important;margin-right:-12px !important;padding:2px 12px 4px !important;gap:8px !important;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent) !important;mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent) !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content :is(.hc-jump,.hc-suggest)::-webkit-scrollbar {display:none !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content :is(.hc-jump,.hc-suggest) > * {flex:none !important;white-space:nowrap !important;scroll-snap-align:start !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content :is(.hc-jump,.hc-suggest) .hc-chip {display:inline-flex !important;align-items:center !important;width:auto !important;min-height:40px !important;padding:0 14px !important;border-radius:999px !important;font-size:13.5px !important;line-height:1 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-suggest > span {font-size:12.5px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-jump {position:sticky !important;top:var(--hc-sticky-top,56px) !important;z-index:6 !important;padding-top:8px !important;padding-bottom:8px !important;background:linear-gradient(#f4f8fe 78%,rgba(244,248,254,0)) !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-jump .hc-chip {background:#fff !important;border:1px solid #cfe0fa !important;color:#1f4f9e !important;font-weight:700 !important;box-shadow:0 1px 2px rgba(19,56,88,.06) !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-head .head-actions .btn {min-height:44px !important}

    /* --- Hướng dẫn: tìm kiếm, vai trò, việc nhanh, thẻ chức năng --- */
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-hero {padding:14px !important;gap:10px !important;border-radius:16px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-search input {min-height:48px !important;font-size:16px !important;text-overflow:ellipsis !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-role {padding:14px !important;gap:12px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-role-main {gap:12px !important;align-items:flex-start !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-role-main p {font-size:13.5px !important;line-height:1.5 !important;margin:2px 0 0 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-avatar {width:40px !important;height:40px !important;flex:none !important;font-size:14px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-role-start {display:flex !important;flex-direction:column !important;align-items:stretch !important;gap:6px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-role-start > span {font-size:12px !important;font-weight:700 !important;text-transform:uppercase !important;letter-spacing:.04em !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-role-start .hc-chip {display:flex !important;align-items:center !important;justify-content:space-between !important;width:100% !important;min-height:44px !important;padding:8px 12px !important;border-radius:10px !important;font-size:14px !important;line-height:1.35 !important;text-align:left !important;white-space:normal !important;margin:0 !important;height:auto !important;max-height:none !important;overflow:visible !important;background:#f5f9ff !important;border:1px solid #dbe7fb !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-role-start .hc-chip::after {content:"›" !important;flex:none !important;margin-left:10px !important;font-size:20px !important;line-height:1 !important;color:#7a93b8 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content :is(.hc-section > h2,.hc-section-head h2) {font-size:18px !important;margin:0 0 10px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-quick {display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-task {display:flex !important;margin:0 !important;height:auto !important;max-height:none !important;flex-direction:column !important;align-items:flex-start !important;justify-content:flex-start !important;gap:8px !important;min-height:84px !important;padding:12px !important;border-radius:12px !important;font-size:13.5px !important;line-height:1.35 !important;font-weight:700 !important;background:#fff !important;border:1px solid #dbe7fb !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-task svg {width:20px !important;height:20px !important;padding:7px !important;box-sizing:content-box !important;min-width:20px !important;min-height:20px !important;flex:none !important;border-radius:10px !important;background:#eaf2ff !important;color:#175adb !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-section-head {display:grid !important;gap:6px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-switch {min-height:44px !important;align-items:center !important;font-size:13.5px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-category {margin-top:14px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-category h3 {display:grid !important;grid-template-columns:auto minmax(0,1fr) !important;align-items:center !important;column-gap:10px !important;row-gap:2px !important;margin:0 0 8px !important;font-size:15.5px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-category h3 small {grid-column:2 !important;font-size:12.5px !important;font-weight:400 !important;line-height:1.4 !important;margin:0 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-grid {display:grid !important;grid-template-columns:minmax(0,1fr) !important;gap:0 !important;border:1px solid #dbe7fb !important;border-radius:14px !important;background:#fff !important;overflow:hidden !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-card {display:grid !important;margin:0 !important;height:auto !important;max-height:none !important;overflow:visible !important;grid-template-columns:40px minmax(0,1fr) 16px !important;grid-template-areas:"ico body arrow" "ico aud arrow" !important;align-items:center !important;gap:2px 12px !important;min-height:64px !important;padding:12px !important;border:0 !important;border-top:1px solid #edf2fa !important;border-radius:0 !important;box-shadow:none !important;transform:none !important;background:#fff !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-grid > .hc-card:first-child {border-top:0 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-card:active {background:#f2f7ff !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-card-icon {grid-area:ico !important;align-self:start !important;width:40px !important;height:40px !important;border-radius:11px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-card-icon svg {width:20px !important;height:20px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-card-body {grid-area:body !important;gap:2px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-card-body strong {font-size:14.5px !important;line-height:1.35 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-card-body small {font-size:12.5px !important;line-height:1.45 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-card-foot {display:contents !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-card-foot .hc-aud {grid-area:aud !important;font-size:11.5px !important;color:#7a8ca5 !important;font-weight:600 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-card-foot > svg {grid-area:arrow !important;width:16px !important;height:16px !important;color:#9aabc2 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-readcta {display:grid !important;gap:10px !important;padding:16px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content :is(.hc-readcta,.hc-next) .btn {width:100% !important;min-height:46px !important;justify-content:center !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-faqlist {gap:6px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-faqlist summary {min-height:48px !important;padding:12px 14px !important;font-size:14.5px !important;line-height:1.4 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-gloss {display:grid !important;grid-template-columns:minmax(0,1fr) !important;gap:0 !important;border:1px solid #dbe7fb !important;border-radius:14px !important;background:#fff !important;overflow:hidden !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-gloss > div {padding:10px 14px !important;border:0 !important;border-top:1px solid #edf2fa !important;border-radius:0 !important;background:none !important;box-shadow:none !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-gloss > div:first-child {border-top:0 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-gloss dt {font-size:14.5px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-gloss dd {margin:2px 0 0 !important;font-size:13.5px !important;line-height:1.5 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-contact .hc-actions .btn {width:100% !important;min-height:46px !important;justify-content:center !important}

    /* --- Cách đọc số liệu --- */
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-block {padding:16px 14px !important;border-radius:16px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-block > h2 {font-size:18px !important;line-height:1.3 !important;margin:0 0 6px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-lead {font-size:14px !important;line-height:1.5 !important;margin:0 0 12px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-levels {gap:8px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-level {--hl:var(--lv-unknown) !important;--hl-soft:var(--lv-unknown-soft) !important;--hl-ink:var(--lv-unknown-ink) !important;gap:12px !important;padding:12px 12px 12px 10px !important;border:1px solid #e3eaf5 !important;border-left:5px solid var(--hl) !important;border-radius:12px !important;background:linear-gradient(90deg,var(--hl-soft),#fff 70%) !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-level[data-level="0"] {--hl:var(--lv0) !important;--hl-soft:var(--lv0-soft) !important;--hl-ink:var(--lv0-ink) !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-level[data-level="1"] {--hl:var(--lv1) !important;--hl-soft:var(--lv1-soft) !important;--hl-ink:var(--lv1-ink) !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-level[data-level="2"] {--hl:var(--lv2) !important;--hl-soft:var(--lv2-soft) !important;--hl-ink:var(--lv2-ink) !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-level[data-level="3"] {--hl:var(--lv3) !important;--hl-soft:var(--lv3-soft) !important;--hl-ink:var(--lv3-ink) !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-level[data-level="4"] {--hl:var(--lv4) !important;--hl-soft:var(--lv4-soft) !important;--hl-ink:var(--lv4-ink) !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-level-icon {width:40px !important;height:40px !important;border-radius:12px !important;background:#fff !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-level-icon svg {width:30px !important;height:30px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-level > div {gap:3px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-level strong {font-size:15.5px !important;color:var(--hl-ink) !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-level p {margin:0 !important;font-size:14px !important;line-height:1.5 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-level .hc-do {margin-top:4px !important;padding:7px 10px !important;border-radius:9px !important;background:rgba(255,255,255,.85) !important;border:1px solid #e3eaf5 !important;font-size:13.5px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-shapes {display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:6px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-shapes > div {min-height:48px !important;padding:8px 10px !important;gap:8px !important;font-size:13px !important;line-height:1.3 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-shapes svg {flex:none !important;width:26px !important;height:26px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-pins > div {padding:10px 12px !important;gap:6px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-pins > div > span {display:flex !important;flex-wrap:wrap !important;gap:6px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide :is(.hc-sources,.hc-quality) li {grid-template-columns:minmax(0,1fr) !important;gap:4px !important;padding:10px 0 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide :is(.hc-sources,.hc-quality) li:first-child {border-top:0 !important;padding-top:0 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide :is(.hc-sources,.hc-quality) li > :first-child {justify-self:start !important;width:auto !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide :is(.hc-sources,.hc-quality) p {margin:0 !important;font-size:14px !important;line-height:1.5 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-facts {display:grid !important;gap:8px !important;margin:0 !important;padding-left:18px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-facts li {font-size:14px !important;line-height:1.5 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-compare {display:grid !important;grid-template-columns:minmax(0,1fr) !important;gap:8px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-compare > div {padding:12px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-compare h3 {font-size:15px !important;margin:0 0 4px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-compare p {font-size:14px !important;line-height:1.5 !important;margin:0 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-fine {font-size:12.5px !important;line-height:1.5 !important}
    /* "Các dòng chữ thường gặp": danh sách gọn (dòng chữ đậm, nghĩa ngay dưới), bỏ nhãn "Nghĩa là" lặp lại */
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-table-wrap {overflow:hidden !important;border:1px solid #dbe7fb !important;border-radius:12px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-table-wrap :is(table,tbody) {display:block !important;width:100% !important;min-width:0 !important;border:0 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-table-wrap thead {display:none !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-table-wrap tr {display:block !important;margin:0 !important;padding:10px 12px !important;border:0 !important;border-top:1px solid #edf2fa !important;border-radius:0 !important;background:#fff !important;box-shadow:none !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-table-wrap tr:first-child {border-top:0 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-table-wrap :is(th,td) {display:block !important;width:auto !important;padding:0 !important;border:0 !important;background:none !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-table-wrap tbody th {font-size:14.5px !important;line-height:1.4 !important;color:#133858 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-table-wrap td {margin-top:2px !important;font-size:13.5px !important;line-height:1.5 !important;color:#4a5f7a !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-table-wrap :is(th,td)::before {content:none !important;display:none !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-guide .hc-next {display:grid !important;gap:10px !important;padding:16px !important}

    /* --- Tổng quan › Đối chiếu toàn tuyến: thẻ điểm gọn, viền màu mức, mức cảnh báo ở hàng đầu --- */
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison {padding:16px 12px 0 !important;border-radius:16px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison .analysis-heading {display:grid !important;gap:8px !important;padding:0 2px 10px !important;margin:0 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison .analysis-heading h2 {display:flex !important;align-items:center !important;gap:8px !important;font-size:18px !important;margin:0 0 2px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison .analysis-heading h2 svg {flex:none !important;width:22px !important;height:22px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison .analysis-heading p {font-size:13px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison .ob-count-pill {justify-self:start !important;padding:6px 10px !important;font-size:12.5px !important;white-space:normal !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison tbody {gap:8px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison tr.click-row {--fl:var(--lv-unknown) !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:0 10px !important;padding:10px 12px 8px !important;border:1px solid #e0e8f5 !important;border-left:5px solid var(--fl) !important;border-radius:12px !important;background:#fff !important;cursor:pointer !important}
    /* ô trong suốt ở mọi trạng thái: hover/focus/chạm đổi nền cả thẻ một màu, không còn sọc trắng giữa các ô */
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison tr.click-row > td,:root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison tr.click-row:is(:hover,:focus,:focus-within,:active) > td {background:transparent !important;box-shadow:none !important;border-left:0 !important;border-right:0 !important;outline:0 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison tr.click-row:is(:hover,:focus-visible,:focus-within,:active) {background:#f2f7ff !important;border-color:#c9daf6 !important;border-left-color:var(--fl) !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison tr.click-row:focus-visible {outline:3px solid #aac8ff !important;outline-offset:2px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison tr.click-row:has(.ab-half[data-level="0"]) {--fl:var(--lv0) !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison tr.click-row:has(.ab-half[data-level="1"]) {--fl:var(--lv1) !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison tr.click-row:has(.ab-half[data-level="2"]) {--fl:var(--lv2) !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison tr.click-row:has(.ab-half[data-level="3"]) {--fl:var(--lv3) !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison tr.click-row:has(.ab-half[data-level="4"]) {--fl:var(--lv4) !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison td {padding:5px 0 !important;font-size:15px !important;line-height:1.3 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison td::before {margin-bottom:2px !important;font-size:11px !important;line-height:1.3 !important;color:#5d7090 !important;overflow-wrap:anywhere !important}
    /* hàng 1: tên điểm (trái) · mức cảnh báo (phải); hàng 2: nguồn số liệu; sau đó lưới số đo */
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison td:first-child {grid-column:1 !important;grid-row:1 !important;padding:0 0 6px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison td:last-child {grid-column:2 / -1 !important;grid-row:1 !important;margin:0 !important;padding:0 0 6px !important;border:0 !important;flex-direction:row !important;align-items:center !important;justify-content:flex-end !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison td:nth-child(2) {grid-column:1 / -1 !important;grid-row:2 !important;flex-direction:row !important;align-items:center !important;justify-content:flex-start !important;padding:0 0 8px !important;margin-bottom:4px !important;border-bottom:1px solid #e6edf7 !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison :is(td:first-child,td:nth-child(2),td:last-child)::before {content:none !important;display:none !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison td:nth-child(2) .badge {padding:3px 8px !important;font-size:11.5px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison td:first-child strong {padding:4px 10px !important;border-radius:8px !important;font-size:16px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison td:nth-child(n+3):not(:last-child) {padding-top:6px !important;border-top:0 !important;font-weight:700 !important;font-variant-numeric:tabular-nums !important;color:#16324f !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison .table-footer {padding:12px 4px !important;font-size:12.5px !important}
  }
  @media (max-width: 359px) {
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .ob-overview .fleet-comparison tr.click-row {grid-template-columns:repeat(2,minmax(0,1fr)) !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-quick {gap:6px !important}
    :root body#royal-blue-app#royal-blue-app:not(.community-view) #content .hc-task {min-height:80px !important;padding:10px !important;font-size:13px !important}
  }

  /* ---------- Thanh noi "Phan anh" / "Nhan tin" (24-10-2026, citizen-dock.js): cung kieu the cua trang (nen trang, vien xanh nhat, bo goc 18px),
     moi nut = bieu tuong cua the no dan toi (vong tron xanh nhu the) + ten viec + mot dong noi se xay ra gi; truot len khi duoc phep hien ---------- */
  @media (max-width: 700px) {
    body#royal-blue-app.community-view .cz-dock {position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:70;display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px;border:1px solid #d3e2fa;border-radius:20px;background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(14px) saturate(1.5);backdrop-filter:blur(14px) saturate(1.5);box-shadow:0 16px 32px -16px rgba(15,45,94,.45),0 2px 6px rgba(15,45,94,.07);transform:translateY(calc(100% + 24px));opacity:0;pointer-events:none;transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .2s ease}
    body#royal-blue-app.community-view .cz-dock.is-shown {transform:none;opacity:1;pointer-events:auto}
    body#royal-blue-app.community-view .cz-dock-btn {display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;column-gap:9px;min-width:0;min-height:52px;padding:6px 10px 6px 7px;border:1px solid #e1ebfa;border-radius:15px;background:linear-gradient(180deg,#fbfdff,#f1f6ff);color:#0f2d5e;font:inherit;text-align:left;-webkit-tap-highlight-color:transparent;transition:transform .12s ease,background .12s ease,border-color .12s ease}
    body#royal-blue-app.community-view .cz-dock-ic {display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:linear-gradient(145deg,#4d97ff,#0862ff 60%,#0a54d8);box-shadow:0 0 0 4px rgba(26,95,224,.1),0 6px 12px -6px rgba(8,98,255,.8)}
    body#royal-blue-app.community-view .cz-dock-ic svg {width:18px;height:18px;stroke:#fff;color:#fff}
    body#royal-blue-app.community-view .cz-dock-tx {display:grid;gap:1px;min-width:0}
    body#royal-blue-app.community-view .cz-dock-tx b {overflow:hidden;font-size:13.5px;line-height:1.25;font-weight:800;color:#0f2d5e;white-space:nowrap;text-overflow:ellipsis}
    body#royal-blue-app.community-view .cz-dock-tx small {overflow:hidden;font-size:11px;line-height:1.3;font-weight:600;color:#56708f;white-space:nowrap;text-overflow:ellipsis}
    body#royal-blue-app.community-view .cz-dock-btn:active {transform:scale(.97);background:#e8f1ff;border-color:#b9d2f7}
    body#royal-blue-app.community-view .cz-dock-btn:focus-visible {outline:3px solid #aac8ff;outline-offset:2px}
    body#royal-blue-app.community-view:has(.cz-dock.is-shown) #toast {bottom:calc(88px + env(safe-area-inset-bottom,0px)) !important}
  }
  /* may 320-360px: bo vong bieu tuong de du cho chu, chu can giua */
  @media (max-width: 360px) {
    body#royal-blue-app.community-view .cz-dock-btn {grid-template-columns:minmax(0,1fr);padding:6px 8px;text-align:center}
    body#royal-blue-app.community-view .cz-dock-ic {display:none}
    body#royal-blue-app.community-view .cz-dock-tx b {font-size:13px}
  }
  @media (max-width: 700px) and (prefers-reduced-motion: reduce) {
    body#royal-blue-app.community-view .cz-dock {transition:opacity .15s ease}
  }

  /* Câu hỏi thường gặp: nút "Đến mục phản ánh" trong câu trả lời (24-10-2026) */
  @media (max-width: 700px) {
    body#royal-blue-app.community-view .citizen-faq .citizen-faq-go {display:inline-flex !important;align-items:center !important;gap:8px !important;min-height:44px !important;margin:2px 0 12px !important;padding:0 16px !important;border:1px solid #f1d9bb !important;border-radius:999px !important;background:#fff8ef !important;color:#8a4b06 !important;font:inherit !important;font-size:14px !important;font-weight:700 !important;cursor:pointer !important}
    body#royal-blue-app.community-view .citizen-faq .citizen-faq-go:active {background:#fff1e0 !important}
    body#royal-blue-app.community-view .citizen-faq .citizen-faq-go svg {width:15px !important;height:15px !important;color:#d97706 !important}
  }


  /* @@quan-tri-24-10 begin */
  /* ---------- Quản trị (#admin) trên điện thoại (24-10-2026): một hệ thống chung cho mọi thẻ con ----------
     Đầu trang gọn · thanh nhóm không dính (để chỗ cho nội dung) · thanh con thành lưới 2 cột (thấy hết, không cuộn ngang) ·
     thẻ section 14px · hàng trường: nhãn 14px, ô nhập 46px chữ 16px (iOS không phóng to), gợi ý 13px · mọi nút 44px ·
     bảng thành thẻ (nhãn cột lấy từ data-label do admin-editor.js labelTables() gắn) · thanh lưu nổi trên thanh điều hướng dưới ·
     hộp thoại thành tấm toàn màn hình. Chỉ đổi hình thức: không đổi id, khóa cấu hình hay thứ tự lưu. */
  @media (max-width: 700px) {
    /* đầu trang: câu mô tả chung bỏ đi (thẻ ngữ cảnh ngay dưới đã nói màn hình này làm gì) */
    body#royal-blue-app:not(.community-view) #content:has(.admin-workspace-top) .page-head {margin:0 0 10px !important;padding:0 !important;min-height:0 !important}
    body#royal-blue-app:not(.community-view) #content:has(.admin-workspace-top) .page-head .subtitle {display:none !important}
    body#royal-blue-app:not(.community-view) #content:has(.admin-workspace-top) .page-head h1 {font-size:20px !important;line-height:1.25 !important;margin:0 !important}
    body#royal-blue-app:not(.community-view) #content:has(.admin-workspace-top) .page-head .rb-heading-main {align-items:center !important;gap:10px !important}
    body#royal-blue-app:not(.community-view) #content:has(.admin-workspace-top) .page-head .rb-heading-icon {width:40px !important;height:40px !important;min-width:40px !important;border-radius:12px !important}
    body#royal-blue-app:not(.community-view) #content:has(.admin-workspace-top) .page-head .rb-heading-icon svg {width:22px !important;height:22px !important}
    body#royal-blue-app:not(.community-view) #content:has(.admin-workspace-top) .page-head .head-actions .btn {min-width:44px !important;min-height:44px !important}

    /* thanh nhóm: không dính ở điện thoại (thanh trên 52px + thanh nhóm ~120px chiếm 1/4 màn hình); nút và thẻ 44px */
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-topbar {position:relative !important;top:auto !important;margin:0 0 10px !important;padding:6px !important;gap:6px !important;border-radius:14px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-menu-button {min-height:48px !important;min-width:0 !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top :is(.admin-topbar-tab,.admin-menu-search) {min-height:44px !important;min-width:44px !important;box-sizing:border-box !important;justify-content:center}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-topbar-tabs {scroll-snap-type:x proximity;scroll-padding-inline:6px}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-topbar-tab {scroll-snap-align:start}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-menu :is(.admin-nav-item,.admin-menu-close) {min-height:44px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-menu input[type=search] {font-size:16px !important;min-height:44px !important}

    /* thẻ ngữ cảnh (tên màn hình đang mở) */
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-context {display:grid !important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px !important;margin:0 0 10px !important;padding:12px 14px 12px 18px !important;border-radius:14px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-context h2 {font-size:18px !important;line-height:1.3 !important;margin:0 0 2px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-context p {margin:0 !important;font-size:13.5px !important;line-height:1.5 !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-context-icon {width:40px !important;height:40px !important;border-radius:12px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-context-icon svg {width:22px !important;height:22px !important}

    /* thanh con trong một mục gộp (Thông báo có 7 màn hình): lưới 2 cột, thấy hết, mỗi ô 44px */
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-subnav {display:grid !important;grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr));gap:4px !important;margin:0 0 12px !important;padding:4px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-subnav-item {display:flex !important;align-items:center;justify-content:center;min-width:0;min-height:44px !important;padding:6px 8px !important;font-size:13.5px !important;line-height:1.3 !important;text-align:center;overflow-wrap:break-word}

    /* khung nội dung: mọi khối co theo màn hình (bảng trong .anh/.aml từng đẩy thẻ rộng 900-1200px) */
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top :is(.admin-main,#admin-panel,#admin-panel > *,.anh,.aml,.aml-grid > *,.anh-setup > *) {min-width:0 !important;max-width:100% !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top :is(.anh,.aml) {grid-template-columns:minmax(0,1fr) !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top :is(.aml-grid,.anh-setup) {grid-template-columns:minmax(0,1fr) !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel :is(p,li,dd,small,label,h3,h4,strong) {overflow-wrap:break-word}

    /* thẻ section */
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel :is(section.card,.card:not(.admin-record)) {padding:14px !important;border-radius:14px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .card .card {padding:12px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel :is(.settings-title,.card-title) {gap:8px !important;flex-wrap:wrap}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel :is(.settings-title,.card-title) h2,
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel section > h3:first-child {font-size:16px !important;line-height:1.35 !important}

    /* tab trong biểu mẫu (Chế độ & chu kỳ / Chất lượng dữ liệu ...): tự xuống dòng, mỗi tab 44px */
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-editor-tabs {display:grid !important;grid-template-columns:repeat(auto-fit,minmax(min(104px,100%),1fr));gap:6px !important;margin:0 0 14px !important;padding:0 0 8px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-editor-tabs > * {display:flex !important;align-items:center;min-width:0;min-height:44px !important;padding:8px 12px !important;font-size:14px !important;line-height:1.3 !important;justify-content:center;text-align:center}

    /* hàng trường: nhãn trên, ô nhập đủ rộng, gợi ý dưới */
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .form-grid {grid-template-columns:minmax(0,1fr) !important;gap:14px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .field > label {font-size:14px !important;line-height:1.4 !important;font-weight:600 !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]):not(.vn-dt-native),select,textarea) {box-sizing:border-box !important;max-width:100% !important;min-height:46px !important;font-size:16px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel textarea {min-height:96px !important;line-height:1.5 !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel :is(.field small,.admin-field-help,.admin-section-description,.section-note,.admin-detail-note,.admin-reason-note,.muted) {font-size:13px !important;line-height:1.5 !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel :is(input[type=checkbox],input[type=radio]) {width:22px !important;height:22px !important;flex:none}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .admin-toggle-field {min-height:52px !important;align-items:center !important}

    /* mọi nút và ô chọn 44px */
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel :is(.btn,button:not(.adm-color-chip):not(.adm-color-default):not(.vn-dt-open),summary,.admin-text-button,.pg-btn,.pg-size select) {min-height:44px !important;box-sizing:border-box !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel :is(.pg-btn,.vn-dt-open,.icon-button) {min-width:44px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .vn-dt-open {min-height:44px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel summary {display:flex;align-items:center}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .admin-advanced > summary {display:grid !important;grid-template-columns:14px minmax(0,1fr);column-gap:8px !important;row-gap:2px !important;align-items:start}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .admin-advanced > summary::before {grid-row:span 2;line-height:1.5}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .admin-advanced > summary > * {grid-column:2}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .admin-text-button {padding-inline:10px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel :is(.admin-section,.card,.stack) > :is(.btn,button.btn) {width:100% !important;margin:8px 0 0 !important;justify-content:center}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .pg-nav {justify-content:center !important;gap:8px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .pg-info {flex:1 1 100%;text-align:center}

    /* dòng danh sách (bản ghi gấp/mở): tiêu đề 14px, nút thao tác 44px chữ 13px (trước là 10px) */
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .admin-record > summary {min-height:56px !important;padding:10px 12px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .admin-record-summary strong {font-size:14px !important;line-height:1.4 !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .admin-record-summary small {font-size:12.5px !important;line-height:1.45 !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .admin-record-body {padding:12px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .admin-record-actions {display:grid !important;grid-template-columns:repeat(auto-fit,minmax(min(120px,100%),1fr));gap:8px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .admin-record-actions > span {grid-column:1/-1;font-size:12.5px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .admin-record-actions > .btn {justify-content:center;padding:8px 10px !important;font-size:13px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel :is(.admin-list-toolbar,.anh-filters) {flex-wrap:wrap !important;gap:8px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel :is(.admin-list-toolbar,.anh-filters) > * {flex:1 1 100% !important;min-width:0 !important}

    /* bảng thành thẻ: mỗi dòng một thẻ, mỗi ô "nhãn cột | giá trị"; ô đầu là tiêu đề thẻ */
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel :is(.table-wrap,.anh-scroll,.asys-scroll,.est-matrix-wrap):has(> table.admin-card-table) {overflow:visible !important;border:0 !important;background:transparent !important;box-shadow:none !important;max-height:none !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel table.admin-card-table {display:block !important;width:100% !important;min-width:0 !important;border:0 !important;background:transparent !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel table.admin-card-table > caption {display:block !important;width:auto !important;white-space:normal !important;text-align:left !important;padding:0 0 8px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel table.admin-card-table > thead {display:none !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel table.admin-card-table > :is(tbody,tfoot) {display:grid !important;gap:10px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel table.admin-card-table > tfoot {margin-top:10px}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel table.admin-card-table tr:not([hidden]):not(.pg-off) {display:grid !important;grid-template-columns:minmax(0,1fr);height:auto !important;padding:10px 14px !important;border:1px solid #dfe8f5 !important;border-radius:12px !important;background:#fff !important;box-shadow:0 2px 8px rgba(16,42,90,.05)}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel table.admin-card-table tr:is([hidden],.pg-off) {display:none !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel table.admin-card-table :is(td,th) {display:block !important;position:relative !important;box-sizing:border-box !important;width:auto !important;min-width:0 !important;max-width:none !important;height:auto !important;min-height:34px;padding:7px 0 7px 38% !important;border:0 !important;background:transparent !important;text-align:left !important;white-space:normal !important;overflow-wrap:break-word;font-size:14px !important;line-height:1.45 !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel table.admin-card-table :is(td,th) + :is(td,th) {border-top:1px dashed #e3eaf4 !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel table.admin-card-table :is(td,th)[data-label]:not([data-label=""]):not(.admin-cell-wide)::before {content:attr(data-label);position:absolute;left:0;top:7px;width:calc(38% - 12px);color:#5a6f8c;font-size:12.5px;font-weight:600;line-height:1.45;white-space:normal}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel table.admin-card-table :is(td,th):is(:not([data-label]),[data-label=""],.admin-cell-wide) {padding-left:0 !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel table.admin-card-table :is(td,th):empty {display:none !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel table.admin-card-table :is(td,th) > * {max-width:100%}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel table.admin-card-table :is(td,th) :is(.btn,button) {margin:2px 6px 2px 0}

    /* ô số liệu (Máy chủ & CSDL): 2 ô một hàng thay vì 6 ô chồng dọc */
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .asys-tiles {grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .asys-tile {padding:10px 12px !important;overflow-wrap:break-word}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .asys-tile strong {font-size:18px !important;line-height:1.25 !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .asys-scroll:has(> .asys-tables) {margin-inline:-4px}

    /* Phân quyền vai trò: trong thẻ vai trò, nút "Về mặc định" và nhãn từng rơi vào cột biểu tượng làm cột chữ co còn 1 ký tự */
    @container rpm (max-width: 760px) {
      body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .rpm-rolehead > :not(.rpm-roleicon) {grid-column:2 !important;min-width:0;overflow-wrap:break-word}
      body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .rpm-rolehead > .rpm-link {grid-column:1 / -1 !important;justify-self:stretch;justify-content:center;white-space:nowrap;margin-top:6px}
    }

    /* thanh lưu: khi có thay đổi nó dính đáy màn hình, nằm trên thanh điều hướng dưới (61px + vùng an toàn); nút xếp dọc đủ rộng */
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #settings-form[data-dirty] .admin-save-area {bottom:calc(70px + env(safe-area-inset-bottom,0px)) !important;padding:12px !important;border-radius:14px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-save-area {gap:10px !important;padding:12px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-save-area > .form-actions {display:grid !important;grid-template-columns:minmax(0,1fr);gap:8px !important;width:100%}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-save-area > .form-actions > .btn {width:100% !important;justify-content:center;min-height:46px !important}
    /* khi đang nổi: gọn còn ~200px (bỏ câu gợi ý dưới ô lý do, hai nút một hàng) */
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #settings-form[data-dirty] .admin-save-area {gap:8px !important;padding:10px 12px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #settings-form[data-dirty] .admin-save-area .admin-reason-note {display:none !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #settings-form[data-dirty] .admin-save-area .field > label {margin-bottom:4px !important;font-size:13px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #settings-form[data-dirty] .admin-save-area > .form-actions {grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) !important;padding-top:0 !important;border-top:0 !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #settings-form[data-dirty] .admin-save-area > .form-actions > .btn {padding:6px 8px !important;font-size:14px !important;line-height:1.25 !important;white-space:normal !important;text-align:center}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-dirty-bar {bottom:calc(70px + env(safe-area-inset-bottom,0px)) !important;flex-wrap:wrap}

    /* hộp thoại mở từ Quản trị (sửa điểm, tài khoản, khôi phục...): tấm toàn màn hình, tiêu đề dính trên, nút đủ rộng */
    body#royal-blue-app:not(.community-view):has(.admin-workspace-top) #modal-root .modal-overlay {padding:0 !important;align-items:stretch !important}
    body#royal-blue-app:not(.community-view):has(.admin-workspace-top) #modal-root .modal:not(:has(.hc-modal-body)) {box-sizing:border-box !important;width:100% !important;max-width:100% !important;height:100% !important;max-height:100dvh !important;margin:0 !important;padding:0 14px calc(16px + env(safe-area-inset-bottom,0px)) !important;border-radius:0 !important;overflow-y:auto !important}
    body#royal-blue-app:not(.community-view):has(.admin-workspace-top) #modal-root .modal:not(:has(.hc-modal-body)) .modal-title {position:sticky;top:0;z-index:5;min-height:56px;margin:0 -14px 12px !important;padding:8px 8px 8px 14px !important;background:#fff;border-bottom:1px solid #e3ebf6}
    body#royal-blue-app:not(.community-view):has(.admin-workspace-top) #modal-root .modal:not(:has(.hc-modal-body)) .modal-title h2 {font-size:17px !important;line-height:1.3 !important}
    body#royal-blue-app:not(.community-view):has(.admin-workspace-top) #modal-root .modal #close-modal {min-width:44px !important;min-height:44px !important}
    body#royal-blue-app:not(.community-view):has(.admin-workspace-top) #modal-root .modal .form-grid {grid-template-columns:minmax(0,1fr) !important}
    body#royal-blue-app:not(.community-view):has(.admin-workspace-top) #modal-root .modal :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]):not(.vn-dt-native),select,textarea) {box-sizing:border-box !important;max-width:100% !important;min-height:46px !important;font-size:16px !important}
    body#royal-blue-app:not(.community-view):has(.admin-workspace-top) #modal-root .modal :is(.btn,button[type=submit]) {min-height:46px !important;justify-content:center}
    body#royal-blue-app:not(.community-view):has(.admin-workspace-top) #modal-root .modal :is(.form-actions,.modal-actions) {display:grid !important;grid-template-columns:minmax(0,1fr);gap:8px !important}
    body#royal-blue-app:not(.community-view):has(.admin-workspace-top) #modal-root .modal form.stack > .btn {width:100%}
  }
  /* điện thoại nhỏ (≤360px, kể cả 320px): bớt lề, thanh con một cột khi không đủ 2 ô 140px */
  @media (max-width: 360px) {
    body#royal-blue-app:not(.community-view) #content:has(.admin-workspace-top) .page-head h1 {font-size:18px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-context {padding:10px 12px 10px 16px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-context-icon {display:none !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-context {grid-template-columns:minmax(0,1fr) !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-subnav {grid-template-columns:repeat(2,minmax(0,1fr)) !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-subnav-item {font-size:13px !important;padding:6px 4px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel :is(section.card,.card:not(.admin-record)) {padding:12px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel .card .card {padding:10px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel table.admin-card-table tr:not([hidden]):not(.pg-off) {padding:8px 12px !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel table.admin-card-table :is(td,th) {padding-left:0 !important}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top #admin-panel table.admin-card-table :is(td,th)[data-label]:not([data-label=""]):not(.admin-cell-wide)::before {position:static;display:block;width:auto;margin-bottom:2px}
    body#royal-blue-app:not(.community-view) #content .admin-workspace-top .admin-menu-label {font-size:13px !important}
  }

  /* Bo chon ma bam/cham (admin-code-pickers.js, config/admin.php `pickers`), dien thoai: 2 cot o 320-430px */
  @media (max-width: 700px) {
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .field:has(> .adm-codes.is-multiple) {grid-column:1/-1 !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes {display:grid;gap:8px;margin-top:2px;min-width:0}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(130px,100%),1fr));gap:8px}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code {display:grid !important;grid-template-columns:24px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;min-width:0;min-height:52px !important;margin:0 !important;padding:7px 12px !important;border:1.5px solid #d6e2f1 !important;border-radius:12px !important;background:#fff !important;color:#17304f !important;text-align:left !important;font:inherit;cursor:pointer;box-shadow:none !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code > i {grid-row:1 / span 2;display:grid;place-items:center;box-sizing:border-box;width:24px;height:24px;border:2px solid #b9cbe3;border-radius:7px;background:#fff;color:#fff;font-style:normal;font-size:12.5px;font-weight:800;line-height:1}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes.is-single .adm-code > i {border-radius:50%}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code b {grid-column:2;font-size:14.5px !important;font-weight:800;line-height:1.25;overflow-wrap:break-word}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code span {grid-column:2;color:#5a6f8c;font-size:12.5px !important;line-height:1.3;overflow-wrap:break-word}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code:hover {border-color:#9ec0ff !important;background:#f4f8ff !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code:focus-visible {outline:3px solid #9ec0ff;outline-offset:2px}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code:is([aria-checked=true],[aria-pressed=true]) {border-color:#175adb !important;background:#eef4ff !important;box-shadow:0 0 0 3px #dbe8ff !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code:is([aria-checked=true],[aria-pressed=true]) > i {border-color:#175adb;background:#175adb}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code:is([aria-checked=true],[aria-pressed=true]) > i.adm-code-tick {background:#175adb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/15px 15px no-repeat}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code.is-unknown {border-style:dashed !important;border-color:#e0a84a !important;background:#fffaf0 !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code[data-level] {border-left-width:6px !important;border-left-color:var(--lv,#9db0c9) !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code[data-level="0"] {--lv:#12a150}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code[data-level="1"] {--lv:#f5c000}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code[data-level="2"] {--lv:#ff7a1a}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code[data-level="3"] {--lv:#e5251b}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code[data-level="4"] {--lv:#7e0023}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code-empty b {font-weight:700}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-order {display:flex;flex-wrap:wrap;gap:6px;padding:8px;border:1px dashed #cfdcf0;border-radius:12px;background:#f8fbff}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-order-title {flex:1 1 100%;color:#5a6f8c;font-size:12.5px;font-weight:600}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-order-item {display:inline-flex;align-items:center;gap:2px;padding:2px 3px 2px 10px;border:1px solid #d6e2f1;border-radius:999px;background:#fff;color:#17304f}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-order-item > i {margin-right:4px;color:#175adb;font-style:normal;font-size:12px;font-weight:800}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-order-item > b {margin-right:2px;font-size:14px}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-order-move {display:grid !important;place-items:center;width:44px !important;min-width:44px !important;height:44px !important;min-height:44px !important;padding:0 !important;border:0 !important;border-radius:50% !important;background:#eef4ff !important;color:#175adb !important;font-size:19px !important;font-weight:800;line-height:1;cursor:pointer}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-order-move:disabled {opacity:.35;cursor:default}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-tools {display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-state {display:block;color:#5a6f8c;font-size:12.5px !important;line-height:1.45}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-state[data-tone="warn"] {color:#b03a12;font-weight:600}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-new {display:flex;gap:8px;align-items:center}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-new[hidden] {display:none !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-new > input {flex:1 1 auto;min-width:0}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-select {width:100%;max-width:560px}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .admin-record-body .adm-codes-grid {grid-template-columns:repeat(auto-fill,minmax(min(120px,100%),1fr))}
  }
  /* @@quan-tri-24-10 end */

  /* Form người dân trong modal (24-10-2026): trên điện thoại là tấm trượt từ dưới lên, cao tối đa 92% màn hình, có vạch kéo */
  @media (max-width: 700px) {
    .cz-modal {align-items:flex-end !important;padding:0 !important}
    .cz-modal-dialog {width:100% !important;max-height:92dvh !important;border-radius:20px 20px 0 0 !important;animation-name:cz-sheet !important}
    .cz-modal-dialog::before {content:"" !important;position:absolute !important;top:7px !important;left:50% !important;width:40px !important;height:4px !important;margin-left:-20px !important;border-radius:999px !important;background:#cfdbec !important}
    .cz-modal-head {grid-template-columns:42px minmax(0,1fr) 40px !important;gap:12px !important;padding:20px 14px 12px 16px !important}
    .cz-modal-icon {width:40px !important;height:40px !important;box-shadow:0 0 0 4px rgba(8,98,255,.09) !important}
    .cz-modal-icon svg {width:19px !important;height:19px !important}
    .cz-modal-head h2 {font-size:17px !important}
    .cz-modal-head p {font-size:13px !important;display:-webkit-box !important;-webkit-line-clamp:2 !important;-webkit-box-orient:vertical !important;overflow:hidden !important}
    .cz-modal-body {padding:14px 16px calc(18px + env(safe-area-inset-bottom)) !important}
    .cz-modal-body .sub-submit {width:100% !important}
    @keyframes cz-sheet {from {transform:translateY(40px);opacity:0}}
  }

  /* @@dieu-huong-25-10 begin */
  /* Dieu huong nhanh (25-10-2026): thanh duoi co 4 muc chon trong Quan tri + "Them" (so cot theo --bn-count do app.js dat);
     nut Tim nhanh tren thanh dau; hop Tim nhanh chiem ca man hinh; hang "Di tiep" cuon ngang mot dong. */
  @media (max-width: 700px) {
    body#royal-blue-app:not(.community-view) .bottom-nav {grid-template-columns:repeat(var(--bn-count,4),minmax(0,1fr)) !important;gap:4px !important;padding-left:6px !important;padding-right:6px !important}
    body#royal-blue-app .topbar-right .qn-button {width:40px !important;height:40px !important;min-width:40px !important;padding:0 !important}
    .qn-overlay {padding:0 !important;align-items:stretch !important}
    .qn-dialog {width:100% !important;max-height:none !important;height:100% !important;border-radius:0 !important}
    .qn-field {padding:10px 12px calc(10px) !important;padding-top:calc(10px + env(safe-area-inset-top,0px)) !important}
    .qn-foot {display:none !important}
    .qn-item {min-height:48px !important}
    body#royal-blue-app #content .qn-next {flex-wrap:nowrap !important;overflow-x:auto;margin:0 -16px 12px !important;padding:0 16px 2px !important;scrollbar-width:none;-webkit-overflow-scrolling:touch}
    body#royal-blue-app #content .qn-next::-webkit-scrollbar {display:none}
    body#royal-blue-app .qn-next .qn-next-link {flex:none;min-height:40px !important}
    body#royal-blue-app #content .qn-recent {flex-wrap:nowrap !important;overflow-x:auto;scrollbar-width:none}
    body#royal-blue-app #content .qn-recent-chip {flex:none;min-height:36px !important}
  }
  @media (max-width: 360px) {
    body#royal-blue-app .bottom-nav .bn-item svg {width:20px;height:20px}
    body#royal-blue-app:not(.community-view) .bottom-nav {gap:0 !important;padding-left:2px !important;padding-right:2px !important}
    body#royal-blue-app .bottom-nav .bn-item {padding-left:0 !important;padding-right:0 !important}
    body#royal-blue-app .bottom-nav .bn-item span {letter-spacing:-.1px}
  }
  /* @@dieu-huong-25-10 end */

  /* Bản đồ GIS (25-10-2026): nút "Cảnh báo" (lớp hiển thị) được kéo lên cạnh nút nền bản đồ nhưng nằm dưới .map-topbar nên chạm không ăn;
     đặt nó và danh sách xổ xuống lên trên thanh đó (thanh có z-index 60) */
  @media (max-width: 700px) {
    body#royal-blue-app #content #river-workspace .gis-lens {position:relative !important;z-index:70 !important}
    body#royal-blue-app #content #river-workspace .gis-lens .gis-lens-menu[open] {position:relative !important;z-index:71 !important}
  }

  /* Phản ánh nguồn nước trên điện thoại (25-10-2026): cùng tông với desktop — nút gửi màu cam, nút nhanh viền be chữ nâu cam */
  @media (max-width: 700px) {
    body#royal-blue-app.community-view #citizen-complaint .citizen-subscribe-open {background:linear-gradient(145deg,#ff9f2e,#f08a12 55%,#d97706) !important;color:#fff !important;border:0 !important;box-shadow:0 2px 4px rgba(217,119,6,.3),0 14px 22px -12px rgba(217,119,6,.85) !important}
    body#royal-blue-app.community-view #citizen-complaint .citizen-subscribe-open:active {filter:brightness(.95) !important}
    body#royal-blue-app.community-view #citizen-complaint .cz-q {background:#fff !important;border-color:#f1d9bb !important;color:#8a4b06 !important}
    body#royal-blue-app.community-view #citizen-complaint .cz-q:active {background:#fff1e0 !important}
    body#royal-blue-app.community-view #citizen-complaint .cz-q svg {color:#d97706 !important}
  }

  /* Cảnh báo trên điện thoại (25-10-2026): bộ lọc 2×2 đều nhau, nút trạng thái một dải cuộn ngang; hộp thoại chi tiết là tấm trượt
     từ dưới lên, 5 ô tóm tắt thành bảng gọn (nhãn trái · giá trị phải), biểu đồ và các khối dưới bớt lề hai bên */
  @media (max-width: 700px) {
    body#royal-blue-app:not(.community-view) #content .ap-toolbar .field:last-child {grid-column:auto !important}
    body#royal-blue-app:not(.community-view) #content .ap-filters {display:flex !important;flex-wrap:nowrap !important;gap:8px !important;overflow-x:auto !important;overscroll-behavior-x:contain;scrollbar-width:none;margin:10px -14px 0 !important;padding:2px 14px 6px !important;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent)}
    body#royal-blue-app:not(.community-view) #content .ap-filters::-webkit-scrollbar {display:none}
    body#royal-blue-app:not(.community-view) #content .ap-filters > * {flex:none !important;white-space:nowrap !important;min-height:40px !important}
    body#royal-blue-app:not(.community-view) #content .ap-tabs {overflow-x:auto !important;scrollbar-width:none;flex-wrap:nowrap !important}
    body#royal-blue-app:not(.community-view) #content .ap-tabs > * {flex:none !important;white-space:nowrap !important;min-height:44px !important}

    /* hộp thoại chi tiết */
    body#royal-blue-app #modal-root .modal-overlay:has(.av-modal) {align-items:flex-end !important;padding:0 !important}
    body#royal-blue-app #modal-root .modal.av-modal {width:100% !important;max-width:100% !important;max-height:94dvh !important;margin:0 !important;padding:0 12px 14px !important;border-radius:18px 18px 0 0 !important}
    body#royal-blue-app #modal-root .modal.av-modal .modal-title {position:sticky !important;top:0 !important;z-index:5 !important;margin:0 -12px 8px !important;padding:10px 12px !important;background:#fff !important;border-bottom:1px solid #e6edf6 !important}
    body#royal-blue-app #modal-root .modal.av-modal .modal-title h2 {font-size:16px !important;line-height:1.3 !important}
    body#royal-blue-app #modal-root .modal.av-modal #close-modal {width:40px !important;height:40px !important;min-width:40px !important;min-height:40px !important}
    body#royal-blue-app .av-in-modal .av-facts {display:block !important;margin:0 0 10px !important;border:1px solid #e3ebf5 !important;border-radius:12px !important;background:#fff !important;overflow:hidden !important}
    body#royal-blue-app .av-in-modal .av-fact {display:grid !important;grid-template-columns:104px minmax(0,1fr) !important;column-gap:10px !important;row-gap:1px !important;align-items:baseline !important;min-height:0 !important;padding:8px 12px !important;border:0 !important;border-top:1px solid #edf2f9 !important;border-radius:0 !important;background:none !important;box-shadow:none !important}
    body#royal-blue-app .av-in-modal .av-fact:first-child {border-top:0 !important}
    body#royal-blue-app .av-in-modal .av-fact > span {grid-column:1 !important;grid-row:1 / span 2 !important;font-size:11px !important;line-height:1.35 !important;letter-spacing:.02em !important}
    body#royal-blue-app .av-in-modal .av-fact strong {grid-column:2 !important;font-size:14.5px !important;line-height:1.35 !important;white-space:normal !important;overflow:visible !important}
    body#royal-blue-app .av-in-modal .av-fact .av-big {font-size:17px !important}
    body#royal-blue-app .av-in-modal .av-fact small {grid-column:2 !important;font-size:12px !important;line-height:1.35 !important;white-space:normal !important;overflow:visible !important;display:-webkit-box !important;-webkit-line-clamp:2 !important;-webkit-box-orient:vertical !important}
    body#royal-blue-app .av-in-modal .av-card {padding:10px !important;border-radius:12px !important}
    body#royal-blue-app .av-in-modal .av-panel {padding:8px 0 0 !important}
    body#royal-blue-app .av-in-modal .av-grid {gap:10px !important}
  }

  /* Quan trắc › Các điểm trên tuyến trên điện thoại (25-10-2026): tiêu đề và nút chuyển cùng nhịp với các thẻ trên; bảng đối chiếu
     (cùng hàm comparison() với Tổng quan) thành thẻ điểm như "Đối chiếu toàn tuyến": viền màu mức, tên + mức hàng đầu, số đo lưới 3 cột */
  @media (max-width: 700px) {
    body#royal-blue-app:not(.community-view) #content .monitor-context {padding:14px 12px !important}
    body#royal-blue-app:not(.community-view) #content .monitor-context-heading {display:grid !important;gap:10px !important;margin:0 0 10px !important;padding:0 !important;border:0 !important;background:none !important}
    body#royal-blue-app:not(.community-view) #content .monitor-context-heading h2 {display:flex !important;align-items:center !important;gap:10px !important;margin:0 !important;font-size:17px !important}
    body#royal-blue-app:not(.community-view) #content .monitor-context-switch {display:grid !important;grid-template-columns:1fr 1fr !important;gap:4px !important;width:100% !important;padding:4px !important;border-radius:12px !important}
    body#royal-blue-app:not(.community-view) #content .monitor-context-switch button {min-height:40px !important;justify-content:center !important;font-size:14px !important}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison .table-wrap {overflow:visible !important;border:0 !important;background:none !important;box-shadow:none !important;margin:0 !important;padding:0 !important}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison table {display:block !important;width:100% !important;min-width:0 !important;border:0 !important;background:none !important}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison thead {position:absolute !important;width:1px !important;height:1px !important;overflow:hidden !important;clip-path:inset(50%) !important}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison tbody {display:grid !important;gap:8px !important}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison tr.click-row {--fl:var(--lv-unknown);display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:0 10px !important;padding:10px 12px 8px !important;border:1px solid #e0e8f5 !important;border-left:5px solid var(--fl) !important;border-radius:12px !important;background:#fff !important;cursor:pointer}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison tr.click-row:is(:hover,:focus-visible,:focus-within,:active) {background:#f2f7ff !important}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison tr.click-row:has(.ab-half[data-level="0"]) {--fl:var(--lv0)}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison tr.click-row:has(.ab-half[data-level="1"]) {--fl:var(--lv1)}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison tr.click-row:has(.ab-half[data-level="2"]) {--fl:var(--lv2)}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison tr.click-row:has(.ab-half[data-level="3"]) {--fl:var(--lv3)}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison tr.click-row:has(.ab-half[data-level="4"]) {--fl:var(--lv4)}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison td {display:flex !important;flex-direction:column !important;align-items:flex-start !important;min-width:0 !important;padding:5px 0 !important;border:0 !important;background:transparent !important;box-shadow:none !important;white-space:normal !important;font-size:15px !important;line-height:1.3 !important}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison td::before {content:attr(data-label) !important;margin-bottom:2px !important;font-size:11px !important;line-height:1.3 !important;color:#5d7090 !important;font-weight:500 !important;overflow-wrap:anywhere}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison td:first-child {grid-column:1 !important;grid-row:1 !important;padding:0 0 6px !important}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison td:last-child {grid-column:2 / -1 !important;grid-row:1 !important;flex-direction:row !important;align-items:center !important;justify-content:flex-end !important;padding:0 0 6px !important}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison td:nth-child(2) {grid-column:1 / -1 !important;grid-row:2 !important;flex-direction:row !important;align-items:center !important;padding:0 0 8px !important;margin-bottom:4px !important;border-bottom:1px solid #e6edf7 !important}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison :is(td:first-child,td:nth-child(2),td:last-child)::before {content:none !important;display:none !important}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison td:first-child strong {padding:4px 10px !important;border-radius:8px !important;background:#e7efff !important;color:#245bce !important;font-size:16px !important}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison td:nth-child(2) .badge {padding:3px 8px !important;font-size:11.5px !important}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison td:nth-child(n+3):not(:last-child) {padding-top:6px !important;font-weight:700 !important;font-variant-numeric:tabular-nums;color:#16324f !important}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison > .note {margin:10px 2px 0 !important;font-size:12.5px !important}
    body#royal-blue-app:not(.community-view) #content .monitor-context #monitor-context-content {padding:0 !important}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison td:last-child .ab-pair {min-width:0 !important;max-width:100% !important}
    body#royal-blue-app:not(.community-view) #content .monitor-comparison td:last-child .ab-pair-name {white-space:normal !important;text-align:right !important;line-height:1.25 !important}
  }
  @media (max-width: 359px) {
    body#royal-blue-app:not(.community-view) #content .monitor-comparison tr.click-row {grid-template-columns:repeat(2,minmax(0,1fr)) !important}
    body#royal-blue-app:not(.community-view) #content .monitor-context-switch button {gap:6px !important;padding:0 6px !important;font-size:13px !important;white-space:nowrap !important}
    body#royal-blue-app:not(.community-view) #content .monitor-context-switch button svg {width:15px !important;height:15px !important}
  }

  /* @@nguong-mobile-25-10 begin */
  /* Nguong canh bao (#thresholds) tren dien thoai: phan dau gon (dong ma/ngay nho, 4 o so lieu thanh hang thap), Cai dat chung chu thang cot
     sau nhan C0-C4, dau the chi tieu: ten + "Muc 2.x" + nut (i) cung hang, bang dai khong lap don vi. Chi doi bo cuc. */
  @media (max-width: 700px) {
    :root body#royal-blue-app .th-set-page { gap: 12px !important; }
    :root body#royal-blue-app .th-set-page .th-set-head { padding: 14px !important; }
    :root body#royal-blue-app .th-set-page .th-set-top { gap: 12px !important; }
    :root body#royal-blue-app .th-set-page .th-set-heading { font-size: 17px !important; }
    :root body#royal-blue-app .th-set-page .th-set-about .th-set-facts > div { padding: 7px 9px !important; column-gap: 8px !important; }
    :root body#royal-blue-app .th-set-page .th-set-about .th-set-facts dd { font-size: 16px !important; }
    :root body#royal-blue-app .th-set-page .th-set-groups li { padding: 8px 10px !important; gap: 2px !important; }
    :root body#royal-blue-app .th-set-page .th-set-groups li b { font-size: 13.5px !important; }
    :root body#royal-blue-app .th-set-page .th-set-groups li small { font-size: 12px !important; line-height: 1.45 !important; }
    :root body#royal-blue-app .th-set-page .th-set-facts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px !important; }
    :root body#royal-blue-app .th-set-page .th-general { padding: 10px 12px !important; }
    :root body#royal-blue-app .th-set-page .th-general .th-card-head { gap: 6px !important; }
    :root body#royal-blue-app .th-set-page .th-general .th-card-head strong { font-size: 14px !important; }
    :root body#royal-blue-app .th-set-page .th-advice { gap: 6px !important; margin: 8px 0 !important; font-size: 13px !important; line-height: 1.45 !important; }
    :root body#royal-blue-app .th-set-page .th-advice li { display: grid !important; grid-template-columns: 30px minmax(0, 1fr) !important; column-gap: 8px !important; align-items: start !important; }
    :root body#royal-blue-app .th-set-page .th-advice li .th-c { margin-top: 1px !important; min-width: 30px !important; }
    :root body#royal-blue-app .th-set-page .th-general .tiny { margin: 0 !important; font-size: 12px !important; line-height: 1.45 !important; color: #48627f !important; }
    /* the chi tieu */
    :root body#royal-blue-app .th-set-page .th-set-param { padding: 12px !important; gap: 8px !important; }
    :root body#royal-blue-app .th-set-page[data-notes-icon] .th-set-param > .th-card-head { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 6px 8px !important; }
    :root body#royal-blue-app .th-set-page[data-notes-icon] .th-set-param > .th-card-head > :first-child { flex: 1 1 10em !important; min-width: 0 !important; }
    :root body#royal-blue-app .th-set-page[data-notes-icon] .th-set-param > .th-card-head > .th-head-meta { flex: 0 0 auto !important; margin-left: auto !important; }
    :root body#royal-blue-app .th-set-page .th-set-param .th-set-table th, :root body#royal-blue-app .th-set-page .th-set-param .th-set-table td { padding: 7px 8px !important; }
    :root body#royal-blue-app .th-set-page .th-set-param .th-set-table { table-layout: auto !important; }
    :root body#royal-blue-app .th-set-page .th-set-param .th-set-table th:first-child, :root body#royal-blue-app .th-set-page .th-set-param .th-set-table td.th-range { width: 1% !important; }
    :root body#royal-blue-app .th-set-page .th-set-param .th-set-table td.th-range { white-space: nowrap !important; padding-right: 10px !important; }
    :root body#royal-blue-app .th-set-page .th-set-param .th-set-table th:first-child { white-space: normal !important; min-width: 64px !important; }
    :root body#royal-blue-app .th-set-page .th-set-param .th-set-table td.th-range { font-size: 13.5px !important; line-height: 1.45 !important; }
    :root body#royal-blue-app .th-set-page .th-set-param .th-set-table td.th-range small { font-weight: 500 !important; color: #62758d !important; }
  }
  /* @@nguong-mobile-25-10 end */

  /* @@canh-bao-mobile-25-10 begin */
  /* Canh bao (#alerts) tren dien thoai: (1) cham/di chuot vao mot dong (the) doi mau ca the dong nhat, khong to rieng tung o, khong vien xanh
     de len vien mau muc, khong nhac the len; (2) the KPI: nen nhat theo mau cua the, cham mau truoc nhan, so lon, dong mo ta ngan. */
  @media (max-width: 700px) {
    :root body#royal-blue-app #content .ap-table tr.ap-row { transition: background .15s ease, box-shadow .15s ease, border-color .15s ease !important; }
    :root body#royal-blue-app #content .ap-table tr.ap-row:is(:hover, :active, :focus-within) > td { background: transparent !important; box-shadow: none !important; }
    :root body#royal-blue-app #content .ap-table tr.ap-row:is(:hover, :active, :focus-within) { background: #f6f9ff !important; border-top-color: #c9dbf7 !important; border-right-color: #c9dbf7 !important; border-bottom-color: #c9dbf7 !important; box-shadow: 0 6px 18px rgba(18, 53, 95, .08) !important; transform: none !important; }
    :root body#royal-blue-app #content .ap-table tr.ap-row:active { background: #eef4ff !important; }
    :root body#royal-blue-app #content .ap-table tr.ap-row:is(:hover, :active) td.ap-go svg { transform: none !important; }
    :root body#royal-blue-app #content .ap-table tr.ap-row:focus-visible { outline: 3px solid #aac8ff !important; outline-offset: 2px !important; }
    /* the KPI */
    :root body#royal-blue-app #content .ap-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
    :root body#royal-blue-app #content .ap-card { position: relative !important; display: grid !important; grid-template-rows: auto auto 1fr !important; align-content: start !important; gap: 2px !important; min-height: 96px !important; padding: 10px 12px 10px !important; border: 1px solid color-mix(in srgb, var(--ap, #175adb) 24%, #e3ecf8) !important; border-radius: 14px !important; background: linear-gradient(160deg, color-mix(in srgb, var(--ap, #175adb) 9%, #fff) 0%, #fff 70%) !important; box-shadow: 0 2px 8px rgba(18, 53, 95, .05) !important; text-align: left !important; transform: none !important; }
    :root body#royal-blue-app #content .ap-card:is(:hover, :active) { transform: none !important; border-color: color-mix(in srgb, var(--ap, #175adb) 45%, #d7e4f7) !important; box-shadow: 0 6px 16px rgba(18, 53, 95, .10) !important; }
    :root body#royal-blue-app #content .ap-card:active { background: color-mix(in srgb, var(--ap, #175adb) 12%, #fff) !important; }
    :root body#royal-blue-app #content .ap-card-label { display: flex !important; align-items: center !important; gap: 7px !important; font-size: 11.5px !important; font-weight: 750 !important; letter-spacing: .2px !important; line-height: 1.25 !important; color: #3d556f !important; text-transform: none !important; }
    :root body#royal-blue-app #content .ap-card-label::before { content: "" !important; flex: 0 0 auto !important; width: 8px !important; height: 8px !important; border-radius: 50% !important; background: var(--ap, #175adb) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ap, #175adb) 20%, transparent) !important; }
    :root body#royal-blue-app #content .ap-card strong { margin-top: 2px !important; font-size: 26px !important; line-height: 1.05 !important; font-weight: 800 !important; font-variant-numeric: tabular-nums !important; color: var(--ap, #133858) !important; }
    :root body#royal-blue-app #content .ap-card-sub { display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; font-size: 11px !important; line-height: 1.35 !important; color: #62758d !important; }
  }
  /* @@canh-bao-mobile-25-10 end */

  /* @@dau-trang-mobile-25-10 begin */
  /* Dien thoai: (1) ten "QTNN DA NANG" o thanh tren khong cat dau nga cua chu A co hai dau (line-height cao hon); (2) dau trang co nut "?" dung
     mot minh mot hang (vi "Xem lich su" cua Do thu cong an tren dien thoai, quy tac cu chi bat truong hop nut "?" la con duy nhat): dua nut len
     goc phai cung hang tieu de; hang "Di tiep" sat ngay duoi. */
  @media (max-width: 700px) {
    body#royal-blue-app:not(.community-view) .topbar .topbar-brand strong { line-height: 1.5 !important; padding-top: 1px !important; }
    :root body#royal-blue-app .rb-unified-heading:has(> .head-actions > .hc-page-help):not(:has(> .head-actions > :not(.hc-page-help, #manual-history))) { flex-wrap: nowrap !important; align-items: flex-start !important; gap: 10px !important; }
    :root body#royal-blue-app .rb-unified-heading:has(> .head-actions > .hc-page-help):not(:has(> .head-actions > :not(.hc-page-help, #manual-history))) > .rb-heading-main { flex: 1 1 0 !important; min-width: 0 !important; }
    :root body#royal-blue-app .rb-unified-heading:has(> .head-actions > .hc-page-help):not(:has(> .head-actions > :not(.hc-page-help, #manual-history))) > .head-actions { flex: 0 0 auto !important; width: auto !important; margin: 0 !important; }
    :root body#royal-blue-app #content > .rb-unified-heading .subtitle { font-size: 13px !important; line-height: 1.45 !important; }
    :root body#royal-blue-app #content > .rb-unified-heading + .qn-next { margin-top: -4px !important; }
    :root body#royal-blue-app #content > .rb-unified-heading .rb-heading-icon { width: 40px !important; height: 40px !important; min-width: 40px !important; border-radius: 12px !important; }
    :root body#royal-blue-app #content > .rb-unified-heading .rb-heading-icon svg { width: 24px !important; height: 24px !important; }
  }
  @media (max-width: 380px) {
    body#royal-blue-app:not(.community-view) .topbar .topbar-brand strong { font-size: 14px !important; letter-spacing: -.1px !important; }
  }
  /* @@dau-trang-mobile-25-10 end */

  /* @@do-tay-mobile-26-10 begin */
  /* Do thu cong tren dien thoai (26-10-2026): "?" va "Bieu do" la hai nut bieu tuong o goc phai cung hang tieu de ("Xem lich su" nam o thanh Luu
     dinh day); hop thoai bieu do vua man hinh. */
  @media (max-width: 700px) {
    :root body#royal-blue-app #content > .rb-unified-heading:has(#manual-chart) { flex-wrap: nowrap !important; align-items: flex-start !important; gap: 8px !important; }
    :root body#royal-blue-app #content > .rb-unified-heading:has(#manual-chart) > .rb-heading-main { flex: 1 1 0 !important; min-width: 0 !important; }
    :root body#royal-blue-app #content > .rb-unified-heading:has(#manual-chart) > .head-actions { display: flex !important; flex: 0 0 auto !important; width: auto !important; margin: 0 !important; gap: 6px !important; }
    :root body#royal-blue-app #content > .rb-unified-heading #manual-chart { width: 40px !important; min-width: 40px !important; height: 40px !important; min-height: 40px !important; padding: 0 !important; justify-content: center !important; }
    :root body#royal-blue-app #content > .rb-unified-heading #manual-chart span { display: none !important; }
    :root body#royal-blue-app .mc-tools { align-items: stretch !important; }
    :root body#royal-blue-app .mc-param { max-width: none !important; flex-basis: 100% !important; }
    :root body#royal-blue-app .mc-period { width: 100% !important; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    :root body#royal-blue-app .mc-chart { padding: 4px !important; }
    :root body#royal-blue-app .mc-foot .btn { flex: 1 1 0 !important; justify-content: center !important; min-height: 44px !important; }
  }
  /* @@do-tay-mobile-26-10 end */

  /* Thẻ số đo (Tổng quan, Quan trắc) - dòng "Tham chiếu tiêu chuẩn" (26-10-2026): nhãn giữ một dòng, giới hạn dài (vd. độ kiềm "≥ 100 · ≤ 200 mg CaCO₃/L
     (theo CaCO₃)") xuống dòng bên phải thay vì bóp nhãn thành cột chữ dọc */
  :root body#royal-blue-app .instrument-reading .ir-scale-heading {display:grid !important;grid-template-columns:auto minmax(0,1fr) !important;align-items:start !important;gap:2px 10px !important}
  :root body#royal-blue-app .instrument-reading .ir-scale-heading > span {white-space:nowrap !important;min-width:max-content !important}
  :root body#royal-blue-app .instrument-reading .ir-scale-heading > strong {min-width:0 !important;text-align:right !important;white-space:normal !important;overflow-wrap:anywhere !important}

  /* Đo thủ công › Chất lượng mẫu (26-10-2026): biểu tượng trước Hợp lệ / Nghi ngờ / Lỗi, cùng màu chữ (trắng khi nút đang chọn) */
  body#royal-blue-app#royal-blue-app #manual-form .mq-seg span {gap:8px !important}
  body#royal-blue-app#royal-blue-app #manual-form .mq-seg span::before {content:"";flex:none;width:18px;height:18px;background:currentColor;-webkit-mask:var(--mq-ic) center / contain no-repeat;mask:var(--mq-ic) center / contain no-repeat}
  body#royal-blue-app#royal-blue-app #manual-form .mq-seg label:nth-child(1) {--mq-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.7 2.7L16.5 9.5'/%3E%3C/svg%3E")}
  body#royal-blue-app#royal-blue-app #manual-form .mq-seg label:nth-child(2) {--mq-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5L2.5 20h19L12 3.5z'/%3E%3Cpath d='M12 10v4.5M12 17.5v.01'/%3E%3C/svg%3E")}
  body#royal-blue-app#royal-blue-app #manual-form .mq-seg label:nth-child(3) {--mq-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9 9l6 6M15 9l-6 6'/%3E%3C/svg%3E")}
  @media (max-width: 700px) {
    body#royal-blue-app#royal-blue-app #manual-form .mq-seg span {gap:5px !important;padding-left:6px !important;padding-right:6px !important;white-space:nowrap !important}
    body#royal-blue-app#royal-blue-app #manual-form .mq-seg span::before {width:15px;height:15px}
  }
  @media (max-width: 359px) {
    body#royal-blue-app#royal-blue-app #manual-form .mq-seg span {gap:4px !important;padding-left:4px !important;padding-right:4px !important;font-size:13px !important}
    body#royal-blue-app#royal-blue-app #manual-form .mq-seg span::before {width:14px;height:14px}
  }

  /* Thẻ Phản ánh (26-10-2026): vòng biểu tượng cùng màu cam với nút "Gửi phản ánh" */
  @media (max-width: 700px) {
    :root body#royal-blue-app#royal-blue-app.community-view #citizen-complaint > h2 svg {background:linear-gradient(145deg,#ffad42,#f08a12 58%,#d97706) !important;box-shadow:0 0 0 6px rgba(217,119,6,.12),0 10px 18px -8px rgba(217,119,6,.75) !important;color:#fff !important;stroke:#fff !important}
    body#royal-blue-app.community-view .cz-dock-complaint .cz-dock-ic {background:linear-gradient(145deg,#ffad42,#f08a12 58%,#d97706) !important;box-shadow:0 0 0 4px rgba(217,119,6,.12),0 6px 12px -6px rgba(217,119,6,.8) !important}
  }

  /* Đầu trang trên điện thoại (26-10-2026): "Thao tác khác" (chỉ có khi tài khoản có thêm thao tác, vd. quản trị viên ở Đo thủ công) thu thành
     nút tròn "⋯" 40 px như các nút biểu tượng bên cạnh, để tiêu đề trang không bị bóp thành cột hẹp */
  @media (max-width: 700px) {
    body#royal-blue-app#royal-blue-app:not(.community-view) #content .page-head.rb-unified-heading .head-actions .action-menu > summary {display:grid !important;place-items:center !important;box-sizing:border-box !important;width:40px !important;min-width:40px !important;height:40px !important;min-height:40px !important;padding:0 !important;font-size:0 !important;line-height:0 !important;color:transparent !important;list-style:none !important}
    body#royal-blue-app#royal-blue-app:not(.community-view) #content .page-head.rb-unified-heading .head-actions .action-menu > summary::-webkit-details-marker {display:none !important}
    body#royal-blue-app#royal-blue-app:not(.community-view) #content .page-head.rb-unified-heading .head-actions .action-menu > summary::after {display:none !important;content:none !important}
    body#royal-blue-app#royal-blue-app:not(.community-view) #content .page-head.rb-unified-heading .head-actions .action-menu > summary::before {content:"⋯" !important;display:block !important;font-size:22px !important;line-height:1 !important;font-weight:800 !important;color:#24467e !important;transform:none !important}
    body#royal-blue-app#royal-blue-app:not(.community-view) #content .page-head.rb-unified-heading .head-actions .action-menu > .action-menu-panel {right:0 !important;left:auto !important;min-width:220px !important}
  }

  /* Trang người dân › "Phóng rộng bản đồ" (26-10-2026): bản đồ phóng rộng bắt đầu dưới menu đầu trang (menu dính, nền trong mờ) thay vì từ mép
     màn hình, để hai lớp không chồng lên nhau */
  @media (max-width: 700px) {
    :root body#royal-blue-app#royal-blue-app.community-view .citizen-map-column > .shared-observatory-map.expanded {top:calc(var(--cz-head-h, 58px) + 8px) !important;z-index:59 !important;box-shadow:0 18px 48px -18px rgba(15,45,94,.45) !important}
  }

  /* Quan trắc trên điện thoại (26-10-2026): ba bảng của trang không còn phải kéo qua lại để đọc.
     Bảng số liệu: cột Thời điểm cố định bên trái, dòng tiêu đề cố định trên, bỏ cột Nguồn (cả bảng cùng một nguồn), số gọn.
     Chất lượng mẫu và Căn cứ tiêu chuẩn: mỗi dòng thành một thẻ (thời điểm + cờ ở đầu, chỉ tiêu, giá trị, lý do / kết quả bên dưới). */
  @media (max-width: 700px) {
    body#royal-blue-app:not(.community-view) #content .monitor-samples {overflow:auto !important;max-height:70vh !important;-webkit-overflow-scrolling:touch}
    body#royal-blue-app:not(.community-view) #content .monitor-samples table {min-width:0 !important;width:max-content !important;border-collapse:separate !important;border-spacing:0 !important}
    body#royal-blue-app:not(.community-view) #content .monitor-samples :is(th,td) {padding:7px 8px !important;font-size:13px !important;white-space:nowrap !important;font-variant-numeric:tabular-nums}
    body#royal-blue-app:not(.community-view) #content .monitor-samples th {max-width:84px !important;white-space:normal !important;line-height:1.25 !important;font-size:11.5px !important;vertical-align:bottom !important}
    body#royal-blue-app:not(.community-view) #content .monitor-samples thead th {position:sticky !important;top:0 !important;z-index:2 !important;background:#f3f7fd !important}
    body#royal-blue-app:not(.community-view) #content .monitor-samples :is(th,td):first-child {position:sticky !important;left:0 !important;z-index:1 !important;width:90px !important;min-width:90px !important;max-width:90px !important;padding-left:8px !important;padding-right:6px !important;white-space:normal !important;line-height:1.25 !important;background:#fff !important;box-shadow:2px 0 0 #dbe5f2 !important;font-size:12px !important}
    body#royal-blue-app:not(.community-view) #content .monitor-samples thead th:first-child {z-index:3 !important;background:#f3f7fd !important}
    body#royal-blue-app:not(.community-view) #content .monitor-samples tbody tr:nth-child(even) td {background:#f8fbff !important}
    body#royal-blue-app:not(.community-view) #content .monitor-samples :is(th,td):nth-child(2) {display:none !important}
    body#royal-blue-app:not(.community-view) #content .monitor-samples td .badge {padding:2px 6px !important;font-size:11px !important}
    body#royal-blue-app:not(.community-view) #content .monitor-samples td:first-child nb-dt {display:block !important;white-space:normal !important;word-spacing:90px !important;font-size:11.5px !important;line-height:1.3 !important}
    body#royal-blue-app:not(.community-view) #content .monitor-samples td[colspan] {position:static !important;width:auto !important;max-width:none !important;box-shadow:none !important}

    body#royal-blue-app:not(.community-view) #content :is(.monitor-quality-table,.monitor-standards-table .table-wrap) {overflow:visible !important;max-height:none !important;border:0 !important;background:none !important;box-shadow:none !important}
    body#royal-blue-app:not(.community-view) #content :is(.monitor-quality-table,.monitor-standards-table) table {display:block !important;width:100% !important;min-width:0 !important;border:0 !important;background:none !important}
    body#royal-blue-app:not(.community-view) #content :is(.monitor-quality-table,.monitor-standards-table) thead {position:absolute !important;width:1px !important;height:1px !important;overflow:hidden !important;clip-path:inset(50%) !important}
    body#royal-blue-app:not(.community-view) #content :is(.monitor-quality-table,.monitor-standards-table) tbody {display:grid !important;gap:8px !important}
    body#royal-blue-app:not(.community-view) #content :is(.monitor-quality-table,.monitor-standards-table) tr {display:grid !important;grid-template-columns:minmax(0,1fr) auto !important;gap:4px 10px !important;padding:10px 12px !important;border:1px solid #dbe5f2 !important;border-radius:12px !important;background:#fff !important}
    body#royal-blue-app:not(.community-view) #content :is(.monitor-quality-table,.monitor-standards-table) td {display:block !important;min-width:0 !important;padding:0 !important;border:0 !important;background:none !important;white-space:normal !important;overflow-wrap:anywhere !important;font-size:14px !important}
    body#royal-blue-app:not(.community-view) #content :is(.monitor-quality-table,.monitor-standards-table) td:first-child {grid-column:1 !important;grid-row:1 !important;font-size:12.5px !important;color:#4a5d70 !important;font-weight:600 !important}
    body#royal-blue-app:not(.community-view) #content :is(.monitor-quality-table,.monitor-standards-table) td[colspan] {grid-column:1 / -1 !important}
    /* Chất lượng mẫu: 1 thời điểm · 2 chỉ tiêu · 3 giá trị · 4 cờ · 5 lý do */
    body#royal-blue-app:not(.community-view) #content .monitor-quality-table td:nth-child(4) {grid-column:2 !important;grid-row:1 !important;justify-self:end !important}
    body#royal-blue-app:not(.community-view) #content .monitor-quality-table td:nth-child(2) {grid-column:1 !important;grid-row:2 !important;font-weight:800 !important;color:#16324f !important}
    body#royal-blue-app:not(.community-view) #content .monitor-quality-table td:nth-child(3) {grid-column:2 !important;grid-row:2 !important;justify-self:end !important;font-weight:700 !important;font-variant-numeric:tabular-nums}
    body#royal-blue-app:not(.community-view) #content .monitor-quality-table td:nth-child(5) {grid-column:1 / -1 !important;grid-row:3 !important;padding-top:6px !important;border-top:1px dashed #dbe5f2 !important;color:#33475b !important;font-size:13px !important}
    /* Căn cứ tiêu chuẩn: 1 thời điểm đo · 2 bộ tiêu chuẩn · 3 kết quả · 4 ghi nhận */
    body#royal-blue-app:not(.community-view) #content .monitor-standards-table td:nth-child(n+2) {grid-column:1 / -1 !important}
    body#royal-blue-app:not(.community-view) #content .monitor-standards-table td:nth-child(n+2)::before {display:block !important;margin:4px 0 2px !important;font-size:11px !important;font-weight:600 !important;color:#5d7090 !important}
    body#royal-blue-app:not(.community-view) #content .monitor-standards-table td:nth-child(2)::before {content:"Bộ tiêu chuẩn đã lưu" !important}
    body#royal-blue-app:not(.community-view) #content .monitor-standards-table td:nth-child(3)::before {content:"Kết quả đối chiếu" !important}
    body#royal-blue-app:not(.community-view) #content .monitor-standards-table td:nth-child(4)::before {content:"Ghi nhận" !important}
    body#royal-blue-app:not(.community-view) #content .monitor-standards-table td[colspan]::before {content:none !important}
  }

  /* Bản đồ GIS trên điện thoại (26-10-2026): khi chọn một chỉ tiêu (NH4, DO…) khung chú giải dải màu không còn đè lên nút phóng to và thanh
     Màu nước / Dòng chảy: nó thành một thẻ trắng rộng hết bản đồ ngay dưới hai nút chọn lớp, đẩy bản đồ xuống. */
  @media (max-width: 700px) {
    body#royal-blue-app #content #river-workspace.gis-lens-on .gis-lens {height:auto !important;flex-wrap:wrap !important;align-items:flex-start !important}
    body#royal-blue-app #content #river-workspace.gis-lens-on .gis-lens .gis-lens-legend:not([hidden]) {flex:0 0 auto !important;box-sizing:border-box !important;width:calc(200% + 8px) !important;max-width:none !important;margin:8px 0 0 !important;padding:8px 10px !important;border:1px solid #dbe5f2 !important;border-radius:10px !important;background:#fff !important;box-shadow:0 4px 12px -8px rgba(15,45,94,.35) !important;flex-wrap:wrap !important;gap:4px 10px !important}
    body#royal-blue-app #content #river-workspace.gis-lens-on .gis-lens .gis-lens-legend strong {flex:1 1 100% !important;font-size:12.5px !important}
    body#royal-blue-app #content #river-workspace.gis-lens-on .gis-lens .gis-lens-legend .gis-lens-scale {flex:1 1 100% !important}
    body#royal-blue-app #content #river-workspace.gis-lens-on .gis-lens .gis-lens-legend small {flex:1 1 100% !important;white-space:normal !important;overflow:visible !important;line-height:1.35 !important}
  }

}

/* ==== device-tablet.css ==== */
  /* Trang nguoi dan (701-1279px): khoi "Thong tin quan trac": hang tren = tieu de + gio cap nhat, hang duoi = 3 o thong ke day chieu rong */
  @media (min-width: 701px) and (max-width: 1279px) {
    body#royal-blue-app.community-view .citizen-data-summary { position: relative; display: grid !important; align-items: center; gap: 14px 22px !important; padding: 16px 20px !important; margin: 0 0 14px !important; background: linear-gradient(180deg, #fff, #fbfdff) !important; border: 1px solid #dbe8f7 !important; border-radius: 16px !important; box-shadow: 0 6px 20px rgba(23, 62, 174, .06) !important; color: #1f3d66 !important; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-data-mode { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 12px; align-items: center; min-width: 0; border: 0 !important; padding: 0 !important; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-data-mode::before { content: ""; grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 13px; border: 1px solid #d3e2fa; background: #eaf2ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5fe0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20V10h3v10M10 20V4h3v16M16 20v-7h3v7'/%3E%3C/svg%3E") center / 22px 22px no-repeat; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-data-mode strong { font-size: 15px !important; font-weight: 800; line-height: 1.25; color: #0f2d5e; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-data-mode p { margin: 2px 0 0 !important; font-size: 12.5px !important; line-height: 1.45 !important; color: #566f8f; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px !important; min-width: 0; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span { position: relative; display: grid; gap: 1px; min-width: 0; padding: 9px 12px 9px 15px !important; border-radius: 12px; background: #f3f8ff; border: 1px solid #dfeafb; font-size: 12px !important; line-height: 1.3; color: #566f8f; white-space: nowrap; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--cv, #1a5fe0); }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span:nth-child(1) { --cv: #1a5fe0; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span:nth-child(2) { --cv: #0f9d7a; background: #f1faf7; border-color: #d8f0e8; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span:nth-child(3) { --cv: #7c8ca6; background: #f5f7fa; border-color: #e3e8f0; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage b { display: block; font-size: 26px !important; line-height: 1.1; font-weight: 800; letter-spacing: -.4px; color: var(--cv, #1a5fe0) !important; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-fetch-time { margin: 0 !important; min-width: 0; font-size: 12px !important; line-height: 1.5 !important; color: #566f8f; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-fetch-time nb-dt { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 3px 10px 3px 8px; border-radius: 999px; background: #eef5ff; border: 1px solid #d3e2fa; font-weight: 800; color: #14407f; white-space: nowrap; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-fetch-time nb-dt::before { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5fe0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 110 18 9 9 0 010-18M12 7.5V12l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-fetch-time small { display: block; margin-top: 4px; font-size: 11.5px !important; line-height: 1.4; color: #6b819d; }

    body#royal-blue-app.community-view .citizen-data-summary { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-data-mode { grid-column: 1; grid-row: 1; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage { grid-column: 1 / -1; grid-row: 2; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-fetch-time { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; }
  }

/* Nhanh Tablet: 701 - 1279px
   Chi dat CSS cua dai man hinh nay, trong @media cua dai do; khong sua tep CSS cu.
   Quy uoc: ghi de trong @layer readability voi !important (xem CLAUDE.md). Sua xong chay: php artisan assets:bundle */
@layer readability {
  @media (min-width: 701px) and (max-width: 1279px) {
    /* 2. Quan tri > Tong quan: the cot toi thieu 260 px chia the thanh nhieu cot hep o iPad ngang (nhan rong 82-113 px, "Lan gui gan nhat" xuong 2 dong).
       Cot 300 px: it cot hon, moi the du rong; hang thong tin tu xuong dong gon (nhan giu nguyen, gia tri xuong dong duoi neu khong du cho). */
    :root body#royal-blue-app.royal-blue-interface #content .aov-grid {grid-template-columns:repeat(auto-fill,minmax(300px,1fr))!important}
    :root body#royal-blue-app.royal-blue-interface #content .aov-row {flex-wrap:wrap!important;align-items:baseline}
    :root body#royal-blue-app.royal-blue-interface #content .aov-row dt {flex:0 0 auto!important;white-space:nowrap!important}
    :root body#royal-blue-app.royal-blue-interface #content .aov-row dd {flex:1 1 auto!important;min-width:0;text-align:right}
    :root body#royal-blue-app.royal-blue-interface #content .aov-link {white-space:nowrap!important}
  }

  /* Câu hỏi thường gặp: nút "Đến mục phản ánh" trong câu trả lời (24-10-2026) */
  @media (min-width: 701px) and (max-width: 1279px) {
    body#royal-blue-app.community-view .citizen-faq .citizen-faq-go {display:inline-flex !important;align-items:center !important;gap:8px !important;min-height:44px !important;margin:2px 0 12px !important;padding:0 16px !important;border:1px solid #f1d9bb !important;border-radius:999px !important;background:#fff8ef !important;color:#8a4b06 !important;font:inherit !important;font-size:14px !important;font-weight:700 !important;cursor:pointer !important}
    body#royal-blue-app.community-view .citizen-faq .citizen-faq-go:active {background:#fff1e0 !important}
    body#royal-blue-app.community-view .citizen-faq .citizen-faq-go svg {width:15px !important;height:15px !important;color:#d97706 !important}
  }

  /* @@quan-tri-24-10 begin */
  /* 3. Quan tri (#admin) tren may tinh bang (24-10-2026): cung he thong voi dien thoai va may tinh cho moi the con.
        Vung cham 44 px ca khi dung but/chuot (iPad co ban phim, man 1024 cam ung), khoi noi dung co theo man hinh (bang trong .anh/.aml
        tung day the rong qua khung), thanh con tu xuong dong, nut thao tac cua dong danh sach chu 13 px (truoc 10 px), hop thoai rong vua. */
  @media (min-width: 701px) and (max-width: 1279px) {
    :root body#royal-blue-app #content:has(.admin-workspace-top) .page-head {margin-bottom:12px !important}
    :root body#royal-blue-app #content:has(.admin-workspace-top) .page-head h1 {font-size:22px !important;line-height:1.25 !important}
    :root body#royal-blue-app #content .admin-workspace-top .admin-context {padding:14px 18px 14px 22px !important;margin-bottom:12px !important}
    :root body#royal-blue-app #content .admin-workspace-top .admin-context h2 {font-size:20px !important;line-height:1.3 !important}
    :root body#royal-blue-app #content .admin-workspace-top .admin-context p {font-size:14px !important;line-height:1.5 !important}
    :root body#royal-blue-app #content .admin-workspace-top :is(.admin-topbar-tab,.admin-menu-search) {min-height:44px !important;box-sizing:border-box !important}
    :root body#royal-blue-app #content .admin-workspace-top .admin-menu :is(.admin-nav-item,.admin-menu-close) {min-height:44px !important}

    :root body#royal-blue-app #content .admin-workspace-top .admin-subnav {flex-wrap:wrap !important;gap:4px !important}
    :root body#royal-blue-app #content .admin-workspace-top .admin-subnav-item {display:flex !important;align-items:center;justify-content:center;flex:1 1 auto;min-height:44px !important;padding:6px 12px !important;font-size:14px !important;line-height:1.3 !important;text-align:center}

    :root body#royal-blue-app #content .admin-workspace-top :is(.admin-main,#admin-panel,#admin-panel > *,.anh,.aml,.aml-grid > *,.anh-setup > *) {min-width:0 !important;max-width:100% !important}
    :root body#royal-blue-app #content .admin-workspace-top :is(.anh,.aml) {grid-template-columns:minmax(0,1fr) !important}
    :root body#royal-blue-app #content .admin-workspace-top .aml-grid {grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr)) !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel :is(section.card,.card:not(.admin-record)) {padding:18px !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .card .card {padding:14px !important}

    :root body#royal-blue-app #content .admin-workspace-top .admin-editor-tabs > * {min-height:44px !important;padding:8px 14px !important;font-size:14px !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .field > label {font-size:14px !important;line-height:1.4 !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]):not(.vn-dt-native),select,textarea) {box-sizing:border-box !important;max-width:100% !important;min-height:44px !important;font-size:15px !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel :is(.field small,.admin-field-help,.admin-section-description,.section-note,.admin-detail-note,.admin-reason-note) {font-size:13px !important;line-height:1.5 !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel :is(input[type=checkbox],input[type=radio]) {width:22px !important;height:22px !important}

    :root body#royal-blue-app #content .admin-workspace-top #admin-panel :is(.btn,button:not(.adm-color-chip):not(.adm-color-default),summary,.admin-text-button,.pg-btn,.pg-size select,.vn-dt-open) {min-height:44px !important;box-sizing:border-box !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel :is(.pg-btn,.vn-dt-open,.icon-button) {min-width:44px !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel summary {display:flex;align-items:center}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .admin-record > summary {min-height:56px !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .admin-record-summary strong {font-size:14px !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .admin-record-summary small {font-size:12.5px !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .admin-record-actions > .btn {padding:8px 12px !important;font-size:13px !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .admin-record-actions > span {font-size:12.5px !important}

    /* bang: giu dang bang, cuon ngang trong khung cua no; chu trong o duoc xuong dong de bot cuon */
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel :is(.table-wrap,.anh-scroll,.asys-scroll) {max-width:100%;overflow-x:auto !important;-webkit-overflow-scrolling:touch}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel table.admin-card-table td {white-space:normal !important;overflow-wrap:break-word}

    /* Phan quyen vai tro: nut "Ve mac dinh" va nhan trong the vai tro o cot chu, khong lam phinh cot bieu tuong */
    @container rpm (max-width: 760px) {
      :root body#royal-blue-app #content .admin-workspace-top #admin-panel .rpm-rolehead > :not(.rpm-roleicon) {grid-column:2 !important;min-width:0;overflow-wrap:break-word}
      :root body#royal-blue-app #content .admin-workspace-top #admin-panel .rpm-rolehead > .rpm-link {grid-column:1 / -1 !important;justify-self:stretch;justify-content:center;white-space:nowrap;margin-top:6px}
    }

    :root body#royal-blue-app #content .admin-workspace-top .admin-save-area > .form-actions > .btn {min-height:44px !important}

    :root body#royal-blue-app:has(.admin-workspace-top) #modal-root .modal:not(.wide) {width:min(760px,94vw) !important;max-width:94vw !important}
    :root body#royal-blue-app:has(.admin-workspace-top) #modal-root .modal {max-height:calc(100dvh - 32px) !important;overflow-y:auto !important}
    :root body#royal-blue-app:has(.admin-workspace-top) #modal-root .modal :is(.btn,button[type=submit],#close-modal) {min-height:44px !important}
    :root body#royal-blue-app:has(.admin-workspace-top) #modal-root .modal #close-modal {min-width:44px !important}
    :root body#royal-blue-app:has(.admin-workspace-top) #modal-root .modal :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]):not(.vn-dt-native),select,textarea) {min-height:44px !important;font-size:15px !important}
  }
  /* may tinh bang doc (701-900 px): mot cot truong de o nhap du rong */
  @media (min-width: 701px) and (max-width: 900px) {
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .form-grid {grid-template-columns:minmax(0,1fr) !important}
    :root body#royal-blue-app #content .admin-workspace-top .anh-setup {grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  }

  /* Bo chon ma bam/cham (admin-code-pickers.js), may tinh bang */
  @media (min-width: 701px) and (max-width: 1279px) {
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .field:has(> .adm-codes.is-multiple) {grid-column:1/-1 !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes {display:grid;gap:8px;margin-top:2px;min-width:0}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr));gap:8px}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code {display:grid !important;grid-template-columns:24px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;min-width:0;min-height:52px !important;margin:0 !important;padding:7px 12px !important;border:1.5px solid #d6e2f1 !important;border-radius:12px !important;background:#fff !important;color:#17304f !important;text-align:left !important;font:inherit;cursor:pointer;box-shadow:none !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code > i {grid-row:1 / span 2;display:grid;place-items:center;box-sizing:border-box;width:24px;height:24px;border:2px solid #b9cbe3;border-radius:7px;background:#fff;color:#fff;font-style:normal;font-size:12.5px;font-weight:800;line-height:1}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes.is-single .adm-code > i {border-radius:50%}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code b {grid-column:2;font-size:14.5px !important;font-weight:800;line-height:1.25;overflow-wrap:break-word}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code span {grid-column:2;color:#5a6f8c;font-size:12.5px !important;line-height:1.3;overflow-wrap:break-word}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code:hover {border-color:#9ec0ff !important;background:#f4f8ff !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code:focus-visible {outline:3px solid #9ec0ff;outline-offset:2px}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code:is([aria-checked=true],[aria-pressed=true]) {border-color:#175adb !important;background:#eef4ff !important;box-shadow:0 0 0 3px #dbe8ff !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code:is([aria-checked=true],[aria-pressed=true]) > i {border-color:#175adb;background:#175adb}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code:is([aria-checked=true],[aria-pressed=true]) > i.adm-code-tick {background:#175adb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/15px 15px no-repeat}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code.is-unknown {border-style:dashed !important;border-color:#e0a84a !important;background:#fffaf0 !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code[data-level] {border-left-width:6px !important;border-left-color:var(--lv,#9db0c9) !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code[data-level="0"] {--lv:#12a150}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code[data-level="1"] {--lv:#f5c000}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code[data-level="2"] {--lv:#ff7a1a}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code[data-level="3"] {--lv:#e5251b}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code[data-level="4"] {--lv:#7e0023}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code-empty b {font-weight:700}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-order {display:flex;flex-wrap:wrap;gap:6px;padding:8px;border:1px dashed #cfdcf0;border-radius:12px;background:#f8fbff}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-order-title {flex:1 1 100%;color:#5a6f8c;font-size:12.5px;font-weight:600}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-order-item {display:inline-flex;align-items:center;gap:2px;padding:2px 3px 2px 10px;border:1px solid #d6e2f1;border-radius:999px;background:#fff;color:#17304f}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-order-item > i {margin-right:4px;color:#175adb;font-style:normal;font-size:12px;font-weight:800}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-order-item > b {margin-right:2px;font-size:14px}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-order-move {display:grid !important;place-items:center;width:44px !important;min-width:44px !important;height:44px !important;min-height:44px !important;padding:0 !important;border:0 !important;border-radius:50% !important;background:#eef4ff !important;color:#175adb !important;font-size:19px !important;font-weight:800;line-height:1;cursor:pointer}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-order-move:disabled {opacity:.35;cursor:default}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-tools {display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-state {display:block;color:#5a6f8c;font-size:12.5px !important;line-height:1.45}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-state[data-tone="warn"] {color:#b03a12;font-weight:600}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-new {display:flex;gap:8px;align-items:center}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-new[hidden] {display:none !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-new > input {flex:1 1 auto;min-width:0}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-select {width:100%;max-width:560px}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .admin-record-body .adm-codes-grid {grid-template-columns:repeat(auto-fill,minmax(min(120px,100%),1fr))}
  }
  /* @@quan-tri-24-10 end */

  /* Trang nguoi dan: thanh dau trang cua may tinh (device-desktop.css) cho laptop nho 1001-1279 px, khit hon; duoi 1200 px nut can bo dung nhan ngan (24-10-2026) */
  @media (min-width: 1001px) and (max-width: 1279px) {
    :root body#royal-blue-app.community-view .citizen-header {position:sticky !important;top:0 !important;z-index:3000 !important;background:rgba(255,255,255,.86) !important;-webkit-backdrop-filter:saturate(1.6) blur(14px) !important;backdrop-filter:saturate(1.6) blur(14px) !important;border-bottom:1px solid rgba(214,226,242,.9) !important;box-shadow:0 10px 28px -24px rgba(15,45,94,.55) !important}
    :root body#royal-blue-app.community-view .citizen-dashboard [id] {scroll-margin-top:88px !important}
    :root body#royal-blue-app.community-view #content {max-width:none !important;padding:0 !important}
    :root body#royal-blue-app.community-view .citizen-header-inner {flex-wrap:nowrap !important;min-height:72px !important;gap:18px !important;padding:0 32px !important}
    :root body#royal-blue-app.community-view .citizen-header nav {align-items:center !important;gap:4px !important;margin:0 auto !important;padding:4px !important;border:1px solid #e3ebf6 !important;border-radius:999px !important;background:#f6f9fe !important}
    :root body#royal-blue-app.community-view .citizen-header nav button {min-height:40px !important;height:40px !important;padding:0 16px !important;border-radius:999px !important;font-size:14px !important;font-weight:600 !important;color:#2b4a70 !important;background:transparent !important;transition:background-color .15s ease,color .15s ease,box-shadow .15s ease !important}
    :root body#royal-blue-app.community-view .citizen-header nav button::after {display:none !important}
    :root body#royal-blue-app.community-view .citizen-header nav button:not(.citizen-nav-cta):hover {background:#e9f1ff !important;color:#0f47b3 !important}
    :root body#royal-blue-app.community-view .citizen-header nav button.active:not(.citizen-nav-cta) {background:#fff !important;color:#0f2d5e !important;font-weight:750 !important;box-shadow:0 1px 2px rgba(15,45,94,.08),0 4px 12px -6px rgba(15,45,94,.25) !important}
    :root body#royal-blue-app.community-view .citizen-header nav button:focus-visible {outline:3px solid #aac8ff !important;outline-offset:2px !important}
    :root body#royal-blue-app.community-view .citizen-header nav .citizen-nav-cta {gap:8px !important;margin-left:6px !important;padding:0 18px 0 14px !important;background:linear-gradient(145deg,#3b8bff,#0862ff 55%,#0a4fd1) !important;color:#fff !important;font-weight:700 !important;box-shadow:0 2px 4px rgba(8,98,255,.25),0 10px 18px -10px rgba(8,98,255,.85) !important}
    :root body#royal-blue-app.community-view .citizen-header nav .citizen-nav-cta::before {content:"" !important;flex:none !important;width:17px !important;height:17px !important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E") center / contain no-repeat !important}
    :root body#royal-blue-app.community-view .citizen-header nav .citizen-nav-cta.has-svg::before {display:none !important}
    :root body#royal-blue-app.community-view .citizen-header nav .citizen-nav-cta:hover {filter:brightness(1.06) !important;transform:translateY(-1px) !important}
    :root body#royal-blue-app.community-view .citizen-staff {display:inline-flex !important;align-items:center !important;gap:8px !important;min-height:42px !important;height:42px !important;padding:0 16px 0 14px !important;border:1px solid #d3e2fa !important;border-radius:999px !important;background:#fff !important;color:#0f3f86 !important;font-size:14px !important;font-weight:700 !important;box-shadow:0 1px 2px rgba(15,45,94,.06) !important;transition:background-color .15s ease,border-color .15s ease !important}
    :root body#royal-blue-app.community-view .citizen-staff svg {display:block !important;order:-1 !important;width:16px !important;height:16px !important;color:#175adb !important}
    :root body#royal-blue-app.community-view .citizen-staff:hover {background:#eef4ff !important;border-color:#9fc0f5 !important}
    :root body#royal-blue-app.community-view .citizen-header-search {width:42px !important;height:42px !important;min-width:42px !important;min-height:42px !important;padding:0 !important;border:1px solid #e3ebf6 !important;border-radius:50% !important;background:#f6f9fe !important;color:#1f4f8f !important;transition:background-color .15s ease,border-color .15s ease !important}
    :root body#royal-blue-app.community-view .citizen-header-search svg {width:19px !important;height:19px !important}
    :root body#royal-blue-app.community-view .citizen-header-search:hover {background:#eef4ff !important;border-color:#9fc0f5 !important;color:#175adb !important}
    :root body#royal-blue-app.community-view :is(.citizen-staff,.citizen-header-search):focus-visible {outline:3px solid #aac8ff !important;outline-offset:2px !important}
  
    :root body#royal-blue-app.community-view .citizen-header-inner {gap:10px !important;padding:0 20px !important}
    :root body#royal-blue-app.community-view .citizen-header nav {gap:2px !important}
    :root body#royal-blue-app.community-view .citizen-header nav button {padding:0 12px !important;font-size:13.5px !important}
    :root body#royal-blue-app.community-view .citizen-header nav .citizen-nav-cta {margin-left:4px !important;padding:0 14px 0 12px !important}
  }
  @media (min-width: 1001px) and (max-width: 1199px) {
    :root body#royal-blue-app.community-view .citizen-brand small {font-size:11px !important}
    :root body#royal-blue-app.community-view .citizen-staff .citizen-staff-label {display:none !important}
    :root body#royal-blue-app.community-view .citizen-staff .citizen-staff-short {display:inline !important}
    :root body#royal-blue-app.community-view .citizen-staff {padding:0 14px 0 12px !important}
  }

  /* @@dieu-huong-25-10 begin */
  /* Dieu huong nhanh (25-10-2026, docs/KE_HOACH_TOI_UU_DIEU_HUONG.md): may tinh bang dung 701-1000 px, noi menu ben dang an vao nut menu,
     cung co thanh duoi nhu dien thoai (Quan tri > Menu > bottom_nav_tablet bat thi app.js gan body.qn-bottom-tablet). */
  @media (min-width: 701px) and (max-width: 1000px) {
    body#royal-blue-app.qn-bottom-tablet:not(.community-view) .bottom-nav {display:grid !important;grid-template-columns:repeat(var(--bn-count,4),minmax(0,1fr));gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:90;box-sizing:border-box;padding:6px max(16px,calc((100vw - 760px) / 2)) calc(6px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #e3ecf8;box-shadow:0 -12px 28px -20px rgba(19,56,88,.5)}
    body#royal-blue-app.qn-bottom-tablet .bottom-nav .bn-item {position:relative;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:48px;padding:4px 6px;border:0;border-radius:12px;background:transparent;color:#5f7391 !important;font-family:inherit !important;font-size:13px !important;font-weight:600 !important;line-height:1.2 !important;text-decoration:none !important;cursor:pointer}
    body#royal-blue-app.qn-bottom-tablet .bottom-nav .bn-item span {max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit !important}
    body#royal-blue-app.qn-bottom-tablet .bottom-nav .bn-item svg {flex:none;width:21px;height:21px}
    body#royal-blue-app.qn-bottom-tablet .bottom-nav .bn-item.active {background:#e8f0ff !important;color:#1754bc !important}
    body#royal-blue-app.qn-bottom-tablet .bottom-nav .bn-item:focus-visible {outline:3px solid #aac8ff;outline-offset:1px}
    body#royal-blue-app.qn-bottom-tablet .bottom-nav .bn-count {position:absolute;top:3px;left:calc(50% - 2px);box-sizing:border-box;min-width:17px;height:17px;padding:0 4px;border:2px solid #fff;border-radius:99px;background:#e5251b;color:#fff;font-size:10px;font-style:normal;font-weight:700;line-height:13px;text-align:center}
    body#royal-blue-app.qn-bottom-tablet:not(.community-view) .workspace {padding-bottom:calc(68px + env(safe-area-inset-bottom,0px)) !important}
    body#royal-blue-app.qn-bottom-tablet:not(.community-view) #content .admin-workspace #settings-form[data-dirty] .admin-save-area,
    body#royal-blue-app.qn-bottom-tablet:not(.community-view) #content .admin-workspace-top .admin-dirty-bar {bottom:calc(72px + env(safe-area-inset-bottom,0px)) !important}
    html:has(body.qn-bottom-tablet:not(.community-view)) {scroll-padding-bottom:calc(84px + env(safe-area-inset-bottom,0px)) !important}
  }
  /* @@dieu-huong-25-10 end */

  /* Dien thoai xoay ngang va may tinh bang doc (701-1023 px, 26-10-2026): dong nguon anh duoi ban do phan dau trang dung ban ngan tren
     mot dong; dai canh bao tren phan thoi tiet: hang dau la bieu tuong + tieu de + nut, loi khuyen xuong hang duoi trai het chieu ngang */
  @media (min-width: 701px) and (max-width: 1023px) {
    body#royal-blue-app.community-view .coastal-scene-footer {flex-wrap:nowrap !important;align-items:center !important;gap:8px !important;min-height:0 !important;padding-top:6px !important;padding-bottom:6px !important}
    body#royal-blue-app.community-view .coastal-scene-footer .csf-full {display:none !important}
    body#royal-blue-app.community-view .coastal-scene-footer .csf-short {display:block !important;flex:1 1 auto !important;min-width:0 !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important}
    body#royal-blue-app.community-view .coastal-scene-footer > a {flex:none !important}
    body#royal-blue-app.community-view .citizen-alert-strip {display:grid !important;grid-template-columns:auto minmax(0,1fr) auto !important;align-items:center !important;column-gap:12px !important;row-gap:6px !important;padding:12px 16px !important}
    body#royal-blue-app.community-view .citizen-alert-strip > strong {grid-column:2 !important;grid-row:1 !important;min-width:0 !important;white-space:normal !important;line-height:1.35 !important}
    body#royal-blue-app.community-view .citizen-alert-strip > i {display:none !important}
    body#royal-blue-app.community-view .citizen-alert-strip > button {grid-column:3 !important;grid-row:1 !important}
    body#royal-blue-app.community-view .citizen-alert-strip > p {grid-column:1 / -1 !important;grid-row:2 !important;width:auto !important;max-width:none !important;margin:0 !important;font-size:13.5px !important;line-height:1.5 !important}
  }

  /* 1. Cam ung: moi vung cham 44 px (muc Apple va WCAG 2.5.5 cho ngon tay). Chuot giu kich thuoc day dac cua may tinh.
     `!important` vi cac quy tac cu khong nam trong layer co dat chieu cao; quy tac cu cung layer nhung cu the hon co dong rieng ben duoi.
     Khong dung ::after (nut nha dung san ::after de ve duong ke). */
  /* Thẻ số đo (Tổng quan, Quan trắc) - dòng "Tham chiếu tiêu chuẩn" (26-10-2026): nhãn giữ một dòng, giới hạn dài (vd. độ kiềm "≥ 100 · ≤ 200 mg CaCO₃/L
     (theo CaCO₃)") xuống dòng bên phải thay vì bóp nhãn thành cột chữ dọc */
  :root body#royal-blue-app .instrument-reading .ir-scale-heading {display:grid !important;grid-template-columns:auto minmax(0,1fr) !important;align-items:start !important;gap:2px 10px !important}
  :root body#royal-blue-app .instrument-reading .ir-scale-heading > span {white-space:nowrap !important;min-width:max-content !important}
  :root body#royal-blue-app .instrument-reading .ir-scale-heading > strong {min-width:0 !important;text-align:right !important;white-space:normal !important;overflow-wrap:anywhere !important}

  /* Biểu tượng trước Hiện tại / Thấp nhất / Trung bình / Cao nhất (26-10-2026), Tổng quan và Quan trắc: như bản desktop, cho cả máy tính bảng
     và laptop phóng to 125-150% (cửa sổ 701-1279 px tính theo CSS) */
  @media (min-width: 701px) and (max-width: 1279px) {
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now > span::before { width: 17px; height: 17px; border-radius: 0; flex: none; background: var(--dc-dot, #0b6dff); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 110 18 9 9 0 010-18M12 7.5V12l3 2'/%3E%3C/svg%3E") center / 17px 17px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 110 18 9 9 0 010-18M12 7.5V12l3 2'/%3E%3C/svg%3E") center / 17px 17px no-repeat; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div:nth-child(1) > span::before { width: 17px; height: 17px; border-radius: 0; flex: none; background: var(--dc-dot, #0b6dff); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v13M6 11.5l6 6 6-6M5 21h14'/%3E%3C/svg%3E") center / 17px 17px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v13M6 11.5l6 6 6-6M5 21h14'/%3E%3C/svg%3E") center / 17px 17px no-repeat; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div:nth-child(2) > span::before { width: 17px; height: 17px; border-radius: 0; flex: none; background: var(--dc-dot, #0b6dff); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9c2.2-2.2 4.4-2.2 6.6 0s4.4 2.2 6.6 0 3.2-1.4 4.8 0M3 16c2.2-2.2 4.4-2.2 6.6 0s4.4 2.2 6.6 0 3.2-1.4 4.8 0'/%3E%3C/svg%3E") center / 17px 17px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9c2.2-2.2 4.4-2.2 6.6 0s4.4 2.2 6.6 0 3.2-1.4 4.8 0M3 16c2.2-2.2 4.4-2.2 6.6 0s4.4 2.2 6.6 0 3.2-1.4 4.8 0'/%3E%3C/svg%3E") center / 17px 17px no-repeat; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div:nth-child(3) > span::before { width: 17px; height: 17px; border-radius: 0; flex: none; background: var(--dc-dot, #0b6dff); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V7M6 12.5l6-6 6 6M5 3h14'/%3E%3C/svg%3E") center / 17px 17px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V7M6 12.5l6-6 6 6M5 3h14'/%3E%3C/svg%3E") center / 17px 17px no-repeat; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > .ob-stat-now > span::before { width: 17px; height: 17px; border-radius: 0; flex: none; background: var(--dc-dot, #0b6dff); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 110 18 9 9 0 010-18M12 7.5V12l3 2'/%3E%3C/svg%3E") center / 17px 17px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 110 18 9 9 0 010-18M12 7.5V12l3 2'/%3E%3C/svg%3E") center / 17px 17px no-repeat; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div:nth-child(1) > span::before { width: 17px; height: 17px; border-radius: 0; flex: none; background: var(--dc-dot, #0b6dff); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v13M6 11.5l6 6 6-6M5 21h14'/%3E%3C/svg%3E") center / 17px 17px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v13M6 11.5l6 6 6-6M5 21h14'/%3E%3C/svg%3E") center / 17px 17px no-repeat; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div:nth-child(2) > span::before { width: 17px; height: 17px; border-radius: 0; flex: none; background: var(--dc-dot, #0b6dff); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9c2.2-2.2 4.4-2.2 6.6 0s4.4 2.2 6.6 0 3.2-1.4 4.8 0M3 16c2.2-2.2 4.4-2.2 6.6 0s4.4 2.2 6.6 0 3.2-1.4 4.8 0'/%3E%3C/svg%3E") center / 17px 17px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9c2.2-2.2 4.4-2.2 6.6 0s4.4 2.2 6.6 0 3.2-1.4 4.8 0M3 16c2.2-2.2 4.4-2.2 6.6 0s4.4 2.2 6.6 0 3.2-1.4 4.8 0'/%3E%3C/svg%3E") center / 17px 17px no-repeat; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div:nth-child(3) > span::before { width: 17px; height: 17px; border-radius: 0; flex: none; background: var(--dc-dot, #0b6dff); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V7M6 12.5l6-6 6 6M5 3h14'/%3E%3C/svg%3E") center / 17px 17px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V7M6 12.5l6-6 6 6M5 3h14'/%3E%3C/svg%3E") center / 17px 17px no-repeat; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div > span, :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now > span,
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div > span, :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > .ob-stat-now > span { display: flex !important; align-items: center !important; gap: 7px !important; white-space: nowrap !important; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div > span::before, :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now > span::before,
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div > span::before, :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > .ob-stat-now > span::before { content: "" !important; display: inline-block !important; flex: none !important; width: 17px !important; height: 17px !important; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div:nth-child(1) { --dc-dot: #0fb5a1; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div:nth-child(2) { --dc-dot: #7b3ff2; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div:nth-child(3) { --dc-dot: #e0267a; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div:nth-child(1) { --dc-dot: #0fb5a1; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div:nth-child(2) { --dc-dot: #7b3ff2; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div:nth-child(3) { --dc-dot: #e0267a; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now { --dc-dot: #0b6dff; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > .ob-stat-now { --dc-dot: #0b6dff; }
  }

  /* Ô thống kê có đơn vị dài (mg NH₃-N/L, mg CaCO₃/L) ở 701-1279 px (26-10-2026): ô chỉ rộng ~150 px nên số một dòng, đơn vị xuống ngay dưới
     (chữ nhỏ, gọn trong ô) thay vì tràn ra ngoài; đơn vị ngắn (mg/L, ‰) vẫn cùng dòng */
  @media (min-width: 701px) and (max-width: 1279px) {
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot:has(.ob-chart-stats.has-long-unit) :is(.ob-chart-stats > div, .ob-stat-now) > strong,
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot:has(.ob-chart-stats.has-long-unit) :is(.ob-chart-stats > div, .ob-stat-now) > strong { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 1px !important; min-width: 0 !important; max-width: 100% !important; white-space: nowrap !important; font-size: 22px !important; line-height: 1.15 !important; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot:has(.ob-chart-stats.has-long-unit) :is(.ob-chart-stats > div, .ob-stat-now) > strong small,
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot:has(.ob-chart-stats.has-long-unit) :is(.ob-chart-stats > div, .ob-stat-now) > strong small { display: block !important; max-width: 100% !important; margin: 0 !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; font-size: 11.5px !important; font-weight: 600 !important; line-height: 1.3 !important; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot:has(.ob-chart-stats.has-long-unit) :is(.ob-chart-stats > div, .ob-stat-now),
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot:has(.ob-chart-stats.has-long-unit) :is(.ob-chart-stats > div, .ob-stat-now) { min-width: 0 !important; overflow: hidden !important; }
  }

  /* Đo thủ công › Chất lượng mẫu (26-10-2026): biểu tượng trước Hợp lệ / Nghi ngờ / Lỗi, cùng màu chữ (trắng khi nút đang chọn) */
  body#royal-blue-app#royal-blue-app #manual-form .mq-seg span {gap:8px !important}
  body#royal-blue-app#royal-blue-app #manual-form .mq-seg span::before {content:"";flex:none;width:18px;height:18px;background:currentColor;-webkit-mask:var(--mq-ic) center / contain no-repeat;mask:var(--mq-ic) center / contain no-repeat}
  body#royal-blue-app#royal-blue-app #manual-form .mq-seg label:nth-child(1) {--mq-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.7 2.7L16.5 9.5'/%3E%3C/svg%3E")}
  body#royal-blue-app#royal-blue-app #manual-form .mq-seg label:nth-child(2) {--mq-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5L2.5 20h19L12 3.5z'/%3E%3Cpath d='M12 10v4.5M12 17.5v.01'/%3E%3C/svg%3E")}
  body#royal-blue-app#royal-blue-app #manual-form .mq-seg label:nth-child(3) {--mq-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9 9l6 6M15 9l-6 6'/%3E%3C/svg%3E")}

  /* Trang người dân › "Phóng rộng bản đồ" (26-10-2026): bản đồ phóng rộng bắt đầu dưới menu đầu trang (menu dính, nền trong mờ) thay vì từ mép
     màn hình, để hai lớp không chồng lên nhau */
  @media (min-width: 701px) and (max-width: 1279px) {
    :root body#royal-blue-app#royal-blue-app.community-view .citizen-map-column > .shared-observatory-map.expanded {top:calc(var(--cz-head-h, 74px) + 10px) !important;z-index:59 !important;box-shadow:0 18px 48px -18px rgba(15,45,94,.45) !important}
  }

  @media (min-width: 701px) and (max-width: 1279px) and (pointer: coarse) {
    body#royal-blue-app :is(.btn, a.btn, select, input[type=text], input[type=search], input[type=number], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=date]) {min-height:44px!important}
    body#royal-blue-app :is(.tab, .th-chip, .rp-chip, .hc-chip, .ap-filter, .op-filter, .qx-filter, .pg-btn, .segments button, .chart-parameters button, .cg-tab, .ir-explain-btn, .chart-levels-toggle, .project-credit-details, .footer-designer, .rb-top-export, .rb-fresh-pill, .monitor-latest-jump, .ob-context-link, .rp-link, a.action-link) {min-height:44px!important;box-sizing:border-box}
    body#royal-blue-app #content :is(.pg-btn, .rb-data-parameter) {min-width:44px!important}
    body#royal-blue-app #content .rb-data-parameter {min-height:44px!important}
    body#royal-blue-app :is(.chart-range button, [data-range], #custom-period, .chart-period button) {min-height:44px!important}
    body#royal-blue-app :is(#help-button, #notification-button, #close-modal, #map-fullscreen, .vn-dt-open) {min-width:44px!important;min-height:44px!important}
    body#royal-blue-app :is(#map-home, #map-fit, #map-layer-quality, #map-layer-flow) {min-height:44px!important}
    body#royal-blue-app .leaflet-bar a {width:44px!important;height:44px!important;line-height:44px!important}
    body#royal-blue-app #map-angle {height:44px}
    body#royal-blue-app :is(.nav-item, .topbar #breadcrumb a.rb-crumb:not(.rb-crumb-home)) {min-height:44px!important;box-sizing:border-box}
    body#royal-blue-app #content summary:not(.btn), body#royal-blue-app .sidebar summary {min-height:44px!important;display:flex;align-items:center;box-sizing:border-box}
    body#royal-blue-app #content input[type=checkbox], body#royal-blue-app #content input[type=radio] {width:24px;height:24px}
    body#royal-blue-app :is(.gis-basemap-switch button, .rp-chip) {min-height:44px!important;min-width:44px}
    body#royal-blue-app #content .aov-link {min-height:44px;box-sizing:border-box}
    /* cung cac nut do, o cho mot quy tac cu cung layer cu the hon */
    body#royal-blue-app .ob-overview .station-instrument .ir-explain-btn {min-height:44px!important}
    body#royal-blue-app #navigation .rb-support > summary {min-height:44px!important}
    body#royal-blue-app .topbar .icon-button {width:44px!important;min-width:44px!important;height:44px!important}
    :root body#royal-blue-app.royal-blue-interface :is(.map-basemap-options button, .map-basemap-select > summary) {min-height:44px!important}
    :root body#royal-blue-app.royal-blue-interface :is(.gis-basemap-switch button, .rp-chip) {min-height:44px!important}
    /* bieu tuong nho va lien ket trong dong: hinh giu nguyen, vung cham nho rong ra bang padding va margin am */
    body#royal-blue-app .rb-kpi-link {box-sizing:content-box;padding:12px;margin:-12px}
    body#royal-blue-app :is(.map-distance-caption, a[href*="open-meteo"]) {display:inline-block;padding:15px 8px;margin:-15px -8px}
  }
}

/* ==== device-desktop.css ==== */
/* Nhanh Desktop: >= 1280px (toi 2K)
   Chi dat CSS cua dai man hinh nay, trong @media cua dai do; khong sua tep CSS cu.
   Quy uoc: ghi de trong @layer readability voi !important (xem CLAUDE.md). Sua xong chay: php artisan assets:bundle */
@layer readability {
  /* 2. Khoi bieu do "Dien bien" o Tong quan (section.analysis-trend) theo mau thiet ke: hang chi tieu phia tren the,
        the trang rieng, tieu de gon, 4 the thong ke (Hien tai / Thap nhat / Trung binh / Cao nhat) co cham mau.
        Chi doi hinh thuc; the "Hien tai" la div.ob-stat-now (markup dung chung, mac dinh hidden). */
  @media (min-width: 1280px) {
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel {
      --dc-gap: 10px; --dc-btn-h: 42px; --dc-tabs-h: 94px; --dc-pad: 16px;
      position: relative; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important;
    }
    /* the trang nam duoi hang chi tieu */
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel::before {
      content: ""; position: absolute; z-index: 0; inset: calc(var(--dc-tabs-h) + var(--dc-gap)) 0 0 0;
      background: #fff; border: 1px solid #dceaff; border-radius: 12px; box-shadow: 0 6px 22px rgba(23, 62, 174, .06);
    }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel > * { position: relative; z-index: 1; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel > :is(.analysis-heading, .chart-statistics-slot, .chart-content) { margin-inline: var(--dc-pad) !important; }

    /* hang chi tieu len dau, tran rong, nut gon */
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel > .chart-parameters {
      order: -1 !important; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; grid-auto-flow: row !important; gap: 10px;
      height: var(--dc-tabs-h); margin: 0 0 var(--dc-gap) !important; padding: 0 !important; background: transparent !important; border: 0 !important;
    }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-parameters button {
      min-width: 0; height: var(--dc-btn-h); padding: 0 8px !important; gap: 8px; justify-content: center; align-items: center;
      background: #fff !important; border: 1px solid #dceaff !important; border-radius: 10px !important; box-shadow: 0 2px 8px rgba(23, 62, 174, .05) !important;
      color: #173eae;
    }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-parameters button svg { width: 16px !important; height: 16px !important; flex: none; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-parameters button strong { width: auto !important; height: auto !important; font-size: 13px !important; font-weight: 800 !important; line-height: 1.2; white-space: nowrap; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-parameters button span { display: none !important; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-parameters button[aria-pressed="true"] {
      background: #eef5ff !important; border-color: #b9d6ff !important; box-shadow: inset 0 -3px 0 var(--chart-accent, #0b6dff), 0 2px 8px rgba(23, 62, 174, .08) !important;
    }

    /* tieu de: o bieu tuong bo mem (ve bang ::before, song sot khi JS doi chu tieu de) + tieu de + phu de thang cot voi cac the ben duoi */
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .analysis-heading { margin-top: var(--dc-pad) !important; margin-bottom: 12px !important; min-height: 0; align-items: center; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .analysis-heading > div:first-child { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 0; align-items: center; min-width: 0; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .analysis-heading h2[data-chart-title] { display: contents !important; }
    :root body#royal-blue-app.royal-blue-interface main#content .ob-overview .analysis-trend.chart-panel .analysis-heading h2[data-chart-title] { font-size: 16.4px !important; line-height: 1.25; font-weight: 750 !important; letter-spacing: -.1px; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .analysis-heading h2 svg { display: none !important; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .analysis-heading h2[data-chart-title]::before {
      content: ""; grid-column: 1; grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 11px; border: 1px solid #d3e2fa;
      background: #eaf2ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5fe0' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V10h3v10M10 20V4h3v16M16 20v-7h3v7'/%3E%3C/svg%3E") center / 19px 19px no-repeat;
    }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .analysis-heading p { grid-column: 2; grid-row: 2; margin: 0; font-size: 12.5px !important; line-height: 1.3; color: #4f6694; }

    /* 4 the thong ke cung hang: Hien tai (the thu 4 neu co) + Thap nhat / Trung binh / Cao nhat */
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot {
      display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
    }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot:has(> .ob-stat-now) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats { display: contents !important; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now { display: block !important; order: -1; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div,
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now {
      position: relative; min-width: 0; min-height: 76px; padding: 10px 14px !important; border: 0 !important; border-radius: 10px !important;
    }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div > span,
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now > span {
      display: flex; align-items: center; gap: 7px; font-size: 12px !important; font-weight: 700 !important; color: #173eae !important;
    }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div > span::before,
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now > span::before {
      content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dc-dot, #0b6dff);
    }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div > strong,
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now > strong {
      display: block; margin-top: 4px; font-size: 28px !important; line-height: 1.1; font-weight: 800 !important; letter-spacing: -.4px; color: var(--dc-num, #061b70) !important;
    }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div > strong small,
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now > strong small { margin-left: 5px; font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0; color: #4f6694 !important; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now { --dc-dot: #0b6dff; --dc-num: #0a3fb0; background: linear-gradient(135deg, #e3efff, #f2f8ff) !important; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div:nth-child(1) { --dc-dot: #0fb5a1; --dc-num: #08796c; background: linear-gradient(135deg, #e3faf5, #f1fffb) !important; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div:nth-child(2) { --dc-dot: #7b3ff2; --dc-num: #5a1fd1; background: linear-gradient(135deg, #f0e9ff, #f8f4ff) !important; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div:nth-child(3) { --dc-dot: #e0267a; --dc-num: #b0125c; background: linear-gradient(135deg, #ffe7f1, #fff3f8) !important; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-sample-note { grid-column: 1 / -1; margin: 2px 0 0 !important; font-size: 12px !important; color: #4f6694 !important; }

    /* man hinh hep (1280-1499px): the thong ke va hang chi tieu gon them de du cho 4 the / 6 nut */
    @media (max-width: 1499px) {
      :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel { --dc-pad: 14px; }
      :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel > .chart-parameters { gap: 8px; }
      :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-parameters button { padding: 0 6px !important; gap: 6px; }
      :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot { gap: 10px; }
      :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div,
      :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now { padding: 10px 12px !important; }
      :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div > strong,
      :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now > strong { font-size: 25px !important; }
    }

    /* hai tab nhom A/B chia deu chieu rong (nhu mau), nhan dai co dau ba cham thay vi tran */
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .cg-tabs { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100% !important; gap: 6px; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .cg-tab { min-width: 0; justify-content: flex-start; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .cg-tab .cg-tab-name { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }

    /* the nhom A/B o dau khoi "Diem dang xem": o 1280-1439px tieu de nowrap tran 14px -> cho phep xuong dong */
    @media (max-width: 1439px) {
      :root body#royal-blue-app.royal-blue-interface ul.hero-groups.hero-groups-ab > li .hg-head { flex-wrap: wrap; min-width: 0; }
      :root body#royal-blue-app.royal-blue-interface ul.hero-groups.hero-groups-ab > li .hg-head > span { white-space: normal !important; min-width: 0; overflow-wrap: anywhere; }
    }

    /* bieu do len som hon: bo khoang cach du giua dong "mau hop le" va khung bieu do */
    :root body#royal-blue-app.royal-blue-interface main#content .ob-overview .analysis-trend.chart-panel .chart-content > :is(.chart-frame, .empty) { margin-top: 0 !important; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot { margin-bottom: 6px !important; }

    /* chan the: khoang tho cuoi */
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel > .chart-content { margin-bottom: var(--dc-pad) !important; }
  }

  /* 1. Vung noi dung nong dan theo man hinh: truoc day khoa o 1700px (royal-blue.css), nen o 2560px moi ben
        bo trong ~270px va ban do/bieu do khong to them. Cac muc cat theo do rong cua vung lam viec (da tru thanh ben). */
  @media (min-width: 1920px) {
    :root body#royal-blue-app.royal-blue-interface #content { max-width: 1860px !important; }
  }
  @media (min-width: 2200px) {
    :root body#royal-blue-app.royal-blue-interface #content { max-width: 2080px !important; }
  }
  @media (min-width: 2500px) {
    :root body#royal-blue-app.royal-blue-interface #content { max-width: 2300px !important; padding-inline: 24px !important; }
  }
  /* 3. Trang Quan trac (#monitor-chart): cung ngon ngu thiet ke voi khoi "Dien bien" o Tong quan: tieu de co o bieu tuong bo mem,
        hang chi tieu gon (42px), 4 the thong ke (Hien tai / Thap nhat / Trung binh / Cao nhat). Khong doi markup. */
  @media (min-width: 1280px) {
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart { --dc-gap: 10px; --dc-btn-h: 42px; --dc-tabs-h: 94px; --dc-pad: 16px; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-panel-heading { min-height: 36px; margin: 0 0 12px !important; }
    :root body#royal-blue-app #content .monitor-workspace #monitor-chart .chart-panel-heading h2 { gap: 10px !important; font-size: 16.4px !important; font-weight: 750 !important; line-height: 1.25 !important; letter-spacing: -.1px !important; }
    :root body#royal-blue-app #content .monitor-workspace #monitor-chart .chart-panel-heading .rb-form-title-icon { width: 36px !important; height: 36px !important; border-radius: 11px; border: 1px solid #d3e2fa; background: #eaf2ff; color: #1a5fe0; }
    :root body#royal-blue-app #content .monitor-workspace #monitor-chart .chart-panel-heading .rb-form-title-icon svg { width: 19px !important; height: 19px !important; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart > .chart-parameters { margin: 0 0 var(--dc-gap) !important; }
    /* hang chi tieu len dau, tran rong, nut gon */
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart > .chart-parameters {
      display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; grid-auto-flow: row !important; gap: 10px;
      height: var(--dc-tabs-h); margin: 0 0 var(--dc-gap) !important; padding: 0 !important; background: transparent !important; border: 0 !important;
    }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-parameters button {
      min-width: 0; height: var(--dc-btn-h); padding: 0 8px !important; gap: 8px; justify-content: center; align-items: center;
      background: #fff !important; border: 1px solid #dceaff !important; border-radius: 10px !important; box-shadow: 0 2px 8px rgba(23, 62, 174, .05) !important;
      color: #173eae;
    }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-parameters button svg { width: 16px !important; height: 16px !important; flex: none; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-parameters button strong { width: auto !important; height: auto !important; font-size: 13px !important; font-weight: 800 !important; line-height: 1.2; white-space: nowrap; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-parameters button span { display: none !important; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-parameters button[aria-pressed="true"] {
      background: #eef5ff !important; border-color: #b9d6ff !important; box-shadow: inset 0 -3px 0 var(--chart-accent, #0b6dff), 0 2px 8px rgba(23, 62, 174, .08) !important;
    }

    /* 4 the thong ke cung hang: Hien tai (the thu 4 neu co) + Thap nhat / Trung binh / Cao nhat */
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot {
      display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
    }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot:has(> .ob-stat-now) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats { display: contents !important; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > .ob-stat-now { display: block !important; order: -1; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div,
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > .ob-stat-now {
      position: relative; min-width: 0; min-height: 76px; padding: 10px 14px !important; border: 0 !important; border-radius: 10px !important;
    }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div > span,
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > .ob-stat-now > span {
      display: flex; align-items: center; gap: 7px; font-size: 12px !important; font-weight: 700 !important; color: #173eae !important;
    }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div > span::before,
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > .ob-stat-now > span::before {
      content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dc-dot, #0b6dff);
    }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div > strong,
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > .ob-stat-now > strong {
      display: block; margin-top: 4px; font-size: 28px !important; line-height: 1.1; font-weight: 800 !important; letter-spacing: -.4px; color: var(--dc-num, #061b70) !important;
    }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div > strong small,
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > .ob-stat-now > strong small { margin-left: 5px; font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0; color: #4f6694 !important; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > .ob-stat-now { --dc-dot: #0b6dff; --dc-num: #0a3fb0; background: linear-gradient(135deg, #e3efff, #f2f8ff) !important; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div:nth-child(1) { --dc-dot: #0fb5a1; --dc-num: #08796c; background: linear-gradient(135deg, #e3faf5, #f1fffb) !important; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div:nth-child(2) { --dc-dot: #7b3ff2; --dc-num: #5a1fd1; background: linear-gradient(135deg, #f0e9ff, #f8f4ff) !important; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div:nth-child(3) { --dc-dot: #e0267a; --dc-num: #b0125c; background: linear-gradient(135deg, #ffe7f1, #fff3f8) !important; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-sample-note { grid-column: 1 / -1; margin: 2px 0 0 !important; font-size: 12px !important; color: #4f6694 !important; }

    /* man hinh hep (1280-1499px): the thong ke va hang chi tieu gon them de du cho 4 the / 6 nut */
    @media (max-width: 1499px) {
      :root body#royal-blue-app.royal-blue-interface #content #monitor-chart { --dc-pad: 14px; }
      :root body#royal-blue-app.royal-blue-interface #content #monitor-chart > .chart-parameters { gap: 8px; }
      :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-parameters button { padding: 0 6px !important; gap: 6px; }
      :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot { gap: 10px; }
      :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div,
      :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > .ob-stat-now { padding: 10px 12px !important; }
      :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div > strong,
      :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > .ob-stat-now > strong { font-size: 25px !important; }
    }

  }

  /* 4. Bieu tuong rieng cho tung the thong ke (thay cham tron): Hien tai = dong ho, Thap nhat = mui ten xuong day,
        Trung bien = song (muc trung binh), Cao nhat = mui ten len dinh. Ve bang mask nen mau theo --dc-dot cua tung the. */
  @media (min-width: 1280px) {
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now > span::before { width: 17px; height: 17px; border-radius: 0; flex: none; background: var(--dc-dot, #0b6dff); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 110 18 9 9 0 010-18M12 7.5V12l3 2'/%3E%3C/svg%3E") center / 17px 17px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 110 18 9 9 0 010-18M12 7.5V12l3 2'/%3E%3C/svg%3E") center / 17px 17px no-repeat; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div:nth-child(1) > span::before { width: 17px; height: 17px; border-radius: 0; flex: none; background: var(--dc-dot, #0b6dff); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v13M6 11.5l6 6 6-6M5 21h14'/%3E%3C/svg%3E") center / 17px 17px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v13M6 11.5l6 6 6-6M5 21h14'/%3E%3C/svg%3E") center / 17px 17px no-repeat; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div:nth-child(2) > span::before { width: 17px; height: 17px; border-radius: 0; flex: none; background: var(--dc-dot, #0b6dff); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9c2.2-2.2 4.4-2.2 6.6 0s4.4 2.2 6.6 0 3.2-1.4 4.8 0M3 16c2.2-2.2 4.4-2.2 6.6 0s4.4 2.2 6.6 0 3.2-1.4 4.8 0'/%3E%3C/svg%3E") center / 17px 17px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9c2.2-2.2 4.4-2.2 6.6 0s4.4 2.2 6.6 0 3.2-1.4 4.8 0M3 16c2.2-2.2 4.4-2.2 6.6 0s4.4 2.2 6.6 0 3.2-1.4 4.8 0'/%3E%3C/svg%3E") center / 17px 17px no-repeat; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div:nth-child(3) > span::before { width: 17px; height: 17px; border-radius: 0; flex: none; background: var(--dc-dot, #0b6dff); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V7M6 12.5l6-6 6 6M5 3h14'/%3E%3C/svg%3E") center / 17px 17px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V7M6 12.5l6-6 6 6M5 3h14'/%3E%3C/svg%3E") center / 17px 17px no-repeat; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > .ob-stat-now > span::before { width: 17px; height: 17px; border-radius: 0; flex: none; background: var(--dc-dot, #0b6dff); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 110 18 9 9 0 010-18M12 7.5V12l3 2'/%3E%3C/svg%3E") center / 17px 17px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 110 18 9 9 0 010-18M12 7.5V12l3 2'/%3E%3C/svg%3E") center / 17px 17px no-repeat; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div:nth-child(1) > span::before { width: 17px; height: 17px; border-radius: 0; flex: none; background: var(--dc-dot, #0b6dff); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v13M6 11.5l6 6 6-6M5 21h14'/%3E%3C/svg%3E") center / 17px 17px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v13M6 11.5l6 6 6-6M5 21h14'/%3E%3C/svg%3E") center / 17px 17px no-repeat; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div:nth-child(2) > span::before { width: 17px; height: 17px; border-radius: 0; flex: none; background: var(--dc-dot, #0b6dff); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9c2.2-2.2 4.4-2.2 6.6 0s4.4 2.2 6.6 0 3.2-1.4 4.8 0M3 16c2.2-2.2 4.4-2.2 6.6 0s4.4 2.2 6.6 0 3.2-1.4 4.8 0'/%3E%3C/svg%3E") center / 17px 17px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9c2.2-2.2 4.4-2.2 6.6 0s4.4 2.2 6.6 0 3.2-1.4 4.8 0M3 16c2.2-2.2 4.4-2.2 6.6 0s4.4 2.2 6.6 0 3.2-1.4 4.8 0'/%3E%3C/svg%3E") center / 17px 17px no-repeat; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div:nth-child(3) > span::before { width: 17px; height: 17px; border-radius: 0; flex: none; background: var(--dc-dot, #0b6dff); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V7M6 12.5l6-6 6 6M5 3h14'/%3E%3C/svg%3E") center / 17px 17px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V7M6 12.5l6-6 6 6M5 3h14'/%3E%3C/svg%3E") center / 17px 17px no-repeat; }
  }

  /* 5. Chi tieu co don vi dai (do kiem: mg CaCO3/L): don vi duoc xuong dong duoi con so thay vi tran ra ngoai the */
  @media (min-width: 1280px) {
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div > strong,
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now > strong,
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div > strong,
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > .ob-stat-now > strong { white-space: normal !important; overflow-wrap: anywhere; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-parameters button,
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-parameters button { padding-inline: 4px !important; gap: 4px; }
  }

  /* 6. Bieu do (Tong quan + Quan trac): chu tren hai truc nho lai (12px / gio 10,5px), le trai/phai gon (ma ve trong app.js chart(), nhanh "wide") */
  @media (min-width: 1280px) {
    :root body.observatory-interface .chart .chart-axis-label,
    :root body.observatory-interface .chart .chart-unit-label,
    :root body.observatory-interface #monitor-chart .chart .chart-unit-label { font-size: 12px !important; font-weight: 500 !important; }
    :root body.observatory-interface .chart .chart-time-label tspan { font-size: 10.5px !important; }
    :root body .chart-frame .chart .chart-unit-label { font-size: 12px !important; }
  }

  /* 7. Don vi dai (mg CaCO3/L): o ca 4 the thong ke, don vi nam duoi con so, cung mot kieu, khong xuong dong le */
  @media (min-width: 1280px) {
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot:has(.ob-chart-stats.has-long-unit) .ob-chart-stats > div > strong small,
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot:has(.ob-chart-stats.has-long-unit) > .ob-stat-now > strong small,
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot:has(.ob-chart-stats.has-long-unit) .ob-chart-stats > div > strong small,
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot:has(.ob-chart-stats.has-long-unit) > .ob-stat-now > strong small { display: block; margin: 3px 0 0 !important; font-size: 12px !important; line-height: 1.2; white-space: nowrap; }
  }

  /* 8. Trang nguoi dan: khoi "Thong tin quan trac" (citizen-data-summary): the co bieu tuong, 3 o thong ke co vach mau, gio cap nhat dang chip */
  @media (min-width: 1280px) {
    body#royal-blue-app.community-view .citizen-data-summary { position: relative; display: grid !important; align-items: center; gap: 14px 22px !important; padding: 16px 20px !important; margin: 0 0 14px !important; background: linear-gradient(180deg, #fff, #fbfdff) !important; border: 1px solid #dbe8f7 !important; border-radius: 16px !important; box-shadow: 0 6px 20px rgba(23, 62, 174, .06) !important; color: #1f3d66 !important; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-data-mode { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 12px; align-items: center; min-width: 0; border: 0 !important; padding: 0 !important; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-data-mode::before { content: ""; grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 13px; border: 1px solid #d3e2fa; background: #eaf2ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5fe0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20V10h3v10M10 20V4h3v16M16 20v-7h3v7'/%3E%3C/svg%3E") center / 22px 22px no-repeat; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-data-mode strong { font-size: 15px !important; font-weight: 800; line-height: 1.25; color: #0f2d5e; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-data-mode p { margin: 2px 0 0 !important; font-size: 12.5px !important; line-height: 1.45 !important; color: #566f8f; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px !important; min-width: 0; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span { position: relative; display: grid; gap: 1px; min-width: 0; padding: 9px 12px 9px 15px !important; border-radius: 12px; background: #f3f8ff; border: 1px solid #dfeafb; font-size: 12px !important; line-height: 1.3; color: #566f8f; white-space: nowrap; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--cv, #1a5fe0); }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span:nth-child(1) { --cv: #1a5fe0; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span:nth-child(2) { --cv: #0f9d7a; background: #f1faf7; border-color: #d8f0e8; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage span:nth-child(3) { --cv: #7c8ca6; background: #f5f7fa; border-color: #e3e8f0; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-coverage b { display: block; font-size: 26px !important; line-height: 1.1; font-weight: 800; letter-spacing: -.4px; color: var(--cv, #1a5fe0) !important; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-fetch-time { margin: 0 !important; min-width: 0; font-size: 12px !important; line-height: 1.5 !important; color: #566f8f; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-fetch-time nb-dt { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 3px 10px 3px 8px; border-radius: 999px; background: #eef5ff; border: 1px solid #d3e2fa; font-weight: 800; color: #14407f; white-space: nowrap; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-fetch-time nb-dt::before { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5fe0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 110 18 9 9 0 010-18M12 7.5V12l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
    body#royal-blue-app.community-view .citizen-data-summary .citizen-fetch-time small { display: block; margin-top: 4px; font-size: 11.5px !important; line-height: 1.4; color: #6b819d; }

    body#royal-blue-app.community-view .citizen-data-summary { grid-template-columns: minmax(280px, 1.15fr) minmax(300px, 1fr) minmax(250px, .9fr) !important; }
  }


  /* ---------- Residents' page, lower sections (24-10-2026) ----------
     "Cập nhật quan trắc" rows as level-coloured cards; "Thông tin cần biết" with its added articles as a matching list; "Hướng dẫn đọc thông
     tin" opened (community-reference.js opens it from 1280 px) with its three articles side by side; "Nhận tin cảnh báo" and "Câu hỏi thường
     gặp" next to each other (2 : 3) instead of two wide, half-empty bands. */
  @media (min-width: 1280px) {
    :root body#royal-blue-app.community-view .citizen-content {display:grid !important;grid-template-columns:minmax(0,2fr) minmax(0,3fr) !important;column-gap:16px !important;align-items:start !important}
    :root body#royal-blue-app.community-view .citizen-content > * {grid-column:1 / -1 !important;min-width:0 !important}
    :root body#royal-blue-app.community-view .citizen-content > :is(#citizen-report,#citizen-subscribe) {grid-column:1 !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq {grid-column:2 !important;grid-row:span 2 !important}

    /* Cập nhật quan trắc */
    :root body#royal-blue-app.community-view #citizen-updates {display:flex !important;flex-direction:column !important;gap:8px !important}
    :root body#royal-blue-app.community-view #citizen-updates > h2 {margin:0 0 4px !important}
    :root body#royal-blue-app.community-view #citizen-updates .citizen-update {--ul:#8a9bb2;display:grid !important;grid-template-columns:62px minmax(0,1fr) 18px !important;align-items:center !important;gap:12px !important;width:100% !important;padding:11px 14px !important;border:1px solid #e3ebf5 !important;border-left:4px solid var(--ul) !important;border-radius:10px !important;background:#fbfdff !important;text-align:left !important;transition:background .15s,box-shadow .15s}
    :root body#royal-blue-app.community-view #citizen-updates .citizen-update:hover {background:#f2f7ff !important;box-shadow:0 4px 12px -8px rgba(19,56,88,.35) !important}
    :root body#royal-blue-app.community-view #citizen-updates .citizen-update:has([data-level="0"]) {--ul:#16a34a}
    :root body#royal-blue-app.community-view #citizen-updates .citizen-update:has([data-level="1"]) {--ul:#eab308}
    :root body#royal-blue-app.community-view #citizen-updates .citizen-update:has([data-level="2"]) {--ul:#ff7a1a}
    :root body#royal-blue-app.community-view #citizen-updates .citizen-update:has([data-level="3"]) {--ul:#e5251b}
    :root body#royal-blue-app.community-view #citizen-updates .citizen-update:has([data-level="4"]) {--ul:#7e0023}
    :root body#royal-blue-app.community-view #citizen-updates .citizen-update-time {font-size:17px !important;font-weight:800 !important;color:#173e65 !important;font-variant-numeric:tabular-nums;border-right:1px solid #e3ebf5;padding-right:10px}
    :root body#royal-blue-app.community-view #citizen-updates .citizen-update > span:nth-child(2) {display:flex !important;flex-wrap:wrap !important;align-items:center !important;gap:3px 8px !important;min-width:0 !important}
    :root body#royal-blue-app.community-view #citizen-updates .citizen-update strong {order:1;font-size:14px !important;color:#133858 !important}
    :root body#royal-blue-app.community-view #citizen-updates .citizen-update > span:nth-child(2) > :not(strong):not(small) {order:2}
    :root body#royal-blue-app.community-view #citizen-updates .citizen-update small {order:3;flex:1 1 100%;font-size:12.5px !important;color:#5d6e82 !important}
    :root body#royal-blue-app.community-view #citizen-updates .citizen-update > svg {color:#8a9bb2 !important}

    /* Thông tin cần biết: the first article keeps its picture, the added ones a tinted icon */
    :root body#royal-blue-app.community-view .citizen-info {display:flex !important;flex-direction:column !important;gap:8px !important}
    :root body#royal-blue-app.community-view .citizen-info > h2 {margin:0 0 4px !important}
    :root body#royal-blue-app.community-view .citizen-info .citizen-info-link {display:grid !important;grid-template-columns:64px minmax(0,1fr) 18px !important;align-items:center !important;gap:14px !important;width:100% !important;padding:10px 14px 10px 10px !important;border:1px solid #e3ebf5 !important;border-radius:10px !important;background:#fbfdff !important;text-align:left !important}
    :root body#royal-blue-app.community-view .citizen-info .citizen-info-link:hover {background:#f2f7ff !important}
    :root body#royal-blue-app.community-view .citizen-info .citizen-info-art {width:64px !important;height:52px !important;border-radius:9px !important}
    :root body#royal-blue-app.community-view .citizen-info .citizen-info-art.is-icon {display:grid !important;place-items:center !important;background:#e9f2ff !important;color:#1f6fd1 !important}
    :root body#royal-blue-app.community-view .citizen-info .citizen-info-link strong {font-size:14px !important;color:#133858 !important}
    :root body#royal-blue-app.community-view .citizen-info .citizen-info-link small {font-size:12.5px !important;color:#5d6e82 !important}

    /* Hướng dẫn đọc thông tin: a card, open, three columns */
    :root body#royal-blue-app.community-view #citizen-guide {padding:0 !important;border:1px solid #e3ebf3 !important;border-radius:12px !important;background:#fff !important;box-shadow:0 3px 12px #26416608 !important}
    :root body#royal-blue-app.community-view #citizen-guide > summary {padding:15px 18px !important;font-size:16px !important;font-weight:700 !important;color:#143b6d !important}
    :root body#royal-blue-app.community-view #citizen-guide .citizen-guide-grid {display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:14px !important;padding:0 18px 18px !important}
    :root body#royal-blue-app.community-view #citizen-guide .citizen-guide-grid article {padding:14px 16px !important;border:1px solid #e3ebf5 !important;border-radius:10px !important;background:#f8fbff !important}

    /* Nhận tin cảnh báo: a highlighted card in the left column */
    :root body#royal-blue-app.community-view .citizen-content > .citizen-subscribe {padding:22px 22px 20px !important;border:1px solid #cfe0fb !important;border-radius:12px !important;background:linear-gradient(160deg,#f2f7ff,#ffffff 70%) !important;box-shadow:0 3px 12px #26416608 !important;text-align:left !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-subscribe > h2 {display:flex !important;align-items:center !important;gap:10px !important;margin:0 0 8px !important;font-size:18px !important;color:#143b6d !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-subscribe > h2 svg {flex:none;width:38px;height:38px;padding:9px;border-radius:50%;background:#175adb;color:#fff}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-subscribe > p {margin:0 0 14px !important;font-size:14px !important;line-height:1.55 !important;color:#3c5068 !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-subscribe .citizen-subscribe-open {width:100% !important;min-height:46px !important;font-size:15px !important}

    /* Câu hỏi thường gặp: two columns of questions */
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq {padding:18px 20px !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq {display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px 12px !important;align-content:start !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > h2 {grid-column:1 / -1 !important;margin:0 0 4px !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > details {margin:0 !important;padding:10px 12px !important;border:1px solid #e3ebf5 !important;border-radius:10px !important;background:#fbfdff !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > details[open] {grid-column:1 / -1 !important;background:#f5f9ff !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > details > summary {font-size:14px !important;font-weight:600 !important;color:#133858 !important}
  }

  /* ---------- Residents' page: "Phản ánh nguồn nước" and "Nhận tin cảnh báo" as two matching action cards (24-10-2026) ----------
     Side by side, same height: icon in a ring on the left, title, text, a compact button with its glyph, the quick buttons as pills.
     "Câu hỏi thường gặp" takes the full width under them, its questions in three columns. A card whose form is open spans both columns. */
  @media (min-width: 1280px) {
    :root body#royal-blue-app.community-view .citizen-content {grid-template-columns:repeat(2,minmax(0,1fr)) !important;column-gap:20px !important;align-items:stretch !important}
    :root body#royal-blue-app.community-view .citizen-content > :is(#citizen-complaint,#citizen-report) {grid-column:1 !important}
    :root body#royal-blue-app.community-view .citizen-content > #citizen-subscribe {grid-column:2 !important}
    :root body#royal-blue-app.community-view .citizen-content > :is(#citizen-complaint,#citizen-report,#citizen-subscribe).is-open {grid-column:1 / -1 !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq {grid-column:1 / -1 !important;grid-row:auto !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important}

    :root body#royal-blue-app.community-view .citizen-content > .citizen-subscribe:is(#citizen-complaint,#citizen-report,#citizen-subscribe) {position:relative;display:grid !important;grid-template-columns:64px minmax(0,1fr) !important;grid-template-rows:auto auto auto 1fr;column-gap:18px !important;align-content:start;margin:18px 0 !important;padding:26px 28px 24px !important;border:1px solid #d6e4fa !important;border-radius:18px !important;background:radial-gradient(90% 120% at 0% 0%,#e6f0ff 0%,#f5f9ff 42%,#fff 78%) !important;box-shadow:0 18px 36px -30px rgba(26,95,224,.55) !important;overflow:hidden;text-align:left !important}
    :root body#royal-blue-app.community-view .citizen-content > #citizen-complaint {background:radial-gradient(90% 120% at 0% 0%,#fff1e0 0%,#fff8ef 40%,#fff 78%) !important;border-color:#f3dcc0 !important;box-shadow:0 18px 36px -30px rgba(217,119,6,.5) !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-subscribe:is(#citizen-complaint,#citizen-report,#citizen-subscribe) > h2 {display:contents !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-subscribe:is(#citizen-complaint,#citizen-report,#citizen-subscribe) > h2 svg {grid-column:1;grid-row:1 / span 2;align-self:start;box-sizing:content-box !important;width:28px !important;height:28px !important;padding:18px !important;border-radius:50% !important;background:linear-gradient(145deg,#4d97ff,#0862ff 60%,#0a54d8) !important;color:#fff !important;stroke:#fff !important;box-shadow:0 0 0 7px rgba(26,95,224,.09),0 12px 20px -10px rgba(8,98,255,.8)}
    :root body#royal-blue-app.community-view .citizen-content > #citizen-complaint > h2 svg {background:linear-gradient(145deg,#ffad42,#f08a12 58%,#d97706) !important;box-shadow:0 0 0 7px rgba(217,119,6,.1),0 12px 20px -10px rgba(217,119,6,.75)}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-subscribe:is(#citizen-complaint,#citizen-report,#citizen-subscribe) > p {grid-column:2;margin:6px 0 18px !important;font-size:14.5px !important;line-height:1.6 !important;color:#46607f !important;max-width:46em}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-subscribe:is(#citizen-complaint,#citizen-report,#citizen-subscribe) > [id$="-box"] {grid-column:2;min-width:0}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-subscribe:is(#citizen-complaint,#citizen-report,#citizen-subscribe).is-open > [id$="-box"] {grid-column:1 / -1;margin-top:6px}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-subscribe:is(#citizen-complaint,#citizen-report,#citizen-subscribe) .cz-quick {grid-column:2;align-self:start;margin:14px 0 0 !important;gap:8px !important}
    /* the title is the text node of the h2 (display:contents): give it the second column by its own line box */
    :root body#royal-blue-app.community-view .citizen-content > .citizen-subscribe:is(#citizen-complaint,#citizen-report,#citizen-subscribe) > h2 {font-size:19px !important;font-weight:800 !important;line-height:1.3 !important;color:#0f2d5e !important}

    :root body#royal-blue-app.community-view .citizen-content > .citizen-subscribe .citizen-subscribe-open {display:inline-flex !important;align-items:center;justify-content:center;gap:10px;width:auto !important;min-width:230px;min-height:48px !important;padding:0 26px !important;border:0 !important;border-radius:14px !important;background:linear-gradient(145deg,#3b8bff,#0862ff 58%,#0a54d8) !important;color:#fff !important;font-size:15px !important;font-weight:800 !important;box-shadow:0 2px 4px rgba(8,98,255,.3),0 14px 22px -12px rgba(8,98,255,.85) !important;transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-subscribe .citizen-subscribe-open:hover {transform:translateY(-1px);filter:brightness(1.05);box-shadow:0 2px 4px rgba(8,98,255,.3),0 18px 26px -12px rgba(8,98,255,.9) !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-subscribe .citizen-subscribe-open:focus-visible {outline:3px solid #aac8ff !important;outline-offset:3px}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-subscribe .citizen-subscribe-open::before {content:"";flex:none;width:19px;height:19px;background:center / contain no-repeat}
    :root body#royal-blue-app.community-view .citizen-content > #citizen-subscribe .citizen-subscribe-open::before {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M3.5 7.5l8.5 6 8.5-6'/%3E%3C/svg%3E")}
    :root body#royal-blue-app.community-view .citizen-content > #citizen-complaint .citizen-subscribe-open {background:linear-gradient(145deg,#ff9f2e,#f08a12 55%,#d97706) !important;box-shadow:0 2px 4px rgba(217,119,6,.3),0 14px 22px -12px rgba(217,119,6,.85) !important}
    :root body#royal-blue-app.community-view .citizen-content > #citizen-complaint .citizen-subscribe-open::before {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 3 10 14'/%3E%3Cpath d='M21 3l-7 18-4-7-7-4z'/%3E%3C/svg%3E")}

    :root body#royal-blue-app.community-view .citizen-content > .citizen-subscribe .cz-q {min-height:38px !important;padding:0 14px !important;border:1px solid #d3e2fa !important;border-radius:999px !important;background:rgba(255,255,255,.85) !important;color:#174a9c !important;font-size:13px !important;font-weight:700 !important;box-shadow:0 4px 10px -8px rgba(26,95,224,.5);transition:background .15s ease,border-color .15s ease,transform .15s ease}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-subscribe .cz-q:hover {background:#fff !important;border-color:#9fc0f5 !important;transform:translateY(-1px)}
    :root body#royal-blue-app.community-view .citizen-content > #citizen-complaint .cz-q {border-color:#f1d9bb !important;color:#8a4b06 !important}
    :root body#royal-blue-app.community-view .citizen-content > #citizen-complaint .cz-q:hover {border-color:#e9b46f !important}
    :root body#royal-blue-app.community-view .citizen-content > #citizen-complaint .cz-q svg {color:#d97706 !important}
  }

  /* ---------- Residents' page: "Hướng dẫn đọc thông tin" and "Câu hỏi thường gặp" (24-10-2026, round 2) ----------
     Same look as the two action cards above: section title with its icon in a blue tile, the three guide articles as cards with
     a gradient icon ring (the first shows the C0–C4 colour scale), FAQ as a numbered two-column accordion with a chevron;
     an opened answer stays in its own column instead of jumping to the full width. */
  @media (min-width: 1280px) {
    :root body#royal-blue-app.community-view #citizen-guide {padding:0 !important;border:1px solid #dfe8f4 !important;border-radius:18px !important;background:linear-gradient(180deg,#f6f9ff 0,#fff 120px) !important;box-shadow:0 1px 2px rgba(15,45,94,.04),0 18px 36px -30px rgba(15,45,94,.35) !important;overflow:hidden !important}
    :root body#royal-blue-app.community-view #citizen-guide > summary {display:flex !important;align-items:center !important;gap:12px !important;min-height:64px !important;padding:14px 22px !important;font-size:19px !important;font-weight:800 !important;letter-spacing:-.2px !important;color:#0f2d5e !important;cursor:pointer !important;list-style:none !important}
    :root body#royal-blue-app.community-view #citizen-guide > summary::-webkit-details-marker {display:none !important}
    :root body#royal-blue-app.community-view #citizen-guide > summary > svg:first-child {flex:none !important;box-sizing:content-box !important;width:20px !important;height:20px !important;padding:9px !important;border-radius:11px !important;background:#e8f0ff !important;color:#175adb !important}
    :root body#royal-blue-app.community-view #citizen-guide > summary > svg:last-child {flex:none !important;margin-left:auto !important;box-sizing:content-box !important;width:16px !important;height:16px !important;padding:8px !important;border:1px solid #d6e3f7 !important;border-radius:50% !important;background:#fff !important;color:#36597f !important;transition:transform .2s ease !important}
    :root body#royal-blue-app.community-view #citizen-guide[open] > summary > svg:last-child {transform:rotate(180deg) !important}
    :root body#royal-blue-app.community-view #citizen-guide > summary:hover > svg:last-child {border-color:#9fc0f5 !important;color:#175adb !important}
    :root body#royal-blue-app.community-view #citizen-guide .citizen-guide-grid {display:grid !important;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) !important;gap:16px !important;padding:2px 22px 22px !important}
    :root body#royal-blue-app.community-view #citizen-guide .citizen-guide-grid article {position:relative !important;display:grid !important;grid-template-columns:52px minmax(0,1fr) !important;grid-template-rows:auto 1fr !important;column-gap:14px !important;row-gap:6px !important;align-content:start !important;padding:18px 18px 18px 16px !important;border:1px solid #e3ebf5 !important;border-radius:14px !important;background:#fff !important;box-shadow:0 10px 24px -22px rgba(15,45,94,.45) !important;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease !important}
    :root body#royal-blue-app.community-view #citizen-guide .citizen-guide-grid article:hover {border-color:#c6d9f6 !important;box-shadow:0 16px 30px -22px rgba(15,45,94,.5) !important;transform:translateY(-1px) !important}
    :root body#royal-blue-app.community-view #citizen-guide .citizen-guide-grid article > span {grid-column:1 !important;grid-row:1 / span 2 !important;align-self:start !important;display:grid !important;place-items:center !important;width:48px !important;height:48px !important;margin:0 !important;border-radius:50% !important;background:linear-gradient(145deg,#3b8bff,#0862ff 60%,#0a4fd1) !important;color:#fff !important;box-shadow:0 0 0 6px rgba(8,98,255,.08),0 10px 18px -10px rgba(8,98,255,.8) !important}
    :root body#royal-blue-app.community-view #citizen-guide .citizen-guide-grid article > span svg {width:22px !important;height:22px !important;color:#fff !important;stroke:#fff !important}
    :root body#royal-blue-app.community-view #citizen-guide .citizen-guide-grid article > h3 {grid-column:2 !important;margin:2px 0 0 !important;font-size:16.5px !important;font-weight:800 !important;line-height:1.35 !important;color:#0f2d5e !important}
    :root body#royal-blue-app.community-view #citizen-guide .citizen-guide-grid article > p {grid-column:2 !important;margin:0 !important;font-size:14.5px !important;line-height:1.65 !important;color:#46607f !important}
    :root body#royal-blue-app.community-view #citizen-guide .citizen-guide-grid article > p b {color:#0f2d5e !important;font-weight:700 !important}
    /* the first article explains the five colours: show them as a scale under its text */
    :root body#royal-blue-app.community-view #citizen-guide .citizen-guide-grid article:first-child::after {content:"" !important;grid-column:2 !important;display:block !important;height:8px !important;margin-top:8px !important;border-radius:999px !important;background:linear-gradient(90deg,var(--lv0,#12a150) 0 20%,var(--lv1,#f5c000) 20% 40%,var(--lv2,#ff7a1a) 40% 60%,var(--lv3,#e5251b) 60% 80%,var(--lv4,#7e0023) 80% 100%) !important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.6) !important}
    :root body#royal-blue-app.community-view #citizen-guide .citizen-guide-grid article:nth-child(2) > span {background:linear-gradient(145deg,#2fc3d6,#0e9fb5 60%,#0b7f93) !important;box-shadow:0 0 0 6px rgba(14,159,181,.09),0 10px 18px -10px rgba(14,159,181,.8) !important}
    :root body#royal-blue-app.community-view #citizen-guide .citizen-guide-grid article:nth-child(3) > span {background:linear-gradient(145deg,#8b7bff,#6a5af9 60%,#5141d8) !important;box-shadow:0 0 0 6px rgba(106,90,249,.09),0 10px 18px -10px rgba(106,90,249,.8) !important}

    /* Câu hỏi thường gặp */
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq {counter-reset:czfaq !important;display:block !important;columns:2 !important;column-gap:28px !important;column-rule:0 !important;padding:20px 24px 14px !important;border:1px solid #dfe8f4 !important;border-radius:18px !important;background:#fff !important;box-shadow:0 1px 2px rgba(15,45,94,.04),0 18px 36px -30px rgba(15,45,94,.35) !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > h2 {column-span:all !important;display:flex !important;align-items:center !important;gap:12px !important;margin:0 0 10px !important;font-size:19px !important;font-weight:800 !important;letter-spacing:-.2px !important;color:#0f2d5e !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > h2::before {content:"" !important;flex:none !important;width:38px !important;height:38px !important;border-radius:11px !important;background:#e8f0ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23175adb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M9.2 9.3a2.9 2.9 0 0 1 5.6 1c0 1.9-2.8 2.6-2.8 2.6'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / 20px 20px no-repeat !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > details {counter-increment:czfaq !important;break-inside:avoid !important;display:block !important;width:100% !important;margin:0 !important;padding:0 !important;border:0 !important;border-top:1px solid #e8eef7 !important;border-radius:0 !important;background:none !important;box-shadow:none !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > details[open] {grid-column:auto !important;background:none !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > details > summary {position:relative !important;display:grid !important;grid-template-columns:34px minmax(0,1fr) 28px !important;align-items:center !important;gap:12px !important;min-height:60px !important;padding:12px 4px !important;font-size:15px !important;font-weight:700 !important;line-height:1.4 !important;color:#133858 !important;cursor:pointer !important;list-style:none !important;border-radius:10px !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > details > summary::-webkit-details-marker {display:none !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > details > summary::before {content:counter(czfaq,decimal-leading-zero) !important;display:grid !important;place-items:center !important;width:34px !important;height:34px !important;border-radius:10px !important;background:#f1f6ff !important;color:#2a5fb8 !important;font-size:13px !important;font-weight:800 !important;font-variant-numeric:tabular-nums !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > details > summary::after {content:"" !important;width:28px !important;height:28px !important;border:1px solid #d6e3f7 !important;border-radius:50% !important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2336597f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 14px 14px no-repeat !important;transition:transform .2s ease !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > details > summary:hover {color:#175adb !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > details > summary:hover::after {border-color:#9fc0f5 !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > details > summary:focus-visible {outline:3px solid #aac8ff !important;outline-offset:2px !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > details[open] > summary {color:#0f2d5e !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > details[open] > summary::before {background:linear-gradient(145deg,#3b8bff,#0862ff) !important;color:#fff !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > details[open] > summary::after {transform:rotate(180deg) !important;border-color:#9fc0f5 !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > details > p {margin:0 0 14px 50px !important;padding:12px 16px !important;border-left:3px solid #cfe0fb !important;border-radius:0 10px 10px 0 !important;background:#f6f9ff !important;font-size:14.5px !important;line-height:1.65 !important;color:#46607f !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq > details > p b {color:#0f2d5e !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq .citizen-faq-go {display:inline-flex !important;align-items:center !important;gap:8px !important;min-height:40px !important;margin:-4px 0 14px 50px !important;padding:0 16px !important;border:1px solid #f1d9bb !important;border-radius:999px !important;background:#fff8ef !important;color:#8a4b06 !important;font-size:14px !important;font-weight:700 !important;cursor:pointer !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq .citizen-faq-go:hover {border-color:#e9b46f !important;background:#fff1e0 !important}
    :root body#royal-blue-app.community-view .citizen-content > .citizen-faq .citizen-faq-go svg {width:15px !important;height:15px !important;color:#d97706 !important}
  }


  /* @@quan-tri-24-10 begin */
  /* Quan tri (#admin) tren may tinh (24-10-2026): cung he thong cho moi the con.
     Chu toi thieu 12-13 px (nhan phien ban, gio, nut thao tac dong danh sach truoc 10-11 px), cau giai thich dai toi da 90 ky tu moi dong,
     o nhap dung mot minh khong keo dai ca man hinh 2K, khoi noi dung co theo khung (bang trong .anh/.aml), tab bieu mau ro hon. */
  @media (min-width: 1280px) {
    :root body#royal-blue-app #content .admin-workspace-top :is(.admin-main,#admin-panel,#admin-panel > *,.anh,.aml,.aml-grid > *,.anh-setup > *) {min-width:0 !important;max-width:100% !important}
    :root body#royal-blue-app #content .admin-workspace-top :is(.anh,.aml) {grid-template-columns:minmax(0,1fr) !important}
    :root body#royal-blue-app #content .admin-workspace-top .admin-context h2 {line-height:1.3 !important}
    :root body#royal-blue-app #content .admin-workspace-top .admin-context p {font-size:14px !important;line-height:1.5 !important}
    /* thanh con: mot hang, cac o bang nhau (7 man hinh cua Thong bao khong con 1 o le xuong hang) */
    :root body#royal-blue-app #content .admin-workspace-top .admin-subnav {display:grid !important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px !important}
    :root body#royal-blue-app #content .admin-workspace-top .admin-subnav-item {display:flex !important;align-items:center;justify-content:center;min-width:0;min-height:44px !important;padding:6px 10px !important;font-size:14px !important;line-height:1.3 !important;text-align:center}

    :root body#royal-blue-app #content .admin-workspace-top .admin-editor-tabs > * {min-height:44px !important;padding:8px 14px !important;font-size:14px !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .field > label {font-size:13.5px !important;line-height:1.4 !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel :is(.field small,.admin-field-help,.admin-section-description,.section-note,.admin-detail-note,.admin-reason-note) {font-size:13px !important;line-height:1.55 !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel :is(.admin-section-description,.section-note,.admin-detail-note,.admin-section > p,.anh-note,.aml-intro,.card > p) {max-width:90ch}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel :is(.admin-section,.card,.stack) > label > :is(input:not([type=checkbox]):not([type=radio]),select) {max-width:560px !important}

    :root body#royal-blue-app #content .admin-workspace-top #admin-panel :is(.btn,button:not(.adm-color-chip):not(.adm-color-default):not(.vn-dt-open):not(th button),.admin-text-button,.pg-size select,summary:not(.admin-record > summary)) {min-height:44px !important;box-sizing:border-box !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]):not(.vn-dt-native),select) {min-height:44px !important;box-sizing:border-box !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .vn-dt-open {min-width:44px !important;min-height:44px !important}
    :root body#royal-blue-app #content .admin-workspace-top :is(.admin-topbar-tab,.admin-menu-search) {min-height:44px !important;box-sizing:border-box !important}

    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .admin-record-summary strong {font-size:14px !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .admin-record-summary small {font-size:12.5px !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .admin-record-count {font-size:12px !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .admin-record-actions > .btn {min-height:44px !important;padding:7px 12px !important;font-size:13px !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .admin-record-actions > span {font-size:12px !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel :is(.admin-history-entry,.admin-history-list) :is(.badge,small,time) {font-size:12px !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .admin-record-section h3 {font-size:13px !important}
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .pg-btn {min-height:44px !important;min-width:44px !important}

    :root body#royal-blue-app:has(.admin-workspace-top) #modal-root .modal {max-height:calc(100dvh - 48px) !important;overflow-y:auto !important}
  }

  /* Bo chon ma bam/cham (admin-code-pickers.js), may tinh */
  @media (min-width: 1280px) {
    :root body#royal-blue-app #content .admin-workspace-top #admin-panel .field:has(> .adm-codes.is-multiple) {grid-column:1/-1 !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes {display:grid;gap:8px;margin-top:2px;min-width:0}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(160px,100%),1fr));gap:8px}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code {display:grid !important;grid-template-columns:24px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;min-width:0;min-height:52px !important;margin:0 !important;padding:7px 12px !important;border:1.5px solid #d6e2f1 !important;border-radius:12px !important;background:#fff !important;color:#17304f !important;text-align:left !important;font:inherit;cursor:pointer;box-shadow:none !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code > i {grid-row:1 / span 2;display:grid;place-items:center;box-sizing:border-box;width:24px;height:24px;border:2px solid #b9cbe3;border-radius:7px;background:#fff;color:#fff;font-style:normal;font-size:12.5px;font-weight:800;line-height:1}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes.is-single .adm-code > i {border-radius:50%}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code b {grid-column:2;font-size:14.5px !important;font-weight:800;line-height:1.25;overflow-wrap:break-word}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code span {grid-column:2;color:#5a6f8c;font-size:12.5px !important;line-height:1.3;overflow-wrap:break-word}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code:hover {border-color:#9ec0ff !important;background:#f4f8ff !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code:focus-visible {outline:3px solid #9ec0ff;outline-offset:2px}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code:is([aria-checked=true],[aria-pressed=true]) {border-color:#175adb !important;background:#eef4ff !important;box-shadow:0 0 0 3px #dbe8ff !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code:is([aria-checked=true],[aria-pressed=true]) > i {border-color:#175adb;background:#175adb}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code:is([aria-checked=true],[aria-pressed=true]) > i.adm-code-tick {background:#175adb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/15px 15px no-repeat}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code.is-unknown {border-style:dashed !important;border-color:#e0a84a !important;background:#fffaf0 !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code[data-level] {border-left-width:6px !important;border-left-color:var(--lv,#9db0c9) !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code[data-level="0"] {--lv:#12a150}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code[data-level="1"] {--lv:#f5c000}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code[data-level="2"] {--lv:#ff7a1a}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code[data-level="3"] {--lv:#e5251b}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code[data-level="4"] {--lv:#7e0023}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-code-empty b {font-weight:700}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-order {display:flex;flex-wrap:wrap;gap:6px;padding:8px;border:1px dashed #cfdcf0;border-radius:12px;background:#f8fbff}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-order-title {flex:1 1 100%;color:#5a6f8c;font-size:12.5px;font-weight:600}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-order-item {display:inline-flex;align-items:center;gap:2px;padding:2px 3px 2px 10px;border:1px solid #d6e2f1;border-radius:999px;background:#fff;color:#17304f}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-order-item > i {margin-right:4px;color:#175adb;font-style:normal;font-size:12px;font-weight:800}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-order-item > b {margin-right:2px;font-size:14px}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-order-move {display:grid !important;place-items:center;width:40px !important;min-width:40px !important;height:40px !important;min-height:40px !important;padding:0 !important;border:0 !important;border-radius:50% !important;background:#eef4ff !important;color:#175adb !important;font-size:19px !important;font-weight:800;line-height:1;cursor:pointer}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-order-move:disabled {opacity:.35;cursor:default}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-tools {display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-state {display:block;color:#5a6f8c;font-size:12.5px !important;line-height:1.45}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-state[data-tone="warn"] {color:#b03a12;font-weight:600}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-new {display:flex;gap:8px;align-items:center}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-new[hidden] {display:none !important}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-new > input {flex:1 1 auto;min-width:0}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .adm-codes-select {width:100%;max-width:560px}
    :is(:root body#royal-blue-app #content .admin-workspace-top #admin-panel,:root body#royal-blue-app:has(.admin-workspace-top) #modal-root) .admin-record-body .adm-codes-grid {grid-template-columns:repeat(auto-fill,minmax(min(120px,100%),1fr))}
  }
  /* @@quan-tri-24-10 end */

  /* ---------- Residents' page: top bar (24-10-2026) ----------
     Stays at the top while scrolling (frosted white), menu items as soft pills with the active one tinted, the subscribe call to action
     as the same blue gradient button as the action cards, "Dành cho cán bộ" as a quiet secondary button with its shield, search as a
     round icon button. Section targets keep clear of the bar. */
  @media (min-width: 1280px) {
    :root body#royal-blue-app.community-view .citizen-header {position:sticky !important;top:0 !important;z-index:3000 !important;background:rgba(255,255,255,.86) !important;-webkit-backdrop-filter:saturate(1.6) blur(14px) !important;backdrop-filter:saturate(1.6) blur(14px) !important;border-bottom:1px solid rgba(214,226,242,.9) !important;box-shadow:0 10px 28px -24px rgba(15,45,94,.55) !important}
    :root body#royal-blue-app.community-view .citizen-dashboard [id] {scroll-margin-top:88px !important}
    /* the staff width cap (#content 1860/2080 px from 1920 px) must not cut the residents' page short on wide screens */
    :root body#royal-blue-app.community-view #content {max-width:none !important;padding:0 !important}
    :root body#royal-blue-app.community-view .citizen-header-inner {flex-wrap:nowrap !important;min-height:72px !important;gap:18px !important;padding:0 32px !important}
    :root body#royal-blue-app.community-view .citizen-header nav {align-items:center !important;gap:4px !important;margin:0 auto !important;padding:4px !important;border:1px solid #e3ebf6 !important;border-radius:999px !important;background:#f6f9fe !important}
    :root body#royal-blue-app.community-view .citizen-header nav button {min-height:40px !important;height:40px !important;padding:0 16px !important;border-radius:999px !important;font-size:14px !important;font-weight:600 !important;color:#2b4a70 !important;background:transparent !important;transition:background-color .15s ease,color .15s ease,box-shadow .15s ease !important}
    :root body#royal-blue-app.community-view .citizen-header nav button::after {display:none !important}
    :root body#royal-blue-app.community-view .citizen-header nav button:not(.citizen-nav-cta):hover {background:#e9f1ff !important;color:#0f47b3 !important}
    :root body#royal-blue-app.community-view .citizen-header nav button.active:not(.citizen-nav-cta) {background:#fff !important;color:#0f2d5e !important;font-weight:750 !important;box-shadow:0 1px 2px rgba(15,45,94,.08),0 4px 12px -6px rgba(15,45,94,.25) !important}
    :root body#royal-blue-app.community-view .citizen-header nav button:focus-visible {outline:3px solid #aac8ff !important;outline-offset:2px !important}
    :root body#royal-blue-app.community-view .citizen-header nav .citizen-nav-cta {gap:8px !important;margin-left:6px !important;padding:0 18px 0 14px !important;background:linear-gradient(145deg,#3b8bff,#0862ff 55%,#0a4fd1) !important;color:#fff !important;font-weight:700 !important;box-shadow:0 2px 4px rgba(8,98,255,.25),0 10px 18px -10px rgba(8,98,255,.85) !important}
    :root body#royal-blue-app.community-view .citizen-header nav .citizen-nav-cta::before {content:"" !important;flex:none !important;width:17px !important;height:17px !important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E") center / contain no-repeat !important}
    :root body#royal-blue-app.community-view .citizen-header nav .citizen-nav-cta.has-svg::before {display:none !important}
    :root body#royal-blue-app.community-view .citizen-header nav .citizen-nav-cta:hover {filter:brightness(1.06) !important;transform:translateY(-1px) !important}
    :root body#royal-blue-app.community-view .citizen-staff {display:inline-flex !important;align-items:center !important;gap:8px !important;min-height:42px !important;height:42px !important;padding:0 16px 0 14px !important;border:1px solid #d3e2fa !important;border-radius:999px !important;background:#fff !important;color:#0f3f86 !important;font-size:14px !important;font-weight:700 !important;box-shadow:0 1px 2px rgba(15,45,94,.06) !important;transition:background-color .15s ease,border-color .15s ease !important}
    :root body#royal-blue-app.community-view .citizen-staff svg {display:block !important;order:-1 !important;width:16px !important;height:16px !important;color:#175adb !important}
    :root body#royal-blue-app.community-view .citizen-staff:hover {background:#eef4ff !important;border-color:#9fc0f5 !important}
    :root body#royal-blue-app.community-view .citizen-header-search {width:42px !important;height:42px !important;min-width:42px !important;min-height:42px !important;padding:0 !important;border:1px solid #e3ebf6 !important;border-radius:50% !important;background:#f6f9fe !important;color:#1f4f8f !important;transition:background-color .15s ease,border-color .15s ease !important}
    :root body#royal-blue-app.community-view .citizen-header-search svg {width:19px !important;height:19px !important}
    :root body#royal-blue-app.community-view .citizen-header-search:hover {background:#eef4ff !important;border-color:#9fc0f5 !important;color:#175adb !important}
    :root body#royal-blue-app.community-view :is(.citizen-staff,.citizen-header-search):focus-visible {outline:3px solid #aac8ff !important;outline-offset:2px !important}
  }
  @media (min-width: 1280px) and (max-width: 1439px) {
    :root body#royal-blue-app.community-view .citizen-header-inner {gap:10px !important;padding:0 20px !important}
    :root body#royal-blue-app.community-view .citizen-header nav {gap:2px !important}
    :root body#royal-blue-app.community-view .citizen-header nav button {padding:0 11px !important;font-size:13.5px !important}
    :root body#royal-blue-app.community-view .citizen-header nav .citizen-nav-cta {margin-left:4px !important;padding:0 14px 0 12px !important}
  }

  /* @@nguong-desktop-25-10 begin */
  /* Nguong canh bao (#thresholds, bo C0-C4) tren desktop: the chi tieu xep theo cot can bang (khong con the le mot minh
     mot hang, khong con lo trong giua cac the cao thap khac nhau), cot "Dai so do" vua noi dung, phan dau trang
     va cac danh sach dai chia cot de dong chu khong qua dai. Chi doi bo cuc; markup/id/hanh vi luu giu nguyen. */
  @media (min-width: 1280px) {
    :root body#royal-blue-app .th-set-page { gap: 16px !important; }
    /* phan dau: 2 cot can doi, hop "Cai dat chung" cao bang cot trai */
    :root body#royal-blue-app .th-set-page .th-set-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) !important; gap: 20px !important; align-items: stretch !important; }
    :root body#royal-blue-app .th-set-page .th-set-top > .th-general { display: flex !important; flex-direction: column !important; }
    :root body#royal-blue-app .th-set-page .th-set-top > .th-general > .tiny { margin-top: auto !important; padding-top: 6px !important; }
    /* thanh di toi chi tieu: chu thich mau nam gon ben phai, khong day thanh dinh len 2 hang */
    :root body#royal-blue-app .th-set-page .th-param-nav { flex-wrap: nowrap !important; }
    :root body#royal-blue-app .th-set-page .th-param-nav a { flex: 0 0 auto !important; }
    :root body#royal-blue-app .th-set-page .th-param-nav .th-legend { flex: 1 1 200px !important; min-width: 0 !important; margin-left: auto !important; text-align: right !important; font-size: 12px !important; line-height: 1.35 !important; }
    /* the chi tieu: luoi theo hang; moi the dung chung 4 tang voi cac the cung hang (subgrid): dau the, thanh C0-C4,
       ghi chu, bang dai -> thanh C0-C4 va bang thang hang nhau, the cung hang cao bang nhau */
    :root body#royal-blue-app .th-set-page .th-set-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 16px !important; row-gap: 0 !important; align-items: stretch !important; }
    :root body#royal-blue-app .th-set-page .th-set-grid > .th-set-param { display: grid !important; grid-row: span 4 !important; grid-template-rows: subgrid !important; row-gap: 8px !important; align-content: start !important; margin: 0 0 16px !important; min-width: 0 !important; }
    :root body#royal-blue-app .th-set-page .th-set-param > .th-card-head { grid-row: 1 !important; align-self: start !important; }
    :root body#royal-blue-app .th-set-page .th-set-param > .th-param-notes { grid-row: 3 !important; margin: 0 !important; align-self: start !important; }
    :root body#royal-blue-app .th-set-page .th-set-param > .ab-scale { grid-row: 2 !important; margin: 4px 0 6px !important; align-self: start !important; }
    :root body#royal-blue-app .th-set-page .th-set-param > .table-wrap { grid-row: 4 !important; align-self: start !important; margin: 0 !important; }
    /* bang dai: cot dai so do vua chu (khong xuong dong), cot muc lay phan con lai */
    :root body#royal-blue-app .th-set-page .th-set-param .th-set-table { table-layout: auto !important; }
    :root body#royal-blue-app .th-set-page .th-set-param .th-set-table th:first-child,
    :root body#royal-blue-app .th-set-page .th-set-param .th-set-table td.th-range { width: 1% !important; white-space: nowrap !important; padding-right: 18px !important; }
    :root body#royal-blue-app .th-set-page .th-set-param .th-set-table td { vertical-align: middle !important; }
  }
  @media (min-width: 1536px) {
    :root body#royal-blue-app .th-set-page .th-set-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  }
  @media (min-width: 2200px) {
    :root body#royal-blue-app .th-set-page .th-set-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) !important; }
    :root body#royal-blue-app .th-set-page .th-set-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  }
  /* the le cuoi (mot minh mot hang, theo so cot cua tung dai): trai het chieu ngang, thanh C0-C4 o tren, cac muc thanh o xep ngang ben duoi */
  @media (min-width: 1280px) and (max-width: 1535px) {
    :root body#royal-blue-app .th-set-page .th-set-grid > .th-set-param:last-child:nth-child(odd) { grid-column: 1 / -1 !important; grid-template-rows: none !important; grid-auto-rows: auto !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(odd) > .th-card-head { grid-row: 1 !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(odd) > .ab-scale { grid-row: 2 !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(odd) > .th-param-notes { grid-row: 3 !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(odd) > .table-wrap { grid-row: 4 !important; border: 0 !important; background: none !important; box-shadow: none !important; overflow: visible !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(odd) .th-set-table thead { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(odd) .th-set-table, :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(odd) .th-set-table tbody { display: block !important; width: 100% !important; border: 0 !important; background: none !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(odd) .th-set-table tbody { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important; gap: 8px !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(odd) .th-set-table tr { display: flex !important; flex-direction: column !important; gap: 6px !important; padding: 10px 12px !important; border: 1px solid #e1ecf7 !important; border-radius: 10px !important; background: #fbfdff !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(odd) .th-set-table tr.th-normal { background: #f3faf6 !important; border-color: #d4ecdf !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(odd) .th-set-table td { display: block !important; width: auto !important; padding: 0 !important; border: 0 !important; background: none !important; white-space: normal !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(odd) .th-set-table td.th-range { order: 2 !important; font-size: 14px !important; line-height: 1.5 !important; }
  }
  @media (min-width: 1536px) and (max-width: 2199px) {
    :root body#royal-blue-app .th-set-page .th-set-grid > .th-set-param:last-child:nth-child(3n+1) { grid-column: 1 / -1 !important; grid-template-rows: none !important; grid-auto-rows: auto !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(3n+1) > .th-card-head { grid-row: 1 !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(3n+1) > .ab-scale { grid-row: 2 !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(3n+1) > .th-param-notes { grid-row: 3 !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(3n+1) > .table-wrap { grid-row: 4 !important; border: 0 !important; background: none !important; box-shadow: none !important; overflow: visible !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(3n+1) .th-set-table thead { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(3n+1) .th-set-table, :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(3n+1) .th-set-table tbody { display: block !important; width: 100% !important; border: 0 !important; background: none !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(3n+1) .th-set-table tbody { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important; gap: 8px !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(3n+1) .th-set-table tr { display: flex !important; flex-direction: column !important; gap: 6px !important; padding: 10px 12px !important; border: 1px solid #e1ecf7 !important; border-radius: 10px !important; background: #fbfdff !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(3n+1) .th-set-table tr.th-normal { background: #f3faf6 !important; border-color: #d4ecdf !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(3n+1) .th-set-table td { display: block !important; width: auto !important; padding: 0 !important; border: 0 !important; background: none !important; white-space: normal !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(3n+1) .th-set-table td.th-range { order: 2 !important; font-size: 14px !important; line-height: 1.5 !important; }
  }
  @media (min-width: 2200px) {
    :root body#royal-blue-app .th-set-page .th-set-grid > .th-set-param:last-child:nth-child(4n+1) { grid-column: 1 / -1 !important; grid-template-rows: none !important; grid-auto-rows: auto !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(4n+1) > .th-card-head { grid-row: 1 !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(4n+1) > .ab-scale { grid-row: 2 !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(4n+1) > .th-param-notes { grid-row: 3 !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(4n+1) > .table-wrap { grid-row: 4 !important; border: 0 !important; background: none !important; box-shadow: none !important; overflow: visible !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(4n+1) .th-set-table thead { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(4n+1) .th-set-table, :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(4n+1) .th-set-table tbody { display: block !important; width: 100% !important; border: 0 !important; background: none !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(4n+1) .th-set-table tbody { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important; gap: 8px !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(4n+1) .th-set-table tr { display: flex !important; flex-direction: column !important; gap: 6px !important; padding: 10px 12px !important; border: 1px solid #e1ecf7 !important; border-radius: 10px !important; background: #fbfdff !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(4n+1) .th-set-table tr.th-normal { background: #f3faf6 !important; border-color: #d4ecdf !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(4n+1) .th-set-table td { display: block !important; width: auto !important; padding: 0 !important; border: 0 !important; background: none !important; white-space: normal !important; }
    :root body#royal-blue-app .th-set-page .th-set-param:last-child:nth-child(4n+1) .th-set-table td.th-range { order: 2 !important; font-size: 14px !important; line-height: 1.5 !important; }
  }
  @media (min-width: 1280px) {
    :root body#royal-blue-app .th-set-page:is([data-jump="button"], [data-jump="static"]) .th-param-nav { position: static !important; box-shadow: none !important; backdrop-filter: none !important; }
    :root body#royal-blue-app .th-set-page:is([data-jump="button"], [data-jump="static"]) :is(.th-set-param, #th-p-extra) { scroll-margin-top: 20px !important; }
    :root body#royal-blue-app .th-set-page .th-jump { position: fixed !important; right: 24px !important; bottom: 24px !important; z-index: 40 !important; display: flex !important; flex-direction: column !important; align-items: flex-end !important; gap: 10px !important; pointer-events: none !important; }
    :root body#royal-blue-app .th-set-page .th-jump > * { pointer-events: auto !important; }
    :root body#royal-blue-app .th-set-page .th-jump-btn { display: inline-flex !important; align-items: center !important; gap: 8px !important; height: 46px !important; padding: 0 18px 0 14px !important; border: 1px solid #175adb !important; border-radius: 999px !important; background: #175adb !important; color: #fff !important; font: inherit !important; font-size: 14px !important; font-weight: 700 !important; box-shadow: 0 10px 26px rgba(23, 90, 219, .30) !important; cursor: pointer !important; transition: opacity .18s ease, transform .18s ease !important; }
    :root body#royal-blue-app .th-set-page .th-jump-btn svg { width: 18px !important; height: 18px !important; }
    :root body#royal-blue-app .th-set-page .th-jump-btn:hover { background: #0f4bc0 !important; }
    :root body#royal-blue-app .th-set-page .th-jump-btn[aria-expanded="true"] { background: #fff !important; color: #175adb !important; }
    :root body#royal-blue-app .th-set-page:not([data-nav-out]) .th-jump-btn { opacity: 0 !important; transform: translateY(12px) !important; pointer-events: none !important; }
    :root body#royal-blue-app .th-set-page .th-jump-menu { display: grid !important; gap: 8px !important; width: 300px !important; max-height: calc(100vh - 150px) !important; overflow: auto !important; padding: 12px !important; border: 1px solid #dbe7fb !important; border-radius: 14px !important; background: #fff !important; box-shadow: 0 18px 44px rgba(19, 56, 88, .18) !important; }
    :root body#royal-blue-app .th-set-page .th-jump-menu > strong { font-size: 13px !important; color: #133858 !important; }
    :root body#royal-blue-app .th-set-page .th-jump-links { display: grid !important; gap: 4px !important; }
    :root body#royal-blue-app .th-set-page .th-jump-links a { display: flex !important; align-items: center !important; min-height: 38px !important; padding: 0 12px !important; border: 1px solid #e1ecfb !important; border-radius: 9px !important; background: #f5f9ff !important; color: #245bba !important; font-size: 14px !important; font-weight: 650 !important; text-decoration: none !important; }
    :root body#royal-blue-app .th-set-page .th-jump-links a:is(:hover, :focus-visible) { background: #175adb !important; border-color: #175adb !important; color: #fff !important; outline: none !important; }
    :root body#royal-blue-app .th-set-page .th-jump-menu .th-legend { margin: 2px 0 0 !important; font-size: 12px !important; line-height: 1.4 !important; color: #62758d !important; }
  }
  :root body#royal-blue-app .th-set-page .th-jump[hidden], :root body#royal-blue-app .th-set-page .th-jump-menu[hidden] { display: none !important; }
  /* dau trang bo nguong (25-10-2026, "qua nhieu chu"): dong trang thai, tieu de la nhom, 4 so lieu co bieu tuong, phan chu dai thu gon. Moi kho. */
  :root body#royal-blue-app .th-set-page .th-set-about { gap: 10px !important; }
  :root body#royal-blue-app .th-set-page .th-status { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 6px 10px !important; margin: 0 !important; font-size: 12.5px !important; color: #526c89 !important; }
  :root body#royal-blue-app .th-set-page .th-live { display: inline-flex !important; align-items: center !important; gap: 6px !important; padding: 3px 10px 3px 8px !important; border-radius: 999px !important; background: #e7f6ed !important; color: #0f7a3d !important; font-size: 12px !important; font-weight: 750 !important; }
  :root body#royal-blue-app .th-set-page .th-live i { width: 7px !important; height: 7px !important; border-radius: 50% !important; background: #12a150 !important; box-shadow: 0 0 0 3px rgba(18, 161, 80, .2) !important; }
  :root body#royal-blue-app .th-set-page .th-status code { padding: 2px 7px !important; border-radius: 6px !important; background: #eef3fb !important; color: #31527a !important; font-size: 11.5px !important; }
  :root body#royal-blue-app .th-set-page .th-status .th-readonly { display: inline-flex !important; align-items: center !important; gap: 4px !important; padding: 2px 9px !important; border-radius: 999px !important; background: #f1f4f8 !important; color: #526c89 !important; font-size: 12px !important; font-weight: 700 !important; }
  :root body#royal-blue-app .th-set-page .th-set-heading { margin: 2px 0 0 !important; font-size: 19px !important; font-weight: 800 !important; line-height: 1.3 !important; color: #133858 !important; }
  :root body#royal-blue-app .th-set-page .th-set-about .th-set-facts { margin: 0 !important; gap: 8px !important; }
  @media (min-width: 701px) {
    :root body#royal-blue-app .th-set-page .th-set-about .th-set-facts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  }
  @media (min-width: 1536px) {
    :root body#royal-blue-app .th-set-page .th-set-about .th-set-facts { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  }
  :root body#royal-blue-app .th-set-page .th-set-about .th-set-facts > div { display: grid !important; grid-template-columns: 22px minmax(0, 1fr) !important; grid-template-areas: "i t" "v v" !important; column-gap: 7px !important; row-gap: 3px !important; align-items: center !important; min-width: 0 !important; padding: 8px 10px !important; border: 1px solid #e1eafa !important; border-radius: 12px !important; background: #fff !important; }
  :root body#royal-blue-app .th-set-page .th-fact-icon { grid-area: i !important; display: grid !important; place-items: center !important; width: 22px !important; height: 22px !important; border-radius: 7px !important; background: #eef4ff !important; color: #245bba !important; }
  :root body#royal-blue-app .th-set-page .th-set-about .th-set-facts dt { grid-area: t !important; margin: 0 !important; font-size: 11.5px !important; font-weight: 650 !important; line-height: 1.25 !important; letter-spacing: 0 !important; text-transform: none !important; color: #62758d !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
  :root body#royal-blue-app .th-set-page .th-fact-icon svg { width: 13px !important; height: 13px !important; }
  :root body#royal-blue-app .th-set-page .th-set-about .th-set-facts dd { grid-area: v !important; margin: 0 !important; font-size: 17px !important; font-weight: 800 !important; line-height: 1.2 !important; color: #133858 !important; white-space: nowrap !important; }
  :root body#royal-blue-app .th-set-page .th-set-more { border-top: 1px solid #e8eef7 !important; padding-top: 8px !important; }
  :root body#royal-blue-app .th-set-page .th-set-more + .th-set-more { margin-top: -10px !important; border-top: 0 !important; padding-top: 0 !important; }
  :root body#royal-blue-app .th-set-page .th-set-more > summary { display: flex !important; align-items: center !important; gap: 8px !important; min-height: 36px !important; cursor: pointer !important; list-style: none !important; font-size: 13px !important; font-weight: 700 !important; color: #245bba !important; }
  :root body#royal-blue-app .th-set-page .th-set-more > summary::-webkit-details-marker { display: none !important; }
  :root body#royal-blue-app .th-set-page .th-set-more > summary::before { content: "" !important; width: 7px !important; height: 7px !important; border-right: 2px solid currentColor !important; border-bottom: 2px solid currentColor !important; transform: rotate(-45deg) !important; transition: transform .15s ease !important; }
  :root body#royal-blue-app .th-set-page .th-set-more[open] > summary::before { transform: rotate(45deg) !important; }
  :root body#royal-blue-app .th-set-page .th-set-more > :not(summary) { margin: 8px 0 0 !important; }
  :root body#royal-blue-app .th-set-page .th-set-more .th-set-title { font-size: 13.5px !important; font-weight: 600 !important; line-height: 1.5 !important; color: #2d4a6b !important; }
  :root body#royal-blue-app .th-set-page .th-set-more .th-tip { font-size: 13px !important; line-height: 1.5 !important; color: #48627f !important; }
  /* goc phai dau the (Quan tri > Menu > threshold_notes = icon), moi kho tu 25-10-2026: "Muc 2.7" + nut (i) co so ghi chu; ghi chu va can cu
     day du o popover (di chuot; bam/cham hoac Enter de mo, Esc de dong). Desktop: ten chi tieu va goc phai cung hang, nut Sua dai/Cai dat xuong hang duoi khi thieu cho */
  :root body#royal-blue-app .th-set-page[data-notes-icon] .th-set-param > .th-card-head > .th-cite, :root body#royal-blue-app .th-set-page[data-notes-icon] .th-set-param > .th-param-notes { display: none !important; }
  :root body#royal-blue-app .th-set-page .th-head-meta { display: inline-flex !important; align-items: center !important; justify-content: flex-end !important; gap: 6px !important; min-width: 0 !important; }
  :root body#royal-blue-app .th-set-page .th-cite-short { display: inline-flex !important; align-items: center !important; height: 26px !important; padding: 0 9px !important; border: 1px solid #dbe6f3 !important; border-radius: 999px !important; background: #f3f7fc !important; color: #48627f !important; font-size: 12px !important; font-weight: 650 !important; white-space: nowrap !important; }
  :root body#royal-blue-app .th-set-page .th-info { position: relative !important; display: inline-flex !important; }
  :root body#royal-blue-app .th-set-page .th-info-btn { display: inline-flex !important; align-items: center !important; gap: 4px !important; height: 28px !important; min-width: 28px !important; padding: 0 7px !important; border: 1px solid #cfe0fb !important; border-radius: 999px !important; background: #fff !important; color: #245bba !important; font: inherit !important; font-size: 12px !important; font-weight: 750 !important; cursor: pointer !important; }
  :root body#royal-blue-app .th-set-page .th-info-btn b { font-weight: 800 !important; }
  :root body#royal-blue-app .th-set-page .th-info-btn:is(:hover, :focus-visible, [aria-expanded="true"]) { background: #175adb !important; border-color: #175adb !important; color: #fff !important; outline: none !important; }
  :root body#royal-blue-app .th-set-page .th-info-pop { position: absolute !important; z-index: 30 !important; top: calc(100% + 6px) !important; right: 0 !important; width: min(340px, calc(100vw - 40px)) !important; padding: 10px 12px !important; border: 1px solid #dbe7fb !important; border-radius: 12px !important; background: #fff !important; box-shadow: 0 16px 38px rgba(19, 56, 88, .18) !important; color: #2d4a6b !important; font-size: 13px !important; font-weight: 500 !important; line-height: 1.45 !important; text-align: left !important; white-space: normal !important; }
  :root body#royal-blue-app .th-set-page .th-info-pop ul { margin: 0 0 8px !important; padding-left: 18px !important; display: grid !important; gap: 4px !important; }
  :root body#royal-blue-app .th-set-page .th-info-pop .th-info-cite { display: block !important; padding-top: 6px !important; border-top: 1px solid #e5edf6 !important; color: #526c89 !important; font-size: 12px !important; }
  :root body#royal-blue-app .th-set-page .th-info-pop ul:last-child { margin-bottom: 0 !important; }
  :root body#royal-blue-app .th-set-page .th-info-pop ul + .th-info-cite { margin-top: 0 !important; }
  :root body#royal-blue-app .th-set-page .th-info-pop:not(:has(ul)) .th-info-cite { padding-top: 0 !important; border-top: 0 !important; }
  :root body#royal-blue-app .th-set-page .th-info-cite b { display: block !important; margin-bottom: 1px !important; color: #133858 !important; font-size: 11.5px !important; text-transform: uppercase !important; letter-spacing: .2px !important; }
  :root body#royal-blue-app .th-set-page .th-head-meta[hidden], :root body#royal-blue-app .th-set-page .th-info-pop[hidden] { display: none !important; }
  :root body#royal-blue-app .th-set-page .th-unit-head { font-size: .92em !important; font-weight: 500 !important; color: #62758d !important; white-space: nowrap !important; }
  @media (hover: hover) {
    :root body#royal-blue-app .th-set-page .th-info:hover > .th-info-pop { display: block !important; }
  }
  @media (min-width: 1280px) {
    :root body#royal-blue-app .th-set-page[data-notes-icon] .th-set-param > .th-card-head { display: flex !important; flex-wrap: wrap !important; align-items: center !important; column-gap: 8px !important; row-gap: 6px !important; }
    :root body#royal-blue-app .th-set-page[data-notes-icon] .th-set-param > .th-card-head > :first-child { flex: 1 1 11em !important; min-width: 9.5em !important; }
    :root body#royal-blue-app .th-set-page[data-notes-icon] .th-set-param > .th-card-head > .th-head-meta { flex: 0 0 auto !important; margin-left: auto !important; }
    :root body#royal-blue-app .th-set-page[data-notes-icon] .th-set-param > .th-card-head > .th-card-actions { flex: 0 0 auto !important; margin-left: auto !important; flex-wrap: nowrap !important; }
  }
  /* "Dao dong trong ngay va to hop" + "Cach he thong dien giai tai lieu" (25-10-2026): quy tac doc thanh cau "Khi ...", muc o ben trai,
     nhom Dang tat thu gon; ghi chu gom theo chi tieu, phan chot cua khach in nghieng. Nen chung cho moi kho (lop moi, chi trang nay), desktop chia cot. */
  :root body#royal-blue-app .th-set-page .th-extra-intro { margin: 2px 0 12px !important; font-size: 13px !important; line-height: 1.5 !important; color: #48627f !important; }
  :root body#royal-blue-app .th-set-page .th-rule-groups { display: grid !important; gap: 14px !important; }
  :root body#royal-blue-app .th-set-page .th-rule-group h3, :root body#royal-blue-app .th-set-page .th-note-topic h3 { margin: 0 0 2px !important; font-size: 14px !important; font-weight: 750 !important; color: #133858 !important; }
  :root body#royal-blue-app .th-set-page .th-rule-hint { margin: 0 0 8px !important; font-size: 12px !important; color: #62758d !important; }
  :root body#royal-blue-app .th-set-page ul.th-rules { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid !important; gap: 8px !important; font-size: 13px !important; }
  :root body#royal-blue-app .th-set-page .th-rule { display: grid !important; grid-template-columns: 76px minmax(0, 1fr) !important; gap: 12px !important; align-items: start !important; padding: 10px 12px !important; border: 1px solid #e1eafa !important; border-radius: 10px !important; background: #fbfdff !important; opacity: 1 !important; }
  :root body#royal-blue-app .th-set-page .th-rule-level { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 4px !important; text-align: center !important; }
  :root body#royal-blue-app .th-set-page .th-rule-level .th-c { min-width: 44px !important; padding: 4px 8px !important; font-size: 13px !important; }
  :root body#royal-blue-app .th-set-page .th-rule-level small, :root body#royal-blue-app .th-set-page .th-rule-cite { display: block !important; margin: 0 !important; font-size: 11.5px !important; line-height: 1.35 !important; color: #62758d !important; }
  :root body#royal-blue-app .th-set-page .th-rule-body { display: grid !important; gap: 3px !important; min-width: 0 !important; }
  :root body#royal-blue-app .th-set-page .th-rule-body strong { font-size: 14px !important; color: #133858 !important; }
  :root body#royal-blue-app .th-set-page .th-rule-when { font-size: 13px !important; line-height: 1.5 !important; color: #2d4a6b !important; }
  :root body#royal-blue-app .th-set-page .th-rule-when b { margin-right: 4px !important; color: #175adb !important; font-weight: 800 !important; }
  :root body#royal-blue-app .th-set-page .th-rule.is-off { background: #f6f7f9 !important; border-style: dashed !important; }
  :root body#royal-blue-app .th-set-page .th-rule.is-off :is(.th-rule-level, .th-rule-body) { opacity: .72 !important; }
  :root body#royal-blue-app .th-set-page .th-rule-off { margin-top: 14px !important; padding-top: 10px !important; border-top: 1px dashed #d5deeb !important; }
  :root body#royal-blue-app .th-set-page .th-rule-off > summary { cursor: pointer !important; font-size: 13px !important; font-weight: 650 !important; color: #48627f !important; }
  :root body#royal-blue-app .th-set-page .th-rule-off > ul { margin-top: 10px !important; }
  :root body#royal-blue-app .th-set-page .th-note-topics { display: grid !important; gap: 12px !important; }
  :root body#royal-blue-app .th-set-page .th-note-topic { padding: 10px 12px !important; border: 1px solid #e1eafa !important; border-radius: 10px !important; background: #fbfdff !important; }
  :root body#royal-blue-app .th-set-page .th-note-topic h3 { margin-bottom: 6px !important; }
  :root body#royal-blue-app .th-set-page .th-note-topic .th-set-notes { display: grid !important; gap: 5px !important; margin: 0 !important; padding-left: 18px !important; font-size: 13px !important; line-height: 1.5 !important; columns: auto !important; }
  :root body#royal-blue-app .th-set-page .th-note-src { font-style: italic !important; color: #62758d !important; }
  :root body#royal-blue-app .th-set-page .th-note-source { margin: 12px 0 0 !important; font-size: 12px !important; line-height: 1.5 !important; color: #62758d !important; }
  :root body#royal-blue-app .th-set-page .th-note-source b { display: block !important; color: #133858 !important; font-size: 11.5px !important; text-transform: uppercase !important; letter-spacing: .2px !important; }
  @media (min-width: 1280px) {
    :root body#royal-blue-app .th-set-page .th-rule-groups { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)) !important; column-gap: 20px !important; align-items: start !important; }
    :root body#royal-blue-app .th-set-page .th-rule-off > ul { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)) !important; }
    :root body#royal-blue-app .th-set-page .th-note-topics { display: block !important; columns: 2 !important; column-gap: 12px !important; }
    :root body#royal-blue-app .th-set-page .th-note-topic { break-inside: avoid !important; margin: 0 0 12px !important; }
  }
  @media (min-width: 1680px) {
    :root body#royal-blue-app .th-set-page .th-note-topics { columns: 3 !important; }
  }
  /* nut chi tieu (thanh dau trang va nut noi): hover-feedback.css to chu moi lien ket khong co class ("#content a:not([class]):hover", hai id) thanh
     xanh dam, de len nen xanh -> chu bien mat (26-10-2026). Nen xanh, chu trang khi di chuot/Tab; dang mo (aria-current) nen nhat chu xanh. */
  :root body#royal-blue-app #content .th-set-page :is(.th-param-nav, .th-jump-links) a { color: #245bba !important; }
  :root body#royal-blue-app #content .th-set-page :is(.th-param-nav, .th-jump-links) a:is(:hover, :focus-visible) { background: #175adb !important; border-color: #175adb !important; color: #fff !important; text-decoration: none !important; }
  :root body#royal-blue-app #content .th-set-page :is(.th-param-nav, .th-jump-links) a:focus-visible { outline: 3px solid #aac8ff !important; outline-offset: 2px !important; }
  :root body#royal-blue-app #content .th-set-page :is(.th-param-nav, .th-jump-links) a:active { background: #0f4bc0 !important; border-color: #0f4bc0 !important; color: #fff !important; }
  /* @@nguong-desktop-25-10 end */

  /* @@quan-trac-padding-25-10 begin */
  /* Quan trac (#monitoring) tren desktop: bo padding chong lop (the 18px + khoi con 14-18px), khoang cach giua cac khoi gon lai,
     bang "Cac diem tren tuyen" vua khung (tieu de cot xuong dong, khong cuon ngang, cot Trang thai khong bi cat). Chi doi bo cuc. */
  @media (min-width: 1280px) {
    :root body#royal-blue-app #content .monitor-workspace { gap: 12px !important; }
    /* Diem theo doi + Khoang thoi gian + the con */
    :root body#royal-blue-app #content section.card.monitor-controls { padding: 12px 16px 0 !important; }
    :root body#royal-blue-app #content .monitor-controls > .monitor-toolbar { padding: 2px 0 10px !important; column-gap: 20px !important; row-gap: 10px !important; }
    :root body#royal-blue-app #content .monitor-controls > .tabs { padding: 0 !important; }
    :root body#royal-blue-app #content .monitor-controls > .tabs .tab { padding-block: 10px !important; }
    /* Dien bien + So lieu moi nhat */
    :root body#royal-blue-app #content section.card.monitor-analysis { padding: 6px !important; }
    :root body#royal-blue-app #content .monitor-analysis #monitor-chart.chart-panel { padding: 12px 14px 14px !important; }
    :root body#royal-blue-app #content .monitor-analysis #monitor-chart .chart-panel-heading { margin-bottom: 10px !important; }
    :root body#royal-blue-app #content .monitor-analysis #monitor-chart .chart-parameters { margin-bottom: 8px !important; }
    :root body#royal-blue-app #content .monitor-analysis .monitor-latest { padding: 12px 14px 14px !important; }
    :root body#royal-blue-app #content .monitor-analysis .monitor-latest > .card-title { margin-bottom: 8px !important; }
    /* Cac diem tren tuyen */
    :root body#royal-blue-app #content section.card.monitor-context { padding: 6px !important; }
    :root body#royal-blue-app #content .monitor-context > .monitor-context-heading { padding: 8px 12px !important; }
    :root body#royal-blue-app #content .monitor-context > #monitor-context-content { padding: 10px 8px 8px !important; }
    :root body#royal-blue-app #content .monitor-comparison .table-wrap { overflow-x: auto !important; }
    :root body#royal-blue-app #content .monitor-comparison table { width: 100% !important; min-width: 0 !important; table-layout: auto !important; }
    :root body#royal-blue-app #content .monitor-comparison th { white-space: normal !important; overflow-wrap: normal !important; word-break: normal !important; hyphens: none !important; vertical-align: bottom !important; padding: 9px 10px !important; line-height: 1.3 !important; }
    :root body#royal-blue-app #content .monitor-comparison td { padding: 9px 10px !important; }
    :root body#royal-blue-app #content .monitor-comparison th .comparison-column-name { display: block !important; }
    :root body#royal-blue-app #content .monitor-comparison th .comparison-column-unit { display: block !important; white-space: nowrap !important; font-size: 11.5px !important; font-weight: 500 !important; color: #5d7090 !important; }
    :root body#royal-blue-app #content .monitor-comparison :is(th, td):last-child { padding-right: 12px !important; }
    :root body#royal-blue-app #content .monitor-comparison > .note { margin: 8px 4px 0 !important; }
  }
  /* @@quan-trac-padding-25-10 end */

  /* @@do-tay-bieu-do-26-10 begin */
  /* Do thu cong (26-10-2026): hop thoai "Bieu do" (manual-chart.js) cho moi kho; hang thao tac dau trang Huong dan · Bieu do · Xem lich su gon mot hang. */
  :root body#royal-blue-app .mc-dialog { display: grid !important; gap: 12px !important; min-width: 0 !important; }
  :root body#royal-blue-app .mc-tools { display: flex !important; flex-wrap: wrap !important; align-items: end !important; justify-content: space-between !important; gap: 10px 14px !important; }
  :root body#royal-blue-app .mc-param { display: grid !important; gap: 4px !important; flex: 1 1 220px !important; max-width: 340px !important; font-size: 12px !important; font-weight: 650 !important; color: #526c89 !important; }
  :root body#royal-blue-app .mc-period { flex: 0 0 auto !important; }
  :root body#royal-blue-app .mc-period button { white-space: nowrap !important; padding-inline: 14px !important; }
  :root body#royal-blue-app .mc-chart { min-height: 200px !important; min-width: 0 !important; padding: 8px !important; border: 1px solid #e1eafa !important; border-radius: 12px !important; background: #fff !important; }
  :root body#royal-blue-app .mc-chart svg.chart { display: block !important; width: 100% !important; height: auto !important; }
  :root body#royal-blue-app .mc-mark path { fill: var(--src-manual, #7c3aed) !important; stroke: #fff !important; stroke-width: 1.6 !important; }
  :root body#royal-blue-app .mc-mark.is-flagged path { fill: #d97706 !important; }
  :root body#royal-blue-app .mc-mark.is-out path { fill-opacity: .55 !important; stroke-dasharray: 2 2 !important; }
  :root body#royal-blue-app .mc-key { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 6px !important; margin: -4px 0 0 !important; font-size: 12px !important; color: #62758d !important; }
  :root body#royal-blue-app .mc-key-line { display: inline-block !important; width: 18px !important; height: 3px !important; border-radius: 2px !important; background: #175adb !important; }
  :root body#royal-blue-app .mc-key-mark { display: inline-block !important; width: 9px !important; height: 9px !important; margin-left: 12px !important; background: var(--src-manual, #7c3aed) !important; transform: rotate(45deg) !important; }
  :root body#royal-blue-app .mc-list h3 { margin: 0 0 6px !important; font-size: 13px !important; font-weight: 750 !important; color: #133858 !important; }
  :root body#royal-blue-app .mc-list ul { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid !important; gap: 4px !important; }
  :root body#royal-blue-app .mc-list li { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto !important; align-items: center !important; gap: 10px !important; padding: 6px 10px !important; border: 1px solid #edf2f9 !important; border-radius: 8px !important; font-size: 13px !important; color: #2d4a6b !important; }
  :root body#royal-blue-app .mc-list li b { font-variant-numeric: tabular-nums !important; color: #133858 !important; }
  :root body#royal-blue-app .mc-list li small { font-weight: 500 !important; color: #62758d !important; }
  :root body#royal-blue-app .mc-flag { padding: 1px 8px !important; border-radius: 999px !important; background: #e7f6ed !important; color: #0f7a3d !important; font-size: 11.5px !important; font-style: normal !important; font-weight: 700 !important; }
  :root body#royal-blue-app .mc-flag.mc-suspect { background: #fff4e0 !important; color: #9a5b00 !important; }
  :root body#royal-blue-app .mc-flag.mc-invalid { background: #fdecec !important; color: #b42318 !important; }
  :root body#royal-blue-app .mc-foot { display: flex !important; flex-wrap: wrap !important; justify-content: space-between !important; gap: 8px !important; }
  :root body#royal-blue-app .mc-foot .btn { display: inline-flex !important; align-items: center !important; gap: 6px !important; }
  /* hang thao tac dau trang: ba nut cung kieu, cung chieu cao, khong xuong hang rieng */
  @media (min-width: 701px) {
    :root body#royal-blue-app #content > .page-head:has(#manual-chart) > .head-actions { display: flex !important; flex-wrap: nowrap !important; align-items: center !important; gap: 8px !important; }
    :root body#royal-blue-app #content > .page-head:has(#manual-chart) > .head-actions > :is(.hc-page-help, #manual-chart, #manual-history) { display: inline-flex !important; align-items: center !important; gap: 6px !important; height: 40px !important; min-height: 40px !important; padding: 0 14px !important; white-space: nowrap !important; }
  }
  /* @@do-tay-bieu-do-26-10 end */

  /* Thẻ số đo (Tổng quan, Quan trắc) - dòng "Tham chiếu tiêu chuẩn" (26-10-2026): nhãn giữ một dòng, giới hạn dài (vd. độ kiềm "≥ 100 · ≤ 200 mg CaCO₃/L
     (theo CaCO₃)") xuống dòng bên phải thay vì bóp nhãn thành cột chữ dọc */
  :root body#royal-blue-app .instrument-reading .ir-scale-heading {display:grid !important;grid-template-columns:auto minmax(0,1fr) !important;align-items:start !important;gap:2px 10px !important}
  :root body#royal-blue-app .instrument-reading .ir-scale-heading > span {white-space:nowrap !important;min-width:max-content !important}
  :root body#royal-blue-app .instrument-reading .ir-scale-heading > strong {min-width:0 !important;text-align:right !important;white-space:normal !important;overflow-wrap:anywhere !important}

  /* Quan trắc › 4 ô thống kê biểu đồ (26-10-2026): cùng một kiểu cho Hiện tại / Thấp nhất / Trung bình / Cao nhất - nhãn ở trên, số và đơn vị
     cùng một dòng, không rớt dòng; đơn vị dài (mg CaCO₃/L, mg NH₃-N/L) thì số nhỏ lại một chút thay vì đẩy đơn vị xuống dòng riêng */
  @media (min-width: 1280px) {
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > :is(.ob-chart-stats > div, .ob-stat-now),
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div { display: flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: center !important; gap: 4px !important; min-height: 76px !important; padding: 10px 14px !important; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div > span,
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > .ob-stat-now > span { order: 0 !important; display: flex !important; align-items: center !important; gap: 7px !important; margin: 0 !important; white-space: nowrap !important; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div > span::before,
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > .ob-stat-now > span::before { display: inline-block !important; flex: none !important; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div > strong,
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > .ob-stat-now > strong { order: 1 !important; display: flex !important; align-items: baseline !important; flex-wrap: nowrap !important; gap: 5px !important; max-width: 100% !important; margin: 0 !important; white-space: nowrap !important; line-height: 1.15 !important; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div > strong small,
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > .ob-stat-now > strong small { display: inline !important; margin: 0 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; min-width: 0 !important; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot:has(.ob-chart-stats.has-long-unit) :is(.ob-chart-stats > div, .ob-stat-now) > strong { font-size: 24px !important; }
    :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot:has(.ob-chart-stats.has-long-unit) :is(.ob-chart-stats > div, .ob-stat-now) > strong small { font-size: 12px !important; }
    @media (max-width: 1499px) {
      :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot > :is(.ob-chart-stats > div, .ob-stat-now),
      :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .ob-chart-stats > div { padding: 10px 10px !important; }
      :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot:has(.ob-chart-stats.has-long-unit) :is(.ob-chart-stats > div, .ob-stat-now) > strong { font-size: 20px !important; gap: 4px !important; }
      :root body#royal-blue-app.royal-blue-interface #content #monitor-chart .chart-statistics-slot:has(.ob-chart-stats.has-long-unit) :is(.ob-chart-stats > div, .ob-stat-now) > strong small { font-size: 11px !important; }
    }
  }

  /* Tổng quan › ô thống kê biểu đồ (26-10-2026): như trang Quan trắc - biểu tượng trước nhãn hiện ra, số và đơn vị cùng một dòng,
     đơn vị dài (mg NH₃-N/L, mg CaCO₃/L) thì số nhỏ lại thay vì đẩy đơn vị xuống dòng riêng */
  @media (min-width: 1280px) {
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div,
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now { display: flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: center !important; gap: 4px !important; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div > span,
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now > span { order: 0 !important; display: flex !important; align-items: center !important; gap: 7px !important; margin: 0 !important; white-space: nowrap !important; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div > span::before,
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now > span::before { display: inline-block !important; flex: none !important; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div > strong,
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now > strong { order: 1 !important; display: flex !important; align-items: baseline !important; flex-wrap: nowrap !important; gap: 5px !important; max-width: 100% !important; margin: 0 !important; white-space: nowrap !important; line-height: 1.15 !important; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .ob-chart-stats > div > strong small,
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot > .ob-stat-now > strong small { display: inline !important; margin: 0 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; min-width: 0 !important; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot:has(.ob-chart-stats.has-long-unit) :is(.ob-chart-stats > div, .ob-stat-now) > strong { font-size: 24px !important; }
    :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot:has(.ob-chart-stats.has-long-unit) :is(.ob-chart-stats > div, .ob-stat-now) > strong small { font-size: 12px !important; }
    @media (max-width: 1499px) {
      :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot:has(.ob-chart-stats.has-long-unit) :is(.ob-chart-stats > div, .ob-stat-now) > strong { font-size: 20px !important; gap: 4px !important; }
      :root body#royal-blue-app.royal-blue-interface .ob-overview .analysis-trend.chart-panel .chart-statistics-slot:has(.ob-chart-stats.has-long-unit) :is(.ob-chart-stats > div, .ob-stat-now) > strong small { font-size: 11px !important; }
    }
  }

  /* Đo thủ công › Chất lượng mẫu (26-10-2026): biểu tượng trước Hợp lệ / Nghi ngờ / Lỗi, cùng màu chữ (trắng khi nút đang chọn) */
  body#royal-blue-app#royal-blue-app #manual-form .mq-seg span {gap:8px !important}
  body#royal-blue-app#royal-blue-app #manual-form .mq-seg span::before {content:"";flex:none;width:18px;height:18px;background:currentColor;-webkit-mask:var(--mq-ic) center / contain no-repeat;mask:var(--mq-ic) center / contain no-repeat}
  body#royal-blue-app#royal-blue-app #manual-form .mq-seg label:nth-child(1) {--mq-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.7 2.7L16.5 9.5'/%3E%3C/svg%3E")}
  body#royal-blue-app#royal-blue-app #manual-form .mq-seg label:nth-child(2) {--mq-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5L2.5 20h19L12 3.5z'/%3E%3Cpath d='M12 10v4.5M12 17.5v.01'/%3E%3C/svg%3E")}
  body#royal-blue-app#royal-blue-app #manual-form .mq-seg label:nth-child(3) {--mq-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9 9l6 6M15 9l-6 6'/%3E%3C/svg%3E")}

  /* Thẻ Phản ánh (26-10-2026): vòng biểu tượng cùng màu cam với nút "Gửi phản ánh" */
  @media (min-width: 1280px) {
    :root body#royal-blue-app#royal-blue-app.community-view #citizen-complaint > h2 svg {background:linear-gradient(145deg,#ffad42,#f08a12 58%,#d97706) !important;box-shadow:0 0 0 6px rgba(217,119,6,.12),0 10px 18px -8px rgba(217,119,6,.75) !important;color:#fff !important;stroke:#fff !important}
  }

  /* Trang người dân › "Phóng rộng bản đồ" (26-10-2026): bản đồ phóng rộng bắt đầu dưới menu đầu trang (menu dính, nền trong mờ) thay vì từ mép
     màn hình, để hai lớp không chồng lên nhau */
  @media (min-width: 1280px) {
    :root body#royal-blue-app#royal-blue-app.community-view .citizen-map-column > .shared-observatory-map.expanded {top:calc(var(--cz-head-h, 74px) + 10px) !important;z-index:59 !important;box-shadow:0 18px 48px -18px rgba(15,45,94,.45) !important}
  }

  /* Thanh cuộn xanh dương theo màu phần mềm (28-10-2026): menu bên, trang, hộp thoại và các vùng cuộn (thay màu xanh lá #537d6e cũ) */
  @media (min-width: 1280px) {
    :root body#royal-blue-app, :root body#royal-blue-app .sidebar nav, :root body#royal-blue-app #sidebar, :root body#royal-blue-app #sidebar nav, :root body#royal-blue-app #modal-root .modal {scrollbar-width:thin !important;scrollbar-color:#3d7fe8 transparent !important}
    :root, :root body#royal-blue-app {scrollbar-color:#3d7fe8 #eef3fb !important}
    :root body#royal-blue-app ::-webkit-scrollbar {width:8px;height:8px}
    :root body#royal-blue-app ::-webkit-scrollbar-thumb {background:#3d7fe8;border-radius:8px}
    :root body#royal-blue-app ::-webkit-scrollbar-thumb:hover {background:#175adb}
    :root body#royal-blue-app ::-webkit-scrollbar-track {background:transparent}
  }

}
