:root {
  --canvas: #f5f6f3;
  --paper: #ffffff;
  --ink: #20342c;
  --text: #3d4e46;
  --muted: #6b7667;
  --line: #e9ede7;
  --green: #28664d;
  --deep: #12392f;
  --lime: #d9ed93;
  --soft-green: #edf5ee;
  --red: #bd4f49;
  --shadow: 0 3px 7px #17382b03, 0 16px 38px #17382b04;
  font-family: 'Avenir Next', 'Avenir', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); font-size: 14px; line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { outline: none; }
:focus-visible { outline: 3px solid #a9cc91; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
input, textarea, select { min-width: 0; }
::selection { background: #d9ed93; color: var(--deep); }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.hidden, [hidden] { display: none !important; }
.muted, .subtle { color: var(--muted); }
.nowrap { white-space: nowrap; }
.mono, code { font-family: 'SFMono-Regular', 'Cascadia Code', 'Menlo', monospace; }
.align-right { text-align: right !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript { padding: 32px; text-align: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; transition: background .16s, border-color .16s, box-shadow .16s; }
.button .icon { width: 17px; height: 17px; }
.button.primary { color: #fff; background: var(--deep); border-color: var(--deep); box-shadow: 0 2px 4px #12392f0b; }
.button.primary:hover:not(:disabled) { background: #21523e; border-color: #21523e; box-shadow: 0 4px 10px #12392f15; }
.button.secondary { background: #fff; color: #526057; border-color: #e1e7df; }
.button.secondary:hover:not(:disabled) { background: #f5f8f3; border-color: #ccd8c9; }
.button.danger { background: var(--red); color: #fff; }
.button.danger:hover:not(:disabled) { background: #a83c38; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; padding: 7px; width: 33px; height: 33px; border-radius: 7px; border: 0; color: #829087; background: transparent; transition: background .16s, color .16s; }
.icon-button .icon { width: 17px; height: 17px; }
.icon-button:hover { background: #edf2eb; color: var(--deep); }
.icon-button.danger-hover:hover { color: var(--red); background: #fcf0ed; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; background: none; border: 0; font-size: 12px; font-weight: 600; color: #5b7462; white-space: nowrap; }
.text-button .icon { width: 15px; height: 15px; }
.text-button:hover { color: var(--deep); }
.text-button.light { color: #d5e9b5; }
.eyebrow { display: block; color: #8c9a8b; font-size: 10px; letter-spacing: 2px; font-weight: 700; line-height: 1.4; }
.eyebrow.light { color: #adbea8; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; opacity: .65; flex-shrink: 0; }
.spin { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { to { background-position-x: -200%; } }

/* Shared wordmark. */
.brand { display: flex; align-items: center; gap: 11px; width: fit-content; }
.brand-symbol { display: inline-flex; font-size: 31px; font-weight: 800; line-height: 38px; letter-spacing: -5px; width: 41px; height: 41px; padding-left: 6px; border-radius: 12px; background: var(--lime); color: var(--deep); }
.brand-symbol > span { color: #507a47; margin-left: 3px; }
.brand-word { display: flex; flex-direction: column; color: #fff; font-size: 24px; font-weight: 700; letter-spacing: -.8px; line-height: 1.05; }
.brand-word > span { margin-top: 5px; font-size: 8px; font-weight: 600; color: #9db6a8; letter-spacing: 2.5px; }
.brand.large .brand-symbol { width: 45px; height: 45px; line-height: 42px; font-size: 35px; }
.brand.large .brand-word { font-size: 28px; }
.boot-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 22px; color: #7a8e7d; font-size: 13px; }
.boot-mark { width: 65px; height: 65px; display: grid; place-content: center; border-radius: 19px; background: var(--deep); color: var(--lime); font-size: 43px; font-weight: 700; letter-spacing: -5px; }
.boot-mark span { display: none; }

/* Login: an editorial, quiet workspace entrance. */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 48%) 1fr; padding: 17px; gap: 16px; background: #fafbf8; }
.login-story { min-height: calc(100vh - 34px); border-radius: 20px; overflow: hidden; position: relative; display: flex; flex-direction: column; padding: 37px 44px 28px; background: radial-gradient(ellipse at 70% 69%, #365941 0, transparent 46%), linear-gradient(145deg, #143c31, #102d25); color: #fff; }
.login-story::before { content: ''; position: absolute; inset: 0; opacity: .055; background-image: radial-gradient(#dcefc9 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.story-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.story-edition { font-size: 8px; letter-spacing: 1.7px; color: #90a99b; }
.story-copy { position: relative; z-index: 1; margin-top: clamp(48px, 8vh, 95px); }
.story-copy h1 { margin-top: 20px; font-size: clamp(35px, 3.4vw, 54px); line-height: 1.38; letter-spacing: -1.4px; font-weight: 600; }
.story-copy h1 > span { color: var(--lime); }
.story-copy p { margin-top: 22px; color: #aabeb1; font-size: 14px; line-height: 1.9; letter-spacing: .4px; }
.network-art { min-height: 260px; flex: 1; position: relative; max-height: 370px; margin: 25px -12px 20px; }
.network-orbit { position: absolute; border: 1px solid #c8ddb514; border-radius: 50%; left: 54%; top: 54%; transform: translate(-50%, -50%) rotate(-23deg); }
.orbit-one { width: 250px; height: 120px; }
.orbit-two { width: 390px; height: 200px; }
.orbit-three { width: 560px; height: 300px; }
.network-core { position: absolute; left: 54%; top: 54%; transform: translate(-50%, -50%); width: 103px; height: 103px; border: 1px solid #d8e7c63d; border-radius: 27px; background: linear-gradient(145deg, #d9ed9326, #9cc18b09); box-shadow: 0 25px 50px #041b2633, inset 0 1px 1px #ffffff26; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 7px; color: #deedb8; font-weight: 600; letter-spacing: -.3px; }
.network-core .icon { width: 32px; height: 32px; stroke-width: 1.2; }
.network-node { position: absolute; display: flex; align-items: center; gap: 12px; padding: 15px 17px; border: 1px solid #9cb6a226; background: #355346cf; box-shadow: 0 16px 45px #051c221f; backdrop-filter: blur(12px); border-radius: 13px; }
.network-node > .icon { color: #c6dda1; }
.network-node span { color: #e2eadb; font-size: 10px; font-weight: 600; letter-spacing: 1px; }
.network-node small { display: block; color: #9db39f; font-size: 10px; font-weight: 400; letter-spacing: .3px; margin-top: 5px; }
.network-node i { width: 5px; height: 5px; background: #d9ed93; border-radius: 50%; margin-left: 8px; }
.node-a { left: 0; top: 13%; transform: rotate(-6deg); }
.node-b { right: -6px; bottom: 2%; transform: rotate(5deg); }
.network-dot { position: absolute; width: 7px; height: 7px; background: #9bb68b; border-radius: 50%; box-shadow: 0 0 0 7px #c5dcac0c; }
.dot-a { right: 15%; top: 18%; }
.dot-b { left: 24%; bottom: 10%; width: 5px; height: 5px; }
.dot-c { right: 4%; top: 46%; width: 4px; height: 4px; opacity: .4; }
.story-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: #8ca694; font-size: 9px; letter-spacing: .35px; position: relative; z-index: 1; }
.story-bottom > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.status-dot { width: 5px; height: 5px; background: #b9d799; border-radius: 50%; }
.login-panel { display: flex; align-items: center; justify-content: center; position: relative; padding: 60px 60px 90px; }
.login-form-wrap { width: 100%; max-width: 370px; animation: enter .5s ease both; }
.login-welcome { font-size: 12px; color: #7a8f77; font-weight: 500; letter-spacing: 1px; }
.login-form-wrap h2 { margin-top: 12px; margin-bottom: 13px; color: var(--ink); font-size: 30px; letter-spacing: -1px; font-weight: 600; }
.login-form-wrap > p { font-size: 12px; line-height: 1.8; }
.login-form { display: flex; flex-direction: column; gap: 21px; margin-top: 36px; }
.login-form .field > span:first-child { font-size: 12px; }
.login-form .input-wrap { min-height: 49px; }
.login-form input { font-size: 13px; }
.login-security { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #849583; margin-top: -4px; }
.login-security .icon { width: 14px; height: 14px; }
.button.login-submit { min-height: 48px; justify-content: space-between; padding: 12px 18px; margin-top: 3px; border-radius: 8px; }
.login-help { margin-top: 26px; font-size: 10px; line-height: 1.9; color: #a0aa9f; text-align: center; }
.login-footer { position: absolute; bottom: 28px; left: 50px; right: 50px; display: flex; justify-content: space-between; color: #b0b9ad; font-size: 10px; }
.login-mobile-logo { display: none; }

/* Application shell. */
.workspace { min-height: 100vh; }
.sidebar { width: 238px; position: fixed; inset: 0 auto 0 0; background: var(--deep); z-index: 40; color: #c0cfc1; display: flex; flex-direction: column; padding: 30px 20px 17px; }
.sidebar::before { content: ''; pointer-events: none; position: absolute; inset: auto 0 70px; height: 350px; background: radial-gradient(ellipse at 0 100%, #92b17411, transparent 70%); }
.sidebar-brand { padding: 0 12px 30px; display: flex; justify-content: space-between; align-items: center; }
.workspace-label { display: flex; align-items: center; gap: 10px; padding: 13px 10px; border: 1px solid #77948530; border-radius: 9px; background: #ffffff03; }
.workspace-avatar { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: #8ba88c22; font-size: 12px; color: #c9d9b9; font-weight: 600; }
.workspace-label > span:nth-child(2) { font-size: 11px; font-weight: 500; color: #d6e1d3; flex: 1; letter-spacing: .2px; }
.workspace-label small { display: block; font-size: 9px; margin-top: 2px; color: #839e8d; letter-spacing: .1px; font-weight: 400; }
.workspace-label > .icon { width: 12px; height: 12px; color: #87a18e; }
.nav-caption { margin: 29px 13px 11px; color: #6e927f; letter-spacing: 1px; font-size: 9px; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; position: relative; }
.nav-item { display: flex; align-items: center; gap: 13px; padding: 13px 13px; border-radius: 8px; min-height: 46px; color: #9fb8a9; font-size: 12px; font-weight: 500; transition: background .15s, color .15s; }
.nav-item > .icon { width: 18px; height: 18px; stroke-width: 1.6; }
.nav-item > b { margin-left: auto; padding: 1px 6px; border-radius: 4px; background: #e9f7c915; font-size: 9px; font-weight: 500; }
.nav-item:hover { background: #d9ed9310; color: #e6efda; }
.nav-item.active { background: var(--lime); color: var(--deep); font-weight: 600; box-shadow: 0 2px 5px #061b160b; }
.nav-item.active > b { background: #163b2521; }
.sidebar-note { position: relative; margin: auto 2px 22px; padding: 22px 12px 0; }
.note-symbol { width: 31px; height: 31px; display: grid; place-items: center; color: #c7df9e; border: 1px solid #829d6d35; background: #cce5a30d; border-radius: 9px; margin-bottom: 13px; }
.note-symbol .icon { width: 16px; height: 16px; }
.sidebar-note h3 { font-size: 11px; font-weight: 500; color: #c6d8bc; }
.sidebar-note p { font-size: 10px; line-height: 1.9; color: #86a48f; margin: 6px 0 12px; }
.sidebar-note .text-button { font-size: 10px; }
.sidebar-bottom { position: relative; padding: 17px 9px 0; display: flex; align-items: center; gap: 10px; border-top: 1px solid #7e9a7730; }
.admin-avatar { width: 32px; height: 32px; border-radius: 50%; background: #6f8e722b; color: #d4e4c4; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.admin-identity { color: #d1decb; font-size: 10px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-identity small { display: block; color: #80a089; font-size: 9px; font-weight: 400; margin-top: 2px; }
.sidebar-bottom .icon-button { color: #82a08a; width: 25px; padding: 4px; }
.sidebar-bottom .icon-button:hover { color: #e8f4cd; background: #c9e0b111; }
.main-shell { margin-left: 238px; min-height: 100vh; }
.topbar { height: 73px; background: #fbfcfa; border-bottom: 1px solid var(--line); padding: 0 36px; display: flex; justify-content: space-between; align-items: center; }
.breadcrumb { display: flex; align-items: center; gap: 13px; font-size: 11px; color: #9aa498; }
.breadcrumb .icon { width: 12px; height: 12px; }
.breadcrumb b { color: #52634f; font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 21px; }
.connection-label { display: inline-flex; align-items: center; gap: 7px; color: #8a9a84; font-size: 10px; }
.connection-label > i { width: 5px; height: 5px; border-radius: 50%; background: #72a76e; box-shadow: 0 0 0 3px #edf2e9; }
.topbar-divider { width: 1px; height: 22px; background: #e5eae0; }
.topbar-avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: #526b46; font-size: 10px; font-weight: 700; border: 1px solid #d9e2cd; background: #eaf0dd; }
.main-content { padding: 35px 36px 0; max-width: 1650px; margin: auto; }
.page-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 29px; }
.page-heading h1 { color: #2d4032; font-size: clamp(22px, 2vw, 27px); font-weight: 600; letter-spacing: -.8px; line-height: 1.45; margin: 8px 0 8px; }
.page-heading p { font-size: 11px; color: #8d998a; letter-spacing: .15px; line-height: 1.8; }
.heading-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
#page-content { animation: enter .32s ease both; }
.page-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 75px; color: #acb5a8; font-size: 9px; }
.page-footer i { font-style: normal; margin: 0 7px; color: #bcc4b7; }
.nav-backdrop, .nav-toggle, .sidebar-close { display: none; }

/* Dashboard and data visualization. */
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 23px; }
.metric { position: relative; min-height: 152px; padding: 20px 22px 17px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); animation: enter .4s ease both; }
.metric:nth-child(2) { animation-delay: .04s; }
.metric:nth-child(3) { animation-delay: .08s; }
.metric:nth-child(4) { animation-delay: .12s; }
.metric.accent { background: #eff4e8; border-color: #e6ecd9; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; color: #83917c; }
.metric-icon { color: #9aa68f; background: #f6f8f3; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; }
.metric-icon .icon { width: 16px; height: 16px; }
.metric.accent .metric-icon { background: #e7efd8; color: #6c845a; }
.metric > strong { display: block; margin: 9px 0 10px; font-size: 32px; line-height: 1.15; letter-spacing: -1.2px; font-weight: 600; color: #314731; font-variant-numeric: tabular-nums; }
.metric > strong small { font-size: 17px; margin-left: 4px; }
.metric-foot { display: flex; align-items: center; gap: 6px; color: #9ba58f; font-size: 9px; white-space: nowrap; }
.foot-divider { color: #bdc7b2; margin: 0 3px; }
.tiny-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #a6afa3; flex-shrink: 0; }
.tiny-dot.green { background: #75a071; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.panel-heading { padding: 23px 24px 20px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.panel-heading h2 { font-size: 13px; font-weight: 600; color: #3a4b37; display: flex; align-items: center; gap: 11px; }
.panel-heading p { font-size: 10px; color: #a1ac98; margin-top: 5px; }
.panel-heading > .icon { color: #9bab90; width: 19px; height: 19px; }
.live-pill { font-size: 8px; font-weight: 500; color: #98a485; background: #f4f6ef; border-radius: 4px; padding: 3px 7px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr); gap: 22px; margin-bottom: 23px; }
.chart-panel .panel-heading { padding-bottom: 13px; }
.chart-legend { display: flex; gap: 16px; color: #9ca88e; font-size: 9px; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; }
.legend-dot.total { background: #abc08c; }
.legend-dot.delivered { background: #3f7651; }
.chart-wrap { padding: 0 13px 14px 3px; position: relative; min-height: 235px; display: flex; align-items: flex-end; }
.trend-chart { width: 100%; height: auto; display: block; max-height: 260px; overflow: visible; }
.chart-gridline { stroke: #edf0e7; stroke-width: 1; stroke-dasharray: 4 5; }
.chart-y, .chart-x { fill: #a1ad94; font-size: 10px; font-family: inherit; }
.chart-line { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chart-line.total { stroke: #a6bd87; }
.chart-line.delivered { stroke: #39744d; }
.chart-empty { position: absolute; inset: 28px 50px 53px; display: flex; gap: 9px; justify-content: center; align-items: center; color: #9baa90; font-size: 10px; text-align: center; }
.chart-empty-dot { width: 5px; height: 5px; background: #b5c4a5; border-radius: 50%; }
.connect-panel { border-radius: 12px; padding: 26px 26px 22px; background: radial-gradient(circle at 100% 0, #58785138, transparent 60%), #173d2e; color: #d8e9c5; overflow: hidden; position: relative; }
.connect-panel::after { content: ''; width: 170px; height: 170px; position: absolute; right: -92px; top: 46px; border: 1px solid #d9ed9312; border-radius: 50%; box-shadow: 0 0 0 23px #d9ed9306, 0 0 0 45px #d9ed9304; pointer-events: none; }
.connect-top { display: flex; align-items: center; justify-content: space-between; }
.connect-top .eyebrow { font-size: 8px; color: #97af84; letter-spacing: 1.2px; }
.connect-top > .icon { width: 17px; height: 17px; color: #a5c38d; }
.connect-panel h2 { font-size: 19px; line-height: 1.55; font-weight: 500; letter-spacing: -.4px; margin: 20px 0 12px; }
.connect-panel > p { color: #91a981; font-size: 10px; line-height: 1.9; }
.config-progress { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 10px; font-size: 9px; color: #a8bb95; }
.config-progress strong { font-weight: 600; font-size: 16px; color: #d4e7b2; }
.config-progress small { font-size: 10px; color: #829a72; font-weight: 400; }
.config-line { height: 4px; border-radius: 10px; overflow: hidden; }
.config-line svg { display: block; width: 100%; height: 4px; }
.config-track { stroke: #587047; stroke-width: 2; }
.config-fill { stroke: #c6df8c; stroke-width: 2; }
.connect-link { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; color: #c8e0a1; font-size: 10px; }
.connect-link .icon { width: 15px; height: 15px; }
.dashboard-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dashboard-lower .panel-heading { border-bottom: 1px solid #f0f3ea; }
.recent-sites, .recent-events { padding: 0 23px; }
.recent-site { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 0; text-align: left; background: none; border: 0; border-bottom: 1px solid #f0f3eb; color: inherit; }
.recent-site:last-child, .recent-event:last-child { border-bottom: 0; }
.site-mark, .backend-mark { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #f2f5ed; color: #8fa57e; flex-shrink: 0; border: 1px solid #eaf0e2; }
.site-mark .icon, .backend-mark .icon { width: 18px; height: 18px; stroke-width: 1.4; }
.backend-mark { background: #eff3ed; color: #78907b; }
.site-identity { display: block; flex: 1; min-width: 0; }
.site-identity b { display: block; font-size: 11px; color: #59674d; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-identity small { font-size: 9px; color: #9aa58e; display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; }
.recent-site > .icon { width: 13px; height: 13px; color: #b6c1aa; margin-left: 6px; }
.recent-site:hover .site-identity b { color: #1c573b; }
.badge { display: inline-flex; justify-content: center; align-items: center; gap: 5px; white-space: nowrap; border-radius: 5px; padding: 4px 7px; font-size: 9px; line-height: 1.35; font-weight: 500; }
.badge .icon { width: 11px; height: 11px; }
.badge.green { background: #eef5e9; color: #6c9255; }
.badge.neutral { background: #f2f4ef; color: #95a08c; }
.badge.amber { background: #fbf4e4; color: #b69956; }
.badge.blue { background: #edf3f6; color: #6e98ae; }
.badge.red { background: #fcf0ec; color: #bf7462; }
.recent-event { display: flex; align-items: center; gap: 11px; padding: 17px 0; border-bottom: 1px solid #f0f3eb; }
.event-symbol { width: 31px; height: 31px; background: #f2f6ed; color: #8aa678; display: grid; place-items: center; border-radius: 50%; }
.event-symbol .icon { width: 14px; height: 14px; }
.event-symbol.is-failed { background: #fcf2ef; color: #c38a73; }
.recent-event > div { flex: 1; min-width: 0; }
.recent-event b { font-size: 11px; font-weight: 500; color: #596c50; }
.recent-event small { display: block; font-size: 9px; color: #a2ae95; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.recent-event small > span { margin: 0 5px; }

/* Tables, forms, and focused empty states. */
.list-toolbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.filter-tabs { display: flex; gap: 3px; padding: 3px; background: #f5f7f1; border-radius: 8px; }
.filter-tab { background: none; border: 0; border-radius: 6px; padding: 8px 12px; font-size: 11px; color: #94a18a; display: inline-flex; align-items: center; gap: 7px; min-height: 32px; white-space: nowrap; }
.filter-tab.active { background: #fff; box-shadow: 0 1px 5px #2c4b2510; color: #536b46; font-weight: 600; }
.filter-tab > span { font-size: 8px; padding: 1px 5px; border-radius: 3px; background: #eff3e8; color: #82966d; }
.search-field { display: flex; align-items: center; gap: 8px; border: 1px solid #e7ecdf; border-radius: 8px; padding: 8px 11px; min-width: 240px; color: #a5b297; background: #fff; }
.search-field .icon { width: 16px; height: 16px; }
.search-field input { border: 0; padding: 0; color: #53674b; background: transparent; font-size: 11px; width: 100%; }
.search-field:focus-within { border-color: #a5bf92; box-shadow: 0 0 0 3px #abc79410; }
input::placeholder, textarea::placeholder { color: #b2bcaa; opacity: 1; }
.table-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #dce4d5 transparent; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { background: #fbfcf9; padding: 13px 22px; font-size: 10px; color: #94a28a; font-weight: 500; white-space: nowrap; border-bottom: 1px solid #eef1e8; }
.data-table td { padding: 20px 22px; border-bottom: 1px solid #eef2e8; font-size: 11px; color: #728367; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover { background: #fcfdf9; }
.sites-table td { padding-top: 23px; padding-bottom: 23px; }
.site-cell { display: flex; align-items: center; gap: 11px; min-width: 170px; }
.site-cell > div { min-width: 0; }
.table-link { padding: 0; background: none; border: 0; text-align: left; color: #506845; font-size: 12px; font-weight: 500; }
.table-link:hover { color: #214f35; }
.domain-link { display: flex; align-items: center; gap: 4px; font-size: 10px; color: #a4b194; margin-top: 4px; white-space: nowrap; }
.domain-link .icon { width: 11px; height: 11px; }
.domain-link:hover { color: #6f9259; }
.pixel-value { display: inline-flex; align-items: center; gap: 6px; font-family: 'Avenir Next', 'Menlo', monospace; font-size: 10px; white-space: nowrap; color: #718263; letter-spacing: .2px; }
.pixel-value > i { width: 5px; height: 5px; border-radius: 50%; background: #b6c89d; }
.token-state { display: inline-flex; align-items: center; gap: 5px; color: #879b73; font-size: 10px; white-space: nowrap; }
.token-state .icon { width: 13px; height: 13px; }
.backend-cell { display: flex; align-items: center; gap: 7px; min-width: 100px; }
.backend-cell > .icon { width: 14px; height: 14px; color: #9aaa8c; }
.backend-cell > span { font-size: 10px; }
.backend-cell small { display: block; max-width: 135px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 9px; color: #a8b29d; margin-top: 4px; }
.status-toggle { display: inline-flex; gap: 7px; align-items: center; background: none; border: 0; padding: 3px 0; color: #a2ae95; }
.status-toggle > span { display: block; width: 27px; height: 15px; background: #dce3d5; border-radius: 10px; padding: 2px; transition: background .15s; }
.status-toggle > span::after { content: ''; display: block; width: 11px; height: 11px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px #163b2215; transition: transform .15s; }
.status-toggle.is-on { color: #819b6e; }
.status-toggle.is-on > span { background: #74986d; }
.status-toggle.is-on > span::after { transform: translateX(12px); }
.status-toggle > b { font-size: 9px; font-weight: 500; white-space: nowrap; }
.row-actions { display: flex; gap: 3px; justify-content: flex-end; }
.row-actions .icon-button { width: 29px; height: 29px; padding: 6px; }
.row-actions .icon { width: 15px; height: 15px; }
.table-footer { padding: 15px 23px; border-top: 1px solid #edf1e5; display: flex; justify-content: space-between; color: #a1ae94; font-size: 9px; gap: 15px; }
.below-note { display: flex; align-items: flex-start; gap: 8px; padding: 18px 2px 0; color: #9ba88f; font-size: 10px; line-height: 1.9; }
.below-note .icon { width: 14px; height: 14px; margin-top: 2px; }
.empty-state { min-height: 260px; padding: 42px 24px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.empty-symbol { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: #f5f7f0; border: 1px solid #ecf1e4; color: #a4b78c; margin-bottom: 17px; }
.empty-symbol .icon { width: 25px; height: 25px; stroke-width: 1.3; }
.empty-state h3 { font-size: 13px; font-weight: 500; color: #738368; }
.empty-state p { margin-top: 8px; max-width: 320px; color: #a5b098; font-size: 10px; line-height: 1.9; }
.empty-state .button { margin-top: 20px; min-height: 35px; font-size: 11px; padding: 8px 13px; }
.dashboard-lower .empty-state { min-height: 219px; padding: 28px 20px; }
.dashboard-lower .empty-symbol { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 13px; }
.dashboard-lower .empty-symbol .icon { width: 20px; height: 20px; }
.address-info { display: flex; align-items: center; gap: 18px; padding: 25px 28px; margin-bottom: 23px; border: 1px solid #e3ead9; border-radius: 12px; background: linear-gradient(110deg, #eef3e6, #f5f8f0); }
.address-info > .icon { width: 29px; height: 29px; color: #97b07f; stroke-width: 1.4; }
.address-info > div { flex: 1; }
.address-info h3 { font-size: 13px; color: #627d4c; font-weight: 500; }
.address-info p { margin-top: 5px; font-size: 10px; color: #97a786; line-height: 1.8; }
.address-count { text-align: right; font-size: 29px; color: #668048; line-height: 1.1; font-weight: 500; }
.address-count small { font-size: 9px; display: block; color: #95a67c; margin-top: 7px; font-weight: 400; }
.address-url { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #86987a; }
.address-url > span { max-width: 350px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.address-url .icon-button { width: 26px; height: 26px; }
.address-url .icon { width: 13px; height: 13px; }
.count-badge { font-size: 10px; color: #91a17d; background: #f4f7ef; padding: 5px 8px; border-radius: 5px; white-space: nowrap; }
.events-filter { display: flex; gap: 17px; align-items: center; }
.events-filter > label { display: flex; align-items: center; gap: 9px; color: #9eaa91; font-size: 10px; }
.events-filter select { border: 1px solid #e5ebdc; border-radius: 7px; background: #fff; color: #74865e; padding: 8px 26px 8px 10px; min-width: 138px; font-size: 11px; }
.list-caption { font-size: 9px; color: #abb69e; }
.event-cell { display: flex; gap: 9px; align-items: center; min-width: 180px; }
.small-event-symbol { color: #91a67d; background: #f5f8ef; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; }
.small-event-symbol .icon { width: 15px; height: 15px; }
.event-cell b { display: block; font-size: 11px; font-weight: 500; color: #748760; }
.event-cell small { display: block; font-family: 'Menlo', monospace; font-size: 8px; color: #afba9f; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.attempt-count { color: #91a17d; font-size: 11px; font-variant-numeric: tabular-nums; }
.inline-loading { min-height: 250px; display: flex; align-items: center; justify-content: center; gap: 11px; color: #95a583; font-size: 12px; }
.loading-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.skeleton { border: 1px solid #e8eee1; border-radius: 12px; background: linear-gradient(100deg, #edf1e8 25%, #f8faf4 40%, #edf1e8 60%); background-size: 200% 100%; animation: shimmer 1.7s infinite; }
.skeleton-card { height: 152px; }
.skeleton-panel { grid-column: 1 / -1; height: 330px; margin-top: 5px; }

/* Account and all input controls. */
.settings-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; max-width: 1050px; }
.account-panel .panel-heading, .password-panel .panel-heading { border-bottom: 1px solid #eef2e5; }
.account-profile { display: flex; align-items: center; gap: 16px; padding: 25px; }
.profile-avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 17px; background: #edf3e2; border: 1px solid #e1eacb; color: #77915a; font-size: 23px; font-weight: 600; }
.account-profile h3 { font-size: 17px; font-weight: 500; color: #5e7747; margin-bottom: 5px; }
.account-meta { margin: 0 25px; }
.account-meta > div { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid #eff3e8; font-size: 10px; }
.account-meta span { color: #a1ae8e; }
.account-meta b { font-weight: 400; color: #7f9369; }
.account-note { display: flex; align-items: center; gap: 7px; padding: 18px 25px; font-size: 9px; color: #a5b494; background: #fafcf6; margin-top: 12px; }
.account-note .icon { width: 12px; height: 12px; }
.settings-form { padding: 25px; display: flex; flex-direction: column; gap: 22px; }
.settings-form > .button { align-self: flex-start; }
.field { display: flex; flex-direction: column; gap: 8px; color: #607253; font-size: 11px; }
.field > span:first-child { font-weight: 500; display: flex; align-items: center; gap: 5px; }
.field > span:first-child > b { color: #b3c09e; font-size: 11px; font-weight: 400; }
.field input, .field textarea, .field select { border: 1px solid #e2e9d9; background: #fff; border-radius: 8px; color: #60784f; min-height: 42px; padding: 10px 12px; width: 100%; font-size: 12px; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; font-family: 'Avenir Next', 'Menlo', 'PingFang SC', monospace; line-height: 1.75; min-height: 85px; font-size: 11px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #9cb888; box-shadow: 0 0 0 3px #adc59518; }
.field small { display: flex; align-items: center; gap: 5px; color: #a4b095; font-size: 9px; line-height: 1.7; font-weight: 400; }
.field small .icon { width: 11px; height: 11px; }
.input-wrap { display: flex !important; align-items: center; border: 1px solid #e1e8d8; border-radius: 8px; padding: 0 12px; gap: 10px; background: #fff; }
.input-wrap > .icon { width: 17px; height: 17px; color: #a5b493; }
.input-wrap input { border: 0; background: transparent; padding: 11px 0; box-shadow: none !important; border-radius: 0; }
.input-wrap:focus-within { border-color: #9cb888; box-shadow: 0 0 0 3px #adc59518; }
.input-wrap .icon-button { width: 24px; height: 28px; padding: 3px; margin-right: -3px; }
.form-error { border: 1px solid #f0d9cd; background: #fff6f0; padding: 11px 13px; font-size: 11px; line-height: 1.8; color: #b5725c; border-radius: 7px; }
.form-note { display: flex; align-items: flex-start; gap: 8px; padding: 12px 13px; border-radius: 8px; background: #f4f7ed; font-size: 10px; color: #93a77b; line-height: 1.8; }
.form-note .icon { width: 14px; height: 14px; margin-top: 1px; }

/* Native dialogs retain focus and escape-key behavior. */
.modal { padding: 0; border: 1px solid #e6ebdd; border-radius: 17px; color: var(--text); width: min(500px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); background: #fff; box-shadow: 0 35px 100px #071b2530; overflow: hidden; }
.modal.wide { width: min(720px, calc(100vw - 32px)); }
.modal::backdrop { background: #0d271b55; backdrop-filter: blur(4px); }
.modal[open] { animation: enter .2s ease both; }
.modal-inner { display: flex; flex-direction: column; max-height: calc(100dvh - 50px); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 26px 28px 22px; border-bottom: 1px solid #eef2e4; flex-shrink: 0; }
.modal-header h2 { font-size: 19px; letter-spacing: -.5px; color: #3e5d32; font-weight: 600; }
.modal-header p { color: #a0af8b; font-size: 10px; margin-top: 6px; line-height: 1.8; }
.modal-header .icon-button { margin: -4px -6px 0 0; }
.modal-body { padding: 24px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; scrollbar-width: thin; scrollbar-color: #d9e3c9 transparent; overscroll-behavior: contain; }
.modal-footer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 18px 28px; border-top: 1px solid #edf2e2; background: #fcfdf9; flex-shrink: 0; }
.modal-footer .button { min-width: 82px; min-height: 39px; font-size: 11px; }
.form-section-title { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: #69854e; border-top: 1px solid #edf2e2; padding-top: 22px; margin-top: 2px; }
.form-section-title:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section-title > span:first-child { font-size: 9px; background: #eff4e6; color: #95ab77; padding: 2px 5px; border-radius: 4px; font-weight: 500; }
.section-optional { margin-left: auto; color: #b6c1a5; font-size: 9px; font-weight: 400; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.switch-field { display: flex; justify-content: space-between; align-items: center; gap: 18px; background: #f8faf4; border: 1px solid #edf2e3; border-radius: 8px; padding: 13px 15px; }
.switch-field > span:first-child { display: block; }
.switch-field b { color: #7a925f; font-size: 11px; font-weight: 500; }
.switch-field small { display: block; font-size: 9px; margin-top: 3px; color: #a9b897; line-height: 1.7; }
.form-switch { display: block; width: 32px; height: 18px; position: relative; flex-shrink: 0; }
.form-switch input { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; margin: 0; cursor: pointer; }
.form-switch i { position: absolute; inset: 0; border-radius: 20px; background: #d9e3c9; transition: background .15s; }
.form-switch i::after { content: ''; position: absolute; width: 14px; height: 14px; top: 2px; left: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #21451a19; transition: transform .15s; }
.form-switch input:checked + i { background: #789d5e; }
.form-switch input:checked + i::after { transform: translateX(14px); }
.form-switch input:focus-visible + i { outline: 3px solid #b3ce8f; outline-offset: 3px; }
.inline-success { font-size: 8px; font-weight: 400; background: #eef5e5; color: #86a25f; padding: 2px 6px; border-radius: 4px; margin-left: 5px; }
.checkbox-field { display: flex; align-items: center; gap: 7px; color: #9ea98c; font-size: 10px; }
.checkbox-field input { accent-color: var(--green); width: 13px; height: 13px; }
.clear-token { margin-top: -10px; }
.delete-warning { display: flex; gap: 14px; align-items: center; padding: 17px; border-radius: 10px; background: #fff6f0; border: 1px solid #f0e4d9; }
.delete-warning > .icon { color: #c89570; width: 25px; height: 25px; }
.delete-warning b { color: #a38162; font-size: 13px; font-weight: 500; }
.delete-warning span { display: block; color: #baa68c; font-size: 10px; margin-top: 3px; overflow-wrap: anywhere; }
.delete-copy { font-size: 12px; color: #98a386; line-height: 1.9; }
.detail-status { display: flex; align-items: center; gap: 12px; }
.detail-status > span:last-child { font-size: 14px; color: #63864a; font-weight: 500; }
.detail-list { margin: 0; }
.detail-list > div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid #eef3e4; font-size: 11px; }
.detail-list dt { color: #a5b591; }
.detail-list dd { margin: 0; color: #7d9962; overflow-wrap: anywhere; }
.detail-list .mono { font-size: 10px; }
.delivery-message { background: #f7faf1; border-radius: 9px; padding: 14px; }
.delivery-message > span { font-size: 9px; color: #a2b48a; }
.delivery-message p { margin-top: 5px; font-size: 11px; color: #8b9f75; overflow-wrap: anywhere; }
.setup-step { display: flex; align-items: flex-start; gap: 13px; }
.setup-step > span { width: 25px; height: 25px; border-radius: 8px; background: #eef5e1; display: grid; place-items: center; color: #8ea66b; font-size: 10px; flex-shrink: 0; }
.setup-step h3 { font-size: 12px; color: #718e50; font-weight: 500; }
.setup-step p { font-size: 10px; color: #a7b595; margin-top: 5px; line-height: 1.9; }
.code-example { background: #1e3b2c; border: 1px solid #294633; padding: 16px 18px; border-radius: 9px; color: #cfdfb4; }
.code-example > span { display: block; font-size: 9px; color: #84a16d; margin-bottom: 10px; }
.code-example code { display: block; font-size: 10px; line-height: 1.9; white-space: nowrap; overflow-x: auto; }
.toast-stack { position: fixed; z-index: 10000; top: 22px; left: 50%; transform: translateX(-50%); width: min(460px, calc(100vw - 32px)); display: flex; flex-direction: column; align-items: center; gap: 9px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; padding: 10px 12px 10px 14px; border: 1px solid #dce7cf; border-radius: 10px; background: #fff; box-shadow: 0 10px 35px #1436231a; color: #7a9659; font-size: 12px; animation: toast-in .2s ease; pointer-events: auto; max-width: 100%; }
.toast > .icon { width: 18px; height: 18px; }
.toast > span { flex: 1; line-height: 1.6; }
.toast.error { color: #bc8668; border-color: #f0e1d4; }
.toast .icon-button { width: 23px; height: 23px; padding: 3px; }
.toast .icon-button .icon { width: 13px; height: 13px; }

/* Keep quiet secondary text readable against the light canvas. */
.page-heading p, .panel-heading p, .metric-foot, .breadcrumb,
.search-field input::placeholder, .table-footer, .below-note,
.empty-state p, .field small, .form-note, .login-help,
.login-security, .login-form-wrap > p, .address-info p,
.list-caption, .site-identity small, .recent-event small,
.domain-link, .backend-cell small, .account-meta span,
.modal-header p, .switch-field small, .setup-step p,
.detail-list dt, .delivery-message > span, .delete-copy {
  color: #6b7667;
}
.page-heading p, .metric-top, .field, .data-table td,
.filter-tab, .table-link, .search-field input, .nav-item { font-size: 12px; }
.panel-heading p, .metric-foot, .data-table th, .table-footer,
.domain-link, .token-state, .backend-cell > span,
.field small, .form-note, .empty-state p, .below-note,
.recent-event small, .site-identity small, .list-caption,
.login-help, .login-security, .modal-header p, .switch-field small { font-size: 11px; }
.panel-heading h2, .empty-state h3, .site-identity b, .recent-event b { font-size: 13px; }
.badge { font-size: 10px; }
.pixel-value { color: #60744e; font-size: 11px; }
.filter-tab, .data-table th, .metric-top, .list-caption { color: #6b7667; }
.table-footer, .page-footer { letter-spacing: .05px; }
.field input::placeholder, .field textarea::placeholder { color: #87927d; }
.field input, .field textarea, .field select { color: #46633a; }
.badge.green { color: #587b3d; }
.badge.neutral { color: #6d7b60; }
.badge.amber { color: #977431; }
.badge.red { color: #a9553d; }
.badge.blue { color: #4f7d94; }

/* The same workspace, deliberately adapted to smaller screens. */
@media (min-width: 1550px) {
  .main-content { padding-top: 42px; padding-right: 48px; padding-left: 48px; }
  .metric { min-height: 165px; padding: 23px 25px; }
  .metric > strong { font-size: 36px; margin-top: 11px; }
  .panel-heading { padding-top: 27px; padding-bottom: 24px; }
  .chart-wrap { min-height: 245px; }
}
@media (max-width: 1250px) {
  .sidebar { width: 215px; padding-left: 15px; padding-right: 15px; }
  .main-shell { margin-left: 215px; }
  .topbar { padding: 0 25px; }
  .main-content { padding: 28px 25px 0; }
  .page-heading { gap: 15px; }
  .page-heading h1 { font-size: 22px; }
  .heading-actions { gap: 7px; }
  .heading-actions .button { padding: 10px 12px; font-size: 11px; min-height: 38px; }
  .metrics-grid { gap: 13px; }
  .metric { padding: 17px 16px; }
  .metric-foot { font-size: 8px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr); gap: 17px; }
  .dashboard-lower { gap: 17px; }
  .panel-heading { padding-left: 20px; padding-right: 20px; }
  .chart-legend { gap: 9px; font-size: 8px; }
  .recent-sites, .recent-events { padding: 0 17px; }
  .recent-site, .recent-event { gap: 8px; }
  .recent-site > .icon { display: none; }
  .connect-panel { padding: 23px; }
  .data-table th, .data-table td { padding-left: 17px; padding-right: 17px; }
  .login-story { padding-left: 34px; padding-right: 34px; }
  .story-edition { display: none; }
  .login-panel { padding: 55px 40px 90px; }
  .network-art { margin-left: -10px; margin-right: -18px; }
  .node-a { left: -2px; }
  .node-b { right: -12px; }
}
@media (max-width: 1050px) {
  .page-heading { flex-wrap: wrap; align-items: flex-start; }
  .page-heading h1 { font-size: 23px; }
  .heading-actions { margin-top: 4px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .connect-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0 30px; }
  .connect-top { grid-column: 1 / -1; }
  .connect-panel h2 { margin: 16px 0 8px; }
  .connect-panel > p { grid-column: 1; }
  .config-progress { grid-column: 2; grid-row: 2; align-self: end; margin: 0 0 11px; }
  .config-line { grid-column: 2; grid-row: 3; }
  .connect-link { grid-column: 2; margin: -15px 0 0; align-self: end; }
  .metrics-grid { gap: 10px; }
  .metric { padding: 15px 13px; }
  .metric > strong { font-size: 28px; }
  .metric-top { font-size: 10px; }
  .metric-icon { width: 24px; height: 24px; }
  .metric-icon .icon { width: 14px; height: 14px; }
  .metric-foot { white-space: normal; font-size: 8px; }
  .chart-wrap { min-height: 210px; }
  .dashboard-lower { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .account-panel { max-width: none; }
  .list-toolbar { flex-wrap: wrap; }
  .search-field { flex: 1; }
  .login-page { grid-template-columns: 44% 1fr; }
  .login-story { min-width: 0; padding-left: 28px; padding-right: 28px; }
  .story-copy h1 { font-size: 35px; }
  .story-copy p { font-size: 12px; }
  .network-node { padding: 13px; gap: 9px; }
  .network-node span { font-size: 8px; }
  .network-node small { font-size: 8px; }
  .network-node i { display: none; }
  .network-core { width: 88px; height: 88px; }
  .story-bottom > span:last-child { display: none; }
}
@media (max-width: 800px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; width: 238px; }
  .nav-open .sidebar { transform: translateX(0); }
  .sidebar-close { display: inline-flex; width: 25px; color: #b1c49e; }
  .sidebar-brand { padding-left: 8px; padding-right: 5px; }
  .nav-backdrop { position: fixed; inset: 0; background: #102e2055; z-index: 35; border: 0; }
  .nav-open .nav-backdrop { display: block; }
  .main-shell { margin-left: 0; }
  .nav-toggle { display: inline-flex; margin-left: -7px; margin-right: 0; }
  .breadcrumb .nav-toggle .icon { width: 19px; height: 19px; }
  .topbar { padding: 0 23px; height: 64px; }
  .main-content { padding: 27px 23px 0; }
  .page-heading { flex-wrap: nowrap; }
  .page-heading h1 { font-size: 22px; }
  .page-heading p { font-size: 10px; }
  .metric { min-height: 140px; }
  .metric > strong { margin-top: 13px; }
  .dashboard-lower { grid-template-columns: 1fr 1fr; }
  .dashboard-lower .panel-heading { padding: 18px; }
  .panel-heading h2 { font-size: 12px; }
  .panel-heading .text-button { font-size: 10px; }
  .dashboard-lower .empty-state p { font-size: 9px; }
  .login-page { grid-template-columns: 1fr; padding: 0; background: radial-gradient(ellipse at 0 0, #e7efdd55, transparent 50%), #fafbf8; }
  .login-story { display: none; }
  .login-panel { min-height: 100vh; padding: 115px 35px 100px; }
  .login-mobile-logo { display: block; position: absolute; left: 35px; top: 30px; }
  .login-mobile-logo .brand-word { color: #2d5239; }
  .login-mobile-logo .brand-word > span { color: #97af7e; }
  .login-mobile-logo .brand-symbol { width: 36px; height: 36px; font-size: 28px; line-height: 35px; border-radius: 10px; }
  .login-mobile-logo .brand-word { font-size: 22px; }
  .login-footer { left: 35px; right: 35px; }
}
@media (max-width: 620px) {
  .topbar { padding: 0 19px; }
  .breadcrumb { gap: 9px; }
  .topbar-right { gap: 12px; }
  .connection-label { font-size: 8px; gap: 5px; }
  .topbar-divider { display: none; }
  .topbar-avatar { width: 27px; height: 27px; font-size: 9px; }
  .main-content { padding: 24px 17px 0; }
  .page-heading { flex-wrap: wrap; gap: 15px; margin-bottom: 21px; }
  .page-heading h1 { font-size: 22px; margin-top: 7px; }
  .page-heading .eyebrow { font-size: 8px; letter-spacing: 1.7px; }
  .page-heading p { max-width: 330px; font-size: 10px; }
  .heading-actions { width: 100%; justify-content: flex-end; margin-top: 0; }
  .heading-actions .button { min-height: 37px; padding: 9px 13px; font-size: 11px; }
  .heading-actions .button.primary { margin-left: auto; }
  .icon-only-mobile span { display: none; }
  .icon-only-mobile { min-width: 37px; padding: 9px !important; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 17px; }
  .metric { padding: 17px 17px 15px; min-height: 140px; }
  .metric-top { font-size: 10px; }
  .metric > strong { font-size: 30px; margin: 11px 0; }
  .metric-foot { font-size: 8px; }
  .dashboard-grid, .dashboard-lower { gap: 17px; margin-bottom: 17px; }
  .dashboard-lower { grid-template-columns: 1fr; }
  .panel-heading { padding: 19px 18px 16px; gap: 10px; }
  .panel-heading h2 { font-size: 12px; gap: 6px; }
  .panel-heading p { font-size: 9px; }
  .live-pill { font-size: 7px; padding: 2px 4px; }
  .chart-legend { flex-direction: column; gap: 5px; font-size: 7px; }
  .chart-wrap { min-height: 160px; padding: 10px 10px 12px 0; }
  .trend-chart { min-height: 130px; }
  .chart-empty { font-size: 9px; inset: 12px 35px 35px; }
  .chart-x, .chart-y { font-size: 12px; }
  .connect-panel { padding: 22px; gap: 0 23px; grid-template-columns: 1.2fr 1fr; }
  .connect-panel h2 { font-size: 17px; }
  .connect-top .eyebrow { font-size: 7px; letter-spacing: .8px; }
  .connect-panel > p { font-size: 8px; }
  .config-progress { flex-wrap: wrap; font-size: 8px; row-gap: 8px; align-self: center; margin: 15px 0 0; }
  .config-progress strong { font-size: 18px; width: 100%; }
  .config-line { margin-top: 4px; }
  .connect-link { font-size: 9px; margin-top: 5px; }
  .page-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; min-height: 74px; padding: 0 2px; font-size: 8px; }
  .list-toolbar { padding: 15px; gap: 13px; }
  .filter-tabs { width: 100%; }
  .filter-tab { flex: 1; justify-content: center; padding: 8px; font-size: 10px; }
  .search-field { width: 100%; min-width: 0; padding: 9px 11px; }
  .data-table th, .data-table td { padding-left: 16px; padding-right: 16px; }
  .data-table td { padding-top: 20px; padding-bottom: 20px; }
  .sites-table { min-width: 850px; }
  .events-table { min-width: 670px; }
  .table-footer { padding: 13px 16px; font-size: 8px; }
  .below-note { font-size: 9px; line-height: 1.9; }
  .address-info { padding: 20px; gap: 13px; align-items: flex-start; }
  .address-info > .icon { width: 23px; height: 23px; margin-top: 3px; }
  .address-info h3 { font-size: 12px; }
  .address-info p { font-size: 9px; }
  .address-count { font-size: 23px; padding-left: 5px; }
  .address-count small { font-size: 8px; white-space: nowrap; }
  .events-filter { width: 100%; gap: 10px; align-items: flex-start; }
  .events-filter > label { flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; gap: 6px; }
  .events-filter select { min-width: 0; width: 100%; padding: 8px; font-size: 10px; }
  .list-caption { font-size: 8px; }
  .empty-state { min-height: 280px; padding: 35px 24px; }
  .empty-state p { font-size: 10px; max-width: 255px; }
  .settings-grid { gap: 18px; }
  .settings-form, .account-profile { padding: 22px; }
  .account-meta { margin: 0 22px; }
  .settings-form { gap: 21px; }
  .modal, .modal.wide { width: calc(100vw - 22px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  .modal-inner { max-height: calc(100dvh - 26px); }
  .modal-header { padding: 22px 20px 18px; }
  .modal-header h2 { font-size: 18px; }
  .modal-header p { font-size: 9px; max-width: 260px; }
  .modal-body { padding: 20px; gap: 19px; }
  .modal-footer { padding: 15px 20px; }
  .form-columns { grid-template-columns: 1fr; gap: 17px; }
  .field input, .field select { min-height: 45px; font-size: 16px; }
  .field textarea { font-size: 12px; }
  .field small, .form-note { font-size: 9px; }
  .form-section-title { font-size: 11px; }
  .switch-field { padding: 13px; gap: 12px; }
  .switch-field small { max-width: 215px; font-size: 8px; }
  .loading-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .skeleton-card { height: 140px; }
  .skeleton-panel { height: 250px; }
  .login-panel { padding: 120px 28px 85px; }
  .login-mobile-logo { top: 28px; left: 28px; }
  .login-form-wrap h2 { font-size: 28px; }
  .login-form-wrap > p { font-size: 11px; }
  .login-form { margin-top: 30px; gap: 21px; }
  .login-form input { font-size: 16px; }
  .login-security { font-size: 9px; }
  .login-help { font-size: 9px; }
  .login-footer { left: 28px; right: 28px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
