/* AeroPublic v3.4.0 — direct component redesign, loaded after legacy themes.
   Preserve existing JS hooks; style new component markup and reusable surfaces. */
:root {
  /* Legacy stylesheet may leave these custom properties unresolved. */
  --sidebar-width:270px; --header-height:72px;
  --ap33-green:#087457; --ap33-green-deep:#115943; --ap33-ink:#18392f;
  --ap33-text:#36584d; --ap33-muted:#667e74; --ap33-bg:#f1f6f3;
  --ap33-surface:#fff; --ap33-soft:#f6faf8; --ap33-border:#d9e6df;
  --ap33-shadow:0 9px 24px rgba(20,65,46,.055);
  --ap33-radius:20px;
}
html[data-theme="dark"] {
  --ap33-green:#55d5a3; --ap33-green-deep:#89eac6; --ap33-ink:#effcf7;
  --ap33-text:#c7ded4; --ap33-muted:#a5beb4; --ap33-bg:#101c1b;
  --ap33-surface:#182b29; --ap33-soft:#203731; --ap33-border:#3a554b;
  --ap33-shadow:0 9px 24px rgba(0,0,0,.14);
}
html { scroll-padding-top:95px; }
body { text-rendering:optimizeLegibility; }
body :is(.ap-page-header,.ap-dashboard-welcome,.ap-trend-card,.ap-device-filter,.ap-notification-panel,.ap-filter-panel) { box-sizing:border-box; min-width:0; }
.ap-kicker { display:inline-flex; align-items:center; gap:8px; color:var(--ap33-green); font-weight:800; letter-spacing:.105em; text-transform:uppercase; font-size:11px; line-height:1.45; }
.ap-kicker i { font-size:12px; }
.ap-page-description { max-width:820px; color:var(--ap33-muted); font-size:13px; line-height:1.7; margin:7px 0 10px; }
.ap-action { display:inline-flex; align-items:center; justify-content:center; gap:9px; text-decoration:none; font-size:13px; font-weight:750; border-radius:12px; min-height:42px; padding:9px 15px; line-height:1.4; }
.ap-action-primary { color:#fff; background:linear-gradient(120deg,#078260,#086548); border:1px solid #0b704d; box-shadow:0 5px 14px rgba(8,130,89,.13); }
.ap-action-outline { color:var(--ap33-green); background:var(--ap33-surface); border:1px solid var(--ap33-border); }
.ap-action:hover { filter:brightness(.97); transform:translateY(-1px); }
.ap-page-header { background:var(--ap33-surface); border:1px solid var(--ap33-border); box-shadow:var(--ap33-shadow); border-radius:24px; padding:clamp(20px,2.5vw,30px); margin:0 0 22px; }
.ap-page-header :is(h1,h2,h3) { color:var(--ap33-ink); letter-spacing:-.035em; margin:6px 0 5px; font-size:clamp(21px,2vw,28px); line-height:1.3; }
.ap-header-copy { min-width:0; }
/* Admin application shell */
body.dashboard-layout { background:var(--ap33-bg); }
body.dashboard-layout .sidebar { box-shadow:10px 0 32px rgba(4,45,32,.10); }
body.dashboard-layout .sidebar .sidebar-nav .nav-item { min-height:43px; border-radius:11px; transition:background .16s ease,color .16s ease; }
body.dashboard-layout .sidebar .sidebar-nav .nav-item[aria-current="page"] { background:rgba(91,216,164,.14); color:#d5fff0; }
body.dashboard-layout .topbar { background:var(--ap33-surface); border-bottom:1px solid var(--ap33-border); min-height:77px; }
body.dashboard-layout .topbar .topbar-title h1 { letter-spacing:-.03em; line-height:1.2; }
body.dashboard-layout .topbar .topbar-actions { gap:10px; }
body.dashboard-layout .topbar :is(.user-menu,.connection-status) { max-width:100%; }
body.dashboard-layout .dashboard-content { max-width:1640px; width:100%; margin:0 auto; padding:clamp(17px,2.3vw,30px); }
body.dashboard-layout .dashboard-content > * { min-width:0; }
body.dashboard-layout :is(.summary-grid,.stats-grid,.settings-grid,.content-grid,.devices-grid) { gap:16px; }
body.dashboard-layout :is(.summary-card,.stat-card) { background:var(--ap33-surface); border:1px solid var(--ap33-border); border-radius:19px; box-shadow:var(--ap33-shadow); padding:18px; min-width:0; }
body.dashboard-layout .summary-card { align-items:flex-start; gap:14px; }
body.dashboard-layout :is(.summary-card,.stat-card) :is(.summary-value,.stat-value) { color:var(--ap33-ink); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
body.dashboard-layout :is(.summary-card,.stat-card) :is(.summary-label,.stat-label) { color:var(--ap33-muted); }
body.dashboard-layout :is(.summary-icon,.stat-icon) { border-radius:14px; flex:0 0 auto; }
body.dashboard-layout :is(.card,.chart-card,.filter-card,.settings-card,.device-card,.notif-item) { background:var(--ap33-surface); border:1px solid var(--ap33-border); border-radius:21px; box-shadow:var(--ap33-shadow); }
body.dashboard-layout :is(.card,.chart-card,.filter-card,.settings-card) :is(h2,h3) { letter-spacing:-.025em; }
body.dashboard-layout :is(.card-header,.settings-card-header) { border-color:var(--ap33-border); }
body.dashboard-layout :is(.form-input,.form-select,.setting-input,input[type="date"],input[type="time"],textarea) { border-color:var(--ap33-border); border-radius:12px; color:var(--ap33-ink); }
body.dashboard-layout :is(.form-input,.form-select,.setting-input,input[type="date"],input[type="time"],textarea):focus { border-color:#12a579; box-shadow:0 0 0 3px rgba(17,145,99,.10); outline:0; }
body.dashboard-layout :is(.data-table-wrapper,.table-wrapper) { overflow-x:auto; overscroll-behavior-x:contain; width:100%; border-radius:14px; }
body.dashboard-layout :is(.data-table-wrapper,.table-wrapper) th { background:var(--ap33-soft); color:var(--ap33-text); }
body.dashboard-layout :is(.data-table-wrapper,.table-wrapper) td { color:var(--ap33-text); }
body.dashboard-layout .state-wrapper { border-radius:19px; background:var(--ap33-surface); border:1px solid var(--ap33-border); margin-bottom:18px; }
body.dashboard-layout .state-wrapper.hidden { display:none!important; }
body.dashboard-layout :is(.btn,.btn-export,.btn-filter,.btn-notif,.btn-refresh,.btn-add-device,.btn-autoregister) { border-radius:12px; min-height:40px; font-weight:700; box-shadow:none; }
body.dashboard-layout :is(.btn,.btn-export,.btn-filter,.btn-notif,.btn-refresh,.btn-add-device,.btn-autoregister) i { flex-shrink:0; }
/* Admin overview: real HTML hero, not a visual pseudoelement */
body.dashboard-layout .ap-dashboard-welcome { display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; border-radius:25px; padding:clamp(23px,2.4vw,32px); margin-bottom:18px; background:linear-gradient(115deg,#e7f5ec,#f6fbf7 65%,#ecf5f2); border:1px solid #d1e8db; }
body.dashboard-layout .ap-dashboard-welcome .ap-welcome-copy { flex:1 1 410px; }
body.dashboard-layout .ap-dashboard-welcome h2 { font-size:clamp(23px,2.2vw,31px); font-weight:800; color:#164f39; line-height:1.2; margin:8px 0; letter-spacing:-.04em; }
body.dashboard-layout .ap-dashboard-welcome p { max-width:720px; color:#4a715f; font-size:13px; line-height:1.75; margin:0; }
body.dashboard-layout .ap-welcome-actions { display:flex; flex-wrap:wrap; gap:9px; }
body.dashboard-layout .ap-toolbar-surface { border:1px solid var(--ap33-border); border-radius:19px; padding:16px 18px; background:var(--ap33-surface); box-shadow:var(--ap33-shadow); gap:12px; }
body.dashboard-layout .ap-toolbar-surface .form-select { min-width:min(100%,260px); }
/* Structured device filters and cards */
body.dashboard-layout .ap-device-filter { display:grid; grid-template-columns:minmax(220px,1.5fr) minmax(160px,.7fr) auto; gap:14px; align-items:end; padding:18px; margin-bottom:19px; }
body.dashboard-layout .ap-filter-field { display:flex; flex-direction:column; gap:6px; min-width:0; }
body.dashboard-layout .ap-filter-field label { font-size:12px; font-weight:750; color:var(--ap33-text); }
body.dashboard-layout .ap-filter-field :is(.form-input,.form-select) { width:100%; height:44px; background:var(--ap33-surface); margin:0; }
body.dashboard-layout .ap-search-input { display:flex; gap:7px; align-items:center; border:1px solid var(--ap33-border); border-radius:12px; padding:0 14px; min-width:0; background:var(--ap33-surface); }
body.dashboard-layout .ap-search-input i { color:var(--ap33-muted); }
body.dashboard-layout .ap-search-input .form-input { padding-left:4px; border:0; box-shadow:none; background:transparent; }
body.dashboard-layout .ap-filter-count { align-self:center; justify-self:end; padding:8px 12px; border-radius:999px; color:var(--ap33-green); border:1px solid var(--ap33-border); background:var(--ap33-soft); white-space:normal; font-size:12px; font-weight:750; }
body.dashboard-layout #deviceList { gap:18px; }
body.dashboard-layout #deviceList .device-card { overflow:hidden; }
body.dashboard-layout #deviceList :is(.device-card-header,.device-card-footer) { background:var(--ap33-soft); padding:15px; }
body.dashboard-layout #deviceList .device-card-body { padding:16px; }
body.dashboard-layout #deviceList :is(.fan-badge,.status-badge) { max-width:100%; overflow-wrap:anywhere; }
body.dashboard-layout .autoregister-banner { border-radius:18px; overflow:hidden; }
/* Reports */
body.dashboard-layout .ap-filter-panel { padding:clamp(17px,2.3vw,25px); margin-bottom:20px; }
body.dashboard-layout .ap-filter-panel .filter-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
body.dashboard-layout .ap-filter-panel .filter-group { display:flex; flex-direction:column; gap:7px; }
body.dashboard-layout .ap-filter-panel :is(input,select) { width:100%; min-width:0; min-height:43px; background:var(--ap33-surface); }
body.dashboard-layout .ap-filter-panel .filter-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
body.dashboard-layout .ap-help-text { background:var(--ap33-soft); border:1px solid var(--ap33-border); border-radius:13px; padding:11px 14px; font-size:12px; line-height:1.65; color:var(--ap33-text); }
body.dashboard-layout .ap-report-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; }
body.dashboard-layout .ap-report-stats .stat-card { padding:17px; }
body.dashboard-layout .ap-report-chart { overflow:hidden; }
/* Notifications: actual list panel, usable load-more */
body.dashboard-layout .ap-notification-panel { background:var(--ap33-surface); border:1px solid var(--ap33-border); border-radius:22px; padding:clamp(16px,2.2vw,25px); box-shadow:var(--ap33-shadow); }
body.dashboard-layout .ap-list-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:15px; padding-bottom:16px; border-bottom:1px solid var(--ap33-border); }
body.dashboard-layout .ap-list-heading h3 { font-size:19px; color:var(--ap33-ink); margin:4px 0; }
body.dashboard-layout .ap-list-heading p { margin:3px 0; color:var(--ap33-muted); font-size:12px; }
body.dashboard-layout .ap-list-caption { font-size:12px; font-weight:700; color:var(--ap33-muted); background:var(--ap33-soft); border:1px solid var(--ap33-border); border-radius:999px; padding:7px 10px; }
body.dashboard-layout .ap-notification-panel #notifList { display:grid; gap:12px; }
body.dashboard-layout .ap-notification-panel .notif-item { width:100%; display:flex; align-items:flex-start; gap:12px; margin:0; box-shadow:none; border-radius:15px; padding:16px; }
body.dashboard-layout .ap-notification-panel .notif-item.unread { border-left:3px solid #0f9d72; background:var(--ap33-soft); }
body.dashboard-layout .ap-notification-panel .notif-icon { flex:0 0 auto; }
body.dashboard-layout .ap-notification-panel .notif-content { flex:1 1 auto; min-width:0; }
body.dashboard-layout .ap-notification-panel .notif-message { line-height:1.65; overflow-wrap:anywhere; }
body.dashboard-layout .ap-notification-panel .notif-actions-btn { display:flex; gap:6px; flex-wrap:wrap; }
body.dashboard-layout .ap-filter-chips { display:flex; flex-wrap:wrap; gap:9px; margin-bottom:16px; }
body.dashboard-layout .ap-filter-chips .filter-chip { border-radius:999px; padding:9px 14px; min-height:40px; }
body.dashboard-layout .ap-load-more { min-height:44px; border-radius:13px; color:var(--ap33-green); background:var(--ap33-soft); border:1px solid var(--ap33-border); font-weight:750; padding:12px; margin:5px auto; max-width:320px; width:100%; }
/* Settings */
body.dashboard-layout .settings-header.ap-page-header { display:block; }
body.dashboard-layout .ap-settings-caution { display:flex; gap:9px; align-items:flex-start; background:var(--ap33-soft); border:1px solid var(--ap33-border); border-radius:13px; padding:12px 14px; font-size:12px; line-height:1.65; color:var(--ap33-text); margin:13px 0 0; }
body.dashboard-layout .ap-settings-caution i { flex:0 0 auto; margin-top:2px; color:var(--ap33-green); }
body.dashboard-layout .ap-settings-grid { align-items:start; gap:18px; }
body.dashboard-layout .ap-settings-grid .settings-card { overflow:hidden; }
body.dashboard-layout .ap-settings-grid .settings-card-header { padding:19px 22px; background:var(--ap33-soft); }
body.dashboard-layout .ap-settings-grid .settings-card-body { padding:20px; }
body.dashboard-layout .ap-settings-grid .param-row { gap:12px; }
body.dashboard-layout .ap-settings-grid .param-inputs-pair { min-width:0; }
body.dashboard-layout .ap-settings-grid .input-addon-group { min-width:0; }
body.dashboard-layout .ap-settings-grid .param-field { min-width:0; }
body.dashboard-layout .ap-settings-grid :is(.setting-input,.form-input,.form-select) { width:100%; }
body.dashboard-layout .ap-about-header { display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px; align-items:center; }
/* Public graph structure */
body.public-page .navbar { background:var(--ap33-surface); box-shadow:var(--ap33-shadow); border:1px solid var(--ap33-border); }
body.public-page .navbar .logo-tagline { font-size:11px; max-width:220px; color:var(--ap33-muted); }
body.public-page #mainContent { max-width:1560px; }
body.public-page #mainContent > section { scroll-margin-top:100px; }
body.public-page #grafik { padding:0; }
body.public-page #grafik > div:first-child { background:var(--ap33-surface); border:1px solid var(--ap33-border); border-radius:23px; box-shadow:var(--ap33-shadow); padding:clamp(16px,2.1vw,26px); }
body.public-page #grafik .param-charts-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
body.public-page #grafik .ap-trend-card { background:var(--ap33-surface); border:1px solid var(--ap33-border); border-radius:19px; padding:18px 19px 13px; box-shadow:none; min-width:0; }
body.public-page #grafik .ap-trend-heading { display:flex; justify-content:space-between; align-items:start; gap:10px; min-height:78px; }
body.public-page #grafik .ap-trend-overline { display:block; color:var(--ap33-green); font-size: 11px; letter-spacing:.12em; font-weight:800; text-transform:uppercase; margin-bottom:5px; }
body.public-page #grafik .ap-trend-heading h4 { font-size:20px; font-weight:800; letter-spacing:-.04em; color:var(--ap33-ink); margin:0; line-height:1.25; }
body.public-page #grafik .ap-trend-heading h4 small { font-size:11px; letter-spacing:0; font-weight:600; color:var(--ap33-muted); }
body.public-page #grafik .ap-trend-heading p { color:var(--ap33-muted); font-size:11px; margin:4px 0 0; }
body.public-page #grafik .ap-trend-latest { display:inline-flex; justify-content:center; min-width:53px; text-align:center; padding:8px 10px; white-space:normal; max-width:46%; border-radius:10px; border:1px solid var(--ap33-border); background:var(--ap33-soft); color:var(--ap33-ink); font-size:13px; font-weight:800; }
body.public-page #grafik .ap-trend-plot { height:205px; overflow:hidden; position:relative; }
body.public-page #grafik .ap-trend-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px; border-top:1px solid var(--ap33-border); margin-top:12px; padding-top:12px; font-size: 11px; font-weight:650; color:var(--ap33-muted); }
/* Public relay/status: two different sources: telemetry vs. rule explanation */
body.public-page #fan-public-section { border-radius:24px!important; }
body.public-page #fan-public-section .fan-monitor-heading { padding-bottom:15px; border-bottom:1px solid var(--ap33-border); }
body.public-page #fan-public-section .fan-monitor-rule { border-left:3px solid #149e71; }
body.public-page #fan-public-section .fan-monitor-stat { background:var(--ap33-soft); border-color:var(--ap33-border); min-height:138px; transition:border-color .15s ease; }
body.public-page #fan-public-section .fan-monitor-stat-primary { background:linear-gradient(135deg,rgba(13,143,99,.12),rgba(13,143,99,.025)); border-color:rgba(13,143,99,.26); }
body.public-page #fan-public-section .fan-stat-value { font-size:clamp(14px,1.25vw,18px); line-height:1.35; }
body.public-page #fan-public-section .fan-monitor-explanation { background:var(--ap33-soft); }
body.public-page #fan-public-section .ap-source-indicator { display:flex; flex-wrap:wrap; gap:7px 10px; align-items:center; border-bottom:1px solid var(--ap33-border); padding-bottom:11px; margin-bottom:11px; font-size:12px; }
body.public-page #fan-public-section .ap-source-indicator strong { color:var(--ap33-ink); font-weight:750; }
body.public-page #fan-public-section .ap-source-indicator span:last-child { color:var(--ap33-muted); }
body.public-page #fan-public-section .ap-status-lamp { width:8px; height:8px; background:var(--ap33-green); border-radius:50%; flex:none; }
body.public-page #fan-alert-section { border-radius:24px!important; }
body.public-page #fan-alert-section .ap-feed-caption { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; font-size:11px; font-weight:650; color:var(--ap33-muted); margin:0 0 13px; padding:10px 12px; border:1px solid var(--ap33-border); border-radius:12px; background:var(--ap33-soft); }
body.public-page #fan-alert-section #alertFeedList { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; overflow-y:auto; }
body.public-page #fan-alert-section .ap-feed-placeholder { grid-column:1/-1; text-align:center; border:1px dashed var(--ap33-border); border-radius:14px; padding:24px; color:var(--ap33-muted); }
body.public-page #fan-alert-section #alertFeedList > .alert-item { background:var(--ap33-soft); border-color:var(--ap33-border); min-height:114px; }
body.public-page #fan-alert-section .alert-title { color:var(--ap33-ink); font-size:13px; }
body.public-page #fan-alert-section .alert-msg { color:var(--ap33-text); font-size:12px; }
/* Login and error */
body.login-page .ap-login-kicker { margin-bottom:9px; }
body.login-page .login-form-card { border:1px solid var(--ap33-border); border-radius:25px; }
body.login-page .login-form-panel :is(input,button) { min-height:43px; }
body.login-page .btn-login { min-height:48px; }
body :is(.ap-action,.ap-load-more):focus-visible { outline:3px solid #149c73; outline-offset:3px; }
@media(max-width:1250px) {
 body.dashboard-layout .ap-report-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.dashboard-layout .ap-device-filter { grid-template-columns:minmax(200px,1fr) minmax(160px,.65fr); }
 body.dashboard-layout .ap-filter-count { grid-column:1/-1; justify-self:start; }
}
@media(max-width:900px) {
 body.dashboard-layout .ap-filter-panel .filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.dashboard-layout .ap-settings-grid { grid-template-columns:1fr; }
 body.public-page #grafik .param-charts-grid { grid-template-columns:1fr; }
}
@media(max-width:650px) {
 body.dashboard-layout .dashboard-content { padding:14px 12px; }
 body.dashboard-layout .topbar { min-height:64px; }
 body.dashboard-layout .topbar .user-name { display:none; }
 body.dashboard-layout .ap-page-header { padding:18px 16px; }
 body.dashboard-layout .ap-dashboard-welcome { padding:20px 17px; }
 body.dashboard-layout .ap-dashboard-welcome h2 { font-size:23px; }
 body.dashboard-layout .ap-dashboard-welcome .ap-welcome-actions { width:100%; }
 body.dashboard-layout .ap-dashboard-welcome .ap-welcome-actions .ap-action { flex:1 1 125px; }
 body.dashboard-layout .ap-device-filter { grid-template-columns:1fr; }
 body.dashboard-layout .ap-filter-count { grid-column:auto; justify-self:start; }
 body.dashboard-layout .ap-filter-panel .filter-grid { grid-template-columns:1fr; }
 body.dashboard-layout .ap-report-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.dashboard-layout .ap-notification-panel { padding:15px 12px; }
 body.dashboard-layout .ap-notification-panel .notif-item { padding:12px; flex-wrap:wrap; }
 body.dashboard-layout .ap-notification-panel .notif-actions-btn { margin-left:auto; }
 body.public-page #grafik > div:first-child { padding:16px; }
 body.public-page #fan-public-section .fan-monitor-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.public-page #fan-alert-section #alertFeedList { grid-template-columns:1fr; }
}
@media(max-width:460px) {
 body.dashboard-layout .ap-report-stats { grid-template-columns:1fr; }
 body.dashboard-layout .topbar .connection-status { display:none; }
 body.dashboard-layout .topbar .topbar-title .breadcrumb { display:none; }
 body.dashboard-layout .topbar .topbar-actions .btn-outline { font-size:0; width:38px; min-width:38px; padding:6px; }
 body.dashboard-layout .topbar .topbar-actions .btn-outline i { font-size:14px; }
 body.public-page #fan-public-section .fan-monitor-grid { grid-template-columns:1fr; }
 body.public-page #grafik .ap-trend-plot { height:184px; }
 body.public-page #grafik .ap-trend-latest { font-size:12px; }
}
html[data-theme="dark"] body.dashboard-layout .ap-dashboard-welcome { background:linear-gradient(130deg,#173b30,#1e352f); border-color:#305747; }
html[data-theme="dark"] body.dashboard-layout .ap-dashboard-welcome h2 { color:#dcf8eb; }
html[data-theme="dark"] body.dashboard-layout .ap-dashboard-welcome p { color:#b3d2c1; }
html[data-theme="dark"] body.public-page #fan-public-section .fan-monitor-stat-primary { background:rgba(9,125,89,.16); }
@media(prefers-reduced-motion:reduce) { .ap-action:hover { transform:none; } }
/* Compact mobile navbar: fix legacy clay spheres wrapping into tall floating pill. */
@media (max-width:650px) {
 body.public-page .navbar { display:grid!important; grid-template-columns:minmax(0,1fr) auto; align-items:center!important; gap:7px!important; min-height:62px; padding:10px 12px!important; margin:8px 10px!important; border-radius:20px!important; }
 body.public-page .navbar .nav-brand { min-width:0; width:auto; gap:7px!important; }
 body.public-page .navbar .brand-logo-frame { width:34px!important; height:34px!important; padding:3px!important; flex:0 0 34px; }
 body.public-page .navbar .nav-brand .logo-text { font-size:16px!important; line-height:1.2; }
 body.public-page .navbar .nav-actions { display:flex!important; justify-content:flex-end; align-items:center; gap:5px!important; flex-wrap:nowrap; min-width:0; }
 body.public-page .navbar .nav-actions :is(.theme-toggle-btn,.nav-toggle-btn) { display:inline-grid!important; place-items:center; width:35px!important; height:35px!important; min-width:35px; min-height:35px; padding:0!important; border-radius:12px!important; }
 body.public-page .navbar .admin-login-btn { display:inline-flex!important; align-items:center; min-height:35px; border-radius:11px!important; padding:7px 9px!important; font-size:11px!important; gap:4px!important; white-space:nowrap; }
 body.public-page .navbar #publicNav:not(.hidden) { z-index:70; grid-column:1/-1; width:100%; position:absolute!important; left:0!important; right:0!important; top:calc(100% + 6px)!important; margin:0!important; padding:14px!important; border-radius:16px!important; background:var(--ap33-surface)!important; box-shadow:0 15px 32px rgba(12,50,35,.17); }
 body.public-page .navbar #publicNav .nav-link { width:100%; }
}
@media (max-width:375px) {
 body.public-page .navbar .admin-login-btn span { display:none; }
 body.public-page .navbar .admin-login-btn { width:35px; min-width:35px; justify-content:center; }
}
body.public-page .ap-nav-hamburger { font:700 19px/1 sans-serif; color:var(--ap33-ink); }
body.public-page .ap-theme-glyph { font:600 21px/1 sans-serif; color:var(--ap33-ink); }

/* Explicit application columns: prevents fixed sidebar overlaying admin content. */
@media (min-width:992px) {
 body.dashboard-layout .sidebar { width:270px; }
 body.dashboard-layout .main-content { flex:1 1 auto; margin-left:270px; width:calc(100% - 270px); max-width:calc(100% - 270px); min-width:0; }
}
@media (max-width:991px) {
 body.dashboard-layout .main-content { margin-left:0!important; width:100%; max-width:100%; min-width:0; }
 body.dashboard-layout .sidebar { width:min(280px,85vw); }
}
body.dashboard-layout #menuToggle svg, body.dashboard-layout #themeToggle svg, body.public-page #themeToggle svg { width:19px; height:19px; display:block; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }


/* v3.3.1 claymorphism refinement for public exhaust fan section */
body.public-page #fan-public-section {
  position:relative;
  overflow:hidden;
  background:linear-gradient(145deg, rgba(255,255,255,.96), rgba(240,247,243,.98))!important;
  border:1px solid rgba(255,255,255,.86)!important;
  box-shadow:
    22px 22px 44px rgba(120, 151, 136, 0.16),
    -14px -14px 32px rgba(255,255,255,0.92),
    inset 1px 1px 0 rgba(255,255,255,0.85),
    inset -1px -1px 0 rgba(191, 214, 202, 0.28)!important;
}
body.public-page #fan-public-section::before {
  content:'';
  position:absolute;
  inset:-20% auto auto -10%;
  width:280px;
  height:280px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(60,197,144,.16) 0%, rgba(60,197,144,0) 70%);
  pointer-events:none;
}
body.public-page #fan-public-section::after {
  content:'';
  position:absolute;
  right:-70px;
  top:-55px;
  width:220px;
  height:220px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.92) 0%, rgba(255,255,255,0) 72%);
  pointer-events:none;
}
body.public-page #fan-public-section > * { position:relative; z-index:1; }
body.public-page #fan-public-section .fan-monitor-heading {
  border-bottom:1px solid rgba(195,216,206,.6);
  margin-bottom:20px;
}
body.public-page #fan-public-section .fan-eyebrow {
  padding:7px 12px;
  border-radius:999px;
  background:linear-gradient(145deg, rgba(255,255,255,.98), rgba(232,242,237,.96));
  border:1px solid rgba(255,255,255,.88);
  box-shadow:
    8px 8px 18px rgba(143, 173, 158, .18),
    -6px -6px 14px rgba(255,255,255,.92);
}
body.public-page #fan-public-section #publicFanStatusBadge {
  background:linear-gradient(145deg, rgba(255,255,255,.98), rgba(232,242,237,.96));
  border:1px solid rgba(255,255,255,.88);
  box-shadow:
    10px 10px 20px rgba(143, 173, 158, .18),
    -8px -8px 16px rgba(255,255,255,.92),
    inset 1px 1px 0 rgba(255,255,255,.86);
}
body.public-page #fan-public-section .fan-monitor-rule,
body.public-page #fan-public-section .fan-monitor-stat,
body.public-page #fan-public-section .fan-monitor-explanation {
  background:linear-gradient(145deg, rgba(253,255,254,.98), rgba(237,244,240,.98));
  border:1px solid rgba(255,255,255,.92);
  box-shadow:
    14px 14px 28px rgba(138, 168, 153, .16),
    -12px -12px 24px rgba(255,255,255,.92),
    inset 1px 1px 0 rgba(255,255,255,.85),
    inset -1px -1px 0 rgba(198, 217, 208, .24);
}
body.public-page #fan-public-section .fan-monitor-rule {
  border-left:0;
  padding:18px 20px;
}
body.public-page #fan-public-section .fan-monitor-rule-icon {
  background:linear-gradient(145deg, rgba(238,250,245,.98), rgba(223,243,233,.98));
  border:1px solid rgba(255,255,255,.85);
  box-shadow:
    8px 8px 16px rgba(143,173,158,.18),
    -6px -6px 12px rgba(255,255,255,.9);
}
body.public-page #fan-public-section .fan-device-filter select {
  background:linear-gradient(145deg, rgba(255,255,255,.98), rgba(235,243,239,.98));
  border:1px solid rgba(255,255,255,.88);
  box-shadow:
    inset 2px 2px 4px rgba(255,255,255,.95),
    inset -2px -2px 4px rgba(207,222,214,.28),
    8px 8px 16px rgba(143,173,158,.12),
    -6px -6px 12px rgba(255,255,255,.9);
}
body.public-page #fan-public-section .fan-monitor-grid { gap:14px; }
body.public-page #fan-public-section .fan-monitor-stat {
  border-radius:22px;
  padding:18px;
}
body.public-page #fan-public-section .fan-monitor-stat-primary {
  background:linear-gradient(145deg, rgba(232,249,241,.98), rgba(242,250,246,.96));
}
body.public-page #fan-public-section .fan-stat-label {
  font-size:11px;
  letter-spacing:.05em;
  text-transform:uppercase;
}
body.public-page #fan-public-section .fan-stat-value {
  font-size:clamp(15px,1.3vw,19px);
}
body.public-page #fan-public-section .fan-stat-help {
  margin-top:auto;
  padding-top:8px;
  border-top:1px dashed rgba(188,208,198,.75);
}
body.public-page #fan-public-section .fan-monitor-explanation {
  border-radius:22px;
}
body.public-page #fan-public-section .ap-source-indicator {
  padding:0 0 12px;
  margin-bottom:12px;
  border-bottom:1px dashed rgba(188,208,198,.78);
}
html[data-theme="dark"] body.public-page #fan-public-section {
  background:linear-gradient(145deg, rgba(28,45,42,.98), rgba(20,35,33,.98))!important;
  border:1px solid rgba(67,96,84,.82)!important;
  box-shadow:
    18px 18px 40px rgba(0,0,0,.34),
    -10px -10px 26px rgba(61,95,82,.14),
    inset 1px 1px 0 rgba(108,154,134,.12),
    inset -1px -1px 0 rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] body.public-page #fan-public-section::before {
  background:radial-gradient(circle, rgba(47,178,124,.14) 0%, rgba(47,178,124,0) 72%);
}
html[data-theme="dark"] body.public-page #fan-public-section::after {
  background:radial-gradient(circle, rgba(91,126,112,.14) 0%, rgba(91,126,112,0) 70%);
}
html[data-theme="dark"] body.public-page #fan-public-section :is(.fan-monitor-rule,.fan-monitor-stat,.fan-monitor-explanation,#publicFanStatusBadge,.fan-eyebrow,.fan-device-filter select,.fan-monitor-rule-icon) {
  background:linear-gradient(145deg, rgba(30,48,45,.98), rgba(24,39,37,.98));
  border-color:rgba(66,95,84,.84);
  box-shadow:
    12px 12px 24px rgba(0,0,0,.28),
    -8px -8px 18px rgba(70,108,91,.10),
    inset 1px 1px 0 rgba(88,127,109,.10),
    inset -1px -1px 0 rgba(0,0,0,.2);
}
html[data-theme="dark"] body.public-page #fan-public-section .fan-monitor-stat-primary {
  background:linear-gradient(145deg, rgba(21,65,51,.98), rgba(22,46,40,.98));
}


/* ==============================================================
   AeroPublic 3.4 — Unified Professional FreshGreen Clay Design
   This is the sole final design layer across public and admin.
   All telemetry JS IDs and API behavior remain unchanged.
   ============================================================== */
:root {
  --ap34-canvas:#edf4ef;
  --ap34-paper:#f9fcfa;
  --ap34-white:#ffffff;
  --ap34-forest:#103c2e;
  --ap34-darkgreen:#155e45;
  --ap34-emerald:#087a55;
  --ap34-mint:#dff4e8;
  --ap34-text:#25473a;
  --ap34-muted:#637c70;
  --ap34-line:#dbe9df;
  --ap34-hairline:rgba(114,158,133,.16);
  --ap34-outer:12px 12px 26px rgba(64,104,82,.10),-8px -8px 22px rgba(255,255,255,.84);
  --ap34-subtle:0 8px 26px rgba(24,81,48,.075);
  --ap34-inset:inset 3px 3px 7px rgba(112,150,127,.12),inset -4px -4px 8px rgba(255,255,255,.92);
  --ap34-radius:22px;
}
html[data-theme="dark"] {
  --ap34-canvas:#101b18;
  --ap34-paper:#1c2c27;
  --ap34-white:#243a30;
  --ap34-forest:#e3f8eb;
  --ap34-darkgreen:#91e6b9;
  --ap34-emerald:#6add9e;
  --ap34-mint:#244738;
  --ap34-text:#cde6d6;
  --ap34-muted:#a6c4b3;
  --ap34-line:#3c5849;
  --ap34-hairline:rgba(173,215,186,.16);
  --ap34-outer:12px 12px 26px rgba(0,0,0,.24),-6px -6px 20px rgba(67,107,78,.08);
  --ap34-subtle:0 8px 25px rgba(0,0,0,.18);
  --ap34-inset:inset 3px 3px 9px rgba(0,0,0,.22),inset -2px -2px 7px rgba(88,133,101,.10);
}
html { scroll-behavior:smooth; }
body.ap34-public,body.ap34-admin,body.ap34-auth,body.ap34-error { color:var(--ap34-text); }
body.ap34-public, body.ap34-admin { background:var(--ap34-canvas); }
body :is(a,button,input,select,textarea,[role="button"]) { -webkit-tap-highlight-color:transparent; }
body :is(button,input,select,textarea) { font:inherit; }
body :is(a,button,input,select,textarea,[tabindex]):focus-visible {
  outline:3px solid #28a579!important; outline-offset:3px!important;
}
body :is(.dashboard-content,.main-content,.fan-monitor-panel,.fan-alert-panel,.card,.chart-card,.table-card) { min-width:0; }
body :is(.chart-container,canvas,svg) { max-width:100%; }
body :is(.error-message,.alert-msg,.fan-stat-value,.fan-monitor-source,.device-id-small) { overflow-wrap:anywhere; }

/* Public shell, navigation and hierarchy */
body.ap34-public .navbar {
  border:1px solid rgba(255,255,255,.65)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(240,248,242,.96))!important;
  box-shadow:var(--ap34-subtle),inset 1px 1px 0 rgba(255,255,255,.7)!important;
  backdrop-filter:blur(12px);
}
body.ap34-public #mainContent { max-width:1536px; padding-inline:clamp(14px,2.5vw,36px); }
body.ap34-public #mainContent > section { scroll-margin-top:104px; }
body.ap34-public #beranda { border:1px solid rgba(255,255,255,.72)!important; box-shadow:var(--ap34-subtle)!important; border-radius:28px!important; }
body.ap34-public #monitoring,
body.ap34-public #grafik,
body.ap34-public #edukasi,
body.ap34-public #tentang { min-width:0; }
body.ap34-public #monitoring .sensor-card,
body.ap34-public #monitoring .metric-card,
body.ap34-public .recap-card,
body.ap34-public #grafik .ap-trend-card {
  border:1px solid var(--ap34-line)!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,var(--ap34-white),var(--ap34-paper))!important;
  box-shadow:var(--ap34-subtle)!important;
}
body.ap34-public :is(#grafik,#monitoring) :is(h2,h3,h4) { color:var(--ap34-forest); }
body.ap34-public #grafik .ap-trend-card { padding:18px!important; min-width:0; }
body.ap34-public #grafik .ap-trend-plot { min-height:185px; height:clamp(190px,20vw,245px); }
body.ap34-public #grafik .ap-trend-heading { gap:12px; }
body.ap34-public #grafik .ap-trend-latest { background:var(--ap34-mint); border:1px solid var(--ap34-line); border-radius:14px; color:var(--ap34-forest); }
body.ap34-public #recapStrip { gap:16px; }
body.ap34-public .recap-card { padding:18px!important; }
body.ap34-public #map-section,
body.ap34-public #daftar-perangkat {
  border:1px solid var(--ap34-line)!important;
  border-radius:var(--ap34-radius)!important;
  background:var(--ap34-white)!important;
  box-shadow:var(--ap34-subtle)!important;
  overflow:hidden;
}
body.ap34-public #daftar-perangkat :is(.device-card,.node-card) { border-radius:18px; }
body.ap34-public #edukasi :is(.edu-card,.education-card),
body.ap34-public #tentang :is(.about-card,.feature-card) { border-radius:20px; }

/* Public fan: correct the earlier !important selector conflict and establish
   a real elevated clay hierarchy; no simulated/guessed relay status. */
html body.ap34-public #fan-public-section.fan-monitor-panel {
  padding:clamp(18px,2.6vw,30px)!important;
  border-radius:28px!important;
  border:1px solid rgba(255,255,255,.88)!important;
  background:linear-gradient(145deg,#f7fcf8,#edf6f0)!important;
  box-shadow:18px 18px 40px rgba(91,135,106,.15),-10px -10px 26px rgba(255,255,255,.88),inset 1px 1px 0 rgba(255,255,255,.98)!important;
  overflow:hidden;
}
body.ap34-public #fan-public-section .fan-monitor-heading { align-items:center; flex-wrap:wrap; padding-bottom:19px; margin-bottom:21px; border-bottom:1px solid rgba(115,165,130,.18); }
body.ap34-public #fan-public-section .fan-monitor-heading-copy h3 { font-size:clamp(22px,2vw,28px); letter-spacing:-.045em; }
body.ap34-public #fan-public-section .fan-monitor-heading-copy>p { max-width:540px; }
body.ap34-public #fan-public-section .fan-monitor-rule {
  display:flex; gap:14px; align-items:flex-start;
  border-radius:20px; background:linear-gradient(145deg,#f4fbf6,#eaf4ee)!important;
  border:1px solid rgba(255,255,255,.95)!important;
  box-shadow:var(--ap34-inset)!important; padding:19px 20px; border-left:0!important;
}
body.ap34-public #fan-public-section .fan-monitor-rule-icon { border-radius:14px; width:38px; height:38px; }
body.ap34-public #fan-public-section .fan-monitor-toolbar { margin-top:2px; margin-bottom:20px; }
body.ap34-public #fan-public-section .fan-device-filter select {
  border-radius:14px; background:var(--ap34-white);
  border:1px solid var(--ap34-line)!important; color:var(--ap34-forest);
  box-shadow:var(--ap34-inset)!important;
}
body.ap34-public #fan-public-section #publicFanStatusBadge {
  padding:10px 15px; border-radius:999px; font-weight:800;
  box-shadow:var(--ap34-subtle)!important;
  border:1px solid rgba(255,255,255,.92)!important;
}
body.ap34-public #fan-public-section .fan-monitor-grid { gap:18px; }
body.ap34-public #fan-public-section .fan-monitor-stat {
  position:relative; padding:20px 18px; min-height:151px;
  background:linear-gradient(145deg,#fafffb,#eaf3ed)!important;
  border:1px solid rgba(255,255,255,.95)!important;
  border-radius:22px!important;
  box-shadow:12px 12px 25px rgba(118,159,133,.15),-8px -8px 22px rgba(255,255,255,.92),inset 1px 1px 0 rgba(255,255,255,.98)!important;
  transition:transform .18s ease,box-shadow .18s ease;
}
body.ap34-public #fan-public-section .fan-monitor-stat-primary {
  background:linear-gradient(145deg,#e4f8eb,#f2fcf6)!important;
}
body.ap34-public #fan-public-section .ap34-stat-head { display:flex; align-items:center; gap:10px; margin-bottom:3px; width:100%; }
body.ap34-public #fan-public-section .ap34-stat-icon {
  display:inline-grid; place-items:center; width:36px; height:36px;
  border-radius:13px; flex:none; color:#087958; font-size:14px;
  background:linear-gradient(140deg,#f8fff9,#dff3e7);
  box-shadow:4px 5px 10px rgba(110,156,129,.14),-3px -3px 8px #fff;
}
body.ap34-public #fan-public-section .fan-stat-label { letter-spacing:.02em; text-transform:none; font-size:12px; color:var(--ap34-muted); }
body.ap34-public #fan-public-section .fan-stat-value { color:var(--ap34-forest); line-height:1.4; font-size:clamp(15px,1.2vw,18px); }
body.ap34-public #fan-public-section .fan-stat-help { border-top:1px dashed rgba(144,185,157,.4); color:var(--ap34-muted); width:100%; padding-top:10px; }
body.ap34-public #fan-public-section .fan-monitor-explanation {
  margin-top:7px; border-radius:20px!important; padding:18px 20px;
  background:linear-gradient(145deg,#f6fbf7,#edf5ee)!important;
  border:1px solid rgba(255,255,255,.95)!important;
  box-shadow:var(--ap34-inset)!important;
}
body.ap34-public #fan-public-section #publicFanReason { margin:6px 0 10px; }
body.ap34-public #fan-public-section #publicFanDataSource { margin:0; }
body.ap34-public #fan-public-section .ap-status-lamp { background:#f59e0b; } /* data-source marker is not a live connection light */

/* Separate activity feed, with breathing room and predictable scroll */
html body.ap34-public #fan-alert-section.fan-alert-panel {
  padding:clamp(18px,2.6vw,29px)!important;
  border-radius:26px!important; border:1px solid var(--ap34-line)!important;
  background:var(--ap34-white)!important; box-shadow:var(--ap34-subtle)!important;
}
body.ap34-public #fan-alert-section .fan-alert-heading { align-items:center; padding-bottom:16px; border-bottom:1px solid var(--ap34-line); margin-bottom:18px; }
body.ap34-public #fan-alert-section .ap-feed-caption { background:var(--ap34-paper); border-radius:13px; padding:12px 14px; }
body.ap34-public #fan-alert-section #alertFeedList { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; max-height:520px; overflow-y:auto; overscroll-behavior:contain; padding:4px 6px 10px 2px; }
body.ap34-public #fan-alert-section #alertFeedList>.alert-item {
  min-width:0; margin:0; border-radius:18px;
  border:1px solid var(--ap34-line)!important; background:var(--ap34-paper)!important;
  box-shadow:0 4px 13px rgba(37,83,58,.055);
  padding:16px!important;
}
body.ap34-public #fan-alert-section .alert-title { font-size:14px; font-weight:800; line-height:1.4; }
body.ap34-public #fan-alert-section .alert-msg { font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
body.ap34-public #fan-alert-section .ap-feed-placeholder { background:var(--ap34-paper); border-radius:15px; }
body.ap34-public #fan-alert-section :is(.alert-time,.alert-meta) { color:var(--ap34-muted); }

/* Shared admin shell and reusable cards */
body.ap34-admin .sidebar { background:linear-gradient(180deg,#0b513d,#073d30 75%,#062f27)!important; box-shadow:8px 0 28px rgba(12,47,33,.16); }
body.ap34-admin .sidebar-nav { padding-bottom:15px; }
body.ap34-admin .sidebar-nav .nav-item { margin:3px 10px; min-height:43px; border-radius:12px; }
body.ap34-admin .sidebar-nav .nav-item.active,
body.ap34-admin .sidebar-nav .nav-item[aria-current="page"] { background:rgba(175,240,205,.18)!important; color:#ecfff3!important; box-shadow:inset 3px 0 0 #8be4b4; }
body.ap34-admin .sidebar-nav .nav-label { font-size:11px; letter-spacing:.09em; margin:18px 15px 6px; }
body.ap34-admin .sidebar-footer { border-top:1px solid rgba(255,255,255,.12); }
body.ap34-admin .topbar {
  position:sticky;top:0;z-index:45;
  background:var(--ap34-white)!important;
  border-bottom:1px solid var(--ap34-line)!important;
  box-shadow:0 2px 14px rgba(33,87,56,.045);
  gap:16px;
}
body.ap34-admin .topbar .topbar-title h1 { color:var(--ap34-forest); font-size:clamp(17px,1.5vw,22px); }
body.ap34-admin .topbar .breadcrumb { color:var(--ap34-muted); font-size:12px; }
body.ap34-admin .topbar-actions { gap:10px; flex-wrap:nowrap; }
body.ap34-admin .topbar :is(.btn-icon,.theme-toggle-btn,#menuToggle) {
  border:1px solid var(--ap34-line)!important; color:var(--ap34-forest)!important;
  background:var(--ap34-paper)!important; border-radius:13px!important;
  min-width:38px; min-height:38px;
}
body.ap34-admin .topbar .connection-status { border:1px solid var(--ap34-line); border-radius:999px; padding:7px 12px; background:var(--ap34-paper); white-space:nowrap; }
body.ap34-admin .dashboard-content { padding:clamp(18px,2vw,30px); }
body.ap34-admin .ap-page-header {
  border:1px solid var(--ap34-line)!important;
  background:linear-gradient(110deg,var(--ap34-white),var(--ap34-paper))!important;
  border-radius:26px!important;
  box-shadow:var(--ap34-subtle)!important;
}
body.ap34-admin .ap-page-header :is(h1,h2) { font-size:clamp(23px,2.1vw,29px); color:var(--ap34-forest); }
body.ap34-admin :is(.summary-card,.stat-card,.card,.chart-card,.table-card,.settings-card,.device-card,.ap-notification-panel,.ap-toolbar-surface,.filter-card) {
  background:var(--ap34-white)!important;
  border:1px solid var(--ap34-line)!important;
  border-radius:22px!important;
  box-shadow:var(--ap34-subtle)!important;
  min-width:0;
}
body.ap34-admin :is(.card-header,.chart-header,.table-header,.settings-card-header) { gap:12px; flex-wrap:wrap; }
body.ap34-admin :is(.card-header,.chart-header,.table-header,.settings-card-header) :is(h2,h3,h4) { min-width:0; color:var(--ap34-forest); }
body.ap34-admin :is(.summary-value,.stat-value) { color:var(--ap34-forest); font-variant-numeric:tabular-nums; }
body.ap34-admin :is(.summary-label,.stat-label,.stat-sub,.summary-trend) { color:var(--ap34-muted); }
body.ap34-admin .summary-card { padding:20px!important; min-height:154px; }
body.ap34-admin .summary-icon { width:48px; height:48px; border-radius:16px; }
body.ap34-admin .stat-card { padding:19px; }
body.ap34-admin :is(.form-input,.form-select,.setting-input,input[type="date"],input[type="datetime-local"],input[type="number"],input[type="text"],input[type="password"],select,textarea) { max-width:100%; }
body.ap34-admin .dashboard-content :is(input,select,textarea) { background:var(--ap34-paper); border:1px solid var(--ap34-line); border-radius:12px; color:var(--ap34-forest); }
body.ap34-admin .dashboard-content :is(input,select,textarea):focus { outline:2px solid rgba(21,154,109,.42); outline-offset:1px; }
body.ap34-admin :is(.btn,.btn-export,.btn-filter,.btn-notif,.btn-refresh,.btn-add-device,.btn-autoregister,.ap-action) { border-radius:12px; min-height:40px; font-weight:700; }
body.ap34-admin :is(.data-table-wrapper,.table-wrapper,.table-responsive) { width:100%; overflow-x:auto; border-radius:16px; }
body.ap34-admin :is(.data-table-wrapper,.table-wrapper) :is(th,td) { padding:11px 13px; vertical-align:middle; }
body.ap34-admin :is(.data-table-wrapper,.table-wrapper) thead { background:var(--ap34-paper); }
body.ap34-admin .modal-content { border-radius:22px; }
body.ap34-admin .state-wrapper { padding:clamp(22px,3vw,42px); }

/* Admin dashboard: clearer prioritization of metrics and controls */
body.ap34-dashboard .ap-dashboard-welcome { background:linear-gradient(115deg,#e7f8ec,#f8fdf8)!important; border:1px solid #d2ebdb!important; box-shadow:var(--ap34-subtle)!important; }
body.ap34-dashboard .aqi-selector-wrapper { display:flex; align-items:center; gap:12px 16px; flex-wrap:wrap; }
body.ap34-dashboard .aqi-selector-wrapper #aqiDeviceSelect { flex:1 1 200px; max-width:350px; }
body.ap34-dashboard .aqi-selector-wrapper .toolbar-actions { margin-left:auto; gap:8px; display:flex; flex-wrap:wrap; }
body.ap34-dashboard .summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
body.ap34-dashboard .summary-card .summary-info { flex:1; min-width:0; }
body.ap34-dashboard .summary-card .summary-value { font-size:clamp(23px,2vw,33px); line-height:1.25; }
body.ap34-dashboard #fan-control-section { border-radius:24px; overflow:hidden; border:1px solid var(--ap34-line); background:var(--ap34-white); box-shadow:var(--ap34-subtle); }
body.ap34-dashboard #fan-control-section .fan-panel-grid { gap:18px; }
body.ap34-dashboard #fan-control-section .fan-state-visual,
body.ap34-dashboard #fan-control-section .fan-controls-wrapper,
body.ap34-dashboard #fan-control-section .rule-based-card { min-width:0; border-radius:18px; }
body.ap34-dashboard #fan-control-section .fan-btn-group { display:flex; flex-wrap:wrap; gap:8px; }
body.ap34-dashboard #fan-control-section .fan-btn { min-height:42px; flex:1 1 100px; }
body.ap34-dashboard .chart-container { min-height:250px; max-width:100%; }
body.ap34-dashboard #map-section { min-width:0; }

/* Device management: aligned filters, robust cards and no mobile overflow */
body.ap34-devices .ap-device-filter { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,.8fr) auto; gap:14px; align-items:end; }
body.ap34-devices .ap-device-filter .ap-filter-field { min-width:0; }
body.ap34-devices #deviceList { grid-template-columns:repeat(auto-fit,minmax(min(100%,315px),1fr)); gap:18px; }
body.ap34-devices #deviceList .device-card { min-width:0; padding:0!important; overflow:hidden; }
body.ap34-devices #deviceList :is(.device-card-header,.device-card-body,.device-card-footer) { padding:18px!important; }
body.ap34-devices #deviceList .device-card-header { gap:12px; flex-wrap:wrap; }
body.ap34-devices #deviceList .device-card-footer { gap:10px; flex-wrap:wrap; }
body.ap34-devices #arBanner { background:var(--ap34-paper); border:1px solid var(--ap34-line); border-radius:18px; }
body.ap34-devices #arLogPanel { overflow:hidden; }

/* Reports: stable chart and usable controls, including small displays */
body.ap34-reports .ap-report-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
body.ap34-reports .ap-report-stats .stat-card { min-width:0; }
body.ap34-reports .ap-filter-panel .filter-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
body.ap34-reports .ap-filter-panel .filter-group { min-width:0; }
body.ap34-reports .ap-filter-panel .filter-actions,
body.ap34-reports .reports-header .flex.flex-wrap { gap:10px; }
body.ap34-reports .chart-card .chart-container { height:clamp(240px,27vw,345px); min-height:235px; }
body.ap34-reports .table-card { overflow:hidden; }
body.ap34-reports .table-controls { flex-wrap:wrap; gap:10px; }
body.ap34-reports .pagination-container { padding:14px 17px; gap:10px; }
body.ap34-reports .pagination-container .controls { flex-wrap:wrap; }

/* Notifications: consistent feed area and readable metadata */
body.ap34-notifications #summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; }
body.ap34-notifications .ap-filter-chips { display:flex; flex-wrap:wrap; gap:9px; }
body.ap34-notifications .ap-notification-panel { min-width:0; padding:22px; }
body.ap34-notifications .ap-list-heading { gap:12px; flex-wrap:wrap; }
body.ap34-notifications :is(.notif-item,.notification-item) { min-width:0; background:var(--ap34-paper); border:1px solid var(--ap34-line); border-radius:17px; margin-bottom:10px; }
body.ap34-notifications :is(.notif-msg,.notif-body,.notification-body) { line-height:1.65; overflow-wrap:anywhere; }

/* Settings: field controls aligned with clear section hierarchy */
body.ap34-settings .ap-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
body.ap34-settings .ap-settings-grid > * { min-width:0; }
body.ap34-settings .settings-card { padding:clamp(17px,2vw,25px); }
body.ap34-settings :is(.setting-group,.setting-row,.form-group) { min-width:0; }
body.ap34-settings .settings-card :is(input,select,textarea) { width:100%; }
body.ap34-settings .settings-card :is(.setting-actions,.form-actions) { display:flex; flex-wrap:wrap; gap:10px; }
body.ap34-settings .settings-card-header { margin-bottom:15px; border-bottom:1px solid var(--ap34-line); padding-bottom:13px; }

/* About, login, error: same visual vocabulary */
body.ap34-about .about-hero,body.ap34-about .about-grid > *,body.ap34-about .author-card,
body.ap34-about #remotion-showcase-section { border-radius:24px; overflow:hidden; }
body.ap34-about #remotion-showcase-section { max-width:100%; }
body.ap34-auth .login-form-card,body.ap34-auth .login-form-panel {
  border-radius:26px; border-color:var(--ap34-line); box-shadow:var(--ap34-subtle);
}
body.ap34-auth :is(input,button) { min-height:44px; }
body.ap34-auth .login-form-card :is(h1,h2) { color:var(--ap34-forest); }
body.ap34-error .error-container { border-radius:26px; }

/* Dark-mode is fully usable, not bright green surfaces on dark canvas. */
html[data-theme="dark"] body.ap34-public .navbar,
html[data-theme="dark"] body.ap34-dashboard .ap-dashboard-welcome { background:linear-gradient(120deg,#1c3429,#172b24)!important; border-color:var(--ap34-line)!important; }
html[data-theme="dark"] body.ap34-public #fan-public-section.fan-monitor-panel {
  background:linear-gradient(145deg,#203c31,#172c26)!important; border-color:#41644e!important;
  box-shadow:16px 16px 32px rgba(0,0,0,.33),-7px -7px 20px rgba(77,127,89,.09)!important;
}
html[data-theme="dark"] body.ap34-public #fan-public-section :is(.fan-monitor-rule,.fan-monitor-stat,.fan-monitor-explanation) {
  background:linear-gradient(145deg,#274637,#1c342a)!important;
  border-color:#43664f!important;
  box-shadow:9px 9px 20px rgba(0,0,0,.25),-4px -4px 10px rgba(86,135,98,.07),inset 1px 1px 0 rgba(165,220,175,.06)!important;
}
html[data-theme="dark"] body.ap34-public #fan-public-section .fan-monitor-stat-primary { background:linear-gradient(145deg,#24513a,#203b2e)!important; }
html[data-theme="dark"] body.ap34-public #fan-public-section .ap34-stat-icon { color:#9ff0c0; background:#2d5941; box-shadow:var(--ap34-subtle); }
html[data-theme="dark"] body.ap34-public #fan-public-section .fan-stat-value { color:#e0f8e8; }
html[data-theme="dark"] body.ap34-public #fan-public-section #publicFanStatusBadge { border-color:var(--ap34-line)!important; }
html[data-theme="dark"] body.ap34-admin .dashboard-content :is(input,select,textarea) { background:#203b2e; color:#e5f5e8; border-color:var(--ap34-line); }
html[data-theme="dark"] body.ap34-admin .ap-dashboard-welcome h2 { color:#e6faeb; }
html[data-theme="dark"] body.ap34-public #grafik .ap-trend-latest { color:#e5faed; }

/* Sensible breakpoints across phone, tablet and desktop */
@media (max-width:1200px) {
  body.ap34-dashboard .summary-grid,body.ap34-reports .ap-report-stats,
  body.ap34-notifications #summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.ap34-devices .ap-device-filter { grid-template-columns:minmax(0,1.5fr) minmax(0,.8fr); }
  body.ap34-devices .ap-filter-count { grid-column:1/-1; justify-self:start; }
}
@media (max-width:900px) {
  body.ap34-admin .dashboard-content { padding:18px 14px; }
  body.ap34-settings .ap-settings-grid { grid-template-columns:1fr; }
  body.ap34-reports .ap-filter-panel .filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.ap34-public #fan-public-section .fan-monitor-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.ap34-public #fan-alert-section #alertFeedList { grid-template-columns:1fr; }
}
@media (max-width:650px) {
  body.ap34-public #mainContent { padding-inline:14px; }
  body.ap34-public #beranda { border-radius:22px!important; }
  body.ap34-public #fan-public-section .fan-monitor-heading { gap:12px; }
  body.ap34-public #fan-public-section .fan-monitor-toolbar { flex-direction:column; align-items:stretch; }
  body.ap34-public #fan-public-section .fan-device-filter { width:100%; display:flex; flex-wrap:wrap; align-items:stretch; }
  body.ap34-public #fan-public-section .fan-device-filter select { width:100%; min-width:0; }
  body.ap34-public #fan-public-section .fan-monitor-stat { min-height:0; padding:16px; }
  body.ap34-public #fan-public-section .fan-monitor-grid { gap:12px; }
  body.ap34-public #fan-public-section .fan-monitor-rule { padding:15px; }
  body.ap34-public #fan-alert-section #alertFeedList { max-height:500px; }
  body.ap34-dashboard .aqi-selector-wrapper { align-items:stretch; }
  body.ap34-dashboard .aqi-selector-wrapper #aqiDeviceSelect { max-width:none; width:100%; flex:1 1 100%; }
  body.ap34-dashboard .aqi-selector-wrapper .toolbar-actions { width:100%; margin-left:0; }
  body.ap34-dashboard .aqi-selector-wrapper .toolbar-actions>* { flex:1 1 120px; }
  body.ap34-dashboard .fan-panel-grid { grid-template-columns:1fr; }
  body.ap34-reports .ap-filter-panel .filter-grid { grid-template-columns:1fr; }
  body.ap34-reports .chart-card .chart-container { height:235px; }
  body.ap34-devices .ap-device-filter { grid-template-columns:1fr; }
  body.ap34-notifications .ap-notification-panel { padding:16px 13px; }
  body.ap34-admin .topbar-actions .user-menu { display:none; }
  body.ap34-admin .topbar .topbar-title h1 { font-size:17px; }
}
@media (max-width:460px) {
  body.ap34-public #fan-public-section .fan-monitor-grid { grid-template-columns:1fr; }
  body.ap34-dashboard .summary-grid,body.ap34-reports .ap-report-stats,
  body.ap34-notifications #summary-grid { grid-template-columns:1fr; }
  body.ap34-public #grafik .ap-trend-plot { min-height:175px; height:185px; }
  body.ap34-admin .dashboard-content { padding:14px 11px; }
  body.ap34-admin .topbar .topbar-title h1 { font-size:15px; }
  body.ap34-admin .topbar-actions { gap:5px; }
  body.ap34-admin .topbar-actions .connection-status { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  body.ap34-public #fan-public-section .fan-monitor-stat { transition:none; }
}

/* Relay badges retain meaningful states when the clay base surface overrides earlier theme rules. */
body.ap34-public #fan-public-section #publicFanStatusBadge[data-state="on"] {
  background:#e4f8ed!important; color:#056c45!important; border-color:#9be0ba!important;
}
body.ap34-public #fan-public-section #publicFanStatusBadge[data-state="off"] {
  background:#eef3f1!important; color:#425c50!important; border-color:#d0ded6!important;
}
body.ap34-public #fan-public-section #publicFanStatusBadge[data-state="mixed"] {
  background:#fff5de!important; color:#87560c!important; border-color:#f3d49c!important;
}
body.ap34-public #fan-public-section #publicFanStatusBadge[data-state="stale"] {
  background:#ffefdf!important; color:#914013!important; border-color:#f5c69d!important;
}
body.ap34-public #fan-public-section #publicFanStatusBadge[data-state="unknown"] {
  background:#f1f5f2!important; color:#566d61!important; border-color:#d4e0d7!important;
}
html[data-theme="dark"] body.ap34-public #fan-public-section #publicFanStatusBadge[data-state="on"] { background:#183f2e!important; color:#9ff0c0!important; border-color:#357b55!important; }
html[data-theme="dark"] body.ap34-public #fan-public-section #publicFanStatusBadge[data-state="off"] { background:#253b31!important; color:#c4d8cb!important; border-color:#4a6354!important; }
html[data-theme="dark"] body.ap34-public #fan-public-section #publicFanStatusBadge[data-state="mixed"] { background:#503818!important; color:#f6dc9d!important; border-color:#936c32!important; }
html[data-theme="dark"] body.ap34-public #fan-public-section #publicFanStatusBadge[data-state="stale"] { background:#552f22!important; color:#ffd2a8!important; border-color:#a55c38!important; }
html[data-theme="dark"] body.ap34-public #fan-public-section #publicFanStatusBadge[data-state="unknown"] { background:#2e4037!important; color:#c2d6c9!important; border-color:#4c6956!important; }

/* Education section beneath hero (v3.4.2): explain first, preserve live-data shortcut. */
body.ap34-public #edukasi.ap34-education-first {
  padding: clamp(15px, 2.5vw, 28px) !important;
  margin-block: 0 !important;
  border-radius: 28px !important;
  scroll-margin-top: 104px;
}
body.ap34-public #edukasi.ap34-education-first > div {
  padding: clamp(12px, 2.2vw, 26px) !important;
}
body.ap34-public #edukasi.ap34-education-first > div > .text-center {
  max-width: 710px;
  margin-bottom: clamp(18px, 2vw, 27px) !important;
}
body.ap34-public #edukasi .ap34-education-skip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  margin-top: 16px;
  padding: 10px 17px;
  border-radius: 999px;
  border: 1px solid rgba(20, 137, 91, .22);
  background: linear-gradient(145deg, #e8f8ee, #f6fcf8);
  color: #146847;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
  box-shadow: 5px 6px 14px rgba(36, 118, 78, .1), -4px -4px 12px rgba(255,255,255,.86);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
body.ap34-public #edukasi .ap34-education-skip:hover {
  transform: translateY(-2px);
  box-shadow: 7px 8px 16px rgba(36,118,78,.15), -4px -4px 12px rgba(255,255,255,.84);
}
body.ap34-public #edukasi .ap34-education-skip:focus-visible {
  outline: 3px solid #10a777;
  outline-offset: 3px;
}
html[data-theme="dark"] body.ap34-public #edukasi .ap34-education-skip {
  color: #b8f7d6;
  background: linear-gradient(145deg, #1d4838, #17392e);
  border-color: rgba(115,219,163,.35);
  box-shadow: 6px 7px 15px rgba(0,0,0,.22), -4px -4px 10px rgba(110,186,147,.06);
}
@media (max-width: 600px) {
  body.ap34-public #edukasi.ap34-education-first { padding: 12px !important; border-radius: 20px !important; }
  body.ap34-public #edukasi.ap34-education-first > div { padding: 12px !important; }
  body.ap34-public #edukasi .ap34-education-skip { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body.ap34-public #edukasi .ap34-education-skip { transition: none; }
  body.ap34-public #edukasi .ap34-education-skip:hover { transform: none; }
}


/* v3.4.3 — Edukasi autoplay carousel: accessible, touch friendly, FreshGreen clay */
body.ap34-public #edukasi .ap-edu-carousel {
  --edu-visible:3;
  --edu-gap:18px;
  width:100%;
  min-width:0;
}
body.ap34-public #edukasi .ap-edu-viewport {
  overflow-x:auto;
  overflow-y:visible;
  width:100%;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:3px;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  border-radius:24px;
  outline-offset:3px;
}
body.ap34-public #edukasi .ap-edu-viewport::-webkit-scrollbar { display:none; }
body.ap34-public #edukasi .ap-edu-viewport:focus-visible { outline:3px solid #16a176; }
body.ap34-public #edukasi .ap-edu-track {
  position:relative;
  display:grid!important;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - (var(--edu-visible) - 1)*var(--edu-gap))/var(--edu-visible));
  grid-template-columns:none!important;
  gap:var(--edu-gap)!important;
  padding:12px 4px 20px;
  align-items:stretch;
  min-width:0;
}
body.ap34-public #edukasi .ap-edu-track > .edu-card {
  margin:0!important;
  width:100%;
  min-width:0;
  height:100%;
  border-radius:22px!important;
  background:linear-gradient(145deg,#fbfffc,#eef8f2)!important;
  border:1px solid rgba(255,255,255,.92)!important;
  box-shadow:10px 10px 22px rgba(91,139,114,.13), -7px -7px 18px rgba(255,255,255,.94), inset 1px 1px 0 rgba(255,255,255,.9)!important;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  overflow:hidden;
}
body.ap34-public #edukasi .ap-edu-track > .edu-card img {
  width:100%;
  height:clamp(135px,13vw,170px);
  object-fit:cover;
  border-radius:15px!important;
}
body.ap34-public #edukasi .ap-edu-track > .edu-card p { line-height:1.68; }
body.ap34-public #edukasi .ap-edu-controls {
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:8px;
  padding:5px 4px;
}
html.js body.ap34-public #edukasi .ap-edu-carousel.ap-edu-ready .ap-edu-controls { display:flex; }
body.ap34-public #edukasi .ap-edu-pager { display:flex; gap:8px; flex-wrap:wrap; align-items:center; min-height:40px; }
body.ap34-public #edukasi .ap-edu-dot {
  width:10px;
  height:10px;
  border-radius:999px;
  border:1px solid rgba(31,135,93,.28);
  background:#bed9c8;
  cursor:pointer;
  padding:0;
  transition:width .22s ease,background .22s ease;
}
body.ap34-public #edukasi .ap-edu-dot[aria-current="true"] {
  width:28px;
  background:#13835d;
  border-color:#13835d;
}
body.ap34-public #edukasi .ap-edu-actions { display:flex; flex-wrap:wrap; align-items:center; gap:9px; }
body.ap34-public #edukasi .ap-edu-counter { font-size:12px; color:var(--ap34-muted,#5c7b6d); font-weight:700; margin-right:4px; white-space:nowrap; }
body.ap34-public #edukasi .ap-edu-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:40px;
  min-height:40px;
  padding:8px 12px;
  border-radius:15px;
  color:#175b43;
  border:1px solid rgba(255,255,255,.9);
  background:linear-gradient(145deg,#fdfffe,#e7f4eb);
  box-shadow:5px 6px 12px rgba(90,139,113,.15), -4px -4px 12px #fff;
  cursor:pointer;
  font-size:12px;
  font-weight:750;
}
body.ap34-public #edukasi .ap-edu-button:focus-visible,
body.ap34-public #edukasi .ap-edu-dot:focus-visible { outline:3px solid #159a6c; outline-offset:3px; }
body.ap34-public #edukasi .ap-edu-button:hover { filter:brightness(.97); }
body.ap34-public #edukasi .ap-edu-hint { font-size:11px; color:var(--ap34-muted,#688477); margin:8px 4px 0; }
body.ap34-public #edukasi .ap-edu-hint i { margin-right:6px; }
@media(max-width:1040px) {
  body.ap34-public #edukasi .ap-edu-carousel { --edu-visible:2; --edu-gap:16px; }
}
@media(max-width:640px) {
  body.ap34-public #edukasi .ap-edu-carousel { --edu-visible:1; --edu-gap:12px; }
  body.ap34-public #edukasi .ap-edu-viewport { border-radius:20px; }
  body.ap34-public #edukasi .ap-edu-track { padding:8px 4px 14px; }
  body.ap34-public #edukasi .ap-edu-controls { align-items:center; gap:8px; }
  body.ap34-public #edukasi .ap-edu-actions { gap:6px; }
  body.ap34-public #edukasi .ap-edu-button { min-width:36px; min-height:38px; padding:7px 9px; }
  body.ap34-public #edukasi .ap-edu-hint { font-size: 11px; }
}
html[data-theme="dark"] body.ap34-public #edukasi .ap-edu-track > .edu-card {
  background:linear-gradient(145deg,#21392e,#172c24)!important;
  border-color:#365747!important;
  box-shadow:10px 10px 23px rgba(0,0,0,.25),-6px -6px 16px rgba(85,148,111,.08)!important;
}
html[data-theme="dark"] body.ap34-public #edukasi .ap-edu-button {
  color:#b9f6d1;
  border-color:#3a5e4c;
  background:linear-gradient(145deg,#274737,#1c3228);
  box-shadow:6px 6px 12px rgba(0,0,0,.24),-3px -3px 10px rgba(94,152,119,.08);
}
html[data-theme="dark"] body.ap34-public #edukasi .ap-edu-counter,
html[data-theme="dark"] body.ap34-public #edukasi .ap-edu-hint { color:#a9d1bc; }
html[data-theme="dark"] body.ap34-public #edukasi .ap-edu-dot { background:#486957; border-color:#668f76; }
html[data-theme="dark"] body.ap34-public #edukasi .ap-edu-dot[aria-current="true"] { background:#55d89a; border-color:#55d89a; }
@media(prefers-reduced-motion:reduce) {
  body.ap34-public #edukasi .ap-edu-dot { transition:none; }
  body.ap34-public #edukasi .ap-edu-track > .edu-card { transition:none!important; }
}

body.ap34-public #edukasi .ap-edu-button .ap-edu-symbol { display:inline-block; font:800 18px/1 Arial, sans-serif; min-width:14px; text-align:center; }

/* v3.4.4 — extended educational material: 10 cards */
body.ap34-public #edukasi .ap-edu-track > .edu-card { min-height:340px; }
body.ap34-public #edukasi .ap-edu-track > .edu-card > div:first-child { flex:1 1 auto; }
body.ap34-public #edukasi .ap-edu-track > .edu-card p { overflow-wrap:anywhere; }
body.ap34-public #edukasi .ap-edu-pager { max-width:100%; flex:1 1 170px; }
body.ap34-public #edukasi .ap-edu-controls { row-gap:8px; }
@media (max-width:640px) {
  body.ap34-public #edukasi .ap-edu-track > .edu-card { min-height:0; }
  body.ap34-public #edukasi .ap-edu-pager { order:2; width:100%; flex-basis:100%; justify-content:center; }
  body.ap34-public #edukasi .ap-edu-actions { order:1; width:100%; justify-content:space-between; }
}


/* AeroPublic v3.4.5 — education cards, editorial claymorphism */
body.ap34-public #edukasi .ap-edu-track > .edu-card.ap-edu-premium {
  padding:0!important;
  min-height:418px;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  border:1px solid rgba(255,255,255,.9)!important;
  border-radius:24px!important;
  overflow:hidden;
  position:relative;
  background:linear-gradient(152deg,#fff,#f4faf6 88%)!important;
  box-shadow:12px 13px 26px rgba(40,105,76,.13), -7px -7px 20px rgba(255,255,255,.92), inset 1px 1px 0 rgba(255,255,255,.9)!important;
  transition:transform .24s ease,box-shadow .24s ease!important;
}
body.ap34-public #edukasi .ap-edu-track > .edu-card.ap-edu-premium:hover {
  transform:translateY(-4px);
  box-shadow:15px 18px 29px rgba(41,107,78,.17), -7px -7px 20px rgba(255,255,255,.92), inset 1px 1px 0 rgba(255,255,255,.9)!important;
}
body.ap34-public #edukasi .ap-edu-premium .ap-edu-media {
  position:relative;
  margin:0;
  width:100%;
  height:165px;
  flex:0 0 165px;
  overflow:hidden;
  background:var(--edu-accent-wash);
}
body.ap34-public #edukasi .ap-edu-premium .ap-edu-media > img.edu-card-img {
  display:block;
  width:100%;
  height:100%;
  margin:0!important;
  padding:0!important;
  border:0;
  object-fit:cover;
  border-radius:0!important;
  transition:transform .5s ease;
}
body.ap34-public #edukasi .ap-edu-premium:hover .ap-edu-media > img.edu-card-img { transform:scale(1.045); }
body.ap34-public #edukasi .ap-edu-premium .ap-edu-media-shade {
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(10,34,26,.06) 25%,rgba(10,34,26,.30));
  pointer-events:none;
}
body.ap34-public #edukasi .ap-edu-premium .ap-edu-number {
  position:absolute;
  left:16px;
  top:15px;
  border:1px solid rgba(255,255,255,.6);
  border-radius:999px;
  padding:7px 12px;
  background:rgba(255,255,255,.91);
  color:#1a4a37;
  font-weight:800;
  line-height:1.1;
  letter-spacing:.03em;
  font-size:12px;
  box-shadow:0 5px 15px rgba(20,56,40,.13);
  backdrop-filter:blur(6px);
}
body.ap34-public #edukasi .ap-edu-premium .ap-edu-number span { font-size: 11px; color:#678478; margin-left:3px; font-weight:700; }
body.ap34-public #edukasi .ap-edu-premium .ap-edu-icon {
  position:absolute;
  right:16px;
  bottom:13px;
  width:43px;
  height:43px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.76);
  border-radius:15px;
  background:var(--edu-accent-wash);
  color:var(--edu-accent);
  box-shadow:6px 7px 17px rgba(12,49,33,.16),inset 1px 1px 0 rgba(255,255,255,.8);
  font-size:19px;
}
body.ap34-public #edukasi .ap-edu-premium .ap-edu-body {
  flex:1 1 auto;
  min-width:0;
  padding:17px 20px 20px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
body.ap34-public #edukasi .ap-edu-premium .ap-edu-category {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  font-size: 11px;
  letter-spacing:.09em;
  text-transform:uppercase;
  line-height:1.4;
  padding:7px 10px;
  border:1px solid color-mix(in srgb,var(--edu-accent) 17%,white);
  border-radius:999px;
  background:var(--edu-accent-wash);
  color:#255644;
}
body.ap34-public #edukasi .ap-edu-premium .ap-edu-category-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--edu-accent);
  flex-shrink:0;
}
body.ap34-public #edukasi .ap-edu-premium h3 {
  margin:13px 0 9px!important;
  padding:0;
  font-size:clamp(17px,1.4vw,21px)!important;
  line-height:1.23;
  letter-spacing:-.035em;
  color:#173f31!important;
  font-weight:830;
}
body.ap34-public #edukasi .ap-edu-premium p {
  margin:0!important;
  font-size:12px!important;
  line-height:1.66!important;
  font-weight:450;
  color:#516d61!important;
  overflow-wrap:anywhere;
}
body.ap34-public #edukasi .ap-edu-premium .ap-edu-footer {
  display:flex;
  flex:0 0 auto;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin:0 18px 17px;
  padding:12px 14px;
  border:1px solid rgba(211,231,218,.82);
  border-radius:15px;
  background:linear-gradient(145deg,rgba(255,255,255,.93),rgba(234,246,238,.92));
  box-shadow:4px 5px 11px rgba(97,143,115,.09),inset 1px 1px 0 rgba(255,255,255,.88);
}
body.ap34-public #edukasi .ap-edu-premium .ap-edu-footer-copy { display:flex; flex-direction:column; gap:3px; min-width:0; }
body.ap34-public #edukasi .ap-edu-premium .ap-edu-footer-eyebrow {
  color:#718a7d;
  letter-spacing:.09em;
  font-size: 11px;
  font-weight:800;
  text-transform:uppercase;
}
body.ap34-public #edukasi .ap-edu-premium .ap-edu-footer-copy strong {
  font-weight:780;
  line-height:1.3;
  font-size:12px;
  color:#245b43;
}
body.ap34-public #edukasi .ap-edu-premium .ap-edu-footer-icon {
  display:grid;
  place-items:center;
  flex:0 0 31px;
  width:31px;
  height:31px;
  border-radius:11px;
  background:var(--edu-accent-wash);
  color:var(--edu-accent);
  font-size:13px;
}
html[data-theme="dark"] body.ap34-public #edukasi .ap-edu-track > .edu-card.ap-edu-premium {
  background:linear-gradient(145deg,#223b2f,#172c24)!important;
  border-color:#365747!important;
  box-shadow:12px 14px 26px rgba(0,0,0,.27),-5px -5px 15px rgba(78,131,102,.09)!important;
}
html[data-theme="dark"] body.ap34-public #edukasi .ap-edu-premium .ap-edu-body h3 { color:#e8f7ed!important; }
html[data-theme="dark"] body.ap34-public #edukasi .ap-edu-premium .ap-edu-body p { color:#bdcfbf!important; }
html[data-theme="dark"] body.ap34-public #edukasi .ap-edu-premium .ap-edu-category {
  color:#d1f9df;
  background:#294c3d;
  border-color:#426c53;
}
html[data-theme="dark"] body.ap34-public #edukasi .ap-edu-premium .ap-edu-footer {
  background:linear-gradient(145deg,#294536,#1e382c);
  border-color:#3b604a;
  box-shadow:5px 6px 11px rgba(0,0,0,.12),inset 1px 1px 0 rgba(255,255,255,.035);
}
html[data-theme="dark"] body.ap34-public #edukasi .ap-edu-premium .ap-edu-footer-copy strong { color:#c7f8dc; }
html[data-theme="dark"] body.ap34-public #edukasi .ap-edu-premium .ap-edu-footer-eyebrow { color:#a4c5af; }
html[data-theme="dark"] body.ap34-public #edukasi .ap-edu-premium .ap-edu-footer-icon {
  background:#315840;
  color:#a6f1c0;
}
@media(max-width:640px) {
  body.ap34-public #edukasi .ap-edu-premium .ap-edu-media { height:180px; flex-basis:180px; }
  body.ap34-public #edukasi .ap-edu-track > .edu-card.ap-edu-premium { min-height:0; }
  body.ap34-public #edukasi .ap-edu-premium .ap-edu-body { padding:16px 17px 18px; }
  body.ap34-public #edukasi .ap-edu-premium .ap-edu-footer { margin:0 15px 15px; }
}
@media(prefers-reduced-motion:reduce) {
  body.ap34-public #edukasi .ap-edu-track > .edu-card.ap-edu-premium,
  body.ap34-public #edukasi .ap-edu-premium .ap-edu-media > img.edu-card-img { transition:none!important; }
  body.ap34-public #edukasi .ap-edu-track > .edu-card.ap-edu-premium:hover { transform:none; }
}

/* Education icons are font-independent: no blank squares when external icon CDN is unavailable. */
body.ap34-public #edukasi .ap-edu-premium .ap-edu-icon-text { font-weight:900; font-size:clamp(12px,1.05vw,16px); line-height:1; letter-spacing:-.05em; text-align:center; font-variant-numeric:tabular-nums; }
body.ap34-public #edukasi .ap-edu-premium .ap-edu-footer-icon .ap-edu-icon-text { font-size: 11px; font-weight:900; letter-spacing:-.05em; }


/* v3.4.7 — continuous Motion-style education stream, no playback panel. */
body.ap34-public #edukasi .ap-edu-controls { display:none!important; }
body.ap34-public #edukasi .ap-edu-motion-hint {
  max-width:100%; margin:15px auto 0; padding:10px 16px; text-align:center;
  font-size:12px; line-height:1.55; font-weight:650; color:var(--ap34-muted,#5c7b6d);
  background:linear-gradient(135deg,rgba(237,249,242,.85),rgba(255,255,255,.7));
  border:1px solid rgba(176,214,190,.42); border-radius:999px; width:fit-content;
}
body.ap34-public #edukasi .ap-edu-carousel.ap-edu-motion-ready .ap-edu-viewport {
  overflow:hidden!important; scroll-snap-type:none!important;
  cursor:pointer; -webkit-tap-highlight-color:transparent;
  mask-image:linear-gradient(to right,transparent 0,black 1.2%,black 98.8%,transparent 100%);
}
body.ap34-public #edukasi .ap-edu-carousel.ap-edu-motion-ready .ap-edu-track {
  display:flex!important; grid-auto-columns:unset!important; grid-template-columns:none!important;
  width:max-content; max-width:none; gap:var(--edu-motion-gap,18px)!important;
  padding:12px 0 20px!important; transform:translate3d(0,0,0); will-change:transform;
}
body.ap34-public #edukasi .ap-edu-carousel.ap-edu-motion-ready .ap-edu-track > .edu-card {
  flex:0 0 var(--edu-card-width,320px)!important; width:var(--edu-card-width,320px)!important;
  max-width:none!important; scroll-snap-align:none!important;
}
body.ap34-public #edukasi .ap-edu-carousel.ap-edu-motion-ready .ap-edu-track > .edu-card[data-education-clone] {
  pointer-events:none;
}
body.ap34-public #edukasi .ap-edu-carousel.ap-edu-motion-static .ap-edu-viewport {
  overflow-x:auto!important; scroll-snap-type:x proximity;
}
body.ap34-public #edukasi .ap-edu-carousel.ap-edu-motion-static .ap-edu-track {
  transform:none!important; will-change:auto!important;
}
body.ap34-public #edukasi .ap-edu-carousel[data-motion-state="paused"] .ap-edu-motion-hint {
  background:#e5f4eb; color:#145c3c;
}
html[data-theme="dark"] body.ap34-public #edukasi .ap-edu-motion-hint {
  background:linear-gradient(135deg,#1d3e30,#263d32);
  border-color:#3a6349; color:#c2dccb;
}
@media(max-width:640px) {
  body.ap34-public #edukasi .ap-edu-motion-hint { font-size:11px; border-radius:15px; }
}
@media(prefers-reduced-motion:reduce) {
  body.ap34-public #edukasi .ap-edu-track { will-change:auto!important; }
}
