:root {
  color-scheme: light;
  --ink: #0c2725;
  --muted: rgba(12, 39, 37, 0.64);
  --line: rgba(255, 255, 255, 0.56);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --green: #16785f;
  --green-deep: #075947;
  --teal: #2aa399;
  --gold: #d8a445;
  --red: #b23b35;
  --shadow: 0 22px 58px rgba(20, 69, 61, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #eef8f5;
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(239, 250, 247, 0.58), rgba(239, 250, 247, 0.9)),
    url("./assets/warehouse-bg.png") center / cover no-repeat;
  content: "";
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(180deg, rgba(238, 248, 245, 0.06), rgba(238, 248, 245, 0.76));
  content: "";
  pointer-events: none;
}

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

button {
  -webkit-tap-highlight-color: transparent;
}

input {
  min-width: 0;
}

select,
textarea {
  color: var(--ink);
}

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

.app-shell {
  min-height: 100vh;
  min-height: 100svh;
  padding: max(22px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom));
}

.login-view {
  display: flex;
  min-height: calc(100vh - 44px);
  min-height: calc(100svh - 44px);
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 26px 0 10px;
}

.brand-area {
  position: relative;
  padding-top: 22px;
}

.login-orbit {
  position: absolute;
  top: -10px;
  right: 4px;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(42, 163, 153, 0.12)),
    rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 48px rgba(20, 69, 61, 0.12);
  transform: rotate(10deg);
  backdrop-filter: blur(20px);
}

.brand-mark {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 255, 251, 0.68)),
    linear-gradient(135deg, rgba(22, 120, 95, 0.22), rgba(216, 164, 69, 0.2));
  box-shadow: 0 18px 42px rgba(18, 82, 70, 0.18);
  backdrop-filter: blur(20px);
}

.brand-mark span {
  color: var(--green-deep);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.brand-kicker,
.stat-label {
  margin: 0 0 8px;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
}

h1 {
  max-width: 9em;
  margin-bottom: 14px;
  font-size: clamp(34px, 10vw, 46px);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.08;
}

.brand-subtitle {
  max-width: 270px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 520;
  line-height: 1.55;
}

.login-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.login-chips span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: rgba(12, 39, 37, 0.72);
  font-size: 12px;
  font-weight: 760;
  backdrop-filter: blur(16px);
}

.login-panel,
.tool-panel,
.search-panel,
.product-panel,
.status-panel,
.history-card,
.settings-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.22);
}

.login-panel {
  width: 100%;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68)),
    var(--panel);
}

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

.login-panel-head h2 {
  margin-bottom: 5px;
  font-size: 24px;
  line-height: 1.1;
}

.login-panel-head p,
.save-status {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.auth-status {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(22, 120, 95, 0.1);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 820;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(12, 39, 37, 0.07);
}

.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(12, 39, 37, 0.58);
  font-size: 14px;
  font-weight: 820;
}

.auth-tab.active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-deep);
  box-shadow: 0 10px 22px rgba(20, 69, 61, 0.1);
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(12, 39, 37, 0.1);
  border-radius: 17px;
  outline: 0;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 16px;
  font-weight: 680;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 24px rgba(20, 69, 61, 0.06);
}

.auth-input:focus {
  border-color: rgba(22, 120, 95, 0.48);
  box-shadow:
    0 0 0 4px rgba(22, 120, 95, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: rgba(12, 39, 37, 0.66);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.35;
}

.remember-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green-deep);
}

#warehouseStatus {
  max-width: min(100%, 300px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(12, 39, 37, 0.74);
  font-size: 14px;
  font-weight: 750;
}

.secret-field,
.search-field,
.quantity-row input,
.select-control,
.text-control {
  border: 1px solid rgba(12, 39, 37, 0.1);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.secret-field,
.search-field {
  display: flex;
  align-items: center;
  height: 58px;
  border-radius: 18px;
}

.secret-field:focus-within,
.search-field:focus-within,
.quantity-row input:focus,
.select-control:focus,
.text-control:focus {
  border-color: rgba(22, 120, 95, 0.48);
  outline: 0;
  box-shadow:
    0 0 0 4px rgba(22, 120, 95, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.secret-field input,
.search-field input {
  width: 100%;
  height: 100%;
  padding: 0 4px 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0;
}

.secret-field input::placeholder,
.search-field input::placeholder,
.quantity-row input::placeholder,
.text-control::placeholder {
  color: rgba(12, 39, 37, 0.34);
  font-weight: 520;
}

.icon-button {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  margin-right: 5px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: rgba(12, 39, 37, 0.62);
}

.icon-button:active {
  background: rgba(12, 39, 37, 0.06);
}

.icon-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.login-message {
  min-height: 22px;
  margin: 10px 2px 12px;
  color: var(--red);
  font-size: 14px;
  font-weight: 650;
}

.login-message.success {
  color: var(--green-deep);
}

.app-view {
  width: min(100%, 430px);
  margin: 0 auto;
}

.app-content {
  padding: 48px 0 calc(124px + env(safe-area-inset-bottom));
}

.app-view.has-floating-export .app-content {
  padding-top: 96px;
}

.tab-page {
  display: none;
}

.tab-page.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.workbench-top,
.page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.page-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logout-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(178, 59, 53, 0.1);
  color: var(--red);
  font-size: 13px;
  font-weight: 820;
  box-shadow: inset 0 0 0 1px rgba(178, 59, 53, 0.08);
}

.workbench-top h2,
.page-title h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
}

.current-inventory-subtitle {
  margin: 8px 0 0;
  color: var(--green-deep);
  font-size: 15px;
  font-weight: 780;
  line-height: 1.35;
}

.workbench-top h2 span {
  display: block;
}

.page-title .slim {
  flex: 0 0 auto;
  min-width: 72px;
  min-height: 42px;
  padding: 0 14px;
  font-size: 14px;
}

.status-dot {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(20, 69, 61, 0.14);
  backdrop-filter: blur(18px);
}

.floating-export-wrap {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 24;
  display: grid;
  justify-items: end;
  gap: 5px;
  max-width: min(210px, calc(100vw - 20px));
  pointer-events: none;
}

.floating-export-wrap.hidden {
  display: none;
}

.floating-export-wrap span {
  max-width: 100%;
  overflow: hidden;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(12, 39, 37, 0.66);
  font-size: 11px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(20, 69, 61, 0.12);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.floating-export {
  min-height: 38px;
  max-width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
  font-size: 12px;
  font-weight: 820;
  box-shadow: 0 10px 24px rgba(7, 89, 71, 0.22);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  white-space: nowrap;
}

.floating-export:disabled {
  background: rgba(255, 255, 255, 0.72);
  color: rgba(12, 39, 37, 0.42);
  box-shadow: 0 10px 26px rgba(20, 69, 61, 0.12);
}

.status-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px;
  border-radius: 24px;
}

.status-panel strong {
  display: block;
  color: var(--ink);
  font-size: 27px;
  font-weight: 850;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(12, 39, 37, 0.56);
}

.tool-panel,
.search-panel,
.product-panel,
.settings-panel {
  padding: 18px;
  border-radius: 24px;
}

#warehousePage .search-panel {
  padding: 10px 12px;
  border-radius: 18px;
}

#warehousePage .search-panel .field-label {
  margin-bottom: 6px;
  font-size: 12px;
}

#warehousePage .search-panel .search-field {
  height: 42px;
  border-radius: 14px;
}

#warehousePage .search-panel .search-field input {
  font-size: 16px;
}

#warehousePage .search-panel .small-button {
  min-height: 34px;
  margin-right: 5px;
  padding: 0 12px;
  border-radius: 13px;
}

#warehousePage .search-panel .hint-text {
  min-height: 0;
  margin-top: 6px;
  font-size: 12px;
}

#warehousePage .tool-panel {
  padding: 12px;
  border-radius: 18px;
}

#warehousePage .tool-panel .panel-heading {
  gap: 8px;
}

#warehousePage .tool-panel h3 {
  margin-bottom: 0;
  font-size: 19px;
}

#warehousePage .tool-panel .panel-actions {
  gap: 6px;
}

#warehousePage .tool-panel .small-button,
#warehousePage .tool-panel .mini-danger {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 13px;
}

#warehousePage .shelf-tab {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 13px;
  font-size: 13px;
}

.panel-heading,
.settings-panel,
.history-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-heading {
  flex-wrap: wrap;
}

.panel-heading h3,
.product-head h3,
.history-card h3,
.settings-panel h3 {
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1.2;
}

.panel-heading p,
.history-card p,
.settings-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}

.panel-heading p {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-heading p:empty {
  display: none;
}

.stacked-heading {
  align-items: flex-start;
}

.select-control,
.text-control {
  width: 100%;
  border-radius: 16px;
  outline: 0;
}

.select-control {
  height: 50px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 720;
}

.text-control {
  min-height: 86px;
  resize: vertical;
  padding: 13px 14px;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.45;
}

.file-button {
  display: inline-grid;
  min-width: 92px;
  min-height: 50px;
  place-items: center;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--green-deep);
  font-size: 15px;
  font-weight: 780;
  box-shadow: inset 0 0 0 1px rgba(12, 39, 37, 0.08);
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.backup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.backup-file {
  min-width: 0;
  min-height: 50px;
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-button,
.small-button,
.mini-danger {
  min-height: 50px;
  border: 0;
  cursor: pointer;
  font-weight: 760;
}

.primary-button {
  width: 100%;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
  font-size: 17px;
  box-shadow: 0 14px 30px rgba(7, 89, 71, 0.28);
}

.secondary-button,
.danger-button,
.ghost-button {
  border-radius: 18px;
  font-size: 16px;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-deep);
  box-shadow: inset 0 0 0 1px rgba(22, 120, 95, 0.16);
}

.danger-button,
.mini-danger {
  background: rgba(178, 59, 53, 0.1);
  color: var(--red);
}

.test-danger-button {
  min-width: 126px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 15px;
  background: rgba(178, 59, 53, 0.16);
  font-size: 13px;
}

.warehouse-title-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: min(220px, 54vw);
  flex-wrap: nowrap;
}

#warehousePage .page-title {
  position: relative;
  min-height: 74px;
  padding-right: 162px;
  flex-wrap: nowrap;
}

#warehousePage .page-title > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

#warehousePage .warehouse-title-actions {
  position: absolute;
  top: 2px;
  right: 0;
  max-width: 156px;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 6px;
}

.warehouse-title-actions .small-button,
.warehouse-title-actions .danger-button {
  min-height: 34px;
  min-width: 0;
  margin-right: 0;
  padding: 0 7px;
  border-radius: 13px;
  font-size: 10px;
  white-space: nowrap;
}

.warehouse-title-actions .warehouse-export-button {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(7, 89, 71, 0.2);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px rgba(12, 39, 37, 0.08);
}

.small-button,
.mini-danger {
  min-height: 42px;
  min-width: 64px;
  padding: 0 12px;
  border-radius: 14px;
  white-space: nowrap;
}

.small-button {
  margin-right: 7px;
  background: rgba(22, 120, 95, 0.1);
  color: var(--green-deep);
}

.mini-danger {
  min-width: 52px;
}

.primary-button:active,
.secondary-button:active,
.danger-button:active,
.ghost-button:active,
.file-button:active,
.small-button:active,
.mini-danger:active,
.nav-button:active {
  transform: translateY(1px);
}

.secondary-button:disabled,
.danger-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.hint-text {
  min-height: 20px;
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.results-list,
.history-list,
.data-list,
.period-list,
.warehouse-grid,
.period-history {
  display: grid;
  gap: 10px;
}

.data-toolbar {
  display: grid;
  gap: 10px;
}

.data-toolbar .search-field {
  height: 64px;
  border-color: rgba(22, 120, 95, 0.3);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 12px 30px rgba(20, 69, 61, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.data-toolbar .search-field input {
  font-size: 21px;
  font-weight: 760;
}

.data-toolbar .search-field input::placeholder {
  color: rgba(12, 39, 37, 0.38);
  font-weight: 720;
}

.import-check {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(22, 120, 95, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.import-check-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.import-check-head strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.import-check-ok,
.import-check-bad {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 840;
}

.import-check-ok {
  background: rgba(42, 163, 153, 0.13);
  color: #0a6d65;
}

.import-check-bad {
  background: rgba(178, 59, 53, 0.12);
  color: var(--red);
}

.import-issue-details summary {
  cursor: pointer;
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 820;
}

.import-issue-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  margin-top: 10px;
}

.import-issue-list article {
  padding: 9px 10px;
  border-radius: 13px;
  background: rgba(178, 59, 53, 0.07);
}

.import-issue-list strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.import-issue-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.month-picker {
  width: 100%;
  height: 54px;
  margin-top: 14px;
  padding: 0 16px;
  border: 1px solid rgba(22, 120, 95, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-size: 17px;
  font-weight: 820;
  box-shadow: 0 8px 20px rgba(20, 69, 61, 0.08);
}

.month-combo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
}

.month-combo-select {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(22, 120, 95, 0.18);
  border-radius: 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 18px;
  font-weight: 840;
  box-shadow: 0 8px 20px rgba(20, 69, 61, 0.08);
  appearance: auto;
}

.month-combo-select:focus {
  border-color: rgba(22, 120, 95, 0.5);
  box-shadow: 0 0 0 4px rgba(22, 120, 95, 0.12);
}

.history-month-combo {
  margin-top: 0;
  margin-bottom: 12px;
}

.compact-field {
  height: 52px;
}

.filter-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
}

.filter-button {
  min-height: 38px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: rgba(12, 39, 37, 0.56);
  font-size: 14px;
  font-weight: 780;
}

.filter-button.active {
  background: rgba(22, 120, 95, 0.12);
  color: var(--green-deep);
}

.data-summary {
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.master-summary {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 58;
  place-items: center;
  padding: 20px 18px calc(96px + env(safe-area-inset-bottom));
  background: rgba(9, 35, 32, 0.3);
  backdrop-filter: blur(10px);
}

.master-summary:empty {
  display: none;
}

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

.master-summary-head h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.master-summary-head p {
  max-width: 9em;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.45;
  text-align: right;
}

.master-search-card {
  display: grid;
  width: min(100%, 390px);
  max-height: min(72vh, 560px);
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 72px rgba(9, 35, 32, 0.28);
}

.master-search-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.master-search-head strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.master-result-list {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
}

.master-result {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(22, 120, 95, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  text-align: left;
}

.master-result span {
  color: var(--muted);
  font-size: 12px;
}

.data-card {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 26px rgba(20, 69, 61, 0.1);
  backdrop-filter: blur(18px);
}

.period-row {
  margin-top: 14px;
}

.import-month-row {
  margin-top: 14px;
}

.current-period-summary {
  margin: 10px 2px 0;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
}

.period-list {
  margin-top: 12px;
}

.period-card,
.warehouse-product {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 24px rgba(20, 69, 61, 0.1);
}

.warehouse-product {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: auto;
  max-width: 100%;
  min-height: 20px;
  align-items: center;
  padding: 1px 6px;
  border-color: rgba(22, 120, 95, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 7px rgba(20, 69, 61, 0.08);
}

.warehouse-product.search-hit {
  border-color: rgba(216, 164, 69, 0.72);
  background: rgba(255, 250, 234, 0.96);
  box-shadow:
    0 0 0 3px rgba(216, 164, 69, 0.18),
    0 6px 16px rgba(97, 67, 12, 0.14);
}

.warehouse-product.selected {
  border-color: rgba(22, 120, 95, 0.72);
  background: rgba(232, 252, 244, 0.98);
  box-shadow:
    0 0 0 3px rgba(22, 120, 95, 0.12),
    0 5px 14px rgba(20, 69, 61, 0.08);
}

.period-card.active {
  border-color: rgba(22, 120, 95, 0.42);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 4px rgba(22, 120, 95, 0.1),
    0 10px 24px rgba(20, 69, 61, 0.1);
}

.period-card strong,
.warehouse-product strong {
  font-size: 15px;
  line-height: 1.35;
}

.warehouse-product strong {
  display: block;
  overflow: hidden;
  max-width: 5.8em;
  font-size: 10.5px;
  font-weight: 820;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.period-card p,
.warehouse-product p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.data-card strong {
  display: block;
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 860;
  line-height: 1.35;
}

.data-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.data-status {
  flex: 0 0 auto;
  max-width: 92px;
  overflow: hidden;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(178, 59, 53, 0.1);
  color: var(--red);
  font-size: 12px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-card.done .data-status {
  background: rgba(42, 163, 153, 0.13);
  color: #0a6d65;
}

.result-card {
  position: relative;
  display: grid;
  width: 100%;
  gap: 5px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 30px rgba(20, 69, 61, 0.12);
  backdrop-filter: blur(18px);
}

.result-card.active {
  border-color: rgba(22, 120, 95, 0.5);
  box-shadow:
    0 0 0 4px rgba(22, 120, 95, 0.1),
    0 12px 30px rgba(20, 69, 61, 0.12);
}

.result-code {
  display: block;
  color: var(--green-deep);
  font-size: 15px;
  font-weight: 820;
  overflow-wrap: anywhere;
}

.result-name {
  padding-right: 74px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.result-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.done-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  max-width: 96px;
  overflow: hidden;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(42, 163, 153, 0.13);
  color: #0a6d65;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 55;
  width: min(calc(100% - 32px), 430px);
  max-height: min(82vh, 720px);
  overflow-y: auto;
  background: var(--panel-strong);
  box-shadow: 0 28px 72px rgba(9, 35, 32, 0.24);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(22px) saturate(1.18);
}

.product-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.product-actions,
.panel-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 39, 37, 0.08);
  color: var(--ink);
  font-size: 22px;
  font-weight: 760;
  line-height: 1;
}

.product-head h3 {
  word-break: break-all;
}

.unit-pill {
  align-self: flex-start;
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(216, 164, 69, 0.18);
  color: #87601a;
  font-size: 13px;
  font-weight: 820;
}

.product-name {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 720;
  line-height: 1.45;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.product-meta span {
  flex: 1 1 120px;
  padding: 9px 10px;
  border-radius: 13px;
  background: rgba(22, 120, 95, 0.07);
}

.product-panel .text-control {
  min-height: 72px;
}

.quantity-form {
  margin: 0;
}

.quantity-row {
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 10px;
}

.quantity-row input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border-radius: 17px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 720;
}

.primary-button.compact {
  height: 54px;
  min-height: 54px;
}

.note-label {
  margin-top: 16px;
}

.location-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.action-row {
  display: grid;
  gap: 10px;
}

.ghost-button.wide {
  width: 100%;
}

.history-card {
  align-items: flex-start;
  padding: 16px;
  border-radius: 22px;
  cursor: pointer;
}

.history-card > div:first-child,
.settings-panel > div:first-child {
  min-width: 0;
}

.history-card h3,
.settings-panel h3 {
  overflow-wrap: anywhere;
}

.history-card h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 880;
  line-height: 1.25;
}

.history-subtitle,
.history-file,
.history-change {
  margin-bottom: 0;
}

.history-subtitle {
  color: rgba(12, 39, 37, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.history-file {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.history-change {
  margin-top: 8px;
  color: var(--green-deep);
  font-size: 15px;
  font-weight: 840;
}

.history-card.current {
  border-color: rgba(42, 163, 153, 0.28);
  background: rgba(255, 255, 255, 0.88);
}

.muted-card {
  box-shadow: 0 12px 30px rgba(20, 69, 61, 0.1);
}

.history-actions {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
}

.history-detail {
  position: fixed;
  inset: 0;
  z-index: 62;
  display: grid;
  place-items: center;
  padding: 22px 18px calc(96px + env(safe-area-inset-bottom));
  background: rgba(9, 35, 32, 0.34);
}

.history-detail-card {
  width: min(100%, 430px);
  max-height: min(78vh, 680px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-strong);
  box-shadow: 0 28px 72px rgba(9, 35, 32, 0.28);
  backdrop-filter: blur(22px) saturate(1.18);
}

.history-detail-card h3 {
  margin-bottom: 5px;
  font-size: 21px;
  line-height: 1.2;
}

.history-detail-grid {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.history-detail-grid div,
.history-detail-note {
  padding: 11px 12px;
  border-radius: 15px;
  background: rgba(22, 120, 95, 0.07);
}

.history-detail-grid span,
.history-detail-note span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.history-detail-grid strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.history-detail-note p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.detail-actions {
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

.shelf-tabs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.shelf-tab {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(12, 39, 37, 0.62);
  font-size: 14px;
  font-weight: 780;
  box-shadow: inset 0 0 0 1px rgba(12, 39, 37, 0.08);
}

.shelf-tab.active {
  background: rgba(22, 120, 95, 0.13);
  color: var(--green-deep);
}

.rack-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% + 18px);
  margin-right: -9px;
  margin-left: -9px;
  min-height: 0;
  padding: 12px 0 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(20, 69, 61, 0.08);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.rack-visual.dragging {
  cursor: grabbing;
}

.rack-visual.rack-animate {
  animation: rack-enter 220ms ease both;
}

@keyframes rack-enter {
  from {
    opacity: 0.68;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.rack-stage {
  position: relative;
  width: min(100%, 428px);
  aspect-ratio: 1122 / 1402;
  cursor: grab;
}

.rack-photo {
  position: absolute;
  inset: 0;
  background: url("./assets/shelf-rack.png") center / 100% 100% no-repeat;
  opacity: 1;
  pointer-events: none;
}

.shelf-level {
  display: flex;
  position: absolute;
  right: 23%;
  left: 23%;
  gap: 2px 3px;
  min-height: 0;
  flex-wrap: wrap;
  flex-direction: row;
  align-content: flex-end;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  padding: 3px 4px 7px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  backdrop-filter: none;
  scrollbar-width: thin;
  cursor: pointer;
}

.shelf-上层 {
  top: 9.4%;
  height: 17.8%;
  padding-bottom: 17px;
}

.shelf-中层 {
  top: 32.8%;
  height: 17.2%;
}

.shelf-下层 {
  top: 54.8%;
  height: 17.2%;
}

.shelf-地上 {
  top: 75.8%;
  height: 18.7%;
  padding-bottom: 3px;
}

.shelf-地上 .warehouse-product {
  min-height: 19px;
  padding: 1px 6px;
}

.shelf-地上 .warehouse-product strong {
  font-size: 10.5px;
  line-height: 1.08;
}

.shelf-full-list {
  display: grid;
  gap: 8px;
  max-height: min(58vh, 480px);
  overflow-y: auto;
  padding-right: 2px;
}

.shelf-full-item {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 15px;
  background: rgba(22, 120, 95, 0.07);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.shelf-full-item:active {
  transform: translateY(1px);
}

.shelf-full-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.shelf-full-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.rack-title {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin: 0 0 -4px 16px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 26px rgba(20, 69, 61, 0.12);
  backdrop-filter: blur(14px);
}

.rack-title span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.rack-title strong {
  display: block;
  color: var(--green-deep);
  font-size: 17px;
  line-height: 1.25;
}

.warehouse-detail {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px 18px calc(96px + env(safe-area-inset-bottom));
  background: rgba(9, 35, 32, 0.34);
}

.adapter-dialog {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 22px 18px calc(96px + env(safe-area-inset-bottom));
  background: rgba(9, 35, 32, 0.34);
}

.warehouse-detail-card,
.adapter-card {
  width: min(100%, 430px);
  max-height: min(78vh, 680px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-strong);
  box-shadow: 0 28px 72px rgba(9, 35, 32, 0.28);
  backdrop-filter: blur(22px) saturate(1.18);
}

.adapter-fields {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.warehouse-move-box {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(22, 120, 95, 0.08);
}

.warehouse-move-box strong {
  color: var(--green-deep);
  font-size: 15px;
}

.warehouse-move-button {
  width: 100%;
}

.warehouse-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.warehouse-detail h3 {
  margin-bottom: 5px;
  font-size: 20px;
  line-height: 1.2;
}

.warehouse-detail p,
.period-record p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.period-record {
  display: block;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.period-record:active {
  transform: translateY(1px);
}

.period-record strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.settings-panel {
  align-items: flex-start;
}

.settings-panel .secondary-button,
.settings-panel .danger-button {
  flex: 0 0 auto;
  min-width: 104px;
}

.bottom-nav {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 32px), 430px);
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 52px rgba(20, 69, 61, 0.22);
  backdrop-filter: blur(24px) saturate(1.2);
  transform: translateZ(0);
  will-change: transform;
}

.nav-button {
  display: grid;
  min-height: 58px;
  place-items: center;
  gap: 3px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: rgba(12, 39, 37, 0.54);
  font-size: 11px;
  font-weight: 760;
}

.nav-button span {
  line-height: 1;
  white-space: nowrap;
}

.nav-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.nav-button.active {
  background: linear-gradient(135deg, rgba(22, 120, 95, 0.15), rgba(42, 163, 153, 0.1));
  color: var(--green-deep);
}

.hidden {
  display: none;
}

/* Login redesign */
.login-view {
  display: grid;
  align-items: start;
  padding: 0;
}

.login-view.hidden {
  display: none;
}

.login-card {
  display: grid;
  width: 100%;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(246, 252, 250, 0.96), rgba(224, 241, 237, 0.92));
  box-shadow: 0 24px 58px rgba(16, 70, 62, 0.2);
  overflow: hidden;
}

.login-art {
  min-height: 0;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 248, 245, 0.68)),
    url("./assets/warehouse-bg.png") center / cover no-repeat;
  background-blend-mode: screen, normal;
  overflow: hidden;
}

.art-copy h1 {
  max-width: none;
  margin-bottom: 8px;
  font-size: clamp(30px, 8vw, 38px);
  font-weight: 850;
  line-height: 1.08;
}

.art-copy .brand-subtitle {
  max-width: 100%;
  font-size: 14px;
}

.inventory-illustration {
  position: relative;
  height: 170px;
  margin-top: 20px;
}

.box-shape {
  position: absolute;
  right: 16px;
  bottom: 8px;
  width: 160px;
  height: 122px;
  border-radius: 24px 24px 18px 18px;
  background: linear-gradient(135deg, #2f64ff, #114ec8);
  transform: rotate(-6deg);
  box-shadow: 0 18px 32px rgba(47, 100, 255, 0.25);
}

.box-shape::before,
.box-shape::after {
  position: absolute;
  content: "";
}

.box-shape::before {
  top: 24px;
  left: -38px;
  width: 92px;
  height: 38px;
  border-radius: 999px;
  background: #111827;
  transform: rotate(18deg);
}

.box-shape::after {
  right: 22px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border: 10px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
}

.tag-shape {
  position: absolute;
  left: 30px;
  bottom: 10px;
  width: 90px;
  height: 132px;
  border-radius: 44px 44px 28px 28px;
  background: #101219;
  transform: rotate(14deg);
}

.sheet-shape {
  position: absolute;
  top: 18px;
  right: 58px;
  width: 130px;
  height: 78px;
  border: 2px solid rgba(16, 18, 25, 0.88);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  transform: rotate(8deg);
}

.scan-line {
  position: absolute;
  right: 2px;
  bottom: 28px;
  width: 236px;
  height: 3px;
  border-radius: 999px;
  background: #101219;
  transform: rotate(8deg);
}

.login-card .login-panel {
  padding: 20px;
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(16, 70, 62, 0.12);
}

.login-card .login-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.login-card .login-chips span {
  text-align: center;
}

.auth-security-note,
.auth-approval-note {
  margin: 12px 0 0;
  color: rgba(12, 39, 37, 0.68);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.45;
}

.auth-approval-note {
  margin: 2px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(22, 120, 95, 0.08);
  color: var(--green-deep);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  left: 20px;
  z-index: 40;
  max-width: 390px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(7, 89, 71, 0.92);
  color: #fff;
  font-size: 15px;
  font-weight: 760;
  text-align: center;
  box-shadow: 0 18px 42px rgba(7, 89, 71, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(18px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.management-clear {
  width: 100%;
  margin-top: 14px;
}

.save-dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 24, 22, 0.32);
  backdrop-filter: blur(10px);
}

.save-dialog.hidden {
  display: none;
}

.save-dialog-card {
  width: min(100%, 320px);
  padding: 26px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 64px rgba(12, 39, 37, 0.24);
  text-align: center;
}

.save-dialog-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
  font-size: 30px;
  font-weight: 850;
}

.save-dialog-card h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.save-dialog-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

@media (max-width: 360px) {
  .app-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .floating-export-wrap {
    max-width: 172px;
  }

  .floating-export-wrap span {
    max-width: 152px;
    padding: 4px 8px;
    font-size: 10px;
  }

  .floating-export {
    min-height: 40px;
    padding: 0 11px;
    font-size: 12px;
  }

  .panel-heading {
    align-items: flex-start;
  }

  .panel-actions {
    width: 100%;
    justify-content: flex-start;
  }

  #warehousePage .warehouse-title-actions {
    max-width: 146px;
  }

  .quantity-row,
  .location-editor,
  .backup-actions,
  .action-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 560px) {
  .app-shell {
    display: grid;
    place-items: start center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
