.tn-shell-title-block {
  display: grid;
  gap: 4px;
}

.tn-shell-title {
  line-height: 1.15;
}

.tn-shell-context-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tn-shell-context-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.38);
}

.tn-shell-context-chip--jurisdiction {
  border-color: rgba(14, 165, 233, 0.45);
  background: rgba(2, 132, 199, 0.16);
}

.tn-shell-context-chip--mode {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(37, 99, 235, 0.2);
}

.tn-shell-header {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.tn-shell-header__inner {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.tn-shell-header__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tn-shell-header__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.tn-shell-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.tn-shell-header__actions,
[data-tn-top-actions-group] {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.25);
}

.tn-shell-header__actions .tn-shell-action {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 10px;
}

.tn-shell-company-switch {
  min-width: 280px;
}

.tn-help-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.46);
  z-index: 55;
}

.tn-help-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: min(420px, 92vw);
  max-width: 92vw;
  height: 100vh;
  border-left: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
  z-index: 60;
  box-shadow: -18px 0 44px rgba(2, 6, 23, 0.45);
  transform: translateX(100%);
  transition: transform 200ms ease;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 20px;
  overflow-y: auto;
}

.tn-help-panel.is-open {
  transform: translateX(0);
}

.tn-help-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tn-help-panel__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  color: #e2e8f0;
}

.tn-help-panel__close {
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.42);
  color: #dbeafe;
  cursor: pointer;
}

.tn-help-panel__close:hover {
  background: rgba(30, 41, 59, 0.62);
}

.tn-help-panel__intro {
  margin: 10px 0 14px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

.tn-help-summary {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.tn-help-summary p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
}

.tn-help-summary strong,
.tn-help-quick-steps h3,
.tn-help-actions h3,
.tn-help-action__title {
  color: #e2e8f0;
}

.tn-help-quick-steps,
.tn-help-actions {
  margin: 0 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  padding: 12px;
}

.tn-help-quick-steps h3,
.tn-help-actions h3 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tn-help-quick-steps ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.tn-help-quick-steps li {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
}

.tn-help-actions {
  display: grid;
  gap: 8px;
}

.tn-help-action {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.35);
  padding: 10px;
  display: grid;
  gap: 6px;
}

.tn-help-action__title {
  margin: 0;
  font-size: 14px;
}

.tn-help-action p {
  margin: 0;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.45;
}

.tn-help-accordion {
  display: grid;
  gap: 10px;
}

.tn-help-acc-item {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  overflow: hidden;
}

.tn-help-acc-heading {
  margin: 0;
}

.tn-help-acc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
}

.tn-help-acc-toggle:hover {
  background: rgba(30, 41, 59, 0.48);
}

.tn-help-acc-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(45deg);
}

.tn-help-acc-toggle span:last-child {
  transition: transform 140ms ease;
}

.tn-help-acc-panel {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 10px 14px 12px;
}

.tn-help-acc-panel p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
}

@media (max-width: 1100px) {
  .tn-shell-company-switch {
    min-width: 220px;
  }

  .tn-help-panel {
    width: min(420px, 100vw);
  }
}
