:root{--ink:#141f1b;--muted:#7a7c7c;--rail:223px;--line:#e7e9e8;--side:#fbfbfa;color:var(--ink);font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
*{box-sizing:border-box}
[hidden]{display:none!important}
body,h1,h2,p{margin:0}
body{font-size:14px;line-height:22px;height:100vh;height:100dvh;overflow:hidden}
button,input,textarea{color:inherit;font:inherit}
button,a{touch-action:manipulation}
button{border:0;background:none;cursor:pointer;padding:0}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #167a55;outline-offset:3px}
img{display:block}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--rail);background:var(--side);border-right:1px solid #ececec;z-index:6;padding:20px 15px 16px 14px;display:flex;flex-direction:column;font-size:14px}
.brand-row,.new-task,.nav-item,.account,.campus,.toolbar,.toolbar-end,.home-tabs,.plaza-title,.search,.greeting,.write-row{display:flex;align-items:center}
.brand-row{height:24px;justify-content:space-between;margin-bottom:20px;padding-left:12px}
.brand img{width:78.35px;height:18px}
.collapse{width:24px;height:24px;display:grid;place-items:center;border-radius:6px}
.collapse img{width:20px}
.new-task,.dark,.send,.primary{background:var(--ink);color:white}
.new-task,.campus,.nav-item{height:40px;border-radius:10px}
.new-task,.campus{justify-content:center;gap:4px;flex-shrink:0}
.new-task{margin-bottom:8px;font-weight:500;line-height:28px;gap:3px}
.new-task img{width:18px}
#navigation{display:grid;gap:6px}
.nav-item{font-weight:500;line-height:22px;letter-spacing:.5px;gap:8px;padding:0 12px;width:100%;text-align:left}
.nav-item img{width:20px}
.nav-item:hover,.nav-item.active,.collapse:hover,.account:hover{background:#efefef}
.sidebar-bottom{margin-top:auto;display:grid;gap:12px;position:relative;padding-top:8px}
.sidebar-bottom:before{content:"";position:absolute;inset:0 8px auto 12px;height:1px;background:#ececec}
.campus{background:#a2f393 url(./assets/ui/campus-tab.png) center/100% 100%;font-weight:500;line-height:16px;letter-spacing:.5px;color:#020b08;gap:2px}
.campus img{width:16px}
.account{gap:7px;padding:8px 7px;border-radius:10px;text-align:left;min-height:58px}
.avatar{width:40px;height:40px;border-radius:50%}
.account strong,.account small{display:block;line-height:20px}
.account strong{font-size:14px;font-weight:500}
.account small{display:flex;align-items:center;gap:2px;margin-top:2px;font-size:13px;line-height:18px;color:var(--muted)}
.account small img{width:14px;height:14px}
#mobile-menu,#nav-mask{display:none}
#workspace{position:relative;margin-left:var(--rail);height:100%;overflow-y:auto;overflow-x:hidden;isolation:isolate;scrollbar-width:thin;scrollbar-color:#c7ccc9 transparent}
#wash{position:absolute;inset:0 0 auto;height:392px;z-index:-1;background:#f8fffc url(./assets/ui/background.webp) center top/cover no-repeat;pointer-events:none;mask-image:linear-gradient(#000 0%,#000 67%,transparent 100%)}
body.edu #wash{background-image:url(./assets/ui/app-background.webp)}
#login{position:absolute;right:16px;top:18px;border-radius:10px;min-width:84px;height:40px;font-size:14px;font-weight:500;line-height:18px;z-index:2}
.dark:hover,.new-task:hover,.send:hover,.primary:hover{background:#304038}
.workspace-width{container:workspace / inline-size}
.shell{width:min(1078px,calc(100% - 64px));margin:0 auto}
.greeting{height:116px;align-items:flex-end;gap:11px;padding:0 0 20px 12px}
.mascot-wrap{width:36px;height:48px;display:block;position:relative}
.mascot-wrap img{position:absolute;width:60px;height:60px;right:-3px;bottom:-2px}
.greeting-text{height:28px;width:auto}
.composer{border:1px solid #ededed;border-radius:30px;background:#fff;padding:15px 15px 16px 17px;min-height:180px;display:flex;flex-direction:column;box-shadow:0 2px 24px rgba(30,58,44,.035)}
.composer:focus-within{border-color:#d5ddd8;box-shadow:0 4px 28px #152a1a0a}
.write-row{align-items:flex-start;gap:6px;flex:1}
#prompt{flex:1;min-width:0;resize:none;border:0;outline:0;width:100%;font-size:16px;font-weight:500;line-height:26px;letter-spacing:.5px;background:transparent;padding:1px 2px;min-height:78px}
#prompt::placeholder,.search input::placeholder{font-weight:400;color:#9a9a9a;opacity:1}
#selected-tool,.file-chip{font-size:14px;white-space:nowrap;border-radius:8px;padding:2px 8px;background:#f4ffef;border:1px solid #80dbaa}
#selected-tool{height:27px}
#attachment-list{display:flex;flex-wrap:wrap;gap:6px}
#attachment-list:not(:empty){margin:6px 0}
.file-chip{max-width:220px;overflow:hidden;text-overflow:ellipsis;background:#f4f6f5;border-color:var(--line)}
.toolbar,.toolbar-end,#tools{gap:6px}
.toolbar{margin-top:10px;min-height:38px}
#tools{display:flex;min-width:0;overflow:auto;scrollbar-width:none}
#tools::-webkit-scrollbar,#filters::-webkit-scrollbar{display:none}
.toolbar-end{margin-left:auto;padding-left:2px}
.square,.send{height:36px;width:36px;flex:0 0 36px;display:grid;place-items:center;border:1px solid #e2e4e3;border-radius:12px;background:#fff}
.square img,.send img{width:20px;height:20px}
.send{border:0;border-radius:50%;background:var(--ink)}
.send img,#mini-composer img{filter:brightness(0) invert(1)}
.tool{display:flex;align-items:center;gap:4px;height:38px;padding:0 9px 0 8px;border-radius:12px;background:white;border:1px solid #e2e4e3;white-space:nowrap;font-size:14px;line-height:20px}
.tool>img:first-child{width:18px;height:18px}
.tool img.new{width:32px;height:15px;margin-left:-2px}
.tool:hover,.square:hover{background:#f4f7f5;border-color:#cbd3ce}
.home-tabs{height:90px;margin-top:24px;justify-content:center;gap:18px;padding-top:12px}
.home-tabs button{font-size:14px;font-weight:500;line-height:1.4;color:var(--muted);padding:9px 12px}
.home-tabs button[aria-pressed=true]{color:var(--ink);font-weight:500}
.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.card{position:relative;overflow:hidden;border-radius:16px;min-width:0;background:#fff;box-shadow:inset 0 0 0 1px #f0f1f0;text-align:left}
.card:hover{box-shadow:inset 0 0 0 1px #dce2de,0 3px 12px #15291d0d}
.card-open{display:block;text-align:left;width:100%;border-radius:16px}
.cover{position:relative;display:block;overflow:hidden;border-radius:16px;aspect-ratio:16 / 9;background:#f0f5f2}
.cover>img:first-child{width:100%;height:100%;object-fit:cover}
.cover .badge{position:absolute;top:12px;left:12px;width:48px;height:24px}
.views{display:flex;align-items:center;gap:2px;position:absolute;right:14px;top:12px;padding:2px 6px 2px 5px;border-radius:12px;line-height:17px;background:#0003;color:white;font-size:12px}
.views img{width:15px;height:14px}
.card-info{padding:12px 12px 14px;min-height:64px;display:block}
.card-title{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;line-height:18px;font-size:14px;font-weight:500}
.author,.stars{display:flex;align-items:center;color:var(--muted);font-size:12px;line-height:12px}
.author{gap:4px;margin-top:4px;padding-right:54px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.author img{width:16px;height:16px;border-radius:50%;object-fit:cover;flex:none}
.author>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.stars{position:absolute;bottom:15px;right:12px;gap:2px;border-radius:5px}
.stars img{width:14px;height:14px}
.stars[aria-pressed=true],.link{color:#15724c}
.gallery-foot{color:#858b88;text-align:center;font-size:12px;padding:32px 0 36px}
.plaza-title{justify-content:space-between;gap:16px;padding-top:46px}
body[data-page=apps] .plaza-title{padding-top:32px}
.plaza-title h1{font-size:26px;font-weight:600;line-height:30px;letter-spacing:.72px}
body[data-page=apps] .plaza-title h1{line-height:36px}
.search{height:36px;gap:10px;border-radius:24px;background:#f0f0f0;padding:6px 14px;width:min(260px,53%)}
.search span{font-size:18px;transform:rotate(-40deg)}
.search input{background:transparent;border:none;width:100%;outline:none;font-size:14px;line-height:20px}
#filters{display:flex;gap:42px;align-items:center;overflow-x:auto;padding:20px 0;scrollbar-width:thin}
#filters button{white-space:nowrap;font-size:14px;font-weight:500;color:var(--muted);line-height:20px}
#filters button[aria-pressed=true]{color:var(--ink)}
body[data-page=apps] #filters{padding:18px 0 16px;gap:12px 10px;flex-wrap:wrap}
body[data-page=apps] #filters button{border-radius:30px;background:#f5f5f5;padding:8px 12px;font-size:13px;line-height:13px}
body[data-page=apps] #filters button[aria-pressed=true]{background:var(--ink);color:white}
body:not([data-page=home]) .gallery-foot{padding-bottom:130px}
#mini-composer{position:fixed;bottom:20px;left:calc(50% + var(--rail)/2);transform:translateX(-50%);width:min(760px,calc(100% - var(--rail) - 56px));border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 3px 22px #0e30110c;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;text-align:left;color:var(--muted)}
#mini-composer img{width:36px;height:36px;border-radius:50%;padding:8px;background:white}
.empty{padding:60px 16px;text-align:center;color:var(--muted)}
.empty .link{display:block;margin:10px auto}
dialog{padding:0;border:0;width:min(500px,calc(100% - 32px));max-height:86dvh;border-radius:22px;color:var(--ink);box-shadow:0 16px 64px #14261e30}
dialog::backdrop{background:#15231c48}
.dialog-card{position:relative;padding:28px}
#close-dialog{position:absolute;top:14px;right:14px;width:32px;height:32px;z-index:1;font-size:24px;line-height:1;background:#f4f5f4;border-radius:50%}
#dialog-content h2{font-size:22px;line-height:1.5;margin:0 30px 10px 0}
#dialog-content p{color:#5a655e;font-size:15px;margin:8px 0;overflow-wrap:anywhere}
.dialog-cover{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px;margin-bottom:18px}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.primary,.secondary{font-size:14px;font-weight:500;border-radius:10px;padding:10px 16px;text-decoration:none;display:inline-flex;align-items:center}
.secondary{background:#f2f4f2;color:var(--ink)}
#notice{position:fixed;left:50%;bottom:40px;transform:translate(-50%,10px);background:var(--ink);color:white;border-radius:12px;font-size:14px;max-width:90vw;padding:10px 16px;opacity:0;pointer-events:none;transition:.15s ease;z-index:12}
#notice.show{transform:translate(-50%,0);opacity:1}
body.compact{--rail:68px}
.compact .brand,.compact .sidebar span,.compact .sidebar-bottom:before{display:none}
.compact .sidebar{padding-inline:10px}
.compact .brand-row,.compact .nav-item,.compact .account{justify-content:center;padding-inline:0}
.compact .campus img{width:18px}
/* Keep desktop titles and prompts on the same measure as the resource grid. */
@media(min-width:1152px){
 .shell{width:713px;--gallery-columns:2;--gallery-gap:17px}
 .gallery{grid-template-columns:repeat(var(--gallery-columns),minmax(0,1fr));gap:var(--gallery-gap)}
 @container workspace (min-width:1151px){.shell{width:1078px;--gallery-columns:3}}
 @container workspace (min-width:1537px){.shell{width:1464px;--gallery-columns:4;--gallery-gap:24px}}
}
@media(max-width:1150px){.shell{width:calc(100% - 48px)}.gallery{gap:14px}.tool{padding-inline:8px}}
@media(max-width:900px){:root{--rail:184px}.shell{width:calc(100% - 36px)}.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){
 :root,body.compact{--rail:0px}.sidebar{width:223px;transform:translateX(-100%);transition:transform .15s}.mobile-open .sidebar{transform:translateX(0)}.mobile-open #nav-mask{display:block;position:fixed;inset:0;background:#10241a55;z-index:5}
 #mobile-menu{display:grid;position:fixed;left:14px;top:14px;z-index:4}.compact .brand,.compact .sidebar span{display:revert}
 #workspace{margin-left:0}.shell{width:calc(100% - 28px)}#login{height:34px;min-width:64px;right:14px;top:14px}
 .greeting{height:130px;padding-bottom:16px;padding-left:8px}.greeting-text{height:25px}.composer{border-radius:22px;padding:12px;min-height:166px}
 .toolbar{flex-wrap:wrap}.toolbar #tools:not([hidden]){order:3;flex-basis:100%;padding-top:4px}.tool{height:32px;border-radius:10px}.write-row #prompt{font-size:16px}
 .home-tabs{margin-top:10px;height:68px;padding:0}.gallery{gap:10px}.cover,.card,.card-open{border-radius:12px}.card-info{padding:7px 8px 9px;min-height:55px}.card-title{font-size:13px}.stars{right:8px;bottom:9px}.cover .badge{width:36px;height:18px;left:6px;top:6px}.views{right:6px;top:6px;font-size:11px;padding:0 4px}
 .plaza-title,body[data-page=apps] .plaza-title{padding-top:62px}.plaza-title h1{font-size:23px}.dialog-card{padding:22px}.author{padding-right:40px}.author img{width:13px;height:13px}.account span{display:block}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.search i{display:inline-block;width:12px;height:12px;border:1.5px solid var(--ink);border-radius:50%;position:relative;margin-right:2px;flex:none}
.search i:after{content:"";position:absolute;bottom:-3px;right:-4px;width:6px;height:1.5px;transform:rotate(45deg);background:var(--ink)}
.app-info{position:relative;padding-left:60px}
.app-info .author{margin-top:5px}
.app-thumb{position:absolute;left:12px;top:12px;width:40px;height:40px;border-radius:11px;object-fit:cover}
#mini-composer span{font-size:16px;font-weight:400;line-height:26px;letter-spacing:.5px;color:#9a9a9a}
#mini-composer img{filter:none;background-color:var(--ink)}
#knowledge{min-height:100dvh;position:relative;padding-top:40px}
.knowledge-head,#knowledge-tabs,#knowledge-filters{display:flex;align-items:center}
.knowledge-head{justify-content:space-between;gap:16px}
#knowledge-tabs{gap:32px}
#knowledge-tabs button{font-size:20px;color:var(--muted);line-height:40px;white-space:nowrap}
#knowledge-tabs [aria-pressed=true]{color:var(--ink);font-weight:500}
#knowledge-filters{gap:6px;margin:30px 0 18px}
#knowledge-filters button{font-size:14px;border-radius:8px;color:var(--muted);padding:5px 12px}
#knowledge-filters [aria-pressed=true]{color:var(--ink);background:#efefef}
#knowledge-empty{position:absolute;top:58%;left:50%;transform:translate(-50%,-50%);display:grid;justify-items:center;gap:16px;font-size:14px;color:#829e92}
#knowledge-empty img{width:96px;height:96px}
.lock-icon{display:inline-block;position:relative;width:12px;height:10px;border:1.5px solid currentColor;border-radius:2px;margin-left:5px}
.lock-icon:before{content:"";position:absolute;bottom:7px;left:2px;width:5px;height:7px;border:1.5px solid currentColor;border-radius:6px 6px 0 0}
#credit-update{position:fixed;bottom:52px;left:63px;z-index:7;width:min(300px,calc(100% - 24px));padding:14px 16px 16px;border:1px solid #f1f1f1;border-radius:16px;background:white;box-shadow:0 2px 18px #16251a0b;font-size:14px}
#credit-update h2{margin:0;font-size:16px;display:flex;gap:7px;align-items:center}
#credit-update h2 span{background:linear-gradient(135deg,#90ffb2,#07bf00);border-radius:6px;color:white;display:inline-grid;place-items:center;width:22px;height:22px}
#credit-update p{line-height:20px;margin:14px 0 16px}
#credit-close{position:absolute;right:15px;top:12px;color:#858a87;width:24px;height:24px;font-size:18px}
#credit-ok{display:block;margin-left:auto;padding:7px 16px}
@media(max-width:680px){.knowledge-head{flex-wrap:wrap}.knowledge-head .search{width:100%}#knowledge{padding-top:62px}#knowledge-tabs{gap:14px}#knowledge-tabs button{font-size:17px}#knowledge-filters{margin-top:16px}#credit-update{left:12px;bottom:12px}.app-info{padding-left:8px}.app-thumb{display:none}}
