/* ASFar Strategy tab — uses the app's own colour variables so light/dark themes match */
.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}
.asx{padding:16px 16px 24px;display:flex;flex-direction:column;gap:12px;color:rgb(var(--ink))}
.asx-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.asx-title{font-family:IBM Plex Sans Condensed,IBM Plex Sans,system-ui,sans-serif;font-size:1.6rem;font-weight:700;letter-spacing:-.02em;margin:0}
.asx-tag{font-size:12px;color:rgb(var(--brass))}
.asx-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.asx-tabs button{min-height:40px;padding:0 4px;white-space:nowrap;border-radius:999px;border:1px solid rgb(var(--line));background:rgb(var(--panel));color:rgb(var(--muted));font-size:13px;font-weight:500}
.asx-tabs button.on{background:rgb(var(--brass));border-color:rgb(var(--brass));color:#fff}
.asx-body{display:flex;flex-direction:column;gap:12px}
.asx-search{display:flex;gap:8px}
.asx-search .input{flex:1}
.asx-chips{display:flex;flex-wrap:wrap;gap:6px}
.asx-chip{min-height:36px;padding:0 12px;border-radius:8px;border:1px solid rgb(var(--line));background:rgb(var(--panel));font-weight:600;font-size:13px;color:rgb(var(--ink))}
.asx-chip.on{border-color:rgb(var(--brass));color:rgb(var(--brass))}
.asx-card,.asx-pad,.asx-empty,.asx-alerts{padding:16px;display:flex;flex-direction:column;gap:10px}
.asx-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.asx-sym{font-family:IBM Plex Sans Condensed,IBM Plex Sans,sans-serif;font-size:1.3rem;font-weight:700}
.asx-name{font-size:13px}
.asx-price{font-weight:600;font-variant-numeric:tabular-nums}
.asx-verdict{display:flex;flex-direction:column;gap:2px;border-radius:10px;padding:12px 14px;border:1px solid currentColor}
.asx-v{font-family:IBM Plex Sans Condensed,IBM Plex Sans,sans-serif;font-size:1.7rem;font-weight:700;line-height:1.1}
.asx-v small{font-size:1.1rem;font-weight:600}
.asx-vh{font-size:13px;opacity:.9}
.asx-buy{color:rgb(var(--buy))}.asx-wait{color:rgb(var(--wait))}.asx-avoid{color:rgb(var(--avoid))}
.asx-brass{color:rgb(var(--brass))}.asx-muted{color:rgb(var(--muted))}
.asx-headline{margin:0;font-size:15px;line-height:1.45}
.asx-meters{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.asx-meter-top{display:flex;justify-content:space-between;font-size:12px;color:rgb(var(--muted))}
.asx-meter-top b{color:rgb(var(--ink));font-variant-numeric:tabular-nums}
.asx-bar{height:6px;border-radius:3px;background:rgb(var(--line));overflow:hidden;margin-top:4px}
.asx-bar i{display:block;height:100%;background:rgb(var(--brass));border-radius:3px}
.asx-small{font-size:12.5px;line-height:1.45;margin:0}
.asx-list ul,.asx-alerts ul,.asx-rules ol{margin:4px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:4px;font-size:14px;line-height:1.4}
.asx-rules ol{gap:8px}
.asx-bull li::marker{color:rgb(var(--buy))}.asx-bear li::marker{color:rgb(var(--avoid))}.asx-watch li::marker{color:rgb(var(--wait))}
.asx-miss{opacity:.8}
.asx-alerts{border-color:rgb(var(--wait))}
.asx-extras{padding:14px 16px}
.asx-extras summary{cursor:pointer;list-style:none}
.asx-extras summary::after{content:' ▾';color:rgb(var(--muted));font-size:.9em}
.asx-extras[open] summary::after{content:' ▴'}
.asx-form{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.asx-form label{display:flex;flex-direction:column;gap:4px}
.asx-form .input{padding:0 10px}
.asx-grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.asx-check{flex-direction:row!important;align-items:center;gap:8px!important;min-height:36px;font-size:14px}
.asx-check input{width:20px;height:20px;accent-color:rgb(var(--brass))}
.asx-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.asx-events{margin:0;padding-left:18px;font-size:13px}
.asx-x{margin-left:6px;color:rgb(var(--avoid));min-width:28px;min-height:28px}
.asx-rows{display:flex;flex-direction:column;overflow:hidden}
.asx-row-btn{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"s v" "h h";gap:2px 10px;text-align:left;padding:12px 14px;border-top:1px solid rgb(var(--line));background:none;color:rgb(var(--ink))}
.asx-row-btn:first-child{border-top:0}
.asx-rs{grid-area:s;font-weight:700}
.asx-rs em{font-style:normal;color:rgb(var(--wait))}
.asx-rv{grid-area:v;justify-self:end;font-weight:700;font-size:14px}
.asx-rh{grid-area:h;font-size:12.5px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.asx-loading{color:rgb(var(--muted));font-size:14px}
.asx-toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(80px + env(safe-area-inset-bottom,0px));z-index:40;max-width:min(92vw,520px);background:rgb(var(--ink));color:rgb(var(--base));padding:10px 14px;border-radius:10px;font-size:14px;box-shadow:0 6px 24px rgba(0,0,0,.25)}
.asx-toast.bad{background:rgb(var(--avoid));color:#fff}
.asx a.btn-ghost{text-decoration:none;border:1px solid rgb(var(--line))}
@media (max-width:360px){.asx-grid2{grid-template-columns:1fr}.asx-meters{grid-template-columns:1fr}}
/* upload holdings */
#asfar-import-root{padding:16px 16px 0}
.asx-imp{padding:16px;display:flex;flex-direction:column;gap:10px;color:rgb(var(--ink))}
.asx-imp-head{display:flex;gap:12px;align-items:flex-start}
.asx-imp-icon{flex:0 0 36px;height:36px;border-radius:10px;display:grid;place-items:center;background:rgb(var(--brass)/.15);color:rgb(var(--brass));font-weight:700}
.asx-imp .h2{margin:0}
.asx-file{display:flex;align-items:center;justify-content:center;cursor:pointer}
.asx-imp-list{display:flex;flex-direction:column;border:1px solid rgb(var(--line));border-radius:10px;overflow:hidden}
.asx-imp-row{display:flex;gap:8px;padding:10px 12px;border-top:1px solid rgb(var(--line))}
.asx-imp-row:first-child{border-top:0}
.asx-imp-row.miss{background:rgb(var(--wait)/.08)}
.asx-imp-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;font-size:14px}
.asx-imp-file{font-weight:600;word-break:break-word}
.asx-imp-file span{font-weight:400;font-size:12.5px}
.asx-imp-match{font-size:13px;font-weight:600}
.asx-imp-match span{font-weight:400}
.asx-imp-fix{display:flex;gap:6px}
.asx-imp-fix .input{flex:1;min-width:0;padding:0 10px}
.asx-link{color:rgb(var(--brass));font-weight:600;font-size:13px;background:none;border:0;padding:4px 2px;min-height:28px}
/* action plan */
.asx-plan{padding:16px;display:flex;flex-direction:column;gap:12px;border-color:rgb(var(--brass)/.5)}
.asx-plan .asx-top{align-items:center}
.asx-plan .h2{margin:0}
.asx-plan-sec ul{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.asx-plan-title{font-weight:700;font-size:14px}
.asx-plan-item{display:flex;flex-wrap:wrap;gap:2px 8px;width:100%;text-align:left;background:rgb(var(--base)/.5);border:1px solid rgb(var(--line));border-radius:10px;padding:10px 12px;color:rgb(var(--ink));font-size:14px}
.asx-plan-why{flex-basis:100%;font-size:12.5px;line-height:1.4;color:rgb(var(--muted))}
/* ---------- Investment Timeline ---------- */
.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}
nav[aria-label="Main"] .grid-cols-7 button{font-size:10px;letter-spacing:-.01em}
.asx-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.asx-tile{background:rgb(var(--panel));border:1px solid rgb(var(--line));border-radius:10px;padding:10px 8px;display:flex;flex-direction:column;gap:2px;min-height:68px}
.asx-tile b{font-size:1.35rem;font-variant-numeric:tabular-nums;line-height:1.1}
.asx-tile span{font-size:11.5px;color:rgb(var(--muted));line-height:1.25}
.asx-kvs{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}
.asx-kv{display:flex;flex-direction:column;gap:1px;font-size:13.5px}
.asx-kv span{font-size:11.5px;color:rgb(var(--muted))}
.asx-thesis p{margin:2px 0 0;font-size:14px;line-height:1.45}
.asx-tabs3{grid-template-columns:repeat(3,1fr)!important}
.asx-ranges{display:flex;gap:4px;margin:8px 0 4px;flex-wrap:wrap}
.asx-ranges button{flex:1;min-width:38px;min-height:32px;border-radius:8px;border:1px solid rgb(var(--line));background:none;color:rgb(var(--muted));font-size:12px;font-weight:600}
.asx-ranges button.on{border-color:rgb(var(--brass));color:rgb(var(--brass))}
.asx-chart{width:100%;height:auto;display:block;overflow:visible}
.asx-ax{font-size:9.5px;fill:rgb(var(--muted));font-family:inherit}
.asx-grid{stroke:rgb(var(--line));stroke-width:.6}
.asx-mk{cursor:pointer}
.asx-legend{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:11.5px;color:rgb(var(--muted));margin:6px 0}
.asx-legend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px;vertical-align:-1px}
.asx-ev{padding:0;overflow:hidden}
.asx-ev-head{display:flex;gap:10px;width:100%;text-align:left;padding:12px 14px;background:none;border:0;color:rgb(var(--ink))}
.asx-ev-dot{flex:0 0 12px;height:12px;border-radius:50%;margin-top:4px}
.asx-ev-main{display:flex;flex-direction:column;gap:2px;font-size:14px;min-width:0}
.asx-ev-body{padding:0 14px 14px;display:flex;flex-direction:column;gap:8px;font-size:14px}
.asx-ev-body p{margin:0;line-height:1.45}
.asx-ev.open{border-color:rgb(var(--brass)/.6)}
.asx-just{border:1px solid rgb(var(--line));border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:6px;background:rgb(var(--base)/.4)}
.asx-just p,.asx-just ul{margin:0}
.asx-just ul{padding-left:18px}
.asx-find{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.asx-f{display:grid;grid-template-columns:1fr auto;gap:0 8px;padding:6px 8px;border-radius:8px;border-left:3px solid rgb(var(--line));font-size:13px;background:rgb(var(--panel))}
.asx-f-l{color:rgb(var(--muted))}
.asx-f b{text-align:right}
.asx-f-s{grid-column:1/-1;font-size:11px;color:rgb(var(--muted))}
.asx-f-good{border-left-color:rgb(var(--buy))}.asx-f-bad{border-left-color:rgb(var(--avoid))}.asx-f-neutral{border-left-color:rgb(var(--wait))}.asx-f-missing{border-left-style:dashed;opacity:.85}
.asx-ta{min-height:64px;padding:8px 10px;resize:vertical;line-height:1.4}
.asx-pct{width:96px;min-height:36px;padding:0 8px}
.asx-audit{margin:4px 0 0;padding-left:18px;font-size:12px;color:rgb(var(--muted));display:flex;flex-direction:column;gap:2px}
.asx-sync .asx-top{align-items:flex-start}
