:root {
    --page: #f5f7fb;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --ink: #182033;
    --muted: #637083;
    --muted-2: #8b96a8;
    --line: #dfe5ee;
    --line-soft: #edf1f6;
    --blue: #1b66b1;
    --blue-dark: #15569a;
    --blue-soft: #e8f1fc;
    --green: #138a43;
    --green-soft: #e9f8ef;
    --shadow: 0 10px 26px rgba(31, 41, 55, 0.08);
    --radius: 6px;
}

/* Modern operations UI refresh */
:root {
    --page: #f4f7fb;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --ink: #142033;
    --muted: #667389;
    --muted-2: #96a1b2;
    --line: #dce3ed;
    --line-soft: #edf2f7;
    --blue: #1769e0;
    --blue-dark: #0f4fa8;
    --blue-soft: #eaf2ff;
    --green: #159447;
    --green-soft: #e8f8ee;
    --amber: #d98000;
    --amber-soft: #fff4df;
    --shadow: 0 14px 38px rgba(20, 32, 51, 0.08);
    --shadow-soft: 0 1px 2px rgba(20, 32, 51, 0.06);
    --radius: 8px;
}

body {
    background: linear-gradient(180deg, #f7faff 0%, #f1f5fa 46%, #eef3f8 100%);
    color: var(--ink);
}

.app-frame {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--page);
    box-shadow: none;
}

.app-frame .global-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    grid-template-columns: 36px 230px minmax(260px, 1fr) auto;
    height: 60px;
    border-bottom: 1px solid rgba(220, 227, 237, 0.9);
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.app-frame .brand strong {
    font-size: 15px;
    letter-spacing: 0;
}

.brand-mark {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background:
        linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, 0.78) 47% 58%, transparent 60%),
        linear-gradient(135deg, #0f766e, #1769e0 62%, #6b4fe0);
    box-shadow: 0 6px 16px rgba(23, 105, 224, 0.22);
}

.search-box {
    justify-self: stretch;
    width: min(100%, 640px);
    height: 38px;
    border-color: #d8e0eb;
    border-radius: 7px;
    padding: 0 12px;
    background: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-box:focus-within {
    border-color: #a9c7f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.1);
}

.notification-button,
.app-launcher {
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    border-radius: 7px;
}

.notification-button:hover,
.app-launcher:hover,
.logout-button:hover {
    border-color: #d8e0eb;
    background: #f8fafc;
}

.notification-button span {
    top: 3px;
    right: 3px;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    background: #ef4444;
    font-size: 9px;
}

.user-menu {
    height: 36px;
    border-color: #d8e0eb;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.logout-button,
.secondary-button,
.primary-button,
.view-button,
.edit-button {
    border-radius: 7px;
}

.app-body {
    grid-template-columns: 236px minmax(0, 1fr);
    min-height: calc(100vh - 60px);
}

.sidebar {
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 22px 12px 14px;
    border-right: 0;
    background: linear-gradient(180deg, #11243b 0%, #0e2135 52%, #0b1a2a 100%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.sidebar-section {
    gap: 5px;
}

.sidebar-section p {
    margin: 12px 8px 8px;
    color: #9fb1c7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.side-item {
    min-height: 40px;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 0 10px;
    color: #e6edf7;
    font-size: 13px;
    font-weight: 650;
}

.side-item svg {
    width: 18px;
    height: 18px;
    color: #c6d3e4;
}

.side-item:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.side-item.active,
.side-item.active-soft {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(23, 105, 224, 0.94), rgba(42, 91, 193, 0.88));
    box-shadow: 0 10px 26px rgba(12, 39, 86, 0.28);
}

.side-item.active svg,
.side-item.active-soft svg {
    color: #ffffff;
}

.side-item.active::before,
.side-item.active-soft::before {
    position: absolute;
    left: -12px;
    width: 3px;
    height: 24px;
    border-radius: 999px;
    background: #6ee7ff;
    content: "";
}

.side-item.disabled {
    color: #718298;
}

.side-item.disabled svg {
    color: #718298;
}

.side-item.disabled:hover {
    border-color: transparent;
    background: transparent;
}

.side-item small {
    border-color: rgba(255, 255, 255, 0.12);
    color: #8fa1b7;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-divider {
    margin: 18px 8px;
    background: rgba(255, 255, 255, 0.1);
}

.collapse-button {
    min-height: 44px;
    margin: auto 2px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #d4deeb;
    font-size: 12px;
}

.collapse-button svg {
    color: #9fb1c7;
}

.content-shell {
    min-height: calc(100vh - 60px);
    background:
        radial-gradient(circle at 78% 0%, rgba(255, 255, 255, 0.95) 0, rgba(244, 247, 251, 0) 360px),
        var(--page);
}

.command-ribbon {
    position: sticky;
    top: 60px;
    z-index: 20;
    align-items: center;
    min-height: 76px;
    gap: 10px;
    border-bottom: 1px solid rgba(220, 227, 237, 0.9);
    padding: 14px 26px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
}

.command-button {
    display: inline-flex;
    min-width: auto;
    height: 42px;
    grid-template-rows: none;
    gap: 8px;
    border-color: #dbe4ee;
    border-radius: 7px;
    padding: 0 14px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    color: #17243a;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.command-button svg {
    width: 18px;
    height: 18px;
    color: var(--blue);
    stroke-width: 2;
}

.command-button:hover {
    border-color: #a9c7f6;
    background: #f8fbff;
    box-shadow: 0 8px 18px rgba(23, 105, 224, 0.08);
}

.command-button[disabled] {
    background: #f5f7fa;
    box-shadow: none;
}

.page {
    width: min(100%, 1440px);
    padding: 24px 26px 34px;
}

.workspace-header {
    min-height: 52px;
    margin-bottom: 18px;
    gap: 16px;
}

.workspace-header h1 {
    color: #111b2e;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
}

.workspace-header p {
    color: #6b778d;
    font-size: 13px;
}

.metrics-grid {
    grid-template-columns: repeat(5, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.metric {
    min-height: 96px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    border-color: #dde5ef;
    border-radius: 8px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: var(--shadow-soft);
}

.metric:nth-child(2) svg {
    color: #159447;
    background: var(--green-soft);
}

.metric:nth-child(3) svg {
    color: #d98000;
    background: var(--amber-soft);
}

.metric:nth-child(4) svg {
    color: #7c3aed;
    background: #f3ebff;
}

.metric:nth-child(5) svg {
    color: #0f766e;
    background: #e6f6f3;
}

.metric svg {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    padding: 9px;
}

.metric span {
    color: #4e5b70;
    font-size: 12px;
}

.metric strong {
    margin: 5px 0 0;
    font-size: 30px;
    font-weight: 800;
}

.metric small {
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
}

.workspace-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 18px;
}

.panel,
.form-card {
    border-color: #dce4ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.panel-header,
.form-card-header {
    min-height: 58px;
    border-bottom-color: #e8edf4;
    padding: 14px 16px;
}

.panel-header h2,
.form-card-header h2 {
    color: #17243a;
    font-size: 16px;
    font-weight: 800;
}

.view-button,
.edit-button {
    min-height: 32px;
    border-color: #dbe4ee;
    background: #ffffff;
    color: #1c2c45;
    font-size: 12px;
}

table {
    background: #ffffff;
}

th,
td {
    padding: 12px 16px;
}

th {
    color: #5f6d82;
    background: #f7f9fc;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
}

td {
    color: #1c2c45;
    font-size: 13px;
}

tbody tr:hover td {
    background: #fbfdff;
}

td small {
    color: #6e7b90;
    font-size: 11px;
}

.film-thumb {
    width: 34px;
    height: 46px;
    border-radius: 5px;
    background: linear-gradient(145deg, #10233b, #1769e0 58%, #ff9f1a);
    box-shadow: 0 8px 16px rgba(20, 32, 51, 0.14);
}

.film-cell strong {
    font-size: 13px;
}

.status-pill {
    min-height: 24px;
    border-radius: 7px;
    padding: 0 9px;
    font-size: 11px;
}

.table-footer {
    min-height: 50px;
    padding: 10px 16px;
    font-size: 12px;
}

.pager button,
.row-more {
    border-radius: 7px;
}

.action-list {
    gap: 10px;
    padding: 12px;
}

.action-tile,
.report-link,
.compact-row,
.property-card {
    border-color: #dfe6ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.action-tile {
    min-height: 62px;
    grid-template-columns: 38px minmax(0, 1fr) 14px;
    padding: 10px 11px;
}

.action-tile:hover,
.report-link:hover,
.compact-row:hover,
.property-card:hover {
    border-color: #a9c7f6;
    background: #fbfdff;
}

.action-tile > svg:first-child,
.report-link > svg:first-child,
.compact-row > svg:first-child,
.property-card > svg:first-child {
    border-radius: 8px;
}

.action-tile strong,
.report-link span {
    font-size: 13px;
}

.action-tile small {
    color: #6b778d;
    font-size: 11px;
}

.module-form {
    gap: 16px;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 16px 18px;
    padding: 18px;
}

.form-field {
    gap: 7px;
}

.form-field span {
    color: #34445c;
    font-size: 12px;
}

.form-control {
    min-height: 40px;
    border-color: #d9e1ec;
    border-radius: 7px;
    padding: 8px 10px;
    color: #17243a;
    background: #ffffff;
    font-size: 13px;
}

.form-control:hover {
    border-color: #c5d1df;
}

.form-control:focus {
    border-color: #8ab8f8;
    box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.11);
}

.form-choice-list,
.selected-token-bar,
.creator-option-list {
    border-color: #d9e1ec;
    border-radius: 7px;
}

.selected-token {
    border-radius: 999px;
    background: #eaf2ff;
}

.creator-option {
    border-radius: 6px;
}

.form-command-bar {
    z-index: 15;
    border-color: #dce4ee;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 -8px 28px rgba(20, 32, 51, 0.08);
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid var(--blue);
    padding: 0 14px;
    color: #ffffff;
    background: var(--blue);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.primary-button:hover {
    border-color: var(--blue-dark);
    background: var(--blue-dark);
}

.secondary-button {
    min-height: 38px;
    border-color: #dbe4ee;
    padding: 0 14px;
    box-shadow: var(--shadow-soft);
    font-size: 13px;
}

.message,
.alert {
    border-radius: 8px;
}

.empty-state {
    padding: 46px 18px;
}

.empty-state svg {
    width: 42px;
    height: 42px;
    color: var(--muted-2);
}

@media (max-width: 1180px) {
    .app-body {
        grid-template-columns: 216px minmax(0, 1fr);
    }

    .metrics-grid {
        grid-template-columns: repeat(3, minmax(170px, 1fr));
    }

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

@media (max-width: 760px) {
    .app-frame .global-bar {
        position: static;
        grid-template-columns: 36px minmax(0, 1fr);
        height: auto;
        gap: 10px;
        padding: 10px 12px;
    }

    .app-frame .search-box,
    .app-frame .global-actions {
        grid-column: 1 / -1;
    }

    .app-launcher,
    .global-actions {
        display: flex;
    }

    .app-body {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        padding: 12px;
    }

    .collapse-button {
        display: none;
    }

    .command-ribbon {
        top: 0;
        min-height: 62px;
        padding: 10px 12px;
    }

    .command-button {
        height: 38px;
        padding: 0 12px;
    }

    .page {
        padding: 16px 12px 24px;
    }

    .workspace-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .workspace-header h1 {
        font-size: 24px;
    }

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

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: #111827;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

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

button,
input {
    font: inherit;
}

.icon-sprite {
    display: none;
}

svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.app-frame {
    min-height: calc(100vh - 24px);
    margin: 12px auto;
    width: min(1720px, calc(100vw - 10px));
    overflow: hidden;
    border: 1px solid #202938;
    border-radius: 8px;
    background: var(--page);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.global-bar {
    display: grid;
    grid-template-columns: 34px 250px minmax(260px, 1fr) auto;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 14px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.app-launcher,
.notification-button,
.logout-button,
.row-more {
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.app-launcher {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: var(--radius);
}

.app-launcher:hover,
.notification-button:hover,
.logout-button:hover,
.row-more:hover {
    background: var(--panel-soft);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.brand-mark {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background:
        linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, 0.75) 49% 58%, transparent 59%),
        linear-gradient(135deg, #1493b8, #1d5ea8);
}

.brand strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-box {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(100%, 520px);
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 0 10px;
    background: #fbfcfe;
    color: var(--muted);
}

.search-box svg {
    width: 15px;
    height: 15px;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
}

.global-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.notification-button {
    position: relative;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: var(--radius);
}

.notification-button span {
    position: absolute;
    top: 4px;
    right: 4px;
    display: grid;
    width: 13px;
    height: 13px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--blue);
    font-size: 9px;
    font-weight: 700;
}

.user-menu {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 0 12px;
    background: #ffffff;
    font-size: 13px;
}

.logout-button {
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 0 11px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 0 13px;
    color: var(--ink);
    background: #ffffff;
    cursor: pointer;
    font-weight: 700;
}

.secondary-button:hover {
    background: var(--panel-soft);
}

.app-body {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: calc(100vh - 70px);
}

.sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px 8px 10px;
    background: #fbfcfe;
    border-right: 1px solid var(--line);
}

.sidebar-section {
    display: grid;
    gap: 4px;
}

.sidebar-section p {
    margin: 8px 6px 6px;
    color: #39475c;
    font-size: 11px;
}

.side-item {
    position: relative;
    display: grid;
    grid-template-columns: 19px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-height: 33px;
    border-radius: 5px;
    padding: 0 7px;
    color: #2d3748;
    font-size: 12px;
}

.side-item svg {
    width: 15px;
    height: 15px;
}

.side-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-item.active {
    color: var(--blue-dark);
    background: var(--blue-soft);
    font-weight: 700;
}

.side-item.active::before {
    position: absolute;
    left: -8px;
    width: 3px;
    height: 24px;
    border-radius: 2px;
    background: var(--blue);
    content: "";
}

.side-item.active-soft {
    color: var(--blue-dark);
    background: var(--blue-soft);
    font-weight: 700;
}

.side-item:hover {
    background: var(--panel-soft);
}

.side-item.disabled {
    color: #9aa4b3;
    cursor: default;
}

.side-item.disabled:hover {
    background: transparent;
}

.side-item small {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1px 4px;
    color: #7b8798;
    font-size: 8px;
    line-height: 1.4;
}

.sidebar-divider {
    height: 1px;
    margin: 13px 6px;
    background: var(--line);
}

.collapse-button {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    margin-top: auto;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 12px 6px 0;
    background: transparent;
    color: #4b5565;
    cursor: pointer;
    font-size: 11px;
}

.content-shell {
    min-width: 0;
    background: radial-gradient(circle at 80% 0%, #ffffff 0, var(--page) 300px);
}

.command-ribbon {
    display: flex;
    gap: 8px;
    min-height: 96px;
    padding: 12px 16px;
    overflow-x: auto;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.command-button {
    display: grid;
    grid-template-rows: 35px 20px;
    place-items: center;
    min-width: 84px;
    height: 64px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
}

.command-button svg {
    width: 25px;
    height: 25px;
    color: #174a88;
    stroke-width: 1.7;
}

.command-button:hover {
    border-color: #bfd4ef;
    background: #f7fbff;
}

.command-button[disabled] {
    color: #9aa4b3;
    cursor: default;
}

.command-button[disabled] svg {
    color: #9aa4b3;
}

.page {
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 18px 16px 24px;
}

.workspace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.workspace-header h1 {
    margin: 0 0 3px;
    font-size: 26px;
    line-height: 1.1;
}

.workspace-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 12px;
}

.metric {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 9px;
    min-height: 72px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 13px 14px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.metric svg {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    padding: 7px;
    color: var(--blue);
    background: var(--blue-soft);
}

.metric span,
.metric small {
    display: block;
    color: var(--muted);
}

.metric span {
    font-size: 11px;
    font-weight: 700;
}

.metric strong {
    display: inline-block;
    margin-right: 8px;
    font-size: 30px;
    line-height: 1;
}

.metric small {
    margin-top: 1px;
    font-size: 9px;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 196px;
    gap: 14px;
}

.panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45px;
    border-bottom: 1px solid var(--line-soft);
    padding: 10px 13px;
}

.panel-header h2 {
    margin: 0;
    font-size: 14px;
}

.view-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 0 10px;
    background: #ffffff;
    color: #263246;
    font-size: 11px;
    font-weight: 600;
}

.view-button svg {
    width: 13px;
    height: 13px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 12px;
    text-align: left;
    vertical-align: middle;
}

th {
    color: #4e5b70;
    background: #fbfcfe;
    font-size: 10px;
    font-weight: 700;
}

td {
    color: #182033;
    font-size: 12px;
}

td small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.film-cell {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 250px;
}

.film-thumb {
    display: grid;
    flex: 0 0 auto;
    width: 28px;
    height: 38px;
    place-items: center;
    border-radius: 4px;
    color: #ffffff;
    background: linear-gradient(135deg, #163b7a, #d3652b);
    font-size: 11px;
    font-weight: 800;
}

.film-cell strong {
    display: block;
    max-width: 330px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-pill {
    display: inline-flex;
    min-height: 20px;
    align-items: center;
    border: 1px solid #bfe8c9;
    border-radius: 5px;
    padding: 0 8px;
    color: var(--green);
    background: var(--green-soft);
    font-size: 10px;
    font-weight: 700;
}

.row-more {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 5px;
}

.row-more svg {
    width: 14px;
    height: 14px;
}

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 8px 12px;
    color: var(--muted);
    font-size: 10px;
}

.pager {
    display: flex;
    gap: 4px;
}

.pager button {
    min-width: 28px;
    height: 26px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #ffffff;
    color: #354155;
    cursor: pointer;
    font-size: 11px;
}

.pager button.active {
    border-color: var(--blue);
    color: #ffffff;
    background: var(--blue);
}

.action-panel {
    align-self: start;
}

.action-list {
    display: grid;
    gap: 8px;
    padding: 9px;
}

.action-tile,
.report-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 7px 8px;
    background: #fbfcfe;
}

.action-tile:hover,
.report-link:hover {
    border-color: #bfd4ef;
    background: #f7fbff;
}

.action-tile > svg:first-child,
.report-link > svg:first-child {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    padding: 6px;
    color: var(--blue);
    background: var(--blue-soft);
}

.row-action-cell {
    width: 1%;
    white-space: nowrap;
}

.edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 0 10px;
    background: #ffffff;
    color: #263246;
    font-size: 11px;
    font-weight: 700;
}

.edit-button:hover {
    border-color: #bfd4ef;
    background: #f7fbff;
}

.action-tile strong,
.action-tile small,
.report-link span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-tile strong,
.report-link span {
    font-size: 11px;
    font-weight: 700;
}

.action-tile small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.action-arrow {
    width: 13px;
    height: 13px;
    color: #4c5b70;
}

.report-link {
    grid-template-columns: 24px minmax(0, 1fr) 14px;
    min-height: 36px;
    background: #ffffff;
}

.report-link > svg:first-child {
    width: 22px;
    height: 22px;
    padding: 2px;
    background: transparent;
    color: #536173;
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 42px 16px;
    color: var(--muted);
    text-align: center;
}

.module-page-header {
    margin-bottom: 16px;
}

.record-count {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.message-stack {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.message {
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 10px 12px;
    background: #ffffff;
    color: var(--ink);
    font-size: 13px;
}

.message.success {
    border-color: #bfe8c9;
    color: var(--green);
    background: var(--green-soft);
}

.module-form {
    display: grid;
    gap: 12px;
}

.form-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.form-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line-soft);
    padding: 14px 16px;
}

.form-card-header svg {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    padding: 8px;
    color: var(--blue);
    background: var(--blue-soft);
}

.form-card-header h2,
.form-card-header p {
    margin: 0;
}

.form-card-header h2 {
    font-size: 16px;
}

.form-card-header p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 14px 18px;
    padding: 16px;
}

.form-field {
    display: grid;
    gap: 6px;
}

.form-field span {
    color: #354155;
    font-size: 12px;
    font-weight: 700;
}

.field-label-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.field-action-link {
    background: transparent;
    border: 0;
    color: var(--blue);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 0;
    text-decoration: none;
    white-space: nowrap;
}

.field-action-link:hover {
    text-decoration: underline;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-control {
    width: 100%;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 7px 9px;
    background: #ffffff;
    color: var(--ink);
    font-size: 13px;
}

.form-choice-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 7px;
    background: #ffffff;
}

.form-choice-list div {
    display: contents;
}

.form-choice-list label {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    padding: 5px 9px;
    background: #f7f9fc;
    color: #354155;
    font-size: 12px;
    font-weight: 700;
}

.form-choice-list input {
    margin: 0;
}

.form-choice-list label:has(input:checked) {
    border-color: #b9d7f6;
    background: #e8f2ff;
    color: #17456f;
}

textarea.form-control {
    resize: vertical;
}

.enhanced-select-hidden {
    display: none;
}

.creator-picker {
    display: grid;
    gap: 8px;
}

.selected-token-bar {
    align-items: center;
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 36px;
    padding: 6px;
}

.selected-token-bar.is-empty {
    display: none;
}

.selected-token {
    align-items: center;
    background: #e8f2ff;
    border: 1px solid #b9d7f6;
    border-radius: 999px;
    color: #17456f;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    max-width: 100%;
    padding: 5px 8px;
}

.selected-token span {
    color: #17456f;
    font-size: 13px;
    line-height: 1;
}

.searchable-select-search {
    margin: 0;
}

.creator-option-list {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 5px;
    display: grid;
    max-height: 210px;
    overflow-y: auto;
    padding: 4px;
}

.creator-option {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: var(--ink);
    cursor: pointer;
    display: grid;
    font-size: 13px;
    grid-template-columns: 22px 1fr;
    min-height: 30px;
    padding: 5px 7px;
    text-align: left;
}

.creator-option:hover {
    background: #f3f7fb;
}

.creator-option.is-selected {
    background: #e8f2ff;
    color: #17456f;
    font-weight: 700;
}

.creator-option-check {
    color: var(--blue);
    font-weight: 800;
}

.creator-option-empty {
    color: var(--muted);
    font-size: 12px;
    padding: 8px;
}

.form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(27, 102, 177, 0.12);
    outline: 0;
}

.field-error {
    color: #b42318;
    font-size: 11px;
}

.form-command-bar {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.inline-formset {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.inline-formset-head,
.inline-formset-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 1fr);
    gap: 12px;
    align-items: start;
}

.inline-formset-head {
    color: #4e5b70;
    font-size: 10px;
    font-weight: 700;
}

.inline-formset-row {
    border-top: 1px solid var(--line-soft);
    padding-top: 8px;
}

.inline-delete {
    display: flex;
    min-height: 34px;
    align-items: center;
}

.fixed-week-cell {
    display: flex;
    align-items: center;
    min-height: 34px;
}

.fixed-week-label {
    color: #263246;
    font-size: 13px;
    font-weight: 700;
}

.inline-row-error {
    grid-column: 1 / -1;
    font-size: 11px;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.wide-table-wrap {
    overflow-x: auto;
}

.booking-schedule-grid {
    display: grid;
    gap: 0;
    padding: 16px;
}

.booking-schedule-head,
.booking-schedule-row {
    display: grid;
    grid-template-columns:
        minmax(180px, 1.3fr)
        minmax(132px, 0.9fr)
        minmax(112px, 0.7fr)
        minmax(150px, 1fr)
        minmax(150px, 1fr)
        minmax(180px, 1.2fr)
        minmax(74px, 0.5fr);
    gap: 10px;
    align-items: start;
}

.booking-schedule-head {
    color: #5f6d82;
    font-size: 11px;
    font-weight: 800;
    padding-bottom: 8px;
}

.booking-schedule-row {
    border-top: 1px solid var(--line-soft);
    padding: 10px 0;
}

.booking-schedule-row label {
    display: grid;
    gap: 5px;
}

.booking-schedule-row label > span {
    display: none;
    color: #5f6d82;
    font-size: 11px;
    font-weight: 800;
}

.booking-schedule-row textarea {
    min-height: 38px;
}

.delete-check {
    display: flex;
    gap: 6px;
    align-items: center;
    color: #4e5b70;
    font-size: 12px;
}

.import-error-list {
    display: grid;
    gap: 8px;
    padding: 16px;
}

@media (max-width: 960px) {
    .booking-schedule-head {
        display: none;
    }

    .booking-schedule-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .booking-schedule-row label > span {
        display: inline;
    }
}

.empty-state svg {
    width: 34px;
    height: 34px;
    color: var(--blue);
}

.public-shell {
    min-height: 100vh;
    background: #f6f3ee;
}

.public-shell .global-bar {
    grid-template-columns: minmax(180px, 1fr) auto;
    height: 58px;
    padding: 0 clamp(16px, 4vw, 58px);
    border-bottom: 1px solid #ded8cf;
    background: rgba(255, 252, 247, 0.96);
}

.public-shell .page {
    width: min(1180px, 100%);
    padding: 0 clamp(16px, 4vw, 42px) 42px;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #463b32;
    font-size: 13px;
    font-weight: 700;
}

.public-hero {
    display: flex;
    align-items: flex-end;
    min-height: 220px;
    padding: 48px 0 32px;
    color: #211b18;
}

.public-kicker {
    margin: 0 0 8px;
    color: #8b3f25;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.public-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: 76px;
    line-height: 0.95;
}

.public-film-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
}

.public-film-card {
    display: grid;
    overflow: hidden;
    border: 1px solid #ded8cf;
    border-radius: 6px;
    background: #fffdf8;
    box-shadow: 0 12px 26px rgba(44, 34, 25, 0.08);
}

.public-film-card:hover {
    border-color: #bd6f43;
    transform: translateY(-2px);
}

.public-film-card img,
.public-poster-placeholder {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background:
        linear-gradient(145deg, rgba(34, 27, 24, 0.2), rgba(139, 63, 37, 0.18)),
        linear-gradient(135deg, #221b18, #82563d 58%, #d8b86e);
}

.public-poster-placeholder {
    display: grid;
    place-items: center;
    color: #fff8ed;
}

.public-poster-placeholder span {
    font-size: 72px;
    font-weight: 900;
}

.public-film-card-body {
    display: grid;
    gap: 5px;
    min-height: 112px;
    padding: 13px;
}

.public-film-card-body strong,
.public-film-card-body small {
    display: block;
}

.public-film-card-body strong {
    color: #221b18;
    font-size: 17px;
    line-height: 1.15;
}

.public-film-card-body small {
    color: #71655b;
    font-size: 12px;
    line-height: 1.35;
}

.public-empty {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
    border: 1px solid #ded8cf;
    border-radius: 6px;
    padding: 32px;
    background: #fffdf8;
    color: #71655b;
}

.public-empty strong {
    color: #221b18;
    font-size: 22px;
}

.public-film-detail {
    padding-top: 34px;
}

.public-film-head {
    display: grid;
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    gap: clamp(22px, 5vw, 54px);
    align-items: end;
    padding-bottom: 34px;
}

.public-detail-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    border: 1px solid #ded8cf;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 22px 45px rgba(44, 34, 25, 0.18);
}

.public-film-copy h1 {
    margin: 10px 0 8px;
    color: #221b18;
    font-size: 72px;
    line-height: 0.98;
}

.public-back-link {
    color: #8b3f25;
    font-size: 13px;
    font-weight: 800;
}

.public-original-title,
.public-tagline {
    margin: 0 0 12px;
    color: #71655b;
}

.public-tagline {
    max-width: 760px;
    color: #463b32;
    font-size: 20px;
    line-height: 1.35;
}

.public-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
}

.public-facts div {
    min-width: 112px;
    border: 1px solid #ded8cf;
    border-radius: 6px;
    padding: 9px 11px;
    background: #fffdf8;
}

.public-facts dt {
    color: #8b3f25;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.public-facts dd {
    margin: 3px 0 0;
    color: #221b18;
    font-size: 14px;
    font-weight: 700;
}

.public-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
    gap: 22px;
}

.public-main-column,
.public-side-column,
.public-trailer-list,
.public-material-list,
.public-release-list {
    display: grid;
    gap: 14px;
}

.public-section {
    border-top: 1px solid #ded8cf;
    padding-top: 16px;
}

.public-section h2 {
    margin: 0 0 12px;
    color: #221b18;
    font-size: 20px;
}

.public-rich-text {
    color: #463b32;
    font-size: 15px;
    line-height: 1.65;
}

.public-rich-text p {
    margin: 0 0 12px;
}

.public-creator-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.public-creator-list div {
    border: 1px solid #ded8cf;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fffdf8;
}

.public-creator-list dt {
    color: #8b3f25;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.public-creator-list dd {
    margin: 4px 0 0;
    color: #221b18;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.public-info-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.public-info-list-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
}

.public-info-list div {
    border: 1px solid #ded8cf;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fffdf8;
}

.public-info-list dt {
    color: #8b3f25;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.public-info-list dd {
    margin: 4px 0 0;
    color: #221b18;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.public-trailer {
    display: grid;
    gap: 10px;
    border: 1px solid #ded8cf;
    border-radius: 6px;
    padding: 12px;
    background: #fffdf8;
}

.public-trailer strong,
.public-trailer small {
    display: block;
}

.public-trailer small {
    margin-top: 3px;
    color: #71655b;
}

.public-trailer video {
    width: 100%;
    max-height: 440px;
    border-radius: 5px;
    background: #221b18;
}

.public-material-list a,
.public-release-list span {
    border: 1px solid #ded8cf;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fffdf8;
    color: #463b32;
    font-size: 13px;
    font-weight: 700;
}

.login-shell {
    display: grid;
    min-height: calc(100vh - 110px);
    place-items: center;
}

.login-panel {
    width: min(430px, 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.login-panel h1 {
    margin: 0 0 8px;
}

.login-panel p {
    margin: 0 0 22px;
    color: var(--muted);
}

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

.form-stack label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.form-stack input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 8px 10px;
    color: var(--ink);
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid var(--blue);
    border-radius: 5px;
    padding: 0 13px;
    color: #ffffff;
    background: var(--blue);
    cursor: pointer;
    font-weight: 700;
}

.header-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.material-grid,
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.compact-list {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.compact-row,
.property-card {
    display: grid;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fbfcfe;
}

.compact-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    min-height: 50px;
    padding: 8px;
}

.compact-row svg,
.property-card > svg:first-child {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    padding: 6px;
    color: var(--blue);
    background: var(--blue-soft);
}

.compact-row strong,
.compact-row small,
.property-card strong,
.property-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-row strong,
.property-card strong {
    font-size: 12px;
}

.compact-row small,
.property-card small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.property-card {
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    gap: 10px;
    min-height: 76px;
    padding: 12px;
}

.property-card:hover {
    border-color: #bfd4ef;
    background: #f7fbff;
}

.alert {
    margin-bottom: 16px;
    border: 1px solid #fecdca;
    border-radius: 5px;
    padding: 12px;
    color: #b42318;
    background: #fffbfa;
}

@media (max-width: 1100px) {
    .app-body {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .global-bar {
        grid-template-columns: 34px 210px minmax(220px, 1fr) auto;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

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

@media (max-width: 760px) {
    .app-frame {
        width: 100vw;
        min-height: 100vh;
        margin: 0;
        border: 0;
        border-radius: 0;
    }

    .global-bar,
    .app-body {
        grid-template-columns: 1fr;
        height: auto;
    }

    .app-launcher,
    .global-actions {
        display: none;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .command-ribbon {
        min-height: 86px;
    }

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

    .material-grid,
    .property-grid {
        grid-template-columns: 1fr;
    }

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

    .public-info-list-wide {
        grid-template-columns: 1fr;
    }

    .public-shell .global-bar {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 16px;
    }

    .public-nav {
        justify-content: flex-start;
    }

    .public-hero h1,
    .public-film-copy h1 {
        font-size: 42px;
    }

    table {
        display: block;
        overflow-x: auto;
    }
}

/* Modern operations UI final cascade */
body {
    background: linear-gradient(180deg, #f7faff 0%, #f1f5fa 46%, #eef3f8 100%);
}

.app-frame {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--page);
    box-shadow: none;
}

.app-frame .global-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    grid-template-columns: 36px 230px minmax(260px, 1fr) auto;
    height: 60px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(220, 227, 237, 0.9);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.app-body {
    grid-template-columns: 236px minmax(0, 1fr);
    min-height: calc(100vh - 60px);
}

.sidebar {
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 22px 12px 14px;
    border-right: 0;
    background: linear-gradient(180deg, #11243b 0%, #0e2135 52%, #0b1a2a 100%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.sidebar-section p {
    color: #9fb1c7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.side-item {
    min-height: 40px;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 0 10px;
    color: #e6edf7;
    font-size: 13px;
    font-weight: 650;
}

.side-item svg {
    width: 18px;
    height: 18px;
    color: #c6d3e4;
}

.side-item:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.side-item.active,
.side-item.active-soft {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(23, 105, 224, 0.94), rgba(42, 91, 193, 0.88));
    box-shadow: 0 10px 26px rgba(12, 39, 86, 0.28);
}

.side-item.active svg,
.side-item.active-soft svg {
    color: #ffffff;
}

.side-item.active::before,
.side-item.active-soft::before {
    position: absolute;
    left: -12px;
    width: 3px;
    height: 24px;
    border-radius: 999px;
    background: #6ee7ff;
    content: "";
}

.side-item.disabled,
.side-item.disabled svg {
    color: #718298;
}

.side-item.disabled:hover {
    border-color: transparent;
    background: transparent;
}

.side-item small {
    border-color: rgba(255, 255, 255, 0.12);
    color: #8fa1b7;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-divider,
.collapse-button {
    border-color: rgba(255, 255, 255, 0.1);
}

.sidebar-divider {
    background: rgba(255, 255, 255, 0.1);
}

.collapse-button {
    color: #d4deeb;
}

.content-shell {
    min-height: calc(100vh - 60px);
    background:
        radial-gradient(circle at 78% 0%, rgba(255, 255, 255, 0.95) 0, rgba(244, 247, 251, 0) 360px),
        var(--page);
}

.command-ribbon {
    position: sticky;
    top: 60px;
    z-index: 20;
    align-items: center;
    min-height: 76px;
    gap: 10px;
    padding: 14px 26px;
    border-bottom: 1px solid rgba(220, 227, 237, 0.9);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
}

.command-button {
    display: inline-flex;
    min-width: auto;
    height: 42px;
    grid-template-rows: none;
    gap: 8px;
    border-color: #dbe4ee;
    border-radius: 7px;
    padding: 0 14px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    color: #17243a;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.command-button svg {
    width: 18px;
    height: 18px;
    color: var(--blue);
    stroke-width: 2;
}

.command-button:hover {
    border-color: #a9c7f6;
    background: #f8fbff;
    box-shadow: 0 8px 18px rgba(23, 105, 224, 0.08);
}

.page {
    width: min(100%, 1440px);
    padding: 24px 26px 34px;
}

.workspace-header {
    min-height: 52px;
    margin-bottom: 18px;
    gap: 16px;
}

.workspace-header h1 {
    color: #111b2e;
    font-size: 28px;
    font-weight: 800;
}

.metrics-grid {
    grid-template-columns: repeat(5, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.metric {
    min-height: 96px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    border-color: #dde5ef;
    border-radius: 8px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: var(--shadow-soft);
}

.metric svg {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    padding: 9px;
}

.metric strong {
    margin: 5px 0 0;
    font-size: 30px;
    font-weight: 800;
}

.workspace-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 18px;
}

.panel,
.form-card,
.compact-row,
.property-card,
.action-tile,
.report-link {
    border-color: #dce4ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.panel-header,
.form-card-header {
    min-height: 58px;
    border-bottom-color: #e8edf4;
    padding: 14px 16px;
}

.panel-header h2,
.form-card-header h2 {
    color: #17243a;
    font-size: 16px;
    font-weight: 800;
}

th,
td {
    padding: 12px 16px;
}

th {
    color: #5f6d82;
    background: #f7f9fc;
    font-size: 11px;
    text-transform: none;
}

td {
    color: #1c2c45;
    font-size: 13px;
}

tbody tr:hover td {
    background: #fbfdff;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 16px 18px;
    padding: 18px;
}

.form-control {
    min-height: 40px;
    border-color: #d9e1ec;
    border-radius: 7px;
    padding: 8px 10px;
    color: #17243a;
    background: #ffffff;
    font-size: 13px;
}

.form-command-bar {
    z-index: 15;
    border-color: #dce4ee;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 -8px 28px rgba(20, 32, 51, 0.08);
}

.primary-button {
    border-color: var(--blue);
    color: #ffffff;
    background: var(--blue);
}

.primary-button:hover {
    border-color: var(--blue-dark);
    background: var(--blue-dark);
}

@media (max-width: 1180px) {
    .app-body {
        grid-template-columns: 216px minmax(0, 1fr);
    }

    .metrics-grid {
        grid-template-columns: repeat(3, minmax(170px, 1fr));
    }

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

@media (max-width: 760px) {
    .app-frame .global-bar {
        position: static;
        grid-template-columns: 36px minmax(0, 1fr);
        height: auto;
        gap: 10px;
        padding: 10px 12px;
    }

    .app-frame .search-box,
    .app-frame .global-actions {
        grid-column: 1 / -1;
    }

    .app-launcher,
    .global-actions {
        display: flex;
    }

    .app-body,
    .metrics-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        padding: 12px;
    }

    .collapse-button {
        display: none;
    }

    .command-ribbon {
        top: 0;
        min-height: 62px;
        padding: 10px 12px;
    }

    .page {
        padding: 16px 12px 24px;
    }
}

.command-back-button {
    border-color: #c8d6e8;
    background: #f8fafc;
    color: #24344e;
}

.command-back-button::after {
    width: 1px;
    height: 26px;
    margin-left: 6px;
    background: #dce4ee;
    content: "";
}

.command-back-icon {
    transform: rotate(180deg);
}

.command-back-button:hover {
    border-color: #a9c7f6;
    background: #eef5ff;
}

/* New Magic Films brand cascade */
:root {
    --nmf-deep-cinematic-black: #050607;
    --nmf-theatre-black: #0c0c0c;
    --nmf-cinematic-gold: #c9a24d;
    --nmf-gold-highlight: #fce490;
    --nmf-gold-shadow: #8a5c12;
    --nmf-warm-ivory: #f6e8c4;
    --nmf-silver-mist: #c8c8c8;
    --nmf-projection-blue-black: #101820;
    --nmf-black: #050505;
    --nmf-gold: #D89C24;
    --nmf-gold-light: #FFF1A8;
    --nmf-gold-dark: #8C5B11;
    --nmf-cream: #FFF8DC;
    --nmf-font-display: "Cinzel", "Trajan Pro", Georgia, serif;
    --nmf-font-sans: "Aptos", Arial, Helvetica, sans-serif;
    --nmf-font-body: Calibri, "Aptos", Arial, sans-serif;

    --page: #f4f6f8;
    --panel: #ffffff;
    --panel-soft: #f8f9fb;
    --ink: #101820;
    --muted: #627080;
    --muted-2: #8b96a3;
    --line: rgba(16, 24, 32, 0.14);
    --line-soft: rgba(16, 24, 32, 0.08);
    --blue: var(--nmf-cinematic-gold);
    --blue-dark: var(--nmf-gold-shadow);
    --blue-soft: rgba(201, 162, 77, 0.14);
    --amber: var(--nmf-cinematic-gold);
    --amber-soft: rgba(252, 228, 144, 0.22);
    --shadow: 0 16px 42px rgba(5, 6, 7, 0.12);
    --shadow-soft: 0 1px 2px rgba(5, 6, 7, 0.07);
    --radius: 8px;
}

html,
body {
    font-family: var(--nmf-font-body);
}

body {
    background:
        linear-gradient(180deg, rgba(16, 24, 32, 0.05) 0%, rgba(244, 246, 248, 0) 280px),
        #f4f6f8;
    color: var(--nmf-projection-blue-black);
}

.app-frame {
    background: #f4f6f8;
}

.app-body,
.content-shell,
.page {
    min-width: 0;
}

.app-frame .global-bar,
.public-shell .global-bar {
    border-bottom: 1px solid rgba(201, 162, 77, 0.28);
    background:
        radial-gradient(circle at 22% 0%, rgba(201, 162, 77, 0.16), transparent 34%),
        linear-gradient(90deg, var(--nmf-deep-cinematic-black) 0%, var(--nmf-projection-blue-black) 100%);
    color: var(--nmf-warm-ivory);
    box-shadow: 0 12px 32px rgba(5, 6, 7, 0.22);
}

.app-frame .global-bar {
    grid-template-columns: 36px 270px minmax(260px, 1fr) auto;
    height: 72px;
}

.public-shell .global-bar {
    min-height: 76px;
}

.brand {
    min-width: 0;
    color: var(--nmf-warm-ivory);
    text-decoration: none;
}

.brand-logo {
    display: block;
    flex: 0 0 auto;
    width: auto;
    object-fit: contain;
}

.brand-logo-app {
    height: 50px;
    max-width: 92px;
}

.brand-logo-public {
    height: 54px;
    max-width: 98px;
}

.brand-product {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-left: 1px solid rgba(201, 162, 77, 0.45);
    padding-left: 12px;
    color: var(--nmf-warm-ivory);
    font-family: var(--nmf-font-sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-mark {
    background: var(--nmf-cinematic-gold);
    box-shadow: none;
}

.app-launcher,
.notification-button,
.logout-button,
.user-menu {
    color: var(--nmf-warm-ivory);
}

.app-launcher:hover,
.notification-button:hover,
.logout-button:hover {
    border-color: rgba(201, 162, 77, 0.42);
    background: rgba(246, 232, 196, 0.08);
}

.notification-button span {
    border-color: var(--nmf-projection-blue-black);
    background: var(--nmf-cinematic-gold);
    color: var(--nmf-deep-cinematic-black);
}

.user-menu,
.logout-button {
    border-color: rgba(201, 162, 77, 0.28);
    background: rgba(246, 232, 196, 0.08);
}

.search-box {
    border-color: rgba(201, 162, 77, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: var(--nmf-warm-ivory);
}

.search-box svg,
.search-box input,
.search-box input::placeholder {
    color: rgba(246, 232, 196, 0.72);
}

.search-box:focus-within {
    border-color: var(--nmf-cinematic-gold);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.18);
}

.sidebar {
    border-right: 1px solid rgba(201, 162, 77, 0.2);
    background:
        linear-gradient(180deg, var(--nmf-projection-blue-black) 0%, var(--nmf-deep-cinematic-black) 100%);
    color: var(--nmf-warm-ivory);
    box-shadow: 10px 0 28px rgba(5, 6, 7, 0.14);
}

.sidebar-section p,
.side-item small {
    color: rgba(246, 232, 196, 0.56);
}

.side-item {
    color: rgba(246, 232, 196, 0.82);
}

.side-item svg {
    color: var(--nmf-silver-mist);
}

.side-item:hover {
    background: rgba(246, 232, 196, 0.08);
    color: var(--nmf-warm-ivory);
}

.side-item.active,
.side-item.active-soft {
    border-color: rgba(201, 162, 77, 0.54);
    background:
        linear-gradient(90deg, rgba(201, 162, 77, 0.2), rgba(201, 162, 77, 0.08));
    color: var(--nmf-warm-ivory);
    box-shadow: inset 3px 0 0 var(--nmf-cinematic-gold);
}

.side-item.active svg,
.side-item.active-soft svg {
    color: var(--nmf-gold-highlight);
}

.side-item.disabled {
    color: rgba(246, 232, 196, 0.38);
}

.sidebar-divider {
    background: rgba(201, 162, 77, 0.18);
}

.collapse-button {
    border-color: rgba(201, 162, 77, 0.24);
    background: rgba(246, 232, 196, 0.06);
    color: rgba(246, 232, 196, 0.78);
}

.command-ribbon {
    top: 72px;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    border-bottom: 1px solid rgba(201, 162, 77, 0.22);
    background:
        linear-gradient(90deg, rgba(5, 6, 7, 0.97), rgba(16, 24, 32, 0.95));
    box-shadow: 0 10px 24px rgba(5, 6, 7, 0.16);
}

.command-button {
    flex: 0 1 auto;
    border-color: rgba(201, 162, 77, 0.32);
    background: rgba(246, 232, 196, 0.07);
    color: var(--nmf-warm-ivory);
}

.command-button svg {
    color: var(--nmf-gold-highlight);
}

.command-button:hover {
    border-color: rgba(252, 228, 144, 0.72);
    background: rgba(201, 162, 77, 0.18);
    color: #fff8df;
}

.command-button[disabled] {
    border-color: rgba(200, 200, 200, 0.14);
    background: rgba(200, 200, 200, 0.06);
    color: rgba(246, 232, 196, 0.38);
}

.command-back-button {
    border-color: rgba(252, 228, 144, 0.48);
    background: rgba(201, 162, 77, 0.18);
    color: var(--nmf-warm-ivory);
}

.command-back-button::after {
    background: rgba(201, 162, 77, 0.28);
}

.command-back-button:hover {
    border-color: var(--nmf-gold-highlight);
    background: rgba(201, 162, 77, 0.28);
}

.workspace-header h1,
.panel-header h2,
.form-card-header h2,
.property-card h3,
.action-tile strong {
    color: var(--nmf-projection-blue-black);
    font-family: var(--nmf-font-sans);
}

.panel,
.form-card,
.compact-row,
.property-card,
.action-tile,
.report-link,
.metric {
    border-color: rgba(16, 24, 32, 0.12);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(5, 6, 7, 0.08);
}

.panel-header,
.form-card-header {
    border-bottom-color: rgba(16, 24, 32, 0.1);
    background: linear-gradient(90deg, rgba(201, 162, 77, 0.12), rgba(255, 255, 255, 0));
}

.metric svg {
    background: rgba(201, 162, 77, 0.16);
    color: var(--nmf-gold-shadow);
}

.primary-button,
.form-command-bar .primary-button,
button[type="submit"].primary-button {
    border-color: var(--nmf-cinematic-gold);
    background: linear-gradient(180deg, var(--nmf-gold-highlight), var(--nmf-cinematic-gold));
    color: var(--nmf-deep-cinematic-black);
    box-shadow: 0 10px 20px rgba(138, 92, 18, 0.2);
}

.primary-button:hover,
.form-command-bar .primary-button:hover,
button[type="submit"].primary-button:hover {
    border-color: var(--nmf-gold-shadow);
    background: linear-gradient(180deg, #ffeaa0, #bd9340);
    color: var(--nmf-deep-cinematic-black);
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--nmf-cinematic-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.18);
}

th {
    background: rgba(16, 24, 32, 0.04);
    color: #536171;
}

tbody tr:hover td {
    background: rgba(201, 162, 77, 0.07);
}

a {
    color: #7b560f;
}

/* New Magic Films public website refresh */
.public-shell {
    background:
        linear-gradient(180deg, #050505 0, #101820 430px, #070809 100%);
    color: var(--nmf-cream);
}

.public-shell .global-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 78px;
    border-bottom: 1px solid rgba(216, 156, 36, 0.34);
    background: rgba(5, 5, 5, 0.94);
    backdrop-filter: blur(16px);
}

.public-shell .page {
    width: min(1240px, 100%);
    padding: 0 clamp(16px, 4vw, 56px) 64px;
}

.public-shell .brand {
    gap: 14px;
}

.brand-logo-public {
    height: 62px;
    max-width: 150px;
}

.public-shell .brand-product {
    border-left-color: rgba(216, 156, 36, 0.55);
    color: var(--nmf-cream);
}

.public-nav a {
    border: 1px solid rgba(216, 156, 36, 0.24);
    border-radius: 999px;
    color: rgba(255, 248, 220, 0.82);
    padding: 8px 13px;
    text-decoration: none;
}

.public-nav a:hover {
    border-color: rgba(255, 241, 168, 0.66);
    color: #ffffff;
}

.public-hero {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 360px);
    gap: 36px;
    min-height: 330px;
    padding: 62px 0 42px;
}

.public-hero-copy {
    max-width: 780px;
}

.public-kicker,
.public-section-kicker {
    color: var(--nmf-gold);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.public-hero h1,
.public-film-copy h1 {
    color: #ffffff;
    font-family: var(--nmf-font-sans);
    font-weight: 900;
    text-transform: uppercase;
}

.public-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: 64px;
    line-height: 0.95;
}

.public-hero-copy p:last-child {
    max-width: 620px;
    margin: 18px 0 0;
    color: rgba(255, 248, 220, 0.76);
    font-size: 17px;
    line-height: 1.55;
}

.public-hero-brand {
    align-items: center;
    border: 1px solid rgba(216, 156, 36, 0.36);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 190px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(216, 156, 36, 0.18), rgba(255, 248, 220, 0.04)),
        rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 0 0 1px rgba(255, 241, 168, 0.08);
}

.public-hero-brand span {
    color: var(--nmf-gold-light);
    font-family: var(--nmf-font-sans);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.ops-landing-actions {
    display: flex;
    margin-top: 26px;
}

.ops-landing-actions .primary-button {
    min-width: 142px;
    min-height: 44px;
    padding: 0 24px;
    text-decoration: none;
}

.public-film-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
}

.public-film-card {
    border: 1px solid rgba(216, 156, 36, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.public-film-card:hover {
    border-color: rgba(255, 241, 168, 0.78);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
    transform: translateY(-3px);
}

.public-film-card img,
.public-poster-placeholder {
    border-bottom: 1px solid rgba(216, 156, 36, 0.18);
    background:
        linear-gradient(145deg, rgba(5, 5, 5, 0.2), rgba(216, 156, 36, 0.2)),
        linear-gradient(135deg, #050505, #101820 55%, #8c5b11);
}

.public-poster-placeholder {
    color: var(--nmf-cream);
}

.public-film-card-body {
    gap: 8px;
    min-height: 142px;
    padding: 15px;
}

.public-film-card-body strong {
    color: #ffffff;
    font-size: 18px;
    text-transform: uppercase;
}

.public-film-card-body small {
    color: rgba(255, 248, 220, 0.68);
}

.public-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.public-card-badges span {
    border: 1px solid rgba(216, 156, 36, 0.38);
    border-radius: 999px;
    color: var(--nmf-gold-light);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 7px;
}

.public-empty {
    border-color: rgba(216, 156, 36, 0.26);
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 248, 220, 0.72);
}

.public-empty strong {
    color: #ffffff;
}

.public-film-detail {
    padding-top: 36px;
}

.public-film-head {
    align-items: center;
    border-bottom: 1px solid rgba(216, 156, 36, 0.24);
    grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
    margin-bottom: 30px;
    min-height: 480px;
    padding: 34px 0 44px;
}

.public-detail-media {
    position: relative;
}

.public-detail-media::before {
    border: 1px solid rgba(216, 156, 36, 0.5);
    border-radius: 8px;
    content: "";
    inset: 14px -14px -14px 14px;
    position: absolute;
}

.public-detail-poster {
    position: relative;
    z-index: 1;
    border-color: rgba(216, 156, 36, 0.42);
    border-radius: 8px;
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.52);
}

.public-film-copy h1 {
    margin: 8px 0 10px;
    font-size: 68px;
    line-height: 0.96;
}

.public-back-link {
    color: var(--nmf-gold-light);
    text-decoration: none;
}

.public-back-link:hover {
    text-decoration: underline;
}

.public-original-title {
    color: rgba(255, 248, 220, 0.62);
    font-size: 18px;
}

.public-tagline {
    max-width: 760px;
    color: var(--nmf-cream);
    font-size: 22px;
}

.public-facts {
    gap: 9px;
    margin-top: 28px;
}

.public-facts div,
.public-creator-list div,
.public-info-list div,
.public-trailer,
.public-material-list a,
.public-release-list span {
    border-color: rgba(216, 156, 36, 0.22);
    background: rgba(255, 255, 255, 0.055);
}

.public-facts dt,
.public-creator-list dt,
.public-info-list dt {
    color: var(--nmf-gold);
}

.public-facts dd,
.public-creator-list dd,
.public-info-list dd {
    color: var(--nmf-cream);
}

.public-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    gap: 26px;
}

.public-section {
    border-top: 1px solid rgba(216, 156, 36, 0.22);
    padding-top: 20px;
}

.public-section h2 {
    color: #ffffff;
    font-family: var(--nmf-font-sans);
    font-size: 24px;
    text-transform: uppercase;
}

.public-rich-text {
    color: rgba(255, 248, 220, 0.78);
    font-size: 16px;
}

.public-trailer strong,
.public-material-list a,
.public-release-list span {
    color: var(--nmf-cream);
}

.public-trailer small {
    color: rgba(255, 248, 220, 0.62);
}

.public-trailer video {
    background: #050505;
}

.public-material-list a {
    text-decoration: none;
}

.public-material-list a:hover {
    border-color: rgba(255, 241, 168, 0.7);
    color: #ffffff;
}

@media (max-width: 760px) {
    .app-frame .global-bar {
        grid-template-columns: 36px minmax(0, 1fr);
        height: auto;
    }

    .brand-logo-app,
    .brand-logo-public {
        height: 42px;
        max-width: 78px;
    }

    .brand-product {
        min-height: 24px;
        padding-left: 9px;
        font-size: 10px;
    }

    .command-ribbon {
        top: 0;
        background: linear-gradient(180deg, var(--nmf-deep-cinematic-black), var(--nmf-projection-blue-black));
    }

    .sidebar {
        padding: 12px;
    }

    .sidebar .sidebar-section:first-of-type,
    .sidebar-divider {
        display: none;
    }

    .sidebar .sidebar-section:last-of-type {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .sidebar .sidebar-section:last-of-type p {
        grid-column: 1 / -1;
        margin: 0 0 2px;
    }

    .sidebar .sidebar-section:last-of-type .side-item {
        min-height: 42px;
        margin: 0;
        padding: 9px 10px;
    }

    .sidebar .sidebar-section:last-of-type .side-item span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .command-ribbon {
        flex-wrap: nowrap;
        min-height: 64px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    .command-ribbon::-webkit-scrollbar {
        display: none;
    }

    .command-button {
        flex: 0 0 auto;
    }

    .public-shell .global-bar {
        grid-template-columns: 1fr;
        gap: 10px;
        height: auto;
        padding: 12px 16px;
    }

    .brand-logo-public {
        height: 46px;
        max-width: 110px;
    }

    .public-nav {
        justify-content: flex-start;
    }

    .public-hero,
    .public-film-head,
    .public-detail-grid,
    .public-info-list-wide {
        grid-template-columns: 1fr;
    }

    .public-hero {
        min-height: 0;
        padding: 34px 0 28px;
    }

    .public-hero-brand {
        min-height: 110px;
    }

    .public-hero h1,
    .public-film-copy h1 {
        font-size: 42px;
    }

    .public-film-head {
        min-height: 0;
    }

    .public-film-copy {
        order: -1;
    }

    .public-detail-media {
        width: min(360px, 100%);
        margin: 0 auto;
    }

    .public-detail-media::before {
        display: none;
    }
}
