/* Minimal extra styling (Bootstrap is loaded via CDN) */

html,
body {
    min-height: 100%;
}

body.app-body {
    margin: 0;
    background: #f5f7fb;
    color: #142033;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 12.6rem minmax(0, 1fr);
}

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

.app-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: var(--tenant-sidebar-bg);
    color: var(--tenant-sidebar-text);
    overflow: visible;
}

.app-sidebar__head {
    flex: 0 0 auto;
    padding: .85rem .65rem .45rem;
    overflow: visible;
    z-index: 2;
}

.app-sidebar__scroll {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    gap: 1rem;
    padding: .45rem .65rem .85rem;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.app-sidebar__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: calc(100% + 4.6rem);
    min-height: 7rem;
    margin: -.85rem -4.7rem .8rem -.65rem;
    padding: 1rem 2.2rem 1.2rem 1.55rem;
    border-bottom-right-radius: 1.25rem;
    background: var(--tenant-sidebar-bg);
    box-shadow: .45rem .45rem 1rem rgba(15, 23, 42, .14);
    color: inherit;
    text-decoration: none;
    z-index: 3;
}

.app-sidebar__brand img {
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.app-sidebar__nav {
    display: grid;
    gap: .55rem;
    flex: 0 0 auto;
    min-height: 0;
    align-content: start;
    grid-auto-rows: max-content;
}

.app-sidebar__footer {
    display: grid;
    gap: .55rem;
    margin-top: auto;
    padding-top: .25rem;
    flex: 0 0 auto;
}

.app-shell--admin .app-sidebar {
    --tenant-sidebar-bg: #7f1d1d;
    --tenant-sidebar-text: #fff7ed;
    --tenant-sidebar-active-bg: #fecaca;
    --tenant-sidebar-active-text: #450a0a;
    background:
        linear-gradient(180deg, rgba(127, 29, 29, .98), rgba(69, 10, 10, .98));
}

.app-shell--admin .app-sidebar__brand {
    background: #450a0a;
    box-shadow: .45rem .45rem 1rem rgba(69, 10, 10, .28);
}

.app-shell--customer .app-sidebar {
    --tenant-sidebar-bg: #065f46;
    --tenant-sidebar-text: #ecfdf5;
    --tenant-sidebar-active-bg: #bbf7d0;
    --tenant-sidebar-active-text: #052e16;
    background:
        linear-gradient(180deg, rgba(6, 95, 70, .98), rgba(20, 83, 45, .98));
}

.app-shell--customer .app-sidebar__brand {
    background: #064e3b;
    box-shadow: .45rem .45rem 1rem rgba(6, 78, 59, .28);
}

.app-sidebar__mode {
    margin: -.35rem .1rem 0;
    padding: .45rem .5rem;
    border: 1px solid rgba(254, 202, 202, .45);
    border-radius: .45rem;
    background: rgba(254, 202, 202, .14);
    color: #fff7ed;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
}

.app-shell--admin .app-module-tile {
    border-color: rgba(254, 202, 202, .24);
}

.app-shell--customer .app-module-tile {
    border-color: rgba(187, 247, 208, .24);
}

.app-shell--admin .app-module-tile:hover,
.app-shell--admin .app-module-tile:focus {
    background: rgba(254, 202, 202, .14);
    border-color: rgba(254, 202, 202, .45);
}

.app-shell--customer .app-module-tile:hover,
.app-shell--customer .app-module-tile:focus {
    background: rgba(187, 247, 208, .14);
    border-color: rgba(187, 247, 208, .45);
}

.app-shell--admin .app-module-tile.is-active {
    background: #fecaca;
    color: #450a0a;
    border-color: #fee2e2;
}

.app-shell--customer .app-module-tile.is-active {
    background: #bbf7d0;
    color: #052e16;
    border-color: #dcfce7;
}

.app-module-tile {
    display: grid;
    justify-items: center;
    gap: .35rem;
    min-height: 5.2rem;
    padding: .7rem .35rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: .5rem;
    color: var(--tenant-sidebar-text);
    text-align: center;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.app-module-tile:hover,
.app-module-tile:focus {
    color: var(--tenant-sidebar-text);
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .22);
    transform: translateY(-1px);
}

.app-module-tile.is-active {
    color: var(--tenant-sidebar-active-text);
    background: var(--tenant-sidebar-active-bg);
    border-color: rgba(255, 255, 255, .28);
}

.app-module-tile__visual {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .45rem;
    background: var(--module-color);
    color: var(--module-text);
    box-shadow: 0 .35rem .75rem rgba(0, 0, 0, .14);
}

.app-module-tile__visual svg,
.app-module-tile__visual img {
    width: 1.45rem;
    height: 1.45rem;
}

.app-module-tile__visual img {
    object-fit: contain;
}

.app-module-tile__label {
    max-width: 100%;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.app-sidebar__collapse {
    padding: .6rem .25rem;
    color: var(--tenant-sidebar-text);
    font-size: .75rem;
    opacity: .85;
    text-decoration: none;
}

.app-sidebar__switch {
    display: grid;
    justify-items: center;
    gap: .35rem;
    min-height: 4.4rem;
    padding: .7rem .35rem;
    color: var(--tenant-sidebar-text);
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: .5rem;
    background: rgba(255, 255, 255, .06);
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.app-sidebar__switch:hover,
.app-sidebar__switch:focus {
    color: var(--tenant-sidebar-text);
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .3);
    transform: translateY(-1px);
}

.app-sidebar__switch-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .45rem;
    background: rgba(255, 255, 255, .14);
}

.app-sidebar__switch-icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.app-sidebar__switch span:last-child {
    max-width: 100%;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.app-shell--admin .app-sidebar__switch {
    border-color: rgba(254, 202, 202, .28);
    background: rgba(254, 202, 202, .12);
}

.app-shell--admin .app-sidebar__switch:hover,
.app-shell--admin .app-sidebar__switch:focus {
    background: rgba(254, 202, 202, .18);
    border-color: rgba(254, 202, 202, .45);
}

.app-shell--customer .app-sidebar__switch {
    border-color: rgba(187, 247, 208, .28);
    background: rgba(187, 247, 208, .12);
}

.app-shell--customer .app-sidebar__switch:hover,
.app-shell--customer .app-sidebar__switch:focus {
    background: rgba(187, 247, 208, .18);
    border-color: rgba(187, 247, 208, .45);
}

.app-main {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-topbar {
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1.5rem;
    border-bottom: 1px solid #e1e7f0;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
}

.app-topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
    color: #142033;
}

.app-topbar__brand:hover {
    color: #142033;
}

@media (min-width: 992px) {
    .app-shell:not(.app-shell--plain) .app-topbar__brand {
        margin-left: 3.25rem;
    }
}

.app-topbar__brand > span {
    display: grid;
    gap: .15rem;
    min-width: 0;
}

.app-topbar__title {
    font-size: .95rem;
    font-weight: 600;
}

.app-topbar__version {
    color: #66758a;
    font-size: .72rem;
}

.app-topbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
    min-width: 0;
}

.app-icon-link {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6e0ee;
    border-radius: .45rem;
    background: #fff;
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.app-theme-toggle {
    padding: 0;
    cursor: pointer;
}

.app-theme-toggle__icon {
    font-size: 1rem;
    line-height: 1;
}

.app-icon-link:hover {
    background: #f7faff;
    color: #1d4ed8;
}

[data-bs-theme="dark"] body.app-body {
    background: #0f172a;
    color: #e5e7eb;
}

[data-bs-theme="dark"] .app-topbar {
    border-bottom-color: #263244;
    background: rgba(17, 24, 39, .94);
}

[data-bs-theme="dark"] .app-topbar__brand,
[data-bs-theme="dark"] .app-topbar__brand:hover,
[data-bs-theme="dark"] .app-topbar__title,
[data-bs-theme="dark"] .app-user__text strong {
    color: #f8fafc;
}

[data-bs-theme="dark"] .app-topbar__version,
[data-bs-theme="dark"] .app-user__text,
[data-bs-theme="dark"] .app-crumbs {
    color: #94a3b8;
}

[data-bs-theme="dark"] .app-icon-link {
    border-color: #334155;
    background: #111827;
    color: #bfdbfe;
}

[data-bs-theme="dark"] .app-icon-link:hover {
    background: #1f2937;
    color: #dbeafe;
}

[data-bs-theme="dark"] .app-content {
    background: #0f172a;
}

[data-bs-theme="dark"] .app-footer {
    border-top-color: #263244;
    background: #111827;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .dropdown-menu {
    background-color: #111827;
    border-color: #263244;
}

[data-bs-theme="dark"] .table {
    --bs-table-bg: transparent;
}

[data-bs-theme="dark"] .product-index-table {
    --bs-table-color: #dbeafe;
    --bs-table-hover-color: #f8fafc;
    --bs-table-hover-bg: rgba(59, 130, 246, .14);
    color: #dbeafe;
}

[data-bs-theme="dark"] .product-index-table thead th {
    color: #f8fafc;
    border-bottom-color: #94a3b8;
    background: rgba(15, 23, 42, .92);
}

[data-bs-theme="dark"] .product-index-table tbody td {
    color: #dbeafe;
    border-color: #334155;
}

[data-bs-theme="dark"] .product-index-table .fw-semibold {
    color: #f8fafc;
}

[data-bs-theme="dark"] .product-index-table .text-muted {
    color: #93c5fd !important;
}

.app-user {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
}

.app-user__avatar {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
}

.app-user__text {
    display: grid;
    gap: .05rem;
    color: #68778c;
    font-size: .72rem;
    line-height: 1.15;
}

.app-user__text strong {
    color: #142033;
    font-size: .82rem;
}

.app-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .55rem 1.5rem 0;
    color: #7b8798;
    font-size: .78rem;
}

.app-crumbs a,
.app-footer a {
    color: inherit;
    text-decoration: none;
}

.app-crumbs a:hover,
.app-footer a:hover {
    text-decoration: underline;
}

.app-content {
    flex: 1 0 auto;
    width: 100%;
    padding: 1rem 1.5rem 1.5rem;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e1e7f0;
    background: #fff;
}

@media (max-width: 991.98px) {
    .app-shell {
        display: block;
    }

    .app-sidebar {
        position: static;
        height: auto;
        min-height: 0;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        padding: .85rem .65rem;
    }

    .app-sidebar__head,
    .app-sidebar__scroll {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex: 0 0 auto;
        min-height: 0;
        padding: 0;
        overflow: visible;
    }

    .app-sidebar__brand {
        min-width: 7rem;
        min-height: 3.5rem;
        width: auto;
        margin: 0;
        padding: .75rem 1rem;
        border-radius: .9rem;
    }

    .app-sidebar__nav {
        display: flex;
        gap: .5rem;
    }

    .app-sidebar__footer {
        display: flex;
        gap: .5rem;
        margin-top: 0;
        padding-top: 0;
    }

    .app-module-tile {
        min-width: 5.8rem;
    }

    .app-sidebar__switch {
        min-width: 6.4rem;
    }

    .app-sidebar__collapse {
        display: none;
    }

    .app-topbar {
        flex-wrap: wrap;
        padding: .85rem 1rem;
    }

    .app-shell:not(.app-shell--plain) .app-topbar__brand {
        margin-left: 0;
    }

    .app-topbar__actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .app-content,
    .app-crumbs,
    .app-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 575.98px) {
    .app-user__text {
        display: none;
    }

    .app-footer {
        flex-direction: column;
    }
}

code { font-size: .875em; }

.contents { display: contents; }

.card { border-radius: 1rem; }

.work-public-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, .85fr);
    gap: 2rem;
    align-items: stretch;
    padding: 2.25rem 0 1.25rem;
}

.work-public-hero--story {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    max-width: 72rem;
    margin: 0 auto;
    padding-top: 2.5rem;
    font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
}

.work-public-hero__logo {
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem 1rem;
}

.work-public-hero__logo img {
    width: min(54rem, 100%);
    height: auto;
    border-radius: .5rem;
    box-shadow: 0 1rem 2.4rem rgba(20, 32, 51, .08);
}

.work-public-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 34rem;
    padding: 2rem 0;
}

.work-public-hero__story {
    min-height: 0;
    padding: 0 0 1.5rem;
}

.work-public-hero__story h1,
.work-public-hero__story .work-public-hero__lead,
.work-public-hero__story .work-public-hero__text {
    max-width: 64rem;
}

.work-public-hero--story .work-public-hero__story h1 {
    max-width: 52rem;
    font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: 0;
}

.work-public-hero--story .work-public-hero__story .work-public-kicker {
    font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0;
}

.work-public-hero--story .work-public-hero__story .work-public-hero__lead {
    font-size: 1.12rem;
    line-height: 1.7;
}

.work-public-kicker {
    margin-bottom: .75rem;
    color: #0f766e;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.work-public-hero h1 {
    max-width: 52rem;
    margin: 0 0 1rem;
    color: #101827;
    font-size: 3.15rem;
    font-weight: 800;
    line-height: 1.06;
}

.work-public-hero__lead {
    max-width: 48rem;
    margin: 0 0 1rem;
    color: #28364b;
    font-size: 1.22rem;
    line-height: 1.6;
}

.work-public-hero__text {
    max-width: 48rem;
    margin: 0;
    color: #506074;
    font-size: 1rem;
    line-height: 1.7;
}

.work-public-actions,
.work-public-notes {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    margin-top: 1.6rem;
}

.work-public-notes {
    gap: .55rem;
    margin-top: 1rem;
}

.work-public-notes span {
    padding: .45rem .65rem;
    border: 1px solid #dbe5ef;
    border-radius: 999px;
    background: #fff;
    color: #506074;
    font-size: .88rem;
}

.work-public-hero__visual {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 34rem;
    padding: 1.15rem;
    border: 1px solid #d8e1ed;
    border-radius: .5rem;
    background: #ffffff;
    box-shadow: 0 1.25rem 3rem rgba(20, 32, 51, .12);
}

.work-public-visual-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5edf5;
    color: #5b6676;
    font-weight: 700;
}

.work-public-visual-top img {
    max-width: 11rem;
    max-height: 3.2rem;
    object-fit: contain;
}

.work-public-visual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin: 1rem 0;
}

.work-public-visual-module {
    min-height: 8.5rem;
    padding: .8rem;
    border: 1px solid #e3eaf3;
    border-radius: .5rem;
    background: #f8fafc;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.work-public-visual-module:hover {
    transform: translateY(-.18rem);
    border-color: #c9d8ea;
    background: #ffffff;
    box-shadow: 0 1rem 2rem rgba(20, 32, 51, .12);
}

.work-public-symbol,
.work-public-module__icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: .45rem;
    background: var(--module-color);
    color: var(--module-text);
    box-shadow: inset 0 -1rem 1.5rem rgba(0, 0, 0, .12);
}

.work-public-symbol svg {
    width: 1.65rem;
    height: 1.65rem;
    transition: transform .22s ease;
}

.work-public-visual-module:hover .work-public-symbol svg,
.work-public-module:hover .work-public-symbol svg {
    transform: scale(1.08) rotate(-2deg);
}

.work-public-visual-module strong,
.work-public-visual-module small {
    display: block;
}

.work-public-visual-module strong {
    margin-top: .65rem;
    color: #142033;
    font-size: .96rem;
}

.work-public-visual-module small {
    margin-top: .25rem;
    color: #607086;
    line-height: 1.35;
}

.work-public-visual-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: .5rem;
    background: #132033;
    color: #fff;
}

.work-public-visual-price span {
    color: #b6c4d7;
    font-size: .9rem;
}

.work-public-visual-price strong {
    font-size: 1.15rem;
}

.work-public-logo-stage {
    position: relative;
    display: flex;
    min-height: 34rem;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    border: 1px solid #d8e1ed;
    border-radius: .5rem;
    background:
        radial-gradient(circle at 28% 24%, rgba(14, 165, 233, .14), transparent 34%),
        radial-gradient(circle at 72% 62%, rgba(20, 184, 166, .13), transparent 35%),
        #ffffff;
    box-shadow: 0 1.25rem 3rem rgba(20, 32, 51, .12);
    overflow: hidden;
}

.work-public-logo-stage__label {
    display: none;
}

.work-public-logo-motion {
    width: 100%;
    min-height: 28rem;
    overflow: visible;
}

.work-public-final-logo {
    position: absolute;
    inset: 50% 2rem auto;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(-50%) scale(.94);
    animation: mes-final-logo-in 6.4s ease infinite;
    pointer-events: none;
}

.work-public-final-logo img {
    width: min(34rem, 88%);
    height: auto;
    border-radius: .35rem;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .12);
}

.motion-piece {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: mes-piece-in 6.4s cubic-bezier(.2, .85, .2, 1) infinite;
}

.motion-piece--one {
    --start-x: -155px;
    --start-y: -88px;
    animation-delay: 0s;
}

.motion-piece--two {
    --start-x: -138px;
    --start-y: 108px;
    animation-delay: .12s;
}

.motion-piece--three {
    --start-x: 128px;
    --start-y: -112px;
    animation-delay: .24s;
}

.motion-piece--four {
    --start-x: 150px;
    --start-y: 80px;
    animation-delay: .36s;
}

.motion-mark {
    animation: mes-mark-settle 6.4s ease infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.motion-wordmark {
    opacity: 0;
    transform: translateX(26px);
    animation: mes-wordmark-in 7.2s ease infinite;
}

.motion-wordmark__main {
    fill: #061a45;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 72px;
    font-weight: 800;
    letter-spacing: .01em;
}

.motion-wordmark__claim {
    fill: #061a45;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
}

.motion-wordmark__claim tspan {
    fill: #0cbca5;
}

@keyframes mes-piece-in {
    0% {
        opacity: 0;
        transform: translate(var(--start-x), var(--start-y)) scale(.58);
    }
    16% {
        opacity: 1;
        transform: translate(var(--start-x), var(--start-y)) scale(.78);
    }
    42% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    55% {
        opacity: 1;
        transform: translate(0, 0) scale(1.02);
        filter: drop-shadow(0 0 1.4rem rgba(14, 165, 233, .45));
    }
    64%, 91% {
        opacity: 1;
        transform: translate(0, 0) scale(.38);
        filter: drop-shadow(0 .65rem 1rem rgba(15, 23, 42, .2));
    }
    100% {
        opacity: 0;
        transform: translate(0, 0) scale(.38);
    }
}

@keyframes mes-mark-settle {
    0%, 59% {
        transform: translate(0, 0) scale(1);
    }
    64%, 91% {
        transform: translate(-74px, -32px) scale(.7);
    }
    100% {
        transform: translate(-74px, -32px) scale(.7);
    }
}

@keyframes mes-wordmark-in {
    0%, 56% {
        opacity: 0;
        transform: translateX(28px);
    }
    68%, 92% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(0);
    }
}

@keyframes mes-final-logo-in {
    0%, 58% {
        opacity: 0;
        transform: translateY(-48%) scale(.94);
    }
    68%, 91% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) scale(1);
    }
}

.work-public-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin: 1rem 0 2.5rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid #cae7df;
    border-radius: .5rem;
    background: #ecfdf7;
}

.work-public-band div {
    display: grid;
    gap: .15rem;
}

.work-public-band__label {
    color: #0f766e;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.work-public-section {
    padding: 2rem 0 1rem;
}

.work-public-section--compact {
    padding-bottom: 3rem;
}

.work-public-section__head {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(18rem, .6fr);
    gap: 2rem;
    align-items: end;
    margin-bottom: 1.25rem;
}

.work-public-section__head h2 {
    margin: 0;
    color: #142033;
    font-size: 2rem;
    font-weight: 800;
}

.work-public-section__head p {
    margin: 0;
    color: #596a80;
    line-height: 1.65;
}

.work-public-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
}

.work-public-module {
    display: flex;
    min-height: 16.5rem;
    flex-direction: column;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid #dce5ef;
    border-radius: .5rem;
    background: #fff;
    animation: work-public-tile-in .45s ease both;
    animation-delay: calc(var(--tile-index, 0) * 45ms);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.work-public-module:hover,
.work-public-module:focus-within {
    transform: translateY(-.32rem);
    border-color: #b8c9dd;
    box-shadow: 0 1.35rem 2.4rem rgba(20, 32, 51, .14);
}

.work-public-module::after {
    content: "";
    height: .2rem;
    margin: .15rem -1rem -1rem;
    border-radius: 0 0 .5rem .5rem;
    background: var(--module-color);
    opacity: .18;
    transition: opacity .22s ease;
}

.work-public-module:hover::after,
.work-public-module:focus-within::after {
    opacity: .85;
}

@keyframes work-public-tile-in {
    from {
        opacity: 0;
        transform: translateY(.7rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .work-public-module,
    .work-public-visual-module,
    .motion-piece,
    .motion-mark,
    .motion-wordmark,
    .work-public-final-logo,
    .work-public-symbol svg {
        animation: none;
        transition: none;
    }

    .motion-piece,
    .motion-wordmark,
    .work-public-final-logo {
        opacity: 1;
        transform: none;
    }

    .work-public-module:hover,
    .work-public-module:focus-within,
    .work-public-visual-module:hover {
        transform: none;
    }
}

.work-public-module__head {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}

.work-public-module h3 {
    margin: 0;
    color: #142033;
    font-size: 1.05rem;
    font-weight: 800;
}

.work-public-module__head span:not(.work-public-module__icon) {
    display: block;
    margin-top: .15rem;
    color: #66778d;
    font-size: .9rem;
}

.work-public-module p {
    margin: 0;
    color: #506074;
    line-height: 1.55;
}

.work-public-module__price {
    margin-top: auto;
    padding-top: .7rem;
    border-top: 1px solid #edf2f7;
    color: #142033;
    font-weight: 800;
}

.work-public-module__usage {
    display: grid;
    gap: .35rem;
    color: #0f766e;
    font-size: .88rem;
}

.work-public-module__link {
    align-self: flex-start;
    color: #0f766e;
    font-weight: 800;
    text-decoration: none;
}

.work-public-module__link:hover {
    text-decoration: underline;
}

.work-public-category-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.work-public-category {
    display: grid;
    gap: .25rem;
    min-height: 6.5rem;
    padding: 1rem;
    border: 1px solid #dce5ef;
    border-radius: .5rem;
    background: #fff;
}

.work-public-category strong {
    color: #142033;
}

.work-public-category span {
    color: #607086;
    line-height: 1.45;
}

.work-public-detail {
    padding: 2rem 0 4rem;
}

.work-public-detail__back {
    display: inline-flex;
    margin-bottom: 1.25rem;
    color: #0f766e;
    font-weight: 800;
    text-decoration: none;
}

.work-public-detail__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, .36fr);
    gap: 2rem;
    align-items: stretch;
    padding: 2rem;
    border: 1px solid #dce5ef;
    border-radius: .5rem;
    background: #fff;
}

.work-public-detail__hero h1 {
    margin: 0 0 .75rem;
    color: #142033;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
}

.work-public-detail__subtitle {
    margin: 0 0 .75rem;
    color: #0f766e;
    font-size: 1.1rem;
    font-weight: 800;
}

.work-public-detail__lead {
    max-width: 56rem;
    margin: 0;
    color: #506074;
    font-size: 1.12rem;
    line-height: 1.65;
}

.work-public-detail__price {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.25rem;
    border-radius: .5rem;
    background: #132033;
    color: #fff;
}

.work-public-detail__price span {
    color: #b6c4d7;
    font-size: .9rem;
    font-weight: 700;
}

.work-public-detail__price strong {
    font-size: 1.15rem;
    line-height: 1.4;
}

.work-public-detail__body {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.work-public-detail__body article {
    padding: 1.25rem;
    border: 1px solid #dce5ef;
    border-radius: .5rem;
    background: #fff;
}

.work-public-detail__body h2 {
    margin: 0 0 .75rem;
    color: #142033;
    font-size: 1.25rem;
    font-weight: 800;
}

.work-public-detail__body p,
.work-public-detail__body li {
    color: #506074;
    line-height: 1.65;
}

.work-public-detail__body ul {
    margin: 0;
    padding-left: 1.1rem;
}

[data-bs-theme="dark"] .work-public-hero h1,
[data-bs-theme="dark"] .work-public-section__head h2,
[data-bs-theme="dark"] .work-public-module h3,
[data-bs-theme="dark"] .work-public-category strong,
[data-bs-theme="dark"] .work-public-detail__hero h1,
[data-bs-theme="dark"] .work-public-detail__body h2 {
    color: #f8fafc;
}

[data-bs-theme="dark"] .work-public-hero__lead,
[data-bs-theme="dark"] .work-public-hero__text,
[data-bs-theme="dark"] .work-public-section__head p,
[data-bs-theme="dark"] .work-public-module p,
[data-bs-theme="dark"] .work-public-category span,
[data-bs-theme="dark"] .work-public-detail__lead,
[data-bs-theme="dark"] .work-public-detail__body p,
[data-bs-theme="dark"] .work-public-detail__body li {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .work-public-module__head span:not(.work-public-module__icon),
[data-bs-theme="dark"] .work-public-visual-module small,
[data-bs-theme="dark"] .work-public-detail__price span {
    color: #b6c4d7;
}

[data-bs-theme="dark"] .work-public-notes span,
[data-bs-theme="dark"] .work-public-hero__visual,
[data-bs-theme="dark"] .work-public-logo-stage,
[data-bs-theme="dark"] .work-public-visual-module,
[data-bs-theme="dark"] .work-public-module,
[data-bs-theme="dark"] .work-public-category,
[data-bs-theme="dark"] .work-public-detail__hero,
[data-bs-theme="dark"] .work-public-detail__body article {
    border-color: #334155;
    background: #111827;
}

[data-bs-theme="dark"] .work-public-logo-stage {
    background:
        radial-gradient(circle at 28% 24%, rgba(14, 165, 233, .18), transparent 34%),
        radial-gradient(circle at 72% 62%, rgba(20, 184, 166, .16), transparent 35%),
        #071225;
}

[data-bs-theme="dark"] .motion-wordmark__main,
[data-bs-theme="dark"] .motion-wordmark__claim {
    fill: #ffffff;
}

[data-bs-theme="dark"] .work-public-visual-module:hover {
    border-color: #475569;
    background: #172033;
}

[data-bs-theme="dark"] .work-public-visual-top,
[data-bs-theme="dark"] .work-public-module__price {
    border-color: #334155;
}

[data-bs-theme="dark"] .work-public-visual-module strong,
[data-bs-theme="dark"] .work-public-module__price {
    color: #f8fafc;
}

[data-bs-theme="dark"] .work-public-band {
    border-color: #0f766e;
    background: #0f2f2a;
    color: #ecfdf5;
}

@media (max-width: 1100px) {
    .work-public-hero,
    .work-public-section__head {
        grid-template-columns: 1fr;
    }

    .work-public-hero__copy,
    .work-public-hero__visual {
        min-height: auto;
    }

    .work-public-module-grid,
    .work-public-category-list,
    .work-public-detail__body {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-public-detail__hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .work-public-hero {
        padding-top: 1rem;
    }

    .work-public-hero h1 {
        font-size: 2.2rem;
    }

    .work-public-hero--story .work-public-hero__story h1 {
        font-size: 1.85rem;
        line-height: 1.24;
    }

    .work-public-hero__lead {
        font-size: 1.05rem;
    }

    .work-public-visual-grid,
    .work-public-module-grid,
    .work-public-category-list,
    .work-public-detail__body {
        grid-template-columns: 1fr;
    }

    .work-public-band,
    .work-public-visual-price {
        align-items: stretch;
        flex-direction: column;
    }

    .work-public-actions .btn {
        width: 100%;
    }
}

.work-trial-page {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(28rem, 1fr);
    gap: 2rem;
    align-items: start;
    padding: 2rem 0 3rem;
}

.work-trial-page__intro {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 1rem;
}

.work-trial-page__intro h1 {
    margin: 0;
    color: #142033;
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.12;
}

.work-trial-page__intro p {
    margin: 0;
    color: #506074;
    font-size: 1.05rem;
    line-height: 1.7;
}

.work-trial-steps {
    display: grid;
    gap: .75rem;
    margin-top: .5rem;
}

.work-trial-steps div {
    display: flex;
    gap: .75rem;
    align-items: center;
    padding: .8rem;
    border: 1px solid #dce5ef;
    border-radius: .5rem;
    background: #fff;
}

.work-trial-steps strong {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #0f766e;
    color: #fff;
}

.work-trial-card {
    padding: 1.25rem;
    border: 1px solid #d8e1ed;
    border-radius: .5rem;
    background: #ffffff;
    box-shadow: 0 1rem 2.5rem rgba(20, 32, 51, .1);
}

.work-trial-card h2 {
    margin: 0 0 .5rem;
    color: #142033;
    font-size: 1.5rem;
    font-weight: 800;
}

.work-trial-module-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.work-trial-module-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .65rem;
    min-height: 8rem;
    padding: .85rem;
    border: 1px solid #dce5ef;
    border-radius: .5rem;
    background: #f8fafc;
}

.work-trial-module-option span,
.work-trial-module-option small,
.work-trial-module-option em {
    display: block;
}

.work-trial-module-option strong {
    color: #142033;
}

.work-trial-module-option small {
    margin-top: .25rem;
    color: #607086;
    line-height: 1.45;
}

.work-trial-module-option em {
    margin-top: .5rem;
    color: #0f766e;
    font-style: normal;
    font-weight: 700;
}

@media (max-width: 1000px) {
    .work-trial-page {
        grid-template-columns: 1fr;
    }

    .work-trial-page__intro {
        position: static;
    }
}

@media (max-width: 720px) {
    .work-trial-module-list {
        grid-template-columns: 1fr;
    }

    .work-trial-page__intro h1 {
        font-size: 2rem;
    }
}

.table > :not(caption) > * > * { vertical-align: middle; }

.time-date-hero {
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 55%, #ffffff 100%);
    border: 1px solid #d9e7fb;
}

.time-date-hero__eyebrow {
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #5f6f86;
    margin-bottom: .35rem;
}

.time-date-hero__date {
    font-size: 1.1rem;
    color: #4f5d73;
}

.time-date-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}

.time-progress-card {
    height: 100%;
    padding: 1rem;
    border: 1px solid #dfe7f3;
    border-radius: 1rem;
    background: #fff;
}

.time-progress-track {
    height: .7rem;
    border-radius: 999px;
    background: #e8eef6;
    overflow: hidden;
}

.time-progress-fill {
    height: 100%;
    border-radius: inherit;
}

.time-progress-fill.is-presence {
    background: linear-gradient(90deg, #58a6ff 0%, #2f74ff 100%);
}

.time-progress-fill.is-booked {
    background: linear-gradient(90deg, #46b97a 0%, #1d8f5a 100%);
}

.time-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    font-size: .85rem;
    color: #5f6f86;
}

.time-focus-card {
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #fff9ef 0%, #fff 100%);
    border: 1px solid #f1ddba;
}

.time-summary-table {
    height: 100%;
    border: 1px solid #dfe7f3;
    border-radius: 1rem;
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
    overflow: hidden;
}

.time-summary-table__row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #e7edf7;
}

.time-summary-table__row:last-child {
    border-bottom: 0;
}

.time-summary-table__label {
    font-size: .9rem;
    color: #5f6f86;
}

.time-summary-table__value {
    font-size: 1rem;
    font-weight: 600;
    text-align: right;
    color: #213047;
}

.time-visual-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.time-project-column {
    display: flex;
    flex-direction: column;
}

.time-project-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.time-project-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1rem;
    border: 1px solid #dfe7f3;
    border-radius: 1rem;
    background: #fff;
}

.time-presence-total-row td {
    border-top: 3px solid #213047 !important;
    font-weight: 700;
    background: #f8fbff;
}

.time-presence-row-active td {
    background: linear-gradient(90deg, #eefaf3 0%, #f8fffb 100%);
    font-weight: 600;
}

.time-presence-row-active td:first-child {
    box-shadow: inset 4px 0 0 #198754;
}

@media (max-width: 767.98px) {
    .time-summary-table__row {
        grid-template-columns: 1fr;
        gap: .35rem;
    }

    .time-summary-table__value {
        text-align: left;
    }

    .time-project-list__item {
        align-items: flex-start;
        flex-direction: column;
    }
}

.time-entry-table th {
    white-space: nowrap;
    font-size: .85rem;
}

.time-entry-table td {
    vertical-align: top;
}

.time-entry-table .form-control,
.time-entry-table .form-select {
    min-width: 0;
}

.time-entry-layout {
    display: grid;
    grid-template-columns: minmax(18rem, 1fr) minmax(24rem, 1fr);
    gap: 1.25rem;
}

.time-entry-panel {
    border: 1px solid #dfe7f3;
    border-radius: 1rem;
    padding: 1.25rem;
    background: #fff;
}

.time-entry-panel--accent {
    background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
    border-color: #ecd9b8;
}

.time-entry-empty {
    border: 1px dashed #d3dbe7;
    border-radius: .9rem;
    padding: 1rem;
    background: #fafcff;
}

.time-entry-draft-list {
    display: grid;
    gap: .9rem;
}

.time-entry-draft-row {
    border: 1px solid #e2e8f2;
    border-radius: .9rem;
    padding: .9rem;
    background: #f9fbfe;
}

.time-entry-draft-row__grid {
    display: grid;
    grid-template-columns: minmax(8rem, 10rem) minmax(16rem, 1fr) auto;
    gap: .85rem;
    align-items: end;
}

.time-entry-draft-row__actions {
    display: flex;
    gap: .5rem;
    align-items: end;
}

.time-import-day {
    border: 1px solid #d8e1ec;
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
}

.time-import-day.is-ready {
    border-color: #73c69d;
    background: linear-gradient(135deg, #f2fbf5 0%, #ffffff 100%);
}

.time-import-day.is-open {
    border-color: #e7c36a;
    background: linear-gradient(135deg, #fff9e9 0%, #ffffff 100%);
}

.time-import-day.is-imported {
    border-color: #8ab7ff;
    background: linear-gradient(135deg, #eef5ff 0%, #ffffff 100%);
}

.time-import-row.is-open {
    background: #fffaf0;
}

.time-import-cell.is-ready {
    background: #edf9f0;
}

.time-import-cell.is-open {
    background: #fff1d6;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .time-entry-layout {
        grid-template-columns: 1fr;
    }

    .time-entry-draft-row__grid {
        grid-template-columns: 1fr;
    }

    .time-entry-draft-row__actions {
        justify-content: flex-start;
    }
}

.time-entry-hero {
    border: 1px solid #dce5f2;
    border-radius: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
}

.time-entry-progress {
    border: 1px solid #dfe7f3;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, #fffef8 0%, #ffffff 100%);
}

.time-entry-progress__header,
.time-entry-progress__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.time-entry-progress__track {
    margin: .85rem 0 .65rem;
    height: .8rem;
    border-radius: 999px;
    background: #edf2f9;
    overflow: hidden;
}

.time-entry-progress__value {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f6fed 0%, #79a7ff 100%);
}

.time-entry-tabs .nav-link {
    border-radius: .85rem .85rem 0 0;
    font-weight: 600;
}

.time-entry-tabs .nav-link.active {
    background: #fff;
    border-color: #dfe7f3 #dfe7f3 #fff;
}

.time-entry-selection-grid {
    display: grid;
    grid-template-columns: minmax(18rem, 1fr) minmax(18rem, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

.time-entry-inline-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
}

.time-entry-inline-fields--compact {
    gap: .75rem;
}

.time-entry-inline-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.time-entry-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: .75rem;
}

.time-entry-choice-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .45rem;
    min-height: 5.75rem;
    width: 100%;
    padding: .85rem 1rem;
    border: 1px solid #dbe4f1;
    border-radius: .9rem;
    background: #fbfcff;
    color: inherit;
    text-decoration: none;
    white-space: normal;
    word-break: break-word;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.time-entry-choice-card:hover {
    border-color: #90afea;
    box-shadow: 0 .35rem .9rem rgba(32, 67, 128, .08);
    transform: translateY(-1px);
}

.time-entry-choice-card__meta {
    font-size: .8rem;
    color: #5f6f86;
}

.time-entry-section-divider {
    margin: 1.25rem 0;
    border-top: 1px solid #e5ebf4;
}

.time-entry-today-list {
    display: grid;
    gap: .75rem;
}

.time-entry-today-item {
    display: grid;
    grid-template-columns: minmax(4.5rem, 5.5rem) minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    padding: .95rem 1rem;
    border: 1px solid #e2e8f2;
    border-radius: .9rem;
    background: #fbfcff;
}

.time-entry-today-item.is-active {
    border-color: #8eb2ff;
    background: linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%);
}

.time-entry-today-item__time,
.time-entry-today-item__meta {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    font-size: .9rem;
}

.time-entry-today-item__time span,
.time-entry-today-item__meta span {
    color: #5f6f86;
    font-size: .8rem;
}

.time-entry-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(8rem, 1fr));
    gap: .9rem;
    align-items: end;
}

.time-entry-form-grid__wide {
    grid-column: span 2;
}

.time-entry-form-grid__actions {
    display: flex;
    gap: .75rem;
    align-items: end;
}

@media (max-width: 991.98px) {
    .time-entry-selection-grid {
        grid-template-columns: 1fr;
    }

    .time-entry-form-grid {
        grid-template-columns: 1fr;
    }

    .time-entry-form-grid__wide {
        grid-column: auto;
    }

    .time-entry-progress__header,
    .time-entry-progress__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .time-entry-today-item {
        grid-template-columns: 1fr;
    }
}
.itdoc-hardware-icon {
    align-items: center;
    background: #eef2f7;
    border: 1px solid #d7dee8;
    border-radius: 6px;
    color: #1f2937;
    display: inline-flex;
    flex: 0 0 2rem;
    font-size: 1rem;
    height: 2rem;
    justify-content: center;
    line-height: 1;
    width: 2rem;
}

.itdoc-section-nav {
    position: sticky;
    top: 0;
    z-index: 2;
}

.itdoc-card-tabs {
    background: #f8fafc;
    border-bottom: 1px solid #cbd5e1;
    gap: 2px;
    padding: 0 0.5rem;
}

.itdoc-card-tabs .nav-link {
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    color: #334155;
    margin-bottom: -1px;
}

.itdoc-card-tabs .nav-link.active {
    background: #fff;
    color: #0f172a;
    font-weight: 600;
}
