body.role-client_user .admin-caption,
body.role-client_user .admin-nav { display: none !important; }
.side-scroll { flex: 1; min-height: 0; overflow: auto; padding-right: 2px; }
.brand.brand-seyrab { width: 100%; min-width: 0; padding-left: 0; padding-right: 0; }
.brand-logo-surface.dual, .login-logo-surface.dual { width: 100%; max-width: 100%; box-sizing: border-box; gap: 10px; padding: 8px; justify-content: space-between; }
.brand-logo-surface.dual { height: 72px; }
.brand-logo-surface.dual .logo-cda,
.brand-logo-surface.dual .logo-seyrab,
.login-logo-surface.dual .logo-cda,
.login-logo-surface.dual .logo-seyrab { width: auto; max-width: 48%; object-fit: contain; flex: 0 1 auto; }
.brand-logo-surface.dual .logo-cda { height: 54px; }
.brand-logo-surface.dual .logo-seyrab { height: 50px; }
.login-logo-surface.dual { height: 92px; }
.login-logo-surface.dual .logo-cda { height: 70px; }
.login-logo-surface.dual .logo-seyrab { height: 64px; }
.login-brand:has(.login-logo-surface.dual) { flex-direction: column; align-items: flex-start; gap: 10px; margin-left: 0; max-width: 100%; }
.login-brand:has(.login-logo-surface.dual) .login-brand-copy { min-width: 0; }
.login-card .muted a { color: #287357; }

.public-body { background: var(--cream); font-size: 15px; }
.public-body .primary { font-size: 14px; padding: 12px 16px; }
.public-frame { max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; }
.topbar { justify-content: flex-start; gap: 14px; }
.top-actions { margin-left: auto; }
.top-nav { display: flex; align-items: center; gap: 2px; flex: none; }
.top-link { border: 0; background: transparent; color: #4d6558; font: inherit; font-size: 12px; font-weight: 650; padding: 8px 10px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.top-link:hover, .top-link.active { background: var(--mint); color: var(--forest); }
.public-header { background: var(--paper); border: 1px solid #e4e6dc; border-radius: 16px; display: flex; align-items: center; gap: 18px; padding: 10px 16px; box-shadow: var(--shadow); }
.public-logos { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.public-logos .logo-cda { height: 54px; width: auto; }
.public-logos .logo-seyrab { height: 58px; width: auto; }
.logo-rule { width: 1px; height: 36px; background: #d5ddd6; }
.public-nav { display: flex; gap: 18px; margin-left: auto; }
.public-nav a { color: #4d6558; text-decoration: none; font-size: 14px; font-weight: 650; }
.public-nav a.active { color: #173c31; }
.public-user { width: 38px; height: 38px; border-radius: 50%; background: #f3e7a4; color: #173c31; display: grid; place-items: center; text-decoration: none; font-weight: 800; flex: none; }

.lens { margin-top: 14px; }
.lens-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .78fr); gap: 16px; align-items: start; }
.lens-head { margin: 0 0 14px; }
.lens-title { margin: 0; text-align: left; color: #244a3a; font-size: 26px; letter-spacing: -.04em; font-weight: 650; }
.lens-filters, .lens-board { display: grid; gap: 12px; }
.lens-filters { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; background: var(--paper); border: 1px solid #ecece5; border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.lens-filters label, .lens-included, .lens-cumulative { display: flex; flex-direction: column; gap: 6px; color: #738279; font-size: 11px; font-weight: 700; }
.lens-included strong { color: #244a3a; font-size: 14px; font-weight: 700; line-height: 1.35; }
.lens-filters select, .lens-value select { border: 1px solid #e1e5dc; background: #fffefa; border-radius: 8px; min-height: 36px; padding: 0 10px; color: #24483a; font: inherit; font-size: 13px; }
.lens-board { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 280px; align-items: stretch; }
.lens-kpi, .lens-cumulative, .lens-copy, .feedback-form, .video-card, .learn-details, .layer-card { background: var(--paper); border: 1px solid #ecece5; border-radius: 12px; box-shadow: var(--shadow); }
.lens-kpi { display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.lens-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--mint); color: var(--forest); flex: none; }
.lens-ico svg { width: 22px; height: 22px; }
.lens-kpi b, .lens-cumulative b { color: #244a3a; font-size: 13px; }
.lens-value { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.lens-value strong { font-size: 22px; color: #1d3f34; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.lens-map { height: 280px; min-height: 0; max-height: 280px; border-radius: 12px; border: 1px solid #e4e6dc; background: #e7eee8; overflow: hidden; box-sizing: border-box; }
.lens-copy { height: 280px; min-height: 0; max-height: 280px; padding: 16px 18px; display: flex; flex-direction: column; overflow: auto; box-sizing: border-box; }
.lens-message { margin: 0 0 8px; font-size: 22px; letter-spacing: -.03em; color: #244a3a; }
.lens-message.up, .lens-figure.is-up #lens-delta { color: #2f7d46; fill: #2f7d46; }
.lens-message.down, .lens-figure.is-down #lens-delta { color: #c75e50; fill: #c75e50; }
.lens-message.steady { color: #244a3a; }
.lens-copy p { margin: 0; color: #52685d; line-height: 1.5; }
.lens-badge { margin-top: auto; background: var(--mint); border-radius: 10px; padding: 12px; color: var(--forest); font-weight: 650; }
.lens-note, .lens-foot { color: #82908a; font-size: 12px; }
.lens-note { margin-top: 10px; }
.lens-side { display: flex; flex-direction: column; gap: 12px; }
.lens-cumulative { padding: 16px; background: var(--gold-bg); border-color: #f2e8ca; }
.lens-cumulative small { font-weight: 600; color: #6d6244; }
.lens-figure { margin: 0; background: #f4f7f2; border-radius: 12px; overflow: hidden; border: 1px solid #e4e6dc; }
.lens-figure svg { width: 100%; height: auto; display: block; }
.lens-figure.is-down #lens-arrow { stroke: #c75e50; transform-box: fill-box; transform-origin: center; transform: rotate(180deg); }
.lens-figure.is-up #lens-arrow { stroke: #2f7d46; }
.lens-figure.is-steady #lens-arrow { display: none; }
.lens-foot { text-align: center; margin: 16px 0 0; }
.lens.is-loading { opacity: .72; }

.feedback-panel { margin-top: 16px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start; background: var(--paper); border-radius: 12px; padding: 28px; border: 1px solid #ecece5; box-shadow: var(--shadow); }
.feedback-copy h1 { font-size: 28px; font-weight: 650; letter-spacing: -.04em; color: #244a3a; margin: 0 0 8px; }
.feedback-copy p { font-size: 15px; color: #52685d; max-width: 420px; line-height: 1.5; }
.feedback-form { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.feedback-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #3d5248; font-weight: 650; }
.feedback-form input, .feedback-form textarea { border: 1px solid #e1e5dc; border-radius: 8px; padding: 10px; font: inherit; }
.form-ok { background: #e8f2e8; color: #246246; border-radius: 8px; padding: 8px 10px; font-size: 12px; }
.hp { position: absolute; left: -9999px; }

.learn-stage { margin-top: 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; background: var(--paper); border-radius: 18px; padding: 16px; border: 1px solid #e4e6dc; }
.carousel-track { display: flex; gap: 12px; overflow: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.video-card { min-width: 210px; max-width: 230px; scroll-snap-align: start; padding: 0 0 12px; overflow: hidden; }
.video-card img { width: 100%; height: 120px; object-fit: cover; background: #efe6d4; }
.video-card h3, .video-card p { margin: 8px 12px 0; font-size: 14px; }
.video-card p { color: #82908a; font-size: 12px; }
.carousel-btn { width: 36px; height: 64px; border: 0; background: transparent; color: #82908a; font-size: 32px; cursor: pointer; }
.learn-details { margin-top: 14px; padding: 22px 24px 18px; }
.learn-details h2 { margin: 0 0 10px; color: #244a3a; font-size: 18px; }
.learn-details p, .learn-details li { color: #3d5248; line-height: 1.55; }
.learn-details a { color: #287357; }
.partner-row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin-top: 18px; }
.partner-row img { height: 46px; width: auto; max-width: 92px; object-fit: contain; }
.partner-row .partner-flag { height: 34px; max-width: 58px; }
.partner-row .partner-seyrab { height: 42px; max-width: 112px; background: #fff; border-radius: 8px; padding: 4px 8px; }
.partner-row img.partner-scalex { height: 22px; max-width: 112px; }
.learn-directory { display: grid; gap: 10px; }
.learn-link { display: flex; flex-direction: column; gap: 3px; text-decoration: none; background: #fff; border-radius: 10px; padding: 12px; color: #173c31; }
.learn-link span { color: #82908a; font-size: 12px; }

.layers-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; }
.layer-card { padding: 14px; margin-bottom: 12px; }
.layer-card h2 { margin: 0 0 8px; font-size: 14px; }
.layer-stage { min-height: 420px; display: grid; place-items: center; background: #111; border-radius: 14px; overflow: hidden; }
.layer-stage img { max-width: 100%; max-height: 70vh; object-fit: contain; }
.layer-notes { white-space: pre-wrap; color: #3d5248; font-size: 12px; line-height: 1.45; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 14px; align-items: start; }
.profile-card { padding: 18px; }
.profile-row { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f0f0e9; font-size: 13px; }
.profile-row span { color: #82908a; }
.profile-actions { display: flex; justify-content: space-between; margin-top: 18px; }
.source-picker { margin: 0 0 8px; }
.source-picker-label { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #82908a; margin-bottom: 6px; }
.source-checks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.source-checks label { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #2d4a3d; background: #f7f8f3; border: 1px solid #e6e8df; border-radius: 999px; padding: 5px 10px; }
.source-checks small { color: #82908a; }
.grafana-legend { width: 100%; border-collapse: collapse; margin-top: 8px; }
.grafana-legend th { text-align: right; font-size: 10px; color: #82908a; font-weight: 700; padding: 4px 8px; }
.grafana-legend td { font-size: 12px; padding: 7px 8px; border-top: 1px solid #eef0e8; text-align: right; font-variant-numeric: tabular-nums; color: #2d4a3d; }
.grafana-legend td.name { text-align: left; font-weight: 700; }
.grafana-legend tr { cursor: pointer; }
.grafana-legend tr.off { opacity: .4; }
.grafana-legend .swatch, .grafana-legend .swatch-line { display: inline-block; margin-right: 8px; vertical-align: middle; }
.telemetry-panel { overflow: visible; }
.series-menu { position: relative; align-items: center; }
.series-menu-label { letter-spacing: .08em; text-transform: uppercase; color: #738178; font-size: 9px; font-weight: 700; }
.series-menu-btn { position: relative; min-width: 190px; max-width: 280px; height: 34px; padding: 0 28px 0 12px; border: 1px solid #dfe5dc; border-radius: 7px; background-color: #fffefa; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235d7468' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; color: #344d40; font: inherit; font-size: 12px; font-weight: 650; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.series-menu-btn[aria-expanded="true"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 5l4-4 4 4' fill='none' stroke='%235d7468' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.series-menu-btn:focus { outline: none; border-color: #83b096; box-shadow: 0 0 0 3px #e8f1e9; }
.series-menu-panel { position: absolute; z-index: 6; top: calc(100% + 6px); right: 0; width: min(320px, 78vw); max-height: 280px; overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; }
.series-menu-panel[hidden] { display: none !important; }
.series-menu-panel label { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; font-size: 12px; color: var(--ink); cursor: pointer; }
.series-menu-panel label:hover { background: var(--mint); }
.series-menu-panel small { margin-left: auto; color: var(--muted); font-size: 11px; }
.legend-note { margin: 6px 0 0; color: #82908a; font-size: 11px; }
.chart-point,
.chart-point:hover,
.chart-point:focus,
.chart-point.is-pinned { stroke: var(--point-stroke, #318861); }
.chart-point.is-pinned { fill: #e6c883; }
.control-group { margin: 0 0 14px; }
.control-group h2 { margin: 0 0 8px; font-size: 13px; color: #244a3a; }
.card-editor { display: grid; grid-template-columns: 1.4fr .6fr 1fr auto; gap: 8px; margin-bottom: 8px; }
@media (max-width: 760px) {
  .brand-logo-surface.dual { width: 43px; max-width: 43px; height: 43px; padding: 3px; gap: 2px; overflow: hidden; }
  .brand-logo-surface.dual .logo-cda,
  .brand-logo-surface.dual .logo-seyrab { height: 34px; max-width: 18px; transform: none; }
  .sidebar.open .brand-logo-surface.dual { width: 100%; max-width: 100%; height: 72px; padding: 8px; gap: 10px; overflow: visible; }
  .sidebar.open .brand-logo-surface.dual .logo-cda { height: 54px; max-width: 48%; }
  .sidebar.open .brand-logo-surface.dual .logo-seyrab { height: 50px; max-width: 48%; }
}
@media (max-width: 900px) {
  .lens-layout, .lens-board, .lens-filters, .feedback-panel, .layers-layout, .about-layout, .learn-stage { grid-template-columns: 1fr; }
  .lens-board { grid-template-rows: none; }
  .lens-map, .lens-copy { height: 240px; max-height: 240px; }
  .public-header { flex-wrap: wrap; }
  .public-nav { order: 3; width: 100%; }
  .feedback-copy h1 { font-size: 24px; }
  .card-editor { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; }
  .top-nav { order: 3; width: 100%; }
}
@media (max-width: 640px) {
  .lens-title { font-size: 22px; }
}
