:root{
  --urliink-safe-bottom:env(safe-area-inset-bottom,0px);
  --ur-shell-sidebar:280px;
  --ur-shell-sidebar-collapsed:88px;
  --ur-shell-radius:18px;
  --ur-shell-radius-sm:12px;
  --ur-shell-border:rgba(15,23,42,.09);
  --ur-shell-surface:#ffffff;
  --ur-shell-bg:#f6f7f9;
  --ur-shell-muted:#667085;
  --ur-shell-text:#111827;
  --ur-shell-gold:#b78a2b;
  --ur-shell-gold-soft:rgba(183,138,43,.10);
  --ur-shell-shadow:0 12px 32px rgba(15,23,42,.055);
}
.dark{
  --ur-shell-border:rgba(255,255,255,.09);
  --ur-shell-surface:#12151a;
  --ur-shell-bg:#0b0d10;
  --ur-shell-muted:#98a2b3;
  --ur-shell-text:#f8fafc;
  --ur-shell-gold-soft:rgba(210,167,76,.12);
  --ur-shell-shadow:0 14px 34px rgba(0,0,0,.22);
}
html{overflow-x:hidden}body{overflow-x:hidden;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}button,a,input,select,textarea{font-family:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(183,138,43,.32);outline-offset:2px}

/* Core dashboard shell */
[data-ur-shell]{background:var(--ur-shell-bg)!important;color:var(--ur-shell-text)}
[data-ur-sidebar]{width:var(--ur-shell-sidebar)!important;background:color-mix(in srgb,var(--ur-shell-surface) 96%,transparent)!important;border-inline-end:1px solid var(--ur-shell-border)!important;border-inline-start:0!important;box-shadow:none!important;backdrop-filter:blur(18px);transition:width .22s ease,transform .22s ease!important;scrollbar-width:thin;scrollbar-color:rgba(148,163,184,.35) transparent}
[data-ur-sidebar]>.p-6:first-of-type{padding:22px 18px 14px!important;position:relative}
[data-ur-sidebar]>.mt-auto{padding:16px 18px 20px!important}
[data-ur-main]{margin-inline-start:var(--ur-shell-sidebar)!important;background:var(--ur-shell-bg)!important;transition:margin-inline-start .22s ease!important}
[data-ur-topbar]{height:76px!important;padding-inline:28px!important;background:color-mix(in srgb,var(--ur-shell-surface) 92%,transparent)!important;border-color:var(--ur-shell-border)!important;box-shadow:0 1px 0 rgba(15,23,42,.02)}
[data-ur-topbar]>h1{font-size:1.08rem!important;font-weight:800!important;letter-spacing:-.015em!important}

/* Sidebar brand + toggle */
.ur-sidebar-brand-actions{position:absolute;inset-inline-end:12px;top:17px;z-index:2}
.ur-sidebar-toggle{width:36px;height:36px;border-radius:11px;border:1px solid var(--ur-shell-border);background:var(--ur-shell-surface);color:var(--ur-shell-muted);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 14px rgba(15,23,42,.04);transition:.18s ease}
.ur-sidebar-toggle:hover{color:var(--ur-shell-text);border-color:rgba(183,138,43,.35);background:var(--ur-shell-gold-soft)}
.ur-sidebar-toggle svg{width:18px;height:18px;transition:transform .2s ease}
.ur-topbar-sidebar-toggle{margin-inline-end:10px;flex:none}
[dir="ltr"] .ur-sidebar-toggle svg{transform:rotate(180deg)}

/* Navigation hierarchy */
.ur-dashboard-nav{display:flex!important;flex-direction:column;gap:3px!important}
.ur-nav-section-title{padding:15px 12px 6px;margin-top:3px;color:var(--ur-shell-muted);font-size:11px;font-weight:800;letter-spacing:.02em;white-space:nowrap;opacity:.78}
.ur-dashboard-nav-link{min-height:43px!important;border-radius:12px!important;padding:10px 12px!important;gap:11px!important;border:1px solid transparent!important;font-weight:650!important;box-shadow:none!important;position:relative;overflow:hidden}
.ur-dashboard-nav-link svg{width:19px!important;height:19px!important;flex:none!important}
.ur-dashboard-nav-link[aria-current="page"]{background:linear-gradient(90deg,var(--ur-shell-gold-soft),rgba(183,138,43,.045))!important;color:var(--ur-shell-text)!important;border-color:rgba(183,138,43,.18)!important}
.ur-dashboard-nav-link[aria-current="page"]:before{content:"";position:absolute;inset-block:9px;inset-inline-start:0;width:3px;border-radius:6px;background:var(--ur-shell-gold)}
.ur-dashboard-nav-link:hover{background:rgba(148,163,184,.08)!important;color:var(--ur-shell-text)!important}

/* Cards, forms, tables */
[data-ur-main] .rounded-xl.border,[data-ur-main] .rounded-2xl.border{border-color:var(--ur-shell-border)!important;box-shadow:var(--ur-shell-shadow);background:var(--ur-shell-surface)}
[data-ur-main] .shadow-sm,[data-ur-main] .shadow-md,[data-ur-main] .shadow-lg{box-shadow:var(--ur-shell-shadow)!important}
[data-ur-main] table{border-collapse:separate;border-spacing:0;width:100%}
[data-ur-main] thead tr{background:rgba(148,163,184,.055)}
[data-ur-main] th{font-size:12px!important;font-weight:800!important;color:var(--ur-shell-muted)!important;white-space:nowrap}
[data-ur-main] td{border-color:var(--ur-shell-border)!important}
[data-ur-main] input:not([type="checkbox"]):not([type="radio"]),[data-ur-main] textarea,[data-ur-main] select{border-radius:12px!important;border-color:var(--ur-shell-border)!important;background:var(--ur-shell-surface)!important;min-height:42px}
[data-ur-main] button,[data-ur-main] a[class*="rounded-md"]{border-radius:11px}
[data-ur-main] h1,[data-ur-main] h2,[data-ur-main] h3{letter-spacing:-.018em}
[data-ur-main] .text-muted-foreground{color:var(--ur-shell-muted)}

/* Desktop collapsed state */
html.ur-sidebar-collapsed [data-ur-sidebar]{width:var(--ur-shell-sidebar-collapsed)!important}
html.ur-sidebar-collapsed [data-ur-main]{margin-inline-start:var(--ur-shell-sidebar-collapsed)!important}
html.ur-sidebar-collapsed [data-ur-sidebar]>.p-6:first-of-type{padding-inline:14px!important}
html.ur-sidebar-collapsed [data-ur-sidebar]>.p-6:first-of-type>a{justify-content:center;margin-inline:0!important;overflow:hidden;width:48px}
html.ur-sidebar-collapsed [data-ur-sidebar]>.p-6:first-of-type>a>*{max-width:44px}
html.ur-sidebar-collapsed .ur-sidebar-brand-actions{inset-inline-end:50%;transform:translateX(50%);top:63px}
[dir="ltr"] html.ur-sidebar-collapsed .ur-sidebar-brand-actions{transform:translateX(-50%)}
html.ur-sidebar-collapsed .ur-dashboard-nav{margin-top:48px}
html.ur-sidebar-collapsed .ur-nav-section-title{height:8px;padding:0;margin:6px 0;font-size:0;border-top:1px solid var(--ur-shell-border)}
html.ur-sidebar-collapsed .ur-dashboard-nav-link{font-size:0!important;justify-content:center!important;padding:10px!important;gap:0!important}
html.ur-sidebar-collapsed .ur-dashboard-nav-link svg{width:21px!important;height:21px!important}
html.ur-sidebar-collapsed [data-ur-sidebar]>.mt-auto>div>div>div:first-child>div:last-child{display:none!important}
html.ur-sidebar-collapsed [data-ur-sidebar]>.mt-auto a{font-size:0!important;justify-content:center!important;padding-inline:8px!important}
html.ur-sidebar-collapsed [data-ur-sidebar]>.mt-auto a svg{margin:0!important}
html.ur-sidebar-collapsed .ur-sidebar-toggle svg{transform:rotate(180deg)}
[dir="ltr"] html.ur-sidebar-collapsed .ur-sidebar-toggle svg{transform:none}

/* Reliable mobile drawer */
.ur-mobile-drawer{position:fixed;inset:0;z-index:2147483500;pointer-events:none;visibility:hidden}
.ur-mobile-drawer.is-open{pointer-events:auto;visibility:visible}
.ur-mobile-drawer-backdrop{position:absolute;inset:0;border:0;background:rgba(2,6,23,.48);opacity:0;transition:opacity .2s ease;backdrop-filter:blur(2px)}
.ur-mobile-drawer.is-open .ur-mobile-drawer-backdrop{opacity:1}
.ur-mobile-drawer-panel{position:absolute;inset-block:0;inset-inline-start:0;width:min(88vw,350px);background:var(--ur-shell-surface);border-inline-end:1px solid var(--ur-shell-border);box-shadow:0 28px 70px rgba(2,6,23,.24);transform:translateX(105%);transition:transform .22s ease;display:flex;flex-direction:column;padding:max(18px,env(safe-area-inset-top)) 15px max(18px,env(safe-area-inset-bottom));overflow-y:auto;color:var(--ur-shell-text)}
[dir="ltr"] .ur-mobile-drawer-panel{transform:translateX(-105%)}
.ur-mobile-drawer.is-open .ur-mobile-drawer-panel{transform:translateX(0)}
.ur-mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:3px 5px 14px;border-bottom:1px solid var(--ur-shell-border);margin-bottom:9px}
.ur-mobile-drawer-head>div{display:flex;flex-direction:column;gap:3px}.ur-mobile-drawer-head strong{font-size:17px}.ur-mobile-drawer-head span{font-size:12px;color:var(--ur-shell-muted)}
.ur-mobile-drawer-close{width:38px;height:38px;border:1px solid var(--ur-shell-border);border-radius:12px;background:transparent;color:var(--ur-shell-text);font-size:24px;line-height:1;cursor:pointer}
.ur-mobile-drawer-nav{display:flex;flex-direction:column;gap:4px;padding:3px 0 12px}
.ur-mobile-nav-section{font-size:11px;font-weight:800;color:var(--ur-shell-muted);padding:13px 11px 4px}
.ur-mobile-nav-link{display:flex;align-items:center;gap:11px;min-height:46px;padding:10px 12px;border-radius:12px;color:var(--ur-shell-text)!important;text-decoration:none!important;font-size:14px;font-weight:650;border:1px solid transparent}
.ur-mobile-nav-link svg{width:20px;height:20px;flex:none}.ur-mobile-nav-link[aria-current="page"]{background:var(--ur-shell-gold-soft);border-color:rgba(183,138,43,.18)}
.ur-mobile-drawer-foot{margin-top:auto;padding-top:14px;border-top:1px solid var(--ur-shell-border)}.ur-mobile-drawer-foot a{display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:12px;border:1px solid var(--ur-shell-border);font-weight:700;color:var(--ur-shell-text)!important;text-decoration:none!important}
html.ur-drawer-open{overflow:hidden}

/* Creator guide floating action */
.urliink-help-fab{position:fixed;z-index:2147483000;inset-inline-end:18px;bottom:calc(18px + var(--urliink-safe-bottom));display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:10px 14px;border:1px solid rgba(183,138,43,.32);border-radius:999px;background:#171717;color:#fff!important;text-decoration:none!important;font-weight:700;font-size:14px;box-shadow:0 12px 35px rgba(0,0,0,.18);transition:transform .16s ease,box-shadow .16s ease}.urliink-help-fab:hover{transform:translateY(-2px);box-shadow:0 16px 38px rgba(0,0,0,.24)}.urliink-help-fab svg{width:19px;height:19px;flex:none}

@media(max-width:1023px){
  :root{--ur-shell-radius:16px}
  [data-ur-main]{margin-inline-start:0!important}
  .ur-sidebar-toggle{display:none!important}
  [data-ur-main]>div:last-child{padding-inline:14px!important}
  [data-ur-main] .overflow-x-auto{margin-inline:-2px;padding-bottom:3px}
  .urliink-help-fab{inset-inline-end:12px;bottom:calc(76px + var(--urliink-safe-bottom));padding:10px;width:46px;justify-content:center}.urliink-help-fab span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
}
@media(min-width:1024px){.ur-mobile-drawer{display:none!important}}
@media(max-width:640px){
  [data-ur-main] .grid{gap:12px}
  [data-ur-main] .rounded-xl,[data-ur-main] .rounded-2xl{border-radius:14px!important}
  [data-ur-main] h2{font-size:1.2rem!important}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.urliink-help-fab,.ur-mobile-drawer-panel,.ur-mobile-drawer-backdrop,[data-ur-sidebar],[data-ur-main],.ur-sidebar-toggle svg{transition:none!important}.urliink-help-fab:hover{transform:none}}

/* v2.6.2 — deterministic sidebar scrolling + full-width admin workspaces */
@media (min-width:1024px){
  [data-ur-sidebar]{
    height:100dvh!important;
    max-height:100dvh!important;
    overflow:hidden!important;
    overscroll-behavior:contain;
  }
  [data-ur-sidebar]>.p-6:first-of-type{
    flex:1 1 auto!important;
    min-height:0!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }
  [data-ur-sidebar]>.p-6:first-of-type>a:first-of-type{
    flex:0 0 auto!important;
  }
  [data-ur-sidebar] .ur-dashboard-nav{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior-y:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-gutter:stable;
    padding-inline-end:4px;
    padding-bottom:14px;
  }
  [data-ur-sidebar] .ur-dashboard-nav::-webkit-scrollbar{width:7px}
  [data-ur-sidebar] .ur-dashboard-nav::-webkit-scrollbar-track{background:transparent}
  [data-ur-sidebar] .ur-dashboard-nav::-webkit-scrollbar-thumb{background:rgba(148,163,184,.34);border-radius:999px;border:2px solid transparent;background-clip:padding-box}
  [data-ur-sidebar] .ur-dashboard-nav:hover::-webkit-scrollbar-thumb{background:rgba(148,163,184,.56);border:2px solid transparent;background-clip:padding-box}
  [data-ur-sidebar]>.mt-auto{
    flex:0 0 auto!important;
    margin-top:0!important;
    border-top:1px solid var(--ur-shell-border);
    background:color-mix(in srgb,var(--ur-shell-surface) 98%,transparent);
  }

  /* Admin pages should use the available workspace, not a narrow article column. */
  html.ur-route-admin-site [data-ur-main]>div:last-child,
  html.ur-route-admin-settings [data-ur-main]>div:last-child{
    width:100%!important;
    max-width:none!important;
  }
  html.ur-route-admin-site [data-ur-main]>div:last-child>*,
  html.ur-route-admin-settings [data-ur-main]>div:last-child>*{
    width:100%!important;
    max-width:none!important;
  }
  html.ur-route-admin-site [data-ur-main] .max-w-3xl,
  html.ur-route-admin-site [data-ur-main] .max-w-2xl,
  html.ur-route-admin-settings [data-ur-main] .max-w-3xl,
  html.ur-route-admin-settings [data-ur-main] .max-w-2xl{
    width:100%!important;
    max-width:none!important;
  }
  html.ur-route-admin-site [data-ur-main] .space-y-6.max-w-3xl,
  html.ur-route-admin-settings [data-ur-main] .space-y-6.max-w-2xl{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-content:start;
  }
}

/* Wide admin surfaces: improve use of large screens without stretching text fields absurdly. */
@media (min-width:1440px){
  html.ur-route-admin-site [data-ur-main]>div:last-child,
  html.ur-route-admin-settings [data-ur-main]>div:last-child{
    padding-inline:36px!important;
  }
  html.ur-route-admin-site [data-ur-main] .grid.md\\:grid-cols-2,
  html.ur-route-admin-settings [data-ur-main] .grid.md\\:grid-cols-2{
    column-gap:24px!important;
  }
}

/* v2.6.3 — global sidebar scroll: scroll the entire aside, no nested scroll lock */
@media (min-width:1024px){
  [data-ur-sidebar]{
    display:flex!important;
    flex-direction:column!important;
    height:100dvh!important;
    max-height:100dvh!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
    scrollbar-gutter:stable!important;
    scrollbar-width:thin!important;
    scrollbar-color:rgba(148,163,184,.48) transparent!important;
  }
  [data-ur-sidebar]::-webkit-scrollbar{width:8px!important}
  [data-ur-sidebar]::-webkit-scrollbar-track{background:transparent!important}
  [data-ur-sidebar]::-webkit-scrollbar-thumb{background:rgba(148,163,184,.48)!important;border-radius:999px!important;border:2px solid transparent!important;background-clip:padding-box!important}
  [data-ur-sidebar]:hover::-webkit-scrollbar-thumb{background:rgba(148,163,184,.72)!important;border:2px solid transparent!important;background-clip:padding-box!important}

  [data-ur-sidebar]>.p-6:first-of-type{
    flex:0 0 auto!important;
    min-height:auto!important;
    display:block!important;
    overflow:visible!important;
  }
  [data-ur-sidebar] .ur-dashboard-nav{
    display:block!important;
    flex:none!important;
    min-height:auto!important;
    overflow:visible!important;
    overscroll-behavior:auto!important;
    scrollbar-gutter:auto!important;
    padding-inline-end:0!important;
    padding-bottom:16px!important;
  }
  [data-ur-sidebar]>.mt-auto{
    flex:0 0 auto!important;
    margin-top:auto!important;
  }
}

/* v2.6.4 — unified full-width workspace for dashboard/admin forms */
html.ur-route-dashboard [data-ur-main] > .page-transition-enter,
html.ur-route-admin [data-ur-main] > .page-transition-enter{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}

/* Route roots that are operational workspaces should not be constrained like article pages. */
html.ur-route-dashboard-profile [data-ur-main] > .page-transition-enter > *,
html.ur-route-dashboard-verification [data-ur-main] > .page-transition-enter > *,
html.ur-route-admin-settings [data-ur-main] > .page-transition-enter > *,
html.ur-route-admin-site [data-ur-main] > .page-transition-enter > *{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin-inline:0!important;
}

html.ur-route-dashboard-profile [data-ur-main] .max-w-3xl,
html.ur-route-dashboard-profile [data-ur-main] .max-w-2xl,
html.ur-route-dashboard-verification [data-ur-main] .max-w-3xl,
html.ur-route-dashboard-verification [data-ur-main] .max-w-2xl,
html.ur-route-admin-settings [data-ur-main] .max-w-3xl,
html.ur-route-admin-settings [data-ur-main] .max-w-2xl,
html.ur-route-admin-site [data-ur-main] .max-w-3xl,
html.ur-route-admin-site [data-ur-main] .max-w-2xl{
  width:100%!important;
  max-width:none!important;
}

/* Keep controls readable while cards use the available canvas. */
html.ur-route-dashboard-profile [data-ur-main] form,
html.ur-route-dashboard-verification [data-ur-main] > .page-transition-enter > div,
html.ur-route-admin-settings [data-ur-main] > .page-transition-enter > div{
  min-width:0!important;
}

@media (min-width:1280px){
  html.ur-route-dashboard-profile [data-ur-main] > .page-transition-enter,
  html.ur-route-dashboard-verification [data-ur-main] > .page-transition-enter,
  html.ur-route-admin-settings [data-ur-main] > .page-transition-enter,
  html.ur-route-admin-site [data-ur-main] > .page-transition-enter{
    padding-inline:clamp(28px,2.4vw,44px)!important;
  }
  html.ur-route-admin-settings [data-ur-main] .grid.md\:grid-cols-2,
  html.ur-route-dashboard-verification [data-ur-main] .grid.md\:grid-cols-2{
    gap:24px!important;
  }
}

/* Integration credentials belongs to the settings workspace and spans it cleanly. */
html.ur-route-admin-settings #urliink-integration-credentials-v264{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}

/* v2.6.5 — document-level scrolling is authoritative across dashboard/admin */
html.ur-route-dashboard,
html.ur-route-admin{
  height:auto!important;
  min-height:100%!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:auto!important;
  scroll-behavior:auto;
}
html.ur-route-dashboard body,
html.ur-route-admin body{
  height:auto!important;
  min-height:100dvh!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:auto!important;
  touch-action:pan-y!important;
}
html.ur-route-dashboard body>#root,
html.ur-route-admin body>#root{
  height:auto!important;
  min-height:100dvh!important;
  overflow:visible!important;
}
html.ur-route-dashboard [data-ur-shell],
html.ur-route-admin [data-ur-shell]{
  height:auto!important;
  min-height:100dvh!important;
  overflow:visible!important;
  align-items:stretch!important;
}
html.ur-route-dashboard [data-ur-main],
html.ur-route-admin [data-ur-main]{
  height:auto!important;
  min-height:100dvh!important;
  overflow-x:clip!important;
  overflow-y:visible!important;
  align-self:stretch!important;
}
html.ur-route-dashboard [data-ur-main]>.page-transition-enter,
html.ur-route-admin [data-ur-main]>.page-transition-enter{
  overflow-y:visible!important;
  min-height:0!important;
}

/* Keep the sidebar independently scrollable without making it the only scroll surface. */
@media (min-width:1024px){
  html.ur-route-dashboard [data-ur-sidebar],
  html.ur-route-admin [data-ur-sidebar]{
    position:fixed!important;
    inset-block:0!important;
    overflow-y:auto!important;
    overscroll-behavior-y:contain!important;
  }
}

/* v2.6.6 — global document scrolling for every route, including landing/auth/public pages. */
html:not(.ur-ui-overlay-open){
  height:auto!important;
  min-height:100%!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:auto!important;
  touch-action:pan-y!important;
}
html:not(.ur-ui-overlay-open) body{
  height:auto!important;
  min-height:100dvh!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:auto!important;
  touch-action:pan-y!important;
}
html:not(.ur-ui-overlay-open) body>#root{
  height:auto!important;
  min-height:100dvh!important;
  max-height:none!important;
  overflow:visible!important;
}
/* Do not let route wrappers become accidental scroll prisons. */
html:not(.ur-ui-overlay-open) body>#root>div:not([role="dialog"]){
  max-height:none!important;
}
/* Keep horizontal clipping local without disabling vertical document flow. */
html:not(.ur-ui-overlay-open) main{
  max-height:none;
}
/* Native anchor/keyboard scrolling should always have room below sticky headers. */
html{scroll-padding-top:88px}
@media(max-width:1023px){html{scroll-padding-top:72px}}
