/* POLDA JABAR UI System — canonical shared component layer */
:root{--ui-navy:#122747;--ui-navy-2:#1b3b68;--ui-blue:#245b9b;--ui-blue-hover:#194a83;--ui-text:#18283f;--ui-muted:#64748b;--ui-border:#dce4ee;--ui-surface:#fff;--ui-page:#f3f6fa;--ui-radius:14px;--ui-shadow:0 5px 18px rgba(15,35,65,.055)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body.app-shell,body.public-shell{margin:0;min-height:100vh;background:var(--ui-page);color:var(--ui-text);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;line-height:1.55}body.app-shell{display:flex;flex-direction:column;min-height:100vh}a{color:var(--ui-blue);text-underline-offset:3px}a:hover{color:var(--ui-blue-hover)}button,input,select,textarea{font:inherit}button,.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:9px 14px;border:1px solid transparent;border-radius:9px;background:var(--ui-blue);color:#fff;font-weight:700;text-decoration:none;line-height:1.25;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}button:hover,.btn:hover{background:var(--ui-blue-hover);color:#fff;text-decoration:none}button:focus-visible,.btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8bb7ff;outline-offset:2px}button.secondary,.btn.secondary{background:#fff;color:#334155;border-color:#cbd5e1}button.secondary:hover,.btn.secondary:hover{background:#f1f5f9}button.success,.btn.success{background:#15803d}button.danger,.btn.danger{background:#b42332}button:disabled{opacity:.55;cursor:not-allowed}
body.app-shell>.site-header{position:relative;z-index:100;background:linear-gradient(115deg,#102344,#172f55 65%,#1d3b68);color:#fff;box-shadow:0 3px 12px #0b1d3530}body.app-shell .site-header .header-inner{width:min(100%,1440px);min-height:86px;margin:auto;padding:13px 26px;display:flex;align-items:center;justify-content:space-between;gap:22px}body.app-shell .header-left,body.app-shell .header-actions,body.app-shell .brand{display:flex;align-items:center;min-width:0}body.app-shell .header-left{gap:15px}body.app-shell .brand{gap:12px;color:#fff;text-decoration:none}body.app-shell .brand-copy{display:flex;flex-direction:column;gap:3px;min-width:0}body.app-shell .brand-copy strong{color:#fff;font-size:16px;line-height:1.25;font-weight:800}body.app-shell .brand-copy small{color:#d7e3f4;font-size:10px;letter-spacing:.06em;text-transform:uppercase;font-weight:700}body.app-shell .brand-mark{width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;border-radius:12px;background:#ffffff1c;border:1px solid #ffffff35;color:white;font-size:23px;overflow:hidden}body.app-shell .brand-mark.brand-mark-image{width:60px;height:60px;flex-basis:60px;padding:5px;background:#fff;border:1px solid #ffffff80;border-radius:10px;box-sizing:border-box}body.app-shell .brand-mark.brand-mark-image img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;box-sizing:border-box!important}body.app-shell .header-actions{gap:8px}body.app-shell .cms-menu-button,body.app-shell .cms-action-button{min-height:36px;padding:8px 11px;background:#ffffff12;border:1px solid #ffffff32;color:#fff;border-radius:9px;text-decoration:none;white-space:nowrap}body.app-shell .cms-menu-button{background:#24578f}body.app-shell .cms-menu-button:hover,body.app-shell .cms-action-button:hover{background:#ffffff28;color:#fff}body.app-shell .cms-user-badge{display:flex;align-items:center;gap:8px;padding:4px 8px}body.app-shell .cms-user-icon{font-size:20px;color:#e0eaff}body.app-shell .cms-user-copy{display:flex;flex-direction:column;line-height:1.3}body.app-shell .cms-user-copy strong{font-size:12px;color:#fff}body.app-shell .cms-user-copy small{font-size:9px;color:#d5e1f2;font-weight:800;letter-spacing:.05em}body.app-shell .site-header a,body.app-shell .site-header a:visited{color:#fff;text-decoration:none}
body.app-shell .cms-sidebar{position:fixed;z-index:1001;inset:0 auto 0 0;width:290px;max-width:calc(100vw - 42px);display:flex;flex-direction:column;background:#fff;color:var(--ui-text);box-shadow:15px 0 45px #07172b26;transform:translateX(-110%);visibility:hidden;transition:transform .22s ease,visibility .22s;overflow:hidden}body.app-shell .cms-sidebar.is-open{transform:translateX(0);visibility:visible}body.app-shell .cms-sidebar-heading{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;background:var(--ui-navy);color:#fff;font-weight:800;font-size:11px;letter-spacing:.07em}body.app-shell .cms-sidebar-heading>span{display:flex;align-items:center;gap:9px}body.app-shell .cms-sidebar-close{width:34px;min-height:34px;padding:0;background:#ffffff15;border:1px solid #ffffff40;color:#fff}body.app-shell .cms-sidebar-content{flex:1;overflow-y:auto;padding:9px 12px 18px}body.app-shell .cms-sidebar-section{padding:18px 10px 7px;color:#64748b;font-size:10px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}body.app-shell a.cms-sidebar-link,body.app-shell a.cms-sidebar-link:visited{display:flex;align-items:center;gap:10px;min-height:42px;margin:3px 0;padding:9px 11px;border:1px solid transparent;border-radius:9px;color:#334155;text-decoration:none;font-size:13px;font-weight:600}body.app-shell a.cms-sidebar-link>i:first-child{width:20px;flex:0 0 20px;color:#3265a3;text-align:center;font-size:17px}body.app-shell a.cms-sidebar-link:hover{background:#f1f5f9;color:#14294b}body.app-shell a.cms-sidebar-link.is-active{background:#eaf1ff;border-color:#d1e0ff;color:#174782;font-weight:800}body.app-shell .cms-active-chevron{margin-left:auto;font-size:11px}body.app-shell .cms-sidebar-bottom{margin-top:20px;padding-top:12px;border-top:1px solid var(--ui-border)}body.app-shell .cms-sidebar-user{display:flex;align-items:center;gap:10px;padding:9px 10px 13px}body.app-shell .cms-sidebar-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#e7effb;color:#174782;font-weight:800}body.app-shell .cms-sidebar-user strong,body.app-shell .cms-sidebar-user small{display:block}body.app-shell .cms-sidebar-user strong{font-size:12px}body.app-shell .cms-sidebar-user small{margin-top:2px;color:var(--ui-muted);font-size:10px;font-weight:800}body.app-shell .cms-sidebar-backdrop{position:fixed;inset:0;z-index:1000;background:#0f172a8c;backdrop-filter:blur(2px)}body.app-shell .cms-sidebar-backdrop[hidden]{display:none!important}
body.app-shell .site-main{display:block;width:100%;max-width:1360px;min-height:0;flex:1 0 auto;margin:0 auto;padding:28px clamp(16px,3vw,32px) 38px}body.app-shell .site-main h1{margin:0 0 8px;color:var(--ui-navy);font-size:clamp(24px,3vw,31px);font-weight:800;letter-spacing:-.025em;line-height:1.25}body.app-shell .site-main h2{margin:0 0 14px;color:#203b5e;font-size:18px;font-weight:750;line-height:1.35}body.app-shell .site-main h3{color:#294361;font-size:15px}body.app-shell .site-main p{margin-top:7px}body.app-shell .site-main .muted,body.app-shell .site-main .small{color:var(--ui-muted)}body.app-shell .site-main .card,body.app-shell .site-main .panel{min-width:0;margin:0 0 18px;padding:22px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow)}body.app-shell .site-main .actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}body.app-shell .site-main .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}body.app-shell .site-main .field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0 0 14px}body.app-shell .site-main .field label,body.app-shell .site-main form>label{font-size:12px;color:#334155;font-weight:750}body.app-shell .site-main input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body.app-shell .site-main select,body.app-shell .site-main textarea{width:100%;min-height:40px;max-width:100%;padding:9px 11px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#172b45;box-shadow:0 1px 2px #0f172a08}body.app-shell .site-main textarea{min-height:100px;resize:vertical}body.app-shell .site-main input:focus,body.app-shell .site-main select:focus,body.app-shell .site-main textarea:focus{outline:3px solid #2563eb20;border-color:#5b8de8}body.app-shell .site-main .table-wrap{width:100%;overflow-x:auto;border:1px solid var(--ui-border);border-radius:10px}body.app-shell .site-main table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;font-size:12px}body.app-shell .site-main th{background:#f3f6fa;color:#40516a;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}body.app-shell .site-main th,body.app-shell .site-main td{padding:11px 12px;border-bottom:1px solid #e8edf4;vertical-align:middle;text-align:left}body.app-shell .site-main tbody tr:last-child td{border-bottom:0}body.app-shell .site-main tbody tr:hover{background:#f8fafc}body.app-shell .site-main td form{margin:0}body.app-shell .site-main .alert{padding:12px 14px;margin:0 0 16px;border:1px solid #d5e4f7;border-radius:10px;background:#eff6ff;color:#1e3a5f}body.app-shell .site-main .alert.success{background:#ecfdf3;border-color:#b7e4c7;color:#166534}body.app-shell .site-main .alert.error{background:#fff1f2;border-color:#fecdd3;color:#9f1239}body.app-shell .site-main .pill{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;background:#eaf0f7;color:#334155;font-size:10px;font-weight:800}body.app-shell .site-main .pill.green{background:#dcfce7;color:#166534}body.app-shell .site-main .pill.red{background:#fee2e2;color:#991b1b}body.app-shell .site-main .pill.amber{background:#fef3c7;color:#92400e}body.app-shell .site-main .qrgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}body.app-shell .site-main .qrbox{text-align:center}body.app-shell .site-main .qrimage{display:flex;align-items:center;justify-content:center;min-height:180px;margin:16px auto}body.app-shell .site-main .qrimage img,body.app-shell .site-main .qrimage canvas{max-width:100%;height:auto}
body.app-shell .site-footer{width:100%;margin-top:auto;padding:0 clamp(16px,3vw,32px) 22px;background:transparent}body.app-shell .site-footer .footer-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;max-width:1296px;margin:0 auto;padding:16px 19px;border:1px solid var(--ui-border);border-radius:13px;background:#fff;box-shadow:0 3px 12px #0f172a08}body.app-shell .site-footer .footer-brand{display:flex;align-items:center;gap:10px}body.app-shell .site-footer .footer-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#edf3fc;color:#245b9b}body.app-shell .site-footer .footer-brand-copy{display:flex;flex-direction:column;gap:2px}body.app-shell .site-footer .footer-brand-copy strong{font-size:11px;color:#203b59}body.app-shell .site-footer .footer-brand-copy small,body.app-shell .site-footer .footer-meta{font-size:10px;color:#64748b}body.app-shell .site-footer .footer-meta{display:flex;flex-direction:column;gap:3px;text-align:right}.print-heading{display:none}.skip-link{position:absolute;left:12px;top:-60px;z-index:2000;padding:8px 12px;background:#fff;border-radius:8px}.skip-link:focus{top:8px}
/* Public attendance portal shares the same tokens but has a participant-first layout. */
body.public-shell{display:flex;flex-direction:column;min-height:100vh}body.public-shell .public-top{background:linear-gradient(115deg,#102344,#1d3b68);color:#fff;padding:16px 22px;box-shadow:0 3px 12px #0b1d3530}body.public-shell .public-brand{display:flex;align-items:center;gap:12px;width:min(100%,1000px);margin:auto}body.public-shell .public-brand>span:nth-child(2){display:flex;flex-direction:column;gap:3px}body.public-shell .public-brand strong{font-size:16px}body.public-shell .public-brand small{font-size:10px;color:#d7e3f4;text-transform:uppercase;letter-spacing:.05em}body.public-shell .public-mark{width:48px;height:48px;display:grid;place-items:center;border:1px solid #ffffff44;border-radius:12px;background:#ffffff1a;font-size:23px}body.public-shell .public-header-tag{margin-left:auto;font-size:11px;color:#dbeafe}body.public-shell .public-header-tag i{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#4ade80}body.public-shell .public-container{width:100%;max-width:800px;margin:30px auto;padding:0 18px;flex:1}body.public-shell .public-container>.card{padding:clamp(20px,4vw,32px);background:#fff;border:1px solid var(--ui-border);border-radius:16px;box-shadow:var(--ui-shadow)}body.public-shell .public-container h1{margin-top:0;color:var(--ui-navy);font-size:clamp(24px,4vw,30px)}body.public-shell .public-container .field{display:flex;flex-direction:column;gap:6px;margin-bottom:15px}body.public-shell .public-container label{font-size:12px;font-weight:750;color:#334155}body.public-shell .public-container input,body.public-shell .public-container select,body.public-shell .public-container textarea{width:100%;min-height:42px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:9px;background:#fff}body.public-shell .public-container button{width:100%;min-height:44px;margin-top:8px}body.public-shell .public-footer{margin-top:auto;padding:0 18px 20px}body.public-shell .public-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;width:min(100%,1000px);margin:auto;padding:15px 18px;background:#fff;border:1px solid var(--ui-border);border-radius:12px}body.public-shell .public-footer-brand{display:flex;align-items:center;gap:9px}body.public-shell .public-footer-brand>span:last-child{display:flex;flex-direction:column}body.public-shell .public-footer-brand strong{font-size:11px}body.public-shell .public-footer-brand small,body.public-shell .public-footer-meta{font-size:10px;color:var(--ui-muted)}body.public-shell .public-footer-meta{text-align:right;display:flex;flex-direction:column;gap:3px}
@media(max-width:900px){body.app-shell .site-header .header-inner{padding:12px 16px}body.app-shell .cms-user-copy{display:none}body.app-shell .cms-action-button span{display:none}body.app-shell .site-main{padding-top:22px}body.app-shell .site-main .card,body.app-shell .site-main .panel{padding:18px}}
@media(max-width:640px){body.app-shell .site-header .header-inner{min-height:72px;gap:9px;padding:10px 12px}body.app-shell .header-left{gap:8px}body.app-shell .brand{gap:8px}body.app-shell .brand-mark.brand-mark-image{width:48px;height:48px;flex-basis:48px;padding:4px}body.app-shell .brand-mark:not(.brand-mark-image){width:42px;height:42px;flex-basis:42px}body.app-shell .brand-copy strong{font-size:13px}body.app-shell .brand-copy small{max-width:175px;font-size:8px}body.app-shell .cms-menu-button{padding:8px 9px;min-height:34px}body.app-shell .header-actions{gap:4px}body.app-shell .cms-user-badge{display:none}body.app-shell .cms-action-button{min-height:34px;padding:7px 9px}body.app-shell .site-main{padding:19px 12px 28px}body.app-shell .site-main .form-grid{grid-template-columns:minmax(0,1fr)}body.app-shell .site-main .card,body.app-shell .site-main .panel{padding:15px;margin-bottom:14px}body.app-shell .site-footer .footer-inner,body.public-shell .public-footer-inner{align-items:flex-start;flex-direction:column;padding:13px}body.app-shell .site-footer .footer-meta,body.public-shell .public-footer-meta{text-align:left;align-items:flex-start}body.app-shell .site-footer{padding:0 12px 14px}body.public-shell .public-top{padding:13px 14px}body.public-shell .public-brand{gap:9px}body.public-shell .public-mark{width:42px;height:42px;flex:0 0 42px}body.public-shell .public-brand strong{font-size:13px}body.public-shell .public-brand small{font-size:8px}body.public-shell .public-header-tag{display:none}body.public-shell .public-container{margin:18px auto;padding:0 12px}body.public-shell .public-container>.card{padding:19px}body.public-shell .public-footer{padding:0 12px 14px}}
@media print{body.app-shell,body.public-shell{background:#fff;color:#000}body.app-shell .site-header,body.app-shell .cms-sidebar,body.app-shell .cms-sidebar-backdrop,body.app-shell .site-footer,body.public-shell .public-top,body.public-shell .public-footer,.no-print,button,.btn{display:none!important}body.app-shell .site-main{max-width:none;padding:0;margin:0}body.app-shell .site-main .card,body.app-shell .site-main .panel,body.public-shell .public-container>.card{box-shadow:none;border:0;padding:0}body.app-shell .site-main .table-wrap{overflow:visible;border:0}body.app-shell .site-main table{font-size:9pt}body.app-shell .site-main th,body.app-shell .site-main td{padding:5px;border:1px solid #ccc}.print-heading{display:flex!important;flex-direction:column;margin-bottom:16px}.print-heading strong{font-size:16pt}.print-heading small{font-size:9pt}}


/* Attendance review/confirmation step */
.attendance-submit{width:100%;margin-top:8px}
body.attendance-review-open{overflow:hidden}
.attendance-review[hidden]{display:none!important}
.attendance-review{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px;overflow-y:auto}
.attendance-review__backdrop{position:fixed;inset:0;background:rgba(8,20,42,.68);backdrop-filter:blur(3px)}
.attendance-review__panel{position:relative;width:min(100%,620px);max-height:calc(100vh - 40px);overflow-y:auto;background:#fff;border:1px solid #dce4ef;border-radius:18px;box-shadow:0 24px 80px rgba(3,14,35,.3);padding:26px;color:#152743;outline:none}
.attendance-review__header{display:flex;align-items:flex-start;gap:14px;margin-bottom:20px}
.attendance-review__icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:14px;background:#e7f7ee;color:#18794e;font-size:24px;font-weight:800}
.attendance-review__header h2{font-size:22px;line-height:1.25;margin:2px 0 6px;color:#14294a}
.attendance-review__header p{margin:0;color:#65748b;font-size:14px;line-height:1.55}
.attendance-review__summary{margin:0;border:1px solid #e0e7f0;border-radius:12px;overflow:hidden}
.attendance-review__row{display:grid;grid-template-columns:minmax(145px, .8fr) minmax(0,1.2fr);gap:16px;padding:12px 15px;border-bottom:1px solid #e9eef5;align-items:start}
.attendance-review__row:last-child{border-bottom:0}
.attendance-review__row:nth-child(odd){background:#f7f9fc}
.attendance-review__row dt{font-size:13px;color:#65748b;font-weight:600}
.attendance-review__row dd{margin:0;font-size:14px;color:#182c49;font-weight:650;overflow-wrap:anywhere}
.attendance-review__row dd.attendance-review__empty{color:#b45309;font-weight:600}
.attendance-review__notice{margin-top:16px;padding:12px 14px;border-radius:10px;background:#fff8e8;border:1px solid #f5dfaa;color:#7a5310;font-size:13px;line-height:1.55}
.attendance-review__actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.attendance-review__actions button{min-height:44px;border-radius:10px;padding:10px 16px;font-weight:700;cursor:pointer}
.attendance-review__back{background:#fff;border:1px solid #cbd5e1;color:#24364f}
.attendance-review__confirm{background:#174b83;border:1px solid #174b83;color:#fff}
.attendance-review__back:hover{background:#f1f5f9}
.attendance-review__confirm:hover{background:#103a68}
.attendance-review__actions button:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
@media(max-width:560px){.attendance-review{padding:10px}.attendance-review__panel{padding:19px;border-radius:14px;max-height:calc(100vh - 20px)}.attendance-review__header h2{font-size:19px}.attendance-review__row{grid-template-columns:1fr;gap:4px;padding:11px 12px}.attendance-review__actions{flex-direction:column-reverse}.attendance-review__actions button{width:100%}}
/* Login page: center the login card within the available space between header and footer. */
body.app-shell .site-main:has(> .login) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  width: 100%;
  max-width: 1320px;
  flex: 1 0 auto;
  margin-inline: auto;
  padding: 28px 24px 36px;
}
body.app-shell .site-main > .login {
  width: min(100%, 480px);
  max-width: 480px;
  margin: 0 auto;
  justify-self: center;
}
@media (max-width: 560px) {
  body.app-shell .site-main:has(> .login) {
    padding: 24px 16px 30px;
  }
  body.app-shell .site-main > .login {
    width: 100%;
    margin: 0 auto;
    padding: 22px 19px;
  }
}


/* Logo resmi yang sama pada header dan footer seluruh halaman. */
body.app-shell .site-footer .footer-mark-image,body.public-shell .public-mark-image,body.public-shell .public-footer-mark-image{display:grid;place-items:center;overflow:hidden;background:#fff;padding:3px;box-sizing:border-box;}
body.app-shell .site-footer .footer-mark-image img,body.public-shell .public-mark-image img,body.public-shell .public-footer-mark-image img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;}
body.public-shell .public-mark-image{width:48px;height:48px;flex:0 0 48px;border-radius:10px;}
body.public-shell .public-footer-mark-image{width:34px;height:34px;flex:0 0 34px;border-radius:9px;}
body.app-shell .site-footer .footer-mark-image{width:34px;height:34px;flex:0 0 34px;border-radius:9px;background:#fff;border:1px solid var(--ui-border);}
@media(max-width:640px){body.public-shell .public-mark-image{width:42px;height:42px;flex-basis:42px;}body.public-shell .public-footer-mark-image{width:32px;height:32px;flex-basis:32px;}}


/* Fix logo absensi publik: logo hanya di header/footer, bukan watermark besar. */
body.public-shell { background-image: none !important; }
body.public-shell::before, body.public-shell::after, body.public-shell #attendance-main::before, body.public-shell #attendance-main::after { background-image: none !important; }
body.public-shell .public-top { position: relative; z-index: 5; }
body.public-shell .public-brand .public-mark-image { width: 48px !important; height: 48px !important; flex: 0 0 48px !important; padding: 3px !important; overflow: hidden !important; display: grid !important; place-items: center !important; background: #fff !important; border-radius: 10px !important; }
body.public-shell .public-brand .public-mark-image img { display: block !important; width: 100% !important; height: 100% !important; object-fit: contain !important; object-position: center !important; }


/* FINAL LOGO FIT FIX: preserve full crest proportions in all header/footer marks. */
body.app-shell .site-header .brand-mark.brand-mark-image,
body.app-shell .site-footer .footer-mark-image,
body.public-shell .public-brand .public-mark-image,
body.public-shell .public-footer-mark-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: transparent !important;
}
body.app-shell .site-header .brand-mark.brand-mark-image img,
body.app-shell .site-footer .footer-mark-image img,
body.public-shell .public-brand .public-mark-image img,
body.public-shell .public-footer-mark-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  flex: 0 0 auto !important;
  border-radius: 0 !important;
}
/* Give portrait-shaped official crests enough height without clipping. */
body.app-shell .site-header .brand-mark.brand-mark-image { width: 48px !important; height: 58px !important; flex-basis: 48px !important; }
body.app-shell .site-footer .footer-mark-image { width: 34px !important; height: 46px !important; flex-basis: 34px !important; }
body.public-shell .public-brand .public-mark-image { width: 48px !important; height: 58px !important; flex-basis: 48px !important; }
body.public-shell .public-footer-mark-image { width: 34px !important; height: 46px !important; flex-basis: 34px !important; }
@media (max-width: 640px) {
  body.app-shell .site-header .brand-mark.brand-mark-image,
  body.public-shell .public-brand .public-mark-image { width: 42px !important; height: 52px !important; flex-basis: 42px !important; }
}
