.customer-header { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:25px max(28px,calc((100% - 1240px)/2)); border-bottom:1px solid var(--line); }
.customer-header nav { display:flex; align-items:center; gap:25px; font-size:14px; }
.customer-main { max-width:1180px; margin:auto; padding:28px 28px 40px; min-height:calc(100vh - 170px); }
.eyebrow { color:var(--accent-text); font-size:11px; letter-spacing:2px; font-weight:700; }
.customer-heading { display:flex; justify-content:space-between; align-items:center; gap:24px; }
.customer-heading h1 { font-size:28px; letter-spacing:normal; margin:0 0 5px; }
.customer-heading p { max-width:660px; font-size:15px; }
.customer-heading > .button { flex-shrink:0; }
.customer-layout { display:grid; grid-template-columns:1.15fr 1fr; gap:22px; }
.customer-panel { border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); padding:24px; min-width:0; }
.customer-panel h2 { font-size:20px; letter-spacing:normal; }
.customer-panel h3 { font-size:16px; margin:0 0 10px; }
.customer-section-title { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; margin-bottom:25px; }
.customer-section-title > svg { color:var(--accent-text); margin-top:3px; }
.customer-section-title p { font-size:13px; margin-top:6px; }
.customer-form { display:grid; gap:9px; }
.customer-form[hidden], #contact-email [hidden], [data-customer-view][hidden] { display:none !important; }
#contact-email { margin-bottom:0; }
#contact-email .customer-form { max-width:540px; margin-bottom:16px; }
#contact-email-status { overflow-wrap:anywhere; }
.customer-form label,.customer-access-choice label { font-size:13px; color:var(--ink); font-weight:600; }
.customer-form input,.customer-form select,.customer-form textarea,.customer-access-choice select { min-height:46px; width:100%; min-width:0; background:var(--bg); border:1px solid var(--line); color:var(--ink); border-radius:7px; padding:10px 12px; }
.customer-form textarea { resize:vertical; font:inherit; }
.customer-form label:not(:first-child) { margin-top:8px; }
.customer-form .button { justify-self:start; margin-top:8px; }
.customer-hint { font-size:12px; line-height:1.6; }
#customer-create { margin-top:20px; }
.customer-profile { padding:16px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.customer-profile:first-child { padding-top:0; }
.customer-profile:last-child { border-bottom:0; padding-bottom:0; }
.customer-profile strong { font-size:16px; }
.customer-reference { display:flex; align-items:center; flex-wrap:wrap; gap:5px 9px; margin:6px 0 0; font-size:11px; color:var(--faint); }
.customer-reference code { font-size:11px; user-select:text; overflow-wrap:anywhere; }
.customer-copy { border:0; border-radius:4px; padding:4px 7px; background:transparent; color:var(--muted); font:inherit; cursor:pointer; min-height:32px; }
.customer-copy:hover { color:var(--ink); background:var(--surface-2); }
.customer-copy:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.customer-copy-status { color:var(--muted); }
.customer-empty { padding:15px 0; font-size:14px; }
#customer-directory-status { margin-top:18px; }
.customer-access { margin-top:22px; }
.customer-access-heading { display:flex; justify-content:space-between; align-items:center; gap:28px; margin-bottom:25px; }
.customer-access-heading h2 { margin:10px 0; font-size:27px; }
.customer-access-choice { display:grid; gap:7px; max-width:320px; width:100%; }
.customer-bot { display:flex; align-items:flex-start; gap:16px; padding:16px 18px; border-radius:8px; background:var(--surface-2); margin-bottom:20px; }
.customer-bot span { color:var(--accent-text); }
.customer-bot p { font-size:13px; }
.customer-module-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.customer-module { border:1px solid var(--line); border-radius:9px; padding:20px; }
.customer-module-title { display:flex; gap:12px; justify-content:space-between; align-items:center; margin-bottom:14px; }
.customer-module h3 { margin:0; }
.customer-chip { font-size:11px; line-height:1.5; padding:4px 9px; border-radius:20px; color:var(--muted); background:var(--surface-2); white-space:nowrap; }
.customer-chip.available { color:var(--success); background:var(--success-soft); }
.customer-feature { padding:10px 0; border-top:1px solid var(--line); font-size:13px; }
.customer-feature > div { display:flex; justify-content:space-between; gap:15px; }
.customer-feature p { font-size:12px; margin-top:4px; }
.customer-feature .allowed { color:var(--success); }
.customer-scope { margin:22px 0 0; font-size:12px; max-width:900px; }
#customer-feedback:not(:empty) { padding:13px 17px; border:1px solid var(--line); border-radius:8px; background:var(--accent-soft); margin:20px 0; overflow-wrap:anywhere; }
#customer-feedback[data-error='true'] { color:var(--danger); border-color:var(--danger); }
.customer-login { margin-top:30px; display:grid; gap:18px; justify-items:start; }
.customer-footer { text-align:center; border-top:1px solid var(--line); padding:25px; color:var(--faint); font-size:12px; }
.customer-view-nav { display:flex; flex-wrap:wrap; gap:6px; border-bottom:1px solid var(--line); padding-bottom:10px; margin:20px 0; }
.customer-view-nav a { display:flex; align-items:center; min-height:44px; padding:10px 14px; border-radius:8px; font-size:14px; color:var(--muted); }
.customer-view-nav a[aria-current='page'] { color:var(--accent-text); background:var(--accent-soft); }
.customer-view-nav a:hover { color:var(--ink); background:var(--surface-2); }
.customer-task { max-width:760px; }
.customer-task > p { margin:10px 0 22px; font-size:14px; }
.customer-actions { display:flex; gap:10px; flex-wrap:wrap; }
.customer-workspace .customer-main { max-width:none; margin:0; min-height:calc(100vh - 84px); width:100%; }
.customer-workspace .customer-heading > a { display:none; }
.customer-identity { display:flex; align-items:center; gap:16px; padding:22px 24px; margin-bottom:20px; border:1px solid var(--line); border-radius:var(--radius); background:linear-gradient(105deg,var(--accent-soft),var(--surface) 75%); }
.customer-discord-initial { display:grid; place-items:center; flex:none; width:56px; height:56px; border:1px solid var(--line); border-radius:50%; color:var(--accent-text); background:var(--surface-2); font-size:24px; font-weight:700; text-transform:uppercase; }
.customer-identity > div { min-width:0; }
.customer-identity h2 { font-size:23px; line-height:1.3; margin:0 0 4px; letter-spacing:normal; overflow-wrap:anywhere; }
.customer-identity p { font-size:13px; margin:0; }
.customer-connected { display:inline-flex; align-items:center; gap:7px; flex-shrink:0; margin-left:auto; color:var(--success); background:var(--success-soft); border-radius:20px; padding:5px 10px; font-size:12px; }
.customer-connected > span { width:6px; height:6px; border-radius:50%; background:currentColor; }
.customer-account-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:20px; align-items:start; }
.customer-settings,.customer-workspace-links { padding:0; overflow:hidden; }
.customer-panel-heading { padding:20px 22px 16px; border-bottom:1px solid var(--line); }
.customer-panel .customer-panel-heading h2 { margin:0; font-size:17px; }
.customer-panel-heading p { font-size:12px; margin:4px 0 0; }
.customer-setting-row { display:grid; grid-template-columns:20px minmax(0,1fr); align-items:start; gap:8px 12px; padding:18px 22px; border-bottom:1px solid var(--line); }
.customer-setting-row:last-child { border:0; }
.customer-setting-row > svg { color:var(--accent-text); margin-top:2px; }
.customer-setting-row h3 { margin:0 0 4px; font-size:14px; font-weight:600; }
.customer-setting-row p { margin:0; font-size:13px; overflow-wrap:anywhere; }
.customer-setting-row > a { grid-column:2; display:inline-flex; align-items:center; gap:8px; justify-self:start; min-height:36px; color:var(--accent-text); font-size:13px; }
.customer-workspace-link { display:flex; align-items:center; gap:13px; padding:17px 22px; min-height:80px; border-bottom:1px solid var(--line); }
.customer-workspace-link:last-child { border:0; }
.customer-workspace-link > svg:first-child { color:var(--accent-text); }
.customer-workspace-link > svg:last-child { width:16px; height:16px; margin-left:auto; color:var(--muted); }
.customer-workspace-link > div { min-width:0; }
.customer-workspace-link strong { font-size:14px; font-weight:600; }
.customer-workspace-link p { margin:3px 0 0; font-size:12px; overflow-wrap:anywhere; }
.customer-workspace-link:hover { background:var(--surface-2); }
.customer-technical-link { margin:16px 0 0; font-size:12px; }
.customer-technical-link a { display:inline-flex; align-items:center; gap:8px; min-height:36px; color:var(--muted); }
.customer-complimentary { margin-top:16px; font-size:13px; }
.customer-complimentary > p { margin:0 0 8px; }
.customer-assignment-list { list-style:none; padding:0; margin:0; }
.customer-assignment-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid var(--line); font-size:13px; }
.customer-assignment-row > span { min-width:0; overflow-wrap:anywhere; }
.customer-assignment-row .button { flex:none; }
.customer-assignment-context { display:grid; gap:4px; }
.customer-assignment-context strong { font-size:16px; }
.customer-assignment-context > span { color:var(--muted); font-size:12px; }
#customer-unlink-form { gap:0; }
#customer-unlink-form .dialog-body { display:grid; gap:10px; }
#customer-unlink-form .dialog-body p { margin:0 0 5px; }
#customer-unlink-form .dialog-actions .button { margin-top:0; }
#customer-remove-status:empty { display:none; }
#customer-remove-status[role='alert'] { color:var(--danger); }
.customer-actions { margin-bottom:20px; }
#contact-email-code { max-width:240px; font-size:20px; letter-spacing:0.15em; }
#contact-email-verify { border-top:1px solid var(--line); padding-top:20px; }
.customer-back a { min-height:44px; display:inline-flex; align-items:center; }
.customer-task > .customer-back { margin:0 0 16px; }
.customer-view-nav a:focus-visible,.customer-setting-row a:focus-visible,.customer-workspace-link:focus-visible,.customer-technical-link a:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media(max-width:760px) {
  .customer-header { padding:20px; align-items:flex-start; gap:15px; }
  .customer-header .brand { font-size:20px; }
  .customer-header .brand img { width:30px; height:30px; }
  .customer-header nav { gap:12px; flex-wrap:wrap; justify-content:flex-end; font-size:12px; }
  .customer-header nav a { max-width:100px; }
  .customer-main { padding:34px 20px; }
  .customer-layout,.customer-module-grid { grid-template-columns:minmax(0,1fr); }
  .customer-account-grid { grid-template-columns:minmax(0,1fr); }
  .customer-heading { align-items:flex-start; flex-direction:column; gap:16px; }
  .customer-section-title { flex-direction:column; }
  .customer-panel { padding:21px; }
  .customer-settings,.customer-workspace-links { padding:0; }
  .customer-identity { padding:18px; gap:12px; flex-wrap:wrap; }
  .customer-discord-initial { width:48px; height:48px; font-size:21px; }
  .customer-identity > div { flex:1; }
  .customer-connected { margin-left:60px; }
  .customer-setting-row > a,.customer-technical-link a { min-height:44px; }
  .customer-access-heading { flex-direction:column; align-items:stretch; gap:20px; }
  .customer-access-choice { max-width:none; }
  .customer-bot { flex-direction:column; gap:5px; }
  .customer-feature > div { flex-wrap:wrap; gap:4px 10px; }
  .customer-module-title { flex-wrap:wrap; }
  .customer-assignment-row { align-items:flex-start; flex-direction:column; gap:8px; }
  .customer-copy { min-height:44px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .button { transition:none; } }
