:root{
  --bg:#ecebfd;
  --bg-2:#f5f4ff;
  --surface:#ffffff;
  --surface-soft:#f8f8fc;
  --text:#171726;
  --muted:#85869a;
  --line:#ececf3;
  --primary:#6c4cf5;
  --primary-2:#8a72ff;
  --primary-3:#4f35d8;
  --success:#2eb67d;
  --warning:#f2aa46;
  --danger:#ef5d72;
  --shadow:0 28px 70px rgba(70,58,145,.16);
  --card-shadow:0 8px 28px rgba(68,60,120,.07);
  --radius:22px;
  --sidebar:222px;
}
*{box-sizing:border-box;}
html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:radial-gradient(circle at 25% 5%,#f6f5ff 0,#e9e9fb 38%,#dfe1f7 100%);}
body{padding:0;overflow:hidden;}
a{text-decoration:none;color:inherit;}
button,input,select,textarea{font:inherit;}
button{cursor:pointer;}
.app-shell{background:rgba(255,255,255,.86);backdrop-filter:blur(18px);display:grid;}
.sidebar{background:rgba(255,255,255,.96);border-right:1px solid var(--line);display:flex;flex-direction:column;position:relative;z-index:20;}
.brand{display:flex;align-items:center;gap:10px;padding:1px 8px 18px;font-weight:800;letter-spacing:-.02em;}
.brand img{width:24px;height:24px;}.brand small{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-top:1px;}
.nav-scroll{
  flex:1;
  min-width:0;
  min-height:0;
  max-width:100%;
  padding-right:2px;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:transparent transparent;
}
.sidebar:hover .nav-scroll{
  scrollbar-color:rgba(91,76,150,.22) transparent;
}
.nav-scroll::-webkit-scrollbar{
  width:5px;
  height:0;
}
.nav-scroll::-webkit-scrollbar:horizontal{
  height:0;
  display:none;
}
.nav-scroll::-webkit-scrollbar-track{
  background:transparent;
}
.nav-scroll::-webkit-scrollbar-thumb{
  background:transparent;
  border:1px solid transparent;
  border-radius:999px;
  background-clip:padding-box;
}
.sidebar:hover .nav-scroll::-webkit-scrollbar-thumb{
  background:rgba(91,76,150,.20);
  border:1px solid transparent;
  background-clip:padding-box;
}
.sidebar:hover .nav-scroll::-webkit-scrollbar-thumb:hover{
  background:rgba(91,76,150,.34);
  border:1px solid transparent;
  background-clip:padding-box;
}
.nav-group{
  width:100%;
  min-width:0;
  max-width:100%;
  margin:6px 0 20px;
}
.nav-label{font-size:10px;color:#aaa9b8;letter-spacing:.12em;font-weight:800;padding:0 10px 8px;text-transform:uppercase;}
.nav-item,.nav-subitem{display:flex;align-items:center;gap:11px;padding:10px 11px;margin:3px 0;border-radius:11px;color:#5c5d6d;font-size:13px;transition:.18s ease;position:relative;}
.nav-item i,.nav-subitem i{width:17px;height:17px;stroke-width:1.8;}.nav-item:hover,.nav-subitem:hover{background:#f6f3ff;color:#4f35d8;transform:translateX(1px);}
.nav-item.active{color:white;background:linear-gradient(135deg,#7562f3,#a58df7);box-shadow:0 8px 18px rgba(104,75,238,.24);}
.nav-subitems{padding-left:15px;margin-top:2px;}.nav-subitem{font-size:12px;padding:8px 10px;}.nav-subitem.active{background:#f0ecff;color:#5a3fe2;font-weight:700;}
.sidebar-bottom{border-top:1px solid var(--line);padding-top:13px;}.user-mini{display:flex;align-items:center;gap:10px;padding:10px;border-radius:13px;background:#fafaff;}.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#f0c8ad,#a97df9);font-weight:800;color:white;font-size:12px;flex:0 0 auto;}.user-mini .meta{min-width:0;flex:1;}.user-mini strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.user-mini span{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;}
.main{
  min-width:0;
  background:rgba(249,249,252,.84);
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:transparent transparent;
}
.main:hover{
  scrollbar-color:rgba(91,76,150,.20) transparent;
}
.main::-webkit-scrollbar{
  width:6px;
  height:0;
}
.main::-webkit-scrollbar:horizontal{
  height:0;
  display:none;
}
.main::-webkit-scrollbar-track{
  background:transparent;
}
.main::-webkit-scrollbar-thumb{
  background:transparent;
  border:1.5px solid transparent;
  border-radius:999px;
  background-clip:padding-box;
}
.main:hover::-webkit-scrollbar-thumb{
  background:rgba(91,76,150,.18);
  border:1.5px solid transparent;
  background-clip:padding-box;
}
.main:hover::-webkit-scrollbar-thumb:hover{
  background:rgba(91,76,150,.32);
  border:1.5px solid transparent;
  background-clip:padding-box;
}
.topbar{height:74px;padding:17px 24px 12px;display:flex;align-items:center;gap:18px;position:sticky;top:0;z-index:30;background:rgba(249,249,252,.92);backdrop-filter:blur(16px);border-bottom:1px solid rgba(236,236,243,.72);}.mobile-toggle{display:none;background:white;border:1px solid var(--line);width:40px;height:40px;border-radius:12px;align-items:center;justify-content:center;}.search{height:40px;flex:1;max-width:580px;background:#fff;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;padding:0 12px;box-shadow:0 3px 12px rgba(60,52,110,.04);}.search i{width:16px;color:#77798a;}.search input{border:0;outline:0;flex:1;padding:0 10px;color:var(--text);background:transparent;}.search kbd{font-size:10px;border:0;background:#f1f1f7;padding:4px 7px;border-radius:7px;color:#85869a;}
.top-actions{margin-left:auto;display:flex;align-items:center;gap:9px;}.icon-btn,.soft-btn,.primary-btn{border:1px solid var(--line);background:#fff;border-radius:11px;height:40px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#5c5d6d;transition:.18s;}.icon-btn{width:40px;padding:0;}.icon-btn i,.soft-btn i,.primary-btn i{width:16px;}.icon-btn:hover,.soft-btn:hover{background:#f7f4ff;color:var(--primary);}.primary-btn{border-color:transparent;background:linear-gradient(135deg,#5f42df,#7c61ef);color:white;box-shadow:0 8px 18px rgba(84,55,212,.22);}.primary-btn:hover{transform:translateY(-1px);}
.content{width:100%;max-width:none;padding:18px 24px 32px;}.page-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:3px 0 16px;}.page-heading h1{font-size:24px;letter-spacing:-.035em;}.page-heading p{margin:0;color:var(--muted);}.page-actions{display:flex;gap:8px;}
.grid{display:grid;gap:14px;}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr));}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr));}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr));}.grid-main{grid-template-columns:minmax(0,1.5fr) minmax(300px,.72fr);}
.card{background:rgba(255,255,255,.95);border:1px solid #efeff5;border-radius:18px;box-shadow:var(--card-shadow);padding:17px;}.card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;}.card-title{font-size:14px;font-weight:800;}.card-subtitle{font-size:11px;color:var(--muted);margin-top:3px;}.card-menu{border:0;background:transparent;color:#9494a5;}.card-menu i{width:16px;}
.stat-card{position:relative;overflow:hidden;}.stat-icon{width:36px;height:36px;border-radius:11px;background:#f1edff;color:#6449e8;display:grid;place-items:center;}.stat-icon i{width:17px;}.stat-label{font-size:11px;color:var(--muted);margin-top:14px;}.stat-value{font-size:25px;font-weight:800;letter-spacing:-.04em;margin-top:5px;}.stat-foot{font-size:10px;color:#85869a;margin-top:4px;}.trend-up{color:var(--success);font-weight:700;}.trend-down{color:var(--danger);font-weight:700;}
.hero-card{background:linear-gradient(135deg,#5133cf,#6846e8 55%,#8b74f7);color:white;position:relative;overflow:hidden;min-height:150px;}.hero-card:before,.hero-card:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.17);border-radius:70px;transform:rotate(-12deg);}.hero-card:before{width:320px;height:95px;right:-65px;top:-32px;}.hero-card:after{width:280px;height:90px;right:-20px;top:32px;}.hero-card h2{font-size:21px;line-height:1.15;max-width:320px;margin:12px 0 7px;position:relative;z-index:1;}.hero-card p{font-size:11px;opacity:.78;max-width:420px;position:relative;z-index:1;}.hero-card .hero-icons{display:flex;gap:7px;position:relative;z-index:1;}.hero-bubble{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.18);}.hero-bubble i{width:14px;}
.chart-wrap{height:220px;padding-top:8px;position:relative;}.chart-grid{position:absolute;inset:8px 0 24px 34px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 37px,#f0f0f5 38px);}.bars{position:absolute;inset:12px 10px 25px 42px;display:flex;align-items:end;justify-content:space-around;}.bar-group{height:100%;width:10%;display:flex;align-items:end;gap:4px;position:relative;}.bar{width:46%;border-radius:6px 6px 2px 2px;background:linear-gradient(#7758f4,#9b86fb);min-height:18px;}.bar.alt{background:repeating-linear-gradient(135deg,#eeeef3 0,#eeeef3 5px,#fafafe 5px,#fafafe 10px);}.bar-label{position:absolute;bottom:-20px;left:50%;transform:translateX(-50%);font-size:9px;color:#9494a4;}.y-labels{position:absolute;left:0;top:8px;bottom:24px;width:30px;display:flex;flex-direction:column;justify-content:space-between;font-size:9px;color:#a2a2af;}
.progress-ring{width:112px;height:112px;border-radius:50%;background:conic-gradient(var(--primary) 0 68%,#ececf4 68% 100%);display:grid;place-items:center;position:relative;}.progress-ring:after{content:"";position:absolute;width:82px;height:82px;background:white;border-radius:50%;}.progress-ring .inside{position:relative;z-index:1;text-align:center;}.progress-ring strong{font-size:22px;display:block;}.progress-ring span{font-size:9px;color:var(--muted);}
.table-wrap{overflow:auto;}.table{width:100%;border-collapse:separate;border-spacing:0 5px;font-size:11px;}.table th{color:#9292a3;font-weight:600;text-align:left;padding:6px 10px;}.table td{padding:10px;background:#fafafd;border-top:1px solid #f1f1f5;border-bottom:1px solid #f1f1f5;}.table td:first-child{border-left:1px solid #f1f1f5;border-radius:10px 0 0 10px;}.table td:last-child{border-right:1px solid #f1f1f5;border-radius:0 10px 10px 0;}.company-cell{display:flex;align-items:center;gap:9px;}.company-logo{width:30px;height:30px;border-radius:9px;background:#f0edff;display:grid;place-items:center;color:#5b3ddb;font-weight:800;font-size:10px;}.pill{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:700;}.pill.success{background:#eaf8f2;color:#27956b;}.pill.warning{background:#fff5e8;color:#b87920;}.pill.purple{background:#f0ecff;color:#6548e8;}.pill.danger{background:#ffedf0;color:#ca4d61;}
.module-empty{min-height:410px;display:grid;place-items:center;text-align:center;}.module-empty .icon{width:66px;height:66px;border-radius:20px;background:linear-gradient(135deg,#f0ecff,#faf8ff);color:#6549e9;display:grid;place-items:center;margin:0 auto 14px;border:1px solid #ebe6ff;}.module-empty .icon i{width:27px;height:27px;}.module-empty h2{margin:0 0 7px;font-size:18px;}.module-empty p{margin:0 auto 16px;color:var(--muted);max-width:460px;font-size:12px;line-height:1.6;}
.form-card{max-width:760px;}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}.field{display:flex;flex-direction:column;gap:6px;}.field.full{grid-column:1/-1;}.field label{font-size:11px;font-weight:700;color:#5c5d6d;}.field input,.field select,.field textarea{width:100%;border:1px solid #e6e6ef;border-radius:11px;background:#fbfbfe;padding:11px 12px;outline:none;color:var(--text);}.field input:focus,.field select:focus,.field textarea:focus{border-color:#b3a5f8;box-shadow:0 0 0 3px rgba(109,76,245,.08);}
.alert{padding:11px 13px;border-radius:11px;font-size:11px;margin-bottom:12px;border:1px solid;}.alert.success{background:#effaf5;border-color:#d8f1e5;color:#267c5b;}.alert.error{background:#fff0f2;border-color:#ffd9df;color:#b54457;}.alert.info{background:#f0edff;border-color:#e1dafe;color:#5d44cf;}
.account-menu{position:relative;}.dropdown{position:absolute;right:0;top:48px;width:205px;background:white;border:1px solid var(--line);border-radius:14px;padding:7px;box-shadow:0 20px 45px rgba(61,54,110,.16);display:none;z-index:100;}.dropdown.open{display:block;}.dropdown a,.dropdown button{width:100%;border:0;background:transparent;display:flex;align-items:center;gap:9px;padding:9px;border-radius:9px;font-size:11px;color:#565768;text-align:left;}.dropdown a:hover,.dropdown button:hover{background:#f7f4ff;color:var(--primary);}.dropdown i{width:15px;}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:30px;background:radial-gradient(circle at 20% 15%,#f7f6ff,#e8e8fb 50%,#dfe1f7);}.auth-shell{width:min(960px,100%);min-height:570px;background:white;border-radius:28px;box-shadow:var(--shadow);overflow:hidden;display:grid;grid-template-columns:1.05fr .95fr;}.auth-visual{background:linear-gradient(145deg,#4f33cc,#6849e8 50%,#9a86fb);padding:42px;color:white;position:relative;overflow:hidden;}.auth-visual:before,.auth-visual:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.16);border-radius:50%;}.auth-visual:before{width:480px;height:480px;right:-260px;top:-160px;}.auth-visual:after{width:360px;height:360px;left:-180px;bottom:-140px;}.auth-brand{display:flex;align-items:center;gap:10px;font-weight:800;position:relative;z-index:1;}.auth-brand img{width:50px;height:50px;padding:5px;background:white;border-radius:12px;object-fit:contain;}.auth-brand span{font-size:1.25rem;font-weight:600;}.auth-copy{position:absolute;left:42px;bottom:50px;right:42px;z-index:1;}.auth-copy h1{font-size:36px;line-height:1.05;letter-spacing:-.5em;margin:0;}.auth-copy p{font-size:13px;line-height:1.65;opacity:.8;max-width:390px;}.auth-form{padding:48px;display:flex;flex-direction:column;justify-content:center;}.auth-form h2{font-size:27px;margin:0 0 7px;letter-spacing:-.04em;}.auth-form>.lead{font-size:12px;color:var(--muted);margin:0 0 26px;}.auth-form .field{margin-bottom:14px;}.auth-form .primary-btn{width:100%;height:44px;margin-top:5px;}.auth-note{font-size:10px;color:#a0a0ad;margin-top:16px;line-height:1.5;}
.sidebar-backdrop{display:none;}
@media(max-width:1100px){.grid-4{grid-template-columns:repeat(2,1fr);}.grid-main{grid-template-columns:1fr;}.grid-3{grid-template-columns:repeat(2,1fr);}}
@media(max-width:820px){body{padding:0;background:#f7f7fb;overflow:auto;}.app-shell{width:100%;height:auto;border-radius:0;min-height:100vh;display:block;}.main{overflow:visible;}.sidebar-backdrop{position:fixed;inset:0;background:rgba(25,22,46,.25);z-index:15;}body.sidebar-open .sidebar-backdrop{display:block;}.mobile-toggle{display:inline-flex;}.topbar{padding-left:16px;padding-right:16px;}.content{padding:6px 16px 22px;}.search{max-width:none;}.search kbd{display:none;}.soft-btn.hide-mobile{display:none;}}
@media(max-width:580px){.grid-2,.grid-3,.grid-4,.form-grid{grid-template-columns:1fr;}.field.full{grid-column:auto;}.page-heading{align-items:flex-start;flex-direction:column;}.page-actions{width:100%;}.top-actions .icon-btn:nth-child(1){display:none;}.content{padding-top:0;}.card{padding:14px;}}

/* =========================================================
   REFINED APP FRAME + COLLAPSIBLE SIDEBAR
   2026-08-10
   ========================================================= */

:root{
  --app-gap:14px;
  --app-radius:24px;
  --sidebar-expanded:222px;
  --sidebar-collapsed:74px;
}

/* A small outside gutter keeps the app premium and gives the shell curved edges. */
body:not(.auth-page){
  padding:var(--app-gap);
  background:
    radial-gradient(circle at 18% 0%, rgba(120,99,230,.11), transparent 28%),
    linear-gradient(145deg,#f4f3ff 0%,#ececf8 46%,#e5e7f6 100%);
  overflow:hidden;
}

.app-shell{
  width:100%;
  height:calc(100dvh - (var(--app-gap) * 2));
  min-height:0;
  max-width:none;
  margin:0;
  grid-template-columns:var(--sidebar-expanded) minmax(0,1fr);
  border:1px solid rgba(67,57,120,.08);
  border-radius:var(--app-radius);
  overflow:hidden;
  box-shadow:
    0 24px 60px rgba(66,55,132,.13),
    0 4px 16px rgba(66,55,132,.05);
  transition:grid-template-columns .24s cubic-bezier(.2,.8,.2,1);
}

.app-shell.sidebar-collapsed{
  grid-template-columns:var(--sidebar-collapsed) minmax(0,1fr);
}

.sidebar{
  width:auto;
  height:100%;
  min-height:0;
  padding:0 12px 12px;
  overflow:hidden;
  transition:padding .24s ease;
}

.sidebar-head {
  min-height: 76px;
  display: flex;
  align-items: center;
  position: relative; /* Required to anchor the absolute button */
  padding: 14px 0 10px;
}

.sidebar .brand{
  flex:1;
  min-width:0;
  padding:0 0 0 5px;
  overflow:hidden;
}

.sidebar .brand img{
  width:28px;
  height:24px;
  flex:0 0 24px;
}

.brand-copy {
  font-size: 14px; /* Reduced by 1px to guarantee a perfect fit */
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  transform: translateX(0);
  transition: opacity .16s ease, transform .22s ease, width .22s ease;
}

.sidebar-collapse {
  position: absolute; /* Takes the button out of the horizontal flow entirely */
  top: 10px;          /* Pin to the top */
  right: 0px;         /* Pin to the right edge */
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  color: #9494a5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: none;
  transition: color .16s ease, transform .16s ease;
}

.sidebar-collapse:hover {
  background: transparent;
  color: var(--primary);
  transform: translateX(-2px);
}

.sidebar-collapse i,
.sidebar-collapse svg{
  width:16px;
  height:16px;
}

/* Every menu row uses the same icon and text grid. This fixes Earnings/Concall alignment. */
.sidebar .nav-item,
.sidebar .nav-subitem{
  display:grid;
  grid-template-columns:20px minmax(0,1fr);
  align-items:center;
  column-gap:11px;
  min-height:40px;
  padding:8px 10px;
  margin:3px 0;
  transform:none;
}

.sidebar .nav-item:hover,
.sidebar .nav-subitem:hover{
  transform:none;
}

.sidebar .nav-item i,
.sidebar .nav-subitem i,
.sidebar .nav-item svg,
.sidebar .nav-subitem svg{
  width:18px;
  height:18px;
  justify-self:center;
  flex:0 0 auto;
}

.sidebar .nav-item span,
.sidebar .nav-subitem span{
  min-width:0;
  max-width:100%;
  line-height:1.22;
  opacity:1;
  white-space:normal;
  overflow-wrap:anywhere;
  transition:opacity .14s ease, transform .2s ease;
}

.sidebar .nav-item,
.sidebar .nav-subitem{
  max-width:100%;
  overflow:hidden;
}

/* Research items are deliberately flat: same start position for icon + label. */
.sidebar .nav-group .nav-subitems{
  padding-left:0;
  margin-top:0;
}

.sidebar .nav-group .nav-subitem{
  font-size:13px;
  padding:8px 10px;
}

.sidebar .nav-label{
  height:auto;
  opacity:1;
  overflow:hidden;
  white-space:nowrap;
  transition:opacity .14s ease,height .2s ease,padding .2s ease,margin .2s ease;
}

.sidebar .user-mini-chevron{
  width:14px;
  color:#a4a4b0;
}

/* ------------------------ Collapsed rail ------------------------ */
.app-shell.sidebar-collapsed .sidebar{
  padding-left:8px;
  padding-right:8px;
}

/* In icon-only mode the scrollbar stays functional but is hidden.
   This prevents the scrollbar gutter from pushing the icons left. */
.app-shell.sidebar-collapsed .nav-scroll{
  padding-right:0;
  overflow-x:hidden;
  scrollbar-width:none;
  scrollbar-color:transparent transparent;
}

.app-shell.sidebar-collapsed .nav-scroll::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
}

.app-shell.sidebar-collapsed .sidebar-head{
  flex-direction:column;
  justify-content:center;
  gap:7px;
  min-height:88px;
  padding-top:12px;
}

.app-shell.sidebar-collapsed .sidebar .brand{
  width:42px;
  flex:0 0 40px;
  justify-content:center;
  padding:0;
}

.app-shell.sidebar-collapsed .brand-copy{
  position:absolute;
  width:0;
  opacity:0;
  pointer-events:none;
  transform:translateX(-8px);
}

.app-shell.sidebar-collapsed .sidebar-collapse {
  position: absolute; /* Restores the top-right pinning */
  top: 10px;
  right: 0px;
  margin: 0;
  width: 20px;
  height: 20px;
  transform: rotate(180deg); /* Keeps the arrow pointing right */
}

/* Adjust the hover state so it slides to the right when expanding */
.app-shell.sidebar-collapsed .sidebar-collapse:hover {
  transform: rotate(180deg) translateX(-2px); 
}

.app-shell.sidebar-collapsed .nav-label{
  height:7px;
  padding:0;
  margin:0 0 4px;
  opacity:0;
  pointer-events:none;
}

.app-shell.sidebar-collapsed .nav-group{
  margin-bottom:10px;
}

.app-shell.sidebar-collapsed .nav-item,
.app-shell.sidebar-collapsed .nav-subitem{
  width:46px;
  min-height:42px;
  margin:3px auto;
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  transform:none;
}

.app-shell.sidebar-collapsed .nav-item:hover,
.app-shell.sidebar-collapsed .nav-subitem:hover{
  transform:none;
}

.app-shell.sidebar-collapsed .nav-item span,
.app-shell.sidebar-collapsed .nav-subitem span{
  display:none;
}

.app-shell.sidebar-collapsed .nav-item i,
.app-shell.sidebar-collapsed .nav-subitem i,
.app-shell.sidebar-collapsed .nav-item svg,
.app-shell.sidebar-collapsed .nav-subitem svg{
  width:19px;
  height:19px;
}

.app-shell.sidebar-collapsed .sidebar-bottom{
  padding-top:9px;
}

.app-shell.sidebar-collapsed .user-mini{
  width:46px;
  min-height:46px;
  margin:7px auto 0;
  padding:6px;
  justify-content:center;
  background:#fafaff;
}

.app-shell.sidebar-collapsed .user-mini .meta,
.app-shell.sidebar-collapsed .user-mini-chevron{
  display:none;
}

.app-shell.sidebar-collapsed .user-mini .avatar{
  width:34px;
  height:34px;
}

/* The main pane remains full-height inside the rounded frame. */
.main{
  height:100%;
  min-height:0;
}

/* ------------------------ Mobile ------------------------ */
@media(max-width:820px){
  :root{
    --app-gap:7px;
    --app-radius:18px;
  }

  body:not(.auth-page){
    padding:var(--app-gap);
    overflow:auto;
  }

  .app-shell,
  .app-shell.sidebar-collapsed{
    width:100%;
    min-height:calc(100vh - (var(--app-gap) * 2));
    height:auto;
    display:block;
    border-radius:var(--app-radius);
  }

  .main{
    height:auto;
    min-height:calc(100vh - (var(--app-gap) * 2));
  }

  .sidebar{
    position:fixed;
    left:calc(-250px - var(--app-gap));
    top:var(--app-gap);
    bottom:var(--app-gap);
    width:240px;
    height:auto;
    min-height:0;
    padding:0 14px 14px;
    border-radius:var(--app-radius) 16px 16px var(--app-radius);
    box-shadow:20px 0 60px rgba(35,29,78,.15);
    transition:left .22s ease;
  }

  body.sidebar-open .sidebar{
    left:var(--app-gap);
  }

  .sidebar-collapse{
    display:none;
  }

  .sidebar-head{
    min-height:72px;
  }

  .app-shell.sidebar-collapsed .sidebar-head{
    flex-direction:row;
    justify-content:flex-start;
    min-height:72px;
  }

  .app-shell.sidebar-collapsed .sidebar .brand{
    width:auto;
    flex:1;
    justify-content:flex-start;
    padding:0 5px;
  }

  .app-shell.sidebar-collapsed .brand-copy{
    position:static;
    width:auto;
    opacity:1;
    pointer-events:auto;
    transform:none;
  }

  .app-shell.sidebar-collapsed .nav-label{
    height:auto;
    padding:0 10px 8px;
    margin:0;
    opacity:1;
    pointer-events:auto;
  }

  .app-shell.sidebar-collapsed .nav-group{
    margin:6px 0 20px;
  }

  .app-shell.sidebar-collapsed .nav-item,
  .app-shell.sidebar-collapsed .nav-subitem{
    width:100%;
    min-height:40px;
    margin:3px 0;
    padding:8px 10px;
    display:grid;
    grid-template-columns:20px minmax(0,1fr);
    justify-content:initial;
    border-radius:11px;
  }

  .app-shell.sidebar-collapsed .nav-item span,
  .app-shell.sidebar-collapsed .nav-subitem span{
    display:block;
  }

  .app-shell.sidebar-collapsed .user-mini{
    width:auto;
    min-height:0;
    margin:0;
    padding:10px;
    justify-content:flex-start;
  }

  .app-shell.sidebar-collapsed .user-mini .meta,
  .app-shell.sidebar-collapsed .user-mini-chevron{
    display:block;
  }
}

.client-company-context{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:10px 13px;border:1px solid #e6e2f5;border-radius:13px;background:linear-gradient(135deg,#fbfaff,#f6f3ff);color:#1f2937;}
.client-company-context-icon{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#ede9fe;color:#6d4aff;font-size:12px;font-weight:900;flex:0 0 auto;}
.client-company-context div{display:flex;flex-direction:column;gap:1px;min-width:0;}.client-company-context strong{font-size:12.5px;}.client-company-context div>span{font-size:10.5px;color:#7c8497;}
.client-portal-empty{padding:28px;text-align:center;color:#7c8497;}.client-record-list{display:grid;gap:10px;}
.client-record-item{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);}.client-record-item:last-child{border-bottom:0;}.client-record-item strong{font-size:12.5px;}.client-record-item p{margin:4px 0 0;font-size:11px;color:#7c8497;line-height:1.45;}



:root{
  --ircc-page-title-text:#232738;
  --ircc-page-title-accent:#6c4cf5;
}
.page-heading h1,
.ct-page-head h1,
.ec-page-head h1,
.et-page-head h1,
.em-client-head h1,
.ra-brand h1,
.ik-toolbar h1,
.ps-topbar-title h1{
  color:var(--ircc-page-title-text)!important;
  font-size:30px!important;
  line-height:1!important;
  font-weight:850!important;
  letter-spacing:-.045em!important;
}
.page-heading h1 strong,
.page-heading h1 .ircc-title-accent,
.ct-page-head h1 strong,
.ec-page-head h1 strong,
.et-page-head h1 strong,
.em-client-head h1 strong,
.ra-brand h1 strong,
.ik-toolbar h1 strong,
.ps-topbar-title h1 strong{
  color:var(--ircc-page-title-accent)!important;
  font-weight:850!important;
}
.page-heading{
  margin-top:2px!important;
  margin-bottom:14px!important;
}
.page-heading h1{
  margin:0!important;
}
.page-heading p{
  margin-top:5px!important;
  font-size:11px!important;
  line-height:1.35!important;
}
@media(max-width:760px){
  .page-heading h1,
  .ct-page-head h1,
  .ec-page-head h1,
  .et-page-head h1,
  .em-client-head h1,
  .ra-brand h1,
  .ik-toolbar h1,
  .ps-topbar-title h1{
    font-size:25px!important;
  }
}


.topbar .nav-search{position:relative;overflow:visible;z-index:55;}
.topbar .nav-search:focus-within{border-color:#d8cffb;box-shadow:0 0 0 3px rgba(108,76,245,.07),0 10px 28px rgba(55,43,113,.08);}
.topbar .nav-search input::-webkit-search-cancel-button{display:none;}
.topbar .nav-search-suggestions{
  display:none;position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:1300;
  max-height:min(430px,calc(100vh - 110px));overflow:auto;padding:7px;
  border:1px solid #e1dcfb;border-radius:16px;background:rgba(255,255,255,.985);
  box-shadow:0 22px 54px rgba(45,35,95,.16),0 5px 16px rgba(45,35,95,.07);
  backdrop-filter:blur(18px)
;}
.topbar .nav-search-suggestions.open{display:block;}
.topbar .nav-search-menu-label{padding:7px 9px 6px;font-size:9px;line-height:1;font-weight:850;letter-spacing:.14em;text-transform:uppercase;color:#8f86b5;}
.topbar .nav-search-suggestion{
  width:100%;min-height:49px;display:flex;align-items:center;gap:10px;padding:7px 9px;
  border:0;border-radius:12px;background:transparent;color:#303247;text-align:left;cursor:pointer
;}
.topbar .nav-search-suggestion:hover,.topbar .nav-search-suggestion.active{background:linear-gradient(90deg,#f4f1ff 0%,#faf8ff 100%);color:#5d42db;}
.topbar .nav-search-suggestion-icon{width:31px;height:31px;flex:0 0 31px;display:grid;place-items:center;border-radius:9px;background:#f2efff;color:#6b50e7;}
.topbar .nav-search-suggestion:hover .nav-search-suggestion-icon,.topbar .nav-search-suggestion.active .nav-search-suggestion-icon{background:#e9e3ff;color:#5e40db;}
.topbar .nav-search-suggestion-icon svg{width:14px;height:14px;}
.topbar .nav-search-suggestion-copy{min-width:0;display:flex;flex:1;flex-direction:column;gap:2px;}
.topbar .nav-search-suggestion-copy strong{font-size:11.5px;line-height:1.25;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.topbar .nav-search-suggestion-copy small{font-size:9px;line-height:1.25;font-weight:650;color:#9496a8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.topbar .nav-search-enter{width:25px;height:25px;flex:0 0 25px;display:grid;place-items:center;border-radius:8px;color:#aaa3c0;}
.topbar .nav-search-enter svg{width:13px;height:13px;}
.topbar .nav-search-suggestion:hover .nav-search-enter,.topbar .nav-search-suggestion.active .nav-search-enter{color:#6a50e4;background:#fff;}
.topbar .nav-search-empty{min-height:76px;display:flex;align-items:center;justify-content:center;gap:10px;padding:10px;color:#73758b;}
.topbar .nav-search-empty-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#f3f1f8;color:#8b88a1;}
.topbar .nav-search-empty-icon svg{width:15px;height:15px;}
.topbar .nav-search-empty>span:last-child{display:flex;flex-direction:column;gap:2px;}
.topbar .nav-search-empty strong{font-size:11px;color:#45465a;}
.topbar .nav-search-empty small{font-size:9px;color:#9495a5;}
@media(max-width:820px){.topbar .nav-search-suggestions{position:fixed;left:16px;right:16px;top:66px;}}


/* Windows / 720p-class laptops: preserve the split composition, but reduce
   the auth card footprint so browser chrome and shorter viewports do not
   make the experience feel oversized. */



@media (max-width:820px){
  .auth-visual{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    background:linear-gradient(145deg,#4f33cc,#6849e8 58%,#8d77f7);
  }
  .auth-visual:before{
    width:360px;
    height:360px;
    right:-210px;
    top:-175px;
  }
  .auth-visual:after{
    width:260px;
    height:260px;
    left:-150px;
    bottom:-170px;
  }
  .auth-brand{
    gap:9px;
  }
  .auth-brand img{
    padding:4px;
    border-radius:10px;
  }
  .auth-brand span{
    letter-spacing:-.01em;
  }
  .auth-copy{
    position:relative;
    left:auto;
    right:auto;
    bottom:auto;
  }
  .auth-copy h1{
    max-width:340px;
    letter-spacing:-.4em;
    margin:0 0 10px;
  }
  .auth-copy p{
    max-width:350px;
    margin:0;
    opacity:.84;
  }
  .auth-form{
    display:flex;
    flex-direction:column;

  }
  .auth-form h2{
    margin-bottom:6px;
  }
}

@media (max-width:580px){
  .auth-copy{
    margin-top:32px;
  }
}

/* Short mobile browser viewports keep the same full-screen composition, with
   slightly tighter spacing so the form remains comfortable without turning
   back into a floating compact card. */
@media (max-width:820px) and (max-height:700px){
  .auth-copy h1{

    margin-bottom:7px;
  }
}


@media (max-width:820px){
  .auth-page{
    min-height:100dvh;
    display:grid;
    place-items:stretch;
    background:
      radial-gradient(circle at 20% 12%,rgba(116,91,240,.11),transparent 34%),
      linear-gradient(145deg,#f6f5ff 0%,#ececfa 52%,#e5e7f7 100%);
  }

  .auth-shell{
    width:100%;
    box-shadow:0 18px 48px rgba(63,48,137,.16),0 3px 12px rgba(63,48,137,.06);
    overflow:hidden;
    grid-template-columns:1fr;
    background:#fff;
    border:1px solid rgba(82,62,168,.07);
  }

  .auth-visual{
    min-height:0;
    height:100%;
    padding:26px 26px 28px;
  }

  .auth-copy{
    margin-top:auto;
  }

  .auth-form{
    min-height:0;
    padding:34px 26px max(32px,env(safe-area-inset-bottom));

    background:#fff;
  }

  .auth-form h2{
    margin-top:0;
  }
}

@media (max-width:580px){
}

@media (max-width:820px) and (max-height:700px){

  .auth-shell{
    border-radius:20px;
  }

  .auth-visual{
    min-height:0;

  }

  .auth-copy{
    margin-top:auto;
  }
}


@media (max-width:820px){
}

@media (max-width:580px){
}

@media (max-width:820px) and (max-height:700px){
}


.auth-social-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin:0 0 15px;
}
.auth-social-btn{
  min-width:0;
  height:42px;
  border:1px solid #e4e4ed;
  border-radius:10px;
  background:#fff;
  color:#292a36;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 10px;
  font-size:11px;
  font-weight:700;
  line-height:1;
  box-shadow:0 2px 8px rgba(54,48,92,.035);
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease;
}
.auth-social-btn:hover{
  border-color:#cbc5e8;
  background:#fbfaff;
  box-shadow:0 5px 14px rgba(69,55,133,.07);
  transform:translateY(-1px);
}
.auth-social-btn:focus-visible{
  outline:none;
  border-color:#a99bf3;
  box-shadow:0 0 0 3px rgba(109,76,245,.10);
}
.auth-social-btn.apple{color:#111117;}
.auth-provider-icon{width:17px;height:17px;flex:0 0 17px;display:block;}
.auth-provider-icon.apple-icon{width:16px;height:18px;flex-basis:16px;}
.auth-divider{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 0 15px;
  line-height:1;
}
.auth-divider:before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:1px;
  background:#eeeeF4;
}
.auth-divider span{
  position:relative;
  z-index:1;
  background:#fff;
}
.auth-legal{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#9a9baa;
  line-height:1.3;
}
.auth-legal a{transition:color .16s ease;}
.auth-legal a:hover{color:var(--primary);}
.auth-legal span{color:#c2c2cc;}

/* Keep the approved 1280×720 Windows card compact after adding SSO. */


/* Mobile keeps one branded full-height card. Social buttons stack so the
   provider names stay readable on narrow 384px-class screens. */
@media (max-width:820px){
  .auth-shell{
    grid-template-rows:minmax(210px,28dvh) 1fr;
  }
  .auth-visual{padding-bottom:24px;}
  .auth-form{
    padding-bottom:max(24px,env(safe-area-inset-bottom));
  }
  .auth-form>.lead{margin-bottom:18px;}
  .auth-social-grid{
    grid-template-columns:1fr;
    gap:8px;
  }
}

@media (max-width:580px){
}

@media (max-width:820px) and (max-height:700px){
  .auth-visual{padding-top:17px;padding-bottom:17px;}
  .auth-form{padding-bottom:max(17px,env(safe-area-inset-bottom));}
  .auth-form .field input{padding-top:8px;padding-bottom:8px;}
}

/* Public legal pages share the same restrained SaaS visual language. */
.legal-page{
  min-height:100dvh;
  padding:28px;
  overflow:auto;
  background:radial-gradient(circle at 20% 10%,#f7f6ff,#ececfb 52%,#e4e6f6);
}
.legal-shell{
  width:min(860px,100%);
  margin:0 auto;
  background:#fff;
  border:1px solid rgba(81,65,154,.08);
  border-radius:22px;
  box-shadow:0 20px 55px rgba(65,53,127,.12);
  overflow:hidden;
}
.legal-head{
  padding:28px 32px 25px;
  color:#fff;
  background:linear-gradient(145deg,#4f33cc,#6849e8 58%,#8d77f7);
}
.legal-brand{display:flex;align-items:center;gap:9px;margin-bottom:22px;font-size:12px;font-weight:750;}
.legal-brand img{width:30px;height:30px;padding:4px;border-radius:9px;background:#fff;object-fit:contain;}
.legal-head h1{margin:0 0 7px;font-size:28px;letter-spacing:-.04em;}
.legal-head p{margin:0;font-size:11px;opacity:.82;}
.legal-content{padding:30px 32px 34px;color:#454657;font-size:12px;line-height:1.72;}
.legal-content h2{margin:24px 0 6px;color:#1d1e2c;font-size:14px;letter-spacing:-.015em;}
.legal-content h2:first-child{margin-top:0;}
.legal-content p{margin:0 0 10px;}
.legal-content ul{margin:7px 0 12px;padding-left:19px;}
.legal-content li{margin:4px 0;}
.legal-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 32px;border-top:1px solid #eeeeF4;color:#8f909f;font-size:10px;}
.legal-actions a{color:#6248db;font-weight:700;}
@media(max-width:580px){
  .legal-page{padding:14px;}
  .legal-shell{border-radius:18px;}
  .legal-head{padding:23px 22px 21px;}
  .legal-head h1{font-size:24px;}
  .legal-content{padding:24px 22px 28px;font-size:11.5px;}
  .legal-actions{padding:14px 22px;flex-direction:column;align-items:flex-start;}
}


.auth-divider{
  font-size:10.5px;
  font-weight:750;
  letter-spacing:.055em;
  text-transform:uppercase;
  color:#88899a;
}
.auth-divider span{
  padding:0 12px;
}
.auth-legal{
  margin-top:17px;
  font-size:10.5px;
  font-weight:550;
  gap:9px;
}
.auth-legal a{
  color:#68697b;
}

/* Keep 720p Windows readable without growing the approved card. */


/* Mobile readability: larger brand/copy, controls and legal text, plus
   a little more breathing room around the full-height auth card. */
@media (max-width:820px){
  .auth-page{
    padding:17px;
  }
  .auth-shell{
    min-height:calc(100dvh - 34px);
    border-radius:25px;
  }
  .auth-brand img{
    width:38px;
    height:38px;
  }
  .auth-brand span{
    font-size:15.5px;
    font-weight:700;
  }
  .auth-copy h1{
    font-size:23px;
    line-height:1.1;
  }
  .auth-copy p{
    font-size:12px;
    line-height:1.5;
  }
  .auth-form h2{
    font-size:28px;
    line-height:1.08;
  }
  .auth-form>.lead{
    font-size:13px;
    line-height:1.4;
  }
  .auth-social-btn{
    height:45px;
    font-size:12.5px;
    gap:9px;
    border-radius:11px;
  }
  .auth-provider-icon{
    width:18px;
    height:18px;
    flex-basis:18px;
  }
  .auth-provider-icon.apple-icon{
    width:17px;
    height:19px;
    flex-basis:17px;
  }
  .auth-divider{
    font-size:11.5px;
    letter-spacing:.08em;
  }
  .auth-divider span{
    padding:0 13px;
  }
  .auth-form .field{
    gap:7px;
  }
  .auth-form .field label{
    font-size:12px;
    font-weight:750;
  }
  .auth-form .field input{
    min-height:47px;
    padding:11px 13px;
    font-size:14px;
    border-radius:12px;
  }
  .auth-form .primary-btn{
    height:47px;
    font-size:14px;
    border-radius:12px;
  }
  .auth-form .primary-btn i{
    width:18px;
    height:18px;
  }
  .auth-legal{
    font-size:11.5px;
    font-weight:600;
    gap:9px;
  }
}

@media (max-width:580px){
  .auth-shell{
    grid-template-rows:minmax(210px,28dvh) 1fr;
  }
  .auth-form .field input{
    min-height:47px;
  }
}

/* Do not collapse the mobile interface back to tiny controls on short
   browser viewports; allow scrolling instead of sacrificing legibility. */
@media (max-width:820px) and (max-height:700px){
  .auth-page{padding:14px;}
  .auth-shell{
    min-height:calc(100dvh - 28px);
    grid-template-rows:minmax(185px,27dvh) 1fr;
    overflow:auto;
  }
  .auth-visual{padding:20px 22px;}
  .auth-brand img{width:35px;height:35px;}
  .auth-brand span{font-size:14.5px;}
  .auth-copy h1{font-size:21px;}
  .auth-copy p{font-size:11px;line-height:1.42;}
  .auth-form{padding:19px 22px max(19px,env(safe-area-inset-bottom));}
  .auth-form h2{font-size:25px;}
  .auth-form>.lead{font-size:12px;margin-bottom:13px;}
  .auth-divider{font-size:10.5px;}
  .auth-form .field label{font-size:11.5px;}
  .auth-form .field input{min-height:42px;font-size:13px;padding:9px 12px;}
  .auth-form .primary-btn{height:42px;font-size:13px;}
  .auth-legal{font-size:10.5px;}
}



.auth-input-wrap{
  position:relative;
  width:100%;
}
.auth-input-wrap > i,
.auth-input-wrap > svg{
  position:absolute;
  left:13px;
  top:50%;
  width:16px;
  height:16px;
  transform:translateY(-50%);
  color:#8b8c9b;
  stroke-width:1.9;
  pointer-events:none;
  z-index:2;
  transition:color .16s ease;
}
.auth-form .field .auth-input-wrap input{
  padding-left:39px;
}
.auth-input-wrap:focus-within > i,
.auth-input-wrap:focus-within > svg{
  color:#6849e8;
}

@media (max-width:820px){
  .auth-input-wrap > i,
  .auth-input-wrap > svg{
    left:14px;
    width:18px;
    height:18px;
  }
  .auth-form .field .auth-input-wrap input{
    padding-left:43px;
  }
}

@media (max-width:820px) and (max-height:700px){
  .auth-input-wrap > i,
  .auth-input-wrap > svg{
    left:12px;
    width:17px;
    height:17px;
  }
  .auth-form .field .auth-input-wrap input{
    padding-left:39px;
  }
}


.auth-form .field .auth-input-wrap input::placeholder{
  font-size:13px;
  font-weight:400;
  letter-spacing:0;
  color:#9798a6;
  opacity:1;
}

@media (max-width:820px){
  .auth-form .field .auth-input-wrap input::placeholder{
    font-size:14px;
    font-weight:400;
  }
}

@media (max-width:820px) and (max-height:700px){
  .auth-form .field .auth-input-wrap input::placeholder{
    font-size:13px;
  }
}



.social-label-short{display:none;}

@media (max-width:580px){
  .auth-social-btn .social-label-short{
    font-weight:700;
    line-height:1;
  }
}

@media (max-width:820px) and (max-height:700px){
  .auth-social-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .social-label-full{display:none;}
  .social-label-short{display:inline;}
  .auth-social-btn{
    height:40px;
    font-size:11px;
    padding:0 7px;
    gap:6px;
  }
}



@media (max-width:820px){
  .auth-form{
    justify-content:flex-start;
    height:100%;
  }
}

/* Keep the same spread behavior on browser-shortened phone
   viewports (mobile Chrome/Samsung browser bars included). */
@media (max-width:820px) and (max-height:700px){
  .auth-form{
    justify-content:flex-start;
    height:100%;
  }
}



@media (max-width:820px){
  .auth-form{
    padding-top:30px;
  }
  .auth-form > .lead{
    margin-bottom:22px;
  }
  .auth-social-grid{
    margin-top:6px;
    margin-bottom:18px;
  }
  .auth-divider{
    margin-bottom:16px;
  }
  .auth-form form{
    margin-top:8px;
  }
  .auth-form .field{
    margin-bottom:15px;
  }
  .auth-form .primary-btn{
    margin-top:6px;
  }
  .auth-legal{
    margin-top:22px;
    padding-top:0;
  }
}

@media (max-width:580px){
  .auth-social-grid{
    margin-top:8px;
  }
  .auth-form form{
    margin-top:10px;
  }
}

@media (max-width:820px) and (max-height:700px){
  .auth-form{
    padding-top:22px;
  }
  .auth-form > .lead{
    margin-bottom:16px;
  }
  .auth-social-grid{
    margin-top:5px;
    margin-bottom:13px;
  }
  .auth-divider{
    margin-bottom:12px;
  }
  .auth-form form{
    margin-top:6px;
  }
  .auth-form .field{
    margin-bottom:12px;
  }
  .auth-legal{
    margin-top:18px;
    padding-top:0;
  }
}



/* =========================================================
   CANONICAL RESPONSIVE PROFILE — (min-width:821px) and (max-height:760px)
   Safely consolidated equivalent breakpoint groups.
   ========================================================= */
@media (min-width:821px) and (max-height:760px){
  /* Component group 1 */
  .auth-page{
    padding:20px;
  }
  .auth-shell{
    grid-template-columns:1.02fr .98fr;
  }
  .auth-brand{
    gap:8px;
  }
  .auth-brand img{
    width:30px;
    height:30px;
    padding:4px;
    border-radius:9px;
  }
  .auth-brand span{
    font-size:1rem;
  }
  .auth-copy h1{
    margin-bottom:10px;
  }
  .auth-copy p{
    line-height:1.55;
  }
  .auth-form h2{
    font-size:23px;
    margin-bottom:5px;
  }
  .auth-form>.lead{
    font-size:11px;
  }
  .auth-form .field{
    gap:5px;
  }
  .auth-form .field label{
    font-size:10px;
  }
  .auth-form .field input{
    min-height:39px;
    padding:9px 11px;
    border-radius:9px;
    font-size:12px;
  }
  .auth-form .primary-btn{
    height:40px;
    border-radius:9px;
    font-size:12px;
  }
  .auth-form .primary-btn i{
    width:15px;
    height:15px;
  }
  .auth-form .alert{
    padding:9px 11px;
    margin-bottom:10px;
    font-size:10px;
  }

  /* Component group 2 */
  .auth-form>.lead{margin-bottom:15px;}
  .auth-social-grid{gap:7px;margin-bottom:11px;}
  .auth-social-btn{height:36px;border-radius:8px;font-size:9.5px;gap:6px;padding:0 7px;}
  .auth-provider-icon{width:14px;height:14px;flex-basis:14px;}
  .auth-provider-icon.apple-icon{width:13px;height:15px;flex-basis:13px;}
  .auth-form .field{margin-bottom:9px;}
  .auth-form .primary-btn{margin-top:1px;}

  /* Component group 3 */
  .auth-divider{font-size:9.5px;margin-bottom:10px;}
  .auth-divider span{padding:0 9px;}
  .auth-legal{margin-top:10px;font-size:9.5px;gap:7px;}

  /* Component group 4 */
  .auth-shell{
    width:min(800px,100%);
    min-height:450px;
    border-radius:21px;
  }
  .auth-visual{
    padding:30px;
  }
  .auth-copy{
    left:30px;
    right:30px;
    bottom:30px;
  }
  .auth-copy h1{
    font-size:27px;
  }
  .auth-copy p{
    font-size:10.5px;
    max-width:310px;
  }
  .auth-form{
    padding:30px 32px;
  }

}


/* Keep the longest primary navigation label on one line on normal desktop. */


@media (min-width:821px) and (max-width:1366px) and (max-height:800px){
  :root{
    --app-gap:8px;
    --app-radius:18px;
    --sidebar-expanded:198px;
    --sidebar-collapsed:64px;
  }

  body:not(.auth-page){
    padding:var(--app-gap);
  }

  .app-shell{
    height:calc(100dvh - (var(--app-gap) * 2));
    border-radius:var(--app-radius);
  }

  /* Sidebar: same visual language, reduced physical footprint. */
  .sidebar{
    padding:0 9px 8px;
  }
  .sidebar-head{
    min-height:58px;
    padding:9px 0 6px;
  }
  .sidebar .brand{
    gap:7px;
    padding-left:3px;
  }
  .sidebar .brand img{
    width:21px;
    height:21px;
    flex-basis:21px;
  }
  .brand-copy{
    font-size:12px;
  }
  .brand small{
    font-size:9px;
  }
  .sidebar-collapse{
    top:7px;
    width:18px;
    height:18px;
  }
  .sidebar-collapse i,
  .sidebar-collapse svg{
    width:14px;
    height:14px;
  }
  .nav-group{
    margin:3px 0 10px;
  }
  .sidebar .nav-label{
    padding:0 7px 4px;
    font-size:8px;
    letter-spacing:.105em;
  }
  .sidebar .nav-item,
  .sidebar .nav-subitem{
    grid-template-columns:17px minmax(0,1fr);
    column-gap:8px;
    min-height:31px;
    padding:5px 7px;
    margin:1px 0;
    border-radius:9px;
    font-size:11px;
  }
  .sidebar .nav-item i,
  .sidebar .nav-subitem i,
  .sidebar .nav-item svg,
  .sidebar .nav-subitem svg{
    width:15px;
    height:15px;
  }
  .sidebar .nav-item[data-nav-text="shareholding analysis"] span{
    font-size:10.5px;
  }
  .sidebar-bottom{
    padding-top:7px;
  }
  .user-mini{
    gap:7px;
    padding:7px;
    border-radius:10px;
  }
  .avatar{
    width:28px;
    height:28px;
    font-size:10px;
  }
  .user-mini strong{
    font-size:10px;
  }
  .user-mini span{
    font-size:8.5px;
  }

  /* Top bar: reduce the perceived zoom without changing the large-screen design. */
  .topbar{
    height:56px;
    padding:9px 16px 7px;
    gap:12px;
  }
  .search{
    height:34px;
    max-width:500px;
    padding:0 10px;
    border-radius:10px;
  }
  .search i,
  .search svg{
    width:14px;
    height:14px;
  }
  .search input{
    padding:0 8px;
    font-size:10.5px;
  }
  .search kbd{
    font-size:8px;
    padding:3px 6px;
    border-radius:6px;
  }
  .top-actions{
    gap:7px;
  }
  .icon-btn,
  .soft-btn,
  .primary-btn{
    height:34px;
    border-radius:9px;
    padding:0 10px;
    gap:6px;
    font-size:10.5px;
  }
  .icon-btn{
    width:34px;
    padding:0;
  }
  .icon-btn i,
  .icon-btn svg,
  .soft-btn i,
  .soft-btn svg,
  .primary-btn i,
  .primary-btn svg{
    width:14px;
    height:14px;
  }
  .top-actions .avatar{
    width:26px!important;
    height:26px!important;
  }

  /* Shared content density for Windows laptop pages. */
  .content{
    padding:10px 14px 18px;
  }
  .page-heading{
    gap:12px;
    margin:2px 0 11px;
  }
  .page-heading h1{
    font-size:19px;
  }
  .page-heading p{
    font-size:10px;
  }
  .grid{
    gap:10px;
  }
  .card{
    border-radius:14px;
    padding:12px;
  }
  .card-header{
    margin-bottom:10px;
  }
  .card-title{
    font-size:12px;
  }
  .card-subtitle{
    font-size:9.5px;
  }
}



@media (max-width:580px){

  .auth-page{

    min-width:100%!important;


    overflow-x:hidden!important;
    overflow-y:auto!important;

  }

  /* -------------------------------------------------------
     PURPLE BRAND / HERO — edge to edge, never a card
     ------------------------------------------------------- */

  .auth-visual:before{
    content:""!important;
    position:absolute!important;
    border:0!important;
    border-radius:0!important;
    transform:rotate(38deg)!important;
    background:linear-gradient(145deg,rgba(255,255,255,.16),rgba(255,255,255,0))!important;
    opacity:.72!important;
  }

  .auth-visual:after{
    content:""!important;
    position:absolute!important;
    border:0!important;
    border-radius:0!important;
    transform:none!important;
    background:
      radial-gradient(circle at 14% 48%,rgba(255,255,255,.20) 0 1px,transparent 2px),
      radial-gradient(circle at 30% 68%,rgba(255,255,255,.16) 0 1px,transparent 2px),
      radial-gradient(circle at 48% 34%,rgba(255,255,255,.18) 0 1px,transparent 2px),
      radial-gradient(circle at 66% 64%,rgba(255,255,255,.16) 0 1px,transparent 2px),
      radial-gradient(circle at 84% 39%,rgba(255,255,255,.18) 0 1px,transparent 2px),
      linear-gradient(25deg,transparent 0 49.5%,rgba(255,255,255,.09) 50% 50.5%,transparent 51%) 0 0/92px 66px,
      linear-gradient(-27deg,transparent 0 49.5%,rgba(255,255,255,.075) 50% 50.5%,transparent 51%) 0 0/112px 78px!important;
    opacity:.6!important;
  }

  /* -------------------------------------------------------
     WHITE LOGIN PANEL — this is the ONLY curved surface
     ------------------------------------------------------- */

  .social-label-full{display:none!important;}
  .social-label-short{display:inline!important;font-weight:750!important;}

  .auth-form .field label{


    text-align:left!important;
  }

  /* Restore leading field icons. */
  .auth-input-wrap{
    position:relative!important;
  }

  .auth-input-wrap > i,
  .auth-input-wrap > svg{

    position:absolute!important;
    z-index:2!important;

  }

  .auth-form .field .auth-input-wrap:focus-within input{
    border-color:#cfc6fb!important;
    box-shadow:0 0 0 3px rgba(108,76,245,.07)!important;
  }

  .auth-legal{
    padding-top:0!important;

  }

  .auth-form .alert{
    margin:0 0 13px!important;
    padding:9px 11px!important;
    border-radius:10px!important;
    font-size:10.5px!important;
  }
}

@media (max-width:580px) and (max-height:760px){

  .auth-brand{margin-top:3px!important;}
  .auth-brand img{width:42px!important;height:42px!important;flex-basis:42px!important;}
  .auth-brand span{font-size:16.5px!important;}
  .auth-copy h1{margin-bottom:9px!important;}
  .auth-copy p{font-size:11.5px!important;}

  .auth-form{
    min-height:calc(100dvh - 232px)!important;
    padding-top:31px!important;
  }

  .auth-form>.lead{margin-bottom:18px!important;}
  .auth-social-grid{margin-bottom:14px!important;}
  .auth-divider{margin-bottom:14px!important;}
  .auth-form .field{margin-bottom:12px!important;}
  .auth-legal{margin-top:18px!important;}
}


@media (max-width:580px){

  /* Restore the original IRCC purple gradient. */
  .auth-visual{
    flex-basis:clamp(298px,37dvh,326px)!important;
  }

  /* Restore the original subtle circular background treatment. */
  .auth-visual:before,
  .auth-visual:after{
    position:absolute!important;

    border:1px solid rgba(255,255,255,.16)!important;
    border-radius:50%!important;

    background:transparent!important;
    transform:none!important;
    opacity:1!important;
  }

  .auth-visual:before{
    width:360px!important;
    height:360px!important;
    right:-210px!important;
    top:-175px!important;
    left:auto!important;
    bottom:auto!important;
  }

  .auth-visual:after{
    width:260px!important;
    height:260px!important;
    left:-150px!important;
    bottom:-170px!important;
    right:auto!important;
    top:auto!important;
  }

  /* Move logo + product title slightly upward. */
  .auth-brand{
    margin-top:0!important;

  }

  /* Move headline/description upward while leaving more purple
     breathing room below the description before the white panel. */

  /* Keep the overlapping card effect while increasing the visible
     purple gap below the hero description. */
}

@media (max-width:580px) and (max-height:760px){
  .auth-visual{
    flex-basis:278px!important;
    min-height:278px!important;
    height:278px!important;
    padding-top:20px!important;
    padding-bottom:54px!important;
  }

  .auth-brand{
    transform:translateY(-3px)!important;
  }

  .auth-copy{
    bottom:62px!important;
  }

  .auth-copy h1{
    font-size:27.5px!important;
  }
}


.auth-forgot-row{
  display:none;
}

@media (max-width:580px){

  /* Center the icon box mathematically within the input instead of relying
     on the glyph's own visual baseline. */

  /* Give the placeholder / entered value a little more breathing room
     after the leading icon. */
  .auth-form .field .auth-input-wrap input{
    padding-left:47px!important;
    padding-right:14px!important;

  }

  .auth-form .field .auth-input-wrap input::placeholder{
    line-height:1.2!important;
  }

  .auth-forgot-link{
    position:relative!important;
    z-index:2!important;


    letter-spacing:-.005em!important;
  }

  .auth-forgot-link:hover,
  .auth-forgot-link:focus-visible{
    color:#5638d1!important;
    text-decoration:underline!important;
    text-underline-offset:2px!important;
  }

  /* The link now owns the space immediately above Sign in. */
}

@media (max-width:580px) and (max-height:760px){
  .auth-forgot-row{
    margin-top:-4px!important;
    margin-bottom:10px!important;
  }
}


@media (max-width:580px){

  /* Use a little less vertical space for the hero so the complete
     sign-in form + legal footer stays inside the visible viewport. */

  /* The form owns the remaining viewport height. */
}

/* Extra compression for short Android/Chrome viewports.
   This prevents browser UI + safe-area from pushing Terms/Privacy below
   the bottom edge, while keeping all controls comfortable to tap. */
@media (max-width:580px) and (max-height:720px){

  .auth-brand img{
    padding:5px!important;
  }

  .auth-form .field{
    gap:4px!important;
  }
}

/* Very short viewport safeguard. */
@media (max-width:580px) and (max-height:650px){

  .auth-form>.lead{
    margin-bottom:8px!important;
  }
}


@media (max-width:580px){

  
  .auth-visual{

    padding-top:19px!important;
    padding-bottom:54px!important;
  }

  /* Slightly relax the form spacing again so the white panel feels
     deliberately filled instead of having all content crowded at the top. */
  .auth-form{
    margin-top:-24px!important;
    padding-top:28px!important;
    padding-bottom:max(15px,env(safe-area-inset-bottom))!important;
  }

  .auth-form h2{
    margin-bottom:6px!important;
  }

  .auth-form>.lead{
    margin-bottom:17px!important;
  }

  .auth-social-grid{
    margin-bottom:13px!important;
  }

  .auth-divider{
    margin-bottom:13px!important;
  }
}


@media (max-width:580px) and (max-height:720px){

  .auth-copy{
    bottom:52px!important;
  }

  .auth-social-grid{
    margin-bottom:9px!important;
  }

  .auth-divider{
    margin-bottom:10px!important;
  }

  .auth-form .field{
    margin-bottom:9px!important;
  }

  .auth-legal{
    margin-bottom:2px!important;
  }
}


@media (max-width:580px) and (max-height:650px){

  .auth-copy{
    bottom:44px!important;
  }

  .auth-form{
    padding-bottom:max(7px,env(safe-area-inset-bottom))!important;
  }
}


.auth-illustration-v20{display:none;}

@media (max-width:580px){

  html:has(.auth-page),
  body:has(.auth-page){
    width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    margin:0!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
    background:#fff!important;
  }

  .auth-page{
    width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    overflow:hidden!important;
    background:#fff!important;
  }

  .auth-shell{
    width:100%!important;
    max-width:none!important;
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    background:#fff!important;
  }

  .auth-visual{
    position:relative!important;
    flex:0 0 clamp(330px,50dvh,420px)!important;
    width:100%!important;
    min-height:330px!important;
    height:clamp(330px,50dvh,420px)!important;
    max-height:420px!important;
    margin:0!important;
    padding:17px 18px 32px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    color:#202231!important;
    text-align:center!important;

    border-radius:0!important;

    overflow:hidden!important;
  }

  .auth-visual:before,
  .auth-visual:after{
    display:none!important;
    content:none!important;
  }

  .auth-brand{
    position:relative!important;
    z-index:2!important;
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:9px!important;
    width:100%!important;
    margin:0 auto 10px!important;
    padding:0!important;
    color:#252737!important;
    transform:none!important;
  }

  .auth-brand img{
    width:30px!important;
    height:30px!important;
    flex:0 0 30px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    object-fit:contain!important;
    box-shadow:none!important;
  }

  .auth-brand span{
    color:#252737!important;
    font-size:16px!important;
    line-height:1!important;
    font-weight:800!important;
    letter-spacing:-.025em!important;
    white-space:nowrap!important;
  }

  .auth-copy{
    position:relative!important;
    inset:auto!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    z-index:2!important;
    flex:1 1 auto!important;
    min-height:0!important;
    width:100%!important;
    max-width:440px!important;
    margin:0 auto!important;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    text-align:center!important;
    color:#222431!important;
  }

  .auth-copy h1{
    order:1!important;
    flex:0 0 auto!important;
    width:100%!important;
    max-width:350px!important;
    margin:0 auto 2px!important;

    font-size:24px!important;
    line-height:1.04!important;

    letter-spacing:-.04em!important;
    text-wrap:balance!important;
  }

  .auth-illustration-v20{
    order:2!important;
    flex:1 1 auto!important;
    min-height:0!important;
    width:100%!important;
    margin:0 auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
  }

  .auth-illustration-v20 img{
    display:block!important;
    max-width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
    border:0!important;
    filter:none!important;
  }

  .auth-copy p{
    order:3!important;
    flex:0 0 auto!important;
    width:100%!important;
    margin:3px auto 0!important;
    opacity:1!important;
  }

  .auth-form{
    position:relative!important;
    z-index:5!important;
    flex:1 1 auto!important;
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    border:0!important;
    overflow:hidden!important;
  }

  .auth-form h2{
    color:#171925!important;
    font-weight:850!important;
    text-align:left!important;
  }

  .auth-form>.lead{
    color:#878a98!important;
    font-weight:500!important;
    text-align:left!important;
  }

  .auth-social-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .auth-social-btn{
    border:1px solid #dfdfe6!important;
    background:#fff!important;
    box-shadow:none!important;
    color:#232530!important;
    font-weight:750!important;
  }

  .auth-divider{
    color:#858895!important;
    line-height:1!important;
    font-weight:800!important;
    letter-spacing:.05em!important;
  }

  .auth-divider:before{background:#ececf1!important;}
  .auth-divider span{background:#fff!important;}

  .auth-form form{margin:0!important;}

  .auth-form .field label{
    color:#4e5060!important;

    font-weight:750!important;
  }

  .auth-input-wrap > i,
  .auth-input-wrap > svg{
    top:0!important;
    bottom:0!important;
    margin:auto 0!important;
    transform:none!important;
    display:block!important;
    color:#9295a4!important;
    pointer-events:none!important;
  }

  .auth-form .field .auth-input-wrap input{
    border:1px solid #dfdfe6!important;
    background:#fbfbfd!important;
    color:#30323f!important;
    line-height:1.2!important;
    font-weight:500!important;
    text-align:left!important;
    box-shadow:none!important;
  }

  .auth-form .field .auth-input-wrap input::placeholder{
    color:#9699a7!important;
    opacity:1!important;
    font-weight:450!important;
    text-align:left!important;
  }

  .auth-form .primary-btn{
    width:100%!important;
    margin-top:0!important;
    border:0!important;
    background:linear-gradient(135deg,#6446e4 0%,#754df0 58%,#8259f6 100%)!important;
    color:#fff!important;
    font-weight:750!important;
    box-shadow:0 8px 18px rgba(100,67,224,.18)!important;
  }

  .auth-legal{
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    color:#6d707e!important;
  }

  .auth-legal a{color:#5f6270!important;}
  .auth-legal span{color:#b3b5bf!important;}
}

@media (max-width:580px) and (max-height:720px){
  .auth-visual{
    flex-basis:318px!important;
    min-height:318px!important;
    height:318px!important;
    max-height:318px!important;
    padding-top:13px!important;
    padding-bottom:26px!important;
  }

  .auth-brand{margin-bottom:7px!important;}
  .auth-brand img{width:27px!important;height:27px!important;flex-basis:27px!important;}
  .auth-brand span{font-size:14.5px!important;}
  .auth-copy h1{font-size:21.5px!important;}

  .auth-form{
    margin-top:-7px!important;
    padding-top:16px!important;
    padding-bottom:max(6px,env(safe-area-inset-bottom))!important;
  }
}

@media (max-width:580px) and (max-height:650px){
  .auth-visual{
    flex-basis:285px!important;
    min-height:285px!important;
    height:285px!important;
    max-height:285px!important;
  }

  .auth-copy h1{font-size:20px!important;}

  .auth-form{padding-top:13px!important;}
  .auth-divider{margin-bottom:5px!important;}
  .auth-form .field{margin-bottom:5px!important;}
}


@media (max-width:580px){

  .auth-form{
    padding:22px 30px 0!important;
    margin:-8px 0 0!important;
  }

  .auth-form h2{
    margin:0 0 6px!important;
    font-size:29px!important;
    line-height:1.04!important;
    letter-spacing:-.038em!important;
  }

  .auth-form>.lead{
    margin:0 0 13px!important;
    font-size:12.2px!important;
    line-height:1.32!important;
  }

  .auth-social-grid{
    gap:10px!important;
    margin:0 0 9px!important;
  }

  .auth-social-btn{
    height:45px!important;
    padding:0 12px!important;
    gap:8px!important;
    border-radius:11px!important;
    font-size:12px!important;
  }

  .auth-provider-icon{
    width:18px!important;
    height:18px!important;
    flex-basis:18px!important;
  }

  .auth-provider-icon.apple-icon{
    width:18px!important;
    height:20px!important;
    flex-basis:18px!important;
  }

  .auth-divider{
    margin:0 0 9px!important;
    font-size:9.5px!important;
  }

  .auth-divider span{
    padding:0 12px!important;
  }

  .auth-form .field{
    gap:5px!important;
    margin-bottom:9px!important;
  }

  .auth-form .field label{
    font-size:11.2px!important;
    line-height:1.1!important;
  }

  .auth-input-wrap > i,
  .auth-input-wrap > svg{
    left:16px!important;
    width:18px!important;
    height:18px!important;
  }

  .auth-form .field .auth-input-wrap input{
    min-height:48px!important;
    height:48px!important;
    padding:0 14px 0 48px!important;
    border-radius:11px!important;
    font-size:12.8px!important;
  }

  .auth-form .field .auth-input-wrap input::placeholder{
    font-size:12.5px!important;
  }

  .auth-form .primary-btn{
    height:49px!important;
    min-height:49px!important;
    border-radius:11px!important;
    font-size:13.5px!important;
  }

  .auth-form .primary-btn i,
  .auth-form .primary-btn svg{
    width:20px!important;
    height:20px!important;
  }

  .auth-legal{

    padding-bottom:0!important;
  }
}

/* Keep the larger visual treatment, but compress just enough on short
   browser viewports so the page remains non-scrollable. */
@media (max-width:580px) and (max-height:720px){

  .auth-form{
    padding:18px 28px 0!important;
  }

  .auth-form h2{
    font-size:26px!important;
  }

  .auth-form>.lead{
    margin-bottom:9px!important;
    font-size:11px!important;
  }

  .auth-social-btn{
    height:41px!important;
    font-size:11.2px!important;
  }

  .auth-provider-icon{
    width:17px!important;
    height:17px!important;
    flex-basis:17px!important;
  }

  .auth-form .field label{
    font-size:10.4px!important;
  }

  .auth-input-wrap > i,
  .auth-input-wrap > svg{
    width:17px!important;
    height:17px!important;
  }

  .auth-form .field .auth-input-wrap input{
    min-height:43px!important;
    height:43px!important;
    font-size:11.8px!important;
  }

  .auth-form .field .auth-input-wrap input::placeholder{
    font-size:11.6px!important;
  }

  .auth-form .primary-btn{
    height:44px!important;
    min-height:44px!important;
    font-size:12.4px!important;
  }

  .auth-legal{
    margin-top:7px!important;
    font-size:9px!important;
  }
}

@media (max-width:580px) and (max-height:650px){

  .auth-form{
    padding:14px 26px 0!important;
  }

  .auth-form h2{
    font-size:23px!important;
  }

  .auth-form>.lead{
    font-size:10px!important;
  }

  .auth-social-btn{
    height:37px!important;
    font-size:10.4px!important;
  }

  .auth-form .field .auth-input-wrap input{
    min-height:39px!important;
    height:39px!important;
  }

  .auth-form .primary-btn{
    height:40px!important;
    min-height:40px!important;
    font-size:11.5px!important;
  }

  .auth-legal{
    margin-top:5px!important;
    font-size:8.6px!important;
  }
}


@media (max-width:580px){

  /* 1) Make the upper informational area visibly distinct from the white form. */

  /* 2) Give the illustration proper breathing room. */
  .auth-copy h1{
    margin-bottom:10px!important;
  }

  .auth-illustration-v20{
    margin-top:10px!important;
    margin-bottom:14px!important;
    padding-top:4px!important;
    padding-bottom:4px!important;
  }

  .auth-illustration-v20 img{
    width:min(90vw,370px)!important;
    max-height:214px!important;
  }

  /* 3) Stronger contrast + larger descriptive text. */
  .auth-copy p{
    max-width:370px!important;
    margin-top:0!important;
    margin-bottom:4px!important;
    font-size:12.35px!important;
    line-height:1.36!important;

    letter-spacing:-.012em!important;
  }

  /* 4) Real touch target for Forgot password. The visible text stays compact,
        but the tappable area is much larger and separated from the input. */
  .auth-forgot-row{
    min-height:42px!important;
    margin:2px 0 7px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
  }

  .auth-forgot-link{
    min-width:138px!important;
    min-height:42px!important;
    padding:0 2px 0 14px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    color:#6848de!important;
    font-size:11.4px!important;
    line-height:1.1!important;
    font-weight:750!important;
    text-decoration:none!important;
  }
}


@media (max-width:580px) and (max-height:720px){

  .auth-visual{
    background:
      linear-gradient(180deg,#f5f1ff 0%,#f8f5ff 58%,#fbf9ff 100%)!important;
  }

  .auth-copy h1{
    margin-bottom:9px!important;
  }

  .auth-illustration-v20{
    margin-top:8px!important;
    margin-bottom:12px!important;
    padding-top:3px!important;
    padding-bottom:3px!important;
  }

  .auth-illustration-v20 img{
    width:min(88vw,345px)!important;
    max-height:192px!important;
  }

  .auth-copy p{
    max-width:365px!important;
    margin-top:0!important;
    margin-bottom:2px!important;
    color:#4b485a!important;
    font-size:11.65px!important;
    line-height:1.34!important;
    font-weight:560!important;
  }

  .auth-forgot-row{
    min-height:36px!important;
    margin:2px 0 6px!important;
  }

  .auth-forgot-link{
    min-width:132px!important;
    min-height:36px!important;
    padding-left:12px!important;
    font-size:10.9px!important;
  }
}

@media (max-width:580px) and (max-height:650px){

  .auth-illustration-v20{
    margin-top:6px!important;
    margin-bottom:9px!important;
  }

  .auth-illustration-v20 img{
    max-height:164px!important;
  }

  .auth-copy p{
    font-size:10.7px!important;
    line-height:1.3!important;
  }

  .auth-forgot-row{
    min-height:32px!important;
    margin-bottom:5px!important;
  }

  .auth-forgot-link{
    min-height:32px!important;
    font-size:10.3px!important;
  }
}


.auth-workspace-accent{color:inherit;}

@media (max-width:580px){

  html:has(.auth-page),
  body:has(.auth-page),
  .auth-page,
  .auth-shell{
    background:#fff!important;
  }

  .auth-visual{
    background:linear-gradient(180deg,#F5F1FF 0%,#F8F5FF 56%,#FBF9FF 100%)!important;
    border:0!important;
    box-shadow:none!important;
  }

  .auth-workspace-accent{
    color:#6D53F6!important;
  }

  .auth-copy h1{
    color:#222431!important;
    font-weight:850!important;
  }

  .auth-copy p{
    color:#4F4C5F!important;
    font-weight:560!important;
  }

  .auth-form{
    background:#fff!important;
    border-radius:28px 28px 0 0!important;
    box-shadow:
      0 -12px 10px rgba(84,58,166,.10),
      0 -2px 8px rgba(84,58,166,.043)!important;
  }
}

/* 384px is only ~2.3% narrower than the 393px Figma frame.
   Keep the horizontal geometry essentially identical. */
@media (min-width:370px) and (max-width:410px){

  .auth-brand{
    gap:9px!important;
  }

  .auth-brand img{
    width:36px!important;
    height:36px!important;
    flex:0 0 30px!important;
  }

  .auth-brand span{
    font-size:16px!important;
    line-height:16px!important;
    letter-spacing:-.4px!important;
  }

  .auth-copy h1{
    width:min(91vw,350px)!important;
    max-width:350px!important;
    font-size:30px!important;
    line-height:25px!important;
    letter-spacing:-.96px!important;
    text-align:center!important;
  }

  /* Critical fix: keep Figma-like visual width even when Android Chrome
     exposes a shorter viewport height. */
  .auth-illustration-v20{
    flex:0 0 auto!important;
    width:100%!important;
    height:184px!important;
    min-height:184px!important;
    max-height:184px!important;
    margin:0 auto!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:visible!important;
  }

  .auth-illustration-v20 img{
    display:block!important;
    width:326px!important;
    max-width:calc(100vw - 40px)!important;
    height:184px!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:center!important;
  }

  .auth-copy p{
    width:calc(100vw - 36px)!important;
    max-width:357px!important;
    font-size:12.35px!important;
    line-height:17px!important;
    letter-spacing:-.148px!important;
    text-align:center!important;
  }

  .auth-form{
    padding-left:29px!important;
    padding-right:29px!important;
  }

  .auth-social-btn,
  .auth-form .field .auth-input-wrap input,
  .auth-form .primary-btn{
    border-radius:11px!important;
  }

  .auth-form .field label{
    font-size:11.2px!important;
    line-height:12px!important;
  }
}

/* Live Android Chrome: preserve width and illustration presence;
   compress gaps vertically instead of shrinking the hero artwork. */
@media (min-width:370px) and (max-width:410px) and (max-height:740px){

  .auth-visual{
    flex:0 0 342px!important;
    min-height:342px!important;
    height:342px!important;
    max-height:342px!important;
    padding:12px 18px 12px!important;
  }

  .auth-brand{
    margin:0 auto 7px!important;
  }

  .auth-copy{
    width:100%!important;
    max-width:100%!important;
    min-height:0!important;
  }

  .auth-copy h1{
    margin:0 auto 4px!important;
    font-size:29px!important;
    line-height:24.5px!important;
    letter-spacing:-.92px!important;
  }

  .auth-illustration-v20{
    height:184px!important;
    min-height:184px!important;
    max-height:184px!important;
    margin:0 auto 3px!important;
  }

  .auth-illustration-v20 img{
    width:326px!important;
    height:184px!important;
    max-height:none!important;
  }

  .auth-copy p{
    margin:0 auto!important;
    font-size:11.9px!important;
    line-height:16px!important;
  }

  .auth-form{
    margin:-5px 0 0!important;
    padding:17px 29px 4px!important;
    border-radius:28px 28px 0 0!important;
  }

  .auth-form h2{
    margin:0 0 4px!important;
    font-size:25px!important;
    line-height:26px!important;
    letter-spacing:-.95px!important;
  }

  .auth-form>.lead{
    margin:0 0 8px!important;
    font-size:10.8px!important;
    line-height:14px!important;
  }

  .auth-social-grid{
    gap:10px!important;
    margin:0 0 6px!important;
  }

  .auth-social-btn{
    height:39px!important;
    padding:0 11px!important;
    gap:8px!important;
    font-size:10.8px!important;
  }

  .auth-provider-icon{
    width:16px!important;
    height:16px!important;
    flex-basis:16px!important;
  }

  .auth-provider-icon.apple-icon{
    width:16px!important;
    height:18px!important;
    flex-basis:16px!important;
  }

  .auth-divider{
    margin:0 0 6px!important;
    font-size:8.5px!important;
  }

  .auth-form .field{
    gap:4px!important;
    margin-bottom:7px!important;
  }

  .auth-form .field label{
    font-size:9.9px!important;
    line-height:11px!important;
  }

  .auth-input-wrap > i,
  .auth-input-wrap > svg{
    left:14px!important;
    width:16px!important;
    height:16px!important;
  }

  .auth-form .field .auth-input-wrap input{
    min-height:41px!important;
    height:41px!important;
    padding:0 12px 0 43px!important;
    font-size:11.5px!important;
  }

  .auth-form .field .auth-input-wrap input::placeholder{
    font-size:11.4px!important;
  }

  .auth-forgot-row{
    min-height:31px!important;
    margin:0 0 6px!important;
  }

  .auth-forgot-link{
    min-width:128px!important;
    min-height:31px!important;
    font-size:10.2px!important;
  }

  .auth-form .primary-btn{
    height:44px!important;
    min-height:44px!important;
    font-size:12.2px!important;
  }

  .auth-form .primary-btn i,
  .auth-form .primary-btn svg{
    width:18px!important;
    height:18px!important;
  }

  .auth-legal{
    margin-top:5px!important;
    margin-bottom:0!important;
    padding-bottom:0!important;
  }
}

/* Tall mobile / DevTools profile: use the Figma geometry much more literally. */
@media (min-width:370px) and (max-width:410px) and (min-height:741px){

  .auth-visual{
    flex:0 0 420px!important;
    min-height:420px!important;
    height:420px!important;
    max-height:420px!important;
    padding:17px 18px 38px!important;
  }

  .auth-brand{
    margin:0 auto 17px!important;
  }

  .auth-copy h1{
    margin:0 auto 10px!important;
  }

  .auth-illustration-v20{
    height:214px!important;
    min-height:214px!important;
    max-height:214px!important;
    margin:4px auto 8px!important;
  }

  .auth-illustration-v20 img{
    width:333px!important;
    height:214px!important;
    max-height:none!important;
  }

  .auth-copy p{
    margin:0 auto 4px!important;
  }

  .auth-form{
    margin:-18px 0 0!important;
    padding:22px 30px 0!important;
    border-radius:28px 28px 0 0!important;
  }

  .auth-form h2{
    font-size:29px!important;
    line-height:30px!important;
    letter-spacing:-1.102px!important;
  }

  .auth-form>.lead{
    margin-bottom:13px!important;
    font-size:12.2px!important;
    line-height:16px!important;
  }

  .auth-social-btn{
    height:45px!important;
    font-size:12px!important;
  }

  .auth-provider-icon{
    width:18px!important;
    height:18px!important;
    flex-basis:18px!important;
  }

  .auth-provider-icon.apple-icon{
    width:18px!important;
    height:20px!important;
    flex-basis:18px!important;
  }

  .auth-divider{
    font-size:9.5px!important;
  }

  .auth-form .field{
    gap:5px!important;
    margin-bottom:9px!important;
  }

  .auth-input-wrap > i,
  .auth-input-wrap > svg{
    left:16px!important;
    width:18px!important;
    height:18px!important;
  }

  .auth-form .field .auth-input-wrap input{
    min-height:48px!important;
    height:48px!important;
    padding:0 14px 0 48px!important;
    font-size:12.5px!important;
  }

  .auth-form .field .auth-input-wrap input::placeholder{
    font-size:12.5px!important;
  }

  .auth-forgot-row{
    min-height:42px!important;
    margin:0 0 7px!important;
  }

  .auth-forgot-link{
    min-width:138px!important;
    min-height:42px!important;
    font-size:11.4px!important;
  }

  .auth-form .primary-btn{
    height:49px!important;
    min-height:49px!important;
    font-size:13.5px!important;
  }

  .auth-form .primary-btn i,
  .auth-form .primary-btn svg{
    width:20px!important;
    height:20px!important;
  }

  .auth-legal{
    margin-top:10px!important;
  }
}


.auth-brand-copy-v26,
.auth-brand-origin-v26{
  color:inherit;
}

@media (max-width:580px){

  .auth-brand-copy-v26{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:2px!important;
    min-width:0!important;
  }

  .auth-brand-copy-v26 > .auth-brand-title-v26{
    display:block!important;
    margin:0!important;
    color:#252737!important;
    font-size:16px!important;
    line-height:16px!important;
    font-weight:800!important;
    letter-spacing:-.4px!important;
    white-space:nowrap!important;
  }

  .auth-brand-origin-v26{
    display:block!important;
    margin:0!important;
    color:#6D53F6!important;
    font-size:9.4px!important;
    line-height:10px!important;
    font-weight:700!important;
    letter-spacing:.01em!important;
    white-space:nowrap!important;
  }

  .auth-legal{
    margin-top:0!important;
    margin-bottom:0!important;
    padding:7px 0 9px!important;
    gap:10px!important;
    font-size:9.8px!important;
    line-height:12px!important;
    font-weight:680!important;
  }

  .auth-legal a,
  .auth-legal span{
    font-size:inherit!important;
    line-height:inherit!important;
  }
}

@media (min-width:370px) and (max-width:410px) and (max-height:740px){

  .auth-brand{
    gap:9px!important;
  }

  .auth-brand-copy-v26 > .auth-brand-title-v26{
    font-size:15.8px!important;
    line-height:16px!important;
  }

  .auth-brand-origin-v26{
    font-size:9px!important;
    line-height:9.5px!important;
  }

  .auth-legal{
    padding:6px 0 8px!important;
    font-size:9.4px!important;
    line-height:11px!important;
  }
}

@media (min-width:370px) and (max-width:410px) and (min-height:741px){

  .auth-brand-origin-v26{
    font-size:9.6px!important;
    line-height:10px!important;
  }

  .auth-legal{
    padding:8px 0 10px!important;
    font-size:10px!important;
    line-height:12px!important;
  }
}


@media (max-width:580px){

  .auth-brand .auth-brand-copy-v26{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:1px!important;
    min-width:0!important;
  }

  .auth-brand .auth-brand-copy-v26 > span.auth-brand-title-v26{
    color:#252737!important;
    font-size:16px!important;
    line-height:16px!important;
    font-weight:800!important;
    letter-spacing:-.4px!important;
    white-space:nowrap!important;
  }

  .auth-brand .auth-brand-copy-v26 > span.auth-brand-origin-v26{
    color:#A1A4B2!important;
    font-size:9.6px!important;
    line-height:10.8px!important;
    font-weight:600!important;
    letter-spacing:.012em!important;
    white-space:nowrap!important;
    opacity:1!important;
  }
}

@media (min-width:370px) and (max-width:410px) and (max-height:740px){
  .auth-brand .auth-brand-copy-v26 > span.auth-brand-origin-v26{
    font-size:9.4px!important;
    line-height:10.2px!important;
  }
}

@media (min-width:370px) and (max-width:410px) and (min-height:741px){
  .auth-brand .auth-brand-copy-v26 > span.auth-brand-origin-v26{
    font-size:9.8px!important;
    line-height:10.8px!important;
  }
}


@media (max-width:580px){

  .auth-form .auth-legal{
    margin:0!important;
    padding:9px 0 12px!important;
    gap:10px!important;

    color:#666A78!important;
    font-size:10.6px!important;
    line-height:13px!important;
    font-weight:700!important;

    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  .auth-form .auth-legal a{
    color:#666A78!important;
    font-size:10.6px!important;
    line-height:13px!important;
    font-weight:700!important;
  }

  .auth-form .auth-legal span{
    color:#C1C4CE!important;
    font-size:10.6px!important;
    line-height:13px!important;
  }
}

/* Live 384x832 Android Chrome profile */
@media (min-width:370px) and (max-width:410px) and (max-height:740px){

  .auth-form .auth-legal{
    padding:8px 0 10px!important;
    font-size:10.2px!important;
    line-height:12px!important;
  }

  .auth-form .auth-legal a,
  .auth-form .auth-legal span{
    font-size:10.2px!important;
    line-height:12px!important;
  }
}

/* Taller 393x852 / Figma-like profile */
@media (min-width:370px) and (max-width:410px) and (min-height:741px){

  .auth-form .auth-legal{
    padding:10px 0 13px!important;
    font-size:10.8px!important;
    line-height:13px!important;
  }

  .auth-form .auth-legal a,
  .auth-form .auth-legal span{
    font-size:10.8px!important;
    line-height:13px!important;
  }
}


@media (min-width:900px){

  /* Do not set auth-page/auth-shell geometry here. Existing desktop sizing wins. */

  .auth-visual{
    background:linear-gradient(180deg,#F5F1FF 0%,#F8F5FF 58%,#FBF9FF 100%)!important;
    color:#222431!important;
    overflow:hidden!important;
  }

  .auth-visual:before,
  .auth-visual:after{
    display:none!important;
    content:none!important;
  }

  .auth-brand{
    color:#252737!important;
  }

  .auth-brand img{
    background:transparent!important;
    box-shadow:none!important;
    object-fit:contain!important;
  }

  .auth-brand .auth-brand-copy-v26{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:2px!important;
  }

  .auth-brand .auth-brand-copy-v26 > span.auth-brand-title-v26{
    color:#252737!important;
    font-weight:800!important;
    white-space:nowrap!important;
  }

  .auth-brand .auth-brand-copy-v26 > span.auth-brand-origin-v26{
    color:#9EA1AF!important;
    font-size:10px!important;
    line-height:11px!important;
    font-weight:500!important;
    letter-spacing:.01em!important;
    white-space:nowrap!important;
  }

  /* Reuse the existing hero container; only change its contents. */
  .auth-copy{
    color:#222431!important;
  }

  .auth-copy h1{
    color:#202232!important;
    font-weight:850!important;
    letter-spacing:-.025em!important;
    text-wrap:balance!important;
  }

  .auth-workspace-accent{
    color:#6D53F6!important;
  }

  
  .auth-illustration-v20{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:0!important;
    margin:0px auto 16px!important;
    padding:0!important;
    overflow:visible!important;
  }

  .auth-illustration-v20 img{
    display:block!important;
    width:min(88%,620px)!important;
    max-width:100%!important;
    height:auto!important;
    max-height:34vh!important;
    object-fit:contain!important;
    object-position:center!important;
  }

  .auth-copy p{
    color:#505365!important;
    font-weight:550!important;
    line-height:1.4!important;
  }
}


/* Large desktop: illustration may use more of the existing hero panel,
   but again does not resize the outer card. */
@media (min-width:1800px){

  .auth-illustration-v20 img{
    width:min(88%,680px)!important;
    max-height:36vh!important;
  }

  .auth-brand .auth-brand-copy-v26 > span.auth-brand-origin-v26{
    font-size:10.5px!important;
  }
}


@media (min-width:900px){

  body.auth-page .auth-form form > .auth-forgot-row,
  body:has(.auth-page) .auth-form form > .auth-forgot-row{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;

    width:100%!important;
    min-height:28px!important;

    margin:-6px 0 8px!important;
    padding:0!important;

    align-items:center!important;
    justify-content:flex-end!important;

    position:relative!important;
    z-index:3!important;
    overflow:visible!important;
  }

  body.auth-page .auth-form form > .auth-forgot-row > .auth-forgot-link,
  body:has(.auth-page) .auth-form form > .auth-forgot-row > .auth-forgot-link{
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;

    align-items:center!important;
    justify-content:flex-end!important;

    min-height:28px!important;
    padding:4px 1px 4px 12px!important;

    color:#6848DE!important;
    font-size:11.5px!important;
    line-height:1.1!important;
    font-weight:700!important;
    letter-spacing:-.005em!important;

    text-decoration:none!important;
    white-space:nowrap!important;
  }

  body.auth-page .auth-form form > .auth-forgot-row > .auth-forgot-link:hover,
  body.auth-page .auth-form form > .auth-forgot-row > .auth-forgot-link:focus-visible,
  body:has(.auth-page) .auth-form form > .auth-forgot-row > .auth-forgot-link:hover,
  body:has(.auth-page) .auth-form form > .auth-forgot-row > .auth-forgot-link:focus-visible{
    color:#5638D1!important;
    text-decoration:underline!important;
    text-underline-offset:2px!important;
  }

  /* Existing sign-in button stays in the same card; only use the small
     space previously occupied by its top margin. */
  body.auth-page .auth-form form > .auth-forgot-row + .primary-btn,
  body:has(.auth-page) .auth-form form > .auth-forgot-row + .primary-btn{
    margin-top:0!important;
  }
}


@media (min-width:900px){
  .auth-page,
  body.auth-page{
    --arc-dark:#543CC5;
    --arc-mid:#6E56F6;
    --arc-light:#8A72FF;
    --arc-center:#FFFFFF;
    --arc-size:clamp(440px,32.164vw,620px);
    --arc-offset:calc(var(--arc-size) * -0.5);

    position:relative!important;
    isolation:isolate!important;
    overflow:hidden!important;

    background:
      radial-gradient(ellipse at 18% 16%, rgba(108,76,245,.11) 0%, rgba(108,76,245,.043) 22%, rgba(108,76,245,0) 48%),
      radial-gradient(ellipse at 84% 80%, rgba(138,114,255,.075) 0%, rgba(138,114,255,.027) 22%, rgba(138,114,255,0) 49%),
      linear-gradient(135deg,#F8F6FF 0%,#F3F1FC 42%,#F0EFFA 100%)!important;
  }

  /* Disable all legacy pseudo-element arc renderers. */
  .auth-page::before,
  .auth-page::after,
  body.auth-page::before,
  body.auth-page::after{
    content:none!important;
    display:none!important;
  }

  .ircc-login-arc-stack-v48{
    position:fixed!important;
    width:var(--arc-size)!important;
    height:var(--arc-size)!important;
    pointer-events:none!important;
    z-index:1!important;
  }

  .ircc-login-arc-stack-v48--tr{
    top:var(--arc-offset)!important;
    right:var(--arc-offset)!important;
  }

  .ircc-login-arc-stack-v48--bl{
    left:var(--arc-offset)!important;
    bottom:var(--arc-offset)!important;
  }

  .ircc-login-arc-circle-v48{
    position:absolute!important;
    top:50%!important;
    left:50%!important;
    transform:translate(-50%,-50%)!important;
    border-radius:50%!important;
    pointer-events:none!important;
  }

  /* OUTER CARD */
  .ircc-login-arc-circle-v48--2{
    width:100%!important;
    height:100%!important;
    background:var(--arc-mid)!important;
  }

  /* INNER PURPLE CARD */
  .ircc-login-arc-circle-v48--3{
    width:70%!important;
    height:70%!important;
    background:var(--arc-light)!important;
  }

  /* WHITE CENTER */
  .ircc-login-arc-circle-v48--center{
    width:40%!important;
    height:40%!important;
    background:var(--arc-center)!important;
  }

  /* Each layer gets its OWN shadow: top-right shadow falls down/left. */
  .ircc-login-arc-stack-v48--tr .ircc-login-arc-circle-v48--2{
    box-shadow:-10px 14px 24px rgba(54, 51, 64, 0.3)!important;
  }
  .ircc-login-arc-stack-v48--tr .ircc-login-arc-circle-v48--3{
    box-shadow:-7px 10px 18px rgba(54, 51, 64, 0.3)!important;
  }
  .ircc-login-arc-stack-v48--tr .ircc-login-arc-circle-v48--center{
    box-shadow:-5px 7px 14px rgba(54, 51, 64, 0.3)!important;
  }

  /* Bottom-left shadow is mirrored up/right. */
  .ircc-login-arc-stack-v48--bl .ircc-login-arc-circle-v48--2{
    box-shadow:10px -14px 24px rgba(54, 51, 64, 0.3)!important;
  }
  .ircc-login-arc-stack-v48--bl .ircc-login-arc-circle-v48--3{
    box-shadow:7px -10px 18px rgba(54, 51, 64, 0.3)!important;
  }
  .ircc-login-arc-stack-v48--bl .ircc-login-arc-circle-v48--center{
    box-shadow:5px -7px 14px rgba(54, 51, 64, 0.3)!important;
  }


  .auth-page .auth-shell,
  body.auth-page > .auth-shell,
  .auth-shell{
    position:relative!important;
    z-index:2!important;
  }
}

/* Compact desktop / laptop */
/* =========================================================
   CANONICAL RESPONSIVE PROFILE — (min-width:900px) and (max-width:1399px)
   Safely consolidated equivalent breakpoint groups.
   ========================================================= */
@media (min-width:900px) and (max-width:1399px){
  /* Component group 1 */
  .auth-brand .auth-brand-copy-v26 > span.auth-brand-origin-v26{
    font-size:10px!important;
    line-height:11px!important;
  }

  .auth-copy h1{
    letter-spacing:-.04em!important;
  }

  .auth-illustration-v20{
    margin:10px auto 12px!important;
  }

  .auth-illustration-v20 img{
    width:min(82%,500px)!important;
    max-height:30vh!important;
  }

  /* Component group 2 */
  body.auth-page .auth-form form > .auth-forgot-row,
  body:has(.auth-page) .auth-form form > .auth-forgot-row{
    min-height:24px!important;
    margin:-7px 0 6px!important;
  }

  body.auth-page .auth-form form > .auth-forgot-row > .auth-forgot-link,
  body:has(.auth-page) .auth-form form > .auth-forgot-row > .auth-forgot-link{
    min-height:24px!important;
    padding-top:3px!important;
    padding-bottom:3px!important;
    font-size:10.5px!important;
  }

  /* Component group 3 */
  .auth-page,
  body.auth-page{
    --arc-size:clamp(410px,31vw,500px);
  }

  .ircc-login-arc-stack-v48--tr .ircc-login-arc-circle-v48--1{
    box-shadow:-11px 14px 24px rgba(50,34,135,.22)!important;
  }
  .ircc-login-arc-stack-v48--bl .ircc-login-arc-circle-v48--1{
    box-shadow:11px -14px 24px rgba(50,34,135,.22)!important;
  }

}


/* Mobile remains completely unchanged. */
@media (max-width:899px){
  .ircc-login-arc-stack-v48{
    display:none!important;
  }
}
