:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #64716d;
  --line: #dfe6e1;
  --panel: #ffffff;
  --page: #f4f7f5;
  --green: #1f7a5d;
  --green-dark: #145441;
  --amber: #c77918;
  --blue: #276f9f;
  --red: #bd4b45;
  --soft-green: #e6f2ed;
  --soft-amber: #fff3df;
  --soft-blue: #e8f2f8;
  --soft-red: #fdeceb;
  --shadow: 0 16px 40px rgba(34, 50, 45, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family:
    Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.login-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  padding: 56px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 45, 37, 0.92), rgba(31, 122, 93, 0.68)),
    url("https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.login-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
}

.login-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.7;
}

.login-panel {
  align-self: center;
  width: min(440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-panel h2 {
  margin: 0 0 20px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf2ef;
}

.auth-tabs button,
.demo-logins button {
  border: 0;
  border-radius: 6px;
  padding: 9px 8px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.auth-tabs button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 40, 34, 0.08);
}

.demo-logins {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.demo-logins button {
  color: var(--green-dark);
  background: var(--soft-green);
}

.auth-notice,
.auth-action-box {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.auth-notice {
  border: 1px solid #a9d2c1;
  color: var(--green-dark);
  background: var(--soft-green);
}

.auth-action-box {
  display: grid;
  gap: 6px;
  border: 1px dashed #a9d2c1;
  background: #fff;
}

.auth-action-box a {
  overflow-wrap: anywhere;
  color: var(--green-dark);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--green-dark);
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

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

.nav-tabs,
.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #edf2ef;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tab-button,
.segmented button {
  border: 0;
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}

.tab-button.active,
.segmented button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 40, 34, 0.08);
}

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

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

.primary-action,
.secondary-action,
.ghost-action,
.danger-action,
.icon-button,
.plans button,
.action-list button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
}

.primary-action {
  color: #fff;
  background: var(--green);
}

.secondary-action,
.plans button,
.action-list button {
  color: var(--green-dark);
  background: var(--soft-green);
}

.ghost-action {
  color: var(--muted);
  background: #eef1ef;
}

.danger-action {
  color: #fff;
  background: var(--red);
}

.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  color: #fff;
  background: var(--green);
  font-size: 22px;
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 26px;
  align-items: stretch;
  padding: 34px;
  min-height: 300px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11, 44, 37, 0.9), rgba(31, 122, 93, 0.72)),
    url("https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

h2 {
  font-size: 22px;
}

h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.hero-copy {
  max-width: 780px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.75;
}

.hero-metrics {
  display: grid;
  gap: 12px;
  align-self: end;
}

.hero-metrics div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.hero-metrics span,
.hero-metrics strong,
.hero-metrics small {
  display: block;
}

.hero-metrics span,
.hero-metrics small {
  color: rgba(255, 255, 255, 0.74);
}

.hero-metrics strong {
  margin: 6px 0;
  font-size: 24px;
}

.view-panel {
  display: none;
  margin-top: 24px;
}

.view-panel.active {
  display: block;
}

.layout-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
}

.side-panel,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.side-panel {
  padding: 16px;
  align-self: start;
}

.content-stack {
  display: grid;
  gap: 20px;
}

.panel {
  padding: 20px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.panel-heading.compact {
  margin-bottom: 12px;
}

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

.case-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  width: 100%;
  padding: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
}

.case-open {
  min-width: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.case-item.active {
  background: var(--soft-green);
  border-color: #b7d8ca;
}

.case-delete {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #8c2c28;
  background: transparent;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.case-delete:hover,
.case-delete:focus-visible {
  border-color: #efc5c1;
  background: var(--soft-red);
}

.case-open span,
.case-open strong,
.case-open small {
  display: block;
}

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

.case-open strong {
  margin: 4px 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0c5780;
  background: var(--soft-blue);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.attention {
  color: #814700;
  background: var(--soft-amber);
}

.status-pill.success {
  color: var(--green-dark);
  background: var(--soft-green);
}

.status-pill.danger {
  color: #8c2c28;
  background: var(--soft-red);
}

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

.step {
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
}

.step span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 999px;
  color: var(--muted);
  background: #e8eeeb;
  font-weight: 800;
}

.step strong,
.step small {
  display: block;
}

.step small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.step.done {
  border-color: #aad0c0;
  background: var(--soft-green);
}

.step.active {
  border-color: #e1b66c;
  background: var(--soft-amber);
}

.step.done span,
.step.active span {
  color: #fff;
  background: var(--green);
}

.step.active span {
  background: var(--amber);
}

.client-alert {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #e1b66c;
  border-radius: 8px;
  background: var(--soft-amber);
}

.client-alert strong {
  display: block;
}

.client-alert ul {
  margin: 0;
  padding-left: 20px;
}

.client-alert li {
  margin: 6px 0;
  line-height: 1.45;
}

.info-grid,
.split-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.split-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-top: 0;
}

.metric-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric-card span,
.metric-card strong,
.metric-card small {
  display: block;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  margin: 6px 0;
  font-size: 26px;
}

.meter {
  height: 8px;
  overflow: hidden;
  background: #e7ece9;
  border-radius: 999px;
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
}

form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.form-grid,
.broker-form,
.tax-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.span-2,
.broker-form label:nth-last-child(-n + 5) {
  grid-column: 1 / -1;
}

.translation-workbench {
  display: grid;
  gap: 14px;
  margin-top: 6px;
  padding: 16px;
  border: 1px solid #b8d5c8;
  border-radius: 8px;
  background: #f7fbf9;
}

.translation-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

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

.translation-heading h3 {
  margin: 4px 0 0;
}

.translation-pairs {
  display: grid;
  gap: 12px;
}

.translation-pair {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.source-box {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 74px;
  padding: 12px;
  border: 1px solid #d8e7df;
  border-radius: 8px;
  background: var(--soft-green);
}

.source-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.source-box p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  white-space: pre-wrap;
}

.source-box p.empty {
  color: var(--muted);
}

.free-translate-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed #a9d2c1;
  border-radius: 8px;
  background: #ffffff;
}

.free-translate-panel strong,
.free-translate-panel span {
  display: block;
}

.free-translate-panel span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.free-translate-panel textarea {
  min-height: 112px;
  background: #fbfdfc;
}

.free-translate-panel button {
  justify-self: start;
}

.auto-translate-bar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #a9d2c1;
  border-radius: 8px;
  background: var(--soft-green);
}

.auto-translate-bar strong,
.auto-translate-bar span {
  display: block;
}

.auto-translate-bar span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.tax-summary {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.client-tax-card {
  display: grid;
  gap: 12px;
}

.client-tax-total {
  padding: 18px;
  border: 1px solid #a9d2c1;
  border-radius: 8px;
  background: var(--soft-green);
}

.client-tax-total span,
.client-tax-total strong,
.client-tax-total small {
  display: block;
}

.client-tax-total span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.client-tax-total strong {
  margin-top: 6px;
  font-size: 30px;
}

.client-tax-total small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

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

.client-tax-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.client-tax-list span,
.client-tax-list strong {
  display: block;
}

.client-tax-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.client-tax-list strong {
  margin-top: 6px;
}

.client-report {
  display: grid;
  gap: 14px;
}

.report-empty {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed #a9d2c1;
  border-radius: 8px;
  background: #f7fbf9;
}

.report-empty span {
  color: var(--muted);
  line-height: 1.6;
}

.report-header,
.report-grid,
.report-tax-strip {
  display: grid;
  gap: 12px;
}

.report-header {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-tax-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-header div,
.report-section,
.report-tax-strip div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.report-section.highlight {
  border-color: #a9d2c1;
  background: var(--soft-green);
}

.report-header span,
.report-header strong,
.report-section span,
.report-section strong,
.report-section p,
.report-tax-strip span,
.report-tax-strip strong {
  display: block;
}

.report-header span,
.report-section span,
.report-tax-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.report-header strong,
.report-section strong,
.report-tax-strip strong {
  margin-top: 6px;
}

.report-section p {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.7;
  white-space: pre-wrap;
}

.tax-total,
.tax-breakdown {
  display: grid;
  gap: 12px;
}

.tax-total {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tax-breakdown {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tax-total div,
.tax-breakdown div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tax-total span,
.tax-total strong,
.tax-breakdown span,
.tax-breakdown strong {
  display: block;
}

.tax-total span,
.tax-breakdown span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tax-total strong {
  margin-top: 6px;
  font-size: 24px;
}

.tax-breakdown strong {
  margin-top: 6px;
  font-size: 16px;
}

.tax-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px 16px 16px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--ink);
  line-height: 1.6;
}

.stack-form,
.upload-card {
  display: grid;
  gap: 12px;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.missing-list,
.document-list,
.mail-list,
.result-card {
  display: grid;
  gap: 10px;
}

.missing-item,
.document-item,
.mail-item,
.result-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.document-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.document-meta {
  min-width: 0;
}

.document-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.document-open,
.document-delete {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.document-open {
  border: 1px solid #a9d2c1;
  color: var(--green-dark);
  background: var(--soft-green);
}

.document-delete {
  border: 1px solid #efc5c1;
  color: #8c2c28;
  background: var(--soft-red);
  cursor: pointer;
}

.document-open:hover,
.document-open:focus-visible {
  border-color: #78b89d;
  background: #d7eee4;
}

.document-delete:hover,
.document-delete:focus-visible {
  border-color: #d98a82;
  background: #f8d9d5;
}

.missing-item.open {
  border-color: #e4bd7a;
  background: var(--soft-amber);
}

.missing-item.resolved {
  border-color: #a9d2c1;
  background: var(--soft-green);
}

.missing-item strong,
.missing-item span,
.document-item strong,
.document-item span,
.mail-item strong,
.mail-item span,
.result-item strong,
.result-item span {
  display: block;
}

.missing-item span,
.document-item span,
.mail-item span,
.result-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.mail-item p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.plans article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plans article.featured {
  border-color: #95c8b3;
  background: var(--soft-green);
}

.plans article.active {
  outline: 3px solid rgba(31, 122, 93, 0.18);
}

.plans span,
.plans strong {
  display: block;
}

.plans strong {
  margin: 8px 0;
  font-size: 30px;
}

.plans p {
  min-height: 52px;
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  gap: 20px;
}

.broker-case-queue {
  display: grid;
  gap: 10px;
}

.broker-queue-item {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-left: 5px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.broker-queue-item.active {
  border-color: #8fc8ae;
  border-left-color: var(--green);
  background: var(--soft-green);
}

.broker-queue-item.ready {
  border-left-color: var(--blue);
}

.broker-queue-item.overdue {
  border-left-color: var(--red);
  background: var(--soft-red);
}

.broker-queue-item.done {
  opacity: 0.76;
}

.broker-queue-top,
.broker-queue-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.broker-queue-title {
  font-weight: 900;
}

.broker-queue-meta {
  justify-content: flex-start;
}

.broker-queue-meta b {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #eef1ef;
  font-size: 12px;
}

.broker-queue-empty {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

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

table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 13px;
}

tr.case-row {
  cursor: pointer;
}

tr.case-row.active {
  background: var(--soft-green);
}

.user-admin-table {
  min-width: 1120px;
}

.user-admin-table td {
  vertical-align: top;
}

.user-admin-table td:first-child strong,
.user-admin-table td:first-child span {
  display: block;
}

.user-admin-table td:first-child span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.user-admin-table input,
.user-admin-table select {
  width: 100%;
  min-width: 140px;
}

.user-admin-table .status-pill {
  margin-bottom: 8px;
}

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

.row-actions button {
  padding: 8px 10px;
  white-space: nowrap;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: 420px;
  padding: 14px 16px;
  color: #fff;
  background: var(--green-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
  .topbar,
  .hero-band,
  .layout-grid,
  .dashboard-grid,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-hero {
    min-height: 420px;
  }

  .nav-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .progress-steps,
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tax-total,
  .tax-breakdown,
  .client-tax-list,
  .report-header,
  .report-grid,
  .report-tax-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar,
  main {
    padding: 14px;
  }

  .hero-band,
  .login-hero {
    padding: 22px;
  }

  h1 {
    font-size: 34px;
  }

  .progress-steps,
  .info-grid,
    .split-grid,
    .plans,
    .form-grid,
    .tax-form,
    .tax-total,
    .tax-breakdown,
    .client-tax-list,
    .report-header,
    .report-grid,
    .report-tax-strip,
    .translation-pair,
    .broker-form {
    grid-template-columns: 1fr;
  }

  .broker-queue-top,
  .broker-queue-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-heading,
  .top-actions,
  .ops-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .ghost-action,
  .danger-action,
  .auto-translate-bar button {
    width: 100%;
  }

  .auto-translate-bar {
    align-items: stretch;
    flex-direction: column;
  }
}
