.quote-form, .quotes-panel {
  max-width:100%;
  margin-bottom:1.25rem;
}
.quote-form label {
  display:block;
  margin-bottom:.42rem;
  font-weight:650;
}
.quote-form-row {
  display:flex;
  align-items:stretch;
  gap:.5rem;
  max-width:34rem;
}
.quote-form-row input {
  flex:1;
  min-width:0;
  min-height:44px;
  padding:.55rem .8rem;
  border:1px solid var(--line);
  border-radius:.6rem;
  background:white;
  color:var(--ink);
}
.quote-form-row .primary { flex:none; }
#quote-message {
  color:#9a3224;
  font-size:.875rem;
  margin-top:.35rem;
}
#quote-message:empty { display:none; }
.quotes-panel { padding:clamp(1rem,2.4vw,1.7rem); }
.quote-symbol-head, .quote-symbol-line, .quote-chart-head, .quote-footer {
  display:flex;
  align-items:center;
  gap:.6rem;
}
.quote-symbol-head, .quote-chart-head, .quote-footer { justify-content:space-between; }
.quote-symbol-head { flex-wrap:wrap; }
.quote-symbol-line h2 { font-size:clamp(1.32rem,3vw,1.75rem); }
.quote-exchange {
  padding:.12rem .4rem;
  border-radius:.3rem;
  background:#ffede3;
  color:#983912;
  font-size:.75rem;
  font-weight:650;
}
.quote-caption, .quote-intraday span, .quote-footer { color:var(--muted); font-size:.875rem; }
.quote-intraday {
  display:flex;
  flex-direction:column;
  color:#a44419;
  font-size:.9rem;
  font-weight:650;
}
.quote-intraday span {font-size:.78rem; font-weight:400;}
.quote-chart-head {
  border-top:1px solid var(--line);
  padding-top:.9rem;
  margin:1rem 0 .55rem;
}
.quote-chart-head h3 {font-size:1rem;}
.quote-chart-head span {color:var(--muted);font-size:.85rem;}
.quote-chart {
  position:relative;
  height:clamp(320px,54vh,550px);
  border:1px solid var(--line);
  border-radius:.6rem;
  overflow:hidden;
}
.quote-chart .tradingview-widget-container { width:100%; height:100%; }
.quote-chart .tradingview-widget-container__widget { width:100%;height:calc(100% - 32px); }
.quote-chart .tradingview-widget-copyright { height:32px;display:flex;align-items:center;justify-content:center;gap:.25rem;font-size:13px; }
.quote-chart .blue-text { color:#2962ff; }
.quote-status {
  position:absolute;
  inset:35% .9rem auto;
  color:var(--muted);
  font-size:.9rem;
  text-align:center;
  pointer-events:none;
}
.quote-footer {flex-wrap:wrap; padding-top:.8rem; gap:.35rem 1rem;}
.quote-footer a {color:#9e3c19;text-decoration:underline;text-underline-offset:3px;}
@media(max-width:780px){
  .mobile-nav {grid-template-columns:repeat(5,minmax(0,1fr));}
  .quote-heading {margin-bottom:1rem;}
  .quote-chart {height:clamp(320px,49vh,460px);}
}
.stock-quote {
  margin-top:1rem;
  padding:.85rem 1rem;
  border:1px solid var(--line);
  border-radius:.65rem;
  background:#fcfcfd;
}
.stock-quote-head {display:flex;align-items:center;justify-content:space-between;gap:1rem;}
.stock-quote-head h3 {font-size:1rem;}
.quote-refresh {
  min-height:36px;
  color:#9b421b;
  font-size:.875rem;
  text-decoration:underline;
  text-underline-offset:.2em;
}
.quote-refresh:disabled {opacity:.6;}
.stock-quote-result {font-size:.9rem;line-height:1.6;color:var(--muted);}
.quote-print {display:flex;align-items:baseline;gap:.35rem;margin:.1rem 0;color:var(--ink);}
.quote-print strong {font:700 clamp(1.6rem,5vw,2.2rem) var(--num);font-variant-numeric:tabular-nums;}
.quote-move {display:flex;gap:.45rem;margin-left:.3rem;font-family:var(--num);font-weight:650;}
.quote-origin,.quote-timing {font-size:.83rem;}
.quote-timing b {color:var(--ink);}
.qki-body {margin-top:.4rem;}
.qki-meta,.qki-retry {font-size:.84rem;color:var(--muted);}
.qki-retry {margin-left:.5rem;color:#9e3c19;text-decoration:underline;}
.qki-values {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.6rem;margin:.9rem 0;}
.qki-values > div {padding:.65rem;border:1px solid var(--line);border-radius:.5rem;background:#faf9f8;}
.qki-values dt {font-size:.81rem;color:var(--muted);}
.qki-values dd {margin:.25rem 0 0;font-weight:670;font-variant-numeric:tabular-nums;}
@media(max-width:780px){.qki-values {grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:380px){.qki-values {grid-template-columns:repeat(2,minmax(0,1fr));}}
