.member-page{max-width:1250px}.member-hero{padding:72px 0 48px}.member-hero .eyebrow{margin-bottom:15px}.member-hero h1{font-size:clamp(38px,4.2vw,62px);line-height:1.25;letter-spacing:-.065em;margin:0}.member-hero h1 em{font-style:normal;color:var(--mint)}.member-hero p:not(.eyebrow){color:var(--muted);font-size:14px;line-height:1.8;margin-top:20px}.member-panel{background:var(--panel);border:1px solid #344650;border-radius:19px;padding:31px}.member-auth{max-width:570px;margin:0 auto 85px}.member-panel h2,.library-toolbar h2{font-size:clamp(24px,2.5vw,34px);letter-spacing:-.05em;margin:8px 0}.auth-heading,.library-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#0b141b;padding:5px;border-radius:10px;margin:27px 0 17px}.auth-tabs button{background:none;border:0;color:#a1adb7;font-size:13px;font-weight:700;padding:12px;border-radius:8px}.auth-tabs button[aria-pressed=true]{background:#2c463e;color:#c7ffe2}.member-panel label{display:block;font-size:12px;font-weight:800;margin:18px 0 9px}.member-panel input{width:100%;box-sizing:border-box;padding:14px;border-radius:10px;border:1px solid #41525f;background:#0e161e;color:#e8f2f2;min-height:49px}.member-panel input:focus{outline:2px solid #baf6d6}.member-auth #authSubmit{display:flex;width:100%;margin-top:26px}.member-fine,.member-endnote{font-size:11px;line-height:1.9;color:#96a7ae}.member-fine{margin-top:23px}.member-fine strong{color:#bddece}.enrollment{max-width:650px;margin:0 auto 70px}.enrollment>p:not(.panel-step){font-size:13px;color:var(--muted);line-height:1.8}.enrollment .button{margin-top:15px}.enrollment .text-button{display:block;margin-top:16px}.library-page{padding-bottom:70px}.library-toolbar{margin-bottom:28px}.library-toolbar .eyebrow{margin-bottom:6px}.signed-in-email{color:#9bb0b2;font-size:12px;overflow-wrap:anywhere}.library-form-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.library-form-actions .button{flex:1;min-width:105px}.product-list{display:flex;flex-direction:column;gap:12px;min-height:90px}.product-entry{padding:17px;border-radius:12px;border:1px solid #354a55;background:#0b151c}.product-entry h4{font-size:16px;margin:0 0 7px;overflow-wrap:anywhere}.product-entry p{color:#95aeb9;font-size:11px;line-height:1.7;margin:0 0 11px;overflow-wrap:anywhere}.product-entry small{display:block;color:#b1d1c7;line-height:1.7;font-size:11px;overflow-wrap:anywhere}.product-entry-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.product-entry-actions button{font-size:11px;font-weight:700;padding:9px 12px;border-radius:8px;border:1px solid #4f655d;background:#1b2d31;color:#d6f7e3}.product-entry-actions button:hover{background:#314943}.product-entry-actions .delete-product{border-color:#704b50;color:#ffc8cc;background:#2d1c23}.empty-library{font-size:12px;color:#93a9b5;text-align:center;line-height:1.8;padding:70px 10px}.draft-card{margin-top:21px}.draft-card .panel-top{margin-bottom:20px}.draft-card .output-text{margin:15px 0}.member-endnote{border-top:1px solid #263847;padding:25px 0 50px}.member-panel[hidden],.library-page[hidden],.draft-card[hidden]{display:none!important}.member-auth .auth-heading .tiny-badge{white-space:nowrap}@media(max-width:650px){.member-hero{padding:53px 0 28px}.member-panel{padding:23px 18px}.auth-heading{align-items:flex-start;flex-direction:column;gap:8px}.library-toolbar{align-items:flex-start;flex-direction:column}.library-toolbar .button{min-height:42px}.product-entry-actions{gap:6px}.product-entry-actions button{flex:1}.library-form-actions{flex-direction:column}.library-form-actions .button{width:100%}}

/* Separate consent flow for paid model use. Existing free draft UI remains unchanged. */
.ai-studio-panel{margin-top:20px;border-color:#3b594e}
.ai-preview-notice{font-size:12px;line-height:1.85;color:#b1c8bb;margin:0 0 18px}
.ai-studio-panel .consent-line{display:flex;align-items:flex-start;gap:12px;
 padding:13px 0;border-bottom:1px solid #31413b;font-size:12px;line-height:1.8;
 font-weight:600;color:#d8e9e1;cursor:pointer}
.ai-studio-panel .consent-line input[type="checkbox"]{width:17px;min-width:17px;height:17px;
 min-height:unset;margin:4px 0 0;accent-color:#abedc7}
.ai-studio-panel #studioAiGenerate{margin-top:19px;min-height:50px}
.ai-studio-panel #studioAiGenerate:disabled{opacity:.52;cursor:not-allowed}
.ai-studio-panel #studioAiOutputWrap{padding-top:12px}
.ai-studio-panel .output-text{min-height:170px}


/* HAEBODA V5 actual server-side video order integration; still payment-gated. */
.v5-video-panel{margin-top:22px;border-color:#5d8b76}
.v5-video-panel .panel-top{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.v5-video-panel .panel-top h3{margin:8px 0;color:#ebfff2;letter-spacing:-.04em}
.v5-mode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:19px 0}
.v5-mode span{display:flex;flex-direction:column;gap:6px;border:1px solid #365363;background:#101c24;border-radius:11px;padding:15px}
.v5-mode .is-selected{background:#1b342e;border-color:#9ad7ac}
.v5-mode strong{font-size:13px;color:#f1fff6}
.v5-mode small{font-size:11px;line-height:1.5;color:#99ada7}
.v5-selected{font-size:13px;color:#d4ffe8;background:#1a302b;border-radius:9px;border:1px solid #467b64;padding:14px;margin:15px 0}
.v5-video-panel form>input{max-width:660px}
.v5-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}
.v5-photos>div{min-width:0}
.v5-photos label{font-size:12px}
.v5-video-panel input[type=file]{width:100%;padding:9px;min-height:60px;font-size:11px}
.v5-video-panel input[type=file]::file-selector-button{background:#253f38;color:#edfff1;border:1px solid #547465;border-radius:6px;padding:6px 8px;margin-right:6px}
.v5-video-panel .consent-line{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.8;color:#d4e5dc;font-weight:600;border-bottom:1px solid #36483f;padding:10px 0}
.v5-video-panel .consent-line input[type=checkbox]{width:17px;height:17px;min-height:17px;margin:5px 0 0;accent-color:#a6ebc5;flex-shrink:0}
.v5-video-panel #studioVideoCreate{margin-top:18px;min-height:48px;width:100%}
.v5-video-panel #studioVideoCreate:disabled{opacity:.55;cursor:not-allowed}
.v5-order-info{display:flex;align-items:center;flex-wrap:wrap;gap:12px;background:#152923;border:1px solid #47695b;padding:14px 16px;border-radius:12px;margin-top:15px}
.v5-order-info>div{flex:1;min-width:180px;display:flex;flex-direction:column;gap:6px}
.v5-order-info strong{font-size:13px}
.v5-order-info span{font-size:12px;color:#d3e6d8}
.v5-order-info .button{font-size:12px;min-height:36px}
.v5-video-panel [hidden]{display:none!important}
@media(max-width:710px){.v5-photos{grid-template-columns:1fr}.v5-mode{grid-template-columns:1fr}.v5-video-panel .panel-top{align-items:flex-start}}


/* Customer -> protected admin navigation. Link does not grant authorization. */
.studio-member-navigation{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.studio-member-admin-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 13px;border-radius:8px;border:1px solid #625945;color:#e5cb88;font-size:12px;font-weight:800;white-space:nowrap}
.studio-member-admin-link:hover{background:#302c23;border-color:#ba9f65}
.studio-member-admin-link:focus-visible{outline:3px solid #a0d5e6;outline-offset:3px}
@media(max-width:540px){.member-page .site-header{height:auto;min-height:72px;padding:14px 0;flex-wrap:wrap}.studio-member-navigation{gap:7px}.studio-member-admin-link{padding:9px 10px;font-size:10px}.studio-member-navigation .header-link{padding:9px 10px;font-size:10px}}

/* Video review and customer-approved desired publishing time; no SNS auto-post. */
.publish-review-panel{margin-top:20px;border-color:#806d4c}
.publish-review-panel .panel-top{display:flex;justify-content:space-between;gap:16px;align-items:start;flex-wrap:wrap}
.publish-review-panel .panel-top h3{color:#f5e9cb}
.publish-review-panel #studioPublishPreview{width:100%;max-width:420px;aspect-ratio:9/16;max-height:600px;background:#060b12;object-fit:contain;display:block;margin:15px auto 23px;border:1px solid #3c4b53;border-radius:10px}
.publish-review-panel textarea,.publish-review-panel input[type=datetime-local]{width:100%;background:#101b24;color:#f1f6f0;border:1px solid #49606b;border-radius:10px;padding:13px 14px;font:inherit}
.publish-review-panel textarea{min-height:130px;resize:vertical;line-height:1.7}
.publish-review-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px;margin:18px 0}
.publish-review-channels{margin:0;border:1px solid #40535c;border-radius:10px;padding:14px}
.publish-review-channels legend{font-size:12px;font-weight:750;color:#e2d3a9}
.publish-review-channels label{display:flex;gap:9px;align-items:center;min-height:37px;font-size:12px}
.publish-review-date>label{font-size:12px;font-weight:750;color:#f5e8c9}
.publish-review-date input{margin-top:9px;min-height:47px}
.publish-review-check{display:flex;gap:10px;align-items:start;padding:12px 0;border-top:1px solid #39474c;font-size:12px;line-height:1.8;cursor:pointer}
.publish-review-check input,.publish-review-channels input{width:17px;height:17px;min-height:17px;flex:none;accent-color:#e5cb88;margin-top:3px}
.publish-review-panel #studioPublishSave{width:100%;margin-top:14px}
.publish-review-saved{border:1px solid #6b8d74;background:#1b3026;padding:16px 18px;border-radius:11px;margin-top:16px}
.publish-review-saved strong{color:#d4f5db}
.publish-review-saved p{font-size:12px;line-height:1.8}
.publish-review-panel [hidden]{display:none!important}
@media(max-width:680px){.publish-review-grid{grid-template-columns:1fr}}

/* Owner-separated OAuth connection readiness (not a public posting toggle). */
.studio-social-panel{margin:0 0 22px;border-color:#4c6677}
.studio-social-rows{display:grid;gap:12px;margin:15px 0}
.studio-social-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:#111d25;border:1px solid #355062;border-radius:11px;padding:16px 18px}
.studio-social-row strong{font-size:14px;color:#f7f2e5}
.studio-social-row p{font-size:12px;color:#aabfc9;margin:5px 0 0}
.studio-social-actions{display:flex;gap:9px;flex-wrap:wrap}
.studio-social-panel .button{font-size:12px;min-height:40px}
.studio-social-panel [hidden]{display:none!important}

/* Four-field, SMS-verified optional Studio registration. Legacy email sign-in remains. */
.member-auth #authUsernameGroup,.member-auth #authDisplayNameGroup,.member-auth #authPhoneGroup,
.member-auth #authIdentifierGroup{display:flex;flex-direction:column;gap:8px}
.member-auth .auth-tabs{flex-wrap:wrap}
.member-auth .auth-tabs button{flex:1 1 130px;white-space:normal}
.member-auth #authPhoneReadiness{margin:0;color:#e0c18b}
.member-auth #authSubmit:disabled{opacity:.55;cursor:not-allowed}
.auth-otp-panel{display:flex;flex-direction:column;gap:10px;margin-top:16px;padding:18px;border:1px solid #597c70;background:#152820;border-radius:12px}
.auth-otp-panel p{font-size:12px;line-height:1.75;color:#d8eee2;margin:0}
.auth-otp-panel label{font-size:12px;color:#cde5d7}
.auth-otp-panel input{max-width:230px;border:1px solid #627e79;background:#12231e;color:#fff;border-radius:9px;padding:12px;font:inherit;min-height:46px}
.auth-otp-panel [hidden],.member-auth [hidden]{display:none!important}

/* Payment preflight: an honest test checkout preview, never a live purchase action. */
.studio-checkout-test{margin:20px 0 28px;padding:clamp(22px,3vw,32px);border-color:#5c6d68}
.studio-checkout-test .panel-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.studio-checkout-test .panel-top h3{margin:9px 0;color:#e9f4e9;font-size:clamp(20px,2.2vw,26px)}
.studio-checkout-note{max-width:850px;color:#b9c9c4;font-size:12px;line-height:1.9;margin:14px 0 24px}
.studio-checkout-note strong{color:#e8d29c}
.studio-checkout-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:13px}
.studio-checkout-grid>div{min-width:0}
.studio-checkout-grid label{display:block;color:#d6e7de;font-size:12px;font-weight:720;margin-bottom:9px}
.studio-checkout-grid select{width:100%;min-height:46px;min-width:0;border-radius:10px;border:1px solid #60746f;color:#f0f5f2;background:#17242a;padding:11px 14px;font:inherit}
.studio-checkout-grid button{min-height:46px}
.studio-checkout-details{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.7fr);gap:10px;margin:20px 0 4px}
.studio-checkout-details>div{min-width:0;background:#18272a;border:1px solid #3d5c57;border-radius:10px;padding:15px 17px}
.studio-checkout-details>div:last-child{grid-column:span 2}
.studio-checkout-details small{display:block;color:#a2bfba;font-size:11px}
.studio-checkout-details strong,.studio-checkout-details code{display:block;color:#eaf5ec;font-size:15px;font-weight:760;overflow-wrap:anywhere;margin-top:8px}
.studio-checkout-details code{color:#d6d19b;font-family:ui-monospace,monospace;font-size:12px;font-weight:600}
.studio-checkout-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin:18px 0}
.studio-checkout-actions button{min-height:42px}
.studio-checkout-readiness{font-size:12px;color:#e5c992;line-height:1.7;margin:0 0 9px}
.studio-checkout-test [hidden]{display:none!important}
@media(max-width:650px){.studio-checkout-grid{grid-template-columns:1fr}.studio-checkout-grid button{width:100%}.studio-checkout-details{grid-template-columns:1fr}.studio-checkout-details>div:last-child{grid-column:auto}.studio-checkout-actions button{width:100%}}
