/* ==========================================================================
   DZManager Permanent Design System
   Purpose: one stable visual language for public pages + private operations UI.
   ========================================================================== */

:root{
  --d-bg:#090c0f;
  --d-bg-soft:#0c1014;
  --d-surface:#10151a;
  --d-surface-raised:#141a20;
  --d-surface-hover:#182028;
  --d-line:#222b34;
  --d-line-strong:#303c48;
  --d-text:#f4f2ed;
  --d-text-soft:#c4c8cc;
  --d-muted:#7f8891;
  --d-muted-2:#606a74;
  --d-accent:#ff7a35;
  --d-accent-hover:#ff8d52;
  --d-accent-soft:rgba(255,122,53,.12);
  --d-green:#52d39f;
  --d-green-soft:rgba(82,211,159,.11);
  --d-red:#ff7185;
  --d-red-soft:rgba(255,113,133,.11);
  --d-yellow:#e7bf69;
  --d-yellow-soft:rgba(231,191,105,.11);
  --d-blue:#79aefc;
  --d-blue-soft:rgba(121,174,252,.10);
  --d-radius-xs:7px;
  --d-radius-sm:10px;
  --d-radius:13px;
  --d-radius-lg:18px;
  --d-shadow:0 12px 28px rgba(0,0,0,.18);
  --d-shadow-lg:0 26px 70px rgba(0,0,0,.34);
  --d-topbar:64px;
  --d-sidebar:272px;
  --d-content:1480px;
  --d-gutter:clamp(20px,2.25vw,36px);
  --d-fast:140ms ease;
}

/* ---------- Foundation ---------- */
html{background:var(--d-bg)!important;color-scheme:dark}
body.design-system{
  margin:0!important;
  min-height:100vh;
  background:var(--d-bg)!important;
  color:var(--d-text)!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:14px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.design-system *{box-sizing:border-box}
body.design-system a{color:inherit}
body.design-system ::selection{background:rgba(255,122,53,.28);color:#fff}
body.design-system .wrap{width:min(1280px,calc(100% - 40px));margin-inline:auto}
body.design-system h1,
body.design-system h2,
body.design-system h3,
body.design-system h4{color:var(--d-text)!important;letter-spacing:-.025em}
body.design-system p{color:var(--d-text-soft)}
body.design-system .gradient{
  background:none!important;
  -webkit-background-clip:initial!important;
  background-clip:initial!important;
  color:var(--d-accent)!important;
}
body.design-system .soft{color:#fff!important}
body.design-system .green{color:var(--d-green)!important}
body.design-system .red{color:var(--d-red)!important}
body.design-system .gold{color:var(--d-yellow)!important}
body.design-system .meta{color:var(--d-muted)!important}
body.design-system .hidden{display:none!important}

/* ---------- Buttons / controls ---------- */
body.design-system .btn{
  min-height:40px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  padding:9px 14px!important;
  border:1px solid var(--d-line-strong)!important;
  border-radius:9px!important;
  background:var(--d-surface-raised)!important;
  color:var(--d-text-soft)!important;
  box-shadow:none!important;
  font-size:12px!important;
  font-weight:760!important;
  letter-spacing:0!important;
  transform:none!important;
  transition:background var(--d-fast),border-color var(--d-fast),color var(--d-fast)!important;
}
body.design-system .btn:hover{
  border-color:#475562!important;
  background:#1a222a!important;
  color:#fff!important;
  transform:none!important;
}
body.design-system .btn.primary{
  border-color:var(--d-accent)!important;
  background:var(--d-accent)!important;
  color:#15100c!important;
  box-shadow:none!important;
}
body.design-system .btn.primary:hover{
  border-color:var(--d-accent-hover)!important;
  background:var(--d-accent-hover)!important;
  color:#15100c!important;
  filter:none!important;
}
body.design-system .btn.danger,
body.design-system .danger-btn{
  border-color:#65303b!important;
  background:#251519!important;
  color:#ff9cac!important;
}
body.design-system .btn.danger:hover,
body.design-system .danger-btn:hover{background:#32191f!important;border-color:#83404e!important}
body.design-system .btn.small{min-height:34px!important;padding:7px 10px!important;font-size:11px!important}
body.design-system .btn.compact{min-height:30px!important;padding:5px 8px!important;font-size:10px!important}
body.design-system button[disabled],
body.design-system .btn[aria-disabled="true"]{opacity:.46!important;cursor:not-allowed!important}

body.design-system input[type="text"],
body.design-system input[type="search"],
body.design-system input[type="url"],
body.design-system input[type="number"],
body.design-system input[type="password"],
body.design-system input[type="datetime-local"],
body.design-system input[type="date"],
body.design-system input[type="time"],
body.design-system input[type="email"],
body.design-system select,
body.design-system textarea,
body.design-system .input,
body.design-system .select,
body.design-system .search,
body.design-system .setup-select{
  width:100%;
  min-height:42px!important;
  padding:9px 11px!important;
  border:1px solid var(--d-line)!important;
  border-radius:9px!important;
  background:#0b1014!important;
  color:var(--d-text)!important;
  box-shadow:none!important;
  outline:none!important;
  font-size:12px!important;
  line-height:1.45;
}
body.design-system textarea{min-height:116px!important;resize:vertical}
body.design-system input:hover,
body.design-system select:hover,
body.design-system textarea:hover{border-color:#35424f!important}
body.design-system input:focus,
body.design-system select:focus,
body.design-system textarea:focus{
  border-color:#5e7182!important;
  box-shadow:0 0 0 3px rgba(121,174,252,.09)!important;
}
body.design-system input::placeholder,
body.design-system textarea::placeholder{color:#56616c!important}
body.design-system label{
  color:#9aa4ad!important;
  font-size:10px!important;
  font-weight:760!important;
  letter-spacing:.025em!important;
}
body.design-system input[type="checkbox"]{accent-color:var(--d-accent)}
body.design-system :focus-visible{outline:2px solid rgba(121,174,252,.72)!important;outline-offset:2px!important}

/* ---------- Shared surfaces ---------- */
body.design-system .card,
body.design-system .portal-card,
body.design-system .tool-card,
body.design-system .action-card,
body.design-system .control-card,
body.design-system .nitrado-panel,
body.design-system .event-builder-card,
body.design-system .status-card,
body.design-system .task-card,
body.design-system .kanban-col{
  border:1px solid var(--d-line)!important;
  border-radius:var(--d-radius)!important;
  background:var(--d-surface)!important;
  box-shadow:none!important;
}
body.design-system .card:hover,
body.design-system .portal-card:hover,
body.design-system .tool-card:hover,
body.design-system .action-card:hover{border-color:#2e3944!important;transform:none!important}
body.design-system .tool-card,
body.design-system .portal-card,
body.design-system .action-card,
body.design-system .control-card,
body.design-system .nitrado-panel,
body.design-system .event-builder-card{padding:20px!important}
body.design-system .notice,
body.design-system .portal-callout,
body.design-system .control-note,
body.design-system .role-note,
body.design-system .validation-box{
  padding:11px 13px!important;
  border:1px solid var(--d-line)!important;
  border-radius:10px!important;
  background:#0d1216!important;
  color:#aab2ba!important;
  font-size:11px!important;
  line-height:1.55!important;
}
body.design-system .result{
  padding:10px 12px!important;
  border:1px solid var(--d-line)!important;
  border-radius:9px!important;
  background:#0b1014!important;
  color:#b8c0c7!important;
  font-size:11px!important;
  line-height:1.5!important;
}
body.design-system .pill,
body.design-system .private-badge,
body.design-system .tool-target-pill,
body.design-system .task-chip,
body.design-system .event-toggle{
  min-height:24px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  padding:4px 8px!important;
  border:1px solid var(--d-line)!important;
  border-radius:999px!important;
  background:#0c1115!important;
  color:#9aa4ad!important;
  font-size:8px!important;
  font-weight:800!important;
  letter-spacing:.045em!important;
}

/* ==========================================================================
   PUBLIC SITE
   ========================================================================== */
body.design-system:not(.portal-mode) .nav{
  width:min(1280px,calc(100% - 40px))!important;
  height:76px!important;
  margin:auto!important;
  border:0!important;
  background:transparent!important;
}
body.design-system:not(.portal-mode) .brand{gap:10px!important}
body.design-system:not(.portal-mode) .brandmark{
  width:38px!important;height:38px!important;
  border:1px solid #343d46!important;
  border-radius:9px!important;
  background:#12171c!important;
  color:#fff!important;
  box-shadow:none!important;
}
body.design-system:not(.portal-mode) .brandmark span{font-size:10px!important;letter-spacing:.06em!important}
body.design-system:not(.portal-mode) .brandcopy strong{font-size:15px!important}
body.design-system:not(.portal-mode) .brandcopy small{color:#68727c!important;font-size:7px!important;letter-spacing:.13em!important}
body.design-system:not(.portal-mode) .navlinks{gap:3px!important}
body.design-system:not(.portal-mode) .navlinks a{
  padding:8px 10px!important;
  border-radius:8px!important;
  color:#9ea6ad!important;
  font-size:12px!important;
  font-weight:680!important;
}
body.design-system:not(.portal-mode) .navlinks a:hover{background:#11171c!important;color:#fff!important}

body.design-system .home-shell{width:min(1320px,calc(100% - 40px))!important}
body.design-system .home-hero{
  min-height:650px;
  display:grid!important;
  grid-template-columns:minmax(0,1.06fr) minmax(430px,.94fr)!important;
  align-items:center!important;
  gap:clamp(48px,7vw,100px)!important;
  padding:80px 0 68px!important;
}
body.design-system .home-kicker,
body.design-system .eyebrow{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#7d8790!important;
  font-size:10px!important;
  font-weight:800!important;
  letter-spacing:.13em!important;
  text-transform:uppercase!important;
}
body.design-system .home-kicker-icon{
  width:24px;height:24px;
  display:grid;place-items:center;
  border:1px solid #353f48;
  border-radius:6px;
  color:var(--d-accent);
  font-size:7px;
  letter-spacing:.05em;
}
body.design-system .home-hero h1{
  max-width:800px;
  margin:22px 0 22px!important;
  font-size:clamp(48px,6.2vw,84px)!important;
  line-height:.96!important;
  letter-spacing:-.055em!important;
  font-weight:780!important;
}
body.design-system .home-lead{
  max-width:720px!important;
  margin:0!important;
  color:#9ea7af!important;
  font-size:17px!important;
  line-height:1.72!important;
}
body.design-system .home-lead strong{color:#d5d9dc!important;font-weight:570!important}
body.design-system .hero-actions{margin-top:28px!important;gap:8px!important}
body.design-system .hero-trust{
  display:flex!important;
  align-items:center!important;
  gap:11px!important;
  margin-top:22px!important;
  color:#717b84!important;
  font-size:10px!important;
  font-weight:700!important;
}
body.design-system .hero-trust i{width:3px!important;height:3px!important;background:#444d55!important;box-shadow:none!important}

/* Product preview: restrained operator console */
body.design-system .home-product{position:relative!important;transform:none!important}
body.design-system .product-glow{display:none!important}
body.design-system .app-preview{
  overflow:hidden!important;
  border:1px solid #2a333c!important;
  border-radius:16px!important;
  background:#0d1216!important;
  box-shadow:0 36px 90px rgba(0,0,0,.36)!important;
  transform:none!important;
}
body.design-system .app-preview-top{
  min-height:46px!important;
  padding:0 14px!important;
  border-bottom:1px solid #202830!important;
  background:#10161b!important;
}
body.design-system .app-preview-dots span{
  width:6px!important;height:6px!important;
  background:#3a444d!important;
  box-shadow:none!important;
}
body.design-system .app-preview-title{
  color:#8c969f!important;
  font-size:9px!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}
body.design-system .app-preview-live{
  padding:4px 7px!important;
  border:1px solid #315747!important;
  border-radius:999px!important;
  background:var(--d-green-soft)!important;
  color:#72d9ae!important;
  font-size:7px!important;
}
body.design-system .app-preview-body{min-height:430px!important;background:#0b0f13!important}
body.design-system .app-preview-side{
  width:112px!important;
  border-right:1px solid #202830!important;
  background:#0f1419!important;
}
body.design-system .preview-brand{border-bottom-color:#202830!important;color:#dfe2e4!important}
body.design-system .preview-nav span{
  border-radius:6px!important;
  color:#67727c!important;
  font-size:8px!important;
}
body.design-system .preview-nav span.active{
  background:#171d23!important;
  color:#f1f2f2!important;
  box-shadow:inset 2px 0 0 var(--d-accent)!important;
}
body.design-system .app-preview-main{padding:20px!important;background:#0b0f13!important}
body.design-system .preview-breadcrumb{color:#59636c!important;font-size:7px!important}
body.design-system .preview-heading h3{font-size:22px!important}
body.design-system .preview-heading>span{color:#6d7780!important}
body.design-system .preview-kpis{gap:7px!important}
body.design-system .preview-kpi{
  border:1px solid #222b33!important;
  border-radius:8px!important;
  background:#0f1419!important;
}
body.design-system .preview-kpi small{color:#626d76!important}
body.design-system .preview-command,
body.design-system .preview-console{
  border:1px solid #222b33!important;
  border-radius:10px!important;
  background:#0f1419!important;
}
body.design-system .preview-tool{
  border-color:#242e37!important;
  border-radius:7px!important;
  background:#0b1014!important;
}
body.design-system .preview-floating{
  right:-20px!important;bottom:-24px!important;
  border:1px solid #313b45!important;
  border-radius:11px!important;
  background:#11171c!important;
  box-shadow:var(--d-shadow-lg)!important;
}
body.design-system .preview-floating>div{background:#242c33!important}
body.design-system .preview-floating>div span{background:var(--d-accent)!important}

body.design-system .home-metrics{
  display:grid!important;
  grid-template-columns:repeat(4,1fr)!important;
  gap:0!important;
  margin:0!important;
  border-top:1px solid var(--d-line)!important;
  border-bottom:1px solid var(--d-line)!important;
}
body.design-system .home-metric{
  min-height:110px!important;
  padding:24px!important;
  border-right:1px solid var(--d-line)!important;
  background:transparent!important;
}
body.design-system .home-metric:last-child{border-right:0!important}
body.design-system .home-metric strong{font-size:31px!important;font-weight:720!important}
body.design-system .home-metric span{color:#727c84!important;font-size:11px!important}

body.design-system:not(.portal-mode) .section{padding:76px 0!important}
body.design-system .home-section-head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:30px!important;
  margin-bottom:28px!important;
}
body.design-system .home-section-head h2{
  max-width:790px!important;
  margin:10px 0 8px!important;
  font-size:clamp(31px,4vw,48px)!important;
  line-height:1.04!important;
  letter-spacing:-.04em!important;
}
body.design-system .home-section-head p{
  max-width:760px!important;
  margin:0!important;
  color:#8c969e!important;
  font-size:14px!important;
  line-height:1.7!important;
}
body.design-system .home-section-link{color:#9ba4ab!important;font-size:11px!important;font-weight:740!important}
body.design-system .home-section-link:hover{color:#fff!important}

body.design-system .platform-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
}
body.design-system .platform-card,
body.design-system .bot-feature,
body.design-system .workflow-card{
  border:1px solid var(--d-line)!important;
  border-radius:14px!important;
  background:var(--d-surface)!important;
  box-shadow:none!important;
  transform:none!important;
}
body.design-system .platform-card{
  min-height:270px!important;
  padding:24px!important;
}
body.design-system .platform-card.large{grid-column:1/-1!important;min-height:330px!important}
body.design-system .platform-card:before,
body.design-system .platform-card:after{display:none!important}
body.design-system .platform-card:hover,
body.design-system .bot-feature:hover,
body.design-system .workflow-card:hover{border-color:#333e48!important;transform:none!important}
body.design-system .platform-icon{
  width:38px!important;height:38px!important;
  display:grid!important;place-items:center!important;
  margin:0 0 20px!important;
  border:1px solid #303a43!important;
  border-radius:9px!important;
  background:#0d1216!important;
  font-size:16px!important;
  filter:none!important;
}
body.design-system .platform-card h3,
body.design-system .bot-feature h3,
body.design-system .workflow-card h3{font-size:19px!important}
body.design-system .platform-card p,
body.design-system .bot-feature p,
body.design-system .workflow-card p{color:#87919a!important;font-size:12px!important;line-height:1.65!important}
body.design-system .platform-list span{
  color:#a8b0b7!important;
  border-top:1px solid #202830!important;
  font-size:11px!important;
}
body.design-system .platform-list span:before{color:var(--d-accent)!important}
body.design-system .platform-demo{
  border:1px solid #242d35!important;
  border-radius:10px!important;
  background:#0b1014!important;
}
body.design-system .platform-demo-row{border-top-color:#202830!important}
body.design-system .platform-demo-state{color:var(--d-green)!important}
body.design-system .platform-demo-state.orange{color:var(--d-yellow)!important}

body.design-system .bot-feature-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
}
body.design-system .bot-feature{min-height:180px!important;padding:20px!important}
body.design-system .bot-feature>b{
  width:32px!important;height:32px!important;
  display:grid!important;place-items:center!important;
  border:1px solid #2e3841!important;
  border-radius:8px!important;
  background:#0c1115!important;
  font-size:14px!important;
}
body.design-system .discord-showcase{
  border:1px solid var(--d-line)!important;
  border-radius:16px!important;
  background:var(--d-surface)!important;
  box-shadow:none!important;
}
body.design-system .discord-panel{
  border-color:#2a333c!important;
  border-radius:12px!important;
  background:#0d1216!important;
  box-shadow:none!important;
}
body.design-system .discord-pill{
  border-color:#35404a!important;
  background:#0d1216!important;
  color:#9da6ae!important;
}
body.design-system .discord-command-chips span{border-color:#2b353e!important;background:#0b1014!important;color:#a8b1b8!important}
body.design-system .workflow{gap:12px!important}
body.design-system .workflow-card{padding:22px!important}
body.design-system .flow-icon{
  width:34px!important;height:34px!important;
  border:1px solid #303a43!important;
  border-radius:8px!important;
  background:#0d1216!important;
  font-size:14px!important;
}
body.design-system .badlands-strip{
  border:1px solid var(--d-line)!important;
  border-radius:16px!important;
  box-shadow:none!important;
}
body.design-system .badlands-strip:after{background:linear-gradient(90deg,#0d1216 0,rgba(13,18,22,.96) 46%,rgba(13,18,22,.58) 100%)!important}
body.design-system .home-cta{
  padding:50px!important;
  border:1px solid var(--d-line)!important;
  border-radius:16px!important;
  background:var(--d-surface)!important;
  box-shadow:none!important;
}
body.design-system .home-cta h2{font-size:clamp(32px,4.5vw,52px)!important}
body.design-system .footer{
  width:min(1280px,calc(100% - 40px))!important;
  margin:30px auto 0!important;
  padding:34px 0 44px!important;
  border-top:1px solid var(--d-line)!important;
  color:#68727a!important;
}
body.design-system .footer-brand{color:#dfe2e4!important}
body.design-system .footer-col strong{color:#929ca4!important}
body.design-system .footer a:hover{color:#fff!important}

/* ---------- Public utility pages ---------- */
body.design-system .public-page-head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:26px!important;
  margin-bottom:28px!important;
  padding-bottom:22px!important;
  border-bottom:1px solid var(--d-line)!important;
}
body.design-system .public-page-head h1{
  margin:10px 0 8px!important;
  font-size:clamp(36px,5vw,58px)!important;
  line-height:1!important;
  letter-spacing:-.045em!important;
  font-weight:740!important;
}
body.design-system .public-page-head p{
  max-width:760px!important;
  margin:0!important;
  color:#87919a!important;
  font-size:13px!important;
  line-height:1.65!important;
}
body.design-system .public-page-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important}
body.design-system .directory-tools{display:flex!important;gap:8px!important;margin:20px 0!important}
body.design-system .server-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
body.design-system .server-card,
body.design-system .guild-control-card{
  padding:16px!important;
  border:1px solid var(--d-line)!important;
  border-radius:11px!important;
  background:var(--d-surface)!important;
  box-shadow:none!important;
}
body.design-system .server-card:hover,
body.design-system .guild-control-card:hover{border-color:#333e48!important;background:#12181d!important}
body.design-system .server-icon{
  width:44px!important;height:44px!important;
  border:1px solid #2b353e!important;
  border-radius:9px!important;
  background:#0d1216!important;
}
body.design-system .server-name{color:#e2e5e7!important;font-size:14px!important;font-weight:690!important}
body.design-system .counts{gap:6px!important}
body.design-system .docs{
  display:grid!important;
  grid-template-columns:220px minmax(0,1fr)!important;
  gap:18px!important;
}
body.design-system .toc{
  position:sticky!important;
  top:18px!important;
  padding:10px!important;
  border:1px solid var(--d-line)!important;
  border-radius:10px!important;
  background:#0e1317!important;
}
body.design-system .toc a{
  padding:7px 8px!important;
  border-radius:6px!important;
  color:#7f8991!important;
  font-size:11px!important;
}
body.design-system .toc a:hover{background:#151b20!important;color:#fff!important}
body.design-system .doc-body{padding:22px!important}
body.design-system .docs-accordion{display:grid!important;gap:8px!important}
body.design-system .docs-accordion details{
  overflow:hidden!important;
  border:1px solid var(--d-line)!important;
  border-radius:10px!important;
  background:var(--d-surface)!important;
}
body.design-system .docs-accordion summary{
  min-height:52px!important;
  display:flex!important;
  align-items:center!important;
  padding:13px 15px!important;
  cursor:pointer!important;
  color:#d7dbde!important;
  font-size:12px!important;
  font-weight:680!important;
  list-style:none!important;
}
body.design-system .docs-accordion summary::-webkit-details-marker{display:none}
body.design-system .docs-accordion summary:hover{background:#141a20!important}
body.design-system .docs-accordion .details-body{
  padding:0 15px 15px!important;
  border-top:1px solid #1f272e!important;
}
body.design-system .docs-accordion .details-body p{
  color:#8a949c!important;
  font-size:11px!important;
  line-height:1.65!important;
}
body.design-system .command{
  padding:2px 5px!important;
  border:1px solid #2a343d!important;
  border-radius:5px!important;
  background:#0b1014!important;
  color:#c4c9cd!important;
  font-size:.92em!important;
}
body.design-system .status-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
}
body.design-system .status-card{
  min-height:110px!important;
  padding:16px!important;
  border:1px solid var(--d-line)!important;
  border-radius:11px!important;
  background:var(--d-surface)!important;
}
body.design-system .status-card .meta{
  font-size:8px!important;
  font-weight:760!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
body.design-system .status-card strong{
  display:block!important;
  margin-top:9px!important;
  font-size:20px!important;
  font-weight:680!important;
}
body.design-system .flag-hero{
  padding:20px!important;
  border:1px solid var(--d-line)!important;
  border-radius:13px!important;
  background:var(--d-surface)!important;
}
body.design-system .flag-logo{
  border-color:#303a43!important;
  border-radius:10px!important;
  background:#0c1115!important;
}
body.design-system .flag-stats{gap:8px!important}
body.design-system .flag-stat{
  padding:12px!important;
  border:1px solid #202830!important;
  border-radius:9px!important;
  background:#0d1216!important;
}
body.design-system .flag-grid{gap:12px!important}
body.design-system .list-head{padding:13px 14px!important;border-bottom-color:#202830!important}
body.design-system .flag-row{min-height:58px!important;border-radius:8px!important}
body.design-system .flag-row:hover{border-color:#2d3740!important;background:#12181d!important;transform:none!important}
body.design-system .flag-thumb,
body.design-system .flag-fallback{
  width:40px!important;height:40px!important;flex-basis:40px!important;
  border-color:#2c363f!important;border-radius:8px!important;
  background:#0b1014!important;
}
body.design-system .dashboard-head h1{
  margin:8px 0!important;
  font-size:clamp(36px,5vw,58px)!important;
  line-height:1!important;
  letter-spacing:-.045em!important;
}
body.design-system .auth-card{
  border-color:var(--d-line)!important;
  border-radius:14px!important;
  background:var(--d-surface)!important;
  box-shadow:none!important;
}

@media(max-width:900px){
  body.design-system .public-page-head{align-items:flex-start!important;flex-direction:column!important}
  body.design-system .status-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.design-system .docs{grid-template-columns:1fr!important}
  body.design-system .toc{position:static!important}
}
@media(max-width:620px){
  body.design-system .server-grid,
  body.design-system .status-grid,
  body.design-system .flag-grid{grid-template-columns:1fr!important}
  body.design-system .public-page-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%}
  body.design-system .public-page-actions .btn{width:100%!important}
  body.design-system .flag-stats{grid-template-columns:1fr!important}
}

/* ==========================================================================
   PRIVATE APPLICATION SHELL
   ========================================================================== */
body.portal-mode.design-system{
  padding-top:var(--d-topbar)!important;
  background:#0a0d10!important;
  --sidebar-w:var(--d-sidebar);
  --topbar-h:var(--d-topbar);
}
body.portal-mode.design-system .footer{display:none!important}
body.portal-mode.design-system .nav.app-nav{
  position:fixed!important;
  inset:0 0 auto 0!important;
  z-index:600!important;
  width:100%!important;
  height:var(--d-topbar)!important;
  display:grid!important;
  grid-template-columns:var(--d-sidebar) minmax(260px,1fr) auto!important;
  gap:18px!important;
  align-items:center!important;
  padding:0 18px 0 14px!important;
  border:0!important;
  border-bottom:1px solid var(--d-line)!important;
  background:rgba(9,12,15,.97)!important;
  box-shadow:none!important;
  backdrop-filter:blur(16px)!important;
}
body.portal-mode.design-system .app-nav .brand{min-width:0;gap:10px!important}
body.portal-mode.design-system .app-nav .brandmark{
  width:34px!important;height:34px!important;
  border:1px solid #343f48!important;
  border-radius:8px!important;
  background:#12171c!important;
  box-shadow:none!important;
}
body.portal-mode.design-system .app-nav .brandcopy strong{font-size:13px!important}
body.portal-mode.design-system .app-nav .brandcopy small{color:#657079!important;font-size:7px!important;letter-spacing:.14em!important}
body.portal-mode.design-system .app-toolbar-search{
  justify-self:center!important;
  width:min(620px,100%)!important;
  min-height:38px!important;
  border:1px solid #2a333c!important;
  border-radius:8px!important;
  background:#0c1115!important;
  color:#737d85!important;
  box-shadow:none!important;
}
body.portal-mode.design-system .app-toolbar-search:hover{border-color:#3a4651!important;background:#0f151a!important;box-shadow:none!important}
body.portal-mode.design-system .app-toolbar-search span{font-size:11px!important;font-weight:650!important}
body.portal-mode.design-system .app-toolbar-search kbd{
  border-color:#303a43!important;
  border-radius:5px!important;
  background:#11171c!important;
  color:#7f8991!important;
}
body.portal-mode.design-system .app-nav .navlinks{gap:2px!important}
body.portal-mode.design-system .app-nav .navlinks>a{
  padding:7px 9px!important;
  border-radius:7px!important;
  color:#838d95!important;
  font-size:10px!important;
}
body.portal-mode.design-system .app-nav .navlinks>a:hover{background:#11171c!important;color:#fff!important}
body.portal-mode.design-system .topbar-status{
  border:0!important;
  background:transparent!important;
  color:#707a82!important;
  font-size:9px!important;
}
body.portal-mode.design-system .topbar-status i{background:var(--d-green)!important;box-shadow:none!important}

/* Sidebar */
body.portal-mode.design-system .portal-sidebar{
  position:fixed!important;
  z-index:500!important;
  top:var(--d-topbar)!important;
  bottom:0!important;
  left:0!important;
  width:var(--d-sidebar)!important;
  height:auto!important;
  display:flex!important;
  flex-direction:column!important;
  padding:12px 10px!important;
  border:0!important;
  border-right:1px solid var(--d-line)!important;
  border-radius:0!important;
  background:#0c1014!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
body.portal-mode.design-system .portal-side-top{
  padding:0 2px 12px!important;
  border:0!important;
  background:transparent!important;
}
body.portal-mode.design-system .portal-side-top-row{margin-bottom:8px!important}
body.portal-mode.design-system .portal-side-back{
  min-height:32px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  margin:0!important;
  padding:6px 7px!important;
  border-radius:7px!important;
  color:#6f7981!important;
  font-size:9px!important;
  font-weight:740!important;
}
body.portal-mode.design-system .portal-side-back:hover{background:#12181d!important;color:#d8dcdf!important}
body.portal-mode.design-system .sidebar-collapse-btn{
  border-color:#29323a!important;
  border-radius:7px!important;
  background:#10161b!important;
  color:#6f7982!important;
}
body.portal-mode.design-system .portal-side-server{
  min-height:54px!important;
  padding:8px!important;
  border:1px solid var(--d-line)!important;
  border-radius:9px!important;
  background:#10151a!important;
}
body.portal-mode.design-system .portal-side-server .server-icon{
  width:34px!important;height:34px!important;flex:0 0 34px!important;
  border-radius:8px!important;
  border-color:#2b353e!important;
  background:#0b1014!important;
}
body.portal-mode.design-system .portal-side-server-copy>span{
  color:#646f78!important;
  font-size:6.5px!important;
  letter-spacing:.12em!important;
}
body.portal-mode.design-system .portal-side-server-copy>strong{
  margin-top:2px!important;
  color:#dadddf!important;
  font-size:10px!important;
}
body.portal-mode.design-system .server-switcher-trigger{
  min-height:42px!important;
  margin-top:7px!important;
  padding:7px 8px!important;
  border:1px solid #252f37!important;
  border-radius:8px!important;
  background:#0e1317!important;
  box-shadow:none!important;
}
body.portal-mode.design-system .server-switcher-trigger:hover{border-color:#36424c!important;background:#11171c!important}
body.portal-mode.design-system .server-switcher-trigger small{color:#59646d!important;font-size:6.5px!important}
body.portal-mode.design-system .server-switcher-trigger strong{color:#c7ccd0!important;font-size:9.5px!important}

body.portal-mode.design-system .portal-side-nav{
  padding:6px 0 12px!important;
  gap:2px!important;
}
body.portal-mode.design-system .portal-nav-label{
  margin:12px 8px 5px!important;
  padding:0!important;
  color:#59636c!important;
  font-size:7px!important;
  font-weight:820!important;
  letter-spacing:.14em!important;
}
body.portal-mode.design-system .portal-nav-group{
  margin:1px 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
body.portal-mode.design-system .portal-nav-group>summary{
  min-height:34px!important;
  padding:6px 8px!important;
  border-radius:7px!important;
  color:#737d85!important;
  font-size:9px!important;
  font-weight:760!important;
  letter-spacing:.02em!important;
  text-transform:none!important;
}
body.portal-mode.design-system .portal-nav-group>summary:hover{background:#11171c!important;color:#d3d7da!important}
body.portal-mode.design-system .portal-nav-group>summary b{color:#737d85!important}
body.portal-mode.design-system .portal-chevron{color:#505b64!important}
body.portal-mode.design-system .portal-nav-children{
  margin:2px 0 3px 14px!important;
  padding:0 0 0 7px!important;
  gap:1px!important;
  border-left:1px solid #202830!important;
}
body.portal-mode.design-system .portal-side-link{
  min-height:37px!important;
  margin:0!important;
  padding:6px 8px!important;
  gap:8px!important;
  border:1px solid transparent!important;
  border-radius:7px!important;
  background:transparent!important;
  color:#8c959d!important;
  box-shadow:none!important;
}
body.portal-mode.design-system .portal-side-link:hover{
  border-color:transparent!important;
  background:#12181d!important;
  color:#e6e8e9!important;
}
body.portal-mode.design-system .portal-side-link.active{
  border-color:#2d353c!important;
  background:#151b20!important;
  color:#fff!important;
  box-shadow:inset 2px 0 0 var(--d-accent)!important;
}
body.portal-mode.design-system .portal-side-link.active:after{display:none!important}
body.portal-mode.design-system .portal-side-icon{
  width:23px!important;height:23px!important;flex:0 0 23px!important;
  border:0!important;
  border-radius:6px!important;
  background:transparent!important;
  color:#707a83!important;
}
body.portal-mode.design-system .portal-side-link.active .portal-side-icon{background:var(--d-accent-soft)!important;color:#ff9a66!important}
body.portal-mode.design-system .portal-side-copy strong{
  color:inherit!important;
  font-size:10px!important;
  font-weight:690!important;
}
body.portal-mode.design-system .portal-side-copy span{
  margin-top:1px!important;
  color:#58636c!important;
  font-size:7.5px!important;
}
body.portal-mode.design-system .portal-workspace-context{
  margin:2px 0 5px 14px!important;
  padding:3px 0 5px 7px!important;
  gap:1px!important;
  border-left:1px solid #2b343c!important;
}
body.portal-mode.design-system .portal-workspace-context .workspace-context-label{
  padding:5px 7px 3px!important;
  color:#59646d!important;
  font-size:6px!important;
}
body.portal-mode.design-system .portal-workspace-context a{
  min-height:31px!important;
  padding:5px 7px!important;
  border-radius:6px!important;
  color:#76818a!important;
  font-size:8.5px!important;
}
body.portal-mode.design-system .portal-workspace-context a:hover{background:#11171c!important;color:#dfe2e4!important}
body.portal-mode.design-system .portal-workspace-context a.active{
  background:#151b20!important;
  color:#fff!important;
  box-shadow:inset 2px 0 0 var(--d-accent)!important;
}
body.portal-mode.design-system .portal-side-footer{
  margin-top:auto!important;
  padding:10px 7px 2px!important;
  border-top:1px solid #1d252c!important;
  background:transparent!important;
  color:#59636c!important;
  font-size:8px!important;
}
body.portal-mode.design-system .portal-side-lock{
  width:22px!important;height:22px!important;
  border-color:#283139!important;
  background:#0f1519!important;
  color:#68737c!important;
}

/* Main canvas */
body.portal-mode.design-system .portal-wrap{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
body.portal-mode.design-system .portal-section{
  width:auto!important;
  max-width:calc(var(--d-content) + var(--d-sidebar) + var(--d-gutter) + var(--d-gutter))!important;
  min-height:calc(100dvh - var(--d-topbar))!important;
  margin:0 auto!important;
  padding:28px var(--d-gutter) 72px calc(var(--d-sidebar) + var(--d-gutter))!important;
}
body.portal-mode.design-system .page-stack{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:14px!important;
}
body.portal-mode.design-system .page-stack.wide{max-width:none!important}
body.portal-mode.design-system .page-stack.narrow{max-width:920px!important}

/* Page header */
body.portal-mode.design-system .portal-page-head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:24px!important;
  margin:0 0 20px!important;
  padding:0 0 18px!important;
  border-bottom:1px solid var(--d-line)!important;
}
body.portal-mode.design-system .portal-page-head>div:first-child{min-width:0;max-width:900px}
body.portal-mode.design-system .portal-breadcrumb{
  margin:0 0 9px!important;
  color:#68737c!important;
  font-size:8px!important;
  font-weight:760!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
body.portal-mode.design-system .portal-breadcrumb b{color:#3f4951!important}
body.portal-mode.design-system .portal-page-head h1{
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  font-size:clamp(27px,2.4vw,36px)!important;
  line-height:1.06!important;
  letter-spacing:-.035em!important;
  font-weight:710!important;
}
body.portal-mode.design-system .portal-title-icon{
  width:34px!important;height:34px!important;flex:0 0 34px!important;
  display:grid!important;place-items:center!important;
  border:1px solid #303a43!important;
  border-radius:8px!important;
  background:#10161b!important;
  color:#a8b0b7!important;
  filter:none!important;
}
body.portal-mode.design-system .portal-title-icon .ui-icon{width:16px!important;height:16px!important}
body.portal-mode.design-system .portal-page-head p{
  max-width:760px!important;
  margin:8px 0 0!important;
  color:#7f8991!important;
  font-size:11px!important;
  line-height:1.55!important;
}
body.portal-mode.design-system .portal-page-meta{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:9px!important;
  margin-top:10px!important;
}
body.portal-mode.design-system .portal-context-chip{
  min-height:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#66717a!important;
  font-size:8px!important;
  font-weight:720!important;
  letter-spacing:.03em!important;
}
body.portal-mode.design-system .portal-context-chip+ .portal-context-chip:before{
  content:"•";
  margin-right:9px;
  color:#3f4850;
}
body.portal-mode.design-system .portal-context-chip.access{color:#83b69e!important}
body.portal-mode.design-system .portal-page-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  max-width:620px;
}

/* Workspace navigation:
   desktop uses selected-server navigation in sidebar; mobile keeps tabs. */
body.portal-mode.design-system .workspace-jumpbar{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  margin:0 0 18px!important;
  padding:5px!important;
  overflow-x:auto!important;
  border:1px solid var(--d-line)!important;
  border-radius:9px!important;
  background:#0d1216!important;
  box-shadow:none!important;
  white-space:nowrap;
  scrollbar-width:none;
}
body.portal-mode.design-system .workspace-jumpbar::-webkit-scrollbar{display:none}
body.portal-mode.design-system.has-workspace-sidebar-nav .workspace-jumpbar{display:none!important}
body.portal-mode.design-system .workspace-nav-group{display:flex;align-items:center;gap:2px;flex:0 0 auto}
body.portal-mode.design-system .workspace-nav-label{display:none!important}
body.portal-mode.design-system .workspace-page-link,
body.portal-mode.design-system .portal-subnav a{
  min-height:33px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:6px 9px!important;
  border:1px solid transparent!important;
  border-radius:7px!important;
  background:transparent!important;
  color:#7d8790!important;
  font-size:9px!important;
  font-weight:730!important;
  box-shadow:none!important;
}
body.portal-mode.design-system .workspace-page-link:hover,
body.portal-mode.design-system .portal-subnav a:hover{background:#13191e!important;color:#e3e6e8!important}
body.portal-mode.design-system .workspace-page-link.active,
body.portal-mode.design-system .portal-subnav a.active{
  border-color:#303941!important;
  background:#171d22!important;
  color:#fff!important;
  box-shadow:inset 0 -2px 0 var(--d-accent)!important;
}
body.portal-mode.design-system .workspace-jump-target{margin-left:auto!important;color:#9d8a7c!important}
body.portal-mode.design-system .portal-subnav{
  display:flex!important;
  gap:4px!important;
  margin:0 0 16px!important;
  padding:5px!important;
  overflow-x:auto!important;
  border:1px solid var(--d-line)!important;
  border-radius:9px!important;
  background:#0d1216!important;
  scrollbar-width:none;
}

/* Section hierarchy */
body.portal-mode.design-system .section-label,
body.portal-mode.design-system .web-command{
  display:inline-flex!important;
  margin-bottom:6px!important;
  color:#68737c!important;
  font-size:8px!important;
  font-weight:790!important;
  letter-spacing:.11em!important;
  text-transform:uppercase!important;
}
body.portal-mode.design-system .control-section-head,
body.portal-mode.design-system .nitrado-title-row,
body.portal-mode.design-system .server-settings-head,
body.portal-mode.design-system .event-toolbar{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin-bottom:15px!important;
}
body.portal-mode.design-system .control-section-head h3,
body.portal-mode.design-system .nitrado-title-row h3,
body.portal-mode.design-system .server-settings-head h3,
body.portal-mode.design-system .tool-card h3,
body.portal-mode.design-system .portal-card h3{
  margin:0!important;
  color:#e8eaeb!important;
  font-size:16px!important;
  font-weight:690!important;
  letter-spacing:-.015em!important;
}
body.portal-mode.design-system .control-section-head p,
body.portal-mode.design-system .nitrado-title-row p,
body.portal-mode.design-system .server-settings-head p,
body.portal-mode.design-system .tool-card p,
body.portal-mode.design-system .portal-card p{
  margin:5px 0 0!important;
  color:#77818a!important;
  font-size:10.5px!important;
  line-height:1.6!important;
}
body.portal-mode.design-system .portal-section-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
body.portal-mode.design-system .portal-section-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body.portal-mode.design-system .command-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
body.portal-mode.design-system .tool-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
}
body.portal-mode.design-system .server-info-grid,
body.portal-mode.design-system .settings-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
}

/* Forms */
body.portal-mode.design-system .form-grid,
body.portal-mode.design-system .control-form,
body.portal-mode.design-system .event-builder-grid,
body.portal-mode.design-system .event-settings-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
body.portal-mode.design-system .field{display:grid!important;gap:6px!important;min-width:0}
body.portal-mode.design-system .field.full{grid-column:1/-1!important}
body.portal-mode.design-system .setting-item{
  min-height:66px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  padding:11px 12px!important;
  border:1px solid #202830!important;
  border-radius:9px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .setting-item:hover{border-color:#2c363f!important;background:#0e1418!important}
body.portal-mode.design-system .setting-item.changed{
  border-color:#5d4a3d!important;
  background:#15120f!important;
  box-shadow:inset 2px 0 0 var(--d-accent)!important;
}
body.portal-mode.design-system .setting-copy strong{color:#d6dade!important;font-size:10.5px!important}
body.portal-mode.design-system .setting-copy span{color:#68737c!important;font-size:8.5px!important;line-height:1.5!important}
body.portal-mode.design-system .setting-control{min-width:220px!important}
body.portal-mode.design-system .settings-savebar{
  border:1px solid #343f48!important;
  border-radius:10px!important;
  background:rgba(14,19,23,.96)!important;
  box-shadow:var(--d-shadow-lg)!important;
  backdrop-filter:blur(16px)!important;
}

/* Dashboard overview / server hero */
body.portal-mode.design-system .server-workspace-hero,
body.portal-mode.design-system .control-hero{
  position:relative!important;
  overflow:hidden!important;
  padding:22px!important;
  border:1px solid #28313a!important;
  border-radius:14px!important;
  background:#10151a!important;
  box-shadow:none!important;
}
body.portal-mode.design-system .server-workspace-hero:before,
body.portal-mode.design-system .server-workspace-hero:after{display:none!important}
body.portal-mode.design-system .server-workspace-top{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:22px!important;
}
body.portal-mode.design-system .server-workspace-title h2{
  margin:5px 0 8px!important;
  font-size:clamp(23px,2.1vw,31px)!important;
  font-weight:700!important;
  letter-spacing:-.035em!important;
}
body.portal-mode.design-system .server-workspace-state,
body.portal-mode.design-system .server-workspace-actions{display:flex!important;gap:7px!important;flex-wrap:wrap!important}
body.portal-mode.design-system .portal-kpis,
body.portal-mode.design-system .server-workspace-kpis,
body.portal-mode.design-system .control-kpis,
body.portal-mode.design-system .task-kpis,
body.portal-mode.design-system .diag-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
  margin:15px 0 0!important;
}
body.portal-mode.design-system .portal-kpi,
body.portal-mode.design-system .server-workspace-kpi,
body.portal-mode.design-system .control-kpi,
body.portal-mode.design-system .task-kpi,
body.portal-mode.design-system .diag-card{
  min-height:82px!important;
  position:relative!important;
  padding:12px 13px!important;
  border:1px solid #202932!important;
  border-radius:9px!important;
  background:#0d1216!important;
  overflow:hidden!important;
}
body.portal-mode.design-system .portal-kpi:before,
body.portal-mode.design-system .server-workspace-kpi:before,
body.portal-mode.design-system .control-kpi:before,
body.portal-mode.design-system .task-kpi:before{display:none!important}
body.portal-mode.design-system .portal-kpi strong,
body.portal-mode.design-system .server-workspace-kpi strong,
body.portal-mode.design-system .control-kpi strong,
body.portal-mode.design-system .task-kpi strong{
  display:block!important;
  color:#e8eaeb!important;
  font-size:20px!important;
  font-weight:690!important;
  letter-spacing:-.025em!important;
}
body.portal-mode.design-system .portal-kpi span,
body.portal-mode.design-system .server-workspace-kpi span,
body.portal-mode.design-system .control-kpi span,
body.portal-mode.design-system .task-kpi span{
  display:block!important;
  margin-top:5px!important;
  color:#68737c!important;
  font-size:7.5px!important;
  font-weight:730!important;
  letter-spacing:.065em!important;
  text-transform:uppercase!important;
}
body.portal-mode.design-system .overview-live-rail{
  margin-top:12px!important;
  padding:8px 9px!important;
  border:1px solid #202830!important;
  border-radius:8px!important;
  background:#0c1115!important;
  color:#69737c!important;
}
body.portal-mode.design-system .overview-live-rail .live-pulse{background:var(--d-green)!important;box-shadow:none!important}

/* Cards used by portal overview */
body.portal-mode.design-system .action-card,
body.portal-mode.design-system .portal-card{min-height:170px!important}
body.portal-mode.design-system .action-icon,
body.portal-mode.design-system .portal-icon,
body.portal-mode.design-system .empty-icon{
  width:34px!important;height:34px!important;
  display:grid!important;place-items:center!important;
  margin-bottom:13px!important;
  border:1px solid #2a343d!important;
  border-radius:8px!important;
  background:#0c1115!important;
  color:#9ca5ac!important;
  font-size:15px!important;
  filter:none!important;
}
body.portal-mode.design-system .action-card:after,
body.portal-mode.design-system .tool-link-card:after{display:none!important}

/* Events / missions */
body.portal-mode.design-system .event-builder-section{
  padding:13px!important;
  border:1px solid #202830!important;
  border-radius:10px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .event-builder-section+.event-builder-section{margin-top:9px!important}
body.portal-mode.design-system .event-grid,
body.portal-mode.design-system .mission-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(270px,1fr))!important;
  gap:12px!important;
}
body.portal-mode.design-system .event-card,
body.portal-mode.design-system .mission-card{
  overflow:hidden!important;
  border:1px solid var(--d-line)!important;
  border-radius:12px!important;
  background:#0f1419!important;
  box-shadow:none!important;
  transform:none!important;
}
body.portal-mode.design-system .event-card:hover,
body.portal-mode.design-system .mission-card:hover{border-color:#333e47!important;transform:none!important}
body.portal-mode.design-system .event-card img{aspect-ratio:16/7!important;object-fit:cover!important}
body.portal-mode.design-system .event-card h3,
body.portal-mode.design-system .mission-card h3{font-size:14px!important}
body.portal-mode.design-system .event-description,
body.portal-mode.design-system .mission-description{color:#737e87!important;font-size:9.5px!important;line-height:1.55!important}
body.portal-mode.design-system .event-toolbar{
  padding:7px!important;
  border:1px solid #202830!important;
  border-radius:9px!important;
  background:#0d1216!important;
}

/* Security / diagnostics */
body.portal-mode.design-system .security-page .control-card{overflow:visible!important}
body.portal-mode.design-system .setting-lock-note{
  padding:10px 11px!important;
  border:1px solid #2a333c!important;
  border-radius:8px!important;
  background:#0d1216!important;
  color:#87919a!important;
  font-size:10px!important;
}
body.portal-mode.design-system .diag-card strong{color:#dfe2e4!important;font-size:15px!important}
body.portal-mode.design-system .diag-card small{display:block;margin-top:5px;color:#68737c!important;font-size:8.5px!important}
body.portal-mode.design-system .diag-row{
  padding:11px 0!important;
  border-bottom:1px solid #202830!important;
}

/* Tables / row lists */
body.portal-mode.design-system .table-shell{
  width:100%!important;
  overflow:auto!important;
  border:1px solid var(--d-line)!important;
  border-radius:10px!important;
  background:#0b1014!important;
}
body.portal-mode.design-system table{
  width:100%!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  background:transparent!important;
}
body.portal-mode.design-system thead th{
  position:sticky!important;
  top:0!important;
  z-index:2!important;
  padding:9px 11px!important;
  border-bottom:1px solid #29323b!important;
  background:#10161b!important;
  color:#6d7881!important;
  font-size:7px!important;
  font-weight:820!important;
  letter-spacing:.09em!important;
  text-transform:uppercase!important;
}
body.portal-mode.design-system tbody td{
  padding:10px 11px!important;
  border-bottom:1px solid #1b232a!important;
  color:#aeb6bd!important;
  font-size:10px!important;
  vertical-align:middle!important;
}
body.portal-mode.design-system tbody tr:last-child td{border-bottom:0!important}
body.portal-mode.design-system tbody tr:hover td{background:#0e1418!important}
body.portal-mode.design-system .setup-row,
body.portal-mode.design-system .audit-row,
body.portal-mode.design-system .deployment-row,
body.portal-mode.design-system .history-row{
  min-height:58px!important;
  padding:10px 11px!important;
  border:1px solid #202830!important;
  border-radius:9px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .setup-row:hover,
body.portal-mode.design-system .audit-row:hover,
body.portal-mode.design-system .deployment-row:hover,
body.portal-mode.design-system .history-row:hover{border-color:#303a43!important;background:#0f1519!important}

/* Map */
body.portal-mode.design-system .server-map-shell{
  overflow:hidden!important;
  border:1px solid #2a333c!important;
  border-radius:12px!important;
  background:#0b1014!important;
  box-shadow:none!important;
}
body.portal-mode.design-system .server-map-canvas{min-height:clamp(540px,72vh,920px)!important}
body.portal-mode.design-system .map-toolbar{gap:7px!important}

/* Task board */
body.portal-mode.design-system .kanban{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(260px,1fr))!important;
  gap:10px!important;
}
body.portal-mode.design-system .kanban-col{
  min-height:340px!important;
  border-radius:10px!important;
  background:#0c1115!important;
}
body.portal-mode.design-system .kanban-head{
  padding:10px 11px!important;
  border-bottom:1px solid #202830!important;
  background:#0f1519!important;
}
body.portal-mode.design-system .task-card{
  padding:11px!important;
  border-radius:8px!important;
  background:#11171c!important;
}
body.portal-mode.design-system .task-card:hover{border-color:#36414b!important;transform:none!important}

/* Empty/loading states */
body.portal-mode.design-system .empty-state,
body.portal-mode.design-system .control-empty,
body.portal-mode.design-system .settings-loading{
  min-height:96px!important;
  display:grid!important;
  place-items:center!important;
  padding:20px!important;
  border:1px dashed #2a333b!important;
  border-radius:10px!important;
  background:#0c1115!important;
  color:#68737c!important;
  text-align:center!important;
  font-size:10px!important;
}
body.portal-mode.design-system .empty-state h3{font-size:15px!important}
body.portal-mode.design-system .empty-state p{color:#737d85!important;font-size:10px!important}

/* Command palette / server switcher / toasts */
body.design-system .command-overlay{background:rgba(4,6,8,.78)!important;backdrop-filter:blur(12px)!important}
body.design-system .command-dialog,
body.design-system .server-switcher-popover,
body.design-system .modal-panel{
  border:1px solid #303a43!important;
  border-radius:12px!important;
  background:#10161b!important;
  box-shadow:var(--d-shadow-lg)!important;
}
body.design-system .command-item{border-radius:7px!important}
body.design-system .command-item:hover,
body.design-system .command-item.active{background:#171e24!important}
body.design-system .command-item-icon,
body.design-system .server-switcher-item-icon{
  border-color:#2c363f!important;
  background:#0d1216!important;
  color:#9aa4ac!important;
}
body.design-system .server-switcher-item{
  border-radius:8px!important;
  color:#99a2aa!important;
}
body.design-system .server-switcher-item:hover{border-color:#333e47!important;background:#141b20!important}
body.design-system .server-switcher-item.active{
  border-color:#3b454e!important;
  background:#171d22!important;
}
body.design-system .server-switcher-item .current{border-color:#335746!important;color:#74d7ad!important}
body.design-system .ui-toast{
  border:1px solid #303a43!important;
  border-radius:10px!important;
  background:rgba(15,21,26,.97)!important;
  box-shadow:0 18px 48px rgba(0,0,0,.34)!important;
}
body.design-system .ui-toast.success{border-color:#305845!important}
body.design-system .ui-toast.error{border-color:#66333e!important}
body.design-system .ui-toast.warning{border-color:#65542e!important}

/* Dashboard landing / community chooser */
body.design-system .dashboard-head{align-items:flex-end!important}
body.design-system .dashboard-server-shell{padding-top:52px!important}
body.design-system .user-card{
  padding:8px 10px!important;
  border:1px solid var(--d-line)!important;
  border-radius:10px!important;
  background:#0f1419!important;
}
body.design-system .user-avatar{border-color:#303a43!important}
body.design-system .guild-control-card,
body.design-system .server-card{border-radius:12px!important;background:#10151a!important}
body.design-system .server-grid{gap:12px!important}

/* Collapsed sidebar */
@media(min-width:901px){
  body.portal-sidebar-collapsed.portal-mode.design-system{--d-sidebar:76px}
  body.portal-sidebar-collapsed.portal-mode.design-system .portal-sidebar{width:76px!important;padding-inline:8px!important}
  body.portal-sidebar-collapsed.portal-mode.design-system .nav.app-nav{grid-template-columns:76px minmax(260px,1fr) auto!important}
  body.portal-sidebar-collapsed.portal-mode.design-system .portal-section{padding-left:calc(76px + var(--d-gutter))!important}
  body.portal-sidebar-collapsed.portal-mode.design-system .portal-side-server-copy,
  body.portal-sidebar-collapsed.portal-mode.design-system .portal-side-copy,
  body.portal-sidebar-collapsed.portal-mode.design-system .portal-nav-label,
  body.portal-sidebar-collapsed.portal-mode.design-system .server-switcher-copy,
  body.portal-sidebar-collapsed.portal-mode.design-system .server-switcher-trigger .chev,
  body.portal-sidebar-collapsed.portal-mode.design-system .portal-side-footer>span{display:none!important}
  body.portal-sidebar-collapsed.portal-mode.design-system .portal-side-server,
  body.portal-sidebar-collapsed.portal-mode.design-system .portal-side-link,
  body.portal-sidebar-collapsed.portal-mode.design-system .portal-nav-group>summary,
  body.portal-sidebar-collapsed.portal-mode.design-system .server-switcher-trigger{justify-content:center!important}
  body.portal-sidebar-collapsed.portal-mode.design-system .portal-nav-children,
  body.portal-sidebar-collapsed.portal-mode.design-system .portal-workspace-context{
    margin-left:0!important;padding-left:0!important;border-left:0!important;
  }
  body.portal-sidebar-collapsed.portal-mode.design-system .portal-workspace-context .workspace-context-label{display:none!important}
  body.portal-sidebar-collapsed.portal-mode.design-system .portal-workspace-context a{justify-content:center!important;font-size:0!important}
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media(max-width:1180px) and (min-width:901px){
  :root{--d-sidebar:244px}
  body.portal-mode.design-system .portal-section{padding-left:calc(var(--d-sidebar) + 22px)!important;padding-right:22px!important}
  body.portal-mode.design-system .nav.app-nav{grid-template-columns:var(--d-sidebar) minmax(220px,1fr) auto!important}
  body.portal-mode.design-system .portal-side-copy span{display:none!important}
  body.portal-mode.design-system .portal-section-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.design-system .home-hero{grid-template-columns:1fr minmax(380px,.8fr)!important;gap:45px!important}
}

@media(max-width:900px){
  :root{--d-topbar:60px}
  body.portal-mode.design-system{padding-top:var(--d-topbar)!important}
  body.portal-mode.design-system .nav.app-nav{
    height:var(--d-topbar)!important;
    display:flex!important;
    padding:0 12px!important;
  }
  body.portal-mode.design-system .app-nav .brand{flex:1}
  body.portal-mode.design-system .app-toolbar-search{display:none!important}
  body.portal-mode.design-system .portal-sidebar{
    top:var(--d-topbar)!important;
    width:min(330px,calc(100vw - 12px))!important;
    height:calc(100dvh - var(--d-topbar))!important;
    padding-bottom:max(12px,env(safe-area-inset-bottom))!important;
    transform:translateX(-104%)!important;
    transition:transform 180ms ease!important;
    box-shadow:18px 0 55px rgba(0,0,0,.42)!important;
  }
  body.portal-mode.design-system .portal-sidebar.open{transform:translateX(0)!important}
  body.portal-mode.design-system .portal-sidebar-scrim.show{display:block!important}
  body.portal-mode.design-system .portal-section{
    min-height:0!important;
    max-width:none!important;
    padding:20px 14px calc(76px + env(safe-area-inset-bottom))!important;
  }
  body.portal-mode.design-system .portal-mobile-toggle{
    position:fixed!important;
    top:69px!important;
    left:14px!important;
    z-index:570!important;
    display:inline-flex!important;
    align-items:center!important;
    gap:7px!important;
    min-height:38px!important;
    padding:7px 10px!important;
    border:1px solid #2d3740!important;
    border-radius:8px!important;
    background:#10161b!important;
    color:#a0a8ae!important;
    box-shadow:var(--d-shadow)!important;
  }
  body.portal-mode.design-system .portal-page-head{
    align-items:flex-start!important;
    flex-direction:column!important;
    gap:13px!important;
    padding-top:48px!important;
  }
  body.portal-mode.design-system .portal-page-actions{width:100%;justify-content:flex-start!important}
  body.portal-mode.design-system.has-workspace-sidebar-nav .workspace-jumpbar{display:flex!important}
  body.portal-mode.design-system .workspace-jumpbar{
    position:sticky!important;
    top:calc(var(--d-topbar) + 6px)!important;
    z-index:340!important;
    margin-left:-14px!important;
    width:calc(100% + 28px)!important;
    padding-left:14px!important;
    padding-right:14px!important;
    border-left:0!important;
    border-right:0!important;
    border-radius:0!important;
    background:rgba(12,17,21,.96)!important;
    backdrop-filter:blur(14px)!important;
  }
  body.portal-mode.design-system .portal-kpis,
  body.portal-mode.design-system .server-workspace-kpis,
  body.portal-mode.design-system .control-kpis,
  body.portal-mode.design-system .task-kpis,
  body.portal-mode.design-system .diag-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.portal-mode.design-system .portal-section-grid,
  body.portal-mode.design-system .portal-section-grid.three,
  body.portal-mode.design-system .command-grid,
  body.portal-mode.design-system .tool-grid,
  body.portal-mode.design-system .server-info-grid,
  body.portal-mode.design-system .settings-grid,
  body.portal-mode.design-system .form-grid,
  body.portal-mode.design-system .control-form,
  body.portal-mode.design-system .event-builder-grid,
  body.portal-mode.design-system .event-settings-grid{grid-template-columns:1fr!important}
  body.portal-mode.design-system .server-workspace-top{flex-direction:column!important}
  body.portal-mode.design-system .server-workspace-actions{width:100%!important;justify-content:flex-start!important}
  body.portal-mode.design-system .setting-item{align-items:stretch!important;flex-direction:column!important}
  body.portal-mode.design-system .setting-control{width:100%!important;min-width:0!important}

  body.design-system .home-hero{
    min-height:0!important;
    grid-template-columns:1fr!important;
    gap:44px!important;
    padding:52px 0!important;
  }
  body.design-system .home-product{max-width:720px}
  body.design-system .home-metrics{grid-template-columns:repeat(2,1fr)!important}
  body.design-system .home-metric:nth-child(2){border-right:0!important}
  body.design-system .home-metric:nth-child(-n+2){border-bottom:1px solid var(--d-line)!important}
  body.design-system .platform-grid{grid-template-columns:1fr!important}
  body.design-system .platform-card.large{grid-column:auto!important}
  body.design-system .bot-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media(max-width:680px){
  body.design-system .wrap,
  body.design-system .home-shell,
  body.design-system:not(.portal-mode) .nav,
  body.design-system .footer{width:min(100% - 24px,1280px)!important}
  body.design-system:not(.portal-mode) .nav{height:66px!important}
  body.design-system .home-hero{padding-top:38px!important}
  body.design-system .home-hero h1{font-size:clamp(42px,13vw,64px)!important}
  body.design-system .home-lead{font-size:15px!important}
  body.design-system .hero-trust{align-items:flex-start!important;flex-direction:column!important;gap:7px!important}
  body.design-system .hero-trust i{display:none!important}
  body.design-system .app-preview-side{display:none!important}
  body.design-system .preview-floating{display:none!important}
  body.design-system .home-metrics{grid-template-columns:1fr!important}
  body.design-system .home-metric{min-height:82px!important;border-right:0!important;border-bottom:1px solid var(--d-line)!important}
  body.design-system .home-metric:last-child{border-bottom:0!important}
  body.design-system .home-section-head{align-items:flex-start!important;flex-direction:column!important}
  body.design-system .bot-feature-grid{grid-template-columns:1fr!important}
  body.design-system .home-cta{padding:28px!important}

  body.portal-mode.design-system .portal-section{padding-left:10px!important;padding-right:10px!important}
  body.portal-mode.design-system .portal-page-head{padding-top:46px!important;margin-bottom:14px!important}
  body.portal-mode.design-system .portal-page-head h1{font-size:25px!important}
  body.portal-mode.design-system .portal-title-icon{display:none!important}
  body.portal-mode.design-system .portal-page-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
  body.portal-mode.design-system .portal-page-actions .btn{width:100%!important}
  body.portal-mode.design-system .workspace-jumpbar{
    margin-left:-10px!important;
    width:calc(100% + 20px)!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }
  body.portal-mode.design-system .server-workspace-hero,
  body.portal-mode.design-system .control-hero,
  body.portal-mode.design-system .tool-card,
  body.portal-mode.design-system .portal-card,
  body.portal-mode.design-system .action-card,
  body.portal-mode.design-system .control-card,
  body.portal-mode.design-system .nitrado-panel,
  body.portal-mode.design-system .event-builder-card{padding:14px!important}
  body.portal-mode.design-system .server-workspace-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  body.portal-mode.design-system .server-workspace-actions .btn{width:100%!important}
  body.portal-mode.design-system .control-section-head,
  body.portal-mode.design-system .nitrado-title-row,
  body.portal-mode.design-system .server-settings-head,
  body.portal-mode.design-system .event-toolbar{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  body.portal-mode.design-system .table-shell{
    margin-left:-14px!important;
    width:calc(100% + 28px)!important;
    border-left:0!important;
    border-right:0!important;
    border-radius:0!important;
  }
  body.portal-mode.design-system table{min-width:620px!important}
  body.portal-mode.design-system .server-map-canvas{min-height:62dvh!important}
}

@media(max-width:410px){
  body.portal-mode.design-system .portal-page-actions{grid-template-columns:1fr!important}
  body.portal-mode.design-system .portal-kpis,
  body.portal-mode.design-system .server-workspace-kpis,
  body.portal-mode.design-system .control-kpis,
  body.portal-mode.design-system .task-kpis,
  body.portal-mode.design-system .diag-grid{grid-template-columns:1fr!important}
}

@media(prefers-reduced-motion:reduce){
  body.design-system *,
  body.design-system *::before,
  body.design-system *::after{
    scroll-behavior:auto!important;
    transition-duration:.001ms!important;
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
  }
}


/* ==========================================================================
   FULL-SITE OWNERSHIP AUDIT
   These rules deliberately take ownership of page internals that previously
   fell back to legacy embedded styles. Keep new visual work in this file.
   ========================================================================== */

body.design-system::before{display:none!important}

/* Keep the main work area centered relative to the content area after the
   fixed sidebar instead of centering the sidebar + content as one giant box. */
@media(min-width:901px){
  body.portal-mode.design-system .portal-section{
    max-width:none!important;
    margin:0!important;
    padding-left:calc(var(--d-sidebar) + var(--d-gutter))!important;
    padding-right:max(
      var(--d-gutter),
      calc(100vw - var(--d-sidebar) - var(--d-content) - var(--d-gutter))
    )!important;
  }
}
body.portal-mode.design-system.app-scrolled .nav.app-nav{
  border-bottom-color:#2a333c!important;
  background:rgba(8,11,14,.985)!important;
}
body.portal-mode.design-system.app-scrolled .portal-sidebar{
  border-right-color:#252e36!important;
}

/* Shared text and action rows */
body.design-system .section-sub{
  color:#87919a!important;
  font-size:13px!important;
  line-height:1.65!important;
}
body.design-system .tiny{
  color:#66717a!important;
  font-size:9px!important;
  line-height:1.5!important;
}
body.portal-mode.design-system .portal-actions,
body.portal-mode.design-system .control-actions,
body.portal-mode.design-system .deploy-actions,
body.portal-mode.design-system .row-actions,
body.portal-mode.design-system .server-settings-actions,
body.portal-mode.design-system .event-card-actions,
body.portal-mode.design-system .mission-card-actions,
body.portal-mode.design-system .event-builder-footer,
body.portal-mode.design-system .mission-builder-footer,
body.portal-mode.design-system .map-popup-actions{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  flex-wrap:wrap!important;
}
body.portal-mode.design-system .control-muted{
  color:#6d7881!important;
  font-size:9px!important;
  line-height:1.5!important;
}
body.portal-mode.design-system .control-list{
  display:grid!important;
  gap:8px!important;
}
body.portal-mode.design-system code{
  padding:2px 5px;
  border:1px solid #27313a;
  border-radius:5px;
  background:#0a0f13;
  color:#c4c9cd;
  font:500 10px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;
}

/* Community overview / quick actions */
body.portal-mode.design-system .quick-actions{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
  gap:10px!important;
}
body.portal-mode.design-system .quick-action{
  min-height:92px!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  padding:14px!important;
  border:1px solid var(--d-line)!important;
  border-radius:10px!important;
  background:#0f1419!important;
  box-shadow:none!important;
}
body.portal-mode.design-system .quick-action:hover{
  border-color:#333e47!important;
  background:#12181d!important;
  transform:none!important;
}
body.portal-mode.design-system .quick-action-icon{
  width:34px!important;height:34px!important;flex:0 0 34px!important;
  display:grid!important;place-items:center!important;
  border:1px solid #2d3740!important;
  border-radius:8px!important;
  background:#0b1014!important;
  color:#9aa4ac!important;
}
body.portal-mode.design-system .quick-action strong{color:#dfe2e4!important;font-size:11px!important}
body.portal-mode.design-system .quick-action span{color:#69747d!important;font-size:9px!important}

/* Settings */
body.portal-mode.design-system .settings-list{
  padding:13px!important;
  border:1px solid #202830!important;
  border-radius:9px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .settings-list-top{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin-bottom:8px!important;
}
body.portal-mode.design-system .setting-sub{
  color:#66717a!important;
  font-size:8.5px!important;
  line-height:1.45!important;
}
body.portal-mode.design-system .setting-toggle{
  position:relative!important;
  width:100%!important;
  min-height:42px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-top:8px!important;
  padding:9px 10px!important;
  border:1px solid #29333c!important;
  border-radius:8px!important;
  background:#0c1115!important;
  color:#939da5!important;
  cursor:pointer!important;
}
body.portal-mode.design-system .setting-toggle input{
  position:absolute!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.portal-mode.design-system .setting-toggle-track{
  position:relative!important;
  width:42px!important;
  height:24px!important;
  flex:0 0 42px!important;
  border:1px solid #313b44!important;
  border-radius:999px!important;
  background:#161c21!important;
}
body.portal-mode.design-system .setting-toggle-track::after{
  content:""!important;
  position:absolute!important;
  top:3px!important;
  left:3px!important;
  width:16px!important;
  height:16px!important;
  border-radius:50%!important;
  background:#747f88!important;
  transition:transform var(--d-fast),background var(--d-fast)!important;
}
body.portal-mode.design-system .setting-toggle input:checked + .setting-toggle-track{
  border-color:#59483c!important;
  background:var(--d-accent-soft)!important;
}
body.portal-mode.design-system .setting-toggle input:checked + .setting-toggle-track::after{
  transform:translateX(18px)!important;
  background:var(--d-accent)!important;
}
body.portal-mode.design-system .setting-toggle-state{
  color:#8b959d!important;
  font-size:9px!important;
  font-weight:740!important;
}
body.portal-mode.design-system .settings-group,
body.portal-mode.design-system .settings-section{
  border-color:var(--d-line)!important;
  border-radius:11px!important;
  background:var(--d-surface)!important;
  box-shadow:none!important;
}

/* Nitrado connection + workspace chooser */
body.portal-mode.design-system .nitrado-connect-box{
  padding:18px!important;
  border:1px solid var(--d-line)!important;
  border-radius:11px!important;
  background:var(--d-surface)!important;
}
body.portal-mode.design-system .nitrado-connect-copy strong{
  display:block!important;
  color:#dde1e4!important;
  font-size:13px!important;
}
body.portal-mode.design-system .nitrado-connect-copy span{
  display:block!important;
  margin-top:4px!important;
  color:#717c85!important;
  font-size:10px!important;
}
body.portal-mode.design-system .nitrado-connected-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-bottom:12px!important;
}
body.portal-mode.design-system .nitrado-connected-line{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
body.portal-mode.design-system .nitrado-live-dot,
body.portal-mode.design-system .status-dot{
  width:7px!important;height:7px!important;
  border-radius:50%!important;
  background:var(--d-green)!important;
  box-shadow:none!important;
}
body.portal-mode.design-system .nitrado-service-summary,
body.portal-mode.design-system .workspace-toolbar{
  border-color:var(--d-line)!important;
  border-radius:10px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .workspace-toolbar{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:8px!important;
}
body.portal-mode.design-system .workspace-toolbar .search{flex:1!important}

/* Access and permissions */
body.portal-mode.design-system fieldset{
  min-width:0!important;
  padding:11px!important;
  border:1px solid var(--d-line)!important;
  border-radius:9px!important;
  background:#0c1115!important;
}
body.portal-mode.design-system fieldset label{
  border-radius:6px!important;
}
body.portal-mode.design-system fieldset label:hover{background:#12181d!important}
body.portal-mode.design-system .permission-row{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:14px!important;
  padding:12px!important;
  border:1px solid #202830!important;
  border-radius:9px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .permission-row:hover{border-color:#303a43!important}
body.portal-mode.design-system .row-main{min-width:0!important}
body.portal-mode.design-system .row-main strong{color:#dadddf!important;font-size:11px!important}
body.portal-mode.design-system .row-meta{
  margin-top:4px!important;
  color:#69747d!important;
  font-size:8.5px!important;
  line-height:1.5!important;
}

/* Server tools */
body.portal-mode.design-system .server-tools-heading{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:14px!important;
  padding-top:4px!important;
}
body.portal-mode.design-system .direct-action-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:11px!important;
  border:1px solid #202830!important;
  border-radius:9px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .tool-target-pill{color:#9ca5ad!important}

/* Validation / deployments / audit */
body.portal-mode.design-system .validation-summary{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;
  gap:8px!important;
}
body.portal-mode.design-system .mini-stat{
  min-height:70px!important;
  padding:11px!important;
  border:1px solid #202830!important;
  border-radius:9px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .mini-stat strong{
  display:block!important;
  color:#e1e4e6!important;
  font-size:17px!important;
  font-weight:680!important;
}
body.portal-mode.design-system .mini-stat span{
  display:block!important;
  margin-top:4px!important;
  color:#66717a!important;
  font-size:8px!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
}
body.portal-mode.design-system .deployment-row,
body.portal-mode.design-system .audit-row{
  display:flex!important;
  align-items:flex-start!important;
  gap:11px!important;
}
body.portal-mode.design-system .deploy-title{
  color:#dadddf!important;
  font-size:11px!important;
  font-weight:690!important;
}
body.portal-mode.design-system .audit-icon{
  width:30px!important;height:30px!important;flex:0 0 30px!important;
  display:grid!important;place-items:center!important;
  border:1px solid #2a343d!important;
  border-radius:7px!important;
  background:#0b1014!important;
  color:#87919a!important;
}

/* Server Security */
body.portal-mode.design-system .security-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.portal-mode.design-system .security-rule-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
}
body.portal-mode.design-system .security-rule{
  display:flex!important;
  align-items:flex-start!important;
  gap:9px!important;
  padding:11px!important;
  border:1px solid #202830!important;
  border-radius:9px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .security-rule strong{
  min-width:24px!important;height:24px!important;
  display:grid!important;place-items:center!important;
  border:1px solid #2c3640!important;
  border-radius:6px!important;
  background:#10161b!important;
  color:#95a0a8!important;
}
body.portal-mode.design-system .security-rule span{
  color:#87919a!important;
  font-size:10px!important;
  line-height:1.5!important;
}
body.portal-mode.design-system .security-incident,
body.portal-mode.design-system .security-killer-row{
  display:flex!important;
  justify-content:space-between!important;
  gap:14px!important;
  padding:11px!important;
  border:1px solid #202830!important;
  border-radius:9px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .security-incident-main p,
body.portal-mode.design-system .security-killer-main p{
  margin:4px 0 0!important;
  color:#6f7a83!important;
  font-size:9px!important;
}
body.portal-mode.design-system .security-age{color:#db8491!important;font-size:9px!important;font-weight:740!important}
body.portal-mode.design-system .security-tally{
  min-width:46px!important;
  height:32px!important;
  display:grid!important;place-items:center!important;
  padding:0 9px!important;
  border:1px solid #2b3640!important;
  border-radius:7px!important;
  background:#10161b!important;
  color:#c6ccd1!important;
  font-size:14px!important;
  font-weight:720!important;
}
body.portal-mode.design-system .security-first-hit{
  margin-top:6px!important;
  padding:3px 7px!important;
  border:1px solid #5c4c2c!important;
  border-radius:999px!important;
  background:var(--d-yellow-soft)!important;
  color:#d7b66e!important;
  font-size:8px!important;
  font-weight:740!important;
}
body.portal-mode.design-system .security-profile{
  margin-top:10px!important;
  padding:14px!important;
  border:1px solid #2b353e!important;
  border-radius:10px!important;
  background:#0e1418!important;
}
body.portal-mode.design-system .security-profile-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
}
body.portal-mode.design-system .security-profile-stat{
  padding:10px!important;
  border:1px solid #202830!important;
  border-radius:8px!important;
  background:#0b1014!important;
}
body.portal-mode.design-system .security-profile-stat strong{font-size:17px!important}
body.portal-mode.design-system .security-profile-stat span{color:#67727b!important;font-size:8px!important}

/* Diagnostics */
body.portal-mode.design-system .diag-list{display:grid!important;gap:0!important}
body.portal-mode.design-system .diag-row{
  min-height:55px!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
}
body.portal-mode.design-system .diag-row small{color:#66717a!important;opacity:1!important;font-size:8.5px!important}
body.portal-mode.design-system .diag-status{
  color:#9ca5ad!important;
  font-size:9px!important;
  font-weight:760!important;
}
body.portal-mode.design-system .diag-dot{box-shadow:none!important}
body.portal-mode.design-system .diag-dot.ok{background:var(--d-green)!important}
body.portal-mode.design-system .diag-dot.warn{background:var(--d-yellow)!important}
body.portal-mode.design-system .diag-dot.bad{background:var(--d-red)!important}
body.portal-mode.design-system .diag-json{
  padding:12px!important;
  border:1px solid #202830!important;
  border-radius:8px!important;
  background:#090d11!important;
  color:#aeb6bd!important;
}

/* Suggestions */
body.portal-mode.design-system .sug-kpis{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:8px!important;
  margin-bottom:12px!important;
}
body.portal-mode.design-system .sug-kpi{
  padding:12px!important;
  border:1px solid #202830!important;
  border-radius:9px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .sug-kpi strong{display:block!important;font-size:20px!important;font-weight:680!important}
body.portal-mode.design-system .sug-kpi span{color:#66717a!important;font-size:8px!important;letter-spacing:.06em!important}
body.portal-mode.design-system .sug-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(280px,330px)!important;
  gap:12px!important;
  align-items:start!important;
}
body.portal-mode.design-system .sug-toolbar{
  display:flex!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  margin:10px 0!important;
}
body.portal-mode.design-system .sug-card{
  padding:14px!important;
  border:1px solid #202830!important;
  border-radius:10px!important;
  background:#0e1418!important;
}
body.portal-mode.design-system .sug-card h3{font-size:14px!important}
body.portal-mode.design-system .sug-copy{color:#89939b!important;font-size:10.5px!important;line-height:1.55!important}
body.portal-mode.design-system .sug-pill{
  padding:4px 7px!important;
  border:1px solid #29333c!important;
  border-radius:999px!important;
  background:#0b1014!important;
  color:#89939b!important;
  font-size:8px!important;
}
body.portal-mode.design-system .sug-response{
  margin-top:9px!important;
  padding:9px 10px!important;
  border-left:2px solid #496f9b!important;
  border-radius:6px!important;
  background:var(--d-blue-soft)!important;
  color:#9eabb5!important;
  font-size:9.5px!important;
}
body.portal-mode.design-system .sug-side{top:82px!important}
body.portal-mode.design-system .sug-empty{
  padding:24px!important;
  border-color:#2a333b!important;
  border-radius:10px!important;
  color:#68737c!important;
}

/* Tasks */
body.portal-mode.design-system .task-detail-box{
  padding:12px!important;
  border:1px solid #202830!important;
  border-radius:9px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .task-modal-backdrop{
  background:rgba(3,5,7,.78)!important;
  backdrop-filter:blur(8px)!important;
}
body.portal-mode.design-system .task-modal{
  border:1px solid #303a43!important;
  border-radius:12px!important;
  background:#10161b!important;
  box-shadow:var(--d-shadow-lg)!important;
}
body.portal-mode.design-system .task-modal-head{
  padding-bottom:12px!important;
  border-bottom:1px solid #202830!important;
}
body.portal-mode.design-system .task-create-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:11px!important;
}
body.portal-mode.design-system .task-due{color:#68737c!important;font-size:8px!important}
body.portal-mode.design-system .task-actions{display:flex!important;gap:6px!important;flex-wrap:wrap!important}
body.portal-mode.design-system .task-empty{
  padding:14px!important;
  border:1px dashed #29333c!important;
  border-radius:8px!important;
  color:#66717a!important;
  text-align:center!important;
}
body.portal-mode.design-system .check-item,
body.portal-mode.design-system .comment-row{
  padding:8px 0!important;
  border-bottom:1px solid #1e262d!important;
}
body.portal-mode.design-system .task-progress{
  height:4px!important;
  overflow:hidden!important;
  border-radius:999px!important;
  background:#202830!important;
}
body.portal-mode.design-system .task-progress span{display:block!important;height:100%!important;background:var(--d-accent)!important}
body.portal-mode.design-system .modal-close{
  width:30px!important;height:30px!important;
  display:grid!important;place-items:center!important;
  padding:0!important;
  border:1px solid #2b353e!important;
  border-radius:7px!important;
  background:#0d1216!important;
  color:#87919a!important;
  cursor:pointer!important;
}
body.portal-mode.design-system .modal-close:hover{background:#171d22!important;color:#fff!important}

/* Events + Missions: own the pieces the generic card system does not. */
body.portal-mode.design-system .event-card-body,
body.portal-mode.design-system .mission-card-body{
  padding:14px!important;
  gap:9px!important;
}
body.portal-mode.design-system .event-detail-grid,
body.portal-mode.design-system .mission-detail-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
}
body.portal-mode.design-system .event-detail,
body.portal-mode.design-system .mission-detail{
  padding:8px 9px!important;
  border:1px solid #202830!important;
  border-radius:8px!important;
  background:#0b1014!important;
}
body.portal-mode.design-system .event-detail small,
body.portal-mode.design-system .mission-detail small{
  color:#616c75!important;
  opacity:1!important;
  font-size:7px!important;
  letter-spacing:.07em!important;
}
body.portal-mode.design-system .event-detail strong,
body.portal-mode.design-system .mission-detail strong{
  color:#bcc3c9!important;
  font-size:10px!important;
}
body.portal-mode.design-system .event-files,
body.portal-mode.design-system .mission-files{
  display:flex!important;
  gap:5px!important;
  flex-wrap:wrap!important;
}
body.portal-mode.design-system .event-builder-section,
body.portal-mode.design-system .mission-builder-section{
  padding:12px!important;
  border:1px solid #202830!important;
  border-radius:9px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .event-builder-heading,
body.portal-mode.design-system .mission-builder-heading{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  margin-bottom:10px!important;
}
body.portal-mode.design-system .event-builder-heading>span,
body.portal-mode.design-system .mission-builder-heading>span{
  width:24px!important;height:24px!important;
  display:grid!important;place-items:center!important;
  border:1px solid #3b332d!important;
  border-radius:6px!important;
  background:var(--d-accent-soft)!important;
  color:#d99068!important;
  font-size:9px!important;
}
body.portal-mode.design-system .event-builder-heading small,
body.portal-mode.design-system .mission-builder-heading small{
  color:#657079!important;
  opacity:1!important;
  font-size:8px!important;
}
body.portal-mode.design-system .event-dropzone,
body.portal-mode.design-system .event-file-box,
body.portal-mode.design-system .mission-dropzone,
body.portal-mode.design-system .mission-file-box{
  padding:11px!important;
  border:1px dashed #303a43!important;
  border-radius:8px!important;
  background:#0a0f13!important;
}
body.portal-mode.design-system .event-toggle,
body.portal-mode.design-system .mission-toggle{
  min-height:42px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:9px 10px!important;
  border:1px solid #252f37!important;
  border-radius:8px!important;
  background:#0c1115!important;
  color:#919aa2!important;
  font-size:9px!important;
}
body.portal-mode.design-system .event-toggle input,
body.portal-mode.design-system .mission-toggle input{
  width:auto!important;
  min-height:0!important;
  margin:0!important;
}
body.portal-mode.design-system .event-announce-preview{
  margin-top:10px!important;
  padding:10px 11px!important;
  border-left:2px solid #8c573b!important;
  border-radius:6px!important;
  background:var(--d-accent-soft)!important;
  color:#9ca5ad!important;
  font-size:9px!important;
}
body.portal-mode.design-system .event-dialog,
body.portal-mode.design-system .mission-dialog{
  width:min(760px,calc(100vw - 24px))!important;
  max-height:calc(100dvh - 24px)!important;
  overflow:auto!important;
  padding:0!important;
  border:1px solid #303a43!important;
  border-radius:12px!important;
  background:#10161b!important;
  color:var(--d-text)!important;
  box-shadow:var(--d-shadow-lg)!important;
}
body.portal-mode.design-system .event-dialog::backdrop,
body.portal-mode.design-system .mission-dialog::backdrop{
  background:rgba(3,5,7,.8)!important;
  backdrop-filter:blur(8px)!important;
}
body.portal-mode.design-system .event-dialog-head,
body.portal-mode.design-system .mission-dialog-head{
  position:sticky!important;
  top:0!important;
  z-index:2!important;
  padding:13px 15px!important;
  border-bottom:1px solid #202830!important;
  background:#10161b!important;
}
body.portal-mode.design-system .event-dialog-body,
body.portal-mode.design-system .mission-dialog-body{padding:15px!important}

/* Map */
body.portal-mode.design-system .server-map-layout{
  grid-template-columns:minmax(0,1fr) minmax(290px,320px)!important;
  gap:12px!important;
}
body.portal-mode.design-system .map-kpis{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
}
body.portal-mode.design-system .map-kpi{
  padding:11px!important;
  border:1px solid #202830!important;
  border-radius:9px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .map-kpi strong{font-size:17px!important;font-weight:680!important}
body.portal-mode.design-system .map-kpi span{color:#66717a!important;opacity:1!important;font-size:8px!important}
body.portal-mode.design-system .map-style-toggle{
  padding:3px!important;
  border:1px solid #29333c!important;
  border-radius:8px!important;
  background:#0b1014!important;
}
body.portal-mode.design-system .map-style-toggle .btn.active,
body.portal-mode.design-system .map-layer-btn.active{
  border-color:#4c423a!important;
  background:var(--d-accent-soft)!important;
  color:#e5a27e!important;
}
body.portal-mode.design-system .map-coordinate-readout,
body.portal-mode.design-system .map-attribution{
  border-color:#313a43!important;
  background:rgba(8,12,15,.9)!important;
  color:#9ca5ad!important;
  box-shadow:none!important;
}
body.portal-mode.design-system .map-popup{
  border:1px solid #303a43!important;
  border-radius:10px!important;
  background:rgba(15,21,26,.97)!important;
  box-shadow:var(--d-shadow-lg)!important;
}
body.portal-mode.design-system .map-side{
  gap:10px!important;
  top:76px!important;
}
body.portal-mode.design-system .map-filter-list{gap:5px!important}
body.portal-mode.design-system .map-filter{
  padding:5px 7px!important;
  border:1px solid #29333c!important;
  border-radius:999px!important;
  background:#0b1014!important;
  color:#88929a!important;
  font-size:8px!important;
}
body.portal-mode.design-system .map-marker-row{
  padding:8px!important;
  border:1px solid #202830!important;
  border-radius:8px!important;
  background:#0d1216!important;
  color:#b8c0c6!important;
}
body.portal-mode.design-system .map-marker-row:hover{border-color:#333e47!important;background:#12181d!important}
body.portal-mode.design-system .map-marker-row small{color:#657079!important;opacity:1!important;font-size:8px!important}
body.portal-mode.design-system .map-marker-form{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
}

/* Public community / claim internals */
body.design-system .public-summary-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
body.design-system .public-summary{
  padding:14px!important;
  border:1px solid var(--d-line)!important;
  border-radius:10px!important;
  background:var(--d-surface)!important;
}
body.design-system .public-sug-list{display:grid!important;gap:10px!important}
body.design-system .public-sug-card{padding:15px!important}
body.design-system .public-sug-card h3{font-size:15px!important}
body.design-system .public-sug-card p{color:#87919a!important;font-size:10.5px!important;line-height:1.55!important}
body.design-system .public-sug-score{
  min-width:58px!important;
  padding:7px!important;
  border:1px solid #27313a!important;
  border-radius:8px!important;
  background:#0b1014!important;
}
body.design-system .public-sug-score strong{font-size:16px!important}
body.design-system .public-sug-score span{color:#626d76!important;font-size:7px!important}
body.design-system .public-sug-response{
  margin-top:9px!important;
  padding:9px 10px!important;
  border-left:2px solid #496f9b!important;
  border-radius:6px!important;
  background:var(--d-blue-soft)!important;
  color:#9ca8b2!important;
}
body.design-system .flag-ident{min-width:0!important}
body.design-system .flag-name{color:#dfe2e4!important;font-size:11px!important;font-weight:680!important}
body.design-system .flag-state{color:#727d85!important;font-size:8px!important}
body.design-system .owner{color:#9da6ad!important;font-size:9px!important}
body.design-system .page-back{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  color:#78828a!important;
  font-size:10px!important;
  font-weight:680!important;
}
body.design-system .page-back:hover{color:#fff!important}
body.design-system .status-box,
body.design-system .error-page-card{
  padding:24px!important;
  border:1px solid var(--d-line)!important;
  border-radius:13px!important;
  background:var(--d-surface)!important;
}
body.design-system .request-ref{
  margin-top:13px!important;
  color:#66717a!important;
  font:500 9px ui-monospace,SFMono-Regular,Menlo,monospace!important;
}

/* Authentication / dashboard chooser */
body.design-system .auth-server-row{
  display:flex!important;
  align-items:center!important;
  gap:11px!important;
  padding:11px!important;
  border:1px solid #202830!important;
  border-radius:9px!important;
  background:#0d1216!important;
}
body.design-system .auth-server-icon{
  width:36px!important;height:36px!important;flex:0 0 36px!important;
  border:1px solid #2b353e!important;
  border-radius:8px!important;
  background:#0b1014!important;
}
body.design-system .auth-level{
  color:#7f8991!important;
  font-size:8px!important;
  font-weight:740!important;
}

/* Mobile fixes for audited internals */
@media(max-width:980px){
  body.portal-mode.design-system .sug-layout{grid-template-columns:1fr!important}
  body.portal-mode.design-system .sug-side{position:static!important}
  body.portal-mode.design-system .server-map-layout{grid-template-columns:1fr!important}
  body.portal-mode.design-system .map-side{position:static!important}
}
@media(max-width:900px){
  body.portal-mode.design-system .security-rule-grid,
  body.portal-mode.design-system .security-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.portal-mode.design-system .sug-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.portal-mode.design-system .task-create-grid{grid-template-columns:1fr!important}
}
@media(max-width:720px){
  body.portal-mode.design-system .event-detail-grid,
  body.portal-mode.design-system .mission-detail-grid,
  body.portal-mode.design-system .map-marker-form{grid-template-columns:1fr!important}
}
@media(max-width:620px){
  body.portal-mode.design-system .security-rule-grid,
  body.portal-mode.design-system .security-profile-grid,
  body.portal-mode.design-system .security-kpis,
  body.portal-mode.design-system .sug-kpis,
  body.portal-mode.design-system .map-kpis{grid-template-columns:1fr!important}
  body.portal-mode.design-system .security-incident,
  body.portal-mode.design-system .security-killer-row{flex-direction:column!important}
  body.portal-mode.design-system .workspace-toolbar{align-items:stretch!important;flex-direction:column!important}
  body.design-system .public-summary-grid{grid-template-columns:1fr!important}
}


/* Final ownership for common legacy class names still emitted by page markup. */
body.design-system .empty{
  padding:24px!important;
  border:1px dashed #2a333b!important;
  border-radius:10px!important;
  background:#0d1216!important;
  color:#7c878f!important;
}
body.design-system .dot{
  width:5px!important;height:5px!important;
  display:inline-block!important;
  border-radius:50%!important;
  background:var(--d-accent)!important;
  box-shadow:none!important;
}
body.design-system .server-main{min-width:0!important;flex:1!important}
body.design-system .server-main .meta{margin-top:3px!important}
body.portal-mode.design-system .control-hero-top{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
  position:relative!important;
  z-index:1!important;
}
body.portal-mode.design-system .control-hero h2{
  margin:4px 0 7px!important;
  font-size:clamp(22px,2.1vw,30px)!important;
  line-height:1.08!important;
  font-weight:700!important;
}
body.portal-mode.design-system .control-hero p{
  max-width:800px!important;
  margin:0!important;
  color:#77828b!important;
  font-size:10.5px!important;
  line-height:1.6!important;
}
body.portal-mode.design-system .control-hero::after{display:none!important}
body.portal-mode.design-system .server-info-item{
  min-width:0!important;
  padding:11px!important;
  border:1px solid #202830!important;
  border-radius:9px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .server-info-item span{
  display:block!important;
  color:#657079!important;
  font-size:7px!important;
  font-weight:760!important;
  letter-spacing:.065em!important;
  text-transform:uppercase!important;
}
body.portal-mode.design-system .server-info-item strong{
  display:block!important;
  margin-top:5px!important;
  color:#c6ccd1!important;
  font-size:10.5px!important;
  overflow-wrap:anywhere!important;
}
body.portal-mode.design-system .weekday-row{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:6px!important;
  margin-top:6px!important;
}
body.portal-mode.design-system .weekday-chip{
  min-height:35px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  padding:7px!important;
  border:1px solid #29333c!important;
  border-radius:8px!important;
  background:#0c1115!important;
  color:#929ca4!important;
  font-size:8.5px!important;
  font-weight:690!important;
}
body.portal-mode.design-system .weekday-chip:has(input:checked){
  border-color:#514336!important;
  background:var(--d-accent-soft)!important;
  color:#e4a17d!important;
}
body.portal-mode.design-system .weekday-chip input{width:auto!important;min-height:0!important;margin:0!important}
body.portal-mode.design-system .nitrado-apply{
  border-color:#365244!important;
  background:var(--d-green-soft)!important;
  color:#8bd3b1!important;
}
body.portal-mode.design-system .map-editor-card{align-self:start!important}
body.portal-mode.design-system .map-marker-dot{box-shadow:none!important}
body.portal-mode.design-system .kanban-list{
  display:grid!important;
  gap:7px!important;
  padding:8px!important;
}
body.portal-mode.design-system .list{display:grid!important;gap:8px!important}
body.portal-mode.design-system .sec-act[data-action="permanent_ban"]{
  border-color:#63323d!important;
  background:var(--d-red-soft)!important;
  color:#e897a4!important;
}

/* Homepage internals are intentionally owned here instead of legacy gradients. */
body.design-system .badlands-unit{
  min-width:74px!important;
  padding:10px!important;
  border:1px solid #2b343c!important;
  border-radius:9px!important;
  background:rgba(10,14,18,.78)!important;
}
body.design-system .badlands-unit strong{
  display:block!important;
  color:#f0f1f1!important;
  font-size:24px!important;
  font-weight:690!important;
}
body.design-system .badlands-unit span{
  display:block!important;
  margin-top:3px!important;
  color:#727d85!important;
  font-size:7px!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
body.design-system .preview-console-line{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  padding:7px 0!important;
  border-bottom:1px solid #1e262d!important;
  color:#869099!important;
  font-size:8px!important;
}
body.design-system .preview-console-line:last-child{border-bottom:0!important}
body.design-system .preview-console-line .ok{color:var(--d-green)!important}
body.design-system .platform-demo-dot{
  width:26px!important;height:26px!important;
  display:grid!important;place-items:center!important;
  border:1px solid #29333c!important;
  border-radius:6px!important;
  background:#0b1014!important;
  color:#717c85!important;
  font-size:7px!important;
  font-weight:760!important;
}
body.design-system .discord-msg{
  display:flex!important;
  align-items:flex-start!important;
  gap:10px!important;
  padding:9px 0!important;
}
body.design-system .discord-avatar{
  width:30px!important;height:30px!important;flex:0 0 30px!important;
  display:grid!important;place-items:center!important;
  border:1px solid #2c363f!important;
  border-radius:50%!important;
  background:#11171c!important;
  color:#a2aab1!important;
  font-size:9px!important;
  font-weight:760!important;
}
body.design-system .discord-avatar.bot{
  border-radius:8px!important;
  background:var(--d-accent-soft)!important;
  color:#e5a17e!important;
}
body.design-system .discord-msg-body{min-width:0!important;flex:1!important}
body.design-system .discord-msg-head{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  flex-wrap:wrap!important;
}
body.design-system .discord-msg-head strong{font-size:9.5px!important}
body.design-system .discord-time{color:#5f6972!important;font-size:7px!important}
body.design-system .discord-embed-stat{
  padding:8px!important;
  border:1px solid #242d35!important;
  border-radius:7px!important;
  background:#0b1014!important;
}
body.design-system .discord-embed-stat strong{display:block!important;color:#d8dcdf!important;font-size:10px!important}
body.design-system .discord-embed-stat span{display:block!important;margin-top:2px!important;color:#626d76!important;font-size:7px!important}

/* Public/mobile nav ownership. */
body.design-system .mobile-menu-toggle{
  width:38px!important;
  height:38px!important;
  padding:8px!important;
  border:1px solid #303a43!important;
  border-radius:8px!important;
  background:#10161b!important;
  box-shadow:none!important;
}
body.design-system .mobile-menu-toggle span{background:#9aa3aa!important}

/* More predictable small-screen action stacking. */
@media(max-width:650px){
  body.portal-mode.design-system .control-hero-top{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  body.portal-mode.design-system .control-actions,
  body.portal-mode.design-system .control-actions .btn,
  body.portal-mode.design-system .row-actions,
  body.portal-mode.design-system .row-actions .btn,
  body.portal-mode.design-system .deploy-actions,
  body.portal-mode.design-system .deploy-actions .btn{
    width:100%!important;
  }
  body.portal-mode.design-system .weekday-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

body.portal-mode.design-system .tool-page{display:grid!important;gap:12px!important}
body.portal-mode.design-system .security-actions{display:flex!important;gap:6px!important;flex-wrap:wrap!important;margin-top:8px!important}
body.portal-mode.design-system .sug-form-grid{display:grid!important;gap:9px!important}


/* ==========================================================================
   FEATURE MODULE STRUCTURE
   Diagnostics / Events / Missions / Map no longer own page-local visual CSS.
   Keep their structural layout here with the rest of the permanent system.
   ========================================================================== */

body.portal-mode.design-system .diag-live{margin-top:12px!important}

/* Events */
body.portal-mode.design-system .event-toolbar{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  margin:0 0 12px!important;
  padding:7px!important;
  border:1px solid #202830!important;
  border-radius:9px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .event-toolbar input,
body.portal-mode.design-system .event-toolbar select{min-height:36px!important;margin:0!important}
body.portal-mode.design-system .event-cover{
  position:relative!important;
  height:150px!important;
  overflow:hidden!important;
  border-bottom:1px solid #202830!important;
  background:#0b1014!important;
}
body.portal-mode.design-system .event-cover img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}
body.portal-mode.design-system .event-cover::after{
  content:""!important;
  position:absolute!important;
  inset:auto 0 0!important;
  height:52%!important;
  background:linear-gradient(180deg,transparent,rgba(7,10,13,.78))!important;
  pointer-events:none!important;
}
body.portal-mode.design-system .event-cover-fallback{
  height:100%!important;
  display:grid!important;
  place-items:center!important;
  color:#59646d!important;
  font-size:34px!important;
}
body.portal-mode.design-system .event-cover-badges{
  position:absolute!important;
  z-index:1!important;
  left:10px!important;
  top:10px!important;
  right:10px!important;
  display:flex!important;
  gap:5px!important;
  flex-wrap:wrap!important;
}
body.portal-mode.design-system .event-card-title{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:10px!important;
}
body.portal-mode.design-system .event-card-title h3{margin:0!important;font-size:14px!important}
body.portal-mode.design-system .event-active-banner{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:center!important;
}
body.portal-mode.design-system .event-builder{display:grid!important;gap:10px!important}
body.portal-mode.design-system .event-toggle-row{display:flex!important;gap:7px!important;flex-wrap:wrap!important;margin-top:9px!important}
body.portal-mode.design-system .event-settings-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:end!important;
}
body.portal-mode.design-system .event-settings-grid>label,
body.portal-mode.design-system .event-builder-grid>label{
  min-width:0!important;
  width:100%!important;
  display:grid!important;
  gap:5px!important;
}
body.portal-mode.design-system .event-builder-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
body.portal-mode.design-system .event-builder-grid .wide,
body.portal-mode.design-system .event-builder-grid .full{grid-column:1/-1!important}
body.portal-mode.design-system .event-card-actions .event-duration{min-width:102px!important}

/* Missions */
body.portal-mode.design-system .mission-toolbar{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  margin:0 0 12px!important;
  padding:7px!important;
  border:1px solid #202830!important;
  border-radius:9px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .mission-toolbar input,
body.portal-mode.design-system .mission-toolbar select{min-height:36px!important;margin:0!important}
body.portal-mode.design-system .mission-cover{
  position:relative!important;
  height:150px!important;
  overflow:hidden!important;
  border-bottom:1px solid #202830!important;
  background:#0b1014!important;
}
body.portal-mode.design-system .mission-cover img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}
body.portal-mode.design-system .mission-cover::after{
  content:""!important;
  position:absolute!important;
  inset:auto 0 0!important;
  height:52%!important;
  background:linear-gradient(180deg,transparent,rgba(7,10,13,.78))!important;
  pointer-events:none!important;
}
body.portal-mode.design-system .mission-cover-fallback{
  height:100%!important;
  display:grid!important;
  place-items:center!important;
  color:#59646d!important;
  font-size:34px!important;
}
body.portal-mode.design-system .mission-cover-badges{
  position:absolute!important;
  z-index:1!important;
  left:10px!important;
  top:10px!important;
  right:10px!important;
  display:flex!important;
  gap:5px!important;
  flex-wrap:wrap!important;
}
body.portal-mode.design-system .mission-card-title{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:10px!important;
}
body.portal-mode.design-system .mission-card-title h3{margin:0!important;font-size:14px!important}
body.portal-mode.design-system .mission-active-banner{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:center!important;
}
body.portal-mode.design-system .mission-builder{display:grid!important;gap:10px!important}
body.portal-mode.design-system .mission-toggle-row{display:flex!important;gap:7px!important;flex-wrap:wrap!important;margin-top:9px!important}
body.portal-mode.design-system .mission-settings-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:end!important;
}
body.portal-mode.design-system .mission-settings-grid>label,
body.portal-mode.design-system .mission-builder-grid>label{
  min-width:0!important;
  width:100%!important;
  display:grid!important;
  gap:5px!important;
}
body.portal-mode.design-system .mission-builder-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
body.portal-mode.design-system .mission-builder-grid .wide,
body.portal-mode.design-system .mission-builder-grid .full{grid-column:1/-1!important}
body.portal-mode.design-system .mission-duration{min-width:102px!important}

/* Map */
body.portal-mode.design-system .server-map-shell:fullscreen{
  width:100vw!important;
  height:100vh!important;
  min-height:100vh!important;
  border:0!important;
  border-radius:0!important;
  background:#080d12!important;
}
body.portal-mode.design-system .server-map-shell:fullscreen #serverMapCanvas{height:100vh!important}
body.portal-mode.design-system #serverMapCanvas{
  display:block!important;
  width:100%!important;
  height:clamp(540px,72vh,920px)!important;
  cursor:grab!important;
  background:#080d12!important;
}
body.portal-mode.design-system #serverMapCanvas.dragging{cursor:grabbing!important}
body.portal-mode.design-system #serverMapCanvas.measuring{cursor:crosshair!important}
body.portal-mode.design-system .map-toolbar{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  margin-bottom:10px!important;
}
body.portal-mode.design-system .map-toolbar .spacer{flex:1!important}
body.portal-mode.design-system .map-goto{display:flex!important;align-items:center!important;gap:5px!important}
body.portal-mode.design-system .map-goto input{width:88px!important;min-width:0!important;padding:7px 8px!important}
body.portal-mode.design-system .map-popup{display:none!important}
body.portal-mode.design-system .map-popup.show{display:block!important}
body.portal-mode.design-system .map-popup h4{margin:0 0 5px!important;font-size:13px!important}
body.portal-mode.design-system .map-popup p{margin:4px 0!important;color:#7d8790!important;font-size:9px!important}
body.portal-mode.design-system .map-marker-list{
  display:grid!important;
  gap:6px!important;
  max-height:390px!important;
  overflow:auto!important;
}
body.portal-mode.design-system .map-marker-wide{grid-column:1/-1!important}

/* Feature responsive structure */
@media(max-width:980px){
  body.portal-mode.design-system #serverMapCanvas{height:580px!important}
  body.portal-mode.design-system .server-map-shell{min-height:580px!important}
}
@media(max-width:720px){
  body.portal-mode.design-system .event-grid,
  body.portal-mode.design-system .mission-grid,
  body.portal-mode.design-system .event-settings-grid,
  body.portal-mode.design-system .event-builder-grid,
  body.portal-mode.design-system .mission-settings-grid,
  body.portal-mode.design-system .mission-builder-grid{grid-template-columns:1fr!important}
  body.portal-mode.design-system .event-detail-grid,
  body.portal-mode.design-system .mission-detail-grid,
  body.portal-mode.design-system .event-active-banner,
  body.portal-mode.design-system .mission-active-banner{grid-template-columns:1fr!important}
  body.portal-mode.design-system .event-builder-grid .wide,
  body.portal-mode.design-system .event-builder-grid .full,
  body.portal-mode.design-system .mission-builder-grid .wide,
  body.portal-mode.design-system .mission-builder-grid .full{grid-column:auto!important}
}
@media(max-width:640px){
  body.portal-mode.design-system #serverMapCanvas{height:470px!important}
  body.portal-mode.design-system .server-map-shell{min-height:470px!important}
  body.portal-mode.design-system .map-marker-wide{grid-column:auto!important}
}


/* Suggestions/public suggestions structural state formerly embedded in webapp.py. */
body.portal-mode.design-system .sug-list{display:grid!important;gap:8px!important}
body.portal-mode.design-system .sug-card-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:11px!important;
}
body.portal-mode.design-system .sug-meta,
body.portal-mode.design-system .sug-actions{
  display:flex!important;
  gap:6px!important;
  flex-wrap:wrap!important;
  margin-top:9px!important;
}
body.portal-mode.design-system .sug-status{
  font-size:8px!important;
  font-weight:800!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}
body.portal-mode.design-system .sug-status.pending{color:var(--d-yellow)!important}
body.portal-mode.design-system .sug-status.approved{color:var(--d-green)!important}
body.portal-mode.design-system .sug-status.declined{color:var(--d-red)!important}
body.portal-mode.design-system .sug-status.implemented{color:var(--d-blue)!important}
body.portal-mode.design-system .sug-status.archived{color:#727c84!important}
body.design-system .public-sug-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
}
@media(max-width:640px){
  body.design-system .public-sug-head{align-items:stretch!important}
}

body.design-system .user-avatar-fallback{
  display:grid!important;
  place-items:center!important;
  background:#11171c!important;
  color:#8f989f!important;
}
body.design-system .card-arrow{
  color:#66717a!important;
  font-size:16px!important;
  line-height:1!important;
}
body.portal-mode.design-system .danger-zone-card{
  border-color:#54313a!important;
  background:linear-gradient(180deg,#141013,#100d10)!important;
}
body.portal-mode.design-system .danger-zone-card .danger-label{color:#df8d9a!important}
body.portal-mode.design-system .danger-option{
  min-height:44px!important;
  display:flex!important;
  align-items:flex-start!important;
  gap:9px!important;
  padding:10px!important;
  border:1px solid #3b2930!important;
  border-radius:8px!important;
  background:#120e11!important;
  color:#a9999e!important;
}

body.design-system .result.success{
  border-color:#315344!important;
  background:var(--d-green-soft)!important;
  color:#96cbb1!important;
}
body.design-system .result.error{
  border-color:#5f333d!important;
  background:var(--d-red-soft)!important;
  color:#dda0aa!important;
}


/* ==========================================================================
   SINGLE-SURFACE OWNERSHIP
   Important one-off surfaces still rendered by the application shell.
   ========================================================================== */

/* Accessibility + footer */
body.design-system .skip-link{
  position:fixed!important;
  z-index:9999!important;
  top:8px!important;
  left:8px!important;
  transform:translateY(-140%)!important;
  padding:8px 10px!important;
  border:1px solid #3b4650!important;
  border-radius:7px!important;
  background:#11171c!important;
  color:#fff!important;
  font-size:10px!important;
  font-weight:760!important;
}
body.design-system .skip-link:focus{transform:translateY(0)!important}
body.design-system .footer-copy{
  max-width:460px!important;
  margin:10px 0 0!important;
  color:#6f7981!important;
  font-size:10px!important;
  line-height:1.65!important;
}
body.design-system .footer-bottom{
  grid-column:1/-1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-top:20px!important;
  padding-top:18px!important;
  border-top:1px solid #1f272e!important;
  color:#59636b!important;
  font-size:8px!important;
}

/* Command palette */
body.design-system .command-launcher{display:none!important}
body.design-system .command-search-wrap{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  padding:10px 11px!important;
  border-bottom:1px solid #252e36!important;
}
body.design-system .command-search{
  min-height:36px!important;
  flex:1!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:0!important;
}
body.design-system .command-results{
  max-height:min(480px,64vh)!important;
  overflow:auto!important;
  padding:7px!important;
}
body.design-system .command-item-copy{min-width:0!important;flex:1!important}
body.design-system .command-item-copy strong{display:block!important;color:#dadddf!important;font-size:10px!important}
body.design-system .command-item-copy small{display:block!important;margin-top:2px!important;color:#5f6972!important;font-size:7.5px!important}
body.design-system .command-empty{
  padding:22px!important;
  color:#66717a!important;
  text-align:center!important;
  font-size:10px!important;
}
body.design-system .command-foot{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:8px 11px!important;
  border-top:1px solid #252e36!important;
  color:#59636c!important;
  font-size:7.5px!important;
}

/* Homepage preview / CTA internals */
body.design-system .home-hero-copy{min-width:0!important}
body.design-system .preview-command-head,
body.design-system .platform-demo-head,
body.design-system .preview-console-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  color:#7b858d!important;
  font-size:7px!important;
  font-weight:790!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
body.design-system .preview-tool-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;
  margin-top:10px!important;
}
body.design-system .discord-showcase-copy{padding:30px!important}
body.design-system .discord-panel-top{
  min-height:44px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:0 12px!important;
  border-bottom:1px solid #202830!important;
  color:#747e86!important;
  font-size:8px!important;
}
body.design-system .discord-panel-top strong{color:#cbd0d4!important}
body.design-system .discord-server-dot{
  width:25px!important;height:25px!important;
  display:grid!important;place-items:center!important;
  border:1px solid #2d3740!important;
  border-radius:7px!important;
  background:#11171c!important;
  color:#90999f!important;
  font-size:7px!important;
  font-weight:780!important;
}
body.design-system .discord-feed{padding:12px!important}
body.design-system .discord-msg-text{margin-top:3px!important;color:#9aa3aa!important;font-size:9px!important}
body.design-system .discord-command{
  padding:2px 5px!important;
  border:1px solid #343d45!important;
  border-radius:5px!important;
  background:#151b20!important;
  color:#d2d6d9!important;
}
body.design-system .discord-bot-badge{
  padding:2px 4px!important;
  border-radius:4px!important;
  background:var(--d-accent)!important;
  color:#160f0b!important;
  font-size:6px!important;
  font-weight:850!important;
}
body.design-system .discord-embed{
  margin-top:7px!important;
  padding:11px!important;
  border-left:2px solid #5b4a3e!important;
  border-radius:7px!important;
  background:#0b1014!important;
}
body.design-system .discord-embed-title{color:#a6aeb5!important;font-size:8px!important;font-weight:800!important;letter-spacing:.05em!important}
body.design-system .discord-embed-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:6px!important;
  margin-top:8px!important;
}
body.design-system .discord-actions{display:flex!important;gap:5px!important;flex-wrap:wrap!important;margin-top:9px!important}
body.design-system .discord-actions span{
  padding:5px 7px!important;
  border:1px solid #2b353e!important;
  border-radius:6px!important;
  background:#11171c!important;
  color:#858f97!important;
  font-size:7px!important;
}
body.design-system .discord-actions span.primary{
  border-color:#5a4538!important;
  background:var(--d-accent-soft)!important;
  color:#dfa17f!important;
}
body.design-system .badlands-strip-bg{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  opacity:.42!important;
}
body.design-system .badlands-strip-copy,
body.design-system .badlands-strip-counter{position:relative!important;z-index:1!important}
body.design-system .badlands-strip-copy{max-width:640px!important;padding:28px!important}
body.design-system .badlands-strip-copy h3{margin:8px 0!important;font-size:25px!important}
body.design-system .badlands-strip-copy p{margin:0!important;color:#90999f!important;font-size:11px!important}
body.design-system .badlands-strip-counter{
  display:flex!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  padding:28px!important;
}
body.design-system .home-cta-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;margin-top:20px!important}

/* Auth */
body.design-system .auth-shell{width:min(1120px,calc(100% - 32px))!important;margin:0 auto!important}
body.design-system .auth-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(360px,.72fr)!important;
  gap:16px!important;
  align-items:stretch!important;
}
body.design-system .auth-copy{padding:28px!important}
body.design-system .auth-copy h1{margin:10px 0!important;font-size:clamp(34px,5vw,56px)!important}
body.design-system .auth-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;margin-top:20px!important}
body.design-system .auth-scope{
  margin-top:18px!important;
  padding:12px!important;
  border:1px solid #202830!important;
  border-radius:9px!important;
  background:#0d1216!important;
  color:#77818a!important;
  font-size:9px!important;
}
body.design-system .auth-visual{display:grid!important;place-items:center!important;padding:20px!important}
body.design-system .auth-window{
  width:100%!important;
  overflow:hidden!important;
  border:1px solid #2b353e!important;
  border-radius:12px!important;
  background:#0e1418!important;
}
body.design-system .auth-window-head{
  min-height:42px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  padding:0 12px!important;
  border-bottom:1px solid #202830!important;
  color:#747e86!important;
  font-size:8px!important;
}
body.design-system .auth-window-body{padding:12px!important}
body.design-system .blue{color:var(--d-blue)!important}

/* Community overview */
body.portal-mode.design-system .command-center{
  display:grid!important;
  grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr)!important;
  gap:12px!important;
}
body.portal-mode.design-system .command-center-main,
body.portal-mode.design-system .command-center-side{
  padding:18px!important;
  border:1px solid var(--d-line)!important;
  border-radius:11px!important;
  background:var(--d-surface)!important;
}
body.portal-mode.design-system .quick-action-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
body.portal-mode.design-system .connection-orb{
  width:56px!important;height:56px!important;
  display:grid!important;place-items:center!important;
  border:1px solid #2b353e!important;
  border-radius:50%!important;
  background:#0b1014!important;
  color:#8c969e!important;
}
body.portal-mode.design-system .command-stat{
  padding:10px!important;
  border:1px solid #202830!important;
  border-radius:8px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .portal-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(245px,1fr))!important;
  gap:10px!important;
}
body.portal-mode.design-system .setup-table{display:grid!important;gap:8px!important}

/* Nitrado connection */
body.portal-mode.design-system .nitrado-lock{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  color:#77828a!important;
  font-size:8px!important;
  font-weight:740!important;
}
body.portal-mode.design-system .nitrado-mode-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
body.portal-mode.design-system .nitrado-mode{
  padding:15px!important;
  border:1px solid #202830!important;
  border-radius:10px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .nitrado-mode-head{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
body.portal-mode.design-system .nitrado-mode-icon{
  width:34px!important;height:34px!important;flex:0 0 34px!important;
  display:grid!important;place-items:center!important;
  border:1px solid #2b353e!important;
  border-radius:8px!important;
  background:#0b1014!important;
}
body.portal-mode.design-system .nitrado-steps{
  display:grid!important;
  gap:6px!important;
  margin-top:10px!important;
  color:#77818a!important;
  font-size:9px!important;
}
body.portal-mode.design-system .nitrado-token-form{display:grid!important;gap:9px!important}
body.portal-mode.design-system .nitrado-token-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:7px!important;
}
body.portal-mode.design-system .nitrado-security{
  padding:10px!important;
  border:1px solid #26352f!important;
  border-radius:8px!important;
  background:var(--d-green-soft)!important;
  color:#8dbca5!important;
  font-size:8.5px!important;
}
body.portal-mode.design-system .nitrado-actions{display:flex!important;gap:7px!important;flex-wrap:wrap!important}
body.portal-mode.design-system .nitrado-service-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important;
  gap:10px!important;
}
body.portal-mode.design-system .nitrado-service-card{
  padding:14px!important;
  border:1px solid #202830!important;
  border-radius:10px!important;
  background:#0d1216!important;
}
body.portal-mode.design-system .nitrado-service-card:hover{border-color:#333e47!important;background:#11171c!important}
body.portal-mode.design-system .nitrado-service-top{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:10px!important;
}
body.portal-mode.design-system .service-status{
  padding:3px 6px!important;
  border:1px solid #2c363f!important;
  border-radius:999px!important;
  color:#849098!important;
  font-size:7px!important;
  font-weight:760!important;
}
body.portal-mode.design-system .nitrado-service-meta,
body.portal-mode.design-system .nitrado-service-extra{
  margin-top:7px!important;
  color:#68737c!important;
  font-size:8.5px!important;
  line-height:1.5!important;
}
body.portal-mode.design-system .service-playerbar{
  height:4px!important;
  overflow:hidden!important;
  margin-top:9px!important;
  border-radius:999px!important;
  background:#202830!important;
}
body.portal-mode.design-system .service-playerbar span{
  display:block!important;
  height:100%!important;
  background:var(--d-green)!important;
}
body.portal-mode.design-system .nitrado-service-open{margin-top:11px!important}
body.portal-mode.design-system .workspace-toolbar-count{color:#68737c!important;font-size:8px!important}
body.portal-mode.design-system .workspace-empty-filter{
  padding:20px!important;
  border:1px dashed #2a333b!important;
  border-radius:9px!important;
  color:#66717a!important;
  text-align:center!important;
}

/* Server settings / deployment details */
body.portal-mode.design-system .overview-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body.portal-mode.design-system .overview-details-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.portal-mode.design-system .server-settings-card{overflow:visible!important}
body.portal-mode.design-system .settings-lists{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:9px!important;
}
body.portal-mode.design-system .settings-savebar.clean{opacity:.72!important}
body.portal-mode.design-system .settings-group-count{color:#68737c!important;font-size:8px!important}
body.portal-mode.design-system .settings-group-body{display:grid!important;gap:8px!important}
body.portal-mode.design-system .deploy-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:11px!important;
}
body.portal-mode.design-system .deploy-meta{
  display:flex!important;
  gap:6px!important;
  flex-wrap:wrap!important;
  margin-top:5px!important;
  color:#68737c!important;
  font-size:8px!important;
}
body.portal-mode.design-system .deployment-diff{
  margin-top:5px!important;
  color:#5f6972!important;
  font:500 8px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace!important;
  overflow-wrap:anywhere!important;
}
body.portal-mode.design-system .validation-items{display:grid!important;gap:5px!important;margin-top:8px!important}
body.portal-mode.design-system .validation-item{
  padding:7px 8px!important;
  border:1px solid #202830!important;
  border-radius:7px!important;
  background:#0b1014!important;
  color:#8b959d!important;
  font-size:8.5px!important;
}
body.portal-mode.design-system .sec-profile{white-space:nowrap!important}

/* Task details */
body.portal-mode.design-system .task-toolbar{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  margin-bottom:10px!important;
}
body.portal-mode.design-system .task-card-title{color:#dadddf!important;font-size:11px!important;font-weight:680!important}
body.portal-mode.design-system .task-card-meta{margin-top:5px!important;color:#66717a!important;font-size:8px!important}
body.portal-mode.design-system .urgent{color:var(--d-red)!important}
body.portal-mode.design-system .task-modal-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.2fr) minmax(250px,.8fr)!important;
  gap:10px!important;
}
body.portal-mode.design-system .check-text{min-width:0!important;overflow-wrap:anywhere!important}
body.portal-mode.design-system .comment{
  padding:8px 0!important;
  border-bottom:1px solid #1e262d!important;
}
body.portal-mode.design-system .comment-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  color:#737e86!important;
  font-size:8px!important;
}
body.portal-mode.design-system .activity-line{
  padding:7px 0!important;
  border-bottom:1px solid #1e262d!important;
  color:#768089!important;
  font-size:8.5px!important;
}

/* Public claim details */
body.design-system .server-entry{min-width:0!important}
body.design-system .flag-hero-bg{
  position:absolute!important;
  inset:0!important;
  background-size:cover!important;
  background-position:center!important;
  opacity:.18!important;
  pointer-events:none!important;
}
body.design-system .flag-head{
  position:relative!important;
  z-index:1!important;
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
}
body.design-system .progress{
  height:4px!important;
  overflow:hidden!important;
  border-radius:999px!important;
  background:#202830!important;
}
body.design-system .progress span{display:block!important;height:100%!important;background:var(--d-accent)!important}
body.design-system .mini-stat-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;
  gap:8px!important;
}

/* Responsive ownership for one-off surfaces */
@media(max-width:1050px){
  body.portal-mode.design-system .overview-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.portal-mode.design-system .overview-details-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.portal-mode.design-system .settings-lists{grid-template-columns:1fr!important}
}
@media(max-width:900px){
  body.design-system .auth-grid,
  body.portal-mode.design-system .command-center{grid-template-columns:1fr!important}
  body.portal-mode.design-system .nitrado-mode-grid{grid-template-columns:1fr!important}
}
@media(max-width:760px){
  body.design-system .footer-bottom{align-items:flex-start!important;flex-direction:column!important}
  body.design-system .discord-showcase-copy{padding:20px!important}
  body.design-system .badlands-strip-copy,
  body.design-system .badlands-strip-counter{padding:20px!important}
  body.portal-mode.design-system .quick-action-grid,
  body.portal-mode.design-system .settings-lists,
  body.portal-mode.design-system .task-modal-grid{grid-template-columns:1fr!important}
  body.portal-mode.design-system .overview-kpis,
  body.portal-mode.design-system .overview-details-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.portal-mode.design-system .nitrado-token-row{grid-template-columns:1fr!important}
  body.portal-mode.design-system .nitrado-token-row .btn{width:100%!important}
  body.portal-mode.design-system .deploy-row{grid-template-columns:1fr!important}
}
@media(max-width:520px){
  body.design-system .preview-tool-grid,
  body.design-system .discord-embed-grid{grid-template-columns:1fr!important}
  body.design-system .home-cta-actions,
  body.design-system .auth-actions{display:grid!important;grid-template-columns:1fr!important}
  body.design-system .home-cta-actions .btn,
  body.design-system .auth-actions .btn{width:100%!important}
  body.portal-mode.design-system .overview-kpis,
  body.portal-mode.design-system .overview-details-grid{grid-template-columns:1fr!important}
}

body.portal-mode.design-system .command-permission-form{display:grid!important;gap:9px!important}
body.portal-mode.design-system .textarea{width:100%!important}


/* Events workspace — own the page layout independently of input-field grids.
   Previously Event Control reused .event-builder-grid; permanent form rules
   overwrote its two-panel layout and spread three children across two columns. */
body.portal-mode.design-system .events-main-workspace .events-page-switch,
body.portal-mode.design-system .events-packages-workspace .events-page-switch{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  padding:7px!important;
  margin:8px 0 14px!important;
  border:1px solid var(--d-line)!important;
  border-radius:11px!important;
  background:var(--d-bg-soft)!important;
}
body.portal-mode.design-system .events-page-switch a{
  display:inline-flex!important;
  justify-content:center!important;
  align-items:center!important;
  min-height:37px!important;
  padding:8px 14px!important;
  border:1px solid transparent!important;
  border-radius:8px!important;
  background:transparent!important;
  color:var(--d-muted)!important;
  font-size:11px!important;
  font-weight:750!important;
  text-decoration:none!important;
}
body.portal-mode.design-system .events-page-switch a:hover,
body.portal-mode.design-system .events-page-switch a:focus-visible{
  border-color:var(--d-line-strong)!important;
  background:var(--d-surface-hover)!important;
  color:var(--d-text)!important;
}
body.portal-mode.design-system .events-page-switch a.selected{
  background:var(--d-accent-soft)!important;
  border-color:rgba(255,122,53,.35)!important;
  color:var(--d-text)!important;
}
body.portal-mode.design-system .events-main-workspace .event-quick-nav{
  display:flex!important;
  gap:6px!important;
  flex-wrap:wrap!important;
  margin:14px 0 0!important;
  padding:12px 0 0!important;
  border-top:1px solid var(--d-line)!important;
}
body.portal-mode.design-system .events-main-workspace .event-quick-nav a{
  border:1px solid var(--d-line)!important;
  border-radius:8px!important;
  background:var(--d-bg-soft)!important;
  color:var(--d-text-soft)!important;
  font-size:10px!important;
  font-weight:680!important;
  padding:7px 10px!important;
  text-decoration:none!important;
}
body.portal-mode.design-system .events-main-workspace .event-quick-nav a:hover,
body.portal-mode.design-system .events-main-workspace .event-quick-nav a:focus-visible{
  background:var(--d-surface-hover)!important;
  border-color:var(--d-line-strong)!important;
  color:var(--d-text)!important;
}
body.portal-mode.design-system .events-main-workspace #eventControlSection .event-control-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1.14fr) minmax(330px,.86fr)!important;
  align-items:start!important;
  gap:14px!important;
}
body.portal-mode.design-system .events-main-workspace #eventControlSection .event-config-form{
  min-width:0!important;
  padding:16px!important;
  border:1px solid var(--d-line)!important;
  border-radius:11px!important;
  background:var(--d-bg-soft)!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:11px!important;
  align-items:start!important;
}
body.portal-mode.design-system .events-main-workspace #eventControlSection .event-config-form>h3{
  grid-column:1/-1!important;
  margin:0!important;
  padding-bottom:10px!important;
  border-bottom:1px solid var(--d-line)!important;
  font-size:14px!important;
}
body.portal-mode.design-system .events-main-workspace #eventControlSection .event-config-form>label{
  display:grid!important;
  align-content:start!important;
  gap:5px!important;
  min-width:0!important;
}
body.portal-mode.design-system .events-main-workspace #eventControlSection .event-config-form>.full{
  grid-column:1/-1!important;
}
body.portal-mode.design-system .events-main-workspace #eventControlSection .event-config-form input,
body.portal-mode.design-system .events-main-workspace #eventControlSection .event-config-form select{
  min-width:0!important;
  max-width:100%!important;
}
body.portal-mode.design-system .events-main-workspace #eventControlSection .event-control-side{
  min-width:0!important;
  display:grid!important;
  align-content:start!important;
  gap:12px!important;
}
body.portal-mode.design-system .events-main-workspace #eventControlSection .event-control-side>.control-section{
  min-width:0!important;
  padding:16px!important;
  border:1px solid var(--d-line)!important;
  border-radius:11px!important;
  background:var(--d-bg-soft)!important;
}
body.portal-mode.design-system .events-main-workspace #eventControlSection .event-control-side h3{
  margin:0 0 6px!important;
  font-size:14px!important;
}
body.portal-mode.design-system .events-main-workspace #eventControlSection .event-control-side .control-section-head{
  margin-bottom:12px!important;
}
body.portal-mode.design-system .events-main-workspace #eventControlSection #studioModes{
  min-width:0!important;
  max-height:560px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  padding-right:3px!important;
}
body.portal-mode.design-system .events-main-workspace #eventControlSection #studioModes .deploy-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:9px!important;
}
body.portal-mode.design-system .events-main-workspace #eventControlSection #studioModes .deploy-actions{
  display:flex!important;
  justify-content:flex-start!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  min-width:0!important;
  gap:6px!important;
}
body.portal-mode.design-system .events-main-workspace #eventControlSection #studioModes .deploy-actions .btn{
  flex:0 1 auto!important;
  min-width:0!important;
}
@media(max-width:1280px){
  body.portal-mode.design-system .events-main-workspace #eventControlSection .event-control-layout{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.portal-mode.design-system .events-main-workspace #eventControlSection #studioModes{
    max-height:none!important;
    overflow:visible!important;
  }
}
@media(max-width:720px){
  body.portal-mode.design-system .events-main-workspace #eventControlSection .event-config-form{
    grid-template-columns:minmax(0,1fr)!important;
    padding:12px!important;
  }
  body.portal-mode.design-system .events-main-workspace #eventControlSection .event-control-side>.control-section{
    padding:12px!important;
  }
  body.portal-mode.design-system .events-main-workspace .event-quick-nav{
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    scrollbar-width:thin;
  }
  body.portal-mode.design-system .events-main-workspace .event-quick-nav a{
    flex:0 0 auto!important;
    white-space:nowrap!important;
  }
}


/* Suggestions operator UX: responsive jump links and bounded list rendering. */
body.portal-mode.design-system .sug-mobile-nav{display:none!important}
body.portal-mode.design-system .sug-list-footer{
  display:flex!important;justify-content:space-between!important;align-items:center!important;
  flex-wrap:wrap!important;gap:10px!important;margin-top:12px!important;
  color:var(--d-muted,#9ba7b0)!important;font-size:11px!important;
}
body.portal-mode.design-system #showMoreSuggestionsBtn[hidden]{display:none!important}
body.portal-mode.design-system .sug-card,
body.portal-mode.design-system .sug-card-head>div,
body.portal-mode.design-system .sug-layout>div,
body.portal-mode.design-system .sug-side,
body.portal-mode.design-system .sug-toolbar>*{
  min-width:0!important;
}
body.portal-mode.design-system .sug-card h3,
body.portal-mode.design-system .sug-copy{
  overflow-wrap:anywhere!important;
}
@media(max-width:980px){
  body.portal-mode.design-system .sug-mobile-nav{
    display:flex!important;gap:8px!important;max-width:100%!important;
    overflow-x:auto!important;overscroll-behavior-x:contain!important;
    padding:4px 0 12px!important;margin-bottom:8px!important;
  }
  body.portal-mode.design-system .sug-mobile-nav a{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    white-space:nowrap!important;flex:0 0 auto!important;
    min-height:44px!important;padding:8px 12px!important;
    border:1px solid var(--d-line,#28333c)!important;border-radius:9px!important;
    background:var(--d-surface,#10161b)!important;
    color:var(--d-text,#d4dce3)!important;font-weight:650!important;font-size:12px!important;
    text-decoration:none!important;
  }
  body.portal-mode.design-system #suggestionQueue,
  body.portal-mode.design-system #suggestionSetup,
  body.portal-mode.design-system #suggestionCompose{scroll-margin-top:110px!important}
}
@media(max-width:680px){
  body.portal-mode.design-system .sug-toolbar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.portal-mode.design-system .sug-toolbar #suggestionSearch{grid-column:1/-1!important;width:100%!important}
  body.portal-mode.design-system .sug-toolbar select{width:100%!important;min-height:44px!important}
  body.portal-mode.design-system .sug-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.portal-mode.design-system .sug-kpi:last-child{grid-column:1/-1!important}
  body.portal-mode.design-system .sug-card-head{flex-wrap:wrap!important}
  body.portal-mode.design-system .sug-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.portal-mode.design-system .sug-actions>.btn{width:100%!important;min-height:44px!important;white-space:normal!important}
  body.portal-mode.design-system .sug-form-grid input,
  body.portal-mode.design-system .sug-form-grid textarea,
  body.portal-mode.design-system .sug-form-grid select{width:100%!important;min-width:0!important}
}
@media(max-width:380px){
  body.portal-mode.design-system .sug-toolbar{grid-template-columns:1fr!important}
  body.portal-mode.design-system .sug-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.portal-mode.design-system .sug-toolbar #suggestionSearch{grid-column:auto!important}
  body.portal-mode.design-system .sug-list-footer .btn{width:100%!important}
}


/* 2026-10 mobile operator pass: forms, Security and Event/Mission actions.
   Keep these in the permanent stylesheet instead of page-local inline CSS. */
@media (max-width:680px) {
  /* iOS Safari zooms the viewport when a focused form control is below 16px.
     Hide/checkbox/radio/range/file controls are intentionally excluded. */
  body.portal-mode.design-system :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="file"]),
    select,
    textarea
  ) {
    font-size:16px!important;
    line-height:1.4!important;
    max-width:100%!important;
    min-width:0!important;
  }
  body.portal-mode.design-system :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="file"]),
    select
  ) {
    min-height:44px!important;
  }
  body.portal-mode.design-system :is(
    .control-form .field,
    .control-form label,
    .settings-grid>*,
    .server-settings-grid>*,
    .security-page .field
  ) {
    min-width:0!important;
    max-width:100%!important;
    overflow-wrap:anywhere!important;
  }
  body.portal-mode.design-system .security-page .security-kpis,
  body.portal-mode.design-system .security-page .security-profile-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body.portal-mode.design-system .security-page .setting-toggle{
    min-height:48px!important;
    gap:12px!important;
    padding:12px!important;
  }
  body.portal-mode.design-system .security-page .setting-toggle>span:first-child{
    min-width:0!important;
    overflow-wrap:anywhere!important;
  }
  body.portal-mode.design-system .security-page .setting-toggle:focus-within{
    outline:2px solid var(--d-accent,#f28c28)!important;
    outline-offset:2px!important;
  }
  body.portal-mode.design-system .security-page .control-section-head .btn{
    min-height:44px!important;
    width:100%!important;
  }
  body.portal-mode.design-system .events-main-workspace :is(
    .event-live-actions .btn,
    .event-card-actions .btn,
    .event-active-banner .btn
  ),
  body.portal-mode.design-system .mission-card-actions .btn,
  body.portal-mode.design-system .mission-active-banner .btn{
    min-height:44px!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  body.portal-mode.design-system .events-main-workspace :is(
    .event-card,
    .event-card-body,
    .event-live-dashboard,
    .event-live-metrics>div
  ),
  body.portal-mode.design-system :is(.mission-card,.mission-card-body){
    min-width:0!important;
    max-width:100%!important;
    overflow-wrap:anywhere!important;
  }
}
@media (max-width:380px) {
  body.portal-mode.design-system .security-page .security-kpis,
  body.portal-mode.design-system .security-page .security-profile-grid{
    grid-template-columns:1fr!important;
  }
}


/* Efficient Event/Mission preset library paging with mobile-friendly controls. */
body.portal-mode.design-system .preset-library-footer{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  margin-top:12px!important;
  padding:10px 0!important;
  color:var(--d-muted,#97a4ad)!important;
  font-size:12px!important;
}
body.portal-mode.design-system :is(#eventLibraryMore,#missionLibraryMore)[hidden]{
  display:none!important;
}
@media(max-width:720px){
  body.portal-mode.design-system :is(.event-toolbar,.mission-toolbar){
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:stretch!important;
  }
  body.portal-mode.design-system :is(#eventSearch,#missionSearch){
    grid-column:1/-1!important;
    width:100%!important;
    min-width:0!important;
  }
  body.portal-mode.design-system :is(.event-toolbar,.mission-toolbar) select{
    width:100%!important;
    min-width:0!important;
    min-height:44px!important;
  }
  body.portal-mode.design-system .preset-library-footer{
    align-items:stretch!important;
    flex-direction:column!important;
  }
  body.portal-mode.design-system :is(#eventLibraryMore,#missionLibraryMore):not([hidden]){
    min-height:44px!important;
    width:100%!important;
  }
}
@media(max-width:420px){
  body.portal-mode.design-system :is(.event-toolbar,.mission-toolbar){
    grid-template-columns:1fr!important;
  }
  body.portal-mode.design-system :is(#eventSearch,#missionSearch){grid-column:auto!important}
}
