: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 {
    position: relative;
    display: flex;
    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-sidebar-close,
.creator-sidebar-backdrop,
.creator-mobile-menu-button {
    display: none;
}

.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-topbar-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.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-notification-detail {
    position: fixed;
    inset: 0;
    z-index: 125;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #f5f5f7;
    background: rgba(0, 0, 0, .76);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.creator-notification-detail.hidden,
.creator-notification-detail .hidden {
    display: none !important;
}

.creator-notification-detail > section {
    display: flex;
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #2c2c2f;
    border-radius: 28px;
    background: #0c0c0d;
    box-shadow: 0 32px 90px rgba(0, 0, 0, .72);
}

.creator-notification-detail header,
.creator-notification-detail footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 26px;
    border-bottom: 1px solid var(--creator-border);
}

.creator-notification-detail header p,
.creator-notification-detail header time {
    display: block;
    margin: 0;
}

.creator-notification-detail header p {
    color: var(--creator-accent);
    font-size: 11px;
    font-weight: 750;
}

.creator-notification-detail header time {
    margin-top: 5px;
    color: #636366;
    font-size: 11px;
}

.creator-notification-detail header button {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    border: 1px solid #343437;
    border-radius: 50%;
    color: #d1d1d6;
    background: #1c1c1e;
    cursor: pointer;
}

.creator-notification-detail header button:hover {
    color: #fff;
    background: #29292c;
}

.creator-notification-detail header svg {
    width: 20px;
    height: 20px;
}

.creator-notification-detail-body {
    display: flex;
    min-height: 330px;
    justify-content: center;
    flex-direction: column;
    overflow-y: auto;
    padding: 48px;
}

.creator-notification-detail-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border-radius: 18px;
    color: var(--creator-accent);
    background: rgba(48, 209, 88, .1);
}

.creator-notification-detail-icon svg {
    width: 26px;
    height: 26px;
}

.creator-notification-detail h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.creator-notification-detail-body > p {
    margin: 20px 0 0;
    color: #a1a1a6;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.creator-notification-detail footer {
    justify-content: flex-end;
    border-top: 1px solid var(--creator-border);
    border-bottom: 0;
}

.creator-notification-detail footer .creator-primary-button,
.creator-notification-detail footer .creator-secondary-button {
    min-height: 48px;
}

body.creator-notification-detail-open {
    overflow: hidden !important;
}

@media (max-width: 640px) {
    .creator-notification-detail {
        align-items: flex-end;
        padding: 12px;
    }

    .creator-notification-detail > section {
        width: 100%;
        max-height: calc(100dvh - 24px);
        border-radius: 24px;
    }

    .creator-notification-detail header,
    .creator-notification-detail footer {
        padding: 18px;
    }

    .creator-notification-detail-body {
        min-height: 300px;
        padding: 36px 22px;
    }

    .creator-notification-detail h2 {
        font-size: 30px;
    }

    .creator-notification-detail footer {
        display: grid;
        grid-template-columns: 1fr;
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }

    .creator-notification-detail.has-action footer {
        grid-template-columns: 1fr 1fr;
    }

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

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

.creator-verification-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.creator-diia-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    overflow: visible;
    border-radius: 10px;
    background: transparent;
}

.creator-diia-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.creator-verification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 10px;
    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 > 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-verification-action > .creator-identity-verified-button,
.creator-verification-action > .creator-identity-verified-button:disabled {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #fff;
    border-radius: 8px;
    color: #111;
    background: #fff;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
    cursor: default;
    opacity: 1;
}

.creator-identity-verified-button svg {
    width: 15px;
    height: 15px;
    stroke-width: 3;
    color: #30d158;
}

.creator-diia-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
}

body.creator-modal-open {
    overflow: hidden;
}

.creator-identity-return-page {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    color: #f5f5f7;
    background:
        radial-gradient(circle at 50% 24%, rgba(16, 185, 129, 0.13), transparent 32rem),
        #050505;
}

.creator-identity-return {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2rem;
    padding: max(2rem, env(safe-area-inset-top)) 1.25rem max(2rem, env(safe-area-inset-bottom));
}

.creator-identity-return-brand {
    color: #fff;
    font-size: clamp(2rem, 9vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    text-decoration: none;
}

.creator-identity-return-card {
    width: min(100%, 34rem);
    padding: clamp(2rem, 8vw, 3.5rem);
    border: 1px solid #262626;
    border-radius: 1.5rem;
    background: rgba(12, 12, 12, 0.94);
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.45);
    text-align: center;
}

.creator-identity-return-icon {
    display: grid;
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    place-items: center;
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
}

.creator-identity-return-icon svg {
    width: 2.25rem;
    height: 2.25rem;
}

.creator-identity-return-card h1 {
    margin: 0.75rem 0 1rem;
    color: #fff;
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.creator-identity-return-card > p:not(.creator-diia-eyebrow) {
    margin: 0;
    color: #a1a1a6;
    font-size: 1.05rem;
    line-height: 1.6;
}

.creator-identity-return-card .creator-identity-return-note {
    margin-top: 1.5rem;
    color: #34d399;
    font-weight: 700;
}

.creator-diia-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(14px);
    cursor: default;
}

.creator-diia-dialog {
    position: relative;
    width: min(100%, 510px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 24px;
    color: #f5f5f7;
    background:
        radial-gradient(circle at 50% 0%, rgba(48, 209, 88, 0.12), transparent 38%),
        #0b0b0b;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72);
    text-align: center;
}

.creator-diia-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #a1a1a6;
    background: #171717;
    cursor: pointer;
}

.creator-diia-close:hover {
    color: #fff;
    background: #222;
}

.creator-diia-close svg {
    width: 17px;
    height: 17px;
}

.creator-diia-eyebrow {
    margin: 0 0 10px;
    color: #30d158;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.creator-diia-dialog h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.08;
}

.creator-diia-instruction {
    max-width: 360px;
    margin: 14px auto 22px;
    color: #a1a1a6;
    font-size: 14px;
    line-height: 1.5;
}

.creator-diia-qr {
    width: min(100%, 330px);
    margin: 0 auto;
    padding: 15px;
    border-radius: 20px;
    background: #fff;
}

.creator-diia-qr img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.creator-diia-countdown {
    margin: 12px 0 0;
    color: #30d158;
    font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.08em;
}

.creator-diia-waiting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    color: #d1d1d6;
}

.creator-diia-waiting span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #30d158;
    box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.45);
    animation: creator-diia-pulse 1.8s infinite;
}

.creator-diia-waiting p {
    margin: 0;
    font-size: 12px;
}

.creator-diia-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 18px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    color: #f5f5f7;
    background: #151515;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.creator-diia-open:hover {
    background: #202020;
}

@keyframes creator-diia-pulse {
    70% {
        box-shadow: 0 0 0 8px rgba(48, 209, 88, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(48, 209, 88, 0);
    }
}

.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;
}

@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-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 80;
        width: min(86vw, 320px);
        padding-top: max(28px, env(safe-area-inset-top));
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        box-shadow: 24px 0 70px rgba(0, 0, 0, 0.58);
    }

    body.creator-mobile-menu-open {
        overflow: hidden;
    }

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

    .creator-sidebar-close {
        position: absolute;
        top: max(14px, env(safe-area-inset-top));
        right: 12px;
        display: flex;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--creator-border);
        border-radius: 8px;
        color: #a1a1a6;
        background: #181818;
    }

    .creator-sidebar-close svg,
    .creator-mobile-menu-button svg {
        width: 18px;
        height: 18px;
    }

    .creator-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 70;
        display: block;
        border: 0;
        opacity: 0;
        pointer-events: none;
        background: rgba(0, 0, 0, 0.68);
        transition: opacity 0.22s ease;
    }

    body.creator-mobile-menu-open .creator-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .creator-mobile-menu-button {
        display: flex;
        width: 38px;
        height: 38px;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--creator-border);
        border-radius: 8px;
        color: #d1d1d6;
        background: #151515;
    }

    .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 max(32px, env(safe-area-inset-bottom));
    }

    .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: auto 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%;
    }

    .creator-diia-modal {
        padding: 12px;
    }

    .creator-diia-dialog {
        max-height: calc(100vh - 24px);
        padding: 32px 18px 22px;
        border-radius: 18px;
    }

    .creator-diia-qr {
        width: min(100%, 300px);
    }

    .creator-diia-open {
        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-secondary-button.registration-paused {
    border-color: rgba(248, 113, 113, 0.45);
    color: #f87171;
    background: rgba(127, 29, 29, 0.16);
}
.admin-secondary-button.registration-paused:hover {
    background: rgba(127, 29, 29, 0.28);
}
.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)); }

.analytics-table { min-width: 680px; }
.analytics-table td { vertical-align: middle; }
.analytics-traffic-bar {
    width: min(360px, 100%);
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #202024;
}
.analytics-traffic-bar > span {
    display: block;
    min-width: 3px;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #60a5fa);
}
.analytics-day-label { color: #f5f5f7; font-weight: 650; }
.analytics-day-label small { display: block; margin-top: 4px; color: var(--admin-label); font-weight: 500; }
.analytics-country-label { display: inline-flex; align-items: center; gap: 9px; color: #f5f5f7; }
.analytics-country-label > span { font-size: 1.25rem; line-height: 1; }
.analytics-country-label small { color: var(--admin-label); font-size: .72rem; letter-spacing: .08em; }
.analytics-attribution { margin: 14px 4px 0; color: var(--admin-label); font-size: .75rem; }
.analytics-attribution a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.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-communications-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr);
    gap: 18px;
}
.communications-table-wrap { min-height: 360px; max-height: 58vh; }
.communication-composer { align-self: start; position: sticky; top: 88px; }
.commercial-offer-layout {
    width: 100%;
}
.commercial-offer-section {
    overflow: visible;
}
.commercial-offer-scope {
    display: flex;
    max-width: 390px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(48, 209, 88, .22);
    border-radius: 10px;
    color: #a1a1a6;
    background: rgba(48, 209, 88, .05);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
}
.commercial-offer-scope svg {
    width: 18px;
    min-width: 18px;
    color: var(--admin-accent);
}
.admin-message-form {
    display: grid;
    gap: 18px;
    padding: 22px;
}
.notification-message-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}
.notification-composer-section { max-width: 1180px; }
.commercial-offer-form {
    grid-template-columns: minmax(180px, .45fr) minmax(320px, 1.55fr);
    padding: 24px;
}
.commercial-offer-form textarea {
    min-height: 340px;
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.65;
}
.commercial-offer-form .admin-primary-button {
    width: max-content;
}
.commercial-offer-documents {
    padding: 0 24px 24px;
    border-top: 1px solid var(--admin-border);
}
.commercial-offer-documents-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0 4px;
}
.commercial-offer-documents-heading h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 650;
}
.commercial-offer-documents-heading p {
    margin: 5px 0 0;
    color: var(--admin-label);
    font-size: 12px;
}
.admin-message-form label {
    display: grid;
    align-content: start;
    grid-auto-rows: max-content;
    gap: 8px;
    color: #8e8e93;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}
.admin-message-form label.full { grid-column: 1 / -1; }
.admin-message-form input,
.admin-message-form textarea {
    width: 100%;
    border: 1px solid var(--admin-border-strong);
    border-radius: 10px;
    color: #f5f5f7;
    background: #111;
    font: inherit;
    font-size: 13px;
    line-height: 1.55;
    outline: none;
}
.admin-message-form input { min-height: 42px; padding: 0 13px; }
.admin-message-form textarea { min-height: 120px; padding: 13px; resize: vertical; }
.admin-message-form input:focus,
.admin-message-form textarea:focus { border-color: rgba(48, 209, 88, .55); }
.designer-recipient-field { position: relative; }
.designer-recipient-field > small {
    min-height: 16px;
    color: #636366;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
}
.notification-action-field > small {
    color: #636366;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
}
.notification-title-field > small {
    min-height: 16px;
    font-size: 11px;
    line-height: 1.4;
}
.notification-submit-actions {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 2px;
}
.notification-submit-actions .admin-primary-button,
.notification-submit-actions .admin-secondary-button {
    min-height: 42px;
}
.notification-broadcast-button {
    border-color: rgba(48, 209, 88, .55);
    color: #07140a;
    background: var(--admin-accent);
}
.notification-broadcast-button:hover { background: #48dd6b; }
.designer-recipient-options {
    position: absolute;
    z-index: 30;
    top: 66px;
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--admin-border-strong);
    border-radius: 10px;
    padding: 6px;
    background: #111;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .42);
}
.designer-recipient-options button {
    display: grid;
    gap: 4px;
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 11px 12px;
    color: #f5f5f7;
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.designer-recipient-options button:hover,
.designer-recipient-options button:focus-visible {
    outline: none;
    background: rgba(48, 209, 88, .1);
}
.designer-recipient-options strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.designer-recipient-options span {
    overflow: hidden;
    color: #8e8e93;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-message-form .admin-primary-button { justify-self: start; }
.admin-danger-button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 69, 58, .32);
    border-radius: 8px;
    color: #ff6961;
    background: rgba(255, 69, 58, .07);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.admin-danger-button:hover { background: rgba(255, 69, 58, .14); }
.admin-danger-button.compact { min-height: 30px; }
.admin-message-form button:disabled { opacity: .45; cursor: wait; }
.app-template-pagination > button {
    min-width: 38px;
    min-height: 34px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 9px;
    color: #f5f5f7;
    background: #171717;
    cursor: pointer;
}
.app-template-pagination > button:disabled { opacity: .35; cursor: default; }
.app-template-pagination > span { color: #8e8e93; font-size: 12px; font-weight: 700; }

.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; }

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

.creator-filters {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 9px;
}

.creator-filters input,
.creator-filters select {
    width: 100%;
    min-width: 0;
}

.creator-summary {
    border-bottom: 1px solid var(--admin-border);
}

.creator-inventory-wrap {
    height: clamp(360px, 55vh, 680px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.admin-creators-table {
    min-width: 1380px;
    table-layout: fixed;
}

.admin-creators-table th,
.admin-creators-table td {
    padding: 12px 14px;
    vertical-align: middle;
}

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

.admin-creators-table th:nth-child(1),
.admin-creators-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 270px;
    background: #0d0d0e;
    box-shadow: 12px 0 20px rgba(0, 0, 0, .18);
}

.admin-creators-table thead th:nth-child(1) {
    z-index: 6;
    background: #0c0c0d;
}

.admin-creators-table th:nth-child(2),
.admin-creators-table td:nth-child(2) { width: 220px; }
.admin-creators-table th:nth-child(3),
.admin-creators-table td:nth-child(3) { width: 205px; }
.admin-creators-table th:nth-child(4),
.admin-creators-table td:nth-child(4) { width: 250px; }
.admin-creators-table th:nth-child(5),
.admin-creators-table td:nth-child(5) { width: 150px; }
.admin-creators-table th:nth-child(6),
.admin-creators-table td:nth-child(6) { width: 155px; }
.admin-creators-table th:nth-child(7),
.admin-creators-table td:nth-child(7) { width: 130px; }

.creator-register-profile {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    min-width: 0;
}

.creator-register-avatar {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(48, 209, 88, .22);
    border-radius: 12px;
    object-fit: cover;
    background: #141414;
}

.creator-register-avatar-fallback {
    display: grid;
    place-items: center;
    color: #30d158;
    background: rgba(48, 209, 88, .08);
    font-size: 13px;
    font-weight: 800;
}

.creator-register-profile strong,
.creator-register-profile span,
.creator-register-profile small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.creator-register-profile strong {
    color: #f5f5f7;
    font-size: 13px;
    font-weight: 750;
}

.creator-register-profile span {
    margin-top: 3px;
    color: #a1a1a6;
    font-size: 11px;
}

.creator-register-profile small {
    margin-top: 4px;
    color: #636366;
    font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.creator-register-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.creator-register-status {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 0 8px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 999px;
    color: #a1a1a6;
    background: #141414;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .035em;
    white-space: nowrap;
}

.creator-register-status.success {
    color: #30d158;
    border-color: rgba(48, 209, 88, .24);
    background: rgba(48, 209, 88, .07);
}
.creator-register-status.warning {
    color: #ffd60a;
    border-color: rgba(255, 214, 10, .22);
    background: rgba(255, 214, 10, .06);
}
.creator-register-status.danger {
    color: #ff6961;
    border-color: rgba(255, 105, 97, .24);
    background: rgba(255, 105, 97, .06);
}
.creator-register-status.info {
    color: #64d2ff;
    border-color: rgba(100, 210, 255, .24);
    background: rgba(100, 210, 255, .06);
}

.creator-register-primary,
.creator-register-number,
.creator-register-money {
    color: #f5f5f7;
    font-size: 13px;
    font-weight: 750;
}

.creator-register-money { color: #30d158; }
.creator-register-secondary {
    margin-top: 5px;
    color: #77777c;
    font-size: 10px;
    line-height: 1.35;
}

.creator-manage-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 9px;
    color: #f5f5f7;
    background: #171717;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
}

.creator-manage-button:hover {
    border-color: #48484a;
    background: #242424;
}

.creator-manage-button svg {
    width: 14px;
    height: 14px;
}

.creator-management-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    overflow: auto;
    place-items: center;
    padding: 30px;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(12px);
}

.creator-management-card {
    width: min(1040px, 100%);
    max-height: calc(100vh - 60px);
    overflow: auto;
    border: 1px solid var(--admin-border-strong);
    border-radius: 18px;
    background: #0c0c0d;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .7);
}

.creator-management-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--admin-border);
    background: rgba(12, 12, 13, .96);
    backdrop-filter: blur(12px);
}

.creator-management-header p,
.creator-management-header h3,
.creator-management-header span { margin: 0; }
.creator-management-header p {
    color: #30d158;
    font: 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.creator-management-header h3 {
    margin-top: 7px;
    color: #fff;
    font-size: 22px;
}
.creator-management-header span {
    display: block;
    margin-top: 6px;
    color: #8e8e93;
    font-size: 12px;
}
.creator-management-header button {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--admin-border-strong);
    border-radius: 10px;
    color: #d1d1d6;
    background: #171717;
    cursor: pointer;
}
.creator-management-header button svg { width: 17px; }

.creator-management-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 20px 24px;
}

.creator-management-grid section {
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--admin-border);
    border-radius: 13px;
    background: #111;
}

.creator-management-grid h4 {
    margin: 0 0 15px;
    color: #f5f5f7;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.creator-management-grid dl {
    display: grid;
    grid-template-columns: minmax(90px, .8fr) minmax(0, 1.2fr);
    gap: 10px 12px;
    margin: 0;
}
.creator-management-grid dt {
    color: #636366;
    font-size: 10px;
    font-weight: 700;
}
.creator-management-grid dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #d1d1d6;
    font-size: 11px;
}
.creator-management-grid a { color: #64d2ff; }

.creator-management-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 24px 24px;
}

.creator-management-actions button {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 9px;
    color: #f5f5f7;
    background: #171717;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}
.creator-management-actions button:hover { background: #242424; }
.creator-management-actions button.danger { color: #ff6961; border-color: rgba(255, 105, 97, .28); }
.creator-management-actions button.success { color: #30d158; border-color: rgba(48, 209, 88, .28); }
.creator-management-actions button.warning { color: #ffd60a; border-color: rgba(255, 214, 10, .28); }

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

.app-template-filters {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 9px;
}

.app-template-filters > div,
.app-template-filters input,
.app-template-filters select {
    width: 100%;
    min-width: 0;
}

.app-template-reset-filters {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 9px;
    color: #a1a1a6;
    background: #111;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.app-template-reset-filters:hover {
    color: #fff;
    border-color: #48484a;
    background: #1c1c1e;
}

.app-template-reset-filters svg {
    width: 15px;
    height: 15px;
}

.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-summary .visible strong { color: #30d158; }
.app-template-summary .hidden strong { color: #ff6961; }

.app-template-inventory-wrap {
    height: clamp(360px, 55vh, 680px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

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

.app-template-table th,
.app-template-table td {
    padding: 12px 14px;
}

.app-template-table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    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: 220px; }
.app-template-table th:nth-child(2), .app-template-table td:nth-child(2) { width: 210px; }
.app-template-table th:nth-child(3), .app-template-table td:nth-child(3) { width: 260px; }
.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: 150px; }
.app-template-table th:nth-child(6), .app-template-table td:nth-child(6) { width: 120px; }
.app-template-table th:nth-child(7), .app-template-table td:nth-child(7) { width: 130px; }
.app-template-table th:nth-child(8), .app-template-table td:nth-child(8) { width: 280px; }

.app-template-table th:nth-child(1),
.app-template-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #0d0d0e;
}

.app-template-table th:nth-child(2),
.app-template-table td:nth-child(2) {
    position: sticky;
    left: 220px;
    z-index: 3;
    border-right: 1px solid var(--admin-border-strong);
    background: #0d0d0e;
    box-shadow: 12px 0 20px rgba(0, 0, 0, .18);
}

.app-template-table thead th:nth-child(1),
.app-template-table thead th:nth-child(2) {
    z-index: 6;
    background: #0c0c0d;
}

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

.app-template-row.is-hidden {
    background: rgba(255, 105, 97, .025);
}

.app-template-row.is-hidden .app-template-dot {
    background: #636366;
    box-shadow: none;
}

.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-creator-cell {
    min-width: 0;
}

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

.app-template-creator-cell strong {
    color: #f5f5f7;
    font-size: 13px;
    font-weight: 750;
}

.app-template-creator-cell small {
    margin-top: 5px;
    color: #8e8e93;
    font-size: 10px;
    line-height: 1.35;
}

.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-pagination {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    border-top: 1px solid var(--admin-border);
    background: #090909;
}

.app-template-page-range {
    color: #8e8e93;
    font-size: 12px;
    font-weight: 650;
}

.app-template-page-controls {
    display: flex;
    align-items: center;
    gap: 9px;
}

.app-template-page-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 6px;
    color: #8e8e93;
    font-size: 11px;
    font-weight: 650;
}

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

.app-template-page-controls select {
    min-width: 68px;
    padding: 0 9px;
}

.app-template-page-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 11px;
    cursor: pointer;
}

.app-template-page-controls button:hover:not(:disabled) {
    background: #242424;
}

.app-template-page-controls button:disabled {
    opacity: .35;
    cursor: default;
}

.app-template-page-controls button svg {
    width: 14px;
    height: 14px;
}

.app-template-page-controls strong {
    min-width: 104px;
    color: #c7c7cc;
    font-size: 11px;
    text-align: center;
}

.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,
.app-template-visibility-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,
.app-template-visibility-button:hover {
    color: #fff;
    background: #242424;
}

.app-template-visibility {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 9px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}

.app-template-visibility.visible {
    color: #30d158;
    border-color: rgba(48, 209, 88, .28);
    background: rgba(48, 209, 88, .07);
}

.app-template-visibility.hidden {
    color: #ff6961;
    border-color: rgba(255, 105, 97, .3);
    background: rgba(255, 105, 97, .07);
}

.app-template-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.app-template-visibility-button {
    min-width: 112px;
    padding: 0 12px;
    cursor: pointer;
}

.app-template-visibility-button.hide {
    color: #ff6961;
    border-color: rgba(255, 105, 97, .28);
}

.app-template-visibility-button.restore {
    color: #30d158;
    border-color: rgba(48, 209, 88, .28);
}

.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-field-labels {
    display: grid;
    gap: 14px;
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid var(--admin-border);
}

.app-template-field-labels > header strong {
    color: #f5f5f7;
    font-size: 14px;
}

.app-template-field-labels > header p {
    margin: 6px 0 0;
    color: #8e8e93;
    font-size: 12px;
    line-height: 1.5;
}

.app-template-field-label-list {
    display: grid;
    gap: 10px;
}

.app-template-field-label-row {
    display: block;
    padding: 14px;
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .025);
}

.app-template-modal-form label .app-template-field-label-heading {
    display: flex;
    margin: 0 0 12px;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.app-template-field-label-heading strong { color: #f5f5f7; font-size: 12px; }
.app-template-field-label-heading small { color: #636366; font-size: 10px; }

.app-template-modal-form label .app-template-field-translation {
    display: block;
    margin-top: 8px;
    color: #30d158;
    font-size: 11px;
    line-height: 1.4;
}

.app-template-field-empty { margin: 0; color: #8e8e93; font-size: 12px; }

.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; }
    .creator-management-grid { grid-template-columns: 1fr; }
    .admin-communications-grid { grid-template-columns: 1fr; }
    .communication-composer { position: static; }
    .commercial-offer-scope { max-width: none; }
}

@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; }
    .creator-inventory-wrap { height: 58vh; min-height: 340px; }
    .creator-management-modal { padding: 12px; }
    .creator-management-card { max-height: calc(100vh - 24px); }
    .creator-management-header,
    .creator-management-grid { padding-left: 16px; padding-right: 16px; }
    .creator-management-actions { padding: 0 16px 18px; }
    .creator-management-actions button { flex: 1 1 190px; }
    .app-template-inventory-wrap { height: 58vh; min-height: 340px; }
    .app-template-pagination { align-items: flex-start; flex-direction: column; }
    .app-template-page-controls { width: 100%; flex-wrap: wrap; }
    .app-template-page-controls label { width: 100%; justify-content: space-between; margin-right: 0; }
    .app-template-page-controls button { flex: 1; }
    .notification-message-form { grid-template-columns: 1fr; }
    .commercial-offer-form { grid-template-columns: 1fr; }
    .admin-message-form label.full { grid-column: auto; }
    .admin-message-form .admin-primary-button { width: 100%; }
    .notification-submit-actions { align-items: stretch; flex-direction: column; }
    .notification-submit-actions { grid-column: auto; }
    .notification-submit-actions .admin-primary-button,
    .notification-submit-actions .admin-secondary-button { width: 100%; }
    .commercial-offer-documents-heading { align-items: stretch; flex-direction: column; }
    .commercial-offer-documents-heading .admin-secondary-button { width: 100%; }
}

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;
    }
}

/* Mobile responsive completeness — shared portal surfaces */
body.vidly-portal *,
body.vidly-portal *::before,
body.vidly-portal *::after {
    box-sizing: border-box;
}

.creator-shell,
.creator-main,
.admin-shell,
.admin-main {
    height: 100vh;
    height: 100dvh;
}

.admin-sidebar {
    position: relative;
    display: flex;
}

.admin-sidebar-close,
.admin-sidebar-backdrop,
.admin-mobile-menu-button {
    display: none;
}

.admin-topbar-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.admin-topbar-title > div {
    min-width: 0;
}

.admin-topbar-title h1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.vidly-auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-top: max(28px, env(safe-area-inset-top));
    padding-bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));
}

.creator-identity-return-page,
.creator-identity-return {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.creator-identity-return-card {
    max-width: 34rem;
}

.creator-table-wrap,
.admin-table-wrap,
.creator-inventory-wrap,
.app-template-inventory-wrap,
.communications-table-wrap {
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

@media (max-width: 767px) {
    body.creator-dashboard,
    body.admin-dashboard {
        min-height: 100dvh;
    }

    .creator-shell,
    .creator-main,
    .admin-shell,
    .admin-main {
        height: 100dvh;
    }

    .creator-topbar,
    .admin-topbar {
        min-height: max(64px, calc(54px + env(safe-area-inset-top)));
        padding-top: env(safe-area-inset-top) !important;
        gap: 10px;
    }

    .creator-topbar-title,
    .admin-topbar-title {
        min-width: 0;
        gap: 10px;
    }

    .creator-topbar-title > div,
    .admin-topbar-title > div {
        min-width: 0;
    }

    .creator-topbar-title h1,
    .admin-topbar-title h1 {
        overflow: hidden;
        font-size: 15px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .creator-topbar-actions,
    .admin-topbar-actions {
        flex: 0 0 auto;
        gap: 7px;
    }

    .creator-language-switch {
        min-height: 34px;
        padding: 3px;
    }

    .creator-language-switch button {
        min-width: 32px;
        min-height: 28px;
        padding: 0 7px;
    }

    .creator-content,
    .admin-content {
        scroll-padding-bottom: calc(28px + env(safe-area-inset-bottom));
        overscroll-behavior-y: contain;
    }

    .creator-page-heading h2,
    .admin-page-heading h2 {
        font-size: clamp(28px, 9vw, 36px);
        overflow-wrap: anywhere;
    }

    .creator-section,
    .admin-section,
    .creator-upload-section,
    .creator-settings-card,
    .creator-ledger-card,
    .creator-detail-card {
        border-radius: 14px;
    }

    .creator-table,
    .admin-table {
        min-width: 760px;
    }

    .creator-table th,
    .creator-table td,
    .admin-table th,
    .admin-table td {
        padding-left: 14px;
        padding-right: 14px;
    }

    .creator-primary-button,
    .creator-secondary-button,
    .admin-primary-button,
    .admin-secondary-button,
    .creator-table-actions button,
    .admin-icon-button {
        min-height: 44px;
    }

    .creator-form-field input,
    .creator-form-field select,
    .creator-form-field textarea,
    .admin-section-header input,
    .admin-section-header select,
    .admin-message-form input,
    .admin-message-form textarea,
    .render-filters input,
    .render-filters select,
    body.vidly-auth-page input,
    body.vidly-auth-page select,
    body.vidly-auth-page textarea {
        font-size: 16px;
    }

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

    .creator-diia-dialog,
    .creator-modal-card,
    .admin-modal-card,
    .creator-management-card,
    .app-template-modal-card {
        max-width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
    }

    .creator-diia-qr {
        width: min(74vw, 270px);
    }

    .creator-settings-nav {
        margin-right: -16px;
        padding-right: 16px;
        scroll-snap-type: x proximity;
    }

    .creator-settings-nav a {
        min-height: 44px;
        scroll-snap-align: start;
    }

    .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 90;
        width: min(88vw, 320px);
        min-height: 100dvh;
        overflow-y: auto;
        padding-top: max(28px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        transform: translateX(-105%);
        transition: transform 220ms ease;
        box-shadow: 24px 0 70px rgba(0, 0, 0, 0.62);
    }

    body.admin-mobile-menu-open {
        overflow: hidden;
    }

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

    .admin-sidebar-close {
        position: absolute;
        top: max(14px, env(safe-area-inset-top));
        right: 12px;
        display: grid;
        width: 38px;
        height: 38px;
        place-items: center;
        border: 1px solid var(--admin-border);
        border-radius: 9px;
        color: #d1d1d6;
        background: #181818;
    }

    .admin-sidebar-close svg,
    .admin-mobile-menu-button svg {
        width: 18px;
        height: 18px;
    }

    .admin-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 80;
        display: block;
        border: 0;
        opacity: 0;
        pointer-events: none;
        background: rgba(0, 0, 0, 0.7);
        transition: opacity 220ms ease;
    }

    body.admin-mobile-menu-open .admin-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .admin-mobile-menu-button {
        display: grid;
        width: 40px;
        height: 40px;
        flex: 0 0 auto;
        place-items: center;
        border: 1px solid var(--admin-border);
        border-radius: 9px;
        color: #d1d1d6;
        background: #151515;
    }

    .admin-topbar {
        padding-right: 14px !important;
    }

    #creatorRegistrationToggle {
        width: 40px;
        min-width: 40px;
        padding: 0;
    }

    #creatorRegistrationToggle span {
        display: none;
    }

    .admin-content {
        padding: 26px 16px max(42px, calc(24px + env(safe-area-inset-bottom)));
    }

    .admin-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .admin-metric-card {
        min-height: 104px;
        padding: 16px;
        border-radius: 14px;
    }

    .admin-metric-card strong {
        font-size: 26px;
    }

    .admin-section-header {
        padding: 16px;
    }

    .admin-role-grid,
    .admin-communications-grid,
    .creator-management-grid,
    .render-layout,
    .notification-message-form {
        grid-template-columns: 1fr;
    }

    .render-filters {
        justify-content: stretch;
    }

    .render-detail-list {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .render-detail-actions,
    .administrator-actions,
    .creator-management-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .render-detail-actions button,
    .administrator-actions button,
    .creator-management-actions button {
        width: 100%;
        min-height: 42px;
    }

    body.vidly-auth-page {
        align-items: flex-start !important;
        padding-left: 16px;
        padding-right: 16px;
    }

    body.vidly-auth-page > .fixed.bottom-4.right-4 {
        top: max(14px, env(safe-area-inset-top));
        right: max(14px, env(safe-area-inset-right));
        bottom: auto;
    }

    body.vidly-auth-page > .max-w-sm,
    body.vidly-auth-page > .w-full.max-w-sm {
        margin: auto 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .creator-identity-return {
        min-height: 100dvh;
        padding: max(28px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)) !important;
    }

    .creator-identity-return-card {
        width: 100%;
        padding: 30px 20px;
        border-radius: 20px;
    }

    .creator-identity-return-card h1 {
        font-size: clamp(30px, 10vw, 42px);
    }
}

@media (max-width: 420px) {
    .creator-topbar,
    .admin-topbar {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .creator-mobile-brand,
    .admin-mobile-brand {
        display: none !important;
    }

    .creator-topbar-title h1,
    .admin-topbar-title h1 {
        max-width: 112px;
    }

    .creator-top-avatar {
        display: none !important;
    }

    .creator-content,
    .admin-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .creator-page-heading h2,
    .admin-page-heading h2 {
        font-size: 28px;
    }

    .creator-upload-section,
    .creator-settings-card,
    .creator-ledger-card {
        padding-left: 16px;
        padding-right: 16px;
    }

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

@media (max-height: 700px) and (max-width: 767px) {
    body.vidly-auth-page {
        justify-content: flex-start !important;
    }

    body.vidly-auth-page .mb-8 {
        margin-bottom: 1.25rem;
    }

    body.vidly-auth-page .my-6 {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    body.vidly-auth-page .mt-8 {
        margin-top: 1.25rem;
    }
}

/* Desktop admin guard: never retain the mobile drawer layout after resizing. */
@media (min-width: 768px) {
    body.admin-dashboard,
    .admin-shell {
        width: 100%;
        min-width: 768px;
    }

    .admin-shell {
        grid-template-columns: 248px minmax(0, 1fr);
    }

    .admin-main {
        width: auto;
        min-width: 0;
    }

    .admin-sidebar {
        position: relative;
        inset: auto;
        width: auto;
        min-height: 0;
        transform: none;
        box-shadow: none;
    }

    .admin-sidebar-close,
    .admin-sidebar-backdrop,
    .admin-mobile-menu-button {
        display: none !important;
    }
}

.admin-document-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.admin-document-item {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #242424;
    border-radius: 12px;
    background: #080808;
}

.admin-document-item header,
.admin-document-item footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-document-item small {
    overflow-wrap: anywhere;
    color: #737373;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 640px) {
    .admin-document-item header,
    .admin-document-item footer {
        align-items: stretch;
        flex-direction: column;
    }
}
