@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;900&family=Amiri:wght@400;700&display=swap');
:root{--bg:#0b0d10;--card:#14181e;--line:#303138;--gold:#d9b87b;--light:#eee5d8;--muted:#a7a8ac;--radius:22px}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse 50% 30% at 50% -5%,#2c261e 0,transparent 100%),var(--bg);color:var(--light);font-family:Cairo,Tahoma,sans-serif;line-height:1.75}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit}h1,h2,h3,p{margin-top:0}.site-head{padding:14px clamp(18px,5vw,64px);display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #3a342b;background:#0c0e11dd;position:sticky;top:0;z-index:5;backdrop-filter:blur(12px)}.brand{display:flex;align-items:center;gap:15px}.brand h1{margin:0;font-size:19px}.brand h1 i{color:var(--gold);font-style:normal}.monogram{background:linear-gradient(145deg,#efe1c0,#b99456,#7b5a35);color:#191408;border:2px solid #e7cea0;width:72px;height:72px;border-radius:21px;display:grid;place-items:center;font-family:Amiri,serif;font-size:45px;font-weight:700;box-shadow:0 8px 30px #0005}.monogram.small{width:48px;height:48px;border-radius:15px;font-size:29px}.eyebrow{font:700 10px/1.4 Arial,sans-serif;letter-spacing:2.2px;color:#bb9866}.site-head nav{display:flex;gap:9px;align-items:center;flex-wrap:wrap}button,.secondary-link{border-radius:12px;border:1px solid #4b4132;background:#1d222a;color:#efe4d2;padding:10px 15px;font-weight:700}button:hover,.secondary-link:hover{border-color:#c2a16b}button:disabled{opacity:.5;cursor:wait}.tab.current,.primary{background:linear-gradient(115deg,#f0d9aa,#c1a16f,#99764b);color:#17130c;border:0}.primary{padding:12px 19px}.subtle{background:#14181e;color:#d6c7b1}.container{max-width:1320px;margin:auto;padding:30px 22px}.headline{display:flex;justify-content:space-between;align-items:center;gap:25px;margin:18px 0 30px}.headline h2{font-size:clamp(36px,5vw,65px);letter-spacing:-1.7px;margin:12px 0 4px}.headline h2 em{font-family:Amiri,serif;color:var(--gold);font-style:normal}.headline p{color:var(--muted);max-width:600px}.seal{font-family:Amiri,serif;font-size:68px;text-align:center;color:#d6b377;border:2px solid #a58553;border-radius:50%;width:165px;height:165px;display:flex;flex-direction:column;justify-content:center;line-height:1.1;box-shadow:inset 0 0 0 7px #181513,inset 0 0 0 8px #6a5437;flex-shrink:0;transform:rotate(-8deg)}.seal small{font:700 15px Cairo}.studio-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px}.card{background:linear-gradient(165deg,#191c21,#111418);border:1px solid #3e3a33;border-radius:var(--radius);box-shadow:0 24px 50px #0005;padding:26px}.panelhead{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #39352e;padding-bottom:18px;margin-bottom:20px}.panelhead h3{margin:5px 0 0;font-size:22px}.quota{border:1px solid #494137;border-radius:25px;color:#d4b98f;padding:6px 11px;font-size:12px}.messages{height:370px;overflow:auto;display:flex;flex-direction:column;gap:12px;align-items:flex-start;scrollbar-width:thin}.bubble{max-width:91%;white-space:pre-wrap;overflow-wrap:anywhere;padding:13px 16px;border:1px solid #3b3937;border-radius:16px;font-size:14px}.bubble.assistant{background:#27221b;border-radius:16px 3px 16px 16px}.bubble.user{align-self:flex-end;background:#233034;border-radius:3px 16px 16px 16px}.message-form{border-top:1px solid #39352e;padding-top:14px;margin-top:18px;display:flex;flex-direction:column;gap:10px}.creation-panel form{display:flex;flex-direction:column;gap:9px}label{font-size:13px;font-weight:700;color:#d7c5ad}input,textarea,select{width:100%;background:#0b0f13;color:#faf4eb;border:1px solid #45413b;border-radius:11px;padding:11px 13px;outline:none}textarea{resize:vertical}input:focus,textarea:focus,select:focus{border-color:#d3b475;box-shadow:0 0 0 2px #bf9d6033}.full{width:100%;margin-top:9px}.hidden{display:none!important}.result{border-top:1px solid #39352e;margin-top:18px;padding-top:18px}.preview{margin:auto;max-width:440px;aspect-ratio:1;display:grid;place-items:center;border:1px solid #564d3c;border-radius:20px;overflow:hidden}.checker{background-color:#28292b;background-image:linear-gradient(45deg,#404144 25%,transparent 25%),linear-gradient(-45deg,#404144 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#404144 75%),linear-gradient(-45deg,transparent 75%,#404144 75%);background-position:0 0,0 16px,16px -16px,-16px 0;background-size:32px 32px}.preview img{width:100%;height:100%;object-fit:contain}.note,.warning{font-size:12px;color:#baa98d}.warning{color:#f8b5a0}.download-row{display:flex;gap:9px;flex-wrap:wrap}.secondary-link{text-decoration:none;font-size:12px;flex:1;text-align:center}.status{font-size:13px;color:#e4c18c}.info{margin-top:20px;border:1px solid #332f2a;border-radius:15px;padding:18px 24px;color:#b2aea7}.info strong{color:#e2c295}.info p{margin-bottom:0;font-size:13px}.gallery-intro h2{font-size:30px;margin:0}.gallery-intro p{color:var(--muted)}#gallery-frame{height:80vh;width:100%;border:1px solid #3c3730;border-radius:16px;background:#0b0d11}footer{text-align:center;padding:35px 12px;border-top:1px solid #2a2722;color:#8e8d8b;font-size:12px}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}.auth{width:min(100%,470px);text-align:center}.auth .monogram{margin:0 auto 25px}.auth h1{font:700 42px Amiri,serif;margin:10px 0}.auth p{color:#bcb7ae}.auth label{text-align:right;display:block;margin:20px 0 6px}.auth input{margin-bottom:14px}.auth .primary{width:100%}.auth small{display:block;margin-top:10px;color:#a6a19a}.error{color:#ffaca1!important;font-size:13px}@media(max-width:850px){.studio-grid{grid-template-columns:1fr}.site-head{flex-wrap:wrap}.headline{align-items:flex-start}.seal{width:98px;height:98px;font-size:40px}.seal small{font-size:10px}}@media(max-width:520px){.container{padding:20px 13px}.card{padding:18px}.brand h1{font-size:17px}.site-head{padding:12px}.site-head nav{width:100%}.site-head nav button{flex:1;font-size:12px;padding:9px 6px}.headline h2{font-size:34px}.seal{display:none}.messages{height:310px}}

/* Personalised studio identity. The supplied photo is visible only to authenticated users. */
.owner-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;object-position:center 38%;border:2px solid var(--gold);box-shadow:0 0 0 4px #aa835032}
.owner-hero{height:clamp(270px,36vw,460px);position:relative;background:linear-gradient(90deg,rgba(9,11,14,.96) 0%,rgba(9,11,14,.86) 38%,rgba(9,11,14,.22) 100%),url('/portrait') center 39%/cover no-repeat;border-bottom:1px solid #78603f;display:flex;align-items:center;padding:clamp(24px,5vw,90px)}
.owner-hero-content{max-width:590px;position:relative;z-index:1;text-shadow:0 2px 12px #000e}
.owner-hero h2{font-size:clamp(30px,4vw,65px);color:#f1d8a3;margin:13px 0;font-weight:900}
.owner-hero p{font-size:clamp(15px,1.7vw,22px);color:#eee7db}
dialog{border:1px solid #ad8852;background:#17191e;color:#f7ebd8;border-radius:20px;width:min(92vw,480px);padding:26px;box-shadow:0 20px 100px #000b}dialog::backdrop{background:#000a;backdrop-filter:blur(4px)}.password-form{display:flex;flex-direction:column;gap:9px}.password-form h2{color:#dfc28e}.password-form p{color:#bdaf97}.password-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:12px}.password-actions button{flex:1}
@media(max-width:700px){.owner-hero{background:linear-gradient(0deg,rgba(9,11,14,.96),rgba(9,11,14,.40)),url('/portrait') center 35%/cover no-repeat;align-items:flex-end}.owner-hero-content h2{font-size:32px}}

.security-notice{padding:15px 20px;border:1px solid #c5a56d;border-radius:14px;color:#f7d9a4;background:#3b2b13;margin-bottom:24px;font-weight:700}

/* BOSS V4 - portrait background and responsive designly art direction */
:root{--gold:#e2bd7c;--light:#f7efe4;--muted:#e6d6c2}
body{background:#0b0b0b!important;min-height:100vh;position:relative;isolation:isolate;color:var(--light)}
body:before{content:"";position:fixed;inset:0;z-index:-2;background-image:url('/portrait');background-position:center 28%;background-size:cover;background-repeat:no-repeat;opacity:.63;pointer-events:none}
body:after{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(8,9,11,.78),rgba(8,9,11,.54) 24%,rgba(8,9,11,.78) 66%,rgba(8,9,11,.94));pointer-events:none}
.site-head{position:relative!important;top:auto!important;display:grid!important;grid-template-columns:1fr!important;gap:14px!important;padding:17px clamp(16px,4vw,42px)!important;background:rgba(11,13,16,.89)!important;border-bottom:1px solid #9c7b51;box-shadow:0 14px 36px #0008}
.site-head .brand{justify-content:center;max-width:100%;text-align:center}.brand h1{font-size:clamp(20px,3vw,27px)}.brand .eyebrow{letter-spacing:2px;font-size:10px}
.owner-avatar{width:60px;height:60px;flex:0 0 60px;object-position:center 35%}
.site-head nav{width:100%;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px!important;align-items:stretch!important;max-width:1020px;margin:auto}
.site-head nav button{min-width:0!important;min-height:52px;padding:10px!important;text-wrap:balance;line-height:1.35;font-size:clamp(13px,1.6vw,16px);white-space:normal!important}
#account-label{grid-column:1/-1;justify-self:center;padding:6px 17px;background:#161616d9;color:#efdaaf}
#password-settings{grid-column:1/2}#owner-settings-button{grid-column:2/4}#logout{grid-column:4/5}
nav .tab{grid-column:span 2}
.owner-hero{background:linear-gradient(90deg,rgba(8,9,11,.8),rgba(8,9,11,.28))!important;height:auto!important;min-height:180px!important;align-items:center!important;padding:27px clamp(18px,5vw,60px)!important;text-align:center;justify-content:center}
.owner-hero-content h2{font-size:clamp(25px,4vw,44px);line-height:1.4}.owner-hero-content p{font-size:15px}
.container{max-width:1260px;padding:24px clamp(12px,3vw,36px)}
.card,.info,#owner-settings{background:rgba(14,17,21,.94)!important;border:1px solid rgba(214,170,98,.48)!important;box-shadow:0 13px 30px rgba(0,0,0,.4);backdrop-filter:blur(10px)}
.card{padding:clamp(17px,2.4vw,29px)}.studio-grid{align-items:start;gap:18px}.headline{background:rgba(9,11,13,.82);border:1px solid #94714a;border-radius:22px;padding:clamp(16px,3vw,30px);margin:0 0 20px}.headline h2{font-size:clamp(29px,5vw,49px);line-height:1.3}
.headline p,.gallery-intro p,.info p{color:#e8dccb}
.panelhead{flex-wrap:wrap;align-items:flex-start}.panelhead h3{font-size:clamp(19px,2vw,24px)}
#ai-section .creation-panel,#ai-section .chat-panel{min-width:0;overflow:hidden}
#ai-section textarea,#ai-section input,#ai-section select{max-width:100%;font-size:16px}
#gallery-section{background:rgba(9,11,14,.82);padding:20px;border-radius:20px;border:1px solid #9c784c}
#gallery-frame{min-height:70vh}
#royal-gallery-cta{display:block;margin:18px auto 2px;max-width:540px;background:linear-gradient(105deg,#eacb8e,#b6883f);color:#171109;padding:14px 20px;text-align:center;text-decoration:none;border-radius:14px;font-weight:900;box-shadow:0 6px 25px #0009}
#royal-gallery-cta:hover{filter:brightness(1.08)}
.security-notice{background:#33220de8!important;color:#ffecbd;line-height:1.8;border-width:2px;margin:0 0 20px}
#status,.status{color:#f9d993!important;line-height:1.7}
.info{margin-top:20px}
footer{background:rgba(4,5,6,.86);color:#e0d2bd}
@media(max-width:750px){body:before{background-position:center center;opacity:.5}.site-head{gap:12px!important;padding:14px 12px!important}.site-head nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}.site-head nav .tab{grid-column:span 1}.site-head nav #password-settings{grid-column:1/2}.site-head nav #owner-settings-button{grid-column:2/3}.site-head nav #logout{grid-column:1/-1}.site-head nav button{font-size:13px;padding:9px 6px!important;min-height:50px}.owner-avatar{width:52px;height:52px;flex-basis:52px}.owner-hero{min-height:155px!important;padding:24px 12px!important}.studio-grid{grid-template-columns:minmax(0,1fr)}.headline{display:block!important;padding:20px!important}.headline .seal{display:none}.container{padding:16px 11px}.gallery-intro h2{font-size:24px}}
@media(max-width:370px){.brand h1{font-size:19px}.eyebrow{letter-spacing:1px}.site-head nav button{font-size:12px}}
