/* Item prices: a clear quote above one shared history surface. */
#quote.q-detail { --history-surface: var(--card-2); border-radius: 24px; background: var(--card); box-shadow: 0 2px 4px color-mix(in srgb, var(--ink) 2%, transparent), 0 18px 54px -38px color-mix(in srgb, var(--ink) 30%, transparent); }
#quote.q-detail > .box-b { padding: 28px 30px 20px; }
#quote.q-detail .q-top { align-items: center; gap: 16px; }
#quote.q-detail .q-id { gap: 14px; min-width: 0; }
#quote.q-detail .q-id > div { min-width: 0; }
#quote.q-detail .q-icon { width: 56px; height: 56px; border-radius: 17px; border-color: color-mix(in srgb, var(--accent) 13%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, var(--card)); box-shadow: none; }
#quote.q-detail .q-name { font-family: var(--head); font-size: clamp(23px, 2.3vw, 29px); font-weight: 750; letter-spacing: -.9px; line-height: 1.25; overflow-wrap: anywhere; }
#quote.q-detail .q-sub { margin-top: 5px; font-size: 12px; font-weight: 500; line-height: 1.55; }
#quote.q-detail .q-item-id { color: var(--ink-3); }
#quote.q-detail .q-acts { width: auto; flex: none; }
#quote.q-detail .q-acts .btn { min-height: 38px; padding: 9px 13px; border-radius: 10px; font-size: 12px; box-shadow: none; }
.q-active-scope { display: inline-flex; align-items: center; margin-top: 8px; padding: 4px 8px; border: 1px solid color-mix(in srgb, var(--accent) 15%, var(--line)); border-radius: 7px; color: var(--accent-ink); background: var(--accent-soft); font-size: 11px; font-weight: 650; line-height: 1.4; }
#quote.q-detail .q-kpis { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: stretch; margin: 30px 0 28px; }
#quote.q-detail .q-kpi { padding: 7px 24px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
#quote.q-detail .q-kpi-now { padding-left: 0; border-left: 0; }
#quote.q-detail .q-lbl { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
#quote.q-detail .q-kpi .q-line { gap: 8px 12px; margin-top: 10px; }
#quote.q-detail .q-kpi .q-price { font-size: clamp(42px, 4.7vw, 66px); font-weight: 800; letter-spacing: -2.5px; line-height: 1.05; overflow-wrap: anywhere; }
#quote.q-detail .q-unit { margin-left: 0; font-size: 14px; font-weight: 550; }
#quote.q-detail .q-kpi .q-chg { margin-top: 12px; padding: 0; background: transparent; border-radius: 0; font-size: 12px; font-weight: 600; line-height: 1.55; }
#quote.q-detail .q-kv { margin-top: 14px; font-size: clamp(25px, 2.5vw, 34px); font-weight: 750; letter-spacing: -1.1px; line-height: 1.15; }
#quote.q-detail .q-kv small { font-size: 12px; font-weight: 500; }
#quote.q-detail .q-ks { margin-top: 10px; padding-top: 0; font-size: 12px; font-weight: 500; line-height: 1.65; }
#quote.q-detail .q-ks b { font-weight: 650; }
#quote.q-detail .q-rng { margin-top: 2px; }
#quote.q-detail .q-rng-e { font-size: 11px; }
#quote.q-detail a.q-kpi:hover { color: inherit; background: color-mix(in srgb, var(--card-2) 65%, transparent); border-radius: 10px; box-shadow: none; }
.q-history-panel { padding: 22px 22px 0; border: 1px solid var(--line); border-radius: 18px; background: var(--history-surface); }
.q-history-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.q-history-heading h2 { margin: 0; font-family: var(--head); font-size: 17px; font-weight: 650; letter-spacing: -.45px; }
#quote.q-detail .q-history-heading .q-seg { gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); box-shadow: none; }
#quote.q-detail .q-seg button { min-width: 38px; min-height: 32px; padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0; }
#quote.q-detail [data-q-range] button[aria-pressed="true"] { background: var(--ink); color: var(--card); box-shadow: none; }
.q-chart-key { display: flex; justify-content: flex-end; padding: 10px 0 0; }
#quote.q-detail .q-key { gap: 6px 16px; font-size: 11px; font-weight: 500; }
#quote.q-detail .q-key span { gap: 6px; }
#quote.q-detail .q-k-ln { height: 2px; background: var(--accent-ink); }
#quote.q-detail .q-chart { height: 330px; --q-dot-a: .4; --q-band-a: .1; --q-vol-a: .24; }
#quote.q-detail .q-ln { stroke: var(--accent-ink); stroke-width: 2.75px; }
#quote.q-detail .q-halo { stroke: var(--history-surface); stroke-width: 6px; }
#quote.q-detail .q-dot, #quote.q-detail .q-end { stroke: var(--history-surface); }
#quote.q-detail .q-end { fill: var(--accent-ink); }
#quote.q-detail .q-ax { font-size: 11px; }
#quote.q-detail .q-grid { stroke: color-mix(in srgb, var(--ink) 10%, var(--history-surface)); }
#quote.q-detail .q-history-empty { display: grid; min-height: 145px; place-items: center; margin: 0 0 8px !important; border: 1px dashed var(--line-2); border-radius: 12px; padding: 24px; font-size: 14px; text-align: center; }
#quote.q-detail .q-stats.q-facts { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 0; margin: 16px -22px 0; padding: 17px 8px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 18px 18px; background: transparent; }
#quote.q-detail .q-facts > div { padding: 0 14px; border-right: 1px solid var(--line); background: transparent; }
#quote.q-detail .q-facts > div:last-child { border-right: 0; }
#quote.q-detail .q-facts dt { font-size: 10px; font-weight: 550; letter-spacing: .02em; text-transform: none; }
#quote.q-detail .q-facts dd { margin-top: 6px; font-size: 15px; font-weight: 700; letter-spacing: -.25px; }
#quote.q-detail .q-facts dd small { display: block; margin-top: 3px; font-size: 10px; font-weight: 500; }
#quote.q-detail .q-foot { margin: 14px 2px 0; font-size: 11px; line-height: 1.6; }
#quote.q-filtered .q-filter-scope > strong { display: none; }
:root[data-theme="dark"] #quote.q-detail .q-chart { --q-dot-a: .65; --q-band-a: .14; --q-vol-a: .32; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #quote.q-detail .q-chart { --q-dot-a: .65; --q-band-a: .14; --q-vol-a: .32; } }
@media (max-width: 1000px) and (min-width: 761px) {
  #quote.q-detail > .box-b { padding: 24px; }
  #quote.q-detail .q-kpi { padding-right: 18px; padding-left: 18px; }
  #quote.q-detail .q-kpi-now { padding-left: 0; }
  #quote.q-detail .q-kpi .q-price { font-size: 51px; }
  #quote.q-detail .q-kv { font-size: 27px; }
  #quote.q-detail .q-facts > div { padding-right: 10px; padding-left: 10px; }
}
@media (max-width: 760px) {
  #quote.q-detail { border-radius: 19px; }
  #quote.q-detail > .box-b { padding: 20px 16px 15px; }
  #quote.q-detail .q-top { flex-wrap: nowrap; gap: 10px; align-items: flex-start; }
  #quote.q-detail .q-id { gap: 10px; flex: 1; }
  #quote.q-detail .q-icon { width: 44px; height: 44px; border-radius: 13px; }
  #quote.q-detail .q-icon img { max-width: 32px; max-height: 32px; }
  #quote.q-detail .q-name { font-size: 20px; letter-spacing: -.6px; }
  #quote.q-detail .q-sub { font-size: 11px; }
  #quote.q-detail .q-item-id { display: none; }
  #quote.q-detail .q-acts .btn { min-height: 34px; padding: 8px 9px; font-size: 11px; }
  .q-active-scope { margin-top: 6px; padding: 3px 6px; font-size: 10px; }
  #quote.q-detail .q-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 18px 0 18px; row-gap: 14px; }
  #quote.q-detail .q-kpi { padding: 0 0 0 14px; }
  #quote.q-detail .q-kpi-now { grid-column: 1 / -1; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
  #quote.q-detail .q-kpi:nth-child(2) { padding-left: 0; border-left: 0; }
  #quote.q-detail .q-kpi .q-line { margin-top: 6px; gap: 8px; }
  #quote.q-detail .q-kpi .q-price { font-size: 48px; letter-spacing: -2px; }
  #quote.q-detail .q-unit { font-size: 13px; }
  #quote.q-detail .q-kpi .q-chg { margin-top: 8px; font-size: 11px; }
  #quote.q-detail .q-lbl { font-size: 11px; }
  #quote.q-detail .q-kv { margin-top: 8px; font-size: 24px; letter-spacing: -.9px; }
  #quote.q-detail .q-kv small { display: none; }
  #quote.q-detail .q-ks { margin-top: 8px; font-size: 10px; line-height: 1.6; }
  #quote.q-detail .q-rng-e { font-size: 10px; }
  .q-history-panel { margin-right: -5px; margin-left: -5px; padding: 15px 11px 0; border-radius: 14px; }
  .q-history-heading { flex-wrap: nowrap; gap: 6px; margin-bottom: 14px; }
  .q-history-heading h2 { font-size: 14px; white-space: nowrap; }
  #quote.q-detail .q-seg button { min-width: 30px; min-height: 30px; padding: 5px 7px; font-size: 11px; }
  .q-chart-key { justify-content: flex-start; padding-top: 8px; }
  #quote.q-detail .q-key { gap: 5px 11px; font-size: 10px; }
  #quote.q-detail .q-chart { height: 290px; }
  #quote.q-detail .q-stats.q-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 15px; margin: 12px -11px 0; padding: 14px 0; }
  #quote.q-detail .q-facts > div { padding: 0 12px; }
  #quote.q-detail .q-facts > div:nth-child(2n) { border-right: 0; }
  #quote.q-detail .q-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  #quote.q-detail .q-facts dt { font-size: 10px; }
  #quote.q-detail .q-facts dd { font-size: 14px; margin-top: 4px; }
  #quote.q-detail .q-facts dd small { display: inline; font-size: 10px; }
  #quote.q-detail .q-foot { font-size: 11px; }
}
@media (max-width: 360px) {
  #quote.q-detail .q-name { font-size: 18px; }
  #quote.q-detail .q-acts .btn { padding-right: 7px; padding-left: 7px; font-size: 10px; }
  .q-history-heading { flex-wrap: wrap; }
  #quote.q-detail .q-kpi .q-price { font-size: 43px; }
}
