* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2329;
    background: #f2f5f3;
}
.auth-body {
    display: grid;
    place-items: center;
    padding: 28px;
    background: #eaf1ed;
}
.auth-shell {
    width: min(1040px, 100%);
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 420px;
    overflow: hidden;
    border: 1px solid #d8e2dc;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(28, 48, 42, .14);
}
.auth-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 46px;
    color: #fff;
    background: #12352e;
}
.auth-brand .eyebrow {
    color: #ff7b8d;
}
.auth-brand h1 {
    max-width: 560px;
    margin-top: 88px;
    font-size: 44px;
    line-height: 1.12;
}
.auth-brand p {
    max-width: 520px;
    margin-top: 16px;
    color: #d3e2dc;
    font-size: 16px;
    line-height: 1.75;
}
.auth-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 40px;
}
.auth-flow div {
    min-height: 128px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(255,255,255,.06);
}
.auth-flow span,
.auth-flow strong,
.auth-flow small {
    display: block;
}
.auth-flow span {
    color: #ff7b8d;
    font-size: 12px;
    font-weight: 900;
}
.auth-flow strong {
    margin-top: 18px;
    color: #fff;
    font-size: 16px;
}
.auth-flow small {
    margin-top: 7px;
    color: #b9cbc5;
    line-height: 1.5;
}
.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
}
.auth-card-head {
    margin-bottom: 28px;
}
.auth-card h2 {
    margin-bottom: 8px;
    font-size: 30px;
}
.app {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 24px 16px 48px;
}
.app.compact {
    width: min(520px, 100%);
    padding-top: 72px;
}
.eyebrow {
    margin: 0 0 6px;
    color: #ff2442;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}
.login-hero {
    margin-bottom: 18px;
}
.admin-layout {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.admin-sidebar {
    position: sticky;
    top: 16px;
    min-height: calc(100vh - 32px);
    padding: 18px 14px;
    border-radius: 8px;
    background: #6754d8;
    color: #fff;
}
.sidebar-brand {
    padding: 0 10px 18px;
    font-size: 22px;
    font-weight: 800;
}
.admin-sidebar a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}
.admin-sidebar a:hover {
    background: rgba(255,255,255,.14);
}
.admin-sidebar a.active {
    background: rgba(255,255,255,.18);
}
.admin-main {
    min-width: 0;
}
.admin-app-shell {
    width: min(1280px, 100%);
}
.clean-admin-layout {
    grid-template-columns: 220px minmax(0, 1fr);
}
.clean-sidebar {
    background: #24324b;
}
.clean-admin-main {
    display: grid;
    gap: 14px;
}
.dashboard-panel {
    border-color: #dbe3ef;
}
.admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.admin-metrics article {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}
.admin-metrics span {
    display: block;
    color: #6b7280;
    font-size: 13px;
}
.admin-metrics strong {
    display: block;
    margin-top: 8px;
    color: #111827;
    font-size: 26px;
    line-height: 1;
}
.user-admin-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.admin-user-workspace {
    grid-template-columns: 320px minmax(0, 1fr);
}
.user-directory {
    position: sticky;
    top: 16px;
}
.admin-user-directory {
    padding: 14px;
    border: 1px solid #e1e8e4;
    border-radius: 10px;
    background: #f8fbf8;
}
.user-detail-card {
    min-width: 0;
}
.admin-user-detail {
    padding: 18px;
    border: 1px solid #e1e8e4;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(26, 55, 48, .06);
}
.admin-user-item {
    min-height: 76px;
    border-color: #dfe7e2;
    border-radius: 10px;
    background: #fff;
}
.admin-user-item.active {
    border-color: #12352e;
    background: #eff7f3;
    color: #12352e;
    box-shadow: 0 10px 24px rgba(18, 53, 46, .1);
}
.tight-head {
    margin-bottom: 6px;
}
.tight-head h3 {
    margin: 0;
    font-size: 17px;
}
.project-panel-clean {
    background: #fff;
}
.project-editor-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}
.project-list-clean,
.user-list-clean {
    max-height: 520px;
}
.advanced-details {
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}
.advanced-details summary {
    cursor: pointer;
    padding: 12px;
    color: #374151;
    font-weight: 700;
}
.advanced-details .grid {
    padding: 0 12px 12px;
}
.user-app-shell {
    width: min(1360px, 100%);
    padding-top: 18px;
}
.user-topbar {
    padding: 18px 20px;
    border: 1px solid #dbe5df;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(28, 48, 42, .07);
}
.user-workspace {
    display: grid;
    grid-template-columns: 312px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.project-sidebar {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 16px;
    border-color: #12352e;
    background: #12352e;
    color: #fff;
    box-shadow: 0 18px 45px rgba(18, 53, 46, .2);
}
.project-sidebar .muted {
    color: #aab4c5;
}
.project-sidebar .eyebrow {
    color: #ff6a7c;
}
.project-sidebar-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.project-sidebar-head h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
}
.project-sidebar-head button {
    min-height: 38px;
    border: 1px solid rgba(255,255,255,.16);
    background: #ff2442;
    box-shadow: 0 10px 24px rgba(255, 36, 66, .28);
}
.project-nav-list {
    max-height: none;
    margin-top: 16px;
}
.user-main {
    min-width: 0;
    display: grid;
    gap: 16px;
}
.project-summary {
    overflow: hidden;
    border-color: #12352e;
    background: #12352e;
    color: #fff;
    box-shadow: 0 18px 45px rgba(18, 53, 46, .14);
}
.project-summary h2 {
    color: #fff;
}
.project-summary .muted,
.project-summary .status {
    color: #c8d1df;
}
.project-summary .secondary {
    color: #111827;
    background: #fff;
}
.project-metrics {
    margin-top: 14px;
}
.project-metrics span {
    background: rgba(255,255,255,.08);
    color: #c8d1df;
}
.project-metrics b {
    color: #fff;
}
.readonly-box {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}
.project-settings {
    padding: 0;
}
.project-settings summary {
    cursor: pointer;
    padding: 18px;
    font-size: 18px;
    font-weight: 800;
}
.settings-body {
    padding: 0 18px 18px;
}
.task-panel {
    position: relative;
    overflow: hidden;
}
.task-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #ff2442;
}
.task-panel .section-head {
    align-items: flex-start;
}
.task-panel .eyebrow {
    margin-bottom: 4px;
}
.upload-panel {
    background: #fff;
}
.batch-panel {
    background: #fbfcfa;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
}
.top-actions, .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
h1 { margin: 0 0 6px; font-size: 24px; line-height: 1.25; }
h2 { margin: 0 0 14px; font-size: 18px; }
.section-head h2 { margin-bottom: 0; }
p { margin: 0; }
.muted, .topbar p, .status {
    color: #6b7280;
    font-size: 14px;
}
.panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 14px;
}
.user-main .panel {
    border-color: #dce3ef;
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(24, 35, 61, .06);
}
.user-main .panel:not(.project-summary) {
    background: #fff;
}
.user-main .section-head {
    padding-bottom: 12px;
    border-bottom: 1px solid #edf0f5;
    margin-bottom: 14px;
}
.user-main .section-head h2 {
    font-size: 20px;
}
.notice {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}
.grid {
    display: grid;
    gap: 12px;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 14px;
}
.compact-split {
    grid-template-columns: 260px minmax(0, 1fr);
}
.sub-panel {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
}
.sub-panel h3 {
    margin: 0;
    font-size: 16px;
}
.advanced-fields {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}
label, .label-title {
    display: block;
    margin: 10px 0 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}
input, select, textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
input, select {
    height: 40px;
    padding: 0 11px;
}
textarea {
    min-height: 118px;
    padding: 10px 11px;
    line-height: 1.6;
    resize: vertical;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
}
input[type="file"] {
    padding: 8px 10px;
}
button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    padding: 0 16px;
    color: #fff;
    background: #ff2442;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}
button:not(:disabled):hover, .button:hover {
    transform: translateY(-1px);
}
button:disabled { cursor: not-allowed; opacity: .55; }
.secondary { color: #1f2329; background: #eef2ef; }
.danger { background: #4b5563; }
.full { width: 100%; }
.align-end { align-self: end; }
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.source-list {
    max-height: 620px;
    overflow: auto;
    margin-top: 12px;
}
.source-item {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fff;
    color: #1f2329;
    text-align: left;
    cursor: pointer;
}
.source-item.active {
    border-color: #ff2442;
    color: #ff2442;
}
.source-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: stretch;
    margin-bottom: 10px;
}
.source-row .source-item {
    margin-bottom: 0;
}
.source-row.active .source-item {
    border-color: #ff2442;
    color: #ff2442;
}
.source-row .source-delete {
    min-height: 100%;
    padding: 0 12px;
    background: #4b5563;
}
.project-nav-list .source-row {
    grid-template-columns: minmax(0, 1fr) 52px;
}
.project-nav-list .source-item {
    min-height: 76px;
    padding: 12px 13px;
    border-color: rgba(255,255,255,.1);
    background: rgba(255,255,255,.06);
    color: #fff;
}
.project-nav-list .source-row.active .source-item {
    border-color: #ff5670;
    background: #fff;
    color: #141a2b;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.project-nav-list .source-name {
    display: block;
    color: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}
.project-nav-list .source-meta {
    color: #aab4c5;
    line-height: 1.45;
}
.project-nav-list .source-row.active .source-meta {
    color: #687386;
}
.project-nav-list .source-delete {
    min-height: 76px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.08);
    color: #d7deea;
    font-size: 12px;
}
.project-nav-list .source-delete:hover {
    background: #2b354a;
    color: #fff;
}
.source-meta {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
    word-break: break-all;
}
.user-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.mini-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border-radius: 999px;
    padding: 0 8px;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}
.mini-badge.on {
    color: #047857;
    background: #d1fae5;
}
.mini-badge.off {
    color: #6b7280;
    background: #e5e7eb;
}
.mini-badge.expired {
    color: #b91c1c;
    background: #fee2e2;
}
.quick-expire-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.quick-expire-actions button {
    min-height: 34px;
    padding: 0 12px;
}
.user-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.user-status-grid article {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}
.user-status-grid span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}
.user-status-grid strong {
    display: block;
    margin-top: 6px;
    color: #111827;
    font-size: 14px;
    line-height: 1.35;
}
.status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.status-card {
    min-height: 138px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}
.status-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    border-radius: 999px;
    padding: 0 9px;
    font-size: 12px;
    font-weight: 700;
}
.badge.active { color: #b91c1c; background: #fee2e2; }
.badge.ok { color: #047857; background: #d1fae5; }
.badge.bad { color: #92400e; background: #fef3c7; }
.metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
.metrics span {
    padding: 8px;
    border-radius: 6px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 12px;
}
.metrics b {
    display: block;
    color: #111827;
    font-size: 20px;
    line-height: 1.2;
}
.empty {
    padding: 18px;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    background: #f9fafb;
}
.code {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
}
.hidden { display: none; }
.preview {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
    gap: 18px;
}
.note-title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.35;
}
.note-content {
    white-space: pre-wrap;
    line-height: 1.7;
    color: #374151;
}
.share-meta {
    margin-top: 12px;
    word-break: break-all;
}
.share-debug {
    max-height: 180px;
    overflow: auto;
    margin-top: 12px;
    white-space: pre-wrap;
}
.copy-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.media-grid img, .media-grid video {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}
.publish-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(17, 24, 39, .46);
}
.publish-modal.hidden {
    display: none;
}
.publish-modal__card {
    width: min(420px, 100%);
    padding: 22px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(17, 24, 39, .24);
}
.publish-modal__card h2 {
    margin-bottom: 10px;
    font-size: 22px;
}
.publish-modal__card p {
    color: #4b5563;
    line-height: 1.7;
}
.publish-modal__card .status {
    min-height: 22px;
    margin-top: 10px;
}
.workbench-body {
    background: #eef4f0;
}
.app.workbench {
    max-width: 1280px;
    padding-top: 18px;
}
.workbench-topbar {
    padding: 18px 20px;
    border: 1px solid #d7e3dc;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(26, 55, 48, .08);
}
.publish-workspace {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.publish-sidebar {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    border-color: #12352e;
    background: #12352e;
    color: #fff;
    box-shadow: 0 18px 45px rgba(18, 53, 46, .18);
}
.publish-sidebar .eyebrow {
    color: #ff7b8d;
}
.publish-sidebar .status {
    margin-top: 10px;
    color: #c9d9d3;
}
.publish-sidebar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.publish-sidebar-head h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
}
.publish-sidebar-head .secondary {
    width: auto;
    color: #12352e;
    background: #fff;
}
.publish-main {
    min-height: 560px;
    border-color: #d7e3dc;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(26, 55, 48, .08);
}
.publish-main .section-head {
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf2ee;
}
.publish-control-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 220px 180px;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid #e0e8e2;
    border-radius: 10px;
    background: #f8fbf8;
}
.launch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.publish-sidebar .launch-grid {
    grid-template-columns: 1fr;
}
.launch-card {
    width: 100%;
    min-height: 116px;
    justify-content: flex-start;
    gap: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #1f2329;
    text-align: left;
}
.publish-sidebar .launch-card {
    min-height: 88px;
    border-color: rgba(255,255,255,.1);
    background: rgba(255,255,255,.07);
    color: #fff;
}
.publish-sidebar .launch-card:disabled {
    opacity: .72;
}
.launch-card:not(:disabled):hover {
    border-color: #ff2442;
    box-shadow: 0 8px 22px rgba(31, 35, 41, .08);
}
.launch-card.selected {
    border-color: #ff2442;
    background: #fff7f8;
}
.publish-sidebar .launch-card.selected {
    border-color: #ff6a7c;
    background: #fff;
    color: #12352e;
}
.launch-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    color: #fff;
    background: #ff2442;
    font-size: 22px;
    font-weight: 800;
    flex: 0 0 auto;
}
.publish-sidebar .launch-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}
.launch-main {
    display: grid;
    gap: 5px;
    min-width: 0;
    flex: 1 1 auto;
}
.launch-main strong, .launch-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.launch-main small {
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}
.publish-sidebar .launch-main small {
    color: #c9d9d3;
}
.publish-sidebar .launch-card.selected .launch-main small {
    color: #64746f;
}
.launch-action {
    color: #ff2442;
    font-weight: 800;
    flex: 0 0 auto;
}
.publish-sidebar .launch-action {
    color: inherit;
}
.material-list {
    margin-top: 16px;
}
.next-material {
    margin-top: 16px;
}
.next-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(26, 55, 48, .07);
}
.next-card h3 {
    margin: 12px 0 8px;
    font-size: 24px;
    line-height: 1.25;
}
.next-card p {
    color: #6b7280;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.next-meta {
    color: #6b7280;
    font-weight: 800;
    white-space: nowrap;
}
.table-list {
    display: grid;
    gap: 10px;
}
.material-row {
    width: 100%;
    min-height: 74px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #1f2329;
    text-align: left;
}
.material-row:hover {
    border-color: #ff2442;
}
.material-row strong,
.material-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.material-row small {
    margin-top: 4px;
    color: #6b7280;
    font-weight: 500;
}
.row-meta {
    color: #6b7280;
    font-size: 13px;
    white-space: nowrap;
}
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.action-grid button {
    min-height: 48px;
}
.material-form {
    display: grid;
    gap: 12px;
}
.batch-import {
    display: grid;
    gap: 12px;
}
.compact-notice {
    margin-bottom: 0;
}
.publish-filter {
    margin-bottom: 14px;
}
@media (max-width: 820px) {
    .auth-body { padding: 14px; place-items: start center; }
    .auth-shell { display: block; min-height: 0; border-radius: 14px; }
    .auth-brand, .auth-card { padding: 26px; }
    .auth-brand h1 { margin-top: 42px; font-size: 32px; }
    .auth-flow { grid-template-columns: 1fr; }
    .topbar, .split, .admin-layout, .user-admin-grid, .project-editor-grid, .user-workspace, .publish-workspace { display: block; }
    .admin-sidebar, .project-sidebar, .publish-sidebar { position: static; min-height: 0; max-height: none; margin-bottom: 14px; }
    .user-directory { position: static; margin-bottom: 14px; }
    .top-actions { margin-top: 12px; }
    .grid.two, .grid.three, .preview, .status-grid, .launch-grid, .action-grid, .admin-metrics, .user-status-grid, .publish-control-bar, .copy-panel { grid-template-columns: 1fr; }
    button, .button { width: 100%; }
    .material-row, .next-card { grid-template-columns: 1fr; }
    .project-nav-list .source-row { grid-template-columns: minmax(0, 1fr) 62px; }
    .project-sidebar-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .project-sidebar-head button { width: auto; }
    .publish-sidebar-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .publish-sidebar-head button { width: auto; }
}

/* Yaowen site skin */
:root {
    --yw-ink: #111827;
    --yw-muted: #667085;
    --yw-line: rgba(15, 23, 42, 0.08);
    --yw-red: #ff2442;
    --yw-blue: #1683ff;
    --yw-navy: #111827;
}

body,
.workbench-body,
.auth-body {
    color: var(--yw-ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 36, 66, 0.07), transparent 26%),
        radial-gradient(circle at 88% 12%, rgba(22, 131, 255, 0.12), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #f4f8fb 48%, #ffffff 100%);
}

.yw-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
}

.yw-brand-mark img {
    width: 42px;
    height: 42px;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.auth-shell,
.topbar,
.panel,
.user-topbar,
.workbench-topbar,
.publish-main,
.user-main .panel {
    border-color: rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 54px rgba(48, 64, 96, 0.08);
}

.auth-shell {
    border-radius: 26px;
    box-shadow: 0 28px 90px rgba(48, 64, 96, 0.14);
}

.auth-brand,
.project-sidebar,
.publish-sidebar,
.project-summary,
.clean-sidebar {
    background:
        radial-gradient(circle at 82% 12%, rgba(255, 36, 66, 0.18), transparent 30%),
        linear-gradient(145deg, #111827, #1f2a44);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 64px rgba(17, 24, 39, 0.18);
}

.auth-brand .eyebrow,
.project-sidebar .eyebrow,
.publish-sidebar .eyebrow,
.eyebrow {
    color: var(--yw-red);
}

.auth-brand p,
.auth-flow small,
.project-sidebar .muted,
.publish-sidebar .status,
.project-summary .muted,
.project-summary .status {
    color: rgba(255, 255, 255, 0.72);
}

.auth-flow div,
.project-nav-list .source-item,
.publish-sidebar .launch-card {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

h1 {
    letter-spacing: 0;
}

button,
.button,
.project-sidebar-head button,
.plugin-guide-btn,
.publish-control-bar button {
    border-radius: 12px;
    background: linear-gradient(135deg, var(--yw-blue), #006dff);
    box-shadow: 0 12px 28px rgba(22, 131, 255, 0.16);
}

button:not(:disabled):hover,
.button:hover {
    box-shadow: 0 16px 34px rgba(22, 131, 255, 0.22);
}

.secondary {
    color: var(--yw-ink);
    background: #fff;
    border: 1px solid var(--yw-line);
    box-shadow: 0 10px 24px rgba(48, 64, 96, 0.06);
}

.danger {
    background: #4b5563;
    box-shadow: none;
}

input,
select,
textarea,
.readonly-box {
    border-radius: 12px;
    border-color: rgba(15, 23, 42, 0.1);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(22, 131, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(22, 131, 255, 0.1);
}

.task-panel::before,
.launch-icon {
    background: linear-gradient(135deg, var(--yw-red), #ff6b7c);
}

.project-summary .secondary,
.publish-sidebar-head .secondary {
    color: var(--yw-ink);
    background: #fff;
}

.publish-control-bar,
.notice,
.readonly-box,
.empty,
.code {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(248, 251, 255, 0.86);
}

@media (max-width: 820px) {
    .auth-shell,
    .topbar,
    .panel {
        border-radius: 16px;
    }
}
