﻿/* Writer membership workspace: scoped to preserve reader membership screens. */
.author-members-page{color:var(--ink);max-width:1200px;margin:auto}
.author-members-stats{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}
.author-members-page section{min-width:0;background:var(--surface,var(--panel));border:1px solid var(--line);border-radius:16px;padding:24px}
.author-members-stats section{display:flex;flex-direction:column;gap:8px}
.author-members-stats strong{font-size:30px;font-variant-numeric:tabular-nums}.author-members-stats small{font-size:14px;font-weight:500}
.author-members-columns{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;margin-bottom:24px}
.author-members-page h2{font-size:20px;margin:0 0 20px}.member-section-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.member-section-title h2{margin:0}
.author-members-page form{display:flex;flex-direction:column;gap:18px}.author-members-page label{display:flex;flex-direction:column;gap:8px;margin:0;font-size:14px}.author-members-page input,.author-members-page textarea,.author-members-page select{width:100%;min-width:0;margin:0;color:var(--ink)}
.author-members-page .member-toggle{display:flex;flex-direction:row;align-items:center;gap:10px;white-space:nowrap;font-size:13px}.member-toggle input{appearance:none;width:36px!important;height:22px;min-height:0;padding:2px;border-radius:20px;background:var(--muted);cursor:pointer}.member-toggle input:before{content:'';display:block;width:16px;height:16px;border-radius:50%;background:white}.member-toggle input:checked{background:#187347}.member-toggle input:checked:before{transform:translateX(12px)}
.member-tag{align-self:flex-start;border-radius:20px;padding:3px 10px;background:var(--soft);font-size:12px;margin-top:-10px}.member-price{display:flex;align-items:center;gap:10px}.member-price input{max-width:180px}.author-members-page button[type=submit]{align-self:flex-start;background:#187347;color:white;min-width:110px}
.member-recent article{position:relative;padding:12px 70px 12px 0}.member-person{display:flex;align-items:center;gap:10px;min-width:0}.member-person strong{font-weight:600;overflow-wrap:anywhere}.member-initial{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:50%;background:var(--soft);color:var(--ink)}.member-recent small{display:block;color:var(--muted);margin-left:42px;font-size:12px}.member-recent .member-renew{margin-left:42px}.member-sale{position:absolute;right:0;top:25px;font-size:13px;display:flex;align-items:center;gap:4px}
.member-renew,.member-status{display:inline-block;font-size:11px;padding:3px 8px;border-radius:20px;background:var(--soft);color:var(--ink);white-space:nowrap}.member-renew.enabled,.member-status.active{background:#dff3e7;color:#125c37}
.member-filters{display:flex;gap:8px;max-width:440px}.member-filters input{flex:1}.member-filters select{width:130px}.member-table-scroll{overflow-x:auto}.member-directory table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}.member-directory th{font-weight:500;color:var(--muted)}.member-directory td,.member-directory th{padding:14px 10px;border-bottom:1px solid var(--line);white-space:nowrap}.member-directory tr:last-child td{border-bottom:0}.member-empty{padding:32px;text-align:center;color:var(--muted)}
@media(max-width:1000px){.author-members-columns{grid-template-columns:1fr}.member-section-title{flex-wrap:wrap}.member-filters{max-width:100%;width:100%}}
@media(max-width:600px){.author-members-page section{padding:16px;border-radius:12px}.author-members-stats{gap:10px;margin:16px 0}.author-members-stats strong{font-size:26px}.author-members-stats span{font-size:12px}.author-members-columns{gap:16px}.author-members-page h2{font-size:18px}.member-directory table{min-width:650px}.author-members-page input,.author-members-page textarea,.author-members-page select{font-size:16px}.author-members-page .member-toggle{font-size:12px}}

.catalog-site #writer-shell .author-members-page .member-price input{width:180px;max-width:180px}
.catalog-site #writer-shell .author-members-page .member-toggle input{width:36px;height:22px;min-height:22px;padding:2px;background:var(--muted);border:0}
.catalog-site #writer-shell .author-members-page .member-toggle input:checked{background:#187347}
.catalog-site #writer-shell .author-members-page button[type=submit]{background:#187347;color:#fff}

.membership-name-tag{display:inline-flex;vertical-align:middle;margin-inline-start:6px;padding:3px 8px;border-radius:6px;color:#fff!important;font-size:11px;font-weight:600;line-height:1.5;white-space:nowrap}
#writer-shell .member-tag-colors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 20px}
#writer-shell .member-tag-colors button{color:#fff;border:2px solid transparent;min-height:60px;padding:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
#writer-shell .member-tag-colors button[aria-pressed=true]{outline:2px solid var(--text);outline-offset:2px}
#writer-shell .member-tag-colors small{color:#fff;font-size:11px}
#writer-shell .member-tag-colors span{max-width:100%;overflow-wrap:anywhere}

.member-gradient-editor{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:12px;min-width:0}.member-gradient-editor p{font-size:13px;color:var(--muted)}.member-gradient-stops{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.member-gradient-stops label{display:grid;gap:6px;font-size:12px}.member-gradient-stops input[type=color]{width:48px;height:44px;padding:3px;cursor:pointer}.member-gradient-actions{display:flex;flex-wrap:wrap;gap:8px}.member-gradient-sample{display:inline-block;margin-top:14px}.membership-name-tag,.member-tag{color:#fff!important;text-shadow:0 1px 2px #0009}.member-gradient-editor legend{font-weight:700}

/* Compact custom tag palette */
#writer-shell .member-gradient-editor{padding:16px;margin:16px 0 24px;background:var(--paper);border:1px solid var(--line);border-radius:16px}
.tag-editor-heading,.tag-color-heading,.tag-palette-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tag-editor-heading strong{font-size:15px}.tag-color-heading{font-size:12px;color:var(--muted);margin:16px 0 10px}
#writer-shell .tag-editor-heading button{min-height:36px;padding:6px 12px;font-size:12px;border-radius:20px;background:var(--soft);color:var(--ink);border:0}
.tag-preview-stage{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;min-height:110px;margin-top:14px;border-radius:12px;background:var(--bg)}
#writer-shell .tag-preview-stage .member-gradient-sample{margin:0;padding:7px 16px;font-size:15px;border-radius:8px;max-width:100%;overflow-wrap:anywhere;white-space:normal;text-align:center}
.tag-preview-stage small{font-size:11px;color:var(--muted)}
#writer-shell .member-gradient-stops{display:flex;flex-wrap:wrap;gap:8px;margin:0;min-width:0}
#writer-shell .member-gradient-stops .tag-color-swatch{position:relative;display:block;width:40px;height:40px;min-width:40px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px #ffffff35;overflow:hidden;margin:0;cursor:pointer}
#writer-shell .tag-color-swatch input[type=color]{position:absolute;inset:0;width:100%;height:100%;padding:0;opacity:0;cursor:pointer;min-height:0}
.tag-color-swatch span{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;color:white;font-size:12px;font-weight:700;text-shadow:0 1px 3px #000}
.tag-color-swatch:focus-within{outline:2px solid var(--ink);outline-offset:3px}
.tag-palette-tools{display:flex;gap:6px;flex-shrink:0}
#writer-shell .tag-palette-tools button{width:36px;height:36px;min-height:36px;padding:0;display:grid;place-items:center;font-size:22px;border-radius:50%;background:var(--bg);border:1px solid var(--line);color:var(--ink)}
#writer-shell .tag-palette-tools button:disabled{opacity:.3;cursor:default}
#writer-shell .member-gradient-editor .tag-apply{display:block;width:100%;margin-top:16px;padding:8px 12px;min-height:36px;border:1px solid var(--line);background:transparent;color:var(--ink);font-size:12px;border-radius:8px}
@media(max-width:420px){.tag-palette-row{flex-wrap:wrap}.tag-palette-tools{margin-left:auto}}
