:root{font-family:Segoe UI,system-ui,sans-serif;color:#111827;background:#fff;font-size:14px;--accent: #2563eb;--accent-soft: #eef4ff;--accent-border: #c9dbff;--ink: #111827;--muted: #596477;--line: #ebedf0;--surface: #fff;--sidebar: #f5f6f8}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.49;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button svg{flex:none}button,input,select{-webkit-tap-highlight-color:transparent}.studio{display:grid;grid-template-columns:218px minmax(0,1fr);height:100%}.sidebar{background:var(--sidebar);border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0}.side-body{padding:14px 11px;flex:1;overflow:auto}.nav{color:#384257;background:transparent;border:1px solid transparent;border-radius:8px;min-height:39px;width:100%;padding:6px 11px;display:flex;align-items:center;text-align:left;gap:11px;margin:2px 0}.nav:hover,.icon:hover{background:#e9edf2}.nav.selected{background:#e8effd;border-color:#dee8fb;color:#174cab;font-weight:650}.nav span,.bucket-status span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-heading{display:flex;align-items:center;justify-content:space-between;color:#566174;font-size:12px;font-weight:650;margin:21px 4px 5px 11px}.side-empty{display:block;color:#667184;padding:8px 11px;font-size:12px}.side-footer{padding:10px 11px 13px;border-top:1px solid #e8ebef}.bucket-status{display:flex;align-items:center;gap:8px;padding:12px 10px 3px;font-size:11.5px;color:var(--muted)}.bucket-status i{display:block;height:7px;width:7px;flex:none;border-radius:50%;background:#a9b1bd}.bucket-status .online{background:#188854}.workspace{overflow:auto;min-width:0}.topbar{position:sticky;top:0;z-index:1;background:#fffffffb;display:flex;align-items:center;justify-content:space-between;height:57px;padding:0 clamp(22px,4vw,50px);border-bottom:1px solid var(--line)}.top-path{display:flex;gap:9px;align-items:center;color:var(--muted);font-size:13px;min-width:0}.top-path strong{color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.top-path svg{flex:none}.content{max-width:1300px;margin:0 auto;padding:31px clamp(22px,4vw,50px) 45px}.page-title{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:24px}h1{margin:0 0 6px;font-size:28px;line-height:1.25;font-weight:600;overflow-wrap:anywhere}.page-title p{margin:0;font-size:13px;color:var(--muted)}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.actions>button{flex:none}.primary,.secondary,.icon{display:inline-flex;justify-content:center;align-items:center;gap:7px;padding:8px 13px;min-height:35px;border-radius:8px;font-weight:625;line-height:1.1;font-size:13px;text-align:center}.primary{border:1px solid var(--accent);background:var(--accent);color:#fff;box-shadow:0 1px 2px #14397123}.primary:hover:not(:disabled){background:#1d54cb;border-color:#1d54cb}.secondary,.icon.bordered{border:1px solid #dce1e9;background:#fff;color:#354055}.secondary:hover:not(:disabled),.icon.bordered:hover:not(:disabled){background:#f0f4fa}.icon{background:none;color:#566177;border:1px solid transparent;width:34px;padding:0;flex:none}.icon.small{min-height:26px;width:26px}.connection-note{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;width:100%;border:1px solid var(--accent-border);color:#214884;background:var(--accent-soft);border-radius:10px;text-align:left;padding:12px 15px;margin-bottom:15px}.connection-note:hover{background:#e5eeff}.connection-note strong,.connection-note span span{display:block}.connection-note span span{color:#43597c;font-size:12.5px;margin-top:3px}.connection-icon,.upload-icon,.empty-icon,.file-icon{display:grid;place-items:center;flex:none}.connection-icon{background:#fff;border:1px solid #dce8fd;border-radius:9px;width:36px;height:36px;color:var(--accent)}.upload-zone{width:100%;border:1px dashed #bac9de;background:#fcfdff;color:#283753;border-radius:12px;min-height:152px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:21px;transition:border-color .16s,background .16s}.upload-zone:hover,.drag-active .upload-zone{border-color:var(--accent);background:#f2f7ff}.upload-zone>span:last-child{font-size:12px;color:var(--muted)}.upload-icon{width:44px;height:40px;color:var(--accent);background:#edf3ff;border-radius:10px;margin-bottom:3px}.listing{margin-top:23px;border:1px solid #e7eaef;border-radius:12px;overflow:hidden}.list-header{padding:12px 15px;min-height:57px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.list-header>div{display:flex;align-items:center;gap:8px}h2{margin:0;font-size:16px;font-weight:600}.count{padding:2px 7px;border-radius:10px;background:#edf0f4;color:#586477;font-size:11px}.search{color:#687589;border:1px solid #e2e7ee;background:#fcfdff;border-radius:7px;display:flex;align-items:center;gap:7px;padding:3px 7px;max-width:200px}.search input{background:transparent;border:0;width:100%;min-width:0;padding:4px 2px;font-size:13px}.empty{min-height:158px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;gap:6px;color:#344255}.empty>span:last-child:not(:first-child){color:var(--muted);font-size:12px}.empty-icon{width:39px;height:37px;background:#f2f4f7;color:#63728c;border-radius:9px;margin-bottom:2px}.path{display:flex;flex-wrap:wrap;align-items:center;gap:3px;color:#687589}.path span{display:inline-flex;align-items:center;gap:3px;max-width:100%}.path button{border:0;padding:5px 7px;background:#f1f4f9;color:#374965;border-radius:5px;white-space:nowrap;max-width:100%;text-overflow:ellipsis;overflow:hidden}table{width:100%;table-layout:fixed;border-collapse:collapse;text-align:left}thead{color:var(--muted);background:#fafbfc}th,td{border-bottom:1px solid var(--line);padding:8px 12px;font-size:12.5px}th{font-weight:600}th:first-child{width:49%}th:last-child{width:87px}tbody tr:last-child td{border-bottom:0}tbody tr:hover td{background:#f8faff}.item-title{display:flex;align-items:center;padding:0;gap:10px;min-width:0;width:100%;text-align:left;color:var(--ink);border:0;background:none}.item-title>span:last-child{min-width:0}.item-title strong,.item-title small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-title small{color:var(--muted);margin-top:3px;font-size:11px}.file-icon{width:30px;height:30px;background:#edf3fe;color:#3a63a1;border-radius:7px}.row-actions{display:flex;justify-content:end}.notice{padding:10px 12px;border:1px solid #dce4f0;border-radius:8px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.notice.error{background:#fff3f3;color:#982626;border-color:#f3c8c8}.content>.notice{margin:12px 0}.notice.success{background:#ecf8f0;color:#216342;border-color:#cce9d8;display:flex;align-items:center;gap:8px}.toast{position:fixed;right:20px;bottom:20px;z-index:3;border:1px solid #d9e5e1;background:#fcfffd;color:#22533e;padding:11px 14px;box-shadow:0 6px 23px #10182818;border-radius:9px;display:flex;align-items:center;gap:8px}dialog{color:var(--ink);width:min(580px,calc(100vw - 34px));max-height:calc(100vh - 32px);border:1px solid #dce3ee;border-radius:16px;padding:0;background:#fff;box-shadow:0 20px 60px #0d1b3542}dialog::backdrop{background:#15203b55}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:14px 19px 13px 23px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:1;background:#fff}.dialog-head h2{font-size:21px}.settings-tabs{display:flex;gap:16px;padding:0 23px;border-bottom:1px solid var(--line)}.settings-tabs button{padding:11px 0 9px;background:none;border:0;border-bottom:2px solid transparent;color:var(--muted)}.settings-tabs button[aria-pressed=true]{color:var(--accent);border-bottom-color:var(--accent)}.model-path{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.dialog-body{padding:18px 23px;display:flex;flex-direction:column;gap:13px}.dialog-actions{padding:13px 23px;display:flex;gap:8px;flex-wrap:wrap;justify-content:end;background:#f9fafc;border-top:1px solid var(--line)}.field,.chapter-fields{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}.field-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.field-pair.wide{grid-template-columns:minmax(0,3fr) minmax(70px,1fr)}.field input:not([type=color]),.field select,.field textarea,.chapter-input input{border:1px solid #dce2ec;color:var(--ink);background:#fff;border-radius:7px;width:100%;min-width:0;padding:8px 9px;font-weight:400}.field textarea{resize:vertical}.field input[readonly]{background:#f5f7fa}.color-field{display:flex;align-items:center;gap:8px}.color-field input{width:40px;height:30px;padding:2px;background:#fff;border:1px solid #dce2ec;border-radius:6px}.color-field code{color:var(--muted);font-weight:400}.hint{margin:0;color:var(--muted);font-size:12px;font-weight:400}.text-button{border:0;background:none;color:#174bb5;border-radius:6px;font-weight:600;padding:7px 8px;display:inline-flex;align-items:center;gap:5px;font-size:12px}.text-button:hover{background:#eaf2ff}.dialog-actions .text-button:first-child{margin-right:auto}fieldset{margin:0;padding:0;border:0;min-width:0;display:flex;flex-direction:column;gap:13px}.pick{display:flex;align-items:center;text-align:left;gap:11px;padding:14px 11px;border:1px dashed #bdcce1;background:#f6f9ff;border-radius:8px;color:#27518f}.pick span{min-width:0}.pick strong,.pick small{display:block;overflow-wrap:anywhere}.pick small{color:#566884;margin-top:4px}.check{display:flex;gap:8px;align-items:center}.check input{accent-color:var(--accent);width:16px;height:16px}.chapter-label{display:flex;justify-content:space-between;align-items:center}.chapter-input{display:grid;grid-template-columns:79px minmax(0,1fr) 34px;gap:7px}.progress{display:flex;flex-direction:column;gap:8px}.progress progress{width:100%;accent-color:var(--accent)}.publish-links{display:flex;flex-direction:column;gap:9px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:900px){.studio{grid-template-columns:185px minmax(0,1fr)}.page-title{align-items:start}.page-title p{max-width:285px}}@media(max-width:680px){.studio{grid-template-columns:136px minmax(0,1fr)}.content{padding:18px 12px}.page-title{flex-direction:column}th:nth-child(3),td:nth-child(3){display:none}}.login-page{min-height:100%;display:grid;place-items:center;padding:16px;background:var(--sidebar)}.login-card{display:grid;gap:16px;width:min(100%,370px);padding:26px;border:1px solid #e2e7ee;border-radius:14px;background:#fff}.login-card h1{font-size:24px}.login-card .upload-icon{margin:0}.web-studio .sidebar{min-height:0}.web-studio .page-title{align-items:center}.web-studio .page-title h1{margin:0}.web-studio a,dialog a{text-decoration:none}.web-studio a:focus-visible,dialog a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.file-name,.video-description,.notice.success,.dialog-head h2{overflow-wrap:anywhere}.video-description{margin:0;white-space:pre-wrap;color:var(--muted)}.toast{max-width:calc(100vw - 40px)}dialog{max-height:calc(100dvh - 32px)}@media(max-width:680px){.web-studio{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr}.web-studio .sidebar{position:relative;border-right:0;border-bottom:1px solid var(--line)}.web-studio .side-body{padding:7px 12px;overflow:hidden}.web-studio .side-body>.nav{width:fit-content}.web-studio .side-heading{margin:0 0 2px 11px}.web-studio .side-footer{position:absolute;right:8px;top:5px;padding:0;border:0}.web-studio .bucket-status{display:none}.web-studio .project-nav{display:flex;gap:5px;overflow-x:auto}.web-studio .project-nav .nav{flex:0 0 auto;width:auto;max-width:min(70vw,260px)}.web-studio .topbar{height:46px;padding-inline:12px}.web-studio .page-title{flex-direction:row;justify-content:space-between}.web-studio h1{font-size:22px}.web-studio .page-title .primary{flex:none}.web-studio .upload-zone{min-height:120px}.web-studio th:first-child{width:auto}.web-studio th:nth-child(2){width:58px}.web-studio th:last-child{width:97px}.web-studio th,.web-studio td{padding-inline:7px}.web-studio .row-actions .icon{width:40px;min-height:43px}.web-studio .item-title{min-height:43px;gap:6px}.web-studio .list-header{padding-inline:10px}.web-studio .list-header .search{min-width:0;max-width:57%}.login-card input,.web-studio input,dialog input,dialog select{font-size:16px}}
