/* ============================================================================
   DataDrivenInc - portal theme
   ----------------------------------------------------------------------------
   The DataDrivenInc look applied to the whole shell: a graphite rail, a white
   header, Sora headings over Plus Jakarta Sans, the logo's green as the one
   accent everywhere and its gold for the small highlights (the active menu
   icon, the sign-in panel's chart line), rounded controls and a short entrance
   motion.

   Loaded by Components/Tenant/DataDrivenInc/ThemeComponent.razor, which
   MainLayout renders after the shared styles and the organization's own
   colours, so the custom properties are set on html:root to win over them.
   Only the DataDrivenInc tenant gets this file.
   ============================================================================ */

html:root {
    --ddi-green: #059669;
    --ddi-green-2: #10B981;
    --ddi-green-dark: #047857;
    --ddi-green-soft: #ECFDF5;
    --ddi-green-light: #6EE7B7;
    --ddi-gold: #F2B640;
    --ddi-gold-light: #F5CD6A;
    --ddi-graphite: #111827;
    --ddi-graphite-2: #0D1321;
    --ddi-night: #090E19;
    --ddi-ink: #0F172A;
    --ddi-body: #334155;
    --ddi-muted: #64748B;
    --ddi-line: #E2E8F0;
    --ddi-canvas: #F4F6F9;
    --ddi-font: "Plus Jakarta Sans", "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --ddi-head: Sora, "Plus Jakarta Sans", system-ui, sans-serif;
    --ddi-ease: cubic-bezier(.2, .7, .2, 1);

    /* MudBlazor's palette: the brand green is the primary everywhere, whatever the organization stored */
    --mud-palette-primary: var(--ddi-green);
    --mud-palette-primary-rgb: 5, 150, 105;
    --mud-palette-primary-darken: var(--ddi-green-dark);
    --mud-palette-primary-lighten: var(--ddi-green-2);
    --mud-palette-primary-hover: rgba(5, 150, 105, .06);
    --mud-palette-secondary: var(--ddi-green);
    --mud-palette-secondary-rgb: 5, 150, 105;
    --mud-palette-secondary-darken: var(--ddi-green-dark);
    --mud-palette-info: var(--ddi-green);
    --mud-palette-info-rgb: 5, 150, 105;
    --mud-palette-text-primary: var(--ddi-body);
    --mud-palette-text-secondary: var(--ddi-muted);
    --mud-palette-lines-default: var(--ddi-line);
    --mud-palette-table-lines: var(--ddi-line);
    --mud-palette-divider: var(--ddi-line);

    /* the shared shell reads these */
    --sidebar-color: var(--ddi-graphite);
    --sidebar-btn-color: var(--ddi-body);
    --header-color: #fff;
    --top-menu-btn-color: var(--ddi-body);
    --top-row-font-family: var(--ddi-font);
    --spacing-between-menu-and-header-color: var(--ddi-line);
    --mud-nav-item-text-color: #94A3B8;
    --mud-nav-item-hover-color: rgba(255, 255, 255, .06);
    --mud-nav-item-hover-text-color: #fff;
    --mud-nav-item-active-color: rgba(16, 185, 129, .16);
    --mud-nav-item-active-text-color: #fff;

    /* the management grids colour their status text with these */
    --active-item-color: #1B7F4B;
    --disabled-item-color: #B26A00;

    /* the page kit (portal.css) */
    --app-font: var(--ddi-font);
    --app-font-head: var(--ddi-head);
    --app-ink: var(--ddi-ink);
    --app-ink-muted: var(--ddi-muted);
    --app-line: var(--ddi-line);
}

/* ------------------------------------------------------------ typography */

body,
.mud-typography,
.mud-button-root,
.mud-input,
.mud-input-label,
.mud-table-cell,
.mud-nav-link,
.mud-nav-link-text,
.mud-chip-content,
.mud-tab,
.mud-list-item-text,
.mud-snackbar,
.mud-tooltip {
    font-family: var(--ddi-font) !important;
}

.mud-typography-h1,
.mud-typography-h2,
.mud-typography-h3,
.mud-typography-h4,
.mud-typography-h5,
.mud-typography-h6 {
    font-family: var(--ddi-head) !important;
    letter-spacing: -.015em;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--ddi-body);
}

::selection {
    background: rgba(5, 150, 105, .16);
}

/* ---------------------------------------------------------------- header */

.top-header,
.app-boot-header {
    align-items: center !important;
    background: #fff !important;
    border-bottom: 1px solid var(--ddi-line) !important;
    box-shadow: 0 10px 30px -24px rgba(21, 25, 30, .5);
}

.top-header .mud-paper-square {
    background: transparent !important;
}

.top-header .navbar-brand,
.app-boot-header .navbar-brand {
    display: inline-flex;
    align-items: center;
    margin-top: 0 !important;
    transition: opacity .2s;
}

.top-header .navbar-brand img,
.app-boot-header .navbar-brand img {
    max-height: 40px !important;
    width: auto;
}

.top-header .navbar-brand:hover {
    opacity: .85;
}

.top-header .mud-icon-button {
    border-radius: 10px;
    color: var(--ddi-muted);
    transition: background-color .2s var(--ddi-ease), color .2s var(--ddi-ease), transform .2s var(--ddi-ease);
}

.top-header .mud-icon-button:hover {
    background-color: rgba(5, 150, 105, .08);
    color: var(--ddi-green);
}

.top-header .mud-icon-button:active {
    transform: scale(.94);
}

/* top menu links: a green line draws in under the one the pointer is on */
.top-header .top-row {
    background: transparent !important;
}

.top-header .top-row a {
    position: relative;
    font-family: var(--ddi-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    margin-right: 26px !important;
    padding: 6px 0 !important;
    border: 0 !important;
    overflow: visible !important;
    transition: color .2s;
}

.top-header .top-row a:hover {
    color: var(--ddi-green) !important;
}

.top-header .top-row a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--ddi-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ddi-ease);
}

.top-header .top-row a:hover::after {
    transform: scaleX(1);
}

/* ------------------------------------------------------------- left rail */

.mud-drawer.left-menu-drawer {
    background:
        radial-gradient(420px 300px at 0% 0%, rgba(16, 185, 129, .14), transparent 70%),
        linear-gradient(180deg, var(--ddi-graphite) 0%, var(--ddi-graphite-2) 55%, var(--ddi-night) 100%) !important;
    border-right: 0 !important;
    box-shadow: none !important;
}

/* the rail scrolls inside .mud-drawer-content, so the dark scrollbar goes on every level */
.left-menu-drawer,
.left-menu-drawer * {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .16) transparent;
}

.left-menu-drawer .mud-nav-item,
.left-menu-drawer .mud-nav-group {
    padding: 2px 10px !important;
}

.left-menu-drawer .mud-navmenu .mud-nav-link {
    height: 42px !important;
    line-height: 42px !important;
    align-items: center;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: .005em;
    color: var(--mud-nav-item-text-color);
    transition: background-color .2s var(--ddi-ease), color .2s var(--ddi-ease), transform .2s var(--ddi-ease) !important;
}

.left-menu-drawer .mud-nav-link .mud-nav-link-text,
.left-menu-drawer .mud-nav-group .mud-nav-link-text {
    font-size: 14px !important;
    font-weight: 500;
    color: var(--mud-nav-item-text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* a folder's own row reads a shade brighter than the items inside it */
.left-menu-drawer .mud-nav-group > .mud-nav-link .mud-nav-link-text {
    color: #E2E8F0 !important;
    font-weight: 600;
}

.left-menu-drawer .mud-nav-link .mud-nav-link-icon,
.left-menu-drawer .mud-nav-link .mud-nav-link-expand-icon {
    font-size: 20px;
    color: var(--mud-nav-item-text-color);
    opacity: .8;
    transition: opacity .2s, color .2s;
}

.left-menu-drawer .mud-nav-link:hover {
    background: var(--mud-nav-item-hover-color) !important;
    color: #fff;
    transform: translateX(2px);
}

.left-menu-drawer .mud-nav-link:hover .mud-nav-link-text {
    color: #fff;
}

.left-menu-drawer .mud-nav-link:hover .mud-nav-link-icon {
    opacity: 1;
}

/* items inside a folder hang off a faint guide line */
.left-menu-drawer .mud-nav-group .mud-collapse-wrapper-inner .mud-navmenu {
    margin-left: 18px;
    padding-left: 4px;
    border-left: 1px solid rgba(255, 255, 255, .08);
}

/* the open page: an emerald-tinted pill with a mint icon */
.left-menu-drawer .mud-nav-item .mud-nav-link.active,
.left-menu-drawer .mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled),
.left-menu-drawer .is-menu-alias .mud-nav-link:not(.mud-nav-link-disabled) {
    background: linear-gradient(90deg, rgba(16, 185, 129, .30), rgba(16, 185, 129, .08)) !important;
    box-shadow: inset 0 0 0 1px rgba(110, 231, 183, .10) !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.left-menu-drawer .mud-nav-item .mud-nav-link.active .mud-nav-link-text,
.left-menu-drawer .is-menu-alias .mud-nav-link .mud-nav-link-text {
    color: #fff !important;
    font-weight: 600;
}

.left-menu-drawer .mud-nav-item .mud-nav-link.active .mud-nav-link-icon,
.left-menu-drawer .is-menu-alias .mud-nav-link .mud-nav-link-icon {
    color: var(--ddi-green-light) !important;
    opacity: 1;
}

.left-menu-drawer .mud-nav-link:focus-visible {
    outline: 2px solid var(--ddi-green-light) !important;
    outline-offset: -2px;
}

/* Logout is a plain form button dressed as a nav link */
.left-menu-drawer form.mud-nav-item button.mud-nav-link {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    color: var(--mud-nav-item-text-color);
}

.left-menu-drawer form.mud-nav-item button.mud-nav-link .mud-icon-root {
    margin-right: 0;
    font-size: 20px;
    opacity: .8;
}

.left-menu-drawer form.mud-nav-item button.mud-nav-link:hover {
    background: var(--mud-nav-item-hover-color);
    color: #fff;
}

/* the search box pinned to the bottom of the rail - solid, so the items scrolling under it never show through */
.left-menu-drawer .search-input-container {
    padding: 12px;
    background: var(--ddi-night);
    border: 0 !important;
    z-index: 2;
}

.left-menu-drawer .search-input-container::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -28px;
    height: 28px;
    background: linear-gradient(to top, var(--ddi-night), rgba(9, 14, 25, 0));
    pointer-events: none;
}

.left-menu-drawer .left-menu-bottom-padding {
    margin-bottom: 96px !important;
}

.left-menu-drawer.closed .left-menu-bottom-padding {
    margin-bottom: 8px !important;
}

.left-menu-drawer .search-input {
    background: rgba(255, 255, 255, .07) !important;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 10px;
    padding: 2px 12px;
    transition: border-color .2s, background-color .2s;
}

.left-menu-drawer .search-input:focus-within {
    border-color: rgba(110, 231, 183, .55);
    background: rgba(255, 255, 255, .10) !important;
}

.left-menu-drawer .search-input input {
    color: #fff !important;
    font-size: 13.5px !important;
}

.left-menu-drawer .search-input input::placeholder {
    color: #8B93A1;
    opacity: 1;
}

.left-menu-drawer .search-input .mud-input-underline::before,
.left-menu-drawer .search-input .mud-input-underline::after {
    border-bottom: 0 !important;
}

.left-menu-drawer .search-input .mud-icon-root {
    color: #8B93A1;
}

/* ---------------------------------------------------------- page content */

/* the page is a light canvas, the content sits on white cards - depth without heavy shadows */
/* The boot frame's page area too (App.razor), so the page shows the same canvas while it connects. */
#main-content,
.app-boot-main {
    background: var(--ddi-canvas) !important;
}

#main-content .app-card,
#main-content .po-grid-list,
#main-content .mud-table.po-grid-list,
#main-content .mud-paper:not(.mud-paper-square):not(.mud-popover):not(.mud-tooltip),
#main-content .ddi-home-tile,
#main-content .acct-hero {
    background-color: #fff;
}

#main-content .po-grid-list,
#main-content .app-card {
    border: 1px solid var(--ddi-line);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -18px rgba(15, 23, 42, .18);
}

/* screens that still open with an h2 and a rule under it read like the page hero's title */
#main-content .mud-typography-h2 {
    font-family: var(--ddi-head) !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -.01em;
    color: var(--ddi-ink) !important;
    margin: 2px 0 4px;
}

#main-content .mud-typography-h4 {
    font-family: var(--ddi-head) !important;
    font-weight: 700 !important;
    color: var(--ddi-ink) !important;
}

#main-content .mud-typography-h6 {
    font-family: var(--ddi-head) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: var(--ddi-ink);
}

#main-content hr {
    border: 0;
    height: 1px;
    opacity: 1;
    margin: 6px 0 10px;
    background: linear-gradient(90deg, var(--ddi-line), rgba(229, 231, 235, 0));
}

/* breadcrumbs */
.sm-crumbs {
    font-size: 12px !important;
    letter-spacing: .02em;
}

.sm-crumbs__home,
.sm-crumbs__link {
    color: var(--ddi-green) !important;
    transition: color .2s;
}

.sm-crumbs__home:hover,
.sm-crumbs__link:hover {
    color: var(--ddi-green-dark) !important;
}

.sm-crumbs__text {
    color: var(--ddi-muted) !important;
}

.sm-crumbs__current {
    color: var(--ddi-ink) !important;
    font-weight: 600;
}

/* the page hero's icon tile picks up the brand */
.po-hero-icon {
    color: var(--ddi-green) !important;
    background: linear-gradient(145deg, #F0FDF7, #DDF7EC) !important;
    border-color: #BBEBD6 !important;
    box-shadow: 0 6px 14px -10px rgba(5, 150, 105, .55);
}

.po-hero-title {
    font-family: var(--ddi-head) !important;
}

/* ---------------------------------------------------------------- buttons */

.mud-button-root.mud-button {
    text-transform: none !important;
    letter-spacing: .01em;
    font-weight: 600 !important;
}

.mud-button-filled.mud-button-filled-primary {
    background: var(--ddi-green) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px -10px rgba(5, 150, 105, .75) !important;
    transition: transform .2s var(--ddi-ease), box-shadow .2s var(--ddi-ease), filter .2s !important;
}

.mud-button-filled.mud-button-filled-primary:hover {
    background: var(--ddi-green-dark) !important;
    box-shadow: 0 10px 20px -10px rgba(5, 150, 105, .7) !important;
}

.mud-button-filled.mud-button-filled-primary:active {
    transform: translateY(0);
}

.mud-button-filled.mud-button-filled-primary.mud-button-disabled,
.mud-button-filled.mud-button-filled-primary:disabled {
    background: var(--mud-palette-action-disabled-background) !important;
    color: var(--mud-palette-action-disabled) !important;
    box-shadow: none !important;
    transform: none;
}

.mud-button-outlined.mud-button-outlined-primary {
    border-color: rgba(5, 150, 105, .35);
}

.mud-button-outlined.mud-button-outlined-primary:hover {
    background: rgba(5, 150, 105, .06);
    border-color: var(--ddi-green);
}

/* filled icon buttons (fullscreen etc.) - rounded square instead of a circle */
#main-content .mud-icon-button.mud-button-filled {
    border-radius: 10px;
    box-shadow: 0 8px 18px -10px rgba(21, 25, 30, .6);
    transition: transform .2s var(--ddi-ease), box-shadow .2s var(--ddi-ease);
}

#main-content .mud-icon-button.mud-button-filled:hover {
    transform: translateY(-1px);
}

/* ------------------------------------------------------------------- grids */

/* every grid's header row reads the same: small, upper case, muted, on a faint ground */
#main-content .mud-table-root .mud-table-head .mud-table-cell {
    background: #F8F9FA;
    color: var(--ddi-muted);
    font-size: .68rem !important;
    font-weight: 700 !important;
    letter-spacing: .07em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--ddi-line);
}

#main-content .mud-table-root .mud-table-head .mud-table-cell .mud-button-root,
#main-content .mud-table-root .mud-table-head .mud-table-sort-label {
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit;
    text-transform: inherit !important;
    color: inherit;
}

#main-content .mud-table-hover .mud-table-body .mud-table-row:hover {
    background-color: rgba(5, 150, 105, .04) !important;
}

#main-content .mud-table-striped .mud-table-body .mud-table-row:nth-of-type(odd) {
    background-color: #FAFBFB;
}

/* body copy in the grids reads in the ink, not a washed-out grey */
#main-content .mud-table-body .mud-table-cell {
    color: var(--ddi-body);
}

/* text-field focus: the brand ring */
#main-content .mud-input.mud-input-outlined:focus-within .mud-input-adornment .mud-icon-root {
    color: var(--ddi-green);
}

/* tabs: the slider is the brand line */
.mud-tabs .mud-tab-slider {
    background: var(--ddi-green) !important;
}

.mud-tab {
    text-transform: none !important;
    font-weight: 600 !important;
}

/* page scrollbars */
#main-content,
#main-content * {
    scrollbar-width: thin;
    scrollbar-color: #C9CDD3 transparent;
}

/* ------------------------------------------------------------------ motion */

/* each page eases in when it opens. Fill backwards only: a transform left on the page after the animation
   makes it the containing block for position: fixed (the floating chat, the tour's spotlight). */
#main-content > * {
    animation: ddi-rise .15s var(--ddi-ease) backwards;
}

/* the rail's items arrive one after another on load */
.left-menu-drawer #main-container > * {
    animation: ddi-slide .4s var(--ddi-ease) backwards;
}

.left-menu-drawer #main-container > *:nth-child(2)  { animation-delay: .03s; }
.left-menu-drawer #main-container > *:nth-child(3)  { animation-delay: .06s; }
.left-menu-drawer #main-container > *:nth-child(4)  { animation-delay: .09s; }
.left-menu-drawer #main-container > *:nth-child(5)  { animation-delay: .12s; }
.left-menu-drawer #main-container > *:nth-child(6)  { animation-delay: .15s; }
.left-menu-drawer #main-container > *:nth-child(7)  { animation-delay: .18s; }
.left-menu-drawer #main-container > *:nth-child(8)  { animation-delay: .21s; }
.left-menu-drawer #main-container > *:nth-child(9)  { animation-delay: .24s; }
.left-menu-drawer #main-container > *:nth-child(10) { animation-delay: .27s; }
.left-menu-drawer #main-container > *:nth-child(n+11) { animation-delay: .3s; }

@keyframes ddi-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@keyframes ddi-slide {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    #main-content > *,
    .left-menu-drawer #main-container > * {
        animation: none !important;
    }

    .left-menu-drawer .mud-nav-link:hover,
    .mud-button-filled.mud-button-filled-primary:hover,
    #main-content .mud-icon-button.mud-button-filled:hover {
        transform: none;
    }
}

/* ------------------------------------------------------------- login page */
/* Account/Login and the AccountShell pages render the brand panel (LoginHeroComponent) beside the form:
   full screen, the panel carries the logo, so the portal header goes. login.css lays out the form. */

body:has(.login-page) .top-header {
    display: none !important;
}

#main-content:has(> .login-page) {
    padding: 0 !important;
}

.login-page {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: stretch;
    justify-items: center;
    min-height: 100vh;
    background: #fff;
    font-family: var(--ddi-font);
}

.login-page > .login-main {
    align-self: center;
    width: 100%;
    max-width: 420px;
    padding: 32px 16px;
}

.login-page .mud-typography-h2 {
    font-family: var(--ddi-head) !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    letter-spacing: -.02em;
    color: var(--ddi-ink) !important;
}

.ddi-login-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-self: stretch;
    margin: 16px 0 16px 16px;
    padding: 40px 56px 32px;
    border-radius: 20px;
    color: #9CA3AF;
    background:
        radial-gradient(700px 480px at 100% 0%, rgba(16, 185, 129, .10), transparent 65%),
        linear-gradient(165deg, var(--ddi-graphite) 0%, var(--ddi-graphite-2) 60%, var(--ddi-night) 100%);
    isolation: isolate;
}

.ddi-login-hero__brand,
.ddi-login-hero__content,
.ddi-login-hero__facts,
.ddi-login-hero__foot {
    position: relative;
    z-index: 2;
}

/* the wordmark: the logo's name, white on the panel, with its green and gold chart line */
.ddi-login-hero__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--ddi-head);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #fff;
}

.ddi-login-hero__brand svg {
    width: 40px;
    height: 40px;
}

.ddi-login-hero__content {
    margin: auto 0 0;
    max-width: 560px;
    animation: ddi-rise .7s var(--ddi-ease) .1s both;
}

.ddi-login-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #9CA3AF;
}

.ddi-login-hero__eyebrow::before {
    content: "";
    flex: none;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--ddi-gold);
}

.ddi-login-hero h1 {
    margin: 20px 0 18px;
    font-family: var(--ddi-head);
    font-size: clamp(32px, 3.4vw, 48px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.03em;
    color: #fff;
}

.ddi-login-hero h1 em {
    font-style: normal;
    color: var(--ddi-green-light);
}

.ddi-login-hero p {
    margin: 0;
    max-width: 44ch;
    font-size: 16px;
    line-height: 1.7;
    color: #9CA3AF;
}

.ddi-login-hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 620px;
    margin: 48px 0 auto;
    padding: 22px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    animation: ddi-rise .7s var(--ddi-ease) .25s both;
}

.ddi-login-hero__facts dt {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #E5E7EB;
}

.ddi-login-hero__facts dd {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #8B93A1;
}

.ddi-login-hero__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 12.5px;
    color: #6B7280;
}

.ddi-login-hero__foot .secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ddi-login-hero__foot svg {
    width: 14px;
    height: 14px;
    fill: #6B7280;
}

/* the chart in the top-right corner: the logo's two lines, drawn in on load */
.ddi-login-hero__art {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.ddi-login-hero__art svg {
    position: absolute;
    right: -40px;
    top: 60px;
    width: 70%;
    max-width: 620px;
    opacity: .55;
}

.ddi-login-hero__art path {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: ddi-draw 2.4s var(--ddi-ease) .3s forwards;
}

.ddi-login-hero__art .line-green { stroke: var(--ddi-green-2); }
.ddi-login-hero__art .line-gold { stroke: var(--ddi-gold); animation-delay: .6s; }
.ddi-login-hero__art .area { fill: url(#ddi-hero-fade); stroke: none; stroke-dasharray: none; stroke-dashoffset: 0; animation: ddi-fade 1.6s ease 1.2s both; }

@keyframes ddi-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes ddi-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 960px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .ddi-login-hero {
        margin: 12px 12px 0;
        padding: 28px 24px 22px;
    }

    .ddi-login-hero__content {
        margin: 40px 0 0;
    }

    .ddi-login-hero__facts {
        margin: 32px 0 28px;
    }
}

@media (max-width: 560px) {
    .ddi-login-hero__facts,
    .ddi-login-hero p,
    .ddi-login-hero__foot .secure,
    .ddi-login-hero__art {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ddi-login-hero *,
    .ddi-login-hero *::before,
    .ddi-login-hero *::after {
        animation: none !important;
    }

    .ddi-login-hero__art path {
        stroke-dashoffset: 0;
    }
}

/* ------------------------------------------------------------------ home */

.ddi-home {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1280px;
}

.ddi-home-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 150px;
    padding: 28px 32px;
    border-radius: 16px;
    color: #C9CED6;
    background:
        radial-gradient(520px 260px at 100% 0%, rgba(16, 185, 129, .22), transparent 70%),
        linear-gradient(135deg, var(--ddi-graphite) 0%, var(--ddi-graphite-2) 60%, var(--ddi-night) 100%);
    box-shadow: 0 18px 40px -28px rgba(15, 18, 21, .8);
}

.ddi-home-hero__text {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.ddi-home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9CA3AF;
}

.ddi-home-hero__eyebrow::before {
    content: "";
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: var(--ddi-gold);
}

.ddi-home-hero h1 {
    margin: 10px 0 8px;
    font-family: var(--ddi-head);
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
}

.ddi-home-hero p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.ddi-home-hero__art {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    height: 100%;
    opacity: .5;
}

.ddi-home-hero__art path {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ddi-home-hero__art .g { stroke: var(--ddi-green-2); }
.ddi-home-hero__art .y { stroke: var(--ddi-gold); stroke-width: 2.4; }

.ddi-home-section {
    margin: 10px 0 0;
    font-family: var(--ddi-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ddi-muted);
}

.ddi-home-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.ddi-home-tile {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--ddi-line);
    border-radius: 14px;
    background: #fff;
    color: var(--ddi-body);
    text-decoration: none !important;
    transition: border-color .2s var(--ddi-ease), box-shadow .2s var(--ddi-ease), transform .2s var(--ddi-ease);
}

.ddi-home-tile:hover {
    border-color: #BBEBD6;
    box-shadow: 0 14px 28px -20px rgba(5, 150, 105, .55);
    transform: translateY(-2px);
}

.ddi-home-tile:focus-visible {
    outline: 2px solid var(--ddi-green);
    outline-offset: 2px;
}

.ddi-home-tile__icon {
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--ddi-green);
    background: linear-gradient(145deg, #F0FDF7, #DDF7EC);
    border: 1px solid #BBEBD6;
}

.ddi-home-tile__title {
    font-family: var(--ddi-head);
    font-size: 15px;
    font-weight: 600;
    color: var(--ddi-ink);
}

.ddi-home-tile__text {
    font-size: 13px;
    line-height: 1.4;
    color: var(--ddi-muted);
}

.ddi-home-news {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.ddi-home-card ul {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.ddi-home-card li {
    position: relative;
    padding: 6px 0 6px 16px;
    font-size: 14px;
    line-height: 1.45;
    border-bottom: 1px solid #F1F2F4;
}

.ddi-home-card li:last-child {
    border-bottom: 0;
}

.ddi-home-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ddi-green-2);
}

.ddi-home-card li b {
    margin-right: 6px;
    color: var(--ddi-green-dark);
}

.ddi-home-card p {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 767.98px) {
    .ddi-home-hero {
        padding: 20px;
        min-height: 0;
    }

    .ddi-home-hero__art {
        width: 70%;
        opacity: .25;
    }

    .ddi-home-tiles {
        grid-template-columns: minmax(0, 1fr);
    }
}
