:root {
  --bg: #eef3f2;
  --panel: #ffffff;
  --panel-muted: #f8fbfa;
  --text: #20272b;
  --muted: #66757d;
  --line: #d8e0df;
  --accent: #246b68;
  --accent-strong: #174f4c;
  --warn: #a45a3d;
  --warn-soft: #fff4e8;
  --soft-accent: #e6f1ef;
  --focus: rgba(36, 107, 104, 0.22);
  --shadow: 0 12px 28px rgba(31, 45, 47, 0.08);
  --shadow-soft: 0 8px 18px rgba(31, 45, 47, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f8fbfa 0, var(--bg) 260px),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 48px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.2;
}

h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.phase-badge,
.secondary-action,
.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--panel);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.primary-link {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.primary-link:hover {
  background: var(--accent-strong);
}

.alert {
  margin-bottom: 16px;
  border: 1px solid #e0a98f;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff3ed;
  color: #7d3f28;
  font-weight: 700;
}

.warning-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border: 1px solid #d79c73;
  border-radius: 8px;
  padding: 15px 16px;
  background: var(--warn-soft);
  color: #74380f;
  box-shadow: var(--shadow-soft);
}

.info-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border: 1px solid #b9cfcb;
  border-radius: 8px;
  padding: 15px 16px;
  background: #edf8f5;
  color: var(--accent-strong);
  box-shadow: var(--shadow-soft);
}

.warning-strip strong,
.warning-strip span,
.info-strip strong,
.info-strip span {
  display: block;
}

.warning-strip span,
.info-strip span {
  font-size: 13px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.overview-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.overview-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.overview-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-strong);
  font-size: 16px;
}

.overview-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.form-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.form-section {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.form-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #26353a;
}

.form-section h2::before {
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

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

.section-context {
  display: grid;
  grid-template-columns: minmax(120px, 0.22fr) minmax(0, 1fr);
  gap: 10px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #f7fbfa;
  color: var(--muted);
  font-size: 13px;
}

.section-context strong {
  color: #26353a;
}

.storage-cabin-guide {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid #cfe0de;
  border-radius: 8px;
  padding: 14px;
  background: #f7fbfa;
}

.storage-cabin-photo {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.storage-cabin-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storage-cabin-copy {
  align-self: center;
}

.storage-cabin-copy strong {
  display: block;
  margin-bottom: 8px;
  color: #26353a;
  font-size: 15px;
}

.storage-cabin-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.storage-models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.storage-models span {
  border: 1px solid #bdd4d1;
  border-radius: 999px;
  padding: 6px 9px;
  background: #fff;
  color: #31575a;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.storage-cabin-field-grid {
  align-items: start;
}

.storage-cabin-field-grid .field {
  min-height: 116px;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field > span:first-child {
  color: #344248;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid #c9d4d3;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--focus);
  border-color: var(--accent);
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
}

small,
.form-hint,
.card-note {
  color: var(--muted);
  font-size: 12px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.tab-button {
  display: inline-flex;
  min-width: 180px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 9px 14px 10px;
  background: #edf2f1;
  color: #344248;
  text-align: left;
}

.tab-button span {
  font-size: 14px;
  font-weight: 700;
}

.tab-button small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.tab-button.active {
  background: var(--panel);
  color: var(--accent-strong);
}

.tabs-note {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.tab-panel {
  display: none;
}

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

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

.card {
  margin-bottom: 16px;
  padding: 18px;
}

.card h2 {
  color: #26353a;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  border-top: 1px solid var(--line);
  padding: 9px 0;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

tr:first-child th,
tr:first-child td {
  border-top: 0;
}

th {
  width: 48%;
  color: var(--muted);
  font-weight: 600;
}

td {
  font-weight: 700;
}

.strong-number {
  color: var(--warn);
  font-size: 20px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.metric-row-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-row-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--soft-accent);
  box-shadow: var(--shadow-soft);
}

.result-key-metrics .metric {
  background: linear-gradient(180deg, #ffffff 0, #edf8f5 100%);
}

.metric span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric strong {
  color: var(--accent-strong);
  font-size: 23px;
  line-height: 1.2;
}

.notes {
  margin: 0;
  padding-left: 18px;
}

.notes li {
  margin-bottom: 8px;
}

.card-note {
  margin-bottom: 12px;
}

.export-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.export-strip strong,
.export-strip span {
  display: block;
}

.export-strip span {
  color: var(--muted);
  font-size: 13px;
}

.export-actions,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.export-actions a {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.export-actions a:hover {
  border-color: var(--accent);
}

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

.history-table {
  min-width: 1580px;
}

.history-table th,
.history-table td {
  width: auto;
  padding-right: 16px;
}

.table-action {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.table-action:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.storage-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.storage-badge-new {
  border: 1px solid #9ac4bd;
  background: #edf8f5;
  color: #174f4c;
}

.storage-badge-legacy {
  border: 1px solid #e0b58d;
  background: #fff3e7;
  color: #7d3f28;
}

.storage-badge-neutral {
  border: 1px solid var(--line);
  background: #f7f9f8;
  color: var(--muted);
}

.status-note {
  display: block;
  margin-top: 5px;
}

.empty-state {
  max-width: 560px;
}

.login-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(36, 107, 104, 0.12) 0, rgba(238, 243, 242, 0.3) 34%),
    var(--bg);
}

.login-shell {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 28px;
  align-items: center;
  padding: 42px 0;
}

.login-hero h1 {
  max-width: 680px;
  margin-bottom: 14px;
  font-size: 42px;
}

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

.advantage-item,
.login-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.advantage-item {
  padding: 18px;
}

.advantage-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--soft-accent);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.advantage-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 17px;
}

.advantage-item p,
.login-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.login-panel {
  display: grid;
  gap: 16px;
}

.login-card {
  padding: 22px;
}

.login-primary {
  margin-top: 16px;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.brand-login-body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(4, 14, 24, 0.9) 0, rgba(4, 18, 25, 0.62) 44%, rgba(5, 34, 31, 0.3) 100%),
    url("/static/login_scene.svg") center / cover no-repeat,
    #071723;
  color: #e9fffb;
}

.brand-login-body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 19, 30, 0.28) 0, rgba(8, 19, 30, 0.08) 42%, rgba(8, 19, 30, 0.72) 100%),
    radial-gradient(circle at 74% 50%, rgba(99, 255, 224, 0.18), transparent 32%);
  content: "";
}

.brand-login-body .login-shell {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 56px));
  grid-template-columns: minmax(0, 1fr) minmax(390px, 430px);
  gap: 34px;
  align-items: stretch;
  padding: 48px 0;
}

.brand-login-body .login-hero {
  display: flex;
  min-height: calc(100vh - 96px);
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 10px 0;
}

.brand-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
}

.brand-links {
  display: flex;
  width: fit-content;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(143, 255, 236, 0.28);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(5, 24, 34, 0.46);
  color: #e9fffb;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.brand-links a:hover {
  border-color: rgba(143, 255, 236, 0.64);
  color: #a4fff1;
}

.brand-logo-lockup strong,
.brand-logo-lockup small {
  display: block;
}

.brand-logo-lockup strong {
  color: #e9fffb;
  font-size: 29px;
  line-height: 1;
}

.brand-logo-lockup small {
  margin-top: 7px;
  color: #91fff1;
  font-size: 13px;
  font-weight: 700;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 72px;
  height: 72px;
}

.brand-mark::after {
  position: absolute;
  inset: 21px;
  border: 1px solid rgba(137, 255, 240, 0.24);
  border-radius: 50%;
  content: "";
}

.brand-mark i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #70fff0;
  box-shadow: 0 0 11px rgba(103, 255, 232, 0.84);
}

.brand-mark i:nth-child(1) { transform: rotate(0deg) translateX(31px); opacity: 0.26; }
.brand-mark i:nth-child(2) { transform: rotate(16deg) translateX(31px); opacity: 0.34; }
.brand-mark i:nth-child(3) { transform: rotate(32deg) translateX(31px); opacity: 0.44; }
.brand-mark i:nth-child(4) { transform: rotate(49deg) translateX(31px); opacity: 0.54; }
.brand-mark i:nth-child(5) { transform: rotate(65deg) translateX(31px); opacity: 0.66; }
.brand-mark i:nth-child(6) { transform: rotate(82deg) translateX(31px); opacity: 0.78; }
.brand-mark i:nth-child(7) { transform: rotate(98deg) translateX(31px); opacity: 0.9; }
.brand-mark i:nth-child(8) { transform: rotate(115deg) translateX(31px); opacity: 1; }
.brand-mark i:nth-child(9) { transform: rotate(131deg) translateX(31px); opacity: 0.94; }
.brand-mark i:nth-child(10) { transform: rotate(147deg) translateX(31px); opacity: 0.86; }
.brand-mark i:nth-child(11) { transform: rotate(164deg) translateX(31px); opacity: 0.78; }
.brand-mark i:nth-child(12) { transform: rotate(180deg) translateX(31px); opacity: 0.68; }
.brand-mark i:nth-child(13) { transform: rotate(196deg) translateX(31px); opacity: 0.58; }
.brand-mark i:nth-child(14) { transform: rotate(213deg) translateX(31px); opacity: 0.5; }
.brand-mark i:nth-child(15) { transform: rotate(229deg) translateX(31px); opacity: 0.44; }
.brand-mark i:nth-child(16) { transform: rotate(245deg) translateX(31px); opacity: 0.4; }
.brand-mark i:nth-child(17) { transform: rotate(262deg) translateX(31px); opacity: 0.42; }
.brand-mark i:nth-child(18) { transform: rotate(278deg) translateX(31px); opacity: 0.48; }
.brand-mark i:nth-child(19) { transform: rotate(295deg) translateX(31px); opacity: 0.58; }
.brand-mark i:nth-child(20) { transform: rotate(311deg) translateX(31px); opacity: 0.48; }
.brand-mark i:nth-child(21) { transform: rotate(327deg) translateX(31px); opacity: 0.38; }
.brand-mark i:nth-child(22) { transform: rotate(344deg) translateX(31px); opacity: 0.3; }

.login-copy {
  max-width: 780px;
}

.login-copy .material-panel {
  margin-top: 24px;
}

.login-kicker {
  margin-bottom: 12px;
  color: #7fffee;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-login-body .login-hero h1 {
  max-width: 760px;
  margin-bottom: 0;
  color: #f6fffd;
  font-size: 50px;
  line-height: 1.08;
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.42);
}

.brand-proof-row {
  display: flex;
  max-width: 860px;
  flex-wrap: wrap;
  gap: 12px;
}

.proof-badge {
  display: flex;
  min-height: 70px;
  min-width: 168px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(143, 255, 236, 0.3);
  border-radius: 8px;
  padding: 11px 14px;
  background: rgba(5, 24, 34, 0.58);
  color: #e9fffb;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.proof-badge-round {
  align-items: center;
  border-radius: 999px;
  aspect-ratio: 1;
  min-width: 92px;
  min-height: 92px;
  text-align: center;
}

.proof-badge-wide {
  min-width: min(340px, 100%);
  background: rgba(7, 35, 74, 0.68);
}

.proof-badge strong,
.proof-badge span {
  display: block;
}

.proof-badge strong {
  color: #f6fffd;
  font-size: 14px;
  line-height: 1.25;
}

.proof-badge span {
  margin-top: 4px;
  color: rgba(184, 255, 246, 0.78);
  font-size: 11px;
}

.material-panel {
  display: grid;
  max-width: 860px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(143, 255, 236, 0.28);
  border-radius: 8px;
  background: rgba(143, 255, 236, 0.18);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.material-panel > div {
  min-height: 126px;
  padding: 18px;
  background: rgba(4, 18, 25, 0.68);
}

.material-panel span {
  display: block;
  margin-bottom: 10px;
  color: #78fbe8;
  font-size: 12px;
  font-weight: 900;
}

.material-panel strong {
  display: block;
  margin-bottom: 7px;
  color: #f6fffd;
  font-size: 16px;
}

.material-panel p {
  margin: 0;
  color: rgba(221, 255, 250, 0.72);
  font-size: 13px;
}

.brand-login-body .login-panel {
  align-self: center;
  gap: 14px;
}

.brand-login-body .login-card {
  border-color: rgba(164, 255, 240, 0.24);
  background: rgba(5, 20, 28, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.brand-login-body .login-card h2 {
  color: #f6fffd;
  font-size: 22px;
}

.brand-login-body .login-card p,
.brand-login-body .card-note {
  color: rgba(221, 255, 250, 0.72);
}

.login-card-label {
  margin-bottom: 8px;
  color: #7fffee !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-login-body .field > span:first-child {
  color: rgba(231, 255, 251, 0.9);
}

.brand-login-body input,
.brand-login-body select,
.brand-login-body textarea {
  border-color: rgba(163, 255, 241, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #f6fffd;
}

.brand-login-body input:focus {
  outline-color: rgba(111, 255, 233, 0.34);
  border-color: rgba(111, 255, 233, 0.7);
}

.brand-login-body button,
.brand-login-body .login-primary {
  background: #64ffe5;
  color: #052228;
  box-shadow: 0 14px 34px rgba(60, 255, 222, 0.18);
}

.brand-login-body button:hover,
.brand-login-body .login-primary:hover {
  background: #a4fff1;
  color: #052228;
}

.login-boundary {
  margin: 0;
  color: rgba(221, 255, 250, 0.6);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1100px) {
  .metric-row-four,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .brand-login-body .login-shell {
    grid-template-columns: 1fr;
  }

  .brand-login-body .login-hero {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .field-grid,
  .card-grid,
  .metric-row,
  .overview-grid,
  .storage-cabin-guide {
    grid-template-columns: 1fr;
  }

  .page-header,
  .header-actions,
  .export-strip,
  .info-strip,
  .warning-strip,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .section-context {
    grid-template-columns: 1fr;
  }

  .tabs {
    flex-wrap: wrap;
    border-bottom: 0;
  }

  .tab-button {
    min-width: 0;
    flex: 1 1 220px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .material-panel {
    grid-template-columns: 1fr;
  }

  .brand-login-body {
    background:
      linear-gradient(180deg, rgba(5, 18, 26, 0.9) 0, rgba(7, 30, 34, 0.82) 100%),
      url("/static/login_scene.svg") center / cover no-repeat,
      #071723;
  }

  .brand-login-body .login-shell {
    width: min(100% - 32px, 760px);
    gap: 16px;
    padding: 26px 0 34px;
  }

  .brand-login-body .login-hero {
    gap: 14px;
  }

  .brand-login-body .login-hero h1 {
    max-width: 680px;
    font-size: 34px;
    line-height: 1.16;
  }

  .login-copy .material-panel,
  .brand-proof-row {
    display: none;
  }

  .login-kicker {
    margin-bottom: 8px;
  }

  .brand-login-body .login-panel {
    width: min(100%, 520px);
    gap: 12px;
  }

  .brand-login-body .login-card {
    padding: 18px 22px;
  }

  .brand-login-body .login-card h2 {
    margin-bottom: 10px;
    font-size: 21px;
  }

  .login-primary {
    margin-top: 12px;
  }

  .login-form {
    gap: 10px;
    margin-top: 12px;
  }

  .brand-login-body input {
    min-height: 34px;
    padding: 6px 9px;
  }

  .brand-login-body button,
  .brand-login-body .login-primary {
    min-height: 36px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1240px);
    padding-top: 18px;
  }

  h1 {
    font-size: 24px;
  }

  .form-section,
  .card,
  .overview-item,
  .login-card,
  .advantage-item {
    padding: 14px;
  }

  .login-shell {
    width: min(100% - 24px, 1180px);
    padding: 22px 0;
  }

  .login-hero h1 {
    font-size: 30px;
  }

  .brand-login-body .login-shell {
    width: min(100% - 24px, 1320px);
    padding: 20px 0 28px;
  }

  .brand-links {
    gap: 8px;
  }

  .brand-links a {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .brand-logo-lockup strong {
    font-size: 22px;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
  }

  .brand-mark i {
    transform-origin: 3.5px 3.5px;
  }

  .brand-login-body .login-hero h1 {
    font-size: 28px;
    line-height: 1.18;
  }

  .brand-proof-row,
  .proof-badge,
  .proof-badge-wide {
    width: 100%;
  }

  .proof-badge-round {
    width: 100px;
  }
}
