:root {
    --vidly-bg: #000000;
    --vidly-main: #030303;
    --vidly-panel: #080808;
    --vidly-panel-soft: #0d0d0d;
    --vidly-line: #1b1b1b;
    --vidly-line-soft: #121212;
    --vidly-muted: #777777;
    --vidly-text: #ececec;
    --vidly-green: #10a37f;
}

/* Creator dashboard */
body.creator-dashboard {
    --creator-bg: #000;
    --creator-surface: #101010;
    --creator-surface-raised: #161616;
    --creator-border: rgba(255, 255, 255, 0.09);
    --creator-border-strong: rgba(255, 255, 255, 0.15);
    --creator-label: #86868b;
    --creator-accent: #30d158;
    margin: 0;
    color: #f5f5f7;
    background: var(--creator-bg);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Arial, sans-serif;
}

body.creator-dashboard::before {
    display: none;
}

body.creator-dashboard button:focus-visible,
body.creator-dashboard a:focus-visible,
body.creator-dashboard label[for]:focus-visible {
    outline: 2px solid rgba(48, 209, 88, 0.72);
    outline-offset: 2px;
}

.creator-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    height: 100vh;
    min-height: 0;
    background: #000;
}

.creator-sidebar {
    min-height: 0;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 20px 20px;
    border-right: 1px solid var(--creator-border);
    background: rgba(12, 12, 12, 0.96);
}

.creator-brand {
    display: inline-block;
    padding: 0 10px;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.creator-nav-label {
    margin: 40px 10px 10px;
    color: #636366;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
}

.creator-nav {
    display: grid;
    gap: 5px;
}

.creator-nav button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 0;
    border-radius: 8px;
    color: #a1a1a6;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.creator-nav button svg,
.creator-logout svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

body.creator-dashboard .creator-nav .vidly-nav-active {
    color: #fff !important;
    background: #29292c !important;
    border: 0 !important;
}

body.creator-dashboard .creator-nav .vidly-nav-active svg {
    color: #fff !important;
}

body.creator-dashboard .creator-nav .vidly-nav-muted:hover {
    color: #fff !important;
    background: #1c1c1e !important;
    border: 0 !important;
}

.creator-account-dock {
    display: grid;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--creator-border);
}

.creator-account-card {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    color: white;
    background: transparent;
    cursor: pointer;
}

.creator-account-card:hover {
    background: #1c1c1e;
}

.creator-account-avatar,
.creator-top-avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border: 1px solid rgba(48, 209, 88, 0.25);
    border-radius: 50%;
    color: var(--creator-accent);
    background: rgba(48, 209, 88, 0.1);
    font-size: 14px;
    font-weight: 700;
}

.creator-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    color: #ff6961;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.creator-logout:hover {
    background: rgba(255, 69, 58, 0.09);
}

.creator-main {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    background: #000 !important;
}

.creator-topbar {
    position: relative !important;
    top: auto !important;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 36px;
    border-bottom: 1px solid var(--creator-border) !important;
    background: rgba(0, 0, 0, 0.82) !important;
    backdrop-filter: saturate(180%) blur(18px);
}

.creator-topbar h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: 0;
}

.creator-mobile-brand {
    margin: 0 0 3px;
    color: #86868b;
    font-size: 11px;
    font-weight: 600;
}

.creator-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.creator-notification-button {
    position: relative;
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--creator-border);
    border-radius: 50%;
    color: #a1a1a6;
    background: #111;
    cursor: pointer;
}

.creator-notification-button:hover {
    color: white;
    background: #1c1c1e;
}

.creator-notification-button svg {
    width: 17px;
}

.creator-notification-button > span {
    position: absolute;
    top: -4px;
    right: -5px;
    display: flex;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #000;
    border-radius: 10px;
    color: #000;
    background: var(--creator-accent);
    font-size: 9px;
    font-weight: 800;
}

.creator-language-switch {
    display: flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--creator-border);
    border-radius: 8px;
    background: #111;
}

.creator-language-switch button {
    min-width: 34px;
    height: 28px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    color: #86868b;
    background: transparent;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.creator-top-avatar {
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
}

.creator-top-avatar span {
    width: 34px;
    height: 34px;
}

.creator-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 42px 42px 80px;
}

.creator-view {
    width: min(100%, 1240px);
    margin: 0 auto;
}

.creator-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.creator-page-heading h2 {
    max-width: 760px;
    margin: 5px 0 0;
    color: #f5f5f7;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0;
}

.creator-page-heading > div > p:last-child:not(.creator-eyebrow) {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--creator-label);
    font-size: 15px;
    line-height: 1.55;
}

.creator-eyebrow {
    margin: 0;
    color: var(--creator-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.creator-primary-button,
.creator-secondary-button,
.creator-danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.creator-primary-button {
    border: 1px solid #fff;
    color: #000;
    background: #fff;
}

.creator-primary-button:hover {
    background: #e8e8ed;
}

.creator-primary-button:disabled {
    border-color: #2c2c2e;
    color: #636366;
    background: #1c1c1e;
    cursor: not-allowed;
}

.creator-secondary-button {
    border: 1px solid var(--creator-border-strong);
    color: #f5f5f7;
    background: #1c1c1e;
}

.creator-secondary-button:hover {
    background: #2c2c2e;
}

.creator-danger-button {
    border: 1px solid rgba(255, 69, 58, 0.22);
    color: #ff6961;
    background: rgba(255, 69, 58, 0.08);
}

.creator-primary-button svg,
.creator-secondary-button svg,
.creator-danger-button svg {
    width: 16px;
    height: 16px;
}

.creator-metrics {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 22px;
}

.creator-metric {
    position: relative;
    min-height: 184px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--creator-border);
    border-radius: 8px;
    background: var(--creator-surface);
}

.creator-metric-primary {
    background: linear-gradient(145deg, #161616 0%, #101410 100%);
}

.creator-metric-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 22px;
    border-radius: 8px;
    color: #d1d1d6;
    background: rgba(255, 255, 255, 0.07);
}

.creator-metric-icon svg {
    width: 17px;
    height: 17px;
}

.creator-metric > p {
    margin: 0;
    color: var(--creator-label);
    font-size: 13px;
}

.creator-metric-value {
    margin-top: 7px;
    color: white;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.creator-metric-value small {
    color: var(--creator-accent);
    font-size: 12px;
}

.creator-progress {
    height: 4px;
    margin-top: 24px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.creator-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--creator-accent);
    transition: width 0.3s ease;
}

.creator-metric .creator-metric-note {
    margin-top: 13px;
    color: #636366;
    font-size: 11px;
    line-height: 1.4;
}

.creator-section {
    border: 1px solid var(--creator-border);
    border-radius: 8px;
    background: var(--creator-surface);
}

.creator-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--creator-border);
}

.creator-section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 650;
}

.creator-section-header p {
    margin: 5px 0 0;
    color: var(--creator-label);
    font-size: 13px;
}

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

.creator-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse !important;
}

.creator-table th {
    padding: 15px 20px;
    border-bottom: 1px solid var(--creator-border);
    color: #636366;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;
}

.creator-table td {
    padding: 18px 20px;
}

.creator-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.creator-table tbody tr:last-child {
    border-bottom: 0;
}

.creator-empty-state {
    height: 150px;
    color: #636366;
    font-size: 13px;
    text-align: center;
}

.creator-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 20px;
    border-top: 1px solid var(--creator-border);
}

.creator-pagination p {
    margin: 0;
    color: #636366;
    font-size: 11px;
}

.creator-pagination button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    border: 1px solid var(--creator-border);
    border-radius: 7px;
    color: #d1d1d6;
    background: #161616;
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
}

.creator-pagination button:disabled {
    opacity: 0.35;
    cursor: default;
}

.creator-pagination svg {
    width: 14px;
}

.creator-table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.creator-table-actions button {
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid var(--creator-border-strong);
    border-radius: 7px;
    color: #f5f5f7;
    background: #1c1c1e;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.creator-table-actions button:hover {
    background: #2c2c2e;
}

.creator-table-actions button.is-danger {
    border-color: rgba(255, 69, 58, 0.24);
    color: #ff6961;
    background: rgba(255, 69, 58, 0.08);
}

.creator-detail-shell {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.creator-detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.creator-detail-panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(720px, 100%);
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid var(--creator-border-strong);
    color: #f5f5f7;
    background: #090909;
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.55);
}

.creator-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 88px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--creator-border);
}

.creator-detail-header p {
    margin: 0 0 4px;
    color: var(--creator-accent);
    font-size: 11px;
    font-weight: 700;
}

.creator-detail-header h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
}

.creator-detail-header > button {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--creator-border);
    border-radius: 50%;
    color: #f5f5f7;
    background: #1c1c1e;
    cursor: pointer;
}

.creator-detail-header svg {
    width: 17px;
}

.creator-detail-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px;
}

.creator-detail-hero {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
    gap: 22px;
}

.creator-detail-preview {
    min-height: 290px;
    overflow: hidden;
    border: 1px solid var(--creator-border);
    border-radius: 10px;
    background: #000;
}

.creator-detail-preview video,
.creator-detail-preview img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: contain;
}

.creator-detail-preview-empty {
    display: flex;
    height: 100%;
    min-height: 290px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #636366;
    font-size: 12px;
}

.creator-detail-summary {
    padding: 8px 0;
}

.creator-detail-status {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(48, 209, 88, 0.25);
    border-radius: 7px;
    color: var(--creator-accent);
    background: rgba(48, 209, 88, 0.08);
    font-size: 11px;
    font-weight: 700;
}

.creator-detail-summary > p {
    margin: 12px 0 20px;
    color: var(--creator-label);
    font-size: 13px;
    line-height: 1.5;
}

.creator-detail-summary dl {
    margin: 0;
}

.creator-detail-summary dl > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid var(--creator-border);
}

.creator-detail-summary dt {
    color: #636366;
    font-size: 12px;
}

.creator-detail-summary dd {
    margin: 0;
    color: #d1d1d6;
    font-size: 12px;
    font-weight: 650;
    text-align: right;
}

.creator-detail-notice {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid rgba(255, 69, 58, 0.22);
    border-radius: 9px;
    background: rgba(255, 69, 58, 0.07);
}

.creator-detail-notice > div:first-child {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ff6961;
    background: rgba(255, 69, 58, 0.1);
}

.creator-detail-notice svg {
    width: 18px;
}

.creator-detail-notice strong {
    font-size: 13px;
}

.creator-detail-notice p {
    margin: 5px 0 0;
    color: #d1d1d6;
    font-size: 12px;
    line-height: 1.5;
}

.creator-detail-section {
    margin-top: 28px;
}

.creator-detail-section-heading h3 {
    margin: 0;
    font-size: 17px;
}

.creator-detail-section-heading p {
    margin: 5px 0 0;
    color: #636366;
    font-size: 12px;
}

.creator-timeline {
    margin-top: 16px;
}

.creator-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 22px;
}

.creator-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 17px;
    bottom: 0;
    left: 5px;
    width: 1px;
    background: var(--creator-border-strong);
}

.creator-timeline-dot {
    position: relative;
    z-index: 1;
    width: 11px;
    height: 11px;
    margin-top: 4px;
    border: 2px solid #090909;
    border-radius: 50%;
    background: var(--creator-accent);
    box-shadow: 0 0 0 1px rgba(48, 209, 88, 0.35);
}

.creator-timeline-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.creator-timeline-heading strong {
    font-size: 13px;
}

.creator-timeline-heading time,
.creator-timeline-item small {
    color: #636366;
    font-size: 10px;
}

.creator-timeline-item p {
    margin: 6px 0;
    color: #a1a1a6;
    font-size: 12px;
    line-height: 1.5;
}

.creator-detail-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 15px;
}

.creator-detail-links a {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border: 1px solid var(--creator-border);
    border-radius: 8px;
    color: #d1d1d6;
    background: #101010;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.creator-detail-links a:hover {
    color: white;
    background: #1c1c1e;
}

.creator-detail-links svg {
    width: 16px;
}

.creator-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px max(16px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--creator-border);
    background: rgba(16, 16, 16, 0.95);
}

.creator-detail-footer strong,
.creator-detail-footer span {
    display: block;
}

.creator-detail-footer strong {
    font-size: 13px;
}

.creator-detail-footer span {
    margin-top: 3px;
    color: #636366;
    font-size: 11px;
}

.creator-detail-loading,
.creator-detail-empty {
    display: flex;
    min-height: 240px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: #636366;
    font-size: 12px;
}

.creator-detail-loading span {
    width: 24px;
    height: 24px;
    border: 2px solid #2c2c2e;
    border-top-color: var(--creator-accent);
    border-radius: 50%;
    animation: creator-spin 0.8s linear infinite;
}

@keyframes creator-spin {
    to { transform: rotate(360deg); }
}

.creator-upload-section {
    padding: 28px;
}

.creator-upload-section > * + * {
    margin-top: 24px;
}

.creator-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.creator-form-grid-title {
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.8fr);
}

.creator-form-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.creator-field {
    min-width: 0;
}

.creator-field label {
    display: block;
    margin-bottom: 8px;
    color: #a1a1a6;
    font-size: 12px;
    font-weight: 600;
}

body.creator-dashboard .creator-field input,
body.creator-dashboard .creator-field textarea,
body.creator-dashboard .creator-field select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--creator-border-strong) !important;
    border-radius: 8px !important;
    color: #f5f5f7 !important;
    background: #090909 !important;
    font-family: inherit;
    font-size: 14px;
    box-shadow: none;
}

body.creator-dashboard .creator-field textarea {
    min-height: 130px;
    padding-top: 14px;
    resize: vertical;
}

body.creator-dashboard .creator-field input:focus,
body.creator-dashboard .creator-field textarea:focus,
body.creator-dashboard .creator-field select:focus {
    border-color: #8e8e93 !important;
    box-shadow: 0 0 0 3px rgba(142, 142, 147, 0.15);
}

.creator-field small {
    display: block;
    margin-top: 8px;
    color: #636366;
    font-size: 11px;
    line-height: 1.45;
}

.creator-file-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.creator-file-drop {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #f5f5f7;
    background: #090909;
    text-align: center;
    cursor: pointer;
}

.creator-file-drop:hover {
    border-color: rgba(255, 255, 255, 0.38);
    background: #121212;
}

.creator-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 8px;
    color: #d1d1d6;
    background: #1c1c1e;
}

.creator-file-icon svg {
    width: 20px;
    height: 20px;
}

.creator-file-drop strong {
    font-size: 14px;
}

.creator-file-drop > span:not(.creator-file-icon) {
    width: 100%;
    margin-top: 9px;
    overflow: hidden;
    color: #a1a1a6;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.creator-file-drop small {
    max-width: 220px;
    margin-top: 8px;
    color: #636366;
    font-size: 10px;
    line-height: 1.4;
}

.creator-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--creator-border);
}

.creator-submit-row p {
    margin: 0;
    color: #d1d1d6;
    font-size: 13px;
    font-weight: 600;
}

.creator-submit-row span {
    display: block;
    margin-top: 5px;
    color: #636366;
    font-size: 11px;
}

.creator-settings-layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.creator-settings-nav {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 4px;
}

.creator-settings-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    color: #86868b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.creator-settings-nav a:hover {
    color: white;
    background: #1c1c1e;
}

.creator-settings-nav svg {
    width: 17px;
    height: 17px;
}

.creator-settings-content {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.creator-settings-section {
    scroll-margin-top: 18px;
    padding-bottom: 26px;
}

.creator-settings-section > .creator-section-header {
    margin-bottom: 24px;
}

.creator-settings-section > .creator-form-grid,
.creator-settings-section > .creator-field,
.creator-settings-section > .creator-profile-row,
.creator-settings-section > .creator-verification-list {
    margin-right: 24px;
    margin-left: 24px;
}

.creator-settings-section > * + .creator-form-grid,
.creator-settings-section > * + .creator-field {
    margin-top: 18px;
}

.creator-profile-row {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 26px;
}

.creator-avatar-editor {
    position: relative;
    display: block;
    width: 120px;
    height: 120px;
    cursor: pointer;
}

.creator-avatar-editor > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--creator-border-strong);
    border-radius: 50%;
    color: var(--creator-accent);
    background: rgba(48, 209, 88, 0.08);
    font-size: 38px;
    font-weight: 700;
}

.creator-avatar-editor > span {
    position: absolute;
    right: 1px;
    bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 3px solid #101010;
    border-radius: 50%;
    color: #fff;
    background: #2c2c2e;
}

.creator-avatar-editor svg {
    width: 15px;
    height: 15px;
}

.creator-avatar-copy h4,
.creator-verification-item h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 650;
}

.creator-avatar-copy > p {
    max-width: 620px;
    margin: 6px 0 0;
    color: var(--creator-label);
    font-size: 13px;
    line-height: 1.5;
}

.creator-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.creator-inline-actions .creator-secondary-button {
    max-width: 250px;
    overflow: hidden;
}

.creator-inline-actions .creator-secondary-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.creator-verification-list {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--creator-border);
    border-radius: 8px;
    background: var(--creator-border);
}

.creator-ledger-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 24px 0;
}

.creator-ledger-summary article {
    padding: 15px;
    border: 1px solid var(--creator-border);
    border-radius: 8px;
    background: #0b0b0b;
}

.creator-ledger-summary span,
.creator-ledger-summary strong {
    display: block;
}

.creator-ledger-summary span {
    color: #636366;
    font-size: 10px;
    text-transform: uppercase;
}

.creator-ledger-summary strong {
    margin-top: 7px;
    color: #f5f5f7;
    font-size: 16px;
}

.creator-ledger-list {
    margin: 18px 24px 0;
    overflow: hidden;
    border: 1px solid var(--creator-border);
    border-radius: 8px;
}

.creator-ledger-heading {
    padding: 17px 18px;
    border-bottom: 1px solid var(--creator-border);
}

.creator-ledger-heading h4,
.creator-ledger-heading p {
    margin: 0;
}

.creator-ledger-heading h4 {
    font-size: 14px;
}

.creator-ledger-heading p {
    margin-top: 4px;
    color: #636366;
    font-size: 11px;
}

.creator-ledger-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 17px;
    border-bottom: 1px solid var(--creator-border);
}

.creator-ledger-item:last-child {
    border-bottom: 0;
}

.creator-ledger-item > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.creator-ledger-item > div:last-child {
    align-items: flex-end;
    flex-direction: column;
    gap: 3px;
}

.creator-ledger-icon {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--creator-accent);
    background: rgba(48, 209, 88, 0.09);
}

.creator-ledger-icon svg {
    width: 16px;
}

.creator-ledger-item strong,
.creator-ledger-item small,
.creator-ledger-item > div:last-child span {
    display: block;
}

.creator-ledger-item strong {
    font-size: 12px;
}

.creator-ledger-item small,
.creator-ledger-item > div:last-child span {
    margin-top: 3px;
    color: #636366;
    font-size: 10px;
}

.creator-ledger-item > div:last-child strong {
    color: var(--creator-accent);
}

.creator-ledger-item > div:last-child span {
    margin: 0;
    text-transform: capitalize;
}

.creator-ledger-empty {
    margin: 0;
    padding: 30px 18px;
    color: #636366;
    font-size: 12px;
    text-align: center;
}

.creator-notifications {
    position: fixed;
    inset: 0;
    z-index: 110;
}

.creator-notifications-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(7px);
}

.creator-notifications > aside {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(430px, 100%);
    height: 100%;
    flex-direction: column;
    border-left: 1px solid var(--creator-border-strong);
    color: #f5f5f7;
    background: #090909;
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.5);
}

.creator-notifications header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--creator-border);
}

.creator-notifications header p,
.creator-notifications header h2 {
    margin: 0;
}

.creator-notifications header p {
    color: var(--creator-accent);
    font-size: 10px;
    font-weight: 700;
}

.creator-notifications header h2 {
    margin-top: 3px;
    font-size: 22px;
}

.creator-notifications header button {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--creator-border);
    border-radius: 50%;
    color: #d1d1d6;
    background: #1c1c1e;
    cursor: pointer;
}

.creator-notifications header svg {
    width: 16px;
}

.creator-notifications-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--creator-border);
}

.creator-notifications-tools span {
    color: #636366;
    font-size: 11px;
}

.creator-notifications-tools button {
    border: 0;
    color: var(--creator-accent);
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.creator-notification-items {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.creator-notification-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    border: 0;
    border-bottom: 1px solid var(--creator-border);
    color: #d1d1d6;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.creator-notification-item.is-unread {
    background: rgba(48, 209, 88, 0.055);
}

.creator-notification-item > span {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--creator-accent);
    background: rgba(48, 209, 88, 0.09);
}

.creator-notification-item svg {
    width: 17px;
}

.creator-notification-item strong,
.creator-notification-item p,
.creator-notification-item small {
    display: block;
    margin: 0;
}

.creator-notification-item strong {
    color: #f5f5f7;
    font-size: 13px;
}

.creator-notification-item p {
    margin-top: 5px;
    color: #86868b;
    font-size: 12px;
    line-height: 1.45;
}

.creator-notification-item small {
    margin-top: 7px;
    color: #48484a;
    font-size: 10px;
}

.creator-notification-empty {
    margin: 0;
    padding: 50px 20px;
    color: #636366;
    font-size: 12px;
    text-align: center;
}

.creator-verification-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    min-height: 108px;
    padding: 18px;
    background: #0b0b0b;
}

.creator-verification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: #d1d1d6;
    background: #1c1c1e;
}

.creator-verification-icon svg {
    width: 19px;
    height: 19px;
}

.creator-verification-item p {
    max-width: 600px;
    margin: 6px 0 0;
    color: var(--creator-label);
    font-size: 12px;
    line-height: 1.45;
}

.creator-verification-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.creator-verification-action > span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--creator-border);
    border-radius: 8px;
    color: #a1a1a6;
    background: #000;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.creator-verification-action > button {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #fff;
    border-radius: 8px;
    color: #000;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.creator-verification-action > button:disabled {
    border-color: #2c2c2e;
    color: #636366;
    background: #1c1c1e;
    cursor: default;
}

.creator-settings-savebar {
    position: static;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid var(--creator-border-strong);
    border-radius: 8px;
    background: rgba(24, 24, 24, 0.88);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(18px);
}

.creator-settings-savebar strong {
    display: block;
    font-size: 13px;
}

.creator-settings-savebar span {
    display: block;
    margin-top: 3px;
    color: var(--creator-accent);
    font-size: 11px;
    transition: opacity 0.2s ease;
}

.creator-mobile-nav {
    position: fixed;
    right: 14px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 14px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 6px;
    border: 1px solid var(--creator-border-strong);
    border-radius: 8px;
    background: rgba(24, 24, 24, 0.92);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.creator-mobile-nav button {
    display: flex;
    min-height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 8px;
    color: #8e8e93;
    background: transparent;
    font-size: 10px;
    font-weight: 600;
}

.creator-mobile-nav button.is-active {
    color: #fff;
    background: #2c2c2e;
}

.creator-mobile-nav svg {
    width: 19px;
    height: 19px;
}

@media (max-width: 1024px) {
    .creator-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .creator-metric-primary {
        grid-column: 1 / -1;
    }

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

    .creator-settings-nav {
        position: static;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow-x: auto;
    }

    .creator-settings-nav a {
        justify-content: center;
        min-width: 120px;
        border: 1px solid var(--creator-border);
        background: #101010;
    }

    .creator-file-grid {
        grid-template-columns: 1fr;
    }

    .creator-file-drop {
        min-height: 170px;
    }
}

@media (max-width: 767px) {
    .creator-shell {
        display: block;
        height: 100vh;
    }

    .creator-main {
        height: 100vh;
    }

    .creator-topbar {
        min-height: 66px;
        padding: max(10px, env(safe-area-inset-top)) 18px 10px;
    }

    .creator-topbar h1 {
        font-size: 17px;
    }

    .creator-content {
        padding: 28px 16px 110px;
    }

    .creator-page-heading {
        align-items: stretch;
        flex-direction: column;
        margin-bottom: 24px;
    }

    .creator-page-heading h2 {
        font-size: 32px;
    }

    .creator-page-heading .creator-primary-button {
        width: 100%;
    }

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

    .creator-metric-primary {
        grid-column: auto;
    }

    .creator-metric {
        min-height: 160px;
    }

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

    .creator-form-grid,
    .creator-form-grid-title,
    .creator-form-grid-three {
        grid-template-columns: 1fr;
    }

    .creator-upload-section {
        padding: 20px;
    }

    .creator-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .creator-submit-row .creator-primary-button {
        width: 100%;
    }

    .creator-detail-header {
        min-height: 76px;
        padding: 14px 16px;
    }

    .creator-detail-header h2 {
        font-size: 20px;
    }

    .creator-detail-body {
        padding: 18px 16px 110px;
    }

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

    .creator-detail-preview,
    .creator-detail-preview-empty {
        min-height: 320px;
    }

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

    .creator-timeline-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .creator-detail-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .creator-detail-footer .creator-primary-button {
        width: 100%;
    }

    .creator-settings-nav {
        grid-template-columns: repeat(4, max-content);
        padding-bottom: 2px;
    }

    .creator-settings-nav a {
        min-width: auto;
        padding: 0 14px;
    }

    .creator-ledger-summary {
        grid-template-columns: 1fr;
    }

    .creator-ledger-item {
        align-items: flex-start;
    }

    .creator-profile-row {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .creator-inline-actions {
        justify-content: center;
    }

    .creator-verification-item {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .creator-verification-action {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

    .creator-settings-savebar {
        align-items: stretch;
        flex-direction: column;
    }

    .creator-settings-savebar .creator-primary-button {
        width: 100%;
    }
}

/* Apple-style administration workspace */
body.admin-dashboard {
    --admin-bg: #000;
    --admin-surface: #101010;
    --admin-surface-raised: #171717;
    --admin-border: rgba(255, 255, 255, 0.09);
    --admin-border-strong: rgba(255, 255, 255, 0.15);
    --admin-label: #86868b;
    --admin-accent: #30d158;
    margin: 0;
    color: #f5f5f7;
    background: var(--admin-bg);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Arial, sans-serif;
}

body.admin-dashboard::before { display: none; }

.admin-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    height: 100vh;
    min-height: 0;
    background: #000;
}

.admin-sidebar {
    min-height: 0;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 20px 20px;
    border-right: 1px solid var(--admin-border);
    background: rgba(12, 12, 12, 0.96);
}

.admin-brand {
    display: inline-block;
    padding: 0 10px;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    text-decoration: none;
}

.admin-nav-label {
    margin: 38px 10px 10px;
    color: #636366;
    font-size: 11px;
    font-weight: 600;
}

.admin-nav { display: grid; gap: 5px; }

.admin-nav button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 0;
    border-radius: 9px;
    color: #a1a1a6;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.admin-nav button svg,
.admin-logout svg { width: 18px; height: 18px; stroke-width: 1.8; }
.admin-nav button small { margin-left: auto; color: #636366; font-size: 11px; }
body.admin-dashboard .admin-nav .vidly-nav-active { color: #fff !important; background: #29292c !important; }
body.admin-dashboard .admin-nav .vidly-nav-muted:hover { color: #fff !important; background: #1c1c1e !important; }

.admin-account-dock {
    display: grid;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--admin-border);
}

.admin-account-card {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 10px;
}

.admin-account-avatar {
    display: flex;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(48, 209, 88, .28);
    border-radius: 50%;
    color: var(--admin-accent);
    background: rgba(48, 209, 88, .1);
    font-weight: 750;
}

.admin-account-card p { margin: 0; }
.admin-account-card p:first-child { color: white; font-size: 13px; font-weight: 650; }
.admin-account-card p:last-child { margin-top: 2px; color: #86868b; font-size: 11px; text-transform: capitalize; }

.admin-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    color: #ff6961;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.admin-logout:hover { background: rgba(255, 69, 58, .09); }

.admin-main {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    background: #000 !important;
}

.admin-topbar {
    z-index: 20;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    border-bottom: 1px solid var(--admin-border);
    background: rgba(0, 0, 0, .82);
    backdrop-filter: saturate(180%) blur(18px);
}
.admin-topbar h1 { margin: 0; font-size: 18px; font-weight: 650; }
.admin-mobile-brand { margin: 0 0 3px; color: #86868b; font-size: 11px; font-weight: 600; }
.admin-topbar-actions { display: flex; align-items: center; gap: 12px; }

.admin-icon-button {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--admin-border);
    border-radius: 50%;
    color: #a1a1a6;
    background: #111;
    cursor: pointer;
}
.admin-icon-button:hover { color: white; background: #1c1c1e; }
.admin-icon-button svg { width: 17px; }

.admin-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 42px 42px 80px;
}

.admin-view { width: min(100%, 1420px); margin: 0 auto; }

.admin-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}
.admin-page-heading h2 {
    max-width: 830px;
    margin: 5px 0 0;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.08;
}
.admin-page-heading > div > p:last-child:not(.admin-eyebrow) {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--admin-label);
    font-size: 15px;
    line-height: 1.55;
}
.admin-eyebrow { margin: 0; color: var(--admin-accent); font-size: 12px; font-weight: 700; }

.admin-primary-button,
.admin-secondary-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.admin-primary-button { border: 0; color: #000; background: #f5f5f7; }
.admin-primary-button:hover { background: #d9d9dc; }
.admin-secondary-button { border: 1px solid var(--admin-border-strong); color: #f5f5f7; background: #171717; }
.admin-secondary-button:hover { background: #252525; }
.admin-primary-button svg, .admin-secondary-button svg { width: 17px; }

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.admin-metric-card {
    min-height: 116px;
    padding: 20px;
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    background: linear-gradient(145deg, #151515, #0e0e0e);
}
.admin-metric-card p { margin: 0; color: var(--admin-label); font-size: 12px; font-weight: 600; }
.admin-metric-card strong { display: block; margin-top: 15px; color: white; font-size: 30px; line-height: 1; }
.admin-metric-card span { display: block; width: 28px; height: 3px; margin-top: 17px; border-radius: 4px; background: var(--metric-color, var(--admin-accent)); }

.admin-section {
    overflow: hidden;
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    background: #0c0c0d;
}
.admin-section-header {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--admin-border);
}
.admin-section-header h3 { margin: 0; color: white; font-size: 16px; font-weight: 650; }
.admin-section-header p { margin: 5px 0 0; color: var(--admin-label); font-size: 12px; }
.admin-section-header input,
.admin-section-header select,
.render-filters input,
.render-filters select {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 9px;
    color: #f5f5f7;
    background: #171717;
    font-size: 13px;
    outline: none;
}
.admin-section-header input { width: min(300px, 100%); }
.admin-table-wrap { overflow: auto; }
.admin-table { width: 100%; min-width: 940px; border-collapse: collapse; color: #d1d1d6; font-size: 13px; }
.admin-table th, .admin-table td { padding: 15px 20px; border-bottom: 1px solid var(--admin-border); text-align: left; vertical-align: top; }
.admin-table th { color: #636366; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.admin-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.admin-empty-state { padding: 38px 22px !important; color: #636366; text-align: center !important; }

.admin-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.admin-role-grid article {
    display: flex;
    gap: 14px;
    min-height: 112px;
    padding: 20px;
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    background: #101010;
}
.admin-role-grid svg { width: 22px; color: var(--admin-accent); }
.admin-role-grid strong { font-size: 15px; }
.admin-role-grid p { margin: 7px 0 0; color: var(--admin-label); font-size: 12px; line-height: 1.5; }

.administrators-grid { display: grid; gap: 1px; background: var(--admin-border); }
.administrator-card {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) 150px 150px minmax(250px, auto);
    gap: 18px;
    align-items: center;
    padding: 19px 22px;
    background: #0c0c0d;
}
.administrator-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.administrator-avatar { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; color: #30d158; background: rgba(48, 209, 88, .1); font-weight: 750; }
.administrator-identity strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.administrator-identity span, .administrator-meta { color: var(--admin-label); font-size: 11px; }
.administrator-role, .administrator-state { display: inline-flex; width: fit-content; min-height: 28px; align-items: center; padding: 0 10px; border: 1px solid var(--admin-border); border-radius: 999px; color: #c7c7cc; background: #171717; font-size: 11px; font-weight: 700; text-transform: capitalize; }
.administrator-state.active { color: #30d158; border-color: rgba(48, 209, 88, .24); background: rgba(48, 209, 88, .07); }
.administrator-state.disabled { color: #ff6961; border-color: rgba(255, 105, 97, .24); }
.administrator-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.administrator-actions button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: #d1d1d6;
    background: #171717;
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
}
.administrator-actions button:hover { color: white; background: #242424; }
.administrator-actions button.danger { color: #ff6961; }

.app-template-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.app-template-filters input { width: min(360px, 100%); }
.app-template-filters select { width: 150px; }

.app-template-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--admin-border);
    background: #090909;
}

.app-template-summary span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid var(--admin-border);
    border-radius: 999px;
    color: #86868b;
    background: #111;
    font-size: 11px;
    font-weight: 700;
}

.app-template-summary strong {
    color: #f5f5f7;
    font-size: 12px;
}

.app-template-summary .free strong { color: #30d158; }
.app-template-summary .creator strong { color: #64d2ff; }
.app-template-summary .pro strong { color: #bf5af2; }

.app-template-inventory-wrap {
    max-height: calc(100vh - 330px);
    min-height: 360px;
    overflow: auto;
}

.app-template-table {
    min-width: 1040px;
    table-layout: fixed;
}

.app-template-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #0c0c0d;
    box-shadow: 0 1px 0 var(--admin-border);
}

.app-template-table th:nth-child(1), .app-template-table td:nth-child(1) { width: 270px; }
.app-template-table th:nth-child(2), .app-template-table td:nth-child(2) { width: auto; }
.app-template-table th:nth-child(3), .app-template-table td:nth-child(3) { width: 190px; }
.app-template-table th:nth-child(4), .app-template-table td:nth-child(4) { width: 170px; }
.app-template-table th:nth-child(5), .app-template-table td:nth-child(5) { width: 170px; }
.app-template-table th:nth-child(6), .app-template-table td:nth-child(6) { width: 150px; }

.app-template-row {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--template-accent, #30d158) 8%, transparent), transparent 28%),
        transparent;
}

.app-template-name-cell {
    display: grid;
    grid-template-columns: 13px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.app-template-dot {
    width: 9px;
    height: 34px;
    border-radius: 999px;
    background: var(--template-accent, #30d158);
    box-shadow: 0 0 20px color-mix(in srgb, var(--template-accent, #30d158) 34%, transparent);
}

.app-template-name-cell strong,
.app-template-name-cell small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-template-name-cell strong {
    color: #fff;
    font-size: 14px;
    font-weight: 720;
}

.app-template-name-cell small {
    margin-top: 5px;
    color: #636366;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
}

.app-template-description-line {
    display: -webkit-box;
    max-width: 620px;
    margin: 0;
    overflow: hidden;
    color: #a1a1a6;
    font-size: 13px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.app-template-category {
    display: inline-flex;
    max-width: 100%;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    overflow: hidden;
    border: 1px solid var(--admin-border);
    border-radius: 999px;
    color: #c7c7cc;
    background: #141414;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-template-tier-select,
.app-template-edit-button {
    min-height: 34px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 9px;
    color: #f5f5f7;
    background: #171717;
    font-size: 12px;
    font-weight: 750;
}

.app-template-tier-select {
    width: 128px;
    padding: 0 10px;
}

.app-template-tier-select.free { color: #30d158; border-color: rgba(48, 209, 88, .28); background: rgba(48, 209, 88, .07); }
.app-template-tier-select.creator { color: #64d2ff; border-color: rgba(100, 210, 255, .3); background: rgba(100, 210, 255, .07); }
.app-template-tier-select.pro { color: #bf5af2; border-color: rgba(191, 90, 242, .3); background: rgba(191, 90, 242, .08); }

.app-template-edit-button {
    padding: 0 13px;
    cursor: pointer;
}

.app-template-edit-button:hover {
    color: #fff;
    background: #242424;
}

.app-template-updated {
    color: #86868b;
    font-size: 12px;
}

.app-template-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .76);
    backdrop-filter: blur(18px);
}

.app-template-modal-shell {
    display: flex;
    flex-direction: column;
    width: min(980px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid var(--admin-border-strong);
    border-radius: 22px;
    color: #f5f5f7;
    background:
        radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--template-accent, #30d158) 16%, transparent), transparent 34%),
        #0b0b0c;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .58);
}

.app-template-modal-header,
.app-template-modal-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--admin-border);
}

.app-template-modal-header p,
.app-template-modal-header h3,
.app-template-modal-header span {
    display: block;
    margin: 0;
}

.app-template-modal-header p {
    color: var(--template-accent, #30d158);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.app-template-modal-header h3 {
    margin-top: 5px;
    color: white;
    font-size: 24px;
    font-weight: 760;
}

.app-template-modal-header span {
    max-width: 620px;
    margin-top: 7px;
    color: #86868b;
    font-size: 13px;
    line-height: 1.45;
}

.app-template-modal-header button {
    display: flex;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--admin-border);
    border-radius: 50%;
    color: #d1d1d6;
    background: #171717;
    cursor: pointer;
}

.app-template-modal-header button:hover {
    color: #fff;
    background: #242424;
}

.app-template-modal-header svg { width: 17px; height: 17px; }

.app-template-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.app-template-modal-preview {
    display: grid;
    align-content: start;
    gap: 16px;
}

.app-template-preview-frame {
    display: flex;
    aspect-ratio: 9 / 16;
    width: 100%;
    max-height: min(500px, calc(100vh - 360px));
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--admin-border);
    border-radius: 18px;
    background: #000;
}

.app-template-preview-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.app-template-preview-placeholder {
    display: grid;
    place-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    color: #636366;
    text-decoration: none;
    text-align: center;
}

.app-template-preview-placeholder svg {
    width: 34px;
    height: 34px;
    stroke-width: 1.5;
}

.app-template-preview-placeholder span {
    font-size: 12px;
    font-weight: 700;
}

.app-template-modal-preview dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.app-template-modal-preview dl div {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
}

.app-template-modal-preview dt {
    color: #636366;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.app-template-modal-preview dd {
    margin: 6px 0 0;
    overflow: hidden;
    color: #f5f5f7;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-template-modal-form {
    display: grid;
    align-content: start;
    gap: 16px;
}

.app-template-modal-form label span {
    display: block;
    margin-bottom: 8px;
    color: #636366;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.app-template-modal-form input,
.app-template-modal-form textarea,
.app-template-modal-form select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 12px;
    color: #f5f5f7;
    background: #050505;
    font-size: 14px;
    font-weight: 650;
    outline: none;
}

.app-template-modal-form textarea {
    min-height: 156px;
    padding-top: 13px;
    resize: vertical;
    line-height: 1.5;
}

.app-template-modal-form input:focus,
.app-template-modal-form textarea:focus,
.app-template-modal-form select:focus {
    border-color: color-mix(in srgb, var(--template-accent, #30d158) 60%, white 0%);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--template-accent, #30d158) 14%, transparent);
}

.app-template-modal-footer {
    justify-content: flex-end;
    border-top: 1px solid var(--admin-border);
    border-bottom: 0;
    background: rgba(0, 0, 0, .2);
}

.app-template-modal-footer button {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 760;
    cursor: pointer;
}

.app-template-modal-footer button:first-child {
    border: 1px solid var(--admin-border);
    color: #d1d1d6;
    background: #171717;
}

.app-template-modal-footer button:last-child {
    border: 0;
    color: #050505;
    background: #f5f5f7;
}

.app-template-modal-footer button:hover:first-child { background: #242424; color: #fff; }
.app-template-modal-footer button:hover:last-child { background: #d9d9dc; }

.render-workers-section { margin-bottom: 18px; }
.render-workers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--admin-border); }
.render-worker-card { min-height: 100px; padding: 18px 22px; background: #0c0c0d; }
.render-worker-card strong, .render-worker-card span { display: block; }
.render-worker-card strong { color: #30d158; }
.render-worker-card.offline strong { color: #ff6961; }
.render-worker-card span { margin-top: 8px; color: var(--admin-label); font-size: 12px; }
.render-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(380px, .55fr); gap: 18px; align-items: start; }
.render-details { position: sticky; top: 0; }
.render-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.render-filters input { width: 240px; }
.render-table tbody tr { cursor: pointer; }
.render-table tbody tr.active { background: rgba(48, 209, 88, .07); }
.render-status {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 0 9px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.render-status.completed { color: #30d158; border-color: rgba(48, 209, 88, .35); }
.render-status.failed { color: #ff6961; border-color: rgba(255, 105, 97, .35); }
.render-status.cancelled { color: #ffd60a; border-color: rgba(255, 214, 10, .35); }
.render-status.queued, .render-status.preparing, .render-status.rendering { color: #64d2ff; border-color: rgba(100, 210, 255, .35); }
.render-detail-body { padding: 20px 22px; }
.render-detail-list { display: grid; grid-template-columns: 100px 1fr; gap: 10px 14px; margin: 0; }
.render-detail-list dt { color: #636366; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.render-detail-list dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; }
.render-detail-actions { display: flex; gap: 9px; margin-top: 18px; }
.render-detail-actions button { min-height: 36px; padding: 0 13px; border: 1px solid var(--admin-border); border-radius: 8px; color: #fff; background: #1c1c1e; font-size: 12px; font-weight: 700; cursor: pointer; }
.render-detail-actions button.danger { color: #ff6961; }
.render-detail-actions button:disabled { opacity: .35; cursor: default; }
.render-log { max-height: 250px; overflow: auto; margin: 18px 0 0; padding: 14px; border: 1px solid var(--admin-border); border-radius: 10px; color: #a1a1a6; background: #050505; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }

@media (max-width: 1100px) {
    .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .render-layout { grid-template-columns: 1fr; }
    .render-details { position: static; }
    .administrator-card { grid-template-columns: minmax(200px, 1fr) 120px 120px; }
    .administrator-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 767px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-topbar { padding: 0 18px; }
    .admin-content { padding: 28px 16px 70px; }
    .admin-page-heading { align-items: flex-start; flex-direction: column; }
    .admin-role-grid { grid-template-columns: 1fr; }
    .admin-section-header { align-items: flex-start; flex-direction: column; }
    .admin-section-header input, .render-filters, .render-filters input, .render-filters select { width: 100%; }
    .administrator-card { grid-template-columns: 1fr; }
    .administrator-actions { grid-column: auto; }
}

html {
    background: var(--vidly-bg);
}

body.vidly-portal {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 280px),
        var(--vidly-bg);
    color: var(--vidly-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Arial, sans-serif;
}

body.vidly-portal.font-sans,
body.vidly-portal .font-sans {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Arial, sans-serif;
}

body.vidly-portal::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.36;
    mask-image: linear-gradient(180deg, black 0%, black 55%, transparent 100%);
}

body.vidly-portal > aside,
body.vidly-portal > main,
body.vidly-portal > nav,
body.vidly-portal > footer {
    position: relative;
    z-index: 1;
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 220px),
        #000000 !important;
    border-right: 1px solid var(--vidly-line) !important;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
}

main {
    background: transparent !important;
}

.panel-dark,
.card-premium,
.vidly-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 80px),
        var(--vidly-panel) !important;
    border: 1px solid var(--vidly-line) !important;
    border-radius: 8px !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.panel-dark > div:first-child,
.card-premium > div:first-child {
    border-color: var(--vidly-line) !important;
}

body.vidly-portal header {
    background: rgba(0, 0, 0, 0.72) !important;
    border-color: var(--vidly-line) !important;
}

body.vidly-portal input:not([type="checkbox"]):not([type="file"]),
body.vidly-portal textarea,
body.vidly-portal select {
    background: #020202 !important;
    border: 1px solid #252525 !important;
    border-radius: 8px !important;
    color: white !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

body.vidly-portal input:not([type="checkbox"]):not([type="file"]):focus,
body.vidly-portal textarea:focus,
body.vidly-portal select:focus {
    border-color: #565656 !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    outline: none;
}

body.vidly-portal input::placeholder,
body.vidly-portal textarea::placeholder {
    color: #5c5c5c !important;
}

body.vidly-portal input[type="checkbox"] {
    width: 15px;
    height: 15px;
    border-radius: 4px;
}

body.vidly-portal button,
body.vidly-portal a {
    -webkit-tap-highlight-color: transparent;
}

body.vidly-portal aside button[id^="nav-"],
body.vidly-portal aside nav a {
    border: 1px solid transparent;
    border-radius: 8px !important;
}

.vidly-nav-active {
    background: #f4f4f5 !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

.vidly-nav-active svg {
    color: #000000 !important;
}

.vidly-nav-muted {
    background: transparent !important;
    border-color: transparent !important;
}

.vidly-nav-muted:hover {
    background: #0d0d0d !important;
    border-color: #202020 !important;
}

.btn-premium,
.btn-primary {
    background: #f4f4f5 !important;
    color: #000000 !important;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.08);
}

.btn-premium:hover,
.btn-primary:hover {
    background: #ffffff !important;
    transform: none !important;
}

.btn-action {
    border-radius: 8px !important;
}

#adminCounters > div:not(.hidden),
.metric-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 70px),
        #070707 !important;
    border: 1px solid var(--vidly-line) !important;
    border-radius: 8px !important;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

body.vidly-portal table {
    border-collapse: separate;
    border-spacing: 0;
}

body.vidly-portal thead {
    background: #050505 !important;
}

body.vidly-portal tbody tr {
    transition: background-color 0.16s ease, color 0.16s ease;
}

body.vidly-portal tbody tr:hover {
    background: #101010 !important;
}

body.vidly-portal .rounded-xl,
body.vidly-portal .rounded-2xl {
    border-radius: 8px !important;
}

body.vidly-portal .shadow-2xl {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38) !important;
}

.upload-check:checked + span {
    color: #f5f5f5;
}

.upload-check + span {
    line-height: 1.45;
}

body.vidly-doc-page pre {
    white-space: pre-wrap;
    word-break: break-word;
    background: #030303;
    border: 1px solid #1d1d1d;
    border-radius: 8px;
    padding: 18px;
}

body.vidly-doc-page section {
    border-color: #141414 !important;
}

body.vidly-doc-page .standard-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.032), transparent 90px),
        #080808;
    border: 1px solid #1b1b1b;
    border-radius: 8px;
}

.creator-hero-stage {
    isolation: isolate;
    background:
        radial-gradient(circle at 72% 18%, rgba(16, 163, 127, 0.11), transparent 24%),
        radial-gradient(circle at 36% 64%, rgba(255, 255, 255, 0.04), transparent 18%),
        #000000;
}

.creator-motion-bg {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.95;
}

.creator-motion-bg::before {
    content: "";
    position: absolute;
    inset: -12%;
    background:
        radial-gradient(circle at 68% 24%, rgba(16, 163, 127, 0.16), transparent 22%),
        radial-gradient(circle at 82% 70%, rgba(255, 255, 255, 0.075), transparent 18%),
        radial-gradient(circle at 30% 58%, rgba(16, 163, 127, 0.08), transparent 24%);
    filter: blur(12px);
    animation: creator-ambient-drift 16s ease-in-out infinite alternate;
}

.creator-motion-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.055) 47%, transparent 54%),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 54px);
    opacity: 0.28;
    transform: translateX(-40%);
    animation: creator-scanline 9s linear infinite;
}

.designer-screen {
    position: absolute;
    width: min(34vw, 520px);
    height: min(26vw, 360px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 42%),
        rgba(5, 5, 5, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 0 90px rgba(16, 163, 127, 0.08);
    backdrop-filter: blur(2px);
    animation: creator-panel-float 11s ease-in-out infinite;
}

.designer-screen-a {
    right: 6%;
    top: 10%;
}

.designer-screen span {
    position: absolute;
    left: 18px;
    top: 16px;
    color: rgba(16, 163, 127, 0.75);
    font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0;
}

.ae-curve-graph {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 38px;
    bottom: 18px;
    width: calc(100% - 36px);
    height: calc(100% - 56px);
    opacity: 0.9;
}

.ae-graph-grid path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.062);
    stroke-width: 1;
}

.ae-graph-labels text {
    fill: rgba(236, 236, 236, 0.28);
    font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ae-curve {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    stroke-dasharray: 720;
    stroke-dashoffset: 720;
    filter: drop-shadow(0 0 10px rgba(16, 163, 127, 0.24));
    animation: ae-curve-draw 6.8s ease-in-out infinite;
}

.ae-curve-a {
    stroke: url(#curveGlowA);
}

.ae-curve-b {
    stroke: url(#curveGlowB);
    stroke-width: 2;
    animation-delay: -2.4s;
}

.ae-curve-handles path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 1;
    stroke-dasharray: 3 5;
}

.ae-curve-handles circle {
    fill: rgba(3, 3, 3, 0.92);
    stroke: rgba(16, 163, 127, 0.78);
    stroke-width: 2;
    filter: drop-shadow(0 0 8px rgba(16, 163, 127, 0.34));
    animation: ae-curve-point-pulse 2.8s ease-in-out infinite;
}

.ae-curve-handles circle:nth-of-type(2) {
    animation-delay: -0.7s;
}

.ae-curve-handles circle:nth-of-type(3) {
    animation-delay: -1.4s;
}

.ae-curve-handles circle:nth-of-type(4) {
    animation-delay: -2.1s;
}

.designer-screen i {
    position: absolute;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, rgba(16, 163, 127, 0.0), rgba(16, 163, 127, 0.5), rgba(255, 255, 255, 0.08));
    transform-origin: left center;
    animation: creator-layer-pass 5.8s linear infinite;
}

.designer-screen i:nth-of-type(1) {
    top: 34%;
}

.designer-screen i:nth-of-type(2) {
    top: 52%;
    animation-delay: -2.1s;
}

.designer-screen i:nth-of-type(3) {
    top: 70%;
    animation-delay: -3.6s;
}

.motion-track {
    position: absolute;
    left: 46%;
    width: 42%;
    height: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    opacity: 0.58;
}

.motion-track span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 68px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(16, 163, 127, 0.86), rgba(255, 255, 255, 0.48), transparent);
    transform: translateY(-50%);
    animation: creator-track-playhead 6.6s linear infinite;
}

.motion-track-a {
    top: 30%;
}

.motion-track-b {
    top: 43%;
    left: 55%;
    width: 31%;
    opacity: 0.45;
}

.motion-track-b span {
    animation-duration: 8.2s;
    animation-delay: -3s;
}

.motion-track-c {
    top: 62%;
    left: 50%;
    width: 38%;
    opacity: 0.38;
}

.motion-track-c span {
    animation-duration: 7.4s;
    animation-delay: -5s;
}

.keyframe-dot {
    position: absolute;
    width: 13px;
    height: 13px;
    border: 1px solid rgba(16, 163, 127, 0.8);
    background: rgba(16, 163, 127, 0.22);
    box-shadow: 0 0 24px rgba(16, 163, 127, 0.45);
    transform: rotate(45deg);
    animation: creator-keyframe-pulse 2.7s ease-in-out infinite;
}

.keyframe-dot-a {
    left: 64%;
    top: 29%;
}

.keyframe-dot-b {
    left: 77%;
    top: 43%;
    animation-delay: -1s;
}

.keyframe-dot-c {
    left: 70%;
    top: 61%;
    animation-delay: -1.8s;
}

.ae-timeline-panel {
    position: absolute;
    right: 3%;
    bottom: 5%;
    width: min(38vw, 600px);
    height: 226px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%),
        rgba(3, 3, 3, 0.58);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 28px 90px rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(4px);
    overflow: hidden;
    opacity: 0.82;
    animation: creator-panel-float 13s ease-in-out infinite reverse;
}

.ae-timeline-panel::before {
    content: "";
    position: absolute;
    left: 190px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.09);
}

.ae-timeline-panel::after {
    content: "";
    position: absolute;
    left: 190px;
    right: 0;
    top: 58px;
    bottom: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 52px 100%, 100% 32px;
    opacity: 0.62;
}

.ae-timeline-head {
    position: relative;
    z-index: 2;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(236, 236, 236, 0.62);
    font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ae-timeline-head strong {
    color: rgba(16, 163, 127, 0.78);
    font-weight: 800;
}

.ae-time-ruler {
    position: relative;
    z-index: 2;
    height: 24px;
    margin-left: 190px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    color: rgba(255, 255, 255, 0.34);
    font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.ae-time-ruler span {
    padding-left: 8px;
}

.ae-playhead {
    position: absolute;
    z-index: 5;
    left: calc(190px + 8%);
    top: 34px;
    bottom: 0;
    width: 1px;
    background: rgba(16, 163, 127, 0.82);
    box-shadow: 0 0 24px rgba(16, 163, 127, 0.46);
    animation: ae-playhead-sweep 7.5s linear infinite;
}

.ae-playhead::before {
    content: "";
    position: absolute;
    top: 0;
    left: -7px;
    width: 15px;
    height: 11px;
    border-radius: 0 0 4px 4px;
    background: rgba(16, 163, 127, 0.78);
}

.ae-layer-row {
    position: relative;
    z-index: 3;
    height: 32px;
    display: grid;
    grid-template-columns: 36px 154px 1fr;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.052);
    color: rgba(236, 236, 236, 0.6);
    font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ae-layer-row b {
    color: rgba(255, 255, 255, 0.32);
    text-align: center;
}

.ae-layer-row span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ae-layer-row em {
    position: relative;
    display: block;
    height: 13px;
    border-radius: 3px;
    background:
        linear-gradient(90deg, rgba(16, 163, 127, 0.26), rgba(16, 163, 127, 0.78), rgba(255, 255, 255, 0.23));
    box-shadow: 0 0 22px rgba(16, 163, 127, 0.14);
}

.ae-layer-row i {
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border: 1px solid rgba(16, 163, 127, 0.86);
    transform: translateY(-50%) rotate(45deg);
    background: rgba(16, 163, 127, 0.16);
}

.ae-layer-row-a em {
    width: 54%;
    margin-left: 8%;
}

.ae-layer-row-b em {
    width: 72%;
    margin-left: 16%;
}

.ae-layer-row-c em {
    width: 39%;
    margin-left: 38%;
}

.ae-layer-row-d em {
    width: 82%;
    margin-left: 4%;
}

.ae-layer-row-e em {
    width: 48%;
    margin-left: 26%;
}

.ae-layer-row-a i:nth-of-type(1) { left: 45%; }
.ae-layer-row-a i:nth-of-type(2) { left: 66%; }
.ae-layer-row-b i:nth-of-type(1) { left: 39%; }
.ae-layer-row-b i:nth-of-type(2) { left: 58%; }
.ae-layer-row-b i:nth-of-type(3) { left: 82%; }
.ae-layer-row-c i:nth-of-type(1) { left: 71%; }
.ae-layer-row-d i:nth-of-type(1) { left: 28%; }
.ae-layer-row-d i:nth-of-type(2) { left: 87%; }
.ae-layer-row-e i:nth-of-type(1) { left: 53%; }

.typewriter-code-panel {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 32px 90px rgba(0, 0, 0, 0.44);
}

.typewriter-code-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 70% 10%, rgba(16, 163, 127, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 44%);
    pointer-events: none;
}

.typewriter-code-panel pre {
    position: relative;
    z-index: 2;
    background: rgba(3, 3, 3, 0.9);
    backdrop-filter: blur(2px);
}

.typewriter-code-panel pre.is-typing::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 1em;
    margin-left: 4px;
    transform: translateY(2px);
    background: #ececec;
    animation: typewriter-cursor-blink 0.82s steps(1, end) infinite;
}

@keyframes creator-ambient-drift {
    0% {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }
    100% {
        transform: translate3d(3%, 2%, 0) scale(1.04);
    }
}

@keyframes creator-scanline {
    0% {
        transform: translateX(-55%);
    }
    100% {
        transform: translateX(55%);
    }
}

@keyframes creator-panel-float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(-14px, 10px, 0);
    }
}

@keyframes ae-curve-draw {
    0% {
        stroke-dashoffset: 720;
        opacity: 0.25;
    }
    32%, 72% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    100% {
        stroke-dashoffset: -720;
        opacity: 0.38;
    }
}

@keyframes ae-curve-point-pulse {
    0%, 100% {
        opacity: 0.48;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.18);
    }
}

@keyframes creator-layer-pass {
    0% {
        transform: scaleX(0.08);
        opacity: 0.2;
    }
    45% {
        transform: scaleX(0.88);
        opacity: 0.82;
    }
    100% {
        transform: scaleX(0.18);
        opacity: 0.14;
    }
}

@keyframes creator-track-playhead {
    0% {
        transform: translate3d(-20%, -50%, 0);
    }
    100% {
        transform: translate3d(620%, -50%, 0);
    }
}

@keyframes ae-playhead-sweep {
    0% {
        left: calc(190px + 8%);
    }
    100% {
        left: calc(190px + 78%);
    }
}

@keyframes creator-keyframe-pulse {
    0%, 100% {
        opacity: 0.38;
        transform: rotate(45deg) scale(0.82);
    }
    45% {
        opacity: 1;
        transform: rotate(45deg) scale(1.18);
    }
}

@keyframes typewriter-cursor-blink {
    0%, 48% {
        opacity: 1;
    }
    49%, 100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .creator-motion-bg,
    .creator-motion-bg * {
        animation: none !important;
    }
}

@media (max-width: 767px) {
    .designer-screen {
        width: 74vw;
        height: 44vw;
        opacity: 0.45;
    }

    .designer-screen-a {
        right: -28%;
        top: 12%;
    }

    .ae-timeline-panel,
    .motion-track-b,
    .motion-track-c {
        display: none;
    }

    .motion-track {
        left: 28%;
        width: 68%;
    }

    body.vidly-portal header {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    body.vidly-portal main > div {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}
