:root{
  --rio-font-sans:
    "Styrene B",
    "Styrene A",
    "Styrene",
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;

  --bg:#f7f6ef;
  --bg-2:#efeee6;
  --panel:#ffffff;
  --panel-2:#fbfaf5;
  --ink:#16201b;
  --muted:#66746d;
  --line:#dfded4;
  --line-strong:#cfcbbf;
  --sidebar:#06190f;
  --sidebar-2:#0d2418;
  --sidebar-text:#f5f0db;
  --gold:#b59a52;
  --gold-soft:#efe5c4;
  --green:#0d5c3a;
  --positive:#157347;
  --negative:#b33a3a;
  --shadow:0 18px 55px rgba(29,35,31,.10);
  --shadow-soft:0 10px 28px rgba(29,35,31,.07);
  --radius-lg:24px;
  --radius-md:16px;
  --radius-sm:12px;
}

*{box-sizing:border-box}
html{
  font-family:var(--rio-font-sans);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
body{
  margin:0;
  min-height:100vh;
  font-family:var(--rio-font-sans)!important;
  font-size:14px;
  line-height:1.52;
  color:var(--ink);
  background:
    radial-gradient(circle at 22% 0%, rgba(216,199,145,.24), transparent 34%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
}
a{color:inherit}
input,button,select,textarea,table{
  font-family:var(--rio-font-sans)!important;
  font-feature-settings:"kern","liga","calt";
}

.app-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:284px 1fr;
}
.sidebar{
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
  padding:22px 18px;
  color:var(--sidebar-text);
  background:
    radial-gradient(circle at 30% 0%, rgba(214,194,115,.14), transparent 28%),
    linear-gradient(180deg, var(--sidebar), #031007);
  border-right:1px solid rgba(255,255,255,.08);
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 28px;
}
.brand-mark{
  width:42px;
  height:42px;
  border-radius:13px;
  display:grid;
  place-items:center;
  font-weight:850;
  letter-spacing:-.04em;
  color:#07140c;
  background:linear-gradient(135deg,#fff1af,#d0b75f);
  box-shadow:0 10px 30px rgba(0,0,0,.22);
}
.brand strong{
  display:block;
  font-size:16px;
  line-height:1.1;
  letter-spacing:-.04em;
}
.brand span{
  display:block;
  margin-top:2px;
  color:rgba(245,240,219,.72);
  font-size:12px;
}

.nav{
  display:grid;
  gap:8px;
}
.nav a{
  display:block;
  padding:12px 13px;
  border-radius:13px;
  text-decoration:none;
  color:rgba(255,255,255,.92);
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.045);
  font-weight:680;
  letter-spacing:-.015em;
}
.nav a:hover{
  background:rgba(255,255,255,.105);
  transform:translateY(-1px);
}

.main{
  position:relative;
  min-width:0;
  padding:56px clamp(22px,4vw,42px) 38px;
}
.top-actions{
  position:absolute;
  top:18px;
  left:28px;
  right:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  pointer-events:none;
}
.sidebar-toggle,
.theme-switcher{
  pointer-events:auto;
}
.sidebar-toggle{
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(255,255,255,.86);
  color:var(--ink);
  box-shadow:var(--shadow-soft);
  cursor:pointer;
  font-weight:800;
}
.theme-switcher{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:15px;
  background:rgba(255,255,255,.78);
  box-shadow:var(--shadow-soft);
  backdrop-filter:blur(14px);
}
.theme-switcher span{
  padding:0 6px;
  color:var(--muted);
  font-size:12px;
  font-weight:750;
}
.theme-switcher a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:76px;
  padding:8px 11px;
  border-radius:11px;
  text-decoration:none;
  font-size:12px;
  font-weight:780;
  color:var(--ink);
}
.theme-switcher a.active{
  color:#fff;
  background:var(--green);
}

.page-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin:16px 0 28px;
}
.eyebrow{
  margin:0 0 10px;
  color:var(--gold);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:12px;
  font-weight:850;
}
.page-header h1{
  margin:0;
  font-size:34px;
  line-height:1.05;
  letter-spacing:-.052em;
  font-weight:820;
}
.muted{
  color:var(--muted);
}
.ghost-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 15px;
  border-radius:13px;
  border:1px solid var(--line);
  background:var(--panel);
  box-shadow:var(--shadow-soft);
  text-decoration:none;
  font-weight:760;
}

.metric-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:18px;
}
.metric-card,
.panel{
  border:1px solid var(--line);
  background:linear-gradient(180deg,var(--panel),var(--panel-2));
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-soft);
}
.metric-card{
  padding:20px 22px;
}
.metric-card span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:780;
}
.metric-card strong{
  display:block;
  margin-top:7px;
  font-size:28px;
  line-height:1.08;
  letter-spacing:-.045em;
  font-weight:820;
}
.panel{
  padding:20px;
  margin-top:18px;
}
.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin:0 0 14px;
}
.section-title h2{
  margin:0;
  font-size:24px;
  line-height:1.08;
  letter-spacing:-.04em;
  font-weight:820;
}
.section-title span{
  color:var(--muted);
  font-size:13px;
  font-weight:650;
}

.table-wrap{
  overflow:auto;
}
table{
  width:100%;
  border-collapse:collapse;
}
th{
  text-align:left;
  padding:12px 13px;
  font-size:12px;
  font-weight:780;
  color:var(--ink);
  background:#eceae0;
  border-bottom:1px solid var(--line);
  white-space:nowrap;
}
td{
  padding:13px;
  border-bottom:1px solid var(--line);
  font-variant-numeric:tabular-nums;
  font-weight:620;
  white-space:nowrap;
}
.total-row td{
  background:#e8e5da;
  font-weight:850;
}
td:last-child{
  font-weight:760;
}
td:last-child:not(:empty){
  color:var(--positive);
}

.document-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.document-grid > div{
  padding:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--panel-2);
  font-weight:800;
}

.policy-section-title{align-items:flex-start}
.policy-adjustment-dropdown{position:relative;margin-left:auto}
.policy-adjustment-dropdown summary{
  cursor:pointer;
  list-style:none;
  border:1px solid var(--line);
  border-radius:12px;
  padding:9px 13px;
  font-size:13px;
  font-weight:800;
  background:var(--panel);
  box-shadow:var(--shadow-soft);
}
.policy-adjustment-dropdown summary::-webkit-details-marker{display:none}
.policy-adjustment-dropdown summary:after{content:" ▾"}
.policy-adjustment-dropdown[open] summary:after{content:" ▴"}
.policy-adjustment-menu{
  position:absolute;
  right:0;
  top:42px;
  z-index:20;
  width:min(620px, calc(100vw - 48px));
  max-height:420px;
  overflow:auto;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:16px;
}
.policy-adjustment-menu h3{margin:0 0 8px;font-size:15px}
.adjustment-total{margin:0 0 10px;font-size:14px}
.adjustment-table-wrap{overflow:auto}
.adjustment-table-wrap table{width:100%;border-collapse:collapse}
.adjustment-table-wrap th,
.adjustment-table-wrap td{padding:9px 10px;border-bottom:1px solid var(--line);white-space:nowrap}

.login-screen{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
  background:
    radial-gradient(circle at 72% 28%, rgba(255,255,255,.7), transparent 10%),
    radial-gradient(circle at 20% 10%, rgba(200,181,103,.25), transparent 30%),
    linear-gradient(135deg,#d8d3c6,#efede5);
}
.login-card{
  width:min(420px,100%);
  padding:30px;
  border-radius:20px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.7);
  box-shadow:0 26px 80px rgba(0,0,0,.20);
  backdrop-filter:blur(18px);
}
.login-brand{
  text-align:center;
  margin-bottom:22px;
}
.login-brand .brand-mark{
  margin:0 auto 12px;
  width:62px;
  height:62px;
}
.login-brand h1{
  margin:0;
  font-size:30px;
  letter-spacing:-.05em;
}
.login-brand p{
  margin:4px 0 0;
  color:var(--muted);
}
.login-card label{
  display:block;
  margin:14px 0 6px;
  font-weight:760;
  font-size:12px;
}
.login-card input{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 13px;
  background:#fff;
}
.primary-button{
  width:100%;
  margin-top:18px;
  border:0;
  border-radius:12px;
  padding:13px 14px;
  background:var(--green);
  color:#fff;
  font-weight:820;
  cursor:pointer;
}
.alert.error{
  padding:12px;
  border-radius:12px;
  color:#8a1f1f;
  background:#ffe4e4;
  border:1px solid #ffcaca;
}

@media(max-width:900px){
  .app-shell{grid-template-columns:1fr}
  .sidebar{position:relative;height:auto}
  .main{padding:76px 18px 30px}
  .metric-grid{grid-template-columns:1fr}
  .document-grid{grid-template-columns:1fr}
  .policy-section-title{display:block}
  .policy-adjustment-dropdown{margin:12px 0 0}
  .policy-adjustment-menu{position:static;width:100%;margin-top:8px}
}

/* RIO_MOBILE_WISE_OPTIMISATION_V1 */
.mobile-appbar,
.mobile-backdrop{
  display:none;
}

@media(max-width: 900px){
  html,
  body{
    width:100%;
    overflow-x:hidden;
  }

  body{
    background:
      radial-gradient(circle at 50% 0%, rgba(216,199,145,.22), transparent 26%),
      linear-gradient(180deg, var(--bg), var(--bg-2));
  }

  .app-shell{
    display:block;
    min-height:100vh;
  }

  .mobile-appbar{
    position:sticky;
    top:0;
    z-index:50;
    display:flex;
    align-items:center;
    gap:12px;
    height:64px;
    padding:calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
    margin:calc(env(safe-area-inset-top, 0px) * -1) -14px 14px;
    background:rgba(247,246,239,.86);
    border-bottom:1px solid rgba(0,0,0,.06);
    backdrop-filter:blur(18px);
  }

  .mobile-menu-button{
    width:42px;
    height:42px;
    border:1px solid var(--line);
    border-radius:14px;
    background:var(--panel);
    color:var(--ink);
    box-shadow:var(--shadow-soft);
    font-size:18px;
    font-weight:850;
  }

  .mobile-appbar-title{
    min-width:0;
    flex:1;
  }

  .mobile-appbar-title strong{
    display:block;
    font-size:15px;
    line-height:1.05;
    letter-spacing:-.035em;
  }

  .mobile-appbar-title span{
    display:block;
    margin-top:2px;
    color:var(--muted);
    font-size:11px;
    font-weight:700;
  }

  .mobile-home-dot{
    width:42px;
    height:42px;
    border-radius:14px;
    display:grid;
    place-items:center;
    text-decoration:none;
    color:#07140c;
    background:linear-gradient(135deg,#fff1af,#d0b75f);
    box-shadow:var(--shadow-soft);
    font-size:12px;
    font-weight:900;
    letter-spacing:-.04em;
  }

  .mobile-backdrop{
    position:fixed;
    inset:0;
    z-index:80;
    background:rgba(0,0,0,.42);
    backdrop-filter:blur(3px);
  }

  body.mobile-menu-open .mobile-backdrop{
    display:block;
  }

  .sidebar{
    position:fixed;
    top:0;
    bottom:0;
    left:0;
    z-index:90;
    width:min(84vw, 330px);
    height:100dvh;
    transform:translateX(-105%);
    transition:transform .22s ease;
    padding:calc(env(safe-area-inset-top,0px) + 20px) 16px 22px;
    box-shadow:24px 0 70px rgba(0,0,0,.35);
    border-right:1px solid rgba(255,255,255,.09);
  }

  body.mobile-menu-open .sidebar{
    transform:translateX(0);
  }

  .brand{
    margin-bottom:22px;
  }

  .nav{
    gap:9px;
    padding-bottom:28px;
  }

  .nav a{
    min-height:48px;
    display:flex;
    align-items:center;
    padding:13px 14px;
    border-radius:15px;
    font-size:15px;
  }

  .main{
    min-height:100vh;
    padding:0 14px 34px;
  }

  .top-actions{
    position:static;
    display:flex;
    justify-content:flex-end;
    margin:0 0 12px;
    pointer-events:auto;
  }

  .sidebar-toggle{
    display:none;
  }

  .theme-switcher{
    width:100%;
    justify-content:space-between;
    padding:5px;
    border-radius:16px;
    background:rgba(255,255,255,.74);
  }

  .theme-switcher span{
    display:none;
  }

  .theme-switcher a{
    flex:1;
    min-width:0;
    min-height:38px;
    font-size:13px;
  }

  .page-header{
    display:block;
    margin:18px 0 16px;
  }

  .eyebrow{
    font-size:11px;
    margin-bottom:8px;
  }

  .page-header h1{
    font-size:30px;
    line-height:1.04;
    max-width:92vw;
  }

  .page-header .muted{
    margin-top:10px;
    font-size:14px;
  }

  .ghost-button{
    margin-top:12px;
    min-height:42px;
    width:100%;
    border-radius:14px;
  }

  .metric-grid{
    display:flex;
    gap:12px;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    padding:2px 2px 12px;
    margin:0 -2px 8px;
  }

  .metric-grid::-webkit-scrollbar{
    display:none;
  }

  .metric-card{
    flex:0 0 78%;
    min-width:235px;
    scroll-snap-align:start;
    border-radius:22px;
    padding:18px;
  }

  .metric-card strong{
    font-size:27px;
  }

  .panel{
    border-radius:22px;
    padding:16px;
    margin-top:14px;
  }

  .section-title{
    display:block;
    margin-bottom:12px;
  }

  .section-title h2{
    font-size:23px;
  }

  .section-title span{
    display:block;
    margin-top:4px;
    font-size:12px;
  }

  /* App-style policy table: keep desktop table in markup, display rows as mobile cards */
  .policy-summary-table,
  .policy-summary-table thead,
  .policy-summary-table tbody,
  .policy-summary-table tr,
  .policy-summary-table th,
  .policy-summary-table td{
    display:block;
  }

  .policy-summary-table thead{
    display:none;
  }

  .policy-summary-table tr{
    margin:0 0 12px;
    border:1px solid var(--line);
    border-radius:18px;
    background:var(--panel-2);
    overflow:hidden;
    box-shadow:var(--shadow-soft);
  }

  .policy-summary-table tr.total-row{
    background:var(--gold-soft);
  }

  .policy-summary-table td{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
    min-height:44px;
    padding:11px 13px;
    border-bottom:1px solid var(--line);
    white-space:normal;
    text-align:right;
    font-size:14px;
  }

  .policy-summary-table td:before{
    content:"";
    color:var(--muted);
    font-size:11px;
    font-weight:820;
    text-transform:uppercase;
    letter-spacing:.06em;
    text-align:left;
    white-space:nowrap;
  }

  .policy-summary-table td:nth-child(1):before{content:"Policy"}
  .policy-summary-table td:nth-child(2):before{content:"Start Date"}
  .policy-summary-table td:nth-child(3):before{content:"Investment"}
  .policy-summary-table td:nth-child(4):before{content:"Purchase Price"}
  .policy-summary-table td:nth-child(5):before{content:"Shares"}
  .policy-summary-table td:nth-child(6):before{content:"Current Price"}
  .policy-summary-table td:nth-child(7):before{content:"Current Value"}
  .policy-summary-table td:nth-child(8):before{content:"Gain / Loss"}

  .policy-summary-table td:last-child{
    border-bottom:0;
  }

  .table-wrap{
    overflow:visible;
  }

  .policy-adjustment-dropdown{
    margin:12px 0 0;
  }

  .policy-adjustment-dropdown summary{
    min-height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
  }

  .policy-adjustment-menu{
    position:static;
    width:100%;
    max-height:none;
    margin-top:8px;
    border-radius:18px;
  }

  .adjustment-table-wrap{
    overflow:visible;
  }

  .adjustment-table-wrap table,
  .adjustment-table-wrap thead,
  .adjustment-table-wrap tbody,
  .adjustment-table-wrap tr,
  .adjustment-table-wrap th,
  .adjustment-table-wrap td{
    display:block;
  }

  .adjustment-table-wrap thead{
    display:none;
  }

  .adjustment-table-wrap tr{
    border:1px solid var(--line);
    border-radius:14px;
    margin-bottom:10px;
    overflow:hidden;
  }

  .adjustment-table-wrap td{
    display:flex;
    justify-content:space-between;
    gap:14px;
    white-space:normal;
  }

  .document-grid{
    grid-template-columns:1fr;
    gap:10px;
  }

  .document-grid > div{
    min-height:56px;
    display:flex;
    align-items:center;
    border-radius:16px;
  }

  .login-screen{
    min-height:100dvh;
    padding:18px;
  }

  .login-card{
    width:100%;
    max-width:420px;
    padding:24px;
    border-radius:22px;
  }

  .login-card input,
  .primary-button{
    min-height:46px;
    font-size:16px;
  }
}

@media(max-width: 420px){
  .page-header h1{
    font-size:27px;
  }

  .metric-card{
    flex-basis:86%;
  }

  .metric-card strong{
    font-size:24px;
  }

  .panel{
    padding:14px;
  }

  .policy-summary-table td{
    font-size:13px;
    gap:12px;
  }
}

/* RIO_MOBILE_POLICY_TABLE_SCROLL_FIX_V1
   Investment/policy tables should stay as real tables on mobile,
   with horizontal swipe scrolling. Do not convert statement tables
   into cards because the columns matter.
*/
@media(max-width:900px){
  .panel .table-wrap{
    overflow-x:auto !important;
    overflow-y:visible;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    margin-left:-4px;
    margin-right:-4px;
    padding:0 4px 10px;
    position:relative;
  }

  .panel .table-wrap:after{
    content:"Swipe →";
    position:sticky;
    right:8px;
    bottom:0;
    display:block;
    width:max-content;
    margin-left:auto;
    margin-top:6px;
    padding:4px 8px;
    border-radius:999px;
    background:rgba(0,0,0,.08);
    color:var(--muted,#66746d);
    font-size:11px;
    font-weight:800;
    pointer-events:none;
  }

  .policy-summary-table{
    display:table !important;
    width:max-content !important;
    min-width:920px !important;
    border-collapse:collapse !important;
  }

  .policy-summary-table thead{
    display:table-header-group !important;
  }

  .policy-summary-table tbody{
    display:table-row-group !important;
  }

  .policy-summary-table tr{
    display:table-row !important;
    margin:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  .policy-summary-table th,
  .policy-summary-table td{
    display:table-cell !important;
    width:auto !important;
    min-height:0 !important;
    padding:11px 12px !important;
    text-align:left !important;
    white-space:nowrap !important;
    border-bottom:1px solid var(--line,#e1e7e3) !important;
  }

  .policy-summary-table td:before{
    content:none !important;
  }

  .policy-summary-table th:first-child,
  .policy-summary-table td:first-child{
    position:sticky;
    left:0;
    z-index:2;
    min-width:118px;
    background:var(--panel,#fff) !important;
    box-shadow:8px 0 14px rgba(0,0,0,.08);
  }

  .policy-summary-table th:first-child{
    z-index:3;
    background:#eceae0 !important;
  }

  .policy-summary-table .total-row td{
    background:rgba(0,0,0,.08) !important;
    font-weight:850 !important;
  }

  .policy-summary-table .total-row td:first-child{
    background:var(--panel,#fff) !important;
  }
}

/* RIO_STANDARD_MOBILE_APP_POLISH_V1 */
@media(max-width:900px){
  .mobile-rio-wordmark{
    display:inline-flex;
    align-items:center;
    text-decoration:none;
    color:var(--ink);
    font-size:23px;
    font-weight:850;
    letter-spacing:-.045em;
    margin-right:auto;
  }

  .mobile-theme-pill{
    display:flex;
    gap:4px;
    padding:4px;
    border:1px solid var(--line);
    border-radius:999px;
    background:rgba(255,255,255,.74);
  }

  .mobile-theme-pill a{
    min-width:68px;
    padding:8px 12px;
    border-radius:999px;
    text-decoration:none;
    color:var(--ink);
    font-size:12px;
    font-weight:760;
    text-align:center;
  }

  .mobile-theme-pill a.active{
    color:#fff;
    background:var(--green);
  }

  .mobile-appbar-title,
  .mobile-home-dot{
    display:none;
  }

  .mobile-swipe-hint{
    display:block;
    text-align:center;
    font-size:11px;
    color:var(--muted);
    margin:4px 0 0;
  }

  .mobile-adjustments-panel{
    display:block;
  }

  .mobile-withdrawal-list{
    display:grid;
    gap:8px;
  }

  .mobile-withdrawal-list article{
    border:1px solid var(--line);
    border-radius:14px;
    background:var(--panel-2);
    padding:10px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px 10px;
  }

  .mobile-withdrawal-list span{
    display:block;
    color:var(--muted);
    font-size:11px;
  }

  .mobile-withdrawal-list strong{
    display:block;
    color:var(--ink);
    font-size:13px;
    margin-top:2px;
  }

  .evander-docs a{
    text-decoration:none;
    color:var(--ink);
  }

  .evander-docs a span{
    width:27px;
    height:27px;
    border-radius:8px;
    display:grid;
    place-items:center;
    color:#171209;
    background:linear-gradient(180deg,#e5c985,#b9944a);
    font-size:9px;
    font-weight:850;
    flex:0 0 auto;
  }
}

/* RIO_FORCE_CLAUDE_TYPE_EVERYWHERE_V1
   Uses legally available local fonts if present, otherwise modern system stack.
*/
:root{
  --rio-font-sans:
    "Styrene B",
    "Styrene A",
    "Styrene",
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
  --rio-font-display:
    "Styrene B",
    "Styrene A",
    "Styrene",
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
  --rio-font-serif:
    "Tiempos Text",
    "Tiempos Headline",
    Georgia,
    "Times New Roman",
    serif;
}
html,body,
input,button,select,textarea,
table,th,td,a,p,span,strong,small,label,
h1,h2,h3,h4,h5,h6,
.sidebar,.main,.panel,.metric-card,.nav,.brand{
  font-family:var(--rio-font-sans)!important;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  font-feature-settings:"kern","liga","calt";
}
.page-header h1,
.metric-card strong,
.section-title h2,
.login-brand h1{
  font-family:var(--rio-font-display)!important;
  letter-spacing:-0.045em;
}

/* RIO_STANDARD_LOGIN_VIDEO_FALLBACK_V1 */
.login-bg-video,
.login-modal-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.20;
  pointer-events:none;
}
.login-video-overlay,
.login-modal-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(247,246,239,.72),rgba(247,246,239,.94));
  pointer-events:none;
}
.evander-login-screen{
  position:relative;
  overflow:hidden;
}
.evander-login-card{
  position:relative;
  z-index:2;
}
.login-loading-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  place-items:center;
  overflow:hidden;
}
.login-loading-modal.on{
  display:grid;
}
.login-loading-card{
  position:relative;
  z-index:2;
  width:min(520px,92vw);
  min-height:360px;
  display:grid;
  place-items:center;
  padding:34px;
}
.login-loading-mark{
  position:absolute;
  width:96px;
  height:96px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#ffe9a8,#b89548);
  color:#151008;
  font-weight:900;
}
.login-loading-ring{
  position:absolute;
  width:142px;
  height:142px;
  border-radius:50%;
  border:2px solid rgba(181,154,82,.2);
  border-top-color:rgba(181,154,82,.8);
  animation:rioSpin 1.35s linear infinite;
}
.login-loading-copy{
  margin-top:240px;
  display:grid;
  gap:10px;
  text-align:center;
}
.loading-step{
  margin:0;
  opacity:.42;
  transition:.24s ease;
}
.loading-step.active{
  opacity:1;
}
.loading-step.done{
  opacity:.78;
}
.loading-step.done:after{
  content:" ✓";
}
@keyframes rioSpin{
  to{transform:rotate(360deg)}
}

/* RIO_LOGIN_VIDEO_FULL_OPACITY_V1
   Full cinematic login video background. Readability comes from overlay/card blur,
   not video opacity.
*/
.evander-login-screen{
  position:relative;
  min-height:100dvh;
  width:100%;
  overflow:hidden;
  display:grid;
  place-items:center;
  padding:24px;
  background:#050d09!important;
}

.login-bg-video,
.login-modal-video{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  opacity:1!important;
  filter:saturate(.96) contrast(1.08) brightness(.72)!important;
  pointer-events:none!important;
}

.login-video-overlay{
  position:absolute!important;
  inset:0!important;
  background:
    radial-gradient(circle at 50% 38%, rgba(224,198,128,.10), transparent 18%),
    linear-gradient(180deg,rgba(4,14,8,.34),rgba(4,13,8,.78))!important;
  pointer-events:none!important;
}

.login-modal-overlay{
  position:absolute!important;
  inset:0!important;
  background:
    radial-gradient(circle at 50% 34%, rgba(224,198,128,.12), transparent 18%),
    linear-gradient(180deg,rgba(4,14,8,.40),rgba(4,13,8,.82))!important;
  pointer-events:none!important;
}

.evander-login-card{
  position:relative!important;
  z-index:2!important;
  background:rgba(7,19,12,.58)!important;
  border:1px solid rgba(224,198,128,.24)!important;
  backdrop-filter:blur(24px) saturate(1.15)!important;
  -webkit-backdrop-filter:blur(24px) saturate(1.15)!important;
  box-shadow:
    inset 0 1px rgba(255,255,255,.08),
    0 34px 110px rgba(0,0,0,.52)!important;
}

.login-loading-modal{
  background:#050d09!important;
}

.login-loading-card{
  position:relative!important;
  z-index:2!important;
}

@media(max-width:900px){
  .evander-login-screen{
    padding:18px!important;
  }

  .login-bg-video,
  .login-modal-video{
    filter:saturate(.96) contrast(1.08) brightness(.64)!important;
  }

  .login-video-overlay,
  .login-modal-overlay{
    background:
      radial-gradient(circle at 50% 30%, rgba(224,198,128,.08), transparent 22%),
      linear-gradient(180deg,rgba(4,14,8,.42),rgba(4,13,8,.86))!important;
  }
}

/* RIO_LOGIN_MODAL_BRIGHT_TEXT_V1 */
.login-loading-modal .login-loading-card{
  color:#fff4cf !important;
  text-shadow:0 2px 18px rgba(0,0,0,.65);
}

.login-loading-modal .login-loading-copy{
  background:rgba(3,10,7,.34);
  border:1px solid rgba(255,229,165,.16);
  border-radius:18px;
  padding:16px 20px;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 18px 55px rgba(0,0,0,.28);
}

.login-loading-modal .loading-step{
  color:rgba(255,244,207,.72) !important;
  opacity:1 !important;
  font-weight:760 !important;
  letter-spacing:-0.018em;
}

.login-loading-modal .loading-step.active{
  color:#fff1b8 !important;
  opacity:1 !important;
  font-weight:850 !important;
  text-shadow:
    0 0 20px rgba(224,198,128,.32),
    0 2px 18px rgba(0,0,0,.75);
}

.login-loading-modal .loading-step.done{
  color:#c8f0c8 !important;
  opacity:.96 !important;
}

.login-loading-modal .loading-step.done:after{
  content:" ✓";
  color:#9df0a4 !important;
  text-shadow:0 0 12px rgba(157,240,164,.35);
}

.login-loading-modal .login-loading-mark{
  color:#120d05 !important;
  text-shadow:none !important;
}

@media(max-width:900px){
  .login-loading-modal .login-loading-copy{
    width:min(92vw, 360px);
    padding:15px 16px;
  }

  .login-loading-modal .loading-step{
    font-size:17px !important;
  }
}

/* RIO_STANDARD_LOGIN_UNDERLINE_INPUTS_V1 */
.evander-login-card input{
  border-radius:0;
}

/* RIO_BASE64_CREST_LOGO_V1 */
.brand-logo-img,
.login-crest-img{
  display:block;
  object-fit:contain;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
}

.brand .brand-logo-img{
  width:48px!important;
  height:64px!important;
  border-radius:0!important;
  flex:0 0 auto;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.18));
}

.login-brand .login-crest-img{
  width:92px!important;
  height:132px!important;
  margin:0 auto 12px!important;
  border-radius:0!important;
  filter:
    drop-shadow(0 0 22px rgba(224,198,128,.22))
    drop-shadow(0 14px 28px rgba(0,0,0,.28));
}

html[data-theme="evander"] .brand .brand-logo-img,
html[data-theme="evander"] .login-brand .login-crest-img{
  filter:
    drop-shadow(0 0 20px rgba(224,198,128,.28))
    drop-shadow(0 14px 28px rgba(0,0,0,.42));
}

@media(max-width:900px){
  .brand .brand-logo-img{
    width:44px!important;
    height:58px!important;
  }

  .login-brand .login-crest-img{
    width:82px!important;
    height:118px!important;
  }
}

/* RIO_SIDEBAR_CREST_TILE_FIX_V1 */
.sidebar .brand{align-items:center!important;}
.sidebar .brand .brand-logo-img,
.sidebar .brand img.brand-mark,
.brand .brand-logo-img{
  width:50px!important;
  height:58px!important;
  min-width:50px!important;
  object-fit:contain!important;
  padding:5px!important;
  border-radius:14px!important;
  background:radial-gradient(circle at 50% 35%, #ffffff 0%, #fffdf6 58%, #f0dfae 100%)!important;
  border:1px solid rgba(255,233,168,.76)!important;
  box-shadow:0 0 0 1px rgba(38,24,6,.18),0 0 22px rgba(255,229,165,.22),0 12px 28px rgba(0,0,0,.32)!important;
  filter:none!important;
}
.sidebar .brand strong{
  color:#fff4cf!important;
  text-shadow:0 2px 12px rgba(0,0,0,.55)!important;
}
.sidebar .brand span{
  color:rgba(255,244,207,.72)!important;
}
@media(max-width:900px){
  .sidebar .brand .brand-logo-img,
  .sidebar .brand img.brand-mark,
  .brand .brand-logo-img{
    width:48px!important;
    height:56px!important;
    min-width:48px!important;
    padding:5px!important;
  }
}

/* RIO_CLOSED_INVESTMENTS_NAV_V1 */
.sidebar{
  display:flex;
  flex-direction:column;
}
.nav-main{
  flex:1 1 auto;
}
.nav-bottom{
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
}
.closed-investments-link{
  display:flex!important;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.closed-investments-link em{
  min-width:24px;
  height:24px;
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  background:rgba(224,198,128,.18);
  color:#f5e8c6;
  font-style:normal;
  font-size:12px;
  font-weight:850;
}
.closed-investment-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.closed-investment-card{
  border:1px solid var(--line,#e1e7e3);
  border-radius:18px;
  padding:16px;
  background:var(--panel-2,#fbfaf5);
}
.closed-investment-card h3{
  margin:0;
  font-size:17px;
  letter-spacing:-.035em;
}
.closed-investment-card p{
  margin:4px 0 12px;
  color:var(--muted,#66746d);
}
.closed-investment-card dl{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:0 0 14px;
}
.closed-investment-card dt{
  color:var(--muted,#66746d);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.closed-investment-card dd{
  margin:3px 0 0;
  font-weight:850;
}
.closed-actions{
  display:flex;
  gap:10px;
}
.closed-actions a{
  flex:1;
  text-align:center;
  text-decoration:none;
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
  border:1px solid var(--line,#e1e7e3);
  background:var(--panel,#fff);
}
@media(max-width:900px){
  .closed-investment-grid{
    grid-template-columns:1fr;
  }
  .nav-bottom{
    margin-top:16px;
    padding-top:12px;
  }
}

/* RIO_FINAL_CLAUDE_FONT_FORCE_V1 */
:root{
  --rio-font-sans:"Styrene B","Styrene A","Styrene","Inter",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif!important;
  --rio-font-display:"Styrene B","Styrene A","Styrene","Inter",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif!important;
}
html,body,body *,body *::before,body *::after,input,button,select,textarea,table,th,td,a,p,span,small,strong,em,label,div,section,article,aside,main,nav,header,footer,h1,h2,h3,h4,h5,h6{
  font-family:var(--rio-font-sans)!important;
  -webkit-font-smoothing:antialiased!important;
  -moz-osx-font-smoothing:grayscale!important;
  text-rendering:optimizeLegibility!important;
  font-feature-settings:"kern","liga","calt","tnum"!important;
}
h1,h2,h3,h4,h5,h6,.page-header h1,.section-title h2,.metric-card strong,.login-brand h1,.brand strong,.mobile-rio-wordmark{
  font-family:var(--rio-font-display)!important;
  letter-spacing:-0.045em!important;
  line-height:1.06!important;
  font-weight:780!important;
}
table,th,td,.metric-card strong,.policy-summary-table td{font-variant-numeric:tabular-nums!important;}
