/* AS Client Portal: front end (uses the as2027 theme tokens) */
.asp-p { --p-line: var(--line, #dfe5ee); --p-paper: var(--paper, #f4f7fb); color: var(--body, #3d4861); }
.asp-p h2, .asp-p h3, .asp-p h4 { color: var(--ink, #15203a); }
.asp-p-card { background: #fff; border: 1px solid var(--p-line); border-top: 5px solid var(--blue, #2274b5); border-radius: var(--radius, 14px); padding: 24px 26px; box-shadow: var(--shadow); }
.asp-p-signin { max-width: 560px; }
.asp-p-signin h2 { font-size: 1.6rem; margin: 0 0 .4em; }
.asp-p-field { display: block; margin: 0 0 16px; }
.asp-p-field span { display: block; font-weight: 600; font-size: .92rem; color: var(--ink, #15203a); margin: 0 0 6px; }
.asp-p-field input { width: 100%; padding: .75em .9em; border: 2px solid #c3ccda; border-radius: 10px; font: 500 1rem var(--text, inherit); box-sizing: border-box; }
.asp-p-field input:focus { border-color: var(--blue, #2274b5); outline: 0; }
.asp-p-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.asp-p-msg { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; font-weight: 600; background: #eaf2fa; color: #12385e; }
.asp-p-msg--ok { background: #f1f7e6; color: #24360a; }
.asp-p-msg--err { background: #fbe4e1; color: #7a1d10; }
.asp-p-demo { margin: 0 0 16px; padding: 8px 12px; border-radius: 10px; background: #fff7d6; color: #5a4600; font-size: .9rem; }
.asp-p-fine { font-size: .9rem; color: var(--muted, #6a7489); margin: 14px 0 0; }
.asp-p-preview { background: var(--navy, #0e1e42); color: #fff; padding: 10px 16px; border-radius: 10px; margin: 0 0 18px; font-size: .95rem; }
.asp-p-preview a { color: var(--yellow, #d8db3e); }

.asp-p-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 24px; margin: 0 0 22px; }
.asp-p-top h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.asp-p-eyebrow { margin: 0 0 4px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue, #2274b5); }
.asp-p-who { margin: 6px 0 0; color: var(--muted, #6a7489); font-size: .95rem; overflow-wrap: anywhere; }
.asp-p-topacts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.asp-p-topacts form, .asp-p-inline { display: inline-block; margin: 0; }

.asp-p-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 18px; }
.asp-p-stat { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--p-line); border-top: 4px solid var(--blue, #2274b5); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--body, #3d4861); }
.asp-p-stat:hover { border-color: var(--blue, #2274b5); }
.asp-p-stat span { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #6a7489); }
.asp-p-stat strong { font-family: var(--display, inherit); font-size: 1.7rem; color: var(--ink, #15203a); line-height: 1.2; }
.asp-p-stat small { color: var(--muted, #6a7489); font-size: .85rem; }
.asp-p-stat.is-due { border-top-color: var(--red, #d14938); }

.asp-p-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 8px; background: var(--p-paper); border-radius: 12px; position: sticky; top: 76px; z-index: 5; }
.asp-p-nav a { padding: 6px 12px; border-radius: 99px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink, #15203a); }
.asp-p-nav a:hover { background: #fff; }
.asp-p-sec { padding: 26px 0 8px; border-bottom: 1px solid var(--p-line); scroll-margin-top: 140px; }
.asp-p-sec h3 { font-size: 1.35rem; margin: 0 0 14px; }
.asp-p-sec h4 { font-size: 1rem; margin: 18px 0 8px; }

.asp-p-svcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.asp-p-svcgroup { background: #fff; border: 1px solid var(--p-line); border-radius: 12px; padding: 4px 16px 8px; }
.asp-p-svcgroup h4 { margin: 12px 0 4px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #6a7489); }
.asp-p-svcgroup ul { list-style: none; margin: 0; padding: 0; }
.asp-p-svcgroup li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--p-line); }
.asp-p-svcgroup li:first-child { border-top: 0; }
.asp-p-svcgroup li > div { min-width: 0; }
.asp-p-svcgroup strong { color: var(--ink, #15203a); }
.asp-p-svcgroup small { display: block; color: var(--muted, #6a7489); font-size: .86rem; overflow-wrap: anywhere; }
.asp-p .btn.asp-p-login, .asp-p .asp-p-inline .btn { padding: .45em .9em; font-size: .88rem; white-space: nowrap; flex: none; }
.asp-p-tag { display: inline-block; padding: 1px 8px; border-radius: 99px; background: #eceff4; color: #4a5468; font-size: .75rem; font-weight: 700; }
.asp-p-tag--red { background: #c0392b; color: #fff; }
.asp-p-tag--green { background: #e3f4dd; color: #24620f; }
.asp-p-tag--amber { background: #fff1cc; color: #7a5300; }

.asp-p-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.asp-p-table th { text-align: left; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #6a7489); padding: 8px 10px; border-bottom: 2px solid var(--p-line); }
.asp-p-table td { padding: 10px; border-bottom: 1px solid var(--p-line); vertical-align: top; }
.asp-p-table small { color: var(--muted, #6a7489); }
.asp-p-table tfoot th { color: var(--ink, #15203a); font-size: .95rem; text-transform: none; letter-spacing: 0; border-bottom: 0; }
.asp-p-table tr.is-late td { background: #fff6f4; }
.asp-p-nowrap { white-space: nowrap; }
.asp-p-status { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: #e1edf8; color: #174d7a; white-space: nowrap; }
.asp-p-status--pending { background: #f6f5c9; color: #5d5e08; }
.asp-p-status--closed { background: #eceff4; color: #4a5468; }
.asp-p-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.asp-p-good { font-weight: 600; color: #3b5410; }

.asp-p .asp-bar { height: 14px; background: #e9eef5; border-radius: 99px; overflow: hidden; margin: 8px 0; max-width: 560px; }
.asp-p .asp-bar span { display: block; height: 100%; background: var(--green, #9dc24c); border-radius: 99px; }
.asp-p .asp-bar--warn span { background: var(--yellow, #d8db3e); }
.asp-p .asp-bar--over span { background: var(--red, #d14938); }
.asp-p .asp-bar__txt { margin: 4px 0; }
.asp-p .asp-bar__over { color: #8a2517; font-weight: 600; margin: 4px 0; }
.asp-p .asp-muted { color: var(--muted, #6a7489); }

.asp-p-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 24px; }
.asp-p-list { list-style: none; margin: 0; padding: 0; }
.asp-p-list li { padding: 8px 0; border-top: 1px solid var(--p-line); }
.asp-p-list small { color: var(--muted, #6a7489); }
.asp-p-help { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin: 28px 0 0; padding: 20px 24px; border-radius: var(--radius, 14px); background: var(--navy, #0e1e42); color: #c9d2e3; }
.asp-p-help h3 { color: #fff; margin: 0 0 4px; }
.asp-p-help p { margin: 0; }

@media (max-width: 640px) {
  .asp-p-card { padding: 18px; }
  .asp-p-nav { position: static; }
  .asp-p-svcs { grid-template-columns: 1fr; }
  .asp-p-svcgroup li { flex-wrap: wrap; }
  .asp-p-stats { grid-template-columns: 1fr 1fr; }
  .asp-p-stat strong { font-size: 1.35rem; }
  .asp-p-dev th:nth-child(3), .asp-p-dev td:nth-child(3) { display: none; }
  /* Invoices become cards */
  .asp-p-inv, .asp-p-inv tbody, .asp-p-inv tfoot, .asp-p-inv tr, .asp-p-inv td, .asp-p-inv th { display: block; }
  .asp-p-inv thead { display: none; }
  .asp-p-inv tbody tr { padding: 10px 0; border-bottom: 1px solid var(--p-line); }
  .asp-p-inv td { border: 0; padding: 2px 0; }
}

/* Calls and usage */
.asp-p-month { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.asp-p-month select { min-height: 44px; padding: 8px 12px; font: inherit; border: 1px solid #c5ced8; border-radius: 6px; background: #fff; }
.asp-p-itemised { margin: 22px 0 0; padding: 16px 18px; border: 1px solid #dfe5ec; border-radius: 8px; background: #f7f9fb; }
.asp-p-itemised h4 { margin: 0 0 6px; }
.asp-p-itemised p { margin: 0 0 12px; }

/* New client form */
.asp-ob-form { max-width: 820px; }
.asp-ob-form fieldset { border: 0; border-top: 1px solid var(--p-line); margin: 22px 0 0; padding: 18px 0 0; }
.asp-ob-form legend { font-weight: 700; font-size: 1.15rem; padding: 0 10px 0 0; color: var(--ink, #1b2740); }
.asp-ob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.asp-ob-form .asp-p-field { margin: 0; }
.asp-ob-form .asp-p-field label { display: block; font-weight: 600; margin: 0 0 4px; }
.asp-ob-form .asp-p-field small { display: block; margin: 0 0 4px; color: #55607a; }
.asp-ob-form select, .asp-ob-form textarea { width: 100%; padding: .75em .9em; border: 2px solid #c3ccda; border-radius: 10px; font: 500 1rem var(--text, inherit); box-sizing: border-box; background: #fff; min-height: 48px; }
.asp-ob-form select:focus, .asp-ob-form textarea:focus { border-color: var(--blue, #2274b5); outline: 0; }
.asp-ob-form .has-error input, .asp-ob-form .has-error select { border-color: #b3261e; }
.asp-ob-err { display: block; margin: 4px 0 0; color: #a11a12; font-weight: 600; font-size: .92rem; }
.asp-ob-opt { font-weight: 400; color: #55607a; font-size: .9em; }
.asp-ob-form b { color: #a11a12; }
.asp-ob-note { margin: 0 0 12px; color: #55607a; }
.asp-ob-intro { margin: 0; }
.asp-ob-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; margin: 0 0 14px; }
.asp-ob-checks label, .asp-ob-check label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; min-height: 28px; cursor: pointer; }
.asp-ob-checks input, .asp-ob-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.asp-ob-check { margin: 18px 0 0; }
.asp-ob-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.asp-ob .asp-p-msg ul { margin: 6px 0 0 18px; font-weight: 500; }
.asp-ob .asp-p-msg a { color: inherit; }
@media (max-width: 640px) { .asp-ob-grid, .asp-ob-checks { grid-template-columns: 1fr; } }
.asp-ob-grid[hidden] { display: none; }
.asp-ob-grid { align-items: end; }
.asp-ob-form .asp-p-field label .asp-ob-opt { white-space: nowrap; }
.asp-ob-form fieldset.asp-ob-sub { border: 1px solid var(--p-line); border-radius: 10px; padding: 14px 16px 6px; margin: 4px 0 0; background: var(--p-paper); }
.asp-ob-form [hidden] { display: none; }
.asp-p-domains small { color: #55607a; }
.asp-p-domains form { margin: 0; }

/* Client login page: the sign-in card sits in the hero frame */
.d-hero .asp-p { color: var(--ink, #15203a); }
.d-hero .frame .asp-p-signin { max-width: none; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.d-hero .frame .asp-p-signin h2 { color: var(--ink, #15203a); }
.d-hero .frame .asp-p-msg { margin-bottom: 12px; }
.d-hero .frame.asp-login-frame { max-width: 440px; }

/* Web protection (DNS filtering) charts */
.asp-dns-range { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.asp-dns-range a { padding: 6px 12px; border: 1px solid var(--p-line); border-radius: 999px; font-size: .9rem; text-decoration: none; color: var(--ink, #15203a); background: #fff; }
.asp-dns-range a:hover { border-color: var(--blue, #2274b5); }
.asp-dns-range a.is-on { background: var(--navy, #0e1e42); border-color: var(--navy, #0e1e42); color: #fff; }
.asp-dns-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.asp-dns-kpis > div { background: #fff; border: 1px solid var(--p-line); border-radius: 12px; padding: 12px 14px; }
.asp-dns-kpis span { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted, #6a7489); }
.asp-dns-kpis strong { display: block; font-size: 1.6rem; line-height: 1.2; color: var(--ink, #15203a); font-variant-numeric: tabular-nums; }
.asp-dns-kpis i, .asp-dns-key i, .asp-dns-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.asp-dns-card { background: #fff; border: 1px solid var(--p-line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.asp-dns-card h4 { margin: 0 0 8px; font-size: 1rem; }
.asp-dns-key { list-style: none; display: flex; gap: 16px; margin: 0 0 6px; padding: 0; font-size: .85rem; color: var(--body, #3d4861); }
.asp-dns-key li { display: flex; align-items: center; gap: 6px; }
.asp-dns-svg { display: block; width: 100%; height: auto; }
.asp-dns-grid { stroke: #e7ebf1; stroke-width: 1; }
.asp-dns-base { stroke: #b9c1cd; stroke-width: 1; }
.asp-dns-ax { font: 11px/1 Inter, Arial, sans-serif; fill: #6a7489; }
.asp-dns-hit { fill: transparent; }
.asp-dns-col:hover .asp-dns-hit { fill: rgba(14, 30, 66, .06); }
.asp-dns-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.asp-dns-two .asp-dns-card { margin-bottom: 14px; }
.asp-dns-donut { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.asp-dns-donut svg { width: 170px; height: 170px; flex: none; }
.asp-dns-dn { font: 700 22px/1 Inter, Arial, sans-serif; fill: #15203a; }
.asp-dns-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 180px; font-size: .88rem; }
.asp-dns-legend li { display: grid; grid-template-columns: 12px 1fr auto 3em; align-items: center; gap: 8px; padding: 3px 0; }
.asp-dns-legend b, .asp-dns-bars b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink, #15203a); }
.asp-dns-legend small { color: var(--muted, #6a7489); text-align: right; }
.asp-dns-bars { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.asp-dns-bars li { display: grid; grid-template-columns: minmax(0, 11em) 1fr auto; align-items: center; gap: 10px; padding: 4px 0; }
.asp-dns-bars div { background: #f1f3f7; border-radius: 4px; height: 10px; }
.asp-dns-bars i { display: block; height: 10px; border-radius: 4px; }
.asp-dns-table { margin: 4px 0 10px; }
.asp-dns-table summary { cursor: pointer; color: var(--blue, #2274b5); font-size: .9rem; }
@media (max-width: 700px) { .asp-dns-kpis { grid-template-columns: 1fr 1fr; } .asp-dns-two { grid-template-columns: 1fr; } .asp-dns-kpis strong { font-size: 1.3rem; } }
.asp-dns-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) { .asp-dns-scroll .asp-dns-svg { min-width: 600px; } }

/* Section tabs (portal.js). Without JavaScript the links stay as jump links and every section shows. */
.asp-p-tabs { flex-wrap: wrap; gap: 4px; padding: 6px; }   /* wraps onto a second line rather than scrolling sideways */
.asp-p-tabs a { white-space: nowrap; flex: none; }
.asp-p-tabs a.is-on, .asp-p-tabs a[aria-selected="true"] { background: var(--navy, #0e1e42); color: #fff; }
.asp-p-tabs a:focus-visible { outline: 3px solid var(--blue, #2274b5); outline-offset: 2px; }
.asp-tabs-ready .asp-p-dash .asp-p-sec[role="tabpanel"] { border-bottom: 0; padding-top: 14px; }
.asp-p-sec[hidden] { display: none !important; }
.asp-p-sec[role="tabpanel"]:focus { outline: none; }

/* Cloud servers self-service */
.asp-lin-acts td { background: var(--p-paper, #f4f7fb); }
.asp-lin-acts summary { cursor: pointer; color: var(--blue, #2274b5); font-weight: 600; }
.asp-lin-forms { display: grid; gap: 12px; padding: 10px 0 4px; }
.asp-lin-forms form, .asp-lin-create { display: grid; gap: 8px; max-width: 760px; }
.asp-lin-create label, .asp-lin-forms label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.asp-lin-create small { font-weight: 400; color: var(--muted, #6a7489); }
.asp-lin-create input[type=text], .asp-lin-create input[type=password], .asp-lin-create select, .asp-lin-create textarea, .asp-lin-forms select { font: inherit; padding: 8px 10px; border: 1px solid var(--p-line); border-radius: 8px; max-width: 100%; }
.asp-lin-create textarea { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
label.asp-lin-agree { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.asp-lin-new { margin: 16px 0; }
.asp-lin-new > summary { display: inline-block; list-style: none; cursor: pointer; }
.asp-lin-new > summary::-webkit-details-marker { display: none; }
.asp-lin-new[open] > summary { margin-bottom: 12px; }
.asp-lin-secret { border-top-color: var(--red, #d14938); }
.asp-lin-secret code { font-size: 1.05rem; user-select: all; }
.asp-lin-forms form > button, .asp-lin-create > button { justify-self: start; }
.asp-lin-forms form > small { color: var(--muted, #6a7489); }

.asp-lin-ip small { color: var(--muted, #6a7489); word-break: break-all; }
.asp-lin-bk { display: grid; gap: 10px; padding: 10px 12px; border: 1px solid var(--p-line); border-radius: 10px; background: #fff; }
.asp-lin-bk small { color: var(--muted, #6a7489); font-weight: 400; }
.asp-lin-warn { margin: 0; padding: 8px 10px; border-radius: 8px; background: #fdecea; color: #7a271a; font-size: .9rem; }
.asp-lin-off > summary { cursor: pointer; color: #b42318; font-size: .9rem; }
.asp-lin-off form { display: grid; gap: 8px; margin-top: 8px; }
.asp-lin-off input[type=text], .asp-lin-bk input[type=text], .asp-lin-bk select { font: inherit; padding: 8px 10px; border: 1px solid var(--p-line); border-radius: 8px; }
.btn.asp-lin-danger { color: #b42318; border-color: #b42318; }
.asp-lin-foot { display: flex; flex-direction: column; align-items: flex-end; margin-top: 16px; gap: 8px; }
.asp-lin-foot .asp-lin-new { width: 100%; display: flex; flex-direction: column; align-items: flex-end; margin: 0; }
.asp-lin-foot .asp-lin-new[open] .asp-lin-create { align-self: stretch; }
.asp-lin-note { text-align: right; }

.asp-lin-power { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.asp-lin-power form { display: flex !important; gap: 8px; align-items: center; }
.asp-lin-g td { background: #fff; }
.asp-lin-graphs { padding: 6px 0; }
.asp-lin-graphs .asp-dns-card { margin-bottom: 10px; }

.asp-lin-reqs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.asp-lin-reqs li.is-delete span { color: #b42318; }
.asp-lin-reqs form { margin: 0; }

.asp-lin-appf { border: 1px solid var(--p-line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
.asp-lin-appf legend { font-weight: 700; padding: 0 6px; }
.asp-lin-appf input, .asp-lin-appf select { font: inherit; padding: 8px 10px; border: 1px solid var(--p-line); border-radius: 8px; }
.js-apps .asp-lin-appf:not(.is-on) { display: none; }
.js-apps .asp-lin-distro.is-off { display: none; }

/* Starlink data use */
.asp-star-used { margin: 6px 0 8px; }
.asp-star-used strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.asp-star-meter { height: 10px; border-radius: 999px; background: #e7ebf1; overflow: hidden; margin: 0 0 10px; }
.asp-star-meter span { display: block; height: 100%; border-radius: 999px; background: #2a78d6; }
.asp-star-meter.is-near span { background: #eda100; }
.asp-star-meter.is-over span { background: #e34948; }
.asp-star-note { margin: 0 0 10px; }

/* Web hosting: a site's other domains, one to a line, indented under the main domain */
.asp-whm-also { list-style: none; margin: 2px 0 0; padding: 0 0 0 16px; font-size: smaller; color: var(--muted, #6a7489); }
.asp-whm-also li { margin: 0; padding: 0; line-height: 1.5; }

/* Sortable column headings (Domains) */
.asp-p-sort { color: inherit; text-decoration: none; white-space: nowrap; }
.asp-p-sort:hover, .asp-p-sort:focus-visible { text-decoration: underline; }
.asp-p-sort span { opacity: .55; font-size: .85em; }
.asp-p-sort.is-on span { opacity: 1; }

.asp-p-who{display:block;margin-top:2px;opacity:.75;line-height:1.35}

.asp-p-linkbtn{background:none;border:0;padding:0;font:inherit;font-size:.9em;color:#6a7489;text-decoration:underline;cursor:pointer}
.asp-p-linkbtn:hover{color:#b32d2e}
.asp-p-linkbtn[disabled]{opacity:.5;cursor:not-allowed}
.asp-p-linkbtn--go{color:#2274b5;text-align:left;white-space:normal;max-width:220px;display:block}
.asp-p-linkbtn--go:hover{color:#0e1e42}
