/* Estrutura mais direta, inspirada na referência fornecida pelo usuário. */
:root{--line:#e7e7ef;--muted:#818696}
body{background:#f6f7fa}
.sidebar{width:232px;padding:28px 16px 18px}
.main-shell{margin-left:232px}
.brand{font-size:25px;padding:4px 10px;letter-spacing:-1px}
.workspace{margin:29px 0 20px;border:0;background:#f6f5f9;border-radius:6px;padding:12px}
.workspace-avatar{background:transparent;color:#8b75b0;border:1px solid #e2dceb}
.workspace strong{font-size:12px;font-weight:500}
.workspace small{display:none}
.nav-label,.handoff-note{display:none}
.nav-item{margin:5px 0;padding:13px 14px;gap:12px;border-radius:5px;color:#777c8c;font-weight:400;min-height:46px}
.nav-item.active{background:#ede7f9;color:#7254bf;font-weight:500}
.nav-count{background:transparent;font-size:12px;color:#9e8abf;padding:0}
.profile{padding:18px 10px 0}.profile strong{font-weight:500}.profile small{font-size:12px}
.topbar{height:66px;margin:22px 28px 0;padding:0 22px;border:1px solid var(--line);border-radius:7px}
.breadcrumb{font-size:14px}.breadcrumb>span,.breadcrumb>.icon{display:none}.breadcrumb strong{font-weight:500;color:#585e6e}
.topbar-right{gap:17px}.local-badge{font-size:12px}
#main{padding:28px 28px 12px}
.page-heading{margin-bottom:24px}.page-heading h1{font-size:24px;font-weight:500;letter-spacing:-.55px}
.page-heading p{font-size:14px;margin-top:8px;color:#838899}
.button{border-radius:5px;min-height:39px;font-size:14px;font-weight:500;box-shadow:none!important}
.button:hover:not(:disabled){transform:none}.button.primary{background:#7254d5;border-color:#7254d5}
.stats{gap:18px;margin-bottom:24px}
.stat{padding:20px 22px;border-radius:6px;background:#fff;min-height:117px}
.stat-label{font-size:14px;font-weight:400;color:#787d8f;gap:12px}.stat-label>.icon{width:16px;height:16px;color:#a0a3b4}
.stat-value{margin-top:16px;font-size:30px;font-weight:550;letter-spacing:-.5px;color:#4d5061}
.stat-value span{display:none}
.onboarding,.project-banner{background:#fff;border:1px solid var(--line);border-radius:6px;padding:20px 22px;min-height:0;margin-bottom:24px;display:flex;justify-content:space-between;align-items:center;gap:22px}
.onboarding-copy{max-width:none;flex:1}
.onboarding h2{font-size:16px;font-weight:500;color:#606276;letter-spacing:0;margin:0 0 6px;line-height:1.5}
.onboarding p{font-size:14px;line-height:1.6;color:#9092a2;max-width:none;margin:0}
.onboarding .button{font-size:14px;padding:9px 14px;min-height:39px}
.project-banner .banner-symbol,.manual-badge{display:none}.project-banner strong{font-size:15px;font-weight:500;color:#686375}.project-banner p{font-size:13px;color:#93909e}
.board-section{background:#fff;border:1px solid var(--line);border-radius:6px;padding:0 20px 14px;min-width:0}
.board-toolbar{margin:0 -20px 0;padding:18px 20px;border-bottom:1px solid var(--line);gap:16px;min-height:76px;align-items:center;display:flex}
.tab{border:0;color:#6a697c;font-size:15px;font-weight:500;padding:0;align-self:auto;gap:9px}.tab>.icon{display:none}.tab>span{color:#9891a7;background:#f0edf6;border-radius:4px;font-size:12px;padding:3px 7px}
.toolbar-filters{margin:0;gap:10px}.search-box{height:36px;border-radius:5px;background:transparent;border-color:#e7e6ed}
.search-box input{font-size:13px;width:170px;margin:0;padding:0;line-height:1.4}
.select-wrap select{height:36px;font-size:13px;border-radius:5px;color:#868697}
.toolbar-filters>.icon-button{border-radius:5px}
.board{padding:20px 0 8px;grid-template-columns:repeat(5,minmax(180px,1fr));gap:16px;min-height:330px}
.column{background:#f8f8fb;border:0;border-radius:5px;padding:12px 9px;min-height:280px}
.column-heading{padding:2px 4px 15px;gap:7px}.column-heading h2{font-size:13px;font-weight:500;color:#727488}.column-count{background:transparent;color:#a2a0af;margin-left:auto;font-size:12px}.column-add{margin-left:0;color:#b0adbb}
.column-dot{width:5px;height:5px}.column-body{max-height:560px}.column-empty{min-height:198px;border:0;gap:11px;padding:10px;color:#a6a5b3}.column-empty>.icon{width:20px;height:20px;color:#c7c3d1}.column-empty span{font-size:12px;line-height:1.7}
.task-card{box-shadow:none;border-color:#e9e7ef;border-radius:5px;padding:12px}.task-card:hover{box-shadow:none;border-color:#c8b9e6}.task-card h3{font-size:14px;font-weight:500}.card-description,.card-error{font-size:13px;line-height:1.7}.card-top{margin-bottom:12px}.card-project{font-size:12px;color:#a19cab}.role-tag{background:transparent;padding:0;font-size:12px}.role-avatar{background:transparent;width:20px;height:20px}.card-footer{margin-top:10px;padding-top:9px}.status-chip{font-size:12px;padding:3px 5px}.add-task{padding:14px 0 3px;font-size:12px}.board-hint{margin:12px 0 0;font-size:12px;line-height:1.7;color:#a4a1af}
.page-footer{padding:14px 28px;font-size:12px}.page-footer>span:last-child{display:none}
.project-card,.agent-card,.integration-card,.file-card,.activity-list{border-radius:6px;box-shadow:none}
.project-card h2,.agent-card h2,.integration-card h2{font-weight:500}.agent-symbol,.project-monogram{border-radius:6px}.info-strip{border-radius:5px;background:#f1edf8;border-color:#e8e0f2}.empty-view{border-style:solid;background:#fff;border-radius:6px;padding:55px 24px}.empty-view h2{font-size:20px;font-weight:500}
.login{background:#f6f7fa}.login form{box-shadow:none;border-radius:7px}dialog{border-radius:8px;box-shadow:0 16px 60px #29253f15}dialog::backdrop{backdrop-filter:none;background:#27243a3d}.drawer{border-radius:8px 0 0 8px}.modal-symbol{background:transparent;width:28px;height:28px}.modal-title h2{font-weight:500;font-size:23px}.modal-title>.eyebrow{display:none}.checkbox-label{background:#faf9fc}.detail-status{border-radius:4px}.detail-description{font-size:14px}.artifact-list{border-radius:5px}
@media(min-width:1600px){.board{grid-template-columns:repeat(5,minmax(205px,1fr))}.topbar{margin:26px 34px 0}#main{padding:32px 34px 14px}.stat{padding:23px 24px}.page-footer{padding-left:34px}}
@media(max-width:1200px){.sidebar{width:210px}.main-shell{margin-left:210px}.brand{font-size:23px}.topbar{margin:20px 22px 0}#main{padding:25px 22px 12px}.board{grid-template-columns:repeat(5,185px)}.board-toolbar{flex-wrap:wrap}.stat{padding:18px 15px}.stat-label{font-size:13px}.onboarding{flex-wrap:nowrap}.toolbar-filters{flex-wrap:wrap}.search-box input{width:150px}}
@media(max-width:900px){.sidebar{width:72px;padding:24px 10px}.main-shell{margin-left:72px}.brand{padding:0}.workspace{display:none}.sidebar nav{margin-top:28px}.nav-item{padding:13px 7px}.profile{padding:17px 0 0}.topbar{margin:16px 18px 0;padding:0 17px}#main{padding:25px 18px 12px}.stats{gap:12px}.stat{padding:16px 12px}.stat-label{font-size:12px}.stat-label>.icon{display:none}.onboarding{display:flex;flex-wrap:wrap;gap:16px}.onboarding p{font-size:14px}.board-toolbar{gap:16px}.toolbar-filters{margin:0}.project-banner .button.secondary{display:inline-flex}.project-banner{flex-wrap:wrap}.page-footer{padding:14px 18px}}
@media(max-width:650px){.sidebar{width:56px;padding:20px 5px}.main-shell{margin-left:56px}.nav-item{min-height:42px;padding:12px 7px}.topbar{margin:12px 12px 0;height:54px;padding:0 12px}.breadcrumb{font-size:13px}.local-badge{font-size:11px}.topbar-right{gap:8px}#main{padding:23px 12px 12px}.page-heading h1{font-size:22px}.page-heading p{font-size:14px;line-height:1.6}.page-heading .button{font-size:14px}.stats{gap:10px;margin-bottom:18px}.stat{padding:16px 12px;min-height:108px}.stat-label{font-size:12px;line-height:1.5}.stat-value{font-size:28px;margin-top:13px}.onboarding{padding:17px;gap:14px;margin-bottom:18px}.onboarding h2{font-size:15px}.onboarding p{font-size:13px}.onboarding .button{font-size:13px;min-height:35px}.board-section{padding:0 12px 12px}.board-toolbar{margin:0 -12px;padding:16px 12px;display:flex;gap:16px}.tab{font-size:14px}.toolbar-filters{width:100%;gap:8px}.search-box{flex:1;min-width:120px}.search-box input{width:100%;min-width:0}.toolbar-filters>.select-wrap{max-width:100%;flex:1;min-width:125px}.select-wrap select{width:100%;max-width:none;font-size:12px}.board{grid-template-columns:repeat(5,200px);gap:12px;padding-top:16px}.column{min-height:270px}.column-body{max-height:62vh}.board-hint{font-size:12px}.project-banner{padding:17px;margin-bottom:18px}.project-banner .button.secondary{display:none}.project-banner .button.primary{width:auto}.page-footer{padding:12px}.preview-toolbar .button{font-size:12px}}

/* Tema escuro: preserva o destaque roxo e cobre telas, formulários e entregas. */
.topbar-right>.theme-toggle{display:inline-flex;flex-shrink:0}
html[data-theme="dark"]{color-scheme:dark;--line:#36394d;--text:#e5e7f0;--muted:#a3a8bd;--purple:#9477ed;background:#171a29;color:#e5e7f0}
html[data-theme="dark"] body,html[data-theme="dark"] .login{background:#171a29;color:#e5e7f0}
html[data-theme="dark"] :is(.sidebar,.topbar,.stat,.onboarding,.project-banner,.board-section,.project-card,.agent-card,.integration-card,.file-card,.activity-list,.empty-view,.task-card,.drawer-top,.preview-toolbar,.login form,dialog,#toast){background:#272c40;border-color:#36394d;color:#e5e7f0}
html[data-theme="dark"] :is(.workspace,.column,.file-visual,.preview-stage){background:#1e2234;border-color:#36394d}
html[data-theme="dark"] :is(h1,h2,h3,.task-card h3,.stat-value,.brand,.breadcrumb strong,.onboarding h2,.project-banner strong,.file-info strong,.artifact strong,.detail-section h3,.guide-content strong){color:#e5e7f0}
html[data-theme="dark"] :is(.page-heading p,.onboarding p,.card-description,.detail-description,.detail-section>p,.project-card p,.agent-card p,.integration-card p,.empty-view p,.event p,.guide-content li,.guide-content>p,.stat-label,.nav-item,.profile small,.column-heading h2,label,.detail-metadata strong){color:#b2b7cc}
html[data-theme="dark"] :is(.card-project,.card-footer>span:first-child,.progress-meta,.file-info small,.artifact small,.detail-metadata span,.board-hint,.page-footer,.column-empty,.project-banner p,.form-note,.small-note,.event time){color:#969eb8}
html[data-theme="dark"] :is(.nav-item.active,.nav-item:hover,.icon-button:hover,.avatar,.workspace-avatar,.pill.purple,.detail-status,.info-strip,.status-chip.running,.tab>span){background:#38304f;color:#c1a9fa;border-color:#4b3f64}
html[data-theme="dark"] :is(.button.secondary,input:not([type=checkbox]),textarea,form select,.select-wrap select,.search-box){background:#222639;color:#d4d8e9;border-color:#42465f}
html[data-theme="dark"] .button.primary{background:#8462de;border-color:#8462de;color:#fff}
html[data-theme="dark"] :is(.pill,.checkbox-label,.artifact-icon,.event-icon,.version){background:#31354b;color:#b6b4cb;border-color:#42455c}
html[data-theme="dark"] :is(.pill.green,.detail-status.done,.event-icon.success){background:#233d38;border-color:#35594f;color:#91c8b1}
html[data-theme="dark"] :is(.pill.amber,.status-chip.review){background:#413829;border-color:#594b35;color:#dbbd7c}
html[data-theme="dark"] :is(.error-box,.status-chip.error,.status-chip.blocked,.detail-status.error,.detail-status.blocked,.event-icon.warning){background:#453133;border-color:#604349;color:#e0ac9e}
html[data-theme="dark"] .role-tag{color:color-mix(in srgb,var(--role) 58%,white)}
html[data-theme="dark"] .role-avatar{color:#bda6ed}
html[data-theme="dark"] :is(.profile,.card-footer,.artifact,.detail-metadata,.detail-actions form,.event,.agent-meta,.modal-footer){border-color:#383c52}
html[data-theme="dark"] :is(.brand-light,.preview-toolbar strong,.guide-content h3){color:#b3a7c9}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#8f97b0}
html[data-theme="dark"] .task-card:hover{border-color:#8970b9}
html[data-theme="dark"] .drop-target{background:#28453e}
html[data-theme="dark"] .dependency-list .complete{color:#91c8b1}
html[data-theme="dark"] .preview-stage iframe{background:#fff;color-scheme:light}

.sidebar>nav{margin-top:28px}
.production-entry{margin-bottom:18px;border:1px solid #e2d9f1;color:#8062b5;background:#f5f1fb}
html[data-theme="dark"] .production-entry{background:#332d47;color:#c1a9fa;border-color:#4b3f64}

.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}
.inline-project-form{background:#fff;border:1px solid #e5e0ef;border-radius:5px;padding:10px;margin-bottom:8px;flex-shrink:0}
.inline-project-form input:not([type=checkbox]){background:transparent;border:0;box-shadow:none;margin:0;padding:6px 2px;width:100%;font-size:14px;color:#626075;min-width:0}
.inline-project-form:focus-within{border-color:#a18acf}
.inline-project-actions{display:flex;align-items:center;justify-content:space-between;margin-top:7px}
.inline-project-actions small{font-size:12px;color:#a19aaa}
.inline-project-actions .icon-button{width:27px;height:27px;color:#9575c5}
.inline-project-error{font-size:12px;line-height:1.5;color:#bd7f75;margin:0}
.inline-project-error:empty{display:none}
#project-setup-form>label{display:block;margin-bottom:17px}
html[data-theme="dark"] .inline-project-form{background:#272c40;border-color:#42465f}
html[data-theme="dark"] .inline-project-form input:not([type=checkbox]){background:transparent;color:#e0daed;border:0}
html[data-theme="dark"] .inline-project-form:focus-within{border-color:#9477ed}
html[data-theme="dark"] .inline-project-actions small{color:#a39bb4}
html[data-theme="dark"] .toolbar-filters>.icon-button{background:#222639;border-color:#42465f;color:#b9b0cc}
html[data-theme="dark"] .tab{color:#c9c2db}
.topbar-left{display:flex;align-items:center;gap:12px;min-width:0}
.sidebar-toggle{flex-shrink:0}
html.sidebar-hidden .sidebar{display:none}
html.sidebar-hidden .main-shell{margin-left:0}
.field-label{display:block;font-size:14px;font-weight:550;color:#596276;margin:0 0 7px}
.language-select{border:1px solid #e5e6ee;border-radius:6px;background:#fff;margin-bottom:8px}
.language-select>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;padding:12px;cursor:pointer;font-size:14px;color:#61697c}
.language-select>summary::-webkit-details-marker{display:none}
.language-select>summary>.icon{width:15px;height:15px}
.language-select[open]>summary{border-bottom:1px solid var(--line)}
.language-select:focus-within{border-color:#9c83e4}
.language-actions{display:flex;gap:18px;justify-content:space-between;padding:13px 12px;border-bottom:1px solid var(--line)}
.language-actions .text-button{font-size:13px}
.language-options{max-height:290px;overflow:auto;padding:8px 12px}
.language-options fieldset{border:0;padding:8px 0 12px;margin:0}
.language-options legend{font-size:12px;font-weight:600;color:#a397b5;padding:6px 0}
.language-option{display:flex;align-items:center;gap:9px;cursor:pointer;padding:8px 4px;border-radius:4px;font-size:14px;font-weight:400}
.language-option>input{accent-color:#9477ed;margin:0;width:16px;height:16px;flex-shrink:0}
.language-option>span{color:#64677b!important}
.language-option:hover{background:#f5f1fb}
html[data-theme="dark"] :is(.field-label,.language-select>summary,.language-option>span){color:#c9c3d8!important}
html[data-theme="dark"] .language-select{background:#222639;border-color:#42465f}
html[data-theme="dark"] .language-option:hover{background:#332d47}
@media(max-width:650px){.topbar-left{gap:7px}.language-select>summary{font-size:16px}.language-options{max-height:250px}}

.kanban-add-project{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:14px 10px;margin-bottom:10px;border:1px dashed #d4c9e8;border-radius:5px;background:transparent;color:#9276bd;font-size:14px;flex-shrink:0}
.kanban-add-project:hover{background:#f0eaf8}.kanban-add-project>.icon{width:17px;height:17px}
.project-controls{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 24px}.project-controls .button{font-size:13px;padding:8px 10px;min-height:35px}
.danger-text.button{color:#b87976}.reference-mode{display:flex;gap:20px;align-items:center;flex-wrap:wrap;border:0;padding:0;margin:0 0 18px}.reference-mode legend{font-size:14px;font-weight:550;color:#596276;padding:0 0 10px}.reference-mode label{display:flex;gap:7px;align-items:center;font-size:14px}.reference-mode input{accent-color:#9477ed}
#reference-link-fields,#reference-html-fields{margin-bottom:18px}#reference-link-fields[hidden],#reference-html-fields[hidden],#upload-status[hidden]{display:none}
#reference-html-fields .attachment-picker{margin-top:12px}.attachment-picker{display:flex!important;align-items:center;justify-content:center;gap:8px;cursor:pointer;position:relative;border:1px dashed #cfc3e4;border-radius:6px;padding:14px;color:#8b6eb5;background:#faf8fd;font-size:14px;overflow:hidden}
.attachment-picker:hover{background:#f1eaf8}.attachment-picker .icon{width:17px;height:17px}.attachment-picker input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.attachment-picker:focus-within{outline:2px solid #a992ed;outline-offset:2px}
.attachment-row{display:flex;align-items:center;gap:9px;padding:12px 0;border-bottom:1px solid var(--line)}.attachment-row>.icon{width:20px;color:#a693bd}.attachment-row>div{min-width:0;flex:1}.attachment-row strong{display:block;font-size:13px;font-weight:500;overflow-wrap:anywhere;color:#747087}.attachment-row small{display:block;font-size:12px;color:#a5a0b2;margin-top:5px}
.upload-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#9380ad;margin-top:16px}.upload-caption>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-caption .text-button{white-space:nowrap}#upload-progress{width:100%;height:8px;accent-color:#9477ed;margin:12px 0}#upload-percentage{font-size:12px;color:#a296b3}
.trash-list{border:1px solid var(--line);border-radius:6px;background:#fff;padding:0 20px}.trash-row{display:flex;align-items:center;gap:15px;padding:18px 0;border-bottom:1px solid var(--line)}.trash-row:last-child{border:0}.trash-row strong{font-size:14px;font-weight:500;flex:1;overflow-wrap:anywhere}.trash-row>span{font-size:12px;color:#a49aad}
html[data-theme="dark"] .kanban-add-project{color:#baa5df;border-color:#54496b}html[data-theme="dark"] .kanban-add-project:hover{background:#38304f}
html[data-theme="dark"] :is(.attachment-picker,.trash-list){background:#272c40;border-color:#514564;color:#c1a9e6}html[data-theme="dark"] .attachment-picker:hover{background:#332d47}
html[data-theme="dark"] :is(.attachment-row strong,.reference-mode legend){color:#c6bdd7}html[data-theme="dark"] .danger-text.button{color:#d9a29d}
@media(max-width:650px){.project-controls .button{flex:1}.trash-row{flex-wrap:wrap}.trash-row>span{display:none}}

.library-toolbar .library-search{height:44px;min-height:44px;max-height:44px;display:flex;align-items:center;gap:10px;padding:0 12px;margin:0;border:1px solid var(--line);border-radius:7px;overflow:hidden}.library-toolbar .library-search input{display:block;flex:1;width:100%;min-width:0;height:42px;min-height:0;margin:0;padding:0;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;font:inherit;color:inherit;line-height:normal;appearance:none}.library-toolbar .library-search:focus-within{border-color:var(--purple);box-shadow:0 0 0 2px #7254d515}.library-toolbar .library-search>.icon{width:18px;height:18px;flex-shrink:0}.library-toolbar .library-search input::-webkit-search-decoration{appearance:none}html[data-theme="dark"] .library-toolbar .library-search{background:#222639;border-color:#42465f}

.production-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:18px;flex-wrap:wrap}.production-toolbar .library-search{display:flex;align-items:center;gap:10px;flex:1;min-width:220px;height:44px;padding:0 12px;border:1px solid var(--line);border-radius:7px;margin:0}.production-toolbar .library-search input{width:100%;min-width:0;height:42px;margin:0;padding:0;border:0!important;background:transparent!important;box-shadow:none!important}.production-toolbar>select{height:44px;padding:0 12px;border:1px solid var(--line);border-radius:7px;background:transparent;color:inherit;max-width:260px}.production-toolbar>.button{height:44px}.production-overview{display:flex;align-items:center;gap:24px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-bottom:24px}.production-overview>span{display:flex;align-items:center;gap:7px}.production-overview strong{color:var(--text)}.production-dot{width:7px;height:7px;border-radius:50%;background:#9477ed}.production-dot.amber{background:#d7a648}.production-project{border:1px solid var(--line);border-radius:12px;background:#fff;margin-bottom:22px;overflow:hidden}.production-project-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 26px}.production-eyebrow{display:block;font-size:11px;font-weight:550;letter-spacing:.8px;color:var(--muted);margin-bottom:8px}.production-project-header h2{margin:0;font-size:20px;overflow-wrap:anywhere;letter-spacing:-.4px}.production-project-state{display:flex;gap:12px;align-items:center;font-size:12px;flex-shrink:0}.production-state{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:6px;background:#f2eefb;color:#8566cc;font-weight:600}.production-state.review{background:#faf2df;color:#a07826}.production-state.done{background:#eaf5ef;color:#43866c}.production-state.error,.production-state.blocked{background:#faece7;color:#ad6f58}.production-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:8px 26px 28px;gap:12px}.production-step{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:16px;text-align:left;padding:18px 16px;border:1px solid var(--line);border-radius:9px;min-width:0;background:#fbfbfd}.production-step:hover{border-color:#a48bdc}.production-step-number{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;color:var(--muted);font-size:12px;font-weight:600;background:#fff}.production-step-copy{display:flex;flex-direction:column;gap:8px;min-width:0}.production-step strong{font-size:14px;line-height:1.4}.production-step small{font-size:12px;line-height:1.5;color:var(--muted)}.production-step-status{font-size:11px;color:var(--muted);margin-top:7px}.production-step.is-done .production-step-number{background:#eaf5ef;color:#4b9777;border-color:transparent}.production-step.is-done .production-step-status{color:#4b9777}.production-step.is-current{border-color:#9c81de;background:#f8f5fe;box-shadow:inset 0 3px #9477ed}.production-step.is-current .production-step-number{color:white;background:#8c6bd9;border-color:transparent}.production-step.is-current .production-step-status{color:#8c6bd9;font-weight:600}.production-step.is-waiting{opacity:.6}.production-project-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 26px;border-top:1px solid var(--line);background:#fcfcfe}.production-project-footer>div:first-child{display:flex;gap:10px;align-items:center;min-width:0;font-size:12px;line-height:1.6;color:var(--muted)}.production-project-footer>div:first-child span{overflow-wrap:anywhere}.production-actions{display:flex;gap:10px;flex-shrink:0}.production-cancelled{opacity:.6}html[data-theme="dark"] .production-project{background:#272c40;border-color:#36394d}html[data-theme="dark"] .production-project-footer{background:#24293b;border-color:#36394d}html[data-theme="dark"] .production-step{background:#222638;border-color:#36394d}html[data-theme="dark"] .production-step.is-current{background:#302b46;border-color:#9878e1}html[data-theme="dark"] .production-step-number{background:#292d40;border-color:#46475d;color:#b2b7cc}html[data-theme="dark"] .production-step.is-done .production-step-number{background:#223e38;color:#8fc8b2}html[data-theme="dark"] .production-step.is-current .production-step-number{background:#8c6bd9;color:#fff}html[data-theme="dark"] .production-state{background:#38304d;color:#c1a5f4}html[data-theme="dark"] .production-state.review{background:#443a25;color:#dfbf70}html[data-theme="dark"] .production-state.done{background:#223e38;color:#8fc8b2}html[data-theme="dark"] .production-state.error,html[data-theme="dark"] .production-state.blocked{background:#49312c;color:#dfa68f}html[data-theme="dark"] .production-overview strong{color:#e5e7f0}html[data-theme="dark"] .production-toolbar select{background:#222639;border-color:#42465f}html[data-theme="dark"] .production-toolbar .library-search{background:#222639;border-color:#42465f}@media(max-width:1100px){.production-track{grid-template-columns:repeat(2,minmax(0,1fr))}.production-project-footer{align-items:flex-start;flex-direction:column}.production-actions{align-self:flex-end}}@media(max-width:600px){.production-toolbar .library-search{flex-basis:100%;min-width:0}.production-toolbar>select{flex:1;min-width:0;max-width:none}.production-toolbar>.button{padding:10px}.production-overview{gap:12px;font-size:11px}.production-project-header{padding:20px;flex-direction:column;align-items:flex-start}.production-project-state{width:100%;justify-content:space-between}.production-track{grid-template-columns:1fr;padding:0 20px 20px;gap:8px}.production-step{flex-direction:row;padding:14px;gap:14px}.production-step-number{flex-shrink:0}.production-step-copy{gap:5px}.production-step-status{margin-top:2px}.production-project-footer{padding:16px 20px}.production-actions{width:100%;flex-wrap:wrap}.production-actions .button.primary{flex:1}}

.production-kanban{display:grid;grid-template-columns:repeat(5,minmax(205px,1fr));gap:14px;overflow-x:auto;align-items:start;padding-bottom:16px;max-width:100%}.production-lane{min-width:0;border-radius:9px;background:#f0f1f6;padding:12px}.production-lane>header{display:flex;align-items:center;gap:8px;padding:5px 2px 16px}.production-lane h2{font-size:13px;font-weight:600;margin:0}.production-lane-count{margin-left:auto;font-size:12px;color:var(--muted)}.production-lane-body{display:flex;flex-direction:column;gap:12px;min-height:130px}.production-lane-empty{font-size:12px;color:var(--muted);text-align:center;padding:34px 8px;line-height:1.6;margin:0}.production-kanban-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;width:100%;min-width:0;background:#fff;border:1px solid var(--line);border-radius:8px;padding:16px;gap:12px}.production-kanban-card:hover{border-color:#a48bdc}.production-kanban-card.is-running{border-color:#9b7adc}.production-kanban-card .production-eyebrow{font-size:10px;letter-spacing:.4px;margin:0}.production-kanban-name{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.production-kanban-stage{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:#8e6dd1;line-height:1.5}.production-kanban-stage>.icon{width:15px;height:15px}.production-kanban-note{font-size:12px;color:var(--muted);line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px}.production-mini-track{display:flex;gap:5px;margin-top:2px}.production-mini-track>span{flex:1;display:grid;place-items:center;height:23px;border-radius:4px;background:#f1f1f7;font-size:10px;color:var(--muted)}.production-mini-track>span>.icon{width:12px;height:12px}.production-mini-track>span.mini-done{background:#e3f1e9;color:#469574}.production-mini-track>span.mini-current{background:#eee6fb;color:#906ed4}.production-kanban-bottom{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted);border-top:1px solid var(--line);padding-top:12px}.production-kanban-bottom>span:last-child{color:#9475d7;font-weight:600}.production-kanban-bottom .icon{width:12px;height:12px}html[data-theme="dark"] .production-lane{background:#1f2334}html[data-theme="dark"] .production-kanban-card{background:#292d41;border-color:#3b3e53}html[data-theme="dark"] .production-kanban-card:hover,html[data-theme="dark"] .production-kanban-card.is-running{border-color:#9b7adc}html[data-theme="dark"] .production-mini-track>span{background:#34384c}html[data-theme="dark"] .production-mini-track>span.mini-done{background:#254139;color:#8bcaaf}html[data-theme="dark"] .production-mini-track>span.mini-current{background:#44375d;color:#c8abf8}html[data-theme="dark"] .production-kanban-stage{color:#bea2f1}.production-lane.drop-target{outline:2px solid #9477ed}@media(max-width:600px){.production-kanban{grid-template-columns:repeat(5,260px);scroll-snap-type:x proximity}.production-lane{scroll-snap-align:start}}

.production-kanban{grid-template-columns:repeat(4,minmax(230px,1fr))}.production-lane-number{display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--stage-color);color:var(--stage-color);border-radius:6px;font-size:11px;font-weight:600;flex-shrink:0}.kanban-status{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;padding:4px 7px;border-radius:4px;background:#efedf5;color:#878090;font-size:10px;font-weight:600}.kanban-status.running{background:#eee6fb;color:#8c67cf}.kanban-status.review{background:#fbf0d7;color:#a57b23}.kanban-status.error,.kanban-status.blocked{background:#f9e7e0;color:#ae6f59}.kanban-status.done{background:#e3f1e9;color:#469574}html[data-theme="dark"] .kanban-status{background:#36394b;color:#bac0d1}html[data-theme="dark"] .kanban-status.running{background:#44375d;color:#c8abf8}html[data-theme="dark"] .kanban-status.review{background:#443a25;color:#dfbf70}html[data-theme="dark"] .kanban-status.error,html[data-theme="dark"] .kanban-status.blocked{background:#49312c;color:#dfa68f}html[data-theme="dark"] .kanban-status.done{background:#254139;color:#8bcaaf}@media(max-width:600px){.production-kanban{grid-template-columns:repeat(4,260px)}}

.production-kanban{grid-template-columns:repeat(5,minmax(230px,1fr))}@media(max-width:600px){.production-kanban{grid-template-columns:repeat(5,260px)}}

.production-kanban{grid-template-columns:repeat(6,minmax(230px,1fr))}.settings-shell{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}.settings-tabs{display:flex;align-items:stretch;gap:24px;padding:0 26px;border-bottom:1px solid var(--line);overflow-x:auto;white-space:nowrap}.settings-tabs>[role=tab]{padding:20px 3px 17px;border-bottom:3px solid transparent;color:var(--muted);font-size:14px;font-weight:550;flex-shrink:0}.settings-tabs>[aria-selected=true]{color:var(--purple);border-bottom-color:var(--purple)}.settings-panel{padding:26px;min-width:0}.settings-panel .model-settings{margin:0;padding:0;border:0;background:transparent;box-shadow:none;border-radius:0}.settings-panel .model-settings h2{font-size:18px;margin:0 0 24px}.settings-panel .integration-grid{margin:0;grid-template-columns:repeat(2,minmax(0,1fr))}.settings-panel .integration-card{margin:0}.settings-panel .model-settings-fields>*{min-width:0}.settings-panel input,.settings-panel select{max-width:100%;min-width:0}html[data-theme="dark"] .settings-shell{background:#272c40;border-color:#36394d}html[data-theme="dark"] .settings-tabs{border-color:#36394d}html[data-theme="dark"] .settings-panel .model-settings{background:transparent;border:0}html[data-theme="dark"] .settings-tabs>[aria-selected=true]{color:#c0a4f2}@media(max-width:600px){.production-kanban{grid-template-columns:repeat(6,260px)}.settings-tabs{gap:20px;padding:0 18px}.settings-panel{padding:20px}.settings-panel .integration-grid{grid-template-columns:1fr}.settings-panel .model-settings-fields{grid-template-columns:1fr}}

.production-kanban{scrollbar-width:none}.production-kanban::-webkit-scrollbar{display:none}.kanban-bottom-scroll{position:fixed;bottom:0;height:20px;z-index:12;overflow-x:scroll;overflow-y:hidden;background:#e6e5ed;border-top:1px solid var(--line);scrollbar-color:#9a88c1 #e6e5ed}.kanban-bottom-scroll>div{height:1px}.kanban-bottom-scroll[hidden]{display:none}html[data-theme="dark"] .kanban-bottom-scroll{background:#202435;border-color:#36394d;scrollbar-color:#777185 #202435}

.users-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(240px,1fr);gap:32px}.user-permissions{border:1px solid var(--line);border-radius:7px;padding:18px;margin:20px 0;display:grid;gap:12px}.user-permissions legend{font-size:13px;padding:0 7px}.user-permissions label{margin:0}.user-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.user-row strong,.user-row small{display:block}.user-row small{color:var(--muted);font-size:12px;margin-top:7px}.users-list h2{font-size:18px;margin:0 0 20px}@media(max-width:900px){.users-layout{grid-template-columns:1fr}}

.users-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.users-table .user-row{padding:18px 0;gap:20px;flex-wrap:wrap}.user-identity{display:flex;gap:12px;align-items:center;flex:1;min-width:180px}.user-identity strong{font-size:13px;overflow-wrap:anywhere}.user-row-actions{display:flex;gap:16px}.invitation-result{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 16px;background:#9477ed12;border-radius:7px;font-size:12px;margin-bottom:20px}.user-modal{width:min(620px,calc(100vw - 32px));max-height:90vh;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:0;background:#fff;color:var(--text)}.user-modal::backdrop{background:#11152299;backdrop-filter:blur(3px)}.user-modal-form{padding:26px}.user-modal-form>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.user-modal-form h2{font-size:19px;margin:0}.user-modal-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.user-modal-fields>label,.compact-field{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:550;margin:0}.user-modal-fields input,.compact-field input{width:100%;min-width:0;height:42px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:transparent;color:inherit;font-size:13px}.access-heading{display:block;font-size:12px;font-weight:600;margin:24px 0 12px}.access-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.access-options>label{display:flex!important;align-items:center;gap:10px;padding:12px!important;margin:0!important;border:1px solid var(--line);border-radius:6px;min-width:0;background:transparent!important;font-size:12px;line-height:1.4;font-weight:450}.access-options>label:has(input:checked){border-color:#a58adf;background:#9477ed0d!important}.access-options input[type=checkbox]{margin:0!important;width:15px!important;height:15px!important;min-height:0!important;flex-shrink:0;accent-color:#9477ed}.access-options span{display:flex;gap:8px;align-items:center}.access-options small{color:var(--muted);font-size:10px}.user-modal-form>footer{display:flex;justify-content:flex-end;gap:10px;margin-top:26px}.notification-channels{display:grid;grid-template-columns:1fr 1fr;gap:20px}.notification-channel{padding:20px;border:1px solid var(--line);border-radius:9px}.notification-channel>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}.notification-channel strong{font-size:15px}.channel-pending{display:inline-block;font-size:11px;color:var(--muted);margin-bottom:22px}.switch-control{display:inline-flex!important;padding:0!important;margin:0!important;position:relative;width:34px;height:20px;min-width:34px;background:transparent!important;border:0!important}.switch-control input{position:absolute;opacity:0;width:34px;height:20px;margin:0;cursor:pointer;z-index:1}.switch-control>span{display:block;width:34px;height:20px;background:#b7bac7;border-radius:20px;pointer-events:none}.switch-control>span:after{content:'';position:absolute;width:14px;height:14px;background:#fff;border-radius:50%;top:3px;left:3px;transition:transform .15s}.switch-control input:checked+span{background:#9477ed}.switch-control input:checked+span:after{transform:translateX(14px)}.switch-control input:focus-visible+span{outline:2px solid #b59be9;outline-offset:3px}.notification-events{margin:4px 0 24px}.notification-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding-top:20px}.notification-footer .small-note{margin:0;max-width:420px}html[data-theme="dark"] .user-modal{background:#272c40;color:#e5e7f0;border-color:#42465f}html[data-theme="dark"] .access-options>label,html[data-theme="dark"] .notification-channel{border-color:#42465f}html[data-theme="dark"] .access-options>label:has(input:checked){border-color:#a58adf}@media(max-width:600px){.user-modal-fields,.notification-channels{grid-template-columns:1fr}.access-options{grid-template-columns:1fr}.user-modal-form{padding:20px}.users-toolbar,.notification-footer,.invitation-result{align-items:flex-start;flex-direction:column}.users-toolbar .button,.notification-footer .button{width:100%}}

.csv-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.csv-description{grid-column:1 / -1}.csv-fields textarea{width:100%;margin:0;border:1px solid var(--line);border-radius:6px;padding:12px;background:transparent;color:inherit}.csv-product-form>footer,.csv-export-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:20px}.csv-items{margin-top:24px}.csv-thumb{width:44px;height:44px;border-radius:6px;object-fit:cover}.csv-export-footer{border-top:1px solid var(--line);padding-top:20px;margin-bottom:20px}@media(max-width:600px){.csv-fields{grid-template-columns:1fr}.csv-description{grid-column:auto}.csv-product-form>footer,.csv-export-footer{align-items:stretch;flex-direction:column}}

#app [data-view][hidden],#app [data-action="new"][hidden]{display:none!important}

.project-selection-bar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:-4px 0 20px}.library-folder.project-selected{border-color:var(--purple);box-shadow:0 0 0 2px var(--purple);background:color-mix(in srgb,var(--purple) 10%,var(--surface,#fff))}.multi-project-files{padding:22px 0;border-bottom:1px solid var(--line)}.multi-project-files>h2{margin:0 0 18px;font-size:20px}.multi-project-files .empty-view{padding:22px}.multi-project-files .empty-view h2{font-size:16px}

.production-kanban-card.project-selected{border-color:var(--purple);box-shadow:0 0 0 2px var(--purple)}.project-context-menu{position:fixed;z-index:10000;min-width:180px;padding:6px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 10px 35px #0003}.project-context-menu button{display:block;width:100%;text-align:left;padding:11px 14px;border-radius:6px}.project-context-menu button:hover,.project-context-menu button:focus-visible{background:#8d6bea22}.project-context-menu button:last-child{color:#bd5360}html[data-theme="dark"] .project-context-menu{background:#272c40}.user-modal-form>.compact-field{margin-bottom:18px}

.notification-service{margin-top:24px;padding:20px;border:1px solid var(--line);border-radius:10px}.notification-service summary{cursor:pointer;font-weight:600}.notification-service h3{margin:24px 0 12px}.notification-service .user-modal-fields{margin-top:18px;row-gap:18px}.notification-service footer{margin-top:20px}.notification-history{margin-top:24px}.notification-channel [data-notification-test]{margin-top:14px}

.project-selection-bar[hidden]{display:none!important}.selection-mode-button{white-space:nowrap;flex-shrink:0;height:44px}.library-toolbar>.selection-mode-button{align-self:flex-end}.production-toolbar>.selection-mode-button{margin-left:0}@media(max-width:600px){.production-toolbar>.library-search{flex-basis:100%}.production-toolbar>.selection-mode-button,.library-toolbar>.selection-mode-button{margin-left:auto}.library-toolbar{gap:10px}}

.selection-mode-button[hidden]{display:none!important}

.private-comments-section form{display:grid;gap:12px;margin-bottom:18px}.private-comments-section form>.button{justify-self:end}.private-comment{padding:14px 0;border-top:1px solid var(--line)}.private-comment p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 8px;font-size:14px}.private-comment time{font-size:12px;color:var(--muted)}

.delivery-files>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;font-size:16px;font-weight:650}.delivery-files>summary::-webkit-details-marker{display:none}.delivery-files>summary small{margin-left:6px;font-weight:400;color:var(--muted)}.delivery-files>summary>.icon{width:18px;height:18px;transition:transform .15s}.delivery-files[open]>summary>.icon{transform:rotate(180deg)}.delivery-files[open]>.artifact-list{margin-top:16px}
