:root{--bg:#f6f5ee;--surface:#fff;--ink:#282c25;--muted:#7c8178;--line:#e2e5da;--accent:#526544;--orange:#cfb36f;--brand-highlight:#cfb36f;--radius:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button,a{touch-action:manipulation}button{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #8eaf41;outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid #a4bd75;outline-offset:1px}a{color:inherit;text-decoration:none}svg.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button svg{pointer-events:none}h1,h2,h3,p{margin:0}button{border:0;background:none}input,select,textarea{border:1px solid var(--line);border-radius:10px;background:#fff;padding:12px;color:var(--ink)}textarea{resize:vertical;line-height:1.6}label{display:grid;gap:8px;font-size:13px;font-weight:550}small,.muted{color:var(--muted)}.hidden{display:none!important}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 18px;border-radius:10px;font-size:13px;font-weight:600;transition:background .15s,transform .15s;white-space:nowrap}.btn:hover{transform:translateY(-1px)}.btn.primary{background:var(--ink);color:#fff}.btn.lime{background:var(--accent);color:#fff}.btn.secondary{border:1px solid var(--line);background:white}.btn.danger{background:#fff0ec;color:#a13427}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;border-radius:9px}.icon-btn:hover{background:#e7e9e1}.pill{display:inline-flex;gap:6px;align-items:center;border:1px solid var(--line);border-radius:30px;padding:6px 10px;font-size:11px;color:#686e61;white-space:nowrap}.pill.dark{border-color:#454a40;color:#b7c0ae}.dot{width:6px;height:6px;border-radius:50%;background:#b1c978;display:inline-block}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;font-weight:650;color:var(--muted)}
.shell{display:grid;grid-template-columns:244px minmax(0,1fr);height:100dvh;overflow:hidden}.sidebar{display:flex;flex-direction:column;background:#202321;color:#e9ece4;padding:30px 18px 16px;min-height:0}.brand{display:flex;align-items:center;gap:11px;padding:0 12px;margin-bottom:36px;font-size:28px;font-weight:620;letter-spacing:-1.1px}.brand-mark{color:var(--accent);font-size:43px;line-height:1;font-weight:500}.brand sup{font-size:9px;letter-spacing:1.4px;font-weight:400;color:#9ba295;margin-left:2px;align-self:center}.new-project{width:100%;padding:13px;background:var(--accent);color:#252b21;border-radius:10px;display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;margin-bottom:24px}.new-project .shortcut{margin-left:auto;font-size:13px;color:#6d7b57}.nav{display:grid;gap:5px}.nav-item{display:flex;align-items:center;gap:12px;color:#aeb5a8;padding:11px 13px;border-radius:9px;font-size:13px;text-align:left}.nav-item.active{background:#333930;color:#eff9dd}.nav-item:hover{background:#30362e;color:#fff}.nav-item.active .icon{color:var(--accent)}.nav-item .count{margin-left:auto;background:#4a5143;padding:1px 6px;border-radius:5px;font-size:10px}.sidebar-caption{display:flex;align-items:center;justify-content:space-between;padding:30px 13px 12px;letter-spacing:1.6px;font-size:9px;color:#8e9788;font-weight:600}.project-list{flex:1;overflow-y:auto;min-height:40px}.project-item{display:flex;align-items:center;gap:10px;width:100%;padding:10px 13px;color:#aeb5a8;border-radius:8px;font-size:12px;text-align:left}.project-item .icon{width:14px;height:14px}.project-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-item.active,.project-item:hover{background:#30362e;color:#eef2e9}.sidebar-empty{font-size:11px;line-height:1.8;color:#818b7a;padding:4px 13px}.server-card{padding:14px;margin:20px 0 16px;border:1px solid #3a4137;border-radius:12px;background:linear-gradient(140deg,#30382b,#262b24)}.server-card .row{display:flex;align-items:center;gap:7px;font-size:11px;color:#dae6cc}.server-card p{font-size:10px;line-height:1.7;color:#8e9b84;margin-top:8px}.user-card{border-top:1px solid #373e34;padding:16px 7px 0;display:flex;align-items:center;gap:10px}.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#d7ddca;color:#43513a;font-size:12px;font-weight:600;flex-shrink:0}.user-info{min-width:0;flex:1}.user-info strong{font-size:12px;font-weight:550;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-info small{font-size:10px;color:#8e9887}.user-card .icon-btn{color:#9ca692}.user-card .icon-btn:hover{background:#363c32}
.workspace{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative}.topbar{height:78px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid var(--line);gap:15px;background:#f6f6f2e8}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:12px;color:#91968c;min-width:0}.breadcrumb strong{color:#4e5647;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.breadcrumb .sep{color:#c6cbbf}.topbar-right{display:flex;align-items:center;gap:18px}.topbar-right .local{font-size:11px;color:#848c7c;display:flex;gap:6px;align-items:center}.topbar-right .local .icon{width:13px;height:13px}.main-scroll{overflow-y:auto;flex:1;padding:37px 42px 30px}.page-width{max-width:1120px;margin:0 auto}.welcome-line{font-size:12px;color:#777f6d;display:flex;align-items:center;gap:8px;margin-bottom:15px}.welcome-line .icon{width:15px;height:15px;color:#a2ae89}.home-heading{font-size:38px;line-height:1.25;font-weight:500;letter-spacing:-1.8px}.home-heading em{font-family:Georgia,serif;font-weight:400}.home-description{font-size:13px;color:#848b7e;line-height:1.8;margin-top:12px}.hero{position:relative;overflow:hidden;background:#e9eddf;border:1px solid #dce3cd;min-height:218px;border-radius:19px;display:flex;align-items:center;margin:28px 0 25px;padding:32px 35px}.hero::after{content:'';position:absolute;inset:0;background-image:linear-gradient(#87976a0d 1px,transparent 1px),linear-gradient(90deg,#87976a0d 1px,transparent 1px);background-size:34px 34px;pointer-events:none}.hero-copy{position:relative;z-index:2;max-width:62%}.hero .eyebrow{color:#778a61;font-size:9px;margin-bottom:16px}.hero h2{font-size:28px;line-height:1.25;font-weight:500;letter-spacing:-1px;max-width:400px}.hero p{font-size:12px;color:#79866a;line-height:1.8;margin-top:12px;max-width:380px}.orb-scene{position:absolute;width:300px;height:250px;right:20px;top:-14px;transform:rotate(-16deg)}.orb{position:absolute;border-radius:50%;width:170px;height:170px;top:45px;left:60px;background:radial-gradient(circle at 34% 26%,#ffe8af 0,#ffb15a 27%,#ed6b30 57%,#b43b1d 80%,#6e3621 100%);box-shadow:inset -9px -12px 25px #743c3a55,5px 25px 50px #9d662132}.orbit{position:absolute;border:16px solid #d7dfb2;border-radius:50%;width:280px;height:108px;top:83px;left:10px;transform:rotate(-23deg);box-shadow:0 10px 8px #4e542023,inset 0 8px 5px #53562c21}.orbit.front{border-top-color:transparent;z-index:1}.orbit.back{border-bottom-color:transparent;opacity:.9}.orbit-dot{position:absolute;width:17px;height:17px;border-radius:50%;background:linear-gradient(120deg,#fcf9da,#a2b77a);top:46px;right:44px;box-shadow:1px 4px 9px #5e714034}.hero-tag{position:absolute;bottom:20px;right:22px;font-size:9px;letter-spacing:1px;color:#94a17e}.section-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:28px 0 15px}.section-line h2{font-size:14px;font-weight:550;letter-spacing:-.2px}.text-link{display:flex;align-items:center;gap:6px;font-size:11px;color:#818b74}.text-link .icon{width:13px;height:13px}.ideas{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.idea{border:1px solid var(--line);border-radius:13px;overflow:hidden;text-align:left;background:white;padding:0;transition:transform .2s,box-shadow .2s}.idea:hover{transform:translateY(-3px);box-shadow:0 8px 22px #29331c0b}.idea-art{height:105px;position:relative;overflow:hidden;display:block}.idea-art.editorial{background:#e8d8c5}.idea-art.landscape{background:linear-gradient(#b9c9c0,#dae0c8)}.idea-art.object{background:#d5dcee}.idea-art.editorial::before{content:'';position:absolute;width:66px;height:85px;background:linear-gradient(120deg,#fcf7e3,#c4af8b);border-radius:25px 25px 30px 30px;left:calc(50% - 33px);top:34px;box-shadow:13px 9px 15px #6e4b3b2e;transform:rotate(-10deg)}.idea-art.editorial::after{content:'';position:absolute;background:#df7541;width:100px;height:100px;border-radius:50%;left:25px;top:49px;box-shadow:120px -90px 0 7px #eadbc1}.idea-art.landscape::before{content:'';position:absolute;width:190px;height:140px;background:#5a7765;border-radius:50% 60% 0 0;left:30px;top:50px;transform:rotate(-25deg);box-shadow:75px -25px 0 #79927b,-50px 25px 0 #395f51}.idea-art.landscape::after{content:'';position:absolute;width:24px;height:24px;border-radius:50%;background:#f7e6a9;left:65%;top:17px;box-shadow:0 0 20px #f7e6a944}.idea-art.object::before{content:'';position:absolute;width:82px;height:82px;background:linear-gradient(145deg,#e8ecff,#a5b4d6);left:calc(50% - 41px);top:19px;transform:rotate(-20deg);border-radius:23px;box-shadow:15px 18px 17px #42587938,inset 4px 5px 8px #ffffff99}.idea-art.object::after{content:'';position:absolute;width:42px;height:42px;border:10px solid #ccd6ef;left:calc(50% - 21px);top:37px;border-radius:50%;box-shadow:inset 3px 3px 7px #6d7ca744,3px 3px 7px #6d7ca744}.idea-text{display:flex;align-items:center;justify-content:space-between;padding:13px 15px}.idea-text strong{font-weight:550;font-size:11px;display:block}.idea-text small{font-size:9px;display:block;margin-top:5px}.idea-text .icon{width:15px;height:15px;color:#8a927f}.home-footer{margin-top:22px;display:flex;align-items:center;justify-content:space-between;color:#929a86;font-size:9px;gap:10px}.home-footer span{display:flex;align-items:center;gap:5px}.home-footer .icon{width:12px;height:12px}
.composer-wrap{flex-shrink:0;padding:17px 42px 22px;background:linear-gradient(transparent,var(--bg) 18%)}.composer{max-width:1120px;margin:0 auto;border:1px solid #d9dece;background:#fff;border-radius:16px;padding:16px 17px 12px;box-shadow:0 7px 25px #353e2210;transition:border .2s}.composer:focus-within{border-color:#a1b77b}.composer textarea{border:0;outline:none!important;resize:none;display:block;width:100%;min-height:43px;max-height:170px;font-size:13px;padding:0 4px;line-height:1.65;background:none}.composer textarea::placeholder{color:#a5aa9d}.composer-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:9px}.composer-tools{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.tool-chip{display:flex;align-items:center;gap:6px;font-size:10px;color:#7a836e;background:#f7f8f3;border:1px solid #e8ebdf;border-radius:7px;padding:7px 9px}.tool-chip .icon{width:13px;height:13px}.tool-chip:hover{background:#edf1e4}.send-btn{background:#282c25;color:#f6f5ee;display:flex;align-items:center;gap:10px;padding:9px 13px;border-radius:9px;font-size:11px;font-weight:550}.send-btn .icon{width:16px;height:16px}.composer-note{font-size:9px;color:#9ca48f;text-align:center;margin-top:10px;line-height:1.5}.composer-note kbd{font:inherit;border:1px solid #dfe4d4;border-radius:3px;padding:0 3px}.page-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin:8px 0 30px}.page-heading h1{font-size:32px;font-weight:500;letter-spacing:-1.3px}.page-heading p{color:var(--muted);font-size:12px;margin-top:9px;line-height:1.6}.search{position:relative;min-width:200px}.search input{font-size:12px;padding-left:35px;width:100%;background:#fff}.search .icon{position:absolute;left:11px;top:12px;width:15px;height:15px;color:#9aa18e}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.project-card{border:1px solid var(--line);border-radius:15px;background:white;overflow:hidden;position:relative}.project-cover{height:150px;display:flex;width:100%;align-items:center;justify-content:center;background:linear-gradient(135deg,#eef1e7,#e2e7d8);overflow:hidden}.project-cover>.icon{width:38px;height:38px;color:#acb99a;stroke-width:1}.project-cover img{height:100%;width:100%;object-fit:cover;transition:transform .3s}.project-card:hover img{transform:scale(1.03)}.project-card-body{padding:16px}.project-card h3{font-size:13px;font-weight:550;margin-bottom:8px}.project-card p{font-size:10px;color:#919984}.project-card .delete-project{position:absolute;right:8px;top:8px;background:#ffffffe0}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:75px 20px;text-align:center;color:#8a947e}.empty-state>.icon{width:44px;height:44px;stroke-width:1;margin-bottom:22px}.empty-state h2{font-size:20px;color:#515b47;font-weight:500;letter-spacing:-.5px}.empty-state p{font-size:12px;line-height:1.8;max-width:350px;margin:12px 0 22px}.filters{display:flex;gap:7px}.filter{padding:8px 12px;border-radius:8px;font-size:11px;border:1px solid var(--line)}.filter.active{background:#273022;color:#e5f2d3;border-color:#273022}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.gallery-card{border:1px solid var(--line);border-radius:13px;background:#fff;overflow:hidden}.gallery-card .gallery-image{padding:0;display:block;width:100%}.gallery-card img{width:100%;height:210px;object-fit:cover;display:block}.gallery-caption{display:flex;align-items:center;justify-content:space-between;padding:12px 14px}.gallery-caption strong{font-size:11px;font-weight:550}.gallery-caption small{display:block;font-size:9px;margin-top:5px}.favorite.on{color:#9b6833;background:#fdf3d9}.favorite.on .icon{fill:#e9bc6b}
.chat-scroll{padding-top:30px}.chat-content{max-width:850px;margin:0 auto}.chat-intro{display:flex;align-items:center;gap:9px;font-size:10px;justify-content:center;color:#98a28a;margin-bottom:30px}.chat-intro .icon{width:13px;height:13px}.message{margin-bottom:28px;display:flex;align-items:flex-start;gap:12px}.message.user{flex-direction:row-reverse}.message-avatar{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;font-size:22px;color:#536441;background:#e7eeda;flex-shrink:0}.message.user .message-avatar{font-size:10px;border-radius:50%;background:#e2e5db;color:#67715d}.message-body{min-width:0;max-width:calc(100% - 45px)}.message-label{display:flex;align-items:center;gap:9px;font-size:10px;font-weight:600;color:#5e6951;margin-bottom:8px}.message-label time{font-size:9px;color:#a2aa97;font-weight:400}.message.user .message-label{justify-content:end}.message-text{font-size:13px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}.message.user .message-text{background:#e9ede2;border:1px solid #e1e7d7;border-radius:13px 2px 13px 13px;padding:12px 17px;max-width:650px}.generated-card{border:1px solid var(--line);background:#fff;border-radius:14px;margin-top:14px;overflow:hidden;max-width:600px}.generated-image{display:block;border:0;padding:0;width:100%;background:#e9eddf}.generated-image img{display:block;max-height:570px;width:100%;object-fit:contain}.image-actions{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:10px 12px}.image-actions .meta{display:flex;gap:7px;align-items:center;font-size:9px;color:#8f9982;flex-wrap:wrap}.image-actions .actions{display:flex;gap:2px}.image-actions .icon-btn{width:30px;height:30px}.image-actions .icon{width:15px;height:15px}.recipe{border-top:1px solid var(--line);padding:12px 15px}.recipe summary{font-size:10px;color:#7b876b;cursor:pointer}.recipe h4{font-size:9px;color:#939f82;font-weight:500;text-transform:uppercase;letter-spacing:1px;margin:18px 0 7px}.recipe p{font:11px/1.8 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;color:#5e6b50}.recipe small{font-size:9px;display:block;margin-top:10px;line-height:1.7}.progress-card{border:1px solid #dae3ca;border-radius:14px;padding:22px;background:linear-gradient(125deg,#edf3e3,#f8faf4);margin:0 0 25px 41px;max-width:600px;display:flex;gap:18px;align-items:center}.pulse-mark{font-size:45px;color:#9db96e;line-height:1;animation:spin 8s linear infinite}.progress-copy{flex:1;min-width:0}.progress-copy strong{font-size:12px;font-weight:550}.progress-copy p{font-size:10px;color:#8c9a7c;margin-top:7px;line-height:1.7}.progress-track{height:3px;background:#dde7cf;margin-top:12px;border-radius:4px;overflow:hidden}.progress-track span{display:block;height:100%;background:#a6c571;transition:width 1s}.progress-track.indeterminate span{width:30%;animation:indeterminate 2.5s ease-in-out infinite}.stages{display:flex;gap:6px;margin-top:13px}.stages span{font-size:8px;color:#a8b29a}.stages .current{color:#4d6831}.job-error{border:1px solid #e8cfc3;border-radius:12px;padding:16px;background:#fff5ef;margin:0 0 20px 41px;font-size:12px;line-height:1.7;color:#995d43;max-width:600px}.job-error .btn{margin-top:12px}.notice{border:1px solid #e4dec8;background:#fcf9ee;color:#8f8051;padding:12px 15px;border-radius:10px;font-size:11px;line-height:1.7;margin-bottom:20px}.chat-empty{text-align:center;padding:60px 15px;color:#8c987e}.chat-empty .brand-mark{font-size:60px;display:block;color:#a5be7d;margin-bottom:23px}.chat-empty h2{color:#4a5740;font-size:25px;letter-spacing:-.7px;font-weight:500}.chat-empty p{font-size:12px;line-height:1.8;margin-top:12px}.chat-options{display:flex;gap:6px;align-items:center}.chat-options .icon{width:16px;height:16px}
.settings-layout{max-width:780px}.panel{background:#fff;border:1px solid var(--line);border-radius:15px;padding:25px;margin-bottom:20px}.panel-heading{display:flex;align-items:center;gap:10px;margin-bottom:23px}.panel-heading .icon{color:#899d6e}.panel-heading h2{font-size:14px;font-weight:550}.panel-heading p{font-size:11px;color:#949c88;margin-top:6px;line-height:1.6}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .full{grid-column:1/-1}.field-help{font-size:10px;color:#98a08d;line-height:1.7;font-weight:400}.field-help code{font-size:10px}.form-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:23px}.form-actions>div{display:flex;gap:9px}.connection-result{padding:15px;margin-top:20px;background:#f0f5e8;border:1px solid #dbe6ca;border-radius:10px;font-size:11px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.connection-result.bad{background:#fff3ed;color:#995941;border-color:#edd3c3}.advanced{margin-top:25px;border-top:1px solid var(--line);padding-top:20px}.advanced summary{font-size:12px;cursor:pointer;color:#7c8b6b;margin-bottom:17px}.code-input{font:11px/1.7 ui-monospace,monospace;min-height:100px}.users-table{width:100%;border-collapse:collapse;font-size:12px}.users-table th{text-align:left;font-size:9px;letter-spacing:1.2px;text-transform:uppercase;font-weight:500;color:#949e87;padding:14px 14px;border-bottom:1px solid var(--line)}.users-table td{padding:17px 14px;border-bottom:1px solid #eef0e9}.users-table tr:last-child td{border-bottom:0}.table-user{display:flex;align-items:center;gap:11px}.table-user strong{font-size:12px;display:block;font-weight:550}.table-user small{display:block;font-size:10px;margin-top:5px}.table-wrapper{background:#fff;border:1px solid var(--line);border-radius:14px;overflow-x:auto}.status-active{color:#6d8e48;font-size:10px}.status-inactive{color:#a29889;font-size:10px}.table-actions{display:flex;gap:3px;justify-content:end}.table-actions .icon{width:16px;height:16px}
.auth-page{display:grid;grid-template-columns:1fr 1fr;min-height:100dvh}.auth-story{background:#282c25;position:relative;padding:45px 55px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;color:#f0f3e9}.auth-story .brand{padding:0;margin:0}.auth-art{position:absolute;inset:0;background:radial-gradient(ellipse at 25% 65%,#6d895035,transparent 70%);pointer-events:none}.auth-story .orb-scene{top:28%;right:calc(50% - 175px);transform:rotate(-16deg) scale(1.4);opacity:.9}.auth-copy{position:relative;padding-bottom:10px;z-index:1}.auth-copy .eyebrow{color:#a6ba8e;margin-bottom:22px}.auth-copy h1{font-size:45px;letter-spacing:-1.8px;line-height:1.15;font-weight:450;max-width:400px}.auth-copy h1 em{font-family:Georgia,serif;color:#e1edc4;font-weight:400}.auth-copy p{font-size:12px;line-height:1.8;color:#99ac8a;margin-top:20px;max-width:330px}.auth-footer{position:relative;font-size:9px;letter-spacing:1.7px;color:#8fa17e;margin-top:30px}.auth-form-wrap{display:flex;justify-content:center;align-items:center;padding:45px}.auth-form{max-width:360px;width:100%}.auth-form .eyebrow{color:#9da88f;margin-bottom:15px}.auth-form h2{font-size:30px;font-weight:500;letter-spacing:-1px}.auth-form>p{font-size:12px;line-height:1.8;color:#8c9780;margin:13px 0 30px}.auth-form form{display:grid;gap:20px}.auth-form .btn{margin-top:5px;padding:14px}.auth-form .auth-note{font-size:10px;line-height:1.8;text-align:center;margin-top:24px;color:#a1a995}.form-error{font-size:11px;color:#ac5d45;line-height:1.7;background:#fff0e9;padding:10px 12px;border-radius:8px}.initial-loader{display:flex;height:100dvh;align-items:center;justify-content:center;flex-direction:column;gap:20px;color:#8a997a;font-size:12px}.initial-loader .brand-mark{color:#526544;animation:spin 10s linear infinite}
dialog{border:1px solid var(--line);border-radius:20px;padding:30px;background:#fafbf6;max-width:540px;width:calc(100% - 32px);max-height:90dvh;box-shadow:0 25px 100px #16200f40;color:var(--ink)}dialog::backdrop{background:#17201180;backdrop-filter:blur(5px)}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.modal-header h2{font-size:20px;font-weight:500;letter-spacing:-.5px}.modal-body{font-size:12px;line-height:1.8;color:#7a8769}.modal-form{display:grid;gap:18px}.modal-form .form-actions{margin-top:7px}.lightbox{max-width:1100px;background:#f8faf3;padding:20px}.lightbox .modal-header{margin-bottom:14px}.lightbox img{max-height:70dvh;width:100%;object-fit:contain;border-radius:10px;background:#e9eddf}.lightbox .image-actions{padding-top:15px}.lightbox p{font-size:11px;line-height:1.7;color:#879579;margin-top:10px}.mobile-menu{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);background:#283022;color:#edf6e1;border-radius:11px;padding:13px 21px;font-size:12px;opacity:0;transition:.2s;pointer-events:none;z-index:1000;max-width:90%;text-align:center;box-shadow:0 7px 30px #1c281e30}#toast.show{opacity:1;transform:translate(-50%,0)}.error-screen{padding:80px 30px;text-align:center}.error-screen p{margin:20px 0;color:#869477;font-size:13px}.skip-link{position:fixed;top:-100px;left:15px;background:#dfff88;color:#222;padding:12px;z-index:2000}.skip-link:focus{top:10px;background:#526544;color:#fff}@keyframes spin{to{transform:rotate(360deg)}}@keyframes indeterminate{0%{transform:translateX(-100%)}100%{transform:translateX(420%)}}
@media(min-width:1550px){.main-scroll{padding-top:50px}.home-heading{font-size:44px}.hero{min-height:260px}.orb-scene{top:5px;right:60px;transform:rotate(-16deg) scale(1.1)}.idea-art{height:135px}.ideas{gap:20px}.hero h2{font-size:33px}.hero p{font-size:13px}.home-description{font-size:14px}.composer-wrap{padding-bottom:28px}}
@media(max-width:1100px){.shell{grid-template-columns:216px minmax(0,1fr)}.sidebar{padding-left:13px;padding-right:13px}.topbar{padding:0 25px}.main-scroll{padding:30px 25px 20px}.composer-wrap{padding:15px 25px 19px}.home-heading{font-size:33px}.hero{padding:27px;min-height:210px}.hero h2{font-size:25px}.orb-scene{right:-60px;opacity:.8}.hero-copy{max-width:70%}.cards,.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.idea-text{padding:12px}.idea-text strong{font-size:10px}.idea-text small{font-size:8px}.topbar-right .local{display:none}.auth-story{padding:35px}.auth-copy h1{font-size:36px}}
@media(max-width:760px){.shell{grid-template-columns:minmax(0,1fr)}.sidebar{position:fixed;left:-260px;top:0;bottom:0;width:244px;z-index:50;transition:left .2s;box-shadow:15px 0 50px #20232130}.sidebar.open{left:0}.sidebar.open::after{content:'';position:fixed;inset:0 0 0 244px;background:#17201170;z-index:-1;pointer-events:none}.mobile-menu{display:flex}.topbar{height:65px;padding:0 18px}.breadcrumb{gap:8px}.topbar-right{gap:8px}.topbar-right .pill{font-size:9px;padding:5px 8px}.main-scroll{padding:28px 20px 18px}.home-heading{font-size:32px}.home-description{font-size:12px;max-width:330px}.hero{padding:24px;min-height:200px;margin-top:22px}.hero h2{font-size:24px}.hero-copy{max-width:75%}.hero .eyebrow{font-size:8px;letter-spacing:1.3px}.hero p{font-size:11px}.orb-scene{right:-115px;opacity:.5;transform:scale(.8) rotate(-16deg);top:0}.hero-tag{display:none}.ideas{gap:9px}.idea-art{height:92px}.idea-text{padding:11px 9px}.idea-text .icon{display:none}.idea-text strong{font-size:10px;line-height:1.4}.idea-text small{font-size:8px;line-height:1.6}.home-footer span:last-child{display:none}.composer-wrap{padding:12px 16px 15px}.composer{padding:14px 13px 11px}.composer textarea{font-size:12px;min-height:40px}.tool-chip{font-size:9px;padding:6px}.send-btn{font-size:0;padding:9px}.send-btn .icon{width:18px;height:18px}.composer-note{font-size:8px}.page-heading{align-items:start;flex-direction:column;gap:18px}.page-heading h1{font-size:28px}.search{width:100%}.cards,.gallery-grid{gap:12px}.project-cover{height:120px}.project-card-body{padding:12px}.project-card h3{font-size:11px}.gallery-card img{height:160px}.gallery-caption{padding:10px}.gallery-caption strong{font-size:10px}.chat-scroll{padding-left:15px;padding-right:15px}.message{gap:9px}.message-text{font-size:12px}.message-avatar{width:26px;height:26px}.message-body{max-width:calc(100% - 35px)}.chat-intro{font-size:8px;gap:5px}.progress-card{margin-left:35px;padding:16px;gap:10px}.pulse-mark{font-size:35px}.stages{gap:4px;flex-wrap:wrap}.job-error{margin-left:35px}.chat-options .seed-badge{display:none}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.panel{padding:20px}.form-actions{align-items:start;flex-direction:column;gap:15px}.auth-page{display:block}.auth-story{min-height:230px;padding:25px 30px}.auth-story .brand{font-size:23px}.auth-story .brand-mark{font-size:35px}.auth-copy{margin-top:35px}.auth-copy .eyebrow,.auth-copy p,.auth-footer{display:none}.auth-copy h1{font-size:30px;max-width:300px;line-height:1.25}.auth-story .orb-scene{transform:scale(.6) rotate(-16deg);right:-85px;top:35px;opacity:.5}.auth-form-wrap{padding:40px 28px}.auth-form h2{font-size:27px}.users-table td,.users-table th{padding:13px 10px}.table-user .avatar{display:none}.users-table .role-col{display:none}.image-actions .meta{font-size:8px}.lightbox{padding:13px}.lightbox .modal-header h2{font-size:16px}dialog{padding:23px}.home-footer{margin-bottom:5px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.live-preview-wrap{position:relative;margin:16px 0 12px;max-width:420px;background:#e9eddf;border:1px solid var(--line);border-radius:12px;overflow:hidden}.live-preview{display:block;max-height:420px;width:100%;aspect-ratio:1;object-fit:contain;transition:opacity .16s}.live-preview-wrap figcaption{display:flex;align-items:center;justify-content:center;gap:6px;padding:9px;background:#fff;font-size:10px;color:#758366}.live-preview-wrap figcaption .icon{width:13px;height:13px}.model-identifiers{margin-top:17px}

.brand-symbol{display:block;width:1em;height:1em;fill:currentColor;overflow:visible;flex:none}.brand-symbol .brand-core{fill:var(--brand-highlight,#cfb36f)}.message-avatar .brand-symbol{width:17px;height:17px}.auth-story .brand-mark{color:#b2c395}.pulse-mark .brand-symbol{width:1em;height:1em}

.usage-meter{margin:12px 12px 16px;padding-top:12px;border-top:1px solid var(--line);font-size:11px;line-height:1.7}.usage-meter strong{font-weight:550}.usage-meter small{display:block;font-size:10px}.usage-meter progress{display:block;width:100%;height:7px;margin:7px 0;accent-color:var(--accent)}

/* Touch layout and safe areas. */
.drawer-close,.sidebar-backdrop,.mobile-nav,.mobile-credit-btn{display:none}
.sidebar-backdrop[hidden]{display:none!important}
body.app-open{overflow:hidden;overscroll-behavior:none}
.app-open .shell{height:var(--app-height,100dvh)}
.main-scroll{min-height:0;overscroll-behavior-y:contain;overflow-wrap:anywhere}
.new-project{color:#fff}.new-project .shortcut{color:#e8ecdf}
.sidebar .brand-mark{color:#b2c395}
@media(pointer:coarse){
  input,select,textarea,.composer textarea{font-size:16px}
  .icon-btn{width:44px;height:44px}
  .btn,.tool-chip,.nav-item,.project-item,.text-link{min-height:44px}
  .recipe summary{min-height:44px;display:flex;align-items:center}
}
@media(max-width:760px){
  .sidebar{left:0;width:min(320px,88vw);height:var(--app-height,100dvh);bottom:auto;transform:translateX(-110%);transition:transform .2s;box-shadow:none;padding:calc(20px + env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;visibility:hidden}
  .sidebar.open{transform:translateX(0);visibility:visible;box-shadow:12px 0 44px #20232135}
  .sidebar.open::after{display:none}
  .sidebar .brand{padding-right:40px;margin-bottom:22px}
  .drawer-close{display:flex;position:absolute;top:calc(17px + env(safe-area-inset-top));right:12px;color:#e8ecdf}
  .sidebar-backdrop{display:block;position:fixed;inset:0;z-index:45;background:#17201180;backdrop-filter:blur(3px)}
  .sidebar .project-list{flex:1 0 110px;min-height:110px}
  .sidebar-caption{padding-top:18px}.server-card{display:none}
  .sidebar .usage-meter{color:#e8ecdf;margin-bottom:12px}.sidebar .usage-meter small{color:#b8c1af;font-size:12px}
  .sidebar .nav-item,.sidebar .project-item{min-height:46px;font-size:14px}
  .topbar{height:auto;min-height:calc(60px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left));gap:6px;background:var(--bg)}
  .breadcrumb{flex:1;gap:4px;overflow:hidden}.breadcrumb>span{display:none}.breadcrumb strong{font-size:14px}
  .topbar-right{gap:2px;flex-shrink:0}.topbar-right .backend-badge,.topbar-right .local{display:none}
  .chat-options{display:flex;align-items:center}.mobile-credit-btn{display:block;font-size:12px;font-weight:550;min-height:44px;max-width:112px;padding:5px 9px;color:var(--accent);background:#e8ecdf;border-radius:10px;line-height:1.3}
  .main-scroll{padding:22px max(16px,env(safe-area-inset-right)) 24px max(16px,env(safe-area-inset-left));scroll-padding-block:16px}
  .mobile-nav{display:flex;flex-shrink:0;justify-content:space-around;gap:8px;padding:5px 12px max(5px,env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line)}
  .mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:49px;flex:1;color:#68725f;font-size:11px;border-radius:10px}
  .mobile-nav button[aria-current]{color:var(--accent);background:#e8ecdf;font-weight:600}
  .mobile-nav .icon{width:21px;height:21px}.keyboard-open .mobile-nav{display:none}
  .welcome-line{font-size:13px;margin-bottom:12px}.home-heading{font-size:30px;letter-spacing:-1px}.home-description{font-size:14px;line-height:1.6}
  .hero{padding:22px;min-height:150px;margin:20px 0}.hero h2{font-size:22px}.hero .eyebrow{font-size:10px}.hero p{font-size:13px}.hero-copy{max-width:100%}.hero .orb-scene{display:none}
  .section-line h2{font-size:16px}.section-line>.text-link{display:none}
  .ideas{grid-template-columns:1fr;gap:10px}.idea{display:grid;grid-template-columns:82px 1fr;min-height:82px}.idea-art{height:100%}.idea-text{padding:14px}.idea-text strong{font-size:14px}.idea-text small{font-size:12px}.idea-text .icon{display:block}
  .home-footer{font-size:12px}
  .composer-wrap{padding:8px max(10px,env(safe-area-inset-right)) max(9px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:var(--bg);border-top:1px solid var(--line)}
  .workspace:has(>.mobile-nav) .composer-wrap{padding-bottom:8px}
  .composer{border-radius:16px;padding:12px;box-shadow:none}.composer textarea{font-size:16px;line-height:1.45;min-height:44px;max-height:112px;resize:none}
  .composer-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;margin-top:8px}
  .composer-tools{gap:4px}.tool-chip{font-size:11px;min-height:42px;padding:7px 8px;gap:4px}.tool-chip .icon{width:14px;height:14px}.tool-chip .icon:last-child{display:none}
  .send-btn{font-size:12px;min-height:44px;min-width:76px;padding:9px 12px;justify-content:center;gap:6px}.send-btn .icon{width:16px;height:16px}
  .composer-note{font-size:11px;line-height:1.4;margin-top:6px;color:#657159}.composer-help{display:none}
  .keyboard-open .composer-wrap{padding-bottom:8px}.keyboard-open .composer-cost{font-size:10px}
  .chat-scroll{padding:18px 12px 24px}.chat-intro{font-size:11px;flex-wrap:wrap;line-height:1.5;margin-bottom:22px}
  .message{gap:0;margin-bottom:25px}.message-avatar{display:none}.message-body{max-width:100%;min-width:0;width:100%}.message-text{font-size:15px;line-height:1.65;overflow-wrap:anywhere}.message-label{font-size:12px}
  .generated-card{max-width:100%;margin-top:12px;border-radius:14px}.generated-image img{max-height:none;width:100%}
  .image-actions{flex-wrap:wrap;gap:8px;padding:10px}.image-actions .meta{font-size:11px;flex-wrap:wrap}.image-actions .actions{margin-left:auto}.image-actions .icon-btn{width:44px;height:44px}
  .recipe{font-size:13px}.recipe summary{min-height:48px;font-size:13px;padding-block:10px}.recipe p,.recipe small{font-size:13px;line-height:1.65;overflow-wrap:anywhere}
  .progress-card,.job-error{margin-left:0;padding:16px;gap:12px}.progress-copy{min-width:0}.progress-copy strong{font-size:15px}.progress-copy p{font-size:13px;line-height:1.6}.pulse-mark{font-size:28px}.stages{font-size:10px;gap:6px}.live-preview-wrap{max-width:100%}
  .page-heading{gap:16px;margin-bottom:22px}.page-heading h1{font-size:27px}.page-heading p{font-size:14px;line-height:1.65}.page-heading>.btn{width:100%;justify-content:center}
  .search input{font-size:16px}.cards,.gallery-grid{gap:12px}.project-card h3,.gallery-caption strong{font-size:14px}.project-card small,.gallery-caption small{font-size:12px}.project-cover{height:125px}.gallery-card img{height:170px}.filters{flex-wrap:wrap}
  .panel{padding:18px;border-radius:14px}.panel-heading h2{font-size:16px}.panel-heading p,.field-help,.notice{font-size:13px;line-height:1.6}.form-grid{gap:20px}label{font-size:14px}input,select,textarea{font-size:16px;min-height:46px}.code-input{font-size:16px;min-height:120px}.advanced summary{font-size:14px;min-height:44px}
  .form-actions{width:100%}.form-actions>.btn,.form-actions>div{width:100%}.form-actions>div{display:flex;flex-wrap:wrap}.form-actions>div>.btn{flex:1}.btn{font-size:14px;min-height:46px}
  .users-table,.users-table tbody{display:block;width:100%}.users-table thead{display:none}.table-wrapper:has(.users-table){background:none;border:0;overflow:visible}
  .users-table tbody{display:grid;gap:16px}.users-table tbody tr{display:block;background:#fff;border:1px solid var(--line);border-radius:14px;padding:5px 16px}
  .users-table td,.users-table .role-col{display:grid;grid-template-columns:minmax(80px,.8fr) minmax(0,1.2fr);align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px;overflow-wrap:anywhere}
  .users-table td::before{content:attr(data-label);font-size:12px;color:#6a7461}.users-table td:first-child,.users-table td:last-child{display:block}.users-table td:first-child::before,.users-table td:last-child::before{display:none}.users-table td:last-child{border-bottom:0}.users-table .table-user .avatar{display:grid}.table-user strong{font-size:15px}.table-user small{font-size:12px}.table-actions{justify-content:flex-start;gap:12px}.users-table .pill{justify-self:start;font-size:12px}.users-table td .text-link{grid-column:2;min-height:44px;font-size:13px}
  dialog{position:fixed;inset:auto 0 0;width:100%;max-width:none;max-height:calc(var(--app-height,100dvh) - 24px - env(safe-area-inset-top));margin:0;border-radius:22px 22px 0 0;padding:20px 20px max(24px,env(safe-area-inset-bottom));overscroll-behavior:contain;scroll-padding-bottom:24px}
  .modal-header{gap:12px;margin-bottom:20px}.modal-header h2{font-size:20px}.modal-header .icon-btn{flex-shrink:0}.modal-body{font-size:14px}.modal-form{gap:20px}.usage-details{font-size:14px;line-height:1.8;margin-bottom:20px}.usage-details small{display:block;font-size:13px}.usage-details progress{width:100%;accent-color:var(--accent)}
  .lightbox{padding:16px 12px max(20px,env(safe-area-inset-bottom));max-height:calc(var(--app-height,100dvh) - 12px)}.lightbox img{max-height:calc(var(--app-height,100dvh) * .62)}.lightbox .image-actions{padding-inline:0}.lightbox p{font-size:13px}
  #toast{top:calc(70px + env(safe-area-inset-top));bottom:auto;font-size:14px;width:calc(100% - 32px);max-width:420px;padding:14px;line-height:1.45}
  .auth-story{padding-top:calc(22px + env(safe-area-inset-top));min-height:180px}.auth-copy{margin-top:22px}.auth-copy h1{font-size:28px}.auth-form-wrap{padding:28px 22px max(30px,env(safe-area-inset-bottom))}.auth-form>p,.auth-form .auth-note{font-size:13px}.auth-form .eyebrow{font-size:11px}
}
@media(max-width:370px){.composer-bottom{grid-template-columns:1fr}.send-btn{width:100%}.composer-tools{justify-content:space-between}.tool-chip{flex:1;justify-content:center}.cards,.gallery-grid{grid-template-columns:1fr}.topbar .mobile-credit-btn{max-width:90px;font-size:11px}}

@media(max-width:760px){.users-table [data-action="edit-user"]{width:auto;padding:8px 12px;gap:8px}.users-table [data-action="edit-user"]::after{content:"Modifica";font-size:13px}}

@media(max-width:760px){
  .icon-btn{min-width:44px;width:44px;height:44px}
  .modal-form>.form-actions{position:sticky;bottom:0;background:#fafbf6;border-top:1px solid var(--line);padding:12px 0 0;gap:8px;z-index:1}
  .modal-form>.btn[type="submit"]{position:sticky;bottom:0;z-index:1}
}

@media(max-width:760px){dialog{scroll-padding-bottom:130px}.modal-form>.form-actions{box-shadow:0 25px 0 #fafbf6}}
