:root{font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;color:#182823;background:#f3f5f7;--green:#10684d;--dark:#122a22;--mint:#ddf3e9;--sub:#53645c;--line:#dfe7e3;--pale:#eef2f0;font-size:14px}*{box-sizing:border-box}body{margin:0}a{color:var(--green);text-decoration:none}button,input,select,textarea{font:inherit}button,.button{border:0;border-radius:7px;padding:9px 13px;background:var(--pale);color:#182823;cursor:pointer;display:inline-block}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--green);color:white}.layout{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:100vh}aside{position:sticky;top:0;height:100vh;background:var(--dark);color:#bddbce;padding:25px 22px;display:flex;flex-direction:column;gap:16px}.brand{font-size:22px;font-weight:750;color:white}.brand small{display:block;font-size:10px;letter-spacing:.13em;color:#a7c7b8;margin-top:4px}nav{display:grid;gap:6px}nav a{color:#bddbce;padding:11px 12px;border-radius:8px}nav a.active,nav a:hover{background:#254b3d;color:white}.profile{margin-top:auto}.profile button{margin-top:8px;background:#254b3d;color:white}main{padding:28px;max-width:1440px;width:100%;min-width:0}h1{font-size:34px;margin:6px 0}h2{font-size:19px;margin:0 0 12px}h3{margin:5px 0}p{margin:6px 0 12px;white-space:pre-wrap}.kicker{color:var(--green);font-weight:700;font-size:13px}.muted{color:var(--sub)}.card{border:1px solid var(--line);background:white;border-radius:14px;padding:20px;margin:14px 0}.bar,.tabs,.assets{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}.tabs a,.tag{display:inline-block;border-radius:7px;padding:7px 10px;background:var(--mint);color:var(--green);font-size:13px}.tabs a{background:white;color:#182823}.tabs a.active{background:var(--green);color:white}label{display:grid;gap:6px;font-weight:600;margin:0 0 13px}input,select,textarea{padding:10px;border:1px solid var(--line);border-radius:7px;background:var(--pale);color:#182823;min-width:0}textarea{min-height:94px;resize:vertical}.search{flex:1;min-width:160px}.form-grid,.upload-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.upload-grid label{background:var(--pale);padding:12px;border-radius:8px}.upload-grid input{width:100%;padding:4px;font-size:12px}.scroll{overflow-x:auto}table{width:100%;border-collapse:separate;border-spacing:0 5px;white-space:nowrap}th,td{text-align:left;padding:11px 8px}th,tr.project:nth-of-type(odd){background:var(--pale)}td:first-child,th:first-child{border-radius:7px 0 0 7px}td:last-child,th:last-child{border-radius:0 7px 7px 0}.history,.event{background:var(--pale);border-radius:8px;padding:12px;margin:9px 0}.event small,.history small{color:var(--green);font-weight:700}.assets{margin:8px 0 0}.file{background:white;border:1px solid var(--line);border-radius:7px;padding:7px 9px;display:inline-flex;align-items:center;gap:8px;max-width:100%;overflow-wrap:anywhere}.file.picture{display:grid;width:144px}.file img{width:124px;height:78px;object-fit:cover;border-radius:5px;background:#d8e7e0}.file span{font-size:12px}.hero{min-height:100vh;display:grid;grid-template-columns:47% 53%;background:white}.hero section{display:flex;flex-direction:column;justify-content:center;padding:clamp(25px,5vw,72px)}.hero section:first-child{background:var(--dark);color:white}.hero section:first-child h1{font-size:clamp(30px,4vw,52px);line-height:1.22}.hero section:first-child p{color:#bddbce}.hero form{max-width:480px;margin-top:18px}.error{color:#9d2525}.notice{color:var(--green);font-weight:700}.empty{padding:22px 0;color:var(--sub)}[hidden]{display:none!important}:focus-visible{outline:2px solid #147e5e;outline-offset:3px}@media(max-width:760px){.layout,.hero{display:block}aside{position:static;height:auto;padding:16px;gap:10px}nav{display:flex;flex-wrap:wrap}.profile{margin-top:0}.profile button{margin:0 0 0 8px}main{padding:16px}.form-grid,.upload-grid{grid-template-columns:1fr}.hero section{padding:30px}.card{padding:13px}h1{font-size:28px}}

.owner{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border-radius:7px;padding:4px 8px;font-size:12px;font-weight:650;background:var(--owner-bg);color:var(--owner-ink)}
.owner-dot{width:7px;height:7px;border-radius:50%;background:currentColor}
.owner-0{--owner-bg:#dbeafe;--owner-ink:#1e40af}
.owner-1{--owner-bg:#f3e8ff;--owner-ink:#6b21a8}
.owner-2{--owner-bg:#d1fae5;--owner-ink:#065f46}
.owner-3{--owner-bg:#ffedd5;--owner-ink:#9a3412}
.owner-4{--owner-bg:#fce7f3;--owner-ink:#9d174d}
.owner-5{--owner-bg:#cffafe;--owner-ink:#155e75}
.owner-6{--owner-bg:#fef3c7;--owner-ink:#854d0e}
.owner-7{--owner-bg:#e0e7ff;--owner-ink:#3730a3}

.project.owner-tint>td,.event.owner-tint{background:var(--owner-bg)}
.project.owner-tint>td:first-child,.event.owner-tint{border-inline-start:4px solid var(--owner-ink)}
.color-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.color-row:last-child{border-bottom:0}
.color-row strong{min-width:100px}
.color-row label{display:flex;align-items:center;margin:0}

.compact-project{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 12px;margin:6px 0}
.compact-copy{min-width:0;overflow-wrap:anywhere}
.compact-copy small{color:var(--owner-ink)}
.compact-copy h3{font-size:15px;margin:2px 0}
.compact-copy p{font-size:12px;color:var(--sub);margin:0;white-space:normal}
.compact-assets{display:grid;grid-template-columns:72px 82px 112px;gap:7px;flex-shrink:0}
.compact-slot{height:42px;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:7px;background:white;font-size:12px;overflow:hidden}
.compact-slot img{width:100%;height:100%;object-fit:cover}
.compact-slot.slot-threeMF{background:var(--green);color:white}
.compact-slot.slot-empty{background:#edf0ef;color:#53645c}
@media(max-width:620px){.compact-project{flex-direction:column;align-items:flex-start}.compact-assets{width:100%;grid-template-columns:minmax(56px,72px) minmax(64px,82px) minmax(84px,112px);gap:5px}}

.detail-overview{padding:10px 12px;border-radius:9px;background:#e3f2eb}
.detail-assets{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.detail-slot{min-width:0;padding:10px;border-radius:8px;background:var(--mint);overflow-wrap:anywhere}
.detail-slot strong,.detail-slot-empty span{display:block;font-size:12px}
.detail-slot-empty{background:var(--pale);color:var(--sub)}
.detail-slot-empty span{margin-top:8px}
.detail-slot .file.picture{width:100%}
.detail-slot .file img{width:100%;height:64px}
.history-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 12px;background:var(--pale);border-radius:8px;padding:7px 12px;margin:6px 0}
.history-current{background:var(--mint)}
.history-files{grid-column:1/-1;margin-top:4px}
.history-files summary{cursor:pointer;font-size:11px;color:var(--green)}
@media(max-width:620px){.history-entry{grid-template-columns:1fr;gap:7px}.history-actions{grid-column:1}}
.modeler-editor label{display:grid;gap:4px}
.modeler-editor input{width:185px}

.project-status.status-0{background:#e8edf2;color:#36465a}
.project-status.status-1{background:#dbeafe;color:#1e40af}
.project-status.status-2{background:#fef3c7;color:#854d0e}
.project-status.status-3{background:#f3e8ff;color:#6b21a8}
.project-status.status-4{background:#fee2e2;color:#991b1b}
.project-status.status-5{background:#d1fae5;color:#065f46}

@media(max-width:760px){
  input,select,textarea{font-size:16px;max-width:100%}
  button,.button{min-height:44px}
  aside{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px}
  aside>div:nth-child(2){display:none}
  aside nav{grid-column:1/-1;grid-row:2;display:flex;gap:4px;flex-wrap:wrap}
  aside nav a{display:flex;align-items:center;min-height:44px;padding:8px 10px}
  .profile{text-align:right;font-size:12px}
  .profile button{margin:4px 0 0;padding:6px 9px}
  main{padding:16px}
  .hero section{padding:24px 20px}
  .hero form button{width:100%}
  .hero section:first-child h1{font-size:30px}
  #search{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #search .search{grid-column:1/-1;width:100%;min-width:0}
  #search select,#search button{width:100%}
  .compact-project{flex-direction:column;align-items:stretch;gap:8px;padding:10px}
  .compact-assets{width:100%;grid-template-columns:minmax(0,72px) minmax(0,1fr) minmax(0,1fr);gap:5px}
  .compact-slot{height:44px;white-space:nowrap;gap:4px}
  .history-entry{grid-template-columns:minmax(0,1fr);gap:7px}
  .history-files summary{padding:8px 0}
  .detail-assets{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .detail-slot .file{white-space:normal;word-break:break-word}
  .modeler-projects{overflow:visible}
  .modeler-projects table,.modeler-projects tbody{display:block;white-space:normal}
  .modeler-projects thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .modeler-projects tr.project{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:10px;margin:8px 0;border-radius:8px;background:var(--pale)}
  .modeler-projects td{padding:0;min-width:0;overflow-wrap:anywhere}
  .modeler-projects tr.project td:first-child{grid-column:1/-1}
  .modeler-projects td[data-label]::before{content:attr(data-label);display:block;color:var(--sub);font-size:11px}
  .modeler-projects td a{display:inline-flex;align-items:center;min-height:44px}
  .modeler-projects .project-versions,.modeler-projects .project-versions td{display:block}
  .modeler-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .modeler-editor>strong,.modeler-editor>label:nth-child(2),.modeler-editor>label:nth-child(3),.modeler-editor>[role]{grid-column:1/-1}
  .modeler-editor input,.modeler-editor select{width:100%}
}
