:root{
  --bg:#f7f3ff;
  --panel:#ffffff;
  --ink:#19162a;
  --muted:#625b78;
  --brand:#341c77;
  --brand-2:#4b2ca0;
  --accent:#fd5c37;
  --sun:#ffd557;
  --mint:#31c9a8;
  --line:#e7ddff;
  --soft:#fff8f2;
  --ok:#e8f8ed;
  --warn:#fff7d6;
  --bad:#fee2e2;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.gw-body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 Arial,Helvetica,sans-serif;min-height:100vh;}
a{color:var(--brand);font-weight:800}
.gw-site-header{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fff;padding:16px clamp(18px,4vw,56px);border-bottom:1px solid var(--line);box-shadow:0 8px 24px rgba(52,28,119,.08)}
.gw-logo img{display:block;width:210px;max-width:44vw;height:auto}.gw-public-nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.gw-public-nav a{text-decoration:none;color:var(--brand);padding:10px 13px;border-radius:999px}.gw-public-nav a:hover{background:var(--soft);color:var(--accent)}
.gw-app-frame{display:block;min-height:calc(100vh - 90px)}
.sidebar{position:fixed;left:0;top:85px;bottom:0;width:266px;background:linear-gradient(180deg,var(--brand),#201047);color:#fff;padding:18px 14px;overflow:auto;box-shadow:12px 0 34px rgba(52,28,119,.16)}
.brand{font-weight:900;font-size:18px;margin-bottom:14px}.brand img{display:block;width:168px;max-width:100%;height:auto;margin:0 0 12px}.brand span{display:block;color:#ffd557;text-transform:uppercase;letter-spacing:.08em;font-size:12px}.version-pill{display:inline-block;margin:0 0 14px;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.13);color:#fff;font-size:11px;font-weight:900;letter-spacing:.04em}.sidebar nav{display:grid;gap:4px}.sidebar a{color:#fff;text-decoration:none;padding:9px 11px;border-radius:14px;font-weight:750}.sidebar a:hover{background:rgba(253,92,55,.23)}.userbox{margin-top:18px;padding:12px;border-top:1px solid rgba(255,255,255,.22);color:#fff}.userbox span{color:#ffd557;text-transform:uppercase;font-size:12px;font-weight:900}.main{margin-left:266px;padding:32px clamp(18px,3.2vw,48px);min-height:calc(100vh - 85px)}.main.full{margin:0;display:block;min-height:auto;padding:48px clamp(18px,4vw,72px)}
h1{margin:0 0 22px;font-size:clamp(30px,4vw,48px);line-height:1.08;font-family:Georgia,'Times New Roman',serif;color:var(--brand)}h2{margin:0 0 14px;font-size:22px;color:var(--brand)}h3{color:var(--brand);margin-top:0}.cards{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:18px;margin-bottom:22px}.card,.panel,.login-card{background:var(--panel);border:1px solid var(--line);border-radius:24px;box-shadow:0 14px 36px rgba(52,28,119,.08);padding:22px}.card span{display:block;color:var(--muted);font-size:13px}.card strong{font-size:30px;color:var(--brand)}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:18px}.panel{margin-bottom:18px;overflow:auto}.login-card{width:min(460px,92vw);margin:0 auto}.form-stack{display:grid;gap:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid.compact{grid-template-columns:1fr 180px 120px}.wide{grid-column:1/-1}label{display:grid;gap:6px;font-weight:800;color:var(--brand)}input,select,textarea{border:1px solid #d8cef1;border-radius:14px;padding:12px 13px;background:#fff;font:inherit;color:var(--ink)}textarea{min-height:92px}button,.buttonlink,.gw-button{border:0;border-radius:999px;background:var(--accent);color:white!important;padding:12px 18px;font-weight:900;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:hover,.buttonlink:hover,.gw-button:hover{filter:brightness(.96);transform:translateY(-1px)}table{width:100%;border-collapse:collapse}th,td{padding:11px 12px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);background:#fbf8ff}.flash{background:#fff8e6;border:1px solid #ffd557;border-radius:18px;padding:14px 16px;margin-bottom:18px;color:#4d3510;font-weight:800}.muted{color:var(--muted)}.pill{display:inline-block;border-radius:999px;padding:4px 10px;background:#f0e9ff;margin:2px;font-size:12px;font-weight:800}.pill.active{background:var(--ok)}.pill.waitlist{background:var(--warn)}.pill.dropped{background:var(--bad)}.inline{display:flex;gap:8px;align-items:center;margin:0}.inline select{min-width:120px}.mini{font-size:12px;color:var(--muted)}
.gw-site-footer{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;background:var(--brand);color:#fff;padding:32px clamp(18px,4vw,56px);margin-top:0}.gw-site-footer img{width:220px;max-width:70%;height:auto}.gw-site-footer p{max-width:560px;color:#f0eaff}.gw-site-footer nav{display:flex;gap:12px;flex-wrap:wrap;align-content:start;justify-content:flex-end}.gw-site-footer a{color:#fff;text-decoration:none}.gw-site-footer a:hover{color:#ffd557}.hero-card{background:linear-gradient(135deg,#fff 0%,#fff8f2 100%);border:1px solid var(--line);border-radius:30px;padding:clamp(24px,5vw,54px);box-shadow:0 18px 42px rgba(52,28,119,.09);margin-bottom:22px}.hero-card p{font-size:18px;color:var(--muted);max-width:760px}.choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.choice-card{display:block;text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:0 12px 28px rgba(52,28,119,.07)}.choice-card strong{display:block;color:var(--brand);font-size:20px;margin-bottom:6px}.choice-card span{color:var(--muted);font-weight:600}.public-form{max-width:920px}.success-panel{max-width:860px;margin:0 auto}.success-panel h1{color:var(--brand)}
/* existing operational layer preserved */
.button-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.danger{background:#b91c1c}.warn{background:#fff7ed;border-color:#fed7aa}.lockout{border-color:#f59e0b;background:#fffbeb}button.disabled,button:disabled{background:#9ca3af;cursor:not-allowed}.card a{color:var(--accent);font-size:18px;text-decoration:none}.callout{background:#f0f9ff;border:1px solid #7dd3fc;border-radius:16px;padding:14px;margin-bottom:16px}.callout a{color:var(--accent);font-weight:800}.panel ul{margin:0;padding-left:20px}.panel li{margin:6px 0}.office-shell{display:grid;grid-template-columns:280px 1fr;gap:16px;margin-bottom:16px}.filter-rail{background:#2b195d;color:#fff;border-radius:18px;padding:16px;align-self:start}.filter-rail input,.filter-rail select{width:100%;background:#fff;color:var(--ink);border-color:#d8cef1}.filter-rail details{border-bottom:1px solid rgba(255,255,255,.24);padding:10px 0}.filter-rail summary{cursor:pointer;font-weight:900}.filter-rail p{color:#efeaff;margin:8px 0 0}.tabs{display:flex;gap:6px;flex-wrap:wrap;margin:16px 0}.tabs a{background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 12px;text-decoration:none;color:var(--ink);font-weight:800}.tabs a.active{background:var(--brand);color:#fff}.split-wide{display:grid;grid-template-columns:1.1fr 1fr;gap:16px}.guardian-card{border:1px solid var(--line);border-radius:16px;padding:14px;margin:10px 0;background:#fafafa}.note-priority{display:inline-block;padding:16px;border-radius:14px;font-weight:900}.note-priority.low{background:#d1fae5}.note-priority.medium{background:#fef3c7}.note-priority.critical{background:#fee2e2;color:#991b1b}.qr-card{display:inline-grid;gap:8px;border:1px solid var(--line);border-radius:16px;padding:14px;margin:10px}.fake-qr{display:grid;place-items:center;width:120px;height:120px;background:repeating-linear-gradient(45deg,#111827 0 8px,#fff 8px 16px);color:#4f46e5;font-weight:900;border:10px solid #fff;text-align:center}.avatar-placeholder{display:grid;place-items:center;width:100px;height:100px;border-radius:50%;background:#f0e9ff;color:var(--brand);font-weight:900;margin-bottom:12px;text-align:center}.news-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.news-card{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.05)}.news-card h3,.news-card p,.news-card details{padding:0 16px}.news-image{height:150px;display:grid;place-items:center;background:linear-gradient(135deg,var(--brand),var(--accent));color:#fff;font-size:22px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.metric-panel{text-align:center}.metric-panel strong{font-size:42px}.good{color:#16a34a;font-weight:800}.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;color:var(--muted);border-top:1px solid var(--line);padding-top:12px;margin-top:12px;text-align:center}.bar-chart{display:flex;gap:14px;height:260px;align-items:end;border-left:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 12px}.bar-chart div{flex:1;display:flex;align-items:center;flex-direction:column;height:100%;justify-content:end}.bar-chart span{display:block;width:100%;min-height:8px;background:#fdc6b6;border-radius:8px 8px 0 0}.bar-chart em{font-style:normal;margin-top:8px;color:var(--muted)}.donut{width:300px;max-width:100%;aspect-ratio:1;border-radius:50%;background:conic-gradient(#ef4444 0 64%,#fcd34d 64% 82%,#6ee7b7 82% 100%);margin:16px auto;display:grid;place-items:center}.donut>div{width:62%;height:62%;border-radius:50%;background:#fff;display:grid;place-items:center;text-align:center;color:#374151}.form-grid button,.form-stack button{align-self:end}.ops-window{border:1px solid var(--line);border-radius:22px;overflow:hidden;background:#fff;margin-bottom:18px;box-shadow:0 18px 32px rgba(52,28,119,.08)}.ops-titlebar{background:var(--brand);color:#fff;padding:14px 18px;font-weight:900;display:flex;justify-content:space-between;align-items:center}.ops-body{padding:18px}.ops-footer{background:#2b195d;padding:12px 18px;display:flex;gap:10px}.ops-footer button,.ops-footer a{background:var(--accent);color:#fff;border-radius:999px;padding:10px 14px;text-decoration:none;font-weight:900}.workspace{display:grid;grid-template-columns:280px 1fr;gap:18px}.mini-check{display:flex;gap:8px;align-items:center}.mini-check input{width:auto}.soft-blue{background:#eff6ff;border:1px solid #bfdbfe}.soft-red{background:#fff1f2;border:1px solid #fecdd3}.soft-green{background:#ecfdf5;border:1px solid #bbf7d0}.side-actions{display:flex;gap:6px;flex-wrap:wrap}.iconbtn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#111827;text-decoration:none;font-weight:900}.task-row{display:grid;grid-template-columns:52px 1fr 130px;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:12px}.pdf-icon{width:40px;height:48px;border-radius:4px;background:#dc2626;color:#fff;display:grid;place-items:center;font-weight:900}.progress{height:12px;border-radius:999px;background:#e5e7eb;overflow:hidden}.progress span{display:block;height:100%;background:#60a5fa}.cert-preview{width:100%;max-width:900px;aspect-ratio:1.414/1;background:linear-gradient(90deg,#4c1d95 0 13%,#fff 13%);border:1px solid var(--line);display:grid;place-items:center;text-align:center;border-radius:14px;box-shadow:0 10px 24px rgba(15,23,42,.08)}.cert-preview h1{font-family:Georgia,serif;font-size:42px;letter-spacing:.14em;margin-bottom:4px}.cert-preview .student{font-size:34px;color:#7c3aed;margin:22px 0}.modal-grid{display:grid;grid-template-columns:240px 1fr;gap:16px}.select-list{border:1px solid var(--line);border-radius:12px;max-height:320px;overflow:auto}.select-row{display:grid;grid-template-columns:1fr 120px 80px;gap:8px;padding:10px;border-bottom:1px solid var(--line)}.select-row:hover{background:#fff8f2}.balance-due{background:#dc2626!important;color:#fff!important}.data-tag{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}.kpi-large{text-align:center;padding:24px}.kpi-large strong{font-size:46px}.heat{height:8px;background:#e5e7eb;border-radius:999px;overflow:hidden}.heat span{display:block;height:100%;background:#10b981}.certificate-actions{display:grid;gap:10px;align-self:start}.certificate-actions button,.certificate-actions a{display:block;text-align:center;background:var(--brand);color:#fff;border-radius:999px;padding:12px;text-decoration:none;font-weight:900}.permission-tree{display:grid;gap:12px}.range-line{display:grid;grid-template-columns:170px 1fr 70px;gap:12px;align-items:center}.range-line input{width:100%}.portal-header{background:linear-gradient(135deg,var(--brand),var(--accent));color:#fff;border-radius:24px;padding:22px;margin-bottom:18px}.news-hero{height:220px;background:linear-gradient(135deg,var(--brand),var(--accent));color:#fff;display:grid;place-items:center;text-align:center;border-radius:24px;font-weight:900;font-size:28px}.certificate-logo{display:inline-grid;place-items:center;width:90px;height:90px;border-radius:50%;background:#fff;border:10px solid #e5e7eb;color:#7c3aed;font-weight:900;box-shadow:0 8px 18px rgba(0,0,0,.1)}
@media(max-width:1100px){.sidebar{position:static;width:auto;max-height:none}.main{margin-left:0}.cards,.cards.six,.grid2,.grid3,.form-grid,.office-shell,.split-wide,.workspace,.modal-grid,.gw-site-footer{grid-template-columns:1fr}.filter-rail{order:2}.mini-stats{grid-template-columns:1fr}.bar-chart{height:180px}.gw-site-footer nav{justify-content:flex-start}.gw-app-frame{display:block}.main.full{padding:32px 18px}.gw-site-header{position:static}.gw-public-nav{width:100%}}
@media(max-width:700px){.button-row{display:grid}.task-row,.select-row{grid-template-columns:1fr}.gw-logo img{width:180px}.gw-public-nav a{padding:8px 9px}.main{padding:24px 14px}}

/* -------------------------------------------------------------------------
   Gym Wizards visual integration fix - 2026-05-22
   Purpose: stop oversized/cropped logos, remove horizontal overflow, and make
   the Command Centre feel like a clean extension of the public Gym Wizards site.
   ------------------------------------------------------------------------- */
:root{
  --gw-sidebar-w:260px;
  --gw-header-h:76px;
  --bg:#f6f7fb;
  --panel:#ffffff;
  --ink:#101727;
  --muted:#5f6472;
  --brand:#341c77;
  --brand-2:#4b2ca0;
  --accent:#f15a24;
  --sun:#ffd557;
  --line:#e7e1f4;
  --soft:#fff7f2;
}
html,body{width:100%;max-width:100%;overflow-x:hidden!important;}
body.gw-body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 Arial,Helvetica,sans-serif;min-height:100vh;}
body.gw-body *{box-sizing:border-box;}
img{max-width:100%;height:auto;}

.gw-site-header{
  position:sticky!important;
  top:0;
  z-index:1000;
  min-height:var(--gw-header-h);
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:10px clamp(16px,3vw,44px)!important;
  background:#fff!important;
  border-bottom:1px solid var(--line)!important;
  box-shadow:0 8px 24px rgba(52,28,119,.08)!important;
}
.gw-logo{display:flex;align-items:center;min-width:0;text-decoration:none;}
.gw-logo img{
  display:block!important;
  width:clamp(190px,22vw,275px)!important;
  max-width:275px!important;
  max-height:54px!important;
  height:auto!important;
  object-fit:contain!important;
}
.gw-public-nav{display:flex!important;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;min-width:0;}
.gw-public-nav a{white-space:nowrap;text-decoration:none;color:var(--brand)!important;padding:8px 11px;border-radius:999px;font-weight:850;}
.gw-public-nav a:hover{background:var(--soft);color:var(--accent)!important;}

.gw-app-frame{display:block!important;min-height:calc(100vh - var(--gw-header-h));width:100%;max-width:100%;}
.sidebar.gw-sidebar,.sidebar{
  position:fixed!important;
  left:0!important;
  top:var(--gw-header-h)!important;
  bottom:0!important;
  width:var(--gw-sidebar-w)!important;
  max-width:var(--gw-sidebar-w)!important;
  min-width:var(--gw-sidebar-w)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:14px 12px 18px!important;
  background:linear-gradient(180deg,#101727 0%,#211044 60%,#341c77 100%)!important;
  color:#fff!important;
  box-shadow:10px 0 30px rgba(16,23,39,.18)!important;
}
.sidebar .brand,.brand{
  display:block!important;
  width:100%!important;
  margin:0 0 12px!important;
  padding:0!important;
  color:#fff!important;
  text-decoration:none!important;
  font-weight:900!important;
  font-size:13px!important;
  line-height:1.2!important;
}
.brand-logo-frame{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-height:58px!important;
  margin:0 0 8px!important;
  overflow:hidden!important;
}
.brand-logo-frame img,.sidebar .brand img,.brand img{
  display:block!important;
  width:180px!important;
  max-width:180px!important;
  max-height:62px!important;
  height:auto!important;
  object-fit:contain!important;
  object-position:left center!important;
  margin:0!important;
}
.brand-label,.brand span{
  display:inline-flex!important;
  align-items:center!important;
  width:auto!important;
  max-width:100%!important;
  padding:5px 8px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.10)!important;
  color:var(--sun)!important;
  text-transform:uppercase!important;
  letter-spacing:.08em!important;
  font-size:11px!important;
}
.version-pill{
  display:inline-block!important;
  margin:0 0 12px!important;
  padding:5px 8px!important;
  max-width:100%!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.12)!important;
  color:#fff!important;
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.04em!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.sidebar nav{display:grid!important;gap:3px!important;}
.sidebar nav a,.sidebar a{
  display:block!important;
  max-width:100%!important;
  color:#eef0ff!important;
  text-decoration:none!important;
  padding:8px 10px!important;
  border-radius:12px!important;
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:750!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:normal!important;
}
.sidebar nav a:hover,.sidebar a:hover{background:rgba(241,90,36,.23)!important;color:#fff!important;}
.userbox{
  margin-top:16px!important;
  padding:12px 8px 0!important;
  border-top:1px solid rgba(255,255,255,.22)!important;
  color:#fff!important;
  font-size:12px!important;
  overflow-wrap:anywhere!important;
}
.userbox span{color:var(--sun)!important;text-transform:uppercase!important;font-size:11px!important;font-weight:900!important;}

.main{
  margin-left:var(--gw-sidebar-w)!important;
  width:calc(100% - var(--gw-sidebar-w))!important;
  max-width:calc(100% - var(--gw-sidebar-w))!important;
  min-height:calc(100vh - var(--gw-header-h));
  padding:28px clamp(20px,3vw,44px)!important;
  background:var(--bg)!important;
  overflow-x:hidden!important;
}
.main.full{
  margin-left:0!important;
  width:100%!important;
  max-width:100%!important;
  min-height:auto!important;
  display:block!important;
  padding:46px clamp(18px,4vw,72px)!important;
}
h1{font-size:clamp(28px,3.3vw,42px)!important;line-height:1.12!important;margin:0 0 22px!important;color:var(--brand)!important;}
.panel,.card,.login-card,.ops-window,.choice-card,.hero-card{
  max-width:100%!important;
  border-color:var(--line)!important;
  box-shadow:0 12px 30px rgba(16,23,39,.07)!important;
}
.panel{overflow-x:auto!important;}
.cards{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))!important;gap:14px!important;}
.grid2{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.grid3{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
table{min-width:680px;}
.buttonlink,.gw-button,button{border-radius:999px!important;}
.ops-titlebar{background:linear-gradient(90deg,var(--brand),var(--brand-2))!important;}
.ops-footer{background:#101727!important;}

.gw-site-footer{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:18px!important;
  margin:0!important;
  padding:22px clamp(18px,3vw,44px)!important;
  background:#101727!important;
  color:#fff!important;
  position:relative!important;
  z-index:1!important;
  overflow:hidden!important;
}
.gw-site-footer.with-sidebar{
  margin-left:var(--gw-sidebar-w)!important;
  width:calc(100% - var(--gw-sidebar-w))!important;
  max-width:calc(100% - var(--gw-sidebar-w))!important;
}
.gw-site-footer img,.footer-brand img{
  display:block!important;
  width:160px!important;
  max-width:160px!important;
  max-height:58px!important;
  height:auto!important;
  object-fit:contain!important;
  object-position:left center!important;
  margin:0 0 8px!important;
}
.gw-site-footer p{margin:0!important;max-width:520px!important;color:#e7e1f4!important;font-size:13px!important;}
.gw-site-footer nav{display:flex!important;gap:10px!important;flex-wrap:wrap!important;align-items:flex-start!important;justify-content:flex-end!important;}
.gw-site-footer a{color:#fff!important;text-decoration:none!important;font-size:13px!important;font-weight:800!important;}
.gw-site-footer a:hover{color:var(--sun)!important;}

@media(max-width:1100px){
  .gw-site-header{position:relative!important;min-height:auto!important;align-items:flex-start!important;flex-direction:column!important;}
  .gw-logo img{width:220px!important;max-height:50px!important;}
  .gw-public-nav{justify-content:flex-start!important;width:100%!important;}
  .sidebar.gw-sidebar,.sidebar{position:relative!important;top:auto!important;bottom:auto!important;width:100%!important;max-width:100%!important;min-width:0!important;max-height:none!important;}
  .brand-logo-frame img,.sidebar .brand img,.brand img{width:170px!important;max-width:170px!important;}
  .main,.main.full{margin-left:0!important;width:100%!important;max-width:100%!important;padding:24px 16px!important;}
  .gw-site-footer.with-sidebar,.gw-site-footer{margin-left:0!important;width:100%!important;max-width:100%!important;grid-template-columns:1fr!important;}
  .gw-site-footer nav{justify-content:flex-start!important;}
  .grid2,.grid3,.form-grid,.office-shell,.split-wide,.workspace,.modal-grid{grid-template-columns:1fr!important;}
}
@media(max-width:700px){
  .gw-public-nav a{font-size:13px;padding:7px 9px;}
  .gw-logo img{width:190px!important;}
  table{min-width:560px;}
}


/* -------------------------------------------------------------------------
   Visual refinement 2 - keep every feature, but stop logo cropping and make
   the backend feel integrated rather than pasted-on.
   ------------------------------------------------------------------------- */
:root{
  --gw-sidebar-w:272px;
  --gw-header-h:74px;
}
html, body.gw-body{overflow-x:hidden!important;}
.gw-site-header{
  min-height:var(--gw-header-h)!important;
  padding:9px clamp(16px,3vw,42px)!important;
}
.gw-logo img{
  width:clamp(205px,23vw,292px)!important;
  max-width:292px!important;
  max-height:56px!important;
  object-fit:contain!important;
}
.sidebar.gw-sidebar,.sidebar{
  width:var(--gw-sidebar-w)!important;
  max-width:var(--gw-sidebar-w)!important;
  min-width:var(--gw-sidebar-w)!important;
  top:var(--gw-header-h)!important;
  padding:16px 14px 22px!important;
}
.brand-logo-frame{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:76px!important;
  min-height:76px!important;
  padding:10px 12px!important;
  margin:0 0 10px!important;
  border-radius:20px!important;
  background:#ffffff!important;
  border:1px solid rgba(255,255,255,.55)!important;
  box-shadow:0 12px 26px rgba(0,0,0,.18)!important;
  overflow:hidden!important;
}
.brand-logo-frame img,.sidebar .brand img,.brand img{
  display:block!important;
  width:100%!important;
  max-width:224px!important;
  max-height:56px!important;
  height:auto!important;
  object-fit:contain!important;
  object-position:center center!important;
  margin:0!important;
}
.brand-label,.brand span{
  display:inline-flex!important;
  margin-top:2px!important;
  color:#101727!important;
  background:var(--sun)!important;
  border:1px solid rgba(255,255,255,.35)!important;
}
.version-pill{
  max-width:100%!important;
  background:rgba(255,255,255,.14)!important;
  white-space:normal!important;
  line-height:1.25!important;
}
.sidebar nav a,.sidebar a{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.main{
  margin-left:var(--gw-sidebar-w)!important;
  width:calc(100% - var(--gw-sidebar-w))!important;
  max-width:calc(100% - var(--gw-sidebar-w))!important;
}
.gw-site-footer.with-sidebar{
  margin-left:var(--gw-sidebar-w)!important;
  width:calc(100% - var(--gw-sidebar-w))!important;
  max-width:calc(100% - var(--gw-sidebar-w))!important;
}
.footer-logo-card{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:min(280px,100%)!important;
  min-height:72px!important;
  padding:10px 14px!important;
  margin:0 0 10px!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 10px 24px rgba(0,0,0,.18)!important;
}
.footer-logo-card img,.gw-site-footer img,.footer-brand img{
  display:block!important;
  width:240px!important;
  max-width:100%!important;
  max-height:54px!important;
  object-fit:contain!important;
  object-position:center center!important;
  margin:0!important;
}
.gw-site-footer{
  align-items:center!important;
  overflow:hidden!important;
}
.gw-site-footer nav{align-items:center!important;}
.panel table{width:100%;}
@media(max-width:1100px){
  :root{--gw-sidebar-w:100%;}
  .sidebar.gw-sidebar,.sidebar{top:auto!important;width:100%!important;min-width:0!important;max-width:100%!important;}
  .brand-logo-frame{width:min(280px,100%)!important;justify-content:center!important;}
  .main,.gw-site-footer.with-sidebar{margin-left:0!important;width:100%!important;max-width:100%!important;}
}
