.member-page { --member-border: #ddd9d4; --member-muted: #545c64; }
.member-page [hidden] { display: none !important; }
.member-page button, .member-page select, .member-page input, .member-page textarea { font: inherit; }
.member-page button, .member-page select { cursor: pointer; }
.member-page button:disabled { cursor: wait; opacity: .65; }
.member-page h2, .member-page h3, .member-page p { margin: 0; }
.member-page h2 { font-size: clamp(23px, 3vw, 31px); line-height: 1.18; letter-spacing: -.035em; }
.member-page h3 { font-size: 21px; letter-spacing: -.025em; }
.member-page .commissions-lead { margin-top: 18px; }
.member-public, .text-button, .preview-info a { color: var(--red-dark); text-underline-offset: 3px; font-weight: 700; }
.member-public { font-size: 13px; text-align: right; }
.member-content { padding-block: 30px 24px; min-height: 360px; }
.card { min-width: 0; border: 1px solid var(--member-border); border-radius: 8px; padding: clamp(18px, 3vw, 32px); background: #fff; }
.access-card { max-width: 590px; }
.member-page label, .assigned span { display: block; margin: 18px 0 7px; color: #454c53; font-size: 13px; font-weight: 700; }
.member-page .optional { font-weight: 400; }
.member-page input:not([type=file]), .member-page textarea, .member-page select { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #b9bec2; border-radius: 5px; color: var(--ink); background: #fff; font-size: 16px; }
.member-page textarea { resize: vertical; }
.member-page #code { letter-spacing: .18em; max-width: 245px; }
.primary, .secondary, .close { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 6px; font-weight: 700 !important; }
.primary { color: white; background: var(--red); }
.primary:hover { background: var(--red-dark); }
.secondary, .close { background: #fff; border-color: var(--member-border); color: var(--ink); }
.secondary:hover, .close:hover { background: #f6f4f3; }
.actions, .preview-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
#emailForm .primary { margin-top: 20px; }
.text-button { border: 0; padding: 7px 0; min-height: 42px; text-align: left; background: transparent; text-decoration: underline; font-size: 14px; }
#codeHint { margin-top: 15px; color: var(--member-muted); font-size: 14px; line-height: 1.5; }
.feedback { padding: 0; font-size: 14px; line-height: 1.5; }
.feedback:not(:empty) { margin: 0 0 17px; border-left: 3px solid #637581; background: #fff; color: #293944; padding: 10px 13px; }
.feedback[data-error=true]:not(:empty) { color: #8f142b; background: #fff4f5; border-color: var(--red-dark); }
.account-bar, .library-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.account-bar { margin-bottom: 18px; color: var(--member-muted); font-size: 13px; overflow-wrap: anywhere; }
.library-heading { margin-bottom: 22px; }
.library-heading p, .visibility p { margin-top: 10px; color: var(--member-muted); font-size: 14px; line-height: 1.5; }
.collection-grid, .editor-grid { display: grid; align-items: start; gap: 20px; }
.collection-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.editor-grid { grid-template-columns: minmax(0, 1.75fr) minmax(200px, 1fr); }
.return-button { margin-bottom: 11px; }
.material-list { list-style: none; margin: 12px 0 0; padding: 0; }
.material-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #eceae7; padding: 12px 0 2px; margin-top: 10px; }
.material-list strong, .material-list small { display: block; overflow-wrap: anywhere; }
.material-list strong { font-size: 15px; }
.material-list small, .material-list .empty { color: var(--member-muted); font-size: 13px; line-height: 1.5; }
.material-list small { margin-top: 4px; }
.file-field { border: 1px dashed #b9b6b1; border-radius: 5px; padding: 12px; background: #fbfaf9; }
.file-field p { margin: 0 0 9px; font-size: 13px; color: var(--member-muted); overflow-wrap: anywhere; }
.file-field #currentFile:not(:empty) { margin: 10px 0 0; }
.file-field input { display: block; margin: 0; max-width: 100%; font-size: 14px; }
.assigned { padding: 12px; border-left: 3px solid var(--red); background: #f8f3f3; margin-top: 15px; }
.assigned span { font-size: 12px; margin: 0 0 4px; }
.member-page dialog { width: min(880px, calc(100% - 24px)); max-height: 92vh; max-height: 92dvh; padding: 0; border: 1px solid var(--member-border); border-radius: 10px; overflow: auto; color: var(--ink); background: white; }
.member-page dialog::backdrop { background: rgb(17 21 27 / 65%); }
.preview-head, .preview-info, .preview-actions { padding: 15px 20px; }
.preview-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.preview-head p { color: var(--red-dark); font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.preview-head h2, .preview-info { overflow-wrap: anywhere; }
.close { width: 44px; padding: 0; font-size: 24px !important; flex: 0 0 44px; }
.preview-body { display: grid; place-items: center; background: #26292f; }
.preview-body img, .preview-body iframe { display: block; width: 100%; max-height: 49vh; max-height: 49dvh; border: none; }
.preview-body img { object-fit: contain; }
.preview-body iframe { height: 49vh; height: 49dvh; background: #fff; }
.preview-info { display: grid; gap: 8px; color: var(--member-muted); font-size: 13px; line-height: 1.4; }
.preview-info p { white-space: pre-wrap; }
.preview-info p:empty { display: none; }
.preview-actions { justify-content: flex-end; margin: 0; border-top: 1px solid var(--member-border); background: #f7f5f2; }
#previewMessage:not(:empty) { margin: 0 20px 12px; }
.member-page :focus-visible { outline: 3px solid #a21539; outline-offset: 3px; }
@media (max-width: 700px) {
  .collection-grid, .editor-grid { grid-template-columns: 1fr; }
  .member-page .header-inner { gap: 12px; }
  .member-public { max-width: 110px; font-size: 12px; }
  .library-heading { align-items: start; flex-direction: column; }
  .member-content { padding-top: 18px; }
}
