.models-workspace{--models-surface:#f7faf4df;--models-border:#6e9c8380;--models-muted:#4b685a;background:radial-gradient(ellipse at 8% 0%,#b6e9d6,transparent 64%),radial-gradient(ellipse at 100% 98%,#e8d9a4c7,transparent 68%),#eaf0e5}
[data-theme=dark] .models-workspace{--models-surface:#172c23d9;--models-border:#aac5a369;--models-muted:#c2d4c2;background:radial-gradient(ellipse at 7% 0%,#206055aa,transparent 67%),radial-gradient(ellipse at 100% 94%,#7c653abd,transparent 70%),#1b3128}
.models-area{max-width:1600px;margin:0 auto;padding:clamp(4px,2.3vw,34px) 0 28px;min-width:0}
.models-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:22px}
.models-heading h1{font-family:inherit;font-size:clamp(29px,2.65vw,40px);font-weight:650;line-height:1.12;margin:0 0 9px;letter-spacing:-.035em}
.models-heading .subtitle{margin:0;color:var(--models-muted)}
.models-tools,.models-row-actions,.models-scopes,.models-variable-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.models-tools .search{width:186px;min-width:min(100%,154px);flex:1 1 186px;background:var(--models-surface);border:1px solid var(--models-border);border-radius:9px}
.models-tools .search input{width:100%;background:transparent}
.models-tools .btn,.models-tools select{min-height:40px;white-space:nowrap}
:root .models-tools .btn.primary:not(.danger){background:linear-gradient(112deg,#74e3b5,#cce781);color:#193b2c;border-color:#a7db9b}
:root .models-tools .btn.primary:not(.danger):hover{background:#a8ebaa}
:root .models-area .btn:not(.primary):not(.danger){background:var(--models-surface);border-color:var(--models-border);color:var(--ink)}
.models-filter select{border:1px solid var(--models-border);border-radius:9px;background:var(--models-surface);color:var(--ink);padding:0 8px}
.models-scopes{margin:0 0 10px}
.models-scopes .btn{min-height:34px;color:var(--ink);font-size:12px}
.models-scopes .btn[aria-pressed=true]{border-color:var(--models-border);background:var(--models-surface);font-weight:700}
.models-table{width:100%;border-collapse:separate;border-spacing:0 8px;font-size:13px;table-layout:fixed}
.models-table th,.models-table td{text-align:left;padding:13px clamp(7px,1.1vw,17px);background:var(--models-surface);border-block:1px solid var(--models-border);overflow-wrap:anywhere}
.models-table thead th{color:var(--ink);font-size:12px;font-weight:700;padding-block:12px}
.models-table thead th:nth-child(1){width:27%}.models-table thead th:nth-child(2){width:12%}.models-table thead th:nth-child(3){width:13%}.models-table thead th:nth-child(4){width:14%}.models-table thead th:nth-child(5){width:34%}
.models-table tbody tr:hover>*{background:color-mix(in srgb,var(--models-surface),#83af8f 12%)}
.models-table tr>:first-child{border-left:1px solid var(--models-border);border-radius:13px 0 0 13px}
.models-table tr>:last-child{border-right:1px solid var(--models-border);border-radius:0 13px 13px 0}
.models-table tbody th strong{font-size:14px;font-weight:650;line-height:1.3}
.models-table tbody th small{display:block;margin-top:3px;color:var(--models-muted);font-weight:400}
.models-category{display:inline-flex;max-width:100%;background:#b9dcf9;color:#203d4e;border-radius:18px;padding:4px 9px;font-size:12px;font-weight:650;line-height:1.2}
.models-category[data-color="1"]{background:#e0c4f0;color:#452d59}.models-category[data-color="2"]{background:#ffd49d;color:#54371f}.models-category[data-color="3"]{background:#f5b7a8;color:#613226}.models-category[data-color="4"]{background:#a7ddcd;color:#214d3e}.models-category[data-color="5"]{background:#dbe8a6;color:#414924}.models-category[data-color="6"]{background:#ead6ac;color:#4a412d}
.models-author{display:flex;align-items:center;gap:7px;color:var(--models-muted)}
.models-author .tiny-avatar{flex:0 0 25px;width:25px;height:25px;font-size:9px}
.models-row-actions{gap:5px}
.models-row-actions .btn,.models-row-actions .iconbtn{min-height:32px;padding:5px 8px;font-size:12px;white-space:nowrap}
.models-row-actions .iconbtn{min-width:31px}
.models-more{position:relative}.models-more summary{display:grid;place-items:center;cursor:pointer;list-style:none}.models-more summary::-webkit-details-marker{display:none}
.models-more>div{position:absolute;z-index:4;right:0;top:calc(100% + 4px);padding:5px;background:var(--paper);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}
.models-empty{padding:35px;text-align:center;border:1px solid var(--models-border);border-radius:13px;background:var(--models-surface)}
.models-dialog{width:min(900px,calc(100vw - 28px));max-height:calc(100dvh - 32px)}
.models-dialog .dialog-body{padding:clamp(14px,2.5vw,27px)}
.models-dialog .dialog-body h3{font-size:14px;margin:16px 0 9px}
.models-dialog-title{display:grid;gap:3px;margin-bottom:10px;overflow-wrap:anywhere}
.models-dialog-title>strong{font-size:17px;line-height:1.35}.models-dialog-title>small,.models-file small,.models-history-status,.models-form-grid small{color:var(--muted);font-size:12px}
.models-description{padding:12px 14px;border:1px solid var(--line);border-radius:9px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:42vh;overflow:auto;font-size:13px;line-height:1.55}
.models-file-list,.models-history{display:grid;gap:8px}
.models-file,.models-history-item{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;border:1px solid var(--line);padding:11px 12px;border-radius:10px;overflow-wrap:anywhere}
.models-file>div:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:13px;min-width:0}
.models-file>div:first-child>strong{overflow-wrap:anywhere;min-width:0}
.models-dialog .models-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}
.models-wide{grid-column:1/-1}
.models-departments{display:flex;gap:8px 18px;flex-wrap:wrap;align-items:center;border:1px solid var(--line);border-radius:9px;margin:10px 0;padding:7px 13px 11px}
.models-departments legend{padding:0 5px;color:var(--muted);font-size:12px}
.models-edit-files,.models-file-upload{margin-top:17px;border-top:1px solid var(--line);padding-top:6px}.models-edit-files .models-file{margin-bottom:6px}
.models-word{max-height:49dvh;overflow:auto;padding:10px;background:var(--soft);border:1px solid var(--line);border-radius:10px}
.models-word textarea{display:block;width:100%;min-height:32px;font:inherit;resize:vertical;margin:0 0 4px;border:1px solid var(--line);padding:6px 9px;border-radius:5px;line-height:1.5}
.models-word h3:first-child{margin-top:0}.models-variable-toolbar{margin:8px 0 10px}
.models-variable-types{margin:0 0 10px}.models-variable-types summary{cursor:pointer;font-size:13px}.models-variable-types .field{margin:6px 0}
.models-destination-download{border-bottom:1px solid var(--line);padding:6px 0 15px}
.models-person-results{display:flex;gap:6px;flex-wrap:wrap;margin:5px 0 12px;font-size:13px}
.models-history-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}
.models-history-item .models-dialog-title,.models-history-status{margin:0}.models-history-item .models-row-actions{grid-column:1/-1}
.models-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:1090px){.models-table thead th:nth-child(3){width:15%}.models-table thead th:nth-child(4){width:16%}.models-table thead th:nth-child(5){width:30%}.models-table td,.models-table th{padding-inline:8px}}
@media(max-width:720px){.models-tools{width:100%}.models-table,.models-table tbody{display:block}.models-table thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.models-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;margin-bottom:9px;border:1px solid var(--models-border);border-radius:12px;background:var(--models-surface)}.models-table tr>:is(th,td){background:transparent!important;border:0;padding:5px}.models-table tbody tr>:is(:first-child,:last-child){grid-column:1/-1;border:0}.models-dialog .models-form-grid{grid-template-columns:1fr}}
@media(max-width:700px){#app .shell:has(.models-workspace)>.sidebar{transform:translateX(-100%)}#app .shell.models-menu-open:has(.models-workspace)>.sidebar{transform:translateX(0)}}
