/* Shared interaction and readability corrections. */
/* Footer rows use the same full content width, including on flex-layout pages. */
footer.nxc-footer{display:block;box-sizing:border-box;width:100%;min-width:0;flex:none;}
.nxc-footer>.footer-grid,.nxc-footer>.footer-bottom{box-sizing:border-box;width:100%;min-width:0;}
.nxc-footer>.footer-grid>div{min-width:0;}
.nxc-footer .footer-col a{max-width:100%;overflow-wrap:anywhere;}
.nxc-footer>.footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px 24px;}
.nxc-footer>.footer-bottom>span{flex:1 1 300px;min-width:0;line-height:1.8;}
.nxc-footer .footer-status{flex:0 0 auto;margin-left:auto;white-space:nowrap;}
@media(max-width:600px){
  .nxc-footer>.footer-bottom{flex-direction:column;align-items:flex-start;gap:12px;}
  .nxc-footer>.footer-bottom>span{flex:0 1 auto;}
  .nxc-footer .footer-status{margin-left:0;}
}

:root{--bg: #0a0a0a;--fg:#ededed;--fg-mid:#b4b4b4;--fg-dim:#929aa4;--line:#30363d;--display:'Space Grotesk','Noto Sans JP',sans-serif;--text-dim:#a3a3a3;}
:focus-visible{outline:2px solid #ededed!important;outline-offset:3px;}
[hidden]{display:none!important;}
.footer-col a,.footer-tagline,.footer-bottom{color:#929aa4!important;}
.footer-status::before{background:#929aa4!important;box-shadow:none!important;}
.nxc-links{align-self:stretch;}
.nxc-dd-trigger{background:none;border:0;font:inherit;cursor:pointer;}
.nxc-dd.is-open .nxc-dd-menu{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0);}
.nxc-plan:empty,.mob-user-plan:empty{display:none;}
.mob-acc-hd-label,.mob-sub{color:#a3a3a3!important;}
.mob-acc-hd.open .mob-acc-hd-label,.mob-sub.active{color:#ededed!important;}
.nxc-notice,.nxc-inline-error{font-size:14px;line-height:1.75;color:#ededed;padding:12px 16px;border:1px solid #6d4444;background:#211719;margin:12px 0;}
.nxc-notice button,.nxc-inline-error button{margin-left:12px;min-height:36px;padding:6px 12px;background:transparent;color:inherit;border:1px solid #929aa4;cursor:pointer;}
.nxc-notice small{display:block;color:#b4b4b4;}
.status-pill.unknown,.tb-srv-status.unknown{color:#f2cc60;border-color:#8c772f;opacity:1;}
.toast{white-space:normal!important;overflow-wrap:anywhere;max-width:calc(100vw - 32px);line-height:1.7;}
.contact-form input:not([type=hidden]),.contact-form textarea{display:block;width:100%;min-height:44px;padding:12px 14px;border:1px solid #71717a;background:#141414;color:#ededed;font:inherit;box-sizing:border-box;}
.contact-form textarea{min-height:180px;resize:vertical;}
.contact-form label,.field-label,.form-label{font-size:13px!important;color:#b4b4b4!important;letter-spacing:normal!important;}
.contact-form .errorlist,.field-errors{color:#fca5a5;font-size:14px;line-height:1.7;list-style:none;margin:8px 0;}
.contact-form input:focus,.contact-form textarea:focus,.form-input:focus{border-color:#ededed;outline:2px solid #ededed;outline-offset:2px;}
.type-option input{position:static!important;opacity:1!important;width:16px!important;height:16px!important;accent-color:#ededed;}
.password-toggle{background:transparent;color:#b4b4b4;border:1px solid #71717a;padding:8px 12px;margin-top:8px;min-height:36px;font:inherit;cursor:pointer;}
.field-help{font-size:13px;line-height:1.8;color:#b4b4b4;margin:8px 0;}
.field-label{display:block;}
.docs-article{scroll-margin-top:88px;margin-top:32px;padding-top:24px;border-top:1px solid #30363d;}
.docs-article h2{font-size:23px;margin-bottom:16px;}
.docs-article li{margin:12px 0 12px 24px;font-size:15px;line-height:1.9;color:#b4b4b4;}
.docs-article a{color:#ededed;text-decoration:underline;text-underline-offset:3px;}
.mobile-editor-nav{display:none;}
.table-scroll-hint{font-size:13px;color:#b4b4b4;margin:12px 0;}

/* Keep secondary information readable on the dark theme. Several page-local
   styles used #444/#555 for real labels, which falls below normal text
   contrast and made status/legal pages look disabled. */
.metric-label,.metric-sub,.detail-cell-sub,.uptime-meta,.uptime-stat-lbl,
.last-updated,.terms-meta-label,.toc-title,.article-number,
.article-group-label,.terms-footer,.note-box-label{color:#9ca3af!important;}
.toc-list li a::before,.article ol>li::before,.article ul>li::before{
  color:#9ca3af!important;
}
.badge-gray{color:#c4c9d1!important;border-color:#59616c!important;background:#15191f!important;}
.badge-gray::before{background:#9ca3af!important;}
.bc-sep,.feat-toc-num,.free-sep{color:#8f98a5!important;}

/* Horizontal comparison/navigation regions are intentionally scrollable on
   phones; expose that behavior and keep each item aligned after a swipe. */
.feat-toc,.self-service-table-wrap{
  scrollbar-color:#59616c #141414;
  scrollbar-width:thin;
  overscroll-behavior-inline:contain;
}
.feat-toc{scroll-snap-type:x proximity;}
.feat-toc-item{scroll-snap-align:start;}
@media(max-width:680px){
  button:not(.editor-tab-close),.row-btn,.act,.fm-act-btn,.fm-btn,.sb-btn,.tb-btn,.panel-btn{min-height:44px;}
  .expand-btn,.panel-btn,.editor-tab-close{min-width:44px;min-height:44px;}
  .field-input,.form-input,.contact-form input,.contact-form textarea{font-size:16px!important;}
  h1.card-title{font-size:32px!important;line-height:1.25!important;margin-bottom:24px!important;}
  .hero-title{font-size:clamp(36px,10vw,56px)!important;line-height:1.15!important;letter-spacing:-.035em!important;}
  .hero-title .phrase{white-space:nowrap;}
  .hero-sub{margin-top:24px!important;font-size:16px!important;}
  .card-row{flex-wrap:wrap!important;gap:10px!important;}
  .card-row-info{flex-basis:calc(100% - 34px);}
  .card-row-right{width:100%;justify-content:flex-end;flex-wrap:wrap;}
  .row-url{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .card-row .status-pill{margin-right:auto;}
  .modal-overlay{padding:16px;overflow-y:auto;}
  .modal,.result-modal{max-height:calc(100dvh - 32px);overflow-y:auto;}
  .mobile-editor-nav{display:flex;gap:8px;padding:6px 12px;background:#141414;}
  .mobile-editor-nav button{flex:1;color:#ededed;background:#141414;border:1px solid #71717a;padding:8px;}
  .mobile-editor-nav button[aria-pressed=true]{background:#ededed;color:#0a0a0a;}
  body.nxc-editor{--tb-h:52px;}
  .nxc-editor .toolbar{min-height:52px;}
  .nxc-editor .topbar{min-height:52px;}
  .nxc-editor .tb-title{display:none;}
  .nxc-editor .tb-right{gap:4px;margin-left:auto;}
  .nxc-editor .workbench{height:calc(100dvh - 52px - 58px - 28px);}
  .nxc-editor .sidebar{height:100%!important;flex:1;}
  .nxc-editor .editor-container{height:100%;}
  .nxc-editor[data-mobile-view=files] .editor-container{display:none;}
  .nxc-editor[data-mobile-view=edit] .sidebar,.nxc-editor[data-mobile-view=logs] .sidebar{display:none;}
  .nxc-editor[data-mobile-view=edit] .panel{display:none!important;}
  .nxc-editor[data-mobile-view=logs] .editor-body,.nxc-editor[data-mobile-view=logs] .tab-bar{display:none;}
  .nxc-editor[data-mobile-view=logs] .panel{display:flex!important;flex:1!important;height:100%!important;}
  .nxc-editor .statusbar{height:28px;overflow:hidden;background:#242424;}
  .nxc-editor .statusbar .sb-item{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .nxc-editor #sbLang,.nxc-editor #sbPos,.nxc-editor .statusbar .sb-item:last-child{display:none;}
}
@media(max-width:780px){
  .feat-toc{padding-right:48px!important;}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;}}
