.studio-panel.premium-contracts { max-width: 960px; margin-inline: auto; padding-bottom: 96px; color: #182230 !important; background: #fff !important; }
/* The published studio and admin shells have different dark theme overrides. */
.premium-contracts :is(h1, h2, h3, p, label, summary, code, article, header, strong, bdi) { color: #182230 !important; }
.premium-contracts :is(input, textarea, select) { color: #182230 !important; background: #fff !important; }
.premium-contracts header p { max-width: 70ch; line-height: 1.8; }
.premium-contracts form { display: grid; gap: 18px; margin-block: 24px; }
.premium-contracts label { display: grid; gap: 8px; }
.premium-contracts input:not([type="checkbox"]), .premium-contracts textarea, .premium-contracts select { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #ccd2de; border-radius: 10px; font: inherit; color: inherit; background: transparent; }
.premium-contracts .premium-contract-confirm { display: flex; align-items: flex-start; gap: 10px; line-height: 1.7; }
.premium-contract-confirm input { margin-block-start: 7px; flex-shrink: 0; }
.premium-contract-preview { max-width: 720px; max-height: 75vh; overflow: auto; border: 1px solid #dce0e8; border-radius: 12px; margin-block: 16px; background: white; }
.premium-contract-pagination { position: sticky; top: 0; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 8px; color: #182230; background: white; }
.premium-contract-pagination button { min-height: 44px; min-width: 70px; }
.premium-contract-history, .premium-contract-status { padding: 20px; margin-block: 18px; border: 1px solid #dce0e8; border-radius: 14px; }
.premium-contracts .button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 12px; }
.premium-contracts .button { min-height: 44px; }
.premium-contracts button { font: inherit; border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.premium-contracts :is(.button--secondary, .button--ghost, .premium-contract-pagination button) { color: #182230; background: #f2f4f7; border: 1px solid #d0d5dd; }
.premium-contracts .button--primary { color: #fff !important; background: #2463eb; border: 1px solid #2463eb; }
.premium-contracts button:disabled { opacity: .5; cursor: default; }
.premium-contracts [role="alert"] { color: #b42318 !important; line-height: 1.7; }
.premium-contracts details { margin-block: 16px; }
.premium-contracts summary { cursor: pointer; padding-block: 12px; font-weight: 700; }
.premium-contracts code { overflow-wrap: anywhere; font-size: 12px; }
@media(max-width: 600px) { .premium-contract-history { padding: 14px; } .premium-contracts .button-row > * { flex: 1 1 180px; } }

.premium-contracts :is(h1, h2, h3, p, bdi, strong) { overflow-wrap: anywhere; }
.member-avatar { display:inline-flex; flex-direction:column; align-items:center; gap:6px; flex-shrink:0; vertical-align:middle; line-height:1.2; }
.member-avatar .member-avatar__ring { width:var(--avatar-size); height:var(--avatar-size); display:grid; place-items:center; border:3px solid var(--tier-accent,#dce3ed); border-radius:50%; padding:3px; background:var(--paper,#fff); box-sizing:border-box; overflow:hidden; }
.member-avatar[data-tier="premier"] .member-avatar__ring { background:var(--tier-surface); box-shadow:0 0 0 2px var(--tier-surface); }
.member-avatar .member-avatar__ring > img,.member-avatar .member-avatar__ring > span { width:100%; height:100%; min-width:0; border-radius:50%; object-fit:cover; display:grid; place-items:center; background:#edf2fa; color:#16335a; font-size:calc(var(--avatar-size)*.35); }
.member-avatar .member-avatar__tier { display:block; padding:3px 8px; border-radius:20px; background:var(--tier-surface); color:#fff; font:700 11px/1.3 var(--body, sans-serif); letter-spacing:.25px; }
.member-avatar[data-tier="gold"] .member-avatar__tier { background:#fae798; color:#573b0b; }
.member-avatar[data-tier="silver"] .member-avatar__tier { background:#e8ecf1; color:#374151; }
.member-avatar[data-tier="premier"] .member-avatar__tier { color:var(--tier-accent); }
.author-profile-actions > .member-avatar { margin-top:-78px; margin-bottom:16px; }
.author-profile-stats-wrap { grid-area:stats; align-self:center; min-width:0; }
.author-profile-rating { display:flex; flex-wrap:wrap; gap:6px; align-items:center; justify-content:center; margin:16px 0 0; font-size:.82rem; }
.author-profile-rating svg { color:#c38119; width:17px; }
.author-profile-stats-wrap > [role="status"] { font-size:.8rem; color:var(--muted); }
.author-work-filters { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px; }
.author-work-filters button { padding:8px 14px; border:1px solid var(--line,#dce3ed); border-radius:20px; background:transparent; color:inherit; min-height:44px; }
.author-work-filters button[aria-pressed="true"] { background:#0b5ce8; color:#fff; }
.story-author-link { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:18px 0; }
.story-author-link > div { display:grid; gap:4px; }
.story-author-link > div > small { color:var(--muted); }
.story-author-link > div > a { font-weight:700; }
.story-author-link > .button { min-height:44px; }
.author-panel > .button { margin-inline-end:8px; margin-bottom:8px; }
.author-profile-tabs { overflow-x:auto; }
.author-profile-tabs > button { flex-shrink:0; }
@media(max-width:600px) { .author-profile-actions > .member-avatar { margin-top:-60px; } .author-profile-stats-wrap { width:100%; } .story-author-link > .button { font-size:.8rem; padding-inline:12px; } }

@media(max-width:680px) { .author-profile-actions > .member-avatar { grid-area:avatar; justify-self:center; margin-top:-64px; } .author-profile-tabs > button { width:auto; min-width:max-content; padding-inline:14px; font-size:.92rem; } }

.author-profile-stats .member-profile-count > span { font-size:.75rem; }

.author-private-message { gap:8px; }
.author-private-message > svg { flex-shrink:0; }
.author-profile-actions .author-private-message { grid-column:1 / -1; }
.author-profile-identity { min-width:0; overflow-wrap:anywhere; }
.author-profile-works > h2 { overflow-wrap:anywhere; }
@media(max-width:680px) { .author-profile-summary { grid-template-columns:minmax(0,1fr); } .author-profile-identity h1 { font-size:clamp(1.65rem,7vw,2.2rem); line-height:1.25; } }
@media(max-width:600px) { .story-author-link > .author-private-message { flex-basis:100%; } }
.author-progress{padding:24px;border:1px solid #dce4ef;border-radius:18px;margin:20px 0;background:var(--surface,#fff)}
.author-progress header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.author-progress h2{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:24px;margin:10px 0}
.author-progress h2 small{font-size:14px;font-weight:500}
.author-progress progress{width:100%;height:8px;accent-color:#0b5ce8;margin-top:14px}
.author-progress dl,.author-level-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}
.author-progress dd{font-size:24px;font-weight:700;margin:0}.author-progress dt,.author-progress__note{font-size:13px;color:#64748b}
.author-level-admin{display:grid;gap:20px}.author-level-admin h1{margin:0 0 8px}.author-level-admin p{line-height:1.8}
.author-level-summary>div{padding:18px;background:#f2f6fd;border:1px solid #dce5f4;border-radius:12px}.author-level-summary strong{display:block;font-size:28px;color:#134aad}
.author-level-table-wrap{overflow:auto;border:1px solid #dce4ef;border-radius:14px}.author-level-table{width:100%;border-collapse:collapse;min-width:780px;background:#fff}
.author-level-table th,.author-level-table td{padding:16px;text-align:start;border-bottom:1px solid #e9edf3;vertical-align:top}.author-level-table th{background:#f6f8fc;font-size:13px}.author-level-table td>small{display:block;color:#64748b;margin-top:6px}
.author-level-table details{min-width:190px;font-size:12px;line-height:1.9}.author-level-table summary{cursor:pointer;color:#1351bc}.author-level-table ul{padding-inline-start:18px}
.author-level-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.author-level-controls input[type=search]{flex:1;min-width:220px}.author-level-admin input[type=search],.author-level-approval textarea{padding:12px;border:1px solid #bac8dc;border-radius:8px;font:inherit}
.author-level-approval{border:1px solid #dce4ef;border-radius:14px;padding:22px;display:grid;gap:16px;background:#fff}.author-level-approval textarea{min-height:80px;width:100%;box-sizing:border-box}.author-level-approval label{display:flex;gap:10px;align-items:center}
.author-level-approval input[type=checkbox]{width:18px;height:18px;flex:none}.author-level-approval button{justify-self:start}.author-level-notice{padding:14px 18px;border-radius:10px;background:#edf6ff;color:#254569}.author-level-error{background:#fff1f0;color:#992929}
@media(max-width:650px){.author-progress{padding:18px}.author-progress dl,.author-level-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.author-level-table th,.author-level-table td{padding:12px}.author-level-admin{gap:14px}}

.author-level-label{font-weight:700}
.author-level-table td:first-child{min-width:180px}.author-level-table td:first-child .member-avatar{margin-inline-end:12px;vertical-align:middle}
.author-level-table tbody tr:has(details[open]){background:#f8fafc}
.author-level-policy{padding:18px;border:1px solid #dce4ef;border-radius:12px;background:#f8fafc}
.author-level-policy summary{cursor:pointer;font-weight:700}
.author-level-policy li{margin-block:8px}
.author-progress__identity{display:flex;align-items:center;gap:16px}.author-progress__identity h2{margin:0}
.studio-layout .author-progress{background:var(--studio-card,#102033);color:inherit;border-color:#31445d}.studio-layout .author-progress__note,.studio-layout .author-progress dt{color:#a8b7ce}

.author-level-admin,.author-level-table-wrap{min-width:0;max-width:100%}.author-level-controls select{max-width:100%;min-height:44px;padding:8px;border:1px solid #bac8dc;border-radius:8px;background:white}.author-level-controls input[type=checkbox]{width:18px;height:18px;vertical-align:middle}.author-level-controls label{display:flex;align-items:center;gap:8px}

.author-level-table-wrap{max-height:660px}.author-level-table thead{position:sticky;top:0;z-index:1}.author-level-table-wrap:focus-visible{outline:2px solid #0b5ce8;outline-offset:3px}
.author-rank__progress{display:grid;gap:18px;margin:22px 0}.author-rank__numbers{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}.author-rank progress{width:100%;height:10px;accent-color:#3157e7}.author-rank__benefits{padding:14px 18px;border-radius:14px;background:#edf3ff;color:#17233d}.author-rank__rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.author-rank__rules article{padding:14px;border:1px solid #dce3ed;border-radius:12px}.author-rank details>summary{cursor:pointer;padding:16px 0;font-weight:700}.author-rank-admin .author-level-table td{vertical-align:top}.author-rank-admin textarea{width:100%;min-width:180px;min-height:70px}.author-rank-admin .author-level-controls{flex-wrap:wrap}@media(max-width:520px){.author-rank__rules{grid-template-columns:1fr}.author-rank header{flex-wrap:wrap;gap:16px}.author-rank h2{overflow-wrap:anywhere}}
.author-rank-admin .author-level-table-wrap{background:#fff;color:#17233d}.author-rank-admin .author-level-table th{background:#edf3ff;color:#17233d}.author-rank-admin .author-level-table td{color:#17233d}.author-rank-admin input,.author-rank-admin textarea{color:#17233d;background:#fff}.author-rank-admin .author-level-table small{color:#526584}
/*$vite$:1*/