@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #f5f1e8;
  --bg-deep: #ebe3d5;
  --panel: #fffdf8;
  --panel2: #f2ecdf;
  --panel3: #e7ddcd;
  --line: #d9cdbb;
  --text: #20313b;
  --dim: #6f7d7d;
  --gold: #d59a3b;
  --gold-dim: #b77b2b;
  --gold-bg: #fbf0d8;
  --green: #3d806b;
  --green-bg: #e0efe8;
  --red: #bd6255;
  --red-bg: #f8e5e0;
  --navy: #20313b;
  --shadow: 0 12px 30px rgba(65, 52, 35, .08);
  --shadow-soft: 0 4px 14px rgba(65, 52, 35, .06);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  font-family: 'Noto Sans Thai', sans-serif;
  background:
    radial-gradient(circle at 8% 4%, rgba(213,154,59,.10), transparent 28rem),
    linear-gradient(135deg, #f7f3eb 0%, var(--bg) 58%, #efe7da 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.mono { font-family: 'Space Mono', monospace; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
#app { max-width: 1180px; margin: 0 auto; padding: 28px 24px 56px; position: relative; }

.btn {
  font-family: 'Noto Sans Thai', sans-serif;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 10px 16px;
  min-height: 42px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.btn:hover { border-color: var(--gold-dim); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(213,154,59,.28);
  outline-offset: 2px;
}
.btn:disabled { opacity: .52; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold { background: var(--gold); color: #2d210d; border-color: var(--gold); }
.btn-gold:hover { background: #e1ab4e; border-color: #e1ab4e; }
.btn-green { background: var(--green); color: #f4fbf7; border-color: var(--green); }
.btn-green:hover { background: #34745f; border-color: #34745f; }
.btn-red { background: transparent; color: var(--red); border-color: rgba(189,98,85,.62); }
.btn-red:hover { background: var(--red-bg); border-color: var(--red); }
.btn-ghost { background: rgba(255,253,248,.58); border-color: var(--line); }
.btn-block { width: 100%; }

input, select, textarea {
  font-family: 'Noto Sans Thai', sans-serif;
  background: rgba(255,253,248,.84);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
input::placeholder, textarea::placeholder { color: #9aa29d; }
input:focus, select:focus, textarea:focus { border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(213,154,59,.13); background: var(--panel); }
textarea { resize: vertical; min-height: 74px; }
label.field-label { font-size: 12px; color: var(--dim); display: block; margin-bottom: 5px; font-weight: 600; }

.panel {
  background: rgba(255,253,248,.87);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); background: var(--panel); }
.dim { color: var(--dim); }
.gold { color: var(--gold-dim); }
.green { color: var(--green); }
.red { color: var(--red); }

.header {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  margin-bottom: 34px; padding: 0 0 18px; border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 42px; height: 42px; border-radius: 13px; background: var(--navy);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
  color: #f7e5b9; box-shadow: 4px 4px 0 rgba(213,154,59,.28); font-size: 18px;
}
.logo-title { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.logo-subtitle { font-size: 11px; color: var(--dim); margin-top: 1px; }
.header-user-actions { display:flex; align-items:center; gap:10px; }
.header-account-label { font-size:13px; color:var(--dim); }
.header-account-label b { color:var(--text); }
.profile-menu-wrap { position:relative; }
.profile-popover {
  position:absolute; z-index:40; top:calc(100% + 10px); right:0; width:min(310px, calc(100vw - 32px));
  padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--panel);
  box-shadow:var(--shadow); display:grid; gap:10px;
}
.profile-popover[hidden] { display:none; }
.profile-username { font-size:12px; color:var(--dim); padding:8px 10px; border-radius:8px; background:var(--panel2); }
.field-help { color:var(--dim); font-size:11px; line-height:1.45; margin-top:5px; }
.auth-action-heading { display:grid; gap:5px; margin-bottom:18px; }
.auth-action-heading b { font-size:19px; }
.auth-action-heading .dim { font-size:12px; line-height:1.55; }
.auth-text-button {
  border:0; background:transparent; color:var(--gold-dim); padding:3px 6px; margin:0 auto;
  font:inherit; font-size:13px; font-weight:700; cursor:pointer; text-decoration:underline;
  text-underline-offset:3px;
}
.auth-text-button:hover { color:var(--navy); }
.auth-text-button:focus-visible { outline:3px solid rgba(213,154,59,.28); outline-offset:2px; border-radius:5px; }

.fade { animation: fade .28s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(7px);} to { opacity: 1; transform: translateY(0);} }
@keyframes pulse-soft { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

#toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 50; display: flex; flex-direction: column; gap: 8px; align-items: center;
  width: min(92vw, 420px);
}
.toast-item {
  background: var(--navy); color: #fff8eb; border: 1px solid rgba(255,255,255,.14);
  padding: 11px 16px; border-radius: 11px; font-size: 13px; box-shadow: var(--shadow);
  animation: fade .22s ease both; text-align: center;
}
.toast-item.error { background: var(--red); border-color: var(--red); }

.stars { display: inline-flex; gap: 3px; }
.star { cursor: pointer; font-size: 13px; color: var(--dim); background: var(--panel2); border: 1px solid var(--line); border-radius: 7px; min-width: 32px; min-height: 32px; padding: 0 8px; transition: color .14s ease, transform .14s ease, background-color .14s ease; }
.star:hover, .star.filled { color: var(--gold); transform: translateY(-1px); }
.star.readonly { cursor: default; }
.qr-box { background: #fff; border-radius: 12px; padding: 11px; display: inline-block; box-shadow: 0 2px 0 rgba(32,49,59,.14); }

.room-row {
  display: grid; grid-template-columns: 110px 1fr 130px 190px 20px; gap: 12px;
  padding: 15px 18px; font-size: 13px; border-bottom: 1px solid var(--line);
  cursor: pointer; align-items: center; transition: background-color .16s ease, padding-left .16s ease;
}
.room-row:last-child { border-bottom: 0; }
.room-row:hover { background: var(--panel2); padding-left: 22px; }
.room-row:focus-visible { outline: 3px solid rgba(213,154,59,.28); outline-offset: -3px; background: var(--panel2); }
.room-head {
  display: grid; grid-template-columns: 110px 1fr 130px 190px 20px; gap: 12px;
  padding: 10px 18px; font-size: 11px; color: var(--dim); border-bottom: 1px solid var(--line);
  font-weight: 700; letter-spacing: .02em;
}

.chatbox { height: min(590px, 68vh); min-height: 390px; display: flex; flex-direction: column; overflow: hidden; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.dispute-chat-banner { display:flex; flex-direction:column; gap:5px; border:1px solid rgba(184,74,67,.65); background:rgba(184,74,67,.12); color:#7f2f2b; border-radius:12px; padding:13px 14px; font-size:12px; line-height:1.65; }
.dispute-chat-banner b { color:var(--red); font-size:13px; }
.chat-input-row { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; align-items: center; background: rgba(242,236,223,.7); }
.chat-tool-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.chat-price-button { flex: 0 0 auto; padding-inline: 12px; }
.quick-price-form { padding: 0 12px 10px; display: flex; align-items: center; gap: 8px; }
.quick-price-form input { flex: 1; min-width: 0; }
.chat-deal-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid var(--gold-dim); border-radius: 13px; background: var(--gold-bg); box-shadow: 0 3px 0 rgba(183,123,43,.1); }
.chat-deal-copy { display: grid; gap: 3px; font-size: 13px; }
.chat-deal-copy .dim { font-size: 11.5px; line-height: 1.45; }
.chat-deal-kicker { color: var(--gold-dim); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.chat-wait-card { border-color: var(--line); background: var(--panel2); box-shadow: none; }
.chat-confirm-card { border-color: var(--green); background: var(--green-bg); box-shadow: 0 3px 0 rgba(61,128,107,.12); }
.chat-payment-card { align-items: stretch; flex-direction: column; }
.chat-qr-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-qr-row .qr-box { padding: 8px; }
.chat-qr-row .qr-box svg { width: 96px; height: 96px; display: block; }
.stripe-promptpay { display:flex; flex-direction:column; align-items:center; gap:8px; width:100%; }
.stripe-qr-image { width:168px; height:168px; display:block; object-fit:contain; }
.stripe-payment-status { display:flex; align-items:center; justify-content:center; gap:7px; color:var(--dim); font-size:11px; }
.stripe-payment-status .status-dot { animation:pulse-soft 1.4s ease-in-out infinite; }
.chat-price-form { display: flex; align-items: center; gap: 8px; min-width: min(100%, 360px); }
.chat-price-form input { min-width: 0; }
.bubble-wrap { display: flex; }
.bubble-wrap.mine { justify-content: flex-end; }
.bubble { max-width: min(78%, 510px); }
.bubble-from { font-size: 10.5px; color: var(--dim); margin: 0 7px 3px; font-weight: 600; }
.bubble-body { border-radius: 14px 14px 14px 4px; padding: 10px 13px; font-size: 13.5px; border: 1px solid var(--line); background: var(--panel); overflow-wrap: anywhere; }
.bubble-wrap.mine .bubble-body { background: var(--gold-bg); border-color: #e4c17f; border-radius: 14px 14px 4px 14px; }
.bubble-body img { max-width: 260px; max-height: 260px; border-radius: 9px; display: block; object-fit: cover; }
.system-msg { text-align: center; font-size: 11.5px; color: var(--dim); padding: 5px 0; }

.stepper-step { display: flex; gap: 10px; align-items: flex-start; }
.stepper-dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 10px; background: var(--panel); }
.stepper-dot.done { background: var(--gold); border-color: var(--gold); color: #2d210d; position: relative; }
.stepper-dot.done::after { content: ""; width: 4px; height: 8px; border-right: 2px solid #2d210d; border-bottom: 2px solid #2d210d; transform: rotate(45deg) translate(-1px,-1px); }
.stepper-line { width: 2px; height: 24px; background: var(--line); margin-left: 8px; }
.stepper-line.done { background: #e2bb72; }
.stepper-label { font-size: 12.5px; color: var(--dim); padding-top: 1px; }
.stepper-label.done { color: var(--text); font-weight: 600; }

a { color: var(--gold-dim); }

.hero-copy { max-width: 720px; margin: 0 auto 24px; text-align: center; }
.eyebrow { color: var(--gold-dim); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.page-title { font-size: clamp(26px, 4vw, 38px); line-height: 1.16; letter-spacing: -.04em; margin: 7px 0 8px; }
.page-lead { color: var(--dim); margin: 0; font-size: 14px; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 44px; align-items: center; max-width: 930px; margin: 42px auto 0; }
.trust-list { display: grid; gap: 12px; margin-top: 26px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-mark { width: 28px; height: 28px; border-radius: 9px; background: var(--green-bg); color: var(--green); display: grid; place-items: center; flex: 0 0 28px; font-weight: 800; font-size: 13px; }
.auth-card { padding: 26px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 11px; background: var(--panel2); margin-bottom: 21px; }
.auth-tabs .btn { border: 0; background: transparent; min-height: 38px; }
.auth-tabs .btn.active { background: var(--panel); box-shadow: 0 2px 8px rgba(65,52,35,.1); color: var(--gold-dim); }
.notice { border: 1px solid #e8c983; background: var(--gold-bg); border-radius: 11px; padding: 12px 13px; color: #725523; font-size: 12px; line-height: 1.65; }
.agreement-backdrop {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  padding: 24px; background: rgba(32,49,59,.42); backdrop-filter: blur(4px);
}
.agreement-modal {
  width: min(760px, 100%); max-height: min(88vh, 820px); display: flex; flex-direction: column;
  overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 70px rgba(32,49,59,.24);
}
.agreement-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 24px 16px; border-bottom: 1px solid var(--line); background: var(--panel2);
}
.agreement-modal-header h2 { margin: 5px 0 4px; font-size: 21px; letter-spacing: -.03em; }
.agreement-meta { color: var(--dim); font-size: 11px; }
.agreement-badge {
  flex: 0 0 auto; padding: 5px 9px; border: 1px solid #e8c983; border-radius: 999px;
  color: var(--gold-dim); background: var(--gold-bg); font-size: 11px; font-weight: 800;
}
.agreement-content {
  overflow: auto; padding: 22px 24px; color: var(--text); font-size: 13px; line-height: 1.7;
}
.agreement-content h3 { margin: 0 0 10px; font-size: 15px; color: var(--navy); }
.agreement-content h4 { margin: 17px 0 5px; font-size: 13px; color: var(--gold-dim); }
.agreement-content p { margin: 0 0 8px; }
.agreement-content ul { margin: 0 0 10px; padding-left: 21px; }
.agreement-consent {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px 24px;
  border-top: 1px solid var(--line); background: #fffaf0; color: var(--text); font-size: 12px;
}
.agreement-consent input { width: 17px; height: 17px; flex: 0 0 17px; margin: 1px 0 0; accent-color: var(--gold); }
.agreement-actions {
  display: flex; justify-content: flex-end; gap: 9px; padding: 0 24px 22px; background: #fffaf0;
}
.section-title { font-size: 16px; margin: 0; letter-spacing: -.02em; }
.section-kicker { font-size: 12px; color: var(--dim); margin: 3px 0 0; }
.payout-account-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.payout-account-value { font-weight:800; font-size:15px; margin-top:3px; }
.payout-account-meta { font-size:11px; margin-top:4px; }
.payout-form { border-top:1px solid var(--line); margin-top:16px; padding-top:16px; }
.payout-form-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; }
.payout-form-note { font-size:11px; margin-top:10px; }
.payout-form-actions { display:flex; gap:8px; margin-top:12px; }
.dashboard-intro { display:flex; justify-content:space-between; gap:20px; align-items:flex-end; margin-bottom: 22px; }
.stat-value { font-size: 20px; font-weight: 800; margin-top: 2px; }
.stat-label { font-size: 12px; color: var(--dim); }
.room-empty { padding: 32px 20px; text-align: center; color: var(--dim); font-size: 13px; }
.room-empty strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 14px; }
.room-skeleton { padding: 14px 18px; display: grid; gap: 13px; }
.room-skeleton span { display: block; height: 17px; border-radius: 6px; background: var(--panel2); animation: pulse-soft 1.4s ease-in-out infinite; }
.room-skeleton span:nth-child(1) { width: 92%; }
.room-skeleton span:nth-child(2) { width: 74%; animation-delay: .16s; }
.room-skeleton span:nth-child(3) { width: 84%; animation-delay: .32s; }
.room-meta-card { padding: 18px; }
.room-title-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom: 16px; }
.room-code { font-size: 18px; color: var(--gold-dim); letter-spacing: .08em; }
.room-status-line { display:flex; align-items:center; gap:7px; color:var(--dim); font-size:12px; }
.status-dot { width:8px; height:8px; border-radius:50%; background:var(--gold); }
.loading-card { padding: 34px; text-align:center; color:var(--dim); }

.admin-safety-banner { display:flex; align-items:center; gap:10px; border:1px solid #e8c983; background:var(--gold-bg); color:#725523; border-radius:11px; padding:13px 15px; font-size:12px; margin-bottom:14px; }
.admin-safety-banner b { color:var(--text); }
.admin-filter-row { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.admin-queue { overflow:hidden; padding:0; }
.admin-queue-head, .admin-queue-row { display:grid; grid-template-columns:100px minmax(220px,1.5fr) 130px minmax(130px,1fr) 130px; align-items:center; gap:16px; padding:14px 18px; }
.admin-queue-head { color:var(--dim); font-size:11px; font-weight:700; border-bottom:1px solid var(--line); background:var(--panel2); }
.admin-queue-row { width:100%; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--text); text-align:left; cursor:pointer; font:inherit; }
.admin-queue-row:last-child { border-bottom:0; }
.admin-queue-row:hover { background:var(--panel2); }
.admin-queue-row small { display:block; color:var(--dim); font-size:11px; margin-top:3px; }
.admin-detail-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; margin-bottom:20px; }
.admin-detail-status { color:var(--red); border:1px solid rgba(189,98,85,.45); background:var(--red-bg); border-radius:999px; padding:7px 12px; font-size:12px; font-weight:800; white-space:nowrap; }
.admin-detail-status.resolved { color:var(--green); border-color:rgba(61,128,107,.45); background:var(--green-bg); }
.admin-order-grid, .admin-claims-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.admin-order-card { padding:18px; }
.admin-big-number { font-family:'Space Mono',monospace; color:var(--gold-dim); font-size:25px; font-weight:700; margin:6px 0 14px; }
.admin-data-row { display:flex; justify-content:space-between; gap:14px; border-top:1px solid var(--line); padding:8px 0 0; margin-top:8px; font-size:12px; }
.admin-data-row span { color:var(--dim); }
.admin-data-row b { text-align:right; overflow-wrap:anywhere; }
.admin-party { display:grid; grid-template-columns:72px 1fr; gap:1px 8px; padding:10px 0; border-top:1px solid var(--line); font-size:12px; }
.admin-party:first-of-type { border-top:0; }
.admin-party-label { color:var(--dim); grid-row:span 2; }
.admin-party .dim { grid-column:2; font-size:11px; overflow-wrap:anywhere; }
.admin-claim-card { padding:16px; min-height:120px; font-size:13px; white-space:pre-wrap; overflow-wrap:anywhere; }
.admin-claim-heading { font-size:12px; font-weight:800; margin-bottom:8px; }
.admin-claim-heading.buyer { color:var(--green); }
.admin-claim-heading.seller { color:var(--gold-dim); }
.admin-evidence-panel, .admin-ai-panel, .admin-decision-panel, .admin-resolution-panel { padding:18px; margin-bottom:14px; }
.admin-section-heading { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; margin-bottom:14px; }
.admin-timeline { display:grid; gap:8px; max-height:520px; overflow:auto; padding-right:4px; }
.admin-message { border:1px solid var(--line); border-radius:10px; background:var(--panel); padding:10px 12px; font-size:13px; overflow-wrap:anywhere; }
.admin-message-system { background:var(--panel2); color:var(--dim); font-size:12px; }
.admin-message-meta { color:var(--dim); font-size:10.5px; margin-bottom:4px; }
.admin-evidence-image { display:block; max-width:min(100%,360px); max-height:260px; border-radius:8px; object-fit:contain; margin-top:5px; }
.admin-ai-result { border:1px solid #e8c983; background:var(--gold-bg); border-radius:10px; padding:13px; font-size:13px; }
.admin-ai-decision { font-weight:800; color:var(--gold-dim); margin-bottom:7px; }
.admin-ai-decision .badge { margin-left:6px; }
.admin-decision-panel textarea { min-height:100px; }
.admin-decision-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:12px; }
.dispute-open-heading { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; font-size:13px; margin-bottom:12px; }
.dispute-open-heading .dim { font-size:11px; text-align:right; }
.dispute-upload-grid, .dispute-proof-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
.dispute-upload-card, .dispute-proof-card { border:1px solid var(--line); border-radius:9px; padding:10px; background:var(--panel2); font-size:11px; }
.dispute-upload-card { display:flex; flex-direction:column; gap:6px; cursor:pointer; }
.dispute-upload-card input { width:100%; font-size:11px; }
.dispute-proof-card img { display:block; width:100%; max-height:190px; object-fit:contain; border-radius:7px; background:var(--panel); margin-top:7px; }
.dispute-submit-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:12px; }
.dispute-submit-row .dim { font-size:11px; }
.admin-proof-grid { margin:0 0 14px; }
.refund-notice-panel { padding:18px; border-color:rgba(61,128,107,.45); background:var(--green-bg); }
.refund-notice-title { color:var(--green); font-weight:800; font-size:15px; margin-bottom:10px; }
.refund-notice-body { font-size:13px; margin-top:7px; }
.refund-notice-delay { font-size:12px; color:var(--text); font-weight:600; margin-top:13px; }
.refund-notice-foot { font-size:11px; color:var(--dim); margin-top:8px; }

@media (max-width: 760px) {
  #app { padding: 18px 14px 40px; }
  .dashboard-tools { grid-template-columns: 1fr !important; }
  .header { margin-bottom: 24px; align-items: flex-start; }
  .header > div:last-child { flex-direction: column; align-items: flex-end !important; gap: 7px !important; }
  .header > div:last-child > span { font-size: 11px !important; }
  .logo-title { font-size: 16px; }
  .auth-layout { grid-template-columns: 1fr; gap: 22px; margin-top: 25px; }
  .auth-intro { text-align: center; }
  .trust-list { text-align: left; max-width: 370px; margin-left: auto; margin-right: auto; }
  .dashboard-intro { display:block; }
  .dashboard-intro .btn { margin-top: 13px; width: 100%; }
  .payout-account-heading { align-items:stretch; flex-direction:column; }
  .payout-account-heading > .btn { width:100%; }
  .payout-form-grid { grid-template-columns:1fr; }
  .room-head { display: none; }
  .room-row { grid-template-columns: 1fr auto; gap: 5px 10px; padding: 14px; }
  .room-row > :nth-child(1) { grid-row: span 2; align-self: center; }
  .room-row > :nth-child(2) { grid-column: 2; }
  .room-row > :nth-child(3), .room-row > :nth-child(4) { grid-column: 2; }
  .room-row > :nth-child(5) { position: absolute; right: 15px; }
  .room-row { position: relative; padding-right: 34px; }
  .chatbox { min-height: 360px; height: 58vh; }
  .bubble { max-width: 89%; }
  .bubble-body img { max-width: 210px; }
  .admin-queue-head { display:none; }
  .admin-queue-row { grid-template-columns:1fr auto; gap:6px 12px; padding:14px; }
  .admin-queue-row > :nth-child(1) { grid-row:span 2; align-self:center; }
  .admin-queue-row > :nth-child(2) { grid-column:2; }
  .admin-queue-row > :nth-child(3), .admin-queue-row > :nth-child(4) { grid-column:2; }
  .admin-queue-row > :nth-child(5) { display:none; }
  .admin-detail-head { display:block; }
  .admin-detail-status { display:inline-block; margin-top:16px; }
  .admin-order-grid, .admin-claims-grid { grid-template-columns:1fr; }
  .admin-section-heading { flex-direction:column; }
  .admin-section-heading .btn { width:100%; }
  .dispute-upload-grid, .dispute-proof-grid { grid-template-columns:1fr; }
  .dispute-open-heading { display:block; }
  .dispute-open-heading .dim { text-align:left; margin-top:4px; }
}
@media (max-width: 430px) {
  .auth-card { padding: 19px; }
  .page-title { font-size: 27px; }
  .header .btn { padding-inline: 10px; font-size: 12px; }
  .agreement-backdrop { padding: 10px; }
  .agreement-modal { max-height: 94vh; border-radius: 14px; }
  .agreement-modal-header { padding: 17px 16px 13px; }
  .agreement-modal-header h2 { font-size: 18px; }
  .agreement-content { padding: 17px 16px; font-size: 12px; }
  .agreement-consent { padding: 12px 16px; }
  .agreement-actions { flex-direction: column-reverse; padding: 0 16px 16px; }
  .agreement-actions .btn { width: 100%; }
  .chat-input-row { padding: 8px; gap: 6px; }
  .chat-input-row .btn { padding-inline: 10px; }
  .chat-tool-actions { gap: 6px; }
  .chat-price-button { padding-inline: 9px !important; font-size: 12px !important; }
  .quick-price-form { padding-inline: 8px; flex-wrap: wrap; }
  .quick-price-form input { flex-basis: 100%; }
  .chat-deal-card { align-items: stretch; flex-direction: column; }
  .chat-deal-card > .btn { width: 100%; }
  .chat-price-form { flex-direction: column; align-items: stretch; }
  .chat-price-form .btn { width: 100%; }
  .chat-qr-row { align-items: stretch; flex-direction: column; }
  .chat-qr-row .btn { width: 100%; }
}