:root {
 --ryko-radius:12px;--ryko-small-radius:8px;--ryko-gap:12px;
 --ryko-edge:#ccd9e7;--ryko-surface:#f4f8fc;--ryko-accent:#1859ae;--ryko-focus:#1472da;
}
:root[data-theme=dark] {
 --ryko-edge:#29435f;--ryko-surface:#0e2036;--ryko-accent:#75bcff;--ryko-focus:#82d7ff;
}
main .panel, #universal-dialog {border-radius:var(--ryko-radius);border-color:var(--ryko-edge)}
main button,main select,main input {border-radius:var(--ryko-small-radius)}
main :is(button,a,input,select,summary):focus-visible {outline:2px solid var(--ryko-focus);outline-offset:2px}
main button[aria-pressed=true],main button[aria-current=page] {border-color:var(--ryko-focus)}
#home-shortcuts .ux-shortcut {border-radius:var(--ryko-small-radius)}
#home-shortcuts .ux-shortcut:hover {border-color:var(--ryko-focus)}
#home-lower {align-items:start}
#market-overview {min-width:0}
#home-geography {display:grid;gap:var(--ryko-gap);padding:.55rem 0}
.ryko-regions,.ryko-places {display:flex;flex-wrap:wrap;gap:.35rem;min-width:0}
.ryko-places button {min-height:36px;padding:.27rem .55rem;text-align:left;max-width:100%}
.ryko-places button span {display:block;font-size:.69rem;opacity:.85}
.ryko-loading-block {min-height:90px;border-radius:var(--ryko-radius);border:1px solid var(--ryko-edge);
 background:linear-gradient(115deg,var(--ryko-surface) 40%,transparent 72%);padding:12px}
#premium-analysis-assets {min-width:0;margin:.35rem 0;border:1px solid var(--ryko-edge);border-radius:var(--ryko-radius);padding:.32rem .55rem}
#premium-analysis-assets summary {cursor:pointer;font-weight:600}
.ryko-asset-grid {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.35rem;margin-top:.35rem}
.ryko-asset-card {min-width:0;border:1px solid var(--ryko-edge);border-radius:var(--ryko-small-radius);padding:.38rem;display:grid;gap:.24rem}
.ryko-asset-card select,.ryko-asset-card button {width:100%;min-width:0;font-size:.75rem}
.ryko-asset-card p,.ryko-asset-card small {margin:0;font-size:.7rem;overflow-wrap:anywhere}
.ryko-asset-card svg {width:100%;height:22px;color:var(--ryko-accent)}
.ryko-tool-hint {display:block;font-size:.64rem;font-weight:400;opacity:.85}
#layout-instrument-card [id^=instrument-tab-] {text-align:left;min-height:34px}
.login-page main {position:relative;isolation:isolate;min-height:100dvh;box-sizing:border-box;display:grid;align-content:center}
.login-page main::before {content:"";inset:0;position:absolute;z-index:-1;pointer-events:none;background:
 linear-gradient(128deg, transparent 46%, color-mix(in srgb,var(--ryko-accent) 12%,transparent) 46.2%,transparent 46.5%),
 repeating-linear-gradient(0deg,transparent 0 31px,color-mix(in srgb,var(--ryko-edge) 28%,transparent) 32px 33px);
 mask-image:linear-gradient(110deg,transparent 20%,black)}
.login-page .sign-in {width:min(100%,440px);margin-inline:auto;padding:clamp(1rem,3vw,2rem);box-sizing:border-box;box-shadow:0 14px 45px #06162924}
@media (max-width:620px) and (orientation:portrait) {
 #home-shortcuts {grid-template-columns:repeat(2,minmax(0,1fr))}
 #home-shortcuts .ux-shortcut {min-height:44px}
 .ryko-asset-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-height:560px) and (orientation:landscape) {
 #home-shortcuts {grid-template-columns:repeat(3,minmax(0,1fr))}
 #premium-analysis-assets:not([open]) {font-size:.68rem}
 #premium-analysis-assets[open] .ryko-asset-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
 .login-page main {align-content:start}
}
@media (prefers-reduced-motion:no-preference) {
 main button {transition:border-color 120ms ease,background-color 120ms ease}
}
#home-lower {grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}
#home-geography {margin:.55rem 0;border:1px solid var(--ryko-edge);border-radius:var(--ryko-radius);background:var(--ryko-surface);padding:.7rem}
@media (max-width:860px) {#home-lower {grid-template-columns:minmax(0,1fr)}}
.ryko-asset-card div,.ryko-asset-card svg {min-width:0}
/* The artwork is a separate grid item so the shortcut row cannot cover the logo. */
:root[data-theme=dark] #home-original {
 mask-image:none;object-fit:contain;object-position:center;
 height:auto;width:min(100%,710px);max-height:100%;grid-area:1 / 1;
}
@media (max-width:620px) and (orientation:portrait) {
 #ux-home #home-hero {
  height:auto;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;
  padding:38px 10px 12px;gap:6px;
 }
 #ux-home #home-original,#ux-home #home-light-identity {
  grid-area:1 / 1;max-height:210px;min-height:0;
 }
 #ux-home #home-shortcuts {grid-area:2 / 1;width:100%;margin:0;box-sizing:border-box}
}
@media (max-height:560px) and (orientation:landscape) {
 #ux-home #home-hero {height:auto;min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto}
 #ux-home #home-shortcuts {grid-area:1 / 2}
 #ux-home #home-original {max-height:170px}
}
:root[data-theme=dark] #ux-home #home-hero #home-original {
 position:relative;inset:auto;z-index:3;display:block;place-self:center;
 width:auto;max-width:100%;height:clamp(145px,18vw,255px);max-height:none;
 object-fit:contain;object-position:center;mask:none;clip-path:none;
}
@media (max-width:620px) and (orientation:portrait) {
 :root[data-theme=dark] #ux-home #home-hero #home-original {height:185px}
}
@media (max-height:560px) and (orientation:landscape) {
 :root[data-theme=dark] #ux-home #home-hero #home-original {height:150px}
}
/* Independent official lockup and fluid light field. */
#home-dark-identity {display:none}
:root[data-theme=dark] #ux-home #home-dark-identity {
 display:grid;justify-items:center;grid-area:1 / 1;min-width:0;z-index:1;position:relative;
}
:root[data-theme=dark] #ux-home #home-hero #home-original {
 position:static;display:block;width:min(100%,420px);height:auto;max-height:200px;mask:none;mix-blend-mode:screen;
}
#ux-home #home-hero::before {
 inset:38% -12% 0;width:124%;height:auto;
 background:repeating-linear-gradient(173deg,transparent 0 24px,#2ab9ff36 25px,transparent 27px 36px),
 radial-gradient(ellipse at 32% 70%,#0788ef48,transparent 64%);
 mask-image:linear-gradient(transparent,#000 52%,transparent);
}
#ux-home #home-light-identity {position:relative;z-index:1}
.ryko-home-beacon {position:absolute;bottom:4%;left:50%;width:min(26%,110px);height:2px;transform:translateX(-50%);border-radius:50%;background:#56d9ff;box-shadow:0 0 14px 2px #0598ef88;pointer-events:none}
#home-light-identity .ryko-home-beacon {bottom:-7%}
@media(max-width:620px) and (orientation:portrait){
 :root[data-theme=dark] #ux-home #home-hero #home-original {width:min(100%,325px);max-height:170px}
}
@media(max-height:560px) and (orientation:landscape){
 :root[data-theme=dark] #ux-home #home-hero #home-original {max-height:125px}
}
body.login-page {background-color:var(--ryko-surface)}
.login-page main::before {pointer-events:none}
