* { box-sizing: border-box; }
body { margin: 0; background: #f8f9fa; color: #263531; font: 16px/1.55 system-ui, sans-serif; }
.wrap { width: min(100% - 2rem, 75rem); margin-inline: auto; }
.site-header { background: white; border-bottom: 1px solid #dbe6e3; }
.header-inner, .panel-header { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.header-inner { min-height: 4.25rem; }
a { color: #00635b; text-underline-offset: .2em; font-weight: 650; }
.brand { display: flex; align-items: center; gap: .55rem; color: #263531; text-decoration: none; font-size: 1.2rem; }
.intro { margin-block: clamp(1.5rem, 4vw, 3rem) 1.25rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.045em; }
h2 { font-size: 1.1rem; }
.intro p { margin-top: .6rem; max-width: 46rem; color: #4b655e; }
.workspace { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(0, 1fr); gap: .9rem; align-items: start; }
.panel { min-width: 0; background: white; border: 1px solid #dbe6e3; border-radius: .85rem; }
.panel-header { padding: .65rem .85rem; }
.panel-header span, .note, #quote { color: #526963; font-size: .85rem; }
#chart { height: clamp(16rem, 38vw, 25rem); border-block: 1px solid #dbe6e3; }
.controls, .order-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.controls { padding: .65rem .85rem .35rem; }
button { min-height: 2.65rem; padding: .45rem .75rem; border: 1px solid #bcd2cd; border-radius: .48rem; color: #005951; background: white; font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer; }
button.primary { background: #00635b; border-color: #00635b; color: white; }
button:hover:not(:disabled) { box-shadow: inset 0 0 0 2px #74b5a8; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid #00635b; outline-offset: 3px; }
#candle-count { margin-left: auto; font-size: .85rem; color: #526963; }
#quote { padding: 0 .85rem .65rem; }
.account-panel, .fills { padding: .85rem; }
.account-panel dl { margin: .55rem 0 .85rem; }
.account-panel dl div { display: flex; justify-content: space-between; gap: .7rem; border-bottom: 1px solid #e8f0ee; padding-block: .38rem; font-size: .91rem; }
.account-panel dd { margin: 0; text-align: right; font-weight: 650; }
.note { margin-top: .65rem; }
#status { min-height: 2.75rem; margin-top: .55rem; color: #005951; font-weight: 620; font-size: .88rem; }
.fills { margin-block: .9rem 2rem; }
.fills ol { margin-block: .4rem; }
.fills li { margin-bottom: .25rem; }
#empty-fills { color: #526963; }
@media (max-width: 45rem) { .workspace { grid-template-columns: 1fr; } }
