:root:not([data-theme=dark]){--bg:#fafafa;--primary:#ff7a45;--primary-hover:#ef6b39;--primary-soft:#fff1e9}
.topbar{height:70px;padding:0 28px;gap:20px}
.topbar .brand{gap:11px;min-width:0}
.topbar .brand-mark{width:33px;height:33px;border-radius:9px;background:linear-gradient(135deg,#ffa174,#ff7849);box-shadow:none;font-size:15px;font-weight:800}
.topbar .brand strong{font-size:18px;font-weight:700;letter-spacing:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.topbar-right{gap:13px;flex-shrink:0}
.topbar .credit-badge{gap:0;border-radius:20px;padding:4px 12px;font-size:13px;line-height:20px;background:var(--primary-soft);color:var(--primary)}
.topbar .credit-badge b{font-size:13px;font-weight:500;color:inherit}
.topbar .credit-badge>span{display:inline}
#header-theme{height:38px;padding:7px 11px;border:1px solid var(--border);border-radius:11px;background:var(--panel-alt);color:var(--text);font-size:14px;cursor:pointer}
.topbar .header-recharge{height:38px;padding:7px 14px;font-size:14px;border-radius:11px;background:var(--panel-alt)}
.topbar .avatar{width:38px;height:38px;border:0;background:#ff8853;color:white;font-size:14px;font-weight:600;flex-shrink:0}
.app-shell{min-height:calc(100dvh - 70px)}
.sidebar{width:288px;height:calc(100dvh - 70px);top:70px;padding:26px 14px 40px 18px;overflow-y:auto}
.sidebar>.nav-label,.admin-nav>.nav-label{display:block;padding:0 12px;margin-bottom:6px;font-size:13px;line-height:20px;color:#929cad;letter-spacing:0}
.sidebar .main-nav{display:flex;flex-direction:column;flex-shrink:0}
.sidebar .nav-item{display:flex;align-items:center;gap:12px;width:100%;height:44px;flex-shrink:0;margin:0 0 2px;padding:0 12px;border-radius:10px;border-left:2px solid transparent;font-size:16px;color:#58677a;text-align:left}
.sidebar .nav-item>span{display:block}
.sidebar .nav-item svg{width:16px;height:16px;color:#818a9a;flex-shrink:0}
.sidebar .nav-item.active{border-left-color:var(--primary);background:var(--primary-soft);color:var(--primary);font-weight:600}
.sidebar .nav-item.active svg{color:var(--primary)}
.sidebar .nav-item:hover{background:var(--panel-alt)}
.sidebar .nav-item.active:hover{background:var(--primary-soft)}
.sidebar .sidebar-bottom{margin-top:auto;padding-top:14px;border-top:1px solid var(--border);flex-shrink:0}
.sidebar .sidebar-logout{background:transparent}
.sidebar .admin-nav{margin-top:18px}
.sidebar.has-admin{padding-bottom:22px}
.sidebar.has-admin .nav-item{font-size:14px;height:38px;line-height:1.5}
.sidebar.has-admin .sidebar-bottom{padding-top:12px;margin-top:auto}
.header-admin-button{display:none}
.main{max-width:none;width:100%;margin:0;padding:28px 32px 32px;min-width:0}
.workspace-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}
.workspace-page-head h1{font-size:24px;font-weight:700;line-height:36px;letter-spacing:0}
.workspace-page-head p{margin-top:4px;color:#748399;font-size:15px;line-height:24px}
.workspace-page-head .button{height:44px;border-radius:11px;font-size:15px;padding:10px 17px}
.workspace-welcome{padding:28px 30px;background:linear-gradient(110deg,#fff6f0,#ffe9dd);border:1px solid #ffdcc9;border-radius:15px;margin-bottom:20px}
.workspace-welcome>span{display:block;color:#ff7547;font-size:13px;font-weight:700;line-height:21px;letter-spacing:1.8px}
.workspace-welcome h2{margin:12px 0 6px;font-size:28px;line-height:38px;letter-spacing:0;font-weight:700;overflow-wrap:anywhere}
.workspace-welcome p{margin:0 0 16px;font-size:15px;line-height:24px;color:#697c92}
.workspace-welcome .button{height:45px;gap:5px;padding:0 18px;border-radius:10px;font-size:16px;box-shadow:none}
.workspace-projects{padding:20px;border:1px solid #e8ecf2;border-radius:13px;background:var(--panel);box-shadow:0 4px 16px #14213804}
.workspace-projects-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.workspace-projects-head h2{font-size:18px;line-height:28px;font-weight:700}
.project-heading-actions{display:flex;align-items:center;gap:10px;color:#95a1b3}
.project-heading-actions>span{font-size:14px;white-space:nowrap}
.project-heading-actions .icon-button{width:24px;height:28px;color:#95a1b3}
.workspace-tabs{display:flex;align-items:center;gap:5px;border-bottom:1px solid #e8ecf2}
.workspace-tabs button{height:47px;padding:10px 18px;border-bottom:2px solid transparent;font-size:16px;line-height:24px;color:#718196}
.workspace-tabs button.active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}
.workspace-search{display:flex;flex-direction:column;gap:6px;margin-top:20px;font-size:16px;font-weight:500;line-height:24px}
.workspace-search input{width:100%;height:26px;min-width:0;padding:2px 4px;border:1px solid #878c94;border-radius:2px;background:var(--panel);color:var(--text);font-size:15px;font-weight:400;line-height:20px;box-shadow:none}
.workspace-search input::placeholder{color:#8190a3}
.workspace-search input:focus{border-color:var(--primary);outline:2px solid var(--primary-soft);outline-offset:1px}
.workspace-projects #project-grid{margin-top:18px}
.workspace-projects .project-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;max-width:1464px}
.workspace-projects .project-grid .project-card{border:0;background:transparent;overflow:visible;box-shadow:none}
.workspace-projects .project-grid .project-cover{aspect-ratio:16/9;border-radius:16px}
.workspace-projects .project-grid .project-info{padding:9px 6px 0;align-items:flex-start}
.workspace-projects .project-cover{background:#fdf3ec;border-radius:10px}
.project-cover-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:#e0b49a}
.project-cover-placeholder svg{width:36px;height:36px}
.project-list .project-cover-placeholder svg{width:28px;height:28px}
.workspace-empty{display:grid;place-items:center;grid-column:1/-1;min-height:112px;padding:20px;border:1px dashed #d7deeb;border-radius:13px;text-align:center;color:#98a4b7;font-size:16px;line-height:24px}
.model-marketplace .page-head{align-items:flex-start;margin-bottom:18px}
.model-marketplace .page-head h1{font-size:24px;line-height:34px}
.model-marketplace .page-head p{margin-top:2px;font-size:14px;line-height:22px;color:#68798e}
.model-marketplace .page-actions .button{height:38px;padding:8px 14px;border-radius:9px;font-size:14px}
.market-filter-panel{padding:16px;margin-bottom:16px;border:1px solid #e5e9ef;border-radius:13px;background:var(--panel);box-shadow:0 3px 13px #18243a05}
.market-filter-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.market-filter-heading strong{font-size:15px;line-height:22px}
.market-filter-heading span{font-size:13px;color:#99a5b6}
.market-filter-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.market-filter-fields label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;line-height:20px}
.market-filter-fields select{width:100%;height:40px;padding:7px 12px;border:1px solid #dfe4eb;border-radius:9px;background:var(--panel);font-size:14px;color:var(--text)}
.model-marketplace .model-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.model-marketplace .model-card{display:flex;min-width:0;min-height:216px;flex-direction:column;padding:16px;border:1px solid #e1e6ed;border-radius:13px;background:var(--panel);overflow:visible;box-shadow:0 4px 15px #18243a04}
.model-marketplace .model-card:hover{border-color:#d3dae4;box-shadow:0 8px 22px #18243a0a}
.model-marketplace .model-card.unavailable{background:#fbfcfd}
.model-card-title{display:flex;align-items:center;gap:7px;min-width:0;margin-bottom:9px}
.model-card-title h2{min-width:0;margin-right:auto;overflow-wrap:anywhere;font-size:15px;line-height:22px;font-weight:700}
.market-type-badge,.market-status-badge{display:inline-flex;align-items:center;flex-shrink:0;height:22px;padding:2px 8px;border-radius:999px;font-size:11px;line-height:18px;font-weight:600}
.market-type-badge{background:#e8f5fb;color:#0585c5}
.market-status-badge.available{background:#e8f7ec;color:#13994b}
.market-status-badge.unavailable{background:#fff0db;color:#dd7d06}
.model-specifications{min-height:40px;margin-bottom:8px;color:#607188;font-size:13px;line-height:20px}
.model-description{min-height:42px;margin-bottom:6px;color:#5d6f84;font-size:13px;line-height:21px}
.model-availability{color:#8a98aa;font-size:12px;line-height:20px}
.model-card-actions{display:flex;align-items:center;gap:7px;margin-top:auto;padding-top:14px}
.model-card-actions .button{height:33px;padding:6px 11px;border-radius:8px;font-size:13px;box-shadow:none}
.market-footnote{margin-top:11px;color:#98a5b5;font-size:12px;line-height:20px}
[data-theme=dark] .sidebar .nav-item{color:#aeb7c6}
[data-theme=dark] .sidebar .nav-item.active{color:var(--primary)}
[data-theme=dark] .workspace-welcome{background:linear-gradient(110deg,#30251f,#38291f);border-color:#56392c}
[data-theme=dark] .workspace-welcome p{color:#b8a496}
[data-theme=dark] .workspace-page-head p{color:var(--muted)}
[data-theme=dark] .workspace-projects,[data-theme=dark] .workspace-tabs{border-color:var(--border)}
[data-theme=dark] .workspace-empty{border-color:#414854;color:#929daf}
[data-theme=dark] .market-filter-panel,[data-theme=dark] .model-marketplace .model-card{border-color:var(--border)}
[data-theme=dark] .model-marketplace .model-card.unavailable{background:#202329}
[data-theme=dark] .market-filter-fields select{border-color:var(--border)}
@media(max-width:1350px){.model-marketplace .model-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1200px){.workspace-projects .project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.model-marketplace .model-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.sidebar{width:220px}.main{padding:26px}.sidebar .nav-item{font-size:14px}.topbar{padding:0 22px}.topbar-right{gap:10px}}
@media(max-width:800px){.sidebar{width:76px;padding:22px 10px}.sidebar>.nav-label,.sidebar .admin-nav>.nav-label{display:none}.sidebar .nav-item,.sidebar.has-admin .nav-item{justify-content:center;padding:0;gap:0;font-size:0;height:44px}.sidebar .nav-item>span{display:none}.sidebar .nav-item svg{width:19px;height:19px}.sidebar .sidebar-bottom{width:100%}.main{padding:24px}.workspace-welcome{padding:25px}.workspace-welcome h2{font-size:25px}.workspace-welcome p{font-size:14px}.workspace-projects{padding:18px}.workspace-projects .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.model-marketplace .model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.market-filter-fields{grid-template-columns:1fr}}
@media(max-width:600px){.topbar{height:64px;padding:0 14px;gap:8px}.topbar .brand{gap:8px}.topbar .brand-mark{width:30px;height:30px;font-size:13px}.topbar .brand strong{font-size:16px}.topbar-right{gap:7px}.topbar .credit-badge{padding:3px 8px;font-size:11px;line-height:20px}.topbar .credit-badge b{font-size:11px}.topbar .avatar{width:30px;height:30px;font-size:12px}#header-theme{width:91px;height:34px;padding:5px 6px;font-size:12px;border-radius:8px}.topbar .header-recharge{height:34px;padding:6px 9px;font-size:12px;border-radius:8px}.app-shell{min-height:calc(100dvh - 64px)}.sidebar,.sidebar.has-admin{position:fixed;bottom:0;top:auto;width:100%;height:64px;padding:0;display:block;border-right:0;border-top:1px solid var(--border);overflow:visible}.sidebar .main-nav{height:100%;width:100%;display:flex;flex-direction:row;justify-content:space-around;align-items:center}.sidebar .nav-item,.sidebar.has-admin .nav-item{width:auto;flex:1;height:50px;display:flex;flex-direction:column;gap:3px;margin:0 3px;padding:4px 2px;font-size:10px;border-left:0;border-top:2px solid transparent;border-radius:7px}.sidebar .nav-item>span{display:block}.sidebar .nav-item svg{width:17px;height:17px}.sidebar .nav-item.active{border-left:0;border-top-color:var(--primary)}.sidebar .sidebar-bottom,.sidebar .admin-nav{display:none}.header-admin-button{display:flex;position:fixed;right:16px;bottom:82px;z-index:25;height:38px;padding:8px 12px;gap:6px;border-radius:9px;background:var(--panel);box-shadow:var(--shadow);color:var(--primary);border-color:var(--border);font-size:12px}.header-admin-button svg{width:16px;height:16px}.main{padding:22px 16px 90px}.workspace-page-head{gap:10px;margin-bottom:20px}.workspace-page-head h1{font-size:22px;line-height:32px}.workspace-page-head p{font-size:12px;line-height:22px}.workspace-page-head .button{height:38px;padding:8px 12px;font-size:13px;border-radius:9px}.workspace-welcome{padding:24px 22px;margin-bottom:18px;border-radius:13px}.workspace-welcome>span{font-size:11px;line-height:19px}.workspace-welcome h2{font-size:23px;line-height:34px;margin-top:12px}.workspace-welcome p{font-size:13px;line-height:23px}.workspace-welcome .button{height:42px;padding:0 14px;font-size:14px}.workspace-projects{padding:16px;border-radius:12px}.workspace-projects-head{gap:10px;margin-bottom:10px}.workspace-projects-head h2{font-size:17px}.project-heading-actions{gap:5px}.project-heading-actions>span{font-size:12px}.workspace-tabs button{height:43px;padding:9px 13px;font-size:14px}.workspace-search{font-size:14px;line-height:22px;margin-top:16px}.workspace-search input{height:36px;padding:5px 7px;font-size:16px;border-radius:4px}.workspace-projects #project-grid{margin-top:15px}.workspace-projects .project-grid{grid-template-columns:1fr;gap:16px}.workspace-empty{min-height:112px;padding:20px 16px;font-size:13px;line-height:23px}.project-list .project-cover{width:84px}}
@media(max-width:600px){.topbar{padding:0 12px}.topbar .credit-badge{padding:3px 7px}#header-theme{width:84px}.topbar .header-recharge{padding:6px 8px}}
@media(max-width:370px){.topbar .brand strong{display:none}.topbar{padding:0 16px}.topbar-right{gap:8px}#header-theme{width:96px}.workspace-page-head p{font-size:11px}}
@media(max-width:600px){.model-marketplace .page-head{align-items:flex-start}.model-marketplace .page-actions{width:100%}.model-marketplace .page-actions .button{width:100%}.market-filter-panel{padding:14px}.model-marketplace .model-grid{grid-template-columns:1fr}.model-marketplace .model-card{min-height:205px}.market-filter-heading span{font-size:12px}}
