*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;background:#101112;color:#f8f6ef;font:16px/1.5 system-ui,sans-serif}header,main{max-width:1160px;margin:auto;padding:24px 5%}header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #343538;color:#b9b9ba}.brand{display:flex;align-items:center;gap:7px;color:white;font-size:22px;letter-spacing:-1px}.brand i{width:0;height:0;border-top:11px solid transparent;border-bottom:11px solid transparent;border-left:18px solid #ffc93d}.brand em{font-style:normal;color:#ffce50}h1{font-size:clamp(36px,6vw,68px);letter-spacing:-.06em;line-height:1.04;margin:20px 0}h2{letter-spacing:-.04em;margin:14px 0}p,small{color:#c2c2c1}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #4a4b4b;background:#222426;color:white;padding:11px 17px;border-radius:9px}button:hover{border-color:#ffca40}button.primary,.active{background:#ffca40;color:#201b0c;border-color:#ffca40;font-weight:700}nav,.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.row{justify-content:space-between}nav{margin:24px 0}.hero{position:relative;overflow:hidden;background:linear-gradient(115deg,#24221a,#1a1916 70%);border:1px solid #494333;border-radius:20px;padding:clamp(24px,5vw,60px);margin:20px 0}.hero:after{content:"";position:absolute;pointer-events:none;right:-55px;top:-145px;width:290px;height:290px;border:28px solid #e5b53b22;transform:rotate(35deg);border-radius:58px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:13px;margin:18px 0}.card,article,dialog{background:#1b1d1f;border:1px solid #353738;border-radius:14px;padding:20px}.card b{display:block;font-size:35px;letter-spacing:-.055em}.gold{color:#ffcf53}.card button{margin-top:14px}.entry{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;border-bottom:1px solid #353738}.entry:last-child{border:0}input,select{width:100%;background:#101213;border:1px solid #505253;padding:12px;border-radius:7px}label{display:block;margin:13px 0}dialog{width:min(440px,94vw);color:white}dialog::backdrop{background:#000b}.close{float:right;font-size:22px;padding:1px 10px}.note{font-size:14px}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ffe493;outline-offset:2px}@media(max-width:570px){header span{font-size:13px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.card{padding:14px}.card b{font-size:28px}nav{gap:5px}nav button{padding:9px}.hero:after{opacity:.45}}
.brandLogo{width:82px;height:76px;object-fit:contain}header{padding-top:8px;padding-bottom:8px}button:disabled{opacity:.52;cursor:not-allowed}.actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.muted{color:#bfbfc0}.entry{flex-wrap:wrap}.entry small{display:block}.error{color:#ffd08a}.chip{border:1px solid #59534b;border-radius:20px;padding:4px 12px;font-size:.88rem}a{color:#ffce52}dialog::backdrop{backdrop-filter:blur(4px)}h1{font-size:clamp(32px,5vw,58px)}.hero p{max-width:44rem}
.brandLogo{width:155px;height:60px}
textarea#shareDraft{box-sizing:border-box;width:100%;padding:12px;border:1px solid #505253;border-radius:8px;background:#101213;color:inherit;font:inherit;resize:vertical}
.installGuide{max-width:52rem}.installGuide li{padding:.35rem 0}.installGuide ol{padding-left:1.5rem}.guideLinks{display:flex;gap:.8rem 1.4rem;flex-wrap:wrap;margin:1.35rem 0}.shareGuide{align-self:center}.installGuide input{font-family:ui-monospace,monospace}.installGuide p:empty{display:none}
#lineNotes{width:100%;background:#101213;color:inherit;font:inherit;padding:10px;border-radius:7px}
#ticketDescription,#ticketReply{width:100%;padding:10px;background:#101213;color:inherit;font:inherit;border-radius:7px}
.salesControls{display:flex;gap:1rem;flex-wrap:wrap}.salesControls label{min-width:10rem}.salesScroll{overflow-x:auto}.salesDetail{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums;background:#1b1d1f}.salesDetail td,.salesDetail th{padding:.65rem .9rem;text-align:right;white-space:nowrap;border-bottom:1px solid #383a3c}.salesDetail tr>:first-child{text-align:left}.salesDetail td:last-child{color:#ffcf53}.profitChart{width:100%;height:auto;max-height:285px}.profitChart line{stroke:#424447}.profitChart text{fill:#d8d8d8;font:13px system-ui}.profitChart circle{fill:#ffca40}
#brandWord,.brandPreview strong{color:var(--accent-text);font-size:clamp(1.25rem,4vw,2rem);line-height:1.15;overflow-wrap:anywhere}#brandWord{padding:.75rem 1rem .75rem 0}.customBrand header span{flex-shrink:0}.customBrand button.primary,.customBrand .active,.brandPreview span{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.customBrand button:hover,.customBrand .hero{border-color:var(--accent-text)}.customBrand .gold,.customBrand a,.customBrand .salesDetail td:last-child{color:var(--accent-text)}.customBrand :focus-visible{outline-color:var(--accent-text)}.customBrand .hero{background:linear-gradient(115deg,color-mix(in srgb,var(--accent) 12%,#191a1c),#171819)}.customBrand .hero:after{border-color:color-mix(in srgb,var(--accent) 16%,transparent)}.customBrand .profitChart path{stroke:var(--accent-text)}.customBrand .profitChart circle{fill:var(--accent-text)}.brandEditor{max-width:40rem}.brandEditor input[type=color]{height:3rem;width:6rem;padding:4px;cursor:pointer}.brandPreview{display:grid;justify-items:start;gap:.7rem;border:1px solid var(--accent-text);border-radius:12px;padding:1.25rem}.brandPreview span{padding:.35rem .8rem;border-radius:6px;font-weight:650}
.brandPreview img{max-width:100%;width:auto;max-height:90px;object-fit:contain}.customBrand header:has(.brandLogo:not([hidden])){justify-content:flex-start;gap:12px}.customBrand header:has(.brandLogo:not([hidden])) .brandLogo{width:auto;max-width:24%;height:54px}.customBrand header:has(.brandLogo:not([hidden])) span{margin-left:auto}.customBrand header strong{min-width:0}
.languageControl{margin:0 0 0 .6rem;flex:none}.languageControl select{width:auto;padding:6px 9px}header{gap:.6rem;flex-wrap:wrap}header>span{margin-left:auto}@media(max-width:480px){header>span{display:none}}

/* Reseller workspace */
body.panelLayout{background:#0b1422;color:#f2f5fa}
.panelLayout header{max-width:none;background:#0e1929;border-bottom:1px solid #273447;padding:9px clamp(16px,3vw,48px);min-height:70px;gap:18px}
.panelLayout header .languageControl{margin-left:auto}
.panelLayout main{max-width:1680px;padding:0;display:grid;grid-template-columns:212px minmax(0,1fr);min-height:calc(100vh - 80px)}
.panelLayout nav{align-self:start;position:sticky;top:0;max-height:100dvh;overflow:auto;display:grid;align-content:start;gap:4px;margin:0;padding:22px 12px;background:#0e1929;border-right:1px solid #253449}
.panelLayout nav button{display:flex;gap:12px;align-items:center;text-align:left;font-size:14px;border:1px solid transparent;background:none;color:#bac9da;padding:10px 12px;border-radius:8px}
.panelLayout nav button.active{background:#203247;color:var(--accent-text,#ffd05a);border-left:3px solid var(--accent,#ffca40)}
.panelLayout nav button:hover{background:#1d2c3d;color:#fff}
.panelLayout nav svg,.overviewCards svg{width:19px;height:19px;flex:none}
.panelLayout #view{min-width:0;padding:clamp(16px,3vw,46px)}
.panelLayout article{background:#152235;border-color:#2c3c51}
.overviewHeading,.overviewLinks{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.overviewHeading h1{font-size:clamp(28px,3vw,42px);letter-spacing:-.045em;margin:0}
.overviewHeading .actions{margin:0}.overviewHeading button,.overviewLinks button{font-size:14px}
.overviewCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:25px}
.overviewCards article{display:grid;grid-template-columns:24px 1fr;gap:6px 8px;align-items:center;padding:18px;background:linear-gradient(120deg,#1c2e44,#142134)}
.overviewCards svg{color:var(--accent-text,#ffce50)}.overviewCards b{grid-column:1/-1;font-size:clamp(22px,2.5vw,36px);font-variant-numeric:tabular-nums}
.overviewLinks{justify-content:flex-start;margin:10px 0 20px}.overviewLinks button{background:transparent;border-color:#35455b;padding:6px 12px;color:#dce6f3}
.overviewChart,.overviewRecent{margin-top:16px}.overviewChart h2,.overviewRecent h2{font-size:22px;margin:3px 0 12px}.overviewChart .profitChart{display:block;max-height:240px}.overviewChart circle{r:1.8}.overviewRecent .entry{padding:8px 0;border-color:#2c3c51}
@media(max-width:760px){.panelLayout main{display:block}.panelLayout header{flex-wrap:wrap;gap:8px}.panelLayout nav{display:flex;flex-wrap:nowrap;position:static;overflow-x:auto;max-width:100%;padding:9px 12px;border-right:0;border-bottom:1px solid #273447}.panelLayout nav button{white-space:nowrap}.panelLayout #view{padding:16px}.overviewCards{gap:6px}.overviewCards article{display:block;padding:10px}.overviewCards small,.overviewCards b{display:block}.overviewCards small{font-size:12px}.overviewCards b{font-size:clamp(16px,4vw,24px);overflow-wrap:anywhere}.overviewChart,.overviewRecent{padding:14px}}

.clientOnline{color:#72e69b;font-weight:650}

/* Customer directory */
body,body.panelLayout{min-height:100vh;background:linear-gradient(120deg,#071426,#112339);color:#f2f5fa}
header>span{margin-left:0;border-left:1px solid #728195;padding-left:24px;color:#f5f7fa;font-weight:600}
.directoryHeading{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px}
.directoryHeading h1{font-size:clamp(25px,3vw,38px);line-height:1.12;margin:0;letter-spacing:-.045em}
#onlineSummary{display:inline-flex;align-items:center;gap:9px;background:#10351f;border:1px solid #45af69;color:#c1ffca;border-radius:14px;padding:5px 14px;font-weight:650}
#onlineSummary:before,.presenceDot:before{content:"";width:.65em;height:.65em;border-radius:50%;display:inline-block;flex:none;background:#31dc64}
.panelLayout #view>.actions{margin:20px 0 30px}
.panelLayout #view>.actions button{font-weight:650}
#clientSearch{display:grid;grid-template-columns:2.35fr repeat(3,minmax(0,1fr));gap:14px;align-items:end;margin:0 0 24px}
#clientSearch label{min-width:0;margin:0;font-size:14px;color:#e2e9f1;font-weight:650}
#clientSearch input,#clientSearch select{width:100%;height:43px;min-width:0;margin-top:4px;border:1px solid #62738a;border-radius:7px;background:#152436;color:#f1f6fc;padding:8px 10px;font:inherit}
#clientSearch input{padding-left:37px;font-weight:450}#clientSearch input::placeholder{color:#bfcbd9}
.directoryQuery{position:relative}.directoryQuery:before,.directoryQuery:after{content:"";position:absolute;pointer-events:none}.directoryQuery:before{bottom:16px;left:13px;width:10px;height:10px;border:2px solid #bfcbd9;border-radius:50%}.directoryQuery:after{bottom:13px;left:24px;width:6px;height:2px;background:#bfcbd9;transform:rotate(45deg)}
.directoryLayout #clientRows{padding:0;overflow-x:auto;background:#101e30;border:1px solid #42566d;border-radius:12px}
.directoryTable{border-collapse:collapse;width:100%;text-align:left;font-size:15px}.directoryTable thead{background:#20354a}.directoryTable th,.directoryTable td{padding:15px 12px}.directoryTable tbody tr{border-top:1px solid #3b4c61}.directoryTable tbody tr:nth-child(even){background:#132235}.directoryTable small{display:block;color:#bac8d8;font-size:13px;font-weight:400;margin-top:3px}.clientIdentity{display:flex;align-items:center;gap:10px;overflow-wrap:anywhere}.clientAvatar{display:grid;place-items:center;flex:none;width:36px;height:36px;background:#7159a9;border-radius:10px;color:white;font-size:19px}.tone1{background:#876819}.tone2{background:#317c81}.tone3{background:#476b9a}.tone4{background:#995970}
.presenceDot{display:inline-flex;align-items:center;gap:7px;font-weight:650;color:#bbcad9}.presenceDot:before{background:#8999ac}.presenceDot.clientOnline{color:#76ee96}.presenceDot.clientOnline:before{background:#37df69}
.followTag,.directoryActions button{border:1px solid #627386;background:#17273a;border-radius:6px;color:#f1f5fa;padding:5px 10px;font-size:14px;display:inline-block}.directoryActions{display:flex;align-items:center;gap:5px}.directoryActions button{white-space:nowrap}.directoryActions button:first-child[id^=remindClient]:before{content:'✆';color:#70dc91;margin-right:5px}.directoryActions button[id^=renewClient]:before{content:'⟳';margin-right:5px}.directoryPager,.directoryEmpty{margin:0;padding:15px}
@media(min-width:761px){.directoryLayout main{grid-template-columns:72px minmax(0,1fr)}.directoryLayout nav{padding:17px 6px}.directoryLayout nav button{font-size:0;gap:0;justify-content:center;min-height:42px}.panelLayout nav svg{width:22px;height:22px}.panelLayout #view{padding:clamp(16px,2vw,30px)}}
@media(max-width:1050px){.directoryTable td,.directoryTable th{padding:12px 8px}}
@media(max-width:760px){#clientSearch{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.directoryQuery{grid-column:1/-1}.directoryHeading{gap:10px}.directoryTable,.directoryTable tbody{display:block}.directoryTable thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.directoryTable tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px}.directoryTable td,.directoryTable th{padding:0;min-width:0;overflow-wrap:anywhere}.directoryTable td[data-label]:before{content:attr(data-label);display:block;color:#aebfd2;font-size:13px}.directoryTable td:last-child{grid-column:1/-1}header>span{padding-left:10px}}

/* Shared surfaces and controls use the directory palette throughout the panel. */
:root {
  --panel-surface: #101e30;
  --panel-row: #142537;
  --panel-header: #20354a;
  --panel-border: #40566d;
  --panel-muted: #bac8d8;
  --panel-control: #17273a;
}
body > header {
  max-width: none;
  min-height: 70px;
  padding: 9px clamp(16px,3vw,48px);
  justify-content: flex-start;
  gap: 18px;
  background: #0e1929;
  border-color: #273447;
}
header .languageControl {margin-left:auto}
.panelLayout #view > h1, .overviewHeading h1, .hero h1 {
  margin: 0 0 16px;
  font-size: clamp(25px,3vw,38px);
  letter-spacing: -.045em;
  line-height: 1.12;
}
.overviewHeading h1 {margin:0}
#view > h2 {margin:28px 0 10px;font-size:clamp(21px,2.4vw,29px)}
#view > h1 + p {margin:0 0 19px}
p, small, .muted {color:var(--panel-muted)}
article, .panelLayout article, dialog {
  border-color: var(--panel-border);
  border-radius: 12px;
  background: var(--panel-surface);
}
button:not(.active):not(.primary):not(nav button) {
  background: var(--panel-control);
  border-color: #60748a;
  color: #f1f5fa;
}
button.primary {background:var(--accent,#ffca40);border-color:var(--accent,#ffca40);color:var(--on-accent,#201b0c)}
button:not(:disabled):hover {border-color:var(--accent-text,#ffce50)}
.actions button, .card button {font-weight:600}
.actions:empty {display:none}
.entry {border-color:#36495e;overflow-wrap:anywhere}
.entry > div {min-width:0}
article:has(> .entry) {padding:0}
article > .entry {margin:0;padding:13px 18px}
article > .entry:nth-child(even) {background:var(--panel-row)}
article:has(> .entry) > :not(.entry) {margin:14px 18px}
.overviewRecent .entry {padding:12px 0}
.card,.panelLayout .card {background:linear-gradient(125deg,#203349,#142235);min-width:0}
.card b {font-size:clamp(24px,3vw,36px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.grid:has([id^="pack"]) {grid-template-columns:repeat(3,minmax(0,1fr))}
.card:has([id^="pack"]) {display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.card:has([id^="pack"]) br {display:none}
.card:has([id^="pack"]) button {margin-top:auto}
.card:has([id^="pack"]) .gold {margin-bottom:9px}
.card:has([id^="pack"]) p {margin:0 0 12px}
label {color:#dfebf5;font-weight:550}
input:not([type=checkbox]):not([type=radio]),select,textarea,
textarea:is(#lineNotes,#ticketDescription,#ticketReply,#shareDraft) {
  max-width:100%;border:1px solid #60748a;border-radius:7px;
  background:#152436;color:#f1f6fc;font:inherit;
}
textarea {width:100%;padding:10px;resize:vertical}
label > :is(input,select,textarea) {margin-top:4px}
label > input:is([type=checkbox],[type=radio]) {width:auto;accent-color:var(--accent,#ffca40)}
#view > label, #tracking > label {max-width:42rem}
.salesControls {align-items:end;gap:14px;margin:0 0 18px}
.salesControls label {margin:0}
.salesScroll {max-width:100%;border:1px solid var(--panel-border);border-radius:10px}
.salesDetail {background:var(--panel-surface)}
.salesDetail thead {background:var(--panel-header)}
.salesDetail tbody tr:nth-child(even) {background:var(--panel-row)}
.salesDetail td,.salesDetail th {border-color:#36495e}
.chip {border-color:#627386;background:var(--panel-control)}
dialog {max-height:90dvh;padding:clamp(18px,3vw,28px);box-shadow:0 18px 64px #0005}
dialog h2:first-child {margin-top:0;padding-right:35px}
.hero,.customBrand .hero {background:linear-gradient(130deg,#20354a,#101e30);border-color:var(--panel-border);border-radius:14px}
.hero:after {display:none}
main:not(:has(nav)) > .hero:has(form) {max-width:35rem;margin:clamp(20px,6vh,70px) auto;padding:clamp(20px,4vw,40px)}
.hero small + h1 {margin-top:10px}
@media(max-width:760px) {
  .grid:has([id^="pack"]) {grid-template-columns:repeat(2,minmax(0,1fr))}
  .salesControls label {flex:1 1 140px;min-width:0}
  article > .entry {padding:11px 14px}
}
@media(max-width:400px) {
  .card {padding:12px}
  .actions {gap:6px}
  dialog {width:95vw}
}

/* Management and settings pages */
.deskTitle{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:15px}
.deskTitle h1{font-size:clamp(25px,3vw,38px);margin:0}
.deskGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:18px;align-items:start}
.deskGrid>.wide{grid-column:1/-1}
.deskBox,.accountDesk>section,.teamDesk>article{background:var(--panel-surface);border:1px solid var(--panel-border);border-radius:14px;padding:clamp(12px,1.4vw,20px);min-width:0}
.deskBox h2,.accountDesk h2,.teamDesk h2,.appOffer h2{font-size:clamp(19px,2vw,25px);margin:0 0 14px;line-height:1.2}
.deskBox h2 em{display:inline-block;padding:3px 9px;font:600 .85rem system-ui;border-radius:12px;vertical-align:middle;background:#223a50;color:#cbd9e9}
.deskBox>article{border:0;border-top:1px solid #32475b;background:transparent;border-radius:0;padding:16px 0 0}
.deskBox>article:has(.entry){padding:0}
.deskBox>article>.entry{padding:12px 4px}
.deskBox>article>.entry:nth-child(even){background:transparent}
.teamDesk{display:grid;gap:18px}.deskEmpty{display:grid;justify-items:center;align-content:center;gap:12px;min-height:82px;text-align:center;color:var(--panel-muted)}.deskEmpty p,.appOffer p{margin:0}
.deskEmpty svg,.appGlyph svg,.brandSample svg{width:24px;height:24px}
.deskEmpty svg,.appGlyph{color:var(--accent-text,#ffce50)}
.appOffer{display:flex;align-items:center;gap:18px;border:1px solid #42566b;background:linear-gradient(105deg,#203449,#102033);border-radius:15px;padding:clamp(14px,2vw,24px);margin-bottom:22px}
.appOffer h2{margin-bottom:6px}.appGlyph{display:grid;place-items:center;border-radius:14px;width:54px;height:64px;flex:none;background:#132338}.appGlyph svg{width:34px;height:34px}
.offerPrice{margin-left:auto;display:grid;text-align:right}.offerPrice strong{font-size:36px;color:var(--accent-text,#ffce50)}.offerPrice s{color:var(--panel-muted)}
.salesTitle .salesControls{margin:0}.salesMetrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:16px 0 22px}
.salesMetrics .card{padding:clamp(12px,1.6vw,22px)}.salesMetrics .card:nth-child(3){border-top:3px solid var(--accent,#ffca40)}
.brandEditor{max-width:none}.brandEditor form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:16px 32px}.brandFields{min-width:0}.brandFields label{margin:0 0 18px}.brandFields input[type=color]{display:block}.brandPreview{align-self:start;border:1px solid #40566d;border-top:4px solid var(--accent);background:linear-gradient(145deg,#172a40,#0b1624);padding:24px;align-content:start;gap:18px;min-height:150px}.brandPreview strong{font-size:28px}.brandSample{display:flex;align-items:center;gap:8px;color:var(--accent-text)}.brandEditor .actions{margin:0}.brandEditor [role=status]{margin:0}
@media(min-width:1150px){.accountDesk,.adminDesk{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.salesMetrics{grid-template-columns:repeat(2,minmax(0,1fr))}.salesMetrics .card:nth-child(3){grid-column:1/-1;grid-row:1}.brandEditor form{grid-template-columns:1fr}.appOffer{flex-wrap:wrap}.appGlyph{display:none}.offerPrice{display:flex;align-items:center;gap:10px}.deskGrid{grid-template-columns:1fr}.salesTitle .salesControls{width:100%}}

.panelLayout header {min-height:56px;padding-top:5px;padding-bottom:5px}
.panelLayout header .brandLogo {height:46px;width:126px}
.panelLayout #view,.panelLayout dialog {overflow-wrap:anywhere}
#view :is(form,label,input,select,textarea,article,section,.actions,.grid,.entry),dialog :is(form,label,input,select,textarea,.actions){min-width:0}
#view button,dialog button {max-width:100%;overflow-wrap:anywhere}
#view img,dialog img {max-width:100%;object-fit:contain}
.panelLayout #view > h2 {margin-top:18px}
.deskGrid,.teamDesk {gap:12px}
.brandEditor form {gap:12px 20px}
.brandFields label {margin-bottom:12px}
.salesDetail th,.salesDetail td {padding:8px 10px}
.directoryTable {table-layout:fixed}
.directoryTable th,.directoryTable td {overflow-wrap:anywhere;padding:10px 8px}
.directoryTable thead th:last-child {width:16.5rem}
@media(min-width:761px){
  .directoryTable{font-size:14px;line-height:1.3}
  .directoryTable th,.directoryTable td{padding:7px 6px}
  .directoryTable thead th:nth-child(4){width:13%}
  .directoryTable small{font-size:12px;margin-top:2px}
  .clientIdentity{gap:7px}
  .clientAvatar{width:29px;height:29px;border-radius:8px;font-size:16px}
  .directoryActions button{font-size:13px;padding:5px 6px}
  .followTag{padding:4px 7px;font-size:13px}
}
.directoryActions {flex-wrap:nowrap;gap:3px}
.directoryActions button {white-space:nowrap;flex:none}
@media(min-width:761px){
  .panelLayout nav{gap:2px;padding-block:8px}
  .panelLayout nav button{min-height:36px;padding:7px}
  .panelLayout nav svg{width:20px;height:20px}
}
@media(max-width:760px){
  .panelLayout #view {padding:14px 12px}
  #view button,dialog button {padding:8px 10px}
  #view :is(input,select,textarea),dialog :is(input,select,textarea){font-size:16px}
  .directoryTable td,.directoryTable th {padding:0}
  .directoryTable tbody tr {grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:7px}
  .deskGrid,.brandEditor form,.teamDesk {grid-template-columns:minmax(0,1fr)}
  .deskTitle,.directoryHeading {gap:8px}
  .salesControls {display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:8px}
  .salesControls label {min-width:0}
  #view .actions>button {white-space:normal}
}
@media(max-width:480px){
  #clientSearch{grid-template-columns:repeat(2,minmax(0,1fr))}
  #clientSearch label:first-child,#clientSearch label:last-child{grid-column:1/-1}
  .panelLayout .overviewCards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .overviewCards article:first-child{grid-column:1/-1}
  .grid:has([id^="pack"]) .card b {font-size:clamp(18px,5.3vw,24px)}
  .appOffer {gap:8px}
  dialog {max-height:calc(100dvh - 24px);padding:14px;overflow:auto}
}

.hasBrandBackground body,.hasBrandBackground body.panelLayout,
.brandPreview.hasBrandBackground {background:var(--brand-background);color:var(--background-ink)}
html.hasBrandBackground :is(article,dialog,.deskBox,.accountDesk>section,.teamDesk>article,.hero,.appOffer,nav,header,.brandPreview:not(.hasBrandBackground)) {color:#f2f5fa}
html.hasBrandBackground #view > :is(p,label),html.hasBrandBackground #clientSearch label,
html.hasBrandBackground .salesControls label,html.hasBrandBackground #view > section[aria-live] > p,
html.hasBrandBackground #view > p a,.brandPreview.hasBrandBackground :is(small,strong) {color:var(--background-ink)}
.brandPreview.hasBrandBackground .brandSample svg {color:var(--background-ink)}
#defaultBackground {margin:-4px 0 14px}

.appChoices {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:14px;margin-bottom:18px}
.appChoices .appOffer {margin:0}
.appChoices .appOffer:first-child strong {display:block;font-size:clamp(22px,3vw,32px);margin:8px 0}

.appChoices .appOffer{min-width:0;flex-wrap:wrap;gap:12px}
.appChoices .appGlyph + div{flex:1 1 12rem;min-width:0}
.appChoices .offerPrice{flex:0 0 auto;width:max-content}
.appChoices .offerPrice :is(s,strong),.appChoices .appOffer:first-child strong{white-space:nowrap;overflow-wrap:normal;word-break:normal}
.installFields{min-width:0;margin:18px 0 0;padding:12px;border:1px solid var(--panel-border);border-radius:8px}
.installFields legend{padding:0 6px;font-weight:650}
@media(max-width:760px){#view .directoryActions button{padding:7px 6px;font-size:13px}}

/* Shared identity on the panel and its sign-in screens. */
body.accessLayout{min-height:100svh;background:var(--brand-background,#060d20);color:white}
.accessLayout header{position:relative;z-index:1;justify-content:flex-end;border:0;background:transparent;padding:12px 20px}
.accessLayout header :is(.brandLogo,#brandWord,span){display:none}
.accessLayout main{max-width:none;padding:24px 16px 48px;min-height:calc(100svh - 74px);display:grid;place-items:center;position:relative;isolation:isolate;overflow:hidden}
.accessLayout main:before{content:"";position:absolute;z-index:-1;width:155%;height:170px;top:-125px;left:-24%;border-bottom:2px solid var(--accent,#ffca40);border-radius:52%;transform:rotate(-11deg);box-shadow:0 24px 0 -23px var(--accent,#ffca40),0 66px 0 -65px var(--accent,#ffca40);opacity:.64}
.accessLayout .accessCard{width:min(100%,440px);margin:0;padding:clamp(22px,5vw,36px);border:1px solid #425269;border-radius:20px;background:#0b1528;background:color-mix(in srgb,var(--brand-background,#0b1528) 46%,#0b1528);box-shadow:0 18px 54px #0004;text-align:left;color:#f6f7fa}
.accessMark{display:grid;place-items:center;min-height:40px;margin-bottom:22px;font-size:1.55rem;font-weight:750;color:var(--accent-text,#ffca40);overflow-wrap:anywhere}
.accessMark img{display:block;width:auto;max-width:min(125px,52%);height:42px;object-fit:contain}
.accessCard h1{font-size:clamp(1.45rem,5.2vw,1.95rem);line-height:1.14;margin:0 0 24px;letter-spacing:-.035em;color:white}
.accessCard label{display:block;margin:0 0 16px;color:#f6f7fa}
.accessCard input{display:block;width:100%;min-height:46px;margin:6px 0 0;background:#081222;color:white;border:1px solid #51617a;border-radius:9px;font-size:1rem}
.accessPassword{position:relative;display:block}.accessPassword input{padding-right:48px}.accessPassword button{display:grid;place-items:center;position:absolute;right:0;top:0;bottom:0;width:44px;background:transparent;color:#bbc7d9;border:0}
.accessCard button.primary{width:100%;min-height:46px;background:var(--accent,#ffca40);color:var(--on-accent,#191408);margin:4px 0 0}
.accessCard [role=status]:empty{display:none}.accessCard>a{display:inline-block;margin-top:16px;font-size:.9rem}
.brandAccessLink{max-width:650px;margin-top:16px;padding:16px;border:1px solid #40566d;border-radius:12px}.brandAccessLink input{width:100%}
html.hasBrandBackground .panelLayout :is(header,nav,article,dialog,.deskBox,.card,.appOffer,.hero,.clientTable,.clientRow){background:color-mix(in srgb,var(--brand-background) 30%,#0b1729)}
html.hasBrandBackground .panelLayout :is(input,select,textarea){background:color-mix(in srgb,var(--brand-background) 32%,#07101c);color:white}
html.customBrand .panelLayout :is(button.primary,.primary,.brandSample span){background:var(--accent);color:var(--on-accent)}

#creditPicker fieldset{min-width:0;margin:0 0 18px;padding:0;border:0}
#creditPicker legend{margin:0 0 12px}
.creditChoices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,148px),1fr));gap:10px}
.creditChoice{position:relative;display:grid;align-content:start;gap:5px;margin:0;padding:14px;background:color-mix(in srgb,var(--brand-background,#192b41) 30%,#102033);color:#f6f8ff;border:2px solid #526275;border-radius:12px;cursor:pointer}
.creditChoice input{position:absolute;width:1px;height:1px;clip-path:inset(50%)}
.creditChoice:has(input:checked){border-color:var(--accent,#ffca40)}
.creditChoice:focus-within{outline:2px solid white;outline-offset:2px}
.creditChoice b{font-size:clamp(1.25rem,4vw,1.7rem);white-space:nowrap;color:var(--accent-text,#ffca40)}
.creditChoice span{font-size:.9rem}

dialog:has(.renewSheet){width:min(94vw,32rem);padding:clamp(14px,4vw,24px);background:color-mix(in srgb,var(--brand-background,#081323) 30%,#0b1627);color:#f5f7fa}
.renewBrand{text-align:center;color:var(--accent-text,#ffca40);font-weight:bold}.renewBrand img{height:36px;width:auto;max-width:140px;object-fit:contain}
.renewSheet h2{margin:12px 0 14px;font-size:1.55rem}.renewSheet section{border:1px solid #425570;border-radius:14px;margin-bottom:12px;overflow:hidden}.renewSheet h3{margin:0;padding:10px 14px;background:#1e3047;font-size:1.05rem}
.renewRow{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;margin:0 14px;padding:9px 0;border-top:1px solid #33475f;font-size:.93rem}.renewRow strong{max-width:42vw;overflow-wrap:anywhere}.renewIcon{width:34px;height:34px;padding:6px;display:grid;place-items:center}.renewIcon svg{width:18px;height:18px}.renewSheet label{display:block;margin:10px 14px}.renewSheet select{width:100%;margin-top:4px}.renewNext strong{color:var(--accent-text,#ffca40)}.renewSheet button.primary{width:100%}.renewSheet [role=status]:empty{display:none}
