:root{--bg:#eef5f0;--surface:#fff;--surface2:#f7fbf8;--ink:#17251d;--muted:#6d7d73;--line:#dce8df;--green:#129a5c;--green2:#e3f7ec;--nav:#0c1b14;--nav2:#11271d;--danger:#d53c4b;--warning:#c5860a;--info:#2563eb;--shadow:0 16px 40px rgba(19,57,36,.08)}
html[data-theme="night"]{--bg:#07110c;--surface:#0d1b13;--surface2:#11251a;--ink:#edf8f1;--muted:#8da699;--line:#1c3928;--green:#40d98a;--green2:#163a27;--nav:#020805;--nav2:#0c1b14;--shadow:none}
html{overflow-y:scroll;scrollbar-gutter:stable both-edges}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--ink)}a{color:inherit;text-decoration:none}button,input,select{font:inherit}.layout{display:block;min-height:100vh}.sidebar{width:248px;background:linear-gradient(180deg,var(--nav),var(--nav2));color:#ecfff4;padding:20px 14px;position:fixed;left:0;top:0;height:100vh;overflow:auto;scrollbar-gutter:stable}.brand{display:flex;align-items:center;gap:11px;padding:4px 8px 18px}.brandmark{width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#27c878,#087442);display:grid;place-items:center;font-weight:900;box-shadow:0 10px 30px rgba(33,198,118,.22)}.brand b{display:block;font-size:18px}.brand small{color:#92b6a0}.owner-badge{margin:0 7px 18px;padding:9px 11px;border-radius:11px;background:rgba(63,217,138,.09);border:1px solid rgba(80,221,147,.18);font-size:12px;color:#aee9c7}.nav-group-title{font-size:10px;letter-spacing:.12em;color:#70917d;margin:17px 12px 7px;font-weight:800}.nav a{display:flex;align-items:center;gap:11px;padding:10px 12px;margin:4px 0;border-radius:11px;color:#c9ddd1;font-size:13px}.nav a:hover{background:rgba(255,255,255,.06)}.nav a.active{background:linear-gradient(90deg,rgba(45,211,132,.18),rgba(45,211,132,.07));color:#fff;border:1px solid rgba(69,221,145,.18)}.nav .ico{width:23px;height:23px;border-radius:7px;background:rgba(255,255,255,.07);display:grid;place-items:center;font-size:11px}.sidebar-foot{margin-top:22px;padding:12px;border-top:1px solid rgba(255,255,255,.08);font-size:11px;color:#7ea18d}.workspace{min-width:0;margin-left:248px;width:calc(100% - 248px)}.topbar{height:70px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:20}.topbar h1{font-size:19px;margin:0}.topbar p{margin:3px 0 0;color:var(--muted);font-size:11px}.top-actions{display:flex;align-items:center;gap:8px}.chip,.pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:700}.chip{background:var(--green2);color:var(--green)}.pill{background:var(--surface2);border:1px solid var(--line);color:var(--muted)}.user-menu{display:flex;align-items:center;gap:9px;padding:6px 9px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.avatar{width:29px;height:29px;border-radius:10px;background:linear-gradient(145deg,#22ba70,#0a7c48);color:white;display:grid;place-items:center;font-size:12px;font-weight:800}.content{max-width:1480px;margin:0 auto;padding:22px 26px 44px}.flash{padding:11px 14px;border-radius:12px;margin-bottom:14px;border:1px solid var(--line);background:var(--surface)}.flash.success{background:#e9f9f0;color:#11693f}.flash.warning{background:#fff7df;color:#835d00}.flash.danger{background:#fff0f1;color:#9d2531}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.metric{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:var(--shadow);position:relative;overflow:hidden}.metric:after{content:"";position:absolute;width:70px;height:70px;border-radius:50%;background:var(--green2);right:-24px;top:-24px}.metric small{color:var(--muted);font-size:11px}.metric strong{display:block;font-size:28px;margin-top:6px}.metric em{font-style:normal;font-size:10px;color:var(--green);font-weight:700}.grid-2{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:14px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);margin-bottom:14px;overflow:hidden}.card-head{display:flex;justify-content:space-between;align-items:flex-start;padding:16px 17px;border-bottom:1px solid var(--line)}.card-head h2,.card-head h3{margin:0;font-size:15px}.card-head p{margin:4px 0 0;color:var(--muted);font-size:11px}.card-body{padding:16px 17px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.055em;background:var(--surface2);padding:10px 12px;text-align:left;white-space:nowrap}td{padding:11px 12px;border-top:1px solid var(--line);font-size:12px;vertical-align:middle}td b{display:block}td small{display:block;color:var(--muted);margin-top:2px}.status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800;text-transform:uppercase}.status.active,.status.verified,.status.approved{background:#dff7e9;color:#08723f}.status.pending,.status.uploading{background:#fff3ce;color:#8a6100}.status.suspended,.status.expired{background:#fff0d9;color:#9a5c00}.status.revoked,.status.failed,.status.rejected{background:#ffe8eb;color:#a62132}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.toolbar input,.toolbar select,.field input,.field select{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:10px;padding:9px 10px;font-size:12px;outline:none}.toolbar input{min-width:260px}.btn{border:0;border-radius:9px;padding:8px 10px;cursor:pointer;font-size:11px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:5px}.btn.primary{background:var(--green);color:white}.btn.soft{background:var(--green2);color:var(--green)}.btn.warn{background:#fff1c9;color:#8a6100}.btn.danger{background:#ffe4e7;color:#b02032}.btn.dark{background:#18281f;color:white}.btn.outline{background:var(--surface);border:1px solid var(--line);color:var(--ink)}form.inline{display:inline-flex;gap:5px;align-items:center;margin:2px}.days{width:58px!important;min-width:0!important}.empty{padding:35px 16px;text-align:center;color:var(--muted)}.empty b{display:block;color:var(--ink);margin-bottom:5px}.detail-hero{background:linear-gradient(125deg,#0b2418,#0e4b2f);color:white;border-radius:18px;padding:20px;margin-bottom:14px;display:flex;justify-content:space-between;gap:18px}.detail-hero h2{margin:0 0 5px}.detail-hero p{margin:0;color:#b9d7c6;font-size:12px}.kv{display:grid;grid-template-columns:140px 1fr;gap:9px;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}.kv span{color:var(--muted)}.code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;word-break:break-all}.health{display:flex;gap:10px;align-items:flex-start;padding:12px;border-radius:13px;background:var(--surface2);border:1px solid var(--line)}.health i{width:9px;height:9px;border-radius:50%;background:var(--green);margin-top:4px}.health b{font-size:12px}.health small{display:block;color:var(--muted);margin-top:3px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.field{display:flex;flex-direction:column;gap:5px}.field label{font-size:11px;color:var(--muted)}.notice{padding:12px 13px;border-radius:12px;background:var(--green2);color:var(--green);font-size:11px}.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top left,#123c28 0,#09150f 42%,#050a07 100%);padding:24px}.login-wrap{width:min(940px,100%);display:grid;grid-template-columns:1.1fr .9fr;background:#0c1912;border:1px solid #183c29;border-radius:24px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.35);color:white}.login-brand{padding:48px;background:linear-gradient(145deg,rgba(29,184,105,.14),rgba(15,64,41,.15));display:flex;flex-direction:column;justify-content:center}.login-brand h1{font-size:36px;margin:16px 0 10px}.login-brand p{color:#a8c8b5;line-height:1.6}.login-card{background:#fff;color:#17251d;padding:42px}.login-card h2{margin:0 0 6px}.login-card p{color:#748078;font-size:12px;margin:0 0 24px}.login-card label{display:block;font-size:11px;color:#63736a;margin:12px 0 5px}.login-card input{width:100%;padding:11px;border:1px solid #d8e4dc;border-radius:10px}.login-card button{width:100%;margin-top:16px;padding:11px;background:#11975b;color:white;border:0;border-radius:10px;font-weight:800}.login-error{background:#fff0f1;color:#a32634;padding:10px;border-radius:9px;font-size:11px;margin-top:10px}.theme-toggle{border:1px solid var(--line);background:var(--surface);color:var(--ink);width:34px;height:34px;border-radius:10px;cursor:pointer}.audit-json{max-width:380px;white-space:normal;word-break:break-word;color:var(--muted)}@media(max-width:1050px){.sidebar{width:74px;padding:18px 8px}.workspace{margin-left:74px;width:calc(100% - 74px)}.brand span,.owner-badge,.nav a span,.nav-group-title,.sidebar-foot{display:none}.brand{justify-content:center}.nav a{justify-content:center}.metric-grid{grid-template-columns:repeat(2,1fr)}.grid-2{grid-template-columns:1fr}}@media(max-width:700px){html{overflow-y:auto}.layout{display:block}.sidebar{position:sticky;left:auto;top:0;width:100%;height:auto;display:flex;overflow:auto;padding:8px;z-index:30}.workspace{margin-left:0;width:100%}.brand{padding:0 8px}.brandmark{width:34px;height:34px}.nav{display:flex}.nav a{min-width:42px}.topbar{padding:0 12px}.topbar p,.chip.key{display:none}.content{padding:14px}.metric-grid,.grid-3,.form-grid{grid-template-columns:1fr}.login-wrap{grid-template-columns:1fr}.login-brand{display:none}.toolbar input{min-width:180px}}

/* v1.5 stable navigation + active control styling */
body{overflow-x:hidden}.content{min-height:calc(100vh - 70px)}.nav a{border:1px solid transparent;transition:background .14s ease,border-color .14s ease,transform .14s ease}.nav a:hover{transform:translateX(1px)}.nav a.active{box-shadow:inset 3px 0 0 var(--green)}.owner-dot,.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#42dc8c;box-shadow:0 0 0 4px rgba(66,220,140,.10)}.owner-badge{display:flex;align-items:center;gap:7px}.status-chip{gap:8px}.top-title{min-width:0}.top-title h1,.top-title p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-menu.active{border-color:var(--green);box-shadow:0 0 0 3px var(--green2)}.user-menu b{font-size:11px}.user-menu small{display:block;color:var(--muted);font-size:9px}.logout-form{margin:0}.action-cell{min-width:215px}.exact-expiry{margin-top:5px}.exact-expiry input[type=date]{width:132px}.field-action{justify-content:flex-end}.health+.health{margin-top:9px}.detail-uid{text-align:right}.detail-uid .code{margin-top:5px;color:#d7f6e6}.business-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.security-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.security-badge{font-size:9px;letter-spacing:.12em;font-weight:900;padding:5px 8px;border-radius:999px;background:var(--green2);color:var(--green);border:1px solid var(--line)}.security-callout{display:flex;flex-direction:column;gap:4px;padding:12px 13px;border:1px solid var(--line);background:var(--surface2);border-radius:12px;margin-bottom:12px}.security-callout b{font-size:12px}.security-callout span{font-size:11px;color:var(--muted)}.security-tile{min-height:92px;padding:13px;border:1px solid var(--line);background:var(--surface2);border-radius:13px}.security-tile b{display:block;font-size:12px;margin-bottom:5px}.security-tile span{font-size:10px;line-height:1.55;color:var(--muted)}.totp-secret{padding:13px;border:1px solid var(--line);background:var(--surface2);border-radius:13px;margin-bottom:12px}.totp-secret small{display:block;color:var(--muted);font-size:10px}.totp-secret code{display:block;margin:7px 0;font-size:14px;letter-spacing:.08em;word-break:break-all;color:var(--green);font-weight:800}.totp-secret p{margin:0;color:var(--muted);font-size:10px;line-height:1.55}.danger-zone{margin-top:14px;border:1px solid #f0b7bd;background:#fff7f8;padding:13px;border-radius:13px}.danger-zone b{font-size:12px;color:#9f2432}.danger-zone p{font-size:10px;color:#8b5c62}.compact-code{font-size:9px;max-width:100%;overflow-wrap:anywhere}.expire-control{display:inline-block;position:relative}.expire-control summary{cursor:pointer;list-style:none;color:var(--danger);font-size:10px;font-weight:800;padding:7px}.expire-control[open]{display:block;margin-top:6px}.expire-control form{display:flex;gap:5px;align-items:center}.expire-control input{min-width:220px;border:1px solid var(--line);border-radius:8px;padding:7px;background:var(--surface);color:var(--ink);font-size:10px}.profile-security-link{margin-top:14px}.profile-save{margin-top:14px}.otp-shell{width:min(900px,100%);display:grid;grid-template-columns:1fr 1fr;background:#0c1912;border:1px solid #183c29;border-radius:24px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.35);color:white}.otp-shell .login-brand{min-height:430px}.otp-shell .login-card{display:flex;flex-direction:column;justify-content:center}.login-back{display:block;text-align:center;margin-top:12px;color:#63736a;font-size:11px}.btn[disabled]{opacity:.55;cursor:not-allowed}.flash{animation:flashIn .16s ease-out}@keyframes flashIn{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
@media(max-width:1050px){.security-grid{grid-template-columns:1fr}.top-actions .key{display:none}}
@media(max-width:700px){.security-grid{grid-template-columns:1fr}.otp-shell{grid-template-columns:1fr}.otp-shell .login-brand{display:none}.top-actions .status-chip,.top-actions .user-menu span:last-child{display:none}.action-cell{min-width:190px}.expire-control input{min-width:160px}}

.login-env-chip{width:max-content}

/* v1.5.3 smooth navigation + mobile responsive shell */
html{overflow-y:scroll;scrollbar-gutter:stable}body{min-width:0}.layout,.workspace,.content,.card,.card-head,.card-body{min-width:0}.workspace{min-height:100vh}.content{outline:none;contain:layout style}.topbar-left{display:flex;align-items:center;gap:12px;min-width:0;flex:1}.sidebar-mobile-head{display:flex;align-items:center;justify-content:space-between}.sidebar-mobile-head .brand{flex:1}.mobile-menu-toggle,.mobile-nav-close,.mobile-backdrop{display:none}.page-progress{position:fixed;z-index:100;left:0;right:0;top:0;height:3px;pointer-events:none;overflow:hidden;opacity:0;transition:opacity .12s ease}.page-progress span{display:block;width:35%;height:100%;background:var(--green);transform:translateX(-120%)}.page-progress.active{opacity:1}.page-progress.active span{animation:buzkeyProgress .8s ease-in-out infinite}@keyframes buzkeyProgress{0%{transform:translateX(-120%)}55%{transform:translateX(150%)}100%{transform:translateX(330%)}}
.content.page-leaving{opacity:.68;transform:translateY(1px);transition:opacity .08s linear,transform .08s linear;pointer-events:none}.content.page-entering{animation:buzkeyPageIn .16s ease-out}@keyframes buzkeyPageIn{from{opacity:.72;transform:translateY(3px)}to{opacity:1;transform:none}}
.nav a{will-change:background-color,border-color}.nav a:hover{transform:none}.topbar,.sidebar{backface-visibility:hidden;transform:translateZ(0)}.table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}.table-wrap table{min-width:680px}.table-wrap::-webkit-scrollbar{height:9px}.table-wrap::-webkit-scrollbar-thumb{background:var(--line);border-radius:999px}.card-head>div:first-child{min-width:0}.card-head h2,.card-head h3,.card-head p{overflow-wrap:anywhere}.toolbar{min-width:0}.toolbar form{min-width:0}.toolbar input,.toolbar select{max-width:100%}.detail-hero>div{min-width:0}.business-actions form{margin:0}.btn{min-height:34px;touch-action:manipulation}.nav a,.user-menu,.theme-toggle,.mobile-menu-toggle,.mobile-nav-close{touch-action:manipulation}

@media(max-width:1180px){.content{padding-left:18px;padding-right:18px}.topbar{padding-left:20px;padding-right:20px}.top-actions{gap:6px}.chip.key{display:none}.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:900px){
  html{overflow-y:auto;scrollbar-gutter:auto}body{overflow-x:hidden}.workspace{margin-left:0!important;width:100%!important}.content{padding:14px 14px 34px;min-height:calc(100dvh - 64px)}
  .sidebar{position:fixed!important;left:0!important;top:0!important;width:min(86vw,310px)!important;height:100dvh!important;display:block!important;padding:14px!important;overflow-y:auto!important;overflow-x:hidden!important;z-index:70!important;transform:translate3d(-105%,0,0)!important;transition:transform .2s cubic-bezier(.2,.8,.2,1);box-shadow:18px 0 45px rgba(0,0,0,.22)}
  body.mobile-nav-open .sidebar{transform:translate3d(0,0,0)!important}.sidebar .brand span,.sidebar .owner-badge,.sidebar .nav a span,.sidebar .nav-group-title,.sidebar .sidebar-foot{display:flex!important}.sidebar .brand span{display:block!important}.sidebar .nav{display:block!important}.sidebar .nav a{justify-content:flex-start!important;min-width:0!important;padding:11px 12px}.sidebar .nav .ico{flex:0 0 28px;width:28px;height:28px}.sidebar .owner-badge{display:flex!important}.sidebar .sidebar-foot{display:block!important}.sidebar-mobile-head .brand{justify-content:flex-start!important;padding:4px 4px 14px!important}
  .mobile-menu-toggle{display:inline-flex;width:38px;height:38px;border:1px solid var(--line);background:var(--surface);border-radius:11px;align-items:center;justify-content:center;flex-direction:column;gap:4px;flex:0 0 auto}.mobile-menu-toggle span{width:17px;height:2px;border-radius:3px;background:var(--ink);display:block}.mobile-nav-close{display:grid;place-items:center;width:36px;height:36px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#fff;border-radius:10px;font-size:25px;line-height:1;flex:0 0 auto}.mobile-backdrop{display:block;position:fixed;inset:0;z-index:65;border:0;background:rgba(2,10,6,.48);backdrop-filter:blur(2px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility .2s ease}.mobile-backdrop[hidden]{display:block}.mobile-nav-open .mobile-backdrop{opacity:1;visibility:visible;pointer-events:auto}.mobile-nav-open{position:fixed;width:100%;left:0;right:0;overflow:hidden}
  .topbar{height:auto;min-height:64px;padding:9px 14px;gap:10px}.top-title h1{font-size:17px}.top-title p{font-size:10px;max-width:55vw}.top-actions .status-chip,.top-actions .key{display:none}.top-actions{flex:0 0 auto}.user-menu{padding:5px;border-radius:11px}.user-menu>span:last-child{display:none}.logout-form .btn{padding:8px 9px}.theme-toggle{width:36px;height:36px}
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.grid-2,.grid-3,.form-grid,.security-grid{grid-template-columns:1fr!important}.card{border-radius:14px;margin-bottom:12px}.card-head{padding:14px;gap:10px;flex-direction:column;align-items:stretch}.card-body{padding:14px}.card-head>.toolbar,.card-head>form.toolbar{width:100%}.toolbar{width:100%;gap:7px}.toolbar input{min-width:0;flex:1 1 180px}.toolbar select{flex:1 1 120px}.toolbar .btn{flex:0 0 auto}.detail-hero{flex-direction:column;padding:16px;border-radius:15px}.detail-uid{text-align:left}.kv{grid-template-columns:minmax(95px,34%) minmax(0,1fr)}.action-cell{min-width:210px}.expire-control input{min-width:150px}.login-page{padding:14px}.login-wrap,.otp-shell{border-radius:18px}.login-card{padding:28px 22px}.login-brand{padding:28px}
}

@media(max-width:600px){
  .content{padding:10px 10px 28px}.topbar{padding:8px 10px}.top-title p{display:none}.metric-grid{grid-template-columns:1fr 1fr;gap:8px}.metric{padding:13px;border-radius:13px}.metric strong{font-size:23px}.metric small{font-size:10px}.metric em{font-size:9px}.card-head h2,.card-head h3{font-size:14px}.toolbar{align-items:stretch}.toolbar input,.toolbar select,.toolbar .btn,.toolbar form{width:100%;flex:1 1 100%}.toolbar form.toolbar{display:grid;grid-template-columns:1fr;gap:7px}.form-grid{gap:9px}.field input,.field select{width:100%}.table-wrap{margin:0;scrollbar-width:thin}.table-wrap table{min-width:620px}th{padding:9px 10px}td{padding:10px;font-size:11px}.action-cell{min-width:200px}.btn{font-size:10px;padding:8px 9px}.business-actions{display:grid;grid-template-columns:1fr;gap:7px}.business-actions form,.business-actions .btn{width:100%}.security-tile{min-height:0}.login-card{padding:24px 18px}.otp-shell{border-radius:16px}.user-menu{display:none}.top-actions{gap:5px}.logout-form .btn{font-size:10px}.detail-hero h2{font-size:19px}.kv{grid-template-columns:1fr;gap:3px}.kv span{font-size:10px}.kv b{overflow-wrap:anywhere}.exact-expiry input[type=date]{width:100%}.expire-control[open] form{flex-direction:column;align-items:stretch}.expire-control input{width:100%;min-width:0}.expire-control .btn{width:100%}
}

@media(max-width:420px){.metric-grid{grid-template-columns:1fr}.mobile-menu-toggle{width:36px;height:36px}.top-title h1{font-size:15px}.theme-toggle{width:34px;height:34px}.logout-form .btn{padding:7px 8px}.content{padding-left:8px;padding-right:8px}.card{border-radius:12px}.table-wrap table{min-width:580px}}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}.content.page-entering{animation:none}.page-progress.active span{animation:none;transform:none;width:100%}}

/* v1.5.4 polished fixed-shell navigation + profile popover */
html,body{height:100%;overflow:hidden!important}body{overscroll-behavior:none}.layout{height:100dvh;min-height:0;overflow:hidden}.workspace{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}.topbar{position:relative!important;top:auto!important;flex:0 0 70px;height:70px;min-height:70px;width:100%;z-index:35;box-shadow:0 1px 0 var(--line),0 8px 24px rgba(19,57,36,.035);contain:layout paint;background:color-mix(in srgb,var(--surface) 96%,transparent)}.topbar-left{overflow:hidden}.top-title{max-width:min(720px,50vw)}.top-actions{flex:0 0 auto;white-space:nowrap}.chip,.theme-toggle,.profile-trigger{flex:0 0 auto}.content{flex:1 1 auto;min-height:0!important;max-width:none!important;width:100%;margin:0!important;padding:0!important;overflow-y:scroll!important;overflow-x:hidden!important;scrollbar-gutter:stable;overscroll-behavior:contain;contain:none!important;scroll-behavior:auto}.content-frame{width:100%;max-width:1480px;min-height:100%;margin:0 auto;padding:22px 26px 44px}.content.page-leaving,.content.page-entering{opacity:1!important;transform:none!important;transition:none!important;animation:none!important;pointer-events:auto!important}.page-progress{top:0;height:2px}.page-progress.active span{animation-duration:1s}.metric-grid,.grid-2,.grid-3,.card,.detail-hero,.security-grid{transform:none!important}.metric{min-height:104px}.card{will-change:auto;transition:border-color .14s ease,box-shadow .14s ease}.card:hover{transform:none}.card-head{min-height:64px}.table-wrap{width:100%;contain:inline-size}.table-wrap table{width:100%;font-variant-numeric:tabular-nums}.table-wrap th,.table-wrap td{line-height:1.35}.btn,.theme-toggle,.profile-trigger{transition:background-color .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease}.btn:hover,.theme-toggle:hover,.profile-trigger:hover{transform:none}.flash{animation:none!important}.topbar,.sidebar,.content,.content-frame,.card,.metric,.table-wrap{backface-visibility:visible!important;transform:none!important}

/* Topbar user profile */
.profile-menu-root{position:relative;display:flex;align-items:center;z-index:60}.profile-trigger{position:relative;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;padding:0;cursor:pointer;outline:none;box-shadow:0 4px 15px rgba(19,57,36,.06)}.profile-trigger:hover,.profile-trigger.active,.profile-trigger[aria-expanded="true"]{border-color:color-mix(in srgb,var(--green) 55%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--green2) 75%,transparent)}.profile-avatar{width:30px;height:30px;border-radius:50%;background:linear-gradient(145deg,#24c879,#087442);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:900;letter-spacing:.02em}.profile-avatar-lg{width:42px;height:42px;font-size:13px;flex:0 0 42px}.profile-online{position:absolute;right:2px;bottom:2px;width:10px;height:10px;border-radius:50%;background:#42dc8c;border:2px solid var(--surface)}.profile-popover{position:absolute;right:0;top:calc(100% + 10px);width:300px;max-width:calc(100vw - 24px);padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 22px 55px rgba(12,31,21,.18);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-4px);transition:opacity .12s ease,transform .12s ease,visibility .12s ease;z-index:90}.profile-menu-root.is-open .profile-popover{opacity:1;visibility:visible;pointer-events:auto;transform:none}.profile-popover-head{display:flex;align-items:center;gap:11px;padding:8px 8px 10px}.profile-identity{min-width:0;display:block}.profile-identity b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-identity small{display:block;margin-top:3px;color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-menu-divider{height:1px;background:var(--line);margin:5px 3px}.profile-menu-item{display:flex;align-items:center;gap:10px;padding:9px 8px;border-radius:11px;color:var(--ink)}.profile-menu-item:hover,.profile-menu-item.active{background:var(--surface2)}.profile-item-icon{width:30px;height:30px;flex:0 0 30px;border-radius:9px;background:var(--green2);color:var(--green);display:grid;place-items:center;font-size:10px;font-weight:900}.profile-menu-item>span:last-child{min-width:0}.profile-menu-item b{display:block;font-size:11px}.profile-menu-item small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.profile-logout-form{margin:0}.profile-logout-button{width:100%;border:0;background:transparent;color:var(--danger);display:flex;align-items:center;justify-content:space-between;padding:10px 9px;border-radius:11px;font-weight:800;font-size:11px;cursor:pointer}.profile-logout-button:hover{background:#fff0f1}.theme-toggle{border-radius:50%;width:38px;height:38px}

/* polished spacing and consistent surfaces */
.metric,.card,.detail-hero,.health,.security-tile{box-shadow:0 10px 30px rgba(19,57,36,.055)}html[data-theme="night"] .metric,html[data-theme="night"] .card,html[data-theme="night"] .detail-hero,html[data-theme="night"] .health,html[data-theme="night"] .security-tile{box-shadow:0 12px 32px rgba(0,0,0,.15)}.metric-grid{align-items:stretch}.metric{display:flex;flex-direction:column;justify-content:center}.card-head{align-items:center}.card-head>div:first-child{flex:1}.card-head>.toolbar,.card-head>form.toolbar{flex:0 0 auto}.empty{min-height:110px;display:grid;place-items:center}.toolbar input,.toolbar select,.field input,.field select{min-height:38px}.btn{border:1px solid transparent}.btn.primary{border-color:color-mix(in srgb,var(--green) 80%,#0000)}.btn.outline{border-color:var(--line)}

@media(max-width:1180px){.content-frame{padding:18px 18px 38px}.top-title{max-width:42vw}}
@media(max-width:900px){
  html,body{height:100%;overflow:hidden!important}.layout,.workspace{height:100dvh}.workspace{margin-left:0!important;width:100%!important}.topbar{flex:0 0 64px;height:64px;min-height:64px;padding:8px 14px!important}.content{min-height:0!important;height:auto!important;overflow-y:scroll!important}.content-frame{padding:14px 14px 32px}.top-title{max-width:min(55vw,520px)}.mobile-nav-open{position:static!important;width:auto!important;left:auto!important;right:auto!important;overflow:visible!important}.profile-trigger{width:38px;height:38px}.profile-popover{top:calc(100% + 8px)}
}
@media(max-width:600px){
  .content-frame{padding:10px 10px 26px}.topbar{padding:7px 10px!important}.top-title{max-width:calc(100vw - 150px)}.top-actions{gap:6px}.theme-toggle{width:36px;height:36px}.profile-trigger{width:36px;height:36px}.profile-avatar{width:28px;height:28px}.profile-popover{position:fixed;right:10px;top:58px;width:min(310px,calc(100vw - 20px));max-width:none}.card-head{min-height:0}.metric{min-height:92px}.table-wrap{contain:none}
}
@media(max-width:420px){.top-title{max-width:calc(100vw - 132px)}.theme-toggle{width:34px;height:34px}.profile-trigger{width:34px;height:34px}.profile-avatar{width:26px;height:26px;font-size:10px}.profile-popover{right:8px;top:56px;width:calc(100vw - 16px)}}
@media(prefers-reduced-motion:reduce){.profile-popover,.btn,.theme-toggle,.profile-trigger,.card{transition:none!important}.page-progress.active span{animation:none!important}}
html[data-theme="night"] .profile-logout-button:hover{background:#32161b}


/* v1.5.5 mobile drawer + viewport-safe profile popover */
.topbar{contain:none!important;overflow:visible!important}.topbar-left,.top-actions,.profile-menu-root{overflow:visible!important}.profile-menu-root{z-index:120!important}
.profile-popover{position:fixed!important;left:auto;right:auto;top:auto;width:300px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;overscroll-behavior:contain;z-index:240!important;transform:none!important}
.profile-popover.is-open{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important}
body>.profile-popover{z-index:240!important}

@media(max-width:900px){
  .sidebar{top:72px!important;left:10px!important;width:min(76vw,290px)!important;height:min(72dvh,620px)!important;max-height:calc(100dvh - 84px)!important;border:1px solid rgba(255,255,255,.10);border-radius:18px;padding:12px!important;box-shadow:0 22px 60px rgba(0,0,0,.30);transform:translate3d(calc(-100% - 22px),0,0)!important;overscroll-behavior:contain}
  body.mobile-nav-open .sidebar{transform:translate3d(0,0,0)!important}
  .sidebar-mobile-head{position:sticky;top:-12px;z-index:5;margin:-12px -12px 8px;padding:12px 12px 6px;background:linear-gradient(180deg,var(--nav),color-mix(in srgb,var(--nav2) 94%,transparent));border-radius:18px 18px 0 0}
  .mobile-backdrop{top:64px!important;bottom:0!important;height:auto!important;z-index:65!important;background:rgba(2,10,6,.40);backdrop-filter:blur(1.5px)}
  .topbar{z-index:110!important}.content{z-index:1}
}
@media(max-width:600px){
  .sidebar{top:68px!important;left:8px!important;width:min(78vw,280px)!important;height:min(68dvh,560px)!important;max-height:calc(100dvh - 80px)!important;border-radius:16px}
  .sidebar-mobile-head{border-radius:16px 16px 0 0}
  .profile-popover{width:min(300px,calc(100vw - 16px));max-width:none}
}
@media(max-width:420px){
  .sidebar{width:min(78vw,264px)!important;height:min(66dvh,520px)!important}
  .profile-popover{width:calc(100vw - 16px)}
}

/* v1.6 feature-parity portal controls */
.feature-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;padding:17px 19px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,var(--surface),var(--surface2));box-shadow:var(--shadow)}
.feature-hero h2{margin:3px 0 5px;font-size:18px}.feature-hero p{margin:0;color:var(--muted);font-size:11px;line-height:1.55;max-width:820px}.eyebrow{font-size:9px;letter-spacing:.13em;color:var(--green);font-weight:900}.security-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 9px;background:var(--green2);color:var(--green);font-size:9px;font-weight:900;letter-spacing:.06em;white-space:nowrap}.single-col{grid-template-columns:1fr!important}.span-2{grid-column:1/-1}.wide{width:100%}.action-row{display:flex;gap:8px;flex-wrap:wrap}.field textarea,.mini-form textarea{width:100%;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:10px;padding:9px 10px;font:inherit;font-size:12px;outline:none;resize:vertical}.field input[type="color"]{padding:4px;min-height:38px}.switch-row{display:flex;align-items:flex-start;gap:9px;padding:10px 11px;border:1px solid var(--line);border-radius:11px;background:var(--surface2);font-size:11px}.switch-row input{margin-top:2px}.switch-row b{display:block}.switch-row small{display:block;color:var(--muted);margin-top:2px}.checklist-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.check-card{display:flex;gap:9px;align-items:center;padding:10px 11px;border:1px solid var(--line);border-radius:11px;background:var(--surface2);cursor:pointer}.check-card b{display:block;font-size:11px}.check-card small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.selector-list{display:grid;gap:8px;max-height:500px;overflow:auto}.package-list{display:grid;gap:9px}.package-editor{border:1px solid var(--line);border-radius:12px;background:var(--surface2);overflow:hidden}.package-editor summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;cursor:pointer;list-style:none}.package-editor summary::-webkit-details-marker{display:none}.package-editor summary b{display:block;font-size:12px}.package-editor summary small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.package-editor[open] summary{border-bottom:1px solid var(--line);background:var(--surface)}.compact-form{padding:12px}.danger-inline{padding:0 12px 12px}.new-package summary{color:var(--green)}.revision-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}.revision-card{display:flex;justify-content:space-between;gap:10px;padding:10px 11px;border:1px solid var(--line);border-radius:11px;background:var(--surface2);font-size:10px}.revision-card span{color:var(--muted)}.revision-card b{color:var(--green)}.invoice-preview{border:1px dashed color-mix(in srgb,var(--green) 50%,var(--line));border-top:3px solid var(--preview-accent,var(--green));border-radius:12px;padding:14px;background:var(--surface2);text-align:center;display:grid;gap:4px}.invoice-preview b{font-size:13px}.invoice-preview span{font-size:11px}.invoice-preview small{color:var(--muted)}.wrap-code{white-space:normal;word-break:break-word}.action-details{position:relative}.action-details>summary{list-style:none}.action-details>summary::-webkit-details-marker{display:none}.action-details[open] .mini-form{display:grid}.mini-form{position:absolute;right:0;top:calc(100% + 7px);width:min(320px,80vw);z-index:40;background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:10px;box-shadow:0 18px 50px rgba(12,31,21,.18);gap:8px}.mini-form input,.mini-form select{width:100%;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:9px;padding:8px;font-size:11px}.status.low{background:var(--surface2);color:var(--muted)}.status.normal,.status.open{background:#e7f0ff;color:#2857a6}.status.high,.status.pending{background:#fff3ce;color:#8a6100}.status.urgent,.status.closed{background:#ffe8eb;color:#a62132}.status.resolved{background:#dff7e9;color:#08723f}
@media(max-width:900px){.feature-hero{align-items:flex-start}.checklist-grid{grid-template-columns:1fr}.revision-grid{grid-template-columns:1fr}.grid-2{grid-template-columns:1fr!important}.mini-form{position:fixed;left:10px;right:10px;top:auto;bottom:10px;width:auto;max-height:70dvh;overflow:auto}}
@media(max-width:600px){.feature-hero{padding:14px;display:block}.feature-hero .security-badge{margin-top:10px}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.package-editor summary{align-items:flex-start}.check-card{min-height:46px}}


/* v1.6.1 ultra-premium navigation + restored invoice footer template studio */
@media(min-width:1051px){.sidebar{width:282px;padding:18px 14px;background:radial-gradient(circle at 14% 0,rgba(39,200,120,.16),transparent 25%),linear-gradient(180deg,#081a12 0%,#07160f 42%,#06120d 100%);border-right:1px solid rgba(129,244,181,.09)}.workspace{margin-left:282px;width:calc(100% - 282px)}}
.premium-nav{display:grid;gap:3px}.premium-nav .nav-separator{height:1px;margin:7px 10px;background:linear-gradient(90deg,transparent,rgba(151,224,182,.16),transparent)}
.premium-nav a{position:relative;display:flex;align-items:center;gap:11px;min-height:52px;padding:7px 9px;border:1px solid transparent;border-radius:15px;color:#c9ddd1;background:transparent;overflow:hidden;isolation:isolate;transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease}
.premium-nav a:before{content:"";position:absolute;inset:0;z-index:-1;opacity:0;background:linear-gradient(115deg,rgba(52,224,139,.16),rgba(31,112,72,.05) 60%,transparent);transition:opacity .16s ease}.premium-nav a:hover:before,.premium-nav a.active:before{opacity:1}.premium-nav a:hover{border-color:rgba(118,226,167,.11);color:#f4fff8}.premium-nav a.active{border-color:rgba(72,223,145,.28);color:#fff;box-shadow:inset 3px 0 0 #2bd47d,0 9px 28px rgba(0,0,0,.12)}
.premium-nav .nav-icon{width:36px;height:36px;flex:0 0 36px;border-radius:12px;display:grid;place-items:center;color:#9dd8b6;background:linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.055);box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}.premium-nav .nav-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.premium-nav a.active .nav-icon{color:#fff;background:linear-gradient(145deg,#25cf78,#0a7d48);border-color:rgba(116,255,180,.28);box-shadow:0 7px 20px rgba(21,181,100,.26),inset 0 1px 0 rgba(255,255,255,.18)}
.premium-nav .nav-copy{display:block!important;min-width:0;flex:1}.premium-nav .nav-copy b{display:block;font-size:12.5px;line-height:1.12;font-weight:780;letter-spacing:-.01em}.premium-nav .nav-copy small{display:block;margin-top:4px;color:#729883;font-size:9.5px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.premium-nav a:hover .nav-copy small,.premium-nav a.active .nav-copy small{color:#9ccbb0}.premium-nav .nav-chevron{display:block!important;flex:0 0 auto;color:#4c705c;font-size:19px;line-height:1;transition:transform .16s ease,color .16s ease}.premium-nav a:hover .nav-chevron,.premium-nav a.active .nav-chevron{transform:translateX(2px);color:#62dc98}
.sidebar-foot{margin-top:16px;padding:14px 11px;border-top:1px solid rgba(255,255,255,.07);color:#729783}.owner-badge{border-radius:13px;background:linear-gradient(90deg,rgba(39,213,126,.11),rgba(39,213,126,.035));box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
@media(max-width:1050px) and (min-width:901px){.premium-nav .nav-copy,.premium-nav .nav-chevron,.premium-nav .nav-separator{display:none!important}.premium-nav a{justify-content:center;padding:8px}.premium-nav .nav-icon{width:38px;height:38px;flex-basis:38px}}
@media(max-width:900px){.sidebar .premium-nav .nav-copy,.sidebar .premium-nav .nav-chevron{display:block!important}.sidebar .premium-nav .nav-copy{flex:1}.sidebar .premium-nav .nav-chevron{display:block!important}.sidebar .premium-nav .nav-separator{display:block!important}.sidebar .premium-nav a{min-height:50px;padding:6px 8px!important}.sidebar .premium-nav .nav-icon{width:34px;height:34px;flex-basis:34px}.sidebar .premium-nav .nav-copy small{white-space:normal}.sidebar-foot{margin-top:10px}}

.branding-studio{display:grid;gap:14px}.branding-template-card{overflow:visible}.footer-template-grid{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:10px}.footer-template-choice{position:relative;display:grid;grid-template-rows:74px auto;gap:9px;padding:10px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,var(--surface),var(--surface2));cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.footer-template-choice:hover{border-color:color-mix(in srgb,var(--green) 42%,var(--line));box-shadow:0 10px 26px rgba(20,72,43,.08)}.footer-template-choice.selected{border-color:var(--green);box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 12%,transparent),0 12px 28px rgba(20,72,43,.10)}.footer-template-choice>input{position:absolute;opacity:0;pointer-events:none}.footer-template-thumb{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:8px;border-radius:10px;background:#fff;border:1px solid #e2e8f0;color:#1f2937;--thumb-accent:#0f766e}.footer-template-choice.selected .footer-template-thumb{--thumb-accent:var(--green)}.thumb-copy{width:100%;text-align:center;font-size:8px;line-height:1.2}.thumb-copy b,.thumb-copy small{display:block}.thumb-copy small{margin-top:4px;color:#64748b}.template-choice-copy{min-width:0}.template-choice-copy b{display:block;font-size:10.5px}.template-choice-copy small{display:block;margin-top:3px;color:var(--muted);font-size:8.5px;line-height:1.3}.template-check{position:absolute;right:8px;top:8px;width:20px;height:20px;border-radius:999px;display:grid;place-items:center;background:var(--green);color:#fff;font-style:normal;font-size:10px;font-weight:900;opacity:0;transform:scale(.8)}.footer-template-choice.selected .template-check{opacity:1;transform:scale(1)}
.footer-template-choice.template-brand_bar .footer-template-thumb{border-top:4px solid var(--thumb-accent);background:#f1fbf6}.footer-template-choice.template-double_line .footer-template-thumb{border-top:3px double var(--thumb-accent);border-bottom:3px double var(--thumb-accent)}.footer-template-choice.template-compact_box .footer-template-thumb{border:2px solid var(--thumb-accent)}.footer-template-choice.template-accent_strip .footer-template-thumb{border-left:6px solid var(--thumb-accent);background:#f5fbf8}.footer-template-choice.template-soft_card .footer-template-thumb{border-radius:999px;background:#f0faf5}.footer-template-choice.template-split_brand .footer-template-thumb{border-top:2px solid var(--thumb-accent);justify-content:flex-start}.footer-template-choice.template-split_brand .thumb-copy{text-align:left}.footer-template-choice.template-contact_chip .footer-template-thumb:after{content:"CONTACT";position:absolute;right:7px;bottom:7px;padding:2px 6px;border:1px solid var(--thumb-accent);border-radius:999px;color:var(--thumb-accent);font-size:6px;font-weight:900}.footer-template-choice.template-ledger_rule .footer-template-thumb{border-top:1px solid var(--thumb-accent);border-bottom:1px solid var(--thumb-accent)}.footer-template-choice.template-dark_band .footer-template-thumb{background:var(--thumb-accent);color:#fff;border-color:var(--thumb-accent)}.footer-template-choice.template-dark_band .thumb-copy small{color:#d8fff0}
.branding-control-grid{align-items:start}.branding-preview-card{overflow:visible}.invoice-paper-preview{min-height:230px;padding:28px 24px 22px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 18px 50px rgba(15,23,42,.08);color:#111827}.invoice-paper-lines{display:grid;gap:10px;margin-bottom:55px}.invoice-paper-lines span{height:8px;border-radius:999px;background:#edf1ef}.invoice-paper-lines span:nth-child(1){width:68%}.invoice-paper-lines span:nth-child(2){width:92%}.invoice-paper-lines span:nth-child(3){width:48%}.central-footer-preview{width:100%;padding:7px 9px;white-space:pre-line;break-inside:avoid;display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;transition:none}.central-footer-preview.layout-stacked{display:grid;gap:3px}.central-footer-preview.layout-boxed,.central-footer-preview.border-boxed{border:1px solid var(--footer-accent);border-radius:8px}.central-footer-preview.border-top{border-top:1px solid var(--footer-accent)}.central-footer-preview.border-double{border-top:3px double var(--footer-accent);border-bottom:3px double var(--footer-accent)}.central-footer-preview.template-brand_bar{border-top:3px solid var(--footer-accent);background:color-mix(in srgb,var(--footer-accent) 7%,#fff);border-radius:0 0 8px 8px}.central-footer-preview.template-double_line{border-top:3px double var(--footer-accent);border-bottom:3px double var(--footer-accent)}.central-footer-preview.template-compact_box{border:1.5px solid var(--footer-accent);border-radius:8px}.central-footer-preview.template-accent_strip{border-left:5px solid var(--footer-accent);background:color-mix(in srgb,var(--footer-accent) 6%,#fff);justify-content:flex-start}.central-footer-preview.template-soft_card{border:1px solid color-mix(in srgb,var(--footer-accent) 30%,#dce6e0);border-radius:999px;background:color-mix(in srgb,var(--footer-accent) 7%,#fff);padding:7px 14px}.central-footer-preview.template-split_brand{border-top:2px solid var(--footer-accent);justify-content:flex-start}.central-footer-preview.template-split_brand .preview-software{margin-left:auto}.central-footer-preview.template-contact_chip .preview-contact{display:inline-flex;padding:2px 8px;border:1px solid var(--footer-accent);border-radius:999px;color:var(--footer-accent);font-weight:800}.central-footer-preview.template-ledger_rule{border-top:1px solid var(--footer-accent);border-bottom:1px solid var(--footer-accent)}.central-footer-preview.template-dark_band{background:var(--footer-accent);color:#fff;border-radius:7px}.central-footer-preview.template-dark_band *{color:#fff}.preview-separator{font-style:normal;opacity:.55}.premium-save{min-height:40px;border-radius:11px;padding-inline:14px}.authority-notice{display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:center;margin-bottom:14px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--green) 22%,var(--line));border-radius:14px;background:linear-gradient(120deg,color-mix(in srgb,var(--green2) 72%,var(--surface)),var(--surface));box-shadow:0 8px 24px rgba(20,72,43,.04)}.authority-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,#24c878,#087843);color:#fff;font-weight:900}.authority-notice b{font-size:11px}.authority-notice p{margin:3px 0 0;color:var(--muted);font-size:9.5px;line-height:1.45}.authority-state{border-radius:999px;padding:5px 8px;background:var(--green2);color:var(--green);font-size:8px;font-weight:900;white-space:nowrap}
@media(max-width:1280px){.footer-template-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}}
@media(max-width:900px){.footer-template-grid{grid-template-columns:repeat(2,minmax(130px,1fr))}.authority-notice{grid-template-columns:auto 1fr}.authority-state{grid-column:2}}
@media(max-width:520px){.footer-template-grid{grid-template-columns:1fr}.footer-template-choice{grid-template-columns:88px 1fr;grid-template-rows:auto;align-items:center}.footer-template-thumb{height:64px}.template-check{right:8px;top:50%;transform:translateY(-50%) scale(.8)}.footer-template-choice.selected .template-check{transform:translateY(-50%) scale(1)}.invoice-paper-preview{padding:18px 12px}.central-footer-preview{font-size:9px!important}.authority-notice{grid-template-columns:1fr}.authority-icon{display:none}.authority-state{grid-column:auto;justify-self:start}}


/* v1.6.2 compact premium sidebar + five new Ultra Premium footer templates + per-business assignment */
@media(min-width:1051px){
  .sidebar{padding:13px 12px 11px!important;overflow-y:auto;scrollbar-width:thin}
  .brand{padding:3px 7px 10px!important}.brandmark{width:38px;height:38px;border-radius:12px}.brand b{font-size:16px}.brand small{font-size:10px}
  .owner-badge{margin:0 6px 8px!important;padding:7px 9px!important;font-size:10.5px!important}
  .premium-nav{gap:1px!important}.premium-nav .nav-separator{margin:3px 10px!important}
  .premium-nav a{min-height:43px!important;padding:4px 8px!important;gap:9px!important;border-radius:13px!important}
  .premium-nav .nav-icon{width:31px!important;height:31px!important;flex-basis:31px!important;border-radius:10px!important}.premium-nav .nav-icon svg{width:16px!important;height:16px!important}
  .premium-nav .nav-copy b{font-size:11.6px!important;line-height:1.05!important}.premium-nav .nav-copy small{font-size:8.4px!important;line-height:1.05!important;margin-top:2px!important}
  .premium-nav .nav-chevron{font-size:16px!important}.sidebar-foot{margin-top:8px!important;padding:8px 9px!important;font-size:9.5px!important;line-height:1.25}
}
@media(min-width:1051px) and (max-height:820px){
  .sidebar{padding-top:10px!important}.brand{padding-bottom:7px!important}.brandmark{width:35px;height:35px}.owner-badge{margin-bottom:6px!important}
  .premium-nav a{min-height:39px!important;padding:3px 7px!important}.premium-nav .nav-icon{width:29px!important;height:29px!important;flex-basis:29px!important}.premium-nav .nav-copy b{font-size:11.2px!important}.premium-nav .nav-copy small{font-size:8px!important}.premium-nav .nav-separator{margin:2px 10px!important}.sidebar-foot{margin-top:5px!important;padding-top:6px!important}
}
@media(max-width:900px){.sidebar .premium-nav a{min-height:43px!important;padding:4px 7px!important}.sidebar .premium-nav .nav-icon{width:31px!important;height:31px!important;flex-basis:31px!important}.sidebar .premium-nav .nav-copy b{font-size:11.4px!important}.sidebar .premium-nav .nav-copy small{font-size:8.4px!important;margin-top:2px!important}.sidebar .premium-nav .nav-separator{margin:3px 9px!important}}

.footer-template-choice.template-aurora_glass .footer-template-thumb{border-color:color-mix(in srgb,var(--thumb-accent) 24%,#e2e8f0);background:linear-gradient(135deg,color-mix(in srgb,var(--thumb-accent) 10%,#fff),#fff 62%,color-mix(in srgb,var(--thumb-accent) 7%,#fff));box-shadow:inset 0 0 0 1px rgba(255,255,255,.9),0 5px 18px rgba(15,118,110,.08)}
.footer-template-choice.template-aurora_glass .footer-template-thumb:before{content:"";position:absolute;inset:5px;border:1px solid color-mix(in srgb,var(--thumb-accent) 22%,transparent);border-radius:8px;pointer-events:none}
.footer-template-choice.template-signature_luxe .footer-template-thumb{border:0;border-bottom:2px solid var(--thumb-accent);border-radius:10px 10px 2px 2px;background:linear-gradient(180deg,#fff,#fbfdfc)}
.footer-template-choice.template-signature_luxe .footer-template-thumb:after{content:"SIGNATURE";position:absolute;left:50%;bottom:5px;transform:translateX(-50%);font-size:5px;letter-spacing:.18em;color:var(--thumb-accent);font-weight:900}
.footer-template-choice.template-emerald_ribbon .footer-template-thumb{background:linear-gradient(135deg,color-mix(in srgb,var(--thumb-accent) 9%,#fff),#fff);border-color:color-mix(in srgb,var(--thumb-accent) 28%,#e2e8f0)}
.footer-template-choice.template-emerald_ribbon .footer-template-thumb:before{content:"";position:absolute;left:-16px;top:10px;width:70px;height:10px;transform:rotate(-28deg);background:linear-gradient(90deg,var(--thumb-accent),color-mix(in srgb,var(--thumb-accent) 55%,#fff));opacity:.9}
.footer-template-choice.template-executive_mono .footer-template-thumb{background:#f8faf9;border:1px solid #202b25;border-top:4px solid #202b25}.footer-template-choice.template-executive_mono .thumb-copy b{color:#0f1712}.footer-template-choice.template-executive_mono .footer-template-thumb:after{content:"◆";position:absolute;right:7px;top:7px;color:var(--thumb-accent);font-size:7px}
.footer-template-choice.template-halo_frame .footer-template-thumb{border:1px solid color-mix(in srgb,var(--thumb-accent) 50%,#dbe7df);box-shadow:inset 0 0 0 4px #fff,inset 0 0 0 5px color-mix(in srgb,var(--thumb-accent) 24%,#e2e8f0);background:color-mix(in srgb,var(--thumb-accent) 4%,#fff)}

.central-footer-preview.template-aurora_glass{border:1px solid color-mix(in srgb,var(--footer-accent) 25%,#dce8e1);border-radius:12px;background:linear-gradient(135deg,color-mix(in srgb,var(--footer-accent) 8%,#fff),rgba(255,255,255,.96));box-shadow:inset 0 0 0 1px rgba(255,255,255,.9),0 8px 24px color-mix(in srgb,var(--footer-accent) 10%,transparent);padding:9px 13px}
.central-footer-preview.template-signature_luxe{position:relative;border-bottom:2px solid var(--footer-accent);padding:9px 12px 12px}.central-footer-preview.template-signature_luxe:after{content:"BUZKEY SIGNATURE";position:absolute;left:50%;bottom:-5px;transform:translateX(-50%);padding:0 8px;background:#fff;color:var(--footer-accent);font-size:6px;font-weight:900;letter-spacing:.18em}
.central-footer-preview.template-emerald_ribbon{position:relative;overflow:hidden;border:1px solid color-mix(in srgb,var(--footer-accent) 26%,#dfe8e3);border-radius:9px;background:linear-gradient(135deg,color-mix(in srgb,var(--footer-accent) 7%,#fff),#fff);padding-left:20px}.central-footer-preview.template-emerald_ribbon:before{content:"";position:absolute;left:-12px;top:-18px;width:18px;height:70px;transform:rotate(28deg);background:linear-gradient(180deg,var(--footer-accent),color-mix(in srgb,var(--footer-accent) 45%,#fff))}
.central-footer-preview.template-executive_mono{border-top:4px solid #17231c;border-bottom:1px solid #17231c;background:#fafcfb;color:#162019;padding:9px 10px}.central-footer-preview.template-executive_mono .preview-software{color:var(--footer-accent)}
.central-footer-preview.template-halo_frame{border:1px solid color-mix(in srgb,var(--footer-accent) 45%,#dce8e1);border-radius:12px;box-shadow:inset 0 0 0 4px #fff,inset 0 0 0 5px color-mix(in srgb,var(--footer-accent) 22%,#dce8e1);padding:12px 14px;background:color-mix(in srgb,var(--footer-accent) 3%,#fff)}

.business-template-card{overflow:visible}.business-template-layout{display:grid;grid-template-columns:minmax(360px,.8fr) minmax(0,1.2fr);gap:14px;align-items:start}.business-template-form{display:grid;grid-template-columns:1.2fr 1.2fr auto;gap:10px;align-items:end;padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--surface2)}.business-template-form select{width:100%;min-height:38px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);padding:8px 10px}.business-template-action .btn{min-height:38px;white-space:nowrap}.business-template-summary{min-width:0}.assignment-grid{display:grid;gap:6px;max-height:270px;overflow:auto;padding-right:3px}.assignment-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}.assignment-row>span:first-child{min-width:0}.assignment-row b{display:block;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.assignment-row small{display:block;margin-top:2px;color:var(--muted);font-size:8.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.assignment-template{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:var(--green2);color:var(--green);font-size:8.5px;font-weight:900}.assignment-template i{width:6px;height:6px;border-radius:50%;background:currentColor}.assignment-template.inherited{background:var(--surface2);color:var(--muted);border:1px solid var(--line)}.compact-empty{min-height:90px!important}.compact-empty span{font-size:9px}
@media(max-width:1100px){.business-template-layout{grid-template-columns:1fr}.business-template-form{grid-template-columns:1fr 1fr auto}}
@media(max-width:720px){.business-template-form{grid-template-columns:1fr}.business-template-action label{display:none}.assignment-row{align-items:flex-start;flex-direction:column}.assignment-template{align-self:flex-start}}


/* v1.6.3 - compact responsive shell + single-line premium sidebar + live branding studio */
.premium-nav .nav-copy small{display:none!important}.premium-nav .nav-copy{display:flex!important;align-items:center!important;min-width:0;min-height:30px}.premium-nav .nav-copy b{margin:0!important;line-height:1!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.premium-nav a{min-height:39px!important;padding:4px 8px!important;gap:8px!important}.premium-nav .nav-icon{align-self:center}.premium-nav .nav-chevron{align-self:center}.premium-nav .nav-separator{margin:2px 10px!important}

/* Global compact density without changing the existing visual language */
.content{max-width:1520px!important;padding:14px 18px 26px!important}.topbar{height:62px!important;padding:0 18px!important}.content{height:calc(100dvh - 62px)!important;min-height:0!important}.topbar h1{font-size:17px!important}.topbar p{font-size:10px!important;margin-top:2px!important}.metric-grid{gap:9px!important;margin-bottom:10px!important}.metric{padding:12px 13px!important;border-radius:14px!important}.metric strong{font-size:23px!important;margin-top:3px!important}.metric small{font-size:10px!important}.grid-2,.grid-3,.security-grid{gap:10px!important}.card{border-radius:14px!important;margin-bottom:10px!important}.card-head{padding:11px 13px!important;gap:10px!important}.card-head h2,.card-head h3{font-size:13.5px!important}.card-head p{font-size:9.5px!important;margin-top:3px!important;line-height:1.4}.card-body{padding:11px 13px!important}.form-grid{gap:8px!important}.field{gap:3px!important}.field label{font-size:9.5px!important}.field input:not([type="color"]),.field select,.field textarea,.toolbar input,.toolbar select{min-height:34px!important;padding:7px 9px!important;font-size:11px!important;border-radius:9px!important}.field textarea{min-height:58px!important}.switch-row{padding:8px 9px!important;font-size:10px!important}.switch-row small{font-size:9px!important}.toolbar{gap:6px!important}.btn{padding:7px 9px!important;font-size:10px!important;border-radius:9px!important}.table-wrap{max-width:100%;overflow:auto;overscroll-behavior-inline:contain}th{padding:7px 9px!important;font-size:9px!important}td{padding:8px 9px!important;font-size:11px!important}td small{font-size:9px!important}.status{padding:4px 7px!important;font-size:8.5px!important}.detail-hero{padding:15px 16px!important;margin-bottom:10px!important;border-radius:15px!important}.kv{padding:7px 0!important;gap:8px!important;font-size:11px!important}.health{padding:9px 10px!important}.empty{padding:22px 12px!important}.feature-hero{margin-bottom:10px!important;padding:13px 15px!important;border-radius:14px!important}.feature-hero h2{font-size:16px!important;margin:2px 0 4px!important}.feature-hero p{font-size:9.8px!important}.security-tile{min-height:76px!important;padding:10px!important}.package-list,.selector-list{gap:6px!important}.package-editor summary{padding:9px 10px!important}.compact-form{padding:9px 10px!important}.revision-grid{gap:6px!important;margin-bottom:9px!important}.revision-card{padding:8px 9px!important}

/* Premium Invoice Footer Studio */
.premium-branding-studio{gap:10px!important}.branding-hero-premium{position:relative;overflow:hidden;background:linear-gradient(125deg,color-mix(in srgb,var(--green) 9%,var(--surface)),var(--surface) 48%,color-mix(in srgb,var(--green2) 55%,var(--surface)));border-color:color-mix(in srgb,var(--green) 18%,var(--line))}.branding-hero-premium:after{content:"";position:absolute;width:150px;height:150px;border-radius:50%;right:-55px;top:-78px;background:color-mix(in srgb,var(--green) 10%,transparent);pointer-events:none}.branding-hero-actions{display:flex;align-items:center;gap:7px;position:relative;z-index:1}.hero-save{white-space:nowrap;min-height:34px!important}.branding-main-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(330px,.55fr);gap:10px;align-items:start}.branding-main-grid>.card{margin-bottom:0!important}.branding-card-head{align-items:center!important}.branding-template-card .card-body{padding:10px!important}.footer-template-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.footer-template-choice{grid-template-rows:58px auto!important;gap:6px!important;padding:7px!important;border-radius:12px!important;min-width:0}.footer-template-thumb{padding:6px!important;border-radius:8px!important}.thumb-copy{font-size:7px!important}.thumb-copy small{margin-top:2px!important}.template-choice-copy b{font-size:9.5px!important;line-height:1.15}.template-choice-copy small{font-size:7.5px!important;line-height:1.25;margin-top:2px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.template-check{width:18px!important;height:18px!important;right:6px!important;top:6px!important}.premium-preview-card{background:linear-gradient(180deg,var(--surface),color-mix(in srgb,var(--green2) 22%,var(--surface)));border-color:color-mix(in srgb,var(--green) 15%,var(--line))!important}.preview-card-body{padding:10px!important}.preview-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px;font-size:8.5px;color:var(--muted)}.preview-meta b{color:var(--green);font-size:9.5px}.live-preview-dot{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:999px;background:#e4f8ed;color:#0a7c48;font-size:8px;font-weight:900;letter-spacing:.08em}.live-preview-dot:before{content:"";width:6px;height:6px;border-radius:50%;background:#24c878;box-shadow:0 0 0 3px rgba(36,200,120,.12)}.invoice-paper-preview{min-height:250px!important;padding:18px 16px 15px!important;border-radius:13px!important;box-shadow:0 12px 34px rgba(15,23,42,.07)!important}.invoice-paper-brand{display:flex;align-items:center;justify-content:space-between;color:#1f2937;margin-bottom:14px}.invoice-paper-brand span{font-size:9px;font-weight:900;letter-spacing:.05em}.invoice-paper-brand small{font-size:7px;color:#94a3b8}.invoice-paper-lines{gap:7px!important;margin-bottom:38px!important}.invoice-paper-lines span{height:6px!important}.preview-hint{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:7px;color:var(--muted);font-size:8px}.preview-hint span{width:6px;height:6px;border-radius:50%;background:var(--warning)}.premium-control-grid{gap:10px!important}.compact-control-card .card-body{padding:10px 11px!important}.compact-form-grid{gap:7px!important}.premium-business-assignment{margin-top:10px!important}.business-template-layout{gap:10px!important}.business-template-form{padding:9px!important;gap:7px!important;border-radius:11px!important}.business-template-form select{min-height:34px!important;padding:6px 8px!important;font-size:10px!important}.business-template-action .btn{min-height:34px!important}.assignment-grid{gap:5px!important;max-height:220px!important}.assignment-row{padding:7px 8px!important;border-radius:9px!important}.assignment-row b{font-size:9.8px!important}.assignment-row small{font-size:8px!important}.assignment-template{padding:4px 7px!important;font-size:8px!important}

@media(max-width:1240px){.branding-main-grid{grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr)}.footer-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:1050px) and (min-width:901px){.premium-nav .nav-copy{display:none!important}.content{padding-inline:14px!important}}
@media(max-width:900px){.topbar{height:58px!important;padding:0 11px!important}.content{height:calc(100dvh - 58px)!important;padding:10px 11px 20px!important}.sidebar .premium-nav .nav-copy{display:flex!important}.sidebar .premium-nav .nav-copy small{display:none!important}.sidebar .premium-nav a{min-height:39px!important;padding:4px 7px!important}.branding-main-grid{grid-template-columns:1fr}.footer-template-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.branding-hero-actions{margin-top:8px}.business-template-layout{grid-template-columns:1fr!important}.business-template-form{grid-template-columns:1fr 1fr auto!important}.card-head{padding:10px 11px!important}.card-body{padding:10px 11px!important}}
@media(max-width:700px){.content{padding:8px 8px 16px!important}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metric{padding:10px!important}.metric strong{font-size:20px!important}.footer-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.branding-hero-premium{display:block!important}.branding-hero-actions{justify-content:space-between}.premium-control-grid{grid-template-columns:1fr!important}.business-template-form{grid-template-columns:1fr!important}.business-template-action label{display:none!important}.toolbar input{min-width:0!important;width:100%}.toolbar>*{max-width:100%}.feature-hero{padding:11px 12px!important}.invoice-paper-preview{min-height:215px!important;padding:15px 11px 12px!important}}
@media(max-width:480px){.top-title p,.chip.key{display:none!important}.topbar h1{font-size:14px!important}.content{padding:7px!important}.metric-grid{gap:6px!important}.metric{border-radius:12px!important}.card{border-radius:12px!important;margin-bottom:7px!important}.card-head{padding:9px 10px!important}.card-body{padding:9px 10px!important}.footer-template-grid{grid-template-columns:1fr!important}.footer-template-choice{grid-template-columns:78px minmax(0,1fr)!important;grid-template-rows:auto!important;align-items:center}.footer-template-thumb{height:54px!important}.template-choice-copy small{-webkit-line-clamp:1}.branding-hero-actions{align-items:stretch;flex-direction:column}.hero-save{width:100%}.invoice-paper-preview{min-height:190px!important}.central-footer-preview{font-size:8.5px!important}.preview-hint{font-size:7.5px}.business-template-form{padding:8px!important}}

/* v1.6.7 - five-row vertical template gallery + wider live preview */
.branding-main-grid{grid-template-columns:minmax(300px,.68fr) minmax(560px,1.32fr)!important;gap:12px!important;align-items:start!important}
.branding-template-card{position:sticky;top:0;overflow:hidden!important}
.template-gallery-body{padding:9px!important}
.footer-template-grid{display:grid!important;grid-template-columns:1fr!important;grid-auto-rows:76px!important;gap:7px!important;max-height:659px!important;overflow-y:auto!important;overflow-x:hidden!important;padding:1px 7px 1px 1px!important;scrollbar-gutter:stable;overscroll-behavior:contain;scroll-snap-type:y proximity}
.footer-template-grid::-webkit-scrollbar{width:8px}.footer-template-grid::-webkit-scrollbar-track{background:var(--surface2);border-radius:999px}.footer-template-grid::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--green) 42%,var(--line));border:2px solid var(--surface2);border-radius:999px}.footer-template-grid{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--green) 42%,var(--line)) var(--surface2)}
.footer-template-choice{height:76px!important;min-height:76px!important;display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;grid-template-rows:1fr!important;align-items:center!important;gap:11px!important;padding:7px 34px 7px 7px!important;scroll-snap-align:start}
.footer-template-thumb{width:112px!important;height:60px!important;padding:7px!important}.template-choice-copy b{font-size:10.5px!important}.template-choice-copy small{font-size:8.5px!important;-webkit-line-clamp:2!important}.template-check{right:9px!important;top:50%!important;transform:translateY(-50%) scale(.8)!important}.footer-template-choice.selected .template-check{transform:translateY(-50%) scale(1)!important}
.branding-right-stack{min-width:0;display:grid;gap:10px;align-content:start}.premium-preview-card{width:100%;min-width:0}.premium-preview-card .invoice-paper-preview{min-height:285px!important;padding:22px 22px 18px!important}.premium-preview-card .invoice-paper-lines{margin-bottom:50px!important}
.branding-right-stack .premium-control-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:0!important;align-items:start!important}.branding-right-stack .compact-control-card{margin:0!important;align-self:start!important}.branding-right-stack .compact-control-card .card-head{min-height:58px!important}.branding-right-stack .compact-control-card .card-body{padding:10px 11px!important}
@media(max-width:1280px){.branding-main-grid{grid-template-columns:minmax(280px,.72fr) minmax(480px,1.28fr)!important}.branding-right-stack .premium-control-grid{grid-template-columns:1fr 1fr!important}}
@media(max-width:1050px){.branding-main-grid{grid-template-columns:minmax(260px,.78fr) minmax(420px,1.22fr)!important}.branding-right-stack .premium-control-grid{grid-template-columns:1fr!important}.branding-template-card{position:static}}
@media(max-width:900px){.branding-main-grid{grid-template-columns:1fr!important}.footer-template-grid{max-height:659px!important;grid-template-columns:1fr!important}.branding-right-stack .premium-control-grid{grid-template-columns:1fr 1fr!important}.premium-preview-card .invoice-paper-preview{min-height:250px!important}}
@media(max-width:700px){.branding-right-stack .premium-control-grid{grid-template-columns:1fr!important}.footer-template-choice{grid-template-columns:96px minmax(0,1fr)!important}.footer-template-thumb{width:96px!important}}
@media(max-width:480px){.footer-template-grid{grid-auto-rows:68px!important;max-height:595px!important}.footer-template-choice{height:68px!important;min-height:68px!important;grid-template-columns:76px minmax(0,1fr)!important;padding-right:31px!important}.footer-template-thumb{width:76px!important;height:52px!important}.template-choice-copy small{-webkit-line-clamp:1!important}}

/* v1.6.8 - production-polished identity and server-synchronised clock */
.premium-secure-chip{padding:7px 11px!important;background:linear-gradient(135deg,color-mix(in srgb,var(--green2) 88%,var(--surface)),var(--surface));border:1px solid color-mix(in srgb,var(--green) 20%,var(--line));box-shadow:0 6px 18px rgba(19,112,67,.06);letter-spacing:.02em}.server-clock{display:inline-flex;align-items:center;min-height:32px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface2);color:var(--muted);font-size:10px;font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap}.owner-badge{font-weight:750;letter-spacing:.01em}
@media(max-width:1180px){.server-clock{display:none}}
@media(max-width:600px){.premium-secure-chip{display:none!important}}
