
:root{--portal-bg:#f4f7fb;--portal-panel:#fff;--portal-line:#d8e2ee;--portal-text:#172033;--portal-muted:#64748b;--portal-accent:#0f766e;--portal-blue:#2563eb;--portal-ink:#0b1726;--portal-soft:#eef6ff;--portal-danger:#b91c1c;--portal-warn:#a16207;--portal-ok:#15803d;--portal-radius:8px;--portal-shadow:0 18px 55px rgba(15,23,42,.08)}
.partner-portal{min-height:calc(100vh - 76px);display:grid;grid-template-columns:286px minmax(0,1fr);background:var(--portal-bg);color:var(--portal-text);font-family:Tajawal,Arial,sans-serif}.partner-sidebar{position:sticky;top:0;height:100vh;background:#0b1726;color:#fff;padding:22px 18px;display:flex;flex-direction:column;gap:22px;border-inline-end:1px solid rgba(255,255,255,.08)}.partner-mark{padding:6px 8px 18px;border-bottom:1px solid rgba(255,255,255,.1)}.partner-mark span{display:block;color:#5eead4;font-size:12px;font-weight:900;letter-spacing:.08em}.partner-mark strong{display:block;font-size:23px;line-height:1.1;margin-top:5px}.partner-sidebar nav{display:grid;gap:6px}.partner-sidebar nav a{color:#cbd5e1;text-decoration:none;padding:12px 13px;border-radius:8px;font-weight:800;display:flex;align-items:center;justify-content:space-between;transition:.15s ease}.partner-sidebar nav a:after{content:"";width:7px;height:7px;border-radius:50%;background:transparent}.partner-sidebar nav a.active,.partner-sidebar nav a:hover{background:#123456;color:#fff}.partner-sidebar nav a.active:after{background:#5eead4}.partner-side-foot{margin-top:auto;background:#132235;border:1px solid #27415f;border-radius:8px;padding:14px}.partner-side-foot span,.partner-side-foot a{display:block;color:#93c5fd;font-size:12px}.partner-side-foot strong{display:block;margin:4px 0 10px}.partner-side-foot a{text-decoration:none;font-weight:800}.partner-main{padding:26px;min-width:0}.portal-hero{background:linear-gradient(135deg,#fff,#eef7ff);border:1px solid var(--portal-line);border-radius:8px;padding:24px;margin-bottom:16px;display:flex;align-items:flex-end;justify-content:space-between;gap:18px;box-shadow:var(--portal-shadow)}.portal-hero span{display:inline-flex;color:var(--portal-accent);font-weight:900;font-size:12px;margin-bottom:6px}.portal-hero h1{margin:0;font-size:32px;line-height:1.2}.portal-hero p{margin:8px 0 0;color:var(--portal-muted);max-width:760px}.portal-button,.portal-form button,.partner-login-card button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;background:var(--portal-blue);color:#fff;border:0;border-radius:8px;padding:10px 16px;font-weight:900;text-decoration:none;cursor:pointer;box-shadow:0 10px 24px rgba(37,99,235,.18)}.portal-button:hover,.portal-form button:hover,.partner-login-card button:hover{filter:brightness(.96)}.portal-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}.portal-kpis article{background:#fff;border:1px solid var(--portal-line);border-radius:8px;padding:16px;position:relative;overflow:hidden}.portal-kpis article:before{content:"";position:absolute;inset:auto auto -28px -22px;width:88px;height:88px;border-radius:50%;background:#e0f2fe}.portal-kpis span{display:block;color:var(--portal-muted);font-size:12px;font-weight:800}.portal-kpis strong{display:block;font-size:27px;margin:7px 0 2px;position:relative}.portal-kpis small{color:var(--portal-muted);position:relative}.portal-grid.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.portal-panel{background:#fff;border:1px solid var(--portal-line);border-radius:8px;padding:18px;margin-bottom:16px;box-shadow:0 8px 28px rgba(15,23,42,.04)}.portal-panel header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #edf2f7}.portal-panel h2{margin:0;font-size:19px}.portal-panel p,.portal-row small,.portal-kpis small{color:var(--portal-muted)}.portal-panel a{color:var(--portal-blue);font-weight:900;text-decoration:none}.portal-row{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid #edf2f7;padding:13px 0;text-decoration:none;color:inherit}.portal-row:first-of-type{border-top:0}.portal-row strong,.portal-row small{display:block}.pill{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;padding:3px 10px;background:#e5e7eb;color:#374151;font-size:12px;font-weight:900}.pill.active,.pill.ready,.pill.done{background:#dcfce7;color:#166534}.pill.failed,.pill.overdue,.pill.revoked{background:#fee2e2;color:#991b1b}.pill.trial,.pill.draft,.pill.queued,.pill.running,.pill.pending{background:#fef3c7;color:#92400e}.progress,.server-strip i{display:block;height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin-top:7px}.progress b,.server-strip b{display:block;height:100%;background:linear-gradient(90deg,var(--portal-accent),var(--portal-blue))}.server-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.server-strip article{border:1px solid #e5edf6;border-radius:8px;padding:14px;background:#fbfdff}.server-strip strong,.server-strip span,.server-strip small{display:block}.portal-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.portal-form.compact{grid-template-columns:repeat(5,minmax(0,1fr))}.portal-form label span,.partner-login-card label span{display:block;color:#475569;font-size:12px;font-weight:900;margin-bottom:5px}.portal-form input,.portal-form select,.portal-form textarea,.inline-edit input,.partner-login-card input{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:10px;background:#fff;color:#172033;font-family:inherit}.portal-form input:focus,.portal-form select:focus,.portal-form textarea:focus,.partner-login-card input:focus{outline:2px solid rgba(37,99,235,.16);border-color:#60a5fa}.portal-form textarea{min-height:84px}.portal-form .wide{grid-column:1/-1}.portal-form button{align-self:end}.portal-table-wrap{overflow-x:auto;border:1px solid #edf2f7;border-radius:8px}table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:12px;border-bottom:1px solid #edf2f7;text-align:start;white-space:nowrap}th{background:#f8fafc;color:#475569;font-size:12px;font-weight:900}td strong,td small{display:block}.empty{color:var(--portal-muted);text-align:center;padding:20px}.mini{border:1px solid #cbd5e1;background:#fff;color:var(--portal-accent);border-radius:7px;padding:7px 10px;font-weight:900;cursor:pointer}.edit td{background:#f8fafc}.inline-edit{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr));gap:8px;min-width:980px;align-items:end}.inline-edit p{grid-column:span 4;margin:0;color:var(--portal-muted)}.detail-list{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px 14px;margin:0}.detail-list dt{color:var(--portal-muted);font-weight:900}.detail-list dd{margin:0;color:var(--portal-text)}.detail-form{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-panel td a{color:var(--portal-blue);text-decoration:none;font-weight:900}.row-actions{display:flex;gap:6px;align-items:center}.row-actions .mini{white-space:nowrap}.partner-login{min-height:calc(100vh - 76px);display:grid;grid-template-columns:minmax(0,1fr) 430px;gap:28px;align-items:center;padding:52px;background:#f4f7fb}.login-copy{background:linear-gradient(135deg,#0b1726,#123456);color:#fff;border-radius:8px;padding:38px;min-height:430px;display:flex;flex-direction:column;justify-content:center;box-shadow:var(--portal-shadow)}.login-copy span{color:#5eead4;font-weight:900}.login-copy h1{font-size:42px;line-height:1.15;margin:10px 0}.login-copy p{max-width:720px;color:#dbeafe;font-size:18px}.platform-login-points,.login-copy .platform-login-points{display:grid;gap:9px;margin-top:18px}.platform-login-points span{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:8px;padding:10px 12px;color:#fff}.partner-login-card,.platform-auth-card{background:#fff;border:1px solid var(--portal-line);border-radius:8px;padding:24px;box-shadow:var(--portal-shadow)}.partner-login-card label,.platform-auth-card .field{display:block;margin-bottom:13px}.form-error,.form-errors{background:#fee2e2;color:#991b1b;border-radius:7px;padding:10px;margin-bottom:12px}@media(max-width:1180px){.portal-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-grid.two,.server-strip{grid-template-columns:1fr}.portal-form,.portal-form.compact{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:820px){.partner-portal{grid-template-columns:1fr}.partner-sidebar{position:static;height:auto}.partner-main{padding:16px}.portal-hero,.partner-login{display:block}.portal-kpis,.portal-form,.portal-form.compact{grid-template-columns:1fr}.inline-edit{min-width:0;grid-template-columns:1fr}.inline-edit p{grid-column:auto}.login-copy{min-height:0;margin-bottom:18px}.portal-hero h1,.login-copy h1{font-size:30px}}
.portal-lang-switch{display:flex;gap:8px;align-items:center;justify-content:center;margin-top:14px;color:#94a3b8;font-weight:800}.portal-lang-switch a,.portal-lang-switch button{color:#2563eb;text-decoration:none;background:transparent;border:0;font:inherit;font-weight:900;cursor:pointer;padding:0}.partner-sidebar .portal-lang-switch{justify-content:flex-start;margin:0;padding:8px 10px;border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}.partner-sidebar .portal-lang-switch a,.partner-sidebar .portal-lang-switch button{color:#93c5fd}

.api-form-status{grid-column:1/-1;border-radius:8px;padding:10px 12px;font-weight:800;background:#e0f2fe;color:#075985}.api-form-status.success{background:#dcfce7;color:#166534}.api-form-status.error{background:#fee2e2;color:#991b1b}.api-form-status.pending{background:#fef3c7;color:#92400e}

/* Professional Partner Hub polish */
:root{
  --portal-bg:#eef3f8;
  --portal-panel:#ffffff;
  --portal-line:#d7e1ec;
  --portal-text:#111827;
  --portal-muted:#667085;
  --portal-accent:#0d9488;
  --portal-blue:#1d4ed8;
  --portal-ink:#0f172a;
  --portal-shadow:0 12px 36px rgba(15,23,42,.08);
}
.partner-portal{background:linear-gradient(180deg,#edf4fb 0,#f7f9fc 42%,#eef3f8 100%)}
.partner-sidebar{background:linear-gradient(180deg,#07111f,#0f2237);box-shadow:12px 0 36px rgba(15,23,42,.14)}
.partner-mark{border-bottom-color:rgba(255,255,255,.12)}
.partner-mark span{letter-spacing:0}
.partner-sidebar nav a{position:relative;min-height:44px;padding-inline:14px 12px}
.partner-sidebar nav a.active,.partner-sidebar nav a:hover{background:rgba(255,255,255,.09)}
.partner-sidebar nav a.active{box-shadow:inset -3px 0 0 #2dd4bf}
.partner-side-foot{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.12)}
.portal-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#ffffff 0,#f8fbff 54%,#e8f7f6 100%);border-color:#dbe7f3;padding:28px 30px}
.portal-hero:after{content:"";position:absolute;inset:auto -60px -90px auto;width:260px;height:180px;background:radial-gradient(circle,rgba(13,148,136,.18),rgba(13,148,136,0) 68%);pointer-events:none}
.portal-hero>*{position:relative}
.portal-hero h1{font-weight:900;color:#0f172a}
.portal-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.portal-button.subtle{background:#fff;color:#1d4ed8;border:1px solid #c8d7ea;box-shadow:none}
.portal-kpis{align-items:stretch}
.portal-kpis article{min-height:116px;border-color:#dae6f2;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 8px 22px rgba(15,23,42,.045)}
.portal-kpis article:nth-child(2):before{background:#d1fae5}
.portal-kpis article:nth-child(3):before{background:#fef3c7}
.portal-kpis article:nth-child(4):before{background:#e0e7ff}
.portal-kpis article:nth-child(5):before{background:#fee2e2}
.portal-kpis strong{font-weight:900;color:#0b1726}
.portal-panel{border-color:#dae6f2;box-shadow:0 10px 28px rgba(15,23,42,.055)}
.portal-panel header h2{font-weight:900;color:#132238}
.portal-panel header p{margin:4px 0 0;font-size:13px}
.portal-row{border-top-color:#eef2f7}
.portal-row:hover{background:#f8fbff}
.portal-table-wrap{border-color:#e1e9f2;background:#fff}
table{font-size:14px}
th{position:sticky;top:0;background:#f3f7fb;color:#344054;z-index:1}
tbody tr:hover td{background:#fbfdff}
td{color:#1f2937}
td small{color:#667085;margin-top:3px}
.portal-form{background:#fbfdff;border:1px solid #e6edf5;border-radius:8px;padding:14px}
.portal-form.compact{align-items:end}
.portal-form input,.portal-form select,.portal-form textarea,.inline-edit input,.partner-login-card input{min-height:42px;border-color:#ccd8e5;background:#fff}
.portal-form input:hover,.portal-form select:hover,.portal-form textarea:hover{border-color:#9eb3c8}
.portal-form button,.portal-button,.partner-login-card button{transition:transform .14s ease,box-shadow .14s ease,filter .14s ease}
.portal-form button:hover,.portal-button:hover,.partner-login-card button:hover{transform:translateY(-1px)}
.mini{min-height:32px}
.pill{border:1px solid transparent}
.pill.active,.pill.ready,.pill.done{border-color:#bbf7d0}
.pill.failed,.pill.overdue,.pill.revoked{border-color:#fecaca}
.pill.trial,.pill.draft,.pill.queued,.pill.running,.pill.pending{border-color:#fde68a}
.detail-list{background:#fbfdff;border:1px solid #e6edf5;border-radius:8px;padding:14px}
.finance-actions-grid .portal-form{margin:0}
.platform-partner-page{background:linear-gradient(180deg,#f4f8fc,#eef3f8);min-height:calc(100vh - 76px)}
.command-panel{background:linear-gradient(135deg,#fff,#f7fbff);border-color:#cfe0f2}
.command-panel .primary-action{width:max-content}
.job-timeline{display:grid;gap:10px}
.job-step{display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;align-items:flex-start;border:1px solid #e6edf5;background:#fbfdff;border-radius:8px;padding:12px}
.job-step>span{display:grid;place-items:center;width:32px;height:32px;border-radius:999px;background:#e5e7eb;color:#344054;font-weight:900}
.job-step strong,.job-step small{display:block}
.job-step small{color:#667085;margin-top:3px}
.job-step p{margin:8px 0 0;color:#991b1b;background:#fee2e2;border-radius:7px;padding:8px;white-space:pre-wrap}
.job-step.running{border-color:#bfdbfe;background:#eff6ff}
.job-step.running>span{background:#2563eb;color:#fff}
.job-step.done{border-color:#bbf7d0;background:#f0fdf4}
.job-step.done>span{background:#16a34a;color:#fff}
.job-step.failed{border-color:#fecaca;background:#fff7f7}
.job-step.failed>span{background:#dc2626;color:#fff}
.job-log{margin:0;background:#0f172a;color:#e5edf6;border-radius:8px;padding:14px;white-space:pre-wrap;max-height:360px;overflow:auto;direction:ltr;text-align:left}
@media(max-width:1180px){.portal-actions{justify-content:flex-start}.portal-form.compact{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.portal-hero{padding:20px}.portal-actions{margin-top:14px}.portal-actions .portal-button{width:100%}th,td{padding:10px}.portal-form.compact{grid-template-columns:1fr}}

.partner-portal{
  background:#eef3f8;
  grid-template-columns:280px minmax(0,1fr);
}
.partner-sidebar{
  background:#08111f;
  padding:18px 14px;
  gap:16px;
  border-left:1px solid #17263a;
}
.partner-mark{
  padding:12px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:8px;
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.025));
}
.partner-mark small{
  display:block;
  margin-top:8px;
  color:#9fb2c8;
  font-size:12px;
  line-height:1.6;
}
.partner-sidebar nav{
  background:rgba(15,23,42,.62);
  border:1px solid rgba(148,163,184,.14);
  border-radius:8px;
  padding:6px;
}
.partner-sidebar nav a{
  min-height:42px;
  padding:10px 11px;
  border-radius:7px;
}
.partner-sidebar nav a span{
  display:block;
}
.partner-sidebar nav a b{
  min-width:24px;
  height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#dbeafe;
  font-size:11px;
}
.partner-sidebar nav a:after{
  display:none;
}
.partner-sidebar nav a.active{
  background:#e8f5ff;
  color:#08111f;
}
.partner-sidebar nav a.active b{
  background:#0f766e;
  color:#fff;
}
.portal-lang-switch{
  display:flex;
  gap:8px;
  padding:8px;
  background:rgba(15,23,42,.62);
  border:1px solid rgba(148,163,184,.14);
  border-radius:8px;
}
.portal-lang-switch button{
  flex:1;
  border:0;
  border-radius:7px;
  min-height:34px;
  background:#132235;
  color:#dbeafe;
  font-family:inherit;
  font-weight:900;
  cursor:pointer;
}
.partner-side-foot{
  border-color:rgba(148,163,184,.18);
  background:#0f1d31;
}
.partner-side-foot small{
  color:#9fb2c8;
  display:block;
  margin-bottom:10px;
}
.portal-topbar{
  min-height:58px;
  margin-bottom:16px;
  padding:10px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  background:rgba(255,255,255,.88);
  border:1px solid #dbe6f1;
  border-radius:8px;
  box-shadow:0 8px 24px rgba(15,23,42,.05);
  backdrop-filter:blur(12px);
}
.portal-topbar span{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:900;
}
.portal-topbar strong{
  display:block;
  color:#0f172a;
  font-size:16px;
  margin-top:2px;
}
.portal-topbar-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.portal-status{
  display:inline-flex!important;
  align-items:center;
  min-height:32px;
  padding:4px 11px;
  border-radius:999px;
  background:#dcfce7;
  color:#166534!important;
  font-size:12px!important;
}
.portal-status.suspended{
  background:#fee2e2;
  color:#991b1b!important;
}
.portal-status.onboarding{
  background:#fef3c7;
  color:#92400e!important;
}
.portal-icon-button{
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:#0f766e;
  color:#fff;
  text-decoration:none;
  font-size:19px;
  font-weight:900;
}
.portal-main-band{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:16px;
  align-items:stretch;
}
.portal-command-panel{
  background:#0b1726;
  color:#fff;
  border-radius:8px;
  padding:18px;
  box-shadow:var(--portal-shadow);
}
.portal-command-panel span{
  color:#5eead4;
  font-size:12px;
  font-weight:900;
}
.portal-command-panel strong{
  display:block;
  font-size:26px;
  margin:8px 0 6px;
}
.portal-command-panel p{
  color:#cbd5e1;
  margin:0 0 14px;
}
.portal-command-list{
  display:grid;
  gap:9px;
}
.portal-command-list a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color:#fff;
  text-decoration:none;
  padding:10px 12px;
  border-radius:8px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.08);
  font-weight:900;
}
.portal-hero{
  background:#fff;
  border-color:#dbe6f1;
  box-shadow:0 10px 28px rgba(15,23,42,.055);
}
.portal-hero h1{
  letter-spacing:0;
}
.portal-kpis{
  grid-template-columns:repeat(5,minmax(160px,1fr));
}
.portal-kpis article{
  min-height:126px;
  border-color:#dbe6f1;
  box-shadow:0 8px 20px rgba(15,23,42,.045);
}
.portal-kpis article:before{
  inset:auto -26px -34px auto;
  background:#ecfeff;
}
.portal-kpis article:nth-child(2):before{background:#eff6ff}
.portal-kpis article:nth-child(3):before{background:#f0fdf4}
.portal-kpis article:nth-child(4):before{background:#fefce8}
.portal-kpis article:nth-child(5):before{background:#fff1f2}
.portal-panel{
  border-color:#dbe6f1;
}
.portal-panel header{
  align-items:center;
}
.portal-table-wrap{
  border-color:#e2ebf4;
}
th{
  background:#f2f6fb;
}
tr:hover td{
  background:#fbfdff;
}
.api-form-status{
  grid-column:1/-1;
  border-radius:8px;
  padding:10px 12px;
  background:#eef2ff;
  color:#3730a3;
  font-weight:900;
}
.api-form-status.success{
  background:#dcfce7;
  color:#166534;
}
.api-form-status.error{
  background:#fee2e2;
  color:#991b1b;
}
.api-form-status.pending{
  background:#fef3c7;
  color:#92400e;
}
@media(max-width:1180px){
  .portal-main-band{grid-template-columns:1fr}
  .portal-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  .partner-portal{grid-template-columns:1fr}
  .portal-topbar{display:block}
  .portal-topbar-actions{margin-top:10px}
  .portal-kpis{grid-template-columns:1fr}
}

.portal-process{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}
.portal-process article{
  display:flex;
  gap:12px;
  align-items:flex-start;
  min-height:86px;
  padding:15px;
  background:#fff;
  border:1px solid #dbe6f1;
  border-radius:8px;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
}
.portal-process article span{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:#0f766e;
  color:#fff;
  font-weight:900;
}
.portal-process article strong,
.portal-process article small{
  display:block;
}
.portal-process article strong{
  color:#0f172a;
}
.portal-process article small{
  color:#64748b;
  margin-top:3px;
}
.portal-role-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}
.portal-role-strip article{
  min-height:92px;
  padding:15px;
  border:1px solid #dbe6f1;
  border-radius:8px;
  background:#fff;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
}
.portal-role-strip strong,
.portal-role-strip span{
  display:block;
}
.portal-role-strip strong{
  color:#0f766e;
  font-size:13px;
  margin-bottom:6px;
}
.portal-role-strip span{
  color:#64748b;
  font-size:13px;
  line-height:1.6;
}
.team-action-panel{
  min-height:250px;
}
.team-action-panel header{
  min-height:70px;
}
.team-form{
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:end;
}
.team-form label:first-of-type{
  grid-column:1/-1;
}
.team-form button{
  grid-column:1/-1;
  width:100%;
}
.customer-create-form{
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  gap:16px;
  align-items:start;
}
.customer-form-nav{
  position:sticky;
  top:86px;
  display:grid;
  gap:6px;
  padding:14px;
  border:1px solid #dbe6f1;
  border-radius:8px;
  background:#f8fbff;
}
.customer-form-nav span{
  color:#0f766e;
  font-size:12px;
  font-weight:900;
  margin-bottom:4px;
}
.customer-form-nav a{
  display:flex;
  min-height:36px;
  align-items:center;
  padding:8px 10px;
  border-radius:7px;
  color:#475569;
  font-size:13px;
  font-weight:900;
}
.customer-form-nav a:hover{
  background:#e8f5ff;
  color:#1d4ed8;
}
.customer-form-sections{
  display:grid;
  gap:14px;
  min-width:0;
}
.customer-form-section{
  min-width:0;
  margin:0;
  padding:16px;
  border:1px solid #dbe6f1;
  border-radius:8px;
  background:#fff;
}
.customer-form-section legend{
  display:flex;
  align-items:center;
  gap:9px;
  width:auto;
  margin:0 0 14px;
  padding:0;
  color:#0f172a;
  font-size:17px;
  font-weight:900;
}
.customer-form-section legend span{
  min-width:34px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:#0f766e;
  color:#fff;
  font-size:12px;
}
.customer-form-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.customer-form-grid label{
  min-width:0;
}
.customer-form-grid label span{
  display:block;
  color:#475569;
  font-size:12px;
  font-weight:900;
  margin-bottom:5px;
}
.customer-form-grid input,
.customer-form-grid select,
.customer-form-grid textarea{
  width:100%;
  min-height:42px;
  border:1px solid #ccd8e5;
  border-radius:8px;
  padding:10px;
  background:#fff;
  color:#172033;
  font-family:inherit;
}
.customer-form-grid input:focus,
.customer-form-grid select:focus,
.customer-form-grid textarea:focus{
  outline:2px solid rgba(37,99,235,.16);
  border-color:#60a5fa;
}
.customer-form-grid textarea{
  min-height:92px;
  resize:vertical;
}
.customer-form-grid .wide{
  grid-column:1/-1;
}
.customer-form-submit{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:15px;
  border:1px solid #bde7dd;
  border-radius:8px;
  background:#f0fdfa;
}
.customer-form-submit strong,
.customer-form-submit span{
  display:block;
}
.customer-form-submit strong{
  color:#0f766e;
}
.customer-form-submit span{
  color:#64748b;
  font-size:13px;
}
.customer-form-submit button{
  min-width:190px;
  min-height:44px;
  border:0;
  border-radius:8px;
  background:#2563eb;
  color:#fff;
  font-family:inherit;
  font-weight:900;
}
.portal-form label{
  min-width:0;
}
.portal-form label.wide textarea{
  resize:vertical;
}
.portal-form button{
  min-width:150px;
}
@media(max-width:1180px){
  .portal-process{grid-template-columns:1fr}
  .portal-role-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .customer-create-form{grid-template-columns:1fr}
  .customer-form-nav{position:static;grid-template-columns:repeat(3,minmax(0,1fr))}
  .customer-form-nav span{grid-column:1/-1}
  .customer-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  .portal-role-strip,
  .team-form,
  .customer-form-grid,
  .customer-form-nav{grid-template-columns:1fr}
  .customer-form-submit{display:grid}
  .customer-form-submit button{width:100%}
}

/* Partner admin console refresh */
.partner-main{
  padding:22px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.45),rgba(255,255,255,0) 280px),
    #eef3f8;
}
.partner-page-head{
  min-height:178px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
  padding:26px;
  border:1px solid #d8e4ef;
  border-radius:8px;
  background:
    linear-gradient(135deg,#fff 0,#f7fbff 60%,#e8f6f4 100%);
  box-shadow:0 14px 34px rgba(15,23,42,.06);
}
.partner-page-head.compact{
  min-height:150px;
}
.partner-page-head span{
  display:inline-flex;
  color:#0f766e;
  font-size:12px;
  font-weight:900;
  margin-bottom:7px;
}
.partner-page-head h1{
  margin:0;
  color:#0f172a;
  font-size:34px;
  line-height:1.25;
  letter-spacing:0;
}
.partner-page-head p{
  max-width:860px;
  margin:8px 0 0;
  color:#64748b;
  line-height:1.8;
}
.partner-head-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.portal-button.subtle{
  background:#fff;
  color:#1d4ed8;
  border:1px solid #cbdcf0;
  box-shadow:none;
}
.portal-kpis.executive{
  grid-template-columns:repeat(5,minmax(150px,1fr));
}
.portal-kpis.executive article{
  padding:17px;
}
.portal-kpis b{
  font:inherit;
}
.command-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 380px;
  gap:16px;
}
.partner-command-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.partner-command-list a{
  display:block;
  min-height:92px;
  padding:14px;
  border:1px solid #dbe6f1;
  border-radius:8px;
  background:#f8fbff;
  color:#0f172a;
  text-decoration:none;
}
.partner-command-list a:hover{
  border-color:#9cc8f2;
  background:#eff7ff;
}
.partner-command-list strong,
.partner-command-list small{
  display:block;
}
.partner-command-list small{
  margin-top:6px;
  color:#64748b;
  line-height:1.6;
}
.health-stack{
  display:grid;
  gap:14px;
}
.health-stack article{
  padding:12px;
  border:1px solid #e4edf6;
  border-radius:8px;
  background:#fbfdff;
}
.health-stack span,
.health-stack small{
  display:block;
}
.health-stack span{
  color:#0f172a;
  font-weight:900;
}
.health-stack small{
  color:#64748b;
  margin-top:6px;
}
.health-stack i{
  display:block;
  height:9px;
  margin-top:9px;
  overflow:hidden;
  border-radius:999px;
  background:#e2e8f0;
}
.health-stack b{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#0f766e,#2563eb);
}
.portal-row.rich{
  min-height:68px;
  padding-inline:10px;
  border-radius:8px;
}
.customer-workspace,
.server-workspace{
  padding:0;
  overflow:hidden;
}
.customer-workspace>header,
.server-workspace>header{
  margin:0;
  padding:18px 20px;
  background:#fff;
}
.customer-create-form{
  padding:18px;
  background:#f6f9fc;
}
.customer-form-nav{
  top:92px;
  background:#fff;
}
.customer-form-nav a{
  text-decoration:none;
}
.customer-form-section{
  box-shadow:0 8px 18px rgba(15,23,42,.035);
}
.customer-form-section legend span,
.portal-process article span{
  background:#0f766e;
}
.server-create-form{
  display:grid;
  gap:14px;
  padding:18px;
  background:#f6f9fc;
}
.server-create-form fieldset{
  margin:0;
  padding:16px;
  border:1px solid #dbe6f1;
  border-radius:8px;
  background:#fff;
  box-shadow:0 8px 18px rgba(15,23,42,.035);
}
.server-create-form legend{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 0 14px;
  color:#0f172a;
  font-size:17px;
  font-weight:900;
}
.server-create-form legend span{
  min-width:34px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:#0f766e;
  color:#fff;
  font-size:12px;
}
.server-form-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.server-form-grid label span{
  display:block;
  margin-bottom:5px;
  color:#475569;
  font-size:12px;
  font-weight:900;
}
.server-form-grid input,
.server-form-grid select{
  width:100%;
  min-height:42px;
  border:1px solid #ccd8e5;
  border-radius:8px;
  padding:10px;
  background:#fff;
  color:#172033;
  font-family:inherit;
}
.server-form-grid input:focus,
.server-form-grid select:focus{
  outline:2px solid rgba(37,99,235,.16);
  border-color:#60a5fa;
}
.mini.link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#0f766e;
  text-decoration:none;
}
@media(max-width:1180px){
  .portal-kpis.executive{grid-template-columns:repeat(2,minmax(0,1fr))}
  .command-grid{grid-template-columns:1fr}
  .server-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  .partner-main{padding:14px}
  .partner-page-head{display:block;min-height:0;padding:20px}
  .partner-page-head h1{font-size:28px}
  .partner-head-actions{margin-top:14px}
  .partner-head-actions .portal-button{width:100%}
  .portal-kpis.executive,
  .partner-command-list,
  .server-form-grid{grid-template-columns:1fr}
}
.finance-summary-band{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}
.finance-summary-band article{
  min-height:92px;
  padding:16px;
  border:1px solid #dbe6f1;
  border-radius:8px;
  background:#fff;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
}
.finance-summary-band strong,
.finance-summary-band span{
  display:block;
}
.finance-summary-band strong{
  color:#0f172a;
  font-size:22px;
  font-weight:900;
}
.finance-summary-band span{
  margin-top:6px;
  color:#64748b;
  line-height:1.7;
}
.settings-workspace{
  padding:0;
  overflow:hidden;
}
.settings-workspace>header{
  margin:0;
  padding:18px 20px;
  background:#fff;
}
.settings-form{
  margin:0;
  padding:18px;
  grid-template-columns:repeat(3,minmax(0,1fr));
  background:#f6f9fc;
  border:0;
  border-top:1px solid #e4edf6;
  border-radius:0;
}
.settings-form .wide{
  grid-column:1/-1;
}
.settings-scope article{
  min-height:92px;
}
.settings-scope strong{
  font-size:28px;
  color:#0f172a;
}
.job-timeline{
  position:relative;
}
.job-step{
  grid-template-columns:42px minmax(0,1fr);
  min-height:74px;
}
.job-step>span{
  width:36px;
  height:36px;
  background:#e8eef6;
}
.job-step.running{
  box-shadow:0 0 0 3px rgba(37,99,235,.08);
}
.job-log{
  border:1px solid #20304a;
}
.portal-actions,
.partner-head-actions form{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin:0;
}
@media(max-width:1180px){
  .finance-summary-band,
  .settings-form{grid-template-columns:1fr}
}
@media(max-width:820px){
  .finance-summary-band{grid-template-columns:1fr}
}
