:root{--brand:#f57a1c;--brand-dark:#a04800;--brand-soft:#fff3e8;--nav:#1a1a2e;--bg:#f5f5f7;--card:#fff;--ink:#1a1a2e;--muted:#697181;--line:#e7e8ed;--green:#087f5b;--amber:#98600c;--red:#bf3441;--radius:12px;--shadow:0 3px 16px #1a1a2e05;font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:14px;line-height:1.6;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}a{color:var(--brand-dark);text-decoration:none}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:24px;letter-spacing:-.6px;line-height:1.4}h2{font-size:17px}h3{font-size:15px}small,.muted{color:var(--muted)}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--brand);color:var(--nav);font-size:23px;font-weight:800;flex-shrink:0}.boot{min-height:100vh;display:grid;place-content:center;justify-items:center;gap:16px}
.sidebar{width:240px;position:fixed;inset:0 auto 0 0;background:var(--nav);color:white;padding:28px 20px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:12px}.brand strong{display:block;font-size:17px;letter-spacing:1px}.brand small{font-size:10px;letter-spacing:2px;color:#ffffff75}.brand-logo{width:120px;max-height:44px;object-fit:contain}.nav-caption{font-size:10px;letter-spacing:2px;color:#ffffff4d;margin:38px 12px 12px}.nav-button{display:flex;align-items:center;gap:13px;width:100%;min-height:48px;background:none;border:0;color:#d5d5df;text-align:left;padding:12px;border-radius:10px;margin-bottom:8px}.nav-button:hover{background:#ffffff09}.nav-button.active{background:#f57a1c17;color:#ffae70;box-shadow:inset 3px 0 var(--brand)}.nav-button.active svg{color:var(--brand)}.sidebar-foot{margin-top:auto;padding:20px 10px 0;border-top:1px solid #ffffff12;color:#ffffff60;font-size:11px}.sidebar-foot b{display:block;color:#ffffffb0;font-size:12px;margin-bottom:5px}.sidebar-foot .dot{display:inline-block;width:6px;height:6px;background:#60c19c;border-radius:50%;margin-right:6px}.app-shell{margin-left:240px}.topbar{height:64px;background:#ffffffed;position:sticky;top:0;z-index:20;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:16px}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb b{color:var(--ink);font-weight:500;margin-left:8px}.top-right{display:flex;align-items:center;gap:16px}.top-search{display:flex;gap:8px;align-items:center;color:var(--muted);border:1px solid var(--line);padding:5px 12px;border-radius:8px}.top-search input{width:180px;border:0;background:transparent;font-size:12px;padding:4px;outline:none}.icon-button{border:0;background:transparent;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--muted)}.avatar{width:32px;height:32px;border-radius:10px;background:var(--brand-soft);color:var(--brand-dark);display:grid;place-items:center;font-weight:700}.account-name{font-size:12px}.main{padding:32px;max-width:1660px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--brand-dark);font-weight:700;margin-bottom:8px}.page-head p{color:var(--muted);margin-top:8px;font-size:13px}.button{border:1px solid var(--line);background:white;color:var(--ink);border-radius:8px;padding:9px 16px;min-height:40px;display:inline-flex;gap:8px;align-items:center;justify-content:center;white-space:nowrap;font-size:13px;font-weight:500}.button:hover{border-color:#e8bb95;background:#fffaf6}.button.primary{background:var(--brand);border-color:var(--brand);color:var(--nav);font-weight:700}.button.primary:hover{background:#ff913c}.button.danger{color:var(--red);border-color:#f0cbd0}.button.small{padding:6px 12px;min-height:32px;font-size:12px}.button.link{border:0;color:var(--brand-dark);background:transparent;padding:4px 0}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);padding:20px;position:relative;overflow:hidden;box-shadow:var(--shadow)}.stat-top{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.stat-icon{width:36px;height:36px;background:var(--brand-soft);color:var(--brand-dark);border-radius:10px;display:grid;place-items:center}.stat-number{font-size:32px;font-weight:650;letter-spacing:-1px;margin:4px 0}.stat small{font-size:11px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:24px}.stack{display:flex;flex-direction:column;gap:24px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel-head{padding:20px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head h2{font-size:15px}.panel-body{padding:24px}.count-pill{display:inline-flex;align-items:center;justify-content:center;background:var(--bg);color:var(--muted);border-radius:6px;padding:1px 7px;font-size:11px;margin-left:8px}.empty{padding:44px 24px;text-align:center;color:var(--muted)}.empty-icon{width:52px;height:52px;display:grid;place-items:center;margin:0 auto 16px;background:var(--bg);border-radius:16px;color:#9498a8}.empty strong{display:block;color:#555c6c;font-size:14px;margin-bottom:6px}.empty p{font-size:12px}.empty .button{margin-top:18px}.task-row{display:flex;align-items:center;gap:14px;padding:17px 24px;border-bottom:1px solid #f0f1f5}.task-row:last-child{border:0}.task-check{width:22px;height:22px;background:white;border:1.5px solid #d4d7df;border-radius:6px;display:grid;place-items:center;color:var(--green);flex-shrink:0}.row-main{flex:1;min-width:0}.row-title{display:block;font-weight:500;overflow-wrap:anywhere}.row-meta{font-size:11px;color:var(--muted);display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:5px}.badge{display:inline-flex;align-items:center;gap:4px;font-size:11px;padding:3px 8px;border-radius:6px;background:#eff2f8;color:#55627a;white-space:nowrap}.badge.orange{background:var(--brand-soft);color:var(--brand-dark)}.badge.green{background:#eaf7f0;color:var(--green)}.badge.red{background:#ffeff1;color:var(--red)}.badge.amber{background:#fff6e5;color:var(--amber)}.badge.gray{background:#f1f2f5;color:#747987}.compact-row{padding:16px 24px;border-bottom:1px solid #f0f1f5;display:flex;gap:12px;align-items:flex-start}.compact-row:last-child{border:0}.date-box{width:44px;min-height:44px;border-radius:8px;background:var(--brand-soft);color:var(--brand-dark);text-align:center;padding:4px;flex-shrink:0}.date-box small{display:block;font-size:9px;color:inherit}.date-box b{font-size:16px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line);flex-wrap:wrap}.filters{display:flex;gap:8px;flex-wrap:wrap}.search-input,input,select,textarea{border:1px solid #dfe1e8;border-radius:8px;padding:10px 12px;background:white;color:var(--ink);min-width:0;width:100%}.search-input{width:240px}.toolbar select{width:150px}.segmented{display:flex;border:1px solid var(--line);padding:3px;border-radius:8px;gap:4px}.segmented button{border:0;background:transparent;border-radius:5px;padding:5px 10px;color:var(--muted);font-size:12px}.segmented button.selected{background:var(--brand-soft);color:var(--brand-dark)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{color:var(--muted);font-size:11px;font-weight:500;background:#fafafb;padding:12px 20px;white-space:nowrap}td{padding:16px 20px;border-top:1px solid #eff0f4;max-width:360px;overflow-wrap:anywhere}tr:hover td{background:#fffcf8}td small{display:block;font-size:11px;margin-top:4px}.project-link{font-weight:600;color:var(--ink)}.project-link:hover{color:var(--brand-dark)}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.project-card{padding:24px}.project-card h3{overflow-wrap:anywhere}.project-card .requirements{color:var(--muted);font-size:12px;line-height:1.8;margin:16px 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:64px}.card-footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:16px;margin-top:20px;font-size:12px;color:var(--muted)}.board{display:flex;gap:16px;overflow:auto;padding-bottom:8px}.board-column{min-width:250px;width:250px;background:#eceef3;border-radius:12px;padding:12px;flex-shrink:0}.board-column h3{padding:4px 4px 16px;font-size:12px}.board-item{background:white;border:1px solid var(--line);padding:16px;margin-bottom:12px;border-radius:10px}.board-item p{font-size:12px;color:var(--muted);margin:8px 0}.board-item a{color:var(--ink);font-weight:600;overflow-wrap:anywhere}.tabs{display:flex;gap:24px;padding:0 24px;border-bottom:1px solid var(--line);overflow:auto}.tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:16px 0;color:var(--muted);white-space:nowrap}.tabs button.active{color:var(--brand-dark);border-color:var(--brand)}.detail-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:24px 0}.detail-summary dt{font-size:11px;color:var(--muted)}.detail-summary dd{margin:4px 0 0}.requirements-box{padding:20px;background:#fafafb;border:1px solid var(--line);border-radius:10px;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:20px}.stage-track{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}.stage-item{font-size:12px;padding:6px 12px;border-radius:6px;background:#f0f1f5;color:var(--muted)}.stage-item.current{background:var(--brand-soft);color:var(--brand-dark);font-weight:600}.library-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px}.category-list{padding:12px}.category-list button{border:0;background:none;display:flex;align-items:center;gap:10px;width:100%;padding:12px;border-radius:8px;color:var(--muted);text-align:left;font-size:13px}.category-list button.active{background:var(--brand-soft);color:var(--brand-dark)}.photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:20px}.photo-card{border:1px solid var(--line);border-radius:10px;overflow:hidden}.photo-card img{width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--bg)}.photo-card .photo-placeholder{width:100%;aspect-ratio:4/3;display:grid;place-items:center;background:var(--bg);color:var(--muted)}.photo-card .photo-caption{padding:12px}.tools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.tool-card{padding:28px;display:flex;flex-direction:column}.tool-icon{width:56px;height:56px;background:var(--brand-soft);border-radius:14px;display:grid;place-items:center;color:var(--brand-dark);margin-bottom:24px}.tool-icon svg{width:27px;height:27px}.tool-card h2{font-size:20px}.tool-card .description{color:var(--muted);font-size:13px;margin:12px 0 20px;min-height:44px}.tool-instruction{background:#fafafb;border:1px solid var(--line);border-radius:10px;padding:16px;font-size:12px;color:var(--muted);line-height:1.9;white-space:pre-wrap;margin-bottom:24px}.tool-card .actions{margin-top:auto}.tool-results{border-top:1px solid var(--line);margin-top:24px;padding-top:16px;font-size:12px}.tool-results a{display:block;margin-top:10px}.mobile-nav{display:none}.login-layout{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}.login-brand{background:var(--nav);color:white;padding:64px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-brand:after{content:"";position:absolute;width:520px;height:520px;border:1px solid #f57a1c26;border-radius:50%;right:-250px;bottom:-200px;box-shadow:0 0 0 72px #f57a1c06,0 0 0 144px #f57a1c04}.login-brand h1{font-size:42px;letter-spacing:-1px;line-height:1.5;margin-bottom:24px}.login-brand h1 em{color:var(--brand);font-style:normal}.login-brand p{color:#c2c2d0;line-height:2;font-size:14px;max-width:400px}.login-brand .login-label{font-size:11px;letter-spacing:3px;color:#ffffff80;margin-bottom:24px}.login-brand footer{font-size:11px;color:#ffffff60}.login-side{display:flex;align-items:center;justify-content:center;padding:48px}.login-box{width:360px;max-width:100%}.login-box h2{font-size:26px;margin-bottom:8px}.login-box>p{color:var(--muted);font-size:13px;margin-bottom:32px}.login-box .button{width:100%;min-height:46px;margin-top:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-field{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.form-field label{font-size:12px;font-weight:500}.form-field small{font-size:11px}.form-field.full{grid-column:1/-1}.form-field textarea{min-height:100px;resize:vertical}.checkbox-line{display:flex;align-items:center;gap:8px;font-size:12px;margin-bottom:8px}.checkbox-line input{width:18px;height:18px}.form-error{font-size:12px;color:var(--red);background:#fff0f1;border-radius:8px;padding:10px 12px;margin:12px 0;display:none}.form-error.visible{display:block}.login-bottom{font-size:11px;color:var(--muted);margin-top:32px;text-align:center}.form-grid select[multiple]{min-height:132px}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.modal-head h2{font-size:20px}dialog{border:1px solid var(--line);border-radius:16px;padding:28px;width:620px;max-width:calc(100vw - 32px);max-height:90vh;box-shadow:0 24px 80px #1a1a2e33}dialog::backdrop{background:#1a1a2e70}dialog .form-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);padding-top:20px;margin-top:12px}.preview-frame{width:100%;height:52vh;border:1px solid var(--line);border-radius:8px}.preview-image{max-width:100%;max-height:52vh;display:block;margin:auto;object-fit:contain}.info-strip{padding:12px 16px;background:var(--brand-soft);border:1px solid #f6ddc6;border-radius:8px;color:var(--brand-dark);font-size:12px;margin-bottom:20px}.error-state{padding:64px 24px;text-align:center}.error-state h2{margin:16px 0 8px}.error-state p{color:var(--muted);margin-bottom:24px}.loading{padding:70px;text-align:center;color:var(--muted)}.section-gap{margin-top:24px}.full-text{white-space:pre-wrap;overflow-wrap:anywhere}.connection-tag{font-size:10px;color:var(--muted)}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--nav);color:white;padding:12px 20px;border-radius:10px;box-shadow:0 8px 32px #0002;z-index:100;display:none;max-width:90vw;font-size:13px}#toast.visible{display:block}
@media(min-width:1600px){.main{padding:40px}.stats{gap:24px}.dashboard-grid{gap:28px}}
@media(max-width:1200px){.top-search input{width:130px}.main{padding:24px}.tools-grid{gap:16px}.tool-card{padding:22px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr)}}
@media(min-width:768px) and (max-width:1023px){.sidebar{width:80px;padding:24px 12px}.sidebar .brand-copy,.sidebar .nav-caption,.sidebar .nav-label,.sidebar .sidebar-foot{display:none}.sidebar .brand-logo{display:none}.sidebar .brand{justify-content:center}.nav-button{justify-content:center;padding:12px}.sidebar nav{margin-top:36px}.app-shell{margin-left:80px}.topbar{padding:0 24px}.stat{padding:16px}.dashboard-grid{grid-template-columns:1fr}.tools-grid{grid-template-columns:1fr 1fr}.library-layout{grid-template-columns:160px minmax(0,1fr)}.photos{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.sidebar{display:none}.app-shell{margin-left:0}.topbar{height:60px;padding:0 16px}.top-search,.breadcrumb,.account-name{display:none}.topbar:before{content:"敬宇 · 工作台";font-weight:650;font-size:15px}.top-right{margin-left:auto;gap:4px}.main{padding:24px 16px 100px}.page-head{align-items:flex-start;margin-bottom:20px}.page-head h1{font-size:23px}.page-head p{font-size:12px}.page-head>.actions{flex-shrink:0}.page-head .button{padding:10px;min-height:44px;font-size:12px}.page-head .button svg{display:none}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px}.stat{padding:16px}.stat-number{font-size:28px}.stat-icon{width:30px;height:30px}.dashboard-grid{grid-template-columns:1fr;gap:20px}.stack{gap:20px}.panel-head{padding:16px}.panel-body{padding:16px}.task-row,.compact-row{padding:16px}.task-check{width:32px;height:32px}.task-row>.badge{max-width:76px;white-space:normal}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fffffffa;border-top:1px solid var(--line);padding:8px 4px calc(8px + env(safe-area-inset-bottom));z-index:40}.mobile-nav button{flex:1;border:0;background:none;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:4px;min-height:44px;font-size:10px}.mobile-nav button.active{color:var(--brand-dark)}.mobile-nav button.active svg{color:var(--brand)}.toolbar{padding:16px}.filters{width:100%}.search-input{width:100%}.toolbar select{flex:1;width:100%}.toolbar .segmented{margin-left:auto}.cards,.tools-grid{grid-template-columns:1fr;gap:16px}.library-layout{grid-template-columns:1fr;gap:16px}.category-list{display:flex;overflow:auto;gap:6px;padding:8px}.category-list button{white-space:nowrap;min-height:44px;width:auto;flex-shrink:0;padding:8px 12px}.category-list svg{display:none}.photos{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}.detail-summary{grid-template-columns:1fr 1fr;gap:16px}.tabs{gap:20px;padding:0 16px}.tabs button{min-height:44px}.form-grid{grid-template-columns:1fr;gap:0}.form-field.full{grid-column:auto}dialog{padding:20px;max-height:88vh}.button,.button.small,input,select{min-height:44px}.login-layout{grid-template-columns:1fr}.login-brand{padding:28px;min-height:180px}.login-brand .login-message,.login-brand footer{display:none}.login-side{padding:36px 24px}.login-box{width:100%}.topbar .icon-button{min-height:44px}.tool-card{padding:24px}.empty{padding:32px 16px}th,td{padding:12px;min-width:100px}.project-name-cell{min-width:180px}#toast{bottom:90px}.modal-head h2{font-size:18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.sidebar .brand-logo{width:62px;max-height:40px}.appearance-login{margin:24px auto 0;display:flex;width:auto!important;background:transparent}.theme-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.theme-option{display:flex;align-items:center;flex-direction:column;gap:16px;padding:24px 12px;border:1px solid var(--line);background:var(--card);color:var(--muted);border-radius:12px;min-height:100px}.theme-option.selected{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-dark)}.theme-option svg{width:28px;height:28px}.photo-button{display:block;width:100%;border:0;padding:0;background:var(--bg);cursor:pointer}.source-entry{display:flex;align-items:center;gap:8px;min-height:44px;width:100%;border:1px solid var(--line);background:var(--card);color:var(--ink);padding:8px 12px;margin-top:6px;border-radius:8px;text-align:left;overflow-wrap:anywhere}.source-entry.selected{border-color:var(--brand);background:var(--brand-soft)}.source-entry>span{flex:1;min-width:0}.source-entry>input[type=checkbox]{width:18px;height:18px;flex-shrink:0}.source-file-path{display:block;color:var(--muted);font-size:11px;line-height:1.45;overflow-wrap:anywhere}#source-browser{max-height:330px;overflow:auto}.source-browser-head,.source-browser-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.source-browser-meta{padding:8px 0;color:var(--muted);font-size:12px}.source-search-field input{width:100%}
html[data-theme=dark]{--brand:#eaa56b;--brand-dark:#f0b885;--brand-soft:#32271f;--nav:#15151b;--bg:#19191d;--card:#242429;--ink:#ececf0;--muted:#a5a5b2;--line:#37373e;--green:#8ac8a9;--amber:#dec08a;--red:#f0a0a8;--shadow:0 3px 16px #00000012;color-scheme:dark}
html[data-theme=dark] .topbar{background:#242429f5}html[data-theme=dark] .panel,html[data-theme=dark] .stat,html[data-theme=dark] .button,html[data-theme=dark] .task-check,html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea,html[data-theme=dark] dialog{background:var(--card);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .button.primary{background:var(--brand);border-color:var(--brand);color:#211a16}html[data-theme=dark] .button.primary:hover{background:#f0b680}html[data-theme=dark] .button:hover{background:#332b26;border-color:#785738}html[data-theme=dark] .button.link{background:transparent;color:var(--brand-dark)}html[data-theme=dark] .button.danger{color:var(--red);border-color:#70434a}
html[data-theme=dark] th,html[data-theme=dark] .tool-instruction,html[data-theme=dark] .requirements-box{background:#202024}html[data-theme=dark] tr:hover td{background:#2a2826}html[data-theme=dark] td,html[data-theme=dark] .task-row,html[data-theme=dark] .compact-row{border-color:var(--line)}html[data-theme=dark] .board-column{background:#202024}html[data-theme=dark] .board-item{background:var(--card)}
html[data-theme=dark] .stage-item,html[data-theme=dark] .badge.gray{background:#303037;color:var(--muted)}html[data-theme=dark] .badge{background:#2d3340;color:#b9c4dc}html[data-theme=dark] .badge.orange,html[data-theme=dark] .stage-item.current{background:var(--brand-soft);color:var(--brand-dark)}html[data-theme=dark] .badge.green{background:#21362b;color:var(--green)}html[data-theme=dark] .badge.amber{background:#383021;color:var(--amber)}html[data-theme=dark] .badge.red,html[data-theme=dark] .form-error{background:#3b272c;color:var(--red)}
html[data-theme=dark] .info-strip{background:var(--brand-soft);border-color:#59402d;color:var(--brand-dark)}html[data-theme=dark] .empty strong{color:#c0c0cc}html[data-theme=dark] .empty-icon{color:#9999aa}html[data-theme=dark] .mobile-nav{background:#242429fa}html[data-theme=dark] .top-search input{background:transparent}html[data-theme=dark] .login-side{background:var(--bg)}html[data-theme=dark] .login-brand h1 em{color:var(--brand)}html[data-theme=dark] .sidebar .nav-button.active{background:#eaa56b15;color:#f0b885}html[data-theme=dark] .theme-option.selected{background:var(--brand-soft)}
@media(max-width:767px){.theme-option{padding:20px 8px;font-size:12px}.login-brand .brand-logo{width:100px}.sidebar .brand-logo{width:62px}}
.task-title-button{background:transparent;border:0;color:inherit;font:inherit;text-align:left;padding:4px 0;min-height:32px;cursor:pointer}.task-title-button:hover{color:var(--brand-dark)}
.sidebar .brand{flex-direction:column;align-items:flex-start;gap:16px;padding:0 4px 24px;border-bottom:1px solid #ffffff12}.sidebar .brand-art{width:192px;height:60px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:10px;overflow:hidden}.sidebar .brand-art .brand-logo{display:block;width:184px;height:auto;max-height:none;flex-shrink:0}.sidebar .brand-copy{min-width:0}.sidebar .brand strong{font-size:19px;letter-spacing:.5px;line-height:1.4}.sidebar .brand small{display:block;white-space:nowrap;font-size:9px;letter-spacing:1.5px;margin-top:6px;color:#ffffff80}.sidebar>.nav-caption{margin-top:24px}
.sidebar .brand{flex-direction:row;align-items:center;gap:12px;padding:4px 0 22px}.sidebar .brand-art{width:80px;height:28px;background:transparent;border-radius:0;overflow:visible;flex-shrink:0}.sidebar .brand-art .brand-logo{width:80px;height:auto}.sidebar .brand strong{font-size:15px;letter-spacing:0;white-space:nowrap}.sidebar .brand small{display:none}
@media(min-width:768px) and (max-width:1023px){.sidebar .brand{padding:0 0 20px;align-items:center}.sidebar .brand-art{width:52px;height:44px;border-radius:8px}.sidebar .brand-art .brand-logo{width:50px}}
@media(max-width:767px){.task-title-button{min-height:44px}}
.header-date{font-size:12px;font-weight:500;color:var(--ink);white-space:nowrap;margin-left:auto}.topbar .top-right{gap:10px}.topbar .top-search input{width:140px}
.calendar-head{padding:20px 20px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.calendar-head small{color:var(--muted);font-size:11px}.calendar-head h2{font-size:19px;line-height:1.4}.calendar-head h2 span{color:var(--brand-dark)}.calendar-controls{display:flex;align-items:center;gap:2px}.calendar-controls .icon-button{font-size:25px;min-width:36px;min-height:44px}.calendar-controls .button{min-height:36px;padding:4px 10px}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding:0 16px}.calendar-weekdays{font-size:11px;color:var(--muted);text-align:center;padding-top:8px;padding-bottom:6px}.calendar-weekdays span:nth-last-child(-n+2){opacity:.65}.calendar-grid{padding-bottom:14px}.calendar-day{min-height:44px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;border:0;background:transparent;color:var(--ink);font-size:13px;border-radius:9px;padding:3px 0}.calendar-day>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;line-height:1}.calendar-day:hover{background:var(--brand-soft)}.calendar-day.outside{color:var(--muted);opacity:.45}.calendar-day.is-today>span{color:var(--red);font-weight:700}.calendar-day.selected>span{background:var(--ink);color:var(--card);font-weight:700}.calendar-day.is-today.selected>span{background:var(--brand);color:#211a16}.calendar-dot{height:4px;width:4px;border-radius:50%;background:transparent}.calendar-dot.pending{background:var(--brand)}.calendar-dot.done{background:var(--green)}.calendar-agenda{border-top:1px solid var(--line)}.calendar-agenda-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 10px;gap:8px}.calendar-agenda-head h3{font-size:14px}.calendar-agenda-head small{font-size:11px}.calendar-add{color:var(--brand-dark);border-radius:50%;background:var(--brand-soft)}.calendar-empty{padding:10px 20px 22px;color:var(--muted);font-size:12px}.calendar-agenda .task-row{padding:12px 20px;gap:10px}.calendar-agenda .task-row:last-child{border-bottom:0}.calendar-agenda .task-check{width:26px;height:26px}.calendar-agenda .row-meta{font-size:11px}.calendar-agenda .task-title-button{font-size:13px}.calendar-agenda .task-row .badge{font-size:10px}
@media(min-width:768px) and (max-width:1200px){.topbar .breadcrumb{display:none}.topbar{padding:0 24px}.header-date{margin-left:0}.topbar .top-search input{width:120px}}
@media(max-width:767px){.topbar:before{display:none}.topbar{gap:6px;padding:0 12px}.header-date{font-size:11px;letter-spacing:-.2px;margin-left:0}.topbar .top-right{margin-left:auto;gap:0}.topbar .icon-button{min-width:40px}.calendar-head{padding:18px 16px 10px}.calendar-agenda-head{padding:16px}.calendar-agenda .task-check{width:32px;height:32px}.calendar-controls .icon-button{min-width:40px}.calendar-controls .button{min-height:44px}}
@media(max-width:767px){.today-grid{display:flex;flex-direction:column}.today-grid>.stack{display:contents}.today-grid #work-calendar{order:-1}}
@media(max-width:767px){.header-date{font-size:12px}}
.calendar-plugin{margin-bottom:24px}.calendar-plugin-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;border-top:1px solid var(--line)}.calendar-month{min-width:0;padding:12px}.calendar-plugin .calendar-weekdays,.calendar-plugin .calendar-grid{padding:0}.calendar-plugin .calendar-weekdays{padding:6px 0 12px}.calendar-plugin .calendar-grid{gap:0;border-top:1px solid var(--line);border-left:1px solid var(--line)}.calendar-cell{min-width:0;min-height:110px;padding:3px 5px 6px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.calendar-cell.selected{background:var(--brand-soft)}.calendar-cell.outside{opacity:.5}.calendar-plugin .calendar-day{width:100%;flex-direction:row;justify-content:space-between;min-height:36px;padding:0 2px}.calendar-plugin .calendar-day>span{width:28px;height:28px}.calendar-plugin .calendar-day .day-add{color:var(--muted);font-size:14px}.calendar-events{display:flex;flex-direction:column;gap:4px;margin-top:3px}.calendar-event{max-width:100%;border:0;border-left:2px solid var(--brand);border-radius:4px;background:var(--brand-soft);color:var(--brand-dark);padding:3px 5px;font-size:11px;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-height:25px}.calendar-event.done{border-color:var(--green);color:var(--green);background:var(--bg);text-decoration:line-through}.calendar-more{border:0;background:transparent;color:var(--muted);font-size:10px;text-align:left;padding:2px}.calendar-day-panel{border-left:1px solid var(--line);min-width:0}.calendar-day-tasks{padding:0 16px}.calendar-task-item{display:flex;align-items:flex-start;gap:8px;padding:10px 0;border-bottom:1px solid var(--line)}.calendar-task-item .task-check{width:26px;height:26px;flex-shrink:0}.calendar-task-text{min-width:0;text-align:left;background:transparent;border:0;color:var(--ink);padding:0;overflow-wrap:anywhere}.calendar-task-text b{display:block;font-weight:500;font-size:13px}.calendar-task-text small{display:block;font-size:11px;margin-top:3px}.calendar-inline-form{padding:20px 16px;display:flex;flex-direction:column;gap:8px}.calendar-inline-form h3{margin-bottom:4px}.calendar-inline-form label{font-size:11px;color:var(--muted)}.calendar-inline-form input,.calendar-inline-form select{width:100%;min-width:0;font-size:13px}.calendar-inline-form .button{margin-top:6px}.calendar-day-tasks .calendar-empty{padding:4px 0 12px}.calendar-plugin .calendar-agenda-head{padding:16px}.calendar-plugin .calendar-day.selected>span.day-add{background:transparent;color:var(--brand-dark)}
@media(max-width:1100px){.calendar-plugin-layout{grid-template-columns:minmax(0,1fr) 240px}.calendar-cell{min-height:96px;padding:3px}.calendar-event{font-size:10px}}
@media(max-width:767px){.calendar-plugin-layout{grid-template-columns:1fr}.calendar-day-panel{border-left:0;border-top:1px solid var(--line)}.calendar-month{padding:8px}.calendar-cell{min-height:90px;padding:1px 2px}.calendar-plugin .calendar-day{min-height:44px;justify-content:center}.calendar-plugin .day-add{display:none!important}.calendar-event{font-size:9px;padding:2px;min-height:20px}.calendar-more{font-size:9px}.calendar-inline-form{padding:16px}.calendar-task-item .task-check{width:32px;height:32px}.calendar-task-text{min-height:44px}}
.calendar-launcher{display:flex;align-items:center;gap:16px;width:100%;padding:18px 20px;text-align:left;background:var(--card);color:var(--ink);cursor:pointer;min-height:112px}.calendar-launcher:hover{border-color:var(--brand);background:var(--brand-soft)}.calendar-launcher-date{width:56px;flex-shrink:0;overflow:hidden;border:1px solid var(--line);border-radius:10px;text-align:center;background:var(--bg)}.calendar-launcher-date small{display:block;font-size:10px;color:var(--brand-dark);padding:3px;background:var(--brand-soft)}.calendar-launcher-date b{display:block;font-size:27px;font-weight:500;line-height:1.35;padding:2px 0}.calendar-launcher-copy{display:flex;flex-direction:column;min-width:0;flex:1}.calendar-launcher-copy strong{font-size:15px;font-weight:600}.calendar-launcher-copy small{font-size:11px;margin-top:3px}.calendar-launcher-copy>span{font-size:11px;color:var(--brand-dark);margin-top:6px}.calendar-launcher>svg{width:16px;color:var(--muted)}dialog.calendar-dialog{width:1100px;max-width:94vw;max-height:90vh;padding:20px}.calendar-dialog .calendar-plugin{margin-bottom:0}.calendar-dialog .calendar-head{padding:8px 12px 16px}.calendar-dialog .calendar-cell{cursor:pointer}.calendar-dialog .calendar-cell:hover{background:var(--brand-soft)}.calendar-dialog .calendar-plugin-layout{grid-template-columns:minmax(0,1fr) 260px}.calendar-dialog .calendar-month{padding:10px}.calendar-dialog .modal-head{margin-bottom:12px}.calendar-dialog .calendar-inline-form input,.calendar-dialog .calendar-inline-form select{min-height:44px}
@media(max-width:767px){dialog.calendar-dialog{width:100%;max-width:100%;max-height:94dvh;padding:16px 8px;border-radius:16px}.calendar-dialog .modal-head{padding:0 8px}.calendar-dialog .calendar-plugin-layout{grid-template-columns:1fr}.calendar-dialog .calendar-month{padding:4px}.calendar-launcher{min-height:100px;padding:16px}.calendar-launcher-date{width:52px}}
.boiler-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.boiler-section-head h2{margin:4px 0 8px}.boiler-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0 28px}.boiler-card{display:flex;flex-direction:column;align-items:flex-start;padding:22px;text-align:left;color:var(--ink);cursor:pointer;text-decoration:none;min-width:0;background:var(--card)}.boiler-card:hover{border-color:var(--brand);background:var(--brand-soft)}.boiler-number{font-size:12px;color:var(--brand-dark);margin-bottom:14px}.boiler-card h3{font-size:16px;margin-bottom:10px}.boiler-card p{font-size:13px;color:var(--muted);line-height:1.7;margin:0 0 20px}.boiler-open{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--brand-dark);margin-top:auto}.boiler-open svg{width:16px;height:16px}.boiler-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.boiler-fields input,.boiler-fields select{min-width:0;width:100%;min-height:44px}.boiler-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.boiler-result-grid>div{padding:14px;background:var(--brand-soft);border-radius:10px;min-width:0}.boiler-result-grid small{display:block}.boiler-result-grid strong{display:block;font-size:21px;overflow-wrap:anywhere;margin-top:8px}.boiler-result-grid em{font-style:normal;font-size:12px;font-weight:400}.boiler-formula{font-size:12px;color:var(--muted);line-height:1.8;padding-top:16px;border-top:1px solid var(--line)}.boiler-formula summary{cursor:pointer;font-size:13px;color:var(--ink);min-height:44px}.boiler-formula p{overflow-wrap:anywhere}.boiler-formula a{color:var(--brand-dark)}@media(max-width:1023px){.boiler-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:767px){.boiler-grid,.boiler-fields{grid-template-columns:1fr}.boiler-card{padding:18px}.boiler-section-head{align-items:flex-start}.boiler-result-grid strong{font-size:18px}}
.tool-group{margin-top:22px;padding:22px 24px;background:var(--card);border:1px solid var(--line);border-radius:16px}.tool-group-title{display:flex;align-items:center;gap:12px;margin-bottom:18px}.tool-group-title h2{font-size:15px;font-weight:600}.tool-group-title small{font-size:11px;color:var(--muted)}.tool-icon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:8px 12px}.tool-entry{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;min-width:0;min-height:130px;padding:12px 4px;text-decoration:none;text-align:center;background:transparent;border:0;border-radius:12px;color:var(--ink);cursor:pointer}.tool-entry:hover{background:var(--bg)}.tool-entry:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.tool-entry-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:16px;color:#c26b1c;background:#fff0df;border:1px solid #d8903b20;box-shadow:0 3px 8px #00000005}.tool-entry-icon svg{width:28px;height:28px}.tool-entry strong{font-size:12px;font-weight:600;line-height:1.5}.tool-entry small{font-size:10px;color:var(--muted);line-height:1.5}.tone-batch,.tone-flow,.tone-mix{background:#eaf2fc;color:#467aac;border-color:#467aac20}.tone-steam,.tone-external{background:#eef0f7;color:#6b719c;border-color:#6b719c20}.tone-heating,.tone-project{background:#eaf4ef;color:#56836b;border-color:#56836b20}[data-theme=dark] .tool-entry-icon{background:#392c20;color:#e3ae79;border-color:#e3ae7920}[data-theme=dark] .tone-batch,[data-theme=dark] .tone-flow,[data-theme=dark] .tone-mix{background:#253141;color:#90b5db;border-color:#90b5db20}[data-theme=dark] .tone-steam,[data-theme=dark] .tone-external{background:#303044;color:#acaed6;border-color:#acaed620}[data-theme=dark] .tone-heating,[data-theme=dark] .tone-project{background:#27372f;color:#9cbea8;border-color:#9cbea820}@media(max-width:767px){.tool-group{padding:16px 10px;margin-top:16px}.tool-group-title{padding:0 6px;gap:8px;flex-wrap:wrap}.tool-icon-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 2px}.tool-entry{min-height:128px;padding:8px 2px}.tool-entry-icon{width:52px;height:52px;border-radius:14px}.tool-entry strong{font-size:11px}.tool-entry small{font-size:9px}}
.tool-launchpad{padding:0}.launcher-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.launcher-toolbar>small,.launcher-note{font-size:11px;color:var(--muted)}.mini-tool-grid{display:grid;grid-template-columns:repeat(auto-fill,96px);gap:14px;align-items:start}.mini-tool-wrap{position:relative;width:96px;min-width:0}.mini-tool{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:96px;height:96px;padding:8px 5px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);text-decoration:none;text-align:center;cursor:pointer}.mini-tool:hover{background:var(--brand-soft);border-color:var(--brand)}.mini-tool:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.mini-tool-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;flex-shrink:0}.mini-tool-icon svg{width:24px;height:24px}.mini-tool strong{font-size:11px;font-weight:500;line-height:1.4;max-width:100%;min-height:30px;display:flex;align-items:center;justify-content:center}.launcher-note{margin-top:18px}.mini-tool-grid.editing .mini-tool-wrap{cursor:grab}.mini-tool-grid.editing .mini-tool{cursor:grab;border-style:dashed}.mini-tool-grid .dragging{opacity:.4}.tool-move-controls{display:flex;justify-content:center;gap:4px;margin-top:4px}.tool-move-controls button{border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--ink);width:44px;height:32px;cursor:pointer}.tool-move-controls button:disabled{opacity:.3;cursor:default}@media(max-width:767px){.launcher-toolbar{flex-wrap:wrap;gap:10px}.launcher-toolbar .actions{gap:6px;flex-wrap:wrap}.launcher-toolbar .button{font-size:11px;padding:7px 10px}.mini-tool-grid{grid-template-columns:repeat(auto-fill,96px);gap:12px 10px}.tool-move-controls button{height:44px}}

.mini-tool-icon.tone-units,.mini-tool-icon.tone-fuel{background:#fff0df;color:#c26b1c}[data-theme=dark] .mini-tool-icon.tone-units,[data-theme=dark] .mini-tool-icon.tone-fuel{background:#392c20;color:#e3ae79}
.science-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.science-toolbar small,.science-help{font-size:11px;color:var(--muted)}.science-label{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.science-display{width:100%;font-size:20px;min-height:50px;font-variant-numeric:tabular-nums}.science-result{font-size:30px;text-align:right;padding:16px 0;min-height:72px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.science-keys{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.science-keys button{min-width:0;min-height:44px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink);font-size:14px;cursor:pointer}.science-keys button:hover{background:var(--brand-soft);border-color:var(--brand)}.science-equals{width:100%;margin-top:12px;min-height:46px}.science-history{margin-top:18px;font-size:12px}.science-history summary{cursor:pointer;min-height:36px}.science-history div div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.science-history strong{font-weight:500}.science-help{line-height:1.7;margin-top:12px}@media(max-width:767px){.science-keys{gap:5px}.science-keys button{font-size:12px}.science-toolbar small{font-size:10px}.science-result{font-size:26px}}
.task-row.task-inline{display:flex;align-items:center;gap:8px;padding:2px 16px;min-height:48px}.task-inline .task-check{width:22px;height:22px;flex:0 0 22px}.task-inline .task-inline-title{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;min-height:44px}.task-inline-date{font-size:11px;color:var(--muted);white-space:nowrap;width:40px;flex-shrink:0}.task-inline .badge{font-size:10px;white-space:nowrap;max-width:none;flex-shrink:0}.task-more{width:36px;min-width:36px;min-height:44px;font-size:23px;letter-spacing:1px;flex-shrink:0}.task-action-menu{position:fixed;inset:auto;margin:0;width:190px;padding:6px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 40px #0002}.task-action-menu button{display:block;width:100%;padding:10px 12px;min-height:40px;text-align:left;border:0;border-radius:6px;background:transparent;color:var(--ink);font-size:12px;cursor:pointer}.task-action-menu button:hover{background:var(--bg)}.task-action-menu .task-menu-danger{color:var(--red)}.task-filters{display:flex;gap:18px;padding:0 16px;border-bottom:1px solid var(--line)}.task-filters button{border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-size:11px;min-height:40px;padding:8px 0;cursor:pointer}.task-filters button.active{border-bottom-color:var(--brand);color:var(--brand-dark)}.task-abandoned .task-inline-title{text-decoration:line-through;color:var(--muted)}@media(max-width:767px){.task-row.task-inline{padding:2px 10px;gap:6px}.task-inline .task-inline-title{font-size:12px}.task-inline .badge{font-size:9px;padding:3px 5px}.task-inline-date{font-size:10px;width:34px}.task-inline .task-check{width:24px;height:24px;flex-basis:24px}.task-more{width:32px;min-width:32px}.task-action-menu button{min-height:44px}}
.work-page .page-head{margin-bottom:18px}.work-page .page-head h1{font-size:24px}.work-page .page-head .eyebrow{margin-bottom:5px}.work-summary{display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;background:var(--card);padding:4px 12px;margin-bottom:20px;min-height:54px}.work-metric{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:44px;padding:6px 10px;border:0;background:transparent;color:var(--ink);cursor:pointer;border-radius:6px}.work-metric:hover{background:var(--bg)}.work-metric span{font-size:12px;color:var(--muted);white-space:nowrap}.work-metric strong{font-size:20px;font-weight:600}.work-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;align-items:start}.work-task-panel{min-height:min(480px,calc(100vh - 240px))}.work-task-panel .panel-head{padding:14px 16px;min-height:54px}.work-task-panel .panel-head h2{font-size:15px}.work-task-panel .panel-head>small{font-size:11px}.work-task-panel .empty{padding:70px 20px}.work-side{display:flex;flex-direction:column;gap:16px;min-width:0}.work-side .calendar-launcher{min-height:86px;padding:14px;gap:12px}.work-side .calendar-launcher-date{width:46px}.work-side .calendar-launcher-date b{font-size:23px}.work-side .calendar-launcher-copy strong{font-size:13px}.work-side .calendar-launcher-copy>span{margin-top:3px;font-size:10px}.work-side-panel .panel-head{padding:12px 14px;min-height:48px}.work-side-panel .panel-head h2{font-size:13px}.work-side-panel .panel-head .button{min-height:28px;padding:4px;font-size:11px}.work-side-empty{font-size:12px;line-height:1.7;color:var(--muted);padding:14px;margin:0}.work-followup{padding:12px 14px;border-bottom:1px solid var(--line);font-size:12px}.work-followup:last-child{border-bottom:0}.work-followup b{font-weight:500;display:block;overflow-wrap:anywhere}.work-followup p{font-size:11px;color:var(--muted);margin:5px 0;line-height:1.6;overflow-wrap:anywhere}.work-followup>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.work-followup small{font-size:10px;color:var(--muted)}.work-recent-item{display:flex;align-items:center;gap:8px;width:100%;padding:12px 14px;min-height:44px;text-align:left;background:transparent;color:var(--ink);border:0;border-bottom:1px solid var(--line);cursor:pointer}.work-recent-item:last-child{border-bottom:0}.work-recent-item:hover{background:var(--bg)}.work-recent-item>span{flex:1;min-width:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.work-recent-item small{font-size:10px;flex-shrink:0;color:var(--muted)}.work-recent-item svg{width:14px;height:14px;flex-shrink:0;color:var(--muted)}@media(max-width:1023px){.work-layout{grid-template-columns:minmax(0,1fr) 240px}.work-metric{gap:6px;padding:6px}.work-metric span{font-size:11px}.work-metric strong{font-size:18px}}@media(max-width:767px){.work-summary{flex-wrap:wrap;padding:4px 6px;gap:0;margin-bottom:16px}.work-metric{flex:0 0 33.333%;padding:4px;gap:6px;justify-content:flex-start}.work-metric span{font-size:10px}.work-metric strong{font-size:17px}.work-layout{grid-template-columns:1fr;gap:16px}.work-task-panel{min-height:320px}.work-task-panel .empty{padding:50px 16px}.work-task-panel .task-filters{gap:14px;padding:0 10px}.work-task-panel .task-filters button{font-size:10px}.work-side{gap:12px}.work-page .page-head h1{font-size:22px}.work-side-panel .panel-head .button{min-height:44px}}

.boiler-fields .form-field[hidden]{display:none}

.reminder-bell{position:relative}.reminder-count{position:absolute;top:3px;right:2px;background:var(--red);color:white;border-radius:12px;min-width:18px;height:18px;font-size:10px;display:grid;place-items:center}.reminder-count[hidden]{display:none}.task-reminder-banner{display:flex;width:100%;align-items:center;gap:10px;padding:12px 32px;border:0;border-bottom:1px solid var(--line);background:var(--brand-soft);color:var(--brand-dark);text-align:left;font-size:12px}.task-reminder-banner b{margin-left:auto;white-space:nowrap}.task-reminder-banner svg{width:18px;height:18px;flex-shrink:0}.reminder-item{padding:16px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px}.reminder-item p{font-size:12px;margin:6px 0}.reminder-item small,.calendar-reminder-hint{font-size:11px;color:var(--muted)}.calendar-reminder-hint{margin:0 0 12px}@media(max-width:767px){.task-reminder-banner{padding:12px 14px;font-size:11px}.reminder-item{flex-direction:column}.reminder-item .actions{justify-content:flex-end}}
.erp-note{font-size:13px;color:var(--muted);line-height:1.7}.erp-section{padding:14px 0;border-bottom:1px solid var(--line)}.erp-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.erp-heading h3{margin:0;font-size:16px}.erp-heading p{margin:5px 0 14px;font-size:12px;color:var(--muted)}.erp-status{white-space:nowrap;font-size:12px;color:#a15c16;background:#fff3df;border-radius:16px;padding:4px 9px}.erp-status.online{color:#15805b;background:#e6f5ee}.erp-links{display:grid;grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:8px}.erp-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:76px;border:1px solid var(--line);border-radius:10px;text-decoration:none;color:var(--ink);font-size:12px;transition:background .15s}.erp-link:hover,.erp-link:focus-visible{background:var(--brand-soft);outline:2px solid #f57a1c;outline-offset:1px}.erp-link svg{width:24px;height:24px;color:#f57a1c}.erp-link:nth-child(3n+2) svg{color:#4285d4}.erp-link:nth-child(3n) svg{color:#24a080}

.library-access-note{display:flex;align-items:flex-start;gap:8px;padding:12px 18px;font-size:12px;color:var(--muted);background:var(--brand-soft);line-height:1.7}.library-access-note svg{width:16px;height:16px;margin-top:2px}

.file-system-panel{margin-bottom:18px;overflow:hidden}.file-system-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px}.file-system-heading strong{font-size:15px}.file-system-heading p,.file-system-location p{font-size:12px;color:var(--muted);margin:4px 0;overflow-wrap:anywhere}.file-system-location{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-top:1px solid var(--line)}.file-system-location b{font-size:13px}.file-system-location small{font-size:12px;color:var(--muted)}.file-system-footer{padding:9px 18px;background:var(--brand-soft);font-size:12px;color:var(--muted)}.file-system-help p+p{margin-top:14px}@media(max-width:767px){.file-system-heading,.file-system-location{align-items:flex-start;flex-direction:column}.file-system-heading .actions{width:100%;flex-wrap:wrap}.file-system-heading .button{flex:1}.library-layout .toolbar .actions{flex-wrap:wrap}}

.source-pagination{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}.source-pagination span{margin-right:auto;color:var(--muted);font-size:12px}

.wecom-login-button{width:100%;justify-content:center;background:#2873db;color:white;border:0}.wecom-login-note{font-size:12px!important;text-align:center;color:var(--muted);margin:10px 0!important}.login-divider{text-align:center;font-size:12px;color:var(--muted);margin:20px 0}
.source-name-button{display:flex;align-items:center;gap:8px;flex:1;min-width:0;border:0;background:transparent;color:inherit;text-align:left;padding:0}.source-name-button>span{flex:1;min-width:0}.source-folder>input[type=checkbox]{margin:0}
.import-job progress{width:100%;height:12px;accent-color:var(--brand)}.import-job p{margin:12px 0;color:var(--muted);font-size:13px}
.folder-browser{padding:14px 20px;border-bottom:1px solid var(--line)}.folder-breadcrumb{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:10px}.folder-breadcrumb button{border:0;background:none;color:var(--brand-dark);padding:2px;font-size:13px}.folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}.folder-grid button{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:2px 8px;border:1px solid var(--line);background:var(--card);border-radius:8px;padding:10px 12px;text-align:left;color:var(--ink)}.folder-grid button svg{grid-row:1/3}.folder-grid button small{color:var(--muted);font-size:11px}.folder-empty{color:var(--muted);font-size:12px}
.preview-video{width:100%;max-height:56vh;display:block;margin:auto;background:#000;border-radius:8px}
.material-select-cell{width:44px;min-width:44px;padding-left:20px;padding-right:4px}.material-select{width:18px;height:18px}.material-bulk-actions{padding:14px 20px;border-top:1px solid var(--line);justify-content:flex-end}
.folder-browser-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.folder-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--card)}.folder-grid .folder-open{border:0;border-radius:0;width:100%;min-height:68px}.folder-card-actions{display:flex;justify-content:flex-end;gap:8px;padding:4px 10px 10px}.folder-grid .folder-card-actions .button{display:inline-flex;font-size:11px;padding:5px 9px;min-height:32px}.directory-empty{padding:18px 20px}.material-cover{position:relative;display:inline-flex;flex:0 0 80px;width:80px;height:58px;border-radius:7px;overflow:hidden;align-items:center;justify-content:center;background:var(--bg);border:1px solid var(--line)}.material-cover>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}.cover-fallback{display:flex;color:var(--muted)}.material-cover svg{width:24px!important;height:24px!important}.cover-ready .cover-fallback{visibility:hidden}.cover-play{position:absolute;right:4px;bottom:4px;padding:1px 5px;border-radius:4px;background:#0009;color:white;font-size:10px;z-index:2}.material-name{overflow-wrap:anywhere;text-align:left;min-width:0}.material-name .material-cover{display:none}.button.link:has(.material-cover){display:flex;align-items:center;gap:10px;max-width:100%}@media(max-width:767px){.material-cover{flex-basis:64px;width:64px;height:48px}.folder-browser-heading>.actions{width:100%;flex-wrap:wrap}.folder-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}}

.cover-source{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}

.material-name{white-space:normal}.button.link:has(.material-cover){white-space:normal}

.folder-selection-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 14px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.folder-select{display:flex;align-items:center;gap:7px;padding:10px 12px 0;font-size:11px;color:var(--muted);cursor:pointer}.folder-select input{width:18px;height:18px;margin:0}.folder-selected{border-color:var(--brand);background:var(--brand-soft)}.folder-selected .folder-open{background:transparent}.folder-removal-list{max-height:36vh;overflow:auto;margin:16px 0;padding-left:24px}.folder-removal-list li{margin:8px 0;overflow-wrap:anywhere}.folder-removal-list small{color:var(--muted);margin-left:10px}

.panel.erp-section{padding:24px}.panel.erp-section .erp-heading{margin-bottom:20px}.panel.erp-section .erp-heading h2{font-size:20px}.panel.erp-section .erp-links{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.panel.erp-section .erp-link{min-height:100px;font-size:13px}.panel.erp-section .erp-note{margin-top:20px}@media(max-width:767px){.panel.erp-section{padding:16px}.panel.erp-section .erp-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
