:root {
  --outside: #ffffff;
  --black: #ffffff;
  --card: #f7f9fc;
  --card2: #ffffff;
  --line: #f7f9fc;
  --white: #203348;
  --muted: #718196;
  --lime: #255dcc;
  --orange: #465a70;
  --font: "DM Sans", "Noto Sans SC", sans-serif;
  --display: "Barlow Condensed", "Noto Sans SC", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--white);
  font: 14px var(--font);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
button {
  color: inherit;
}
input,
select,
textarea {
  color: var(--white);
  background: #ffffff;
  border: 1px solid #e2e8ee;
  border-radius: 11px;
  padding: 12px 14px;
  width: 100%;
  min-width: 0;
  font-size: 13px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px #255dcc20;
}
input::placeholder {
  color: #718196;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--lime);
}
input[type="file"] {
  max-width: 240px;
  padding: 10px;
  font-size: 11px;
}
select {
  color-scheme: dark;
}
label {
  display: block;
  color: #465a70;
  font-size: 12px;
  margin: 18px 0;
}
label input,
label textarea,
label select {
  display: block;
  margin-top: 9px;
}
.help {
  display: block;
  color: var(--muted);
  line-height: 1.6;
  font-size: 11px;
  margin-top: 8px;
}
.help ul {
  padding-left: 15px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1.3px;
}
.brand svg {
  width: 39px;
  height: 39px;
}
.brand-dot {
  color: var(--lime);
}
.brand.small {
  font-size: 20px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}
.language {
  display: flex;
  gap: 1px;
  border: 1px solid #f7f9fc;
  border-radius: 30px;
  padding: 3px;
}
.language button {
  border: 0;
  background: transparent;
  font-size: 10px;
  border-radius: 20px;
  padding: 7px 8px;
  color: var(--muted);
}
.language button.selected {
  background: #e2e8ee;
  color: var(--lime);
}
.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 0 5px #ffffff;
}
.btn {
  border: 1px solid #e2e8ee;
  background: #f7f9fc;
  border-radius: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 13px 21px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 0.15s,
    background 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  background: #e2e8ee;
}
.btn.lime {
  background: var(--lime);
  border-color: var(--lime);
  color: #ffffff;
}
.btn.lime:hover {
  background: #255dcc;
}
.btn.orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #ffffff;
}
.btn.large {
  padding: 17px 25px;
}
.btn.compact {
  font-size: 10px;
  padding: 10px 15px;
}
.btn.full {
  width: 100%;
  margin-top: 22px;
}
.text-link {
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  color: #203348;
}
.text-link:hover {
  color: var(--lime);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
}
h1 {
  font-size: 42px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
h2 {
  font-size: 23px;
  text-transform: uppercase;
}
h3 {
  font-size: 27px;
}
p {
  line-height: 1.8;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: #465a70;
  font-weight: 600;
}
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.lime-text {
  color: var(--lime);
}
.lime-dot,
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
}
.status-dot {
  box-shadow: 0 0 0 4px #255dcc15;
  margin-right: 10px;
}
.coordinate {
  position: absolute;
  bottom: 10px;
  left: 18%;
  font-size: 8px;
  color: #718196;
  letter-spacing: 1px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.section-heading h2 {
  font-size: 40px;
  margin-top: 14px;
  max-width: 550px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 35px;
  margin-top: 22px;
  border-top: 1px solid #f7f9fc;
  font-size: 10px;
  color: #718196;
}
footer .brand {
  color: #465a70;
}
footer > a:last-child {
  font-size: 9px;
}
.workspace-shell {
  display: flex;
}
.rail {
  width: 88px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 13px;
  padding-top: 35px;
  padding-bottom: 20px;
}
.rail-bottom {
  margin-top: auto;
  padding-top: 55px;
}
.rail-icon.plus {
  font-size: 28px;
}
.workspace-content {
  padding: 25px 34px 25px 0;
  min-width: 0;
  flex: 1;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}
.page-heading h1 {
  font-size: 37px;
  margin: 11px 0;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  max-width: 650px;
}
.heading-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.panel {
  background: var(--card);
  border-radius: 21px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid #f7f9fc;
}
.panel-heading {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.panel-heading h2 {
  font-size: 21px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
th {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.7px;
  color: #718196;
  padding: 13px 24px;
  border-bottom: 1px solid #e2e8ee;
  background: #ffffff;
}
td {
  padding: 20px 24px;
  border-bottom: 1px solid #f7f9fc;
  color: #203348;
}
tr:last-child td {
  border-bottom: 0;
}
td small {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  color: #718196;
}
td strong {
  font-weight: 500;
}
.value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #203348;
}
.quote-square {
  width: 37px;
  height: 37px;
  border: 1px solid #e2e8ee;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #465a70;
  background: #f7f9fc;
  font-size: 19px;
  flex-shrink: 0;
}
.badge {
  display: inline-block;
  border-radius: 20px;
  font-size: 9px;
  padding: 6px 11px;
  color: #203348;
  background: #e2e8ee;
  white-space: nowrap;
}
.badge.submitted,
.badge.requested {
  color: #465a70;
  background: #e2e8ee;
}
.badge.approved,
.badge.accepted {
  color: #203348;
  background: #e2e8ee;
}
.badge.in_transit {
  color: #203348;
  background: #f7f9fc;
}
.badge.changes {
  color: #465a70;
  background: #f7f9fc;
}
.badge.delivered {
  background: #e2e8ee;
  color: #465a70;
}
.search-form {
  display: flex;
  gap: 7px;
}
.search-form input {
  max-width: 180px;
  padding: 9px 13px;
  border-radius: 30px;
  font-size: 10px;
}
.search-form select {
  max-width: 150px;
  border-radius: 30px;
  font-size: 10px;
  padding: 8px 10px;
}
.icon-button {
  border: 0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: #e2e8ee;
  color: #203348;
  font-size: 19px;
}
.empty {
  padding: 40px;
  text-align: center;
}
.empty > span {
  font-size: 36px;
  color: var(--lime);
}
.empty h3 {
  font-size: 27px;
  margin: 15px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9%;
  padding: 65px 8% 75px;
  align-items: start;
}
.auth-story h1 {
  font-size: 64px;
  margin: 22px 0;
}
.auth-story h1 span {
  color: var(--lime);
}
.auth-story p {
  color: var(--muted);
  font-size: 13px;
  max-width: 370px;
}
.auth-form {
  padding: 32px;
  max-width: 480px;
}
.auth-form h2 {
  font-size: 35px;
  margin: 18px 0;
}
.auth-form .muted {
  margin-bottom: 20px;
}
.auth-alternate {
  font-size: 11px;
  text-align: center;
  margin-top: 24px;
  color: #465a70;
}
.auth-orbit {
  position: relative;
  margin-top: 35px;
  height: 240px;
  width: 280px;
  display: grid;
  place-items: center;
}
.auth-orbit > div {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: var(--lime);
  font-size: 65px;
  font-weight: 700;
  color: #ffffff;
  transform: rotate(-12deg);
}
.auth-orbit > div > span {
  position: absolute;
  right: -18px;
  bottom: -16px;
  font-size: 33px;
  background: var(--orange);
  width: 47px;
  height: 47px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.auth-orbit > i {
  position: absolute;
  inset: 15px -5px;
  border: 1px solid #e2e8ee;
  border-radius: 50%;
  transform: rotate(-20deg);
}
.auth-orbit > b {
  position: absolute;
  right: -5px;
  top: 2px;
  color: var(--orange);
  font-size: 40px;
}
.standard-form {
  padding: 30px;
  max-width: 750px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.errorlist {
  list-style: none;
  margin: 6px 0;
  padding: 0;
  color: #465a70;
  font-size: 11px;
  white-space: normal;
  line-height: 1.5;
}
.center-state {
  text-align: center;
  min-height: 65vh;
  padding: 100px 20px;
}
.center-state h1 {
  max-width: 700px;
  margin: 20px auto;
}
.center-state p {
  color: var(--muted);
  margin-bottom: 25px;
}
.state-symbol {
  font-size: 65px;
  color: var(--lime);
}
.brief-panel {
  padding: 20px 23px;
  border-left: 2px solid var(--lime);
  background: #ffffff;
  border-radius: 0 15px 15px 0;
  margin-bottom: 25px;
}
.brief-panel p {
  font-size: 12px;
  margin-top: 10px;
  color: #465a70;
}
.quote-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.quote-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin: 25px 0 0;
}
.quote-stats .panel {
  padding: 22px;
}
.quote-stats span {
  display: block;
  font-size: 10px;
  color: #718196;
}
.quote-stats strong {
  display: block;
  font: 500 29px var(--display);
  margin-top: 13px;
}
.quote-stats strong small {
  font-size: 16px;
  color: #718196;
}
.notice {
  padding: 15px 20px;
  background: #f7f9fc;
  color: #465a70;
  border: 1px solid #e2e8ee;
  border-radius: 12px;
  font-size: 12px;
  margin: 18px 0;
}
.notice.soft {
  background: #f7f9fc;
  border-color: #e2e8ee;
  color: #465a70;
}
.snapshot {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  color: #465a70;
  margin-bottom: 22px;
}
.inline-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.editable-table {
  position: relative;
  max-height: 500px;
  overflow: auto;
}
.editable-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 13px;
  white-space: normal;
  min-width: 125px;
}
.editable-table td {
  padding: 8px;
  border-right: 1px solid #f7f9fc;
}
.editable-table input,
.editable-table select {
  font-size: 12px;
  padding: 11px 9px;
  background: #ffffff;
  border: 1px solid #e2e8ee;
  min-width: 90px;
  border-radius: 7px;
}
.editable-table .product-input {
  min-width: 225px;
  position: sticky;
  left: 0;
  z-index: 1;
  background: #f7f9fc;
}
.editable-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
}
.sku-input input {
  padding: 5px 9px;
  margin-top: 5px;
  color: #718196;
  font-size: 10px;
  min-height: 0;
  background: transparent;
  border: 0;
}
.editable-table .delete-cell {
  min-width: 70px;
  text-align: center;
}
.delete-cell input {
  min-width: 0;
}
.editable-table[data-sheet-mode="pricing"] [data-col="packing"],
.editable-table[data-sheet-mode="pricing"] [data-col="sales"],
.editable-table[data-sheet-mode="packing"] [data-col="pricing"],
.editable-table[data-sheet-mode="packing"] [data-col="sales"],
.editable-table[data-sheet-mode="sales"] [data-col="pricing"],
.editable-table[data-sheet-mode="sales"] [data-col="packing"] {
  display: none;
}
.sheet-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 24px;
  border-top: 1px solid #e2e8ee;
}
.product-cell {
  display: flex;
  gap: 12px;
  align-items: center;
}
.product-cell img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
  background: #203348;
  padding: 3px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  align-items: start;
}
.padded {
  padding: 27px;
}
.padded h2 {
  margin-bottom: 20px;
}
.review-box {
  border-top: 1px solid #e2e8ee;
  margin-top: 25px;
  padding-top: 24px;
}
.review-box h3 {
  font-size: 23px;
}
.history-entry {
  display: flex;
  gap: 15px;
  position: relative;
  padding: 17px 0;
  border-bottom: 1px solid #e2e8ee;
}
.history-entry i {
  background: var(--lime);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.history-entry strong {
  font-size: 12px;
  font-weight: 500;
}
.history-entry small {
  display: block;
  color: #718196;
  font-size: 9px;
  margin-top: 7px;
}
.history-entry p {
  font-size: 12px;
  color: #465a70;
  margin-top: 10px;
}
.toast-stack {
  position: fixed;
  right: 40px;
  bottom: 30px;
  z-index: 20;
  max-width: 400px;
}
.toast {
  background: #203348;
  color: #f7f9fc;
  border: 1px solid #203348;
  padding: 16px 22px;
  border-radius: 14px;
  font-size: 12px;
  box-shadow: 0 8px 30px #ffffff55;
  margin-top: 10px;
}
dialog {
  color: var(--white);
  background: var(--card);
  border: 1px solid #e2e8ee;
  border-radius: 22px;
  padding: 27px;
  max-width: 95vw;
  width: 480px;
  box-shadow: 0 30px 100px #ffffff88;
}
dialog::backdrop {
  background: #ffffffaa;
  backdrop-filter: blur(5px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
dialog form {
  display: grid;
  gap: 22px;
}
html[lang="zh-hans"] h1 {
  font-size: 34px;
  line-height: 1.4;
}
html[lang="zh-hans"] h2,
html[lang="zh-hans"] h3 {
  line-height: 1.5;
}
@media (min-width: 1500px) {
  .workspace-content {
    padding-right: 45px;
  }
}
@media (max-width: 1100px) {
  body {
  }
  .brand {
    font-size: 23px;
  }
  .workspace-content {
    padding-right: 23px;
  }
  .rail {
    width: 72px;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .panel-heading {
    padding: 20px;
  }
  th,
  td {
    padding-left: 18px;
    padding-right: 18px;
  }
  .auth-layout {
    gap: 5%;
    padding: 45px 5%;
  }
  .auth-story h1 {
    font-size: 53px;
  }
  .search-form input {
    max-width: 145px;
  }
}
@media (max-width: 850px) {
  .top-actions {
    margin-left: auto;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .page-heading p {
    max-width: 420px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: auto;
  }
  .auth-story {
    display: none;
  }
  .auth-form {
    max-width: 100%;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .quote-toolbar {
    gap: 15px;
  }
}
@media (max-width: 580px) {
  body {
  }
  .brand {
    font-size: 22px;
  }
  .brand svg {
    width: 31px;
    height: 31px;
  }
  .top-actions {
    gap: 9px;
  }
  .language button {
    padding: 6px;
    font-size: 9px;
  }
  .top-actions .btn {
    padding: 9px 12px;
    font-size: 10px;
  }
  .coordinate {
    bottom: -5px;
    font-size: 7px;
  }
  .section-heading h2 {
    font-size: 32px;
  }
  .rail {
    display: none;
  }
  .workspace-content {
    padding: 15px 16px;
  }
  .page-heading {
    gap: 15px;
    flex-direction: column;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .heading-actions {
    width: 100%;
  }
  .panel-heading {
    padding: 19px;
    flex-wrap: wrap;
  }
  .panel-heading h2 {
    font-size: 21px;
  }
  .search-form {
    width: 100%;
  }
  .search-form input {
    max-width: none;
    flex: 1;
  }
  .search-form select {
    max-width: 120px;
  }
  .panel {
    border-radius: 17px;
  }
  .quote-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .quote-stats .panel {
    padding: 16px;
  }
  .quote-stats strong {
    font-size: 24px;
  }
  .padded,
  .standard-form {
    padding: 21px;
  }
  .form-grid {
    gap: 0 12px;
  }
  .sheet-actions {
    padding: 15px;
    gap: 10px;
  }
  .sheet-actions .btn {
    font-size: 10px;
    padding: 11px 13px;
  }
  .auth-layout {
    padding: 20px 17px 40px;
  }
  .auth-form {
    padding: 23px;
  }
  .center-state {
    padding: 70px 22px;
  }
  .center-state h1 {
    font-size: 32px;
  }
  footer {
    padding: 23px 20px;
    gap: 15px;
    flex-wrap: wrap;
  }
  footer span {
    font-size: 9px;
  }
  .toast-stack {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Shared sizing: long names and translations shrink and wrap without clipping. */
img,
svg {
  max-width: 100%;
}
textarea {
  resize: vertical;
}
main,
section,
form,
fieldset,
.panel,
.detail-grid > *,
.form-grid > *,
.quote-stats > * {
  min-width: 0;
}
h1,
h2,
h3,
p,
.history-entry,
.brief-panel,
.badge {
  overflow-wrap: anywhere;
}
.btn {
  white-space: normal;
  text-align: center;
  min-height: 44px;
}
.table-wrap {
  max-width: 100%;
  overscroll-behavior-x: contain;
}
.quote-stats strong {
  overflow-wrap: anywhere;
}
.sheet-field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  margin: 0;
}
.mobile-records td {
  white-space: normal;
  overflow-wrap: anywhere;
}
.mobile-records td:first-child {
  min-width: 180px;
}
@media (max-width: 800px) {
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .heading-actions {
    justify-content: flex-start;
  }
  .form-grid,
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .supplier-panel .panel-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .editable-table {
    max-height: none;
    overflow: visible;
  }
  .editable-table table,
  .editable-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
  .editable-table thead {
    display: none;
  }
  .editable-table .edit-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 22px;
    border-top: 1px solid var(--line);
  }
  .editable-table td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
    width: auto;
    background: transparent;
  }
  .editable-table .product-input {
    grid-column: 1/-1;
    position: static;
    min-width: 0;
    width: auto;
    background: transparent;
  }
  .editable-table input,
  .editable-table select,
  .editable-table textarea {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 12px;
    font-size: 16px;
    background: #ffffff;
    border: 1px solid #e2e8ee;
  }
  .editable-table input[type="checkbox"] {
    width: 22px;
    min-height: 22px;
  }
  .editable-table input[type="file"] {
    font-size: 13px;
  }
  .sheet-field-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.5;
  }
  .sku-input {
    margin-top: 14px;
  }
  .editable-table .delete-cell {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .delete-cell .sheet-field-label {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
  }
  .sheet-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sheet-actions .btn {
    margin: 0;
    font-size: 12px;
    min-height: 46px;
  }
}
@media (max-width: 600px) {
  input,
  select,
  textarea,
  .search-form input,
  .search-form select {
    font-size: 16px;
    min-height: 46px;
  }
  input[type="checkbox"] {
    min-height: 22px;
    height: 22px;
    width: 22px;
  }
  .btn,
  .icon-button,
  .text-link,
  .remove-product {
    min-height: 44px;
  }
  .icon-button {
    min-width: 44px;
  }
  .inline-actions {
    flex-wrap: wrap;
  }
  .auth-layout {
    padding: 26px 24px;
  }
  .auth-form {
    padding: 24px;
    width: 100%;
  }
  .panel-heading {
    gap: 14px;
  }
  .standard-form,
  .padded {
    padding: 22px;
  }
  .editable-table .edit-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }
  .sheet-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .mobile-records,
  .mobile-records tbody {
    display: block;
    width: 100%;
  }
  .mobile-records thead {
    display: none;
  }
  .mobile-records tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-records tr:last-child {
    border-bottom: 0;
  }
  .mobile-records td {
    display: block;
    min-width: 0;
    border: 0;
    padding: 0;
    font-size: 13px;
  }
  .mobile-records td:first-child {
    grid-column: 1/-1;
    min-width: 0;
  }
  .mobile-records td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 7px;
  }
  .mobile-records td:empty {
    display: none;
  }
  dialog {
    width: calc(100% - 32px);
    max-width: 480px;
    max-height: calc(100dvh - 32px);
    padding: 22px;
  }
  dialog form {
    flex-wrap: wrap;
  }
  dialog input[type="file"] {
    max-width: 100%;
  }
  footer {
    padding: 24px;
    align-items: flex-start;
  }
  footer > span {
    flex-basis: 100%;
    order: 3;
    font-size: 11px;
  }
  .footer-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
}
/* Inactive fields remain hidden in both the desktop and mobile sheet. */
.editable-table[data-sheet-mode="pricing"] [data-col="packing"],
.editable-table[data-sheet-mode="pricing"] [data-col="sales"],
.editable-table[data-sheet-mode="packing"] [data-col="pricing"],
.editable-table[data-sheet-mode="packing"] [data-col="sales"],
.editable-table[data-sheet-mode="sales"] [data-col="pricing"],
.editable-table[data-sheet-mode="sales"] [data-col="packing"] {
  display: none;
}
