/* NB HOST - VISUAL ETAPA 1 - CSS ONLY / NO FUNCTIONAL MODIFICATIONS */
:root {
  color-scheme: dark;
  --bg: #0b0e12;
  --sidebar: #11151b;
  --surface: #191f27;
  --border: #323944;
  --text: #f0f3f6;
  --muted: #9ba6b4;
  --accent: #db4656;
  --nb-accent-hover: #ef5868;
  --nb-silver: #c7ced7;
}
html { scroll-behavior: smooth; }
body { background: radial-gradient(ellipse at 82% -15%, #2a171c 0, transparent 34%), var(--bg); color: var(--text); font-family: 'Segoe UI Variable', 'Segoe UI', Arial, sans-serif; }
.shell { min-height: 100vh; }
.sidebar { width: 258px; padding: 24px 14px; background: linear-gradient(180deg,#131820 0%,#101419 100%); border-right: 1px solid #2e343d; }
.brand { gap: 12px; padding: 3px 10px 30px; border-bottom: 1px solid #28303a; margin-bottom: 12px; }
.brand-icon { width: 43px; height: 43px; border-radius: 11px; background: linear-gradient(145deg,#30353e,#16191e); border: 1px solid #555d67; color: #f7f9fc; font-size: 15px; letter-spacing: -.6px; box-shadow: inset 0 1px 0 #ffffff1a; position: relative; }
.brand-icon::after { content: ''; height: 3px; width: 16px; border-radius: 3px; position: absolute; bottom: 6px; background: var(--accent); }
.brand-name { color: #f4f6f8; font-size: 17px; letter-spacing: .45px; }
.brand-name span { color: #ed6977; }
.brand-sub { color: #9ca5ae; letter-spacing: 1.15px; font-size: 8px; font-weight: 700; }
.nav-caption { color: #89939f; padding: 19px 14px 8px; letter-spacing: 1.3px; }
.navigation { gap: 3px; }
.nav-link { color: #b5bfca; border: 1px solid transparent; padding: 10px 12px; border-radius: 9px; min-height: 42px; font-size: 12px; transition: color .12s ease, background .12s ease; }
.nav-link span { color: #adb7c2; font-size: 17px; }
.nav-link:hover { color: #f6f7fa; background: #222a33; border-color: #313a45; }
.nav-link.active, .nav-link[aria-current='page'] { color: #fff; background: #332228; border-color: #603640; font-weight: 650; }
.nav-link.active span, .nav-link[aria-current='page'] span { color: #f17a86; }
.sidebar-bottom { border-color: #343b45; background: #1b222b; border-radius: 10px; }
.sidebar-bottom small { color: #9ca8b5; }
.server-small-dot { background: #9fa9b5; }
.topbar { height: 66px; padding: 0 36px; background: #11161dcf; backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.breadcrumb { color: #cbd3dc; font-size: 12px; }
.breadcrumb span { color: #6a7481; }
.environment { color: #e3a7ad; background: #2b2026; border: 1px solid #57303a; border-radius: 20px; padding: 7px 10px; font-size: 9px; }
.avatar { background: #292229; border: 1px solid #6b4048; color: #f4c8ce; border-radius: 9px; font-size: 10px; }
.nh-logout { background: #242b34; color: #e7ebf0; border: 1px solid #414953; border-radius: 8px; padding: 9px 13px; cursor: pointer; }
.nh-logout:hover { background: #303943; border-color: #68727f; }
.content { max-width: 1530px; padding: 34px 36px 58px; }
.eyebrow { color: #eb6b79; letter-spacing: 1.7px; }
h1 { font-size: clamp(28px, 2.25vw, 34px); line-height: 1.2; }
h2 { font-size: 19px; }
.page-heading p, .section-header p { color: #a2abb7; }
.version-tag, .section-tag { border-color: #414a56; background: #171c23; color: #c2cbd5; border-radius: 7px; }
.notice { background: #1a222b; border-color: #36424d; border-left: 3px solid #8b97a4; border-radius: 10px; }
.notice-icon { background: #3a444f; color: #e6edf4; }
.notice p { color: #adb8c5; }
.stat-card, .server-card, .resource-card { background: linear-gradient(155deg,#1b222b,#151b22); border: 1px solid #343d48; border-radius: 12px; box-shadow: 0 9px 24px #00000014; }
.stat-card { padding: 23px; min-height: 124px; }
.stat-card:first-child { border-top: 2px solid #b34755; }
.stat-label { color: #abb5c1; letter-spacing: 1px; }
.stat-number { color: #f4f6f8; font-size: 34px; letter-spacing: -.9px; }
.stat-detail { color: #96a2af; }
.server-main { padding: 21px; }
.game-icon { background: #273532; border-color: #39534b; color: #b5e7d2; }
.server-title p { color: #acb5bf; }
.server-title > span { color: #c0ccd6; }
.server-details { border-color: #333d48; padding: 19px 21px; }
.server-details small { color: #9ca7b4; }
.server-actions { padding: 16px 21px; }
button { background: #29313b; border-color: #45505c; color: #e3e8ed; border-radius: 8px; transition: background .12s ease, border-color .12s ease; }
button:not(:disabled) { cursor: pointer; }
button:hover:not(:disabled) { background: #37414c; border-color: #7c8793; }
button:disabled { opacity: .45; }
button.action-primary { background: #69333e; border-color: #a54b5b; color: #ffe8eb; }
.server-actions #btn-start.action-primary { background: #21513d; border-color: #347757; color: #d2ffe8; }
button.action-primary:hover:not(:disabled) { background: #803b49; border-color: #d46475; }
.server-actions #btn-start.action-primary:hover:not(:disabled) { background: #2c684f; border-color: #4b9a76; }
.server-actions #btn-stop:not(:disabled) { background: #4f2730; border-color: #874351; color: #ffe0e4; }
.server-actions #btn-stop:hover:not(:disabled) { background: #68313e; }
.server-actions #btn-restart:not(:disabled) { background: #343944; border-color: #556071; }
.resource-card { padding: 22px; }
.resource-card > span { color: #b0bac6; }
.resource-card > strong { color: #f4f6f8; }
.empty-bar, .meter { background: #303944; }
.meter-fill { background: linear-gradient(90deg,#a33343,#df5161); }
.log-output { background: #10141a; color: #d1d9e2; }
.footer { border-color: #303944; color: #8e9aa8; }
.nav-link:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #f07886; outline-offset: 3px; }
.nb-menu-toggle { display: none; width: 40px; height: 39px; flex: 0 0 auto; padding: 10px; flex-direction: column; justify-content: space-between; align-items: center; }
.nb-menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #e1e8ee; }
@media(max-width: 900px) {
  .sidebar { width: 244px; }
  .topbar { padding: 0 20px; }
  .content { padding: 30px 24px 44px; }
}
@media(max-width: 700px) {
  .shell { display: block; }
  .sidebar { display: none; position: fixed; inset: 0 auto 0 0; width: min(85vw,285px); z-index: 100; overflow-y: auto; box-shadow: 14px 0 48px #0008; padding: 19px 13px; }
  .sidebar.is-open { display: flex; }
  .sidebar.is-open .navigation { display: grid; }
  .sidebar.is-open .nav-caption { display: block; }
  .sidebar.is-open .sidebar-bottom { display: flex; }
  .nb-menu-toggle { display: flex; }
  .topbar { gap: 12px; padding: 0 14px; }
  .breadcrumb { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-right { gap: 8px; }
  .environment { display: none; }
  .content { padding: 22px 16px 38px; }
  .page-heading { gap: 12px; }
  .stat-card { min-height: 100px; }
  .server-details { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }


/* ================================================================
   NB HOST VISUAL 1.1 - CONTROLLED SEMANTIC COLORS
   Branding: muted red. UI: graphite, silver and understated gold.
   Actions: green=start, amber=restart, intense red=stop/error.
   Functional HTML, server handlers, API and telemetry remain intact.
   ================================================================ */
:root {
  --nb-brand: #b84450;
  --nb-brand-muted: #91404a;
  --nb-graphite: #181d23;
  --nb-graphite-raised: #20262d;
  --nb-outline: #363d46;
  --nb-silver: #c4cbd3;
  --nb-silver-strong: #e5e9ee;
  --nb-gold: #bda16b;
  --nb-success: #35ba79;
  --nb-success-dim: #173629;
  --nb-warning: #e3b24c;
  --nb-warning-dim: #3b3019;
  --nb-danger: #ef4352;
  --nb-danger-dim: #4e2028;
}

/* Neutralize leftover navy / electric blue across common components. */
body { color: var(--nb-silver-strong); }
body .stat-card,
body .server-card,
body .resource-card,
body .nhd-stat,
body .nh-metric,
body .nh-chart {
  background: linear-gradient(145deg, #1c2229, #161b20);
  border-color: var(--nb-outline);
  color: var(--nb-silver-strong);
}
body .nhd-stat { min-width: 0; }
body .nhd-card { background: #191f26; border-color: var(--nb-outline); }
body .nhd-label,
body .nh-metric span,
body .nhd-sub,
body .nhd-muted,
body .nhd-action-hint,
body .nhd-control-caption,
body .nhd-row strong,
body .nh-chart-head span,
body .nh-monitor-toolbar,
body .nh-chart-legend,
body .nh-metric small,
body .nh-muted { color: #aeb7c2; }
body .nhd-value,
body #nhd-players,
body .nh-metric strong,
body .nh-chart-head h2 { color: var(--nb-silver-strong); }
body .nhd-message,
body .nh-alert-item {
  background: #222830;
  color: #d1d8e1;
  border-color: #454d57;
}
body .nhd-row { color: #d4dbe3; }
body .nhd-players-card { border-color: var(--nb-outline); }
body .nhd-player-indicator {
  background: #303640;
  color: #cbd3dc;
}
body .nhd-player-indicator.nhd-active {
  color: #e7d09d;
  background: #3c3427;
}
body .nhd-player-indicator.nhd-idle {
  color: #9ce4bc;
  background: #203a2d;
}
body .nhd-player-indicator.nhd-unknown {
  color: #efce8b;
  background: #3e3424;
}
body .nhd-player-notice,
body .nhd-warning { color: #ddbc78; }
body .nhd-control-actions { border-color: #3a414a; }
body .nhd-link,
body .nh-link,
body .nh-nav-button {
  background: #272e36;
  border: 1px solid #48515b;
  color: #e1e5ea;
  border-radius: 8px;
  text-decoration: none;
}
body .nhd-link:hover,
body .nh-link:hover,
body .nh-nav-button:hover {
  border-color: #bda16b;
  color: #f5e5c4;
  background: #30363d;
}
body .nhd-control-btn { background: #2c333d; border-color: #57606a; color: #e8ebee; }
body .nhd-control-btn:not(:disabled):hover { box-shadow: 0 0 0 2px #ffffff12; }

/* Brand red is decorative, never the default color of data or controls. */
body .brand-name span { color: #ee6975; }
body .brand-icon::after { background: var(--nb-brand); }
body .eyebrow { color: #d36571; }
body .nav-link.active,
body .nav-link[aria-current='page'] {
  background: #34272c;
  border-color: #624047;
}
body .nav-link.active span,
body .nav-link[aria-current='page'] span { color: #ed8790; }
body .topbar, body .sidebar { border-color: #30363e; }
body .version-tag, body .section-tag {
  background: #242a31;
  border-color: #47505b;
  color: #d4dbe3;
}
body .environment {
  color: #e4c990;
  background: #312b24;
  border-color: #62543b;
}

/* Neutral informational cards - no blue success/error suggestion. */
body .notice:not([role='alert']) {
  background: #222830;
  border-color: #414a54;
  border-left-color: #9ca8b6;
  color: #d6dce3;
}
body .notice:not([role='alert']) .notice-icon {
  background: #404953;
  color: #e8edf3;
}
body .notice[role='alert'] {
  background: #351d24;
  border-color: #a54450;
  border-left-color: var(--nb-danger);
  color: #ffe2e6;
}
body .notice[role='alert'] p { color: #ffe2e6; }
body .nhd-message { border-left: 3px solid #8f9aa8; }
body .stat-card:first-child { border-top-color: var(--nb-brand); }

/* Green - start / success, amber - restart / caution,
   intense red - stop / destructive / critical. Disabled stays neutral. */
body button.action-primary,
body #btn-start:not(:disabled),
body #nhd-start:not(:disabled),
body button.btn-primary:not(:disabled) {
  background: #1e6848;
  border-color: #3ca772;
  color: #eefcf3;
}
body button.action-primary:hover:not(:disabled),
body #btn-start:hover:not(:disabled),
body #nhd-start:hover:not(:disabled),
body button.btn-primary:hover:not(:disabled) {
  background: #278357;
  border-color: #5cd89d;
  color: #ffffff;
}
body #btn-restart:not(:disabled),
body #nhd-restart:not(:disabled) {
  background: #614b24;
  border-color: #bf9342;
  color: #fff0cb;
}
body #btn-restart:hover:not(:disabled),
body #nhd-restart:hover:not(:disabled) {
  background: #7d602b;
  border-color: #e6bb63;
}
body #btn-stop:not(:disabled),
body #nhd-stop:not(:disabled),
body button.btn-danger:not(:disabled),
body form:has(input[name='operation'][value='delete']) button:not(:disabled),
body form:has(input[name='operation'][value='remove']) button:not(:disabled) {
  background: #9f2533;
  border-color: #e44658;
  color: #fff4f5;
}
body #btn-stop:hover:not(:disabled),
body #nhd-stop:hover:not(:disabled),
body button.btn-danger:hover:not(:disabled) {
  background: #c52b3a;
  border-color: #ff6773;
}
body button:disabled { opacity: .42; filter: saturate(.48); cursor: not-allowed; }
body button:focus-visible,
body a:focus-visible,
body select:focus-visible,
body input:focus-visible {
  outline: 2px solid #e5d19f;
  outline-offset: 3px;
}

/* Dashboard resource meters: silver in normal use, amber under high use,
   vivid red only in critical use. JavaScript sets data-nb-usage visually. */
body .meter,
body .empty-bar { background: #343b44; }
body .meter-fill { background: linear-gradient(90deg,#81909d,#c4cbd3); }
body .meter[data-nb-usage='warning'] > .meter-fill {
  background: linear-gradient(90deg,#b38835,#e3b24c);
}
body .meter[data-nb-usage='critical'] > .meter-fill {
  background: linear-gradient(90deg,#b82335,#ef4352);
}
body .resource-card { border-top: 2px solid #4d5661; }
body .resource-card > strong { color: #edf1f4; }
body .resource-card > span { color: #b6c0ca; }

/* Semantic server state: OFFLINE may be intentional, so it is NOT red. */
body .server-status.is-offline { color: #bec7d1; }
body .server-status.is-offline .status-dot { background: #87919d; }
body .server-status.is-online { color: #70d7a3; }
body .server-status.is-online .status-dot { background: #32ba7a; }
body .server-status.is-unknown { color: #e5bb64; }
body .server-status.is-unknown .status-dot { background: #d5a744; }
body .stat-card[data-nb-status='online'] .stat-number,
body .nhd-stat[data-nb-status='online'] .nhd-value { color: #70d7a3; }
body .stat-card[data-nb-status='starting'] .stat-number,
body .nhd-stat[data-nb-status='starting'] .nhd-value { color: #e4c278; }
body .stat-card[data-nb-status='offline'] .stat-number,
body .nhd-stat[data-nb-status='offline'] .nhd-value { color: #d5dbe2; }
body .stat-card[data-nb-status='unknown'] .stat-number,
body .nhd-stat[data-nb-status='unknown'] .nhd-value { color: #efbe71; }

/* Host monitoring historical charts: metal / gold / network green.
   The CSS is more specific than the later-loaded monitoring-v08.css. */
body .nh-metric,
body .nh-chart { border-color: #39424c; }
body .nh-chart svg {
  background: #12171d;
  border-color: #37404a;
}
body .nh-grid { stroke: #35404a; }
body .nh-path-host { stroke: #c5ccd4; }
body .nh-path-fox { stroke: #d8b16a; }
body .nh-path-network { stroke: #53b98b; }
body .nh-alert-item { border-left-color: var(--nb-warning); }
body .nh-select,
body .nh-settings-row input,
body select#preset,
body select,
body textarea,
body input:not([type='hidden']):not([type='checkbox']):not([type='radio']) {
  color: #eef0f3;
  background: #262d35;
  border: 1px solid #56606c;
  border-radius: 8px;
}
/* A few legacy inline attributes still set navy form colors. */
body select#preset { background: #262d35 !important; border-color: #56606c !important; color: #eef0f3 !important; }
body .nh-check input { accent-color: #bda16b; }
body progress { accent-color: #aab6c2; }
body .nh-warning { background: #3a3024; color: #f1d5a0; border-left-color: #e3b24c; }
body .log-output { background: #0f1318; color: #c8d1dc; }
body .log-toolbar span { color: #c1cbd5; }
@media (prefers-reduced-motion: reduce) {
  body .meter-fill { transition: none; }
}


/* =============================================================
   NB HOST - VISUAL 1.2 | Herramientas y acceso
   Enfatiza las acciones sin tocar la logica de ASP.NET / Agent.
   ============================================================= */
:root {
  --nb-action-green: #2d9b65;
  --nb-action-green-border: #4db985;
  --nb-action-amber: #b7812f;
  --nb-action-amber-border: #e1b45d;
  --nb-action-red: #c22f3e;
  --nb-action-red-border: #f05b68;
}

/* Operative cards: independent visual modules */
body .nb-tools-surface {
  padding: clamp(20px,2.5vw,30px);
  border: 1px solid #414a54;
  border-radius: 13px;
  background: linear-gradient(150deg,#20262e 0%,#191e25 100%);
  box-shadow: 0 12px 30px #0000001a;
}
body .nb-tools-surface h3 {
  color:#f0f3f6;
  font-size:18px;
  margin: 2px 0 16px;
}
body .nb-tools-surface hr { border-color:#424a54 !important; }
body .nb-tools-surface form { min-width:0; }
body .nb-tools-surface .nb-tool-actions,
body .nb-tools-surface .nb-action-row { gap:12px !important; align-items:center; }
body .nb-tools-surface .nb-status-pills { gap:8px !important; }
body .nb-tools-surface .nb-status-pills span {
  display:inline-flex; flex-wrap:wrap; align-items:baseline; gap:4px;
  min-height:37px; padding:8px 11px; border:1px solid #3d4650;
  background:#171d23; border-radius:8px; color:#bac4cf; font-size:13px;
}
body .nb-tools-surface .nb-status-pills strong { color:#f0f3f6; }

/* Unified, large controls - default secondary (graphite/silver) */
body .nb-btn {
  -webkit-appearance:none; appearance:none;
  display:inline-flex; align-items:center; justify-content:center;
  gap:9px; padding:12px 20px; min-height:48px; min-width:116px;
  max-width:100%; border-radius:9px;
  font:700 14px/1.25 'Segoe UI Variable','Segoe UI',Arial,sans-serif;
  letter-spacing:0; text-align:center; text-decoration:none;
  color:#edf1f5; background:#323943; border:1px solid #66717c;
  box-shadow:inset 0 1px #ffffff10;
  cursor:pointer; transition:background .13s ease,border-color .13s ease;
}
body .nb-btn:not(:disabled):hover,
body a.nb-btn:hover { background:#424d57; border-color:#9da8b2; color:#ffffff; }
body .nb-btn--secondary { background:#303842; border-color:#66717c; color:#f2f4f6; }
body .nb-btn--primary:not(:disabled), body a.nb-btn--primary {
  background:#216e49; border-color:var(--nb-action-green-border); color:#effff5;
}
body .nb-btn--primary:not(:disabled):hover, body a.nb-btn--primary:hover {
  background:var(--nb-action-green); border-color:#80d6a6; color:#fff;
}
body .nb-btn--warning:not(:disabled), body a.nb-btn--warning {
  background:#624b26; border-color:var(--nb-action-amber-border); color:#fff2d0;
}
body .nb-btn--warning:not(:disabled):hover, body a.nb-btn--warning:hover {
  background:#89662c; border-color:#f5d286; color:#fff;
}
body .nb-btn--danger:not(:disabled), body a.nb-btn--danger {
  background:#962b39; border-color:var(--nb-action-red-border); color:#fff2f3;
}
body .nb-btn--danger:not(:disabled):hover, body a.nb-btn--danger:hover {
  background:var(--nb-action-red); border-color:#ff9099; color:#fff;
}
body .nb-btn:disabled { background:#292e35; color:#87919c; border-color:#454b55; opacity:.65; cursor:not-allowed; filter:none; }
body .nb-btn:focus-visible { outline:2px solid #e0c584; outline-offset:3px; }

/* Consistent comfortable text/select/file inputs. Never style hidden tokens. */
body .nb-tools-surface select,
body .nb-tools-surface input:not([type='hidden']):not([type='checkbox']):not([type='radio']) {
  min-height:47px; padding:10px 14px; border-radius:9px;
  color:#edf1f5 !important; background:#151a21 !important; border:1px solid #636e79 !important;
  font:500 14px/1.35 'Segoe UI Variable','Segoe UI',Arial,sans-serif;
}
body .nb-tools-surface select { min-width:165px; }
body .nb-tools-surface input[type='file'] {
  padding:7px !important; min-width:min(100%,260px); max-width:100%;
  cursor:pointer; width:min(100%,465px);
}
body .nb-tools-surface input[type='file']::file-selector-button {
  margin-right:13px; padding:9px 13px;
  border-radius:7px; border:1px solid #74808b; background:#343e48;
  color:#f3f5f7; cursor:pointer; font-weight:650;
}
body .nb-tools-surface input[type='file']::file-selector-button:hover { background:#46525e; }
body .nb-tools-surface input:not([type='hidden']):focus-visible,
body .nb-tools-surface select:focus-visible { outline:2px solid #d4bd86; outline-offset:2px; }
body .nb-tools-surface input:disabled,
body .nb-tools-surface select:disabled { opacity:.55; cursor:not-allowed; }
body .nb-tools-surface label { color:#d9e1e9; font-weight:600; }
body .nb-tools-surface .nb-label { min-width:50px; }
body .nb-tools-surface .nb-details-toggle {
  cursor:pointer; color:#e2e8ef; padding:12px 15px;
  border:1px solid #57616b; border-radius:9px;
  background:#2b343d; font-weight:650; width:max-content; max-width:100%;
}
body .nb-tools-surface .nb-details-toggle:hover { background:#36404a; }

/* Stronger information hierarchy inside tables */
body .nb-tools-surface .nb-data-table { border-collapse:collapse; width:100%; min-width:550px; line-height:1.45 !important; }
body .nb-tools-surface:has(table) { overflow-x:auto; }
body .nb-tools-surface .nb-data-table th {
  background:#262e37; color:#cbd4dd; padding:14px 16px; font-weight:750;
  font-size:12px; letter-spacing:.4px; text-align:left;
  border-bottom:1px solid #4b5561;
}
body .nb-tools-surface .nb-data-table td {
  padding:12px 16px; color:#e6ebef; vertical-align:middle;
  border-bottom:1px solid #353d46;
}
body .nb-tools-surface .nb-data-table tr:last-child td { border-bottom:0; }
body .nb-tools-surface .nb-data-table tbody tr:hover { background:#ffffff08; }
body .nb-tools-surface .nb-data-table td form { display:inline-flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0; }
body .nb-tools-surface .nb-data-table .nb-btn { min-height:41px; min-width:95px; padding:9px 15px; font-size:13px; }
body .nb-tools-surface .nb-data-table input[name='acknowledgement'] { width:125px !important; min-height:41px; }
body .nb-tools-surface .nb-data-table a.nb-btn { margin-right:10px; }

/* Notice / progress bars remain silver, amber and critical red. */
body .nb-tools-surface progress { width:100%; height:15px; accent-color:#aab5bf; }

/* Instance tool navigation -> full-size accessible action cards. */
body .nhd-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
body .nhd-links .nhd-link.nb-tool-tile {
  display:flex; align-items:center; gap:14px; min-height:92px;
  padding:18px 17px; border-radius:11px;
  background:#242b33; border:1px solid #535d68; color:#eaf0f5;
  text-decoration:none; box-shadow:inset 0 1px #ffffff12;
}
body .nhd-links .nhd-link.nb-tool-tile:hover {
  background:#313a44; border-color:#c4ccd5; color:#fff;
  transform:translateY(-1px);
}
body .nb-tool-tile__icon {
  display:grid; place-items:center; flex:0 0 43px; height:43px;
  border:1px solid #626d77; border-radius:10px; background:#363f48;
  color:#d8dfe6; font-size:21px; font-weight:700;
}
body .nb-tool-tile__content { min-width:0; display:grid; gap:5px; text-align:left; }
body .nb-tool-tile__content strong { font-weight:750; font-size:14px; line-height:1.35; }
body .nb-tool-tile__content small { font-size:12px; font-weight:450; color:#aeb9c4; line-height:1.35; }
body .nb-tool-tile__arrow { margin-left:auto; font-size:23px; font-weight:650; color:#aeb8c3; }
@media(max-width:1180px) { body .nhd-links { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:670px) {
  body .nhd-links { grid-template-columns:1fr; }
  body .nhd-links .nhd-link.nb-tool-tile { min-height:78px; padding:13px 15px; }
  body .nb-tools-surface { padding:18px 15px; }
  body .nb-tools-surface .nb-btn { width:100%; }
  body .nb-tools-surface .nb-data-table .nb-btn { width:auto; }
  body .nb-tools-surface form:not(.nb-file-form) { max-width:100%; }
  body .nb-tools-surface .nb-status-pills span { max-width:100%; }
}
@media(prefers-reduced-motion:reduce) { body .nb-btn,body .nhd-links .nhd-link.nb-tool-tile { transition:none; transform:none; } }

/* =============================================================
   NB HOST VISUAL 1.2.1 - NOCTBUHO brand mark, CSS only.
   The red smile is extracted from the supplied original logo.
   No API, events, authentication or game controls are changed.
   ============================================================= */
body .sidebar .brand-icon {
  box-sizing:border-box; padding-bottom:9px;
}
body .sidebar .brand-icon::after {
  content:''; position:absolute; width:29px; height:13px; left:50%;
  bottom:2px; transform:translateX(-50%); border-radius:0;
  background: url('../branding/noctbuho-smile-red.png') center / contain no-repeat;
}

/* NB Host Mecánica 2.0 - Server settings; no Agent controls affected */
.nb-settings-form { display:grid; gap:18px; }
.nb-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.nb-settings-field { display:flex;flex-direction:column;gap:8px; font-size:.95rem; color:#dce1e7; font-weight:600; }
.nb-settings-field input,.nb-settings-field select { width:100%;min-height:46px;border:1px solid #424952;background:#14191f;color:#f4f5f7;padding:10px 14px;border-radius:9px;font:inherit; }
.nb-settings-field input:focus,.nb-settings-field select:focus { outline:2px solid #b7bfc9;outline-offset:1px; }
.nb-settings-field input:disabled,.nb-settings-field select:disabled { opacity:.60; }
.nb-settings-field small {font-size:.79rem;line-height:1.45;color:#aab4be;font-weight:400;}
.nb-settings-divider {height:1px;background:#353c45;}
.nb-settings-toggles {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.nb-settings-toggles label {display:flex;gap:11px;padding:16px;background:#171d23;border:1px solid #39414a;border-radius:10px;align-items:flex-start;cursor:pointer;}
.nb-settings-toggles input {margin-top:4px;width:18px;height:18px;flex-shrink:0;accent-color:#36ab71;}
.nb-settings-toggles strong {display:block;font-size:.92rem;color:#f2f4f7;line-height:1.35;}
.nb-settings-toggles small {display:block;font-size:.79rem;line-height:1.5;color:#a9b2bc;margin-top:5px;}
.nb-settings-footer {display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;}
.nb-settings-footer p {max-width:700px;margin:0;color:#b0b8c0;font-size:.84rem;line-height:1.5;}
.nb-settings-hint {color:#e5b85b;margin-top:16px;}
@media(max-width:860px){.nb-settings-toggles{grid-template-columns:1fr}.nb-settings-grid{grid-template-columns:1fr}}
