:root {
  color-scheme:light;
  --ink:#252431; --muted:#666979; --line:#e2e2ea; --purple:#5646bc; --purple-dark:#41329c;
  --accent:#6756bb; --tint:#eeebfa; --side:216px;
  font-family:"Inter","Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink); background:#f8f8fb;
}
*{box-sizing:border-box} body{margin:0} h1,h2,h3,p{margin:0} button,input,textarea,select{font:inherit}
a{color:inherit;text-decoration:none}button{cursor:pointer;color:inherit}button,a{touch-action:manipulation}
button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a198e0;outline-offset:3px}
svg{display:block;width:1.15em;height:1.15em;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
[hidden]{display:none!important}body[data-section=video]{--accent:#ac633f;--tint:#f8e9dd}body[data-section=skill]{--accent:#397b6d;--tint:#dfefe8}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--side);background:#fbfbfd;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:29px 16px 20px;z-index:2}
.brand{display:inline-flex;gap:10px;align-items:center;align-self:flex-start;margin-left:12px;font-size:1.45rem;letter-spacing:.05em}
.brand-mark{display:block;position:relative;width:34px;height:34px;border-radius:10px;background:var(--purple);box-shadow:inset 0 -2px 0 #3e3297}
.brand-mark i{position:absolute;display:block;width:15px;height:17px;left:8px;top:6px;border:1.8px solid white;border-radius:3px;transform:rotate(-12deg)}
.brand-mark i+i{background:var(--purple);transform:rotate(6deg);left:12px;top:10px}.brand-mark i+i:after{content:"";display:block;width:6px;height:2px;margin:4px auto;background:#fff;border-radius:2px}
.side-rule{height:1px;background:var(--line);margin:26px 10px 21px}.sidebar nav{display:grid;gap:6px}.sidebar nav a{display:flex;align-items:center;gap:12px;color:#565765;padding:12px 14px;min-height:45px;border-radius:8px;font-size:.96rem;font-weight:550}.sidebar nav a:hover{background:#f0eff5}.sidebar nav a[aria-current=page]{color:var(--accent);background:var(--tint);font-weight:670}.sidebar nav svg{width:19px;height:19px}
.side-footer{margin:auto 10px 0;border-top:1px solid var(--line);padding-top:17px;color:#757482;display:flex;align-items:center;gap:9px;font-size:.83rem}.side-footer svg{width:15px}
main{margin-left:var(--side);min-height:100dvh}.topbar{height:63px;border-bottom:1px solid var(--line);background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 clamp(20px,4.5vw,72px);gap:12px}.crumb,.sync{display:flex;align-items:center;gap:9px;color:#666779;font-size:.875rem}.crumb svg{width:17px}.divider{color:#b6b6c1;padding:0 4px}.sync{font-size:.825rem;white-space:nowrap}.sync i{width:7px;height:7px;background:#9b99ae;border-radius:100%}.sync[data-state=ok] i{background:#429673}.sync[data-state=error] i{background:#bc7145}
.page{width:min(1200px,100%);margin:0 auto;padding:37px clamp(20px,4.5vw,72px) 65px}
.page-heading,.heading-start,.section-heading,.section-name,.dialog-heading,.dialog-actions,.file-row,.file-meta{display:flex;align-items:center}.page-heading,.section-heading,.dialog-heading,.file-row{justify-content:space-between;gap:12px}.heading-start{gap:16px;min-width:0}.section-symbol{width:48px;height:48px;display:grid;place-items:center;background:var(--tint);color:var(--accent);border:1px solid color-mix(in srgb,var(--accent) 18%,white);border-radius:13px}.section-symbol svg{width:25px;height:25px}.page-heading h1{font-size:clamp(1.65rem,2.5vw,2.3rem);font-weight:740;letter-spacing:-.045em}.primary,.secondary,.danger,.quote-btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;font-weight:600;border:1px solid transparent;min-height:40px;padding:9px 15px;border-radius:8px;font-size:.94rem;line-height:1.3}.primary{color:#fff;background:var(--purple)}.primary:hover{background:var(--purple-dark)}.secondary{background:#fff;border-color:#d8d8e1}.secondary:hover{background:#f5f4f9}.danger{color:white;background:#a63c46}.danger:hover{background:#8f313c}
.prompts{margin-top:34px}.files{margin-top:33px}.section-heading{margin-bottom:15px}.section-name{gap:9px}h2{font-size:1.16rem;line-height:1.4;letter-spacing:-.01em}.count{font-size:.8rem;line-height:22px;min-width:23px;border-radius:7px;padding:0 6px;text-align:center;background:#e9e8ef;color:#656371;font-variant-numeric:tabular-nums}
.search{width:min(260px,52%);height:38px;border:1px solid #dcdce6;background:white;border-radius:8px;display:flex;align-items:center;gap:8px;padding:0 11px;color:#858494}.search svg{width:16px}.search input{border:0;outline:0;width:100%;min-width:0;background:none;font-size:.89rem}.search:focus-within{border-color:#9e93d8;box-shadow:0 0 0 2px #e2ddf7}.search input:focus-visible{outline:0}
.empty{background:#fff;border:1px solid var(--line);border-radius:14px;min-height:242px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px 20px;text-align:center;gap:8px}.empty-art{width:75px;height:65px;position:relative;margin-bottom:8px}.empty-art:before,.empty-art:after,.art-card{content:"";position:absolute;width:49px;height:45px;border:1.6px solid var(--accent);border-radius:7px;left:12px;top:12px;transform:rotate(-16deg);background:var(--tint)}.empty-art:after{background:#fff9e4;transform:translate(5px,-5px) rotate(11deg);z-index:0}.art-card{background:white;transform:translate(2px,2px) rotate(4deg);display:grid;place-items:center;z-index:1;box-shadow:2px 2px 0 var(--tint);color:var(--accent)}.art-card svg{width:23px;height:23px}.empty strong{font-size:1.04rem}.empty p{font-size:.92rem;color:var(--muted);line-height:1.7}.empty button{margin-top:4px}.empty.compact{min-height:145px;gap:6px}.compact .empty-art{display:none}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,278px),1fr));gap:15px}.card{min-width:0;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;background:white;padding:18px 18px 12px}.card:hover{border-color:#c5bfdf}.card-main{flex:1;text-align:left;display:block;width:100%;padding:0;border:0;background:transparent}.card-main h3{overflow-wrap:anywhere;font-size:1.06rem;font-weight:680;line-height:1.55;margin:0 0 9px}.card-main p{font-size:.94rem;color:var(--muted);line-height:1.65;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap}.card-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid #eeedf2;margin-top:18px;padding-top:10px}.card-footer small,.file-meta small,.file-note{color:#727282;font-size:.81rem}.quote-btn,.download{font-size:.86rem;color:var(--purple);background:#f2effb;min-height:34px;padding:6px 9px}.quote-btn:hover,.download:hover{background:#e7e2f7}.quote-btn svg{width:15px}.file-rows{display:grid;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.file-row{padding:13px 17px}.file-row+.file-row{border-top:1px solid var(--line)}.file-meta{gap:12px;min-width:0}.file-meta strong{font-size:.96rem;font-weight:600;overflow-wrap:anywhere}.file-meta small{display:block;margin-top:4px}.file-symbol{background:var(--tint);color:var(--accent);width:36px;height:39px;display:grid;place-items:center;border-radius:8px;flex:none}.download{flex:none;border-radius:6px;display:inline-flex;align-items:center;gap:6px}.file-note{margin-top:9px}.upload-status:not(:empty),.error:not(:empty){margin:8px 0 10px}.upload-status{color:var(--muted);font-size:.91rem}.error{color:#9d3844;white-space:pre-line;overflow-wrap:anywhere;line-height:1.6;font-size:.9rem}
dialog{padding:0;width:min(560px,calc(100% - 28px));border:1px solid var(--line);border-radius:15px;color:var(--ink);box-shadow:0 22px 80px #25233740;max-height:90dvh}dialog::backdrop{background:#29273c65}body:has(dialog[open]){overflow:hidden}.dialog-heading{border-bottom:1px solid var(--line);padding:16px 22px}.dialog-heading h2{overflow-wrap:anywhere}.form-body,.detail-body{padding:19px 22px}.form-body label{display:block;font-size:.91rem;font-weight:600;margin-bottom:7px}.form-body input,.form-body select,.form-body textarea{border:1px solid #d8d7e3;border-radius:7px;width:100%;padding:9px 11px;line-height:1.55;color:var(--ink);background-color:#fff}.form-body input,.form-body select{margin-bottom:14px}.form-body select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23656275' stroke-width='1.6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:18px;background-position:right 11px center}.form-body textarea{resize:vertical;min-height:120px}.dialog-actions{border-top:1px solid var(--line);justify-content:flex-end;gap:8px;padding:14px 22px}.icon-button{display:grid;place-items:center;width:33px;height:33px;background:none;border:0;border-radius:6px;flex:none}.icon-button:hover{background:#f0eff5}.delete-button{border:0;background:transparent;color:#a2434e;padding:7px;margin-right:auto;border-radius:5px}.delete-button:hover{background:#ffedf0}#detail-content{white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere;max-height:56dvh;overflow:auto}#confirm-delete{max-width:410px}#delete-message{overflow-wrap:anywhere;line-height:1.7}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#302d43;color:white;border-radius:8px;max-width:90vw;width:max-content;padding:10px 16px;font-size:.91rem;z-index:4;opacity:0;pointer-events:none}.toast.visible{opacity:1}
@media(max-width:900px){:root{--side:170px}.sidebar{padding-left:10px;padding-right:10px}.page,.topbar{padding-left:24px;padding-right:24px}}
@media(max-width:680px){:root{--side:76px}.sidebar{padding:15px 4px}.brand{margin:0;align-self:center;gap:0}.brand strong{display:none}.brand-mark{width:33px;height:33px}.side-rule{margin:14px 7px}.sidebar nav{gap:6px}.sidebar nav a{padding:9px 1px;gap:5px;flex-direction:column;justify-content:center;min-height:54px;font-size:.76rem;letter-spacing:-.03em}.sidebar nav svg{width:18px;height:18px}.side-footer{justify-content:center;padding-top:12px;margin-left:5px;margin-right:5px}.side-footer span:last-child{display:none}.page{padding:22px 14px 40px}.topbar{height:49px;padding:0 14px}.crumb{font-size:.8rem;gap:5px}.crumb .divider,.crumb #crumb-current{display:none}.sync{font-size:.76rem;gap:5px}.page-heading{gap:8px}.heading-start{gap:8px}.section-symbol{width:32px;height:34px;border-radius:9px;flex:none}.section-symbol svg{width:18px}.page-heading h1{font-size:1.4rem}.primary,.secondary,.danger{font-size:.86rem;padding:8px 10px;gap:4px;min-height:36px}.prompts,.files{margin-top:24px}.section-heading{margin-bottom:12px;gap:6px}.section-name{gap:5px}h2{font-size:1.02rem}.count{font-size:.75rem;min-width:20px;line-height:20px}.search{height:34px;padding:0 7px;gap:4px}.search input{font-size:.8rem}.empty{min-height:204px;padding:19px 11px}.empty p{font-size:.85rem}.empty strong{font-size:.97rem}.cards{grid-template-columns:1fr}.file-row{padding:10px;gap:5px}.file-meta{gap:6px}.file-symbol{width:25px;height:31px}.download{font-size:.8rem;padding:5px}.card{padding:14px}.dialog-actions{padding:12px 16px}}
@media(max-width:390px){:root{--side:68px}.section-symbol{display:none}.page,.topbar{padding-left:10px;padding-right:10px}.page-heading h1{font-size:1.23rem}.brand-mark{transform:scale(.9)}.card-footer small{font-size:.75rem}}

.side-footer button{border:0;color:#626171;background:transparent;display:inline-flex;align-items:center;gap:9px;padding:7px 9px;border-radius:7px;font-size:.88rem}
.side-footer button:hover{color:var(--purple);background:#eeebf7}
.access-page{min-height:100vh;background:#f7f7fb}
.access-main{display:grid;place-items:center;min-height:100dvh;margin:0;padding:24px}
.access-card{width:min(100%,420px);padding:32px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 32px #25233609}
.access-brand{display:flex;align-items:center;gap:10px;font-size:1rem;font-weight:680;color:#585466;margin-bottom:28px}
.access-card h1{font-size:1.63rem;letter-spacing:-.035em;line-height:1.4}
.access-note{margin:9px 0 0;line-height:1.7;font-size:.95rem;color:var(--muted)}
.access-card form{margin-top:22px}.access-card label{display:block;font-size:.91rem;font-weight:600;margin:14px 0 7px}
.access-card input{width:100%;border:1px solid #d4d3df;border-radius:7px;padding:10px 12px;line-height:1.5}
.access-card .primary{width:100%;margin-top:18px}.access-card .secondary{margin-top:18px}
@media(max-width:680px){.side-footer button{padding:8px}.side-footer button span:last-child{display:inline}.side-footer button{flex-direction:column;gap:4px;font-size:.74rem}.access-main{padding:16px}.access-card{padding:24px}}

