:root {
    color-scheme: dark;
    --bg: #07141c;
    --surface: #0c202b;
    --surface-2: #102a37;
    --line: rgba(255, 255, 255, 0.11);
    --text: #eefcff;
    --muted: #9cb7c1;
    --accent: #40e0d0;
    --accent-2: #5eb9ff;
    --danger: #ff8e96;
    --radius: 22px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 20% 0%, #103746 0, var(--bg) 38rem);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
a { color: inherit; }
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 76px;
    padding: 0 5vw;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 20, 28, 0.84);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; }
.brand-mark {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06202a;
}
.page-shell { width: min(1120px, 90vw); margin: 0 auto; padding: 72px 0; }
.auth-card, .placeholder-card, .metric-card {
    border: 1px solid var(--line); background: rgba(12, 32, 43, 0.88); box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}
.auth-card { width: min(560px, 100%); margin: 0 auto; padding: clamp(28px, 6vw, 52px); border-radius: var(--radius); }
h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.02; margin: 10px 0 18px; }
h2 { margin-top: 0; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .13em; font-size: .75rem; font-weight: 800; }
.lead { color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.stack { display: grid; gap: 18px; margin-top: 32px; }
label { display: grid; gap: 9px; color: var(--muted); }
input {
    width: 100%; padding: 15px 16px; color: var(--text); border: 1px solid var(--line); border-radius: 13px;
    outline: none; background: rgba(255, 255, 255, 0.045);
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(64, 224, 208, 0.12); }
.code-input { font-size: 1.6rem; letter-spacing: .3em; text-align: center; }
.button {
    border: 0; border-radius: 13px; padding: 14px 20px; cursor: pointer; font-weight: 800; text-decoration: none;
}
.button-primary { color: #05242b; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.button-ghost { color: var(--text); background: rgba(255,255,255,.07); }
.fine-print, .text-link { display: block; margin-top: 20px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.alert { width: min(720px, 100%); margin: 0 auto 22px; padding: 14px 18px; border-radius: 12px; }
.alert-error { background: rgba(255, 82, 92, .12); color: #ffc7ca; border: 1px solid rgba(255, 142, 150, .3); }
.dev-code { margin: 24px 0; padding: 16px; border: 1px dashed var(--accent); border-radius: 12px; background: rgba(64,224,208,.08); }
.dev-code code { font-size: 1.2rem; color: var(--accent); }
.dashboard-hero { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.status-pill { padding: 10px 16px; border-radius: 999px; white-space: nowrap; }
.status-active { background: rgba(64,224,208,.13); color: var(--accent); }
.status-inactive { background: rgba(255,255,255,.08); color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.metric-card { min-height: 150px; padding: 26px; border-radius: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.metric-card span { color: var(--muted); }
.metric-card strong { font-size: 1.25rem; }
.placeholder-card { margin-top: 18px; padding: 30px; border-radius: 18px; }
.placeholder-card p { color: var(--muted); }
@media (max-width: 760px) {
    .site-header { padding: 0 20px; }
    .page-shell { padding: 44px 0; }
    .dashboard-hero { align-items: start; flex-direction: column; }
    .metric-grid { grid-template-columns: 1fr; }
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.alert-success { background: rgba(64, 224, 208, .10); color: #bafff7; border: 1px solid rgba(64, 224, 208, .28); }
.button-danger { color: #ffd9dc; background: rgba(255, 82, 92, .14); border: 1px solid rgba(255, 142, 150, .28); }
.inline-button { display: inline-block; margin-top: 8px; }
.no-margin { margin: 0; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.trial-panel { border-color: rgba(64, 224, 208, .35); }
.billing-hero { max-width: 800px; margin-bottom: 34px; }
.featured-plan {
    display: grid; grid-template-columns: 1.4fr .8fr; gap: 34px; align-items: center;
    padding: 34px; border-radius: var(--radius); border: 1px solid rgba(64, 224, 208, .35);
    background: linear-gradient(135deg, rgba(64,224,208,.11), rgba(94,185,255,.07));
}
.plan-badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: #06202a; font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.plan-price { color: var(--muted); font-size: 1.15rem; }
.plan-price strong { color: var(--text); font-size: 1.5rem; }
.clean-list { padding-left: 20px; color: var(--muted); line-height: 1.8; }
.plan-actions { display: grid; gap: 14px; }
.plan-actions .button { width: 100%; }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.plan-card { display: grid; gap: 12px; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: rgba(12,32,43,.74); }
.plan-card span, .plan-card small { color: var(--muted); }
.plan-card strong { font-size: 1.45rem; }
.plan-card button:disabled { opacity: .52; cursor: not-allowed; }
@media (max-width: 900px) {
    .featured-plan { grid-template-columns: 1fr; }
    .plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .header-actions { gap: 6px; }
    .header-actions .button { padding: 10px 12px; }
    .plan-grid { grid-template-columns: 1fr; }
}
.danger-card { border-color: rgba(255, 142, 150, .3); }

/* Content platform: catalog, courses and learning paths. */
.nav-link { color: var(--muted); text-decoration: none; font-weight: 700; padding: 10px 8px; }
.nav-link:hover { color: var(--text); }
.dashboard-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 18px; }
.dashboard-action {
    display: grid; gap: 7px; padding: 19px 21px; border: 1px solid var(--line); border-radius: 16px;
    background: rgba(12,32,43,.66); text-decoration: none;
}
.dashboard-action span { color: var(--muted); font-size: .85rem; }
.dashboard-action strong { color: var(--text); }
.dashboard-action:hover { border-color: rgba(64,224,208,.35); transform: translateY(-1px); }
.catalog-hero { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.catalog-summary {
    min-width: 130px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px;
    background: rgba(12,32,43,.72); display: grid; gap: 4px; text-align: right;
}
.catalog-summary span { color: var(--muted); }
.catalog-summary strong { font-size: 2rem; }
.filter-panel {
    display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(145px, .8fr)) auto;
    gap: 14px; align-items: end; padding: 18px; border: 1px solid var(--line); border-radius: 18px;
    background: rgba(12,32,43,.72); margin-bottom: 24px;
}
.filter-panel label { gap: 7px; font-size: .85rem; }
select {
    width: 100%; min-height: 49px; padding: 0 13px; color: var(--text); border: 1px solid var(--line);
    border-radius: 13px; outline: none; background: #0c202b;
}
select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(64,224,208,.12); }
.filter-submit { min-height: 49px; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.content-card, .sequence-card {
    min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 23px; border: 1px solid var(--line);
    border-radius: 18px; background: rgba(12,32,43,.78); box-shadow: 0 18px 55px rgba(0,0,0,.18);
}
.content-card h2, .sequence-card h2 { margin: 0 0 10px; font-size: 1.2rem; line-height: 1.25; }
.content-card h2 a, .sequence-card h2 a, .sequence-row h2 a { text-decoration: none; }
.content-card h2 a:hover, .sequence-card h2 a:hover, .sequence-row h2 a:hover { color: var(--accent); }
.content-card p, .sequence-card p, .sequence-row p { margin: 0; color: var(--muted); line-height: 1.55; }
.content-card-topline, .badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.content-card-topline { justify-content: space-between; }
.content-type, .access-badge, .progress-badge, .chip {
    display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; font-size: .72rem; font-weight: 800;
}
.content-type { padding: 6px 9px; color: var(--accent-2); background: rgba(94,185,255,.1); text-transform: uppercase; letter-spacing: .06em; }
.access-badge, .progress-badge { padding: 6px 9px; }
.access-open { color: var(--accent); background: rgba(64,224,208,.1); }
.access-time { color: #ffd98d; background: rgba(255,190,70,.1); }
.access-manual { color: #d8c4ff; background: rgba(167,120,255,.12); }
.access-locked { color: #ffbdc2; background: rgba(255,82,92,.1); }
.progress-badge { color: #c6ffd7; background: rgba(72,210,115,.1); }
.progress-started { color: #b9ddff; background: rgba(94,185,255,.1); }
.content-card-locked { background: rgba(12,32,43,.48); }
.content-card-locked > *:not(.content-card-topline):not(.badge-row):not(.lock-reason) { opacity: .72; }
.content-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .83rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.chip { padding: 5px 8px; color: var(--muted); border: 1px solid var(--line); font-weight: 650; }
.lock-reason { padding-top: 13px; border-top: 1px solid var(--line); color: #ffd2d5 !important; font-size: .86rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 30px; color: var(--muted); }
.empty-state { padding: 50px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; }
.empty-state p { color: var(--muted); }
.breadcrumbs { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: .88rem; margin-bottom: 28px; }
.breadcrumbs a { text-decoration: none; }
.material-hero, .sequence-hero { max-width: 850px; margin-bottom: 30px; }
.material-body {
    padding: clamp(26px, 5vw, 52px); border: 1px solid var(--line); border-radius: var(--radius);
    background: rgba(12,32,43,.82); box-shadow: 0 28px 80px rgba(0,0,0,.2);
}
.prose { font-size: 1.05rem; line-height: 1.8; }
.prose h2, .prose h3 { margin: 1.5em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #c2d5dc; }
.complete-panel, .locked-panel {
    display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-top: 18px; padding: 24px;
    border: 1px solid var(--line); border-radius: 18px; background: rgba(12,32,43,.72);
}
.complete-panel p, .locked-panel p { margin: 6px 0 0; color: var(--muted); }
.complete-panel-done { border-color: rgba(64,224,208,.3); }
.locked-panel { display: block; padding: 34px; border-color: rgba(255,190,70,.25); }
.sequence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sequence-list { display: grid; gap: 13px; padding: 0; list-style: none; counter-reset: none; }
.sequence-row {
    display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 18px; align-items: center;
    padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: rgba(12,32,43,.72);
}
.sequence-number {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
    color: #06202a; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 900;
}
.sequence-copy { min-width: 0; }
.sequence-copy h2 { margin: 7px 0 5px; font-size: 1.08rem; }
.sequence-duration { color: var(--muted); white-space: nowrap; font-size: .85rem; }

@media (max-width: 1000px) {
    .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-field { grid-column: 1 / -1; }
    .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .header-actions .nav-link { display: none; }
}
@media (max-width: 700px) {
    .dashboard-actions, .content-grid, .sequence-grid { grid-template-columns: 1fr; }
    .catalog-hero { align-items: start; flex-direction: column; }
    .catalog-summary { text-align: left; }
    .filter-panel { grid-template-columns: 1fr; }
    .search-field { grid-column: auto; }
    .sequence-row { grid-template-columns: 44px minmax(0,1fr); align-items: start; }
    .sequence-duration { grid-column: 2; }
    .complete-panel { align-items: stretch; flex-direction: column; }
    .complete-panel .button { width: 100%; }
}

/* Minimal operational admin area. UX polish will be a separate mobile-first pass. */
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: rgba(12,32,43,.72); }
.admin-nav a { padding: 10px 14px; border-radius: 11px; color: var(--muted); text-decoration: none; font-weight: 750; }
.admin-nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.admin-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.admin-page-heading h1 { margin-bottom: 0; }
.admin-metrics { grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; }
.admin-two-column { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.admin-panel { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(12,32,43,.78); }
.admin-panel-header { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.admin-list { display: grid; margin-top: 16px; }
.admin-list > a, .admin-list > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); text-decoration: none; }
.admin-list > a:first-child, .admin-list > div:first-child { border-top: 0; }
.admin-list span { display: grid; gap: 4px; min-width: 0; }
.admin-list small, .admin-table small, label small { color: var(--muted); }
.admin-status { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--muted); font-size: .75rem; }
.admin-filter { grid-template-columns: minmax(240px, 1fr) 180px auto; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.admin-table { width: 100%; min-width: 720px; border-collapse: collapse; background: rgba(12,32,43,.72); }
.admin-table th, .admin-table td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-table th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.admin-table td:first-child { display: grid; gap: 4px; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-actions-cell { text-align: right !important; }
.admin-form { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr); gap: 20px; align-items: start; }
.admin-form-main, .admin-form-side { display: grid; gap: 17px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(12,32,43,.78); }
textarea { width: 100%; resize: vertical; padding: 15px 16px; color: var(--text); border: 1px solid var(--line); border-radius: 13px; outline: none; background: rgba(255,255,255,.045); font: inherit; line-height: 1.5; }
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(64,224,208,.12); }
.code-area { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88rem; }
fieldset { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px; }
legend { padding: 0 7px; color: var(--muted); }
.checkbox-list { display: grid; gap: 9px; max-height: 240px; overflow: auto; }
.checkbox-label { display: flex; grid-template-columns: none; align-items: center; gap: 10px; color: var(--text); }
.checkbox-label input { width: 18px; height: 18px; flex: 0 0 auto; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 22px; border: 1px solid rgba(255,142,150,.25); border-radius: 18px; background: rgba(255,82,92,.05); }
.danger-zone p { margin: 6px 0 0; color: var(--muted); }
.categories-layout { grid-template-columns: .7fr 1.3fr; }
.import-instructions { margin-bottom: 18px; }
.import-result { margin-top: 18px; }
.validation-errors { padding: 15px; border: 1px solid rgba(255,142,150,.3); border-radius: 13px; color: #ffd5d8; background: rgba(255,82,92,.07); }
.validation-success { color: var(--accent); }
code { color: #bde8ff; }
@media (max-width: 900px) {
    .admin-metrics { grid-template-columns: repeat(2, 1fr); }
    .admin-two-column, .admin-form, .categories-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .admin-page-heading { align-items: stretch; flex-direction: column; }
    .admin-page-heading .button { width: 100%; text-align: center; }
    .admin-metrics { grid-template-columns: 1fr; }
    .admin-filter { grid-template-columns: 1fr; }
    .danger-zone { align-items: stretch; flex-direction: column; }
    .danger-zone .button { width: 100%; }
}

/* Reusable mixed-media blocks. They are intentionally platform-owned rather
   than arbitrary iframes/scripts pasted into lesson HTML. */
.media-block { margin: 28px 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(7,20,28,.58); }
.media-block-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 13px; }
.media-block-heading > div { display: grid; gap: 4px; }
.media-kicker { color: var(--accent); font-size: .7rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.media-resume { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.video-frame-wrap { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; }
.yandex-video-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.evolution-audio { width: 100%; margin-top: 4px; }
.evolution-video { display: block; width: 100%; max-height: 78vh; border-radius: 14px; background: #000; }
.media-file { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.media-file p { margin: 6px 0 0; }
.media-image { padding: 0; overflow: hidden; }
.media-image img { display: block; width: 100%; height: auto; }
.media-image figcaption { padding: 12px 16px; color: var(--muted); font-size: .85rem; }
.media-error { margin: 18px 0; padding: 16px; border: 1px solid rgba(255,142,150,.3); border-radius: 13px; color: #ffd5d8; background: rgba(255,82,92,.07); }
.media-snippet-list { display: grid; gap: 8px; max-height: 280px; overflow: auto; }
.media-snippet-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; }
.media-snippet-row span { display: grid; gap: 3px; min-width: 0; }
.media-snippet-row small { color: var(--muted); }
@media (max-width: 700px) {
    .media-block { margin: 20px -10px; padding: 12px; border-radius: 15px; }
    .media-block-heading, .media-file { align-items: stretch; flex-direction: column; }
    .media-resume { white-space: normal; }
    .media-file .button { width: 100%; text-align: center; }
}

/* Cloud Video resume state. Kept outside the provider iframe so users can see
   saved progress before pressing Play, including on mobile poster screens. */
.media-resume-button {
    border: 1px solid rgba(64,224,208,.34); border-radius: 999px; padding: 8px 12px;
    color: var(--accent); background: rgba(64,224,208,.09); cursor: pointer; font-weight: 800;
}
.media-resume-button:hover { background: rgba(64,224,208,.15); }
.media-progress-summary { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; margin: -2px 0 13px; }
.media-progress-summary small { color: var(--muted); white-space: nowrap; }
.media-progress-track { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.09); }
.media-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s ease; }
@media (max-width: 700px) {
    .media-resume-button { width: 100%; }
    .media-progress-summary { grid-template-columns: 1fr; gap: 7px; }
    .media-progress-summary small { white-space: normal; }
}

/* Course and learning-path editors. Functional first; mobile polish comes later. */
.sequence-editor { margin-top: 22px; }
.admin-sequence-list { display: grid; gap: 10px; margin: 20px 0; padding: 0; list-style: none; }
.admin-sequence-list > li {
    display: grid; grid-template-columns: 48px minmax(220px, 1fr) auto; gap: 14px; align-items: center;
    padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025);
}
.admin-sequence-list > li.empty-state { display: block; }
.admin-sequence-copy { display: grid; gap: 4px; min-width: 0; }
.admin-sequence-copy small { color: var(--muted); overflow-wrap: anywhere; }
.admin-sequence-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 7px; }
.admin-sequence-actions form { margin: 0; }
.icon-button {
    width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px;
    color: var(--text); background: rgba(255,255,255,.04); cursor: pointer; font-size: 1.05rem;
}
.icon-button:hover { border-color: var(--accent); }
.icon-button:disabled { opacity: .3; cursor: not-allowed; }
.button-small { min-height: 38px; padding: 8px 11px; font-size: .78rem; }
.sequence-add-form {
    display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 14px; align-items: end;
    padding-top: 20px; border-top: 1px solid var(--line);
}
.sequence-add-form label { margin: 0; }
@media (max-width: 900px) {
    .admin-sequence-list > li { grid-template-columns: 44px minmax(0,1fr); align-items: start; }
    .admin-sequence-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: 58px; }
    .sequence-add-form { grid-template-columns: 1fr; align-items: stretch; }
    .sequence-add-form .button { width: 100%; }
}
@media (max-width: 700px) {
    .admin-sequence-list > li { grid-template-columns: 38px minmax(0,1fr); padding: 12px; }
    .admin-sequence-actions { padding-left: 0; }
    .admin-sequence-actions .button { flex: 1 1 auto; }
}

/* Billing checkout and local payment verification. */
.checkout-form { display: grid; gap: 11px; }
.checkout-form label { font-size: .82rem; }
.checkout-form input { padding: 11px 12px; }
.checkout-form .button { width: 100%; }
.compact-plan { margin-bottom: 22px; }
.billing-current {
    display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
    margin-bottom: 20px; padding: 15px 18px; border: 1px solid var(--line);
    border-radius: 15px; color: var(--muted); background: rgba(12,32,43,.65);
}
.billing-current strong { color: var(--text); }
.order-summary { display: grid; gap: 0; margin: 28px 0; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.order-summary div { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.order-summary div:last-child { border-bottom: 0; }
.order-summary dt { color: var(--muted); }
.order-summary dd { margin: 0; }
@media (max-width: 600px) {
    .compact-plan { padding: 24px; }
    .order-summary div { grid-template-columns: 1fr; gap: 5px; }
}

/* v10.3: direct private Object Storage upload from the media admin. */
.provider-fields[hidden] { display: none; }
.storage-upload-panel {
    display: grid; gap: 18px; margin-top: 22px; padding: 24px;
    border: 1px solid var(--line); border-radius: 18px; background: rgba(12,32,43,.78);
}
.storage-upload-locked { opacity: .78; }
.storage-upload-locked h2, .storage-upload-heading h2 { margin: 3px 0 7px; }
.storage-upload-locked p, .storage-upload-heading p { margin: 0; color: var(--muted); }
.storage-upload-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.storage-state { display: inline-flex; flex: 0 0 auto; width: fit-content; padding: 7px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.storage-state-ok { color: #c6ffd7; background: rgba(72,210,115,.1); }
.storage-state-error { color: #ffd5d8; background: rgba(255,82,92,.09); }
.storage-current-file, .storage-selected-file {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025);
}
.storage-current-file > div, .storage-selected-file > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.storage-current-file span, .storage-selected-file div { min-width: 0; }
.storage-current-file strong, .storage-selected-file strong { display: block; overflow-wrap: anywhere; }
.storage-current-file small, .storage-selected-file small { display: block; margin-top: 4px; color: var(--muted); }
.storage-file-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; color: #c6ffd7; background: rgba(72,210,115,.12); font-weight: 900; }
.storage-upload-warning, .storage-upload-error {
    padding: 13px 15px; border-radius: 12px; color: #ffe6ad; background: rgba(255,190,72,.09); border: 1px solid rgba(255,190,72,.22);
}
.storage-upload-error { color: #ffd5d8; background: rgba(255,82,92,.07); border-color: rgba(255,142,150,.3); }
.storage-drop-zone {
    position: relative; display: grid; place-items: center; min-height: 150px; padding: 24px;
    border: 1px dashed rgba(64,224,208,.4); border-radius: 16px; text-align: center; background: rgba(64,224,208,.035);
    transition: border-color .18s ease, background .18s ease;
}
.storage-drop-zone.is-dragging { border-color: var(--accent); background: rgba(64,224,208,.09); }
.storage-drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.storage-drop-zone label { display: grid; gap: 8px; cursor: pointer; }
.storage-drop-zone input:disabled + label { cursor: not-allowed; opacity: .5; }
.storage-drop-zone label span { color: var(--muted); font-size: .86rem; }
.storage-upload-progress { display: grid; gap: 9px; }
.storage-progress-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.storage-progress-copy span { color: var(--muted); }
.storage-progress-track { height: 10px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.09); }
.storage-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .15s ease; }
.storage-upload-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button-danger { color: #ffd5d8; border-color: rgba(255,142,150,.3); background: rgba(255,82,92,.08); }
.button-danger:hover { background: rgba(255,82,92,.14); }
@media (max-width: 700px) {
    .storage-upload-panel { padding: 18px; }
    .storage-upload-heading, .storage-current-file, .storage-selected-file { align-items: stretch; flex-direction: column; }
    .storage-upload-actions .button, .storage-selected-file .button { width: 100%; }
}
