/* Fansoci customizer: account-specific colors + publicly visible profile styling. */
.tz-app .tz-profile-customize-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:48px;padding:0 19px;font-size:13px;font-weight:800;border-radius:25px;background:linear-gradient(115deg,var(--tz-purple,#6c4cff),var(--tz-pink,#ff1493));color:#fff;white-space:nowrap}
.tz-app .tz-profile-customize-btn svg{width:18px;height:18px}
.tz-app .tz-profile-customize-btn:hover{filter:brightness(1.06);transform:translateY(-1px)}
/* Profile owner sets these; users viewing the profile see the owner's palette. */
.tz-profile-customized .tz-profile-backdrop{background:var(--tz-profile-gradient);border-color:transparent;}
.tz-profile-customized .tz-profile-backdrop:after{background:linear-gradient(to bottom,rgba(255,255,255,.03) 3%,rgba(255,255,255,.1) 37%,rgba(255,255,255,.92) 90%,#fff 100%)}
.tz-profile-customized .tz-profile-backdrop .orb{background:rgba(255,255,255,.12);filter:blur(3px)}
.tz-profile-customized .tz-profile-avatar-wrap .tz-avatar{outline-color:var(--tz-profile-accent);outline-width:3px;}
.tz-profile-customized .tz-profile-tabs a.active{color:var(--tz-profile-second)}
.tz-profile-customized .tz-profile-tabs a.active:after{background:var(--tz-profile-accent)}
.tz-profile-customized .tz-profile-primary{background:linear-gradient(115deg,var(--tz-profile-accent),var(--tz-profile-second));color:#fff}
.tz-profile-customized.tz-profile-card-soft .tz-profile-header{border-radius:26px;box-shadow:0 17px 47px rgba(82,70,142,.17);border-color:#e9e6f9}
.tz-profile-customized.tz-profile-card-outlined .tz-profile-header{border:3px solid var(--tz-profile-accent);box-shadow:0 10px 29px rgba(65,60,115,.06)}
.tz-profile-customized.tz-profile-card-premium .tz-profile-header{border:2px solid var(--tz-profile-second);border-radius:29px;box-shadow:0 22px 53px rgba(100,76,190,.19)}
.tz-profile-customized.tz-profile-card-premium .tz-profile-backdrop{height:184px}
.tz-profile-customized.tz-profile-card-premium .tz-profile-avatar-wrap .tz-avatar{outline:4px solid var(--tz-profile-accent)}
.tz-profile-customized.tz-profile-button-pill .tz-profile-primary{border-radius:999px!important}
.tz-profile-customized.tz-profile-button-outline .tz-profile-primary{background:#fff!important;color:var(--tz-profile-second)!important;border:2px solid var(--tz-profile-accent)!important}
.tz-profile-customized.tz-profile-button-soft .tz-profile-primary{background:#f5eefe!important;color:var(--tz-profile-second)!important;border:1px solid var(--tz-profile-accent)!important}
.tz-profile-customized.tz-profile-button-rounded .tz-profile-primary{border-radius:14px!important}
/* Color and button preferences on the signed-in member's own navigation and actions. */
.tz-app .tz-toplink.active,.tz-app .tz-menu a:hover:not(.tz-menu-logout){color:var(--tz-custom-accent,var(--tz-pink))}
.tz-app .tz-menu a.active,.tz-app .tz-menu a.active:hover{color:#fff}
body.tz-user-button-pill .tz-app .tz-btn:not(.ghost):not(.danger):not(.secondary):not(.tz-profile-primary):not(.tz-profile-customize-btn){border-radius:999px}
body.tz-user-button-rounded .tz-app .tz-btn:not(.ghost):not(.danger):not(.secondary):not(.tz-profile-primary):not(.tz-profile-customize-btn){border-radius:14px}
body.tz-user-button-outline .tz-app .tz-btn:not(.ghost):not(.danger):not(.secondary):not(.tz-profile-primary):not(.tz-profile-customize-btn){background:transparent;color:var(--tz-custom-secondary,#6c4cff);border:2px solid var(--tz-custom-accent,#ff1493)}
body.tz-user-button-soft .tz-app .tz-btn:not(.ghost):not(.danger):not(.secondary):not(.tz-profile-primary):not(.tz-profile-customize-btn){background:#f4ebff;color:var(--tz-custom-secondary,#6c4cff);border:1px solid var(--tz-custom-accent,#ff1493)}
/* Preserve the other user's own button style when visiting a profile. */
.tz-app .tz-profile-customize-btn{background:linear-gradient(115deg,var(--tz-profile-accent,var(--tz-purple)),var(--tz-profile-second,var(--tz-pink)))!important;color:#fff!important;border:0!important}
/* Settings form */
.tz-customize-header{gap:14px}
.tz-customize-view{display:inline-flex;align-items:center;gap:7px;padding:10px 13px;border:1px solid #e2e6f0;border-radius:11px;font-size:12px;font-weight:800;color:#59647c;white-space:nowrap}
.tz-customize-view svg{height:17px;width:17px}
.tz-customize-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(220px,.85fr);gap:19px;align-items:start}
.tz-customize-controls{display:grid;gap:19px;min-width:0}
.tz-customize-fieldset{border:1px solid #e9ebf4;border-radius:18px;padding:15px 15px 16px;margin:0;min-width:0}
.tz-customize-fieldset legend{display:flex;align-items:center;gap:10px;padding:0 7px 0 0;font-size:16px;color:#202945;font-weight:900}
.tz-customize-index{width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,var(--tz-purple),var(--tz-pink));color:#fff;display:grid;place-items:center;font-size:13px;flex:0 0 30px}
.tz-customize-fieldset legend span{display:grid;gap:2px}
.tz-customize-fieldset legend small{font-size:10px;font-weight:500;color:#8290a7}
.tz-customize-colors{display:flex;flex-wrap:wrap;gap:11px;align-items:flex-start;margin-top:12px}
.tz-customize-color-choice{display:grid;justify-items:center;gap:5px;cursor:pointer;min-width:49px;max-width:80px}
.tz-customize-color-choice input,.tz-customize-gradient-choice input,.tz-customize-style-choice input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.tz-customize-color-dot{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--swatch-a),var(--swatch-b));color:#fff;border:3px solid #fff;box-shadow:0 0 0 1px #e2e4eb;font-size:18px}
.tz-customize-color-choice input:checked + .tz-customize-color-dot{box-shadow:0 0 0 3px var(--swatch-a)}
.tz-customize-color-dot span{opacity:0}
.tz-customize-color-choice input:checked + .tz-customize-color-dot span{opacity:1}
.tz-customize-color-choice small{color:#67758c;font-size:10px;text-align:center;line-height:1.15}
.tz-customize-gradient-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
.tz-customize-gradient-choice,.tz-customize-style-choice{cursor:pointer;display:block;min-width:0}
.tz-customize-gradient-body{position:relative;display:grid;gap:6px;padding:6px;border:2px solid #e7e9f1;border-radius:14px;background:#fff}
.tz-customize-gradient-art{display:block;height:57px;width:100%;border-radius:9px}
.tz-customize-gradient-body b{padding:0 3px 2px;color:#37405b;font-size:11px}
.tz-customize-gradient-body i{position:absolute;right:9px;top:9px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#5f38da;font-size:12px;font-style:normal;opacity:0}
.tz-customize-gradient-choice input:checked + .tz-customize-gradient-body{border-color:var(--tz-purple)}
.tz-customize-gradient-choice input:checked + .tz-customize-gradient-body i{opacity:1}
.tz-customize-style-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
.tz-customize-style-body{display:flex;align-items:center;gap:9px;padding:12px 10px;border:2px solid #e9ecf4;border-radius:14px;min-height:69px}
.tz-customize-style-body>span:last-child{display:grid;gap:3px;min-width:0}
.tz-customize-style-body b{font-size:12px;color:#303a51;line-height:1.3}
.tz-customize-style-body small{font-size:10px;line-height:1.3;color:#7c8a9d}
.tz-customize-style-choice input:checked + .tz-customize-style-body{border-color:var(--tz-purple);background:#fcfaff}
.tz-customize-mini-btn{background:linear-gradient(115deg,var(--tz-purple),var(--tz-pink));color:#fff;font-size:10px;font-weight:800;padding:7px 10px;white-space:nowrap;border-radius:10px}
.tz-customize-mini-btn.tz-mini-pill{border-radius:999px}
.tz-customize-mini-btn.tz-mini-outline{background:#fff;border:1px solid var(--tz-purple);color:var(--tz-purple)}
.tz-customize-mini-btn.tz-mini-soft{background:#f3ecff;color:var(--tz-purple)}
.tz-customize-preview-sticky{position:sticky;top:94px;padding:13px;border:1px solid #e9ebf3;border-radius:19px;background:#fafbfe}
.tz-customize-preview-heading{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:12px;flex-wrap:wrap}
.tz-customize-preview-heading strong{font-size:14px;color:#28344f}
.tz-customize-preview-heading span{font-size:9px;color:#8894a8}
.tz-customize-preview-surface{background:#f1f3fb;border-radius:13px;padding:9px;overflow:hidden;--preview-a:#ff1493;--preview-b:#6c4cff}
.tz-customize-preview-nav{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:10px;padding:4px 2px;color:#3b4565}
.tz-customize-preview-nav b{color:var(--preview-b);font-size:15px}
.tz-customize-preview-nav span{background:linear-gradient(115deg,var(--preview-a),var(--preview-b));color:#fff;border-radius:9px;padding:5px 9px;font-weight:700;font-size:9px}
.tz-customize-preview-card{border:1px solid #e9eaf1;background:white;border-radius:14px;overflow:hidden;transition:.15s ease}
.tz-customize-preview-cover{height:105px;background:var(--preview-gradient)}
.tz-customize-preview-info{display:flex;align-items:end;gap:8px;margin:-24px 12px 0;position:relative;min-width:0}
.tz-customize-preview-info img{width:60px!important;height:60px!important;border:3px solid white;box-shadow:0 2px 8px #0002;border-radius:50%;flex:0 0 60px}
.tz-customize-preview-info>div{display:grid;gap:4px;padding-bottom:4px;min-width:0}
.tz-customize-preview-info strong{font-size:13px;color:#1b2640;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tz-customize-preview-info small{font-size:10px;color:#8b95a5}
.tz-customize-preview-card p{font-size:10px;color:#78849d;padding:4px 12px;margin:9px 0}
.tz-customize-preview-actions{display:flex;justify-content:flex-end;gap:6px;padding:4px 12px 14px}
.tz-customize-preview-actions span{padding:8px 11px;font-size:10px;border-radius:12px;background:linear-gradient(115deg,var(--preview-a),var(--preview-b));color:#fff;font-weight:800}
.tz-customize-preview-actions span+span{background:#f2f3f7;color:#3a4860}
.tz-customize-preview-surface[data-card=soft] .tz-customize-preview-card{border-radius:22px;box-shadow:0 10px 23px #38349d29}
.tz-customize-preview-surface[data-card=outlined] .tz-customize-preview-card{border:3px solid var(--preview-a)}
.tz-customize-preview-surface[data-card=premium] .tz-customize-preview-card{border:2px solid var(--preview-b);border-radius:25px;box-shadow:0 12px 22px #39349c36}
.tz-customize-preview-surface[data-button=pill] .tz-customize-preview-actions span{border-radius:999px}
.tz-customize-preview-surface[data-button=rounded] .tz-customize-preview-actions span{border-radius:12px}
.tz-customize-preview-surface[data-button=outline] .tz-customize-preview-actions span:first-child{background:#fff;border:2px solid var(--preview-a);color:var(--preview-b)}
.tz-customize-preview-surface[data-button=soft] .tz-customize-preview-actions span:first-child{background:#f5eafa;color:var(--preview-b);border:1px solid var(--preview-a)}
.tz-customize-preview-note{font-size:10px;color:#7d899e;line-height:1.6;margin:12px 1px 0}
.tz-customize-footer{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}
.tz-customize-reset{background:transparent;border:0;color:#68758b;font-size:12px;font-weight:800;cursor:pointer}
.tz-customize-reset:hover{text-decoration:underline}
.tz-customize-color-choice input:focus-visible + span,.tz-customize-gradient-choice input:focus-visible + span,.tz-customize-style-choice input:focus-visible + span{outline:3px solid #222;outline-offset:3px}
@media (max-width:1320px){.tz-customize-layout{grid-template-columns:1fr}.tz-customize-preview{order:-1}.tz-customize-preview-sticky{position:static}.tz-customize-preview-surface{max-width:360px;margin:auto}.tz-customize-preview-note{text-align:center}}
@media (max-width:650px){.tz-customize-fieldset{padding:12px}.tz-customize-style-grid,.tz-customize-gradient-grid{grid-template-columns:1fr 1fr}.tz-customize-header{align-items:flex-start;flex-wrap:wrap}.tz-customize-fieldset legend{font-size:14px}.tz-app .tz-profile-customize-btn{min-height:39px;padding:0 14px;font-size:12px}}
@media (max-width:390px){.tz-customize-style-grid{grid-template-columns:1fr}.tz-customize-gradient-art{height:44px}}
/* Dark-mode compatibility without forcing a white shell around the entire app. */
body.tz-appearance-dark .tz-customize-fieldset,body.dark-mode .tz-customize-fieldset,[data-theme=dark] .tz-customize-fieldset{border-color:#39435b}
body.tz-appearance-dark .tz-customize-fieldset legend,body.dark-mode .tz-customize-fieldset legend,[data-theme=dark] .tz-customize-fieldset legend{color:#f5f6fb}
body.tz-appearance-dark .tz-customize-preview-sticky,body.dark-mode .tz-customize-preview-sticky,[data-theme=dark] .tz-customize-preview-sticky{background:#20283b;border-color:#3c4558}

/* Dark appearance matches the original Fansoci theme. */
body.tz-appearance-dark .tz-customize-fieldset{background:#1a2030;border-color:#384255}
body.tz-appearance-dark .tz-customize-fieldset legend,body.tz-appearance-dark .tz-customize-preview-heading strong{color:#e9edf9}
body.tz-appearance-dark .tz-customize-gradient-body,body.tz-appearance-dark .tz-customize-style-body{background:#212a3c;border-color:#3c455a}
body.tz-appearance-dark .tz-customize-gradient-body b,body.tz-appearance-dark .tz-customize-style-body b{color:#e9edf9}
body.tz-appearance-dark .tz-customize-style-choice input:checked + .tz-customize-style-body{background:#282842;border-color:var(--tz-purple)}
body.tz-appearance-dark .tz-customize-color-choice small,body.tz-appearance-dark .tz-customize-style-body small{color:#a9b4ca}
body.tz-appearance-dark .tz-customize-preview-note{color:#a9b4ca}
body.tz-appearance-dark .tz-customize-view{border-color:#374154;color:#e0e6f1}
body.tz-appearance-dark .tz-profile-customized .tz-profile-backdrop:after{background:linear-gradient(to bottom,rgba(29,37,54,.03) 3%,rgba(29,37,54,.14) 35%,rgba(29,37,54,.89) 90%,#1d2536 100%)}
body.tz-appearance-dark .tz-profile-customized .tz-profile-primary{color:#fff}
body.tz-appearance-dark .tz-profile-customized.tz-profile-button-outline .tz-profile-primary,body.tz-appearance-dark .tz-profile-customized.tz-profile-button-soft .tz-profile-primary{color:var(--tz-profile-second)}
