/* Daily research workspace: quiet surfaces, clear actions, readable data. */
:root[data-theme="light"]{--paper:#f5f6f8;--line:#dce1e8;--ink:#202b3c;--muted:#526176;--surface-tint:#eef2f7}
.skip-to-content{position:fixed;top:8px;left:12px;z-index:1000;padding:12px 20px;background:var(--white);color:var(--ink);border:2px solid var(--accent);transform:translateY(-160%)}
.skip-to-content:focus{transform:none}
:where(a,button,input,select,summary):focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.main>section{scroll-margin-top:24px;min-width:0}
.trading-hero{background:var(--white);border-radius:16px;border-left:4px solid var(--accent);padding:24px 28px}
.trading-hero h1{font-size:clamp(26px,3vw,36px);margin:8px 0 12px}
.trading-hero p{margin:8px 0}
.trading-card{border-radius:12px;box-shadow:none}
.trading-controls{padding:16px;background:var(--white);border:1px solid var(--line);border-radius:12px;gap:12px}
.trading-controls label{font-weight:600}
.trading-controls button,.trading-controls a{min-height:48px}
.trading-screen>h2{margin-top:24px}
.trading-screen>p[role="status"]{padding:12px 16px;border-left:3px solid var(--accent);background:var(--surface-tint);border-radius:0 8px 8px 0;overflow-wrap:anywhere}
.trading-screen>p[role="status"]:empty{display:none}
#morning-brief .morning-sections{gap:24px}
#morning-brief .morning-sections>section>h2{font-size:21px;padding-bottom:12px;border-bottom:2px solid var(--line)}
#morning-brief .morning-price-line{padding-left:0;margin-top:12px;gap:8px 12px}
#morning-brief .morning-evidence>summary{position:static;width:auto;justify-content:flex-start;gap:10px;margin-top:12px;border-top:1px solid var(--line);border-radius:0;font-size:14px;color:var(--muted)}
#morning-brief .morning-evidence>summary::after{content:'상세 근거와 시세 기준'}
#morning-brief .morning-candidate{padding:18px}
.trading-metrics strong,.trading-price,.morning-price-line{font-variant-numeric:tabular-nums}
@media(min-width:1100px){#morning-brief .morning-sections{grid-template-columns:repeat(2,minmax(0,1fr))}#morning-brief #opening-surges{grid-column:1/-1;order:1}}
@media(max-width:767px){.main,.research-ui .main{padding-left:16px;padding-right:16px}.topbar{gap:8px}.topbar-right{flex-wrap:wrap}.breadcrumb{flex-wrap:wrap}.trading-hero{padding:20px}.trading-controls{padding:12px}.trading-controls label{flex-basis:100%}.trading-controls button,.trading-controls>a{flex:1 1 100%}.bottom-nav{border-top:1px solid var(--line);box-shadow:0 -4px 20px #202b3c08}.bottom-nav a.active{background:var(--accent-soft);border-radius:8px}.bottom-nav a,.bottom-nav button{min-height:48px;line-height:1.4;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere}.brand-name small{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Price hierarchy stays readable with large text and long names. */
#morning-brief .morning-price-line{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0 0}
.morning-price-line>div{min-width:0}
.morning-price-line dt{font-size:13px;color:var(--muted)}
.morning-price-line dd{margin:4px 0 0;font-size:clamp(20px,3vw,26px);font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.morning-price-line.morning-up>div:last-child dd{color:#b42333}
.morning-price-line.morning-down>div:last-child dd{color:#175bb4}
#morning-brief .morning-change{font-size:22px;line-height:1.4}
.morning-market-light[data-color=unknown]{background:var(--muted)}
:root[data-theme=dark] .morning-price-line.morning-up>div:last-child dd,:root[data-theme=dark] #morning-brief .morning-change{color:#ffacb5}
:root[data-theme=dark] .morning-price-line.morning-down>div:last-child dd,:root[data-theme=dark] #morning-brief .morning-down .morning-change{color:#a5c8ff}
@media(max-width:359px){#morning-brief .morning-price-line{grid-template-columns:1fr}}

/* Compact controls and evidence overlay keep the candidate list short. */
#morning-refresh{width:44px;height:44px;border:1px solid #cdd2da;border-radius:12px;color:#465164;background:#e1e4e9}
#morning-refresh svg{width:20px;height:20px}
#morning-refresh:hover{background:#d5d9e0;color:#303b4c}
#morning-refresh:active{background:#c9ced7}
.morning-title-row{justify-content:space-between;gap:16px}
.morning-title-row h1{min-width:0}
.morning-name{display:flex;align-items:center;gap:4px;flex:1 1 140px;min-width:0}
#morning-brief .morning-name h3{flex:0 1 auto;min-width:0}
.morning-info{display:inline-flex;justify-content:center;align-items:center;width:44px;height:44px;flex-shrink:0;border:0;background:transparent;color:var(--accent-dark);font-size:19px;cursor:pointer;border-radius:8px}
.morning-info:hover{background:var(--accent-soft)}
.morning-price-line>div:last-child{text-align:right}
.morning-candidate-heading>.morning-change{margin-left:auto;text-align:right}
.morning-panel-open{overflow:hidden}
.morning-evidence-panel{box-sizing:border-box;width:min(600px,calc(100% - 32px));max-height:85dvh;margin:auto;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--white);color:var(--ink);overscroll-behavior:contain;overflow:auto}
.morning-evidence-panel::backdrop{background:#141c2e80}
.morning-evidence-panel>header{display:flex;align-items:start;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding-bottom:16px}
.morning-evidence-panel h2{margin:0;font-size:20px;min-width:0;overflow-wrap:anywhere}
.morning-evidence-panel header button{flex-shrink:0}
.morning-evidence-panel p{line-height:1.8;overflow-wrap:anywhere}
.morning-evidence-panel a{display:inline-flex;align-items:center;min-height:44px;margin-right:16px}
:root[data-theme=dark] #morning-refresh{color:#edf0f5;background:#3d424c;border-color:#666d79}
:root[data-theme=dark] #morning-refresh:hover{background:#4b515c}
@media(max-width:767px){.morning-evidence-panel{margin:auto 0 0;width:100%;max-width:none;max-height:85dvh;padding:20px 20px calc(20px + env(safe-area-inset-bottom,0px));border-radius:20px 20px 0 0}}
/* Keep the information button hit area without a colored ring or underline. */
#morning-brief .morning-info:focus-visible{outline-color:transparent;text-decoration:none}
@media(forced-colors:active){#morning-brief .morning-info:focus-visible{outline-color:Highlight}}

#morning-refresh:disabled{opacity:1;cursor:wait}
#morning-refresh[aria-busy=true] svg{animation:morning-refresh-spin 1.2s linear infinite}
@keyframes morning-refresh-spin{to{transform:rotate(360deg)}}
/* Keep the shared header available when a route anchor scrolls into view. */
.topbar{position:sticky;top:0;z-index:60;background:var(--paper)}
.main>section{scroll-margin-top:110px}
