@charset "UTF-8";
/** Market AI Article System v1.0 — layout and article typography only. */

.market-ai-article-page { overflow-x: hidden; }
.market-ai-article-page #container { width: 100%; }
.market-ai-article { min-width: 0; overflow: clip; }
.market-ai-article .mai-container { padding-inline: 32px; }
.market-ai-article .mai-article-reading-column { max-width: 1080px; }
.market-ai-article .mai-article-header .mai-article-reading-column { max-width: 1280px; }

.mai-article-header { padding-top: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(124, 255, 58, .1); }
.mai-article-header h1 { max-width: 1280px; margin: 14px 0 18px; font-size: clamp(36px, 3.8vw, 50px); line-height: 1.18; overflow-wrap: break-word; word-break: normal; line-break: strict; text-wrap: pretty; }
.mai-article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--mai-muted); font-size: 13px; }
.mai-article-meta > * { position: relative; }
.mai-article-meta > * + *::before { content: ""; position: absolute; top: .45em; left: -12px; width: 3px; height: 3px; background: var(--mai-primary); border-radius: 50%; }
.mai-article-share-reserve { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; margin-top: 24px; padding: 7px 12px; border: 1px solid var(--mai-border); border-radius: var(--mai-radius-control); color: var(--mai-muted); font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.mai-article-share-reserve span { color: var(--mai-primary); letter-spacing: .06em; }

.mai-article-section-heading { margin-bottom: 38px; }
.mai-article-section-heading h2 { margin: 8px 0 0; }
.mai-article-snapshot { padding-top: 40px; padding-bottom: 72px; }
.mai-article-snapshot-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.mai-article-snapshot-grid .mai-dashboard-card { display: flex; min-height: 164px; flex-direction: column; gap: 14px; justify-content: space-between; }
.mai-article-snapshot-grid .mai-data-value { font-size: clamp(21px, 2vw, 32px); }

.mai-html-dashboard { background: #050707; border-block: 1px solid rgba(124, 255, 58, .1); }
.mai-html-dashboard__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.mai-html-dashboard__header h2 { margin: 8px 0 0; }
.mai-html-dashboard__header p { margin: 10px 0 0; color: var(--mai-muted); font-size: 13px; line-height: 1.6; }
.mai-html-dashboard__timestamp { display: grid; min-width: 168px; grid-template-columns: 1fr auto; align-items:center; gap: 5px 10px; padding: 9px 11px; border: 1px solid rgba(124, 255, 58, .3); border-radius: var(--mai-radius-control); color: var(--mai-text); }
.mai-html-dashboard__timestamp > .mai-html-dashboard__status-label { grid-column: 1 / -1; }
.mai-html-dashboard__timestamp time { display: flex; min-width: 0; flex-direction: column; font-variant-numeric: tabular-nums; line-height: 1.35; white-space: nowrap; }
.mai-html-dashboard__date { font-size: 13px; }
.mai-html-dashboard__time { color: var(--mai-primary); font-size: 16px; font-weight: 750; }
.mai-html-dashboard__live { display: inline-flex; width: fit-content; min-height: 23px; align-items: center; gap: 7px; padding: 3px 8px; border: 1px solid rgba(0, 255, 102, .42); border-radius: 999px; color: var(--mai-up); font-size: 9px; font-weight: 800; letter-spacing: .09em; white-space: nowrap; }
.mai-html-dashboard__live-dot { width: 6px; height: 6px; flex: 0 0 6px; background: var(--mai-up); border-radius: 50%; box-shadow: 0 0 7px rgba(0, 255, 102, .38); animation: mai-dashboard-live-pulse 2.8s ease-in-out infinite; }
@keyframes mai-dashboard-live-pulse { 0%, 100% { opacity: .62; transform: scale(.9); } 50% { opacity: 1; transform: scale(1); } }
.mai-html-dashboard__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: row dense; align-items: stretch; gap: 14px; }
.mai-html-dashboard__card { position: relative; grid-column: span 3; min-width: 0; min-height: 176px; display: flex; padding: 22px; overflow: hidden; flex-direction: column; background: #0d1214; border: 1px solid rgba(124, 255, 58, .2); border-radius: var(--mai-radius-card); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025); }
.mai-html-dashboard__card::before { content: ""; position: absolute; top: 0; left: 20px; width: 48px; height: 2px; background: var(--mai-primary); opacity: .72; }
.mai-html-dashboard__card--accent { border-color: rgba(124, 255, 58, .42); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 0 18px rgba(124, 255, 58, .06); }
.mai-html-dashboard__card:is([data-dashboard-key="market-score"], [data-dashboard-key="market-temperature"], [data-dashboard-key="ai-confidence"], [data-dashboard-key="overall-judgment"], [data-dashboard-key="japan-market"], [data-dashboard-key="us-market"]) { border-color: rgba(124, 255, 58, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 0 16px rgba(124, 255, 58, .045); }
.mai-html-dashboard__card:is([data-dashboard-key="market-score"], [data-dashboard-key="market-temperature"], [data-dashboard-key="ai-confidence"], [data-dashboard-key="overall-judgment"], [data-dashboard-key="japan-market"], [data-dashboard-key="us-market"])::before { width: 68px; opacity: .9; }
.mai-html-dashboard__card:is([data-dashboard-key="market-score"], [data-dashboard-key="market-temperature"], [data-dashboard-key="ai-confidence"], [data-dashboard-key="overall-judgment"]) { min-height: 218px; }
.mai-html-dashboard__card--wide { grid-column: span 6; }
.mai-html-dashboard__card--feature { grid-column: span 4; }
.mai-html-dashboard__card[data-dashboard-key="trend"], .mai-html-dashboard__card[data-dashboard-key="japan-market"], .mai-html-dashboard__card[data-dashboard-key="us-market"] { min-height: 270px; }
.mai-html-dashboard__card[data-dashboard-key="important-news"], .mai-html-dashboard__card[data-dashboard-key="indexes-sectors"], .mai-html-dashboard__card[data-dashboard-key="economic-calendar"] { grid-column: span 4; min-height: 300px; }
.mai-html-dashboard__card[data-dashboard-key="fx-rates"], .mai-html-dashboard__card[data-dashboard-key="ai-alert"], .mai-html-dashboard__card[data-dashboard-key="money-flow"] { grid-column: span 4; }
.mai-html-dashboard__card[data-dashboard-key="fx-rates"], .mai-html-dashboard__card[data-dashboard-key="ai-alert"], .mai-html-dashboard__card[data-dashboard-key="money-flow"] { min-height: 220px; }
.mai-html-dashboard__card[data-dashboard-key="investment-points"] { grid-column: 1 / -1; min-height: 180px; }
.mai-html-dashboard__card h3 { margin: 0 0 22px; color: var(--mai-muted); font-size: 11px; font-weight: 750; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.mai-html-dashboard__card strong { display: block; margin: 0 0 10px; color: var(--mai-primary); font-size: clamp(25px, 2.5vw, 40px); font-variant-numeric: tabular-nums; line-height: 1.08; overflow-wrap: anywhere; }
.mai-html-dashboard__card p { margin: 0; color: var(--mai-muted); font-size: 13px; line-height: 1.65; }
.mai-html-dashboard__card--metric p { margin-top: auto; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.mai-html-dashboard__metric { display: flex; min-width: 0; align-items: baseline; gap: 7px; }
.mai-html-dashboard__metric-value { color: var(--mai-text); font-size: clamp(31px, 3vw, 46px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; overflow-wrap: anywhere; }
.mai-html-dashboard__metric-unit { color: var(--mai-muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.mai-html-dashboard__progress { width: 100%; height: 5px; margin: 4px 0 14px; overflow: hidden; background: rgba(156, 167, 181, .14); border-radius: 999px; }
.mai-html-dashboard__progress-fill { display: block; width: var(--mai-progress-value, 0%); height: 100%; background: var(--mai-primary); border-radius: inherit; }
.mai-html-dashboard__gauge { position: relative; isolation: isolate; display: grid; width: 132px; aspect-ratio: 1; place-items: center; align-self: center; margin: -4px 0 10px; background: conic-gradient(from -90deg, var(--mai-primary) var(--mai-progress-value), rgba(156, 167, 181, .16) 0); border: 1px solid rgba(124, 255, 58, .2); border-radius: 50%; box-shadow: 0 0 0 3px rgba(124, 255, 58, .025), 0 0 21px rgba(124, 255, 58, .1), inset 0 0 13px rgba(124, 255, 58, .05); transform: scale(1.28); transform-origin: center; }
.mai-html-dashboard__gauge::before { content: ""; position: absolute; z-index: -1; inset: 11px; background: radial-gradient(circle at 48% 38%, rgba(124, 255, 58, .035), transparent 56%), #0d1214; border: 1px solid rgba(124, 255, 58, .08); border-radius: 50%; }
.mai-html-dashboard__gauge .mai-html-dashboard__metric { display: grid; justify-items: center; gap: 2px; }
.mai-html-dashboard__gauge .mai-html-dashboard__metric-value { color: var(--mai-primary); font-size: 31px; }
.mai-html-dashboard__gauge .mai-html-dashboard__metric-unit { font-size: 8.6px; }
.mai-html-dashboard__gauge-status { margin-top: 4px; font-size: 7px; font-weight: 800; letter-spacing: .09em; line-height: 1; white-space: nowrap; }
.mai-html-dashboard__gauge-status::after { content: none !important; }
.mai-html-dashboard__status-row { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 9px 12px; }
.mai-html-dashboard__status-row--risk { margin-bottom: 14px; }
.mai-html-dashboard__status-label { color: var(--mai-muted); font-size: 9px; font-weight: 750; letter-spacing: .09em; line-height: 1.4; text-transform: uppercase; }
.mai-html-dashboard__status-badge { display: inline-flex; width: fit-content; min-height: 23px; align-items: center; padding: 3px 8px; background: rgba(156, 167, 181, .07); border: 1px solid currentColor; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .08em; line-height: 1.2; white-space: nowrap; }
.mai-html-dashboard__status-badge::after { content: none !important; }
.mai-html-dashboard__status-badge.mai-status--waiting { color: var(--mai-muted) !important; }
.mai-html-dashboard__status-badge.mai-status--current { color: var(--mai-up) !important; }
.mai-html-dashboard__status-badge[data-temperature-state="cold"], .mai-html-dashboard__status-badge[data-temperature-state="cool"] { color: var(--mai-muted); }
.mai-html-dashboard__status-badge[data-temperature-state="neutral"] { color: var(--mai-text); }
.mai-html-dashboard__status-badge[data-temperature-state="warm"] { color: var(--mai-warning); }
.mai-html-dashboard__status-badge[data-temperature-state="hot"] { color: var(--mai-down); }
.mai-html-dashboard__status-badge[data-confidence-state="low"] { color: var(--mai-muted); }
.mai-html-dashboard__status-badge[data-confidence-state="medium"] { color: var(--mai-warning); }
.mai-html-dashboard__status-badge[data-confidence-state="high"] { color: var(--mai-up); }
.mai-html-dashboard__card--alert { border-color: rgba(255, 200, 87, .28); }
.mai-html-dashboard__card--alert strong { color: var(--mai-text); }
.mai-html-dashboard__card ul { margin: 0; padding: 0; list-style: none; }
.mai-html-dashboard__card li { position: relative; margin-top: 9px; padding-left: 15px; color: var(--mai-text); font-size: 13px; line-height: 1.55; }
.mai-html-dashboard__card li:first-child { margin-top: 0; }
.mai-html-dashboard__card li::before { content: ""; position: absolute; top: .62em; left: 0; width: 5px; height: 5px; background: var(--mai-primary); border-radius: 50%; }
.mai-html-dashboard__card dl { margin: 0; }
.mai-html-dashboard__card dl > div { display: flex; min-width: 0; justify-content: space-between; gap: 14px; padding-block: 9px; border-top: 1px solid rgba(124, 255, 58, .1); }
.mai-html-dashboard__card dl > div:first-child { padding-top: 0; border-top: 0; }
.mai-html-dashboard__card dt, .mai-html-dashboard__card dd { min-width: 0; margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.mai-html-dashboard__card dt { color: var(--mai-muted); }
.mai-html-dashboard__card dd { color: var(--mai-text); font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; }
.mai-dashboard-indexes dd { color: var(--mai-primary); }
.mai-html-dashboard__summary { display: -webkit-box; margin-top: auto !important; padding-top: 14px; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.mai-html-dashboard__waiting { display: flex; min-width: 0; margin-top: auto !important; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--mai-muted) !important; overflow-wrap: anywhere; }
.mai-html-dashboard__waiting--inline { padding-top: 14px; flex-direction: row; align-items: center; flex-wrap: wrap; }
.mai-html-dashboard__waiting-mark { color: var(--mai-muted); font-size: 25px; line-height: 1; }
.mai-html-dashboard__waiting-label { min-width: 0; color: var(--mai-muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.mai-html-dashboard__judgments { margin-top: auto !important; }
.mai-html-dashboard__judgment { display: inline-flex; min-width: 0; align-items: center; gap: 9px; white-space: nowrap; }
.mai-html-dashboard__judgment strong { min-width: 0; margin-bottom: 0; }
.mai-html-dashboard__judgment-dot { width: 7px; height: 7px; flex: 0 0 7px; background: currentColor; border-radius: 50%; box-shadow: 0 0 6px currentColor; opacity: .82; }
.mai-html-dashboard__judgment-dot::after { content: none !important; }
.mai-html-dashboard__judgment-dot.mai-status--waiting { color: var(--mai-muted) !important; box-shadow: none; opacity: .45; }
.mai-html-dashboard__trend-placeholder { display: flex; min-width: 0; min-height: 150px; align-items: center; justify-content: center; flex-direction: column; gap: 12px; margin-top: auto; color: var(--mai-muted); text-align: center; }
.mai-html-dashboard__trend-icon { display: flex; width: 54px; height: 28px; align-items: flex-end; justify-content: center; gap: 4px; opacity: .42; }
.mai-html-dashboard__trend-icon i { display: block; width: 6px; background: currentColor; border-radius: 2px 2px 0 0; }
.mai-html-dashboard__trend-icon i:nth-child(1) { height: 7px; }.mai-html-dashboard__trend-icon i:nth-child(2) { height: 14px; }.mai-html-dashboard__trend-icon i:nth-child(3) { height: 10px; }.mai-html-dashboard__trend-icon i:nth-child(4) { height: 22px; color: var(--mai-primary); }
.mai-html-dashboard__trend-label { font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.mai-html-dashboard__trend-line { width: min(180px, 70%); height: 1px; background: linear-gradient(90deg, transparent, rgba(124, 255, 58, .24), transparent); }
.mai-html-dashboard__index-list { width: 100%; margin-top: 16px !important; }
.mai-html-dashboard__card .mai-html-dashboard__index-row { display: grid; grid-template-columns: minmax(76px, 1fr) minmax(84px, auto) minmax(64px, auto); align-items: baseline; gap: 8px; }
.mai-html-dashboard__index-name, .mai-html-dashboard__index-value, .mai-html-dashboard__index-change { min-width: 0; margin: 0; font-size: 12px; line-height: 1.45; }
.mai-html-dashboard__index-name { color: var(--mai-muted); overflow-wrap: anywhere; }
.mai-html-dashboard__index-value, .mai-html-dashboard__index-change { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mai-change--up { color: var(--mai-up); }
.mai-change--down { color: var(--mai-down); }
.mai-change--neutral { color: var(--mai-text); }
.mai-change--waiting { color: var(--mai-muted); }
.mai-html-dashboard__notice { margin: 16px 0 0; color: var(--mai-muted); font-size: 11px; line-height: 1.6; }

.mai-article-body { padding-top: 72px; padding-bottom: 72px; background: #080a0b; }
.mai-article-content { color: var(--mai-text); font-size: 18px; line-height: 1.95; overflow-wrap: anywhere; }
.mai-article-content > *:first-child { margin-top: 0; }
.mai-article-content > *:last-child { margin-bottom: 0; }
.mai-article-content p { margin: 0 0 1.65em; color: var(--mai-text); }
.mai-article-content h2, .mai-article-content h3, .mai-article-content h4 { scroll-margin-top: 32px; color: var(--mai-text); font-weight: 750; letter-spacing: -.025em; }
.mai-article-content h2 { margin: 2.5em 0 .9em; padding: 0 0 .55em; border-bottom: 1px solid rgba(124, 255, 58, .24); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.35; }
.mai-article-content h3 { margin: 2.1em 0 .8em; padding-left: 16px; border-left: 2px solid var(--mai-primary); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.45; }
.mai-article-content h4 { margin: 1.8em 0 .7em; font-size: 20px; line-height: 1.5; }
.mai-article-content a { color: var(--mai-primary); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.mai-article-content ul, .mai-article-content ol { margin: 0 0 1.7em; padding-left: 1.5em; }
.mai-article-content li { margin-block: .55em; padding-left: .25em; }
.mai-article-content li::marker { color: var(--mai-primary); font-weight: 750; }
.mai-article-content blockquote { margin: 2em 0; padding: 22px 24px; background: var(--mai-surface); border: 0; border-left: 3px solid var(--mai-primary); border-radius: 0 var(--mai-radius-control) var(--mai-radius-control) 0; color: var(--mai-muted); }
.mai-article-content blockquote p:last-child { margin-bottom: 0; }
.mai-article-content figure { max-width: 100%; margin: 2.2em auto; }
.mai-article-content img { max-width: 100%; height: auto; border-radius: var(--mai-radius-control); }
.mai-article-content :is(figure.mai-dashboard-image, figure[data-market-ai-dashboard], figure:has(img.mai-dashboard-image), figure:has(img[data-market-ai-dashboard]), figure:has(img[src*="dashboard" i]), figure:has(img[alt*="dashboard" i]), figure:has(img[alt*="ダッシュボード"]), img.mai-dashboard-image, img[data-market-ai-dashboard], img[src*="dashboard" i], img[alt*="dashboard" i], img[alt*="ダッシュボード"]) { display: none !important; }
.mai-dashboard-image-frame { position: relative; max-width: 100%; }
.mai-dashboard-image-frame img[data-mai-dashboard-lightbox] { cursor: zoom-in; }
.mai-article-content :is(figure.mai-dashboard-image, figure[data-market-ai-dashboard], .mai-dashboard-image-frame:has(img.mai-dashboard-image), .mai-dashboard-image-frame:has(img[data-market-ai-dashboard])) { width: min(1360px, calc(100vw - 48px)); max-width: none; margin-left: 50%; margin-right: 0; transform: translateX(-50%); }
.mai-article-content :is(figure.mai-dashboard-image, figure[data-market-ai-dashboard], .mai-dashboard-image-frame:has(img.mai-dashboard-image), .mai-dashboard-image-frame:has(img[data-market-ai-dashboard])) :is(a, picture) { display: block; width: 100%; }
.mai-article-content :is(figure.mai-dashboard-image, figure[data-market-ai-dashboard], .mai-dashboard-image-frame:has(img.mai-dashboard-image), .mai-dashboard-image-frame:has(img[data-market-ai-dashboard])) img { display: block; width: 100%; height: auto; }
.mai-dashboard-image-trigger { position: absolute; z-index: 2; top: 12px; right: 12px; min-height: 34px; padding: 6px 10px; background: rgba(5, 5, 5, .86); border: 1px solid rgba(124, 255, 58, .48); border-radius: 7px; color: var(--mai-primary); font: inherit; font-size: 10px; font-weight: 750; letter-spacing: .08em; line-height: 1; cursor: zoom-in; }
.mai-dashboard-lightbox { position: fixed; z-index: 100000; inset: 0; display: grid; place-items: center; padding: 3vh 2.5vw; background: rgba(0, 0, 0, .92); opacity: 0; transition: opacity 180ms ease; }
.mai-dashboard-lightbox[hidden] { display: none; }
.mai-dashboard-lightbox.is-open { opacity: 1; }
.mai-dashboard-lightbox__panel { position: relative; width: 100%; height: 100%; outline: 0; }
.mai-dashboard-lightbox__viewport { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: pinch-zoom; }
.mai-dashboard-lightbox__viewport.is-dragging { cursor: grabbing; }
.mai-dashboard-lightbox__stage { position: absolute; display: block; width: 0; height: 0; }
.mai-dashboard-lightbox__image { display: block; width: 100%; max-width: none; height: 100%; max-height: none; object-fit: contain; border-radius: var(--mai-radius-control); user-select: none; }
.mai-dashboard-lightbox__toolbar { position: fixed; z-index: 3; top: max(16px, env(safe-area-inset-top)); left: 50%; display: flex; align-items: center; gap: 6px; padding: 6px; background: rgba(5, 5, 5, .9); border: 1px solid rgba(124, 255, 58, .38); border-radius: 10px; transform: translateX(-50%); }
.admin-bar .mai-dashboard-lightbox__toolbar { top: calc(32px + max(16px, env(safe-area-inset-top))); }
.mai-dashboard-lightbox__toolbar button { display: inline-grid; min-width: 44px; height: 44px; place-items: center; padding: 0 10px; background: #080b09; border: 1px solid rgba(124, 255, 58, .3); border-radius: 7px; color: var(--mai-primary); font: inherit; font-size: 12px; font-weight: 750; line-height: 1; cursor: pointer; }
.mai-dashboard-lightbox__toolbar button[aria-disabled="true"] { color: var(--mai-muted); cursor: not-allowed; opacity: .55; }
.mai-dashboard-lightbox__toolbar .mai-dashboard-lightbox__scale { min-width: 62px; font-variant-numeric: tabular-nums; }
.mai-dashboard-lightbox__toolbar .mai-dashboard-lightbox__close { font-size: 24px; }
body.mai-lightbox-open { overflow: hidden; }
.mai-article-content iframe, .mai-article-content video, .mai-article-content embed, .mai-article-content object { max-width: 100%; }
.mai-article-content figcaption { margin-top: 8px; color: var(--mai-muted); font-size: 13px; line-height: 1.65; text-align: center; }
.mai-article-content table { width: 100%; min-width: 620px; border: 0; border-collapse: collapse; background: var(--mai-surface); color: var(--mai-text); font-size: 15px; }
.mai-article-content > table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mai-article-content .wp-block-table, .mai-article-content .scrollable-table { max-width: 100%; margin: 2em 0; overflow-x: auto; border: 1px solid var(--mai-border); border-radius: var(--mai-radius-control); -webkit-overflow-scrolling: touch; }
.mai-article-content th, .mai-article-content td { padding: 14px 16px; border: 1px solid var(--mai-border); text-align: left; }
.mai-article-content th { color: var(--mai-primary); font-weight: 750; }
.mai-article-content code { padding: .15em .4em; background: #151a1e; border: 1px solid var(--mai-border); border-radius: 5px; color: var(--mai-text); font-size: .88em; }
.mai-article-content pre { max-width: 100%; margin: 2em 0; padding: 22px; overflow-x: auto; background: #080a0b; border: 1px solid var(--mai-border); border-radius: var(--mai-radius-control); color: var(--mai-text); line-height: 1.7; -webkit-overflow-scrolling: touch; }
.mai-article-content pre code { padding: 0; background: transparent; border: 0; }
.mai-article-content hr { margin: 3em 0; border: 0; border-top: 1px solid var(--mai-border); }
.mai-article-pagination { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }

.mai-article-summary h2 { margin: 8px 0 20px; }
.mai-article-summary h3 { margin: 28px 0 10px; }
.mai-article-summary-lead { color: var(--mai-text) !important; font-size: 18px; line-height: 1.9; }
.mai-article-summary ul { margin: 0; padding-left: 1.4em; color: var(--mai-text); }
.mai-article-summary li { margin-block: 8px; }
.mai-article-summary li::marker { color: var(--mai-primary); }
.mai-article-summary .mai-analysis-focus { margin: 26px 0 0; }

.mai-article-market { border-block: 1px solid rgba(124, 255, 58, .08); }
.mai-article-market-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mai-article-market-grid .mai-dashboard-card { display: flex; min-height: 150px; flex-direction: column; justify-content: space-between; gap: 18px; }
.mai-article-market-grid .mai-data-value { font-size: clamp(22px, 2vw, 34px); }

.mai-article-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mai-article-related-media { display: flex; aspect-ratio: 16 / 10; align-items: center; justify-content: center; overflow: hidden; background: #0a0d0f; border-bottom: 1px solid var(--mai-border); color: var(--mai-primary) !important; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-decoration: none; }
.mai-article-related-media img { width: 100%; height: 100%; object-fit: cover; }
.mai-article-related-body { display: flex; min-height: 238px; padding: 22px; flex-direction: column; align-items: flex-start; }
.mai-article-related-body h3 { display: -webkit-box; margin: 14px 0 10px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mai-article-related-body h3 a { text-decoration: none; }
.mai-article-related-body time { font-size: 12px; }
.mai-article-readmore { margin-top: auto; padding-top: 18px; color: var(--mai-primary) !important; font-size: 13px; font-weight: 750; text-decoration: none; }
.mai-article-readmore::after { content: " →"; }
.mai-article-empty { grid-column: 1 / -1; }
.mai-article-empty p { margin: 0; }

.mai-article-cta { padding-top: 64px; }
.mai-article-cta > .mai-container { display: grid; grid-template-columns: minmax(0, .9fr) minmax(560px, 1.1fr); gap: 48px; align-items: center; }
.mai-article-cta h2 { margin: 8px 0; }
.mai-article-cta p { margin: 0; }
.mai-article-cta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.mai-article-footer-grid { display: grid; grid-template-columns: 1fr auto 1.3fr; gap: 48px; align-items: start; padding: 64px 32px; }
.mai-article-footer-grid strong { font-size: 22px; }
.mai-article-footer-grid p { margin: 8px 0 0; }
.mai-article-footer-grid nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 28px; }
.mai-article-footer-grid a { text-decoration: none; }

@media (max-width: 1100px) {
  .mai-html-dashboard__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mai-html-dashboard__card { grid-column: span 3; }
  .mai-html-dashboard__card--wide, .mai-html-dashboard__card[data-dashboard-key="investment-points"] { grid-column: 1 / -1; }
  .mai-html-dashboard__card--feature, .mai-html-dashboard__card[data-dashboard-key="fx-rates"], .mai-html-dashboard__card[data-dashboard-key="ai-alert"], .mai-html-dashboard__card[data-dashboard-key="money-flow"] { grid-column: span 3; }
  .mai-article-snapshot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mai-article-market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mai-article-cta > .mai-container { grid-template-columns: 1fr; }
  .mai-article-footer-grid { grid-template-columns: 1fr 1fr; }
  .mai-article-footer-grid > p { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .market-ai-article .mai-container { padding-inline: 22px; }
  .market-ai-article .mai-article-reading-column { max-width: 100%; }
  .mai-article-header { padding-top: 32px; padding-bottom: 32px; }
  .mai-article-header h1 { font-size: clamp(34px, 4.8vw, 42px); }
  .mai-html-dashboard__card { min-height: 164px; padding: 20px; }
  .mai-html-dashboard__card strong { font-size: clamp(24px, 4.5vw, 34px); }
  .mai-html-dashboard__gauge { width: 116px; transform: scale(1.18); }
  .mai-article-body { padding-block: 58px; }
  .mai-article-content { font-size: 17px; line-height: 1.9; }
  .mai-article-snapshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mai-article-market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mai-article-related-grid { grid-template-columns: 1fr; }
  .mai-article-related-body { min-height: 220px; }
  .mai-article-footer-grid { padding-inline: 22px; }
}

@media (min-width: 561px) and (max-width: 782px) {
  .admin-bar .mai-dashboard-lightbox__toolbar { top: calc(46px + max(16px, env(safe-area-inset-top))); }
}

@media (max-width: 560px) {
  .market-ai-article .mai-container { padding-inline: 16px; }
  .mai-article-header { padding-top: 24px; padding-bottom: 28px; }
  .mai-article-header h1 { margin-block: 12px 16px; font-size: clamp(28px, 8vw, 34px); line-height: 1.25; }
  .mai-html-dashboard__header { display: block; margin-bottom: 20px; }
  .mai-html-dashboard__timestamp { width: fit-content; min-width: 0; margin-top: 14px; }
  .mai-html-dashboard__gauge { width: 108px; transform: scale(1.1); }
  .mai-html-dashboard__status-row { align-items: flex-start; flex-direction: column; }
  .mai-html-dashboard__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .mai-html-dashboard__card, .mai-html-dashboard__card--wide, .mai-html-dashboard__card--feature, .mai-html-dashboard__card[data-dashboard-key="trend"], .mai-html-dashboard__card[data-dashboard-key="japan-market"], .mai-html-dashboard__card[data-dashboard-key="us-market"], .mai-html-dashboard__card[data-dashboard-key="important-news"], .mai-html-dashboard__card[data-dashboard-key="indexes-sectors"], .mai-html-dashboard__card[data-dashboard-key="economic-calendar"], .mai-html-dashboard__card[data-dashboard-key="fx-rates"], .mai-html-dashboard__card[data-dashboard-key="ai-alert"], .mai-html-dashboard__card[data-dashboard-key="money-flow"], .mai-html-dashboard__card[data-dashboard-key="investment-points"] { grid-column: 1; min-height: 0; padding: 18px; }
  .mai-html-dashboard__card h3 { margin-bottom: 16px; }
  .mai-html-dashboard__card strong { font-size: clamp(25px, 9vw, 34px); }
  .mai-html-dashboard__card--metric { min-height: 0; }
  .mai-article-meta { gap: 7px 18px; font-size: 12px; }
  .mai-article-meta > * + *::before { left: -10px; }
  .mai-article-section-heading { margin-bottom: 28px; }
  .mai-article-snapshot { padding-top: 32px; padding-bottom: 52px; }
  .mai-article-snapshot-grid, .mai-article-market-grid { gap: 10px; }
  .mai-article-snapshot-grid .mai-dashboard-card, .mai-article-market-grid .mai-dashboard-card { min-height: 142px; padding: 16px; }
  .mai-article-snapshot-grid .mai-data-value, .mai-article-market-grid .mai-data-value { font-size: clamp(19px, 6vw, 27px); }
  .mai-article-body { padding-block: 48px; }
  .mai-article-content { font-size: 17px; }
  .mai-article-content :is(figure.mai-dashboard-image, figure[data-market-ai-dashboard], .mai-dashboard-image-frame:has(img.mai-dashboard-image), .mai-dashboard-image-frame:has(img[data-market-ai-dashboard])) { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; transform: none; }
  .mai-dashboard-image-trigger { top: 8px; right: 8px; width: 38px; min-height: 34px; padding-inline: 8px; font-size: 0; }
  .mai-dashboard-image-trigger::before { content: "⤢"; font-size: 18px; line-height: 1; }
  .mai-dashboard-lightbox { padding: 0; }
  .mai-dashboard-lightbox__toolbar { top: auto; bottom: max(8px, env(safe-area-inset-bottom)); width: calc(100% - 16px); max-width: 304px; grid-template-columns: 40px 48px 40px 40px 44px 40px; gap: 4px; padding: 6px; }
  .mai-dashboard-lightbox__toolbar { display: grid; }
  .mai-dashboard-lightbox__toolbar button, .mai-dashboard-lightbox__toolbar .mai-dashboard-lightbox__scale { width: 100%; min-width: 0; height: 44px; padding: 0 4px; font-size: 10px; }
  .mai-dashboard-lightbox__toolbar .mai-dashboard-lightbox__close { font-size: 22px; }
  .admin-bar .mai-dashboard-lightbox__toolbar { top: auto; }
  .mai-article-content h2 { margin-top: 2.2em; font-size: 27px; }
  .mai-article-content h3 { font-size: 22px; }
  .mai-article-content blockquote { padding: 18px; }
  .mai-article-summary-lead { font-size: 17px; }
  .mai-article-cta { padding-top: 48px; }
  .mai-article-cta > .mai-container { gap: 28px; }
  .mai-article-cta-grid { grid-template-columns: 1fr; }
  .mai-article-footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 48px 16px; }
  .mai-article-footer-grid > p { grid-column: auto; }
}

@media (max-width: 360px) {
  .mai-html-dashboard__card .mai-html-dashboard__index-row { grid-template-columns: minmax(0, 1fr) auto; }
  .mai-html-dashboard__index-change { grid-column: 2; }
  .mai-article-snapshot-grid .mai-dashboard-card, .mai-article-market-grid .mai-dashboard-card { min-height: 134px; padding: 13px; }
  .mai-article-snapshot-grid .mai-data-value, .mai-article-market-grid .mai-data-value { font-size: 20px; }
  .mai-article-snapshot-grid .mai-data-meta { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .mai-article-content { scroll-behavior: auto; }
  .mai-dashboard-lightbox { transition: none; }
  .mai-html-dashboard__live-dot { animation: none; }
}
