/* Кадр */
:root {
    color-scheme:dark;
    --bg:#101116;
    --side:#16171d;
    --panel:#1b1c23;
    --panel2:#22242d;
    --line:#2b2e32;
    --line2:#393d42;
    --text:#f2f2f1;
    --muted:#a3a7ab;
    --dim:#858b90;
    --accent:#4f46e5;
    --accent-hover:#5b50ed;
    --accent-text:#c7c7ff;
    --accent-soft:#262541;
    --accent-border:#56528e;
    --focus:#a5b4fc;
    --side-w:218px;
    --r:12px;
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
    background:var(--bg);
    color:var(--text);
    font-size:16px;
    line-height:1.45;
}

* {
    box-sizing:border-box;
}

body {
    margin:0;
    min-height:100vh;
}

a {
    color:inherit;
    text-decoration:none;
}

button,input,select,textarea {
    font:inherit;
}

button {
    cursor:pointer;
}

button,a,input,select,textarea {
    outline-offset:4px;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
    outline:2px solid var(--focus);
}

button {
    color:inherit;
}

button:disabled {
    opacity:.48;
    cursor:default;
}

button[hidden],[hidden] {
    display:none!important;
}

img {
    display:block;
    max-width:100%;
}

.ico {
    display:inline-block;
    vertical-align:middle;
    flex:none;
}

.skip {
    position:fixed;
    z-index:30;
    left:10px;
    top:-80px;
    background:var(--text);
    color:var(--bg);
    padding:10px;
}

.skip:focus {
    top:10px;
}

.sidebar {
    position:fixed;
    inset:0 auto 0 0;
    width:var(--side-w);
    z-index:10;
    background:var(--side);
    border-right:1px solid var(--line);
    display:flex;
    flex-direction:column;
}

.brand {
    display:inline-flex;
    align-items:center;
    gap:11px;
    font-size:31px;
    letter-spacing:-1.65px;
    font-weight:710;
    line-height:1;
    white-space:nowrap;
}

.sidebar>.brand {
    height:90px;
    padding:0 24px;
}

.brand img {
    flex:none;
}


.side-inner {
    padding:24px 14px;
}

.nav-label,.eyebrow {
    font-size:.75rem;
    line-height:1.3;
    font-weight:620;
    letter-spacing:.1em;
    text-transform:uppercase;
    color:var(--dim);
}

.nav-label {
    padding:0 13px;
    margin-bottom:12px;
}

.nav-label.second {
    margin-top:37px;
}

.nav-link {
    display:flex;
    align-items:center;
    gap:12px;
    min-height:43px;
    padding:9px 13px;
    border-radius:7px;
    margin:3px 0;
    font-size:.91rem;
    font-weight:500;
    color:#bfc2c5;
}

.nav-link .ico {
    color:#a2a7ab;
    width:18px;
}

.nav-link:hover {
    background:#1f2225;
    color:white;
}

.nav-link.active {
    box-shadow:inset 3px 0 var(--focus);
    background:var(--accent-soft);
    color:var(--accent-text);
}

.nav-link.active .ico {
    color:var(--focus);
}

.nav-count {
    margin-left:auto;
    font-size:.76rem;
    border:1px solid #36393d;
    min-width:23px;
    text-align:center;
    border-radius:5px;
    color:#bbc0c3;
}

.nav-count:empty {
    display:none;
}

.account {
    border-top:1px solid var(--line);
    margin-top:auto;
    display:flex;
    align-items:center;
    gap:10px;
    padding:19px 18px;
}

.account strong {
    display:block;
}

.account strong {
    font-size:.87rem;
    font-weight:580;
    text-overflow:ellipsis;
    overflow:hidden;
    white-space:nowrap;
    max-width:125px;
}


.avatar {
    display:grid;
    place-items:center;
    width:36px;
    height:36px;
    flex:none;
    border-radius:50%;
    font-weight:650;
    font-size:.95rem;
    color:var(--accent-text);
    background:var(--accent-soft);
    border:1px solid var(--accent-border);
}

.account .iconbtn {
    margin-left:auto;
    width:28px;
}

.workspace {
    margin-left:var(--side-w);
    min-height:100vh;
}

.topbar {
    height:67px;
    border-bottom:1px solid var(--line);
    padding:0 clamp(22px,3.1vw,54px);
    display:flex;
    align-items:center;
    gap:12px;
}

.breadcrumbs,.site-link {
    display:flex;
    align-items:center;
    gap:12px;
    font-size:.84rem;
}

.breadcrumbs {
    color:var(--muted);
}

.breadcrumbs>.ico {
    color:var(--dim);
    width:16px;
}

.breadcrumbs strong {
    font-weight:500;
    color:#d8dadd;
}


.site-link {
    margin-left:auto;
    gap:8px;
    color:#c4c7c9;
}

.site-link:hover,.subtle-link:hover {
    color:white;
}

.site-link .ico {
    width:16px;
}

.workspace main {
    max-width:1600px;
    margin:0 auto;
    padding:29px clamp(22px,3.1vw,54px) 52px;
}

.screen-shade,.mobile-menu {
    display:none!important;
}

h1,h2,h3,p {
    margin:0;
}

h1 {
    font-size:clamp(2rem,2.8vw,2.85rem);
    line-height:1.07;
    letter-spacing:-.048em;
    font-weight:660;
}

h2 {
    font-size:1.24rem;
    letter-spacing:-.024em;
    font-weight:620;
}

h3 {
    font-size:1.06rem;
    font-weight:610;
    letter-spacing:-.02em;
}

.page-head {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-bottom:24px;
}

.head-note {
    color:var(--muted);
    font-size:.9rem;
    margin-top:8px;
}

.btn,.iconbtn,.seg button,.tab,.plain-btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    line-height:1.2;
    border:0;
    background:transparent;
    font-weight:520;
}

.btn {
    min-height:39px;
    border:1px solid var(--line2);
    background:var(--panel);
    border-radius:7px;
    color:#e9eaea;
    padding:0 14px;
    font-size:.875rem;
    white-space:nowrap;
}

.btn:hover,.iconbtn:hover {
    background:#2b2e32;
}

.btn.primary {
    background:var(--accent);
    border-color:var(--accent);
    color:#fff;
    font-weight:650;
}

.btn.primary:hover {
    background:var(--accent-hover);
    border-color:var(--accent-hover);
}

.btn.danger {
    color:#ffa18c;
    border-color:#795048;
}

.btn.text-danger {
    color:#f3a18d;
    border-color:transparent;
    background:transparent;
}

.btn .ico {
    width:16px;
}

.iconbtn {
    width:37px;
    height:37px;
    border-radius:6px;
    color:var(--muted);
    padding:0;
}

.plain-btn {
    padding:0;
    background:transparent;
    color:var(--muted);
    font-size:.875rem;
}

.plain-btn:hover {
    color:var(--text);
}

.buttons {
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.loading,.plain-empty {
    padding:30px 0;
    color:var(--muted);
}

.muted {
    color:var(--muted);
}

.tabs-row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid var(--line);
    gap:14px;
}

.tabs {
    display:flex;
    min-width:0;
    max-width:100%;
    align-items:stretch;
    gap:22px;
    overflow:auto;
}

.tab {
    color:var(--muted);
    border-radius:0;
    border-bottom:2px solid transparent;
    min-height:41px;
    padding:0 1px 10px;
    white-space:nowrap;
    font-size:.88rem;
    gap:7px;
}

.section-tabs { margin-bottom:18px; }
.section-tabs .tab { display:inline-flex; align-items:center; }

.tab.active {
    color:var(--text);
    border-bottom-color:var(--focus);
}

.tab:hover {
    color:var(--text);
}

.tab-num {
    font-size:.71rem;
    line-height:18px;
    min-width:20px;
    text-align:center;
    border-radius:5px;
    padding:0 4px;
    background:#24272b;
    color:var(--muted);
}

.tab.active .tab-num {
    background:var(--accent-soft);
    color:var(--accent-text);
}

.tools-row {
    display:flex;
    align-items:center;
    gap:9px;
    padding:16px 0;
}

.search-box {
    display:grid;
    grid-template-columns:16px minmax(0,1fr);
    align-items:center;
    gap:9px;
    width:min(22rem,48%);
    min-width:0;
    height:42px;
    padding:0 12px;
    border:1px solid var(--line2);
    border-radius:8px;
    background:var(--side);
    color:var(--muted);
    cursor:text;
}

.search-box .ico {
    width:16px;
    height:16px;
}

.search-box input {
    width:100%;
    min-width:0;
    height:100%;
    padding:0;
    margin:0;
    border:0;
    outline:none;
    background:transparent;
    color:var(--text);
    font-size:.91rem;
    line-height:1.35;
}

.search-box input::placeholder {
    color:var(--muted);
}

.search-box:focus-within {
    border-color:var(--focus);
    box-shadow:0 0 0 2px var(--accent-soft);
    color:var(--accent-text);
}

.search-box input:focus-visible {
    outline:none;
}

.tools-row .btn {
    min-height:42px;
    background:#191b1e;
}

.tools-row .seg {
    margin-left:auto;
}

.seg {
    display:inline-flex;
    align-items:center;
    border:1px solid var(--line2);
    border-radius:7px;
    padding:3px;
    background:#16171d;
}

.seg button {
    height:34px;
    width:36px;
    padding:0;
    border-radius:4px;
    color:var(--dim);
}

.seg button.active {
    background:var(--accent-soft);
    color:var(--accent-text);
}

.seg .ico {
    width:15px;
    height:15px;
}

.filter-wrap {
    position:relative;
}

.tools-row .filter-on {
    color:var(--accent-text);
    border-color:var(--accent-border);
}

.popover {
    z-index:5;
    position:absolute;
    top:calc(100% + 7px);
    left:0;
    min-width:190px;
    background:#25282c;
    border:1px solid #44484c;
    border-radius:9px;
    box-shadow:0 14px 44px #0007;
    padding:6px;
}

.filter-pop {
    width:258px;
    padding:17px;
}

.filter-pop label+label {
    margin-top:12px;
}

.filter-pop .buttons {
    margin-top:14px;
}





.cards,.public-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}

.card,.public-card {
    min-width:0;
    position:relative;
}

.card {
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:10px;
}

.card:hover {
    border-color:#4a4e52;
}

.card:focus-within {
    z-index:2;
}

.art {
    display:block;
    position:relative;
    overflow:hidden;
    aspect-ratio:1.64;
    background:#282b2f;
    border-radius:9px 9px 0 0;
}

.art img {
    width:100%;
    height:100%;
    object-fit:cover;
}

.art-empty {
    height:100%;
    width:100%;
    display:grid;
    place-items:center;
    color:#90979d;
    background:repeating-linear-gradient(135deg,#272a2f 0px,#272a2f 8px,#292c31 8px,#292c31 10px);
}

.art .badge {
    position:absolute;
    left:9px;
    top:9px;
}

.badge {
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:22px;
    padding:2px 8px;
    font-weight:550;
    font-size:.72rem;
    border-radius:5px;
    background:rgba(15,19,20,.81);
    color:#f1f3f3;
    white-space:nowrap;
    backdrop-filter:blur(6px);
}

.badge:before {
    content:"";
    display:inline-block;
    width:6px;
    height:6px;
    border-radius:50%;
    background:#7cd2a5;
}

.badge.draft:before {
    background:#edbd78;
}

.card-body {
    padding:12px 12px 13px;
}

.card-line {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:4px;
}

.card-title {
    font-size:1.02rem;
    font-weight:610;
    letter-spacing:-.025em;
    line-height:1.3;
    overflow-wrap:anywhere;
}

.card-title:hover {
    color:var(--accent-text);
}

.card-meta {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
    color:#acb0b4;
    font-size:.77rem;
    margin-top:4px;
}

.card-meta .ico {
    width:14px;
    height:14px;
}

.dotsep {
    color:#64696e;
}

.empty {
    padding:48px 20px;
    text-align:center;
    background:var(--panel);
    border:1px dashed var(--line2);
    border-radius:10px;
}

.empty>.ico {
    color:var(--dim);
    margin-bottom:10px;
}

.empty p {
    color:var(--muted);
    margin:8px 0 16px;
    font-size:.92rem;
}

.pager {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;
    margin:24px 0;
    font-size:.86rem;
    color:var(--muted);
}

.pager a {
    color:var(--text);
}

.list-view {
    border:1px solid var(--line);
    border-radius:9px;
    overflow:hidden;
}

.list-item {
    display:grid;
    grid-template-columns:minmax(170px,1fr) minmax(70px,.28fr) minmax(70px,.28fr) minmax(100px,.35fr) 30px;
    gap:12px;
    align-items:center;
    background:var(--panel);
    border-bottom:1px solid var(--line);
    padding:11px 14px;
    font-size:.88rem;
}

.list-item:last-child {
    border:0;
}

.list-name {
    min-width:0;
    overflow-wrap:anywhere;
    display:flex;
    align-items:center;
    gap:12px;
    font-weight:600;
}

.list-thumb {
    flex:none;
    width:59px;
    height:38px;
    border-radius:4px;
    object-fit:cover;
    background:var(--panel2);
}

.list-item .badge {
    justify-self:start;
}


.list-edit {
    justify-self:end;
}

.panel {
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:var(--r);
    padding:22px;
}

.panel+.panel {
    margin-top:18px;
}

.panel-title {
    margin-bottom:17px;
}

.form-layout {
    display:grid;
    grid-template-columns:minmax(0,1.5fr) minmax(250px,.8fr);
    gap:20px;
    align-items:start;
}

.form-col {
    min-width:0;
}

.fields {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.fields .wide {
    grid-column:1/-1;
}

label,.field-label {
    display:grid;
    gap:7px;
    color:#d3d5d7;
    font-size:.85rem;
    font-weight:530;
}

input:where(:not([type=radio], [type=checkbox], [type=file], [type=search])),select,textarea {
    width:100%;
    min-width:0;
    background:#141619;
    color:var(--text);
    border:1px solid var(--line2);
    border-radius:6px;
    padding:10px 11px;
    font-size:.91rem;
    line-height:1.35;
}

input::placeholder,textarea::placeholder {
    color:#787e84;
}

textarea {
    resize:vertical;
    min-height:90px;
}

select {
    appearance:none;
    padding-right:34px;
    background:#141619 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23b9bdc1' stroke-width='1.6'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E") right 11px center / 14px 14px no-repeat;
}

input:focus,select:focus,textarea:focus {
    border-color:var(--focus);
}

.type-switch {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:20px;
}

.type-choice {
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border-radius:6px;
    border:1px solid var(--line2);
    font-size:.86rem;
    cursor:pointer;
}

.type-choice:has(input:checked) {
    background:var(--accent-soft);
    border-color:var(--accent-border);
    color:var(--accent-text);
}

.type-choice input {
    accent-color:var(--accent);
    margin:0;
}

.field-note {
    font-size:.78rem;
    line-height:1.5;
    color:var(--muted);
    font-weight:400;
}

.field-stack {
    display:grid;
    gap:15px;
}

.form-error {
    color:#ffb5a6;
    background:#402722;
    border:1px solid #684036;
    border-radius:6px;
    font-size:.87rem;
    padding:10px 12px;
}

.form-error:empty {
    display:none;
}

.form-error {
    margin:0 0 14px;
}

.form-foot {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-top:20px;
    flex-wrap:wrap;
}

.form-foot .buttons {
    margin-left:auto;
}

.upload-frame {
    position:relative;
    display:grid;
    place-items:center;
    min-height:140px;
    max-height:220px;
    border:1px dashed #4d5055;
    border-radius:7px;
    background:#16181a;
    overflow:hidden;
    color:var(--muted);
    gap:6px;
}

.upload-frame img {
    width:100%;
    max-height:218px;
    object-fit:contain;
}

.upload-frame-empty {
    display:grid;
    justify-items:center;
    gap:8px;
    font-size:.82rem;
    padding:24px;
}

.upload-actions {
    display:flex;
    align-items:center;
    gap:12px;
    margin:11px 0;
}

.upload-actions label {
    display:inline-flex;
    cursor:pointer;
}

.visually-hidden {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
}

.season-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(100px,1fr));
    gap:10px;
    margin-top:8px;
}

.season-total {
    max-width:12rem;
}

.season-caption {
    margin-top:18px;
}

.section-row {
    display:flex;
    align-items:center;
    gap:13px;
    padding:15px;
    border-bottom:1px solid var(--line);
}

.section-row:last-child {
    border-bottom:0;
}

.section-row.child {
    padding-left:39px;
}

.section-row .row-icon {
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    background:#282a2f;
    color:var(--accent-text);
    border-radius:7px;
}

.section-row.child .row-icon {
    width:28px;
    background:transparent;
    color:var(--dim);
}

.section-row strong {
    overflow-wrap:anywhere;
    font-weight:570;
}

.section-row small {
    display:block;
    color:var(--muted);
    font-size:.79rem;
    margin-top:2px;
}

.row-end {
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:7px;
}

.tree {
    padding:0;
    overflow:hidden;
}

.narrow {
    max-width:720px;
}


.public-chips .selected,.episode-links .selected {
    background:var(--accent-soft);
    border-color:var(--accent-border);
    color:var(--accent-text);
}

.vars {
    display:flex;
    gap:6px;
    flex-wrap:wrap;
}

.vars button {
    color:var(--accent-text);
    border-radius:4px;
    background:var(--accent-soft);
    border:1px solid var(--accent-border);
    font:500 .77rem/1.3 ui-monospace,monospace;
    padding:4px 6px;
    cursor:pointer;
}

.preview-title {
    font-size:1.15rem;
    color:#b6c5ff;
    margin:9px 0;
}

.preview-site {
    font-size:.78rem;
    color:#93ba9f;
    overflow-wrap:anywhere;
}

.preview-copy,.preview-body {
    color:#c4c7ca;
    font-size:.9rem;
    white-space:pre-line;
    overflow-wrap:anywhere;
}

.preview-body {
    padding-top:15px;
    border-top:1px solid var(--line);
    margin-top:16px;
}

.stats {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    margin-bottom:18px;
}

.stat b,.stat span {
    display:block;
}

.stat b {
    font-size:2.1rem;
    letter-spacing:-.045em;
    margin-top:7px;
}

.stat span {
    font-size:.85rem;
    color:var(--muted);
}

.map-url {
    display:flex;
    align-items:center;
    gap:8px;
    overflow-wrap:anywhere;
    color:var(--accent-text);
}

.map-url a {
    min-width:0;
}

.map-links {
    display:grid;
    gap:12px;
    margin-top:15px;
}

.map-links a {
    color:#d6dadd;
    text-decoration:underline;
    text-decoration-color:#5c656c;
    text-underline-offset:3px;
    overflow-wrap:anywhere;
}

#toast {
    position:fixed;
    bottom:23px;
    left:calc(50% + var(--side-w) / 2);
    transform:translate(-50%,14px);
    z-index:20;
    border:1px solid #4a4f54;
    color:#fff;
    background:#292d30;
    box-shadow:0 8px 30px #0005;
    padding:10px 17px;
    border-radius:8px;
    font-size:.875rem;
    opacity:0;
    pointer-events:none;
    transition:.18s;
    max-width:90%;
    text-align:center;
}

#toast.on {
    opacity:1;
    transform:translate(-50%,0);
}

dialog {
    border:1px solid #42464b;
    border-radius:12px;
    padding:23px;
    max-width:min(420px,92vw);
    background:var(--panel);
    color:var(--text);
}

dialog::backdrop {
    background:#0009;
}

dialog p {
    color:var(--muted);
    margin:12px 0 20px;
}

dialog .buttons {
    justify-content:flex-end;
}

.public-head {
    border-bottom:1px solid var(--line);
    padding:17px max(5vw,24px);
    display:flex;
    align-items:center;
    gap:25px;
}

.subtle-link,.crumb {
    color:var(--muted);
    font-size:.9rem;
}

.public-main {
    max-width:1250px;
    margin:auto;
    padding:46px max(5vw,24px);
}

.public-main h1 {
    margin:10px 0 18px;
}

.public-lead {
    font-size:1.05rem;
    color:#cdd0d1;
    max-width:70ch;
}

.public-chips,.episode-links {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:22px 0;
}

.public-chips a,.episode-links a {
    padding:6px 13px;
    background:var(--panel);
    border:1px solid var(--line2);
    border-radius:6px;
    font-size:.88rem;
}

.public-chips a:hover,.episode-links a:hover {
    border-color:var(--accent-border);
    color:var(--accent-text);
}

.public-card .art {
    border-radius:8px;
}

.public-card h3 {
    margin:11px 0 3px;
}

.public-card span,.film-facts,.public-copy {
    color:var(--muted);
    font-size:.86rem;
}

.public-grid {
    margin:24px 0;
}

.film-detail {
    display:grid;
    grid-template-columns:1fr minmax(220px,.8fr);
    gap:30px;
    align-items:center;
    margin:24px 0;
}

.detail-art {
    width:100%;
    border-radius:12px;
    max-height:390px;
    object-fit:cover;
}

.film-facts {
    margin-bottom:19px;
}

.public-copy {
    margin:16px 0;
}

.public-seasons {
    margin:30px 0;
}

.player {
    width:100%;
    aspect-ratio:16/9;
    border:0;
    border-radius:10px;
    background:#080909;
}

.login-box {
    max-width:410px;
    margin:8vh auto;
    padding:28px;
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:13px;
}

.login-box h1 {
    font-size:1.75rem;
    margin:20px 0;
}

.login-box form {
    display:grid;
    gap:16px;
}

@media(min-width:1600px) {
    :root {
        --side-w:240px;
    }

    .card-body {
        padding:15px;
    }

    .cards {
        gap:20px;
    }

}

@media(max-width:1180px) {
    :root {
        --side-w:197px;
    }

    .sidebar>.brand {
        padding:0 22px;
    }

    .side-inner {
        padding-left:11px;
        padding-right:11px;
    }

    .cards,.public-grid {
        gap:12px;
    }

    .card-body {
        padding:9px 10px 11px;
    }

    .card-title {
        font-size:.95rem;
    }

    .card-meta {
        gap:4px;
    }

    .form-layout {
        grid-template-columns:minmax(0,1.45fr) minmax(220px,.8fr);
    }

}

@media(max-width:1000px) {
    .cards,.public-grid {
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .fields {
        gap:12px;
    }

    .form-layout {
        grid-template-columns:1fr;
    }

    .topbar,.workspace main {
        padding-left:22px;
        padding-right:22px;
    }

    .list-item {
        grid-template-columns:minmax(150px,1fr) 65px 45px 105px 28px;
        gap:6px;
    }

}

@media(max-width:760px) {
    :root {
        --side-w:0px;
    }

    .sidebar {
        width:228px;
        transform:translateX(-100%);
        transition:transform .18s;
    }

    .menu-open .sidebar {
        transform:translateX(0);
    }

    .menu-open .screen-shade {
        display:block!important;
        position:fixed;
        inset:0;
        z-index:9;
        background:#0008;
        border:0;
    }

    .mobile-menu {
        display:inline-flex!important;
    }

    .workspace {
        margin:0;
    }

    .topbar {
        height:54px;
        padding:0 14px;
        gap:4px;
    }

    .breadcrumbs {
        font-size:.79rem;
        gap:8px;
    }

    .breadcrumbs>.ico {
        display:none;
    }

    .workspace main {
        padding:23px 17px 36px;
    }

    .site-link {
        font-size:.8rem;
    }

    .page-head {
        margin-bottom:18px;
    }

    .cards,.public-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .card-body {
        padding:10px 12px;
    }

    .art {
        aspect-ratio:1.66;
    }

    .form-layout {
        gap:14px;
    }

    .public-main {
        padding:30px 18px;
    }

    .film-detail {
        grid-template-columns:1fr;
    }

    .panel {
        padding:16px;
    }

    .tree {
        padding:0;
    }

}

@media(max-width:560px) {
    .tools-row {
        display:grid;
        grid-template-columns:minmax(0,1fr) auto;
        gap:9px;
        padding:14px 0;
    }

    .search-box {
        grid-column:1/-1;
        width:100%;
        height:44px;
    }

    .search-box input {
        font-size:1rem;
    }

    .filter-wrap {
        justify-self:start;
    }

    .filter-pop {
        width:min(258px,calc(100vw - 36px));
    }

    .tools-row .btn, .seg {
        min-height:44px;
    }

    .seg button {
        height:36px;
        width:40px;
    }
}

@media(max-width:490px) {

    .topbar {
        padding-right:17px;
    }

    .page-head .primary {
        padding:0 11px;
        font-size:.79rem;
    }

    .page-head {
        gap:8px;
    }

    .head-note {
        font-size:.8rem;
        margin-top:5px;
    }

    .tabs {
        gap:15px;
    }

    .tab {
        font-size:.8rem;
        gap:4px;
    }

    .cards,.public-grid {
        gap:10px;
    }

    .art {
        aspect-ratio:1.4;
    }

    .badge {
        font-size:.65rem;
        min-height:19px;
        padding:1px 6px;
        gap:4px;
    }

    .card-body {
        padding:7px 8px 10px;
    }

    .card-title {
        font-size:.92rem;
    }


    .card-meta {
        font-size:.7rem;
    }

    .fields {
        grid-template-columns:1fr;
    }

    .list-item {
        grid-template-columns:minmax(0,1fr) auto 23px;
    }

    .list-item .column-type,.list-item .column-year {
        display:none;
    }

    .list-thumb {
        width:40px;
        height:31px;
    }

    .list-name {
        gap:7px;
    }

    .stats {
        gap:7px;
    }

    .stat {
        padding:12px;
    }

    .stat span {
        font-size:.74rem;
    }

    .stat b {
        font-size:1.5rem;
    }

    .section-row {
        padding:11px;
        gap:8px;
    }

    .section-row.child {
        padding-left:20px;
    }

    .row-end {
        gap:1px;
    }

}

@media(prefers-reduced-motion:reduce) {
    *,*:before,*:after {
        transition:none!important;
        scroll-behavior:auto!important;
    }

}

.stats>.panel+.panel,.form-layout>.panel+.panel {
    margin-top:0;
}

.draft-notice {
    margin:18px 0;
    padding:10px 14px;
    border-left:3px solid var(--focus);
    background:var(--accent-soft);
    color:var(--accent-text);
}
.draft-notice a { text-decoration:underline; text-underline-offset:3px; }
