:root {
  color-scheme: light;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: #f6f7fb;
  color: #1a1d29;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px 16px 40px;
}

.app {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app__header h1 {
  font-size: 24px;
  margin: 0 0 4px;
}
.app__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lang-switcher {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.language-select {
  border: 1px solid #d1d7e5;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
}

.subtitle {
  margin: 0;
  color: #4b5568;
  font-size: 14px;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(20, 24, 44, 0.08);
}

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card__header h2 {
  margin: 0;
}

.card__body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card--nested {
  background: #f8f9fd;
  border: 1px solid #e4e7f2;
  box-shadow: none;
  padding: 12px;
  border-radius: 12px;
}

.status {
  font-weight: 600;
  margin: 0 0 4px;
}

.status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.helper {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.result-confirmation {
  margin: 8px 0 0;
  color: #15803d;
  font-size: 13px;
  font-weight: 700;
}

.role-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role-list li {
  background: #f3f4f8;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
}

.role-list__item--highlight {
  background: #1a1d29;
  color: #ffffff;
}

.operator {
  margin: 12px 0 0;
  font-size: 13px;
  color: #4b5568;
}

.tgid {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f3f4f8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tgid button {
  border: none;
  background: #1a1d29;
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}

.api-response {
  margin: 12px 0 0;
  padding: 12px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.collapse-toggle {
  border: 1px solid #d1d7e5;
  background: #ffffff;
  border-radius: 8px;
  color: #1a1d29;
  width: 28px;
  height: 28px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.feature-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.nav-card {
  border: 1px solid #e4e7f2;
  background: #f8f9fd;
  border-radius: 14px;
  color: #1a1d29;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.nav-card p {
  margin: 0;
  color: #5b6577;
  font-size: 13px;
}

.nav-card:hover,
.nav-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(20, 24, 44, 0.12);
  outline: none;
}

.nav-card--disabled,
.nav-card:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.nav-card:disabled h3,
.nav-card:disabled p {
  color: #7b8392;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page__header h2 {
  margin: 0;
  font-size: 20px;
}

.return-button {
  border: 1px solid #d1d7e5;
  background: #ffffff;
  color: #1a1d29;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #4b5568;
}

.form-field input,
.form-field select {
  border: 1px solid #d1d7e5;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #ffffff;
}

.form-field--checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: #1a1d29;
}

.primary-button {
  border: none;
  background: #1a1d29;
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.primary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.secondary-button {
  border: 1px solid #d1d7e5;
  background: #ffffff;
  color: #1a1d29;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.qr-result {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.qr-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-image {
  width: 190px;
  height: 190px;
  border-radius: 12px;
  border: 1px solid #e4e7f2;
  background: #ffffff;
  object-fit: contain;
}

.qr-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #1a1d29;
}

.detail-label {
  font-size: 12px;
  color: #6b7280;
}

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f3f4f8;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  word-break: break-word;
}

.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th,
.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7f2;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #f8f9fd;
  font-weight: 600;
  color: #4b5568;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table__row--selected {
  background: #eef2ff;
}

.data-table__empty {
  margin-top: 8px;
}

.table-action-button {
  border: 1px solid #d1d7e5;
  background: #ffffff;
  color: #1a1d29;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.table-action-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.hidden {
  display: none;
}
.divider { border: 0; border-top: 1px solid #e4e7f2; margin: 4px 0; }
.feature-submit--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
