:root{
  --green-950:#052e24;--green-900:#073d2f;--green-800:#0a513d;--green-700:#0f6a4d;
  --gold:#d6a93f;--gold-soft:#f4e7bd;--ink:#17211d;--muted:#6d7a74;--line:#dfe7e2;
  --surface:#fff;--bg:#f2f6f3;--danger:#b42318;--success:#157347;
  --shadow:0 22px 60px rgba(6,46,36,.14);--radius:22px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Ubuntu,Inter,Arial,sans-serif;color:var(--ink);background:var(--bg)}
a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.container{width:min(1180px,calc(100% - 32px));margin:auto}
.portal-body{min-height:100vh;background:radial-gradient(circle at 12% 8%,rgba(214,169,63,.18),transparent 32%),linear-gradient(135deg,#052e24 0%,#0a513d 55%,#06382c 100%);position:relative;overflow-x:hidden}
.portal-grid{min-height:100vh;display:grid;grid-template-columns:1.08fr .92fr;align-items:center;gap:54px;padding:48px 0}
.hero-copy{color:#fff}.eyebrow{display:inline-flex;gap:8px;align-items:center;padding:8px 12px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(255,255,255,.08);font-size:13px;letter-spacing:.08em;text-transform:uppercase}
.hero-copy h1{font-family:Georgia,serif;font-size:clamp(44px,6vw,78px);line-height:.98;margin:24px 0 18px}.hero-copy h1 span{color:#f1cf71}.hero-copy p{font-size:18px;line-height:1.7;max-width:670px;color:rgba(255,255,255,.82)}
.feature-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.feature{padding:10px 14px;border-radius:14px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);font-size:14px}
.login-card{background:rgba(255,255,255,.97);border:1px solid rgba(255,255,255,.65);border-radius:30px;padding:34px;box-shadow:0 34px 90px rgba(0,0,0,.28);position:relative}.login-card:before{content:"";position:absolute;inset:10px;border:1px solid rgba(214,169,63,.35);border-radius:23px;pointer-events:none}.login-card>*{position:relative}.logo-row{display:flex;align-items:center;gap:14px}.logo-badge{width:58px;height:58px;border-radius:18px;background:linear-gradient(145deg,var(--green-800),var(--green-950));display:grid;place-items:center;color:#f3d676;font-family:Georgia,serif;font-size:30px;font-weight:700;box-shadow:inset 0 0 0 2px rgba(214,169,63,.55)}
.logo-row strong{display:block;font-size:17px;color:var(--green-950)}.logo-row small{color:var(--muted)}.login-card h2{margin:30px 0 8px;font-size:28px}.login-card .lead{margin:0 0 24px;color:var(--muted);line-height:1.6}.field{margin-bottom:16px}.field label{display:block;margin:0 0 8px;font-weight:700;font-size:14px}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);background:#fbfdfc;border-radius:14px;padding:14px 15px;outline:none;transition:.2s}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--green-700);box-shadow:0 0 0 4px rgba(15,106,77,.1);background:#fff}.hint{font-size:12px;color:var(--muted);margin-top:7px}.btn{border:0;border-radius:14px;padding:13px 18px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:700;cursor:pointer;transition:.2s}.btn:hover{transform:translateY(-1px)}.btn-primary{background:linear-gradient(135deg,var(--green-800),var(--green-950));color:#fff;box-shadow:0 14px 28px rgba(6,46,36,.22)}.btn-gold{background:linear-gradient(135deg,#e5bf5b,#c99527);color:#182019}.btn-soft{background:#e8f1ed;color:var(--green-900)}.btn-danger{background:#fee4e2;color:var(--danger)}.btn-block{width:100%}.portal-foot{margin-top:22px;text-align:center;font-size:12px;color:var(--muted)}
.alert{padding:13px 15px;border-radius:14px;margin:14px 0;border:1px solid}.alert-error,.alert-danger{background:#fff0ef;color:#8f1b13;border-color:#ffd3cf}.alert-success{background:#ebf8f0;color:#11613d;border-color:#c6ecd7}.alert-warning{background:#fff8e5;color:#7a5714;border-color:#f3df9f}
.certificate-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 0}.certificate-toolbar h1{margin:0;color:#fff;font-size:24px}.toolbar-actions{display:flex;gap:10px;flex-wrap:wrap}.certificate-preview{background:#dbe4df;padding:20px;border-radius:24px;box-shadow:var(--shadow);overflow:auto}.certificate-frame{width:100%;aspect-ratio:1.414/1;border:0;background:#fff;display:block}.student-meta{display:flex;gap:14px;color:#fff;flex-wrap:wrap;margin-top:8px}.student-meta span{font-size:13px;background:rgba(255,255,255,.12);padding:7px 10px;border-radius:10px}
.admin-body{min-height:100vh}.admin-shell{display:grid;grid-template-columns:260px 1fr;min-height:100vh}.sidebar{background:linear-gradient(180deg,var(--green-950),#031f19);color:#fff;padding:28px 20px;position:sticky;top:0;height:100vh}.brand-mark{display:flex;align-items:center;gap:12px;padding:0 8px 26px;border-bottom:1px solid rgba(255,255,255,.12)}.brand-mark>span{width:46px;height:46px;border-radius:14px;background:linear-gradient(145deg,#f1ce70,#bb8120);display:grid;place-items:center;color:#173c2d;font-family:Georgia,serif;font-size:25px;font-weight:800}.brand-mark strong,.brand-mark small{display:block}.brand-mark small{color:rgba(255,255,255,.58);font-size:12px}.sidebar nav{display:grid;gap:8px;margin-top:24px}.sidebar nav a{padding:12px 14px;border-radius:12px;color:rgba(255,255,255,.76);transition:.2s}.sidebar nav a:hover{background:rgba(255,255,255,.1);color:#fff}.admin-main{min-width:0;padding:0 30px 30px}.topbar{display:flex;justify-content:space-between;align-items:center;padding:26px 0}.topbar p{margin:0;color:var(--muted);font-size:13px}.topbar h1{margin:5px 0 0;font-size:29px}.admin-chip{padding:10px 13px;background:#fff;border:1px solid var(--line);border-radius:999px;font-size:13px;box-shadow:0 8px 24px rgba(0,0,0,.05)}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.stat-card,.panel{background:#fff;border:1px solid #e5ece8;border-radius:var(--radius);box-shadow:0 12px 35px rgba(12,57,43,.06)}.stat-card{padding:22px}.stat-card small{color:var(--muted)}.stat-card strong{display:block;font-size:32px;margin-top:8px;color:var(--green-900)}.panel{padding:22px;margin-bottom:20px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.panel-head h2{font-size:19px;margin:0}.actions{display:flex;gap:9px;flex-wrap:wrap}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;padding:13px 12px;border-bottom:1px solid #edf1ef;font-size:14px;vertical-align:middle}.table th{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.05em}.badge{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:12px;font-weight:700}.badge-success{background:#e5f5ec;color:#14653f}.badge-muted{background:#eef1ef;color:#68726e}.empty{padding:34px;text-align:center;color:var(--muted)}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid .full{grid-column:1/-1}.upload-box{border:1px dashed #a9bdb3;border-radius:16px;padding:16px;background:#f9fcfa}.upload-box img{display:block;max-width:100%;max-height:120px;margin:10px auto 0;object-fit:contain}.code-sample{background:#0d2019;color:#d7eee4;padding:14px;border-radius:14px;font-family:monospace;font-size:13px;overflow:auto}.pagination{display:flex;gap:7px;justify-content:flex-end;margin-top:18px}.pagination a,.pagination span{padding:8px 11px;border-radius:9px;background:#fff;border:1px solid var(--line);font-size:13px}.pagination .active{background:var(--green-800);color:#fff;border-color:var(--green-800)}.admin-footer{text-align:center;color:var(--muted);font-size:12px;padding:20px}
.auth-shell{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top,#176448,#052e24 55%,#031e18);padding:24px}.auth-card{width:min(460px,100%);background:#fff;border-radius:26px;padding:32px;box-shadow:0 30px 80px rgba(0,0,0,.28)}.auth-card h1{margin:22px 0 8px}.auth-card p{color:var(--muted);line-height:1.6}.auth-card .brand-mark{border:0;padding:0;color:var(--green-950)}.auth-card .brand-mark small{color:var(--muted)}
@media(max-width:980px){.portal-grid{grid-template-columns:1fr;padding:32px 0}.hero-copy{padding-top:20px}.admin-shell{grid-template-columns:1fr}.sidebar{height:auto;position:relative}.sidebar nav{grid-template-columns:repeat(5,1fr);overflow:auto}.admin-main{padding:0 18px 24px}.stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.hero-copy h1{font-size:48px}.login-card{padding:26px 22px}.stats{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.topbar{align-items:flex-start}.admin-chip{display:none}.sidebar nav{grid-template-columns:1fr 1fr}.certificate-toolbar{align-items:flex-start;flex-direction:column}.certificate-preview{padding:8px}}
@media print{.no-print{display:none!important}.certificate-preview{padding:0;box-shadow:none;border-radius:0}.portal-body{background:#fff}.container{width:100%;margin:0}.certificate-toolbar{display:none}}


.certificate-editor-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(310px,.72fr);gap:22px;align-items:start}
.certificate-editor-preview-wrap{min-width:0}.certificate-editor-stage{position:relative;width:100%;aspect-ratio:297/210;background-size:100% 100%;background-repeat:no-repeat;background-position:center;overflow:hidden;border-radius:16px;border:1px solid var(--line);box-shadow:0 12px 32px rgba(6,46,36,.12);touch-action:none;user-select:none}
.certificate-overlay-preview{position:absolute;text-align:center;color:#102118;line-height:1;white-space:nowrap;cursor:grab;transform:translateY(-50%);text-shadow:0 1px 0 rgba(255,255,255,.5);background:rgba(255,255,255,.12);outline-offset:4px}
.certificate-overlay-preview:hover{background:rgba(244,231,189,.28)}.certificate-overlay-preview.is-dragging{cursor:grabbing;outline-style:solid;background:rgba(244,231,189,.38)}
.overlay-name{font-weight:700;outline:2px dashed rgba(15,106,77,.82)}.overlay-number{font-weight:500;outline:2px dashed rgba(40,98,170,.82)}
.editor-legend{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-top:13px;font-size:12px;color:var(--muted)}.editor-legend span{display:inline-flex;align-items:center;gap:7px}.legend-dot{width:10px;height:10px;border-radius:50%;display:inline-block}.legend-name{background:#0f6a4d}.legend-number{background:#2862aa}
.overlay-controls{display:grid;gap:16px}.overlay-control-card{border:1px solid var(--line);border-radius:18px;padding:16px;background:linear-gradient(180deg,#fff,#f8fbf9)}.overlay-control-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.overlay-control-head h3{margin:0 0 3px;font-size:16px}.overlay-control-head small{color:var(--muted)}.btn-small{padding:8px 11px;border-radius:10px;font-size:12px}.compact-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.overlay-control-card .field{margin-bottom:11px}.overlay-control-card .field input,.overlay-control-card .field select{padding:10px 11px;border-radius:11px}
@media(max-width:1100px){.certificate-editor-layout{grid-template-columns:1fr}.overlay-controls{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.overlay-controls,.compact-grid{grid-template-columns:1fr}.certificate-layout-editor .panel-head{align-items:flex-start;flex-direction:column}}

/* V6 — branding, preloader, font UI, menu grid/sidebar */
:root{--ui-font:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
body,button,input,select,textarea{font-family:var(--ui-font)}
html.is-loading,html.is-loading body{overflow:hidden}

.brand-logo{display:grid;place-items:center;flex:0 0 auto;overflow:hidden;background:linear-gradient(145deg,#f1ce70,#bb8120);color:#173c2d;font-family:Georgia,serif;font-weight:800;box-shadow:inset 0 0 0 1px rgba(255,255,255,.36),0 10px 25px rgba(6,46,36,.14)}
.brand-logo img{width:100%;height:100%;display:block;object-fit:contain;background:#fff}
.brand-logo-fallback{line-height:1}
.brand-logo-home{width:76px;height:76px;border-radius:22px}.brand-logo-card{width:62px;height:62px;border-radius:18px;font-size:31px}.brand-logo-auth{width:58px;height:58px;border-radius:17px;font-size:29px}.brand-logo-sidebar{width:50px;height:50px;border-radius:15px;font-size:25px}.brand-logo-toolbar{width:52px;height:52px;border-radius:15px;font-size:25px}
.portal-home-brand{display:flex;align-items:center;gap:15px;margin-bottom:24px;color:#fff}.portal-home-brand strong,.portal-home-brand small{display:block}.portal-home-brand strong{font-size:19px}.portal-home-brand small{margin-top:4px;color:rgba(255,255,255,.66);font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.logo-row .brand-logo{position:relative}.certificate-title-group{display:flex;align-items:center;gap:14px}

.app-preloader{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:radial-gradient(circle at 50% 30%,#126448,#052e24 58%,#031d17);opacity:1;visibility:visible;transition:opacity .35s ease,visibility .35s ease}
.app-preloader.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
.preloader-card{min-width:210px;display:flex;flex-direction:column;align-items:center;text-align:center;color:#fff}
.preloader-logo{width:92px;height:92px;border-radius:27px;padding:7px;background:linear-gradient(145deg,#f5d878,#b97f1d);box-shadow:0 22px 55px rgba(0,0,0,.3);display:grid;place-items:center;overflow:hidden}
.preloader-logo img{width:100%;height:100%;object-fit:contain;border-radius:20px;background:#fff}.preloader-fallback{font:800 47px Georgia,serif;color:#173c2d}
.preloader-ring{width:42px;height:42px;margin:-13px 0 14px;border-radius:50%;border:4px solid rgba(255,255,255,.22);border-top-color:#f1cf71;animation:matamuda-spin .8s linear infinite;background:#073d2f}
.preloader-card strong{font-size:18px;letter-spacing:.14em}.preloader-card small{margin-top:7px;color:rgba(255,255,255,.68)}
@keyframes matamuda-spin{to{transform:rotate(360deg)}}

.branding-upload{display:flex;align-items:center;justify-content:space-between;gap:22px}.branding-upload .field{margin:0;flex:1}.branding-logo-preview{width:120px;height:120px;border:1px solid var(--line);border-radius:22px;background:#fff;display:grid;place-items:center;padding:10px}.branding-logo-preview img{width:100%;height:100%;object-fit:contain;margin:0;max-height:none}.branding-logo-preview .brand-logo{width:82px;height:82px;border-radius:22px;font-size:38px}

.topbar-left,.topbar-actions{display:flex;align-items:center;gap:12px}.topbar-left>div{min-width:0}.icon-btn{width:42px;height:42px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--green-900);display:grid;place-items:center;cursor:pointer;font-weight:800;box-shadow:0 8px 22px rgba(6,46,36,.07);transition:.2s}.icon-btn:hover,.icon-btn.is-active{background:var(--green-900);color:#fff;border-color:var(--green-900)}
.sidebar-backdrop{display:none;position:fixed;inset:0;background:rgba(3,29,23,.52);backdrop-filter:blur(2px);z-index:89}
.sidebar{z-index:90;transition:transform .28s ease,box-shadow .28s ease}.sidebar-brand{padding-left:4px;padding-right:4px}.sidebar .brand-mark>span{width:auto;height:auto;background:none;box-shadow:none}.sidebar nav a{display:flex;align-items:center;gap:12px}.sidebar nav a.is-active{background:rgba(255,255,255,.13);color:#fff}.nav-icon{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:rgba(255,255,255,.08);font-weight:800}
.admin-grid-menu{display:none;grid-template-columns:repeat(5,minmax(120px,1fr));gap:12px;margin:0 0 22px}.admin-grid-menu a{min-height:92px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;box-shadow:0 10px 28px rgba(12,57,43,.06);transition:.2s}.admin-grid-menu a:hover,.admin-grid-menu a.is-active{transform:translateY(-2px);border-color:#b8d1c6;background:#f8fcfa}.admin-grid-menu a>span{font-size:25px;color:var(--green-800)}.admin-grid-menu strong{font-size:13px}
.admin-body.menu-mode-grid .admin-shell{grid-template-columns:1fr}.admin-body.menu-mode-grid .sidebar{position:fixed;left:0;top:0;transform:translateX(-110%);box-shadow:24px 0 65px rgba(0,0,0,.22)}.admin-body.menu-mode-grid .admin-grid-menu{display:grid}.admin-body.menu-mode-grid.sidebar-open .sidebar{transform:translateX(0)}.admin-body.menu-mode-grid.sidebar-open .sidebar-backdrop{display:block}
.admin-body.menu-mode-sidebar .admin-grid-menu{display:none}

@media(max-width:980px){
  .admin-shell,.admin-body.menu-mode-grid .admin-shell,.admin-body.menu-mode-sidebar .admin-shell{grid-template-columns:1fr}
  .sidebar,.admin-body.menu-mode-grid .sidebar,.admin-body.menu-mode-sidebar .sidebar{position:fixed;left:0;top:0;height:100vh;width:min(300px,86vw);transform:translateX(-110%);box-shadow:24px 0 65px rgba(0,0,0,.22);padding:26px 20px}
  .sidebar nav,.admin-body.menu-mode-sidebar .sidebar nav{display:grid;grid-template-columns:1fr;overflow:visible}
  .admin-body.sidebar-open .sidebar{transform:translateX(0)}.admin-body.sidebar-open .sidebar-backdrop{display:block}
  .admin-grid-menu,.admin-body.menu-mode-grid .admin-grid-menu{grid-template-columns:repeat(3,1fr)}
  .topbar{gap:12px}.topbar-actions .admin-chip{display:none}
}
@media(max-width:640px){
  .portal-home-brand{margin-bottom:18px}.brand-logo-home{width:62px;height:62px;border-radius:18px}.certificate-title-group{align-items:flex-start}.brand-logo-toolbar{width:46px;height:46px}
  .topbar h1{font-size:23px}.topbar p{display:none}.topbar-actions{gap:7px}.icon-btn{width:39px;height:39px}
  .admin-grid-menu,.admin-body.menu-mode-grid .admin-grid-menu{grid-template-columns:1fr 1fr}.admin-grid-menu a{min-height:82px}
  .branding-upload{align-items:flex-start;flex-direction:column}.branding-logo-preview{width:100%;height:150px}
}
.auth-card .brand-mark>span.brand-logo{width:58px;height:58px;border-radius:17px;background:linear-gradient(145deg,#f1ce70,#bb8120);font-size:29px}
.sidebar .brand-mark>span.brand-logo{width:50px;height:50px;border-radius:15px;background:linear-gradient(145deg,#f1ce70,#bb8120);font-size:25px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.36),0 10px 25px rgba(0,0,0,.16)}

/* V7 — font identik browser/PDF dan footer pengembang */
.certificate-overlay-preview{transform:none}
.portal-home-page{display:flex;min-height:100vh;flex-direction:column}
.portal-home-page .portal-grid{width:min(1180px,calc(100% - 32px));min-height:calc(100vh - 58px);flex:1}
.site-footer{width:100%;padding:17px 20px;text-align:center;color:rgba(255,255,255,.72);font-size:12px;letter-spacing:.02em;border-top:1px solid rgba(255,255,255,.1);background:rgba(2,28,22,.22);backdrop-filter:blur(8px)}
.admin-main{display:flex;min-height:100vh;flex-direction:column}
.admin-footer{margin-top:auto;padding:24px 12px 6px;color:var(--muted);font-size:12px;text-align:center}
.auth-shell{position:relative;display:flex;min-height:100vh;flex-direction:column;align-items:center;justify-content:center}
.auth-card{margin:auto 0}
.auth-footer{width:100%;padding:18px 12px 4px;text-align:center;color:rgba(255,255,255,.7);font-size:12px}

/* V8 — log aktivitas dan penyempurnaan responsive smartphone */
.badge-gold{background:#fff3cf;color:#7a5714}
.activity-result-count{display:inline-flex;align-items:center;padding:9px 12px;border-radius:999px;background:#eef5f1;color:var(--green-900);font-size:12px;font-weight:700;white-space:nowrap}
.activity-filter-form{display:grid;grid-template-columns:minmax(220px,1.55fr) repeat(4,minmax(145px,.82fr));gap:12px;align-items:end;margin-bottom:20px;padding:16px;border:1px solid var(--line);border-radius:18px;background:#f8fbf9}
.activity-filter-form .field{margin:0}.activity-filter-form .field input,.activity-filter-form .field select{padding:11px 12px;border-radius:11px}
.activity-filter-actions{display:flex;gap:8px;grid-column:1/-1;justify-content:flex-end}.activity-filter-actions .btn{padding:11px 15px}
.activity-table td:first-child{white-space:nowrap}.activity-table td:nth-child(6){min-width:220px}.activity-table td:nth-child(7){white-space:nowrap}

@media(max-width:1100px){
  .activity-filter-form{grid-template-columns:repeat(3,minmax(0,1fr))}.activity-search-field{grid-column:span 2}
}

@media(max-width:980px){
  .portal-home-page .portal-grid{min-height:auto;grid-template-columns:1fr;gap:28px;padding:34px 0 38px}
  .portal-home-page .hero-copy{padding-top:0;max-width:760px}
  .portal-home-page .login-card{width:min(620px,100%);justify-self:center}
}

@media(max-width:720px){
  .activity-panel-head{align-items:flex-start;flex-direction:column}.activity-filter-form{grid-template-columns:1fr 1fr}.activity-search-field{grid-column:1/-1}.activity-filter-actions{justify-content:stretch}.activity-filter-actions .btn{flex:1}
  .activity-table-wrap{overflow:visible}.activity-table,.activity-table tbody,.activity-table tr,.activity-table td{display:block;width:100%}.activity-table thead{display:none}.activity-table tr{margin-bottom:12px;border:1px solid var(--line);border-radius:16px;padding:8px 13px;background:#fff;box-shadow:0 7px 20px rgba(12,57,43,.05)}.activity-table td{display:grid;grid-template-columns:108px minmax(0,1fr);gap:10px;padding:9px 0;border-bottom:1px dashed #e4ebe7;overflow-wrap:anywhere}.activity-table td:last-child{border-bottom:0}.activity-table td::before{content:attr(data-label);font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}.activity-table td:nth-child(6){min-width:0}
}

@media(max-width:640px){
  .portal-home-page .portal-grid{width:calc(100% - 24px);padding:22px 0 28px;gap:22px}
  .portal-home-page .hero-copy{text-align:center}
  .portal-home-page .portal-home-brand{justify-content:center;margin-bottom:14px}
  .portal-home-page .brand-logo-home{width:58px;height:58px;border-radius:17px}
  .portal-home-page .portal-home-brand strong{font-size:16px}.portal-home-page .portal-home-brand small{font-size:10px}
  .portal-home-page .eyebrow{max-width:100%;justify-content:center;padding:7px 10px;font-size:10px;line-height:1.35;letter-spacing:.055em;text-align:center}
  .portal-home-page .hero-copy h1{font-size:clamp(40px,13vw,54px);line-height:1;margin:17px 0 13px}
  .portal-home-page .hero-copy p{font-size:14px;line-height:1.62;margin:0 auto;color:rgba(255,255,255,.84)}
  .portal-home-page .feature-row{justify-content:center;gap:7px;margin-top:17px}.portal-home-page .feature{padding:8px 10px;border-radius:11px;font-size:11px}
  .portal-home-page .login-card{padding:24px 18px 22px;border-radius:23px;box-shadow:0 22px 55px rgba(0,0,0,.24)}.portal-home-page .login-card:before{inset:7px;border-radius:18px}.portal-home-page .logo-row{gap:11px}.portal-home-page .brand-logo-card{width:52px;height:52px;border-radius:15px}.portal-home-page .logo-row strong{font-size:15px}.portal-home-page .logo-row small{font-size:11px}.portal-home-page .login-card h2{font-size:23px;margin:23px 0 7px}.portal-home-page .login-card .lead{font-size:13px;line-height:1.55;margin-bottom:18px}.portal-home-page .field label{font-size:13px}.portal-home-page .field input{min-height:52px;padding:13px 14px;font-size:16px}.portal-home-page .btn-block{min-height:50px}.portal-home-page .portal-foot{line-height:1.5}.site-footer{padding:14px 12px;font-size:11px}
  .activity-filter-form{grid-template-columns:1fr;padding:13px}.activity-search-field{grid-column:auto}.activity-filter-actions{flex-direction:column}.activity-filter-actions .btn{width:100%}
}

@media(max-width:380px){
  .portal-home-page .hero-copy h1{font-size:38px}.portal-home-page .feature-row{display:grid;grid-template-columns:1fr 1fr}.portal-home-page .feature:last-child{grid-column:1/-1}.activity-table td{grid-template-columns:92px minmax(0,1fr)}
}
.admin-grid-menu,.admin-body.menu-mode-grid .admin-grid-menu{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
@media(max-width:640px){.admin-grid-menu,.admin-body.menu-mode-grid .admin-grid-menu{grid-template-columns:1fr 1fr}}
