
:root{
  --v200-bg:#f3f5f7;
  --v200-surface:#ffffff;
  --v200-surface-soft:#f8fafc;
  --v200-line:#d9e0e7;
  --v200-text:#0f1728;
  --v200-muted:#64748b;
  --v200-primary:#8f5b34;
  --v200-primary-strong:#744622;
  --v200-shadow:0 14px 34px rgba(15,23,42,.06);
  --v200-shadow-soft:0 8px 20px rgba(15,23,42,.04);
}

body{
  background:var(--v200-bg);
  color:var(--v200-text);
}

main.container{
  max-width:1520px;
  padding:22px 22px 34px;
}

.topbar.premium{
  min-height:64px;
  background:rgba(255,255,255,.98);
  border-bottom:1px solid var(--v200-line);
  box-shadow:0 6px 18px rgba(15,23,42,.05);
}

.layout{
  align-items:start;
}

.sidebar{
  background:linear-gradient(180deg,#f8fafc 0%, #f3f5f7 100%);
  border-right:1px solid var(--v200-line);
}

.sidebar-brand-link,
.snav-group,
.section-card,
.glass-section,
.card,
.metric-card,
.summary-card,
.info-card,
.brand-info-card,
.module-detail-card,
.launchpad-route-card,
.owner-route-card,
.platform-route-card,
.owner-command-card,
.ops-triage-card,
.detail-ops-card,
.data-decision-card,
.line-item{
  box-shadow:var(--v200-shadow-soft)!important;
}

.page-hero,
.detail-hero,
.brand-hero-panel,
.surface-hero-panel,
.brand-login-hero{
  background:linear-gradient(180deg,#ffffff 0%, #fbfcfd 100%)!important;
  box-shadow:var(--v200-shadow)!important;
}

.page-hero.compact-hero,
.detail-hero,
.brand-hero-panel,
.surface-hero-panel{
  padding:26px!important;
}

.page-shell,
.detail-shell,
.brand-landing-shell{
  gap:18px;
}

.portal-shell .page-context-rail,
.portal-shell .hero-inline-badges,
.portal-shell .brand-badge-row,
.portal-shell .console-pill-strip{
  margin-top:12px;
}

.portal-shell .page-hero p,
.portal-shell .detail-hero p,
.portal-shell .metric-note,
.portal-shell .brand-info-card p,
.portal-shell .module-detail-card p,
.portal-shell .launchpad-route-card p,
.portal-shell .owner-route-card p,
.portal-shell .owner-command-card p,
.portal-shell .ops-triage-card p,
.portal-shell .detail-ops-card p,
.portal-shell .data-decision-card p{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0;
}

.portal-shell .section-subtitle,
.portal-shell .section-sub{
  color:var(--v200-muted)!important;
  max-width:72ch;
}

.portal-shell .route-audit-note,
.portal-shell .table-mobile-hint,
.portal-shell .module-ops-ribbon a small,
.portal-shell .workspace-module-ribbon a small{
  color:var(--v200-muted);
}

.portal-shell .data-jump-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:2px 0;
}

.portal-shell .data-jump-nav a{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--v200-line);
  background:#fff;
  color:var(--v200-text);
  font-weight:700;
}

.portal-shell .data-jump-nav a:hover{
  background:#faf6f1;
}

.portal-shell .ops-inline-summary,
.portal-shell .compact-summary-strip{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:14px 16px;
  border:1px solid var(--v200-line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--v200-shadow-soft);
}

.portal-shell .compact-summary-strip > div,
.public-page .compact-summary-strip > div{
  display:grid;
  gap:3px;
  min-width:120px;
}

.portal-shell .compact-summary-strip small,
.public-page .compact-summary-strip small{
  color:var(--v200-muted);
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.portal-shell .compact-summary-strip strong,
.public-page .compact-summary-strip strong{
  color:var(--v200-text);
}

.hero-actions,
.brand-hero-actions,
.console-action-row,
.module-mini-actions,
.section-head-actions,
.actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.stack-form,
.toolbar-grid,
.brand-form-grid,
.form-grid,
.form-row{
  gap:14px!important;
}

label > input,
label > select,
label > textarea{
  margin-top:6px;
}

.btn{
  transition:background-color .18s ease, border-color .18s ease, color .18s ease;
}

.btn.primary{
  background:linear-gradient(180deg,var(--v200-primary) 0%, var(--v200-primary-strong) 100%)!important;
}

.btn.secondary,
.btn.ghost,
.btn.tertiary,
.btn.small{
  background:#fff!important;
}

.line-item{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  padding:14px 16px;
  border:1px solid var(--v200-line);
  border-radius:18px;
  background:#fff;
}

.line-item + .line-item{
  margin-top:10px;
}

.table-wrap{
  border-radius:20px;
  border:1px solid var(--v200-line);
  overflow:auto;
  background:#fff;
  box-shadow:var(--v200-shadow-soft);
}

.table-wrap table{
  min-width:720px;
}

thead th{
  background:#f8fafc;
  color:#475467;
}

tbody tr:hover td{
  background:#faf5ef;
}

.public-page .panel-log-card,
.portal-shell .panel-log-card{
  background:#fff!important;
}

.job-log-preview{
  margin:0;
  min-height:260px;
  max-height:420px;
  overflow:auto;
  padding:16px;
  border-radius:16px;
  background:#0f1728;
  color:#f8fafc;
  font:500 .84rem/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

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

.panel-meta-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border:1px solid var(--v200-line);
  border-radius:16px;
  background:#fff;
}

.panel-meta-row span{
  color:var(--v200-muted);
}

.panel-job-focus{
  display:grid;
  gap:12px;
}

.panel-job-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.brand-login-page-shell,
.launchpad-shell-v200,
.module-detail-shell-v200{
  gap:18px;
}

.launchpad-shell-v200 .surface-module-grid .brand-info-card,
.module-detail-shell-v200 .surface-detail-grid .brand-info-card{
  min-height:100%;
}

.portal-shell .section-headline h2,
.public-page .section-headline h2,
.auth-page .section-headline h2{
  font-size:clamp(1.12rem,1.4vw,1.45rem);
}

.portal-shell .metric-value,
.portal-shell .value{
  font-size:clamp(1.05rem,1.6vw,1.6rem);
}

.portal-shell .hero-kicker,
.portal-shell .eyebrow,
.auth-page .hero-kicker,
.public-page .hero-kicker{
  letter-spacing:.05em;
}

.core-fallback-shell{
  display:grid;
  gap:16px;
}

.core-fallback-card{
  display:grid;
  gap:12px;
  padding:26px;
  border-radius:22px;
  border:1px solid var(--v200-line);
  background:#fff;
  box-shadow:var(--v200-shadow);
}

.core-fallback-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.core-fallback-link{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--v200-line);
  background:#fff;
  color:var(--v200-text);
  font-weight:700;
}

.core-fallback-link:hover{
  background:#faf6f1;
}

.public-topnav{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.public-topnav-link{
  border-radius:999px;
  border:1px solid transparent;
  padding:8px 12px;
}

.public-topnav-link.active,
.public-topnav-link:hover{
  border-color:var(--v200-line);
  background:#fff;
}

.flash,
.alert{
  border-radius:18px;
}

.flash.success,
.alert.success{
  background:#ecfdf3;
  border:1px solid #abefc6;
  color:#05603a;
}

.flash.error,
.alert.error{
  background:#fef3f2;
  border:1px solid #fecdca;
  color:#b42318;
}

.flash.warn,
.alert.warn{
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#b54708;
}

details.simple-disclosure summary{
  font-weight:700;
}

@media (max-width:1100px){
  .panel-meta-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:960px){
  main.container{
    padding:16px 14px 28px;
  }

  .page-hero.compact-hero,
  .detail-hero,
  .brand-hero-panel,
  .surface-hero-panel,
  .brand-login-hero,
  .core-fallback-card{
    padding:20px!important;
    border-radius:20px!important;
  }

  .public-topnav{
    display:none;
  }

  .portal-shell .data-jump-nav,
  .portal-shell .compact-summary-strip,
  .public-page .compact-summary-strip{
    gap:8px;
  }

  .portal-shell .compact-summary-strip > div,
  .public-page .compact-summary-strip > div{
    min-width:calc(50% - 8px);
  }

  .line-item{
    align-items:flex-start;
    flex-direction:column;
  }

  .brand-login-hero{
    grid-template-columns:1fr!important;
  }

  .hero-actions .btn,
  .brand-hero-actions .btn,
  .section-head-actions .btn,
  .console-action-row .btn,
  .module-mini-actions .btn{
    flex:1 1 220px;
  }
}

@media (max-width:760px){
  .table-wrap{
    overflow:visible;
    border:none;
    background:transparent;
    box-shadow:none;
  }

  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap th,
  .table-wrap td{
    display:block;
    width:100%;
  }

  .table-wrap table{
    min-width:0;
  }

  .table-wrap thead{
    display:none;
  }

  .table-wrap tbody{
    display:grid;
    gap:12px;
  }

  .table-wrap tr{
    border:1px solid var(--v200-line);
    border-radius:18px;
    background:#fff;
    padding:12px 14px;
    box-shadow:var(--v200-shadow-soft);
  }

  .table-wrap td{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:8px 0;
    border:none;
    text-align:left;
  }

  .table-wrap td::before{
    content:attr(data-label);
    flex:0 0 42%;
    max-width:42%;
    color:var(--v200-muted);
    font-size:.78rem;
    font-weight:700;
    letter-spacing:.02em;
  }

  .table-wrap td .td-label{
    display:none!important;
  }

  .table-wrap td > *{
    min-width:0;
  }

  .table-wrap td form,
  .table-wrap td .flex-col-gap-6,
  .table-wrap td .hero-actions{
    width:100%;
  }

  .page-context-rail,
  .hero-inline-badges,
  .brand-badge-row{
    gap:6px;
  }

  .badge,
  .chip,
  .filter-chip,
  .meta-chip{
    font-size:.75rem;
  }
}
