.tg-enterprise-cockpit {
  --tg-ink: #173546;
  --tg-text: #4f6977;
  --tg-muted: #8799a3;
  --tg-line: #dfeaee;
  --tg-cyan: #0b9fba;
  --tg-cyan-soft: #e9f8fb;
  --tg-blue: #628ef5;
  --tg-gold: #d8a447;
  --tg-red: #d95f67;
  --tg-green: #20a77a;
  height: 100%;
  min-height: 0;
  overflow: auto;
  color: var(--tg-ink);
  background:
    radial-gradient(circle at 88% 2%, rgba(20, 179, 203, .1), transparent 24%),
    #f3f7f9;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
.tg-cockpit-shell { max-width: 1680px; min-width: 980px; margin: 0 auto; padding: 24px 26px 36px; }
.tg-cockpit-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 2px 2px 18px; }
.tg-cockpit-kicker { display: block; color: var(--tg-cyan); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.tg-cockpit-head h1 { margin: 7px 0 0; font-size: 28px; line-height: 1.2; letter-spacing: -.035em; }
.tg-cockpit-head p { margin: 8px 0 0; color: var(--tg-muted); font-size: 11px; }
.tg-cockpit-head-actions { display: flex; align-items: center; gap: 8px; }
.tg-cockpit-live { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid #d6e8ec; border-radius: 8px; color: #52707e; background: #fff; font-size: 9px; }
.tg-cockpit-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--tg-green); box-shadow: 0 0 0 4px rgba(32, 167, 122, .1); }
.tg-cockpit-button { height: 34px; padding: 0 12px; border: 1px solid #d4e3e8; border-radius: 8px; color: #4c6876; background: #fff; font-size: 9px; font-weight: 700; cursor: pointer; }
.tg-cockpit-button:hover { border-color: #9fd4de; color: #087f99; }
.tg-cockpit-button.primary { color: #fff; border-color: #0a9eb9; background: linear-gradient(110deg, #0a9db9, #20c0d8); }
.tg-cockpit-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(430px, .7fr);
  gap: 20px;
  padding: 22px;
  border: 1px solid #d8e7eb;
  border-radius: 16px;
  background: linear-gradient(118deg, #fff 0%, #faffff 58%, #ebf9fb 100%);
  box-shadow: 0 16px 42px rgba(24, 66, 83, .07);
}
.tg-cockpit-hero::after { content: ""; position: absolute; right: -70px; bottom: -160px; width: 360px; height: 360px; border: 1px solid rgba(11, 159, 186, .12); border-radius: 50%; box-shadow: 0 0 0 48px rgba(11, 159, 186, .03), 0 0 0 96px rgba(11, 159, 186, .02); }
.tg-cockpit-tabs { display: flex; flex-wrap: wrap; gap: 7px; align-self: start; position: relative; z-index: 1; }
.tg-cockpit-tabs button { min-width: 112px; padding: 10px 13px; border: 1px solid #dbe8ec; border-radius: 9px; color: #647c88; background: rgba(255, 255, 255, .8); font-size: 10px; font-weight: 700; text-align: left; cursor: pointer; transition: .16s ease; }
.tg-cockpit-tabs button small { display: block; margin-top: 4px; color: #94a4ac; font-size: 8px; font-weight: 400; }
.tg-cockpit-tabs button:hover { border-color: #aed9e2; transform: translateY(-1px); }
.tg-cockpit-tabs button.is-active { color: #087f99; border-color: #9edae5; background: #e9f9fb; box-shadow: inset 3px 0 #0b9fba; }
.tg-cockpit-corporate { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; position: relative; z-index: 1; }
.tg-corporate-metric { padding: 12px 13px; border: 1px solid #e1ecef; border-radius: 10px; background: rgba(255, 255, 255, .8); }
.tg-corporate-metric span { display: block; color: #7d929d; font-size: 8px; }
.tg-corporate-metric b { display: inline-block; margin-top: 7px; font-size: 23px; line-height: 1; }
.tg-corporate-metric em { margin-left: 4px; color: #82959f; font-size: 8px; font-style: normal; }
.tg-corporate-metric small { display: block; margin-top: 6px; color: #95a4ab; font-size: 7px; }
.tg-cockpit-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-top: 12px; }
.tg-domain-card { padding: 15px; border: 1px solid var(--tg-line); border-radius: 12px; background: #fff; box-shadow: 0 8px 26px rgba(23, 66, 82, .04); cursor: pointer; transition: .17s ease; }
.tg-domain-card:hover { transform: translateY(-2px); border-color: #b7dce3; box-shadow: 0 12px 30px rgba(20, 77, 94, .08); }
.tg-domain-card.is-active { border-color: #82d1de; box-shadow: 0 12px 32px rgba(11, 159, 186, .1), inset 0 0 0 1px #b8e8ef; }
.tg-domain-card-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.tg-domain-card-head span { color: #0b85a0; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.tg-domain-card h3 { margin: 10px 0 0; font-size: 14px; }
.tg-domain-card p { margin: 5px 0 0; color: var(--tg-muted); font-size: 8px; line-height: 1.6; }
.tg-domain-card-health { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; color: #788e99; font-size: 8px; }
.tg-domain-card-health div { flex: 1; height: 5px; overflow: hidden; border-radius: 3px; background: #edf2f4; }
.tg-domain-card-health i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0b9fba, #5ec6d7); }
.tg-status { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 5px; color: #2d8168; background: #e8f8f1; font-size: 7px; font-weight: 800; white-space: nowrap; }
.tg-status.warning { color: #99701d; background: #fff6e4; }
.tg-status.danger { color: #b84d54; background: #ffeded; }
.tg-status.neutral { color: #617985; background: #f0f5f6; }
.tg-cockpit-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.tg-cockpit-metric { padding: 15px; border: 1px solid var(--tg-line); border-radius: 11px; background: #fff; }
.tg-cockpit-metric span { color: #7f939d; font-size: 8px; }
.tg-cockpit-metric b { display: inline-block; margin-top: 8px; font-size: 26px; line-height: 1; }
.tg-cockpit-metric em { margin-left: 4px; color: #8498a2; font-size: 8px; font-style: normal; }
.tg-cockpit-metric small { display: block; margin-top: 7px; color: #91a1a9; font-size: 7px; }
.tg-cockpit-metric.good { border-top: 3px solid var(--tg-green); }
.tg-cockpit-metric.warning { border-top: 3px solid var(--tg-gold); }
.tg-cockpit-metric.danger { border-top: 3px solid var(--tg-red); }
.tg-cockpit-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .65fr); gap: 11px; margin-top: 11px; }
.tg-cockpit-panel { min-width: 0; overflow: hidden; border: 1px solid var(--tg-line); border-radius: 12px; background: #fff; box-shadow: 0 8px 26px rgba(23, 66, 82, .035); }
.tg-cockpit-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px 11px; }
.tg-cockpit-panel-head h2 { margin: 0; font-size: 13px; }
.tg-cockpit-panel-head p { margin: 4px 0 0; color: var(--tg-muted); font-size: 8px; }
.tg-cockpit-panel-head span { color: #82969f; font-size: 8px; }
.tg-table-wrap { max-height: 430px; overflow: auto; border-top: 1px solid #edf2f4; }
.tg-table { width: 100%; border-collapse: collapse; }
.tg-table th { position: sticky; top: 0; z-index: 1; padding: 9px 12px; color: #7d919b; background: #f8fbfc; border-bottom: 1px solid #e5edef; font-size: 7px; text-align: left; white-space: nowrap; }
.tg-table td { padding: 11px 12px; border-bottom: 1px solid #edf2f4; color: #4f6977; font-size: 8px; vertical-align: middle; }
.tg-table tr:last-child td { border-bottom: 0; }
.tg-table tr:hover td { background: #fbfdfe; }
.tg-table b { display: block; color: #294958; font-size: 9px; }
.tg-table small { display: block; margin-top: 4px; color: #8d9fa7; font-size: 7px; }
.tg-progress { min-width: 90px; }
.tg-progress span { display: block; margin-bottom: 5px; color: #6f8590; font-size: 7px; }
.tg-progress div { height: 5px; overflow: hidden; border-radius: 3px; background: #edf2f4; }
.tg-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0b9fba, #56c4d5); }
.tg-side-stack { display: grid; gap: 11px; align-content: start; }
.tg-equipment-list, .tg-alert-list, .tg-workflow-list { padding: 0 15px 14px; }
.tg-equipment-row, .tg-workflow-row { padding: 10px 0; border-top: 1px solid #edf2f4; }
.tg-equipment-row:first-child, .tg-workflow-row:first-child { padding-top: 0; border-top: 0; }
.tg-equipment-top, .tg-workflow-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.tg-equipment-top b, .tg-workflow-top b { font-size: 9px; }
.tg-equipment-row small, .tg-workflow-row small { display: block; margin-top: 5px; color: #8b9da6; font-size: 7px; }
.tg-workflow-bar { height: 5px; margin-top: 7px; border-radius: 3px; background: #edf2f4; overflow: hidden; }
.tg-workflow-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #628ef5, #2bb4cf); }
.tg-alert-item { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; padding: 10px 0; border-top: 1px solid #edf2f4; }
.tg-alert-item:first-child { padding-top: 0; border-top: 0; }
.tg-alert-item > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: #9b711f; background: #fff6e4; font-size: 10px; font-weight: 900; }
.tg-alert-item.high > span { color: #b84d54; background: #ffeded; }
.tg-alert-item b { display: block; font-size: 8px; }
.tg-alert-item small { display: block; margin-top: 4px; color: #899ba4; font-size: 7px; line-height: 1.55; }
.tg-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 15px 15px; }
.tg-project-card { padding: 13px; border: 1px solid #e4ecef; border-radius: 10px; background: #fbfdfe; }
.tg-project-card h3 { margin: 8px 0 0; font-size: 10px; line-height: 1.5; }
.tg-project-card > p { margin: 5px 0 0; color: #81949e; font-size: 7px; }
.tg-project-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 10px; }
.tg-project-meta div { padding: 7px; border-radius: 7px; background: #fff; }
.tg-project-meta span { display: block; color: #91a1a9; font-size: 7px; }
.tg-project-meta b { display: block; margin-top: 4px; font-size: 9px; }
.tg-budget-list { padding: 0 15px 14px; }
.tg-budget-row { padding: 10px 0; border-top: 1px solid #edf2f4; }
.tg-budget-row:first-child { padding-top: 0; border-top: 0; }
.tg-budget-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tg-budget-head b { font-size: 9px; }
.tg-budget-row small { display: block; margin-top: 5px; color: #8b9da6; font-size: 7px; }
.tg-empty { min-height: 180px; display: grid; place-items: center; padding: 20px; color: #92a3ab; font-size: 9px; text-align: center; }
.tg-error { margin: 18px auto; max-width: 720px; padding: 22px; border: 1px solid #f1d5d7; border-radius: 12px; color: #955158; background: #fff6f6; font-size: 11px; line-height: 1.8; }
.tg-loading { min-height: 420px; display: grid; place-items: center; color: #79909b; font-size: 11px; }
@media (max-width: 1180px) {
  .tg-cockpit-shell { min-width: 760px; padding: 18px 16px 28px; }
  .tg-cockpit-hero { grid-template-columns: 1fr; }
  .tg-cockpit-summary, .tg-cockpit-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-cockpit-grid { grid-template-columns: 1fr; }
  .tg-side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .tg-cockpit-shell { min-width: 0; }
  .tg-cockpit-head { align-items: flex-start; flex-direction: column; }
  .tg-cockpit-corporate, .tg-cockpit-summary, .tg-cockpit-metrics, .tg-side-stack, .tg-project-grid { grid-template-columns: 1fr; }
  .tg-table { min-width: 720px; }
}

/* Dark operations cockpit theme */
.tg-enterprise-cockpit {
  --tg-ink: #e7f6fb;
  --tg-text: #9db7c4;
  --tg-muted: #648596;
  --tg-line: rgba(81, 153, 178, .22);
  --tg-cyan: #35d2eb;
  --tg-cyan-soft: rgba(30, 181, 211, .13);
  --tg-blue: #6d9fff;
  --tg-gold: #f0bd62;
  --tg-red: #ff7078;
  --tg-green: #49d6a1;
  color: #d9eef5;
  background:
    radial-gradient(circle at 76% -5%, rgba(21, 174, 204, .22), transparent 30%),
    radial-gradient(circle at 3% 90%, rgba(72, 115, 184, .15), transparent 28%),
    linear-gradient(rgba(46, 126, 151, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 126, 151, .075) 1px, transparent 1px),
    #061827;
  background-size: auto, auto, 34px 34px, 34px 34px, auto;
  color-scheme: dark;
}
.tg-cockpit-head h1,
.tg-cockpit-panel-head h2,
.tg-domain-card h3,
.tg-project-card h3,
.tg-table b,
.tg-equipment-top b,
.tg-workflow-top b,
.tg-budget-head b,
.tg-chart-title span,
.tg-queue-row b,
.tg-alert-item b,
.tg-corporate-metric b,
.tg-cockpit-metric b {
  color: var(--tg-ink);
}
.tg-cockpit-head p,
.tg-domain-card p,
.tg-project-card > p,
.tg-table small,
.tg-equipment-row small,
.tg-workflow-row small,
.tg-budget-row small,
.tg-chart-title b,
.tg-queue-row small,
.tg-alert-item small,
.tg-corporate-metric small,
.tg-cockpit-metric small {
  color: #7597a6;
}
.tg-cockpit-head { border-bottom: 1px solid rgba(80, 155, 181, .12); }
.tg-cockpit-kicker { color: #45d7ed; }
.tg-cockpit-live,
.tg-cockpit-button {
  color: #b5d3de;
  border-color: rgba(91, 166, 190, .28);
  background: rgba(9, 39, 57, .88);
}
.tg-cockpit-button:hover { color: #deffff; border-color: #3fbfd5; background: #0a3044; }
.tg-cockpit-button.primary { color: #061827; border-color: #45d7ed; background: linear-gradient(110deg, #2ed1e8, #6be3ee); }
.tg-cockpit-hero {
  border-color: rgba(81, 168, 194, .25);
  background:
    linear-gradient(118deg, rgba(9, 37, 55, .98), rgba(8, 30, 47, .92) 58%, rgba(8, 53, 70, .92)),
    #092336;
  box-shadow: 0 24px 60px rgba(1, 12, 21, .34), inset 0 1px rgba(117, 208, 225, .08);
}
.tg-cockpit-hero::after {
  border-color: rgba(61, 209, 231, .16);
  box-shadow: 0 0 0 48px rgba(58, 192, 218, .035), 0 0 0 96px rgba(58, 192, 218, .02);
}
.tg-cockpit-tabs button {
  color: #8babb9;
  border-color: rgba(84, 151, 173, .25);
  background: rgba(9, 39, 57, .82);
}
.tg-cockpit-tabs button small { color: #668a99; }
.tg-cockpit-tabs button:hover { color: #d4f9ff; border-color: #3cbcd2; }
.tg-cockpit-tabs button.is-active {
  color: #d9fbff;
  border-color: rgba(57, 206, 230, .64);
  background: linear-gradient(100deg, rgba(25, 145, 169, .34), rgba(8, 47, 66, .76));
  box-shadow: inset 3px 0 #35d2eb, 0 0 20px rgba(38, 190, 215, .1);
}
.tg-corporate-metric,
.tg-domain-card,
.tg-cockpit-metric,
.tg-cockpit-panel {
  border-color: rgba(77, 151, 174, .23);
  background: linear-gradient(150deg, rgba(12, 45, 64, .96), rgba(8, 31, 48, .96));
  box-shadow: 0 16px 36px rgba(1, 12, 21, .22), inset 0 1px rgba(126, 210, 226, .045);
}
.tg-domain-card:hover,
.tg-domain-card.is-active {
  border-color: rgba(58, 205, 229, .58);
  box-shadow: 0 18px 38px rgba(1, 12, 21, .3), 0 0 24px rgba(41, 193, 216, .08);
}
.tg-domain-card-head span:first-child { color: #42cfe6; }
.tg-domain-card-health { color: #779baa; }
.tg-domain-card-health div,
.tg-cockpit-metric .tg-workflow-bar,
.tg-progress div,
.tg-workflow-bar,
.tg-domain-card-health i {
  background: rgba(61, 112, 132, .22);
}
.tg-domain-card-health i,
.tg-workflow-bar i,
.tg-progress i {
  background: linear-gradient(90deg, #2fcbe5, #68e2ed);
  box-shadow: 0 0 12px rgba(47, 203, 229, .24);
}
.tg-cockpit-metric.good { border-top-color: #42d5a0; }
.tg-cockpit-metric.warning { border-top-color: #e9b557; }
.tg-cockpit-metric.danger { border-top-color: #ee6873; }
.tg-cockpit-panel-head { border-bottom: 1px solid rgba(71, 137, 158, .12); }
.tg-cockpit-panel-head span { color: #6f93a1; }
.tg-table-wrap { border-top-color: rgba(71, 137, 158, .15); }
.tg-table th {
  color: #6f93a2;
  background: rgba(7, 32, 48, .98);
  border-bottom-color: rgba(75, 144, 165, .2);
}
.tg-table td {
  color: #9cb7c4;
  border-bottom-color: rgba(82, 145, 165, .13);
}
.tg-table tr:hover td { background: rgba(24, 76, 98, .17); }
.tg-table b { color: #d8edf4; }
.tg-table small { color: #6f93a2; }
.tg-status {
  color: #5ee0ad;
  border: 1px solid rgba(64, 205, 154, .24);
  background: rgba(38, 151, 113, .14);
}
.tg-status.warning {
  color: #f0c36e;
  border-color: rgba(230, 173, 75, .3);
  background: rgba(166, 114, 28, .16);
}
.tg-status.danger {
  color: #ff8a92;
  border-color: rgba(235, 91, 104, .32);
  background: rgba(174, 48, 61, .18);
}
.tg-status.neutral {
  color: #9ab4c0;
  border-color: rgba(115, 155, 172, .22);
  background: rgba(74, 109, 125, .16);
}
.tg-equipment-row,
.tg-workflow-row,
.tg-budget-row,
.tg-alert-item,
.tg-queue-row { border-top-color: rgba(76, 142, 162, .14); }
.tg-alert-item > span {
  color: #f0bd62;
  background: rgba(172, 116, 32, .17);
  border: 1px solid rgba(235, 174, 80, .24);
}
.tg-alert-item.high > span {
  color: #ff8991;
  background: rgba(174, 49, 62, .16);
  border-color: rgba(235, 91, 104, .27);
}
.tg-project-card {
  border-color: rgba(78, 148, 169, .2);
  background: linear-gradient(145deg, rgba(12, 47, 66, .84), rgba(7, 31, 47, .9));
}
.tg-project-meta div {
  border: 1px solid rgba(72, 140, 162, .14);
  background: rgba(5, 28, 43, .72);
}
.tg-project-meta span,
.tg-project-meta b,
.tg-corporate-metric span,
.tg-cockpit-metric span,
.tg-cockpit-metric em { color: #86a5b2; }
.tg-empty { color: #638494; }
.tg-error {
  border-color: rgba(235, 91, 104, .3);
  color: #ff9ca3;
  background: rgba(66, 20, 30, .55);
}
.tg-loading { color: #7fa4b3; }
.tg-ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 15px 15px;
}
.tg-chart-block {
  padding: 14px;
  border: 1px solid rgba(72, 140, 162, .18);
  border-radius: 10px;
  background: rgba(5, 28, 43, .56);
}
.tg-chart-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tg-chart-title span { font-size: 10px; font-weight: 800; }
.tg-chart-title b { font-size: 8px; font-weight: 500; }
.tg-chart-rows, .tg-status-bars { margin-top: 14px; }
.tg-chart-row, .tg-status-bar {
  display: grid;
  grid-template-columns: 78px 1fr 26px;
  gap: 9px;
  align-items: center;
  margin-top: 10px;
}
.tg-chart-row:first-child, .tg-status-bar:first-child { margin-top: 0; }
.tg-chart-row span, .tg-status-bar span {
  overflow: hidden;
  color: #8ba8b5;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tg-chart-row div, .tg-status-bar div {
  height: 6px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(64, 122, 143, .22);
}
.tg-chart-row i, .tg-status-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34cde6, #64e3ef);
  box-shadow: 0 0 12px rgba(51, 203, 230, .2);
}
.tg-status-bar.tone-1 i { background: linear-gradient(90deg, #e0ae51, #f0d281); }
.tg-status-bar.tone-2 i { background: linear-gradient(90deg, #6d9fff, #a1c1ff); }
.tg-chart-row b, .tg-status-bar b { color: #a9c4cf; font-size: 8px; text-align: right; }
.tg-office-queue { padding: 0 15px 14px; }
.tg-queue-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
}
.tg-queue-row:first-child { padding-top: 0; border-top: 0; }
.tg-queue-row b { display: block; font-size: 9px; }
.tg-queue-row small { display: block; margin-top: 4px; font-size: 7px; line-height: 1.5; }
.tg-queue-row em { color: #4fd9e7; font-size: 8px; font-style: normal; font-weight: 800; }
@media (max-width: 1180px) {
  .tg-ops-grid { grid-template-columns: 1fr; }
}

.tg-cockpit-nav-group {
  margin: 8px 12px 3px;
  border-radius: 8px;
}
.tg-cockpit-nav-header {
  width: 100%;
  height: 34px;
  display: grid;
  grid-template-columns: 22px 1fr 14px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: var(--fn-text-secondary);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.tg-cockpit-nav-header:hover { background: var(--fn-sidebar-item-hover); }
.tg-cockpit-nav-group.has-active .tg-cockpit-nav-header { color: var(--fn-sidebar-item-active-text); }
.tg-cockpit-nav-icon { display: grid; place-items: center; color: var(--fn-text-tertiary); }
.tg-cockpit-nav-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.tg-cockpit-nav-chevron { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .18s ease; }
.tg-cockpit-nav-group.is-open .tg-cockpit-nav-chevron { transform: rotate(180deg); }
.tg-cockpit-nav-children { display: none; padding: 2px 0 5px 29px; }
.tg-cockpit-nav-group.is-open .tg-cockpit-nav-children { display: block; }
.tg-cockpit-nav-link {
  height: 31px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  margin: 1px 0;
  border-radius: 6px;
  color: var(--fn-text-secondary);
  font-size: 11px;
  text-decoration: none;
}
.tg-cockpit-nav-link:hover { color: var(--fn-sidebar-item-active-text); background: var(--fn-sidebar-item-hover); }
.tg-cockpit-nav-link.is-active { color: var(--fn-sidebar-item-active-text); background: var(--fn-sidebar-item-active-bg); font-weight: 700; }

.tg-cockpit-domain-hero {
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
}
.tg-domain-hero-copy .tg-cockpit-kicker { margin: 0; }
.tg-domain-hero-copy h2 {
  margin: 8px 0 0;
  color: #eaf9ff;
  font-size: 25px;
  letter-spacing: -.03em;
}
.tg-domain-hero-copy p {
  margin: 7px 0 0;
  color: #7194a3;
  font-size: 9px;
}
.tg-domain-hero-state {
  min-width: 130px;
  padding: 13px;
  border: 1px solid rgba(75, 151, 174, .22);
  border-radius: 10px;
  background: rgba(5, 28, 43, .55);
  text-align: right;
}
.tg-domain-hero-state b {
  display: block;
  margin-top: 9px;
  color: #eafaff;
  font-size: 27px;
  line-height: 1;
}
.tg-domain-hero-state small {
  display: block;
  margin-top: 5px;
  color: #6e91a0;
  font-size: 7px;
}
.tg-domain-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tg-domain-kpis .tg-cockpit-metric {
  border: 1px solid rgba(75, 151, 174, .2);
  background: rgba(5, 28, 43, .55);
  box-shadow: none;
}
@media (max-width: 900px) {
  .tg-cockpit-domain-hero { grid-template-columns: 1fr; }
  .tg-domain-hero-state { text-align: left; }
  .tg-domain-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
