:root {
  color-scheme: dark;
  --bg: #0b0e14;
  --panel: #141824;
  --panel-2: #1b2130;
  --panel-3: #101523;
  --input: #0f1320;
  --line: #2a3142;
  --line-soft: rgba(108, 140, 255, 0.18);
  --text: #e7eaf0;
  --muted: #9aa3b5;
  --muted-2: #6f7a91;
  --accent: #6c8cff;
  --accent-hover: #86a0ff;
  --accent-2: #9c6cff;
  --success: #38d996;
  --warning: #f3b347;
  --danger: #ff5c7a;
  --technical: #7b8190;
  --pending: #f7fbff;
  --shadow: rgba(0, 0, 0, 0.45);
  --radius: 8px;
  font-family: Inter, "Noto Sans", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 1180px;
  background:
    radial-gradient(circle at 20% -10%, rgba(108, 140, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 92% 10%, rgba(156, 108, 255, 0.09), transparent 32rem),
    var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1d2435, #151b2a);
  color: var(--text);
  border-radius: var(--radius);
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.button-link {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}

button:hover:not(:disabled) {
  border-color: rgba(108, 140, 255, 0.62);
  background: #202945;
}

button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--input);
  color: var(--text);
  border-radius: var(--radius);
  padding: 10px 11px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 140, 255, 0.16);
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 58px 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(220px, 262px) minmax(0, 1fr) max-content;
  gap: 14px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 20, 0.96);
  transition: transform 0.42s ease, opacity 0.42s ease, background 0.2s ease;
  animation: topbarAutoHide 0.42s ease 2.4s forwards;
  will-change: transform;
}

.topbar:hover,
.topbar:focus-within {
  animation: none;
  transform: translateY(0);
  opacity: 1;
}

@keyframes topbarAutoHide {
  to {
    transform: translateY(calc(-100% + 7px));
    opacity: 0.22;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #0e1220;
  border: 1px solid rgba(108, 140, 255, 0.34);
  box-shadow: 0 0 22px rgba(108, 140, 255, 0.22);
}

.brand-mark img,
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 140, 255, 0.45) transparent;
}

.nav::-webkit-scrollbar {
  height: 4px;
}

.nav::-webkit-scrollbar-thumb {
  background: rgba(108, 140, 255, 0.45);
  border-radius: 999px;
}

.nav button {
  flex: 0 0 auto;
  height: 36px;
  background: transparent;
  white-space: nowrap;
  color: #cdd4e4;
}

.nav button.active {
  color: #ffffff;
  border-color: rgba(108, 140, 255, 0.7);
  background: linear-gradient(180deg, rgba(108, 140, 255, 0.32), rgba(108, 140, 255, 0.16));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.counter-pill {
  min-width: 28px;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(156, 108, 255, 0.35);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  justify-self: end;
}

.profile-card {
  height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  width: 182px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 24, 36, 0.88);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.profile-card:hover {
  border-color: rgba(108, 140, 255, 0.62);
  background: rgba(27, 34, 54, 0.92);
}

.profile-card b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.profile select {
  width: 128px;
  flex: 0 0 128px;
}

.auth-open {
  min-width: 138px;
}

.telegram-widget {
  min-width: 178px;
  min-height: 36px;
  display: grid;
  place-items: center;
}

.logout-btn {
  min-width: 86px;
}

.role-badge,
.mini-badge,
.status-badge {
  width: fit-content;
  max-width: 100%;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: #d9dfec;
  background: rgba(31, 38, 57, 0.86);
}

.role-badge.admin {
  border-color: rgba(156, 108, 255, 0.6);
  color: #e9dcff;
  background: rgba(156, 108, 255, 0.24);
}

.ban-badge {
  color: #ffd7de;
  border-color: rgba(255, 92, 122, 0.58);
  background: rgba(255, 92, 122, 0.14);
}

.avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.main {
  min-height: 0;
  min-width: 0;
  padding: 14px 16px 18px;
}

.notice {
  margin-bottom: 12px;
  border: 1px solid rgba(108, 140, 255, 0.42);
  border-radius: var(--radius);
  background: rgba(108, 140, 255, 0.1);
  color: #dce5ff;
  padding: 10px 12px;
}

.page {
  min-height: calc(100vh - 90px);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 112px repeat(3, max-content);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 24, 36, 0.84);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.primary {
  border-color: rgba(108, 140, 255, 0.7);
  background: linear-gradient(180deg, #536ffc, #3b50c9);
  color: #ffffff;
  font-weight: 700;
}

.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #6f88ff, #4a61df);
}

.ghost {
  background: transparent;
}

.danger {
  border-color: rgba(255, 92, 122, 0.7);
  color: #ffd7de;
  background: rgba(255, 92, 122, 0.12);
}

.success {
  border-color: rgba(56, 217, 150, 0.7);
  color: #d9ffee;
  background: rgba(56, 217, 150, 0.12);
}

.checkline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d3d9e8;
  white-space: nowrap;
  font-size: 13px;
}

.checkline input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.table-shell,
.panel,
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 24, 36, 0.88);
}

.table-shell {
  margin-top: 14px;
  overflow: hidden;
}

.table-meta {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(27, 33, 48, 0.78);
}

.table-meta strong {
  font-size: 15px;
}

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.pager button,
.icon-btn {
  width: 34px;
  min-height: 34px;
  padding: 0;
}

.string-table {
  height: calc(100vh - 188px);
  min-height: 520px;
  overflow: auto;
}

.table-head,
.string-row {
  display: grid;
  grid-template-columns: 145px minmax(290px, 1fr) minmax(290px, 1fr) 88px;
  gap: 14px;
  align-items: center;
}

.table-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: #192033;
  border-bottom: 1px solid var(--line);
}

.string-row {
  position: relative;
  min-height: 72px;
  padding: 9px 13px;
  border-bottom: 1px solid rgba(42, 49, 66, 0.72);
  background: rgba(15, 19, 32, 0.4);
}

.string-row:hover {
  background: rgba(27, 35, 55, 0.84);
}

.state {
  min-width: 0;
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 10px;
  align-items: center;
}

.state-line {
  width: 4px;
  height: 50px;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 0 18px rgba(255, 92, 122, 0.48);
}

.state-body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.state-body b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "JetBrains Mono", "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
}

.state-body span {
  font-size: 11px;
}

.ready .state-line {
  background: var(--success);
  box-shadow: 0 0 18px rgba(56, 217, 150, 0.42);
}

.pending .state-line {
  background: var(--pending);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.34);
}

.raw .state-line {
  background: var(--danger);
}

.technical .state-line {
  background: var(--technical);
  box-shadow: 0 0 16px rgba(123, 129, 144, 0.3);
}

.english,
.russian {
  min-width: 0;
  line-height: 1.36;
  max-height: 42px;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.english {
  color: #f2f5ff;
}

.russian {
  color: #dce3f2;
}

.asset-line {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "JetBrains Mono", Consolas, monospace;
}

.edit-button {
  width: 78px;
}

.status-ready {
  color: #b8ffe0;
  border-color: rgba(56, 217, 150, 0.48);
  background: rgba(56, 217, 150, 0.11);
}

.status-pending {
  color: #fff7db;
  border-color: rgba(243, 179, 71, 0.56);
  background: rgba(243, 179, 71, 0.13);
}

.status-raw {
  color: #ffdce3;
  border-color: rgba(255, 92, 122, 0.5);
  background: rgba(255, 92, 122, 0.1);
}

.status-technical {
  color: #dce0eb;
  border-color: rgba(123, 129, 144, 0.56);
  background: rgba(123, 129, 144, 0.16);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  min-height: 100vh;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 5, 10, 0.82);
}

.edit-modal {
  width: min(1180px, calc(100vw - 48px));
  height: min(790px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(600px, 1fr) 360px;
  overflow: hidden;
  border: 1px solid rgba(108, 140, 255, 0.42);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(27, 33, 48, 0.98), rgba(14, 18, 31, 0.98));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 30px 90px var(--shadow),
    0 0 70px rgba(108, 140, 255, 0.12);
}

.auth-modal {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(108, 140, 255, 0.42);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(27, 33, 48, 0.98), rgba(14, 18, 31, 0.98));
  box-shadow:
    0 30px 90px var(--shadow),
    0 0 70px rgba(108, 140, 255, 0.14);
}

.auth-modal h2 {
  margin: 0;
  font-size: 22px;
}

.auth-widget-wrap {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 15, 26, 0.62);
  padding: 14px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  color: var(--muted);
}

.modal-close:hover {
  color: var(--text);
  border-color: rgba(108, 140, 255, 0.6);
}

.modal-main,
.modal-side {
  min-height: 0;
  overflow: auto;
}

.modal-main {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 20px;
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.modal-title strong {
  display: block;
  font-size: 18px;
}

.modal-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-family: "JetBrains Mono", Consolas, monospace;
}

.field-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 19, 32, 0.72);
  padding: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.proposal textarea {
  min-height: 112px;
}

.readonly-area {
  min-height: 112px;
  resize: vertical;
  color: #d7def0;
}

.readonly-area:focus {
  border-color: var(--line);
  box-shadow: none;
}

.comment textarea {
  min-height: 72px;
}

.import-area {
  min-height: 180px;
  font-family: "JetBrains Mono", Consolas, monospace;
}

.token-check {
  border: 1px solid rgba(108, 140, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(108, 140, 255, 0.07);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.token {
  border: 1px solid rgba(243, 179, 71, 0.4);
  border-radius: 7px;
  padding: 6px 8px;
  color: #ffd98f;
  background: rgba(243, 179, 71, 0.1);
  font-size: 12px;
  font-family: "JetBrains Mono", Consolas, monospace;
}

.safe-text {
  color: #a8f5cf;
  font-size: 12px;
}

.warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid rgba(243, 179, 71, 0.52);
  border-radius: var(--radius);
  color: #ffe0a3;
  background: rgba(243, 179, 71, 0.11);
  padding: 10px;
  line-height: 1.38;
}

.upload-box {
  min-height: 72px;
  border: 1px dashed rgba(108, 140, 255, 0.44);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  background: rgba(108, 140, 255, 0.05);
}

.upload-box strong {
  color: #d9e1ff;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-side {
  border-left: 1px solid var(--line);
  background: rgba(13, 17, 29, 0.74);
  display: grid;
  grid-template-rows: 47px 1fr;
}

.side-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.side-tabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.side-tabs button.active {
  color: #fff;
  border-bottom: 2px solid var(--accent);
  background: rgba(108, 140, 255, 0.1);
}

.side-content {
  min-height: 0;
  overflow: auto;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.history-item,
.glossary-item,
.review-card,
.user-row,
.bulk-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 19, 32, 0.72);
}

.history-item,
.glossary-item {
  padding: 10px;
  display: grid;
  gap: 7px;
}

.history-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.history-item p,
.glossary-item p {
  margin: 0;
  line-height: 1.4;
}

.small {
  color: var(--muted);
  font-size: 12px;
}

.section {
  display: grid;
  gap: 14px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 24, 36, 0.88);
}

.section-head h1 {
  margin: 0;
  font-size: 22px;
}

.review-list,
.users-list,
.bulk-preview,
.glossary-grid,
.admin-grid {
  display: grid;
  gap: 12px;
}

.review-card {
  padding: 13px;
  display: grid;
  gap: 12px;
}

.review-meta,
.bulk-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  flex-wrap: wrap;
}

.triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.double {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.review-actions {
  display: flex;
  gap: 8px;
}

.user-row {
  display: grid;
  grid-template-columns: 52px 1fr repeat(4, 130px) 280px;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.rank {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(108, 140, 255, 0.45);
  background: rgba(108, 140, 255, 0.11);
  font-weight: 800;
}

.user-name {
  display: grid;
  gap: 2px;
}

.stat-cell b,
.user-name b {
  display: block;
}

.stat-cell span,
.user-name span {
  color: var(--muted);
  font-size: 12px;
}

.achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bulk-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 330px;
  gap: 14px;
}

.bulk-form,
.bulk-stats {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.bulk-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 130px;
  gap: 10px;
}

.bulk-options {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bulk-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px;
  display: flex;
  justify-content: space-between;
  background: var(--input);
}

.bulk-row {
  padding: 12px;
  display: grid;
  gap: 10px;
  border-color: rgba(56, 217, 150, 0.28);
  background: rgba(56, 217, 150, 0.07);
}

.bulk-row.off {
  opacity: 0.56;
  border-color: var(--line);
}

.import-note {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(243, 179, 71, 0.38);
  background: rgba(243, 179, 71, 0.08);
  color: #ffe5ad;
  border-radius: var(--radius);
  padding: 12px;
}

.empty {
  padding: 18px;
  color: var(--muted);
}

.landing {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 14px 0 56px;
  display: grid;
  gap: 22px;
}

.landing-hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 38px;
  border: 1px solid rgba(108, 140, 255, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(30, 36, 56, 0.94), rgba(18, 22, 36, 0.94)),
    var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.landing-copy {
  display: grid;
  gap: 18px;
}

.eyebrow {
  width: fit-content;
  border: 1px solid rgba(108, 140, 255, 0.35);
  border-radius: 999px;
  padding: 5px 10px;
  color: #c9d4ff;
  background: rgba(108, 140, 255, 0.1);
  font-size: 12px;
  font-weight: 700;
}

.landing h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.02;
  color: #f4f6ff;
}

.landing p {
  margin: 0;
  max-width: 620px;
  color: #c5cde0;
  line-height: 1.6;
}

.landing-actions,
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-auth {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.faq-teaser {
  min-height: 300px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(156, 108, 255, 0.38);
  border-radius: var(--radius);
  background: rgba(12, 16, 28, 0.72);
}

.faq-teaser-title {
  font-size: clamp(56px, 10vw, 104px);
  line-height: 0.92;
  font-weight: 900;
  color: #a98cff;
}

.faq-teaser-list {
  display: grid;
  gap: 8px;
}

.faq-teaser-list button,
.faq-item button {
  width: 100%;
  justify-content: space-between;
  text-align: left;
}

.landing-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landing-stats div,
.faq-item,
.profile-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 24, 36, 0.88);
}

.landing-stats div {
  padding: 16px;
  display: grid;
  gap: 3px;
}

.landing-stats b {
  font-size: 26px;
}

.landing-stats span {
  color: var(--muted);
}

.faq-section {
  display: grid;
  gap: 12px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
}

.faq-item button {
  min-height: 58px;
  border: 0;
  border-radius: 0;
  padding: 0 18px;
  background: transparent;
  font-weight: 800;
}

.faq-item.open {
  border-color: rgba(156, 108, 255, 0.58);
  background: rgba(31, 21, 55, 0.72);
}

.faq-answer {
  min-height: 54px;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.55;
}

.faq-answer a {
  color: #c9d4ff;
  font-weight: 800;
}

.landing-disclaimer {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  padding: 8px 12px 0;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 360px;
  gap: 14px;
}

.profile-panel {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.profile-panel h2 {
  margin: 0;
  font-size: 18px;
}

@media (max-width: 1280px) {
  body {
    min-width: 0;
  }

  .topbar {
    grid-template-columns: 230px 1fr auto;
  }

  .nav button span.label {
    display: none;
  }

  .toolbar {
    grid-template-columns: minmax(220px, 1fr) 104px;
  }

  .toolbar .checkline,
  .toolbar .ghost {
    justify-self: start;
  }

  .table-head,
  .string-row {
    grid-template-columns: 132px minmax(240px, 1fr) minmax(240px, 1fr) 82px;
  }
}

@media (max-width: 980px) {
  body {
    min-width: 0;
  }

  .shell {
    grid-template-rows: auto 1fr;
  }

  .topbar,
  .toolbar,
  .bulk-layout,
  .edit-modal,
  .landing-hero,
  .landing-stats,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
    min-height: auto;
    padding: 12px;
    animation: none;
    transform: none;
    opacity: 1;
  }

  .nav {
    flex-wrap: wrap;
  }

  .profile {
    justify-content: space-between;
  }

  .toolbar {
    align-items: stretch;
  }

  .table-head {
    display: none;
  }

  .string-table {
    height: auto;
    min-height: 0;
  }

  .string-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .state,
  .english,
  .russian,
  .asset-line {
    grid-column: 1 / 3;
  }

  .edit-button {
    grid-column: 2;
    grid-row: 1;
  }

  .modal-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .triple,
  .double,
  .modal-grid,
  .user-row,
  .bulk-fields {
    grid-template-columns: 1fr;
  }
}
