:root{--blue:#2f73ff;--ink:#1d2a3b;--muted:#71839c;--line:#dce9ff;--soft:#f5f9ff;--panel:#fff;--shadow:0 20px 60px rgba(33,87,164,.12)}*{box-sizing:border-box}body{margin:0;font-family:"Microsoft YaHei","PingFang SC","Segoe UI",Arial,sans-serif;color:var(--ink);background:linear-gradient(180deg,#f8fbff 0%,#eef6ff 100%)}button,input,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:grid;grid-template-columns:320px minmax(0,1fr)}.sidebar{border-right:1px solid #d9e7fb;background:rgba(255,255,255,.92);display:flex;flex-direction:column;padding:28px 12px 18px;gap:22px}.brand-row{display:grid;grid-template-columns:52px 1fr 48px;align-items:center;gap:14px;padding:0 8px}.brand-mark,.eq-chip{display:grid;place-items:center;background:var(--blue);color:#fff;font-weight:800;box-shadow:0 10px 22px rgba(47,115,255,.24)}.brand-mark{width:48px;height:48px;border-radius:14px;font-size:18px}.brand-title{font-size:24px;line-height:1.1;font-weight:650}.brand-subtitle{margin-top:6px;color:var(--muted);font-size:15px}.icon-button{width:48px;height:48px;border:1px solid var(--line);background:#fff;color:#8aa0bc;border-radius:18px;font-size:36px;line-height:1}.new-quote-button{height:74px;border-radius:36px;border:1px solid var(--line);background:#fff;color:#24364f;font-size:24px;box-shadow:0 18px 36px rgba(85,124,179,.1)}.plus-mark{display:inline-grid;place-items:center;width:28px;height:28px;margin-right:10px;border:2px solid #6a9bff;border-radius:50%;color:var(--blue);font-weight:700}.side-nav{display:grid;gap:16px}.side-nav-item{height:46px;text-align:left;border:0;background:transparent;color:#34445d;padding:0 22px;border-radius:14px;font-size:20px}.side-nav-item:before{content:"";display:inline-block;width:18px;height:18px;margin-right:22px;border:2px solid #99abc2;border-radius:8px;vertical-align:-2px}.side-nav-item.is-active,.side-nav-item:hover{background:#eef5ff;color:#1f67ff}.search-box{height:56px;border-radius:18px;border:1px solid #e2ebf8;background:#f8fbff;display:flex;align-items:center;gap:10px;padding:0 20px;color:#6f82a0}.search-box input{width:100%;border:0;outline:0;background:transparent;color:var(--ink);font-size:17px}.recent-head{display:flex;justify-content:space-between;color:#8ea0b8;padding:0 20px}.recent-head button{border:0;background:transparent;color:#8ea0b8}.recent-list{overflow:auto;display:grid;gap:8px;padding:0 8px;min-height:180px}.recent-item{border:0;background:transparent;border-radius:12px;color:#60738e;display:flex;justify-content:space-between;padding:10px 12px;text-align:left}.recent-item:hover{background:#f2f7ff}.account-box{margin-top:auto;border-radius:18px;background:#f0f4fa;display:flex;gap:12px;padding:16px;align-items:center}.avatar{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;border:2px solid #aab9cd;color:#6f82a0}.account-box strong,.account-box span{display:block}.account-box span{color:#7b8ba2;margin-top:4px}.workspace{min-width:0;padding:18px 26px 22px;display:grid;grid-template-rows:minmax(420px,1fr) auto;gap:18px}.hero-panel{min-height:520px;border-radius:32px;border:1px solid var(--line);background:rgba(255,255,255,.9);box-shadow:var(--shadow);padding:48px 56px;display:flex;flex-direction:column;justify-content:center}.mode-head{display:flex;justify-content:center;align-items:center;gap:16px}.eq-chip{width:44px;height:44px;border-radius:12px;font-size:16px}h1{margin:0;font-size:40px;font-weight:650;letter-spacing:0}.mode-switch{width:min(360px,100%);margin:34px auto 24px;padding:6px;border:1px solid var(--line);border-radius:32px;display:grid;grid-template-columns:1fr 1fr;background:#fff}.mode-pill{height:54px;border:0;border-radius:26px;background:transparent;color:#263850;font-size:20px;font-weight:650}.mode-pill.is-active{background:#edf4ff;outline:2px solid #c4d8ff;color:var(--blue)}.intro-line{margin:0 0 16px;color:#61748f;text-align:center;font-size:18px}.muted{color:#7e8fa7}.starter-row-head{margin-top:34px;display:flex;justify-content:space-between;color:#70839c;gap:20px}.starter-cards{margin-top:18px;display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:18px}.starter-card{min-height:168px;border:1px solid var(--line);background:#fff;border-radius:20px;text-align:left;padding:22px 24px;box-shadow:0 16px 30px rgba(75,116,180,.08)}.starter-card strong{display:block;font-size:22px;margin-bottom:14px;color:#1e2a3c}.starter-card span{display:block;color:#667994;line-height:1.55}.starter-card em{display:block;margin-top:14px;color:var(--blue);font-style:normal;line-height:1.45}.conversation-shell{border:1px solid var(--line);background:rgba(255,255,255,.96);border-radius:28px;box-shadow:0 18px 40px rgba(62,112,189,.13);padding:18px}.conversation{max-height:44vh;overflow:auto;padding:8px 6px 14px;display:grid;gap:14px}.message{display:grid;gap:10px;max-width:82%;padding:16px 18px;border-radius:18px;line-height:1.65;white-space:pre-wrap}.message.assistant{justify-self:start;background:#f3f8ff;border:1px solid #dce9ff}.message.user{justify-self:end;background:#2f73ff;color:#fff}.quote-grid{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:10px}.quote-block{background:#fff;border:1px solid #e3edf9;border-radius:14px;padding:12px;white-space:normal}.quote-block b{display:block;margin-bottom:6px;color:#213149}.line-item{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid #edf3fb}.line-item:last-child{border-bottom:0}.attachment-tray{display:flex;gap:10px;flex-wrap:wrap;padding:0 8px 10px}.attachment-chip{border:1px solid #d6e6ff;background:#f4f8ff;color:#526680;border-radius:999px;padding:7px 12px}.composer{min-height:72px;border:1px solid #cfe0f8;border-radius:36px;display:grid;grid-template-columns:54px minmax(0,1fr) auto auto 54px;gap:10px;align-items:center;padding:8px 12px 8px 14px}.attach-button,.send-button{width:48px;height:48px;border-radius:50%;border:0;font-size:30px;line-height:1}.attach-button{background:transparent;color:#1f2d40}.send-button{background:#6eb0ff;color:#fff}textarea{width:100%;resize:none;border:0;outline:0;color:#27374f;font-size:18px;min-height:36px;max-height:120px}.select-wrap{position:relative}.capsule-button{height:44px;border:1px solid #bfd8ff;background:#eff6ff;color:#52709a;border-radius:24px;padding:0 18px;min-width:120px}.dropdown-panel{position:absolute;right:0;bottom:54px;width:260px;max-height:380px;overflow:auto;background:rgba(255,255,255,.98);border:1px solid #d7e5f9;box-shadow:0 20px 50px rgba(38,75,130,.18);border-radius:18px;padding:14px;z-index:10}.dropdown-panel label{display:flex;gap:12px;align-items:center;padding:10px 8px;color:#33455f}.dropdown-panel input{width:20px;height:20px}.is-loading{opacity:.75}@media(max-width:1100px){.app-shell{grid-template-columns:88px minmax(0,1fr)}.brand-row{grid-template-columns:52px}.brand-row>div:not(.brand-mark),.collapse-button,.new-quote-button,.side-nav-item,.search-box,.recent-head,.recent-list,.account-box{display:none}.sidebar{align-items:center}.starter-cards{grid-template-columns:repeat(2,minmax(180px,1fr))}}@media(max-width:760px){.app-shell{display:block}.sidebar{display:none}.workspace{padding:12px;grid-template-rows:auto auto}.hero-panel{padding:28px 18px;min-height:auto;border-radius:22px}h1{font-size:28px}.starter-row-head{display:grid}.starter-cards{grid-template-columns:1fr}.composer{grid-template-columns:42px 1fr 42px;border-radius:24px}.select-wrap{grid-column:2/span 2}.capsule-button{width:100%}.message{max-width:100%}.quote-grid{grid-template-columns:1fr}}

html[data-access-ready="false"] #equoteApp {
  visibility: hidden;
}

.workspace.workspace-single{grid-template-rows:minmax(680px,1fr)}
.workbench-page{width:100%;min-height:620px;display:flex;flex-direction:column;justify-content:center;gap:26px}
.view-tag{display:inline-flex;align-self:flex-start;border:1px solid #bdd4ff;background:#f6faff;color:#2490b4;border-radius:999px;padding:8px 22px;font-weight:700;font-size:18px}
.small-tag{font-size:15px;padding:6px 16px}
.view-desc{max-width:1120px;color:#6f8098;font-size:20px;line-height:1.7;margin:0}
.back-link{align-self:flex-start;border:1px solid #cfe0f8;background:#fff;color:#2f73ff;border-radius:999px;padding:9px 18px;font-weight:650}
.feature-cards{display:grid;grid-template-columns:repeat(4,minmax(190px,1fr));gap:20px;margin-top:24px}
.feature-card{border:1px solid var(--line);background:#fff;border-radius:22px;padding:28px;min-height:190px;box-shadow:0 16px 34px rgba(75,116,180,.08)}
.feature-card span{display:inline-flex;border:1px solid #d4e5ff;background:#f4f8ff;border-radius:999px;color:#8ba0b8;padding:6px 16px;margin-bottom:22px}
.feature-card strong{display:block;font-size:22px;margin-bottom:16px;color:#1e2a3c}
.feature-card p{margin:0;color:#667994;line-height:1.7;font-size:18px}
.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:18px 0}
.metric-grid>div{border:1px solid var(--line);background:#fff;border-radius:20px;padding:22px 26px}
.metric-grid span{display:block;color:#74869f;margin-bottom:12px}
.metric-grid strong{font-size:30px;font-weight:500}
.record-panel{border:1px solid var(--line);border-radius:24px;background:#fff;padding:28px}
.section-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;color:#7e8fa7}
.section-head p{max-width:380px;text-align:right;margin:0;line-height:1.6}
.record-panel h2{margin:20px 0;font-size:28px}
.record-list{max-height:360px;overflow:auto;border:1px solid #e6effb;border-radius:20px}
.record-table-header,.record-row{display:grid;grid-template-columns:minmax(120px,.72fr) minmax(360px,2.7fr) minmax(170px,1fr) minmax(140px,.9fr);gap:18px;align-items:center;min-width:900px}
.record-table-header{position:sticky;top:0;z-index:2;padding:13px 18px;background:#f7faff;border-bottom:1px solid #dfeaf8;color:#71839c;font-weight:650}
.record-row{padding:16px 18px;border-bottom:1px solid #edf3fb}
.record-row:last-child{border-bottom:0}
.record-row strong,.record-project span{display:block}
.record-project span{color:#71839c;margin-top:6px}
.record-date{color:#60748f;font-variant-numeric:tabular-nums;white-space:nowrap}
.record-status{display:flex;align-items:center}
.record-status-pill{display:inline-flex!important;align-items:center;justify-content:center;min-height:40px;padding:7px 15px;border:1px solid #cfe0f8;border-radius:999px;background:#f2f7ff;color:#2f73ff;font-weight:650;line-height:1.25;text-align:center}
.record-status-pill.is-paid{background:#eefbf4;border-color:#b9ebcf;color:#15905a}
.record-status-pill.is-needs-info{background:#fff8e8;border-color:#f2d691;color:#9c6a00}
.record-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.record-actions button,.quote-actions button{border:1px solid #cfe0f8;border-radius:999px;background:#f2f7ff;color:#2f73ff;padding:8px 16px;font-weight:650}
.quote-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
.quote-actions .primary-action,.primary-action{border:0;background:#2f73ff;color:#fff;border-radius:999px;padding:10px 18px;font-weight:700}
.secondary-action{border:1px solid #cfe0f8;background:#fff;color:#2f73ff;border-radius:999px;padding:10px 18px;font-weight:650}
.quote-actions .secondary-action{color:#2490b4}
.pricing-options-panel{display:grid;gap:9px;padding:10px 0;border-top:1px solid #e5eaf3;border-bottom:1px solid #e5eaf3;white-space:normal}
.quote-addon-holder{width:100%}
.quote-addon-meta{display:flex;align-items:flex-start;color:#52637a;font-size:13px;line-height:1.55}
.quote-sample-note{min-width:0;overflow-wrap:anywhere}
.quote-addon-controls{display:flex;align-items:center;gap:18px;min-width:0}
.quote-addon-row{display:flex;align-items:center;gap:7px;min-width:0}
.quote-addon-row>b{flex:0 0 38px;color:#34445d;font-size:13px}
.quote-pricing-toggle{min-width:0;flex-wrap:wrap}
.quote-pricing-toggle button{min-height:30px;white-space:normal;line-height:1.3}
.quote-pricing-toggle button:disabled{cursor:default;opacity:.58}
.quote-addon-holder.is-updating{opacity:.76}
@media(max-width:760px){.quote-addon-controls{align-items:stretch;flex-direction:column;gap:8px}.quote-addon-row{align-items:flex-start;flex-wrap:wrap}.quote-addon-row>b{flex-basis:100%}.quote-pricing-toggle{display:flex;width:100%}.quote-pricing-toggle button{flex:1 1 auto}}
.order-card{max-width:min(760px,100%)}
.lead-form{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:12px;margin-top:10px;white-space:normal}
.lead-form label{display:grid;gap:6px;color:#5f718a}
.lead-form input{min-height:42px;border:1px solid #d8e6f8;border-radius:14px;padding:0 12px;color:#1d2a3b;background:#fff}
.lead-form button{grid-column:1/-1}
.payment-box{display:grid;grid-template-columns:116px 1fr;gap:18px;align-items:center;border:1px solid #e1ecfb;background:#fff;border-radius:18px;padding:16px;white-space:normal}
.pay-qr{width:104px;height:104px;border-radius:18px;background:repeating-linear-gradient(45deg,#eaf3ff,#eaf3ff 8px,#fff 8px,#fff 16px);display:grid;place-items:center;text-align:center;color:#2f73ff;font-weight:800;border:1px solid #cfe0f8}
.muted-text{color:#71839c}
.sample-address{display:grid;gap:8px;border:1px solid #dce9ff;background:#fff;border-radius:18px;padding:14px;margin-top:8px;white-space:normal}
.sample-address div{display:grid;grid-template-columns:90px 1fr;gap:12px}
.sample-address b{color:#5b6d86}
.sample-address span{color:#1d2a3b}
@media(max-width:1100px){.feature-cards{grid-template-columns:repeat(2,minmax(180px,1fr))}.metric-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.feature-cards,.metric-grid,.lead-form,.payment-box{grid-template-columns:1fr}.section-head{display:block}.section-head p{text-align:left}}


/* mode label update */
.mode-switch{width:min(460px,100%)}
.mode-pill{font-size:19px;white-space:nowrap}
@media(max-width:760px){.mode-pill{font-size:17px}}


/* DeepSeek compact quotation workspace */
:root {
  --ds-bg: #f7f8fb;
  --ds-panel: #ffffff;
  --ds-line: #e5eaf3;
  --ds-text: #1f2937;
  --ds-muted: #667085;
}

html,
body {
  height: 100%;
  overflow: hidden;
  font-size: 14px;
  color: var(--ds-text);
  background: var(--ds-bg);
}

.app-shell {
  height: 100vh;
  min-height: 0;
  grid-template-columns: 248px minmax(0, 1fr);
  background: var(--ds-bg);
}

.sidebar {
  height: 100vh;
  min-height: 0;
  padding: 14px 10px;
  gap: 12px;
  background: #fff;
  border-right: 1px solid var(--ds-line);
  box-shadow: none;
}

.brand-row {
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 10px;
  padding: 0 4px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 13px;
}

.brand-title {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 650;
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 12px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 23px;
}

.new-quote-button {
  height: 44px;
  border-radius: 14px;
  font-size: 15px;
  box-shadow: none;
}

.plus-mark {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  font-size: 13px;
}

.side-nav {
  gap: 4px;
}

.side-nav-item {
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}

.side-nav-item:before {
  width: 14px;
  height: 14px;
  margin-right: 10px;
  border-radius: 5px;
}

.search-box {
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
}

.search-box input {
  font-size: 14px;
}

.recent-head {
  padding: 0 10px;
  font-size: 13px;
}

.recent-list {
  min-height: 0;
  flex: 1;
  gap: 2px;
  padding: 0 4px;
}

.recent-item {
  padding: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.account-box {
  padding: 10px;
  border-radius: 12px;
  font-size: 13px;
}

.avatar {
  width: 32px;
  height: 32px;
}

.workspace {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding: 14px 18px;
  gap: 10px;
  grid-template-rows: minmax(245px, auto) minmax(0, 1fr);
}

.workspace.workspace-single {
  grid-template-rows: minmax(0, 1fr);
}

.hero-panel {
  min-height: 0;
  max-height: 41vh;
  overflow: hidden;
  padding: 22px 32px;
  border-radius: 18px;
  box-shadow: none;
  border-color: var(--ds-line);
}

.workspace.workspace-single .hero-panel {
  height: 100%;
  max-height: none;
  overflow: auto;
}

.mode-head {
  gap: 10px;
}

.eq-chip {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 12px;
}

h1 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: 0;
}

.mode-switch {
  width: min(390px, 100%);
  margin: 16px auto 12px;
  padding: 4px;
  border-radius: 16px;
}

.mode-pill {
  height: 36px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.intro-line {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.55;
}

.starter-row-head {
  margin-top: 14px;
  font-size: 13px;
}

.starter-cards {
  margin-top: 10px;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(138px, 1fr));
}

.starter-card {
  min-height: 94px;
  padding: 14px;
  border-radius: 12px;
  box-shadow: none;
}

.starter-card strong {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.35;
}

.starter-card span,
.starter-card em {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.conversation-shell {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  box-shadow: none;
  border-color: var(--ds-line);
}

.composer {
  order: 0;
  min-height: 52px;
  padding: 6px 8px;
  border-radius: 16px;
  grid-template-columns: 38px minmax(0, 1fr) auto auto 38px;
  box-shadow: none;
}

.attachment-tray {
  order: 1;
  padding: 0 4px;
}

.conversation {
  order: 2;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 4px;
  gap: 10px;
}

.attach-button,
.send-button {
  width: 34px;
  height: 34px;
  font-size: 22px;
}

textarea {
  min-height: 28px;
  font-size: 14px;
  line-height: 1.5;
}

.capsule-button {
  min-width: 96px;
  height: 34px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 13px;
}

.message {
  max-width: min(760px, 92%);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.65;
}

.quote-grid {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
}

.quote-block,
.flow-card,
.feature-card,
.stat-card,
.record-row {
  border-radius: 12px;
  box-shadow: none;
}

.quote-block {
  padding: 10px;
  font-size: 13px;
}

.quote-summary h3,
.quote-section h3,
.workbench-page h2 {
  font-size: 18px;
  line-height: 1.4;
}

.quote-summary p,
.quote-section p,
.line-item,
.flow-card,
.feature-card,
.record-row {
  font-size: 13px;
  line-height: 1.6;
}

.hero-panel.is-chatting {
  max-height: 188px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.hero-panel.is-chatting .starter-row-head,
.hero-panel.is-chatting .starter-cards,
.hero-panel.is-chatting .intro-line.muted {
  display: none;
}

.hero-panel.is-chatting h1 {
  font-size: 22px;
}

.hero-panel.is-chatting .mode-switch {
  margin: 10px auto 8px;
}

.workbench-page {
  min-height: 0;
  gap: 18px;
  justify-content: flex-start;
}

.workbench-page > p {
  font-size: 14px;
  line-height: 1.65;
}

.feature-cards {
  gap: 12px;
}

.feature-card {
  min-height: 150px;
  padding: 18px;
}

.flow-card,
.lead-form,
.payment-box,
.shipping-box {
  padding: 16px;
}

@media (max-width: 1180px) {
  .starter-cards {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .hero-panel {
    max-height: 45vh;
  }
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .app-shell {
    height: auto;
    grid-template-columns: 1fr;
  }

  .workspace {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding: 10px;
    grid-template-rows: auto auto;
  }

  .hero-panel {
    max-height: none;
    padding: 18px;
  }

  h1 {
    font-size: 23px;
  }

  .mode-pill {
    font-size: 13px;
  }

  .starter-cards,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .composer {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }
}


/* Quote result audit layout */
.quote-result-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(860px, 96%);
  max-width: min(860px, 96%);
}

.quote-result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5eaf3;
}

.quote-title-box {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.quote-title-box strong {
  font-size: 18px;
  line-height: 1.45;
  color: #172033;
  overflow-wrap: anywhere;
}

.quote-mode-chip,
.status-chip,
.platform-required-chip,
.price-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  white-space: nowrap;
}

.quote-mode-chip {
  padding: 3px 9px;
  font-size: 12px;
  color: #1d5fd7;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.quote-total-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 112px;
}

.quote-total-box span {
  font-size: 12px;
  color: #667085;
}

.quote-total-box b {
  font-size: 20px;
  color: #0b6b9a;
}

.quote-conclusion {
  padding: 10px 12px;
  border: 1px solid #d7e7fb;
  border-radius: 12px;
  background: #f8fbff;
  font-size: 14px;
  line-height: 1.7;
  color: #1f2937;
}

.quote-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-output-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  background: #ffffff;
}

.quote-output-section h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: #26364f;
}

.quote-output-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
  gap: 12px;
  align-items: start;
  padding: 9px 0;
  border-top: 1px solid #edf1f7;
}

.quote-output-row:first-of-type {
  border-top: 0;
}

.quote-output-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quote-output-main strong {
  font-size: 14px;
  line-height: 1.45;
  color: #172033;
  overflow-wrap: anywhere;
}

.quote-output-main span,
.quote-output-side small,
.chemical-summary span {
  font-size: 13px;
  line-height: 1.55;
  color: #667085;
  overflow-wrap: anywhere;
}

.quote-output-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  text-align: right;
}

.status-chip {
  padding: 2px 8px;
  font-size: 12px;
  border: 1px solid #d7e7fb;
  color: #0b6b9a;
  background: #f0f9ff;
}

.status-chip.required {
  color: #0f5f45;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.status-chip.optional {
  color: #7c5a00;
  border-color: #fde68a;
  background: #fffbeb;
}

.platform-required-chip {
  padding: 2px 8px;
  font-size: 12px;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}

.quote-scope-holder {
  display: flex;
  justify-content: flex-start;
  margin-top: 2px;
}

.quote-scope-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid #d7e7fb;
  border-radius: 999px;
  background: #f8fbff;
}

.quote-scope-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  background: transparent;
  color: #4b6280;
  font-size: 13px;
  cursor: pointer;
}

.quote-scope-toggle button.active {
  background: #2f73ff;
  color: #fff;
}

.price-pill {
  justify-self: end;
  padding: 4px 10px;
  font-size: 13px;
  color: #0b6b9a;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.chemical-summary {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-top: 4px;
}

.chemical-summary b {
  color: #0b6b9a;
  font-size: 14px;
}

.assumption-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.assumption-chips span {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #e5eaf3;
  background: #f8fafc;
  color: #667085;
  font-size: 12px;
}

.quote-next-question {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
}

.quote-next-question b {
  color: #9a3412;
}

.quote-next-question span {
  color: #7c2d12;
  line-height: 1.6;
}

.composition-reply-example {
  margin: 0;
  color: #c2410c;
  font-size: 13px;
  line-height: 1.5;
}

.composition-reply-examples {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
}

.composition-reply-examples b {
  color: #1e3a8a;
  font-size: 14px;
}

.composition-reply-examples .composition-reply-example {
  color: #334155;
}

@media (max-width: 820px) {
  .quote-result-head,
  .quote-meta-grid,
  .quote-output-row,
  .chemical-summary {
    grid-template-columns: 1fr;
  }

  .quote-total-box,
  .quote-output-side,
  .price-pill {
    align-items: flex-start;
    justify-self: start;
    text-align: left;
  }
}


/* Final balanced workbench layout */
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  background: #f6f7fb !important;
}

.app-shell {
  grid-template-columns: 220px minmax(0, 1fr) !important;
  height: 100vh !important;
  min-height: 0 !important;
}

.sidebar {
  padding: 12px 10px !important;
  gap: 10px !important;
}

.brand-row {
  grid-template-columns: 34px minmax(0, 1fr) 32px !important;
}

.new-quote-button {
  height: 42px !important;
  font-size: 14px !important;
}

.side-nav-item {
  height: 36px !important;
  font-size: 14px !important;
}

.search-box {
  height: 38px !important;
}

.recent-list {
  overflow: auto !important;
}

.workspace {
  height: 100vh !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 12px 16px !important;
  gap: 10px !important;
  grid-template-rows: 310px minmax(0, 1fr) !important;
}

.hero-panel {
  min-height: 0 !important;
  height: 310px !important;
  max-height: 310px !important;
  overflow: hidden !important;
  justify-content: flex-start !important;
  padding: 14px 24px 16px !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

.mode-head {
  justify-content: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
}

.eq-chip {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}

h1 {
  font-size: 25px !important;
  line-height: 1.2 !important;
  font-weight: 650 !important;
}

.mode-switch {
  width: min(360px, 100%) !important;
  margin: 12px auto 10px !important;
  padding: 3px !important;
  border-radius: 14px !important;
}

.mode-pill {
  height: 34px !important;
  border-radius: 11px !important;
  font-size: 14px !important;
}

.intro-line {
  max-width: 880px !important;
  margin: 4px auto !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.starter-row-head {
  max-width: 100% !important;
  margin: 12px 0 0 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.starter-cards {
  margin-top: 8px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  min-height: 0 !important;
}

.starter-card {
  min-width: 0 !important;
  min-height: 104px !important;
  height: 104px !important;
  padding: 12px 13px !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.starter-card strong {
  margin: 0 0 5px !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.starter-card span,
.starter-card em {
  margin-top: 4px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.starter-card span {
  -webkit-line-clamp: 2 !important;
}

.starter-card em {
  -webkit-line-clamp: 2 !important;
}

.conversation-shell {
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.composer {
  flex: 0 0 auto !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 5px 8px !important;
  border-radius: 14px !important;
  grid-template-columns: 34px minmax(0, 1fr) auto auto 34px !important;
  gap: 8px !important;
}

.attach-button,
.send-button {
  width: 32px !important;
  height: 32px !important;
  font-size: 20px !important;
}

textarea {
  min-height: 24px !important;
  max-height: 72px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.capsule-button {
  min-width: 84px !important;
  height: 32px !important;
  padding: 0 11px !important;
  font-size: 12px !important;
  border-radius: 12px !important;
}

.conversation {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding: 10px 4px 8px !important;
}

.message {
  display: block !important;
  width: fit-content !important;
  max-width: min(760px, 78%) !important;
  min-height: 0 !important;
  padding: 11px 13px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
}

.message.assistant {
  align-self: flex-start !important;
  justify-self: auto !important;
  background: #f5f8fc !important;
}

.message.user {
  align-self: flex-end !important;
  justify-self: auto !important;
}

.conversation > .message.assistant:first-child:not(.quote-result-card):not(.order-card) {
  max-width: min(720px, 74%) !important;
  background: #f5f8fc !important;
}

.quote-result-card,
.order-card {
  width: min(860px, 94%) !important;
  max-width: min(860px, 94%) !important;
}

.quote-grid,
.quote-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.quote-block {
  min-width: 0 !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  overflow-wrap: anywhere !important;
}

.quote-output-row {
  grid-template-columns: minmax(0, 1fr) minmax(88px, auto) !important;
}

.hero-panel.is-chatting {
  height: 108px !important;
  max-height: 108px !important;
  padding: 10px 24px !important;
}

.hero-panel.is-chatting h1 {
  font-size: 20px !important;
}

.hero-panel.is-chatting .intro-line,
.hero-panel.is-chatting .starter-row-head,
.hero-panel.is-chatting .starter-cards {
  display: none !important;
}

.workspace:has(.hero-panel.is-chatting) {
  grid-template-rows: 108px minmax(0, 1fr) !important;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-rows: 330px minmax(0, 1fr) !important;
  }

  .hero-panel {
    height: 330px !important;
    max-height: 330px !important;
  }

  .starter-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .starter-card {
    height: 86px !important;
    min-height: 86px !important;
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow: auto !important;
  }

  .app-shell {
    display: block !important;
    height: auto !important;
  }

  .workspace {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    grid-template-rows: auto auto !important;
  }

  .hero-panel {
    height: auto !important;
    max-height: none !important;
  }

  .starter-cards,
  .quote-grid,
  .quote-meta-grid {
    grid-template-columns: 1fr !important;
  }

  .starter-card {
    height: auto !important;
    min-height: 90px !important;
  }

  .message,
  .conversation > .message.assistant:first-child:not(.quote-result-card):not(.order-card),
  .quote-result-card,
  .order-card {
    max-width: 100% !important;
    width: 100% !important;
  }
}


/* DeepSeek two-state interaction flow */
.workspace {
  grid-template-rows: minmax(0, 1fr) !important;
}

.workspace:not(.is-chat-active) {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) !important;
}

.workspace:not(.is-chat-active) .hero-panel {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  justify-content: center !important;
  padding: 22px 28px !important;
}

.workspace:not(.is-chat-active) .conversation-shell {
  position: absolute !important;
  left: calc(220px + 32px) !important;
  right: 32px !important;
  bottom: 20px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.workspace:not(.is-chat-active) .composer,
.workspace:not(.is-chat-active) .attachment-tray {
  pointer-events: auto !important;
  width: min(920px, 100%) !important;
  margin: 0 auto !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(31, 50, 80, .08) !important;
}

.workspace:not(.is-chat-active) .conversation {
  display: none !important;
}

.workspace.is-chat-active {
  display: block !important;
  padding: 12px 16px !important;
}

.workspace.is-chat-active .hero-panel {
  display: none !important;
}

.workspace.is-chat-active .conversation-shell {
  height: calc(100vh - 24px) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 12px !important;
  border: 1px solid #e1e7f0 !important;
  background: #fff !important;
  border-radius: 18px !important;
}

.workspace.is-chat-active .conversation {
  order: 1 !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 8px 10px 14px !important;
  overflow: auto !important;
}

.workspace.is-chat-active .attachment-tray {
  order: 2 !important;
  flex: 0 0 auto !important;
}

.workspace.is-chat-active .composer {
  order: 3 !important;
  flex: 0 0 auto !important;
  width: min(920px, 100%) !important;
  margin: 0 auto !important;
  background: #fff !important;
}

.workspace.is-chat-active .message {
  max-width: min(780px, 78%) !important;
}

.workspace.is-chat-active .message.user {
  max-width: min(680px, 62%) !important;
}

.workspace:not(.is-chat-active) .mode-head {
  margin-top: -70px !important;
}

.workspace:not(.is-chat-active) .starter-cards {
  max-width: 1040px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 760px) {
  .workspace:not(.is-chat-active) .conversation-shell {
    position: static !important;
    padding: 10px 0 0 !important;
  }

  .workspace.is-chat-active .conversation-shell {
    height: auto !important;
    min-height: 100vh !important;
  }
}


/* DeepSeek interaction flow v2: clean start page, dedicated chat page */
html,
body {
  height: 100% !important;
  overflow: hidden !important;
  background: #f7f8fb !important;
}

.app-shell {
  height: 100vh !important;
  min-height: 100vh !important;
  grid-template-columns: 232px minmax(0, 1fr) !important;
  background: #f7f8fb !important;
}

.sidebar {
  height: 100vh !important;
  overflow: hidden !important;
  padding: 18px 10px 14px !important;
  gap: 14px !important;
  background: #fff !important;
}

.brand-row { grid-template-columns: 38px minmax(0, 1fr) 34px !important; gap: 10px !important; }
.brand-mark { width: 36px !important; height: 36px !important; border-radius: 9px !important; font-size: 13px !important; }
.brand-title { font-size: 19px !important; }
.brand-subtitle { font-size: 12px !important; margin-top: 2px !important; }
.icon-button { width: 34px !important; height: 34px !important; border-radius: 12px !important; font-size: 24px !important; }
.new-quote-button { height: 46px !important; border-radius: 18px !important; font-size: 15px !important; box-shadow: none !important; }
.plus-mark { width: 20px !important; height: 20px !important; margin-right: 7px !important; font-size: 15px !important; }
.side-nav { gap: 6px !important; }
.side-nav-item { height: 38px !important; border-radius: 10px !important; padding: 0 12px !important; font-size: 14px !important; }
.side-nav-item:before { width: 14px !important; height: 14px !important; margin-right: 10px !important; border-radius: 5px !important; }
.search-box { height: 40px !important; border-radius: 12px !important; padding: 0 12px !important; }
.search-box input { font-size: 13px !important; }
.recent-head { padding: 0 12px !important; font-size: 13px !important; }
.recent-list { min-height: 0 !important; flex: 1 1 auto !important; font-size: 13px !important; }
.account-box { padding: 10px !important; border-radius: 12px !important; font-size: 12px !important; }
.avatar { width: 32px !important; height: 32px !important; }

.workspace {
  position: relative !important;
  height: 100vh !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: block !important;
  background: #f7f8fb !important;
}

.workspace:not(.is-chat-active) {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  padding: 44px 28px 34px !important;
}

.workspace:not(.is-chat-active) .hero-panel {
  width: min(920px, 100%) !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

.workspace:not(.is-chat-active) .mode-head {
  margin: 0 0 18px !important;
  gap: 10px !important;
}

.workspace:not(.is-chat-active) .eq-chip {
  width: 34px !important;
  height: 34px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
}

.workspace:not(.is-chat-active) h1 {
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

.workspace:not(.is-chat-active) .mode-switch {
  width: min(470px, 100%) !important;
  height: 50px !important;
  margin: 0 auto 16px !important;
  padding: 4px !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(20, 35, 60, .04) !important;
}

.workspace:not(.is-chat-active) .mode-pill {
  height: 40px !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  font-weight: 650 !important;
}

.workspace:not(.is-chat-active) .intro-line {
  width: min(760px, 100%) !important;
  margin: 0 auto 8px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #52657f !important;
}

.workspace:not(.is-chat-active) .intro-line.muted {
  display: none !important;
}

.workspace:not(.is-chat-active) .conversation-shell {
  position: static !important;
  width: min(920px, 100%) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: block !important;
  pointer-events: auto !important;
}

.workspace:not(.is-chat-active) .conversation,
.workspace:not(.is-chat-active) .attachment-tray:not(:has(.attachment-chip)) {
  display: none !important;
}

.workspace:not(.is-chat-active) .composer {
  width: 100% !important;
  min-height: 62px !important;
  grid-template-columns: 42px minmax(0, 1fr) auto auto 44px !important;
  padding: 8px 10px !important;
  border-radius: 18px !important;
  border: 1px solid #dbe5f2 !important;
  background: #fff !important;
  box-shadow: 0 10px 32px rgba(30, 48, 80, .08) !important;
}

.workspace:not(.is-chat-active) textarea {
  font-size: 14px !important;
  line-height: 1.5 !important;
  min-height: 24px !important;
}

.workspace:not(.is-chat-active) #messageInput {
  min-height: 42px !important;
  max-height: 120px !important;
  padding: 10px 0 !important;
  line-height: 22px !important;
  overflow-y: hidden;
}

.workspace:not(.is-chat-active) .attach-button,
.workspace:not(.is-chat-active) .send-button {
  width: 38px !important;
  height: 38px !important;
  font-size: 24px !important;
}

.workspace:not(.is-chat-active) .capsule-button {
  height: 38px !important;
  min-width: 108px !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
}

.workspace:not(.is-chat-active) .starter-row-head {
  width: min(920px, 100%) !important;
  margin: 18px auto 8px !important;
  font-size: 13px !important;
  color: #7a8798 !important;
}

.workspace:not(.is-chat-active) .starter-cards {
  width: min(920px, 100%) !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.workspace:not(.is-chat-active) .starter-card {
  min-height: 112px !important;
  height: auto !important;
  padding: 14px 15px !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  background: #fff !important;
}

.workspace:not(.is-chat-active) .starter-card strong { font-size: 15px !important; margin-bottom: 8px !important; }
.workspace:not(.is-chat-active) .starter-card span { font-size: 12px !important; line-height: 1.45 !important; }
.workspace:not(.is-chat-active) .starter-card em { font-size: 12px !important; margin-top: 8px !important; line-height: 1.45 !important; }

.workspace.is-chat-active {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}

.workspace.is-chat-active .hero-panel {
  display: none !important;
}

.workspace.is-chat-active .conversation-shell {
  width: 100% !important;
  height: 100vh !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.workspace.is-chat-active .conversation {
  order: 1 !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  max-height: none !important;
  padding: 28px 32px 18px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  background: #fff !important;
}

.workspace.is-chat-active .attachment-tray {
  order: 2 !important;
  flex: 0 0 auto !important;
  width: min(880px, calc(100% - 48px)) !important;
  margin: 0 auto !important;
}

.workspace.is-chat-active .composer {
  order: 3 !important;
  flex: 0 0 auto !important;
  width: min(880px, calc(100% - 48px)) !important;
  min-height: 58px !important;
  margin: 0 auto 18px !important;
  grid-template-columns: 40px minmax(0, 1fr) auto auto 42px !important;
  padding: 7px 9px !important;
  border-radius: 18px !important;
  border: 1px solid #dbe5f2 !important;
  background: #fff !important;
  box-shadow: 0 6px 22px rgba(30, 48, 80, .08) !important;
}

.workspace.is-chat-active textarea {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.workspace.is-chat-active .message {
  font-size: 14px !important;
  line-height: 1.65 !important;
  border-radius: 14px !important;
  max-width: min(820px, 78%) !important;
  width: fit-content !important;
}

.workspace.is-chat-active .message.user {
  max-width: min(660px, 62%) !important;
  background: #2f73ff !important;
  color: #fff !important;
}

.workspace.is-chat-active .quote-result-card,
.workspace.is-chat-active .order-card {
  width: min(820px, 78%) !important;
  max-width: min(820px, 78%) !important;
  align-self: flex-start !important;
  overflow: visible !important;
}

.quote-result-card *,
.order-card * {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 76px minmax(0, 1fr) !important; }
  .brand-row { grid-template-columns: 38px !important; }
  .brand-row > div:not(.brand-mark),
  .collapse-button,
  .new-quote-button,
  .side-nav-item,
  .search-box,
  .recent-head,
  .recent-list,
  .account-box { display: none !important; }
  .sidebar { align-items: center !important; }
  .workspace:not(.is-chat-active) .starter-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 760px) {
  html,
  body { height: auto !important; overflow: auto !important; }
  .app-shell { display: block !important; height: auto !important; min-height: 100vh !important; }
  .sidebar { display: none !important; }
  .workspace,
  .workspace:not(.is-chat-active),
  .workspace.is-chat-active { min-height: 100vh !important; height: auto !important; overflow: visible !important; padding: 16px !important; }
  .workspace:not(.is-chat-active) { justify-content: flex-start !important; padding-top: 44px !important; }
  .workspace:not(.is-chat-active) .starter-cards { grid-template-columns: 1fr !important; }
  .workspace:not(.is-chat-active) .composer,
  .workspace.is-chat-active .composer { grid-template-columns: 38px minmax(0, 1fr) 40px !important; }
  .workspace:not(.is-chat-active) .select-wrap,
  .workspace.is-chat-active .select-wrap { grid-column: 2 / span 2 !important; }
  .workspace.is-chat-active .conversation-shell { height: auto !important; min-height: calc(100vh - 32px) !important; }
  .workspace.is-chat-active .conversation { padding: 12px 0 16px !important; }
  .workspace.is-chat-active .message,
  .workspace.is-chat-active .message.user,
  .workspace.is-chat-active .quote-result-card,
  .workspace.is-chat-active .order-card { width: 100% !important; max-width: 100% !important; }
}


/* Stable chat scroll: block flow avoids flex scrollHeight blank space */
.workspace.is-chat-active .conversation {
  display: block !important;
}

.workspace.is-chat-active .conversation > .message {
  display: block !important;
  margin: 0 0 14px 0 !important;
}

.workspace.is-chat-active .conversation > .message.user {
  margin-left: auto !important;
  margin-right: 0 !important;
}

.workspace.is-chat-active .conversation > .message.assistant,
.workspace.is-chat-active .conversation > .quote-result-card,
.workspace.is-chat-active .conversation > .order-card {
  margin-left: 0 !important;
  margin-right: auto !important;
}


/* Compact quote rows and centered DeepSeek-like chat column */
.workspace.is-chat-active .conversation-shell {
  background: #fff !important;
}

.workspace.is-chat-active .conversation {
  padding: 30px max(32px, calc((100% - 900px) / 2)) 18px !important;
}

.workspace.is-chat-active .composer,
.workspace.is-chat-active .attachment-tray {
  width: min(860px, calc(100% - 96px)) !important;
}

.workspace.is-chat-active .message {
  max-width: min(860px, 100%) !important;
}

.workspace.is-chat-active .message.user {
  max-width: min(620px, 72%) !important;
}

.workspace.is-chat-active .quote-result-card,
.workspace.is-chat-active .order-card {
  width: min(860px, 100%) !important;
  max-width: min(860px, 100%) !important;
  padding: 16px 18px !important;
  border-radius: 14px !important;
}

.quote-result-head {
  gap: 12px !important;
  margin-bottom: 10px !important;
}

.quote-conclusion {
  margin: 10px 0 !important;
  padding: 10px 12px !important;
  line-height: 1.55 !important;
}

.quote-meta-grid {
  gap: 8px !important;
  margin-bottom: 10px !important;
}

.compact-quote-section {
  margin-top: 10px !important;
}

.compact-quote-section h3 {
  margin: 0 0 8px !important;
  font-size: 14px !important;
}

.compact-quote-list {
  display: grid !important;
  gap: 7px !important;
}

.compact-quote-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 9px 10px !important;
  border: 1px solid #e5edf7 !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.compact-quote-row .quote-output-main strong {
  font-size: 13px !important;
  line-height: 1.35 !important;
  margin-bottom: 3px !important;
}

.compact-quote-row .quote-output-main span {
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: #65758c !important;
}

.compact-quote-side {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  min-width: 180px !important;
}

.standard-chip,
.point-chip {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.standard-chip {
  color: #586a82 !important;
  background: #f5f7fa !important;
  border: 1px solid #e2e8f0 !important;
}

.point-chip {
  color: #12618b !important;
  background: #eef9ff !important;
  border: 1px solid #cdefff !important;
  font-weight: 650 !important;
}

.compact-assumptions {
  margin-top: 8px !important;
}

.quote-output-section.chemical-section,
.quote-output-section + .quote-output-section:not(.compact-quote-section) {
  margin-top: 8px !important;
}

@media (max-width: 760px) {
  .workspace.is-chat-active .conversation {
    padding: 14px 0 16px !important;
  }
  .workspace.is-chat-active .composer,
  .workspace.is-chat-active .attachment-tray,
  .workspace.is-chat-active .message,
  .workspace.is-chat-active .quote-result-card,
  .workspace.is-chat-active .order-card {
    width: 100% !important;
    max-width: 100% !important;
  }
  .compact-quote-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .compact-quote-side {
    justify-content: flex-start !important;
    min-width: 0 !important;
  }
}


/* Reduce quote card height after compact row merge */
.compact-assumptions {
  display: none !important;
}

.quote-result-card .quote-output-section {
  margin-top: 8px !important;
}

.quote-result-card .quote-actions {
  margin-top: 10px !important;
}

.quote-next-question {
  margin-top: 8px !important;
  padding: 8px 10px !important;
  line-height: 1.45 !important;
}


/* Recent quote flow menu: DeepSeek-like usable actions */
.recent-list {
  gap: 4px !important;
  padding: 0 8px 4px !important;
}

.recent-empty,
.recent-group-label {
  color: #98a4b5 !important;
  font-size: 12px !important;
  padding: 8px 10px 4px !important;
}

.recent-flow-item {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 34px !important;
  align-items: center !important;
  gap: 4px !important;
  min-height: 44px !important;
  padding: 0 4px 0 10px !important;
  border-radius: 12px !important;
  color: #26364d !important;
}

.recent-flow-item:hover,
.recent-flow-item.is-pinned {
  background: #eef5ff !important;
}

.recent-main {
  min-width: 0 !important;
  border: 0 !important;
  background: transparent !important;
  padding: 7px 0 !important;
  text-align: left !important;
  color: inherit !important;
}

.recent-title {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.recent-main small {
  display: block !important;
  margin-top: 2px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #8a98aa !important;
  font-size: 11px !important;
}

.recent-more-wrap {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
}

.recent-more-button {
  width: 30px !important;
  height: 30px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #95a2b4 !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
}

.recent-more-button:hover,
.recent-more-button.is-open {
  background: #dfeafc !important;
  color: #5c6d84 !important;
}

.recent-action-menu {
  position: absolute !important;
  left: 30px !important;
  top: -8px !important;
  width: 154px !important;
  padding: 8px !important;
  border-radius: 14px !important;
  border: 1px solid #e4e8ef !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 12px 34px rgba(20,34,55,.16) !important;
  z-index: 50 !important;
}

.recent-menu-action {
  width: 100% !important;
  height: 38px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 8px !important;
  color: #1f2d40 !important;
  text-align: left !important;
}

.recent-menu-action:hover {
  background: #f3f4f6 !important;
}

.recent-menu-action b {
  font-size: 14px !important;
  font-weight: 500 !important;
}

.recent-menu-action.danger,
.recent-menu-action.danger b {
  color: #e23939 !important;
}

.app-toast {
  position: fixed !important;
  left: 50% !important;
  bottom: 28px !important;
  transform: translate(-50%, 20px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 200 !important;
  background: rgba(30, 41, 59, .94) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 9px 14px !important;
  font-size: 13px !important;
  transition: opacity .18s ease, transform .18s ease !important;
}

.app-toast.is-visible {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
}

.app-toast.is-top {
  top: 20px !important;
  bottom: auto !important;
  transform: translate(-50%, -20px) !important;
}

.app-toast.is-top.is-visible {
  transform: translate(-50%, 0) !important;
}


/* Keep recent quote action menu above the workspace, like DeepSeek side menu */
.sidebar {
  position: relative !important;
  z-index: 120 !important;
}

.workspace {
  position: relative !important;
  z-index: 1 !important;
}

.recent-list,
.recent-flow-item,
.recent-more-wrap {
  overflow: visible !important;
}

.recent-action-menu {
  z-index: 500 !important;
  pointer-events: auto !important;
}

/* 20260708 menu page isolation: non-quote pages should not show chat composer */
.workspace.workspace-feature {
  display: block !important;
  height: 100vh !important;
  overflow: auto !important;
  padding: 24px 32px !important;
  background: #f7f8fb !important;
}

.workspace.workspace-feature .conversation-shell,
.workspace.workspace-feature .composer,
.workspace.workspace-feature .attachment-tray,
.workspace.workspace-feature .conversation {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.workspace.workspace-feature .hero-panel {
  width: min(1040px, 100%) !important;
  min-height: calc(100vh - 48px) !important;
  max-height: none !important;
  margin: 0 auto !important;
  padding: 40px 48px !important;
  border: 1px solid #e5eaf3 !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: none !important;
  display: block !important;
  overflow: visible !important;
}

.workspace.workspace-feature .workbench-page {
  width: 100% !important;
  min-height: 0 !important;
  display: block !important;
  gap: 0 !important;
}

.workspace.workspace-feature .back-link {
  display: none !important;
}

.workspace.workspace-feature .view-tag {
  display: inline-flex !important;
  align-items: center !important;
  height: 34px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  border: 1px solid #cfe0f8 !important;
  background: #f5f9ff !important;
  color: #2490b4 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  margin: 0 0 24px !important;
}

.workspace.workspace-feature .workbench-page h1 {
  max-width: 880px !important;
  margin: 0 0 18px !important;
  color: #162033 !important;
  font-size: 34px !important;
  line-height: 1.28 !important;
  font-weight: 700 !important;
}

.workspace.workspace-feature .view-desc {
  max-width: 920px !important;
  margin: 0 !important;
  color: #607087 !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

.workspace.workspace-feature .feature-cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  margin-top: 46px !important;
}

.workspace.workspace-feature .feature-card {
  min-height: 158px !important;
  padding: 22px 24px !important;
  border-radius: 16px !important;
  border: 1px solid #e1e9f5 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.workspace.workspace-feature .feature-card span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 0 12px !important;
  margin: 0 0 18px !important;
  border-radius: 999px !important;
  border: 1px solid #d8e7fb !important;
  background: #f5f9ff !important;
  color: #7a8da6 !important;
  font-size: 12px !important;
}

.workspace.workspace-feature .feature-card strong {
  display: block !important;
  margin: 0 0 12px !important;
  color: #172235 !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
}

.workspace.workspace-feature .feature-card p {
  margin: 0 !important;
  color: #64758d !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.workspace.workspace-feature .metric-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 32px 0 20px !important;
}

.workspace.workspace-feature .metric-grid > div,
.workspace.workspace-feature .record-panel {
  border: 1px solid #e1e9f5 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.workspace.workspace-feature .metric-grid > div {
  min-height: 86px !important;
  padding: 16px 18px !important;
}

.workspace.workspace-feature .metric-grid span {
  color: #7a8da6 !important;
  font-size: 13px !important;
}

.workspace.workspace-feature .metric-grid strong {
  margin-top: 8px !important;
  color: #172235 !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
}

.workspace.workspace-feature .record-panel {
  padding: 20px 22px !important;
}

.workspace.workspace-feature .record-panel h2 {
  margin: 12px 0 16px !important;
  color: #172235 !important;
  font-size: 20px !important;
  line-height: 1.35 !important;
}

@media (max-width: 900px) {
  .workspace.workspace-feature {
    padding: 14px !important;
  }
  .workspace.workspace-feature .hero-panel {
    min-height: calc(100vh - 28px) !important;
    padding: 28px 22px !important;
  }
  .workspace.workspace-feature .workbench-page h1 {
    font-size: 26px !important;
  }
  .workspace.workspace-feature .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
/* 20260708 country/platform multi-select dropdown */
.select-wrap {
  position: relative !important;
  z-index: 40 !important;
}

.select-wrap:has(.dropdown-panel:not([hidden])) {
  z-index: 80 !important;
}

.capsule-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.capsule-button::after {
  content: "⌄";
  font-size: 12px;
  color: #6b83a5;
  transform: translateY(-1px);
}

.dropdown-panel {
  width: 300px !important;
  max-height: 360px !important;
  padding: 10px !important;
  overflow: auto !important;
  border-radius: 16px !important;
  border: 1px solid #d8e4f5 !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 18px 48px rgba(26, 45, 78, .18) !important;
  z-index: 120 !important;
}

.select-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 10px;
  border-bottom: 1px solid #edf2f8;
}

.select-panel-head strong {
  color: #182235;
  font-size: 14px;
  line-height: 1.2;
}

.select-panel-head span {
  color: #7d8da5;
  font-size: 12px;
}

.select-panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 6px 6px;
}

.select-action,
.select-done {
  height: 30px;
  border-radius: 10px;
  border: 1px solid #d8e5f7;
  background: #f7fbff;
  color: #2f73ff;
  font-size: 13px;
  font-weight: 650;
}

.select-option-list {
  display: grid;
  gap: 2px;
  padding: 4px 0 6px;
}

.dropdown-panel .select-option {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 7px 8px !important;
  border-radius: 10px !important;
  color: #24334a !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  cursor: pointer !important;
}

.dropdown-panel .select-option:hover {
  background: #f2f6ff !important;
}

.dropdown-panel .select-option input {
  flex: 0 0 auto !important;
  width: 17px !important;
  height: 17px !important;
  accent-color: #2f73ff !important;
}

.dropdown-panel .select-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-panel-foot {
  display: flex;
  justify-content: flex-end;
  padding: 8px 6px 4px;
  border-top: 1px solid #edf2f8;
}

.select-done {
  min-width: 74px;
  background: #2f73ff;
  color: #fff;
  border-color: #2f73ff;
}

.workspace:not(.is-chat-active) .dropdown-panel {
  bottom: 48px !important;
  right: 0 !important;
}

.workspace.is-chat-active .dropdown-panel {
  bottom: 46px !important;
  right: 0 !important;
}

@media (max-width: 760px) {
  .dropdown-panel {
    width: min(300px, calc(100vw - 32px)) !important;
  }
}
/* 20260708 upload thumbnails and in-chat image preview */
.attachment-tray {
  gap: 10px !important;
  align-items: stretch !important;
}

.attachment-chip.upload-card {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) 22px !important;
  grid-template-rows: auto 4px !important;
  column-gap: 10px !important;
  row-gap: 7px !important;
  width: min(260px, 100%) !important;
  min-height: 62px !important;
  padding: 8px 8px !important;
  border-radius: 14px !important;
  background: #f8fbff !important;
  border: 1px solid #d9e6f8 !important;
  color: #24344d !important;
}

.upload-thumb {
  width: 46px !important;
  height: 46px !important;
  grid-row: 1 / span 2 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
  background: #eaf2ff !important;
  color: #2f73ff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.upload-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.upload-meta {
  min-width: 0 !important;
  display: grid !important;
  align-content: center !important;
  gap: 4px !important;
}

.upload-meta strong,
.upload-meta span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.upload-meta strong {
  font-size: 13px !important;
  line-height: 1.2 !important;
  color: #223047 !important;
}

.upload-meta span {
  font-size: 12px !important;
  color: #7d8ea7 !important;
}

.upload-progress {
  grid-column: 2 / span 2 !important;
  height: 4px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: #e8eef8 !important;
}

.upload-progress i {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: #2f73ff !important;
  transition: width .18s ease !important;
}

.upload-remove {
  width: 22px !important;
  height: 22px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #7b8ba3 !important;
  font-size: 16px !important;
  line-height: 20px !important;
  padding: 0 !important;
}

.message-text {
  white-space: pre-wrap !important;
}

.message-gallery {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-top: 4px !important;
}

.message-image {
  position: relative !important;
  width: 120px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.18) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
}

.message-point-layer {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  height: 92px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  pointer-events: none;
}

.message-point-marker {
  position: absolute;
  transform: translate(calc(-50% + var(--marker-offset-x, 0px)), calc(-50% + var(--marker-offset-y, 0px)));
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(38, 114, 255, .78);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(4, 42, 104, .42);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.message-point-marker.is-primary-evidence {
  background: #2672ff;
}

.message-point-marker:hover,
.message-point-marker:focus-visible,
.message-point-marker.is-linked-active {
  z-index: 2;
  outline: 0;
  background: #ff9f1c;
  transform: translate(calc(-50% + var(--marker-offset-x, 0px)), calc(-50% + var(--marker-offset-y, 0px))) scale(1.22);
  box-shadow: 0 0 0 4px rgba(255, 159, 28, .24), 0 3px 10px rgba(4, 42, 104, .46);
}

.message-image img {
  width: 100% !important;
  height: 92px !important;
  display: block !important;
  object-fit: cover !important;
}

.message-image.has-point-annotations img {
  object-fit: contain !important;
  background: rgba(255, 255, 255, 0.96);
}

.message-image figcaption {
  padding: 5px 7px !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.message.assistant .message-image {
  border-color: #d8e4f5 !important;
  background: #fff !important;
}

@media (max-width: 760px) {
  .attachment-chip.upload-card {
    width: 100% !important;
  }
  .message-image {
    width: 104px !important;
  }
}
/* 20260708 keep country/platform dropdown above hero content */
.workspace .hero-panel {
  position: relative !important;
  z-index: 1 !important;
}

.workspace .conversation-shell {
  position: relative !important;
  z-index: 220 !important;
}

.workspace .composer,
.workspace .attachment-tray {
  position: relative !important;
  z-index: 230 !important;
}

.workspace .dropdown-panel {
  z-index: 320 !important;
}
/* 20260708 enable pointer events for active selector dropdowns */
.workspace .conversation-shell,
.workspace .composer,
.workspace .attachment-tray,
.workspace .select-wrap,
.workspace .dropdown-panel,
.workspace .dropdown-panel * {
  pointer-events: auto !important;
}
/* 20260708 selector panels are positioned by JS at viewport level */
.dropdown-panel[style*="position: fixed"] {
  z-index: 9999 !important;
}
.quote-meta-grid-public { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 760px) { .quote-meta-grid-public { grid-template-columns: 1fr !important; } }

.message.thinking-message {
  width: auto !important;
  max-width: max-content !important;
  min-width: 104px !important;
  padding-right: 22px !important;
  animation: thinkingBubble 1.8s ease-in-out infinite;
}

.message.thinking-message .message-text {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

.message.thinking-message .message-text::after {
  content: "……";
  display: inline-block;
  width: 2.4em;
  margin-left: 1px;
  color: #6c7d94;
  animation: thinkingDots 1.2s steps(3, end) infinite;
}

@keyframes thinkingDots {
  0% { content: ""; }
  33% { content: "…"; }
  66% { content: "……"; }
  100% { content: "………"; }
}

@keyframes thinkingBubble {
  0%, 100% { opacity: .72; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
}

.composition-card {
  gap: 12px !important;
}

.composition-summary {
  color: #16304f !important;
}

.composition-section {
  border: 1px solid #dce9fb;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
}

.composition-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.35;
  color: #0f2742;
}

.composition-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.composition-group-chip {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #d7e7fb;
  border-radius: 10px;
  background: #f8fbff;
  color: #233b59;
  font-size: 13px;
  line-height: 1.45;
}

button.composition-group-chip {
  width: 100%;
  appearance: none;
  font: inherit;
  text-align: left;
}

.composition-group-chip.is-linked {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  cursor: zoom-in;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.composition-group-chip.is-linked:hover,
.composition-group-chip.is-linked:focus-visible {
  border-color: #72a8ff;
  outline: 0;
  background: #f2f7ff;
  transform: translateY(-1px);
}

.composition-group-chip.is-reserved {
  border-style: dashed;
  background: #fffaf0;
}

.composition-label {
  min-width: 0;
}

.composition-evidence-count {
  color: #6f84a3;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.composition-group-chip.is-reserved .composition-evidence-count {
  color: #a66a13;
}

.composition-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #246bfe;
  font-size: 12px;
  font-weight: 700;
}

.composition-point-note,
.composition-empty {
  margin: 10px 0 0;
  color: #5f728c;
  font-size: 13px;
  line-height: 1.55;
}

.composition-annotation-audit {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 9px;
  background: #fff8e8;
  color: #93600d;
  font-size: 12px;
  line-height: 1.55;
}

.composition-reservation-gap,
.composition-reservation-action {
  display: block;
  grid-column: 2 / -1;
  margin-top: 4px;
  color: #8a5a13;
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
}

.composition-reservation-action {
  color: #64748b;
}

.composition-next {
  margin-top: 0 !important;
}

.product-classification-confirmation {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #cfe0fb;
  border-radius: 12px;
  background: #f8fbff;
}

.classification-confirmation-title {
  color: #102b4e;
  font-size: 15px;
}

.classification-confirmation-hint {
  margin: -6px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.classification-step {
  display: grid;
  gap: 8px;
}

.classification-step > b {
  color: #173453;
  font-size: 13px;
}

.classification-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.classification-choice {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #cddff8;
  border-radius: 999px;
  background: #fff;
  color: #315275;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.classification-choice:hover,
.classification-choice:focus-visible,
.classification-choice.is-selected {
  border-color: #2f78f6;
  outline: 0;
  background: #eaf2ff;
  color: #185ed0;
}

.classification-custom-age {
  width: min(360px, 100%);
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #cddff8;
  border-radius: 9px;
  background: #fff;
  color: #173453;
  font: inherit;
}

.classification-age-help {
  margin: -2px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.classification-age-detail {
  display: grid;
  gap: 7px;
  margin-left: 14px;
  padding: 10px 12px;
  border-left: 2px solid #bcd5fb;
  border-radius: 0 10px 10px 0;
  background: #f4f8ff;
}

.classification-age-detail[hidden] {
  display: none;
}

.classification-age-detail-label {
  color: #526b89;
  font-size: 12px;
  font-weight: 700;
}

.classification-age-step[data-age-conflict-mode="adult"] .classification-age-help::after {
  content: " 已按成人收藏用途锁定为14岁以上，儿童年龄段不可同时选择。";
  color: #a54a13;
}

.classification-confirm-action {
  justify-self: start;
  min-height: 40px;
  padding: 9px 18px;
  border: 0;
  border-radius: 10px;
  background: #2f78f6;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.classification-confirm-action:disabled {
  cursor: not-allowed;
  opacity: .45;
}

@media (max-width: 760px) {
  .composition-groups {
    grid-template-columns: 1fr;
  }
}



.assistant-public-reply {
  display: grid !important;
  gap: 10px !important;
  white-space: normal !important;
}

.assistant-public-reply .reply-lead {
  font-weight: 650 !important;
  color: #10233f !important;
  line-height: 1.65 !important;
}

.assistant-public-reply .reply-block {
  border: 1px solid #d9e7fb !important;
  background: #f8fbff !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  color: #26415f !important;
  line-height: 1.65 !important;
}

/* Official resource cards for sidebar workbench pages */
.resource-page .official-resource-grid{grid-template-columns:repeat(3,minmax(240px,1fr));align-items:stretch}
.official-resource-card{display:flex;flex-direction:column;gap:12px;min-height:250px}
.official-resource-card .resource-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.official-resource-card .resource-card-top span{margin:0}
.official-resource-card em{font-style:normal;color:#0f766e;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:999px;padding:5px 10px;font-size:13px;white-space:nowrap}
.official-resource-card dl{display:grid;gap:8px;margin:0;color:#52657f}
.official-resource-card dl div{display:grid;grid-template-columns:74px 1fr;gap:10px}
.official-resource-card dt{font-weight:700;color:#7690ad}
.official-resource-card dd{margin:0;line-height:1.55}
.official-resource-card a{margin-top:auto;display:inline-flex;align-self:flex-start;border:1px solid #9fc5ff;background:#f6faff;color:#2563eb;border-radius:999px;padding:8px 16px;font-weight:700;text-decoration:none}
.official-resource-card a:hover{background:#eaf2ff}
@media(max-width:1100px){.resource-page .official-resource-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}}
@media(max-width:760px){.resource-page .official-resource-grid{grid-template-columns:1fr}.official-resource-card dl div{grid-template-columns:1fr}}

/* 20260709 sidebar width and touch target tuning */
.app-shell {
  grid-template-columns: 280px minmax(0, 1fr) !important;
}

.sidebar {
  padding: 18px 14px 14px !important;
  gap: 15px !important;
}

.brand-row {
  grid-template-columns: 38px minmax(0, 1fr) 38px !important;
  padding: 0 6px !important;
}

.icon-button {
  width: 38px !important;
  height: 38px !important;
  border-radius: 13px !important;
}

.new-quote-button {
  height: 56px !important;
  border-radius: 18px !important;
  font-size: 16px !important;
  margin: 0 2px !important;
}

.side-nav {
  gap: 8px !important;
}

.side-nav-item {
  height: 44px !important;
  border-radius: 12px !important;
  padding: 0 16px !important;
  font-size: 15px !important;
}

.side-nav-item:before {
  width: 16px !important;
  height: 16px !important;
  margin-right: 12px !important;
}

.search-box {
  height: 46px !important;
  border-radius: 14px !important;
  padding: 0 14px !important;
}

.recent-head {
  padding: 0 14px !important;
}

.recent-list {
  padding: 0 6px 6px !important;
}

.recent-flow-item {
  grid-template-columns: minmax(0, 1fr) 36px !important;
  min-height: 50px !important;
  padding: 0 6px 0 12px !important;
  border-radius: 14px !important;
}

.recent-main {
  padding: 9px 0 !important;
}

.recent-title {
  font-size: 14px !important;
}

.recent-main small {
  font-size: 12px !important;
  margin-top: 3px !important;
}

.recent-more-button {
  width: 32px !important;
  height: 32px !important;
}

.recent-action-menu {
  left: 34px !important;
  width: 166px !important;
}

.recent-menu-action {
  height: 42px !important;
  grid-template-columns: 26px minmax(0, 1fr) !important;
}

.account-box {
  padding: 12px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 76px minmax(0, 1fr) !important;
  }
}

/* 20260709 sidebar button height hardening */
.sidebar .new-quote-button,
button.new-quote-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: calc(100% - 4px) !important;
  height: 56px !important;
  min-height: 56px !important;
  line-height: 1.2 !important;
  padding: 0 16px !important;
}

.sidebar .search-box,
label.search-box {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  line-height: 1.2 !important;
}

.sidebar .side-nav-item,
.sidebar .recent-flow-item,
.sidebar .recent-menu-action {
  min-height: var(--sidebar-target-height, 44px) !important;
}

.sidebar .recent-flow-item {
  --sidebar-target-height: 50px;
}

.sidebar .recent-menu-action {
  --sidebar-target-height: 42px;
}

/* 20260711 batch quick quote phase 1 */
.workspace .composer {
  grid-template-columns: 48px auto minmax(0, 1fr) auto auto 48px !important;
}

.batch-toggle,
.compare-toggle {
  height: 36px;
  min-width: 58px;
  border: 1px solid #cfe0f8;
  border-radius: 999px;
  background: #f6faff;
  color: #4f6b90;
  font-size: 14px;
  font-weight: 650;
  padding: 0 14px;
}

.batch-toggle.is-active,
.compare-toggle.is-active {
  background: #2f73ff;
  border-color: #2f73ff;
  color: #fff;
  box-shadow: 0 8px 20px rgba(47,115,255,.18);
}

.quote-tool-actions {
  display: flex;
  justify-content: center;
  margin: 14px auto 4px;
}

.quote-tool-action {
  width: min(620px, 100%);
  min-height: 54px;
  border: 1px solid #d4e5ff;
  border-radius: 16px;
  background: #f8fbff;
  color: #27405f;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-align: left;
  box-shadow: 0 10px 24px rgba(47,115,255,.08);
}

.quote-tool-action span {
  color: #2f73ff;
  font-weight: 750;
  white-space: nowrap;
}

.quote-tool-action small {
  color: #6d7f99;
  font-size: 13px;
  line-height: 1.4;
}

.quote-tool-action.is-active {
  border-color: #9fc2ff;
  background: #eef5ff;
}

.batch-result-card {
  max-width: min(1120px, 100%);
  width: 100%;
  background: #f4f8ff;
  border: 1px solid #d8e8ff;
  border-radius: 18px;
  padding: 18px;
  color: #10233f;
  white-space: normal;
}

.batch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.batch-download {
  height: 38px !important;
  white-space: nowrap;
}

.batch-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.batch-stat {
  border: 1px solid #dbe9fb;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
}

.batch-stat span {
  display: block;
  color: #6a7f9b;
  font-size: 13px;
  margin-bottom: 4px;
}

.batch-stat b {
  font-size: 18px;
  color: #096895;
}

.batch-table-wrap {
  overflow: auto;
  border: 1px solid #dbe9fb;
  border-radius: 14px;
  background: #fff;
}

.batch-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 14px;
}

.batch-table th,
.batch-table td {
  border-bottom: 1px solid #e7f0fb;
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
}

.batch-table th {
  color: #60758f;
  background: #f8fbff;
  font-weight: 650;
}

.batch-table input {
  width: 100%;
  min-height: 34px;
  border: 1px solid #d8e8ff;
  border-radius: 10px;
  background: #f9fcff;
  color: #10233f;
  padding: 0 10px;
}

.batch-table tr.is-pending td {
  background: #fffaf2;
}

.batch-table tr.is-error td {
  background: #fff4f4;
}

.batch-row-action {
  min-height: 32px;
  border: 1px solid #bdd7ff;
  border-radius: 999px;
  background: #eff6ff;
  color: #2f73ff;
  padding: 0 12px;
}

.batch-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.batch-row-action-ghost {
  background: #fff;
  color: #60758f;
}

.batch-pending-box,
.batch-detail-panel {
  border: 1px solid #dbe9fb;
  border-radius: 14px;
  background: #fff;
  margin-top: 12px;
  padding: 12px 14px;
}

.batch-pending-box {
  background: #fffaf2;
  border-color: #ffd9a6;
  color: #8a3a00;
}

.batch-pending-box b {
  display: block;
  margin-bottom: 6px;
  color: #8a3a00;
}

.batch-pending-box p {
  margin: 5px 0;
  line-height: 1.55;
}

.batch-detail-panel {
  background: #f9fcff;
}

.batch-detail-empty {
  margin: 0;
  color: #6a7f9b;
  line-height: 1.6;
}

.batch-card-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.batch-mini-card {
  border: 1px solid #dbe9fb;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
}

.batch-mini-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
}

.batch-mini-head b {
  font-size: 16px;
}

.batch-mini-head span {
  color: #096895;
  font-weight: 750;
}

.batch-mini-card p {
  margin: 4px 0;
  color: #52677f;
  line-height: 1.55;
}

.batch-question {
  color: #9a4a00 !important;
}

.compare-result-card {
  max-width: min(1120px, 100%);
  width: 100%;
  background: #f4f8ff;
  border: 1px solid #d8e8ff;
  border-radius: 18px;
  padding: 18px;
  color: #10233f;
  white-space: normal;
}

.compare-summary {
  border: 1px solid #dbe9fb;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  line-height: 1.7;
  font-weight: 650;
  color: #123453;
  margin-bottom: 12px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.compare-list-block {
  border: 1px solid #dbe9fb;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
}

.compare-list-block b {
  display: block;
  margin-bottom: 8px;
  color: #10233f;
}

.compare-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compare-chip,
.compare-empty {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  line-height: 1.35;
  font-size: 13px;
}

.compare-chip {
  border: 1px solid #bfe0ff;
  background: #eff8ff;
  color: #096895;
  font-weight: 650;
}

.compare-empty {
  border: 1px solid #e3edf9;
  background: #f8fbff;
  color: #6c7f98;
}

.compare-review {
  display: grid;
  gap: 8px;
  border: 1px solid #ffd9a6;
  background: #fff8ef;
  border-radius: 14px;
  padding: 12px 14px;
  color: #8a3a00;
  line-height: 1.65;
}

.compare-review p {
  margin: 0;
}

@media (max-width: 760px) {
  .workspace .composer {
    grid-template-columns: 42px auto auto 1fr 42px !important;
  }
  .workspace .composer .select-wrap {
    grid-column: auto !important;
  }
  .batch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

/* 20260711 batch toggle layout repair: override older 5-column composer rules */
.workspace:not(.is-chat-active) .composer,
.workspace.is-chat-active .composer,
.workspace .composer {
  grid-template-columns: 40px 58px minmax(300px, 1fr) minmax(112px, auto) minmax(132px, auto) 42px !important;
  align-items: center !important;
  column-gap: 8px !important;
}

.workspace:not(.is-chat-active) .batch-toggle,
.workspace.is-chat-active .batch-toggle,
.workspace .batch-toggle {
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 36px !important;
  padding: 0 !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.workspace:not(.is-chat-active) #messageInput,
.workspace.is-chat-active #messageInput,
.workspace #messageInput {
  min-width: 0 !important;
  width: 100% !important;
  grid-column: auto !important;
}

.workspace:not(.is-chat-active) .select-wrap,
.workspace.is-chat-active .select-wrap,
.workspace .select-wrap {
  min-width: 0 !important;
  grid-column: auto !important;
}

.workspace:not(.is-chat-active) .capsule-button,
.workspace.is-chat-active .capsule-button,
.workspace .capsule-button {
  min-width: 112px !important;
  max-width: 168px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 980px) {
  .workspace:not(.is-chat-active) .composer,
  .workspace.is-chat-active .composer,
  .workspace .composer {
    grid-template-columns: 40px 58px minmax(0, 1fr) 42px !important;
  }
  .workspace:not(.is-chat-active) .select-wrap,
  .workspace.is-chat-active .select-wrap,
  .workspace .select-wrap {
    grid-column: 2 / span 2 !important;
  }
}

/* 20260711 sidebar navigation icon and history/account layout polish */
.sidebar {
  height: 100vh !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.side-nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.side-nav-item:before {
  content: "" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
  margin-right: 0 !important;
  border: 1.8px solid #9aacbf !important;
  border-radius: 9px !important;
  color: #8ea0b8 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  font-weight: 750 !important;
  background: #fff !important;
}

.side-nav-item[data-view="quote"]:before {
  content: "◇" !important;
  border-radius: 8px !important;
}

.side-nav-item[data-view="matrix"]:before {
  content: "✓" !important;
  border-radius: 7px !important;
}

.side-nav-item[data-view="radar"]:before {
  content: "◔" !important;
  border-radius: 999px !important;
}

.side-nav-item[data-view="tender"]:before {
  content: "⌄" !important;
  border-radius: 999px !important;
}

.side-nav-item.is-active:before,
.side-nav-item:hover:before {
  border-color: #6f9dff !important;
  color: #2f73ff !important;
  background: #f4f8ff !important;
}

.recent-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  padding-bottom: 12px !important;
  overscroll-behavior: contain !important;
}

.recent-flow-item {
  flex: 0 0 auto !important;
}

.account-box {
  flex: 0 0 auto !important;
  margin-top: 8px !important;
  position: relative !important;
  z-index: 5 !important;
  box-shadow: 0 -8px 22px rgba(255, 255, 255, .86) !important;
}

.account-box .avatar {
  flex: 0 0 auto !important;
}

/* 20260711 compare as sidebar feature */
.side-nav-item[data-view="compare"]:before {
  content: "\2261" !important;
  border-radius: 8px !important;
}

.compare-page-tip {
  margin-top: 18px;
  border: 1px solid #dbe9fb;
  border-radius: 16px;
  background: #f8fbff;
  padding: 14px 16px;
  color: #52677f;
}

.compare-page-tip strong {
  display: block;
  color: #10233f;
  margin-bottom: 6px;
}

.compare-page-tip p {
  margin: 0;
  line-height: 1.7;
}

.official-resource-url {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 8px 10px;
  border: 1px solid #dbe9fb;
  border-radius: 10px;
  background: #f8fbff;
  color: #5f728c;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  word-break: break-all;
}

/* 20260712 review composer: quote review is an audit input, not a quote generator input */
.workspace .composer.composer-review,
.workspace.is-chat-active .composer.composer-review,
.workspace:not(.is-chat-active) .composer.composer-review {
  grid-template-columns: 40px minmax(0, 1fr) 42px !important;
  padding: 10px 12px 10px 14px !important;
  min-height: 72px !important;
}

.workspace .composer.composer-review .batch-toggle,
.workspace .composer.composer-review .select-wrap {
  display: none !important;
}

.workspace .composer.composer-review #messageInput,
.workspace.is-chat-active .composer.composer-review #messageInput,
.workspace:not(.is-chat-active) .composer.composer-review #messageInput {
  grid-column: auto !important;
  min-height: 40px !important;
  line-height: 1.55 !important;
}

@media (max-width: 760px) {
  .workspace .composer.composer-review,
  .workspace.is-chat-active .composer.composer-review,
  .workspace:not(.is-chat-active) .composer.composer-review {
    grid-template-columns: 38px minmax(0, 1fr) 40px !important;
  }
}

.account-box > div:last-child {
  min-width: 0 !important;
}

.account-box strong,
.account-box span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}



/* 20260712 compare as third quote-home capsule */
.mode-switch {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: min(660px, 100%) !important;
}

.mode-pill {
  min-width: 0 !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
}

.workspace:not(.is-chat-active) .mode-switch {
  width: min(680px, 100%) !important;
}

@media (max-width: 760px) {
  .mode-switch,
  .workspace:not(.is-chat-active) .mode-switch {
    width: 100% !important;
  }

  .mode-pill {
    font-size: 13px !important;
    padding: 0 8px !important;
  }
}

/* 20260712 DeepSeek-like compact mode switch and selectors */
.mode-switch,
.workspace:not(.is-chat-active) .mode-switch,
.workspace.is-chat-active .mode-switch {
  width: max-content !important;
  max-width: min(560px, 100%) !important;
  height: 44px !important;
  margin: 14px auto 14px !important;
  padding: 4px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(128px, auto)) !important;
  column-gap: 2px !important;
  border-radius: 999px !important;
  border: 1px solid #dce6f3 !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 1px 2px rgba(18, 33, 60, .04) !important;
}

.mode-pill,
.workspace:not(.is-chat-active) .mode-pill,
.workspace.is-chat-active .mode-pill {
  height: 36px !important;
  min-width: 128px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #102136 !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 36px !important;
  white-space: nowrap !important;
  outline: 0 !important;
}

.mode-pill.is-active,
.workspace:not(.is-chat-active) .mode-pill.is-active,
.workspace.is-chat-active .mode-pill.is-active {
  color: #2f73ff !important;
  background: #edf4ff !important;
  box-shadow: inset 0 0 0 1px #bcd3ff, 0 1px 2px rgba(47, 115, 255, .12) !important;
}

.workspace:not(.is-chat-active) .composer,
.workspace.is-chat-active .composer,
.workspace .composer {
  grid-template-columns: 40px 58px minmax(280px, 1fr) max-content max-content 42px !important;
  column-gap: 8px !important;
}

.workspace:not(.is-chat-active) .capsule-button,
.workspace.is-chat-active .capsule-button,
.workspace .capsule-button {
  position: relative !important;
  width: auto !important;
  min-width: 92px !important;
  max-width: 142px !important;
  height: 36px !important;
  padding: 0 28px 0 16px !important;
  border: 1px solid #c9dcff !important;
  border-radius: 18px !important;
  background: #eef5ff !important;
  color: #356098 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 34px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.capsule-button::after {
  content: "" !important;
  position: absolute !important;
  right: 13px !important;
  top: 50% !important;
  width: 6px !important;
  height: 6px !important;
  border-right: 1.5px solid #6e86aa !important;
  border-bottom: 1.5px solid #6e86aa !important;
  transform: translateY(-65%) rotate(45deg) !important;
  pointer-events: none !important;
}

@media (max-width: 760px) {
  .mode-switch,
  .workspace:not(.is-chat-active) .mode-switch,
  .workspace.is-chat-active .mode-switch {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .mode-pill,
  .workspace:not(.is-chat-active) .mode-pill,
  .workspace.is-chat-active .mode-pill {
    min-width: 0 !important;
    padding: 0 8px !important;
    font-size: 13px !important;
  }

  .workspace:not(.is-chat-active) .composer,
  .workspace.is-chat-active .composer,
  .workspace .composer {
    grid-template-columns: 40px 58px minmax(0, 1fr) 42px !important;
  }

  .select-wrap {
    grid-column: auto !important;
  }

  .workspace:not(.is-chat-active) .capsule-button,
  .workspace.is-chat-active .capsule-button,
  .workspace .capsule-button {
    min-width: 86px !important;
    max-width: 118px !important;
    height: 34px !important;
    padding: 0 24px 0 12px !important;
    font-size: 13px !important;
  }
}

/* 20260712 compact batch quote review */
.batch-result-card {
  max-width: min(1040px, 100%) !important;
  padding: 14px !important;
}

.batch-head {
  margin-bottom: 10px !important;
}

.batch-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 8px 0 10px !important;
}

.batch-stat {
  min-height: 72px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
}

.batch-stat span {
  font-size: 12px !important;
  margin-bottom: 3px !important;
}

.batch-stat b {
  font-size: 18px !important;
}

.batch-detail-panel.batch-detail-panel-compact {
  margin: 8px 0 10px !important;
  padding: 10px 12px !important;
  background: #fff !important;
}

.batch-table-wrap {
  max-height: 420px !important;
  overflow: auto !important;
  border-radius: 12px !important;
}

.batch-table {
  min-width: 920px !important;
  font-size: 13px !important;
}

.batch-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
}

.batch-table th,
.batch-table td {
  padding: 7px 8px !important;
}

.batch-table input {
  min-height: 30px !important;
  border-radius: 9px !important;
  padding: 0 8px !important;
  font-size: 13px !important;
}

.batch-table tr.is-selected td {
  background: #edf4ff !important;
}

.batch-row-actions {
  gap: 4px !important;
}

.batch-row-action {
  min-height: 30px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
}

.batch-confirm-summary {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid #dbe9fb;
  border-radius: 999px;
  background: #f8fbff;
  color: #60758f;
  font-size: 12px;
  font-weight: 600;
}

.batch-row-confirm {
  background: #2f73ff !important;
  border-color: #2f73ff !important;
  color: #fff !important;
}

.batch-row-action:disabled {
  cursor: default !important;
  opacity: 0.68;
}

.batch-probe-status {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 86px;
  color: #667991;
  font-size: 12px;
  line-height: 1.25;
}

.batch-probe-status span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 108px;
  padding: 2px 7px;
  border: 1px solid #dbe9fb;
  border-radius: 999px;
  background: #f8fbff;
  white-space: nowrap;
}

.batch-probe-status .is-ok {
  border-color: #bfe8d3;
  background: #f1fff7;
  color: #08784a;
}

.batch-probe-status .is-bad {
  border-color: #ffd6c2;
  background: #fff7f2;
  color: #a64711;
}

.batch-probe-status .is-muted {
  color: #8da0b8;
}

.batch-probe-detail {
  color: #60758f;
  font-size: 13px;
}

.batch-table tr.is-confirmed td {
  background: #f3fbf7 !important;
}

.batch-status-text.is-confirmed {
  color: #0b8f53;
  font-weight: 700;
}

.batch-pending-box {
  margin-top: 10px !important;
  padding: 10px 12px !important;
}

.batch-pending-box p {
  margin: 3px 0 !important;
  line-height: 1.45 !important;
}

.batch-mini-card {
  padding: 10px 12px !important;
}

.batch-mini-head {
  margin-bottom: 4px !important;
}

.batch-mini-card p {
  margin: 3px 0 !important;
  line-height: 1.45 !important;
}

@media (max-width: 760px) {
  .batch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .batch-table-wrap {
    max-height: 360px !important;
  }
}

/* 20260713 BOM composer: batch is only available in fast mode, so BOM removes that grid slot. */
.workspace .composer.composer-bom,
.workspace.is-chat-active .composer.composer-bom,
.workspace:not(.is-chat-active) .composer.composer-bom {
  grid-template-columns: 40px minmax(0, 1fr) max-content max-content 42px !important;
  column-gap: 8px !important;
}

.workspace .composer.composer-bom .batch-toggle {
  display: none !important;
}

.workspace .composer.composer-bom #messageInput {
  grid-column: auto !important;
  min-width: 0 !important;
  width: 100% !important;
}

.workspace .composer.composer-bom .select-wrap {
  grid-column: auto !important;
  min-width: 0 !important;
}

@media (max-width: 760px) {
  .workspace .composer.composer-bom,
  .workspace.is-chat-active .composer.composer-bom,
  .workspace:not(.is-chat-active) .composer.composer-bom {
    grid-template-columns: 38px minmax(0, 1fr) 40px !important;
  }

  .workspace .composer.composer-bom .select-wrap {
    grid-column: auto !important;
  }
}

/* 20260713 workflow ui polish */
.workspace,
.side-nav-item,
.recent-item,
.starter-card,
.composer,
.resource-page,
.resource-card {
  letter-spacing: 0 !important;
}

.mode-head h1 {
  font-size: clamp(25px, 2.1vw, 34px) !important;
  font-weight: 650 !important;
}

.mode-switch {
  width: min(560px, 100%) !important;
  min-height: 42px !important;
  padding: 3px !important;
  border-radius: 22px !important;
}

.mode-pill {
  height: 36px !important;
  border-radius: 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.intro-line {
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.starter-card strong {
  font-size: 16px !important;
  font-weight: 650 !important;
}

.starter-card span,
.starter-card em {
  font-size: 13px !important;
}

.side-nav-item {
  font-size: 15px !important;
  font-weight: 400 !important;
}

.side-nav-item.is-active {
  font-weight: 500 !important;
}

.resource-page h1 {
  font-size: clamp(28px, 3vw, 44px) !important;
  font-weight: 650 !important;
}

.resource-page .page-lead,
.resource-card p,
.resource-card dl,
.resource-card dd {
  font-size: 14px !important;
  line-height: 1.75 !important;
}

.resource-card h3 {
  font-size: 18px !important;
  font-weight: 650 !important;
}

.composer {
  min-height: 64px !important;
  border-radius: 24px !important;
  gap: 8px !important;
}

.composer textarea {
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.batch-toggle {
  min-width: 64px !important;
  height: 38px !important;
  border-radius: 19px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.composer.composer-batch {
  box-shadow: 0 14px 36px rgba(47, 115, 255, .10) !important;
}

.composer.composer-batch .batch-toggle {
  background: #2f73ff !important;
  color: #fff !important;
  border-color: #2f73ff !important;
}

.workspace .composer.composer-review,
.workspace.is-chat-active .composer.composer-review,
.workspace:not(.is-chat-active) .composer.composer-review {
  grid-template-columns: 40px minmax(0, 1fr) 42px !important;
}

.workspace .composer.composer-review .select-wrap,
.workspace .composer.composer-review .batch-toggle {
  display: none !important;
}

.workspace .composer.composer-bom,
.workspace.is-chat-active .composer.composer-bom,
.workspace:not(.is-chat-active) .composer.composer-bom {
  grid-template-columns: 40px minmax(0, 1fr) max-content max-content 42px !important;
}

.workspace .composer.composer-bom .batch-toggle {
  display: none !important;
}

.capsule-button {
  min-width: 108px !important;
  height: 38px !important;
  border-radius: 19px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.capsule-button::after {
  font-size: 10px !important;
  margin-left: 6px !important;
  opacity: .66 !important;
}

.attachment-chip.upload-card {
  min-height: 78px !important;
  padding: 9px 12px !important;
  border-radius: 16px !important;
}

.attachment-chip.upload-card img {
  width: 54px !important;
  height: 54px !important;
  border-radius: 12px !important;
}

.batch-result-card {
  max-width: min(1040px, 100%) !important;
}

.batch-head {
  margin-bottom: 12px !important;
}

.batch-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.batch-stat {
  min-height: 70px !important;
  padding: 12px 14px !important;
}

.batch-stat span {
  font-size: 12px !important;
}

.batch-stat b {
  font-size: 20px !important;
}

.batch-table-hint {
  margin: 10px 0 8px !important;
  padding: 10px 12px !important;
  border: 1px solid #dbe9fb !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #60738e !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.batch-table-wrap {
  max-height: 320px !important;
  overflow: auto !important;
}

.batch-table {
  font-size: 13px !important;
}

.batch-table th,
.batch-table td {
  padding: 8px 10px !important;
}

.batch-table .batch-points-input {
  box-sizing: border-box !important;
  width: 104px !important;
  min-width: 104px !important;
  padding-right: 30px !important;
  text-align: center !important;
  font-variant-numeric: tabular-nums;
}

.batch-table th:nth-child(5),
.batch-table td:nth-child(5) {
  min-width: 124px !important;
}

.batch-detail-panel[hidden] {
  display: none !important;
}

.batch-detail-panel.batch-detail-panel-compact {
  margin: 10px 0 0 !important;
  padding: 12px !important;
  border-radius: 14px !important;
}

.batch-row-action.is-open {
  background: #2f73ff !important;
  color: #fff !important;
  border-color: #2f73ff !important;
}

.batch-pending-box {
  margin-top: 10px !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
}

@media (max-width: 760px) {
  .mode-switch {
    width: 100% !important;
  }

  .mode-pill {
    font-size: 13px !important;
  }

  .batch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .workspace .composer.composer-bom,
  .workspace.is-chat-active .composer.composer-bom,
  .workspace:not(.is-chat-active) .composer.composer-bom {
    grid-template-columns: 38px minmax(0, 1fr) 40px !important;
  }
}
/* end 20260713 workflow ui polish */


/* Seller-facing resource pages: compact public cards, no internal URL/API text. */
.workspace.workspace-feature.resource-page h1 {
  font-size: clamp(30px, 3.1vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
  max-width: 1080px;
}
.workspace.workspace-feature.resource-page .view-desc {
  font-size: 15px;
  line-height: 1.8;
  max-width: 980px;
}
.resource-page .official-resource-grid {
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.official-resource-card {
  min-height: 0;
  padding: 22px;
  gap: 10px;
  color: #12233d;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.official-resource-card:hover {
  border-color: #a9c9ff;
  box-shadow: 0 18px 38px rgba(63, 111, 190, .12);
  transform: translateY(-1px);
}
.official-resource-card .resource-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 34px;
  margin-bottom: 8px;
}
.official-resource-card .resource-card-top span {
  margin: 0;
  padding: 5px 12px;
  font-size: 13px;
  line-height: 1.25;
  color: #5d7ea8;
  background: #f6f9ff;
  border-color: #d8e8ff;
}
.official-resource-card em,
.official-resource-url {
  display: none !important;
}
.official-resource-card strong {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 8px;
  color: #10233f;
}
.official-resource-card p {
  font-size: 14px;
  line-height: 1.65;
  color: #5c708d;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.official-resource-card dl {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  font-size: 13px;
  color: #526780;
}
.official-resource-card dl div {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 8px;
}
.official-resource-card dt {
  font-weight: 600;
  color: #7b91ad;
}
.official-resource-card dd {
  margin: 0;
  line-height: 1.45;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.resource-card-action {
  margin-top: auto;
  display: inline-flex;
  align-self: flex-start;
  border: 1px solid #b8d4ff;
  background: #f8fbff;
  color: #2563eb;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}
@media (max-width: 1280px) {
  .resource-page .official-resource-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}
@media (max-width: 760px) {
  .resource-page .official-resource-grid { grid-template-columns: 1fr; }
  .official-resource-card dl div { grid-template-columns: 1fr; }
}


/* 20260715 recent history action menu portal: avoid clipping in the sidebar scroll area. */
.recent-floating-menu {
  position: fixed !important;
  left: auto;
  top: auto;
  width: 168px !important;
  z-index: 5000 !important;
  overflow: visible !important;
}
.recent-floating-menu[hidden] {
  display: none !important;
}
.recent-floating-menu .recent-menu-action {
  height: 42px !important;
}
.recent-more-wrap > .recent-action-menu:not(.recent-floating-menu) {
  display: none !important;
}

/* 20260715 recent floating menu coordinate lock */
.recent-floating-menu {
  position: fixed !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  overflow: visible !important;
}

/* 20260715 quote record filters */
.record-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
}
.record-filter-bar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d7e7ff;
  border-radius: 999px;
  background: #f8fbff;
  color: #6f819c;
  font-size: 14px;
  white-space: nowrap;
}
.record-filter-bar select {
  border: 0;
  outline: 0;
  background: transparent;
  color: #17304f;
  font: inherit;
  cursor: pointer;
}
.record-filter-bar button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #d7e7ff;
  border-radius: 999px;
  background: #fff;
  color: #2f73ff;
  font-weight: 600;
}
.record-filter-bar em {
  color: #7b8da6;
  font-style: normal;
  font-size: 14px;
}
.record-empty {
  padding: 28px 18px;
  color: #7b8da6;
  text-align: center;
}
@media (max-width: 760px) {
  .record-filter-bar {
    align-items: stretch;
  }
  .record-filter-bar label,
  .record-filter-bar button {
    width: 100%;
    justify-content: space-between;
  }
}

/* 20260715 thinking indicator no dots */
.message.thinking-message { min-width: 88px !important; padding-right: 18px !important; }
.message.thinking-message .message-text::after { content: "" !important; display: none !important; width: 0 !important; margin: 0 !important; animation: none !important; }

/* 20260720 sidebar typography harmonization */
.sidebar,
.sidebar button,
.sidebar input {
  color: var(--ink, #14233a) !important;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.brand-title {
  color: #14233a !important;
  font-size: 17px !important;
  font-weight: 650 !important;
  line-height: 1.18 !important;
}

.brand-subtitle {
  color: #62748c !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}

.new-quote-button {
  color: #14233a !important;
  font-size: 15px !important;
  font-weight: 520 !important;
  line-height: 1.2 !important;
}

.side-nav-item,
.side-nav-item span,
.side-nav-item a {
  color: #14233a !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

.side-nav-item svg,
.side-nav-item .nav-icon,
.side-nav-item::before {
  color: #8ea0b8 !important;
}

.side-nav-item.is-active,
.side-nav-item.is-active span,
.side-nav-item.is-active a {
  color: #1f67ff !important;
  font-weight: 560 !important;
}

.side-nav-item.is-active svg,
.side-nav-item.is-active .nav-icon,
.side-nav-item.is-active::before {
  color: #1f67ff !important;
}

.search-box,
.search-box input {
  color: #14233a !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

.search-box input::placeholder {
  color: #71839c !important;
  font-weight: 400 !important;
}

.recent-head,
.recent-head span,
.recent-head button,
.recent-group-label,
.recent-empty {
  color: #71839c !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

.sidebar .recent-group-label {
  padding: 12px 12px 4px !important;
  color: #8b95a3 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
}

.sidebar .recent-group-label:first-child {
  padding-top: 4px !important;
}

.recent-flow-item,
.recent-item {
  color: #14233a !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.38 !important;
}

.recent-title,
.recent-flow-item strong,
.recent-item strong {
  color: #14233a !important;
  font-size: 13px !important;
  font-weight: 520 !important;
  line-height: 1.35 !important;
}

.recent-subtitle,
.recent-meta,
.recent-flow-item small,
.recent-flow-item .hint,
.recent-item small,
.recent-item .hint {
  color: #71839c !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

.recent-more,
.recent-flow-item .more,
.recent-item .more {
  color: #8ea0b8 !important;
  font-weight: 500 !important;
}

.account-box,
.account-box strong {
  color: #14233a !important;
  font-size: 13px !important;
  font-weight: 560 !important;
  line-height: 1.25 !important;
}

.account-box span,
.account-box small {
  color: #71839c !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
}

.recent-floating-menu,
.recent-menu-action {
  color: #14233a !important;
  font-size: 13px !important;
  font-weight: 450 !important;
}
/* end 20260720 sidebar typography harmonization */

/* 20260720 recent quote compact spacing fix */
.sidebar .recent-list {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-content: stretch !important;
  gap: 6px !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: visible !important;
  padding: 0 8px 8px !important;
}

.sidebar .recent-flow-item,
.sidebar .recent-item {
  flex: 0 0 auto !important;
  min-height: 48px !important;
  height: auto !important;
  max-height: 58px !important;
  padding: 7px 6px 7px 12px !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 34px !important;
  align-items: center !important;
  align-content: center !important;
  gap: 6px !important;
  border-radius: 14px !important;
}

.sidebar .recent-main {
  min-height: 0 !important;
  display: grid !important;
  gap: 2px !important;
  align-content: center !important;
}

.sidebar .recent-title,
.sidebar .recent-flow-item strong,
.sidebar .recent-item strong {
  display: block !important;
  margin: 0 !important;
  line-height: 1.22 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.sidebar .recent-main small,
.sidebar .recent-flow-item small,
.sidebar .recent-item small,
.sidebar .recent-subtitle,
.sidebar .recent-meta {
  display: block !important;
  margin: 0 !important;
  line-height: 1.18 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.sidebar .recent-more-wrap {
  align-self: center !important;
  justify-self: end !important;
  margin: 0 !important;
}

.sidebar .recent-more,
.sidebar .recent-flow-item .more,
.sidebar .recent-item .more {
  width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  display: inline-grid !important;
  place-items: center !important;
}
/* end 20260720 recent quote compact spacing fix */

/* 20260720 homepage regular font weight fix */
.workspace:not(.is-chat-active) .mode-pill,
.workspace:not(.is-chat-active) .mode-pill.is-active,
.workspace .mode-switch .mode-pill,
.workspace .mode-switch .mode-pill.is-active {
  font-weight: 400 !important;
}

.workspace:not(.is-chat-active) .starter-card strong,
.workspace .starter-card strong {
  font-weight: 400 !important;
}

.workspace .batch-toggle,
.workspace .batch-toggle.is-active,
.workspace .composer .batch-toggle,
.workspace .composer .batch-toggle.is-active,
.workspace .capsule-button,
.workspace .composer .capsule-button,
.workspace .select-wrap .capsule-button,
#countryBtn,
#platformBtn {
  font-weight: 400 !important;
}

.workspace .intro-line,
.workspace .starter-row-head,
.workspace .composer textarea,
.workspace .composer input,
.workspace .composer button {
  font-weight: 400;
}
/* end 20260720 homepage regular font weight fix */


/* 20260722 functional desktop sidebar collapse */
.app-shell,
.sidebar,
.workspace {
  transition: grid-template-columns 180ms ease, width 180ms ease, padding 180ms ease;
}
.app-shell.is-sidebar-collapsed {
  grid-template-columns: 76px minmax(0, 1fr) !important;
}
.sidebar.is-collapsed {
  width: 76px !important;
  padding-inline: 10px !important;
  align-items: stretch !important;
}
.sidebar.is-collapsed .brand-row {
  grid-template-columns: 1fr !important;
  justify-items: center;
  gap: 8px !important;
  padding: 0 !important;
}
.sidebar.is-collapsed .brand-row > div:nth-child(2),
.sidebar.is-collapsed .search-box input,
.sidebar.is-collapsed .recent-head,
.sidebar.is-collapsed .recent-list,
.sidebar.is-collapsed .account-box > div:last-child {
  display: none !important;
}
.sidebar.is-collapsed .collapse-button {
  position: static !important;
  width: 38px !important;
  height: 34px !important;
  justify-self: center;
}
.sidebar.is-collapsed .new-quote-button,
.sidebar.is-collapsed .side-nav-item {
  width: 48px !important;
  min-width: 48px !important;
  margin-inline: auto !important;
  padding: 0 !important;
  font-size: 0 !important;
  justify-content: center !important;
}
.sidebar.is-collapsed .new-quote-button .plus-mark,
.sidebar.is-collapsed .side-nav-item::before {
  margin: 0 !important;
}
.sidebar.is-collapsed .search-box {
  width: 48px !important;
  margin-inline: auto !important;
  padding: 0 !important;
  justify-content: center !important;
}
.sidebar.is-collapsed .account-box {
  width: 48px !important;
  min-width: 48px !important;
  margin: auto auto 0 !important;
  padding: 6px !important;
  justify-content: center !important;
}
@media (max-width: 760px) {
  .app-shell.is-sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
/* end 20260722 functional desktop sidebar collapse */

/* 20260722 compact sidebar chevron and animated thinking ellipsis */
.brand-row .collapse-button {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  display: grid !important;
  place-items: center !important;
  font-size: 0 !important;
  line-height: 1 !important;
}
.brand-row .collapse-button::after {
  content: "" !important;
  display: block !important;
  width: 8px !important;
  height: 8px !important;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}
.sidebar.is-collapsed .collapse-button {
  width: 36px !important;
  height: 36px !important;
}
.sidebar.is-collapsed .collapse-button::after {
  transform: rotate(225deg);
}
.message.thinking-message {
  min-width: 100px !important;
  padding-right: 20px !important;
}
.message.thinking-message .message-text::after {
  content: "…" !important;
  display: inline-block !important;
  width: 1em !important;
  margin-left: 2px !important;
  color: #6c7d94 !important;
  transform-origin: left center;
  animation: equoteThinkingEllipsis 900ms ease-in-out infinite !important;
}
@keyframes equoteThinkingEllipsis {
  0%, 100% { opacity: .28; transform: translateY(0) scale(.86); }
  50% { opacity: 1; transform: translateY(-1px) scale(1.08); }
}
/* end 20260722 compact sidebar chevron and animated thinking ellipsis */
/* 20260722 unified compact sidebar line icons */
.sidebar .plus-mark {
  position: relative !important;
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  margin-right: 8px !important;
  border: 1.5px solid currentColor !important;
  border-radius: 50% !important;
  font-size: 0 !important;
  background: transparent !important;
}
.sidebar .plus-mark::before,
.sidebar .plus-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.sidebar .plus-mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.sidebar .side-nav-item { gap: 10px !important; }
.sidebar .side-nav-item::before {
  content: "" !important;
  display: block !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: currentColor !important;
  background-image: none !important;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 20px 20px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 20px 20px;
}
.sidebar .side-nav-item[data-view="matrix"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3.5' width='16' height='17' rx='3'/%3E%3Cpath d='m8 12 2.4 2.5L16 9'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3.5' width='16' height='17' rx='3'/%3E%3Cpath d='m8 12 2.4 2.5L16 9'/%3E%3C/g%3E%3C/svg%3E");
}
.sidebar .side-nav-item[data-view="radar"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7v5l4-2.5M5.8 17.8A8.5 8.5 0 0 1 3.5 12'/%3E%3Ccircle cx='12' cy='12' r='1' fill='black' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7v5l4-2.5M5.8 17.8A8.5 8.5 0 0 1 3.5 12'/%3E%3Ccircle cx='12' cy='12' r='1' fill='black' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}
.sidebar .side-nav-item[data-view="tender"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h9l3 3v14H6z'/%3E%3Cpath d='M15 3.5v3h3M9 11h6M9 15h6'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h9l3 3v14H6z'/%3E%3Cpath d='M15 3.5v3h3M9 11h6M9 15h6'/%3E%3C/g%3E%3C/svg%3E");
}
.sidebar .side-nav-item[data-view="quote"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.2 4.8L19 10l-4.8 2.2L12 17l-2.2-4.8L5 10l4.8-2.2z'/%3E%3Cpath d='m18.5 16 .8 1.7L21 18.5l-1.7.8-.8 1.7-.8-1.7-1.7-.8 1.7-.8z'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.2 4.8L19 10l-4.8 2.2L12 17l-2.2-4.8L5 10l4.8-2.2z'/%3E%3Cpath d='m18.5 16 .8 1.7L21 18.5l-1.7.8-.8 1.7-.8-1.7-1.7-.8 1.7-.8z'/%3E%3C/g%3E%3C/svg%3E");
}
.sidebar .side-nav-item.is-active::before,
.sidebar .side-nav-item:hover::before { background-color: #2f73ff !important; }
/* end 20260722 unified compact sidebar line icons */
/* 20260722 compact new-quote frame */
.sidebar .new-quote-button,
.sidebar button.new-quote-button {
  width: calc(100% - 20px) !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 auto !important;
  padding: 0 14px !important;
  border-radius: 15px !important;
  font-size: 14px !important;
  box-shadow: none !important;
}
/* end 20260722 compact new-quote frame */
/* 20260723 global icon geometry alignment */
.sidebar .brand-row {
  grid-template-columns: 36px minmax(0, 1fr) 34px !important;
  align-items: center !important;
  column-gap: 12px !important;
}
.brand-row .collapse-button,
.sidebar.is-collapsed .collapse-button {
  box-sizing: border-box !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 11px !important;
  display: grid !important;
  place-items: center !important;
  align-self: center !important;
  justify-self: center !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
.brand-row .collapse-button::after,
.sidebar.is-collapsed .collapse-button::after {
  content: "" !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  border: 0 !important;
  background: currentColor !important;
  transform: none !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 5 8 12l7 7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 5 8 12l7 7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px 16px no-repeat;
}
.sidebar.is-collapsed .collapse-button::after { transform: rotate(180deg) !important; }
.attach-button,
.send-button {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
.attach-button::before,
.send-button::before {
  content: "" !important;
  display: block !important;
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  background: currentColor !important;
}
.attach-button::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/17px 17px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/17px 17px no-repeat;
}
.send-button::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 11 5-5 5 5M12 6v12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/17px 17px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 11 5-5 5 5M12 6v12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/17px 17px no-repeat;
}
.sidebar .search-box > span {
  display: block !important;
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  overflow: hidden !important;
  color: transparent !important;
  background: #7f91a8 !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='5.5'/%3E%3Cpath d='m15 15 4 4'/%3E%3C/g%3E%3C/svg%3E") center/16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='5.5'/%3E%3Cpath d='m15 15 4 4'/%3E%3C/g%3E%3C/svg%3E") center/16px 16px no-repeat;
}
.sidebar .avatar {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
.sidebar .avatar::before {
  content: "" !important;
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  background: currentColor !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5.5 19c.7-3.2 3-5 6.5-5s5.8 1.8 6.5 5'/%3E%3C/g%3E%3C/svg%3E") center/16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5.5 19c.7-3.2 3-5 6.5-5s5.8 1.8 6.5 5'/%3E%3C/g%3E%3C/svg%3E") center/16px 16px no-repeat;
}
/* end 20260723 global icon geometry alignment */
/* 20260723 icon alignment priority lock */
.sidebar .brand-row #sidebarCollapseBtn,
.sidebar.is-collapsed .brand-row #sidebarCollapseBtn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
.sidebar .brand-row #sidebarCollapseBtn::after,
.sidebar.is-collapsed .brand-row #sidebarCollapseBtn::after {
  content: "" !important;
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  border: 0 !important;
  background-color: currentColor !important;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 5 8 12l7 7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  -webkit-mask-position: center !important;
  -webkit-mask-repeat: no-repeat !important;
  -webkit-mask-size: 16px 16px !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 5 8 12l7 7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  mask-position: center !important;
  mask-repeat: no-repeat !important;
  mask-size: 16px 16px !important;
  transform: none !important;
}
.sidebar.is-collapsed .brand-row #sidebarCollapseBtn::after { transform: rotate(180deg) !important; }
.app-shell .workspace #composerForm #attachBtn,
.app-shell .workspace #composerForm #sendBtn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
}
.app-shell .workspace #composerForm #attachBtn::before,
.app-shell .workspace #composerForm #sendBtn::before {
  content: "" !important;
  display: block !important;
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  background-color: currentColor !important;
  -webkit-mask-position: center !important;
  -webkit-mask-repeat: no-repeat !important;
  -webkit-mask-size: 17px 17px !important;
  mask-position: center !important;
  mask-repeat: no-repeat !important;
  mask-size: 17px 17px !important;
}
.app-shell .workspace #composerForm #attachBtn::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}
.app-shell .workspace #composerForm #sendBtn::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 11 5-5 5 5M12 6v12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 11 5-5 5 5M12 6v12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
/* end 20260723 icon alignment priority lock */
/* v20260723: image-led full quote demo cards */
.starter-card {
  overflow: hidden;
  padding: 0 !important;
}
.starter-product-image {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: contain;
  object-position: center;
  padding: 7px 10px;
  background: #fff;
  border-bottom: 1px solid #e4ebf5;
}
.starter-card-copy {
  padding: 15px 17px 17px;
}
.starter-card-copy strong {
  margin-bottom: 8px !important;
}
.workspace:not(.is-chat-active) .starter-card {
  min-height: 276px !important;
}
.workspace:not(.is-chat-active) .starter-product-image {
  height: 128px;
}
.workspace:not(.is-chat-active) .starter-card-copy {
  padding: 13px 15px 15px;
}
.workspace:not(.is-chat-active) .starter-context {
  min-height: 36px;
  color: #667994;
  font-size: 12px !important;
  line-height: 1.5 !important;
}
@media (max-width: 760px) {
  .workspace:not(.is-chat-active) .starter-card {
    min-height: 0 !important;
  }
  .starter-product-image {
    height: 180px;
  }
}
/* 20260723 sidebar micro-alignment and recent action tone */
.sidebar .brand-row #sidebarCollapseBtn::after {
  transform: translateX(1px) !important;
}
.sidebar.is-collapsed .brand-row #sidebarCollapseBtn::after {
  transform: translateX(-1px) rotate(180deg) !important;
}
.sidebar .recent-more-button {
  color: #aeb9c8 !important;
  font-weight: 500 !important;
}
.sidebar .recent-more-button:hover,
.sidebar .recent-more-button.is-open {
  color: #8797ab !important;
}
/* end 20260723 sidebar micro-alignment and recent action tone */
/* 20260723 fine three-dot action icon */
.sidebar .recent-more-button {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  font-size: 0 !important;
  letter-spacing: 0 !important;
}
.sidebar .recent-more-button::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 3px !important;
  height: 3px !important;
  border-radius: 50% !important;
  background: currentColor !important;
  box-shadow: -6px 0 0 currentColor, 6px 0 0 currentColor !important;
}
/* end 20260723 fine three-dot action icon */
/* 20260723 single-line recent quote alignment */
.sidebar .recent-main {
  display: flex !important;
  align-items: center !important;
  min-height: 30px !important;
}
.sidebar .recent-main small,
.sidebar .recent-flow-item small,
.sidebar .recent-item small,
.sidebar .recent-subtitle,
.sidebar .recent-meta {
  display: none !important;
}
.sidebar .recent-title,
.sidebar .recent-flow-item strong,
.sidebar .recent-item strong {
  line-height: 30px !important;
  text-overflow: clip !important;
}
/* end 20260723 single-line recent quote alignment */
/* 20260723 tighten recent quote row rhythm */
.sidebar .recent-list {
  gap: 2px !important;
}
.sidebar .recent-flow-item,
.sidebar .recent-item {
  min-height: 42px !important;
  max-height: 46px !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}
.sidebar .recent-main {
  min-height: 28px !important;
}
.sidebar .recent-title,
.sidebar .recent-flow-item strong,
.sidebar .recent-item strong {
  line-height: 28px !important;
}
/* end 20260723 tighten recent quote row rhythm */

/* 20260803 persistent human quote revision delivery */
.quote-update-reminder {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 260;
  width: min(420px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 16px 16px 18px;
  border: 1px solid #b9d4ff;
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 48px rgba(36, 83, 156, .22);
  animation: quote-update-enter .22s ease-out both;
}
.quote-update-copy { min-width: 0; display: grid; gap: 3px; color: #0e2345; }
.quote-update-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.quote-update-copy small { color: #6e809b; font-size: 12px; }
.quote-update-kicker { color: #168a61; font-size: 12px; font-weight: 700; }
.quote-update-actions { display: flex; align-items: center; gap: 6px; }
.quote-update-view {
  min-width: 88px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: #2f73ff;
  color: #fff;
  font-weight: 700;
}
.quote-update-dismiss {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8999af;
  font-size: 22px;
}
.quote-update-dismiss:hover { background: #eef4fd; color: #49607f; }
.recent-flow-item.has-human-update { background: #eef9f4 !important; box-shadow: inset 3px 0 0 #2ab77e; }
.recent-flow-item.has-human-reviewed { box-shadow: inset 2px 0 0 #9bd8bd; }
.recent-update-badge {
  flex: 0 0 auto;
  margin-left: 7px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #dff7eb;
  color: #168a61;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}
.recent-update-badge.is-read { background: #eef5f2; color: #5f8a79; }
.public-human-review-note {
  margin: 12px 0 4px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 4px 14px;
  padding: 12px 14px;
  border: 1px solid #bfe9d6;
  border-radius: 14px;
  background: #f0fbf6;
  color: #195c45;
}
.public-human-review-note b { font-size: 14px; }
.public-human-review-note span { min-width: 0; color: #315f50; }
.public-human-review-note small { grid-column: 1 / -1; color: #718f84; }
.human-reviewed-quote-card {
  position: relative;
  border: 1px solid #9edfc3 !important;
  box-shadow: 0 18px 48px rgba(27, 132, 92, .12), inset 0 4px 0 #2ab77e !important;
}
.human-reviewed-quote-card .quote-mode-chip {
  color: #08764f;
  background: #eaf9f2;
  border-color: #aee1ca;
}
.human-reviewed-quote-card .quote-total-box b { color: #08764f; }
.human-reviewed-quote-card .quote-result-head {
  border-bottom-color: #d7efe5;
}
.human-reviewed-quote-banner {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid #b8e8d4;
  border-radius: 12px;
  background: linear-gradient(90deg, #eaf9f2 0%, #f8fffb 100%);
  color: #0f6f4d;
}
.human-reviewed-check {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #22a873;
  color: #fff;
  font-weight: 800;
}
.human-reviewed-quote-banner strong { font-size: 14px; }
.human-reviewed-quote-banner small { justify-self: end; color: #5c8274; }
.human-reviewed-quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 4px;
}
.human-reviewed-quote-actions button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #9edfc3;
  border-radius: 999px;
  background: #fff;
  color: #08764f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.human-reviewed-quote-actions button.primary {
  border-color: #22a873;
  background: #22a873;
  color: #fff;
}
.human-reviewed-quote-actions button:disabled { opacity: .62; cursor: default; }
@keyframes quote-update-enter { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .quote-update-reminder { top: 12px; right: 16px; left: 16px; width: auto; }
  .public-human-review-note { grid-template-columns: 1fr; }
  .public-human-review-note small { grid-column: auto; }
  .human-reviewed-quote-banner { grid-template-columns: auto minmax(0, 1fr); }
  .human-reviewed-quote-banner small { grid-column: 1 / -1; justify-self: start; }
}
/* end 20260803 persistent human quote revision delivery */
/* 20260723 composer control centerline lock */
.workspace #composerForm > * {
  align-self: center !important;
}
.workspace #composerForm #attachBtn,
.workspace #composerForm #sendBtn {
  position: relative !important;
  transform: none !important;
}
.workspace #composerForm #attachBtn::before,
.workspace #composerForm #sendBtn::before {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}

/* 对话输入区、附件栏与报价卡共用桌面内容列，避免左右边缘错位。 */
@media (min-width: 761px) {
  .workspace.is-chat-active {
    --quote-chat-content-width: 820px;
    --quote-chat-content-gutter: max(32px, calc((100% - 900px) / 2));
  }

  .workspace.is-chat-active .composer,
  .workspace.is-chat-active .attachment-tray {
    width: min(var(--quote-chat-content-width), calc(100% - 96px)) !important;
    margin-left: var(--quote-chat-content-gutter) !important;
    margin-right: auto !important;
  }

  .workspace.is-chat-active .quote-result-card,
  .workspace.is-chat-active .order-card {
    width: min(var(--quote-chat-content-width), 100%) !important;
    max-width: min(var(--quote-chat-content-width), 100%) !important;
  }
}


/* end 20260723 composer control centerline lock */
/* 20260723 conversation image and file preview */
.message-image img,
.attachment-chip.upload-card.is-previewable { cursor: zoom-in !important; }
.message-image img:focus-visible,
.attachment-chip.upload-card.is-previewable:focus-visible { outline: 2px solid #7fb0ff !important; outline-offset: 2px !important; }
.message-files { display: grid; gap: 8px; margin-top: 4px; }
.message-file { width: min(360px, 100%); min-height: 52px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.34); border-radius: 12px; background: rgba(255,255,255,.16); color: inherit; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 9px; text-align: left; }
.message-file-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.22); }
.message-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-file-action { font-size: 12px; opacity: .8; }
.file-preview-overlay { position: fixed; inset: 0; z-index: 10000; box-sizing: border-box; padding: 24px; display: grid; place-items: center; overflow: auto; background: rgba(12,18,28,.88); backdrop-filter: blur(3px); }
.file-preview-panel { width: min(1280px, calc(100vw - 48px)); height: min(900px, calc(100vh - 48px)); height: min(900px, calc(100dvh - 48px)); min-width: 0; min-height: 0; display: grid; grid-template-rows: 54px minmax(0,1fr); overflow: hidden; }
.file-preview-header { color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 4px 10px; }
.file-preview-header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 500; }
.file-preview-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #dce5f2; font-size: 30px; line-height: 1; display: grid; place-items: center; }
.file-preview-close:hover { background: rgba(255,255,255,.18); color: #fff; }
.file-preview-body { width: 100%; height: 100%; min-width: 0; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.file-preview-body > img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; object-position: center; border-radius: 4px; background: #fff; }
.file-preview-body > iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; background: #fff; }
.file-preview-fallback { width: min(520px, 90vw); padding: 34px; border-radius: 18px; background: #fff; color: #1d2a3b; display: grid; justify-items: center; gap: 14px; text-align: center; }
.file-preview-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: #edf4ff; color: #2f73ff; font-size: 24px; }
.file-preview-fallback span { color: #71839c; line-height: 1.6; }
.file-preview-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.file-preview-actions a { padding: 9px 14px; border-radius: 10px; background: #edf4ff; color: #2f73ff; text-decoration: none; }
@media (max-width: 760px) { .file-preview-overlay { padding: 10px; } .file-preview-panel { width: 100%; height: calc(100vh - 20px); height: calc(100dvh - 20px); } }
/* end 20260723 conversation image and file preview */
/* 20260723 compact four feature pages */
.workspace.workspace-feature .workbench-page > h1 { font-size: 28px !important; line-height: 1.25 !important; margin-bottom: 10px !important; max-width: 900px !important; }
.workspace.workspace-feature .view-desc { max-width: 760px !important; font-size: 13px !important; line-height: 1.55 !important; }
.workspace.workspace-feature .hero-panel { padding: 28px 36px !important; }
.workspace.workspace-feature .view-tag { height: 28px !important; padding: 0 12px !important; margin-bottom: 14px !important; font-size: 12px !important; }
.workspace.workspace-feature .feature-cards,
.resource-page .official-resource-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px !important; margin-top: 24px !important; }
.workspace.workspace-feature .feature-card,
.workspace.workspace-feature .official-resource-card { min-height: 170px !important; padding: 18px 20px !important; gap: 8px !important; border-radius: 15px !important; }
.workspace.workspace-feature .feature-card span,
.official-resource-card .resource-card-top span { min-height: 26px !important; margin: 0 0 14px !important; padding: 4px 11px !important; font-size: 12px !important; }
.official-resource-card .resource-card-top { min-height: 26px !important; margin-bottom: 6px !important; }
.workspace.workspace-feature .feature-card strong,
.workspace.workspace-feature .official-resource-card strong { margin: 0 0 8px !important; font-size: 17px !important; line-height: 1.35 !important; }
.workspace.workspace-feature .feature-card p,
.workspace.workspace-feature .official-resource-card p { font-size: 13px !important; line-height: 1.55 !important; display: -webkit-box !important; -webkit-line-clamp: 3 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
.workspace.workspace-feature .metric-grid { margin: 22px 0 14px !important; gap: 10px !important; }
.workspace.workspace-feature .metric-grid > div { padding: 14px 16px !important; }
.workspace.workspace-feature .record-panel { padding: 18px 20px !important; }
.workspace.workspace-feature .record-panel .section-head p,
.workspace.workspace-feature .record-panel h2 { margin-top: 0 !important; margin-bottom: 10px !important; }
@media (max-width: 1100px) {
  .workspace.workspace-feature .feature-cards,
  .resource-page .official-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  .workspace.workspace-feature .hero-panel { padding: 22px 18px !important; }
  .workspace.workspace-feature .workbench-page > h1 { font-size: 24px !important; }
  .workspace.workspace-feature .feature-cards,
  .resource-page .official-resource-grid { grid-template-columns: 1fr !important; }
}
/* end 20260723 compact four feature pages */
/* 20260724 human handoff overlay; existing quote layout remains unchanged. */
.human-handoff-button{position:fixed;right:24px;bottom:104px;z-index:8500;min-height:48px;padding:0 18px 0 11px;border:0;border-radius:24px;background:#ff6b2c;color:#fff;box-shadow:0 10px 28px rgba(224,78,23,.28);display:flex;align-items:center;gap:9px;font-size:14px;font-weight:700;cursor:pointer}.human-handoff-button:hover{background:#f25718;transform:translateY(-1px)}.human-handoff-icon{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.2);font-size:13px}.handoff-modal-backdrop{position:fixed;inset:0;z-index:10050;padding:24px;background:rgba(17,31,51,.46);display:grid;place-items:center}.handoff-modal-backdrop[hidden]{display:none}.handoff-modal{width:min(680px,100%);max-height:calc(100vh - 48px);overflow:auto;border-radius:20px;background:#fff;box-shadow:0 24px 70px rgba(17,31,51,.26)}.handoff-modal-head{padding:24px 26px 18px;border-bottom:1px solid #e6edf7;display:flex;justify-content:space-between;gap:20px}.handoff-modal-head h2{margin:0 0 7px;color:#10233f;font-size:21px}.handoff-modal-head p{margin:0;color:#708198;font-size:13px;line-height:1.55}.handoff-close{width:34px;height:34px;flex:0 0 auto;border:0;border-radius:50%;background:#f1f5fa;color:#60728c;font-size:24px;cursor:pointer}.handoff-form{padding:20px 26px 26px;display:grid;gap:15px}.handoff-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.handoff-form label{display:grid;gap:7px;color:#344761;font-size:13px}.handoff-form input,.handoff-form select,.handoff-form textarea{width:100%;box-sizing:border-box;border:1px solid #d6e2f1;border-radius:11px;padding:10px 12px;background:#fff;color:#10233f;font:inherit;outline:none}.handoff-form input:focus,.handoff-form select:focus,.handoff-form textarea:focus{border-color:#6da2ff;box-shadow:0 0 0 3px rgba(72,130,255,.11)}.handoff-consent{grid-template-columns:auto 1fr!important;align-items:start;line-height:1.5}.handoff-consent input{width:auto;margin-top:2px}.handoff-actions{display:flex;gap:10px}.handoff-submit,.handoff-later{min-height:42px;border-radius:11px;padding:0 18px;font-weight:700;cursor:pointer}.handoff-submit{border:0;background:#ff6b2c;color:#fff}.handoff-later{border:1px solid #d6e2f1;background:#fff;color:#5d708b}.handoff-form-message{min-height:18px;font-size:13px;color:#d84c16}.handoff-status-card{border:1px solid #ffd4c1!important;background:#fff8f4!important}.handoff-status-card strong{color:#b83c0e}.handoff-recommend-actions{display:flex;gap:10px;margin-top:10px}.handoff-recommend-actions button{min-height:38px;padding:0 15px;border-radius:10px;cursor:pointer}.handoff-recommend-actions .handoff-now{border:0;background:#ff6b2c;color:#fff;font-weight:700}.handoff-recommend-actions .handoff-continue{border:1px solid #d6e2f1;background:#fff;color:#62758f}@media(max-width:760px){.human-handoff-button{right:14px;bottom:88px;min-width:48px;padding:0 12px}.human-handoff-button>span:last-child{display:none}.handoff-modal-backdrop{padding:10px}.handoff-modal{max-height:calc(100dvh - 20px)}.handoff-form-grid{grid-template-columns:1fr}.handoff-actions{flex-direction:column}}
/* end 20260724 human handoff overlay */
/* 20260724 compact multi-image upload rail */
.workspace .attachment-tray {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: 86px !important;
  padding: 6px 4px 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: thin !important;
  overscroll-behavior-x: contain !important;
}
.workspace .attachment-chip.upload-card {
  flex: 0 0 184px !important;
  width: 184px !important;
  min-width: 184px !important;
  min-height: 68px !important;
  height: 68px !important;
  grid-template-columns: 44px minmax(0, 1fr) 20px !important;
  grid-template-rows: minmax(0, 1fr) 3px !important;
  column-gap: 8px !important;
  row-gap: 4px !important;
  padding: 7px 7px !important;
  border-radius: 14px !important;
}
.workspace .attachment-chip.upload-card .upload-thumb,
.workspace .attachment-chip.upload-card img {
  width: 44px !important;
  height: 44px !important;
  border-radius: 9px !important;
}
.workspace .attachment-chip.upload-card .upload-meta { gap: 2px !important; }
.workspace .attachment-chip.upload-card .upload-meta strong { font-size: 12px !important; }
.workspace .attachment-chip.upload-card .upload-meta span { font-size: 11px !important; }
.workspace .attachment-chip.upload-card .upload-progress { height: 3px !important; }
.workspace .attachment-chip.upload-card .upload-remove {
  width: 20px !important;
  height: 20px !important;
  font-size: 14px !important;
  line-height: 18px !important;
}
@media (max-width: 760px) {
  .workspace .attachment-chip.upload-card {
    flex-basis: 164px !important;
    width: 164px !important;
    min-width: 164px !important;
  }
}
/* end compact multi-image upload rail */
/* 20260724 DeepSeek-style compact recognition thumbnails, max 6 */
.workspace .attachment-tray {
  min-height: 0 !important;
  max-height: 82px !important;
  padding: 5px 4px 7px !important;
  gap: 9px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}
.workspace .attachment-chip.upload-card {
  position: relative !important;
  display: block !important;
  flex: 0 0 68px !important;
  width: 68px !important;
  min-width: 68px !important;
  height: 68px !important;
  min-height: 68px !important;
  padding: 0 !important;
  overflow: visible !important;
  border-radius: 16px !important;
  background: #f2f4f7 !important;
  border: 1px solid #d7dde6 !important;
  box-shadow: none !important;
}
.workspace .attachment-chip.upload-card .upload-thumb,
.workspace .attachment-chip.upload-card .upload-thumb img,
.workspace .attachment-chip.upload-card img {
  width: 66px !important;
  height: 66px !important;
  border-radius: 15px !important;
  object-fit: cover !important;
}
.workspace .attachment-chip.upload-card .upload-meta,
.workspace .attachment-chip.upload-card .upload-progress {
  display: none !important;
}
.workspace .attachment-chip.upload-card .upload-remove {
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  z-index: 3 !important;
  width: 20px !important;
  height: 20px !important;
  border: 1px solid #d7dde6 !important;
  background: #fff !important;
  color: #6f7e92 !important;
  box-shadow: 0 2px 8px rgba(29,42,59,.14) !important;
}
.workspace .attachment-chip.upload-card.is-uploading .upload-thumb::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 22px !important;
  height: 22px !important;
  margin: -13px 0 0 -13px !important;
  border: 3px solid rgba(255,255,255,.62) !important;
  border-top-color: #fff !important;
  border-radius: 50% !important;
  animation: equote-upload-spin .75s linear infinite !important;
  z-index: 2 !important;
}
.workspace .attachment-chip.upload-card.is-uploading .upload-thumb::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: 15px !important;
  background: rgba(24,34,48,.26) !important;
  z-index: 1 !important;
}
@keyframes equote-upload-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .workspace .attachment-chip.upload-card {
    flex-basis: 62px !important;
    width: 62px !important;
    min-width: 62px !important;
    height: 62px !important;
    min-height: 62px !important;
  }
  .workspace .attachment-chip.upload-card .upload-thumb,
  .workspace .attachment-chip.upload-card .upload-thumb img,
  .workspace .attachment-chip.upload-card img {
    width: 60px !important;
    height: 60px !important;
  }
}
/* end DeepSeek-style recognition thumbnails */
/* 20260724 hide empty upload rail: preserve the original clean composer */
.workspace .attachment-tray[hidden],
.workspace .attachment-tray:empty {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* File-type aware attachment icons: spreadsheets should read as tables, not text documents. */
.file-type-icon {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #47729f;
  background: linear-gradient(145deg, #f8fbff, #eaf2ff);
}
.file-type-icon .file-type-glyph {
  display: grid;
  place-items: center;
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
}
.file-type-icon .file-type-label {
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .04em;
}
.file-type-icon.is-sheet {
  color: #14865f;
  background: linear-gradient(145deg, #f0fff8, #dff7ec) !important;
}
.file-type-icon.is-sheet .file-type-glyph {
  font-size: 30px;
}
.file-type-icon.is-pdf {
  color: #c64b4b;
  background: linear-gradient(145deg, #fff8f8, #ffe7e7) !important;
}
.file-type-icon.is-pdf .file-type-glyph {
  font-size: 15px;
}
.file-type-icon.is-word {
  color: #326ec7;
  background: linear-gradient(145deg, #f3f8ff, #e1edff) !important;
}
.file-type-icon.is-file {
  color: #61748f;
  background: linear-gradient(145deg, #f8fafc, #e9eef5) !important;
}
.message-file-icon.file-type-icon {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 12px;
}
.message-file-icon.file-type-icon .file-type-glyph {
  font-size: 20px;
}
.message-file-icon.file-type-icon .file-type-label {
  font-size: 8px;
}
.file-preview-icon.file-type-icon {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  margin-inline: auto;
}

/* Keep 5–8 image messages as a tight four-column grid without a blue empty rail. */
@media (min-width: 761px) {
  .workspace.is-chat-active .message.user.has-image-gallery {
    width: var(--message-gallery-width, auto) !important;
    max-width: min(860px, 100%) !important;
  }
  .message.user.has-image-gallery .message-gallery {
    display: grid !important;
    grid-template-columns: repeat(var(--message-gallery-columns, 1), 120px) !important;
    width: max-content !important;
    max-width: 100% !important;
    gap: 8px !important;
  }
}
@media (max-width: 760px) {
  .message.user.has-image-gallery .message-gallery {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }
  .message.user.has-image-gallery .message-image {
    width: 100% !important;
  }
}
/* end empty upload rail guard */

/* 20260725 compact draggable human handoff entry */
.human-handoff-button{right:18px;bottom:158px;min-width:0;min-height:44px;padding:0 14px 0 8px;border-radius:22px;gap:7px;background:#3478f6;box-shadow:0 8px 22px rgba(52,120,246,.24);font-size:13px;line-height:1;touch-action:none;user-select:none;transition:background-color .18s ease,box-shadow .18s ease,transform .18s ease,opacity .18s ease}
.human-handoff-button:hover{background:#2468e8;box-shadow:0 10px 24px rgba(52,120,246,.3)}
.human-handoff-button.is-dragging{cursor:grabbing;transform:scale(.98);transition:none;box-shadow:0 12px 30px rgba(52,120,246,.34)}
.human-handoff-icon{width:30px;height:30px;background:rgba(255,255,255,.18)}
@media(max-width:760px){.human-handoff-button{right:10px;bottom:142px;min-width:0;min-height:42px;padding:0 11px 0 7px}.human-handoff-button>span:last-child{display:inline}.human-handoff-icon{width:28px;height:28px}}
/* end 20260725 compact draggable human handoff entry */


/* Batch visual recognition: preserve the existing table while making row identity and
   the small set of unresolved questions immediately understandable. */
.batch-product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.batch-product-thumb {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
  border: 1px solid #dbe8fb;
  border-radius: 10px;
  background: #fff;
}

.batch-central-answer {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
}

.batch-central-answer textarea {
  flex: 1 1 auto;
  min-height: 58px;
  resize: vertical;
  border: 1px solid #cfe0f8;
  border-radius: 14px;
  padding: 10px 12px;
  color: #18304f;
  background: #fff;
  font: inherit;
  line-height: 1.5;
  outline: none;
}

.batch-central-answer textarea:focus {
  border-color: #77a9f5;
  box-shadow: 0 0 0 3px rgba(47, 116, 255, 0.1);
}

.batch-answer-submit {
  min-width: 150px;
  align-self: stretch;
}

@media (max-width: 760px) {
  .batch-central-answer {
    flex-direction: column;
  }
  .batch-answer-submit {
    min-height: 44px;
  }
}

/* 20260725 unify human handoff actions with the product blue palette. */
.handoff-submit,
.handoff-recommend-actions .handoff-now {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 115, 255, 0.2);
}
.handoff-submit:hover,
.handoff-recommend-actions .handoff-now:hover {
  background: #2468e8;
}
.handoff-form-message {
  color: #2563eb;
}
.handoff-status-card {
  border-color: #cfe0ff !important;
  background: #f5f9ff !important;
}
.handoff-status-card strong {
  color: #1f67e8;
}
.handoff-status-chip {
  width: fit-content;
  max-width: min(720px, calc(100% - 24px));
  margin-block: 8px;
  padding: 10px 12px !important;
  border: 1px solid #d6e5ff;
  border-radius: 12px;
  background: #f7faff;
  color: #536986;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: none !important;
  font-size: 13px;
  line-height: 1.5;
}
.handoff-status-chip button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #b9d2ff;
  border-radius: 9px;
  background: #fff;
  color: #286ee8;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.handoff-conversation-panel {
  padding: 18px 26px 26px;
  display: grid;
  gap: 14px;
}
.handoff-conversation-panel[hidden] { display: none; }
.handoff-form[hidden] { display: none; }
.handoff-conversation-summary {
  padding: 13px 14px;
  border: 1px solid #d7e5fb;
  border-radius: 12px;
  background: #f7faff;
  display: grid;
  gap: 4px;
}
.handoff-conversation-summary span { color: #276ce4; font-size: 13px; font-weight: 800; }
.handoff-conversation-summary strong { color: #10233f; font-size: 16px; }
.handoff-conversation-summary small { color: #7a8aa1; }
.handoff-modal-reply { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.handoff-modal-reply textarea {
  min-width: 0;
  resize: vertical;
  border: 1px solid #d5e1f0;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.handoff-modal-reply button,
.handoff-new-consultation {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.handoff-modal-reply button { border: 0; background: #3478f6; color: #fff; }
.handoff-new-consultation { justify-self: start; border: 1px solid #d5e1f0; background: #fff; color: #5d708b; }

/* 20260725 batch confirmation completion action. */
.batch-final-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.batch-final-confirm {
  min-height: 46px;
  padding-inline: 24px;
}
@media (max-width: 760px) {
  .handoff-status-chip { width: calc(100% - 24px); align-items: flex-start; flex-direction: column; }
  .handoff-modal-reply { grid-template-columns: 1fr; }
  .batch-final-actions,
  .batch-final-confirm {
    width: 100%;
  }
}



.batch-point-details { margin-top: 14px; padding-top: 14px; border-top: 1px solid #dbe8fb; }
.batch-point-details-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.batch-point-details-head span, .batch-point-details-hint { color: #7186a5; font-size: 14px; }
.batch-point-details-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.batch-point-detail-item { display: flex; align-items: flex-start; gap: 9px; min-width: 0; padding: 9px 11px; border: 1px solid #d6e6fb; border-radius: 12px; background: #f8fbff; color: #243c5d; }
.batch-point-detail-index { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #e8f1ff; color: #2f72ef; font-weight: 700; }
.batch-point-detail-text { min-width: 0; line-height: 1.55; overflow-wrap: anywhere; }
@media (max-width: 760px) { .batch-point-details-list { grid-template-columns: 1fr; } }


.batch-central-answer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}
.batch-update-preview {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid #cfe0f8;
  border-radius: 12px;
  background: #f8fbff;
  color: #526a89;
}
.batch-update-preview[hidden] { display: none; }
.batch-update-preview strong { display: block; color: #18304f; margin-bottom: 6px; }
.batch-update-preview-list { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.batch-update-preview-list span { color: #526a89; }
@media (max-width: 760px) {
  .batch-central-answer { grid-template-columns: 1fr; }
  .batch-update-preview { grid-column: 1; }
}

/* Quote-review examples and per-product review table. */
.compare-template-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 4px;
  padding: 16px 18px;
  border: 1px solid #dbe8fb;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
  color: #6f83a2;
}
.compare-template-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.compare-template-copy strong {
  color: #263c5d;
  font-size: 16px;
}
.compare-template-copy span {
  line-height: 1.5;
}
.compare-template-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #cfe0fb;
  border-radius: 20px;
  color: #fff;
  background: #2f72ef;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(47, 114, 239, .18);
}
.compare-template-actions a:hover { background: #1f63db; }
@media (max-width: 760px) {
  .compare-template-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .compare-template-actions a { width: 100%; }
}

/* Mode-bound template downloads: the action belongs to the active section. */
.workspace .starter-row-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}
.mode-template-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #bfd6ff;
  border-radius: 18px;
  color: #2f72ef;
  background: #f7faff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease;
}
.mode-template-download:hover {
  border-color: #8eb7ff;
  background: #edf4ff;
}
@media (max-width: 760px) {
  .workspace .starter-row-head { align-items: stretch !important; }
  .mode-template-download { min-height: 32px; }
}
.compare-products-wrap {
  width: 100%;
  overflow: auto;
  margin-top: 14px;
  border: 1px solid #dbe8fb;
  border-radius: 14px;
  background: #fff;
}
.compare-products-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  color: #213a5b;
  font-size: 14px;
}
.compare-products-table th,
.compare-products-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e3edf9;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.compare-products-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #526b8d;
  background: #f5f9ff;
  white-space: nowrap;
}
.compare-products-table tr:last-child td { border-bottom: 0; }
.compare-products-table td:first-child { color: #2f72ef; font-weight: 700; }
.compare-products-table td:nth-child(4),
.compare-products-table td:nth-child(6) { white-space: nowrap; }

/* 20260726 compact public quote-review result */
.compare-result-card .batch-head .quote-title-box strong {
  font-size: 17px !important;
  line-height: 1.4 !important;
}

.compare-result-card .batch-download {
  height: 36px !important;
  padding: 0 14px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2 !important;
  font-size: 13px !important;
}

.compare-result-card .compare-stats {
  gap: 8px !important;
}

.compare-result-card .compare-stats .batch-stat {
  min-width: 0 !important;
  min-height: 66px !important;
  padding: 9px 12px !important;
}

.compare-result-card .compare-stats .batch-stat span {
  font-size: 12px !important;
}

.compare-result-card .compare-stats .batch-stat b {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px !important;
  line-height: 1.4 !important;
}

.compare-result-card .compare-summary,
.compare-result-card .compare-products-table,
.compare-result-card .compare-list-block,
.compare-result-card .compare-review {
  font-size: 13px !important;
}

.compare-result-card .compare-products-table th,
.compare-result-card .compare-products-table td {
  padding: 9px 10px !important;
  line-height: 1.45 !important;
}

@media (max-width: 760px) {
  .compare-result-card .compare-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .compare-template-actions { justify-content: flex-start; }
}
/* Batch quote confirmation and per-test price details */
.batch-action-head {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.batch-confirm-all {
  border: 1px solid #bcd4ff;
  border-radius: 999px;
  background: #eef5ff;
  color: #2f73ff;
  padding: 6px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.batch-confirm-all:disabled {
  opacity: 0.55;
  cursor: default;
}

.batch-test-price-list {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #dbe8fb;
}

.batch-test-price-title {
  display: block;
  margin-bottom: 8px;
}

.batch-test-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 11px;
  margin-top: 7px;
  border: 1px solid #d6e6fb;
  border-radius: 10px;
  background: #f8fbff;
}

.batch-test-price-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.batch-test-price-value {
  flex: 0 0 auto;
  color: #11689a;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .batch-test-price-row {
    display: block;
  }

  .batch-test-price-value {
    display: block;
    margin-top: 4px;
  }
}

/* Frameless sidebar collapse control; keep the original hit area and behavior. */
.sidebar .brand-row #sidebarCollapseBtn,
.sidebar.is-collapsed .brand-row #sidebarCollapseBtn,
.sidebar .brand-row #sidebarCollapseBtn:hover,
.sidebar .brand-row #sidebarCollapseBtn:active {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.sidebar .brand-row #sidebarCollapseBtn:focus-visible {
  outline: 2px solid #bfd3f3;
  outline-offset: 2px;
}
.point-annotation-action {
  margin-top: 14px;
  padding: 9px 16px;
  border: 1px solid #b9d6ff;
  border-radius: 999px;
  background: #fff;
  color: #2672ff;
  font: inherit;
  cursor: pointer;
}

.point-annotation-action:hover {
  background: #f3f8ff;
}

.message-point-summary-button {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 4;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: rgba(22, 103, 232, 0.92);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(12, 55, 120, 0.24);
  pointer-events: auto;
}

.point-annotation-action-head {
  display: block;
  margin: 8px 0 0 auto;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.composition-annotation-summary,
.composition-annotation-empty {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  line-height: 1.55;
}

.composition-annotation-summary {
  border: 1px solid #bce9d1;
  background: #f1fbf6;
  color: #14734a;
}

.composition-annotation-empty {
  border: 1px solid #f0cf91;
  background: #fff9ee;
  color: #9a5a00;
}

.same-product-merge-action {
  border-color: #8bb8ff;
  color: #1767e8;
}

.point-annotation-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 31, 56, 0.76);
}

.point-annotation-panel {
  display: flex;
  flex-direction: column;
  width: min(1440px, 96vw);
  height: min(900px, 94vh);
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(1, 24, 61, 0.28);
}

.point-annotation-header,
.point-annotation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.point-annotation-header {
  padding: 20px 24px 14px;
  border-bottom: 1px solid #e3edfb;
}

.point-annotation-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.point-annotation-nav {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #d8e6fa;
  border-radius: 9px;
  background: #f7faff;
  color: #385678;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.point-annotation-nav:hover:not(:disabled) {
  border-color: #8db8ff;
  background: #edf4ff;
  color: #2672ff;
}

.point-annotation-nav:disabled {
  opacity: .42;
  cursor: default;
}

.point-annotation-title {
  display: grid;
  gap: 4px;
}

.point-annotation-title strong {
  color: #071a39;
  font-size: 22px;
}

.point-annotation-title span,
.point-annotation-counter {
  color: #7184a3;
  font-size: 14px;
}

.point-annotation-close,
.point-annotation-zoom button {
  display: grid;
  place-items: center;
  border: 1px solid #d8e6fa;
  background: #f7faff;
  color: #385678;
  cursor: pointer;
}

.point-annotation-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
}

.point-annotation-toolbar {
  padding: 10px 24px;
  background: #f7faff;
}

.point-annotation-zoom {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d8e6fa;
  border-radius: 10px;
}

.point-annotation-density-toggle {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #bdd4f5;
  border-radius: 9px;
  background: #fff;
  color: #2672ff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.point-annotation-density-toggle:hover {
  background: #edf4ff;
}

.point-annotation-density-toggle[hidden] {
  display: none;
}

.point-annotation-zoom button {
  min-width: 40px;
  height: 34px;
  border: 0;
  border-right: 1px solid #d8e6fa;
  border-radius: 0;
  font-size: 18px;
}

.point-annotation-zoom button:last-child {
  border-right: 0;
}

.point-annotation-zoom .point-annotation-zoom-value {
  min-width: 66px;
  font-size: 13px;
}

.point-annotation-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 0;
  flex: 1;
}

.point-annotation-viewer {
  display: grid;
  place-items: start center;
  overflow: auto;
  padding: 20px;
  background: #202b3a;
}

.point-annotation-canvas {
  position: relative;
  min-width: 100%;
  transition: width 160ms ease;
}

.point-annotation-canvas img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
}

.point-annotation-marker {
  position: absolute;
  transform: translate(calc(-50% + var(--marker-offset-x, 0px)), calc(-50% + var(--marker-offset-y, 0px)));
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2672ff;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 3px 12px rgba(0, 38, 104, 0.42);
  cursor: pointer;
}

.point-annotation-marker.is-active {
  z-index: 2;
  background: #ffb020;
  transform: translate(calc(-50% + var(--marker-offset-x, 0px)), calc(-50% + var(--marker-offset-y, 0px))) scale(1.18);
}

.point-annotation-detail {
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid #e3edfb;
  background: #fff;
}

.point-annotation-detail h3 {
  margin: 0;
  padding: 18px 18px 12px;
  color: #071a39;
}

.point-annotation-list {
  height: calc(100% - 56px);
  overflow: auto;
  padding: 0 12px 18px;
}

.point-annotation-list-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid #d8e6fa;
  border-radius: 11px;
  background: #f8fbff;
  color: #1f3859;
  text-align: left;
  cursor: pointer;
}

.point-annotation-list-item.is-active {
  border-color: #2672ff;
  background: #edf4ff;
}
.point-annotation-list-item.is-unlocated {
  border-style: dashed;
  background: #fffaf0;
  cursor: default;
}
.point-annotation-list-item.is-unlocated .point-annotation-list-number {
  background: #eef2f8;
  color: #6f7f96;
}
.point-annotation-list-item.is-unlocated small,
.point-annotation-unlocated {
  color: #a96800;
}

.point-annotation-list-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2672ff;
  color: #fff;
  font-weight: 800;
}

.point-annotation-list-label {
  min-width: 0;
  line-height: 1.45;
}

.point-annotation-list-item small {
  color: #8a9bb4;
  white-space: nowrap;
}

.point-annotation-thumbnails {
  display: flex;
  gap: 10px;
  min-height: 82px;
  overflow-x: auto;
  padding: 10px 20px 14px;
  border-top: 1px solid #e3edfb;
  background: #f7faff;
}

.point-annotation-thumbnail {
  position: relative;
  flex: 0 0 76px;
  height: 62px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.point-annotation-thumbnail.is-active {
  border-color: #2672ff;
}

.point-annotation-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.point-annotation-thumbnail span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(25, 55, 96, 0.82);
  color: #fff;
  font-size: 11px;
}

.batch-point-action {
  border-color: #9fc2ff !important;
  background: #edf4ff !important;
  color: #2168dc !important;
}

.batch-point-summary {
  white-space: nowrap;
}

@media (max-width: 860px) {
  .point-annotation-overlay {
    padding: 0;
  }

  .point-annotation-panel {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .point-annotation-body {
    grid-template-columns: 1fr;
  }

  .point-annotation-detail {
    max-height: 35vh;
    border-top: 1px solid #e3edfb;
    border-left: 0;
  }

  .point-annotation-header-actions {
    gap: 5px;
  }

  .point-annotation-nav {
    padding-inline: 8px;
    font-size: 12px;
  }
}
.handoff-reply-reminder{position:fixed;right:22px;top:22px;z-index:10120;width:min(360px,calc(100vw - 32px));box-sizing:border-box;padding:18px 18px 16px;border:1px solid #bcd5ff;border-radius:17px;background:#fff;box-shadow:0 18px 55px rgba(31,72,133,.24);display:grid;gap:7px;color:#10233f}.handoff-reply-reminder>span{color:#3478f6;font-size:12px;font-weight:800}.handoff-reply-reminder>strong{font-size:17px}.handoff-reply-reminder p{margin:0;color:#5f718a;line-height:1.55}.handoff-reminder-close{position:absolute;right:8px;top:8px;width:29px;height:29px;border:0;border-radius:50%;background:#f2f6fb;color:#71829a;cursor:pointer}.handoff-reminder-open{margin-top:6px;min-height:40px;border:0;border-radius:10px;background:#3478f6;color:#fff;font-weight:700;cursor:pointer}.handoff-chat-history{display:grid;gap:8px;margin:10px 0}.handoff-chat-line{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:start;padding:9px 10px;border-radius:10px;background:#f4f7fb}.handoff-chat-line.engineer{background:#edf5ff}.handoff-chat-line.user{background:#fff3eb}.handoff-chat-line time{color:#8a99ad;font-size:11px}.handoff-inline-reply{display:flex;gap:8px;margin-top:10px}.handoff-inline-reply textarea{flex:1;min-width:0;resize:vertical;border:1px solid #d5e1f0;border-radius:10px;padding:9px 10px;font:inherit}.handoff-inline-reply button{border:0;border-radius:10px;padding:0 14px;background:#3478f6;color:#fff;font-weight:700;cursor:pointer}@media(max-width:760px){.handoff-reply-reminder{left:12px;right:12px;top:12px;width:auto}.handoff-chat-line{grid-template-columns:1fr}.handoff-inline-reply{flex-direction:column}.handoff-inline-reply button{min-height:38px}}
.human-review-confirm-hint {
  align-self: center;
  color: #42637f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  margin-right: auto;
}
.account-box strong,
.account-box span {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-box[data-actor-type="MERCHANT_USER"] .avatar {
  border-color: #2f73ff;
  color: #1f67ff;
  background: #eaf2ff;
}

.account-logout {
  margin-left: auto;
  border: 1px solid #c8d8ea;
  border-radius: 6px;
  background: #fff;
  color: #476078;
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1.2;
}

.account-logout:hover {
  border-color: #2490b4;
  color: #176f90;
}

.account-logout:disabled {
  cursor: wait;
  opacity: .6;
}

/* 最近报价的删除确认弹窗与商户端小O保持一致。 */
.history-confirm-backdrop{position:fixed;inset:0;z-index:10100;padding:20px;background:rgba(17,31,51,.46);display:grid;place-items:center}.history-confirm-backdrop[hidden]{display:none}.history-confirm-dialog{width:min(420px,100%);box-sizing:border-box;padding:26px 26px 22px;border-radius:12px;background:#fff;box-shadow:0 20px 54px rgba(17,31,51,.25);display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:14px;row-gap:20px}.history-confirm-icon{width:32px;height:32px;border-radius:50%;background:#fff1ed;color:#e2552e;display:grid;place-items:center;font-size:19px;font-weight:800}.history-confirm-copy h2{margin:3px 0 10px;color:#24364d;font-size:18px;font-weight:700}.history-confirm-copy p{margin:0;color:#63758d;font-size:14px;line-height:1.65;word-break:break-word}.history-confirm-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:12px}.history-confirm-actions button{min-width:78px;height:36px;border-radius:6px;padding:0 16px;font:inherit;font-size:14px;cursor:pointer}.history-confirm-cancel{border:1px solid #d8e1ec;background:#fff;color:#50627a}.history-confirm-submit{border:1px solid #e2552e;background:#e2552e;color:#fff}.history-confirm-submit:hover{background:#cc4824;border-color:#cc4824}@media(max-width:760px){.history-confirm-backdrop{padding:16px}.history-confirm-dialog{padding:22px 20px 18px}.history-confirm-actions{display:grid;grid-template-columns:1fr 1fr}.history-confirm-actions button{width:100%}}
