.teoc-workspace[data-bs-theme="dark"] {
    --teoc-bg:#080808;--teoc-nav:#191919;--teoc-panel:#242424;--teoc-selected:#454545;
    --teoc-text:#f5f5f5;--teoc-muted:#a3a3a3;--teoc-border:#292929;--teoc-new:#363636;--teoc-cloud:#ccc;
}
.teoc-workspace[data-bs-theme="light"] {
    --teoc-bg:#fff;--teoc-nav:#f2f2f2;--teoc-panel:#eee;--teoc-selected:#d9d9d9;
    --teoc-text:#222;--teoc-muted:#666;--teoc-border:#ddd;--teoc-new:#fff;--teoc-cloud:#444;
}
.teoc-brand {gap:.2rem}
.teoc-brand-slogan {display:block;text-align:center;white-space:nowrap;font-size:5px!important;letter-spacing:0;color:var(--teoc-muted)}
.teoc-auth-heading .teoc-brand-slogan {font-size:7px}
.teoc-brand>span,.teoc-topbar .teoc-brand>span,.teoc-auth-heading .teoc-brand>span {font-weight:700;color:var(--teoc-cloud,#ccc)}
.teoc-topbar-label {padding-left:12px}
.teoc-connection {display:inline-flex;align-items:center;gap:6px;margin-right:.55rem;color:var(--teoc-muted);white-space:nowrap}
.teoc-connection::before {content:"";width:7px;height:7px;border-radius:50%;background:var(--teoc-muted)}
.teoc-connection.is-online::before {background:#26b865}
.teoc-reference-footer {justify-content:center;text-align:center;padding-block:1rem;font-size:.76rem}
.teoc-shell-signed-in {grid-template-columns:minmax(148px,15.5%) minmax(0,1fr);row-gap:14px}
.teoc-rail.app-sidebar {padding:10px!important;border-radius:9px;background:var(--teoc-nav)!important;margin-bottom:.5rem}
.teoc-rail .teoc-nav-label {display:none}
.teoc-workspace .teoc-rail .menu-item>.menu-link {height:25px;min-height:25px;padding:2px 7px;gap:7px;margin:0;border-radius:5px;color:var(--teoc-text)!important}
.teoc-workspace .teoc-rail .menu-link>.menu-title {font-size:13px;font-weight:400;color:var(--teoc-text)!important;white-space:nowrap}
.teoc-workspace .teoc-rail .menu-link>.menu-icon,.teoc-workspace .teoc-rail .menu-link>.menu-icon svg {width:16px;height:16px;min-width:16px;color:var(--teoc-text)!important}
.teoc-workspace .teoc-rail .menu-link.active {background:var(--teoc-selected)!important}
.teoc-workspace .teoc-rail .menu-link.active :is(.menu-title,.menu-icon,.menu-icon svg) {color:var(--teoc-text)!important}
.teoc-v11-new {margin-bottom:10px}
.teoc-v11-new summary {width:86px;height:34px;display:grid;grid-auto-flow:column;place-content:center;gap:6px;list-style:none;border-radius:9px;background:var(--teoc-new);border:1px solid var(--teoc-border);cursor:pointer}
.teoc-v11-new button {display:block;padding:.35rem .55rem;border:0;background:none;color:var(--teoc-text)}
.teoc-workspace .teoc-rail .teoc-quota {margin:auto 0 0;padding:16px 2px 3px;width:100%;border-top:1px solid var(--teoc-border)}
.teoc-content {padding:0 0 12px}
.teoc-files-heading h1 {font-size:1.6rem;margin:0 0 .65rem}
.teoc-file-toolbar {margin-bottom:4px;gap:4px}
.teoc-file-toolbar :is(.form-control,.card-toolbar .btn,#teoc-search-scope) {height:28px;min-height:28px;padding-block:0;border-radius:5px!important}
.teoc-file-toolbar .form-control {background:var(--teoc-nav)!important}
.teoc-file-toolbar .card-title .ki-magnifier {font-size:.95rem!important}
.teoc-file-toolbar #id_create_dir_button {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.teoc-file-toolbar select,.teoc-v11-filters :is(select,button),.teoc-view-switch select {background:var(--teoc-bg);color:var(--teoc-text);border:1px solid var(--teoc-border);border-radius:5px}
.teoc-v11-filters {display:flex;gap:4px;margin-bottom:6px;flex-wrap:wrap}
.teoc-v11-filters :is(select,button) {height:22px;padding:0 .45rem;font-size:.82rem}
.teoc-viewbar,#teoc-reference-cards h2 {min-height:32px;margin:0;font-size:1rem;align-items:center}
.teoc-viewbar {justify-content:flex-start;gap:.4rem}
.teoc-viewbar h2 {margin-right:auto;font-size:1rem}
.teoc-view-switch {align-items:center;gap:.25rem}
.teoc-view-switch button {width:24px;height:24px;font-size:.95rem}
.teoc-folder-grid {grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:.45rem;margin:0}
.teoc-folder-card {display:flex;align-items:center;gap:.45rem;min-width:0;min-height:38px;padding:.3rem .45rem;border-radius:6px}
.teoc-folder-card>svg,.teoc-file-card-main>svg {width:16px;height:16px;flex-shrink:0}
.teoc-folder-card>.teoc-card-actions {position:static;order:3;margin-left:auto}
.teoc-folder-card .teoc-card-name {font-size:.9rem;min-width:0}
.teoc-file-cards {gap:.4rem;margin-top:0}
.teoc-file-card {padding:.55rem .65rem;border-radius:6px}
.teoc-file-card-main {padding:0 0 .45rem}
.teoc-file-dates {padding-top:.45rem}
.teoc-workspace #file_manager_list :is(th,td) {padding-block:.25rem}
.teoc-workspace #file_manager_list th {height:25px}
.teoc-file-panel .dt-length {display:none!important}
.teoc-file-panel .dt-layout-row:has(.dt-paging) {justify-content:center!important}
.teoc-file-panel .dt-layout-row:has(.dt-paging) .dt-layout-cell {flex:0 1 auto}
.teoc-workspace[data-bs-theme="light"] :is(.menu-link,.card-title,.app-navbar a) {color:var(--teoc-text)!important}
.teoc-workspace[data-bs-theme="light"] :is(.btn-primary,.btn-primary:hover,.btn-primary:focus) {background:#333!important;color:#fff!important;border-color:#333!important}
@media(max-width:991px) {.teoc-shell-signed-in {grid-template-columns:minmax(0,1fr)}}
@media(max-width:575px) {
    .teoc-file-toolbar .card-title {flex-basis:60%}
    .teoc-file-toolbar :is(.form-control,.card-toolbar .btn,#teoc-search-scope) {min-height:40px}
    .teoc-connection {font-size:.68rem;margin-right:.2rem}
    .teoc-topbar-label {padding-left:0}
}

/* Reference dimensions. Both themes share this layout. */
.teoc-workspace[data-bs-theme=dark]{--teoc-border:#303030}
.teoc-workspace .teoc-rail .menu .menu-link :is(.menu-title,.menu-icon,.menu-icon i,.menu-icon svg){color:var(--teoc-text)!important}
.teoc-workspace .teoc-rail .menu-item>.menu-link{font:400 12.5px/1 Poppins,SUITE,sans-serif;border:0;white-space:nowrap;background:transparent}
.teoc-pending:disabled{cursor:not-allowed;opacity:.55}
.teoc-workspace .teoc-rail .teoc-pending .menu-icon i{font-size:15px}
.teoc-rail .menu-item{padding:0!important;margin:0!important}
.teoc-workspace .teoc-rail .menu-item .menu-title{line-height:1;font-size:12.5px}
.teoc-file-panel [hidden],.teoc-v11-filters [hidden]{display:none!important}
.teoc-folder-grid{grid-template-columns:repeat(auto-fill,minmax(0,222px));gap:8px}
.teoc-folder-card{height:34px;min-height:34px;padding:0 10px;gap:9px;border:0}
.teoc-folder-card .teoc-card-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:400}
.teoc-folder-card summary svg{transform:rotate(90deg)}
.teoc-viewbar,#teoc-reference-cards h2{height:32px;min-height:32px;display:flex;align-items:center;margin:0}
.teoc-viewbar h2,#teoc-reference-cards h2{font-size:14px;font-weight:600}
.teoc-column-head,.teoc-file-card{display:grid;grid-template-columns:minmax(100px,1fr) repeat(3,minmax(90px,155px)) 96px;align-items:center;padding:0 8px}
.teoc-column-head{height:25px;border-block:1px solid var(--teoc-border);font-size:11px;color:var(--teoc-muted)}
.teoc-column-head span:not(:first-child),.teoc-file-card-label>span,.teoc-file-dates dd{text-align:center}
.teoc-file-card{background:transparent;min-height:36px;border:none;border-bottom:1px solid var(--teoc-border);border-radius:0;font-size:12px}
.teoc-file-card :is(.teoc-file-card-main,.teoc-file-card-label,.teoc-file-dates,.teoc-file-dates>div){display:contents}
.teoc-file-card-main>svg,.teoc-file-dates dt{display:none}
.teoc-file-card .teoc-card-actions{grid-column:5;grid-row:1;justify-content:end}
.teoc-file-card .teoc-icon-action{width:21px}
.teoc-no-items{margin:0;text-align:center;color:var(--teoc-muted);padding:16px 0}
.teoc-file-panel #file_manager_list_wrapper :is(.dt-length,.dt-info,.dt-paging),
.teoc-file-panel #file_manager_list_wrapper>.row:not(:has(table)){display:none!important}
.teoc-bottom-pages{height:32px;flex:none;display:flex;justify-content:center;align-items:center;gap:15px}
.teoc-bottom-pages button{background:transparent;border:0;color:var(--teoc-muted);padding:0}
.teoc-bottom-pages output{background:var(--teoc-selected);padding:3px 8px;border-radius:4px}
.teoc-view-switch select{width:80px;height:24px;font-size:11px}
.teoc-files-heading h1{font-size:21px;line-height:28px;margin:0 0 8px}
.teoc-file-toolbar{display:grid;grid-template-columns:108px minmax(0,1fr) max-content;gap:6px}
.teoc-file-toolbar .card-toolbar .btn{width:104px;justify-content:center;font-size:12px}
.teoc-v11-filters{margin:0;gap:4px}
.teoc-v11-filters select{font-size:11px;width:76px}
#teoc-kind{width:65px}#teoc-sort{width:116px}
.teoc-file-toolbar .card-title>div{margin:0!important}
.teoc-rail .teoc-quota{font-size:10.5px}.teoc-rail .teoc-quota-summary{flex-wrap:wrap}
.teoc-topbar .teoc-brand{width:94px;align-items:center}.teoc-topbar .teoc-brand img{width:94px}
.teoc-topbar .teoc-brand>span{font-size:13px}
.teoc-workspace .teoc-avatar{width:30px!important;height:30px!important;border-width:1.5px!important;font-size:14px}
@media(min-width:992px){
.teoc-shell.teoc-shell-signed-in{width:100%;height:100dvh;min-height:0;margin:0;padding:0 20px;border-radius:0;grid-template-columns:148px minmax(0,1fr);grid-template-rows:84px minmax(0,1fr) 41px;gap:12px 18px}
.teoc-shell .teoc-topbar{min-height:0;padding:8px 0 0 37px}.teoc-topbar-label{padding:0}
.teoc-shell .teoc-rail.app-sidebar{margin:0;padding:12px 8px 10px!important;min-height:0}
.teoc-main{min-height:0;overflow:auto}.teoc-content{padding:0}
.teoc-main:has(.teoc-files) .teoc-content,.teoc-files{height:100%;min-height:0}
.teoc-files{display:flex;flex-direction:column}.teoc-files>.teoc-file-panel{flex:1;overflow:auto}
.teoc-shell .teoc-reference-footer{align-items:center;padding:0;font-size:9px}
}
@media(max-width:700px){.teoc-column-head,.teoc-file-card{grid-template-columns:minmax(75px,1fr) 60px 90px}.teoc-column-head span:nth-child(n+3),.teoc-file-card .teoc-file-dates>div{display:none}.teoc-file-card .teoc-card-actions{grid-column:3}.teoc-file-toolbar{grid-template-columns:75px minmax(0,1fr) max-content}.teoc-file-toolbar .card-toolbar .btn{width:auto}}
.teoc-root-directory .teoc-file-panel>.flex-stack:has([data-kt-filemanager-table-nav-bar]):not(:has([data-kt-filemanager-table-toolbar=selected]:not(.d-none))){display:none!important}
.teoc-workspace .teoc-rail .teoc-quota{display:flex;flex-direction:column;gap:7px;padding-top:12px}
.teoc-rail .teoc-quota-summary{display:contents}
.teoc-rail .teoc-quota-summary>span{font-size:12px;color:var(--teoc-text)}
.teoc-rail .teoc-quota-summary>span:before{content:"☁";margin-right:6px}
.teoc-rail .teoc-quota strong{order:4;font-size:10.5px;font-weight:400;color:var(--teoc-muted);white-space:normal}
.teoc-rail .teoc-quota progress{height:5px;margin:0}
.teoc-rail .teoc-quota-values{font-size:10.5px;margin:0}
.teoc-files .teoc-bottom-pages #teoc-bottom-prev:before{content:"‹";margin-right:6px}
.teoc-files .teoc-bottom-pages #teoc-bottom-next:after{content:"›";margin-left:6px}

/* DataTables suppresses its type column; keep the three metadata tracks identical. */
.teoc-workspace #file_manager_list{table-layout:fixed;--meta-width:clamp(105px,12vw,155px)}
.teoc-workspace #file_manager_list :is(th,td){min-width:0!important}
.teoc-workspace #file_manager_list :is(col,th)[data-dt-column="0"]{width:36px!important}
.teoc-workspace #file_manager_list :is(col,th)[data-dt-column="2"]{width:auto!important}
.teoc-workspace #file_manager_list :is(col,th):is([data-dt-column="3"],[data-dt-column="4"],[data-dt-column="5"]){width:var(--meta-width)!important;text-align:center!important}
.teoc-workspace #file_manager_list :is(col,th)[data-dt-column="6"]{width:150px!important}
.teoc-workspace #file_manager_list td:nth-child(n+3):nth-child(-n+5){text-align:center!important}
.teoc-workspace #file_manager_list td a[translate=no]{min-width:0;overflow-wrap:anywhere}
.teoc-workspace .teoc-shell :is(.ki-duotone,.ki-solid,.ki-outline).text-primary,.teoc-workspace .teoc-shell .text-primary:is(.ki-duotone,.ki-solid,.ki-outline) :is(i,span)::before{color:var(--teoc-text)!important}
.teoc-folder-card .teoc-card-name::after{content:"";position:absolute;inset:0;border-radius:inherit}
.teoc-folder-card .teoc-card-actions{position:relative;inset:auto;z-index:1}
.teoc-folder-card:hover{background:var(--teoc-selected);cursor:pointer}
.teoc-folder-card:has(.teoc-card-name:focus-visible){outline:2px solid var(--teoc-muted);outline-offset:2px}
.teoc-worker{color:var(--teoc-muted);font-size:10px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.teoc-file-worker{grid-column:1;grid-row:2}
#file_manager_list .teoc-worker{margin-inline-start:8px}
@media(max-width:575px){
  .teoc-files .teoc-file-toolbar{grid-template-columns:minmax(70px,26%) minmax(0,1fr) auto}
  .teoc-files .teoc-v11-filters{flex-wrap:nowrap;overflow-x:auto}
  .teoc-files .teoc-column-head,.teoc-files .teoc-file-card{grid-template-columns:minmax(0,1fr) 60px 96px}
  .teoc-files .teoc-file-card .teoc-card-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .teoc-files .teoc-folder-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,222px),222px))}
  .teoc-files .teoc-bottom-pages button{min-height:40px}
}
.teoc-home-view .teoc-home-summary{display:block}
.teoc-home-view :is(.teoc-file-toolbar,.teoc-v11-filters,.teoc-files-heading,.teoc-bottom-pages,.teoc-file-panel){display:none}
.teoc-home-summary h2{font-size:14px;margin:16px 0 8px}
.teoc-home-summary ul{padding:0;margin:0 0 16px;list-style:none}
.teoc-home-summary li a{display:block;padding:10px;border-bottom:1px solid var(--teoc-border);color:var(--teoc-text)}
.teoc-home-summary li a:hover{background:var(--teoc-selected)}
.teoc-home-summary>a{color:var(--teoc-text);text-decoration:underline}
.teoc-write-metadata:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0;margin:0 0 14px;padding:0;border:0}
.teoc-write-metadata label{min-width:0;display:block}
.teoc-workspace[data-bs-theme=dark]{--teoc-field-bg:#303030;--teoc-field-border:#666;--teoc-field-text:#f5f5f5;--teoc-field-focus:#eee}
.teoc-workspace[data-bs-theme=light]{--teoc-field-bg:#fff;--teoc-field-border:#bbb;--teoc-field-text:#222;--teoc-field-focus:#333}
.teoc-workspace .teoc-write-metadata input.form-control{height:28px!important;min-height:28px!important;padding:3px 8px;background:var(--teoc-field-bg)!important;border:1px solid var(--teoc-field-border)!important;color:var(--teoc-field-text)!important}
.teoc-workspace .teoc-write-metadata input.form-control:focus{border-color:var(--teoc-field-focus)!important;outline:1px solid var(--teoc-field-focus);outline-offset:0}
.teoc-workspace #modal_upload .dropzone .ki-duotone,.teoc-workspace #modal_upload .dropzone .ki-duotone :is(i,span)::before{color:var(--teoc-field-text)!important}
#file_manager_new_folder:has(.teoc-write-metadata:not([hidden])){flex-wrap:wrap}
#file_manager_new_folder .teoc-write-metadata{flex-basis:100%}

.teoc-account-summary{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;padding:0 0 15px;border-bottom:1px solid var(--teoc-border);margin-bottom:15px;overflow-wrap:anywhere}
.teoc-account-summary a{color:var(--teoc-text);text-decoration:underline;padding:6px 0}
.teoc-account-card details{margin-top:16px}
.teoc-account-card summary{cursor:pointer}
@media(max-width:575px){
  .teoc-account-card .card-body,.teoc-account-card .card-header{padding:14px}
  .teoc-account-card .form-control{max-width:100%}
  .teoc-account-summary a{display:inline-flex;align-items:center;min-height:40px}
  .teoc-files .teoc-file-toolbar{grid-template-columns:minmax(72px,25%) minmax(0,1fr) auto}
  .teoc-files .teoc-file-toolbar>*{min-width:0}
  .teoc-files .teoc-v11-filters{max-width:100%}
  .teoc-files .teoc-file-cards{gap:6px}
  .teoc-files .teoc-file-card{grid-template-columns:minmax(0,1fr) auto;row-gap:4px;padding:8px 10px}
  .teoc-files .teoc-file-card-label{display:contents}
  .teoc-files .teoc-file-card-label .teoc-card-name{grid-column:1;grid-row:1;min-width:0}
  .teoc-files .teoc-file-card-label>span:not(.teoc-worker){grid-column:2;grid-row:1;text-align:end}
  .teoc-files .teoc-file-card .teoc-card-actions{grid-column:1/-1;grid-row:3;justify-content:flex-end;flex-wrap:wrap}
  .teoc-files .teoc-file-card .teoc-icon-action{min-width:44px;min-height:44px}
  .teoc-files .teoc-column-head{grid-template-columns:minmax(0,1fr) auto;padding-inline:10px}
}

.teoc-account-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.teoc-account-actions a{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border:1px solid var(--teoc-border);border-radius:6px;color:var(--teoc-text)}
.teoc-account-actions a:hover{background:var(--teoc-selected)}
.teoc-file-primary,.teoc-file-secondary{display:contents}
.teoc-file-secondary .teoc-star-toggle{order:-1}
.teoc-mobile-action-label{display:none}
@media(max-width:575px){
  .teoc-account-actions a{min-height:44px}
  .teoc-files .teoc-file-toolbar :is(.form-control,.card-toolbar .btn,#teoc-search-scope){min-height:44px}
  .teoc-files .teoc-folder-card{min-height:44px}
  .teoc-files .teoc-folder-card .teoc-icon-action{min-width:36px;min-height:36px}
  .teoc-files .teoc-file-card{grid-template-columns:max-content minmax(0,1fr);column-gap:8px}
  .teoc-files .teoc-file-card-label .teoc-card-name{grid-column:1/-1}
  .teoc-files .teoc-file-card .teoc-file-worker{grid-column:1/-1;grid-row:3}
  .teoc-files .teoc-file-card-label>span:not(.teoc-worker){grid-column:1;grid-row:2;text-align:start}
  .teoc-files .teoc-file-card .teoc-card-actions{display:contents}
  .teoc-files .teoc-file-card .teoc-file-primary{display:flex;grid-column:2;grid-row:2;justify-content:flex-end;gap:4px}
  .teoc-files .teoc-file-card .teoc-file-secondary{display:flex;grid-column:1/-1;grid-row:4;justify-content:flex-end;flex-wrap:wrap;gap:4px}
  .teoc-files .teoc-file-card .teoc-file-secondary:empty{display:none}
  .teoc-files .teoc-file-card .teoc-card-actions{position:static}
  .teoc-files :is(.teoc-file-primary,#file_manager_list) .teoc-mobile-primary{
    display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:44px;min-height:44px;
    padding:0 8px!important;border:1px solid var(--teoc-border);color:var(--teoc-text);white-space:nowrap;font-size:11px
  }
  .teoc-files .teoc-mobile-primary :is(svg,.teoc-play,.teoc-download){display:none}
  .teoc-files .teoc-mobile-action-label{display:inline}
  .teoc-files #file_manager_list,.teoc-files #file_manager_list tbody{display:block;min-width:0;width:100%!important}
  .teoc-files #file_manager_list colgroup{display:none}
  .teoc-files #file_manager_list thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
  .teoc-files #file_manager_list tbody tr:not(:has(.dt-empty)){
    display:grid;grid-template-columns:30px max-content minmax(0,1fr);align-items:center;padding:4px 0
  }
  .teoc-files #file_manager_list td:nth-child(2){grid-column:2/-1}
  .teoc-files #file_manager_list td:nth-child(3){grid-column:1/3;text-align:start!important}
  .teoc-files #file_manager_list td:is(:nth-child(4),:nth-child(5)){display:none}
  .teoc-files #file_manager_list td:nth-child(6){grid-column:3}
  .teoc-files #file_manager_list tr:not(.teoc-mobile-file-row) td:nth-child(6){grid-column:2/-1}
  .teoc-files #file_manager_list td:nth-child(6)>div{flex-wrap:wrap;align-items:center;row-gap:4px}
  .teoc-files #file_manager_list td:nth-child(6) :is(a.btn,button.btn){min-height:44px}
}
