/* AURIC Adaptive UI — isolated concept stylesheet; does not touch the live dashboard. */
:root {
  --a-bg:#090e0d;--a-nav:#0d1513;--a-surface:#121c19;--a-raised:#182621;
  --a-border:#263d33;--a-text:#e8f5ed;--a-muted:#97b3a2;--a-soft:#718e7d;
  --a-accent:#67ed9e;--a-accent-bg:#183c2a;--a-warn:#f3c775;--a-loss:#ff8590;
  --a-radius:17px;--a-shadow:0 18px 52px rgba(0,0,0,.14);
  color-scheme:dark;
}
*{box-sizing:border-box}
html{min-width:320px;background:var(--a-bg)}
body{margin:0;color:var(--a-text);background:var(--a-bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;line-height:1.55}
button,select{font:inherit}
button{cursor:pointer}
button:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--a-accent);outline-offset:3px}
.a-shell{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh}
.a-sidebar{background:linear-gradient(180deg,#0e1915,#0b1311);border-right:1px solid var(--a-border);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;padding:27px 17px;z-index:4}
.a-brand{display:flex;align-items:center;gap:11px;padding:0 8px 26px}
.a-mark{width:40px;height:40px;display:grid;place-items:center;font-size:22px;font-weight:900;border:1px solid #4a9463;border-radius:12px;color:var(--a-accent);background:#193a26}
.a-brand-title{font-size:18px;font-weight:900;letter-spacing:.16em;line-height:1.1}
.a-brand-caption{font-size:10px;letter-spacing:.12em;color:var(--a-muted)}
.a-navtitle{font-size:10px;text-transform:uppercase;letter-spacing:.17em;color:var(--a-soft);padding:10px 12px 8px}
.a-nav{display:grid;gap:5px}
.a-navbutton{border:1px solid transparent;background:transparent;color:#a8c1b1;text-align:left;border-radius:10px;padding:11px 12px;display:flex;align-items:center;gap:12px;min-height:45px}
.a-navbutton svg{width:17px;height:17px;flex:none}
.a-navbutton:hover{background:#19271f;color:#edfdf0}
.a-navbutton[aria-current="page"]{background:#1c3b28;border-color:#356a47;color:#d6ffdf}
.a-navbutton[aria-current="page"] svg{color:var(--a-accent)}
.a-sidebar-foot{margin-top:auto;padding:14px;border:1px solid #294a35;background:#132a1c;border-radius:13px}
.a-sidebar-foot strong{display:block;font-size:12px}
.a-sidebar-foot p{font-size:11px;color:var(--a-muted);margin:5px 0 0}
.a-workspace{min-width:0}
.a-topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px clamp(17px,3.2vw,45px);border-bottom:1px solid var(--a-border);background:#0c1411ec;position:sticky;top:0;z-index:3;backdrop-filter:blur(10px)}
.a-topbrand{font-weight:850;letter-spacing:.01em}
.a-topbrand span{font-weight:500;color:var(--a-muted)}
.a-topstatus{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.a-tag{display:inline-flex;align-items:center;gap:7px;border:1px solid #36513f;background:#17261c;border-radius:99px;padding:5px 10px;font-size:11px;line-height:1.3;color:#c2dec9;white-space:nowrap}
.a-tag--good{border-color:#287444;color:#a5f1bc;background:#11301f}
.a-tag--warn{border-color:#735b31;color:#ffe2a7;background:#322919}
.a-tag--muted{border-color:#41504a;color:#b1c6ba;background:#202b25}
.a-dot{width:7px;height:7px;border-radius:99px;background:currentColor;display:inline-block}
.a-content{padding:30px clamp(17px,3.2vw,45px) 65px;max-width:1650px;margin:0 auto}
.a-preview{background:#282418;border:1px solid #756443;color:#ffe4ad;padding:10px 14px;border-radius:12px;margin-bottom:23px;font-size:12px}
.a-heading{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:16px;margin-bottom:23px}
.a-eyebrow{font-size:10px;font-weight:750;color:var(--a-accent);letter-spacing:.19em;text-transform:uppercase;margin:0 0 6px}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(27px,3vw,41px);line-height:1.12;letter-spacing:-.035em;margin-bottom:7px}
.a-lead{color:var(--a-muted);margin:0;max-width:670px}
.a-select{background:#192820;border:1px solid #385343;color:#e1f2e5;border-radius:10px;padding:10px 12px;min-height:43px}
.a-grid{display:grid;gap:16px}
.a-kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:22px}
.a-card{background:var(--a-surface);border:1px solid var(--a-border);border-radius:var(--a-radius);box-shadow:var(--a-shadow);min-width:0}
.a-kpi{padding:20px}
.a-kpi-label{font-size:12px;color:var(--a-muted);display:flex;justify-content:space-between;gap:8px}
.a-kpi strong{display:block;font-size:clamp(23px,2.1vw,32px);letter-spacing:-.04em;font-variant-numeric:tabular-nums;margin:10px 0 4px}
.a-kpi small{color:var(--a-soft);font-size:11px}
.a-section{margin-top:22px}
.a-section-head{display:flex;gap:12px;align-items:baseline;justify-content:space-between;flex-wrap:wrap;margin-bottom:12px}
.a-section-head h2{font-size:17px;letter-spacing:-.025em;margin:0}
.a-section-head p{font-size:12px;color:var(--a-muted);margin:0}
.a-markets{grid-template-columns:repeat(5,minmax(0,1fr))}
.a-market{padding:16px;text-align:left;color:inherit;display:block;transition:transform .15s,border-color .15s;background:var(--a-surface)}
.a-market:hover{transform:translateY(-2px);border-color:#478a59}
.a-market[aria-pressed="true"]{border-color:var(--a-accent);box-shadow:inset 0 0 0 1px #5cda91}
.a-market-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.a-market-head strong{font-size:15px}
.a-market-caption{color:var(--a-soft);font-size:11px;margin:12px 0 5px}
.a-market-state{display:block;font-size:14px;font-weight:700}
.a-market-foot{display:flex;justify-content:space-between;color:var(--a-muted);font-size:11px;margin-top:14px;gap:8px}
.a-main-grid{grid-template-columns:minmax(0,1.45fr) minmax(285px,1fr);margin-top:22px;align-items:start}
.a-panel{padding:22px}
.a-panel h2{font-size:18px;letter-spacing:-.02em;margin:0 0 4px}
.a-panel-sub{font-size:12px;color:var(--a-muted);margin-bottom:19px}
.a-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:15px}
.a-list{display:grid;gap:10px}
.a-opportunity{padding:13px 14px;border:1px solid #2a4034;border-radius:12px;background:#16231d;display:flex;align-items:center;gap:12px;text-align:left;color:inherit;width:100%;transition:border-color .15s}
.a-opportunity:hover,.a-opportunity[aria-pressed="true"]{border-color:#5bbf83;background:#1a3022}
.a-op-mark{width:37px;height:37px;border-radius:10px;display:grid;place-items:center;background:#254831;color:#a8f7c1;font-weight:850;flex:none}
.a-op-info{min-width:0;flex:1}
.a-op-info strong{display:block;font-size:13px}
.a-op-info span{font-size:11px;color:var(--a-muted);display:block;white-space:normal}
.a-op-side{display:flex;flex-direction:column;align-items:flex-end;gap:5px}
.a-empty{padding:28px;text-align:center;color:var(--a-muted);border:1px dashed var(--a-border);border-radius:13px}
.a-inspector-status{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}
.a-chart{background:#0c1512;border:1px solid #264231;border-radius:13px;overflow:hidden;margin:15px 0}
.a-chart svg{width:100%;height:auto;display:block}
.a-field{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid #25372d;font-size:12px}
.a-field:last-child{border-bottom:0}
.a-field span{color:var(--a-muted)}
.a-field strong{text-align:right}
.a-notes{padding:12px 13px;border:1px solid #3c513f;border-radius:11px;background:#17251c;color:#bdd3c3;font-size:12px;margin-top:14px}
.a-notes strong{color:var(--a-text)}
.a-footnote{color:var(--a-soft);font-size:11px;margin-top:22px}
.a-hidden{display:none!important}
.a-bottomnav{display:none}
.a-table{width:100%;border-collapse:collapse;font-size:12px}
.a-table th{text-align:left;color:var(--a-soft);font-weight:650}
.a-table td,.a-table th{padding:13px 10px;border-bottom:1px solid var(--a-border)}
.a-table td:last-child,.a-table th:last-child{text-align:right}
.a-table-wrap{overflow-x:auto}
.a-row-muted{color:var(--a-muted)}
@media(max-width:1250px){.a-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.a-markets{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1050px){.a-shell{grid-template-columns:77px minmax(0,1fr)}.a-sidebar{padding:25px 11px}.a-brand{padding:0 7px 24px}.a-brand-title,.a-brand-caption,.a-navtitle,.a-navbutton .a-navtext,.a-sidebar-foot{display:none}.a-navbutton{justify-content:center;padding:11px}.a-navbutton svg{width:21px;height:21px}.a-main-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:670px){
  .a-shell{display:block}
  .a-sidebar{display:none}
  .a-topbar{padding:13px 15px;align-items:flex-start;flex-wrap:wrap;position:static}
  .a-topstatus{justify-content:flex-start}
  .a-content{padding:22px 14px 90px}
  .a-kpis{gap:9px}.a-kpi{padding:15px}.a-kpi strong{font-size:23px}
  .a-markets{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .a-market{padding:13px}.a-panel{padding:16px}.a-main-grid{gap:12px}
  .a-bottomnav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:5;background:#0c1713f5;border-top:1px solid #36533e;padding:7px 8px max(8px,env(safe-area-inset-bottom));justify-content:space-around;backdrop-filter:blur(12px)}
  .a-bottomnav button{min-width:65px;border:none;border-radius:10px;background:transparent;color:#a6c2ad;padding:7px;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px}
  .a-bottomnav button[aria-current="page"]{color:#8cf6b1;background:#1d3928}
  .a-bottomnav svg{width:19px;height:19px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}


/* Adaptive actual candle chart: keep chart labels readable on touch devices. */
.a-chart{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#42694f #12211a}
#a-live-candles{min-width:590px;max-width:none;display:block}
#a-chart-caption{margin-top:-5px;margin-bottom:16px;line-height:1.6}
#inspector-fields .a-field strong{min-width:0;overflow-wrap:anywhere}
.a-opportunity .a-op-side{max-width:48%;min-width:0}
.a-opportunity .a-op-side span{white-space:normal;text-align:right}
@media(max-width:670px){
  #a-live-candles{min-width:630px}
  .a-opportunity{gap:8px;padding:12px}
  .a-op-mark{width:32px;height:32px}
  .a-op-side{font-size:11px}
}
