/* CT Sales V17 · HubSpot-only interface · Central Telecoms brand */
:root{--navy:#0E263F;--orange:#F47B20;--cyan:#00B4ED;--muted:#62788A;--border:#DCE5EB}
html,body{background:#fff}body{font:15px 'Source Sans 3','Segoe UI',sans-serif;color:var(--navy)}
.content{width:min(100%,960px);padding:24px 18px 130px;margin:auto;min-height:calc(100dvh - 160px)}
.demo-label{background:#EAF9F0;border:1px solid #BFE0CA;color:#18704A;font-size:10px;font-weight:900;letter-spacing:.05em;border-radius:6px;padding:9px 10px}
.demo-label.disconnected{color:#795a24;background:#fff6e8;border-color:#f2d8ad}
button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.53;cursor:wait}
.ct-page{max-width:900px;margin:auto}.ct-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:0 0 21px}
.ct-eyebrow{display:block;font-weight:900;color:#bf651e;text-transform:uppercase;letter-spacing:.12em;font-size:11px;margin-bottom:5px}
.ct-head h1{font:800 29px/1.18 Poppins,'Segoe UI',sans-serif;letter-spacing:-.05em;margin:0 0 7px}.ct-head p{color:#536d80;font-size:14px;line-height:1.5;margin:0}
.ct-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border:1px solid #CBD9E3;border-radius:9px;padding:10px 14px;color:#0E263F;background:white;font-size:14px;font-weight:800;text-decoration:none}
.ct-btn.primary{background:#F47B20;border-color:#F47B20;color:#0E263F}.ct-btn.dark{background:#0E263F;color:white;border-color:#0E263F}.ct-btn.subtle{background:#EEF6FA;border-color:#D8E8F1}.ct-btn.danger{border-color:#E6C7C2;color:#AF4333;background:#fff8f6}
.ct-btn:focus-visible,.ct-record:focus-visible,.ct-input:focus-visible{outline:3px solid #F6B884;outline-offset:2px}.ct-btn.full{width:100%}
.ct-toolbar{display:flex;align-items:stretch;gap:9px;margin:14px 0 9px}.ct-toolbar form{display:flex;flex:1;align-items:stretch;gap:8px;min-width:0}
.ct-input,.ct-select,.ct-textarea{border:1px solid #B9CBD6;color:var(--navy);border-radius:9px;background:white;min-height:44px;padding:10px 12px;width:100%;font-size:15px;min-width:0}
.ct-textarea{min-height:105px;resize:vertical}.ct-toolbar .ct-input{flex:1}.ct-notice{background:#F1F7FA;border-left:4px solid #00B4ED;border-radius:9px;padding:13px 15px;color:#36586F;line-height:1.5;font-size:14px;margin:14px 0}
.ct-notice.warn{background:#FFF6E9;border-color:#F47B20;color:#7B541D}.ct-notice.error{background:#FFF0EE;border-color:#C84036;color:#9B332B}.ct-notice.good{background:#EBF8F1;border-color:#22A269;color:#28644D}
.ct-hero{background:#0E263F;color:#fff;border-radius:17px;padding:22px;position:relative;overflow:hidden}.ct-hero:before{content:'';position:absolute;right:-176px;top:-92px;width:260px;height:260px;border-radius:50%;border:46px solid #F47B20;opacity:.92}.ct-hero>*{position:relative}.ct-hero h2{font:800 25px/1.2 Poppins,sans-serif;margin:5px 0 10px;max-width:430px}.ct-hero p{color:#DCE9F0;font-size:14px;max-width:430px;line-height:1.5}.ct-hero .ct-btn{margin-top:10px}
.ct-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:15px 0 25px}.ct-stat{padding:17px 10px;border-radius:12px;text-align:center;background:#FFF0E4}.ct-stat:nth-child(2){background:#E7F7FD}.ct-stat:nth-child(3){background:#E9F6EF}.ct-stat strong{display:block;font:800 28px Poppins,sans-serif}.ct-stat small{font-size:12px;color:#526B7A}
.ct-section-title{font:800 16px Poppins,sans-serif;margin:22px 0 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.ct-section-title small{font:500 12px 'Source Sans 3',sans-serif;color:#66808E}
.ct-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ct-link{border:1px solid #DAE5EB;background:white;border-radius:12px;display:flex;align-items:center;gap:11px;text-align:left;min-height:73px;padding:13px;color:#0E263F}.ct-link b{font:800 15px Poppins,sans-serif;display:block}.ct-link small{font-size:12px;color:#687F8D}.ct-link .tile{background:#F47B20;color:#0E263F;min-width:44px;height:44px;display:grid;place-items:center;font-size:21px;border-radius:9px}.ct-link:nth-child(even) .tile{background:#0E263F;color:#fff}
.ct-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.ct-record{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:90px;background:#fff;border:1px solid #DEE7ED;border-radius:12px;text-align:left;padding:15px;color:#0E263F}.ct-record:hover{border-color:#F47B20;background:#FFFCF9}.ct-record .ct-record-body{min-width:0;flex:1}.ct-record strong{display:block;font-size:16px;font-family:Poppins,'Segoe UI',sans-serif;font-weight:750;line-height:1.3;overflow-wrap:anywhere}.ct-record small{display:block;font-size:12px;color:#647F90;line-height:1.5;margin:3px 0 6px;overflow-wrap:anywhere}.ct-record .arrow{font-size:26px;color:#F47B20;flex:none}
.ct-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px;align-items:center}.ct-tag{display:inline-flex;align-items:center;background:#E8F3F8;color:#335D73;padding:4px 8px;border-radius:5px;font-size:11px;font-weight:750}.ct-tag.orange{background:#FFF0E4;color:#97581F}.ct-tag.green{background:#E6F6ED;color:#196946}.ct-tag.danger{background:#FFF0EE;color:#9B332B}
.ct-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:15px 0}.ct-kv>div{background:#F3F7FA;border-radius:9px;padding:11px;overflow-wrap:anywhere;min-width:0}.ct-kv small{display:block;color:#6A8293;font-size:12px;margin-bottom:4px}.ct-kv strong{display:block;font-size:14px;line-height:1.4}
.ct-card{background:#fff;border:1px solid #DBE5EC;border-radius:13px;padding:17px;margin:12px 0}.ct-card h2,.ct-card h3{font:800 17px Poppins,sans-serif;margin:0 0 7px}.ct-card p{color:#5D7283;font-size:14px;line-height:1.5}.ct-stack{display:flex;flex-direction:column;gap:10px}.ct-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.ct-empty{background:#F7FAFC;border:1px dashed #B7CBD8;border-radius:12px;padding:27px 19px;text-align:center;color:#60798B;margin:17px 0}.ct-empty strong{display:block;color:#0E263F;font-size:16px;margin-bottom:6px}.ct-empty p{font-size:14px;line-height:1.5;margin:0}
.ct-filters{display:flex;gap:7px;overflow-x:auto;padding:7px 0 12px;scrollbar-width:thin}.ct-chip{white-space:nowrap;border:1px solid #CBD9E4;background:#fff;color:#4F6679;padding:9px 12px;border-radius:999px;font-weight:800;font-size:12px;min-height:39px}.ct-chip.selected{background:#0E263F;border-color:#0E263F;color:white}
.ct-activity{padding:12px 0;border-bottom:1px solid #E6EEF3}.ct-activity:last-child{border-bottom:0}.ct-activity small{font-size:12px;color:#6E8290;display:block;margin-bottom:4px}.ct-activity strong{font-size:14px;font-weight:800;display:block}.ct-activity p{font-size:13px;line-height:1.5;color:#506879;margin:5px 0;white-space:pre-line;overflow-wrap:anywhere}
.ct-check{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid #E7EDF0;font-size:14px;font-weight:650}.ct-check input{accent-color:#F47B20;width:20px;height:20px;flex:none}.ct-check span{flex:1}.ct-progress{width:100%;height:8px;background:#E8EDF1;border-radius:99px;overflow:hidden;margin:12px 0}.ct-progress i{display:block;height:100%;background:#F47B20}.ct-back{border:0;background:none;padding:6px 0 13px;font-weight:850;color:#B96524;font-size:14px}
.ct-overlay{position:fixed;inset:0;background:rgba(4,23,38,.65);z-index:100;display:flex;align-items:center;justify-content:center;padding:20px}.ct-modal{width:min(100%,560px);max-height:min(90dvh,800px);overflow-y:auto;border-radius:17px;background:#fff;padding:23px}.ct-modal h2{font:800 21px Poppins,sans-serif;margin:0 0 7px}.ct-modal p{font-size:13px;color:#617889;line-height:1.5;margin:0 0 16px}.ct-form{display:flex;flex-direction:column;gap:13px}.ct-field{display:flex;flex-direction:column;gap:5px}.ct-field label{font-size:13px;font-weight:800;color:#435E70}.ct-form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ct-modal-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:12px}
.ct-auth{width:min(100%,510px);margin:40px auto}.ct-auth .ct-hero{padding:24px}.ct-auth input{margin:7px 0 12px}.ct-auth h1{font:800 27px Poppins,sans-serif;margin:0 0 10px}.ct-auth p{color:#5B7281;line-height:1.55}.ct-spinner{width:24px;height:24px;border:3px solid #DAE6ED;border-top-color:#F47B20;border-radius:50%;animation:ctspin .65s linear infinite;margin:auto}@keyframes ctspin{to{transform:rotate(360deg)}}
.ct-footer{font-size:12px;line-height:1.5;color:#6C8290;margin:16px 0}.ct-toast{position:fixed;left:50%;bottom:104px;transform:translateX(-50%);z-index:200;padding:13px 19px;border-radius:10px;background:#0E263F;color:#fff;font-size:14px;font-weight:700;max-width:95vw;box-shadow:0 8px 26px #0e263f4d}
.ct-scan-preview{display:block;width:100%;max-height:150px;object-fit:contain;margin-top:8px;border-radius:8px;background:#F6F9FB}
@media(max-width:720px){.ct-list{grid-template-columns:1fr}.ct-quick{grid-template-columns:1fr}.ct-toolbar{flex-direction:column}.ct-toolbar form{width:100%;flex-wrap:wrap}.ct-toolbar .ct-input{width:100%;flex:1 1 100%}.ct-toolbar .ct-btn{flex:1}.ct-head{align-items:flex-start;gap:9px}.ct-head h1{font-size:26px}.ct-kv{grid-template-columns:1fr}.ct-stats{gap:7px}.ct-stat strong{font-size:25px}.ct-stat small{font-size:11px}.ct-form-row{grid-template-columns:1fr}.ct-content{padding:18px 13px 115px}.ct-modal{padding:20px}.ct-overlay{align-items:flex-end;padding:0}.ct-modal{width:100%;max-height:90dvh;border-radius:18px 18px 0 0}}
@media(max-width:390px){.content{padding:17px 13px 130px}.ct-head h1{font-size:24px}.ct-head .ct-btn{font-size:12px;padding:9px}.ct-link small{font-size:11px}}


/* V16 / native-like stable app shell.  The document cannot pan; only #view scrolls. */
html,body{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;scroll-behavior:auto}
body{position:fixed;inset:0;min-width:0;max-width:100vw;touch-action:pan-y}
.shell{height:100%;height:100dvh;min-height:0;max-height:100%;display:flex;flex-direction:column;overflow:hidden;isolation:isolate}
.shell>.topbar{position:relative;top:auto;left:auto;right:auto;flex:0 0 auto;z-index:30;min-height:0}
.shell>#view.content{display:block;flex:1 1 auto;min-width:0;min-height:0;height:auto;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-behavior:auto;padding-bottom:28px}
.shell>.navbar{position:relative;left:auto;right:auto;bottom:auto;transform:none;flex:0 0 auto;width:100%;max-width:620px;margin:0 auto;border-radius:0;z-index:40}
#view .ct-page, #view .ct-card, #view .ct-record{max-width:100%}
.ct-overlay{overscroll-behavior:contain;overflow:hidden}
.ct-modal{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;max-height:calc(100dvh - 32px)}
.ct-toast{bottom:calc(100px + env(safe-area-inset-bottom));max-width:calc(100vw - 28px)}
@media(max-width:720px){
  .shell>.navbar{width:100%;max-width:none}
  .shell>#view.content{padding:16px 14px 20px}
  .ct-modal{max-height:calc(100dvh - env(safe-area-inset-top) - 8px);max-width:100vw}
  /* 16px avoids iOS zooming/reflow when a form field gains focus. */
  input,textarea,select,.ct-input,.ct-select,.ct-textarea{font-size:16px}
}
@media(max-width:390px){.shell>#view.content{padding:15px 13px 20px}}

/* V17 · staff sign-in, account menu, line items, admin. Layered on the V16 shell; no layout changes. */
.topright{display:flex;align-items:center;gap:9px}
button.user-dot,.shell .user-dot{display:grid!important;place-items:center;width:40px;height:40px;border-radius:50%;background:#0E263F;color:#fff;border:2px solid #F47B20;font:800 13px Poppins,'Segoe UI',sans-serif;padding:0;flex:none}
button.user-dot:disabled{background:#EBF6FB;color:#0E263F;border-color:#D3EAF3;opacity:1;cursor:default}
body.signed-out .navbar{opacity:.4;pointer-events:none}
.ct-narrow{max-width:520px}
.ct-hint{font-size:13px;color:#62788A;line-height:1.45;margin:6px 0 10px}
.ct-auth .ct-check{border-bottom:0;padding:2px 0 14px}
.ct-auth .ct-check input{margin:0}
.ct-stack{display:flex;flex-direction:column;gap:9px;margin:6px 0 4px}
.ct-notice code,.ct-hint code{font-size:12px;background:#ffffffb3;padding:1px 4px;border-radius:4px;overflow-wrap:anywhere}
.ct-lines{padding:6px 17px 14px}
.ct-line{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border:0;border-bottom:1px solid #E6EEF3;background:none;text-align:left;color:#0E263F;min-height:58px}
.ct-line:disabled{opacity:1;cursor:default}
.ct-line-body{min-width:0;flex:1}.ct-line-body strong{display:block;font-size:15px;font-weight:800;overflow-wrap:anywhere}.ct-line-body small{display:block;font-size:13px;color:#62788A;margin-top:3px}
.ct-line-amt{text-align:right;font-weight:800;font-size:15px;white-space:nowrap}.ct-line-amt small{display:block;font-weight:600;font-size:12px;color:#62788A}
.ct-line-total{display:flex;justify-content:space-between;align-items:baseline;padding:13px 0 4px;font-weight:700}.ct-line-total b{font:800 19px Poppins,sans-serif}
.ct-line-freq{display:flex;flex-wrap:wrap;gap:6px 14px;font-weight:700;font-size:14px;color:#335D73}.ct-line-freq small{color:#62788A;font-weight:600}
.ct-pick{max-height:min(42dvh,360px);overflow-y:auto;overscroll-behavior:contain;border:1px solid #DBE5EC;border-radius:10px;padding:0 12px;margin:4px 0 12px}
.ct-pick .ct-line:last-child{border-bottom:0}
.ct-line.picked{background:#FFF0E4;margin:0 -12px;padding:12px;width:calc(100% + 24px)}
.ct-user .ct-actions{margin-top:9px}
.ct-diag{display:flex;gap:11px;align-items:flex-start;padding:9px 0;border-bottom:1px solid #E6EEF3}
.ct-diag>span{width:24px;height:24px;flex:none;border-radius:50%;display:grid;place-items:center;font-weight:900;font-size:13px;background:#E6F6ED;color:#196946}
.ct-diag.bad>span{background:#FFF0EE;color:#9B332B}
.ct-diag strong{display:block;font-size:14px}.ct-diag small{display:block;font-size:12px;color:#62788A;overflow-wrap:anywhere}
.ct-audit.failed strong{color:#9B332B}
.ct-audit p{overflow-wrap:anywhere}
@media(max-width:560px){.brand-logo{width:min(200px,52vw)}.demo-label{font-size:9px;padding:7px 8px}}
