:root{
 --navy:#102e56;
 --blue:#174d91;
 --pale:#eaf0fa;
 --gold:#d4bb80;
 --line:#dce5ef;
 --muted:#60748e;
 --header:64px;
 --footer:38px;
 --side:238px
}

*{box-sizing:border-box}

body{
 margin:0;
 color:var(--navy);
 background:#f5f7fb;
 font-family:system-ui,-apple-system,sans-serif
}

.topbar{
 height:var(--header);
 position:fixed;
 inset:0 0 auto;
 z-index:20;
 display:flex;
 gap:18px;
 align-items:center;
 padding:0 22px;
 background:var(--navy);
 color:white
}

.brand{
 color:var(--gold);
 letter-spacing:2px;
 font-weight:800;
 font-size:21px
}

.product{font-size:15px}

.release{
 margin-left:auto;
 padding:7px 12px;
 border-radius:6px;
 background:#2d4a70;
 font-size:12px
}

#menuToggle{
 background:#274971;
 border:1px solid #537196;
 border-radius:7px;
 color:white;
 cursor:pointer;
 font-size:22px;
 padding:6px 12px
}

#clock{font-size:13px}

.shell{
 padding-top:var(--header);
 padding-bottom:var(--footer)
}

#sidebar{
 position:fixed;
 top:var(--header);
 bottom:var(--footer);
 left:0;
 width:var(--side);
 padding:20px 12px;
 overflow-y:auto;
 background:var(--pale);
 border-right:1px solid var(--line)
}

.side-title{
 font-size:10px;
 font-weight:700;
 letter-spacing:1.5px;
 padding:8px 12px 18px;
 color:var(--muted)
}

#sidebar a,.nav-item{
 display:flex;
 justify-content:space-between;
 align-items:center;
 gap:5px;
 border-radius:6px;
 font-size:12px;
 padding:11px 10px;
 color:var(--navy);
 text-decoration:none
}

#sidebar a.active{
 font-weight:700;
 background:#d3e1f4
}

.nav-item small{
 font-size:8px;
 color:var(--muted)
}

main{
 margin-left:var(--side);
 padding:26px
}

body.menu-closed #sidebar{display:none}
body.menu-closed main{margin-left:0}

.hero{
 padding:34px;
 border-radius:14px;
 background:linear-gradient(120deg,#102e56,#174d91);
 color:white
}

.eyebrow{
 color:var(--gold);
 font-weight:700;
 font-size:11px;
 letter-spacing:3px
}

.hero h1{
 margin:12px 0;
 font-size:clamp(32px,4vw,52px)
}

.hero h2{
 font-weight:500;
 color:#d5e5fa
}

.hero p{color:#d5e5fa}

.metrics,.module-grid{
 display:grid;
 gap:15px;
 grid-template-columns:repeat(3,minmax(0,1fr))
}

.metrics{
 grid-template-columns:repeat(4,minmax(0,1fr));
 margin:24px 0
}

article{
 background:white;
 border:1px solid var(--line);
 border-radius:12px;
 padding:20px
}

article small{
 color:var(--muted);
 font-size:10px;
 font-weight:600;
 letter-spacing:.5px
}

.metrics h2{
 margin:10px 0 0;
 font-size:26px
}

.section-heading{
 display:flex;
 justify-content:space-between;
 align-items:center;
 margin:28px 0 14px
}

.section-heading h2{margin:0}
.section-heading p{margin:5px 0;color:var(--muted)}

.refresh{
 text-decoration:none;
 color:var(--blue);
 background:white;
 border:1px solid var(--line);
 border-radius:8px;
 padding:10px 15px;
 font-size:13px
}

.module-top{
 display:flex;
 justify-content:space-between;
 align-items:center
}

.module-icon{
 background:var(--pale);
 color:var(--blue);
 padding:10px;
 border-radius:8px;
 font-weight:800;
 font-size:12px
}

.status{
 font-size:9px;
 color:var(--muted);
 background:#f0f3f8;
 border-radius:5px;
 padding:5px 7px
}

.module h3{margin-bottom:8px}
.module p{font-size:13px;color:var(--muted)}

.notice{
 margin-top:24px;
 padding:16px;
 border:1px solid var(--line);
 border-radius:8px;
 font-size:12px;
 color:var(--muted)
}

footer{
 position:fixed;
 bottom:0;
 width:100%;
 height:var(--footer);
 display:flex;
 align-items:center;
 justify-content:center;
 background:var(--navy);
 color:white;
 font-size:11px
}

@media(max-width:1100px){
 .metrics,.module-grid{
   grid-template-columns:repeat(2,minmax(0,1fr))
 }
}

@media(max-width:740px){
 main{margin-left:0;padding:15px}
 #sidebar{z-index:10;box-shadow:8px 0 25px #0002}
 .product,#clock{display:none}
 .hero{padding:24px}
}

@media(max-width:430px){
 .module-grid{grid-template-columns:1fr}
 .metrics h2{font-size:20px}
}

/* V2.01 Architecture Studio */

.breadcrumb{
 font-size:12px;
 color:var(--muted);
 margin:0 0 18px
}

.breadcrumb a,
.arch-panel a{
 color:var(--blue);
 text-decoration:none
}

.arch-hero{
 background:var(--navy);
 color:white;
 padding:28px;
 border-radius:12px
}

.arch-hero h1{
 margin:12px 0;
 font-size:clamp(26px,4vw,42px)
}

.arch-hero p{color:#d6e4f7}

.arch-tag{
 display:inline-block;
 background:#284971;
 padding:8px 12px;
 border-radius:6px;
 font-size:10px;
 letter-spacing:1px
}

.nav-group{
 color:var(--muted);
 text-transform:uppercase;
 letter-spacing:.8px;
 font-size:9px;
 font-weight:700;
 margin:18px 10px 7px
}

#sidebar .nav-architecture{
 background:#d3e1f4;
 font-weight:700
}

#sidebar a:hover{
 background:#d9e5f5
}

.module-link{
 color:inherit;
 text-decoration:none
}

.module-link article{
 height:100%;
 transition:border-color .15s
}

.module-link:hover article{
 border-color:var(--blue)
}

.arch-panel{
 background:white;
 border:1px solid var(--line);
 border-radius:12px;
 padding:22px;
 margin:24px 0
}

.arch-panel .section-heading{
 margin-top:0
}

.dependency{
 display:flex;
 justify-content:space-between;
 gap:16px;
 padding:13px 0;
 border-bottom:1px solid var(--line);
 font-size:13px
}

.dependency span{
 color:var(--muted)
}

.table-scroll{
 overflow-x:auto
}

table{
 width:100%;
 border-collapse:collapse;
 font-size:12px
}

th{
 background:var(--pale);
 color:var(--navy);
 text-align:left;
 padding:13px;
 font-size:10px;
 text-transform:uppercase
}

td{
 border-bottom:1px solid var(--line);
 padding:13px;
 line-height:1.5;
 vertical-align:top
}

td:first-child{
 white-space:nowrap
}

@media(max-width:740px){
 .arch-panel{padding:15px}
 .dependency{flex-direction:column}
 table{min-width:700px}
}

/* V2.02A Secure access */

.login-body{
 min-height:100vh;
 display:grid;
 place-items:center;
 padding:24px;
 background:#eaf0fa
}

.login-shell{
 width:min(920px,100%);
 display:grid;
 grid-template-columns:1fr 1fr;
 background:white;
 border-radius:18px;
 overflow:hidden;
 box-shadow:0 18px 60px #102e5620
}

.login-brand{
 background:linear-gradient(140deg,#102e56,#174d91);
 padding:48px;
 color:white;
 display:flex;
 flex-direction:column;
 justify-content:center
}

.login-brand h1{
 font-size:52px;
 letter-spacing:4px;
 margin:15px 0
}

.login-brand h2{
 font-size:23px;
 font-weight:400
}

.login-brand p{
 color:#d5e5fa;
 line-height:1.7
}

.login-release{
 color:var(--gold);
 font-size:12px;
 letter-spacing:2px;
 margin-top:25px
}

.login-form{padding:48px}

.login-form small{
 color:var(--muted);
 font-size:10px;
 letter-spacing:1.2px
}

.login-form h2{font-size:27px}

.login-form p{
 color:var(--muted);
 font-size:14px;
 line-height:1.6
}

.login-form label{
 display:block;
 font-size:13px;
 font-weight:600;
 margin:25px 0 8px
}

.login-form input{
 width:100%;
 height:48px;
 border:1px solid var(--line);
 border-radius:8px;
 padding:12px;
 font-size:15px
}

.login-form button{
 margin-top:16px;
 width:100%;
 padding:14px;
 border:0;
 border-radius:8px;
 background:var(--blue);
 color:white;
 font-weight:700;
 cursor:pointer
}

.login-error{
 padding:12px;
 background:#fcecec;
 border-radius:8px;
 color:#963232;
 font-size:13px
}

.login-form .login-note{
 font-size:11px;
 margin-top:28px
}

.logout-button{
 background:#29496f;
 border:1px solid #547298;
 color:white;
 padding:8px 12px;
 border-radius:6px;
 cursor:pointer;
 font-size:11px
}

@media(max-width:680px){
 .login-shell{grid-template-columns:1fr}
 .login-brand,.login-form{padding:26px}
 .login-brand h1{font-size:34px}
}

/* POLNA WhatsApp authentication */

#otp-verify-form[hidden]{display:none}

#otp{
 text-align:center;
 font-size:24px;
 font-weight:700;
 letter-spacing:10px;
 font-variant-numeric:tabular-nums
}

#otp-status{
 font-size:13px;
 line-height:1.6;
 margin-top:14px;
 color:#174d91
}

#otp-status[data-error="true"]{
 color:#963232
}

.recovery-login{
 margin-top:26px;
 padding-top:20px;
 border-top:1px solid var(--line)
}

.recovery-login summary{
 cursor:pointer;
 font-size:12px;
 color:var(--muted)
}

.login-form button:disabled{
 opacity:.55;
 cursor:wait
}

/* POLNA master blueprint */
#sidebar a{
 padding:6px 9px;
 min-height:32px;
 font-size:12px;
 gap:6px;
}
#sidebar .nav-item{
 padding:6px 9px;
 gap:6px;
 font-size:12px;
}
#sidebar .nav-item small{
 font-size:8px;
}
#sidebar .nav-group{
 font-size:10px;
 line-height:1.3;
 margin:12px 6px 5px;
}
#sidebar .polna-icon,
#studioSidebar .polna-icon,
aside nav .polna-icon,
aside .nav-item .polna-icon{
 width:20px!important;
 height:20px!important;
 min-width:20px!important;
 flex:0 0 20px!important;
 border-radius:5px!important;
}
#sidebar .polna-icon svg,
#studioSidebar .polna-icon svg,
aside nav .polna-icon svg,
aside .nav-item .polna-icon svg{
 width:14px!important;
 height:14px!important;
}
.master-jump{
 display:flex;
 flex-wrap:wrap;
 gap:8px;
 margin:16px 0;
}
.master-jump a{
 padding:8px 12px;
 border-radius:8px;
 background:#eaf0fa;
 color:#174d91;
 font-size:12px;
 font-weight:650;
}
.master-panel{
 background:#fff;
 border:1px solid #dce5ef;
 padding:20px;
 margin:18px 0;
 border-radius:14px;
 scroll-margin-top:85px;
}
.master-root{
 background:#102e56;
 color:#fff;
 border-radius:12px;
 padding:22px;
 text-align:center;
 display:flex;
 flex-direction:column;
 gap:5px;
}
.master-root strong{
 color:#d4bb80;
 font-size:23px;
}
.master-root small{color:#dce8f8}
.master-trunk{
 width:2px;
 height:22px;
 background:#b6c6d9;
 margin:auto;
}
.master-grid{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:14px;
}
.master-studio{
 --studio:#2563eb;
 --studio-bg:#dbeafe;
 background:#fff;
 border:1px solid #dce5ef;
 border-top:3px solid var(--studio);
 border-radius:11px;
 padding:13px;
}
.studio-color-2{--studio:#7c3aed;--studio-bg:#ede9fe}
.studio-color-3{--studio:#0891b2;--studio-bg:#cffafe}
.studio-color-4{--studio:#ea580c;--studio-bg:#ffedd5}
.studio-color-5{--studio:#dc2626;--studio-bg:#fee2e2}
.studio-color-6{--studio:#059669;--studio-bg:#d1fae5}
.studio-color-7{--studio:#db2777;--studio-bg:#fce7f3}
.studio-color-8{--studio:#b45309;--studio-bg:#fef3c7}
.studio-color-9{--studio:#4f46e5;--studio-bg:#e0e7ff}
.studio-color-10{--studio:#9333ea;--studio-bg:#f3e8ff}
.studio-color-11{--studio:#16a34a;--studio-bg:#dcfce7}
.studio-color-12{--studio:#174d91;--studio-bg:#eaf0fa}
.studio-heading{
 display:flex;
 align-items:center;
 gap:9px;
 margin-bottom:12px;
}
.studio-icon{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 width:38px;
 height:38px;
 flex:0 0 38px;
 border-radius:9px;
 color:var(--studio);
 background:var(--studio-bg);
}
.studio-icon svg{
 width:23px;
 height:23px;
}
.studio-heading h3{
 margin:1px 0;
 font-size:13px;
 color:#102e56;
}
.studio-heading small{
 color:#64748b;
 font-size:10px;
}
.studio-links a{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:6px;
 color:#174d91;
 border-top:1px solid #edf1f6;
 padding:7px 0;
 font-size:12px;
}
.studio-links a small{
 color:#64748b;
 font-size:8px;
}
.master-foundation{
 background:#102e56;
 color:#fff;
 padding:15px;
 border-radius:10px;
 text-align:center;
 margin-top:16px;
 font-weight:650;
}
.master-note{
 color:#64748b;
 font-size:12px;
}
.charter-section{
 border-bottom:1px solid #e5edf5;
 padding:10px 0;
}
.charter-section h3,
.master-phase h3{
 color:#102e56;
 font-size:15px;
 margin:3px 0;
}
.charter-section p,
.master-phase p{
 color:#334155;
 font-size:13px;
 line-height:1.6;
 margin:5px 0;
}
.master-phase{
 display:flex;
 align-items:flex-start;
 gap:13px;
 padding:12px 0;
 border-bottom:1px solid #e5edf5;
}
.phase-number{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 flex:0 0 38px;
 height:38px;
 border-radius:9px;
 background:#dbeafe;
 color:#174d91;
 font-weight:bold;
}
.master-phase small{
 color:#64748b;
 font-size:11px;
}
.master-table-scroll{overflow:auto}
.master-table{
 border-collapse:collapse;
 width:100%;
 font-size:12px;
}
.master-table th,.master-table td{
 border-bottom:1px solid #e5edf5;
 text-align:left;
 padding:11px 9px;
}
.master-table th{
 background:#eaf0fa;
 color:#102e56;
}
@media(max-width:1200px){
 .master-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
 .master-grid{grid-template-columns:1fr}
 .master-panel{padding:13px}
}
