:root{
  --bg:#f4f7fb;
  --panel:#ffffff;
  --panel-soft:#f8fafc;
  --text:#132033;
  --muted:#64748b;
  --line:#dbe5ef;
  --line-soft:#edf2f7;

  --nav:#102033;
  --nav-2:#162b44;
  --nav-3:#1f3b5c;
  --brand:#14b8a6;
  --brand-dark:#0f766e;
  --brand-soft:#dffcf8;
  --accent:#2563eb;

  --green:#16a34a;
  --green-soft:#dcfce7;
  --red:#dc2626;
  --red-soft:#fee2e2;
  --amber:#d97706;
  --amber-soft:#fef3c7;
  --blue:#2563eb;
  --blue-soft:#dbeafe;

  --radius-sm:8px;
  --radius:14px;
  --radius-lg:20px;
  --shadow:0 12px 34px rgba(15,23,42,.08);
  --shadow-soft:0 8px 22px rgba(15,23,42,.06);

  --sidebar-width:282px;
  --subbar-height:58px;
  --footer-height:40px;
}

*{box-sizing:border-box}

html{
  min-height:100%;
  background:var(--bg);
}

body{
  margin:0;
  min-height:100vh;
  font-family:Inter,Arial,Helvetica,sans-serif;
  background:
    radial-gradient(circle at top left, rgba(20,184,166,.10), transparent 32rem),
    linear-gradient(180deg,#f7fafc 0%,#eef4fa 100%);
  color:var(--text);
}

.hidden{display:none!important}

/* -------------------------------------------------------------------
   Stage 96.1A: WISP Forge original design foundation
   CSS-only. No routing, no timers, no listeners.
------------------------------------------------------------------- */

.login-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(20,184,166,.22), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgba(37,99,235,.16), transparent 24rem),
    linear-gradient(135deg,#0b1726,#17304d 55%,#0f766e);
}

.login-card{
  width:min(440px,100%);
  background:rgba(255,255,255,.96);
  border:1px solid rgba(255,255,255,.72);
  border-radius:24px;
  padding:32px;
  box-shadow:0 28px 80px rgba(2,8,23,.32);
  backdrop-filter:blur(14px);
}

.brand-row{
  display:flex;
  gap:16px;
  align-items:center;
  margin-bottom:22px;
}

.brand-row h1{
  margin:0;
  font-size:28px;
  letter-spacing:-.04em;
  color:#0f172a;
}

.brand-row p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:14px;
}

.brand-mark,
.logo-box{
  background:linear-gradient(135deg,var(--brand),#2563eb);
  color:#fff;
  font-weight:900;
  display:grid;
  place-items:center;
  box-shadow:0 14px 30px rgba(20,184,166,.24);
  letter-spacing:.02em;
}

.brand-mark{
  width:62px;
  height:62px;
  border-radius:18px;
  font-size:20px;
}

.logo-box{
  width:46px;
  height:46px;
  border-radius:15px;
  font-size:15px;
  flex:0 0 auto;
}

label{
  display:block;
  margin-top:15px;
  font-weight:800;
  font-size:12px;
  color:#334155;
  letter-spacing:.02em;
}

input,
select,
textarea{
  width:100%;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:12px;
  margin-top:7px;
  background:#fff;
  color:var(--text);
  outline:none;
  font:inherit;
  transition:border-color .14s ease, box-shadow .14s ease, background-color .14s ease;
}

textarea{min-height:92px;resize:vertical}

input:focus,
select:focus,
textarea:focus{
  border-color:rgba(20,184,166,.75);
  box-shadow:0 0 0 4px rgba(20,184,166,.12);
}

button{
  cursor:pointer;
  border:0;
  border-radius:12px;
  padding:10px 14px;
  font-weight:800;
  font:inherit;
  line-height:1.1;
}

#login-button{
  width:100%;
  margin-top:22px;
  background:linear-gradient(135deg,var(--brand),var(--brand-dark));
  color:#fff;
  min-height:46px;
  box-shadow:0 14px 28px rgba(20,184,166,.24);
}

.error{
  color:var(--red);
  min-height:18px;
  font-weight:700;
}

/* Left navigation shell built from the existing HTML only */
#app-screen{
  min-height:100vh;
}

.topbar{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--sidebar-width);
  height:100vh;
  background:
    linear-gradient(180deg,rgba(255,255,255,.04),transparent 18rem),
    linear-gradient(180deg,var(--nav),#0b1726);
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  padding:18px 14px;
  gap:16px;
  box-shadow:18px 0 50px rgba(15,23,42,.15);
  z-index:50;
}

.logo-area{
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
  padding:6px 8px 16px;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.logo-area strong{
  display:block;
  font-size:18px;
  letter-spacing:-.03em;
}

.logo-area span{
  display:block;
  margin-top:3px;
  font-size:12px;
  color:#b6c7db;
}

.top-menu{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:5px;
  flex:1;
  overflow:auto;
  padding:2px;
  scrollbar-width:thin;
}

.top-menu a{
  color:#dbeafe;
  text-decoration:none;
  padding:11px 12px;
  white-space:nowrap;
  font-size:14px;
  border:1px solid transparent;
  border-radius:12px;
  display:flex;
  align-items:center;
  gap:8px;
  transition:background-color .14s ease,border-color .14s ease,color .14s ease,transform .14s ease;
}

.top-menu a:hover{
  color:#fff;
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.08);
  transform:translateX(2px);
}

.top-menu a.active{
  color:#fff;
  background:linear-gradient(135deg,rgba(20,184,166,.26),rgba(37,99,235,.18));
  border-color:rgba(20,184,166,.34);
  box-shadow:inset 3px 0 0 var(--brand);
}

.user-chip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  white-space:nowrap;
  padding:14px 8px 2px;
  border-top:1px solid rgba(255,255,255,.10);
}

.user-chip span{
  color:#dbeafe;
  font-size:13px;
  overflow:hidden;
  text-overflow:ellipsis;
}

.user-chip button{
  background:rgba(255,255,255,.10);
  color:#fff;
  border:1px solid rgba(255,255,255,.10);
  padding:9px 11px;
  border-radius:11px;
}

.submenu-bar{
  position:sticky;
  top:0;
  margin-left:var(--sidebar-width);
  min-height:var(--subbar-height);
  background:rgba(255,255,255,.88);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:7px;
  padding:10px 22px;
  flex-wrap:wrap;
  z-index:30;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
  backdrop-filter:blur(14px);
}

.submenu-bar a{
  font-size:13px;
  text-decoration:none;
  color:#334155;
  background:#fff;
  border:1px solid var(--line);
  padding:8px 11px;
  border-radius:999px;
  box-shadow:0 2px 8px rgba(15,23,42,.03);
  transition:background-color .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease;
}

.submenu-bar a.active,
.submenu-bar a:hover{
  background:var(--brand-soft);
  border-color:rgba(20,184,166,.48);
  color:var(--brand-dark);
  box-shadow:0 5px 14px rgba(20,184,166,.10);
}

.page{
  margin-left:var(--sidebar-width);
  padding:24px;
  padding-bottom:calc(var(--footer-height) + 34px);
  min-height:calc(100vh - var(--footer-height));
}

.page-title-row{
  background:
    linear-gradient(135deg,rgba(255,255,255,.98),rgba(248,250,252,.92));
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  box-shadow:var(--shadow-soft);
}

.page-title-row h1{
  margin:0;
  font-size:28px;
  letter-spacing:-.045em;
  color:#0f172a;
}

.page-title-row p{
  margin:7px 0 0;
  color:var(--muted);
  line-height:1.45;
}

.page-actions{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.primary{
  background:linear-gradient(135deg,var(--brand),var(--brand-dark));
  color:#fff;
  box-shadow:0 10px 22px rgba(20,184,166,.20);
}

.secondary{
  background:#eef4fb;
  color:#1e293b;
  border:1px solid #d8e4ef;
}

.danger{
  background:var(--red-soft);
  color:#991b1b;
  border:1px solid #fecaca;
}

.kpi-row{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:18px 0;
}

.kpi{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow-soft);
  position:relative;
  overflow:hidden;
}

.kpi::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:linear-gradient(180deg,var(--brand),#2563eb);
}

.kpi span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.kpi strong{
  display:block;
  margin-top:8px;
  font-size:25px;
  color:#0f172a;
  letter-spacing:-.035em;
}

.panel{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  margin-top:16px;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}

.panel-header{
  padding:15px 17px;
  border-bottom:1px solid var(--line-soft);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:linear-gradient(180deg,#fff,#fbfdff);
}

.panel-header h2{
  margin:0;
  font-size:18px;
  letter-spacing:-.025em;
  color:#0f172a;
}

.panel-header input{
  width:280px;
  max-width:100%;
  margin:0;
}

.table-wrap{
  overflow-x:auto;
  background:#fff;
}

table{
  border-collapse:separate;
  border-spacing:0;
  width:100%;
  font-size:14px;
}

th{
  background:#f7fafc;
  text-align:left;
  padding:12px;
  border-bottom:1px solid var(--line);
  color:#475569;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.035em;
  white-space:nowrap;
}

td{
  padding:12px;
  border-bottom:1px solid var(--line-soft);
  vertical-align:middle;
}

tbody tr:hover{
  background:#fbfeff;
}

td:last-child,
th:last-child{
  white-space:nowrap;
}

.badge{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:5px 9px;
  font-size:12px;
  font-weight:900;
  line-height:1;
}

.badge.ok{color:#166534;background:var(--green-soft)}
.badge.warn{color:#92400e;background:var(--amber-soft)}
.badge.no{color:#7f1d1d;background:var(--red-soft)}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  padding:17px;
}

.full{grid-column:1/-1}

.footer{
  position:fixed;
  left:var(--sidebar-width);
  right:0;
  bottom:0;
  min-height:var(--footer-height);
  background:rgba(255,255,255,.92);
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 18px;
  font-size:13px;
  color:#475569;
  z-index:40;
  backdrop-filter:blur(12px);
}

.footer a{
  color:var(--brand-dark);
  text-decoration:none;
  font-weight:800;
}

.shell-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}

.shell-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:15px;
  box-shadow:var(--shadow-soft);
}

.shell-card strong{
  display:block;
  margin-bottom:6px;
  color:#0f172a;
}

/* Forms, tabs and modal-related shared styling */
.form-tabs{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  background:#f8fafc;
}

.form-tabs .tab{
  background:#eef4fb;
  color:#334155;
  border:1px solid #d8e4ef;
  border-radius:999px;
  padding:9px 12px;
}

.form-tabs .tab.active{
  background:linear-gradient(135deg,var(--brand),var(--brand-dark));
  color:#fff;
  border-color:transparent;
}

.tab-page{
  display:none;
  padding:17px;
}

.tab-page.active{display:block}

.section-title{
  font-size:18px;
  font-weight:900;
  margin-bottom:12px;
  color:#0f172a;
  letter-spacing:-.02em;
}

.notice-box{
  background:#fff8ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  border-radius:12px;
  padding:13px;
  margin-bottom:12px;
}

.sticky-actions{
  display:flex;
  gap:9px;
  justify-content:flex-end;
  padding:14px 16px;
  border-top:1px solid var(--line);
  background:#f8fafc;
}

.inline-actions{padding:0}
.customer-form-panel{overflow:visible}

.duplicate-warning{
  background:#fff1f2;
  border:1px solid #fecdd3;
  color:#9f1239;
  border-radius:12px;
  padding:13px;
  margin:14px 16px;
}

.duplicate-warning ul{
  margin:8px 0 0 20px;
  padding:0;
}

.profile-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:16px;
}

.full-panel{grid-column:1/-1}

.detail-list{padding:14px 16px}

.detail-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid var(--line-soft);
  padding:10px 0;
}

.detail-row span{color:var(--muted)}
.detail-row strong{text-align:right;color:#0f172a}

.notes-box{
  padding:16px;
  white-space:pre-wrap;
}

.profile-actions{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  padding:16px;
}

.import-log{
  padding:16px;
  font-family:Arial,Helvetica,sans-serif;
  font-size:13px;
  max-height:360px;
  overflow:auto;
}

.log-info,
.log-ok,
.log-error{
  border-radius:10px;
  padding:9px;
  margin-bottom:7px;
  border:1px solid transparent;
}

.log-info{background:#eff6ff;border-color:#bfdbfe;color:#1e40af}
.log-ok{background:#ecfdf5;border-color:#bbf7d0;color:#166534}
.log-error{background:#fef2f2;border-color:#fecaca;color:#991b1b}

.request-detail{padding:16px}

.detail-block{
  border-bottom:1px solid var(--line-soft);
  padding:12px 0;
}

.detail-block span{
  display:block;
  color:var(--muted);
  font-weight:900;
  margin-bottom:6px;
}

.detail-block p{
  margin:0;
  color:var(--text);
  background:#f8fafc;
  border:1px solid var(--line-soft);
  border-radius:12px;
  padding:10px;
}

.request-actions{margin-top:14px}

.merge-preview-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  padding:16px;
}

.merge-card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fbfdff;
  padding:14px;
}

.merge-card h3{margin:0 0 10px 0}

.merge-warning{
  margin:0 16px 12px 16px;
  background:#fff8ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  border-radius:12px;
  padding:12px;
}

.merge-actions{padding:0 16px 16px 16px}

.code-box{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  background:#0f172a;
  color:#e5e7eb;
  border-radius:14px;
  margin:16px;
  padding:14px;
  line-height:1.7;
  overflow:auto;
}

.log-viewer{
  background:#0f172a;
  color:#d1d5db;
  margin:16px;
  border-radius:14px;
  padding:12px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  overflow:auto;
}

.log-line{
  display:grid;
  grid-template-columns:120px 70px minmax(280px,1fr);
  gap:10px;
  padding:7px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.log-line strong{color:#93c5fd}
.log-line em{font-style:normal;color:#e5e7eb}

/* Button feel: kept soft to avoid the old flashing behaviour */
button,
.button,
.primary,
.secondary,
.danger{
  cursor:pointer;
  transition:transform .10s ease,box-shadow .10s ease,opacity .10s ease,background-color .10s ease,border-color .10s ease;
}

button:hover,
.button:hover,
.primary:hover,
.secondary:hover,
.danger:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(15,23,42,.10);
}

button:active,
.button:active,
.primary:active,
.secondary:active,
.danger:active{
  transform:translateY(0);
  box-shadow:0 3px 8px rgba(15,23,42,.08);
}

button:disabled{
  cursor:not-allowed;
  opacity:.58;
  transform:none;
  box-shadow:none;
}

.quick-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  padding:16px;
}

.quick-grid button{
  width:100%;
  min-height:44px;
}

/* Existing stage/page compatibility helpers */
[class*="modal"],
[class*="popup"]{
  scrollbar-width:thin;
}

.stage828-modal-backdrop,
[data-stage828-modal]{
  color:var(--text);
}


/* -------------------------------------------------------------------
   Stage 96.1C: Sidebar fly-out hover bridge fix
   Fixes submenu closing while moving mouse from left menu to fly-out.
------------------------------------------------------------------- */

/* -------------------------------------------------------------------
   Stage 96.1B: Sidebar fly-out menu fix
   CSS-only. Keeps Stage 83.1 dropdown HTML, but makes submenus open
   to the right of the sidebar instead of downward over the menu.
------------------------------------------------------------------- */

.submenu-bar.stage831-submenu-hidden{
  display:none!important;
}

.topbar{
  overflow:visible!important;
}

.top-menu{
  overflow:visible!important;
  position:relative;
  z-index:70;
}

#top-menu .stage831-menu-item{
  position:relative;
  display:block;
  width:100%;
}

#top-menu .stage831-menu-top{
  width:100%;
  min-height:40px;
  justify-content:space-between;
  border-radius:12px;
}

#top-menu .stage831-caret{
  margin-left:auto;
  opacity:.72;
  font-size:11px;
  transform:rotate(-90deg);
}

#top-menu .stage831-menu-item.active > .stage831-menu-top{
  color:#fff;
  background:linear-gradient(135deg,rgba(20,184,166,.26),rgba(37,99,235,.18));
  border-color:rgba(20,184,166,.34);
  box-shadow:inset 3px 0 0 var(--brand);
}

#top-menu .stage831-menu-item::after{
  content:"";
  display:none;
  position:absolute;
  left:100%;
  top:-6px;
  width:18px;
  height:calc(100% + 12px);
  background:transparent;
  z-index:9998;
}

#top-menu .stage831-menu-item:hover::after,
#top-menu .stage831-menu-item:focus-within::after{
  display:block;
}

#top-menu .stage831-dropdown{
  display:none!important;
  position:absolute;
  left:calc(100% + 2px);
  top:0;
  width:292px;
  max-height:calc(100vh - 48px);
  overflow-y:auto;
  padding:8px;
  background:#ffffff;
  color:#132033;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 24px 60px rgba(15,23,42,.22);
  z-index:9999;
}

#top-menu .stage831-menu-item:hover > .stage831-dropdown,
#top-menu .stage831-menu-item:focus-within > .stage831-dropdown{
  display:block!important;
}

#top-menu .stage831-menu-item:nth-last-child(-n+3) > .stage831-dropdown{
  top:auto;
  bottom:0;
}

#top-menu .stage831-sub-link{
  display:flex;
  align-items:center;
  width:100%;
  min-height:34px;
  padding:8px 10px;
  color:#334155!important;
  background:transparent!important;
  border:1px solid transparent!important;
  border-radius:10px!important;
  font-size:13px!important;
  line-height:1.25;
  text-decoration:none;
  white-space:normal!important;
  box-shadow:none!important;
  transform:none!important;
}

#top-menu .stage831-sub-link:hover,
#top-menu .stage831-sub-link.active{
  color:var(--brand-dark)!important;
  background:var(--brand-soft)!important;
  border-color:rgba(20,184,166,.38)!important;
}

#top-menu .stage831-menu-separator{
  height:1px;
  margin:7px 4px;
  background:var(--line);
}

/* Keep fly-outs usable on smaller screens by returning to a normal drop-down. */
@media(max-width:900px){
  #top-menu .stage831-menu-item{
    width:auto;
  }

  #top-menu .stage831-caret{
    transform:rotate(0deg);
  }

  #top-menu .stage831-dropdown{
    position:absolute;
    left:0;
    top:calc(100% + 8px);
    bottom:auto!important;
    width:270px;
    max-height:70vh;
  }
}

/* Responsive layout */
@media(max-width:1100px){
  :root{
    --sidebar-width:238px;
  }

  .top-menu a{
    font-size:13px;
    padding:10px;
  }

  .kpi-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .shell-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:900px){
  :root{
    --sidebar-width:0px;
    --subbar-height:auto;
  }

  .topbar{
    position:relative;
    width:100%;
    height:auto;
    min-height:72px;
    flex-direction:row;
    align-items:center;
    padding:12px;
    gap:12px;
    overflow:auto;
  }

  .logo-area{
    min-width:205px;
    padding:0;
    border-bottom:0;
  }

  .top-menu{
    flex-direction:row;
    align-items:center;
    overflow-x:auto;
  }

  .top-menu a{
    padding:9px 10px;
  }

  .user-chip{
    padding:0;
    border-top:0;
  }

  .submenu-bar,
  .page,
  .footer{
    margin-left:0;
    left:0;
  }

  .submenu-bar{
    position:relative;
    top:auto;
    padding:9px 12px;
  }

  .page{
    padding:16px;
    padding-bottom:calc(var(--footer-height) + 34px);
  }

  .page-title-row{
    display:block;
  }

  .page-actions{
    margin-top:12px;
    justify-content:flex-start;
  }

  .kpi-row,
  .form-grid,
  .shell-grid,
  .profile-grid,
  .merge-preview-grid{
    grid-template-columns:1fr;
  }

  .full-panel{grid-column:auto}

  .footer{
    position:fixed;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    height:auto;
    min-height:52px;
    padding:7px 12px;
  }
}

@media(max-width:560px){
  .login-card{
    padding:24px;
    border-radius:20px;
  }

  .brand-row h1{
    font-size:24px;
  }

  .page{
    padding:12px;
    padding-bottom:78px;
  }

  .panel-header{
    align-items:flex-start;
    flex-direction:column;
  }

  .panel-header input{
    width:100%;
  }

  .kpi strong{
    font-size:22px;
  }

  td,
  th{
    padding:10px;
  }
}


/* -------------------------------------------------------------------
   Stage 96.1D: Desktop sidebar layout guard
   CSS-only. Prevents the desktop sidebar from falling into the mobile
   layout on browsers with zoom/scaling, which caused pages to appear
   far down below the menu area.
------------------------------------------------------------------- */

@media(min-width:760px){
  :root{
    --sidebar-width:282px;
  }

  #app-screen{
    min-height:100vh;
  }

  .topbar{
    position:fixed!important;
    inset:0 auto 0 0!important;
    width:var(--sidebar-width)!important;
    height:100vh!important;
    min-height:100vh!important;
    flex-direction:column!important;
    align-items:stretch!important;
    padding:18px 14px!important;
    gap:16px!important;
    overflow:visible!important;
    z-index:50!important;
  }

  .logo-area{
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
    padding:6px 8px 16px!important;
    border-bottom:1px solid rgba(255,255,255,.10)!important;
  }

  .top-menu{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:5px!important;
    flex:1 1 auto!important;
    overflow:visible!important;
    padding:2px!important;
    position:relative!important;
    z-index:70!important;
  }

  .top-menu a{
    white-space:nowrap!important;
  }

  .user-chip{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    padding:14px 8px 2px!important;
    border-top:1px solid rgba(255,255,255,.10)!important;
  }

  .submenu-bar{
    position:sticky!important;
    top:0!important;
    margin-left:var(--sidebar-width)!important;
    left:auto!important;
    min-height:var(--subbar-height)!important;
    padding:10px 22px!important;
    z-index:30!important;
  }

  .page{
    margin-left:var(--sidebar-width)!important;
    padding:24px!important;
    padding-bottom:calc(var(--footer-height) + 34px)!important;
    min-height:calc(100vh - var(--footer-height))!important;
  }

  .footer{
    position:fixed!important;
    left:var(--sidebar-width)!important;
    right:0!important;
    bottom:0!important;
    min-height:var(--footer-height)!important;
    height:var(--footer-height)!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    padding:0 18px!important;
    z-index:40!important;
  }

  .stage833-edit-customer-page{
    margin-top:0!important;
  }

  .stage833-title-row{
    margin-top:0!important;
  }
}


/* -------------------------------------------------------------------
   Stage 96.2A: WISP Forge Customer page visual pilot
   CSS-only. This overrides older Stage 82.2 / Stage 83.3 page styling
   without touching app.js, routes, hashchange, timers, or backend logic.
------------------------------------------------------------------- */

/* Customer 360 dashboard */
.page .stage822-page{
  padding:0!important;
  background:transparent!important;
  min-height:auto!important;
}

.page .stage822-title-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin:0 0 16px!important;
  flex-wrap:wrap!important;
}

.page .stage822-title-row h1{
  margin:0!important;
  font-size:30px!important;
  line-height:1.12!important;
  font-weight:900!important;
  letter-spacing:-.045em!important;
  color:#0f172a!important;
}

.page .stage822-top-actions{
  display:flex!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
}

.page .stage822-header-card{
  background:
    radial-gradient(circle at top right, rgba(20,184,166,.13), transparent 22rem),
    linear-gradient(135deg,#ffffff,#f8fbfe)!important;
  border:1px solid var(--line)!important;
  border-radius:20px!important;
  padding:18px!important;
  margin:0 0 16px!important;
  box-shadow:var(--shadow-soft)!important;
}

.page .stage822-header-card .stage822-title-row{
  margin:0!important;
}

.page .stage822-customer-name{
  font-size:22px!important;
  line-height:1.22!important;
  font-weight:900!important;
  letter-spacing:-.035em!important;
  color:#0f172a!important;
}

.page .stage822-vip{
  background:linear-gradient(135deg,var(--brand),var(--brand-dark))!important;
  color:#ffffff!important;
  text-align:center!important;
  font-weight:900!important;
  padding:9px 12px!important;
  border-radius:999px!important;
  margin-top:14px!important;
  box-shadow:0 10px 22px rgba(20,184,166,.16)!important;
}

.page .stage822-grid{
  display:grid!important;
  grid-template-columns:minmax(280px,.95fr) minmax(340px,1.08fr) minmax(280px,.95fr)!important;
  gap:16px!important;
  align-items:start!important;
}

.page .stage822-card{
  background:rgba(255,255,255,.98)!important;
  border:1px solid var(--line)!important;
  border-radius:18px!important;
  margin-bottom:16px!important;
  overflow:hidden!important;
  box-shadow:var(--shadow-soft)!important;
}

.page .stage822-card-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:14px 15px!important;
  border-bottom:1px solid var(--line-soft)!important;
  background:linear-gradient(180deg,#ffffff,#fbfdff)!important;
}

.page .stage822-card-head h2{
  margin:0!important;
  font-size:17px!important;
  line-height:1.18!important;
  font-weight:900!important;
  letter-spacing:-.02em!important;
  color:#0f172a!important;
}

.page .stage822-card-actions{
  display:flex!important;
  gap:6px!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
}

.page .stage822-card-body{
  padding:12px!important;
}

.page .stage822-btn,
.page .stage822-icon{
  border:1px solid transparent!important;
  border-radius:11px!important;
  padding:8px 11px!important;
  cursor:pointer!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;
  box-shadow:none!important;
  transition:transform .10s ease,box-shadow .10s ease,opacity .10s ease,background-color .10s ease,border-color .10s ease!important;
}

.page .stage822-icon{
  min-width:30px!important;
  min-height:30px!important;
  padding:7px 8px!important;
}

.page .stage822-btn:hover,
.page .stage822-icon:hover{
  transform:translateY(-1px)!important;
  box-shadow:0 8px 16px rgba(15,23,42,.10)!important;
}

.page .stage822-btn.green,
.page .stage822-icon.green{
  background:var(--green-soft)!important;
  color:#166534!important;
  border-color:#bbf7d0!important;
}

.page .stage822-btn.blue,
.page .stage822-icon.blue{
  background:var(--blue-soft)!important;
  color:#1d4ed8!important;
  border-color:#bfdbfe!important;
}

.page .stage822-btn.yellow,
.page .stage822-icon.yellow{
  background:var(--amber-soft)!important;
  color:#92400e!important;
  border-color:#fde68a!important;
}

.page .stage822-btn.red,
.page .stage822-icon.red{
  background:var(--red-soft)!important;
  color:#991b1b!important;
  border-color:#fecaca!important;
}

.page .stage822-btn.dark,
.page .stage822-icon.dark{
  background:#e2e8f0!important;
  color:#0f172a!important;
  border-color:#cbd5e1!important;
}

.page .stage822-icon.purple{
  background:#f3e8ff!important;
  color:#7e22ce!important;
  border-color:#e9d5ff!important;
}

.page .stage822-icon.light{
  background:#ffffff!important;
  border:1px solid var(--line)!important;
  color:#334155!important;
}

.page .stage822-mini-actions{
  display:flex!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  margin:0 0 10px!important;
}

.page .stage822-info-table,
.page .stage822-list-table{
  width:100%!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  font-size:13px!important;
}

.page .stage822-info-table th{
  width:42%!important;
  text-align:right!important;
  padding:9px 10px!important;
  border-bottom:1px solid var(--line-soft)!important;
  background:#f8fafc!important;
  color:#475569!important;
  font-size:12px!important;
  text-transform:uppercase!important;
  letter-spacing:.045em!important;
  white-space:nowrap!important;
}

.page .stage822-info-table td{
  padding:9px 10px!important;
  border-bottom:1px solid var(--line-soft)!important;
  background:#ffffff!important;
  color:#0f172a!important;
  font-size:13px!important;
}

.page .stage822-list-table th{
  background:#f8fafc!important;
  color:#475569!important;
  font-size:11px!important;
  text-transform:uppercase!important;
  letter-spacing:.045em!important;
  padding:9px!important;
  border-bottom:1px solid var(--line-soft)!important;
}

.page .stage822-list-table td{
  padding:9px!important;
  border-bottom:1px solid var(--line-soft)!important;
  color:#0f172a!important;
}

.page .stage822-session-row{
  display:flex!important;
  justify-content:space-between!important;
  gap:12px!important;
  border-bottom:1px solid var(--line-soft)!important;
  padding:11px 4px!important;
  font-size:13px!important;
  align-items:flex-start!important;
}

.page .stage822-session-row:last-child{
  border-bottom:0!important;
}

.page .stage822-row-actions{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  white-space:nowrap!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
}

.page .stage822-muted{
  color:var(--muted)!important;
}

.page .stage822-link{
  color:var(--brand-dark)!important;
  text-decoration:none!important;
  font-weight:800!important;
}

.page .stage822-link:hover{
  text-decoration:underline!important;
}

.page .stage822-usage{
  border:1px solid var(--line)!important;
  border-radius:999px!important;
  padding:4px 8px!important;
  font-size:11px!important;
  font-weight:900!important;
  background:#fff!important;
  color:#334155!important;
}

.page .stage822-pill{
  display:inline-flex!important;
  align-items:center!important;
  border-radius:999px!important;
  background:#eef4fb!important;
  border:1px solid var(--line)!important;
  color:#334155!important;
  padding:4px 7px!important;
  font-size:11px!important;
  font-weight:900!important;
  margin-left:4px!important;
}

.page .stage822-pill.blue{
  background:var(--blue-soft)!important;
  color:#1d4ed8!important;
  border-color:#bfdbfe!important;
}

.page .stage822-empty{
  color:var(--muted)!important;
  padding:12px!important;
  background:#fbfdff!important;
  border:1px dashed var(--line)!important;
  border-radius:12px!important;
}

.page .stage822-map-placeholder,
.page .stage822-chart-placeholder{
  min-height:120px!important;
  background:
    linear-gradient(135deg,rgba(20,184,166,.05),rgba(37,99,235,.05)),
    #f8fafc!important;
  border:1px dashed #b8c8dd!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:var(--muted)!important;
  border-radius:14px!important;
  margin-top:10px!important;
}

.page .stage822-loading{
  padding:26px!important;
  font-size:17px!important;
  background:#fff!important;
  border:1px solid var(--line)!important;
  border-radius:18px!important;
  box-shadow:var(--shadow-soft)!important;
}

/* Edit Customer picker/search page */
.page .stage833-edit-customer-page{
  min-height:calc(100vh - 150px)!important;
  background:
    radial-gradient(circle at top right, rgba(20,184,166,.07), transparent 24rem),
    #ffffff!important;
  border:1px solid var(--line)!important;
  border-radius:22px!important;
  padding:24px!important;
  box-shadow:var(--shadow-soft)!important;
}

.page .stage833-title-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  flex-wrap:wrap!important;
  margin:0!important;
}

.page .stage833-title-row h1{
  margin:0!important;
  font-size:30px!important;
  font-weight:900!important;
  letter-spacing:-.045em!important;
  color:#0f172a!important;
}

.page .stage833-actions{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  margin-left:auto!important;
  flex-wrap:wrap!important;
}

.page .stage833-add-btn{
  border:1px solid #bbf7d0!important;
  background:var(--green-soft)!important;
  color:#166534!important;
  border-radius:12px!important;
  padding:10px 14px!important;
  font-weight:900!important;
  cursor:pointer!important;
  white-space:nowrap!important;
}

.page .stage833-label{
  font-weight:900!important;
  font-size:13px!important;
  color:#334155!important;
  white-space:nowrap!important;
}

.page .stage833-search-wrap{
  position:relative!important;
  width:min(430px,40vw)!important;
  min-width:300px!important;
  z-index:4000!important;
}

.page .stage833-search-input{
  width:100%!important;
  height:40px!important;
  border:1px solid var(--line)!important;
  border-radius:12px!important;
  box-sizing:border-box!important;
  padding:8px 36px 8px 12px!important;
  font-size:14px!important;
  outline:none!important;
  background:#fff!important;
}

.page .stage833-search-input:focus{
  border-color:rgba(20,184,166,.75)!important;
  box-shadow:0 0 0 4px rgba(20,184,166,.12)!important;
}

.page .stage833-results{
  top:44px!important;
  background:#fff!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  box-shadow:0 18px 42px rgba(15,23,42,.16)!important;
  max-height:320px!important;
  padding:6px!important;
}

.page .stage833-result{
  border-radius:10px!important;
  padding:9px 10px!important;
}

.page .stage833-result:hover,
.page .stage833-result:focus{
  background:var(--brand-soft)!important;
  color:var(--brand-dark)!important;
}

.page .stage833-divider{
  border-color:var(--line-soft)!important;
  margin-top:18px!important;
}

.page .stage833-blank-space{
  min-height:420px!important;
}

/* Keep customer page usable on smaller screens */
@media(max-width:1250px){
  .page .stage822-grid{
    grid-template-columns:1fr 1fr!important;
  }

  .page .stage822-grid > div:nth-child(3){
    grid-column:1 / -1!important;
  }
}

@media(max-width:900px){
  .page .stage822-grid{
    grid-template-columns:1fr!important;
  }

  .page .stage833-actions{
    width:100%!important;
    margin-left:0!important;
    align-items:stretch!important;
  }

  .page .stage833-search-wrap{
    width:100%!important;
    min-width:0!important;
  }
}



/* -------------------------------------------------------------------
   Stage 101.0O: Platform Sidebar 50 Percent Narrower
   CSS-only. Built clean from Stage 101.0N confirmed-good.
   Keeps menu behaviour, fly-out submenu behaviour, footer and page layout.
------------------------------------------------------------------- */
@media(min-width:760px){
  :root{
    --sidebar-width:141px !important;
  }

  .topbar{
    width:var(--sidebar-width) !important;
    padding:16px 8px !important;
    gap:12px !important;
  }

  .logo-area{
    gap:8px !important;
    padding:6px 4px 14px !important;
  }

  .logo-box{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    border-radius:12px !important;
    font-size:12px !important;
  }

  .logo-area strong{
    font-size:14px !important;
    line-height:1.05 !important;
    letter-spacing:-.03em !important;
  }

  .logo-area span{
    font-size:10px !important;
    line-height:1.15 !important;
    margin-top:2px !important;
  }

  .top-menu{
    gap:4px !important;
    padding:1px !important;
  }

  .top-menu a,
  #top-menu .stage831-menu-top{
    min-height:36px !important;
    padding:8px 8px !important;
    font-size:12px !important;
    border-radius:10px !important;
    gap:6px !important;
  }

  #top-menu .stage831-caret{
    font-size:10px !important;
  }

  #top-menu .stage831-dropdown{
    left:calc(100% + 2px) !important;
  }

  .user-chip{
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:7px !important;
    padding:12px 4px 2px !important;
  }

  .user-chip span{
    font-size:11px !important;
    line-height:1.2 !important;
    text-align:center !important;
    white-space:normal !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    max-height:30px !important;
  }

  .user-chip button{
    width:100% !important;
    padding:8px 6px !important;
    font-size:12px !important;
    border-radius:10px !important;
  }

  .submenu-bar{
    margin-left:var(--sidebar-width) !important;
  }

  .page{
    margin-left:var(--sidebar-width) !important;
  }

  .footer{
    left:var(--sidebar-width) !important;
  }
}


/* -------------------------------------------------------------------
   Stage 101.3P — Radius Server Setup Route Authority / Safe Settings Layout
------------------------------------------------------------------- */
.s1013p-page{display:flex;flex-direction:column;gap:18px;max-width:1480px;margin:0 auto;padding:4px 0 28px;color:var(--text,#e5e7eb)}
.s1013p-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px;border:1px solid rgba(148,163,184,.24);border-radius:24px;background:linear-gradient(135deg,rgba(15,23,42,.94),rgba(30,41,59,.82));box-shadow:0 16px 38px rgba(0,0,0,.18)}
.s1013p-hero h1{margin:0 0 8px;font-size:28px;letter-spacing:-.03em}.s1013p-hero p{margin:0;max-width:850px;color:rgba(226,232,240,.78);line-height:1.55}
.s1013p-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.s1013p-btn{border:0;border-radius:13px;padding:10px 14px;font-weight:750;cursor:pointer;background:rgba(148,163,184,.16);color:var(--text,#e5e7eb);border:1px solid rgba(148,163,184,.2)}
.s1013p-btn:hover{filter:brightness(1.08)}.s1013p-btn.success{background:linear-gradient(135deg,#16a34a,#22c55e);color:#052e16;border-color:rgba(34,197,94,.45)}.s1013p-btn.secondary{background:rgba(59,130,246,.16);border-color:rgba(59,130,246,.28)}.s1013p-btn.ghost{background:rgba(148,163,184,.10)}
.s1013p-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.s1013p-summary{padding:16px;border-radius:18px;border:1px solid rgba(148,163,184,.22);background:rgba(15,23,42,.72)}.s1013p-summary span{display:block;font-size:12px;color:rgba(226,232,240,.62);margin-bottom:5px}.s1013p-summary strong{display:block;font-size:18px;color:#fff}
.s1013p-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.s1013p-card{border:1px solid rgba(148,163,184,.22);border-radius:22px;background:rgba(15,23,42,.72);overflow:hidden;box-shadow:0 12px 28px rgba(0,0,0,.13)}.s1013p-card.wide{grid-column:1/-1}.s1013p-card-head{padding:18px 20px;border-bottom:1px solid rgba(148,163,184,.16);background:rgba(2,6,23,.24)}.s1013p-card-head h2{margin:0 0 5px;font-size:18px}.s1013p-card-head p{margin:0;color:rgba(226,232,240,.68);line-height:1.45}.s1013p-card-body{padding:18px 20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.s1013p-card.wide .s1013p-card-body{grid-template-columns:repeat(3,minmax(0,1fr))}
.s1013p-field{display:flex;flex-direction:column;gap:7px}.s1013p-field label{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:rgba(226,232,240,.66);font-weight:800}.s1013p-field input,.s1013p-field select{width:100%;border-radius:13px;border:1px solid rgba(148,163,184,.25);background:rgba(2,6,23,.42);color:#f8fafc;padding:11px 12px;outline:none}.s1013p-field input[readonly]{opacity:.82;background:rgba(15,23,42,.52);cursor:not-allowed}.s1013p-help{font-size:12px;color:rgba(203,213,225,.62);line-height:1.4}.s1013p-note{display:flex;flex-direction:column;gap:5px;padding:14px;border-radius:16px;background:rgba(59,130,246,.10);border:1px solid rgba(59,130,246,.22)}.s1013p-note strong{font-size:13px;color:#bfdbfe}.s1013p-note span{font-size:13px;color:rgba(226,232,240,.74);line-height:1.45}.s1013p-actions-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid rgba(148,163,184,.2);border-radius:18px;background:rgba(15,23,42,.72);position:sticky;bottom:12px;z-index:5}.s1013p-status{font-size:13px;color:rgba(226,232,240,.7)}.s1013p-status.ok{color:#86efac}.s1013p-status.bad{color:#fca5a5}
@media(max-width:1100px){.s1013p-summary-grid,.s1013p-grid{grid-template-columns:1fr}.s1013p-card.wide .s1013p-card-body{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.s1013p-hero,.s1013p-actions-bar{flex-direction:column;align-items:stretch}.s1013p-card-body,.s1013p-card.wide .s1013p-card-body{grid-template-columns:1fr}.s1013p-summary-grid{grid-template-columns:1fr}}


/* -------------------------------------------------------------------
   Stage 101.3Q — Client Device Authentication Route Wipe / Renderer Reset
------------------------------------------------------------------- */
.s1013q-page{display:flex;flex-direction:column;gap:18px;max-width:1480px;margin:0 auto;padding:4px 0 28px;color:var(--text,#e5e7eb)}
.s1013q-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px;border:1px solid rgba(148,163,184,.24);border-radius:24px;background:linear-gradient(135deg,rgba(15,23,42,.94),rgba(30,41,59,.82));box-shadow:0 16px 38px rgba(0,0,0,.18)}
.s1013q-hero h1{margin:0 0 8px;font-size:28px;letter-spacing:-.03em}.s1013q-hero p{margin:0;max-width:900px;color:rgba(226,232,240,.78);line-height:1.55}
.s1013q-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.s1013q-btn{border:0;border-radius:13px;padding:10px 14px;font-weight:750;cursor:pointer;background:rgba(148,163,184,.16);color:var(--text,#e5e7eb);border:1px solid rgba(148,163,184,.2)}
.s1013q-btn:hover{filter:brightness(1.08)}.s1013q-btn.success{background:linear-gradient(135deg,#16a34a,#22c55e);color:#052e16;border-color:rgba(34,197,94,.45)}.s1013q-btn.secondary{background:rgba(59,130,246,.16);border-color:rgba(59,130,246,.28)}.s1013q-btn.ghost{background:rgba(148,163,184,.10)}
.s1013q-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.s1013q-summary{padding:16px;border-radius:18px;border:1px solid rgba(148,163,184,.22);background:rgba(15,23,42,.72)}.s1013q-summary span{display:block;font-size:12px;color:rgba(226,232,240,.62);margin-bottom:5px}.s1013q-summary strong{display:block;font-size:18px;color:#fff}
.s1013q-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.s1013q-card{border:1px solid rgba(148,163,184,.22);border-radius:22px;background:rgba(15,23,42,.72);overflow:hidden;box-shadow:0 12px 28px rgba(0,0,0,.13)}.s1013q-card.wide{grid-column:1/-1}.s1013q-card-head{padding:18px 20px;border-bottom:1px solid rgba(148,163,184,.16);background:rgba(2,6,23,.24)}.s1013q-card-head h2{margin:0 0 5px;font-size:18px}.s1013q-card-head p{margin:0;color:rgba(226,232,240,.68);line-height:1.45}.s1013q-card-body{padding:18px 20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.s1013q-card.wide .s1013q-card-body{grid-template-columns:1fr}.s1013q-subgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.s1013q-subgrid.is-disabled{opacity:.58;filter:saturate(.75)}.s1013q-subgrid.is-disabled input,.s1013q-subgrid.is-disabled select,.s1013q-subgrid.is-disabled textarea{cursor:not-allowed}
.s1013q-field{display:flex;flex-direction:column;gap:7px}.s1013q-field.wide{grid-column:1/-1}.s1013q-field label{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:rgba(226,232,240,.66);font-weight:800}.s1013q-field input,.s1013q-field select,.s1013q-field textarea{width:100%;border-radius:13px;border:1px solid rgba(148,163,184,.25);background:rgba(2,6,23,.42);color:#f8fafc;padding:11px 12px;outline:none}.s1013q-field textarea{resize:vertical;min-height:96px}.s1013q-field input:disabled,.s1013q-field select:disabled,.s1013q-field textarea:disabled{opacity:.72;background:rgba(15,23,42,.42)}.s1013q-help{font-size:12px;color:rgba(203,213,225,.62);line-height:1.4}.s1013q-note{display:flex;flex-direction:column;gap:5px;padding:14px;border-radius:16px;background:rgba(59,130,246,.10);border:1px solid rgba(59,130,246,.22)}.s1013q-note strong{font-size:13px;color:#bfdbfe}.s1013q-note span{font-size:13px;color:rgba(226,232,240,.74);line-height:1.45}.s1013q-actions-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid rgba(148,163,184,.2);border-radius:18px;background:rgba(15,23,42,.72);position:sticky;bottom:12px;z-index:5}.s1013q-status{font-size:13px;color:rgba(226,232,240,.7)}.s1013q-status.ok{color:#86efac}.s1013q-status.bad{color:#fca5a5}
@media(max-width:1100px){.s1013q-summary-grid,.s1013q-grid{grid-template-columns:1fr}.s1013q-card-body,.s1013q-subgrid{grid-template-columns:1fr}}
@media(max-width:760px){.s1013q-hero,.s1013q-actions-bar{flex-direction:column;align-items:stretch}.s1013q-summary-grid{grid-template-columns:1fr}}


/* -------------------------------------------------------------------
   Stage 101.3R — Usage Logging Route Wipe / Renderer Reset
------------------------------------------------------------------- */
.s1013r-page{display:flex;flex-direction:column;gap:18px;max-width:1480px;margin:0 auto;padding:4px 0 28px;color:var(--text,#e5e7eb)}
.s1013r-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px;border:1px solid rgba(148,163,184,.24);border-radius:24px;background:linear-gradient(135deg,rgba(15,23,42,.94),rgba(30,41,59,.82));box-shadow:0 16px 38px rgba(0,0,0,.18)}
.s1013r-hero h1{margin:0 0 8px;font-size:28px;letter-spacing:-.03em}.s1013r-hero p{margin:0;max-width:930px;color:rgba(226,232,240,.78);line-height:1.55}
.s1013r-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.s1013r-btn{border:0;border-radius:13px;padding:10px 14px;font-weight:750;cursor:pointer;background:rgba(148,163,184,.16);color:var(--text,#e5e7eb);border:1px solid rgba(148,163,184,.2)}
.s1013r-btn:hover{filter:brightness(1.08)}.s1013r-btn.success{background:linear-gradient(135deg,#16a34a,#22c55e);color:#052e16;border-color:rgba(34,197,94,.45)}.s1013r-btn.secondary{background:rgba(59,130,246,.16);border-color:rgba(59,130,246,.28)}.s1013r-btn.ghost{background:rgba(148,163,184,.10)}
.s1013r-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.s1013r-summary{padding:16px;border-radius:18px;border:1px solid rgba(148,163,184,.22);background:rgba(15,23,42,.72)}.s1013r-summary span{display:block;font-size:12px;color:rgba(226,232,240,.62);margin-bottom:5px}.s1013r-summary strong{display:block;font-size:18px;color:#fff}
.s1013r-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.s1013r-card{border:1px solid rgba(148,163,184,.22);border-radius:22px;background:rgba(15,23,42,.72);overflow:hidden;box-shadow:0 12px 28px rgba(0,0,0,.13)}.s1013r-card.wide{grid-column:1/-1}.s1013r-card-head{padding:18px 20px;border-bottom:1px solid rgba(148,163,184,.16);background:rgba(2,6,23,.24)}.s1013r-card-head h2{margin:0 0 5px;font-size:18px}.s1013r-card-head p{margin:0;color:rgba(226,232,240,.68);line-height:1.45}.s1013r-card-body{padding:18px 20px;display:grid;grid-template-columns:1fr;gap:14px}.s1013r-card.wide .s1013r-card-body{grid-template-columns:1fr}.s1013r-subgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.s1013r-subgrid.one{grid-template-columns:1fr}.s1013r-subgrid.is-disabled{opacity:.58;filter:saturate(.75)}.s1013r-subgrid.is-disabled input,.s1013r-subgrid.is-disabled select,.s1013r-subgrid.is-disabled textarea{cursor:not-allowed}
.s1013r-field{display:flex;flex-direction:column;gap:7px}.s1013r-field.wide{grid-column:1/-1}.s1013r-field label{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:rgba(226,232,240,.66);font-weight:800}.s1013r-field input,.s1013r-field select,.s1013r-field textarea{width:100%;border-radius:13px;border:1px solid rgba(148,163,184,.25);background:rgba(2,6,23,.42);color:#f8fafc;padding:11px 12px;outline:none}.s1013r-field textarea{resize:vertical;min-height:96px}.s1013r-field input:disabled,.s1013r-field select:disabled,.s1013r-field textarea:disabled{opacity:.72;background:rgba(15,23,42,.42)}.s1013r-help{font-size:12px;color:rgba(203,213,225,.62);line-height:1.4}.s1013r-note{display:flex;flex-direction:column;gap:5px;padding:14px;border-radius:16px;background:rgba(59,130,246,.10);border:1px solid rgba(59,130,246,.22)}.s1013r-note strong{font-size:13px;color:#bfdbfe}.s1013r-note span{font-size:13px;color:rgba(226,232,240,.74);line-height:1.45}.s1013r-actions-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid rgba(148,163,184,.2);border-radius:18px;background:rgba(15,23,42,.72);position:sticky;bottom:12px;z-index:5}.s1013r-status{font-size:13px;color:rgba(226,232,240,.7)}.s1013r-status.ok{color:#86efac}.s1013r-status.bad{color:#fca5a5}
@media(max-width:1100px){.s1013r-summary-grid,.s1013r-grid{grid-template-columns:1fr}.s1013r-subgrid{grid-template-columns:1fr}}
@media(max-width:760px){.s1013r-hero,.s1013r-actions-bar{flex-direction:column;align-items:stretch}.s1013r-summary-grid{grid-template-columns:1fr}}
