/* Best Com portal components. © Rohan Kells · https://github.com/kellsrohan */
.portal-page{width:100%;max-width:1240px;margin:0 auto;padding:clamp(24px,4vw,58px) clamp(12px,3vw,32px) 70px;min-width:0}.portal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:26px;margin-bottom:30px}.portal-heading .eyebrow{display:flex;align-items:center;gap:8px}.portal-heading h1{font-size:clamp(32px,4.5vw,55px);line-height:1.08;letter-spacing:-.045em;max-width:820px;margin:14px 0}.portal-heading p{max-width:760px;margin:0}.portal-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:18px 0}.portal-heading>.portal-actions{margin-top:8px;justify-content:flex-end}.portal-page .panel{min-width:0}.portal-page .panel h2{font-size:23px;line-height:1.25;letter-spacing:-.025em}.portal-page .panel h3{font-size:20px;line-height:1.3}.portal-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.portal-topic,.portal-job{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.portal-topic h2,.portal-job h2{margin:0}.portal-topic p,.portal-job p{margin:0}.portal-topic>.btn:last-child,.portal-job>.btn:last-child{margin-top:auto}.portal-topic h2 a,.portal-job h2 a,.portal-search-results h2 a{color:inherit;text-decoration:none}.portal-topic h2 a:hover,.portal-job h2 a:hover,.portal-search-results h2 a:hover{text-decoration:underline}.portal-topic>.feature-icon{margin-bottom:6px}.portal-stack,.portal-search-results{display:grid;gap:16px}.portal-search-results h2{margin:12px 0}.portal-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px;margin:25px 0}.portal-filters .field{flex:1 1 150px;margin:0}.portal-filters .portal-filter-search{flex:2 1 230px}.portal-filters>.btn{flex:0 0 auto;margin-bottom:1px}.portal-tip{display:flex;align-items:flex-start;gap:12px;padding:18px 20px;border:1px solid var(--border,#e3dfee);border-radius:14px;background:var(--surface,#fff);font-size:13px;line-height:1.7;margin:25px 0}.portal-tip>.icon{flex-shrink:0;margin-top:2px}.portal-article-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:26px;align-items:start}.portal-article{padding:clamp(22px,4vw,42px)!important;line-height:1.8}.portal-article p{margin:14px 0}.portal-article h2{margin-top:30px}.portal-article h2:first-child{margin-top:0}.portal-article-section+ .portal-article-section{padding-top:12px}.portal-article-nav{display:grid;gap:5px;position:sticky;top:110px}.portal-article-nav a{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:10px;font-size:13px;color:inherit;text-decoration:none}.portal-article-nav a .icon{flex-shrink:0}.portal-article-nav a:hover,.portal-article-nav a[aria-current=page]{background:var(--accent-soft,#ece5fb);color:var(--primary,#6325ce)}.portal-faq{border-top:1px solid var(--border,#e3dfee);padding:15px 0}.portal-faq summary{cursor:pointer;font-weight:650;line-height:1.6}.portal-faq p{font-size:14px}.portal-contact-step{margin-top:32px;padding-top:24px;border-top:1px solid var(--border,#e3dfee)}.portal-code{white-space:pre-wrap;overflow-wrap:anywhere;background:#171220;color:#eee7ff;border:1px solid #43364f;border-radius:12px;padding:20px;line-height:1.7;font-size:12px;overflow:auto;tab-size:2}.portal-api-intro{display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:center;margin-bottom:28px}.portal-api-intro .portal-code{margin:0}.portal-form{max-width:820px;margin:20px 0}.portal-form .field{margin-bottom:20px}.portal-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.portal-form textarea{min-height:150px}.portal-check{display:flex;align-items:flex-start;gap:11px;font-size:13px;line-height:1.6;margin:18px 0}.portal-check input{width:18px;height:18px;margin-top:2px;accent-color:var(--primary,#6325ce);flex-shrink:0}.portal-page select[multiple],.dialog select[multiple]{height:auto;min-height:100px}.portal-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:100px;background:var(--accent-soft,#ece5fb);color:var(--primary,#6325ce);font-size:11px;font-weight:750;line-height:1.4;white-space:nowrap}.portal-badge .icon{width:14px;height:14px}.state-operational,.state-resolved,.state-open{background:#e5f6ed;color:#17653a}.state-degraded,.state-identified,.state-waiting,.state-high,.state-in_review{background:#fff1cf;color:#805500}.state-major_outage,.state-critical,.state-declined{background:#ffe5e8;color:#962635}.state-partial_outage,.state-major,.state-investigating{background:#ffe9db;color:#8e3f11}.state-closed,.state-archived,.state-withdrawn,.state-unknown{background:#eae9ef;color:#535160}.state-maintenance,.state-monitoring,.state-interview,.state-offered{background:#e7edff;color:#2d4a8e}.portal-record-top{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:15px;font-size:12px}.portal-record-top>span:not(.portal-badge),.portal-record-top>time{color:var(--muted,#706780)}.portal-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}.portal-status-summary{margin-bottom:25px}.portal-status-summary .portal-badge{font-size:14px;padding:8px 14px}.portal-status-summary p{margin:10px 0 0}.portal-section-title{margin:36px 0 15px}.portal-table{margin:20px 0}.portal-table table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.portal-table th,.portal-table td{vertical-align:top;padding:16px}.portal-table th{font-size:11px;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}.portal-table td p{font-size:12px;max-width:320px;margin:7px 0 0}.portal-table .portal-actions{margin:0;gap:8px}.portal-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:25px 0;font-size:12px}.portal-timeline{list-style:none;padding:0 0 0 24px;border-left:2px solid var(--border,#e3dfee);margin:30px 0 0 8px;display:grid;gap:20px}.portal-timeline>li{position:relative}.portal-timeline>li:before{position:absolute;content:"";width:12px;height:12px;border:3px solid var(--surface,#fff);border-radius:50%;background:var(--primary,#6325ce);top:30px;left:-32px}.portal-timeline time{display:block;font-size:12px;color:var(--muted,#706780);margin:12px 0}.portal-prose{white-space:pre-wrap;overflow-wrap:anywhere}.portal-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:25px 0 32px}.portal-details dt{font-size:11px;text-transform:uppercase;font-weight:700;letter-spacing:.06em;color:var(--muted,#706780);margin-bottom:5px}.portal-details dd{margin:0;font-size:14px;overflow-wrap:anywhere}.portal-side-card{position:sticky;top:110px}.portal-private-note{padding:20px;background:var(--accent-soft,#ece5fb);border-radius:12px;margin-top:28px}.portal-private-note h2{display:flex;align-items:center;gap:10px;margin-top:0}.portal-notification.is-unread{border-inline-start:4px solid var(--primary,#6325ce)}.portal-notification h2{margin:10px 0}.portal-signin{max-width:700px;text-align:center;padding:44px!important;margin:40px auto}.portal-signin>.icon{width:40px;height:40px;margin-bottom:12px}.portal-signin .portal-actions{justify-content:center}.portal-inline-form{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:24px 0}.portal-inline-form>.field{flex:1 1 140px;margin:0}.portal-inline-form>[data-error]{flex-basis:100%}.portal-inline-form>.btn{flex-shrink:0}.portal-conversation{display:grid;gap:20px;margin:26px 0}.portal-reply>header{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted,#706780)}.portal-reply>header strong{display:flex;align-items:center;gap:9px;color:var(--text,#1d1534)}.portal-reply.is-internal{border:1px dashed var(--primary,#6325ce);background:var(--accent-soft,#ece5fb)}.portal-admin-tabs{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:20px;border-bottom:1px solid var(--border,#e3dfee);margin-bottom:24px}.portal-admin-tabs a{display:flex;align-items:center;gap:8px;padding:11px 14px;border-radius:10px;color:inherit;text-decoration:none;font-size:13px;border:1px solid transparent}.portal-admin-tabs a:hover{border-color:var(--border,#e3dfee)}.portal-admin-tabs a[aria-current=page]{background:var(--primary,#6325ce);color:#fff}.portal-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.portal-stats article>span{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:650}.portal-stats strong{display:block;font-size:38px;letter-spacing:-.06em;margin:18px 0 5px}.portal-stats p{font-size:11px;color:var(--muted,#706780);margin:0}.portal-colours{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.portal-colours input[type=color]{height:48px;min-width:0;padding:4px}.portal-social-field{display:flex;align-items:center;gap:14px}.portal-social-field>.field{flex:1}.portal-social-field>img{margin-top:4px;flex-shrink:0}.portal-page [role=alert]{scroll-margin-top:100px}.portal-page a:focus-visible,.portal-page button:focus-visible,.portal-page summary:focus-visible{outline:3px solid var(--primary,#6325ce);outline-offset:4px}.portal-page .notice>.icon{vertical-align:middle;margin-right:8px}
[data-theme=dark] .state-operational,[data-theme=dark] .state-resolved,[data-theme=dark] .state-open{background:#153b2a;color:#a1e9bd}[data-theme=dark] .state-major_outage,[data-theme=dark] .state-critical,[data-theme=dark] .state-declined{background:#50212b;color:#ffc0c8}[data-theme=dark] .state-closed,[data-theme=dark] .state-unknown,[data-theme=dark] .state-archived,[data-theme=dark] .state-withdrawn{background:#34313f;color:#d5d0e1}[data-theme=dark] .state-degraded,[data-theme=dark] .state-waiting,[data-theme=dark] .state-high,[data-theme=dark] .state-in_review{background:#493b1e;color:#ffe6a7}
@media(max-width:1100px){.portal-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-article-layout{grid-template-columns:minmax(0,1fr) 230px}.portal-heading{flex-direction:column;gap:8px}.portal-heading>.portal-actions{justify-content:flex-start;margin:0}.portal-table th,.portal-table td{padding:13px}.portal-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.portal-page{padding:24px 10px 60px}.portal-card-grid,.portal-article-layout,.portal-api-intro,.portal-form-grid{grid-template-columns:1fr}.portal-article-nav,.portal-side-card{position:static}.portal-article-nav{order:2}.portal-article-layout{gap:18px}.portal-article{padding:22px!important}.portal-colours{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-details{grid-template-columns:1fr}.portal-filters{gap:10px}.portal-filters .field{flex-basis:calc(50% - 10px)}.portal-filters .portal-filter-search{flex-basis:100%}.portal-pagination{align-items:flex-start;font-size:10px}.portal-pagination .btn{padding:8px}.portal-pagination>span{text-align:center;flex:1}.portal-table{overflow:auto}.portal-table table{min-width:580px}.portal-admin-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:12px}.portal-admin-tabs>a{white-space:nowrap}.portal-check-grid{grid-template-columns:1fr}.portal-reply>header{align-items:flex-start}.portal-heading h1{font-size:34px}.portal-code{font-size:11px;padding:16px}.portal-signin{padding:28px!important}}
@media(prefers-reduced-motion:reduce){.portal-page *{scroll-behavior:auto!important}}
