.cf-account-tag{display:inline-flex;align-items:center;max-width:100%;padding:5px 10px;border-radius:7px;background:var(--account-bg,#e6efff);color:var(--account-fg,#245aa8);font-size:14px;font-weight:700;line-height:1.5;margin:0;overflow-wrap:anywhere}
.account-select{position:relative;min-width:0;width:100%}
.account-native-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none;padding:0!important;min-height:0!important}
.account-select-trigger,.account-select-trigger:hover,.account-select-trigger:focus{display:flex;align-items:center;width:100%;height:42px;min-height:42px;padding:5px 34px 5px 9px;border:1px solid #ccd8e8;border-radius:8px;background:#fff;color:#233e60;text-align:left;box-shadow:none;position:relative}
.account-select-trigger::after{content:'';position:absolute;right:14px;top:16px;width:7px;height:7px;border-right:2px solid #63758e;border-bottom:2px solid #63758e;transform:rotate(45deg)}
.account-select-trigger:focus-visible{outline:2px solid #4487e8;outline-offset:2px}
.account-select-menu{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:60;padding:6px;background:white;border:1px solid #d7e0ed;border-radius:10px;box-shadow:0 8px 24px #18345820;max-height:260px;overflow:auto}
.account-select-option,.account-select-option:hover{display:flex;align-items:center;width:100%;padding:7px;border:0;border-radius:6px;background:white;text-align:left;color:#233e60;box-shadow:none}
.account-select-option:hover,.account-select-option:focus-visible,.account-select-option[aria-selected=true]{background:#f0f4fa}
.account-select-option[aria-selected=true]::after{content:'✓';margin-left:auto;padding-left:8px;color:#4772ae}
#cf-accounts-panel{padding:22px;background:#f3f0fa;border:1px solid #e1daef;border-radius:14px;margin:6px 0 26px}
#cf-accounts-panel>.section-title{align-items:center;gap:20px;margin-bottom:18px;flex-wrap:wrap}
#cf-accounts-panel h3{margin:0 0 7px}
#cf-accounts-panel .section-title p{margin:0;font-size:14px;color:#77738c}
.cf-account-toolbar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.cf-account-toolbar label{display:grid;gap:6px;min-width:190px;font-size:14px;color:#61567c;font-weight:650}
#cf-accounts-panel button:not(.account-select-trigger):not(.account-select-option){min-height:34px;height:34px;padding:6px 13px;font-size:14px;line-height:20px;border-radius:7px;white-space:nowrap;box-shadow:none;align-self:end}
#cf-accounts-panel .cf-account-card{border-color:#e2ddec;padding:16px 18px}
#cf-accounts-panel .cf-account-card .profile-head{margin-bottom:9px}
#cf-accounts-panel .cf-account-card small{font-size:14px;color:#8490a4}
#cf-accounts-panel .cf-account-card p{font-size:14px;color:#56657c;margin:12px 0}
#cf-accounts-panel .cf-account-actions button[type=button]{background:#f4f6fb;color:#456287;border:1px solid #d8e0ee}
#cf-accounts-panel #cf-account-form:not([hidden]){grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;background:#ffffffa6;padding:18px;border:1px solid #e2ddec;border-radius:10px;align-items:end}
#cf-account-form>label{display:grid;gap:6px;font-size:14px;color:#59667b;min-width:0}
#cf-account-form input:not([type=checkbox]),#cf-account-form select{height:40px;min-height:40px;padding:8px 10px;box-sizing:border-box;border:1px solid #cdd8e8;border-radius:7px}
#cf-account-form .check-label{display:flex;align-items:center;justify-content:flex-start;gap:8px;height:40px;white-space:nowrap}
#cf-account-form .check-label input[type=checkbox]{width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;flex:0 0 16px;margin:0;padding:0;accent-color:#326ee6}
.cf-account-probe-row{display:flex;align-items:center;min-height:40px}
#cf-account-message{margin:0;font-size:14px;color:#6e7b91}
#cf-account-message:empty{display:none}
.cf-category-heading{margin:0 0 14px;font-size:17px;color:#28486d}
#domain-setup-form{grid-template-columns:1fr 1fr;gap:18px;max-width:1100px}
#domain-setup-form>label{display:grid;gap:7px;align-content:start;min-width:0}
#domain-setup-form .category-select-trigger,#domain-setup-form .category-select-trigger:hover,#domain-setup-form .category-select-trigger:focus{height:42px;min-height:42px;background:white;color:#233e60;box-shadow:none}
#domain-setup-form textarea{padding:14px 16px;border:1px solid #ccd8e8;border-radius:9px;background:#fbfcfe;resize:vertical;font-family:inherit;font-size:14px;line-height:1.6;box-sizing:border-box}
#domain-setup-form .setup-account-note{font-size:14px;color:#8290a3;margin-top:-10px}
#manage-cf-account + .account-select-trigger{min-width:200px}
@media(max-width:900px){#cf-accounts-panel #cf-account-form:not([hidden]){grid-template-columns:1fr 1fr}.cf-account-toolbar{width:100%}}
@media(max-width:600px){#cf-accounts-panel #cf-account-form:not([hidden]),#domain-setup-form{grid-template-columns:1fr}.cf-account-toolbar label{flex:1}#cf-accounts-panel{padding:16px}}

/* Account choices and editable, persistent label colors. */
#cf-accounts-panel{background:#e8e0f4;border-color:#d2c3e7;font-size:15px}
#cf-accounts-panel h3{font-size:20px}
#cf-accounts-panel .section-title p{font-size:14px;color:#625475}
#cf-accounts-panel .cf-account-tag{font-size:15px;padding:6px 12px}
#cf-accounts-panel .cf-account-card .tag{font-size:14px}
#cf-accounts-panel .cf-account-card small{font-size:14px;color:#71809a}
#cf-accounts-panel .cf-account-card p{font-size:15px;font-weight:700;color:#334c72}
#cf-accounts-panel .cf-account-toolbar label,#cf-account-form>label,#cf-account-message{font-size:14px}
#cf-account-form input:not([type=checkbox]),#cf-account-form select{font-size:14px}
#cf-accounts-panel button:not(.account-select-trigger):not(.account-select-option){font-size:14px}
#cf-accounts-panel .cf-account-card .cf-account-actions button{background:#216df3;color:#fff;border:1px solid #216df3}
#cf-accounts-panel .cf-account-card .cf-account-actions button:hover{background:#145bd5;border-color:#145bd5}
#cf-accounts-panel .cf-account-toolbar>button{height:42px;min-height:42px;align-self:end}
#cf-account-form .cf-account-color-field{grid-column:1/3;display:grid;gap:8px;font-size:14px;color:#59667b}
#cf-account-color-options{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
#cf-accounts-panel #cf-account-color-options .cf-color-choice{width:32px;height:32px;min-height:32px;padding:0;border-radius:50%;border:2px solid var(--account-fg);color:var(--account-fg);background:var(--account-bg);font-size:19px;line-height:28px}
#cf-account-color-options .cf-color-choice[aria-pressed=true]{outline:2px solid var(--account-fg);outline-offset:3px}
.setup-account-field{position:relative;min-width:0;display:grid;gap:8px}
.setup-account-label{font-size:14px;color:#425a78;font-weight:700}
.account-choice-tags{display:flex;flex-wrap:wrap;gap:12px;padding:12px;border:1px solid #ccd9ed;border-radius:11px;background:#eef3fc}
.account-choice-tags button,.account-choice-tags button:hover{display:inline-flex;align-items:center;gap:7px;min-height:40px;border:2px solid color-mix(in srgb,var(--account-fg) 45%,white);border-radius:24px;background:var(--account-bg);color:var(--account-fg);padding:7px 13px;font-size:15px;font-weight:750;line-height:22px;box-shadow:none}
.account-choice-tags button[aria-checked=true]{border-color:var(--account-fg);outline:2px solid var(--account-fg);outline-offset:2px}
.account-choice-check:empty{display:none}
.account-choice-check{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--account-fg);color:#fff;font-size:14px;line-height:1}
.management-domain-actions{display:grid!important;grid-template-columns:repeat(2,max-content);gap:10px!important;justify-content:end;align-items:stretch}
.management-domain-actions>button{width:100%;margin:0}
.inline-category-choices{display:flex;flex-wrap:wrap;gap:12px;padding:12px;border:1px solid #ccd9ed;border-radius:11px;background:#eef3fc}
.inline-category-choices button{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;min-height:40px;border:1px solid currentColor;border-radius:22px;font-size:15px;font-weight:750;line-height:22px;box-shadow:none}
.inline-category-choices button[aria-checked=true]{outline:2px solid currentColor;outline-offset:2px}
.inline-category-check:empty{display:none}
.inline-category-check{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:20px;border-radius:50%;background:currentColor;font-size:0;line-height:1}
.inline-category-check::after{content:"✓";position:absolute;inset:0;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-family:inherit;font-size:14px;font-style:normal;font-weight:750;line-height:1}
#launch-form .launch-redirect-option{grid-column:1/-1;justify-self:start;margin:0}
#cf-accounts-panel .cf-account-toolbar{display:grid;grid-template-columns:minmax(190px,1fr) auto auto;align-items:end}
#cf-accounts-panel .cf-account-toolbar>label{margin:0;padding:0}
#cf-accounts-panel .cf-account-toolbar>button:not(.account-select-trigger):not(.account-select-option){height:42px;min-height:42px;margin:0;align-self:end;box-sizing:border-box}
@media(max-width:600px){#cf-account-form .cf-account-color-field{grid-column:1/-1}.management-domain-actions{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.account-choice-tags{gap:10px}.account-choice-tags button{font-size:14px}}

/* One account per row, with its domain list expanded directly underneath. */
#cf-accounts-panel .cf-accounts-list{grid-template-columns:minmax(0,1fr)}
#cf-accounts-panel .cf-account-card{display:grid;grid-template-columns:340px minmax(0,1fr) auto;align-items:center;gap:16px 24px}
.cf-account-identity{min-width:0}
#cf-accounts-panel .cf-account-card .profile-head{justify-content:flex-start;gap:14px;flex-wrap:wrap}
#cf-accounts-panel .cf-account-card .profile-head .tag{white-space:nowrap}
#cf-accounts-panel .cf-account-card>.cf-account-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
#cf-accounts-panel .cf-account-domain-panel{grid-column:1/-1;min-width:0;padding:18px;margin-top:4px;border:1px solid #d5e1f3;border-radius:10px;background:#f7faff}
#cf-accounts-panel .cf-account-domain-panel[hidden]{display:none}
#cf-accounts-panel .cf-account-card .cf-account-actions button.cf-domain-open{background:#c9233d;color:white;border-color:#c9233d}
@media(max-width:1150px){#cf-accounts-panel .cf-account-card{grid-template-columns:minmax(0,1fr) auto}#cf-accounts-panel .cf-account-card>.cf-account-actions{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:650px){#cf-accounts-panel .cf-account-card{grid-template-columns:minmax(0,1fr)}#cf-accounts-panel .cf-account-domain-panel{padding:12px}}

#cf-accounts-panel .cf-account-card>#cf-account-form,#cf-accounts-panel .cf-account-card>#cf-access-panel{grid-column:1/-1;width:100%;min-width:0;box-sizing:border-box;margin:4px 0 0}
#cf-accounts-panel .cf-account-card .cf-account-actions button.cf-access-open{background:#c9233d;color:#fff;border-color:#c9233d}

.account-choice-tags .setup-default-account-row,.account-choice-tags .setup-other-account-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;flex-basis:100%;min-width:0}
.account-choice-tags .setup-default-account-row:empty,.account-choice-tags .setup-other-account-row:empty{display:none}
.account-choice-tags .setup-other-account-row button{min-height:30px;padding:3px 9px;font-size:14px;line-height:20px;border-radius:16px;gap:5px}
.account-choice-tags .setup-other-account-row .account-choice-check{width:16px;height:16px;font-size:14px}

#cf-accounts-panel .cf-account-identity{width:max-content;max-width:100%}
#cf-accounts-panel .cf-account-auth-type{margin-left:auto;white-space:nowrap}
#cf-accounts-panel .cf-account-id{display:block;white-space:nowrap;overflow-wrap:normal}
#cf-accounts-panel .cf-setup-visibility{display:inline-flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;font-size:14px;white-space:nowrap;margin:0 4px 0 0;color:#526580}
#cf-accounts-panel .cf-setup-visibility input{width:16px;height:16px;margin:0}

#cf-accounts-panel .cf-account-card>p{white-space:nowrap;margin:0}
#cf-accounts-panel .cf-account-card>.cf-account-actions{align-items:center}
@media(min-width:1151px) and (max-width:1280px){#cf-accounts-panel .cf-account-card{grid-template-columns:minmax(max-content,1fr) max-content}#cf-accounts-panel .cf-account-card>.cf-account-actions{grid-column:1/-1;justify-content:flex-end}}

#cf-accounts-panel .cf-account-card>p{text-align:center;justify-self:stretch}
#cf-accounts-panel .cf-account-card>.cf-account-actions>button{flex-shrink:0;width:88px;min-height:36px;padding:7px 10px;white-space:nowrap}
#cf-accounts-panel .cf-account-card>.cf-account-actions>[data-cf-account-access]{width:118px}
#cf-account-form .cf-account-probe-row[hidden]{display:none}
#cf-accounts-panel #cf-account-cancel{background:#c9233d;color:#fff;border-color:#c9233d}
#cf-accounts-panel #cf-account-cancel:hover{background:#a81d33}
#cf-accounts-panel #cf-access-panel{max-width:100%;overflow:hidden}
#cf-access-panel .section-title>div,#cf-access-panel .cf-access-form>label{min-width:0}
#cf-access-panel .cf-access-form{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,2fr) auto}
#cf-access-panel .cf-access-table-scroll{width:100%;min-width:0;max-width:100%}
@media(max-width:850px){#cf-access-panel .cf-access-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){#cf-access-panel .cf-access-form{grid-template-columns:minmax(0,1fr)}}

#domain-setup-form .inline-category-choices button[aria-checked="false"],#launch-form .inline-category-choices button[aria-checked="false"]{background:#edf0f4;color:#758091;border-color:#d2d8e0;outline:none;box-shadow:none}
#launch-form .launch-default-note{font-size:14px;color:#7a8799;font-weight:400}
:is(#domain-setup-form,#launch-form) .inline-category-choices button.tag-blue[aria-checked="true"]{ background: #dbeafe; color: #1256bd; }
:is(#domain-setup-form,#launch-form) .inline-category-choices button.tag-purple[aria-checked="true"]{ background: #eee3ff; color: #6930b8; }
:is(#domain-setup-form,#launch-form) .inline-category-choices button.tag-red[aria-checked="true"]{ background: #ffe0e0; color: #b3192b; }
:is(#domain-setup-form,#launch-form) .inline-category-choices button.tag-pink[aria-checked="true"]{ background: #ffe0ef; color: #ac1e64; }
:is(#domain-setup-form,#launch-form) .inline-category-choices button.tag-lime[aria-checked="true"]{ background: #e8f8c9; color: #527800; }
:is(#domain-setup-form,#launch-form) .inline-category-choices button.tag-green[aria-checked="true"]{ background: #d9fbe8; color: #087443; }
:is(#domain-setup-form,#launch-form) .inline-category-choices button.tag-orange[aria-checked="true"]{ background: #ffead0; color: #a54800; }
:is(#domain-setup-form,#launch-form) .inline-category-choices button.tag-cyan[aria-checked="true"]{ background: #d8f7f7; color: #08727a; }
:is(#domain-setup-form,#launch-form) .inline-category-choices button.tag-indigo[aria-checked="true"]{ background: #e2e5ff; color: #3d43b5; }
:is(#domain-setup-form,#launch-form) .inline-category-choices button.tag-slate[aria-checked="true"]{ background: #e5eaf1; color: #42526a; }

#setup-cf-account-tags{align-items:center}
#setup-cf-account-tags>button{min-height:40px;padding:7px 13px;font-size:15px;line-height:22px}
#setup-cf-account-tags>button[aria-checked="false"]{background:#edf0f4;color:#758091;border-color:#d2d8e0;outline:none;box-shadow:none}
#setup-cf-account-tags>button[aria-checked="true"]{background:var(--account-bg);color:var(--account-fg);border-color:var(--account-fg)}
#setup-cf-account-tags>.setup-account-divider{align-self:center;flex:0 0 1px;height:30px;background:#b9c7da;margin:0 4px}
