.analysis-shell { max-width: 1280px; }
.analysis-intro { display: grid; grid-template-columns: 1fr minmax(300px, 480px); gap: 54px; align-items: end; padding: 44px 0 36px; }
.analysis-intro h1 { font-size: clamp(48px, 6vw, 78px); }
.analysis-intro .hero-note { margin: 0 0 5px; padding-left: 24px; border-left: 1px solid rgba(203,243,107,.35); }
.market-switcher { display: grid; grid-template-columns: 132px 1fr; align-items: stretch; margin-bottom: 18px; border: 1px solid var(--line); background: var(--panel); }
.switcher-label { display: flex; flex-direction: column; justify-content: center; padding: 16px 19px; border-right: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.switcher-label small { margin-top: 4px; color: var(--muted); font: 9px var(--mono); letter-spacing: .1em; }
.market-tabs { display: grid; grid-template-columns: repeat(6, 1fr); padding: 5px; }
.market-tab { cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 7px 9px; border: 0; border-right: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 11px; white-space: nowrap; transition: color .2s ease, background .2s ease; }
.market-tab:last-child { border-right: 0; }
.market-tab:hover { color: var(--ink); background: rgba(255,255,255,.025); }
.market-tab[aria-pressed="true"] { color: var(--bg); background: var(--lime); font-weight: 700; }
.market-tab .tab-flag { font-size: 14px; }
.analysis-notice { margin-bottom: 18px; padding: 11px 14px; border: 1px solid rgba(118,215,205,.24); color: var(--cyan); background: rgba(118,215,205,.055); font: 10px var(--mono); line-height: 1.6; }
.analysis-notice strong { color: var(--ink); font-weight: 500; }
.analysis-content { min-height: 420px; }
.analysis-loading, .analysis-error { display: grid; place-items: center; min-height: 420px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); text-align: center; font: 11px var(--mono); }
.loading-mark { display: grid; place-items: center; width: 42px; height: 42px; margin: auto auto -130px; border: 1px solid var(--lime); color: var(--lime); font-size: 18px; animation: loading-spin 1.2s ease-in-out infinite alternate; }
@keyframes loading-spin { to { transform: rotate(-10deg); opacity: .55; } }
.report-head { display: flex; justify-content: space-between; gap: 28px; padding: 24px 26px; border: 1px solid var(--line); background: var(--panel); }
.report-market { display: flex; align-items: center; gap: 14px; }
.report-flag { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; background: var(--panel-2); font-size: 21px; }
.report-market h2 { font-size: 25px; }
.report-market p { margin: 5px 0 0; color: var(--muted); font: 10px var(--mono); letter-spacing: .07em; }
.report-status { display: flex; gap: 22px; align-items: center; }
.status-block { padding-left: 20px; border-left: 1px solid var(--line); }
.status-block span, .status-block strong { display: block; }
.status-block span { color: var(--muted); font: 9px var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.status-block strong { margin-top: 6px; font: 500 11px var(--mono); }
.status-value { color: var(--lime); }
.status-value.closed { color: var(--muted); }
.report-lead { display: grid; grid-template-columns: minmax(330px, .8fr) minmax(400px, 1.2fr); border: 1px solid var(--line); border-top: 0; background: var(--panel); }
.sentiment-panel { padding: 30px 28px 26px; border-right: 1px solid var(--line); }
.panel-kicker { display: flex; justify-content: space-between; gap: 12px; margin: 0; color: var(--muted); font: 10px var(--mono); letter-spacing: .09em; }
.panel-kicker span:first-child { color: var(--lime); }
.sentiment-gauge { position: relative; width: min(100%, 350px); height: 184px; margin: 20px auto 0; overflow: hidden; }
.gauge-track, .gauge-color { position: absolute; left: 5%; top: 6px; width: 90%; aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; }
.gauge-track { background: #253037; }
.gauge-color { background: conic-gradient(from 270deg at 50% 100%, #ff7869 0deg, #e8b65c 54deg, #dbe28b 90deg, #9ddd8b 126deg, #61c994 180deg, transparent 180deg); }
.gauge-cutout { position: absolute; left: 18%; top: 47px; width: 64%; aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; background: var(--panel); }
.gauge-needle { position: absolute; left: calc(50% - 2px); bottom: 15px; width: 4px; height: 118px; border-radius: 4px; background: var(--ink); transform: rotate(var(--needle-angle)); transform-origin: 50% calc(100% - 4px); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.gauge-needle::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 13px; height: 13px; border: 3px solid var(--ink); border-radius: 50%; background: var(--panel); transform: translateX(-50%); }
.gauge-value { position: absolute; inset: auto 0 4px; text-align: center; }
.gauge-value strong { display: block; font: 500 38px var(--mono); letter-spacing: -.08em; }
.gauge-value span { display: block; margin-top: 1px; font-size: 13px; font-weight: 700; }
.gauge-scale { display: flex; justify-content: space-between; margin: -5px 1% 0; color: var(--muted); font: 8px var(--mono); }
.sentiment-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border-top: 1px solid var(--line); }
.sentiment-meta div { padding: 16px 11px 0; border-right: 1px solid var(--line); text-align: center; }
.sentiment-meta div:first-child { padding-left: 0; }
.sentiment-meta div:last-child { padding-right: 0; border-right: 0; }
.sentiment-explanation { margin: 17px 0 0; padding: 12px 13px; border-left: 2px solid var(--cyan); color: var(--muted); font-size: 11px; line-height: 1.7; }
.sentiment-meta span, .sentiment-meta strong { display: block; }
.sentiment-meta span { color: var(--muted); font: 9px var(--mono); }
.sentiment-meta strong { margin-top: 5px; font: 500 12px var(--mono); }
.summary-panel { display: flex; flex-direction: column; justify-content: space-between; padding: 31px 32px 27px; }
.summary-panel h3 { max-width: 690px; margin: 22px 0 14px; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.28; letter-spacing: -.035em; }
.summary-panel > p { margin: 0; color: #b8c2c2; font-size: 13px; line-height: 1.85; }
.summary-delta { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
.summary-delta b { flex: none; color: var(--cyan); font: 500 10px var(--mono); letter-spacing: .06em; }
.analysis-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.analysis-card { min-height: 190px; padding: 25px 27px 26px; border: 1px solid var(--line); background: var(--panel); }
.analysis-card.wide { grid-column: 1 / -1; }
.analysis-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.analysis-card-head span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid rgba(203,243,107,.32); color: var(--lime); font: 9px var(--mono); }
.analysis-card h3 { margin: 0; font-size: 15px; }
.analysis-card p, .analysis-card li { color: #b8c2c2; font-size: 12px; line-height: 1.85; }
.analysis-card p { margin: 0; }
.analysis-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.analysis-list li { position: relative; padding-left: 17px; }
.analysis-list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; border-top: 1px solid var(--lime); }
.analysis-card.risk .analysis-card-head span { border-color: rgba(255,143,128,.35); color: var(--down); }
.analysis-card.risk .analysis-list li::before { border-color: var(--down); }
.report-meta { display: grid; grid-template-columns: 1fr; margin-top: 12px; border: 1px solid var(--line); background: var(--line); }
.report-meta div { padding: 16px 18px; background: var(--panel); }
.report-meta span, .report-meta strong { display: block; }
.report-meta span { color: var(--muted); font: 8px var(--mono); letter-spacing: .08em; }
.report-meta strong { margin-top: 7px; font: 500 10px var(--mono); overflow-wrap: anywhere; }
.analysis-disclaimer { margin: 12px 0 0; padding: 16px 18px; border: 1px dashed rgba(234,242,233,.17); color: var(--muted); text-align: center; font: 10px var(--mono); }
.analysis-footer { margin-top: 36px; }
.retry-btn { cursor: pointer; margin-top: 12px; padding: 8px 12px; border: 1px solid var(--line); color: var(--lime); background: transparent; font: 10px var(--mono); }
@media (max-width: 980px) {
  .analysis-intro { padding-top: 34px; }
  .market-switcher { grid-template-columns: 1fr; }
  .switcher-label { display: none; }
  .market-tabs { grid-template-columns: repeat(3, 1fr); }
  .market-tab:nth-child(3) { border-right: 0; }
  .market-tab:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .report-head { display: block; }
  .report-status { margin-top: 22px; }
  .status-block:first-child { padding-left: 0; border-left: 0; }
  .report-lead { grid-template-columns: 1fr; }
  .sentiment-panel { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .analysis-intro { display: block; padding: 30px 0 27px; }
  .analysis-intro .hero-note { margin-top: 23px; }
  .market-tabs { grid-template-columns: repeat(2, 1fr); }
  .market-tab:nth-child(3) { border-right: 1px solid var(--line); }
  .market-tab:nth-child(2n) { border-right: 0; }
  .market-tab:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .report-head, .sentiment-panel, .summary-panel, .analysis-card { padding-left: 18px; padding-right: 18px; }
  .report-status { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .status-block:nth-child(3) { padding-left: 0; border-left: 0; }
  .report-lead { display: block; }
  .sentiment-gauge { height: 170px; }
  .gauge-needle { height: 106px; }
  .analysis-grid { grid-template-columns: 1fr; }
  .analysis-card.wide { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .gauge-needle, .market-tab, .refresh-btn { transition: none; }
  .loading-mark { animation: none; }
}
