/* Kayron Host theme for the signed-in portal: matches the public site (white header, navy/blue/orange).
   Loaded after app.css and the nav sheets so it wins. Dark mode keeps its own surfaces; only accents change there. */
:root{--k-navy:#0B2A5B;--k-blue:#1E6FD9;--k-orange:#F7941D;--k-ink:#12213D;--k-muted:#4A5872;--k-line:#E3E9F3;--k-tint:#F2F6FD;
  --k-sans:"Inter","Segoe UI",system-ui,-apple-system,Roboto,Helvetica,Arial,sans-serif;
  --k-display:"Montserrat","Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;
  --pn-accent:#1E6FD9;--pn-ink:#0B2A5B}
:root{font-family:var(--k-sans)}
h1,h2,h3{font-family:var(--k-display);letter-spacing:-.5px}
h1{font-weight:800}
.eyebrow{color:var(--k-blue)!important;letter-spacing:1.4px}
a{color:var(--k-blue)}
:focus-visible{outline-color:var(--k-orange)}

/* Header */
.topbar .brand{display:inline-flex;align-items:center;gap:10px;font-family:var(--k-display);font-weight:800;letter-spacing:1px}
.topbar .brand svg{width:34px;height:34px;flex:none}
.topbar .brand span{color:var(--k-blue)}
html:not([data-theme="dark"]) .topbar{background:#fff;color:var(--k-navy);border-bottom:1px solid var(--k-line);box-shadow:none}
html:not([data-theme="dark"]) .topbar a,html:not([data-theme="dark"]) .topbar .brand,html:not([data-theme="dark"]) .link-button{color:var(--k-navy)}
html:not([data-theme="dark"]) .theme-toggle{border-color:var(--k-line);background:var(--k-tint);color:var(--k-navy)}
html:not([data-theme="dark"]) .topbar.dn-collapsible .dn-btn{border-color:var(--k-line);background:var(--k-tint);color:var(--k-navy)}
html:not([data-theme="dark"]) .topbar.dn-collapsible .dn-btn:hover{background:#E6EEFB}
html:not([data-theme="dark"]) .topbar.dn-collapsible nav[data-pn-drawer]{background:#fff;border-color:var(--k-line);box-shadow:0 24px 60px rgba(11,42,91,.16)}
html:not([data-theme="dark"]) .topbar.dn-collapsible nav[data-pn-drawer] a{color:var(--k-ink)}
html:not([data-theme="dark"]) .topbar.dn-collapsible nav[data-pn-drawer] a:hover{background:var(--k-tint);color:var(--k-navy)}
html:not([data-theme="dark"]) .topbar.dn-collapsible nav[data-pn-drawer] a[aria-current="page"]{background:#E6EEFB;color:var(--k-navy)}
html:not([data-theme="dark"]) .topbar.dn-collapsible nav[data-pn-drawer]>span{color:var(--k-muted);border-top-color:var(--k-line)}
html[data-theme="dark"] .topbar{background:#0B2A5B}
.topbar .k-cta{background:var(--k-orange);color:var(--k-navy)!important;font-weight:700;padding:10px 16px;border-radius:9px}
@media (max-width:760px){
  html:not([data-theme="dark"]) [data-pn-drawer]{background:#fff!important}
  html:not([data-theme="dark"]) [data-pn-drawer] a,html:not([data-theme="dark"]) [data-pn-drawer] .link-button{color:var(--k-ink)!important}
  html:not([data-theme="dark"]) .pn-close{background:var(--k-tint);color:var(--k-navy)}
  html[data-theme="dark"] [data-pn-drawer]{background:#0B2A5B!important}
}

/* Page */
html:not([data-theme="dark"]) body{background:var(--k-tint);color:var(--k-ink)}
html:not([data-theme="dark"]) .muted{color:var(--k-muted)}
html:not([data-theme="dark"]) .stat,html:not([data-theme="dark"]) .panel,html:not([data-theme="dark"]) .auth-card,
html:not([data-theme="dark"]) .plan-card,html:not([data-theme="dark"]) .service-card{border-color:var(--k-line);border-radius:16px;box-shadow:0 6px 24px rgba(11,42,91,.06)}
html:not([data-theme="dark"]) .status-pill{background:#E6EEFB;color:var(--k-navy)}
html:not([data-theme="dark"]) .empty-icon{background:#E6EEFB;color:var(--k-blue)}
html:not([data-theme="dark"]) th{color:var(--k-muted)}
.plan-price{font-family:var(--k-display);color:var(--k-navy)}
html[data-theme="dark"] .plan-price{color:#fff}

/* Buttons */
.primary,.primary-link,.button.primary,.button-link,button.primary{background:var(--k-navy);color:#fff}
.primary:hover,.primary-link:hover,.button.primary:hover,.button-link:hover{background:#123B7A}
.auth-card .primary{background:var(--k-orange);color:var(--k-navy)}
.auth-card .primary:hover{background:#ffa53a}
html:not([data-theme="dark"]) .auth-card input{border-color:#C9D5EA;outline-color:var(--k-blue)}
html[data-theme="dark"] .primary,html[data-theme="dark"] .primary-link,html[data-theme="dark"] .button.primary,html[data-theme="dark"] .button-link{background:var(--k-blue)}

/* Phone tab bar */
html:not([data-theme="dark"]) .pn-tabbar{background:rgba(255,255,255,.96);border-color:var(--k-line);box-shadow:0 12px 34px rgba(11,42,91,.14)}
html:not([data-theme="dark"]) .pn-tabbar a{color:var(--k-muted)}
html:not([data-theme="dark"]) .pn-tabbar a[aria-current="page"]{color:var(--k-navy)}

footer{color:var(--k-muted)}

/* Old gold accents -> Kayron blue/orange */
.brand span{color:var(--k-blue)}
.product-icon,.market-store-icon{background:#E6EEFB;color:var(--k-blue)}
html[data-theme="dark"] .product-icon,html[data-theme="dark"] .market-store-icon{background:rgba(30,111,217,.18);color:#8DB8F2}
.product-link span,.shortcut-grid a span,.market-clear,.market-product-buy a,.market-store-card>b{color:var(--k-blue)}
.product-link:hover,.product-card:hover{border-color:var(--k-blue)}
.text-link,.auth-card a,.panel-head a,.section-heading a{color:var(--k-blue)}
.activity-dot.unread{background:#FFF1DE}
.market-hero .eyebrow,.market-hero-art,.market-product-visual{color:var(--k-orange)}
.market-button-gold{background:var(--k-orange);color:var(--k-navy)}
.market-vendor-section{background:var(--k-tint)}
.panel button.button.primary,.panel .actions .button.primary{background:var(--k-navy);color:#fff}
html:not([data-theme="dark"]) .product-card>strong,html:not([data-theme="dark"]) .billing-summary strong,html:not([data-theme="dark"]) .market-stats strong,html:not([data-theme="dark"]) .market-product-buy>strong{color:var(--k-navy)}
html[data-theme="dark"] .product-card>strong,html[data-theme="dark"] .billing-summary strong,html[data-theme="dark"] .market-stats strong,html[data-theme="dark"] .market-product-buy>strong{color:#E6EDF6}
.theme-toggle:focus-visible{outline-color:var(--k-orange)}

/* Plans page controls */
.plan-card form{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.plan-card form select,.filter-row select{height:44px;border:1px solid #C9D5EA;border-radius:9px;padding:0 12px;font:inherit;font-size:14px;background:#fff;color:var(--k-ink)}
.plan-card form button{height:46px;border:0;border-radius:10px;background:var(--k-navy);color:#fff;font:inherit;font-weight:700;font-size:14px;cursor:pointer}
.plan-card form button:hover{background:#123B7A}
.filter-row button{height:44px;padding:0 18px;border:0;border-radius:9px;background:var(--k-navy);color:#fff;font:inherit;font-weight:700;cursor:pointer;align-self:flex-end}
html[data-theme="dark"] .plan-card form select,html[data-theme="dark"] .filter-row select{background:#111a2a;color:#e6edf6;border-color:#293a52}
html[data-theme="dark"] .plan-card form button,html[data-theme="dark"] .filter-row button{background:var(--k-blue)}

/* ===== Signed-in layout: left sidebar (control-panel style) ===== */
.k-top-user{display:flex;align-items:center;gap:18px;font-size:14px}
.k-top-link{font-weight:600}
.k-topbar-app{position:sticky;top:0;z-index:30}
.k-side .k-group{display:flex;flex-direction:column;gap:2px;margin:0 0 14px}
.k-side .k-group-title{margin:0 0 4px;padding:0 12px;font-size:11px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:var(--k-muted)}
.k-side details.k-group summary{cursor:pointer;list-style:none;padding-top:4px;padding-bottom:4px}
.k-side details.k-group summary::-webkit-details-marker{display:none}
.k-side details.k-group summary::after{content:" ▸"}
.k-side details.k-group[open] summary::after{content:" ▾"}
.k-side nav a{display:block;padding:8px 12px;border-radius:9px;font-size:14px;line-height:1.3;text-decoration:none;color:var(--k-ink)}
.k-side nav a:hover{background:var(--k-tint);color:var(--k-navy)}
.k-side nav a[aria-current="page"]{background:#E6EEFB;color:var(--k-navy);font-weight:700}
.k-side-foot{border-top:1px solid var(--k-line);padding:14px 12px 4px;display:flex;flex-direction:column;gap:6px;font-size:14px}
.k-side-foot .k-user{font-weight:600;color:var(--k-navy)}
.k-side-foot .link-button{padding:0;text-align:left;color:var(--k-blue);font-weight:600}
@media (min-width:761px){
  .k-app{display:flex;align-items:flex-start;min-height:calc(100vh - 72px)}
  .k-side{flex:0 0 264px;width:264px;position:sticky;top:72px;height:calc(100vh - 72px);overflow-y:auto;background:#fff;border-right:1px solid var(--k-line);padding:22px 12px 18px}
  .k-app>.shell{flex:1 1 auto;min-width:0;margin:40px auto 60px;padding:0 clamp(20px,3vw,40px)}
}
@media (max-width:760px){
  .k-top-user{display:none}
  .k-side .k-group-title{padding:0 12px}
  .k-side nav a{font-size:15.5px!important;min-height:44px;display:flex!important;align-items:center}
}
html[data-theme="dark"] .k-side{background:#0f1a2e;border-right-color:#1f2d45}
html[data-theme="dark"] .k-side nav a{color:#d7e0ee}
html[data-theme="dark"] .k-side nav a:hover{background:#16243d;color:#fff}
html[data-theme="dark"] .k-side nav a[aria-current="page"]{background:rgba(30,111,217,.22);color:#fff}
html[data-theme="dark"] .k-side .k-group-title{color:#93a3bb}
html[data-theme="dark"] .k-side-foot{border-top-color:#1f2d45}
html[data-theme="dark"] .k-side-foot .k-user{color:#fff}
html:not([data-theme="dark"]) .k-top-user a{color:var(--k-navy)}
.k-side .pn-filter{margin:0 4px 16px}
.k-side .pn-filter input{width:100%;height:40px;border:1px solid #C9D5EA!important;border-radius:9px;padding:0 12px!important;font:inherit;font-size:14px!important;background:var(--k-tint)!important;color:var(--k-ink)!important}
.k-side .pn-filter input::placeholder{color:var(--k-muted)!important}
.k-side .pn-filter input:focus{outline:2px solid var(--k-blue)!important;outline-offset:1px;background:#fff!important}
html[data-theme="dark"] .k-side .pn-filter input{background:#16243d!important;border-color:#293a52!important;color:#e6edf6!important}
html[data-theme="dark"] .k-side .pn-filter input::placeholder{color:#93a3bb!important}
.k-side .k-group:not(:has(a:not([hidden]))){display:none}
html[data-theme="dark"] .empty-icon{color:#8DB8F2}
.market-product-buy .market-links{display:flex;gap:14px;flex-wrap:wrap}
.market-product-buy small{font-weight:500}
/* Site manager */
.cms-jump{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 18px}
.cms-jump a{padding:7px 12px;border-radius:999px;background:var(--k-tint);color:var(--k-navy);text-decoration:none;font-size:13px;font-weight:600}
.cms-jump a:hover{background:#E6EEFB}
.cms-prices td{vertical-align:middle}.cms-prices input[type=number]{width:110px}.cms-prices td:last-child input{min-width:220px;width:100%}
.cms-price{display:flex;align-items:center;gap:6px;margin:0}
.cms-check{display:flex;align-items:center;gap:8px;font-weight:600}
.cms-reset{margin-top:6px}
html[data-theme="dark"] .cms-jump a{background:#1b2a44;color:#d7e0ee}
.cms-prices input[type=checkbox],.cms-check input[type=checkbox]{width:20px!important;height:20px!important;min-height:0!important;padding:0!important;margin:0;accent-color:var(--k-blue)}
#prices .filter-row{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}#prices .filter-row label{flex:0 1 320px}#prices .filter-row .button{width:auto}
.wa-chat{position:fixed;right:18px;bottom:18px;z-index:2500;display:inline-flex;align-items:center;gap:8px;padding:12px 16px;border-radius:999px;background:#25D366;color:#fff!important;text-decoration:none;font-weight:700;box-shadow:0 10px 24px -8px rgba(0,0,0,.35)}
@media (max-width:760px){.wa-chat span{display:none}.wa-chat{padding:14px;bottom:78px}}
.rating-form fieldset{border:0;padding:0;margin:0 0 10px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.rating-option{display:inline-flex;gap:4px;align-items:center}
.escalate-box{margin-top:14px}.escalate-box summary{cursor:pointer;color:var(--k-blue);font-weight:600}
.inline-form{display:inline}
/* Command Centre */
.cc-h{font-size:20px;margin:26px 0 12px}
.cc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.cc-grid .stat{display:flex;flex-direction:column;gap:6px;padding:18px;border-radius:14px}
.cc-grid .stat strong{font-size:22px;color:var(--k-navy);font-family:var(--k-display)}
.cc-alert{display:flex;gap:10px;align-items:center;margin:0 0 8px;padding:10px 12px;border-radius:10px;background:var(--k-tint)}
.cc-alert.is-critical{background:#FDE8E8}.cc-alert.is-warning{background:#FFF4E5}.cc-alert.is-ok{background:#E5F6EC}
.cc-tag{font-size:12px;font-weight:700;padding:2px 8px;border-radius:999px;background:#fff;color:var(--k-navy);white-space:nowrap}
.cc-chart h3{margin:0 0 12px;font-size:15px}
.cc-bars{display:flex;align-items:flex-end;gap:3px;height:120px;border-bottom:1px solid #dbe3ef}
.cc-bar{flex:1;height:var(--h);background:var(--k-blue);border-radius:3px 3px 0 0;min-width:4px}
.cc-axis{display:flex;justify-content:space-between;font-size:12px;color:#5b6b84;margin-top:4px}
html[data-theme="dark"] .cc-alert{background:#1b2a44}html[data-theme="dark"] .cc-alert.is-critical{background:#4a1d1d}html[data-theme="dark"] .cc-alert.is-warning{background:#4a3517}html[data-theme="dark"] .cc-alert.is-ok{background:#163a26}
html[data-theme="dark"] .cc-grid .stat strong{color:#fff}
/* Service order board */
.so-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px;align-items:start}
.so-col{background:#f4f7fb;border:1px solid #e5e9f1;border-radius:14px;padding:12px}
.so-col h2{font-size:15px;display:flex;justify-content:space-between;align-items:center}
.so-card{background:#fff;border:1px solid #e5e9f1;border-radius:12px;padding:12px;margin:10px 0}
.so-card.so-late{border-color:#e7a23b;box-shadow:inset 3px 0 0 #e7a23b}
.so-title{margin:0 0 4px}.so-flag{color:#b45309}
.so-form{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.so-form label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600}
.so-form select,.so-form input,.so-form textarea{font:inherit;padding:7px 9px;border:1px solid #d8deea;border-radius:8px}
.so-notes{white-space:pre-wrap;font-size:12px;background:#f4f7fb;border-radius:8px;padding:8px;max-height:180px;overflow:auto}
.so-steps{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:14px 0;counter-reset:so}
.so-steps li{counter-increment:so;flex:1 1 120px;padding:8px 10px;border-radius:10px;background:#eef2f8;color:#667085;font-size:13px;font-weight:600}
.so-steps li::before{content:counter(so) ". "}
.so-steps li.done{background:#e3f4ec;color:#16845b}.so-steps li.done::before{content:"✓ "}
.so-steps li.current{background:#142642;color:#fff}
html[data-theme="dark"] .so-col{background:#0f1a2e;border-color:#22314d}
html[data-theme="dark"] .so-card{background:#14213a;border-color:#22314d}
html[data-theme="dark"] .so-notes,html[data-theme="dark"] .so-steps li{background:#17233a;color:#cbd8e8}
html[data-theme="dark"] .so-steps li.current{background:#c9a227;color:#101b35}
/* Marketplace product screenshots */
.market-product-visual.market-product-photo{padding:0;overflow:hidden;background:#0b1729}
.market-product-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:top center;aspect-ratio:16/10;transition:transform .5s ease}
.market-product-card:hover .market-product-photo img{transform:scale(1.03)}
@media (prefers-reduced-motion:reduce){.market-product-photo img{transition:none}.market-product-card:hover .market-product-photo img{transform:none}}
.so-head{gap:12px;align-items:flex-start}.so-head .status-pill{flex:none}
/* DNS nameservers */
.dns-ns-list{list-style:none;padding:0;margin:10px 0 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
.dns-ns-list code{display:block;padding:10px 12px;border-radius:10px;background:#eef2f8;font-size:14px;user-select:all}
html[data-theme="dark"] .dns-ns-list code{background:#17233a;color:#cbd8e8}
/* Flash messages: success and info were showing in the error colour */
.notice.success{background:#e7f6ee;color:#166342}
.notice.info,.notice.message{background:#e8f0fb;color:#1f3f6e}
html[data-theme="dark"] .notice.success{background:#13332a;color:#a8e6c6}
html[data-theme="dark"] .notice.info,html[data-theme="dark"] .notice.message{background:#172a45;color:#c4d8f5}
.notice.verify-banner{display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:center;justify-content:space-between;background:#fff6e0;color:#6b4a00}
.notice.verify-banner form{margin:0}
.notice.verify-banner .link-button{font-weight:600;text-decoration:underline;color:inherit}
html[data-theme="dark"] .notice.verify-banner{background:#3a2e10;color:#f3d999}
