:root {
  color-scheme: light;
  --ink: #142033;
  --muted: #64748b;
  --line: #dfe7f1;
  --surface: #ffffff;
  --canvas: #f2f6fb;
  --primary: #0b63ce;
  --primary-deep: #073f91;
  --green: #15945b;
  --amber: #d97706;
  --red: #c2413b;
  --shadow: 0 16px 40px rgba(16, 40, 80, .09);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--canvas);
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--canvas); }
body { -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
[hidden] { display: none !important; }

.login-view {
  min-height: 100dvh; padding: max(30px, env(safe-area-inset-top)) 22px max(30px, env(safe-area-inset-bottom));
  display: grid; place-items: center; overflow: auto;
  background:
    radial-gradient(circle at 10% 0%, rgba(41, 130, 255, .26), transparent 40%),
    linear-gradient(145deg, #071a3b 0%, #0b3973 55%, #1676db 100%);
}
.login-card {
  width: min(100%, 440px); padding: 34px 26px 26px; border-radius: 32px; background: rgba(255,255,255,.98);
  box-shadow: 0 30px 80px rgba(0, 19, 55, .34);
}
.login-logo { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 10px 24px rgba(7,80,173,.2); }
.eyebrow { margin: 0 0 6px; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.login-card h1 { margin: 14px 0 10px; font-size: 30px; letter-spacing: -.04em; }
.login-copy { margin: 0 0 26px; color: var(--muted); line-height: 1.65; }
.login-form { display: grid; gap: 15px; }
.login-form label, .field-card { display: grid; gap: 8px; }
.login-form label > span:first-child, .field-card > span { font-size: 13px; font-weight: 750; }
.auth-view { min-width: 0; }
.auth-method-tabs {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; margin: 0 0 18px; padding: 4px;
  border-radius: 15px; background: #e9f0f8;
}
.auth-method-tabs button {
  min-width: 0; min-height: 44px; padding: 9px 8px; border: 0; border-radius: 12px;
  color: #65768c; background: transparent; font-weight: 800;
}
.auth-method-tabs button.active { color: var(--primary); background: #fff; box-shadow: 0 4px 14px rgba(20,45,80,.09); }
.auth-panel { min-width: 0; }
.auth-form-actions { min-height: 20px; display: flex; justify-content: flex-end; margin: -6px 0 -2px; }
.auth-link,.auth-back {
  min-height: 44px; padding: 6px 2px; border: 0; color: var(--primary); background: transparent; font-weight: 750;
}
.auth-back { margin: -8px 0 2px; }
.verification-row { display: grid; grid-template-columns: minmax(0,1fr) 112px; gap: 9px; min-width: 0; }
.verification-row input { min-width: 0; }
.verification-button {
  min-width: 0; min-height: 50px; padding: 8px; border: 1px solid #b9d4f3; border-radius: 15px;
  color: var(--primary); background: #edf5ff; font-size: 13px; font-weight: 800; white-space: nowrap;
}
.verification-button:disabled { color: #7b8999; border-color: #d6e0ea; background: #eef2f6; cursor: wait; }
.auth-error {
  margin: -3px 0 0; padding: 10px 12px; border: 1px solid #efc3bf; border-radius: 12px;
  color: #a93630; background: #fff4f3; font-size: 12px; font-weight: 700; line-height: 1.5;
}
.alternative-auth { display: grid; gap: 10px; margin-top: 18px; }
.auth-divider { display: flex; align-items: center; gap: 10px; color: #8795a7; font-size: 11px; }
.auth-divider::before,.auth-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.auth-provider-button {
  min-height: 48px; border: 1px solid #d3dfec; border-radius: 15px; color: #334155; background: #fff; font-weight: 800;
}
.wechat-login-button { color: #147a45; border-color: #bfe2ce; background: #f2fbf6; }
.qq-login-button { color: #1769a8; border-color: #bedaf0; background: #f2f8fd; }
.auth-provider-button:disabled { opacity: .55; cursor: wait; }
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}
input, textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 15px; padding: 14px 15px; background: #f9fbfe;
  color: var(--ink); outline: none; resize: vertical;
}
input:focus, textarea:focus, select:focus { border-color: #65a8f4; box-shadow: 0 0 0 4px rgba(11,99,206,.1); background: #fff; }
.primary-button, .secondary-button, .danger-button {
  min-height: 50px; border: 0; border-radius: 15px; font-weight: 800;
}
.primary-button { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); box-shadow: 0 10px 24px rgba(11,99,206,.24); }
.primary-button:disabled { opacity: .55; cursor: wait; }
.secondary-button { color: var(--primary); background: #edf5ff; border: 1px solid #cfe2fa; }
.danger-button { width: 100%; color: var(--red); background: #fff; border: 1px solid #f0c8c4; }
.legal-copy { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; }
button:focus-visible,a:focus-visible { outline: 3px solid rgba(101,168,244,.7); outline-offset: 2px; }

.app-shell { min-height: 100dvh; max-width: 820px; margin: 0 auto; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.app-header {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 20px 14px; background: rgba(242,246,251,.9); backdrop-filter: blur(18px);
}
.app-header h1 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--primary); font-size: 24px; box-shadow: 0 5px 16px rgba(20,32,51,.06); }
.page-stack { padding: 4px 16px 30px; }
.app-shell.subpage-active { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.app-shell.subpage-active .app-header,.app-shell.subpage-active .bottom-nav { display: none; }
.app-shell.subpage-active .page-stack { padding-top: calc(8px + env(safe-area-inset-top)); }
.page { display: none; animation: page-in .2s ease-out; }
.page.active { display: block; }
@keyframes page-in { from { opacity: .5; transform: translateY(5px); } }
.hero-card {
  min-height: 190px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 24px;
  border-radius: 28px; color: #fff; background:
    radial-gradient(circle at 90% -20%, rgba(113,183,255,.85), transparent 45%),
    linear-gradient(145deg, #071d40, #0b4f9d 70%, #147be2); box-shadow: var(--shadow);
}
.hero-kicker { margin: 0 0 8px; color: #8fd1ff; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.hero-card h2 { margin: 0; max-width: 310px; font-size: 26px; line-height: 1.2; }
.hero-card p:not(.hero-kicker) { margin: 8px 0 0; color: #d5e8ff; font-size: 13px; line-height: 1.5; }
.hero-action { min-height: 44px; border: 0; border-radius: 13px; padding: 11px 17px; color: #0b4d9d; background: #fff; font-weight: 850; }
.hero-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.hero-action-ghost { color: #fff; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.13); }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin: 14px 0 24px; }
.metric-card { min-height: 118px; padding: 17px; text-align: left; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); box-shadow: 0 8px 24px rgba(20,32,51,.05); }
.metric-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-card strong { display: block; margin: 9px 0 3px; font-size: 28px; letter-spacing: -.04em; }
.metric-card small { color: var(--primary); font-weight: 700; }
.section-block { margin-top: 20px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title h2 { margin: 0; font-size: 20px; }
.page-title { margin: 8px 2px 18px; }
.text-button { min-height: 44px; padding: 8px 10px; border: 0; background: transparent; color: var(--primary); font-weight: 750; }
.page-title-actions { display: flex; align-items: center; gap: 5px; }
.compact-primary,.subpage-back { min-height: 44px; padding: 8px 12px; border-radius: 12px; font-size: 12px; font-weight: 850; }
.compact-primary { color: #fff; border: 0; background: var(--primary); }
.subpage-back { color: var(--primary); border: 0; background: transparent; }
.list-stack { display: grid; gap: 10px; }
.list-row {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 16px;
  text-align: left; border: 1px solid var(--line); border-radius: 18px; background: #fff;
}
.list-row > span { min-width: 0; }
.list-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; background: #eef6ff; color: var(--primary); font-weight: 900; }
.list-row strong { display: block; margin-bottom: 4px; font-size: 15px; }
.list-row p { display: -webkit-box; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.list-row time, .status-badge { color: var(--amber); font-size: 11px; font-weight: 800; white-space: nowrap; }
.status-badge { padding: 6px 8px; border-radius: 999px; background: #fff4de; }
.status-badge.green { color: var(--green); background: #eaf8f0; }
.outsource-row-actions { display: grid; justify-items: end; gap: 7px; }
.outsource-share-button { min-height: 44px; padding: 5px 9px; color: var(--primary); border: 1px solid #a9caef; border-radius: 10px; background: #edf6ff; font-size: 11px; font-weight: 820; white-space: nowrap; }
.outsource-share-button:disabled { color: #8b99aa; border-color: #d6dee8; background: #eef2f6; }
.outsource-share-state { display: block; margin-top: 5px; color: #748499; font-size: 11px; line-height: 1.45; }
.outsource-revoke-button { min-height: 44px; padding: 4px 8px; color: #ad342c; border: 1px solid #e8b5b0; border-radius: 10px; background: #fff5f4; font-size: 10px; font-weight: 800; white-space: nowrap; }
.outsource-revoke-button:disabled { opacity: .55; }
.skeleton-row { height: 76px; border-radius: 18px; background: linear-gradient(100deg,#e8eef5 20%,#f7f9fc 45%,#e8eef5 70%); background-size: 220% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
.empty-state { padding: 30px 20px; text-align: center; border: 1px dashed #c9d5e5; border-radius: 18px; background: rgba(255,255,255,.5); }
.empty-state p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.field-card { padding: 15px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.field-card small { color: var(--muted); font-weight: 500; }
.field-card input, .field-card textarea { padding: 8px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.field-card select { min-height: 40px; padding: 8px 28px 8px 0; border: 0; border-radius: 0; background-color: transparent; box-shadow: none; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.report-mode { grid-template-columns: repeat(2,minmax(0,1fr)); }
.quote-identity-tip { margin: -2px 2px 13px; color: var(--muted); font-size: 11px; line-height: 1.55; }
#aiRecognitionPanel { display: grid; }
.upload-card { display: grid; place-items: center; padding: 24px 16px; border: 1.5px dashed #a9bfda; border-radius: 19px; background: #f8fbff; text-align: center; }
.upload-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-card small { margin-top: 6px; color: var(--muted); font-size: 11px; }
.upload-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 14px; color: var(--primary); background: #e6f2ff; font-size: 26px; }
.chip-list { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 13px; }
.file-chip { max-width: 230px; padding: 8px 11px; border-radius: 999px; color: #36506e; background: #eaf1f8; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#intakeForm .primary-button { width: 100%; }
.form-tip { margin: 10px 2px 0; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.55; }
.progress-card, .result-card { margin-top: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.progress-card { display: flex; align-items: center; gap: 14px; }
.progress-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.spinner { width: 28px; height: 28px; flex: 0 0 auto; border: 3px solid #dcecff; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-dot { color: var(--green); font-size: 12px; font-weight: 800; }
.analysis-content { color: #334155; font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.analysis-grid { display: grid; grid-template-columns: 88px 1fr; gap: 8px 10px; }
.analysis-grid dt { color: var(--muted); }
.analysis-grid dd { margin: 0; font-weight: 700; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.result-actions:has(> :only-child) { grid-template-columns: 1fr; }
.ai-quote-terms { display: grid; gap: 8px; margin-top: 15px; padding: 13px; border: 1px solid #d5e5f5; border-radius: 15px; background: #f5faff; }
.ai-quote-terms label { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 12px; }
.ai-quote-terms label > span { color: var(--ink); font-size: 12px; font-weight: 850; white-space: nowrap; }
.ai-quote-terms select { min-height: 44px; padding: 8px 30px 8px 11px; background-color: #fff; font-size: 12px; }
.ai-quote-terms p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.ai-result-actions > button { width: 100%; }
.ai-copy-reply { width: 100%; margin-top: 4px; }
.image-intro-card {
  display: flex; align-items: flex-start; gap: 13px; margin-bottom: 12px; padding: 16px;
  border-radius: 19px; color: #fff; background: linear-gradient(135deg,#092d62,#0b68cd);
}
.image-intro-card > span {
  width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 12px; color: #0b4d9d; background: #fff; font-size: 12px; font-weight: 900;
}
.image-intro-card strong { display: block; font-size: 16px; }
.image-intro-card p { margin: 5px 0 0; color: #d8ebff; font-size: 12px; line-height: 1.55; }
.image-upload-card { margin-bottom: 10px; }
.image-reference-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-bottom: 14px; }
.image-reference-card { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 16px; background: #eaf1f8; }
.image-reference-card img { width: 100%; height: 100%; display: block; object-fit: cover; }
.image-reference-card button {
  position: absolute; top: 6px; right: 6px; width: 29px; height: 29px; border: 0; border-radius: 50%;
  color: #fff; background: rgba(20,32,51,.78); font-size: 20px; line-height: 1;
}
.image-prompt-card { margin-top: 10px; }
.image-options { display: grid; gap: 12px; margin: 14px 0; }
.image-options fieldset { min-width: 0; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.image-options legend { padding: 0 5px; color: #334155; font-size: 12px; font-weight: 800; }
.option-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.option-chips button {
  padding: 9px 11px; border: 1px solid #d6e2ef; border-radius: 12px; color: #61738a; background: #fff;
  font-size: 12px; font-weight: 800;
}
.option-chips button.active { color: var(--primary); border-color: #79b1ef; background: #eaf4ff; }
.image-generate-button { width: 100%; }
.image-result-card { margin-top: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.image-result-card > img { width: 100%; display: block; border-radius: 15px; background: #edf2f7; }
.image-result-meta { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.image-link-button { display: grid; place-items: center; }
.report-form { margin-top: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 10px 28px rgba(20,32,51,.05); }
.report-title { align-items: flex-start; padding-bottom: 5px; }
.required-badge { padding: 6px 9px; border-radius: 999px; color: #9a5b00; background: #fff1d6; font-size: 11px; font-weight: 800; white-space: nowrap; }
#submitReportButton { width: 100%; }
.quote-step-card { margin: 14px -3px 0; padding: 16px; border: 1px solid #dce7f3; border-radius: 20px; background: #f8fbff; }
.quote-step-heading { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 13px; }
.quote-step-heading > span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--primary); font-size: 12px; font-weight: 900; }
.quote-step-heading strong { display: block; font-size: 15px; line-height: 1.35; }
.quote-step-heading small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.quote-product-heading > div { min-width: 0; flex: 1 1 auto; }
.quote-manage-products { flex: 0 0 auto; min-height: 36px; padding: 5px 2px; font-size: 11px; }
.quote-search-card { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 0 12px; border: 1px solid #d7e3f0; border-radius: 14px; background: #fff; }
.quote-search-card > span { color: var(--primary); font-size: 21px; font-weight: 900; }
.quote-search-card input { height: 45px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.quote-scroll-chips { display: flex; gap: 7px; overflow-x: auto; padding: 2px 1px 9px; scrollbar-width: none; }
.quote-scroll-chips::-webkit-scrollbar { display: none; }
.quote-scroll-chips button, .quote-option-chips button { min-height: 44px; flex: 0 0 auto; padding: 9px 11px; border: 1px solid #d2dfed; border-radius: 12px; color: #586d85; background: #fff; font-size: 12px; font-weight: 800; }
.quote-scroll-chips button.active, .quote-option-chips button.active { color: var(--primary); border-color: #75adeb; background: #e9f4ff; box-shadow: 0 3px 10px rgba(11,99,206,.08); }
.quote-product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; max-height: 270px; overflow-y: auto; }
.quote-product-grid button { min-height: 44px; padding: 8px; border: 1px solid #d7e3f0; border-radius: 13px; color: #3f536a; background: #fff; font-size: 12px; font-weight: 800; }
.quote-product-grid button.active { color: #fff; border-color: var(--primary); background: var(--primary); box-shadow: 0 8px 18px rgba(11,99,206,.2); }
.quote-product-empty { grid-column: 1/-1; padding: 17px; color: var(--muted); text-align: center; border: 1px dashed #c7d6e6; border-radius: 14px; background: #fff; font-size: 12px; line-height: 1.6; }
.quote-selected-summary, .quote-submit-summary { margin-top: 11px; padding: 12px 13px; border-radius: 14px; color: #3c5571; background: #eaf2fb; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.quote-selected-summary strong { color: var(--ink); font-size: 13px; }
.quote-option-groups { display: grid; gap: 11px; }
.quote-option-group { margin: 0; padding: 13px; border: 1px solid #d9e4ef; border-radius: 16px; background: #fff; }
.quote-option-group.is-invalid { border-color: #df7a72; box-shadow: 0 0 0 3px rgba(194,65,59,.08); }
.quote-step-card.is-invalid { border-color: #df7a72; box-shadow: 0 0 0 3px rgba(194,65,59,.08); }
.quote-option-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.quote-option-head strong { font-size: 13px; }
.quote-option-head span { color: var(--muted); font-size: 10px; font-weight: 800; }
.quote-option-head span.required { color: #a55216; }
.quote-option-head-actions { display: flex; align-items: center; gap: 8px; }
.quote-option-head-actions button { min-height: 44px; padding: 5px 8px; border: 1px solid #bed5ee; border-radius: 9px; color: var(--primary); background: #f2f8ff; font-size: 10px; font-weight: 850; }
.quote-option-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.quote-option-custom { margin-top: 9px; padding: 11px 12px; border-radius: 12px; font-size: 13px; }
.quote-option-custom-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 9px; }
.quote-option-custom-row .quote-option-custom { grid-column: 1 / -1; min-width: 0; margin-top: 0; }
.quote-option-custom-confirm { min-width: 64px; min-height: 44px; padding: 8px 13px; border: 0; border-radius: 12px; color: #fff; background: var(--primary); font-size: 12px; font-weight: 850; }
.quote-option-custom-save { min-width: 64px; min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--primary); background: #fff; font-size: 12px; font-weight: 850; }
.quote-option-custom-save:disabled { color: var(--muted); background: #f3f5f8; cursor: not-allowed; }
.quote-option-custom-hint { margin: 6px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.mobile-inline-price-editor { min-width: 0; margin-top: 10px; border: 1px solid #b8d2ed; border-radius: 13px; background: #f5faff; overflow: hidden; }
.mobile-inline-price-editor > summary { min-width: 0; min-height: 44px; display: grid; grid-template-columns: minmax(0,1fr); gap: 2px; padding: 9px 34px 9px 11px; color: #3d5c7c; cursor: pointer; position: relative; list-style: none; }
.mobile-inline-price-editor > summary::-webkit-details-marker { display: none; }
.mobile-inline-price-editor > summary::after { content: "＋"; position: absolute; right: 11px; top: 50%; color: var(--primary); font-size: 17px; font-weight: 900; transform: translateY(-50%); }
.mobile-inline-price-editor[open] > summary::after { content: "－"; }
.mobile-inline-price-editor > summary span { color: var(--muted); font-size: 10px; font-weight: 800; }
.mobile-inline-price-editor > summary strong { min-width: 0; color: var(--primary); font-size: 12px; overflow-wrap: anywhere; }
.mobile-inline-price-fields { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr); gap: 9px; padding: 1px 11px 9px; }
.mobile-inline-price-fields label { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr); gap: 5px; color: #536b84; font-size: 10px; font-weight: 800; }
.mobile-inline-price-fields input,.mobile-inline-price-fields select { width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0 10px; border-radius: 10px; background: #fff; font-size: 13px; }
.mobile-inline-price-editor > p { margin: 0; padding: 0 11px 9px; color: #687f96; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.mobile-inline-price-actions { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr); gap: 7px; padding: 0 11px 11px; }
.mobile-inline-price-actions button { width: 100%; min-width: 0; min-height: 44px; margin: 0; }
.formal-pricebook-actions { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr); gap: 7px; }
.formal-pricebook-actions button { min-width: 0; width: 100%; min-height: 44px; white-space: normal; overflow-wrap: anywhere; }
.quote-option-manager { display: grid; gap: 9px; margin-top: 11px; padding: 11px; border: 1px solid #c9ddf2; border-radius: 14px; background: #f6faff; }
.quote-option-manager > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.quote-option-add-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.quote-option-add-row input { min-width: 0; height: 44px; padding: 0 10px; border-radius: 10px; background: #fff; font-size: 12px; }
.quote-option-add-row button { min-width: 58px; min-height: 44px; border: 0; border-radius: 10px; color: #fff; background: var(--primary); font-size: 11px; font-weight: 850; }
.quote-option-manage-list { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.quote-option-manage-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 8px 9px; border: 1px solid #dce7f2; border-radius: 11px; background: #fff; }
.quote-option-manage-row span { min-width: 0; }
.quote-option-manage-row strong,.quote-option-manage-row small { display: block; overflow-wrap: anywhere; }
.quote-option-manage-row strong { color: var(--ink); font-size: 11px; }
.quote-option-manage-row small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.quote-option-manage-row button,.quote-option-restore { min-height: 44px; padding: 6px 9px; border: 1px solid #efc8c4; border-radius: 9px; color: #a63a32; background: #fff8f7; font-size: 10px; font-weight: 850; }
.quote-option-restore { justify-self: start; border-color: #bad4ed; color: var(--primary); background: #f3f8ff; }
.quote-quantity-field { margin: 2px 0 0; }
.quote-custom-panel { margin-top: 14px; border: 1px solid #dce5ef; border-radius: 17px; background: #fff; }
.quote-custom-panel > summary { padding: 14px 15px; color: #536a83; font-size: 12px; font-weight: 800; cursor: pointer; }
.quote-custom-fields { padding: 0 12px 3px; }
.quote-custom-panel[open] { border-color: #a8c9ed; background: #f8fbff; }
.quote-freight-note { margin: 0; padding: 11px 13px; border-radius: 13px; color: #73520d; background: #fff5dc; font-size: 12px; font-weight: 750; }
.quote-submit-summary { margin: 14px 0 12px; color: #31547a; background: #edf6ff; }
.quote-submit-summary.is-invalid { color: #9d342e; background: #fff0ee; }
.formal-production-inputs { display: grid; gap: 10px; margin-top: 14px; padding: 15px; border: 1px solid #efc57b; border-radius: 18px; background: #fffaf0; }
.formal-production-inputs > p { margin: -5px 1px 1px; color: #775b2b; font-size: 10px; line-height: 1.55; }
.formal-production-inputs .quote-step-heading { margin-bottom: 1px; }
.formal-production-inputs .quote-step-heading > span { background: #c97908; }
#retryFormalQuoteButton { width: 100%; }
.formal-production-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.formal-production-fields .field-card { min-width: 0; margin: 0; padding: 12px; }
.formal-production-fields .field-card small { display: block; color: #7a6a4e; font-size: 9px; line-height: 1.45; }
.formal-production-fields input,.formal-production-fields select { min-width: 0; min-height: 44px; }
.formal-production-fields .formal-field-readonly { grid-column: 1/-1; display: grid; gap: 8px; padding: 12px; border: 1px solid #e8b85f; border-radius: 14px; background: #fff4d7; }
.formal-field-readonly > span { color: #7b5004; font-size: 11px; font-weight: 850; }
.formal-field-readonly > strong { color: #5c4a2d; font-size: 11px; line-height: 1.55; }
.formal-field-readonly-summary > small { color: #725d3b; font-size: 10px; line-height: 1.55; }
.formal-field-readonly .compact-button { width: auto; justify-self: start; padding: 8px 11px; font-size: 10px; }
.formal-editable-details { grid-column: 1/-1; overflow: hidden; border: 1px solid #ead2a4; border-radius: 14px; background: #fffdf8; }
.formal-editable-details > summary { min-height: 44px; padding: 13px; color: #704d13; font-size: 11px; font-weight: 850; cursor: pointer; }
.formal-editable-details > p { margin: -4px 13px 11px; color: #826f4e; font-size: 9px; line-height: 1.5; }
.formal-editable-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 0 10px 10px; }
.formal-unpriced-intro { display: grid; gap: 5px; padding: 12px 13px; border: 1px solid #efc679; border-radius: 14px; color: #68440a; background: #fff7e7; }
.formal-unpriced-intro[hidden] { display: none; }
.formal-unpriced-intro strong { font-size: 12px; }
.formal-unpriced-intro small { color: #856a3d; font-size: 10px; line-height: 1.55; }
.formal-unpriced-fields { display: grid; gap: 10px; }
.formal-unpriced-card { display: grid; gap: 11px; padding: 13px; border: 1px solid #e7cf9f; border-radius: 15px; background: #fffdf8; }
.formal-unpriced-heading { display: grid; gap: 9px; }
.formal-unpriced-heading strong,.formal-unpriced-heading small { display: block; }
.formal-unpriced-heading strong { color: #3f3422; font-size: 12px; }
.formal-unpriced-heading small { margin-top: 4px; color: #826f4e; font-size: 10px; line-height: 1.5; }
.formal-unpriced-modes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.formal-unpriced-modes button { min-height: 38px; padding: 7px; border: 1px solid #c8d9eb; border-radius: 10px; color: #41607f; background: #fff; font-size: 10px; font-weight: 800; }
.formal-unpriced-modes button.active { color: #fff; border-color: var(--primary); background: var(--primary); }
.formal-unpriced-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.formal-unpriced-field { display: grid; gap: 5px; min-width: 0; color: #65758a; font-size: 9px; font-weight: 750; }
.formal-unpriced-field input,.formal-unpriced-field select { width: 100%; min-width: 0; min-height: 39px; box-sizing: border-box; padding: 8px 9px; border: 1px solid #d2dfec; border-radius: 10px; color: #20344d; background: #fff; font-size: 12px; }
.formal-unpriced-reason { grid-column: 1/-1; }
.formal-reference-panel { display:grid; gap:10px; padding:14px; border:1px solid #efb43d; border-radius:16px; background:#fff8e8; }
.formal-reference-panel > strong { color:#5f4005; font-size:13px; }
.formal-reference-panel > p { margin:0; color:#8a5b08; font-size:11px; line-height:1.55; font-weight:750; }
.formal-reference-card { display:grid; gap:8px; padding:11px; border:1px solid #efd59d; border-radius:12px; background:#fff; }
.formal-reference-card > strong { color:#263a51; font-size:11px; }
.formal-reference-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.formal-reference-field { display:grid; gap:5px; color:#6a7787; font-size:9px; font-weight:700; }
.formal-reference-field input { width:100%; min-width:0; box-sizing:border-box; min-height:38px; padding:8px; border:1px solid #cfdae7; border-radius:9px; background:#fff; color:#1e3046; font-size:12px; }
.formal-quote-result { display: grid; gap: 13px; margin-top: 16px; padding: 16px; border: 1px solid #b9d6f3; border-radius: 20px; background: #f7fbff; }
.formal-quote-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.formal-quote-head h3 { margin: 0; font-size: 19px; }
.formal-quote-badge { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; color: #0b6c43; background: #e4f7ed; font-size: 10px; font-weight: 850; }
.formal-quote-badge.pending { color: #955c06; background: #fff0cf; }
.formal-quote-version { margin: -4px 0 0; color: #62758b; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.formal-quote-price-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.formal-price-card { min-width: 0; padding: 13px; border: 1px solid #d7e5f3; border-radius: 15px; background: #fff; }
.formal-price-card.internal { grid-column: 1/-1; color: #fff; border-color: #13233a; background: #13233a; }
.formal-price-card span,.formal-price-card small { display: block; }
.formal-price-card span { color: #60758c; font-size: 10px; font-weight: 800; }
.formal-price-card.internal span,.formal-price-card.internal small { color: #bdd0e5; }
.formal-price-card strong { display: block; margin: 5px 0 3px; color: #142033; font-size: 22px; letter-spacing: -.03em; overflow-wrap: anywhere; }
.formal-price-card.customer strong { color: #075bb8; }
.formal-price-card.internal strong { color: #fff; font-size: 25px; }
.formal-price-card small { color: #8392a5; font-size: 9px; }
.formal-quote-edit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.formal-quote-edit-grid .field-card { min-width: 0; margin: 0; padding: 12px; }
.formal-quote-edit-grid input { min-width: 0; font-size: 17px; font-weight: 800; }
.formal-quote-edit-grid .formal-quote-reason { grid-column: 1 / -1; }
.formal-quote-edit-note { margin: -4px 1px 0; color: #65788e; font-size: 10px; line-height: 1.55; }
.formal-quote-message { padding: 12px 13px; border-radius: 14px; color: #6e4d0c; background: #fff4d9; }
.formal-quote-message.missing { color: #89372f; background: #fff0ee; }
.formal-quote-message.excluded { color: #604b2e; background: #f4efe7; }
.formal-quote-message strong { font-size: 11px; }
.formal-quote-message ul { margin: 7px 0 0; padding-left: 18px; font-size: 10px; line-height: 1.65; }
.formal-quote-breakdown { border: 1px solid #d7e4f1; border-radius: 14px; background: #fff; }
.formal-quote-breakdown summary { padding: 12px 13px; color: var(--primary); font-size: 11px; font-weight: 850; cursor: pointer; }
.formal-quote-breakdown > div { display: grid; gap: 0; padding: 0 12px 10px; }
.formal-breakdown-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 9px 1px; border-top: 1px solid #edf1f6; font-size: 10px; }
.formal-breakdown-row span { min-width: 0; color: #52677e; overflow-wrap: anywhere; }
.formal-breakdown-row strong { white-space: nowrap; }
.formal-breakdown-row small { grid-column: 1/-1; color: #8795a6; }
.formal-quote-next-step { padding-top: 3px; border-top: 1px solid #dbe7f3; }
.formal-quote-next-step .quote-step-heading { margin: 10px 0; }
.formal-sample-choice { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.formal-sample-choice button { min-height: 46px; padding: 9px; border: 1px solid #bfd4ec; border-radius: 13px; color: #49637f; background: #fff; font-size: 11px; font-weight: 850; }
.formal-sample-choice button.active { color: #fff; border-color: var(--primary); background: var(--primary); box-shadow: 0 7px 16px rgba(11,99,206,.18); }
#confirmFormalQuoteButton { width: 100%; }
@media (max-width: 390px) {
  .formal-quote-edit-grid,.formal-sample-choice,.formal-production-fields,.formal-editable-fields,.formal-unpriced-grid,.formal-reference-grid { grid-template-columns: 1fr; }
}
.segmented-control { display: grid; grid-template-columns: repeat(3,1fr); padding: 4px; margin-bottom: 15px; border-radius: 14px; background: #e6edf6; }
.segmented-control button { min-height: 44px; padding: 10px 5px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; }
.segmented-control button.active { color: var(--primary); background: #fff; box-shadow: 0 3px 10px rgba(20,32,51,.08); }
.segmented-control.report-mode { width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); }
.segmented-control.report-mode button { width: 100%; min-width: 0; display: grid; place-items: center; text-align: center; }
.order-search { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; padding: 0 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.order-search > span { color: var(--primary); font-size: 23px; font-weight: 900; }
.order-search input { height: 48px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.customer-list-tools { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: -3px 0 14px; }
.customer-list-tools label { min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.customer-list-tools span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; }
.customer-list-tools select { width: 100%; min-height: 32px; padding: 3px 24px 2px 0; border: 0; border-radius: 0; background-color: transparent; box-shadow: none; font-size: 12px; font-weight: 800; }
.customer-detail-page { min-height: calc(100dvh - 40px); }
.customer-detail-nav { position: sticky; top: 0; z-index: 18; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -4px 12px; padding: 5px 2px; background: rgba(242,246,251,.94); backdrop-filter: blur(18px); }
.customer-detail { display: grid; gap: 14px; padding: 0; }
.customer-detail-heading,.customer-summary,.customer-edit-panel,.customer-attachment-section,.customer-order-history-section { border: 1px solid #cfddec; border-radius: 20px; background: #fff; box-shadow: 0 10px 26px rgba(20,32,51,.045); }
.customer-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px; }
.customer-detail-heading h2 { margin: 2px 0 0; font-size: 23px; overflow-wrap: anywhere; }
.customer-detail-heading p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.customer-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; padding: 5px 16px; }
.customer-summary > div { min-width: 0; padding: 14px 4px; border-bottom: 1px solid #edf2f7; }
.customer-summary > div:nth-last-child(-n+2) { border-bottom: 0; }
.customer-summary .customer-summary-wide { grid-column: 1/-1; }
.customer-summary span,.customer-summary strong { display: block; }
.customer-summary span { color: var(--muted); font-size: 10px; font-weight: 800; }
.customer-summary strong { margin-top: 5px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.customer-business-actions { display: grid; grid-template-columns: 1.2fr 1fr; gap: 9px; }
.customer-business-actions > button { min-height: 48px; }
.customer-order-history-section { padding: 16px; }
.customer-order-history-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.customer-order-history-head strong,.customer-order-history-head small { display: block; }
.customer-order-history-head strong { color: var(--ink); font-size: 14px; }
.customer-order-history-head small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.customer-order-history-head > span { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: var(--primary); background: #edf6ff; font-size: 10px; font-weight: 850; }
.customer-order-history-list { display: grid; gap: 8px; margin-top: 12px; }
.customer-order-history-card { width: 100%; min-height: 62px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; text-align: left; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #f9fbfe; }
.customer-order-history-card > span:first-child { min-width: 0; }
.customer-order-history-card strong,.customer-order-history-card small { display: block; overflow-wrap: anywhere; }
.customer-order-history-card strong { font-size: 12px; }
.customer-order-history-card small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.customer-order-history-card .history-order-side { display: grid; justify-items: end; gap: 5px; }
.customer-order-history-card .history-order-side small { margin: 0; white-space: nowrap; }
.customer-order-history-empty { padding: 22px 12px; text-align: center; border: 1px dashed #cbd8e6; border-radius: 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.customer-edit-panel { padding: 16px; }
.customer-edit-tip { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; color: #49627e; background: #edf6ff; font-size: 11px; line-height: 1.55; }
.customer-edit-actions { display: grid; grid-template-columns: minmax(92px,.55fr) 1.45fr; gap: 9px; }
.customer-edit-actions > button { min-height: 48px; }
.customer-attachment-section { padding: 16px; }
.customer-save { width: 100%; }
.customer-file-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 10px; }
.customer-file-head strong,.customer-file-head small { display: block; }
.customer-file-head small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.customer-upload-label { min-height: 44px; display: grid; place-items: center; padding: 0 14px; border-radius: 12px; }
.customer-upload-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.customer-upload-label.uploading { opacity: .65; pointer-events: none; }
.customer-file-list { display: grid; gap: 8px; }
.customer-file-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.customer-file-row strong,.customer-file-row small { display: block; overflow-wrap: anywhere; }
.customer-file-row strong { font-size: 12px; }
.customer-file-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.customer-file-actions { display: flex; align-items: center; gap: 5px; }
.customer-file-row button { min-height: 44px; padding: 7px 10px; border: 1px solid #b7d2ef; border-radius: 10px; color: var(--primary); background: #f2f8ff; font-size: 10px; font-weight: 850; }
.row-chevron { display: block; margin-top: 4px; color: #9bacc0; font-size: 21px; font-style: normal; text-align: right; }
.compact-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 15px; }
.summary-tile { padding: 13px 8px; text-align: center; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.summary-tile strong { display: block; font-size: 21px; }
.summary-tile span { color: var(--muted); font-size: 11px; }
.profile-card { display: flex; align-items: center; gap: 16px; padding: 22px; margin: 8px 0 18px; border-radius: 24px; color: #fff; background: linear-gradient(135deg,#092d62,#0b68cd); }
.profile-card img { width: 62px; height: 62px; border-radius: 18px; border: 2px solid rgba(255,255,255,.5); }
.profile-card .eyebrow { color: #9ed2ff; }
.profile-card h2 { margin: 0 0 4px; font-size: 22px; }
.profile-card p:not(.eyebrow) { margin: 0; color: #d6eaff; font-size: 13px; }
.profile-card .profile-phone { margin-top: 5px; color: #a9d5ff; font-size: 11px; }
.settings-row { min-height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: var(--ink); border-bottom: 1px solid var(--line); background: #fff; }
.settings-row:first-child { border-radius: 18px 18px 0 0; }
.settings-row:last-child { border-bottom: 0; border-radius: 0 0 18px 18px; }
.settings-row strong { color: #47617e; font-size: 13px; text-align: right; }
.membership-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 9px 26px rgba(20,32,51,.05); }
.membership-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 12px; }
.membership-card-head h3 { margin: 0; font-size: 18px; }
.membership-status { padding: 6px 9px; border-radius: 999px; color: #7b5a15; background: #fff1c9; font-size: 11px; font-weight: 850; white-space: nowrap; }
.membership-status.active { color: #0c7747; background: #e6f7ee; }
.membership-status.expired { color: #a83d35; background: #fff0ee; }
.membership-card .settings-row { border-radius: 0; }
.membership-progress { height: 7px; margin: 0 16px 14px; overflow: hidden; border-radius: 999px; background: #e8eef6; }
.membership-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#1f82e9,#0eaa72); transition: width .25s ease; }
.membership-capabilities { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 15px; }
.membership-capabilities span { padding: 6px 9px; border-radius: 999px; color: #47617e; background: #edf4fb; font-size: 10px; font-weight: 750; }
.membership-offers { margin-top: 14px; padding: 17px 15px; border: 1px solid #d6e3f1; border-radius: 22px; background: #fff; }
.membership-offers-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.membership-offers-head h3 { margin: 0; font-size: 18px; }
.membership-offers-head > span { padding: 6px 8px; border-radius: 999px; color: #49647f; background: #eef5fc; font-size: 9px; font-weight: 750; text-align: center; }
.membership-offers-lead { margin: 10px 0 13px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.membership-offer-list { display: grid; gap: 10px; }
.membership-offer-card { padding: 14px; border: 1px solid #dbe5f0; border-radius: 17px; background: #f9fbfe; }
.membership-offer-card.is-featured { border-color: #a9ccef; background: #f2f8ff; }
.membership-offer-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.membership-offer-title strong { color: #172a41; font-size: 15px; }
.membership-offer-title span { color: #0d66c2; font-size: 14px; font-weight: 850; }
.membership-offer-summary { margin: 7px 0 0; color: #5e7188; font-size: 11px; line-height: 1.55; }
.membership-price-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 11px; }
.membership-price-choice { min-width: 0; display: grid; gap: 3px; padding: 10px 8px; border: 1px solid #cbdced; border-radius: 13px; color: #18334f; background: #fff; text-align: left; }
.membership-price-choice b { font-size: 13px; }
.membership-price-choice small { color: #59718c; font-size: 9px; }
.membership-price-choice:disabled { color: #718196; background: #edf1f5; cursor: not-allowed; opacity: 1; }
.membership-price-choice:disabled b { color: #596b80; }
.membership-plan-facts { display: grid; gap: 5px; margin-top: 10px; color: #526b84; font-size: 10px; line-height: 1.45; }
.membership-seat-note { padding: 7px 9px; border-radius: 10px; color: #6b5623; background: #fff7df; font-weight: 700; }
.membership-trial-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #dbe5f0; }
.membership-trial-row span { display: grid; gap: 2px; min-width: 0; color: #36516f; font-size: 10px; }
.membership-trial-row small { color: #74869a; font-size: 9px; line-height: 1.4; }
.membership-trial-row button { flex: 0 0 auto; min-height: 36px; padding: 7px 10px; border: 0; border-radius: 11px; color: #fff; background: #1269ca; font-size: 10px; font-weight: 800; }
.membership-trial-row button:disabled { color: #65778b; background: #e4e9ef; }
.membership-enterprise { margin-top: 11px; border: 1px solid #dbe5f0; border-radius: 16px; background: #fbfcfe; }
.membership-enterprise summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; cursor: pointer; list-style: none; }
.membership-enterprise summary::-webkit-details-marker { display: none; }
.membership-enterprise summary > span { display: grid; gap: 3px; }
.membership-enterprise summary b { font-size: 13px; }
.membership-enterprise summary small { color: var(--muted); font-size: 9px; }
.membership-enterprise summary strong { color: #1769dc; font-size: 10px; }
.membership-enterprise[open] summary strong { font-size: 0; }
.membership-enterprise[open] summary strong::after { content: "收起"; font-size: 10px; }
.membership-enterprise-list { display: grid; gap: 7px; padding: 0 12px 12px; }
.membership-enterprise-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 11px; border-radius: 12px; background: #eef4fa; }
.membership-enterprise-copy { min-width: 0; display: grid; gap: 4px; }
.membership-enterprise-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; }
.membership-enterprise-title strong { font-size: 11px; }
.membership-enterprise-title span { color: #153e6a; font-size: 11px; font-weight: 850; }
.membership-enterprise-copy small { display: block; color: #506982; font-size: 9px; line-height: 1.45; }
.membership-enterprise-copy .membership-enterprise-excludes { color: #765d27; }
.membership-enterprise-item button { min-height: 32px; padding: 6px 8px; border: 1px solid #b8cce1; border-radius: 9px; color: #1769dc; background: #fff; font-size: 9px; font-weight: 800; }
[data-commerce-channel="android-consumption-only"] [data-digital-commerce-offers],
[data-commerce-channel="android-consumption-only"] [data-external-digital-commerce] { display: none !important; }
.membership-catalog-notice { min-height: 0; margin: 10px 2px 0; color: #6e7f91; font-size: 10px; line-height: 1.5; }
.membership-catalog-notice.is-error { padding: 8px 10px; border-radius: 10px; color: #914039; background: #fff1ef; }
.settings-action { width: 100%; border: 0; border-top: 1px solid var(--line); text-align: left; cursor: pointer; }
.settings-action > span { display: grid; gap: 3px; }
.settings-action b { font-size: 14px; }
.settings-action small { color: var(--muted); font-size: 10px; }
.account-links { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; }
.account-links .settings-row { border-radius: 0; }
.account-identity-card { margin-bottom: 14px; overflow: hidden; border: 1px solid #cfe0f4; border-radius: 20px; background: #fff; }
.account-identity-head { padding: 17px 16px 14px; background: #f4f9ff; }
.account-identity-head strong { color: #173e6d; font-size: 16px; }
.account-identity-head p { margin: 7px 0 0; color: #5f7187; font-size: 12px; line-height: 1.65; }
.account-identity-row { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); }
.account-identity-row > span { min-width: 0; display: grid; gap: 4px; }
.account-identity-row b { font-size: 14px; }
.account-identity-row small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.account-identity-row .text-button { flex: 0 0 auto; }
.account-phone-binding-form { display: grid; gap: 12px; padding: 15px 16px; border-top: 1px solid var(--line); background: #fbfdff; }
.account-phone-binding-form .field-card { margin: 0; }
.account-binding-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); gap: 9px; }
.account-binding-actions button { min-width: 0; }
.account-binding-error { margin: 0 16px 15px; }
.security-info-card, .account-deletion-card { margin-bottom: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.security-info-card strong { font-size: 16px; }
.security-info-card p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.account-deletion-card { display: grid; gap: 12px; }
.account-deletion-card .field-card { margin: 0; }
.deletion-warning { padding: 12px; border: 1px solid #efc8c4; border-radius: 13px; color: #8d352f; background: #fff5f4; font-size: 12px; font-weight: 750; line-height: 1.6; }
.required-phrase { display: block; margin: 7px 0; color: #a73730; font-size: 13px; overflow-wrap: anywhere; }
.deletion-check { display: flex; align-items: flex-start; gap: 9px; color: #50657c; font-size: 12px; line-height: 1.55; }
.deletion-check input { width: 19px; height: 19px; flex: 0 0 auto; margin: 0; }
.deletion-scheduled { padding: 13px; border-radius: 14px; color: #765615; background: #fff8e6; }
.deletion-scheduled p { margin: 6px 0 0; font-size: 12px; line-height: 1.6; }
.account-deletion-card form { display: grid; gap: 12px; }
.privacy-settings-action { border-top: 0; }
.ai-privacy-open { overflow: hidden; }
.ai-privacy-dialog { position: fixed; inset: 0; z-index: 120; display: grid; align-items: end; }
.ai-privacy-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(6,18,36,.58); backdrop-filter: blur(4px); }
.ai-privacy-panel {
  position: relative; width: min(100%,620px); max-height: 92dvh; margin: 0 auto; padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto; border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -24px 70px rgba(2,18,45,.28);
}
.ai-privacy-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ai-privacy-head h2 { margin: 0; font-size: 22px; }
.ai-privacy-close { width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: 14px; color: #51647b; background: #edf2f7; font-size: 26px; }
.ai-privacy-lead { margin: 13px 0; color: #42546b; font-size: 13px; line-height: 1.65; }
.ai-privacy-details { display: grid; gap: 9px; }
.ai-privacy-details section { padding: 13px 14px; border: 1px solid #dce7f3; border-radius: 15px; background: #f7faff; }
.ai-privacy-details strong { display: block; color: #183e68; font-size: 13px; }
.ai-privacy-details p { margin: 5px 0 0; color: #56687e; font-size: 12px; line-height: 1.6; }
.ai-privacy-policy,.ai-privacy-state { margin: 12px 2px 0; color: #64748b; font-size: 12px; line-height: 1.6; }
.ai-privacy-policy a { font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.ai-privacy-state { padding: 10px 12px; border-radius: 12px; background: #eef5fc; }
.ai-privacy-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 9px; margin-top: 15px; }
.ai-privacy-actions > button { min-width: 0; }
.quote-onboarding-open { overflow: hidden; }
.quote-onboarding-dialog { position: fixed; inset: 0; z-index: 140; display: grid; align-items: end; }
.quote-onboarding-dialog[hidden], .quote-onboarding-stage[hidden] { display: none; }
.quote-onboarding-backdrop { position: absolute; inset: 0; background: rgba(6,18,36,.62); backdrop-filter: blur(5px); }
.quote-onboarding-panel {
  position: relative; width: min(100%,760px); max-height: 96dvh; margin: 0 auto; padding: 23px 18px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto; border-radius: 30px 30px 0 0; background: #fff; box-shadow: 0 -28px 80px rgba(2,18,45,.3);
}
.quote-onboarding-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.quote-onboarding-head h2 { margin: 0; color: #142238; font-size: 25px; line-height: 1.3; }
.quote-onboarding-close { width: 42px; height: 42px; flex: 0 0 auto; border: 0; border-radius: 14px; color: #52657c; background: #edf2f7; font-size: 26px; }
.quote-onboarding-lead { margin: 13px 0 17px; color: #61738a; font-size: 13px; line-height: 1.7; }
.quote-identity-options { display: grid; gap: 10px; }
.quote-identity-options button { min-height: 132px; display: grid; align-content: center; gap: 7px; padding: 18px; border: 1px solid #d7e2ef; border-radius: 21px; color: #18283d; background: #f8fbff; text-align: left; }
.quote-identity-options button:active, .quote-identity-options button.is-selected { border-color: #64a7f2; background: #eaf4ff; box-shadow: 0 0 0 3px rgba(24,105,220,.08); }
.quote-identity-options b { width: max-content; padding: 6px 9px; border-radius: 10px; color: #1769dc; background: #e5f0ff; font-size: 12px; }
.quote-identity-options strong { font-size: 17px; }
.quote-identity-options span { color: #6d7e93; font-size: 12px; line-height: 1.6; }
.quote-onboarding-message { min-height: 18px; margin: 12px 2px 0; color: #a24039; font-size: 12px; line-height: 1.5; }
.quote-setup-search { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 0 13px; border: 1px solid #cbdced; border-radius: 14px; background: #f8fbff; }
.quote-setup-search > span { color: var(--primary); font-size: 21px; }
.quote-setup-search input { height: 46px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.quote-setup-categories { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 8px; padding-bottom: 94px; }
.quote-setup-category { overflow: hidden; border: 1px solid #dae5f1; border-radius: 17px; background: #fff; }
.quote-setup-category.is-expanded { grid-column: 1/-1; }
.quote-setup-category-head { min-height: 58px; display: flex; align-items: center; gap: 5px; padding: 7px 7px 7px 9px; border: 0; color: #24364d; background: #f5f9fe; text-align: left; }
.quote-setup-category.is-expanded .quote-setup-category-head { border-bottom: 1px solid #e6edf5; }
.quote-setup-category-select { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; gap: 7px; cursor: pointer; }
.quote-setup-category-head input, .quote-setup-product input { width: 20px; height: 20px; flex: 0 0 auto; margin: 0; accent-color: var(--primary); }
.quote-setup-category-select > span { min-width: 0; display: grid; gap: 2px; }
.quote-setup-category-head strong { overflow-wrap: anywhere; font-size: 12px; line-height: 1.25; }
.quote-setup-category-head small { color: var(--muted); font-size: 10px; }
.quote-setup-category-toggle { min-width: 37px; min-height: 30px; flex: 0 0 auto; display: grid; place-items: center; gap: 0; padding: 3px 5px; border: 1px solid #cddced; border-radius: 10px; color: #1769dc; background: #fff; font-size: 9px; font-weight: 800; line-height: 1; }
.quote-setup-category-toggle b { display: block; transform: rotate(90deg); font-size: 16px; line-height: .7; transition: transform .16s ease; }
.quote-setup-category-toggle[aria-expanded="true"] b { transform: rotate(-90deg); }
.quote-setup-products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: #e8eef5; }
.quote-setup-products[hidden] { display: none; }
.quote-setup-product { min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; color: #40546b; background: #fff; font-size: 12px; font-weight: 750; }
.quote-setup-product.is-selected { color: #135eae; background: #f2f8ff; }
.quote-setup-empty { padding: 25px 14px; color: var(--muted); text-align: center; border: 1px dashed #c7d6e6; border-radius: 15px; font-size: 12px; }
.quote-setup-savebar { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); z-index: 2; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; margin: 4px -18px calc(-22px - env(safe-area-inset-bottom)); padding: 13px 18px calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid #dce6f1; background: rgba(255,255,255,.97); backdrop-filter: blur(18px); }
.quote-setup-savebar > span { min-width: 0; display: grid; gap: 3px; }
.quote-setup-savebar strong { font-size: 13px; }
.quote-setup-savebar small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.quote-setup-savebar button { min-width: 150px; padding-inline: 13px; }
.team-access-card { padding: 16px; margin-bottom: 12px; border: 1px solid #cfe0f4; border-radius: 18px; background: #f4f9ff; }
.team-access-card strong { display: block; color: #204d80; font-size: 14px; }
.team-access-card p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.team-access-card.locked { border-color: #ead8a9; background: #fff9e9; }
.team-access-card.locked strong { color: #7c5a12; }
.team-access-card.error { border-color: #f0c8c4; background: #fff5f4; }
.team-access-card.error strong { color: var(--red); }
.team-list { display: grid; gap: 10px; }
.team-member-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.team-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg,#0b63ce,#2897e9); font-size: 15px; font-weight: 900; }
.team-member-main { min-width: 0; }
.team-member-main strong { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; overflow-wrap: anywhere; font-size: 14px; }
.team-member-main p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.team-role-chip { padding: 3px 6px; border-radius: 999px; color: #245a91; background: #eaf4ff; font-size: 9px; font-weight: 850; white-space: nowrap; }
.team-member-actions { display: grid; justify-items: end; gap: 5px; }
.team-member-actions button { min-height: 38px; padding: 6px 9px; border: 1px solid #c7d9ee; border-radius: 10px; color: var(--primary); background: #f3f8ff; font-size: 10px; font-weight: 800; }
.team-member-actions .team-status-toggle { color: #9b433d; border-color: #ebc7c3; background: #fff7f6; }
.team-member-actions .team-status-toggle.enable { color: #117647; border-color: #bde0cd; background: #f0fbf5; }
.team-member-actions button:disabled { opacity: .5; cursor: not-allowed; }
.team-status-disabled { opacity: .68; }
.team-member-form { display: grid; gap: 2px; }
.team-permission-card { margin: 2px 0 14px; padding: 17px; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.team-permission-card legend { padding: 0 5px; font-size: 14px; font-weight: 850; }
.team-permission-card > p { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.team-permission-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.team-permission-option { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid #e1e9f3; border-radius: 12px; color: #36506e; background: #f8fbff; font-size: 11px; font-weight: 700; }
.team-permission-option input { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; padding: 0; }
.team-form-actions { display: grid; grid-template-columns: 1.3fr .7fr; gap: 9px; }
.app-version { text-align: center; color: #94a3b8; font-size: 11px; }
body.drawer-open { overflow: hidden; }
.order-drawer { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; }
.drawer-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(6,18,36,.52); backdrop-filter: blur(3px); }
.drawer-panel { position: relative; overflow-y: auto; width: min(100%,820px); max-height: 92dvh; margin: 0 auto; padding: 10px 16px calc(30px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--canvas); box-shadow: 0 -24px 70px rgba(2,18,45,.25); }
.drawer-handle { width: 42px; height: 5px; margin: 1px auto 13px; border-radius: 999px; background: #c4d0de; }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 4px 2px 14px; }
.drawer-header h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.drawer-header p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.drawer-close { width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 14px; color: #51647b; background: #e4ebf3; font-size: 25px; }
.drawer-contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 12px; }
.drawer-contact-actions a, .drawer-contact-actions button { display: grid; place-items: center; min-height: 46px; }
.return-to-quote-edit-button { grid-column: 1 / -1; min-height: 46px; }
.share-order-button { grid-column: 1 / -1; }
.order-share-state { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: -2px 2px 10px; padding: 10px 12px; border-radius: 13px; background: #eaf4ff; }
.order-share-state p { margin: 0; color: #47617e; font-size: 11px; line-height: 1.55; }
.order-share-state .text-button { flex: 0 0 auto; padding: 1px 0; font-size: 11px; }
.danger-text { color: #a63e37; }
.drawer-section { margin-top: 11px; padding: 17px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.drawer-section h3 { margin: 0 0 13px; font-size: 16px; }
.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid #e2e9f2; border-radius: 15px; background: #e2e9f2; }
.order-detail-field { min-width: 0; padding: 12px; background: #f9fbfe; }
.order-detail-field span, .order-remark span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.order-detail-field strong { display: block; overflow-wrap: anywhere; font-size: 13px; line-height: 1.45; }
.order-remark { margin-top: 10px; padding: 12px; border-radius: 14px; background: #f3f7fc; }
.order-remark p { margin: 0; color: #334155; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.order-status-current { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; border-radius: 14px; background: #f3f7fc; }
.order-status-current span { color: var(--muted); font-size: 12px; }
.order-status-current strong { color: var(--ink); font-size: 15px; }
.order-status-hint { margin: 9px 2px 11px; color: #62748a; font-size: 11px; line-height: 1.55; }
.order-production-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-production-heading h3 { margin-bottom: 0; }
.order-production-heading > strong { color: var(--primary); font-size: 12px; }
.order-production-steps { display: grid; gap: 9px; margin-top: 13px; }
.order-production-step { display: grid; grid-template-columns: 25px 1fr; gap: 10px; align-items: center; padding: 10px 11px; border-radius: 13px; background: #f5f8fc; }
.production-step-dot { display: grid; place-items: center; width: 25px; height: 25px; border: 2px solid #cbd8e6; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 900; }
.order-production-step.completed { background: #effaf4; }
.order-production-step.completed .production-step-dot { border-color: #2e9b61; background: #2e9b61; }
.order-production-step strong { display: block; font-size: 13px; }
.order-production-step small { display: block; margin-top: 3px; color: #708197; font-size: 10px; }
.drawer-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.drawer-chips button { padding: 9px 11px; border: 1px solid #d5e1ee; border-radius: 12px; color: #5b6e85; background: #fff; font-size: 12px; font-weight: 800; }
.drawer-chips button.active { color: #fff; border-color: var(--primary); background: var(--primary); }
.drawer-chips button:disabled { opacity: .5; }
.delivery-method-chips { display: grid; grid-template-columns: repeat(2,1fr); }
.delivery-method-chips button { min-height: 43px; }
.order-delivery-choice .order-status-hint { margin-top: -3px; }
.due-chips { display: grid; grid-template-columns: repeat(4,1fr); }
.due-chips button { padding-inline: 5px; color: var(--primary); background: #edf5ff; }
.drawer-save { width: 100%; margin-top: 10px; }
.order-timeline { display: grid; gap: 14px; }
.order-timeline-item { display: grid; grid-template-columns: 14px 1fr; gap: 9px; }
.timeline-dot { width: 11px; height: 11px; margin-top: 4px; border: 3px solid #b8dafa; border-radius: 50%; background: var(--primary); }
.order-timeline-item strong { font-size: 13px; }
.order-timeline-item p { margin: 4px 0 0; color: #475569; font-size: 12px; line-height: 1.5; }
.order-timeline-item small { display: block; margin-top: 4px; color: #8a9aaf; font-size: 10px; }
.bottom-nav {
  position: fixed; left: 50%; bottom: 0; z-index: 30; width: min(100%,820px); transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(var(--nav-count,5),1fr); padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(199,212,229,.8); background: rgba(255,255,255,.95); backdrop-filter: blur(20px);
}
.bottom-nav button { min-width: 0; min-height: 56px; display: grid; place-items: center; align-content: center; gap: 2px; border: 0; border-radius: 13px; color: #748399; background: transparent; }
.bottom-nav span { font-size: 20px; line-height: 1; }
.bottom-nav small { font-size: 10px; font-weight: 800; }
.bottom-nav button.active { color: var(--primary); background: #eef6ff; }
.toast { position: fixed; left: 50%; top: calc(18px + env(safe-area-inset-top)); z-index: 100; max-width: calc(100% - 36px); transform: translate(-50%,-20px); padding: 11px 15px; border-radius: 13px; color: #fff; background: rgba(14,28,48,.94); opacity: 0; pointer-events: none; transition: .2s ease; box-shadow: 0 12px 30px rgba(0,0,0,.18); font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.toast.error { background: rgba(154,44,37,.96); }
@media (min-width: 720px) {
  .page-stack { padding-left: 28px; padding-right: 28px; }
  .membership-offer-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .membership-offer-card { min-height: 100%; }
  .metric-grid { grid-template-columns: repeat(4,1fr); }
  .hero-card { min-height: 220px; }
  .image-options { grid-template-columns: 2fr 1fr 1fr; }
  .quote-onboarding-dialog { align-items: center; padding: 24px; }
  .quote-onboarding-panel { border-radius: 30px; }
  .quote-identity-options { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .quote-setup-categories { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 460px) {
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .team-permission-list { grid-template-columns: 1fr; }
  .team-member-row { grid-template-columns: auto minmax(0,1fr); }
  .team-member-actions { grid-column: 1/-1; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  .team-member-actions button { width: 100%; }
  .quote-setup-savebar { grid-template-columns: 1fr; }
  .quote-setup-savebar button { width: 100%; }
}
@media (max-width: 360px) {
  .login-view { padding: max(18px,env(safe-area-inset-top)) 14px max(18px,env(safe-area-inset-bottom)); }
  .login-card { padding: 26px 18px 20px; border-radius: 25px; }
  .login-logo { width: 56px; height: 56px; border-radius: 16px; }
  .login-card h1 { font-size: 27px; }
  .login-copy { margin-bottom: 20px; font-size: 14px; }
  .verification-row { grid-template-columns: minmax(0,1fr) 104px; gap: 7px; }
  .verification-button { padding-inline: 5px; font-size: 12px; }
}
@media (max-height: 700px) {
  .login-view { place-items: start center; }
  .login-card { margin: auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
