/* 全局基础样式：CSS 变量统一主题，布局、背景、导航、页脚 */
/* z-index 约定：导航 10000，弹窗/遮罩 10100+，下拉 10050，页脚 100 */

:root {
  /* 简约柔和：低饱和主色、轻阴影、舒适圆角 */
  --primary-gradient: linear-gradient(125deg, #8eb4ff 0%, #9ca8ff 50%, #a89eff 100%);
  --primary-gradient-nav: linear-gradient(135deg, rgba(142, 180, 255, 0.14) 0%, rgba(156, 168, 255, 0.1) 100%);
  --primary-gradient-nav-hover: linear-gradient(135deg, rgba(142, 180, 255, 0.22) 0%, rgba(156, 168, 255, 0.16) 100%);
  --primary-gradient-btn: linear-gradient(135deg, #8eb0ff, #9b94f0);
  --danger-gradient: linear-gradient(135deg, rgba(255, 160, 150, 0.12) 0%, rgba(255, 140, 130, 0.08) 100%);
  --danger-gradient-hover: linear-gradient(135deg, rgba(255, 160, 150, 0.2) 0%, rgba(255, 140, 130, 0.14) 100%);
  --border-color: rgba(120, 135, 185, 0.2);
  --border-color-strong: rgba(120, 135, 185, 0.32);
  --border-color-focus: rgba(155, 148, 230, 0.45);
  --shadow-header: 0 8px 28px rgba(95, 110, 150, 0.12);
  --shadow-nav: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 4px 20px rgba(95, 110, 140, 0.06);
  --shadow-btn: 0 2px 8px rgba(130, 150, 200, 0.12);
  --shadow-btn-hover: 0 4px 14px rgba(130, 150, 200, 0.18);
  --shadow-card: 0 4px 24px rgba(80, 95, 120, 0.06), 0 1px 3px rgba(80, 95, 120, 0.04);
  --shadow-modal: 0 4px 6px rgba(45, 55, 85, 0.04), 0 22px 48px rgba(45, 62, 95, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  --modal-mask-bg: linear-gradient(165deg, rgba(32, 42, 58, 0.45) 0%, rgba(22, 32, 48, 0.55) 100%);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --radius-round: 999px;
  --color-text: #3d4a56;
  --color-text-muted: #6b7788;
  --color-link: #5f7ab8;
  --color-bg-body: linear-gradient(165deg, #f9fafb 0%, #f3f5f8 45%, #eef1f6 100%);
  --color-bg-nav: rgba(255, 255, 255, 0.82);
  --color-bg-input: #ffffff;
  --font-size-base: 1rem;
  --font-size-sm: 0.9rem;
  --font-size-xs: 0.85rem;
  --font-size-h1: 2rem;
  --space-nav-height: 4.25rem;
  --space-container-pad: 2.25rem 1.25rem 1.75rem;
  --layout-max-width: 78rem;
  --layout-section-gap: 1.25rem;
  --layout-card-pad: 1.25rem;
  --layout-block-gap: 0.9rem;
}

/* 深色主题（可选，在 body 上加 .theme-dark） */
.theme-dark {
  --primary-gradient: linear-gradient(120deg, #1d8cf8, #3358f4);
  --primary-gradient-nav: linear-gradient(135deg, rgba(45, 156, 251, 0.25) 0%, rgba(103, 132, 255, 0.2) 100%);
  --primary-gradient-nav-hover: linear-gradient(135deg, rgba(45, 156, 251, 0.4) 0%, rgba(103, 132, 255, 0.35) 100%);
  --border-color: rgba(103, 132, 255, 0.35);
  --border-color-strong: rgba(103, 132, 255, 0.5);
  --shadow-header: 0 18px 45px rgba(4, 12, 42, 0.7);
  --shadow-nav: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(103, 132, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.8);
  --color-text: #e5ecff;
  --color-text-muted: #7f8bb5;
  --color-link: #e0e8ff;
  --color-bg-body: radial-gradient(circle at top left, #1f3b7c 0, #0b1020 45%, #05060a 100%);
  --color-bg-nav: linear-gradient(135deg, rgba(15, 25, 50, 0.95) 0%, rgba(20, 35, 65, 0.95) 100%);
  --color-bg-input: linear-gradient(180deg, #252f52 0%, #1c2542 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.62;
  letter-spacing: 0.01em;
  background: var(--color-bg-body);
  color: var(--color-text);
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: var(--space-nav-height);
  padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px)); /* 页脚与安全区 */
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(155, 168, 240, 0.28);
  color: var(--color-text);
}

.container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: var(--space-container-pad);
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--layout-section-gap);
}

/* 项目列表 / 管理 / 常购等：主内容区整体包边（header、nav 仍贴容器全宽） */
#mainContent.container > .content,
#pageContent.container > .content {
  padding: clamp(14px, 2.5vw, 22px) clamp(14px, 2.8vw, 24px) clamp(16px, 2.8vw, 26px);
  border-radius: var(--radius-lg, 22px);
  border: 1px solid rgba(110, 130, 200, 0.22);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(250, 251, 255, 0.95) 45%,
    rgba(246, 248, 252, 0.98) 100%
  );
  box-shadow:
    0 4px 28px rgba(72, 88, 128, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.88) inset;
  margin-top: 2px;
  box-sizing: border-box;
}

/* 避免与外层包边叠成双层厚卡片（项目列表、常购等） */
#pageContent .equipment-list {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

/* 表格容器：移动端横向滚动 */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
}

table {
  border-radius: var(--radius-md);
  overflow: hidden;
}

header {
  position: relative;
  background: var(--primary-gradient);
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-header);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

header::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 60%);
  opacity: 0.7;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.125rem;
  z-index: 1;
}

.brand-logo {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(80, 100, 140, 0.18);
  background: transparent;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text h1 {
  font-size: var(--font-size-h1);
  letter-spacing: 0.03em;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.brand-text p {
  font-size: 0.95rem;
  opacity: 0.94;
  font-weight: 400;
}

/* 页脚：使用 relative，避免固定定位遮挡内容与滚动穿透 */
.footer {
  position: relative;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  margin-top: auto;
  text-align: center;
  padding: 0.75rem 1.25rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  background: transparent;
  z-index: 100;
}

.footer-beian {
  margin: 0.25rem 0 0;
}

.footer-beian a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-beian a:hover {
  color: var(--color-link);
}

.footer-beian-icon {
  vertical-align: middle;
  margin-right: 4px;
}

/* 顶部导航栏：z-index 10000，保证在弹窗之下（弹窗 10100+） */
.global-top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: var(--space-nav-height);
  background: var(--color-bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.global-top-nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.global-top-nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.global-top-nav .btn-back-previous,
.global-top-nav .btn-back-home {
  position: static;
  padding: 0.625rem 1.125rem;
  border-radius: 0.625rem;
  border: 1px solid var(--border-color-strong);
  background: var(--primary-gradient-nav);
  color: var(--color-link);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  box-shadow: var(--shadow-btn);
}

.global-top-nav .btn-back-previous:hover,
.global-top-nav .btn-back-home:hover {
  background: var(--primary-gradient-nav-hover);
  border-color: rgba(155, 168, 230, 0.4);
  color: #4a6288;
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover);
}

.global-top-nav a:not(.btn-back-previous):not(.btn-back-home),
.global-top-nav button:not(.gt-logout) {
  color: var(--color-link);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  padding: 0.625rem 1.125rem;
  border-radius: 0.625rem;
  border: 1px solid var(--border-color-strong);
  background: var(--primary-gradient-nav);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  font-family: inherit;
}

.global-top-nav a:not(.btn-back-previous):not(.btn-back-home):hover,
.global-top-nav button:not(.gt-logout):hover {
  color: #4a6288;
  background: var(--primary-gradient-nav-hover);
  border-color: rgba(155, 168, 230, 0.4);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover);
}

.global-top-nav .gt-logout {
  padding: 0.625rem 1.125rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 138, 122, 0.45);
  background: rgba(255, 138, 122, 0.12);
  color: #c74a3a;
  box-shadow: var(--shadow-btn);
}

.global-top-nav .gt-logout:hover {
  background: rgba(255, 138, 122, 0.22);
  color: #c74a3a;
  border-color: #ff8a7a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover);
}

.global-top-nav .gt-account {
  color: var(--color-text);
  padding: 0 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn-back-previous:not(.global-top-nav .btn-back-previous) {
  display: none !important;
}

.global-top-right:not(.global-top-nav) {
  display: none !important;
}

/* 弹窗/遮罩建议 z-index >= 10100，下拉菜单 10050，避免被导航遮挡 */
.confirm-mask,
.form-container,
.announcement-modal-wrap {
  z-index: 10100;
}

/* ========== 公共确认弹窗与按钮（管理、项目详情、常购器材共用，使用 CSS 变量） ========== */
.confirm-mask {
  position: fixed;
  inset: 0;
  background: var(--modal-mask-bg, rgba(44, 62, 79, 0.4));
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  display: none;
  opacity: 0;
  transition: opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.confirm-mask.confirm-open {
  opacity: 1;
}
.confirm-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.94) translateY(6px);
  z-index: 10101;
  width: min(420px, calc(100vw - 28px));
  min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(252, 253, 255, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(110, 130, 200, 0.22);
  border-radius: var(--radius-lg, 24px);
  box-shadow: var(--shadow-modal, 0 24px 56px rgba(30, 40, 62, 0.16));
  padding: 0;
  display: none;
  opacity: 0;
  overflow: hidden;
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.confirm-dialog::before {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #8eb0ff 0%, #9b94f0 50%, #a89eff 100%);
  opacity: 0.92;
}
.confirm-dialog.confirm-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) translateY(0);
}
.confirm-dialog .confirm-content {
  padding: 20px 24px 22px;
}
.confirm-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin-bottom: 10px;
}
.confirm-message {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.58;
  margin-bottom: 0;
  max-height: min(42vh, 220px);
  overflow-y: auto;
  word-break: break-word;
  padding-right: 6px;
  scrollbar-width: thin;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 18px;
}
.confirm-actions .btn-cancel {
  padding: 10px 20px;
  border-radius: var(--radius-round, 999px);
  border: 1px solid rgba(120, 135, 185, 0.28);
  background: rgba(248, 249, 252, 0.95);
  color: #4a6288;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.confirm-actions .btn-cancel:hover {
  background: rgba(155, 168, 230, 0.12);
  border-color: rgba(155, 168, 230, 0.45);
  color: #3d5280;
}
.confirm-actions .btn-cancel:active {
  transform: scale(0.98);
}
.confirm-actions .btn-delete {
  padding: 10px 20px;
  border-radius: var(--radius-round, 999px);
  border: 1px solid rgba(255, 138, 122, 0.5);
  background: linear-gradient(180deg, rgba(255, 248, 247, 0.98) 0%, rgba(255, 236, 232, 0.95) 100%);
  color: #c74a3a;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.confirm-actions .btn-delete:hover {
  background: rgba(255, 138, 122, 0.18);
  border-color: #ff8a7a;
  box-shadow: 0 4px 14px rgba(255, 120, 100, 0.2);
  color: #b33a2e;
}
.confirm-actions .btn-delete:active {
  transform: scale(0.98);
}
.confirm-actions .btn-confirm {
  padding: 10px 22px;
  border-radius: var(--radius-round, 999px);
  border: 1px solid rgba(142, 176, 255, 0.55);
  background: var(--primary-gradient-btn, linear-gradient(135deg, #8eb0ff, #9b94f0));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(107, 140, 230, 0.28);
  transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.confirm-actions .btn-confirm:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 20px rgba(107, 140, 230, 0.35);
}
.confirm-actions .btn-confirm:active {
  transform: scale(0.98);
}

/* 右上角账户名悬停弹窗（只读详情，与管理页样式一致） */
.account-popup {
  position: fixed;
  z-index: 99999;
  min-width: min(300px, calc(100vw - 24px));
  max-width: min(380px, calc(100vw - 20px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(252, 253, 255, 0.97) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(110, 130, 200, 0.24);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal, 0 20px 48px rgba(30, 40, 62, 0.14)), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  padding: 0;
  pointer-events: none;
  overflow: hidden;
}
.account-popup[aria-hidden="false"] {
  pointer-events: auto;
}
.account-popup-inner {
  padding: 20px 22px 18px;
  position: relative;
}
.account-popup-inner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8eb0ff 0%, #9b94f0 55%, #7ec8e8 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.account-popup-title {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 14px;
  margin-top: 4px;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.account-popup-row {
  margin-bottom: 11px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}
.account-popup-row:last-of-type {
  margin-bottom: 0;
}
.account-popup-row strong {
  color: #5b6e8c;
  margin-right: 8px;
  font-weight: 600;
  font-size: 0.82rem;
}
.account-popup-projects {
  display: block;
  margin-top: 6px;
  word-break: break-word;
  max-height: 96px;
  overflow-y: auto;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(110, 130, 200, 0.06);
  border: 1px solid rgba(110, 130, 200, 0.12);
  color: var(--color-text-muted);
  scrollbar-width: thin;
}
.account-popup-actions {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(103, 132, 255, 0.18);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.account-popup-actions .btn-action {
  padding: 9px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-round, 999px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.account-popup-actions .btn-action:active {
  transform: scale(0.98);
}
.account-popup-actions .btn-delete {
  color: #c74a3a;
  border: 1px solid rgba(255, 138, 122, 0.45);
  background: rgba(255, 138, 122, 0.1);
}
.account-popup-actions .btn-delete:hover {
  background: rgba(255, 138, 122, 0.18);
  border-color: rgba(255, 138, 122, 0.55);
}
.gt-account.account-name-trigger:hover {
  color: var(--color-link);
}

/* ========== 全局卡片 / 表单 / 按钮（浅色柔和） ========== */
.detail-section,
.equipment-list,
.manage-section table,
.home-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(120, 135, 185, 0.14);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

/* 常用区块统一更圆润的视觉 */
.manage-section,
.form-content,
.project-picker-dialog,
.announcement-form-panel,
.mat-equipment-picker-dialog,
.changelog-panel,
.announcement-modal-dialog {
  border-radius: var(--radius-lg);
}

.detail-section,
.equipment-list,
.home-card {
  padding: var(--layout-card-pad);
}

/* 高级留白：统一区块内部的垂直节奏 */
.detail-section > * + *,
.equipment-list > * + *,
.home-card > * + * {
  margin-top: var(--layout-block-gap);
}

.detail-section h2,
.equipment-list h2,
.home-card h2,
.manage-section h2 {
  margin-bottom: 0.75rem;
}

.detail-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.table-wrap {
  margin-top: 0.5rem;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
textarea,
select {
  background: var(--color-bg-input);
  border: 1px solid rgba(120, 135, 185, 0.22);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):focus,
textarea:focus,
select:focus {
  border-color: rgba(155, 148, 220, 0.55);
  box-shadow: 0 0 0 3px rgba(155, 168, 235, 0.2);
  outline: none;
}

/* Pretext（assets/common/pretextAutosize.js）：按内容设高，避免纵向拉伸与反复 reflow */
textarea.pretext-autosize {
  resize: none;
  overflow-y: hidden;
  box-sizing: border-box;
}

.btn-action {
  border-radius: var(--radius-round);
  padding: 8px 18px;
  font-weight: 500;
  background: rgba(130, 150, 200, 0.07);
  border: 1px solid rgba(120, 135, 185, 0.22);
  color: #4a6288;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-action:hover {
  background: rgba(155, 168, 230, 0.14);
  border-color: rgba(155, 148, 220, 0.35);
  transform: translateY(-1px);
}

.btn-confirm {
  background: rgba(155, 168, 230, 0.16);
  border-color: rgba(155, 168, 230, 0.4);
  color: #5a58a8;
}

.btn-delete {
  background: rgba(255, 138, 122, 0.12);
  border-color: rgba(255, 138, 122, 0.45);
  color: #c74a3a;
}

th {
  background: rgba(155, 168, 230, 0.1);
  color: #4a5a72;
  font-weight: 600;
}

tbody tr:hover {
  background: rgba(155, 168, 230, 0.06);
}

/* 全局 Toast（ui.js）：深色半透明条，与浅色页面对比清晰 */
.global-toast {
  background: rgba(55, 65, 78, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-round);
  color: rgba(255, 255, 255, 0.96);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(50, 60, 80, 0.15);
}

.global-toast-success {
  border-color: rgba(126, 240, 196, 0.45);
  color: #d4ffe9;
}

.global-toast-error {
  border-color: rgba(255, 154, 170, 0.45);
  color: #ffe0e5;
}

.global-toast-warning {
  border-color: rgba(255, 214, 120, 0.5);
  color: #fff4d4;
}

.global-toast-info {
  border-color: rgba(180, 196, 232, 0.45);
  color: #e8eeff;
}

@media (max-width: 48rem) {
  .global-top-nav {
    padding: 0 0.75rem;
    height: 3.5rem;
  }

  .global-top-nav-left,
  .global-top-nav-right {
    gap: 0.5rem;
  }

  .global-top-nav a,
  .global-top-nav button,
  .global-top-nav .btn-back-previous,
  .global-top-nav .btn-back-home {
    padding: 0.375rem 0.75rem;
    font-size: var(--font-size-xs);
  }

  .global-top-nav .gt-account {
    font-size: var(--font-size-xs);
    padding: 0 0.5rem;
    max-width: 38vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body {
    padding-top: 3.5rem;
    padding-bottom: calc(2.75rem + env(safe-area-inset-bottom, 0px));
  }

  .container {
    padding: 1.25rem 0.875rem 1.125rem;
    padding-left: max(0.875rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.875rem, env(safe-area-inset-right, 0px));
  }

  .content {
    gap: 0.875rem;
  }

  .detail-section,
  .equipment-list,
  .home-card {
    padding: 0.95rem;
  }

  header {
    padding: 1.375rem 1.125rem;
    border-radius: 0.875rem;
  }

  header .brand-text h1 {
    font-size: 1.9rem;
  }
}
