/* Authenticated workspace only. Public guardian pages and printed documents
   retain their own layout and payment-status colours. */
.up-auth-theme.up-premium-workspace {
  --up-paper:#f5f7f5;--up-card:#fff;--up-ink:#243c31;--up-muted:#6c7b72;
  --up-line:#e1e8e2;--up-green:#235c46;--up-nav-row:40px;
  background:var(--up-paper);color:var(--up-ink);
}
.up-premium-workspace .up-app-layout{min-width:0;max-width:1840px;margin-inline:auto}
.up-premium-workspace .up-workspace-column{min-width:0}
.up-auth-theme.up-premium-workspace .up-soft-header{top:0;background:#f5f7f5f5;border:0;box-shadow:none;z-index:30}
.up-premium-workspace .up-soft-header>div{padding:18px 0 20px;gap:18px}
.up-premium-workspace .up-shell-title{font-size:clamp(21px,2vw,27px);line-height:1.25;font-weight:750;letter-spacing:-.7px}
.up-premium-workspace .up-shell-subtitle{font-size:12px;line-height:1.5;color:#58665f}
.up-premium-workspace .up-shell-date{font-size:12px;color:#58665f}
.up-premium-workspace .up-shell-date>div{font-size:12px}
.up-premium-workspace .up-shell-avatar{background:#24332f;border:3px solid #eef3ed;box-shadow:none;width:40px;height:40px}
.up-premium-workspace .up-soft-header button{border-radius:12px;box-shadow:none}
.up-premium-workspace .up-soft-header button[data-action=open-data-year-manager]{background:#fff;border-color:#eef3ed;color:#24332f}
.up-auth-theme.up-premium-workspace .up-soft-main{min-width:0;padding:0 0 28px}
.up-premium-workspace .up-workspace-page{max-width:1560px;min-width:0;width:100%;--menu-soft:#eef3ed;--menu-line:#eef3ed}
.up-premium-workspace .up-workspace-page :is(.rounded-2xl.bg-white,.rounded-3xl.bg-white,.up-soft-panel,.up-soft-stat,.up-fb-controls,.up-fb-grid-shell,.up-fb-review,.up-n-box){background:#fff;border-color:#eef3ed;border-radius:18px;box-shadow:0 3px 16px #15382a05}
.up-premium-workspace .up-workspace-page :is(.up-fb-heading,.up-menu-hero){background:#eef3ed;border:1px solid #dce3dd;border-radius:18px;padding:20px 22px;box-shadow:none}
.up-premium-workspace .up-workspace-page .up-fb-heading h1{font-size:21px;color:#24332f;letter-spacing:-.4px}
.up-premium-workspace .up-workspace-page .up-fb-heading :is(p,.up-fb-kicker){color:#58665f}
.up-premium-workspace .up-workspace-page :is(input,select,textarea):not(.up-document *){border-color:#eef3ed;border-radius:11px;background-color:#fff}
.up-premium-workspace .up-workspace-page :is(.up-fb-scroll-tools,.up-fb-payment-options){background:#eef3ed;border-color:#eef3ed}
.up-premium-workspace .up-workspace-page .up-fb-table thead th{background:#eef3ed;color:#24332f;border-color:#dce3dd}
.up-premium-workspace .up-soft-welcome{border-radius:20px;background:linear-gradient(115deg,#eef3ed,#eef3ed);border-color:#dce3dd;box-shadow:none}
.up-premium-workspace .up-soft-welcome h1{color:#24332f}
.up-premium-workspace .up-soft-welcome-mark{background:#eef3ed;border-color:#eef3ed;box-shadow:none}
.up-premium-workspace .up-soft-dashboard .up-soft-primary{background:#24332f;border-color:#24332f;box-shadow:0 3px 9px #235c4615;border-radius:12px}
.up-premium-workspace .up-soft-dashboard .up-soft-secondary{background:white;border-color:#dce3dd;box-shadow:none;border-radius:12px}
.up-premium-workspace :is(.up-students-action,.up-fb-btn){border-radius:11px}
.up-premium-workspace :is(.up-soft-stat,.up-soft-panel){border-radius:18px}

/* One natural-height panel. Neither menu owns a vertical scrollbar. */
.up-auth-theme.up-premium-workspace .up-soft-sidebar.up-sidebar-pro{
  width:100%;height:auto;min-height:0;max-height:none;overflow:visible;flex:0 0 auto;
  background:#24332f;border:1px solid #24332f;color:#eef3ed;border-radius:20px;
  box-shadow:0 12px 30px #183c3410;
}
.up-auth-theme.up-premium-workspace .up-sidebar-pro .up-sidebar-brand{position:relative;min-width:0;padding:18px 16px 14px;border-bottom:1px solid #ffffff15}
.up-premium-workspace .up-sidebar-brand>div>.grid{width:46px;height:46px;flex:0 0 46px;padding:3px;border-radius:13px;background:#eef3ed;box-shadow:none}
.up-auth-theme.up-premium-workspace .up-sidebar-brand .up-sidebar-product{font-size:18px;letter-spacing:-.4px;color:#eef3ed}
.up-auth-theme.up-premium-workspace .up-sidebar-brand .up-sidebar-org{font-size:11px;line-height:1.45;color:#dce3dd;max-width:none}
.up-auth-theme.up-premium-workspace .up-sidebar-brand .up-sidebar-plan{font-size:10px;color:#d7c59c;max-width:none;line-height:1.45;white-space:normal;overflow-wrap:normal}
.up-auth-theme.up-premium-workspace .up-sidebar-pro :is(.up-sidebar-nav-main,.up-sidebar-nav-system){display:flex;flex:0 0 auto;flex-direction:column;min-height:0;max-height:none;height:auto;overflow:visible;gap:3px;padding:10px}
.up-auth-theme.up-premium-workspace .up-sidebar-pro .up-sidebar-section-title{font-size:9px;line-height:1.2;letter-spacing:.14em;padding:3px 11px 7px;font-weight:750;color:#58665f}
.up-auth-theme.up-premium-workspace .up-soft-sidebar.up-sidebar-pro .up-soft-nav>button{
  display:flex;align-items:center;flex:0 0 auto;min-height:var(--up-nav-row);height:var(--up-nav-row);
  gap:10px;padding:5px 10px;border:1px solid transparent;border-radius:10px;
  font-size:12.5px;line-height:1.3;font-weight:600;color:#eef3ed;background:transparent;box-shadow:none;
}
.up-auth-theme.up-premium-workspace .up-soft-sidebar.up-sidebar-pro .up-soft-nav>button>svg{
  width:20px;height:20px;flex:0 0 20px;padding:0;border-radius:0;color:#dce3dd;background:transparent;stroke-width:1.8;
}
.up-premium-workspace .up-sidebar-pro .up-soft-nav>button>span{min-width:0;line-height:1.3;overflow-wrap:normal}
.up-auth-theme.up-premium-workspace .up-sidebar-pro .up-soft-nav>button:hover{background:#ffffff0d;color:#fff}
.up-auth-theme.up-premium-workspace .up-sidebar-pro .up-soft-nav>button[aria-current=page]{background:#eef3ed;color:#24332f;border-color:#eef3ed;box-shadow:inset 3px 0 0 #bba36d,0 3px 12px #0000000c;font-weight:750}
.up-auth-theme.up-premium-workspace .up-sidebar-pro .up-soft-nav>button[aria-current=page]>svg{color:#24332f;background:transparent}
.up-auth-theme.up-premium-workspace .up-sidebar-pro .up-sidebar-footer{flex:0 0 auto;min-height:0;max-height:none;overflow:visible;border-top:1px solid #ffffff15;background:transparent;padding:8px 0 12px}
.up-auth-theme.up-premium-workspace .up-sidebar-pro .up-sidebar-footer>.up-sidebar-section-title{padding-left:21px}
.up-auth-theme.up-premium-workspace .up-sidebar-pro .up-sidebar-nav-system{padding:0 10px;gap:3px}
.up-auth-theme.up-premium-workspace .up-soft-sidebar.up-sidebar-pro .up-sidebar-nav-system>.up-sidebar-upgrade{margin:6px 0 0;background:#d4bd87;color:#24332f;border-color:#d4bd87;font-size:12px;font-weight:750}
.up-auth-theme.up-premium-workspace .up-soft-sidebar.up-sidebar-pro .up-sidebar-nav-system>.up-sidebar-upgrade:hover{background:#e0cc9e;color:#24332f}
.up-auth-theme.up-premium-workspace .up-soft-sidebar.up-sidebar-pro .up-sidebar-nav-system>.up-sidebar-upgrade>svg{color:#24332f}
.up-premium-workspace .up-sidebar-pending{background:#f4e9cb;color:#5f4c1e}
.up-premium-workspace .up-sidebar-copyright{color:#58665f;font-size:9px;padding:10px 21px 0;line-height:1.3}
.up-premium-workspace .up-sidebar-close{display:none}
.up-premium-workspace .up-sidebar-pro button:focus-visible{outline-color:#e6ce91;outline-offset:2px}

@media(min-width:1024px){
  .up-premium-workspace .up-app-layout{display:grid;grid-template-columns:238px minmax(0,1fr);align-items:start;gap:24px;padding:18px 24px 18px 18px}
  .up-auth-theme.up-premium-workspace>.up-app-layout>.up-sidebar-sticky{position:sticky;top:18px;align-self:start;width:238px;flex:none;height:auto;min-height:0;max-height:none;margin:0;padding:0;z-index:12}
  .up-auth-theme.up-premium-workspace .up-sidebar-sticky .up-soft-sidebar.up-sidebar-pro{height:auto;min-height:0;max-height:none;border-radius:20px}
  .up-premium-workspace .up-soft-header{margin-top:-18px}
  body:has(#uruspay-staging-banner) .up-premium-workspace>.up-app-layout>.up-sidebar-sticky{top:74px}
  body:has(#uruspay-staging-banner) .up-premium-workspace .up-soft-header{top:56px}
}
@media(min-width:1024px) and (max-height:780px){
  .up-auth-theme.up-premium-workspace{--up-nav-row:36px}
  .up-auth-theme.up-premium-workspace .up-sidebar-pro .up-sidebar-brand{padding:13px 14px 11px}
  .up-auth-theme.up-premium-workspace .up-sidebar-pro .up-sidebar-nav-main{padding-top:7px;padding-bottom:8px;gap:2px}
  .up-premium-workspace .up-sidebar-brand>div>.grid{width:42px;height:42px;flex-basis:42px}
}
@media(min-width:1024px) and (max-height:650px){
  .up-auth-theme.up-premium-workspace{--up-nav-row:32px}
  .up-premium-workspace .up-app-layout{padding:12px;gap:20px}
  .up-auth-theme.up-premium-workspace>.up-app-layout>.up-sidebar-sticky{top:12px}
  .up-auth-theme.up-premium-workspace .up-sidebar-pro .up-sidebar-brand{padding:10px 12px}
  .up-premium-workspace .up-sidebar-brand>div>.grid{width:38px;height:38px;flex-basis:38px}
  .up-auth-theme.up-premium-workspace .up-sidebar-brand .up-sidebar-plan{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
  .up-auth-theme.up-premium-workspace .up-sidebar-pro .up-sidebar-nav-main{padding:6px 9px;gap:1px}
  .up-auth-theme.up-premium-workspace .up-sidebar-pro .up-sidebar-footer{padding:5px 0 8px}
  .up-auth-theme.up-premium-workspace .up-sidebar-pro .up-sidebar-section-title{padding-top:2px;padding-bottom:5px}
  .up-premium-workspace .up-sidebar-copyright{display:none}
  .up-auth-theme.up-premium-workspace .up-sidebar-pro .up-sidebar-nav-system{gap:2px}
  .up-auth-theme.up-premium-workspace .up-sidebar-pro .up-sidebar-nav-system>.up-sidebar-upgrade{margin-top:4px}
  .up-premium-workspace .up-soft-header{margin-top:-12px}
  .up-premium-workspace .up-soft-header>div{padding:13px 0 15px}
  body:has(#uruspay-staging-banner) .up-premium-workspace>.up-app-layout>.up-sidebar-sticky{top:68px}
}
@media(min-width:1024px) and (max-height:480px){
  .up-auth-theme.up-premium-workspace>.up-app-layout>.up-sidebar-sticky{position:static}
}
@media(min-width:1024px) and (pointer:coarse){
  .up-auth-theme.up-premium-workspace{--up-nav-row:44px}
  .up-auth-theme.up-premium-workspace>.up-app-layout>.up-sidebar-sticky{position:static}
}
@media(max-width:1199px){.up-premium-workspace .up-shell-date{display:none}}
@media(max-width:1023px){
  .up-premium-workspace .up-app-layout{display:block;padding:0}
  .up-premium-workspace .up-workspace-column{width:100%}
  .up-auth-theme.up-premium-workspace .up-soft-header{background:#fffffff5;border-bottom:1px solid #eef3ed;padding-top:env(safe-area-inset-top,0px)}
  .up-premium-workspace .up-soft-header>div{padding:12px 16px;gap:10px}
  .up-premium-workspace .up-shell-title{font-size:20px;letter-spacing:-.4px}
  .up-auth-theme.up-premium-workspace .up-soft-main{padding:18px 16px 96px}
  .up-auth-theme.up-premium-workspace .up-soft-header button[data-action=toggle-mobile-menu]{display:inline-grid!important}
  .up-premium-workspace .up-sidebar-drawer{height:100vh;height:100dvh;overflow-y:auto;overscroll-behavior:contain;width:288px;max-width:calc(100vw - 32px);background:#24332f}
  .up-auth-theme.up-premium-workspace .up-sidebar-drawer .up-soft-sidebar.up-sidebar-pro{min-height:100%;height:auto;max-height:none;border:0;border-radius:0;box-shadow:none}
  .up-auth-theme.up-premium-workspace .up-sidebar-pro .up-sidebar-brand{padding-right:60px}
  .up-auth-theme.up-premium-workspace .up-soft-sidebar.up-sidebar-pro .up-soft-nav>button{height:44px;min-height:44px;font-size:13px}
  .up-auth-theme.up-premium-workspace .up-sidebar-close{position:absolute;display:grid;place-items:center;top:10px;right:8px;width:44px;height:44px;min-height:44px!important;border:1px solid #ffffff25;border-radius:9px;color:#eef3ed;background:#ffffff0b}
  .up-sidebar-close>svg{width:17px;height:17px}
  .up-premium-workspace .up-mobile-bottom-nav{background:#fffffff5;border-color:#eef3ed;box-shadow:0 -3px 18px #183a2a09}
  .up-premium-workspace .up-mobile-nav-item.is-active{color:#24332f;background:#eef3ed}
  .up-premium-workspace:has(.up-sidebar-drawer) .up-mobile-bottom-nav{visibility:hidden}
  body:has(#uruspay-staging-banner) .up-premium-workspace .up-soft-header{top:56px}
  body:has(#uruspay-staging-banner) .up-premium-workspace div:has(>.up-sidebar-drawer){top:56px}
  body:has(#uruspay-staging-banner) .up-premium-workspace .up-sidebar-drawer{height:calc(100vh - 56px);height:calc(100dvh - 56px)}
}
@media(max-width:640px){
  .up-premium-workspace .up-soft-header>div{padding:10px 12px}
  .up-premium-workspace .up-shell-title{font-size:18px}
  .up-auth-theme.up-premium-workspace .up-soft-main{padding:14px 12px 96px}
  .up-premium-workspace .up-workspace-page :is(.up-fb-heading,.up-menu-hero){padding:17px;border-radius:16px}
}
@media(prefers-reduced-motion:reduce){.up-premium-workspace *{transition:none!important;scroll-behavior:auto!important}}
@media print{
  .up-auth-theme.up-premium-workspace,.up-premium-workspace .up-app-layout{display:block!important;padding:0!important;background:white!important;max-width:none}
  .up-premium-workspace :is(.up-sidebar-sticky,.up-sidebar-drawer,.up-soft-header,.up-mobile-bottom-nav){display:none!important}
  .up-auth-theme.up-premium-workspace .up-soft-main{padding:0!important}
  .up-premium-workspace :is(.up-soft-panel,.up-soft-stat,.up-soft-welcome,.up-fb-controls,.up-fb-heading){box-shadow:none!important;background:white!important}
}


