:root{color-scheme:dark;--bg:#090b10;--bg2:#11151e;--card:#151a24;--card2:#1a202c;--border:#29313f;--gold:#ff9d36;--gold2:#e86a1b;--text:#f5f6f9;--muted:#9da5b2;--red:#f26964;--green:#60d69f;font-family:Inter,'Arial Narrow',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-synthesis:none}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;background:radial-gradient(circle at 12% -12%,#292015 0,transparent 27%),var(--bg);color:var(--text);min-height:100dvh;overscroll-behavior-y:none}body,button,input,textarea{font-family:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}a{color:inherit;text-decoration:none}input,textarea{font-size:16px}h1,h2,h3,p{margin-top:0}.shell{min-height:100dvh;max-width:1140px;margin:auto;padding:0 26px}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff10}.brand{background:none;border:0;color:white;display:flex;align-items:center;gap:12px;text-align:left;padding:0}.brand>span:last-child{display:flex;flex-direction:column;gap:1px}.brand strong{font-size:18px;letter-spacing:3px;font-weight:900;line-height:1}.brand small{font-size:9px;letter-spacing:3px;color:var(--gold);font-weight:700}.brand-icon,.logo-mark{width:46px;height:46px;background:linear-gradient(145deg,#e77c27,#ffb054);color:#0a0c11;display:grid;place-items:center;font-size:29px;font-weight:1000;font-style:italic;letter-spacing:-5px;clip-path:polygon(0 0,100% 0,100% 78%,77% 100%,0 100%);padding-right:5px;position:relative}.brand-icon span,.logo-mark span{font-size:13px;position:absolute;top:4px;right:6px;letter-spacing:0}.logo-mark.big{width:72px;height:72px;font-size:48px;margin-bottom:34px}.logo-mark.big span{font-size:19px;top:7px;right:9px}.top-right{display:flex;align-items:center;gap:13px}.online-dot,.pulse{width:7px;height:7px;background:#ff9b39;border-radius:50%;box-shadow:0 0 12px #ff9b3990;display:inline-block}.top-caption{font-size:10px;color:#afb4bb;letter-spacing:2px;font-weight:800}.circle-btn{height:38px;width:38px;border-radius:50%;background:#1b202a;border:1px solid #353b45;color:#cfd3d9;font-size:18px}.circle-btn:hover{color:var(--gold)}.content{padding-top:28px;padding-bottom:20px}.hero{background:linear-gradient(98deg,#1c222c 0%,#1b2028 52%,#352317 100%);border:1px solid #3e3a33;border-radius:17px;min-height:355px;position:relative;overflow:hidden;display:flex;align-items:center}.hero:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(135deg,transparent 0,transparent 37px,#ffffff08 38px,transparent 39px);mask-image:linear-gradient(to right,transparent 35%,black);z-index:0}.hero:after{content:'';position:absolute;left:0;bottom:0;width:100%;height:5px;background:linear-gradient(90deg,var(--gold),transparent 85%)}.hero-copy{padding:48px 0 49px 48px;position:relative;z-index:2;width:72%}.hero-eyebrow{color:var(--gold);font-size:10px;letter-spacing:2.8px;font-weight:900;display:flex;align-items:center;gap:9px;margin-bottom:23px}.hero h1{font-size:clamp(36px,5.4vw,65px);letter-spacing:-2.7px;line-height:.99;font-weight:1000;transform:scaleX(.93);transform-origin:left center;margin-bottom:21px}.hero h1 em,.login-content h1 em{font-style:normal;color:var(--gold)}.hero p{max-width:410px;font-size:14px;color:#ccd0d5;line-height:1.8}.hero-line{display:flex;align-items:center;gap:12px;margin-top:40px;color:#b9b4ae;font-size:9px;font-weight:800;letter-spacing:2px}.hero-line b{color:var(--gold);font-size:21px}.hero-woman{position:absolute;right:24px;bottom:0;width:36%;height:96%;background:url('./pinup.svg') center bottom/contain no-repeat;opacity:.88;filter:drop-shadow(-12px 0 40px #ff8a2033);z-index:1}.hero-grid{position:absolute;width:350px;height:350px;right:-130px;bottom:-200px;border:1px solid #ff952733;border-radius:50%;box-shadow:0 0 0 40px #ff952708,0 0 0 80px #ff952705}.section-kicker{display:flex;justify-content:space-between;align-items:center;margin:32px 0 14px;gap:12px}.section-kicker span:first-child{font-size:12px;font-weight:900;letter-spacing:2.6px;color:white}.section-kicker span:last-child{font-size:10px;letter-spacing:2px;color:#7e8898}.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tile{min-height:117px;text-align:left;display:flex;align-items:center;gap:16px;border:1px solid #2b313c;background:linear-gradient(110deg,#1a202a,#151922);border-radius:12px;padding:23px;position:relative;transition:border-color .2s,transform .2s;width:100%;color:var(--text)}.tile:hover{border-color:var(--gold);transform:translateY(-2px)}.tile-icon{width:56px;height:56px;display:grid;place-items:center;flex-shrink:0;background:#302b23;border:1px solid #5c442b;border-radius:11px;font-size:27px}.tile-copy{display:flex;flex-direction:column;gap:7px;min-width:0}.tile-copy strong{font-size:17px;font-weight:800;overflow-wrap:anywhere}.tile-copy small{font-size:9px;letter-spacing:1.6px;color:#8992a0;font-weight:800}.tile-arrow{margin-left:auto;color:var(--gold);font-size:21px}.tile-add{border:1px dashed #49423a;background:#13171e}.tile-add .tile-icon{background:#1b1c1e}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat-panel{border:1px solid var(--border);border-radius:12px;padding:25px;background:linear-gradient(145deg,#161b25,#10141c)}.stat-top{display:flex;justify-content:space-between;align-items:center;font-size:10px;font-weight:900;letter-spacing:1.8px;color:#a1adbd}.tiny-dot{width:5px;height:5px;background:var(--gold);border-radius:50%}.stat-number{font-weight:900;font-size:55px;line-height:1.2;letter-spacing:-2px;margin-top:15px}.red-text{color:var(--gold)}.stat-panel p{font-size:13px;color:#9ea6b0;margin:0 0 30px}.plain-link{border:0;border-top:1px solid #343b45;width:100%;background:none;color:var(--gold);font-weight:900;font-size:10px;letter-spacing:1.3px;display:flex;justify-content:space-between;padding:19px 0 0}.plain-link span{font-size:16px}.compact-list,.password-list,.setting-list{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#151a23}.compact-row,.password-row,.setting-row{min-height:77px;border:0;border-bottom:1px solid #303744;padding:16px 21px;width:100%;display:flex;align-items:center;justify-content:space-between;background:none;color:white;text-align:left}.compact-row:last-child,.password-row:last-child,.setting-row:last-child{border-bottom:0}.compact-row:hover,.password-row:hover{background:#222936}.compact-row>span:first-child,.password-row>span:nth-child(2){display:flex;flex-direction:column;gap:6px}.compact-row strong,.password-row strong{font-size:14px}.compact-row small,.password-row small{font-size:11px;color:#98a2ae}.tagline{text-align:center;margin:48px 0 14px;font-size:11px;color:#828b97;font-weight:900;letter-spacing:2px}.tagline span{color:var(--gold)}.footer{margin:24px 0 12px;padding:20px 0;border-top:1px solid #232832;color:#67717f;display:flex;justify-content:space-between;font-size:10px;letter-spacing:1.4px;font-weight:800}.bottom-nav{display:none}.page-heading{margin:15px 0 25px}.eyebrow{color:var(--gold);font-size:10px;letter-spacing:3px;font-weight:900;display:block;margin-bottom:13px}.page-heading h1{font-size:clamp(30px,4vw,46px);font-weight:1000;letter-spacing:-1.7px;margin-bottom:12px}.page-heading p{color:#a3acb7;line-height:1.65;max-width:580px;font-size:14px}.feature-strip{background:linear-gradient(105deg,#36261c,#1d2029);border:1px solid #654025;border-radius:13px;padding:22px 27px;display:flex;align-items:center;gap:20px}.feature-icon{font-size:38px}.feature-strip strong{font-size:16px;letter-spacing:2px;font-weight:1000}.feature-strip p{font-size:12px;margin:5px 0 0;color:#b6b5b5;line-height:1.6}.filter-strip{display:flex;justify-content:space-between;align-items:center;margin:26px 0 14px;gap:12px}.filter-strip>span{font-size:11px;letter-spacing:2px;font-weight:900;color:#aab2bc}.orange-btn,.ghost-btn{border:1px solid #f19840;display:inline-flex;align-items:center;justify-content:center;gap:9px;background:linear-gradient(120deg,#fb9b38,#e87a26);color:#100e0d;font-weight:1000;letter-spacing:1.1px;font-size:11px;border-radius:7px;padding:15px 20px;min-height:47px;box-shadow:0 6px 20px #e8781e18;white-space:normal;text-align:center}.orange-btn:hover{background:#ffb14f}.orange-btn.small,.ghost-btn.small{font-size:10px;min-height:37px;padding:9px 12px}.ghost-btn{background:#252b36;color:#d3d8de;border-color:#3d4755;box-shadow:none}.ghost-btn:hover{background:#353c49}.cert-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.cert-card{background:#151a23;border:1px solid #2d3541;border-radius:12px;padding:23px;min-width:0}.cert-card-top{display:flex;align-items:center;justify-content:space-between;gap:9px}.cert-category{font-size:10px;letter-spacing:2px;color:#a2aab6;font-weight:900;overflow-wrap:anywhere}.status{white-space:nowrap;border:1px solid #45505f;color:#bdc5ce;padding:6px 9px;border-radius:4px;font-size:9px;letter-spacing:.5px;font-weight:900}.status.good{background:#143329;color:#83e2b2;border-color:#285940}.status.warn{background:#3a2b16;color:#ffc467;border-color:#6d4b24}.status.bad{background:#3a2024;color:#ff8985;border-color:#653337}.cert-card h3{font-size:19px;margin:20px 0 7px;font-weight:900}.cert-issuer{color:#919da8;font-size:12px;min-height:14px}.cert-dates{display:grid;grid-template-columns:1fr 1fr;margin:25px 0 15px;gap:12px}.cert-dates div{background:#202633;border-radius:7px;padding:12px;display:flex;flex-direction:column;gap:7px}.cert-dates small{font-size:9px;color:#9faab8;letter-spacing:1px}.cert-dates strong{font-size:14px}.document-link{display:block;color:var(--gold);font-size:12px;overflow-wrap:anywhere;margin-bottom:13px}.card-actions{display:flex;justify-content:space-between;border-top:1px solid #2d3540;margin-top:12px;padding-top:13px}.card-actions button{background:none;border:0;color:#aab4c0;font-size:10px;font-weight:900;letter-spacing:1.4px;padding:5px}.card-actions button:hover{color:var(--gold)}.card-actions .danger-btn,.danger-btn{color:#ff8686!important}.empty-state{padding:70px 22px;text-align:center;border:1px dashed #394150;background:#131820;border-radius:13px}.empty-symbol{font-size:55px;color:var(--gold);margin-bottom:14px}.empty-state h3{font-size:18px;letter-spacing:1.1px}.empty-state p{color:#a0aab5;font-size:13px;line-height:1.8;max-width:470px;margin:0 auto 23px}.security-banner{background:#17241f;border:1px solid #315744;border-radius:10px;padding:18px 20px;display:flex;gap:15px;align-items:start}.security-emoji{font-size:23px}.security-banner strong{font-size:11px;letter-spacing:1.5px;color:#8bebbd}.security-banner p{font-size:12px;color:#a5b8b0;line-height:1.6;margin:8px 0 0}.security-note{font-size:12px;color:#87919b;line-height:1.6;margin:22px 0}.lock-panel{max-width:570px;margin:38px auto 25px;border:1px solid #333946;padding:36px;background:linear-gradient(150deg,#1c232e,#11151d);border-radius:16px;text-align:center}.lock-panel h2{font-size:22px;letter-spacing:1px}.lock-panel p{color:#aeb4be;font-size:13px;line-height:1.7;margin-bottom:24px}.lock-image{font-size:50px;color:var(--gold);margin-bottom:19px}.lock-panel form{display:flex;flex-direction:column;gap:13px;text-align:left}.lock-panel form .orange-btn{margin-top:8px}.lock-panel label,.stack-form label,.login-form label{font-size:10px;letter-spacing:1.3px;font-weight:800;color:#a5afba;display:flex;flex-direction:column;gap:10px}.lock-panel input,.stack-form input,.stack-form textarea,.login-form input{background:#0d1118;border:1px solid #384250;border-radius:7px;padding:13px 14px;color:#fff;width:100%;min-height:46px;outline:0;letter-spacing:normal;font-weight:500;resize:vertical}.lock-panel input:focus,.stack-form input:focus,.stack-form textarea:focus,.login-form input:focus{border-color:var(--gold)}.password-row{justify-content:initial;gap:16px;cursor:pointer}.password-row .tile-arrow{margin-left:auto}.password-logo{width:43px;height:43px;border:1px solid #76552d;border-radius:9px;background:#342a1d;color:var(--gold);display:grid;place-items:center;font-size:23px;font-weight:1000}.actions-inline{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.more-card{background:linear-gradient(145deg,#1e232e,#171a23);border:1px solid #343d4a;border-radius:13px;padding:27px;min-height:191px;color:#fff;display:flex;flex-direction:column;align-items:start;text-align:left;position:relative}.more-card span{font-size:32px;margin-bottom:auto}.more-card strong{font-size:17px;letter-spacing:1.5px;margin-bottom:7px}.more-card small{color:#98a2ad;font-size:10px;letter-spacing:1px}.more-card b{position:absolute;right:24px;top:25px;color:var(--gold)}.more-card:hover{border-color:var(--gold)}.setting-row{gap:16px;min-height:75px}.setting-icon{font-size:25px}.setting-row div{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}.setting-row strong{font-size:13px}.setting-row small{font-size:10px;color:#8b97a4;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.setting-row button{border:0;background:#29303d;color:#e0e4e9;width:34px;height:34px;border-radius:7px;font-size:17px}.notice{margin-top:24px;padding:23px;background:#1b212b;border:1px solid #343c48;border-radius:11px}.notice strong{font-size:12px;letter-spacing:1.2px}.notice p{color:#9da5b0;font-size:12px;line-height:1.7;margin:10px 0 0}.gallery-hero{background:linear-gradient(100deg,#411c22,#211b24 70%,#2d2025);border:1px solid #6a343b;border-radius:13px;padding:32px}.gallery-hero span{font-size:10px;letter-spacing:2px;color:#ff8b8b;font-weight:900}.gallery-hero h2{margin:17px 0 8px;font-size:27px}.gallery-hero p{font-size:12px;color:#c6abb0;margin:0}.upload-label{cursor:pointer}.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.photo-item{border:1px solid #323a47;background:#1c222d;border-radius:11px;overflow:hidden;padding:0;text-align:left;color:#aeb7c1;min-width:0}.photo-item img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}.photo-item span{padding:11px;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:11px}.modal-backdrop{position:fixed;inset:0;background:#030406e8;backdrop-filter:blur(8px);display:grid;place-items:center;z-index:100;padding:16px}.modal-dialog{background:#191f2a;border:1px solid #454e5b;border-radius:13px;width:100%;max-width:590px;max-height:min(92dvh,800px);overflow-y:auto;padding:32px;position:relative;box-shadow:0 24px 60px #000a}.modal-dialog h2{font-size:22px;letter-spacing:.5px;margin-bottom:26px;padding-right:22px}.modal-close{position:absolute;right:17px;top:11px;background:none;color:#aeb5c0;border:0;font-size:30px}.stack-form{display:flex;flex-direction:column;gap:17px}.stack-form label{line-height:1.4}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.file-section{padding:16px;background:#222b35;border-radius:8px}.file-section small{color:var(--muted);display:block;margin-top:12px}.hint{font-size:11px;color:#959faa}.two-buttons{display:flex;gap:11px;flex-wrap:wrap}.two-buttons>*{flex:1}.password-field{display:flex;align-items:center;position:relative}.password-field button{position:absolute;right:7px;background:#2d3441;border:0;color:var(--gold);border-radius:5px;padding:8px 10px;font-size:10px;font-weight:900}.password-field input{padding-right:70px}.modal-photo{width:100%;max-height:54dvh;object-fit:contain;background:#060708;border-radius:7px;margin-bottom:18px}.login-screen{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:30px;position:relative;overflow:hidden;background:linear-gradient(90deg,#0a0c10 25%,#242018 100%)}.login-art{position:absolute;inset:0;background:radial-gradient(circle at 77% 49%,#de822728,transparent 29%),linear-gradient(125deg,transparent 45%,#ffffff08 45%,transparent 45.3%),url('./pinup.svg') no-repeat 78% 100%/auto 90%;opacity:.64;filter:grayscale(.25)}.login-screen:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(to right,#090b10 5%,#090b1088 70%,#090b10a0)}.login-content{position:relative;z-index:1;width:min(100%,460px);margin-left:max(0px,calc((100vw - 1100px)/-6));padding:20px}.login-content h1{font-size:clamp(52px,7vw,90px);font-weight:1000;letter-spacing:-3px;line-height:.92;margin-bottom:25px}.login-content>p{color:#bdc3cb;font-size:14px;margin-bottom:31px}.login-content>small{color:#78818d;font-size:10px;letter-spacing:2px;margin-top:28px;display:block}.login-form{display:flex;flex-direction:column;gap:17px}.login-form .orange-btn{margin-top:5px}.install-warning{border:1px solid #8c663c;color:#ecc18b;background:#342718;padding:17px;border-radius:10px;font-size:13px;line-height:1.6}.boot{min-height:100dvh;display:grid;align-content:center;justify-items:center;gap:20px}.boot p{font-size:10px;color:var(--gold);letter-spacing:3px;font-weight:900}.toast{position:fixed;top:20px;right:20px;background:#1c3529;border:1px solid #4a9e72;padding:16px 20px;color:#f3fff6;border-radius:9px;z-index:200;max-width:min(90vw,400px);font-size:13px;box-shadow:0 10px 35px #0008}.toast.error{background:#432329;border-color:#a95353;color:#ffe4e4}#toasts{position:fixed;z-index:201;top:0;right:0}.status{white-space:normal;text-align:center}.upload-label input{display:none}
@media(max-width:650px){.shell{padding:0 16px 90px}.topbar{height:72px}.brand-icon{width:37px;height:37px;font-size:24px}.brand strong{font-size:15px;letter-spacing:2px}.brand small{font-size:8px;letter-spacing:2px}.top-caption{display:none}.content{padding-top:17px}.hero{min-height:306px;align-items:start}.hero-copy{padding:28px 18px;width:100%}.hero-eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:20px}.hero h1{font-size:clamp(33px,8vw,48px);max-width:330px;position:relative;z-index:2;letter-spacing:-1.8px}.hero p{font-size:11px;width:58%;line-height:1.7}.hero-line{gap:8px;font-size:7px;letter-spacing:1px;margin-top:33px;position:relative;z-index:2}.hero-woman{width:61%;right:-21px;height:87%;opacity:.83}.section-kicker{margin:26px 0 13px}.section-kicker span:first-child{font-size:10px;letter-spacing:1.7px}.section-kicker span:last-child{font-size:8px;letter-spacing:1px}.tiles{gap:9px}.tile{min-height:135px;padding:15px;gap:10px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between}.tile-icon{width:41px;height:41px;font-size:21px;border-radius:8px}.tile-copy{gap:6px;width:100%;padding-right:13px}.tile-copy strong{font-size:13px}.tile-copy small{font-size:8px;letter-spacing:1px}.tile-arrow{position:absolute;right:13px;top:17px;font-size:17px}.dashboard-grid{gap:9px}.stat-panel{padding:18px}.stat-top{font-size:8px;letter-spacing:.8px}.stat-number{font-size:42px;margin-top:12px}.stat-panel p{font-size:11px;line-height:1.6;min-height:50px;margin-bottom:15px}.plain-link{font-size:8px;letter-spacing:.6px}.footer{display:none}.bottom-nav{display:grid;position:fixed;z-index:40;bottom:0;left:0;right:0;grid-template-columns:repeat(4,1fr);background:#10141af5;backdrop-filter:blur(20px);border-top:1px solid #3b414c;padding:8px 11px calc(8px + env(safe-area-inset-bottom));min-height:69px}.nav-item{display:flex;align-items:center;flex-direction:column;gap:3px;border:0;background:transparent;color:#929aa7;font-size:9px;letter-spacing:.5px;font-weight:800;min-height:49px}.nav-icon{font-size:26px;line-height:1}.nav-item.active{color:var(--gold)}.page-heading h1{font-size:32px;letter-spacing:-1px}.page-heading p{font-size:12px}.feature-strip{padding:18px;gap:13px}.feature-icon{font-size:27px}.feature-strip strong{font-size:12px}.feature-strip p{font-size:11px}.cert-grid{grid-template-columns:1fr}.filter-strip>span{font-size:9px;letter-spacing:1px}.orange-btn.small,.ghost-btn.small{font-size:9px;padding:8px 9px}.more-grid{gap:9px}.more-card{min-height:167px;padding:17px}.more-card strong{font-size:13px}.more-card small{font-size:8px}.more-card b{top:14px;right:15px}.photo-grid{grid-template-columns:repeat(2,1fr)}.lock-panel{padding:25px 19px}.modal-dialog{padding:28px 18px 24px;max-height:92dvh}.two-fields{grid-template-columns:1fr}.login-screen{justify-content:flex-start;padding:18px}.login-content{padding:10px;max-width:390px;margin:0}.login-content h1{font-size:60px}.login-art{background-size:auto 68%;background-position:150% bottom}.login-screen:after{background:linear-gradient(90deg,#090b10 5%,#090b10c0 70%,#090b1090)}.security-banner{padding:16px 12px}.security-banner p{font-size:11px}.gallery-hero{padding:24px}.gallery-hero h2{font-size:20px}}
@media(max-width:370px){.hero h1{font-size:31px}.hero p{width:59%}.hero-woman{right:-41px}.tile-copy strong{font-size:12px}.filter-strip{gap:6px}.actions-inline{gap:4px}.orange-btn.small,.ghost-btn.small{font-size:8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* MARTINS PORTAL glamour refresh v2 — display only, no API changes */
.login-screen{background:radial-gradient(ellipse at 95% 40%,#67341927,transparent 48%),#080a0e}
.login-art{inset:0;background-image:url('./glamour-login.jpg');background-size:auto 110%;background-position:76% 39%;background-repeat:no-repeat;opacity:1;filter:saturate(.9) contrast(1.07);transform:none}
.login-screen:after{background:linear-gradient(90deg,#080a0ef7 0%,#080a0eec 29%,#080a0eaf 51%,#080a0e3d 82%,#080a0e4d 100%),linear-gradient(0deg,#080a0e7a,transparent 38%,#080a0e3b)}
.login-content{text-shadow:0 3px 25px #000a}
.login-content h1{text-wrap:balance}
.hero{background:radial-gradient(circle at 85% 75%,#6c391d46,transparent 51%),#151923;isolation:isolate}
.hero::before{background:linear-gradient(90deg,#151923 0%,#151923e8 35%,#15192363 65%,#15192327 100%);mask-image:none;z-index:2}
.hero-copy{z-index:3}
.hero-woman{right:0;top:0;bottom:0;height:100%;width:58%;background:url('./glamour-hq.jpg') center 38%/cover no-repeat;opacity:1;filter:contrast(1.08) saturate(.82);mask-image:linear-gradient(90deg,transparent 0%,#000 25%,#000 100%);z-index:1}
.hero-grid{pointer-events:none;opacity:.25;z-index:2}
@media(max-width:650px){
.login-screen{align-items:flex-start;padding-top:max(54px,10dvh)}
.login-art{background-size:auto 100%;background-position:63% center;opacity:1}
.login-screen:after{background:linear-gradient(90deg,#080a0edb 0%,#080a0ebf 34%,#080a0e61 74%,#080a0e56),linear-gradient(0deg,#080a0eef 0%,#080a0e9f 19%,transparent 65%,#080a0e79)}
.login-content{margin:0;max-width:390px}
.login-content h1{max-width:355px}
.hero{min-height:332px}
.hero-woman{right:0;width:70%;height:100%;background-size:cover;background-position:55% 25%;mask-image:linear-gradient(90deg,transparent,#000 30%)}
.hero::before{background:linear-gradient(90deg,#151923 0%,#151923df 38%,#15192380 69%,#15192320 100%)}
.hero-copy{padding:29px 19px 35px;width:100%}
.hero h1{font-size:clamp(32px,8vw,47px);max-width:310px}
.hero p{max-width:58%}
.hero-line{margin-top:32px}
}
@media(max-width:370px){.login-art{background-position:61% center}.hero-woman{width:75%;background-position:55% 32%}.hero h1{font-size:32px;max-width:300px}}

/* Martins Portal custom login/HQ image — user-selected original, v3 */
.login-screen{
  background:linear-gradient(105deg,#090b10 12%,#1e1b22 95%);
}
.login-art{
  inset:0;
  background-image:url('./martin-user-photo.webp');
  background-position:81% 34%;
  background-size:auto 112%;
  background-repeat:no-repeat;
  opacity:1;
  filter:brightness(.76) saturate(.9) contrast(1.06);
}
.login-screen:after{
  background:linear-gradient(90deg,#090b10f5 0%,#090b10e0 23%,#090b10ad 48%,#090b1050 78%,#090b1060 100%),
             linear-gradient(0deg,#090b10c9 0%,transparent 37%);
}
.hero{
  background:linear-gradient(100deg,#171b24 0%,#171b24 58%,#2b2529 100%);
}
.hero::before{
  background:linear-gradient(90deg,#171b24 0%,#171b24f5 24%,#171b24d8 45%,#171b2450 72%,transparent 100%);
}
.hero-woman{
  right:0;
  top:0;
  bottom:0;
  width:56%;
  height:100%;
  background:url('./martin-user-photo.webp') 65% 35%/cover no-repeat;
  opacity:.94;
  filter:brightness(.82) contrast(1.04);
  mask-image:linear-gradient(90deg,transparent 0%,#000 30%,#000 100%);
}
@media(max-width:650px){
 .login-art{
   background-size:auto 108%;
   background-position:67% center;
 }
 .login-screen:after{
   background:linear-gradient(90deg,#090b10e8 0%,#090b10da 35%,#090b1080 65%,#090b1038 100%),
              linear-gradient(0deg,#090b10db 0%,transparent 35%);
 }
 .hero-woman{
   right:-6px;
   width:72%;
   height:100%;
   background-position:60% 33%;
   opacity:.87;
 }
 .hero::before{
   background:linear-gradient(90deg,#171b24 0%,#171b24e9 35%,#171b2499 67%,#171b2420 100%);
 }
}
@media(max-width:370px){
 .hero-woman{width:77%;right:-16px}
}

/* Martins Private HQ / Black Room v4: PIN + encrypted album organizer */
.album-section{border:1px solid #353c4a;background:linear-gradient(140deg,#1b202b,#131720);padding:20px;border-radius:13px;margin:20px 0 8px}
.album-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}
.album-heading strong{font-size:11px;color:#ffad55;letter-spacing:2px}
.album-chips{display:flex;flex-wrap:wrap;gap:9px}
.album-chip{border:1px solid #3f4654;background:linear-gradient(125deg,#262d3a,#1a202c);color:#e5eaf1;border-radius:10px;padding:12px 13px;min-height:52px;min-width:95px;display:inline-flex;align-items:center;gap:9px;max-width:100%;font-size:12px;font-weight:800;overflow-wrap:anywhere;text-align:left}
.album-chip span:first-child{color:#f9a047;font-size:21px;flex-shrink:0}
.album-chip small{border-radius:7px;padding:4px 6px;background:#11151d;color:#aeb7c3;font-size:10px;margin-left:auto;flex-shrink:0}
.album-chip.active{border-color:#ff9c39;background:linear-gradient(125deg,#4a3323,#22232d);box-shadow:inset 0 0 0 1px #ff9c3930}
.album-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid #353c49;flex-wrap:wrap}
.album-tools>span{font-weight:800;color:#f6f7fa;font-size:13px;overflow-wrap:anywhere}
.album-tools>div{display:flex;gap:7px;flex-wrap:wrap}
.album-select{background:#0d1118;border:1px solid #384250;border-radius:7px;padding:13px 14px;color:#fff;width:100%;min-height:46px;font-size:15px;outline:0}
.album-select:focus{border-color:#ffa148}
.lock-panel input[inputmode="numeric"],.stack-form input[inputmode="numeric"]{-webkit-text-security:disc;font-size:22px;letter-spacing:8px;font-variant-numeric:tabular-nums}
@media(max-width:650px){.album-section{padding:14px}.album-heading{align-items:flex-start}.album-heading strong{padding-top:12px}.album-chip{min-width:0;flex:1 1 calc(50% - 9px);padding:10px;line-height:1.3;font-size:11px}.album-chip small{margin-left:auto}.album-tools{align-items:flex-start}.album-tools>div{width:100%}.album-tools button{flex:1}}
/* Martins Portal v5: restore main navigation on desktop without changing mobile bottom tabs. */
@media (min-width:651px) {
  .bottom-nav {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:9px;
    margin:14px 0 0;
    padding:8px;
    border:1px solid #343a47;
    border-radius:13px;
    background:linear-gradient(120deg,#191e28,#11151c);
  }
  .bottom-nav .nav-item {
    display:flex;
    align-items:center;
    justify-content:center;
    flex:1 1 0;
    gap:9px;
    min-height:49px;
    padding:10px 12px;
    border:1px solid transparent;
    border-radius:9px;
    background:transparent;
    color:#b7c0ce;
    font-size:13px;
    font-weight:800;
    letter-spacing:.6px;
    cursor:pointer;
    transition:background .15s ease,color .15s ease,border-color .15s ease;
  }
  .bottom-nav .nav-icon { font-size:22px; line-height:1; }
  .bottom-nav .nav-item.active {
    color:#ffb265;
    border-color:#674428;
    background:linear-gradient(125deg,#413025,#24252a);
  }
  .bottom-nav .nav-item:hover,
  .bottom-nav .nav-item:focus-visible {
    color:#fff;
    border-color:#9a6335;
    background:#35271e;
    outline-offset:3px;
  }
  .bottom-nav .nav-item:focus-visible { outline:2px solid #ff9d36; }
  .content {padding-top:22px;}
}
@media (max-width:650px) {
  /* Mobile retains the existing 4-tab fixed bottom navigation. */
  .bottom-nav {display:grid;}
}

/* The Black Room v6: visually distinguish encrypted clips from photo cards. */
.photo-item.video-card {display:flex;flex-direction:column;justify-content:stretch;overflow:hidden;}
.video-thumb {display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;min-height:142px;background:radial-gradient(ellipse at 55% 30%,#594027,#191b23 78%);color:#ffae63;}
.video-thumb>span {font-size:46px;line-height:1;text-shadow:0 3px 18px #0007;}
.video-thumb>small {font-weight:800;letter-spacing:3px;font-size:10px;}
.modal-video {display:block;max-width:100%;width:100%;max-height:65vh;background:#06080e;border-radius:10px;object-fit:contain;}
.gallery-upload-progress {margin:6px 0;color:#ffb56d;font-size:13px;min-height:1em;}
/* Martins Portal v7: certificate photo attachment in create/edit form */
.cert-attachment{display:flex;flex-direction:column;gap:12px;border:1px solid #424b56;background:linear-gradient(120deg,#252b36,#1d222c);padding:16px;border-radius:10px}
.cert-attachment-title{font-size:11px;font-weight:900;letter-spacing:1px;color:#f0b371}
.cert-attachment-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.cert-attachment-pick{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center;gap:7px;min-height:43px;cursor:pointer;text-align:center;font-size:11px!important;letter-spacing:.2px!important;white-space:normal}
.cert-attachment-pick input[type="file"]{display:none!important}
.cert-attachment-selected{font-size:12px;color:#e1e6ee;overflow-wrap:anywhere;line-height:1.5}
.cert-attachment small{font-size:10px;line-height:1.5;color:#a5aebc}
@media(max-width:440px){.cert-attachment-actions{grid-template-columns:1fr}}

/* A discreet decoy album after PIN unlock; icon retains original ⛔ styling. */
.gallery-secret-trigger{appearance:none;border:0;background:transparent;color:inherit;padding:0;margin:0 1px 0 0;font:inherit;line-height:1;cursor:pointer;vertical-align:baseline}
.gallery-secret-trigger:hover{filter:brightness(1.2)}
.gallery-secret-trigger:focus-visible{outline:2px solid #f39138;outline-offset:4px;border-radius:3px}
.gallery-front-album{margin:20px 0 32px;min-height:160px}
.gallery-front-album>h3{font-size:17px;letter-spacing:.8px;color:#f2f2f3;font-weight:800;margin:0 0 17px}
.gallery-front-settings{display:flex;justify-content:flex-end;margin:12px 0 16px}
.gallery-front-settings button{font-size:11px;letter-spacing:.7px}
.upload-errors{max-height:40vh;overflow-y:auto;margin:10px 0 20px}.upload-errors p{padding:7px 10px;border:1px solid #633b38;border-radius:7px;color:#ffbbb2;font-size:12px;overflow-wrap:anywhere}

/* Black Room v10: nested folder navigation + ordinary cover upload */
.gallery-front-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.gallery-front-heading h3{margin:0}
.gallery-front-heading .upload-label{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;min-height:40px}
.gallery-front-album .gallery-upload-progress{font-size:12px;min-height:0;color:#f2b47b;margin:0 0 10px}
.gallery-breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:3px 6px;margin-top:12px;font-size:12px;line-height:1.65}
.gallery-breadcrumbs button{border:0;background:transparent;color:#b9c1d1;padding:3px;cursor:pointer;word-break:break-word;max-width:100%;text-align:left}
.gallery-breadcrumbs button[aria-current="page"]{color:#fb9b4e;font-weight:800}
.gallery-breadcrumbs span{color:#727b8e}
.album-tools>div{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.album-tools>span{overflow-wrap:anywhere}
@media(max-width:650px){.gallery-front-heading .upload-label{flex:1;max-width:180px}.album-tools>div{justify-content:flex-start}.gallery-front-heading h3{font-size:20px}}
