*{box-sizing:border-box}body{margin:0;background:#fbfaff;color:#2d2b3d;font:14px 'DM Sans','Noto Sans Thai',sans-serif}button,input,textarea{font:inherit}button{cursor:pointer}.sidebar{position:fixed;inset:0 auto 0 0;width:225px;background:white;border-right:1px solid #eceaf2;padding:24px 16px;display:flex;flex-direction:column;z-index:5}.brand{font-size:22px;color:#29283a;text-decoration:none;margin:2px 8px 38px}.brand:first-letter,.brand span{color:#7562d8}.nav{border:0;background:transparent;text-align:left;color:#777689;padding:13px;border-radius:11px;margin:2px}.nav.active,.nav:hover{background:#f2f0ff;color:#6754c5}.label{font-size:10px;color:#a1a0ad;margin:30px 12px 8px;text-transform:uppercase}.profile{margin-top:auto;border-top:1px solid #eceaf2;padding:16px 3px;display:flex;align-items:center;gap:10px}.profile>span{background:#f5e6f4;border-radius:50%;padding:9px}.profile b,.profile small{display:block;font-size:11px}.profile small{color:#999;margin-top:3px}.prototype{margin-left:auto!important;font-size:8px!important}main{margin-left:225px}header{height:66px;display:flex;align-items:center;padding:0 36px;background:#ffffffdc;border-bottom:1px solid #eceaf2;position:sticky;top:0;z-index:4;backdrop-filter:blur(8px)}.crumb{color:#999;font-size:12px}.crumb b{color:#555}.actions{margin-left:auto;display:flex;gap:12px;align-items:center}.credits,.login{border:1px solid #ebe8f2;border-radius:18px;padding:8px 12px;background:white;color:#777;font-size:11px}.credits b{color:#6754c5}.login{border-radius:8px}.menu{display:none}.view{display:none}.view.active{display:block}.hero{margin:24px 36px 0;min-height:340px;background:#f1efff;border-radius:22px;padding:42px;position:relative;overflow:hidden}.hero-copy{position:relative;z-index:1}.hero-copy>small,.section-title small,.creator small,.create>small{color:#8b7bd0;letter-spacing:.08em;font-size:10px}.hero h1{font-size:36px;line-height:1.35;margin:16px 0 8px;letter-spacing:-.03em}.hero h1 em{font-style:normal;color:#7562d8}.hero p{font-size:12px;color:#888698}.primary{border:0;border-radius:9px;background:#7562d8;color:white;padding:12px 16px;font-size:11px;margin-top:12px}.plain{border:0;background:none;color:#716c87;font-size:11px;margin-left:12px}.subline{margin-top:26px;color:#9996aa;font-size:10px}.art{position:absolute;right:5%;top:0;width:40%;height:100%;display:grid;place-items:center}.portrait{width:175px;height:235px;border-radius:80px 80px 30px 30px;background:linear-gradient(#48394f 35%,#f5d4c8 35% 75%,#8a78cb 75%);display:grid;place-items:center;padding-top:20px;color:white;font-size:45px;z-index:1;box-shadow:0 15px 30px #453d7530}.orb{position:absolute;top:14%;right:20%;color:#ac95e5;background:white;border-radius:50%;padding:13px}.bubble{position:absolute;left:0;top:23%;background:white;padding:12px;border-radius:12px;color:#777;font-size:10px;box-shadow:0 8px 20px #3331}.stats{display:grid;grid-template-columns:repeat(3,1fr);margin:18px 36px;background:white;border:1px solid #eceaf2;border-radius:13px;padding:16px}.stats div{padding:0 18px;border-right:1px solid #eee}.stats div:first-child{padding-left:0}.stats div:last-child{border:0}.stats b,.stats small{display:block;font-size:11px}.stats small{color:#999;margin-top:4px;font-size:10px}.section{margin:30px 36px}.section-title{display:flex;justify-content:space-between;align-items:end}.section-title h2{font-size:20px;margin:4px 0}.section-title h2 i{font-size:12px;color:#b69ae3}.section-title button{border:0;background:none;color:#7562d8;font-size:11px}.filters{display:flex;gap:8px;overflow:auto;margin:15px 0}.filters button{white-space:nowrap;border:1px solid #ebe9f1;background:white;color:#777;border-radius:20px;padding:8px 13px;font-size:10px}.filters button.selected{background:#eeeaff;border-color:#e2dcff;color:#6754c5}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.card{border:1px solid #eceaf2;background:white;border-radius:14px;overflow:hidden;cursor:pointer;transition:.2s}.card:hover{transform:translateY(-3px);box-shadow:0 10px 22px #312b5510}.card-art{height:125px;display:grid;place-items:center;font-size:48px;position:relative}.card-art span{background:#ffffffbf;padding:5px 8px;border-radius:14px;position:absolute;left:9px;top:9px;font-size:9px;color:#777}.card-body{padding:11px}.card-body h3{margin:0;font-size:13px}.card-body p{font-size:10px;color:#898797;line-height:1.5;min-height:30px}.tags .tag{font-size:8px;color:#8e7ac6;background:#f4f1ff;border-radius:10px;padding:4px 7px;margin-right:4px}.card-body button{border:0;background:none;color:#7562d8;font-size:10px;margin-top:9px;padding:0}.creator{margin:24px 36px;background:#fbf2ed;border:1px solid #f7e8df;border-radius:14px;padding:18px;display:flex;align-items:center;gap:14px}.creator>span{background:white;border-radius:12px;padding:12px;color:#cb8969}.creator div b{display:block;margin:4px 0;font-size:13px}.creator div small{display:block;color:#9a8b85;letter-spacing:0}.creator button{margin-left:auto;border:1px solid #eed6c8;background:#fffaf7;border-radius:8px;padding:9px;color:#a56c51;font-size:10px}footer{border-top:1px solid #eceaf2;margin:0 36px;padding:16px 0;color:#aaa;font-size:9px;display:flex;gap:16px}footer a{margin-left:auto}.chat-layout.active{height:calc(100vh - 66px);min-height:500px;display:grid;grid-template-columns:210px minmax(300px,1fr) 220px;background:white}.chat-list{border-right:1px solid #eceaf2;padding:18px 12px}.chat-list h3{font-size:14px}.chat-list h3 button{float:right;border:0;background:#f0edff;color:#7562d8;border-radius:8px;padding:5px 9px}.chat-list input{width:100%;padding:9px;border:0;background:#f8f7fb;border-radius:8px;font-size:10px}.history{padding:12px 5px;cursor:pointer;font-size:11px}.chat{display:flex;flex-direction:column;min-width:0}.chat-head{height:65px;border-bottom:1px solid #eee;display:flex;align-items:center;gap:10px;padding:0 18px}.chat-head>span{background:#e8e3ff;border-radius:12px;padding:10px;color:#7160bd}.chat-head b,.chat-head small{display:block}.chat-head small{font-size:9px;color:#52a982;margin-top:3px}.chat-head button{margin-left:auto;border:0;background:none}.messages{flex:1;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:12px}.msg{max-width:78%;background:#f2f0f8;padding:10px 13px;border-radius:13px;font-size:11px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.msg.user{align-self:flex-end;color:white;background:#7562d8}.composer{border:1px solid #e9e6f0;border-radius:12px;margin:0 14px 14px;padding:9px}.composer textarea{border:0;outline:0;resize:none;width:100%;font-size:11px}.composer div{display:flex;align-items:center;justify-content:space-between}.composer small{color:#aaa;font-size:9px}.composer button{border:0;background:#7562d8;color:white;border-radius:8px;width:29px;height:29px;font-size:17px}.character-info{border-left:1px solid #eee;padding:20px}.cover{height:100px;background:linear-gradient(120deg,#e7e1ff,#f8e6ed);border-radius:12px;display:grid;place-items:center;font-size:35px;color:#7160bd}.character-info>small{display:block;color:#999;margin-top:18px}.character-info h3{margin:4px 0}.character-info p{font-size:10px;color:#898797;line-height:1.6}.tag{background:#f2efff;color:#8071c4;padding:5px 8px;border-radius:12px;font-size:9px}.character-info>button{display:block;width:100%;margin:18px 0;border:1px solid #e8e4f3;background:white;border-radius:8px;padding:9px;color:#7668b6;font-size:10px}.privacy{border-top:1px solid #eee;padding-top:15px;color:#999;font-size:9px}.create{max-width:850px;margin:auto;padding:38px}.create>button{display:block;border:0;background:none;color:#888;margin-bottom:25px}.create h1{font-size:27px;margin:8px 0}.create>p{font-size:11px;color:#999}.create form{background:white;border:1px solid #eee;border-radius:14px;padding:25px;margin-top:22px}.create label{display:block;font-size:11px;font-weight:600;margin-bottom:17px}.create input,.create textarea,.create select{display:block;width:100%;margin-top:7px;border:1px solid #e9e7ef;border-radius:8px;padding:11px;font-size:11px}.create textarea{resize:vertical}.create .check input{display:inline;width:auto}.submit{background:#7562d8;color:white;border:0;border-radius:9px;padding:12px 18px}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#302d44;color:white;padding:11px 16px;border-radius:9px;font-size:11px;z-index:9;display:none}#toast.show{display:block}.violet{background:linear-gradient(135deg,#d7d0ff,#f4e6ff)}.peach{background:linear-gradient(135deg,#ffd9cf,#fff0df)}.blue{background:linear-gradient(135deg,#d1e7ff,#e5efff)}.green{background:linear-gradient(135deg,#d6f0df,#f1f8e8)}.rose{background:linear-gradient(135deg,#f9d7ea,#f5eaff)}.gold{background:linear-gradient(135deg,#ffedc8,#fff5df)}@media(max-width:1100px){.cards{grid-template-columns:repeat(3,1fr)}.chat-layout.active{grid-template-columns:180px minmax(280px,1fr)}.character-info{display:none}}@media(max-width:780px){.sidebar{width:200px;transform:translateX(-100%);transition:.2s;box-shadow:0 0 30px #3332}.sidebar.open{transform:translateX(0)}main{margin-left:0}header{height:58px;padding:0 14px}.menu{display:block;border:0;background:none;margin-right:10px}.hero{margin:12px;min-height:345px;padding:25px 20px}.hero h1{font-size:28px}.art{width:46%;height:175px;top:auto;bottom:0}.portrait{width:120px;height:160px;font-size:32px}.bubble{font-size:8px;left:-10px}.stats{margin:12px;padding:12px 6px}.stats div{padding:0 7px}.stats b{font-size:9px}.stats small{font-size:8px}.section{margin:25px 13px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.card-art{height:105px}.creator{margin:20px 13px;padding:13px;gap:9px}.creator div b{font-size:11px}.creator div small{font-size:8px}.chat-layout.active{height:calc(100dvh - 58px);grid-template-columns:1fr}.chat-list,.character-info{display:none}.create{padding:25px 15px}.create h1{font-size:21px}}@media(max-width:430px){.hero{min-height:375px}.hero-copy{max-width:300px}.hero p{max-width:230px}.art{width:50%;height:160px}.plain{margin-left:0}.stats b{font-size:8px}.stats small{font-size:7px}.creator>span{padding:9px}.creator button{padding:8px;font-size:9px}footer{margin:0 14px;flex-wrap:wrap}footer a{margin-left:0}}/* Dark discovery layout inspired by the supplied reference */
:root{--ink:#f4f1f6;--muted:#aaa6b1;--line:#29282d;--purple:#a78bfa;--purple-dark:#c0adff;--lavender:#211d2b;--paper:#141416;--bg:#0b0b0d;--peach:#3a2827;--green:#57c49a}body{background:#0b0b0d;color:#f4f1f6;font-size:13px}.sidebar{width:270px;background:#0b0b0d;border-color:#28272c;padding:22px 15px}.brand{color:#f7f4f9;font-size:24px;margin:2px 8px 30px}.brand:first-letter,.brand span{color:#f0743d}.nav{color:#bdb9c3;padding:11px;border-radius:8px}.nav.active,.nav:hover{background:#29282d;color:#fff}.nav-label,.side-label{color:#88848e}.mini-profile{border-color:#2a292e}.profile-avatar{background:#29252e;color:#e5c4ea}.sidebar-note{color:#76727b}.main-area,main{background:#0b0b0d}.main-area{margin-left:270px}header.topbar{height:58px;padding:0 24px;background:#0d0d0f;border-bottom:1px solid #252429;color:#f3f1f5}.crumb{font-size:15px;color:#fff}.crumb b{color:#fff}.top-links{display:flex;gap:7px;margin-left:28px}.top-link{border:0;background:none;color:#aaa6b1;padding:9px 12px;border-radius:9px;font-size:11px}.top-link.active,.top-link:hover{background:#29282d;color:#ff8150}.actions{gap:9px}.credits{background:#26231c;border:0;color:#f6e9c4;border-radius:22px;padding:9px 14px;font-size:11px}.credits b{color:#ffd169}.login{border:0;background:#f8f7f9;color:#171619;border-radius:20px;padding:9px 16px;font-weight:700}.language,.bell,.user-dot{border:0;background:#28272c;color:#f8f6fa;border-radius:22px;padding:9px 12px;font-size:11px}.bell{font-size:15px}.user-dot{background:linear-gradient(135deg,#f2c08d,#6957a8);border:2px solid #39363c;width:37px;height:37px}.menu{color:#fff}#home .hero,#home .stats,#home .creator{display:none!important}#home .content-wrap{padding:0 28px}.section{margin:10px 0 30px}.section-title{align-items:center;margin:0 0 14px}.section-title small{color:#98939e;font-size:10px;letter-spacing:.03em}.section-title h2{color:#fff;font-size:19px;margin:4px 0 0}.section-title h2 i{color:#f17944}.periods{display:flex;gap:6px}.periods button{border:0;background:none;color:#aaa6b1;padding:8px 12px;border-radius:18px;font-size:10px}.periods button.on,.periods button:hover{background:#262529;color:#ff8150;font-weight:700}.featured-cards{display:flex;gap:12px;overflow-x:auto;padding:0 1px 11px;scrollbar-width:thin;scrollbar-color:#3a383e transparent}.featured-cards .card{flex:0 0 190px}.card{border:0;background:transparent;border-radius:12px;overflow:hidden;cursor:pointer;min-width:0}.card:hover{transform:translateY(-2px);box-shadow:none}.card-art{height:180px;position:relative;display:grid;place-items:center;overflow:hidden;border-radius:12px;background-image:radial-gradient(ellipse at 50% 85%,#ffffff25,transparent 55%),linear-gradient(135deg,#463d51,#18171d)}.featured-cards .card-art{height:255px}.card-art:before{content:"";position:absolute;width:75%;height:68%;bottom:-16%;border-radius:50% 50% 10% 10%;background:linear-gradient(145deg,#ffffff25,#15141a);filter:blur(1px)}.card-art:after{content:"";position:absolute;width:82px;height:102px;top:22%;border-radius:47% 47% 42% 42%;background:linear-gradient(135deg,#efd0c3,#ae8b86);box-shadow:0 -28px 0 9px #302b35,0 60px 0 28px #28232e;opacity:.83}.card-art .exclusive{position:absolute;z-index:2;left:8px;top:9px;background:#131214dd;color:#eee;border-radius:3px;padding:4px 6px;font-size:8px}.card-save{position:absolute;z-index:3;right:8px;top:8px;border:0;background:#111111a8;color:#fff;border-radius:50%;width:27px;height:27px}.art-symbol{position:absolute;z-index:2;bottom:10px;right:12px;font-size:30px;color:#fff;text-shadow:0 2px 8px #000}.card-metric{position:absolute;z-index:3;bottom:8px;left:9px;background:#121115b5;color:#eee;border-radius:14px;padding:4px 8px;font-size:9px}.card-body{padding:9px 2px 5px}.card-body h3{font-size:12px;color:#f8f6f9;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-body h3 small{font-size:9px;color:#aaa6b1;font-weight:400}.card-body p{font-size:10px;color:#cac6cf;line-height:1.6;margin:5px 0 7px;min-height:32px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tags .tag{font-style:normal;color:#b7b2bd;background:#242328;border:1px solid #333137;padding:4px 7px}.card-body button{display:none}.feed-tabs{display:flex;align-items:center;gap:9px;margin:8px 0 11px;overflow:auto}.feed-tabs button{border:0;background:none;color:#aaa6b1;padding:8px 11px;border-radius:18px;white-space:nowrap;font-size:10px}.feed-tabs button.on,.feed-tabs button:hover{background:#29282d;color:#ff8150;font-weight:700}.feed-tabs #all{margin-left:auto;color:#aaa}.filter-label,.role-filters>span{color:#aaa6b1;font-weight:700;font-size:10px;margin:8px 0}.filters{display:flex;gap:7px;overflow:auto;margin:8px 0;padding-bottom:2px}.filters button,.role-filters button{white-space:nowrap;border:1px solid #302f34;background:transparent;color:#e2dfe5;border-radius:20px;padding:7px 12px;font-size:9px}.filters button.selected,.filters button:hover,.role-filters button:hover{border-color:#6c5d48;color:#ffd18b;background:#24211d}.role-filters{display:flex;align-items:center;gap:7px;overflow:auto;margin:6px 0 17px}.role-filters button{padding:7px 11px}.cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px 13px}.empty-state{grid-column:1/-1;border:1px dashed #343238;color:#aaa;padding:25px}.chat-layout.active{background:#101012;color:#f5f2f6}.chat-list,.character-info{background:#101012;border-color:#2c2a30}.chat-list h3,.character-info h3{color:#fff}.chat-search input,.chat-list input{background:#232226;color:#fff}.chat-search{background:#232226}.history{color:#ddd;border-radius:8px}.history:hover{background:#242328}.chat-window,.chat{background:#111113}.chat-top,.chat-head{border-color:#29282d}.message-bubble,.msg:not(.user){background:#29272d;color:#f2eff5}.chat-compose,.composer{background:#1c1b1f;border-color:#343238}.chat-compose textarea,.composer textarea{background:transparent;color:#fff}.info-cover,.cover{background:linear-gradient(135deg,#493347,#302c49);color:#e2c5f5}.info-body>p,.character-info p{color:#b4b0ba}.outline-btn,.character-info>button{background:#1c1b1f;border-color:#38363c;color:#d6c9ff}.privacy-note,.privacy{color:#928e98}.create{color:#f6f3f7}.create form{background:#151417;border-color:#302e34}.create input,.create textarea,.create select{background:#201f23;border-color:#39373d;color:#f5f2f7}.create>p{color:#aaa}.login:hover{background:#e6e1eb}
.card-art.violet{background-color:#3e3354;background-image:radial-gradient(ellipse at 70% 20%,#d5a3d433,transparent 45%),linear-gradient(135deg,#4a3c5f,#17161d)}.card-art.peach{background-color:#533c3a;background-image:radial-gradient(ellipse at 30% 20%,#f3af8c55,transparent 46%),linear-gradient(135deg,#593b3a,#1a171a)}.card-art.blue{background-color:#293e53;background-image:radial-gradient(ellipse at 70% 18%,#8ab9e544,transparent 45%),linear-gradient(135deg,#32465d,#15171c)}.card-art.green{background-color:#334c42;background-image:radial-gradient(ellipse at 70% 20%,#a7d6ad44,transparent 45%),linear-gradient(135deg,#3d5949,#151a17)}.card-art.rose{background-color:#563a4d;background-image:radial-gradient(ellipse at 70% 20%,#ed99bf44,transparent 45%),linear-gradient(135deg,#573c51,#19161c)}.card-art.gold{background-color:#57462d;background-image:radial-gradient(ellipse at 70% 20%,#f0d18a55,transparent 45%),linear-gradient(135deg,#5c4b32,#1b1915)}
@media(max-width:1200px){.cards{grid-template-columns:repeat(4,minmax(0,1fr))}.main-area{margin-left:235px}.sidebar{width:235px}}@media(max-width:850px){.sidebar{width:205px}.main-area{margin-left:205px}.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.featured-cards .card{flex-basis:175px}.top-links{margin-left:10px}.top-link{padding:8px}}@media(max-width:650px){.sidebar{transform:translateX(-100%);background:#0b0b0d}.sidebar.open{transform:translateX(0)}.main-area,main{margin-left:0}header.topbar{height:56px;padding:0 12px}.top-links{gap:0}.top-link{font-size:9px;padding:7px}.actions{gap:5px}.credits{padding:7px 9px;font-size:9px}.language{display:none}.bell{display:none}.user-dot{width:32px;height:32px}.crumb{font-size:12px}.main-area #home .content-wrap{padding:0 12px}.section-title{align-items:flex-start;flex-direction:column;gap:7px}.section-title h2{font-size:17px}.periods{width:100%;overflow:auto}.periods button{padding:7px 10px}.featured-cards{margin-right:-12px}.featured-cards .card{flex-basis:150px}.featured-cards .card-art{height:205px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.card-art{height:155px}.feed-tabs{margin-left:-2px}.role-filters{margin-bottom:13px}.chat-layout.active{height:calc(100dvh - 56px)}.create{padding:23px 14px}.create form{padding:17px}}
main{margin-left:270px}
@media(max-width:1200px){main{margin-left:235px}}
@media(max-width:850px){main{margin-left:205px}}
/* Character creator */
.create{max-width:1250px;margin:0 auto;padding:30px 28px 60px}.create .back-link{color:#c0bac8;font-size:11px;margin-bottom:22px}.create-heading small{font-size:10px;color:#f18a58;letter-spacing:.08em}.create-heading h1{color:#fff;font-size:25px;margin:6px 0}.create-heading h1 i{font-style:normal;color:#f18a58}.create-heading p{color:#aaa5b0;font-size:11px;margin:0}.creation-layout{margin-top:20px}.create #form.character-form{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start;background:transparent;border:0;border-radius:0;padding:0;margin:0}.form-fields{min-width:0}.form-panel{background:#141316;border:1px solid #302e34;border-radius:14px;padding:19px 20px;margin-bottom:13px}.panel-title{display:flex;align-items:center;gap:11px;margin-bottom:17px}.panel-title>span{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#29232b;color:#f18a58;font-size:10px;font-weight:700}.panel-title b,.panel-title small{display:block}.panel-title b{font-size:12px;color:#f5f2f6}.panel-title small{font-size:9px;color:#918c97;margin-top:3px}.create .field-label{display:block;color:#ddd9e0;font-size:10px;font-weight:600;margin-bottom:14px}.create .field-label em{color:#ff9272;font-style:normal}.create .field-label input,.create .field-label textarea,.create .field-label select{font-family:inherit;margin-top:6px;border:1px solid #39373e;border-radius:9px;background:#1d1c20;color:#f4f1f6;padding:10px 11px;font-size:10px;outline:none}.create .field-label input:focus,.create .field-label textarea:focus,.create .field-label select:focus{border-color:#9b684e;box-shadow:0 0 0 3px #9b684e26}.create .field-label textarea{line-height:1.7;resize:vertical}.create .field-label small{display:block;font-size:9px;font-weight:400;color:#8c8792;margin-top:5px;line-height:1.6}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.avatar-upload{display:flex!important;align-items:center;gap:13px;border:1px dashed #47434c;background:#1b1a1e;border-radius:12px;padding:12px;margin:0 0 17px!important;cursor:pointer}.avatar-preview{width:78px;height:94px;flex:0 0 78px;border-radius:9px;background:linear-gradient(145deg,#40314a,#25242b);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#ff986d;font-size:24px;background-position:center;background-size:cover;overflow:hidden}.avatar-preview small{font-size:8px;color:#c7bdca;margin-top:3px}.avatar-preview.has-image small{display:none}.upload-copy b,.upload-copy small{display:block}.upload-copy b{font-size:10px;color:#f3eef5}.upload-copy small{font-size:9px;line-height:1.65;color:#96919c;margin:4px 0 7px}.upload-button{display:inline-block;border:1px solid #464149;border-radius:7px;padding:6px 9px;color:#e0d9e4;font-size:9px}.visibility-check{display:flex;align-items:center;gap:10px;padding:12px 3px;color:#eee}.visibility-check input{accent-color:#ef8050;width:15px;height:15px}.visibility-check b,.visibility-check small{display:block;font-size:10px}.visibility-check small{font-size:9px;color:#99939e;margin-top:3px}.submit{width:100%;border:0;background:#ef7547;color:white;border-radius:9px;padding:12px 16px;font-size:11px;font-weight:700;cursor:pointer}.submit:hover{background:#ff895b}.preview-panel{min-width:0}.preview-sticky{position:sticky;top:78px;background:#141316;border:1px solid #302e34;border-radius:14px;padding:16px}.preview-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.preview-head small{font-size:10px;color:#ccc6d1;font-weight:700}.preview-head span{font-size:8px;color:#72c6a0;background:#1d2c25;border-radius:12px;padding:4px 7px}.preview-character{overflow:hidden;border:1px solid #343139;border-radius:12px;background:#1b1a1e}.preview-portrait{height:220px;background:radial-gradient(ellipse at 50% 20%,#b98d9c55,transparent 40%),linear-gradient(145deg,#42364b,#18171b);display:grid;place-items:center;position:relative;background-position:center;background-size:cover}.preview-portrait>span{font-size:54px;color:#e6c8ef;text-shadow:0 8px 24px #0b0b0d}.preview-portrait>small{position:absolute;left:10px;top:10px;border-radius:12px;background:#121115c7;color:#f1eaf4;padding:5px 8px;font-size:8px}.preview-copy{padding:13px}.preview-meta{font-size:8px;color:#a8a1ad}.preview-copy h3{font-size:15px;color:#fff;margin:5px 0}.preview-copy>p{min-height:31px;font-size:10px;line-height:1.55;color:#c9c2ce;margin:5px 0 9px}.preview-tags{display:flex;flex-wrap:wrap;gap:5px}.preview-tags span{font-size:8px;color:#ddc2f1;border:1px solid #49404f;background:#29232f;border-radius:12px;padding:4px 7px}.preview-greeting{margin-top:12px;background:#242227;border-radius:9px;padding:10px}.preview-greeting small{color:#f09a70;font-size:8px}.preview-greeting p{font-size:9px;color:#ddd7e1;line-height:1.6;margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.preview-tip{font-size:9px;line-height:1.6;color:#aaa2af;background:#1d1b20;border-radius:9px;padding:10px;margin-top:11px}.create .back-link:hover{color:#fff}@media(max-width:950px){.create #form.character-form{grid-template-columns:minmax(0,1fr) 280px;gap:12px}.preview-sticky{top:70px}}@media(max-width:700px){.create{padding:22px 13px 44px}.create #form.character-form{grid-template-columns:1fr}.preview-panel{grid-row:1}.preview-sticky{position:static}.preview-portrait{height:180px}.form-panel{padding:15px}.field-grid{gap:0 9px}}
.create-nav{width:100%;border:0;border-radius:9px;background:#f4f2f5;color:#171619;padding:11px 12px;font-size:11px;font-weight:700;text-align:left;margin:-17px 0 14px;cursor:pointer;transition:.15s}.create-nav:hover{background:#ff8658;color:#111}
.field-hint{font-size:9px!important;color:#9e96a4!important;line-height:1.65}.optional{display:inline-block;margin-left:6px;background:#29272d;color:#aaa4b0;border-radius:10px;padding:3px 7px;font-size:8px;font-weight:400}.create .field-label textarea[name="description"]{min-height:190px}.create .field-label textarea[name="history"]{min-height:120px}
.prompt-tools{display:flex;gap:8px;flex-wrap:wrap;margin:7px 0 8px}.prompt-tools button{border:1px solid #514b55;border-radius:22px;background:#19181c;color:#faf7fc;min-width:48px;padding:7px 13px;font-size:10px;font-weight:600;cursor:pointer}.prompt-tools button:hover,.prompt-tools button:focus-visible{border-color:#ef8050;background:#30241f;color:#ffc49d;outline:none}
.hashtag-box{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:6px;padding:8px;border:1px solid #39373e;border-radius:9px;background:#1d1c20}.hashtag-chips{display:flex;flex-wrap:wrap;gap:6px}.hashtag-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #49404f;border-radius:16px;background:#29232f;color:#ddc2f1;font-size:9px}.hashtag-chip button{border:0;background:transparent;color:#c8b9ce;cursor:pointer}.hashtag-entry{display:flex;align-items:center;gap:5px;flex:1;min-width:140px;color:#a99cac}.create .field-label .hashtag-entry input{width:100%;margin:0!important;padding:5px!important;border:0!important;background:transparent!important;box-shadow:none!important;outline:none}.hashtag-entry #hashtagCount{flex:0 0 auto;white-space:nowrap;font-size:9px;color:#999}
.card{border:1px solid #473b4c;border-radius:17px;background:#100e13;overflow:hidden}.card-art{height:500px!important;min-height:420px;display:block!important;position:relative;border-radius:16px!important;background-size:cover;background-position:center}.card-art:before,.card-art:after{pointer-events:none}.card-art .exclusive{display:none}.card-art .art-symbol{display:block;position:absolute;inset:0;z-index:0;background:transparent;padding:0;border-radius:0}.card-body{position:absolute;z-index:2;inset:auto 0 0;padding:62px 15px 14px!important;background:linear-gradient(0deg,#08070cf2 0%,#08070cc9 58%,transparent 100%);color:#fff}.card-body h3{font-size:17px!important;color:#fff!important;margin:0 0 4px!important}.card-handle{display:block;font-size:11px;color:#f0eaf2;margin-bottom:7px}.card-body p{font-size:11px!important;color:#eee9f0!important;line-height:1.5!important;margin:0 0 9px!important;min-height:0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-facts,.card-body .tags{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 6px}.card-facts i,.card-body .tags .tag{font-style:normal;font-size:9px;color:#f1eaf2;background:#17151bc9;border:1px solid #ffffff20;border-radius:14px;padding:4px 8px;margin:0}.card-stats{display:flex;gap:14px;margin-top:15px;font-size:12px;color:#fff}.card-chat-hit{position:absolute;inset:0;z-index:1;border:0;background:transparent;cursor:pointer}.card-save{z-index:4}.card-metric{display:none}
.card-art{height:auto!important;min-height:0;aspect-ratio:.72}.card-art.has-image:before,.card-art.has-image:after{display:none}
.card-body{padding-bottom:48px!important}.card-stats{position:absolute;left:15px;bottom:14px;margin:0;align-items:center}
.card-art{position:relative}.card-body{position:absolute;inset:0!important;display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:62px 15px 54px!important}.card-stats{position:absolute;left:15px;bottom:14px}
.card-body{padding:62px 15px 14px!important}.card-stats{position:static;left:auto;bottom:auto;margin:7px 0 0;align-items:center}
.card-stats{gap:18px!important}.card-stats span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.card-stats i{font-style:normal;line-height:1}
.card-stats{position:static!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:flex-start!important;align-items:center!important;gap:24px!important;width:max-content;max-width:100%;margin:8px 0 0!important;line-height:1.4}.card-stats span{position:static!important;display:inline-flex!important;flex:0 0 auto!important;align-items:center;gap:6px;white-space:nowrap}
.card-stats{gap:10px!important}.card-stats span{gap:4px}
.card-stats{gap:6px!important}
.card-stats span{background:rgba(15,13,18,.38);padding:3px 6px;border-radius:12px}
/* Black and violet theme accents */
.brand:first-letter,.brand span{color:#a78bfa}.nav.active,.nav:hover{background:#241b33;color:#c4b5fd}.top-link.active,.top-link:hover,.periods button.on,.periods button:hover,.feed-tabs button.on,.feed-tabs button:hover{color:#c4b5fd}.section-title h2 i,.create-heading small,.create .field-label em,.panel-title>span,.create-heading h1 i,.preview-greeting small{color:#b69ae3}.create-heading h1 i{color:#b69ae3}.create .field-label input:focus,.create .field-label textarea:focus,.create .field-label select:focus{border-color:#8b5cf6;box-shadow:0 0 0 3px #8b5cf626}.avatar-upload:hover{border-color:#8b5cf6}.avatar-preview{color:#c4b5fd}.visibility-check input{accent-color:#8b5cf6}.submit{background:#7651b8}.submit:hover{background:#8b5cf6}.create-nav:hover{background:#8b5cf6;color:#fff}.prompt-tools button:hover,.prompt-tools button:focus-visible{border-color:#8b5cf6;background:#302344;color:#d6c9ff}.top-link.active,.periods button.on,.feed-tabs button.on{background:#272032}.hashtag-chip{background:#292137;border-color:#57416f;color:#ddc2f1}
@media(min-width:900px){main{padding-left:16px}}
.top-links{display:flex;align-items:center;gap:10px}.top-search{display:flex;align-items:center;gap:7px;width:clamp(150px,20vw,250px);height:34px;padding:0 11px;border:1px solid #393240;border-radius:18px;background:#17151b;color:#b69ae3}.top-search span{font-size:18px;line-height:1}.top-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#f4f1f6;font:inherit;font-size:11px}.top-search input::placeholder{color:#8c8792}.top-search:focus-within{border-color:#8b5cf6;box-shadow:0 0 0 2px #8b5cf626}
.role-filters button.selected{border-color:#8b5cf6;background:#2a2039;color:#d6c9ff}
.character-view{min-height:calc(100vh - 74px);padding:20px 28px 24px;color:#f3eef7}.character-toolbar{margin-bottom:14px}.character-toolbar button{border:0;background:transparent;color:#c4b5fd;font-size:12px;padding:8px 0}.character-layout{display:grid;grid-template-columns:minmax(230px,310px) minmax(0,1fr);gap:24px;align-items:start;max-width:1450px;margin:0 auto}.character-profile{position:sticky;top:18px;min-width:0}.detail-portrait{height:min(56vh,440px);min-height:280px;border:1px solid #42334c;border-radius:18px;background:radial-gradient(ellipse at 50% 30%,#4a385d,#17131e 70%);background-position:center;background-size:cover;display:grid;place-items:center;color:#c4b5fd;font-size:68px}.detail-stats{display:flex;gap:24px;color:#c9bdd1;padding:12px 10px;font-size:13px}.detail-stats span{display:inline-flex;gap:6px;align-items:center}.detail-profile h1,.character-profile h1{font-size:24px;margin:12px 0}.detail-facts,.detail-tags{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.detail-facts span,.detail-tags span{border:1px solid #4a3b55;border-radius:18px;background:#211a2a;padding:6px 10px;color:#e5dcf2;font-size:11px}.detail-tagline{font-size:13px;line-height:1.7;color:#e5dfea;margin:14px 0}.detail-created{color:#958a9f}.character-content{min-width:0;position:relative;padding-bottom:70px}.character-tabs{height:48px;display:flex;gap:24px;border-bottom:1px solid #3c3045;margin-bottom:14px}.character-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:#9d91a5;padding:0 5px;font-size:12px}.character-tabs button.active{color:#c4a4f3;border-color:#a78bfa}.character-detail-panel{display:grid;gap:13px;max-height:calc(100vh - 190px);overflow:auto;padding:2px 4px 18px 0}.detail-card{border:1px solid #403248;border-radius:16px;background:#17141d;padding:18px}.detail-card h2{margin:0 0 12px;color:#c4a4f3;font-size:13px}.detail-longtext,.detail-greeting{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;color:#e8e1eb;font-size:12px;margin:0}.detail-empty{color:#9d91a5;text-align:center;padding:46px 18px}.character-actions{position:fixed;left:calc(max(225px, 16vw) + 350px);right:28px;bottom:12px;display:flex;gap:10px;z-index:4}.start-chat-button{flex:1;border:0;border-radius:24px;background:#7651b8;color:white;font-weight:700;padding:13px}.start-chat-button:hover{background:#8b5cf6}.detail-icon-button{width:48px;height:48px;border:1px solid #80629e;border-radius:50%;background:#17141dcc;color:#d9c4f4;font-size:22px}.detail-icon-button.active{background:#36254a;color:#e5c4ff}@media(max-width:950px){.character-view{padding:14px}.character-layout{grid-template-columns:minmax(170px,250px) minmax(0,1fr);gap:15px}.character-actions{left:calc(225px + 265px);right:14px}}@media(max-width:700px){.character-layout{grid-template-columns:1fr}.character-profile{position:static}.detail-portrait{height:340px}.character-actions{position:fixed;left:12px;right:12px;bottom:10px}.character-detail-panel{max-height:none}.character-content{padding-bottom:70px}}
.character-actions{left:555px}
.character-tabs{display:none}.character-detail-panel{max-height:calc(100vh - 170px);gap:14px}.comments-card h2{margin-bottom:12px}.comment-form{display:grid;gap:9px}.comment-form textarea{width:100%;resize:vertical;min-height:74px;border:1px solid #44364e;border-radius:11px;background:#100e15;color:#f3eef7;padding:11px;font:inherit;font-size:12px;outline:none}.comment-form textarea:focus{border-color:#8b5cf6;box-shadow:0 0 0 2px #8b5cf626}.comment-form button{justify-self:end;border:0;border-radius:18px;background:#7651b8;color:white;padding:8px 17px;font-size:11px}.comment-list{display:grid;gap:9px;margin-top:14px}.comment-item{border:1px solid #342a3c;border-radius:11px;background:#131118;padding:11px 13px}.comment-item b{font-size:11px;color:#d6c9ff}.comment-item p{white-space:pre-wrap;overflow-wrap:anywhere;color:#e8e1eb;font-size:12px;line-height:1.6;margin:6px 0}.comment-item small,.comments-empty{color:#978d9e;font-size:10px}.comments-empty{margin:13px 0 0}
.character-actions{left:583px;right:44px}.card-stats i.saved{color:#d6c9ff}
@media(max-width:950px){.character-actions{left:514px;right:30px}}
.character-content{height:calc(100vh - 150px);display:flex;flex-direction:column;padding-bottom:0}.character-detail-panel{flex:1;min-height:0;max-height:none}.character-actions{position:static;left:auto;right:auto;bottom:auto;flex:0 0 auto;width:100%;margin-top:12px;z-index:4}.character-actions .start-chat-button{min-width:0}.character-actions .detail-icon-button{flex:0 0 48px}
@media(max-width:950px){.character-content{height:calc(100vh - 140px)}.character-actions{left:auto;right:auto}}
@media(max-width:700px){.character-content{height:auto;display:flex;padding-bottom:0}.character-detail-panel{max-height:none;overflow:visible}.character-actions{position:sticky;bottom:8px;left:auto;right:auto;width:100%;margin-top:12px}}
.character-content{padding-bottom:70px!important}.character-actions{position:fixed!important;bottom:12px!important;margin:0!important;z-index:10!important;box-sizing:border-box}.character-actions .start-chat-button{height:48px}
*{scrollbar-width:thin;scrollbar-color:#5f4a75 #17131e}
*::-webkit-scrollbar{width:10px;height:10px}
*::-webkit-scrollbar-track{background:#17131e;border-radius:10px}
*::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#7651b8,#4d3a62);border:2px solid #17131e;border-radius:10px}
*::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#9b7bd1,#7651b8)}
*::-webkit-scrollbar-corner{background:#17131e}
.top-links{flex:1;min-width:180px}.top-search{width:clamp(240px,34vw,430px)}
.preview-card{width:100%;min-width:0;flex:0 0 auto;cursor:default}.preview-card .card-art{width:100%}.preview-card .card-chat-hit{display:none}.preview-card .card-stats{pointer-events:none}
.preview-card .card-art:before,.preview-card .card-art:after,.preview-card #previewSymbol{display:none!important}
.actions{position:relative}.profile-dropdown{position:absolute;right:0;top:calc(100% + 9px);z-index:30;min-width:174px;padding:6px;border:1px solid #49385a;border-radius:12px;background:#1a1620;box-shadow:0 14px 36px #0009}.profile-dropdown[hidden]{display:none!important}.profile-dropdown button{display:block;width:100%;border:0;border-radius:8px;background:transparent;color:#ece5f2;text-align:left;padding:10px 11px;font-size:11px}.profile-dropdown button:hover{background:#2a2037;color:#d6c9ff}.profile-dropdown button:last-child{color:#e7a3bb}.account-view{min-height:calc(100vh - 74px);padding:28px;color:#f3eef7}.account-back{border:0;background:transparent;color:#c4b5fd}.account-panel{max-width:540px;margin:44px auto;padding:32px;border:1px solid #403248;border-radius:18px;background:#17141d;text-align:center}.account-avatar{width:76px;height:76px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;background:#302344;color:#d6c9ff;font-size:30px}.account-panel>small{color:#b69ae3}.account-panel h1{margin:7px 0;font-size:24px}.account-panel>p{margin:0;color:#9d91a5;font-size:12px}.account-stats{display:flex;justify-content:center;gap:40px;margin-top:24px;padding-top:20px;border-top:1px solid #382c41}.account-stats b,.account-stats small{display:block}.account-stats b{font-size:20px;color:#d6c9ff}.account-stats small{margin-top:4px;color:#9d91a5;font-size:10px}
.account-view{max-width:1500px;margin:0 auto}.account-profile-header{display:grid;grid-template-columns:96px minmax(200px,1fr) auto;gap:22px;align-items:center;margin:16px auto 32px;padding:26px;border:1px solid #352a40;border-radius:18px;background:linear-gradient(135deg,#1b1721,#111015)}.account-avatar{width:86px;height:86px;margin:0;border:1px solid #58436c;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#38294a,#211b29);color:#d6c9ff;font-size:32px}.account-identity>small,.collection-section header small{color:#a78bfa;font-size:9px;letter-spacing:.13em}.account-identity h1{margin:5px 0;font-size:23px}.account-identity p{margin:0;color:#a69aaa;font-size:11px}.account-bio{margin-top:10px;color:#d8cfdf;font-size:12px}.account-follow-stats{display:flex;gap:34px}.account-follow-stats>div{text-align:center;min-width:78px}.account-follow-stats b,.account-follow-stats small{display:block}.account-follow-stats b{font-size:20px;color:#f4edf8}.account-follow-stats small{margin-top:4px;color:#a69aaa;font-size:10px}.collection-section{max-width:1450px;margin:0 auto}.collection-section header{display:flex;align-items:end;justify-content:space-between;margin-bottom:16px}.collection-section h2{margin:5px 0 0;font-size:19px}.collection-section header>span{color:#a69aaa;font-size:10px}.account-collection{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.account-collection .card{width:100%}.account-collection .empty-state{grid-column:1/-1;padding:44px;text-align:center;border:1px dashed #49385a;border-radius:14px;color:#a69aaa}@media(max-width:1000px){.account-profile-header{grid-template-columns:76px 1fr}.account-avatar{width:70px;height:70px}.account-follow-stats{grid-column:1/-1;justify-content:space-around;padding-top:16px;border-top:1px solid #382c41}.account-collection{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.account-view{padding:16px 12px}.account-profile-header{padding:18px;gap:14px}.account-follow-stats{gap:8px}.account-follow-stats>div{min-width:0}.account-collection{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
.profile-edit-button{margin-top:12px;border:1px solid #59446d;border-radius:9px;background:#211a2a;color:#d6c9ff;padding:8px 13px;font-size:10px}.profile-edit-button:hover{border-color:#9b7bd1;background:#2a2037}
.profile-modal[hidden]{display:none!important}.profile-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center}.profile-modal-backdrop{position:absolute;inset:0;background:#000b;backdrop-filter:blur(3px)}.profile-modal-panel{position:relative;display:flex;flex-direction:column;width:min(760px,calc(100vw - 28px));max-height:min(88vh,900px);border:1px solid #403248;border-radius:18px;background:#131117;box-shadow:0 24px 80px #000b;overflow:hidden}.profile-modal-header{height:64px;flex:0 0 64px;display:flex;align-items:center;gap:15px;padding:0 18px;border-bottom:1px solid #302a35}.profile-modal-header button{border:0;background:transparent;color:#ded5e5;font-size:20px}.profile-modal-header h2{font-size:15px;margin:0;color:#f3eef7}.profile-modal-panel form{min-height:0;display:flex;flex-direction:column}.profile-modal-scroll{overflow:auto;padding:18px 24px 20px}.profile-photo-editor{display:grid;justify-items:center;gap:9px;margin:0 auto 24px}.profile-photo-preview{width:94px;height:94px;border:2px solid #57436b;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#38294a,#211b29);background-size:cover;background-position:center;color:#d6c9ff;font-size:32px}.profile-photo-preview.has-photo{color:transparent}.profile-photo-actions{display:flex;align-items:center;gap:9px}.profile-photo-pick,.profile-photo-actions button{border:1px solid #4c3a5c;border-radius:16px;background:#211a2a;color:#d6c9ff;padding:6px 12px;font-size:10px;cursor:pointer}.profile-photo-actions button{color:#e7a3bb}.profile-modal-scroll>label{display:block;margin:0 0 17px;color:#e6dfea;font-size:11px;font-weight:600}.profile-modal-scroll>label small{float:right;color:#92889a;font-size:9px;font-weight:400}.profile-modal-scroll input,.profile-modal-scroll textarea{display:block;width:100%;margin-top:7px;border:1px solid #35303a;border-radius:12px;background:#1b191f;color:#f2edf5;padding:12px 14px;font:inherit;font-size:12px;outline:none}.profile-modal-scroll textarea{resize:vertical;line-height:1.7}.profile-modal-scroll input:focus,.profile-modal-scroll textarea:focus{border-color:#8b5cf6;box-shadow:0 0 0 2px #8b5cf626}.profile-id-input{display:flex;align-items:center;margin-top:7px;border:1px solid #35303a;border-radius:12px;background:#1b191f;padding-left:13px;color:#a78bfa}.profile-id-input input{margin:0;border:0;background:transparent;box-shadow:none}.profile-modal-footer{display:flex;justify-content:flex-end;gap:9px;padding:12px 18px;border-top:1px solid #302a35;background:#131117}.profile-modal-footer button{border:1px solid #4c3a5c;border-radius:10px;background:#211a2a;color:#e5dcef;padding:10px 15px;font-size:11px}.profile-modal-footer button[type=submit]{border-color:#7651b8;background:#7651b8;color:white;font-weight:700}.modal-open{overflow:hidden}.user-dot.has-photo{background-size:cover;background-position:center;color:transparent}.account-avatar.has-photo,.profile-photo-preview.has-photo,.profile>span.has-photo{background-size:cover;background-position:center;color:transparent}
.profile-photo-editor{position:relative!important;padding-bottom:2px!important;display:grid!important;justify-items:center!important;gap:9px!important;margin:0 auto 24px!important}.profile-photo-actions{position:absolute!important;top:76px!important;left:50%!important;transform:translateX(-50%)!important;display:flex!important;gap:0!important;padding:3px!important;border:1px solid #49404f!important;border-radius:22px!important;background:#201d24!important;z-index:4!important}.profile-photo-icon{width:38px!important;height:34px!important;display:grid!important;place-items:center!important;border:0!important;background:transparent!important;color:#e5dfea!important;padding:0!important;cursor:pointer!important}.profile-photo-icon svg{width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}.profile-photo-icon.remove-photo{color:#ff6b68!important}.profile-photo-icon:hover{background:#302b35!important;border-radius:18px!important}.profile-photo-hint{color:#99919f!important;font-size:9px!important;text-align:center!important}.profile-photo-pick{display:none!important}
.profile-photo-icon input[hidden],.profile-photo-actions input[hidden],.profile-modal-scroll input[hidden]{display:none!important;visibility:hidden!important;width:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important}
.profile-modal-header{background:#17141d!important;color:#f3eef7!important;border-bottom:1px solid #39303f!important}.profile-modal-header h2{color:#f3eef7!important}.profile-modal-header button{color:#d6c9ff!important}

/* Chat history rows, avatars and quick actions */
.history-row{position:relative;display:flex;align-items:center;gap:5px;padding:5px 4px!important;min-height:48px;border-radius:10px;cursor:default!important}.history-row:hover{background:#1d1b22}.history-open{display:flex;align-items:center;gap:9px;flex:1;min-width:0;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.history-avatar{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:linear-gradient(140deg,#51425f,#27232d);border:1px solid #403748;color:#e9dfff;font-size:15px;overflow:hidden}.history-avatar.has-image{background-size:cover;background-position:center}.history-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.3;font-size:11px}.history-more{flex:0 0 28px;width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:#aaa5b1;letter-spacing:1px;font-size:10px;cursor:pointer}.history-more:hover,.history-more[aria-expanded="true"]{background:#302b38;color:#eee8f5}.history-menu{position:absolute;right:2px;top:37px;z-index:20;min-width:138px;padding:5px;border:1px solid #3c3545;border-radius:10px;background:#211e27;box-shadow:0 10px 26px #0009}.history-menu[hidden]{display:none}.history-menu button{display:block;width:100%;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:#eee9f4;text-align:left;font:inherit;font-size:11px;cursor:pointer}.history-menu button:hover{background:#332d3b}.history-menu button.delete-chat{color:#f39aab}
/* Chat header avatar */
.chat-head>.chat-avatar{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:0;overflow:hidden;border:1px solid #42394d;border-radius:50%;background:linear-gradient(140deg,#51425f,#27232d);color:#eee4ff}.chat-head>.chat-avatar.has-image{background:#211e27}.chat-head>.chat-avatar img{display:block;width:100%;height:100%;object-fit:cover}
/* Supabase Auth modal and controls */
.profile-dropdown [hidden],.auth-top-button[hidden]{display:none!important}.auth-top-button{border:1px solid #514564;border-radius:18px;padding:8px 13px;background:#211d29;color:#e9ddff;font:inherit;font-size:11px;cursor:pointer}.auth-top-button:hover{background:#30263d;border-color:#8b6fd3}.user-dot.has-photo{background-size:cover!important;background-position:center!important}
.auth-modal{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:18px}.auth-modal[hidden]{display:none}.auth-backdrop{position:absolute;inset:0;background:#050407d9;backdrop-filter:blur(8px)}.auth-panel{position:relative;z-index:1;width:min(100%,440px);max-height:min(90dvh,760px);overflow:auto;padding:34px 32px 26px;border:1px solid #443852;border-radius:22px;background:linear-gradient(160deg,#1a1720,#100f13 72%);box-shadow:0 24px 90px #000b;color:#f5f1f8}.auth-close{position:absolute;top:13px;right:15px;width:34px;height:34px;border:1px solid #3a3540;border-radius:50%;background:#211e26;color:#c7bdcf;font-size:23px;line-height:1;cursor:pointer}.auth-brand{margin:2px 0 18px;color:#f6f1fa;font-size:17px;font-weight:700}.auth-brand span{color:#a78bfa}.auth-panel h2{margin:0;text-align:center;font-size:25px}.auth-intro{margin:7px 0 24px;text-align:center;color:#aaa2b3;font-size:12px}.auth-socials{display:grid;gap:10px}.auth-social{height:46px;border:1px solid #403946;border-radius:11px;background:#211e26;color:#f4eff7;font:inherit;font-weight:600;cursor:pointer}.auth-social:hover{background:#2c2733;border-color:#706080}.auth-social:disabled,.auth-submit:disabled{opacity:.55;cursor:wait}.google-mark,.discord-mark{display:inline-grid;place-items:center;width:21px;height:21px;margin-right:8px;border-radius:50%;background:#f5f3f8;color:#4285f4;font-weight:800}.discord-mark{background:#5865f2;color:white}.auth-divider{display:flex;align-items:center;gap:12px;margin:22px 0;color:#8e8797;font-size:11px}.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:#35303b}.auth-panel form{display:grid;gap:14px}.auth-panel form label{display:grid;gap:7px;color:#d9d1e1;font-size:12px;font-weight:600}.auth-panel input{width:100%;height:44px;padding:0 13px;border:1px solid #3e3945;border-radius:10px;outline:none;background:#1c1a20;color:#f8f4fb;font:inherit;font-size:13px}.auth-panel input:focus{border-color:#a78bfa;box-shadow:0 0 0 3px #a78bfa22}.auth-panel input::placeholder{color:#746d7b}.auth-submit{height:46px;margin-top:3px;border:0;border-radius:11px;background:linear-gradient(100deg,#8065ca,#a982ea);color:white;font:inherit;font-weight:700;cursor:pointer}.auth-switch{margin:17px 0 4px;text-align:center;color:#aaa2b3;font-size:12px}.auth-switch button{border:0;background:none;color:#c3a7ff;font:inherit;font-weight:700;cursor:pointer}.auth-message{min-height:18px;margin:9px 0 5px;text-align:center;color:#b8a5ed;font-size:12px;line-height:1.6}.auth-message.error{color:#ff9eae}.auth-message.success{color:#9edbb8}.auth-terms{display:block;margin-top:10px;color:#78717f;text-align:center;font-size:10px;line-height:1.6}.auth-open{overflow:hidden}
@media(max-width:520px){.auth-modal{padding:10px}.auth-panel{padding:30px 21px 22px;border-radius:18px}.auth-top-button{padding:7px 9px;font-size:10px}}
/* Hide visible scrollbars globally while preserving scrolling */
html,body,*,*::before,*::after{scrollbar-width:none;-ms-overflow-style:none}
*::-webkit-scrollbar,*::-webkit-scrollbar-track,*::-webkit-scrollbar-thumb{display:none;width:0;height:0;background:transparent}
.brand-mark{display:inline-grid;place-items:center;width:29px;height:29px;margin-right:5px;border-radius:9px;background:#eee9ff;color:#7562d8!important;font-size:21px;font-weight:800;line-height:1;vertical-align:middle}.auth-brand .brand-mark{width:25px;height:25px;border-radius:8px;background:#302644;color:#b99bff!important;font-size:19px}

.brand-mark{display:inline!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;border-radius:0!important;background:transparent!important;color:#a78bfa!important;font-size:inherit!important;font-weight:800!important;line-height:inherit!important;vertical-align:baseline!important}.auth-brand .brand-mark{font-size:inherit!important}

.saved-view{min-height:calc(100vh - 74px);padding:30px 28px;color:#f3eef7}.saved-heading small{color:#a78bfa;font-size:10px;letter-spacing:.12em}.saved-heading h1{margin:6px 0;font-size:24px}.saved-heading p{margin:0;color:#a69aaa;font-size:12px}.saved-character-cards{margin-top:24px}.saved-character-cards .empty-state{grid-column:1/-1;padding:48px 20px;border:1px dashed #49385a;border-radius:16px;color:#a69aaa;text-align:center}@media(max-width:650px){.saved-view{padding:20px 12px}.saved-character-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}

.character-creator{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;margin:4px 0 14px;padding:10px;border:1px solid #3b3044;border-radius:13px;background:#19151f}.creator-avatar{width:38px;height:38px;border:1px solid #51405f;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#38294a,#211b29);background-size:cover;background-position:center;color:#d6c9ff;font-size:16px}.creator-avatar.has-photo{color:transparent}.creator-identity{min-width:0}.creator-identity small,.creator-identity b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.creator-identity small{color:#9d91a5;font-size:9px}.creator-identity b{margin:2px 0;color:#f3eef7;font-size:11px}.character-creator>button{border:1px solid #5c4770;border-radius:18px;background:#241c2e;color:#d8c8f2;padding:7px 10px;font-size:9px;white-space:nowrap}.character-creator>button:hover:not(:disabled){border-color:#a78bfa;background:#302344}.character-creator>button.following{background:#302344;color:#c4a4f3}.character-creator>button:disabled{opacity:.65;cursor:default}

.discord-mark{display:inline-block!important;object-fit:cover!important;border-radius:6px!important;background:transparent!important;vertical-align:middle!important}

.msg{font-size:14px;line-height:1.8;padding:12px 15px}.msg:not(.user){color:#fff}.message-dialogue{color:#fff;font-style:normal}.message-action{color:#c1bacb;font-style:italic}

/* Site-wide readable type scale */
body{font-size:15px!important}
.nav,.create-nav,.plain,.primary,.section-title button,.filters button,.role-filters button,.feed-tabs button,.periods button,.card-body button,.creator button,.profile-edit-button,.submit,.create .back-link,.prompt-tools button,.comment-form button,.character-tabs button,.character-toolbar button,.auth-top-button,.profile-dropdown button,.profile-modal-footer button,.history-menu button{font-size:13px!important}
.label,.crumb,.credits,.login,.hero-copy>small,.section-title small,.creator small,.create>small,.hero p,.plain,.subline,.bubble,.stats b,.stats small,.filters button,.role-filters>span,.role-filters button,.feed-tabs button,.card-art .exclusive,.card-metric,.card-body p,.card-facts i,.card-body .tags .tag,.card-stats,.creator div small,footer,.chat-list input,.history,.history-name,.history-more,.chat-head small,.composer small,.character-info p,.character-info .tag,.character-info>button,.privacy,.create>p,.create-heading small,.create-heading p,.panel-title>span,.panel-title small,.create .field-label,.create .field-label small,.field-hint,.optional,.avatar-preview small,.upload-copy b,.upload-copy small,.upload-button,.visibility-check b,.visibility-check small,.preview-head small,.preview-head span,.preview-meta,.preview-copy>p,.preview-tags span,.preview-greeting small,.preview-greeting p,.preview-tip,.card-handle,.detail-facts span,.detail-tags span,.detail-card h2,.comment-item b,.comment-item small,.comments-empty,.account-identity>small,.collection-section header small,.account-identity p,.account-bio,.account-follow-stats small,.collection-section header>span,.profile-photo-pick,.profile-photo-actions button,.profile-modal-scroll>label small,.profile-photo-hint,.history-menu button,.auth-intro,.auth-divider,.auth-switch,.auth-message,.auth-terms,.saved-heading small,.saved-heading p,.creator-identity small,.creator-identity b,.character-creator>button{font-size:12px!important}
.top-search input,.create .field-label input,.create .field-label textarea,.create .field-label select,.comment-form textarea,.profile-modal-scroll input,.profile-modal-scroll textarea,.auth-panel form label,.auth-panel input{font-size:14px!important}
.hero h1{font-size:40px!important}.section-title h2,.collection-section h2{font-size:22px!important}.create-heading h1,.create h1,.account-identity h1,.account-panel h1,.saved-heading h1{font-size:28px!important}
.card-body h3{font-size:18px!important}.card-body p{font-size:14px!important;line-height:1.65}.card-facts i,.card-body .tags .tag,.tags .tag,.detail-facts span,.detail-tags span{font-size:12px!important}
.chat-list h3{font-size:16px!important}.history-name{font-size:14px!important}.chat-head b,.chat-head strong{font-size:16px!important}.msg{font-size:16px!important;line-height:1.85!important;padding:13px 16px!important}.composer textarea,.composer input{font-size:15px!important}.composer small{font-size:12px!important}.character-info h3{font-size:17px!important}.character-info p{font-size:14px!important;line-height:1.75}.detail-profile h1,.character-profile h1{font-size:27px!important}.detail-tagline,.detail-longtext,.detail-greeting,.comment-item p{font-size:15px!important;line-height:1.8}
.create .field-label{font-size:13px!important}.create .field-label input,.create .field-label textarea,.create .field-label select{font-size:14px!important}.create .field-label small,.field-hint,.upload-copy small,.visibility-check small{font-size:12px!important;line-height:1.65}.panel-title b{font-size:15px!important}.preview-copy h3{font-size:18px!important}.preview-tip{font-size:12px!important;line-height:1.7}
.account-stats small,.account-follow-stats small{font-size:12px!important}.profile-modal-scroll>label,.profile-modal-footer button{font-size:13px!important}.auth-social,.auth-submit{font-size:14px!important}.cover.has-image{padding:0;overflow:hidden;background:none!important}.cover.has-image img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.chat-character-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.chat-character-tags .tag{display:inline-block;margin:0;padding:6px 9px;border:1px solid #4a3b59;border-radius:999px;background:#211b29;color:#d6c9ff;font-size:12px!important;line-height:1.3}.character-info>button.active{background:#352946;border-color:#8b6fd3;color:#e3d4ff}
.username-cooldown-notice{display:block!important;float:none!important;margin-top:7px;color:#a99bb5!important;font-size:12px!important;line-height:1.6}.profile-modal-scroll input:disabled{opacity:.7;cursor:not-allowed;border-color:#544b5d;background:#211f26}
.composer-controls{display:flex;align-items:center;gap:10px}.model-picker{display:flex;align-items:center;gap:6px;min-width:0;padding:4px 8px;border:1px solid #4a4054;border-radius:9px;background:#24202a;color:#cbb9ea;font-size:12px!important}.model-picker>span{font-weight:700;color:#a78bfa}.model-picker select{max-width:210px;border:0;outline:0;background:transparent;color:#eee8f6;font:inherit;font-size:12px!important}.model-picker option{background:#1c1b1f;color:#f2edf5}.composer-controls>small{margin-left:auto;white-space:nowrap}.composer-controls>button{flex:0 0 36px;width:36px;height:36px}
.composer textarea{min-height:76px;max-height:180px;overflow-y:auto;line-height:1.6!important}
.composer .composer-format{flex:0 0 auto;min-width:0;width:auto;height:auto;padding:4px 8px;border:1px solid #4a4054;border-radius:9px;background:#24202a;color:#cbb9ea;font-size:12px!important;font-weight:400;line-height:1.4}.composer .composer-format:hover,.composer .composer-format:focus-visible{border-color:#4a4054;background:#24202a;color:#cbb9ea}.composer-controls{flex-wrap:wrap}


.top-links{position:relative}.search-results{position:absolute;z-index:20;top:calc(100% + 8px);left:0;width:min(430px,calc(100vw - 32px));max-height:min(70vh,520px);overflow:auto;padding:8px;border:1px solid #403749;border-radius:14px;background:#17151b;box-shadow:0 16px 40px #0008;color:#eee8f6}.search-results[hidden]{display:none}.search-result-heading{padding:8px 9px 5px;color:#a78bfa;font-size:11px;font-weight:700}.search-result{display:flex;width:100%;align-items:center;gap:10px;padding:9px;border:0;border-radius:9px;background:transparent;color:#f3eef7;text-align:left}.search-result:hover,.search-result:focus-visible{background:#292431;outline:none}.search-result-avatar{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border:1px solid #493d55;border-radius:50%;background:linear-gradient(145deg,#38294a,#211b29);background-position:center;background-size:cover;color:#d6c9ff}.search-result>span:last-child{min-width:0}.search-result b,.search-result small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-result b{font-size:13px}.search-result small{margin-top:3px;color:#aaa1b4;font-size:11px}.search-result-empty{padding:18px 10px;color:#aaa1b4;font-size:12px;text-align:center}.follow-profile-button.following{background:#302344;border-color:#8b6fd3;color:#e3d4ff}

.chat-count-icon{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px}.detail-stats .chat-count-icon{width:16px;height:16px}


#featuredCards{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x pan-y;cursor:grab}#featuredCards:active{cursor:grabbing}

.avatar-upload{display:inline-flex!important;align-items:stretch!important;justify-content:stretch!important;width:150px;height:200px;padding:0!important;gap:0!important;margin:0 0 17px!important;overflow:hidden;border:1px dashed #4a4054;background:transparent;border-radius:12px}.avatar-preview{display:flex;width:100%;height:100%;flex:1 1 100%;border:0;border-radius:11px;background:linear-gradient(145deg,#30283a,#1c1b20);background-position:center;background-size:cover;color:#c4b5fd;font-size:26px}.avatar-preview small{display:block;margin-top:7px;color:#aaa1b4;font-size:12px!important;line-height:1.4}.avatar-preview.has-image small{display:none}.avatar-upload:hover{border-color:#8b5cf6}
.avatar-upload input[type="file"][hidden]{display:none!important}
.notification-wrap{position:relative;display:flex;align-items:center}.notification-wrap .bell{position:relative;display:grid;place-items:center;width:38px;height:38px;padding:9px;border:1px solid #343238;background:#242328;color:#e5dff0;border-radius:50%;cursor:pointer}.notification-wrap .bell:hover,.notification-wrap .bell[aria-expanded="true"]{border-color:#624c7a;background:#2a2432}.bell svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.notification-badge{position:absolute;top:-3px;right:-3px;min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;border:2px solid #0d0d0f;border-radius:99px;background:#a78bfa;color:#17131d;font-size:9px;font-weight:800;line-height:1}.notification-badge[hidden]{display:none}.notification-panel[hidden]{display:none!important}.notification-panel{position:absolute;z-index:50;top:calc(100% + 10px);right:0;width:min(380px,calc(100vw - 24px));max-height:min(72vh,560px);overflow:hidden;border:1px solid #39343f;border-radius:15px;background:#151419;box-shadow:0 18px 50px #0009;color:#f4f1f6}.notification-panel>header{position:static;height:54px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #302d34;background:#17161b}.notification-panel>header b{font-size:14px}.notification-panel>header button{border:0;background:none;color:#c5b1ee;font-size:11px;cursor:pointer}.notification-list{max-height:min(64vh,500px);overflow:auto;padding:5px}.notification-item{width:100%;display:flex;align-items:flex-start;gap:10px;padding:11px 9px;border:0;border-radius:10px;background:transparent;color:#eeeaf2;text-align:left;cursor:pointer}.notification-item:hover{background:#211e27}.notification-item.unread{background:#1e1a26}.notification-avatar{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border:1px solid #4b4058;border-radius:50%;background:linear-gradient(145deg,#38294a,#211b29);background-position:center;background-size:cover;color:#d6c9ff;font-weight:700}.notification-copy{min-width:0;flex:1;display:grid;gap:4px}.notification-copy b{font-size:12px;line-height:1.45}.notification-copy>span{overflow:hidden;color:#bdb6c3;font-size:11px;line-height:1.5;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.notification-copy small{color:#827c89;font-size:10px}.notification-kind{flex:0 0 22px;width:22px;height:22px;display:grid;place-items:center;border:1px solid #4a3b58;border-radius:50%;background:#292333;color:#c7a9fa;font-size:11px;font-style:normal}.notification-empty{margin:0;padding:28px 12px;color:#98919f;font-size:12px;text-align:center}@media(max-width:650px){.notification-wrap .bell{width:32px;height:32px;padding:7px}.notification-panel{right:-44px;width:min(360px,calc(100vw - 18px))}}

/* Persisted chat message controls */
.msg{position:relative;display:flex;flex-direction:column;gap:7px}.msg-content{white-space:pre-wrap;overflow-wrap:anywhere}.message-tools{display:flex;justify-content:flex-end;gap:6px;opacity:.72}.msg:not(.user) .message-tools{justify-content:flex-start}.message-tool{display:grid;place-items:center;width:25px;height:23px;padding:0;border:1px solid #4b4354;border-radius:7px;background:#24212a;color:#c8bfd2;font:inherit;font-size:13px;cursor:pointer}.message-tool:hover,.message-tool:focus-visible{border-color:#9070bf;background:#30283a;color:#f3eaff;outline:none}.message-tool.delete-message:hover{border-color:#89515c;color:#f5a0aa}.message-editor{display:grid;gap:8px;min-width:min(420px,75vw)}.message-editor textarea{box-sizing:border-box;width:100%;min-height:84px;resize:vertical;padding:10px 12px;border:1px solid #51465d;border-radius:9px;background:#17151b;color:#f3eef7;font:inherit;line-height:1.6;outline:none}.message-editor textarea:focus{border-color:#9b79cb;box-shadow:0 0 0 2px #9b79cb25}.message-edit-actions{display:flex;flex-wrap:wrap;gap:7px}.message-edit-actions button{padding:6px 9px;border:1px solid #51465d;border-radius:8px;background:#28232f;color:#e9def7;font:inherit;font-size:12px;cursor:pointer}.message-edit-actions button[data-edit-mode="regenerate"]{border-color:#8062a9;background:#7351a4;color:#fff}.message-edit-actions button[data-edit-mode="cancel"]{color:#bcb3c6}.message-edit-actions button:disabled{opacity:.55;cursor:wait}.message-pending{color:#c5b3de!important;font-style:italic}
@media(max-width:600px){.message-tools{opacity:1}.message-editor{min-width:0;width:min(78vw,380px)}.message-edit-actions button{font-size:11px}}
/* Keep message action icons outside the text bubble, below it. */
.messages>.msg{width:fit-content;max-width:78%;align-self:flex-start;gap:5px;background:transparent!important;padding:0!important;border-radius:0!important;overflow:visible}.messages>.msg.user{align-self:flex-end;color:inherit}.msg-bubble{max-width:100%;padding:13px 16px;border-radius:14px;background:#211f26;color:#f4f1f6;font-size:inherit;line-height:inherit;white-space:normal;overflow-wrap:anywhere}.msg.user .msg-bubble{background:#30253f;color:#fff}.message-tools{padding:0 3px;gap:7px;opacity:1}.msg.user .message-tools{justify-content:flex-end}.msg:not(.user) .message-tools{justify-content:flex-start}.message-tool{width:30px;height:30px;border:1px solid #433d49;border-radius:50%;background:#17151b;color:#bcb5c5;font-size:15px}.message-tool:hover,.message-tool:focus-visible{background:#2a2432;border-color:#8a6db5;color:#f5edff}.message-editor{min-width:min(420px,70vw);margin-top:8px}.msg.message-pending{width:max-content;max-width:78%;padding:12px 15px!important;border-radius:13px!important;background:#211f26!important;color:#c5b3de!important}
@media(max-width:600px){.messages>.msg{max-width:90%}.message-editor{min-width:0;width:min(78vw,380px)}}
.message-tool.delete-message svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.message-tool.delete-message{color:#c1aeb5}.message-tool.delete-message:hover{color:#ff9a9a}
.delete-confirm-modal[hidden]{display:none!important}.delete-confirm-modal{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:18px}.delete-confirm-backdrop{position:absolute;inset:0;background:#050407c9;backdrop-filter:blur(3px)}.delete-confirm-panel{position:relative;width:min(100%,450px);padding:25px 24px 20px;border:1px solid #39343f;border-radius:13px;background:#111014;color:#f4f1f6;box-shadow:0 24px 80px #000b;animation:delete-dialog-in .16s ease-out}.delete-confirm-panel h2{margin:3px 34px 10px 0;font-size:19px;line-height:1.4}.delete-confirm-panel p{margin:0;color:#a8a2ad;font-size:14px;line-height:1.7}.delete-confirm-close{position:absolute;top:12px;right:13px;width:30px;height:30px;border:0;border-radius:7px;background:transparent;color:#a7a1ad;font-size:23px;line-height:1;cursor:pointer}.delete-confirm-close:hover{background:#25222a;color:#fff}.delete-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.delete-confirm-actions button{min-width:68px;padding:9px 16px;border:1px solid #343039;border-radius:8px;background:#111014;color:#eeeaf2;font:inherit;font-size:13px;cursor:pointer}.delete-confirm-actions button:hover{background:#242128}.delete-confirm-actions .delete-confirm-submit{border-color:#8d302e;background:#922d2b;color:#fff}.delete-confirm-actions .delete-confirm-submit:hover{border-color:#b43c38;background:#a93632}@keyframes delete-dialog-in{from{opacity:0;transform:translateY(6px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
/* Align delete confirmation with CharaxChat's dark violet theme. */
.delete-confirm-panel{border-color:#4a3a5d;background:#15121a;box-shadow:0 24px 80px #090610d9,0 0 32px #6c42a31f}.delete-confirm-close{color:#b6a6c9}.delete-confirm-close:hover{background:#292131;color:#f4eaff}.delete-confirm-actions button{border-color:#40374a;background:#1c1921;color:#e9e1f1}.delete-confirm-actions button:hover{border-color:#645078;background:#292231}.delete-confirm-actions .delete-confirm-submit{border-color:#7752a5;background:#67428f;color:#fff}.delete-confirm-actions .delete-confirm-submit:hover{border-color:#9a72c8;background:#7952a5}
.profile-character-edit{position:relative;z-index:5;display:inline-flex!important;align-items:center;gap:6px;margin-top:9px!important;padding:7px 10px!important;border:1px solid #a78bfa66!important;border-radius:8px!important;background:#251c33e8!important;color:#e2d1ff!important;font-size:11px!important;cursor:pointer}.profile-character-edit:hover{border-color:#c4a8ff!important;background:#352545!important;color:#fff!important}.account-collection .card-body{padding-bottom:17px!important}
@media(max-width:600px){.profile-character-edit{font-size:10px!important;padding:6px 8px!important}}
.account-collection .profile-character-edit{position:absolute!important;top:12px;right:12px;z-index:5;width:38px;height:38px;display:grid!important;place-items:center;margin:0!important;padding:0!important;border:1px solid #b99ae966!important;border-radius:50%!important;background:#17131dcf!important;color:#eee4ff!important;backdrop-filter:blur(8px);box-shadow:0 5px 16px #0008;cursor:pointer}.account-collection .profile-character-edit svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.account-collection .profile-character-edit:hover,.account-collection .profile-character-edit:focus-visible{border-color:#c5a7ff!important;background:#6b478ecc!important;color:#fff!important;outline:none;transform:scale(1.06)}

/* Daily cherry reward and purple cherry currency */
.chat-list{display:flex;flex-direction:column;min-height:0;overflow:hidden}
#history{flex:1;min-height:0;overflow:auto}
.cherry-icon{width:21px;height:21px;flex:none;fill:none;stroke:#bd9a78;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;filter:drop-shadow(0 1px 3px #a5467a55)}
.cherry-icon path:nth-child(2){fill:#c83f68;stroke:#f29aaa}
.cherry-icon path:nth-child(3){fill:#c83f68;stroke:#f29aaa}
.cherry-icon path:nth-child(4){fill:#788653;stroke:#aab77a}
.credits{display:inline-flex;align-items:center;gap:6px}
.credits .cherry-icon{width:20px;height:20px}
.credits{color:#fff}
.credits #coinBalanceValue{color:inherit}
.daily-reward-card{flex:none;margin:12px 2px 1px;padding:12px;border:1px solid #48365c;border-radius:13px;background:linear-gradient(145deg,#211a2c,#17141d);box-shadow:0 8px 24px #0003}
.daily-reward-heading{display:flex;align-items:center;gap:9px;margin-bottom:10px}
.daily-reward-heading .cherry-icon{width:25px;height:25px}
.daily-reward-heading b,.daily-reward-heading small{display:block}
.daily-reward-heading b{font-size:12px;color:#f3eaff}
.daily-reward-heading small{margin-top:2px;color:#a99bb8;font-size:10px}
#dailyRewardButton{display:block;width:100%;padding:9px 10px;border:1px solid #865fba;border-radius:9px;background:linear-gradient(120deg,#7045a4,#8b59c8);color:#fff;font:inherit;font-size:11px;font-weight:700;box-shadow:0 4px 13px #5e3a8a45;transition:filter .15s,transform .15s}
#dailyRewardButton:hover:not(:disabled){filter:brightness(1.12);transform:translateY(-1px)}
#dailyRewardButton:disabled{border-color:#51475e;background:#302a38;color:#c8bdd5;cursor:default;box-shadow:none}
#dailyRewardStatus{display:block;margin-top:8px;color:#aaa0b4;font-size:10px;line-height:1.5;text-align:center}
.daily-reward-card.is-claimed{border-color:#59466c;background:linear-gradient(145deg,#1f1b25,#17151b)}
@media(max-width:650px){.chat-list{display:none}}

/* Chat model selection and transparent cost sheet */
.model-picker-trigger{cursor:pointer;min-height:34px;font-family:inherit;white-space:nowrap}.model-picker-trigger:hover{border-color:#8063b8;background:#2d2637}.model-picker-trigger>span:last-child{color:#aaa0b9}.model-select-state{display:none!important}.model-modal[hidden]{display:none!important}.model-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px}.model-modal-backdrop{position:absolute;inset:0;border:0;background:#050407d9;backdrop-filter:blur(5px)}.model-dialog{position:relative;z-index:1;width:min(720px,100%);max-height:min(88vh,900px);overflow:auto;border:1px solid #49395e;border-radius:20px;background:linear-gradient(145deg,#18151e,#100f13 62%);color:#f4eff9;box-shadow:0 24px 90px #000b;padding:22px}.model-dialog>header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}.model-dialog>header small{color:#b9a5d8;font-size:12px}.model-dialog h2{font-size:21px;margin:4px 0 0}.model-modal-close{flex:0 0 36px;width:36px;height:36px;border:1px solid #49395e;border-radius:50%;background:#211b29;color:#eee5f7;font-size:24px;cursor:pointer}.model-dialog-intro,.model-dialog-note{color:#b7afc0;font-size:12px;line-height:1.7}.model-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.model-option{display:flex;flex-direction:column;gap:8px;text-align:left;padding:14px;border:1px solid #37303f;border-radius:14px;background:#1a171f;color:#f0eaf6;cursor:pointer;transition:border-color .16s,background .16s,transform .16s}.model-option:hover{border-color:#7555a5;background:#211b2a;transform:translateY(-1px)}.model-option[aria-pressed="true"]{border-color:#a477e2;background:linear-gradient(135deg,#2b203a,#1b1721);box-shadow:inset 0 0 0 1px #a477e244}.model-option-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.model-option-top b{font-size:14px}.model-option-top i{font-style:normal;font-size:10px;color:#d5b7ff;background:#342743;border:1px solid #4d3964;border-radius:20px;padding:4px 8px;white-space:nowrap}.model-option-desc{min-height:42px;color:#c0b9c8;font-size:12px;line-height:1.65}.model-option-meta{border-top:1px solid #332d3b;padding-top:8px;color:#aaa2b4;font-size:11px;line-height:1.6}.model-option-meta b{color:#e1c9ff}.model-dialog-note{border-top:1px solid #332d3b;padding-top:11px;margin:12px 0 0}.model-picker-trigger:focus-visible,.model-option:focus-visible,.model-modal-close:focus-visible{outline:2px solid #bc91f3;outline-offset:2px}
@media(max-width:620px){.model-modal{padding:10px;align-items:end}.model-dialog{max-height:90dvh;border-radius:18px 18px 12px 12px;padding:17px}.model-options{grid-template-columns:1fr;gap:8px}.model-option{padding:12px}.model-option-desc{min-height:0}.model-dialog h2{font-size:18px}}

/* Keep the model picker inside the composer and the dialog header on theme. */
.composer-controls>.model-picker-trigger{flex:0 1 auto!important;width:auto!important;max-width:min(260px,100%);min-width:0;height:36px!important;overflow:hidden}.model-picker-trigger>span:nth-child(2){overflow:hidden;text-overflow:ellipsis}.model-dialog>header{display:flex!important;position:relative!important;inset:auto!important;min-height:0!important;height:auto!important;padding:0!important;margin:0 0 12px!important;background:transparent!important;background-color:transparent!important;color:#f4eff9!important;border:0!important;border-bottom:1px solid #332d3b!important;border-radius:0!important;box-shadow:none!important}.model-dialog>header h2,.model-dialog>header small{color:inherit}.model-dialog>header small{color:#b9a5d8}.model-dialog>header h2{color:#f4eff9}.model-dialog>header .model-modal-close{flex:0 0 36px!important;width:36px!important;height:36px!important;background:#211b29!important;color:#eee5f7!important;border:1px solid #49395e!important}
@media(max-width:650px){.composer-controls>.model-picker-trigger{max-width:min(220px,100%)}}
.model-picker-trigger,.model-picker-trigger>span,.model-picker-trigger:hover,.model-picker-trigger:focus-visible{color:#fff!important}.model-picker-trigger>span:last-child{color:#fff!important}

/* Cherry top-up package picker */
.topup-modal[hidden]{display:none!important}.topup-modal{position:fixed;inset:0;z-index:1100;display:grid;place-items:center;padding:18px}.topup-backdrop{position:absolute;inset:0;border:0;background:#050407dc;backdrop-filter:blur(5px)}.topup-dialog{position:relative;width:min(540px,100%);max-height:90vh;overflow:auto;padding:22px;border:1px solid #49395e;border-radius:20px;background:linear-gradient(145deg,#1c1724,#100f13 68%);color:#f5f0fa;box-shadow:0 24px 90px #000b}.topup-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid #332d3b}.topup-dialog>header small{color:#c7a7e9}.topup-dialog h2{margin:4px 0 0;font-size:21px}.topup-close{width:36px;height:36px;border:1px solid #49395e;border-radius:50%;background:#211b29;color:#eee5f7;font-size:23px;cursor:pointer}.topup-intro,.topup-note{color:#b7afc0;font-size:12px;line-height:1.7}.topup-packages{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.topup-package{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:76px;padding:12px 14px;border:1px solid #3b3345;border-radius:13px;background:#1a171f;color:#f5f0fa;text-align:left;cursor:pointer;transition:.16s}.topup-package:hover{border-color:#9168bf;background:#241d2d;transform:translateY(-1px)}.topup-package b{font-size:16px}.topup-package span{color:#d0c4dc;font-size:12px}.topup-package .topup-amount{display:flex;align-items:center;gap:5px;font-weight:700;color:#fff}.topup-package .cherry-icon{width:19px;height:19px}.topup-note{border-top:1px solid #332d3b;padding-top:12px;margin:0}.topup-payment-status{margin-top:12px;padding:10px 12px;border:1px solid #49395e;border-radius:10px;background:#17141c;color:#d0c4dc;font-size:12px;line-height:1.6}
@media(max-width:560px){.topup-modal{padding:10px;align-items:end}.topup-dialog{padding:17px;border-radius:18px 18px 12px 12px;max-height:88dvh}.topup-packages{gap:8px}.topup-package{min-height:68px;padding:10px}}
.topup-package{position:relative;padding-bottom:25px}.topup-package .topup-bonus{position:absolute;right:10px;bottom:7px;color:#e5c5ff;font-size:10px;font-style:normal;font-weight:700}
.topup-package[aria-pressed="true"]{border-color:#a477e2;background:linear-gradient(135deg,#2b203a,#1b1721);box-shadow:inset 0 0 0 1px #a477e244}.topup-methods{margin-top:16px}.topup-methods h3{margin:0 0 9px;color:#eee7f5;font-size:13px}.topup-method-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.topup-method{display:flex;align-items:center;gap:9px;padding:11px;border:1px solid #3b3345;border-radius:12px;background:#1a171f;color:#eee7f5;font:inherit;font-size:12px;text-align:left;cursor:pointer}.topup-method>i{width:15px;height:15px;margin-left:auto;border:1px solid #786987;border-radius:50%}.topup-method[aria-pressed="true"]{border-color:#a477e2;background:#241d2d}.topup-method[aria-pressed="true"]>i{border:4px solid #bb91f2;background:#1a171f}.payment-mark{display:grid;place-items:center;width:46px;height:32px;border-radius:7px;font-size:9px;font-weight:800}.promptpay-mark{background:#154f89;color:#fff}.truemoney-mark{background:#ef6a25;color:#fff}.topup-pay-button{width:100%;margin-top:10px;padding:12px;border:1px solid #4d4556;border-radius:11px;background:#302b35;color:#b8afc2;font:inherit;font-size:13px;font-weight:700;cursor:not-allowed}

/* Keep the top-up dialog header aligned with the purple dark theme, overriding the global sticky header. */
.topup-dialog>header{position:relative!important;inset:auto!important;z-index:auto!important;height:auto!important;min-height:0!important;padding:0 0 14px!important;margin:0!important;background:transparent!important;background-color:transparent!important;color:#f5f0fa!important;border:0!important;border-bottom:1px solid #332d3b!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important}
/* Mobile-first layout repairs for narrow screens and touch input. */
.sidebar-backdrop[hidden]{display:none!important}
@media(max-width:650px){
  html,body{min-width:320px;width:100%;overflow-x:hidden}
  body{padding-bottom:env(safe-area-inset-bottom)}
  main,.main-area{width:100%;min-width:0;margin-left:0!important;padding-left:0!important}
  .sidebar{position:fixed;inset:0 auto 0 0;width:min(84vw,310px);max-width:310px;height:100dvh;padding:18px 14px calc(18px + env(safe-area-inset-bottom));overflow-y:auto;transform:translateX(-105%);transition:transform .22s ease;z-index:1201;background:#111015;border-right:1px solid #382c45;box-shadow:18px 0 45px #0008}
  .sidebar.open{transform:translateX(0)}
  .sidebar-backdrop{position:fixed;inset:0;z-index:1200;display:block;width:100%;height:100%;border:0;background:#050407b8;backdrop-filter:blur(2px)}
  header.topbar{position:sticky;top:0;z-index:1100;width:100%;height:58px;min-height:58px;padding:0 10px;gap:8px;background:#101012f2;border-bottom:1px solid #302a36}
  .menu{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:1px solid #3d3448;border-radius:11px;background:#211b29;color:#e9ddff;font-size:17px}
  .top-links{flex:1;min-width:0;width:auto;margin:0;gap:0}
  .top-search{width:100%;min-width:0;height:38px;padding:0 10px;border-radius:12px}
  .top-search input{font-size:14px!important}
  .search-results{left:0;right:0;width:auto;max-width:none}
  .actions{flex:0 0 auto;gap:6px;min-width:0}
  .actions .auth-top-button{display:none}
  .credits{gap:4px;padding:6px 7px;border-radius:12px;font-size:0}
  .credits .cherry-icon{width:18px;height:18px}
  .credits #coinBalanceValue{font-size:12px}
  .actions .login{padding:7px 9px;font-size:11px}
  .notification-wrap .bell{display:grid;width:34px;height:34px;padding:7px}
  .user-dot{flex:0 0 34px;width:34px;height:34px}
  .profile-dropdown{right:0;max-width:calc(100vw - 20px)}
  .hero{margin:14px 12px 0;min-height:0;padding:24px 18px;border-radius:17px}
  .hero h1{font-size:clamp(25px,7vw,34px)!important;line-height:1.35;margin:12px 0 7px}
  .hero p{font-size:14px;line-height:1.7}
  .hero .primary,.hero .plain{min-height:42px;margin:8px 0 0;padding:10px 12px;font-size:13px}
  .hero .plain{margin-left:4px}
  .hero .art{display:none}
  .subline{margin-top:15px;font-size:11px}
  .stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px;padding:11px 8px}
  .stats div{padding:0 5px;border-right:1px solid #302c37;text-align:center}
  .stats div:first-child{padding-left:5px}
  .stats b{font-size:11px;line-height:1.5}
  .stats small{font-size:10px;line-height:1.45}
  .section{margin:24px 12px}
  .section-title{align-items:flex-start;flex-direction:column;gap:7px}
  .section-title h2{font-size:18px!important;line-height:1.4}
  .periods{display:flex;gap:4px;width:100%;max-width:100%;overflow-x:auto;white-space:nowrap;padding:3px 0}
  .periods button{flex:0 0 auto;padding:8px 10px;font-size:12px}
  .featured-cards{margin-right:-12px;scroll-snap-type:x mandatory;gap:10px;padding-bottom:8px}
  .featured-cards .card{flex:0 0 clamp(148px,44vw,182px);scroll-snap-align:start}
  .featured-cards .card-art{height:clamp(195px,61vw,245px)}
  .feed-tabs{display:flex;gap:7px;max-width:100%;overflow-x:auto;white-space:nowrap;padding:3px 0 8px}
  .feed-tabs button{flex:0 0 auto;padding:8px 10px;font-size:12px}
  .filters,.role-filters{max-width:100%;overflow-x:auto;flex-wrap:nowrap;white-space:nowrap;padding-bottom:5px;scrollbar-width:none}
  .filters button,.role-filters button{flex:0 0 auto;min-height:36px;font-size:12px}
  .cards,.account-collection,.saved-character-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .cards .card,.account-collection .card,.saved-character-cards .card{min-width:0}
  .cards .card-art,.account-collection .card-art,.saved-character-cards .card-art{height:clamp(145px,47vw,205px)}
  .card-body{padding:10px}
  .card-body h3{font-size:14px;line-height:1.4}
  .card-body p{font-size:12px;line-height:1.55;min-height:0}
  .tags .tag{display:inline-block;margin:3px 3px 0 0;font-size:10px}
  .card-stats{gap:7px!important}
  .card-stats span{font-size:11px}
  .creator{margin:18px 12px;padding:13px;gap:10px;align-items:flex-start}
  .creator button{align-self:center;white-space:nowrap}
  footer{margin:0 12px;padding:15px 0;flex-wrap:wrap;line-height:1.5}
  footer a{margin-left:0}
  .chat-layout.active{height:calc(100dvh - 58px - env(safe-area-inset-bottom));min-height:0;grid-template-columns:minmax(0,1fr);overflow:hidden}
  .chat-list,.chat-layout .character-info{display:none!important}
  .chat{min-height:0;height:100%;overflow:hidden}
  .chat-head{flex:0 0 58px;height:58px;padding:0 12px;gap:9px;border-color:#302a36;background:#111015}
  .chat-head b,.chat-head strong{font-size:15px!important}
  .messages{min-height:0;padding:14px 11px;gap:10px}
  .messages>.msg{max-width:90%;font-size:15px!important;line-height:1.75!important;padding:11px 13px!important}
  .composer{flex:0 0 auto;margin:0 8px calc(8px + env(safe-area-inset-bottom));padding:9px;border-radius:14px;background:#17151b}
  .composer textarea{min-height:68px;max-height:145px;font-size:16px!important;line-height:1.55}
  .composer-controls{gap:7px;align-items:center}
  .composer-controls>.model-picker-trigger{max-width:min(48vw,210px);height:38px!important}
  .composer .composer-format{min-height:36px;padding:7px 9px;font-size:14px!important}
  .composer-controls>button{flex:0 0 38px;width:38px;height:38px}
  .character-view{min-height:calc(100dvh - 58px);padding:12px 12px 18px}
  .character-layout{grid-template-columns:minmax(0,1fr);gap:14px}
  .character-profile{position:static}
  .detail-portrait{height:min(76vw,390px);min-height:230px}
  .detail-stats{justify-content:flex-start;gap:14px;padding:10px 4px;font-size:12px}
  .detail-profile h1,.character-profile h1{font-size:22px;margin:8px 0}
  .character-content{height:auto;min-height:0;padding:0 0 calc(78px + env(safe-area-inset-bottom))!important}
  .character-tabs{height:44px;gap:18px;overflow-x:auto;white-space:nowrap}
  .character-detail-panel{max-height:none;overflow:visible;padding-right:0}
  .detail-card{padding:14px;border-radius:14px}
  .detail-longtext,.detail-greeting{font-size:14px;line-height:1.75}
  .character-actions{position:fixed!important;left:10px!important;right:10px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;width:auto!important;margin:0!important;gap:8px}
  .character-actions .start-chat-button{min-width:0;height:46px;padding:10px;font-size:14px}
  .character-actions .detail-icon-button{flex:0 0 44px;width:44px;height:44px}
  .create{width:100%;max-width:100%;padding:20px 12px calc(28px + env(safe-area-inset-bottom))}
  .create-heading h1,.create h1{font-size:24px!important}
  .create #form.character-form{grid-template-columns:minmax(0,1fr);gap:12px}
  .form-panel{padding:14px 12px;border-radius:13px}
  .field-grid{grid-template-columns:minmax(0,1fr);gap:0}
  .preview-sticky{position:static;padding:12px}
  .preview-card{max-width:100%;margin:0 auto}
  .create .field-label input,.create .field-label textarea,.create .field-label select{font-size:16px!important}
  .avatar-upload{min-height:88px}
  .create .submit{width:100%;min-height:46px;font-size:14px}
  .account-view,.saved-view{padding:16px 12px calc(24px + env(safe-area-inset-bottom))}
  .account-profile-header{grid-template-columns:64px minmax(0,1fr);gap:12px;padding:14px;margin:10px auto 20px}
  .account-avatar{width:60px;height:60px;font-size:24px}
  .account-identity{min-width:0;overflow-wrap:anywhere}
  .account-identity h1{font-size:20px!important}
  .account-identity p,.account-bio{font-size:12px;line-height:1.6}
  .account-follow-stats{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding-top:12px}
  .account-follow-stats b{font-size:17px}
  .account-follow-stats small{font-size:11px!important}
  .collection-section header{align-items:flex-start;gap:8px}
  .collection-section h2{font-size:18px!important}
  .account-panel{margin:24px auto;padding:22px 16px}
  .saved-heading h1{font-size:23px!important}
  .topup-modal,.model-modal,.profile-modal,.auth-modal{padding:10px}
  .topup-dialog,.model-dialog,.profile-modal-panel,.auth-panel{width:100%;max-width:100%;max-height:calc(92dvh - env(safe-area-inset-bottom))}
  .notification-panel{position:fixed;top:62px;right:8px;width:min(360px,calc(100vw - 16px));max-height:75dvh}
  #toast{max-width:calc(100vw - 24px);white-space:normal;text-align:center}
}
@media(max-width:390px){
  header.topbar{gap:6px;padding-inline:7px}
  .menu{flex-basis:34px;width:34px;height:34px}
  .actions{gap:4px}
  .credits{padding:6px 5px}
  .actions .login{padding:7px 7px}
  .notification-wrap .bell,.user-dot{width:31px;height:31px;flex-basis:31px}
  .hero{padding:21px 15px}
  .hero .primary,.hero .plain{width:100%;margin:7px 0 0}
  .stats{grid-template-columns:1fr}
  .stats div{padding:5px 0!important;border:0;border-bottom:1px solid #302c37}
  .stats div:last-child{border:0}
  .cards,.account-collection,.saved-character-cards{gap:8px}
  .cards .card-art,.account-collection .card-art,.saved-character-cards .card-art{height:145px}
  .creator{flex-wrap:wrap}
  .creator button{width:100%;margin:0}
}