/* Self-hosted fonts (no external CDN). Latin subsets; Persian uses Vazirmatn. */
@font-face {
    font-family: "IBM Plex Mono";
    src: url("../../fonts/manifest/IBMPlexMono-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("../../fonts/manifest/IBMPlexMono-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("../../fonts/manifest/IBMPlexMono-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Space Grotesk";
    src: url("../../fonts/manifest/SpaceGrotesk-latin.woff2") format("woff2");
    font-weight: 500 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../../fonts/vazirmatn/Vazirmatn[wght].woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/*
Manifest
Architectural field-ledger interface.

The selectors are restricted to data-design-theme="manifest".
No rules are applied to the other interface themes.
*/

html[data-design-theme="manifest"] {
    --manifest-paper: #f6f5f0;
    --manifest-paper-raised: #fbfaf6;
    --manifest-paper-muted: #efede4;
    --manifest-ink: #1d211e;
    --manifest-graphite: #4a5049;
    --manifest-muted: #747970;
    --manifest-line: #d6d2c4;
    --manifest-orange: #d6491e;
    --manifest-orange-hover: #b93c17;
    --manifest-orange-tint: #f5ded4;
    --manifest-moss: #5c7a5a;
    --manifest-moss-tint: #dee7dc;
    --manifest-blue: #3a5a73;
    --manifest-blue-tint: #dce5eb;
    --manifest-danger: #a93a2a;
    --manifest-sidebar-muted: #8b9186;
    --manifest-sidebar-line: #35392f;

    --sidebar-width: 220px;
    --topbar-height: 54px;
    --content-max: none;
    --radius: 0;

    --color-bg: var(--manifest-paper);
    --color-surface: var(--manifest-paper);
    --color-surface-subtle: var(--manifest-paper-muted);
    --color-text: var(--manifest-ink);
    --color-text-muted: var(--manifest-graphite);
    --color-border: var(--manifest-line);
    --color-accent: var(--manifest-orange);
    --color-accent-soft: var(--manifest-orange-tint);
    --color-success: var(--manifest-moss);
    --color-danger: var(--manifest-danger);

    --font-family:
        "IBM Plex Mono",
        "Vazirmatn",
        ui-monospace,
        monospace;

    color-scheme: light;
}

/*
Manifest deliberately retains its paper-ledger palette when the application
light/dark switch changes. This keeps its dimensions, contrast, and appearance
identical in both modes.
*/

html[data-design-theme="manifest"][data-theme="light"],
html[data-design-theme="manifest"][data-theme="dark"] {
    --color-bg: var(--manifest-paper);
    --color-surface: var(--manifest-paper);
    --color-surface-subtle: var(--manifest-paper-muted);
    --color-text: var(--manifest-ink);
    --color-text-muted: var(--manifest-graphite);
    --color-border: var(--manifest-line);
    --color-accent: var(--manifest-orange);
    --color-accent-soft: var(--manifest-orange-tint);

    color-scheme: light;
}

html[data-design-theme="manifest"],
html[data-design-theme="manifest"] body,
html[data-design-theme="manifest"] button,
html[data-design-theme="manifest"] input,
html[data-design-theme="manifest"] select,
html[data-design-theme="manifest"] textarea {
    font-family:
        "IBM Plex Mono",
        "Vazirmatn",
        ui-monospace,
        monospace;
}

html[data-design-theme="manifest"],
html[data-design-theme="manifest"] body {
    min-height: 100%;
}

html[data-design-theme="manifest"] body {
    color: var(--manifest-ink);
    background: var(--manifest-paper);
}

html[data-design-theme="manifest"] .app-shell,
html[data-design-theme="manifest"] .main-column {
    min-width: 0;
    background: var(--manifest-paper);
}

html[data-design-theme="manifest"] .main-content {
    width: 100%;
    max-width: none;
    min-height: calc(100vh - var(--topbar-height));
    margin: 0;
    padding: 32px 32px 90px;
    color: var(--manifest-ink);
    background-color: var(--manifest-paper);
    background-image: none;
}

/*
Graph paper belongs only to the project-list page.

The project list always contains .project-table. Project detail tabs,
including Installation, do not contain that table.
*/
html[data-design-theme="manifest"]
    .main-content:has(.project-table) {
    background-image:
        linear-gradient(
            var(--manifest-line) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            var(--manifest-line) 1px,
            transparent 1px
        );
    background-position: -1px -1px;
    background-size: 28px 28px;
}

/* Shared display typography */

html[data-design-theme="manifest"] h1,
html[data-design-theme="manifest"] h2,
html[data-design-theme="manifest"] h3,
html[data-design-theme="manifest"] h4,
html[data-design-theme="manifest"] .brand-lockup strong,
html[data-design-theme="manifest"] .button {
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
}

html[data-design-theme="manifest"] h1,
html[data-design-theme="manifest"] h2,
html[data-design-theme="manifest"] h3,
html[data-design-theme="manifest"] h4 {
    color: var(--manifest-ink);
}

/* Sidebar */

html[data-design-theme="manifest"] .sidebar {
    width: 220px;
    color: var(--manifest-paper);
    background: var(--manifest-ink);
    border-inline-end: 1px solid var(--manifest-ink);
    box-shadow: none;
    font-family:
        "IBM Plex Mono",
        monospace;
}

html[data-design-theme="manifest"] .brand-lockup {
    height: 80px;
    min-height: 80px;
    gap: 10px;
    padding: 0 20px;
    border-bottom: 1px solid var(--manifest-sidebar-line);
}

html[data-design-theme="manifest"] .brand-lockup > span:last-child {
    display: grid;
    line-height: 1.1;
}

html[data-design-theme="manifest"] .brand-mark {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    color: var(--manifest-ink);
    background: var(--manifest-orange);
    border: 1px solid var(--manifest-orange);
    border-radius: 0;
    box-shadow: none;
    font-family:
        "Space Grotesk",
        sans-serif;
    font-size: 12px;
    font-weight: 700;
}

html[data-design-theme="manifest"] .brand-lockup strong {
    color: var(--manifest-paper);
    font-family:
        "Space Grotesk",
        sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
}

html[data-design-theme="manifest"] .brand-lockup small {
    margin-top: 2px;
    color: var(--manifest-sidebar-muted);
    font-family:
        "IBM Plex Mono",
        monospace;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html[data-design-theme="manifest"] .primary-nav {
    padding: 18px 10px;
}

html[data-design-theme="manifest"] .nav-label {
    margin: 0 10px 8px;
    color: var(--manifest-sidebar-muted);
    font-family:
        "IBM Plex Mono",
        monospace;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

html[data-design-theme="manifest"] .nav-label--spaced {
    margin-top: 22px;
}

html[data-design-theme="manifest"] .nav-link {
    min-height: 34px;
    gap: 10px;
    padding: 8px 10px;
    color: #c9ccc3;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-family:
        "IBM Plex Mono",
        monospace;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
}

html[data-design-theme="manifest"] .nav-link + .nav-link {
    margin-top: 0;
}

html[data-design-theme="manifest"] .nav-link svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    stroke-width: 1.6;
}

html[data-design-theme="manifest"] .nav-link:hover {
    color: var(--manifest-paper);
    background: rgb(255 255 255 / 6%);
}

html[data-design-theme="manifest"] .nav-link.is-active {
    color: var(--manifest-ink);
    background: var(--manifest-paper);
    border: 0;
    box-shadow: none;
    font-weight: 600;
}

html[data-design-theme="manifest"] .nav-link.is-active svg {
    color: var(--manifest-ink);
}

html[data-design-theme="manifest"] .sidebar-footer {
    min-height: 54px;
    gap: 8px;
    padding: 0 20px;
    color: var(--manifest-sidebar-muted);
    border-top: 1px solid var(--manifest-sidebar-line);
    font-family:
        "IBM Plex Mono",
        monospace;
    font-size: 11px;
    font-weight: 400;
}

html[data-design-theme="manifest"] .environment-dot {
    width: 6px;
    height: 6px;
    background: var(--manifest-moss);
    border-radius: 50%;
    box-shadow: none;
}

html[data-design-theme="manifest"][data-theme="light"] .sidebar,
html[data-design-theme="manifest"][data-theme="dark"] .sidebar {
    color: var(--manifest-paper);
    background: var(--manifest-ink);
}

html[data-design-theme="manifest"][data-theme="light"]
    .sidebar .brand-lockup,
html[data-design-theme="manifest"][data-theme="dark"]
    .sidebar .brand-lockup {
    height: 80px;
    min-height: 80px;
    padding: 0 20px;
    border-bottom-color: var(--manifest-sidebar-line);
}

html[data-design-theme="manifest"][data-theme="light"]
    .sidebar .nav-link,
html[data-design-theme="manifest"][data-theme="dark"]
    .sidebar .nav-link {
    min-height: 34px;
    padding: 8px 10px;
    color: #c9ccc3;
    background: transparent;
    border: 0;
    font-family:
        "IBM Plex Mono",
        monospace;
    font-size: 12.5px;
    font-weight: 500;
}

html[data-design-theme="manifest"][data-theme="light"]
    .sidebar .nav-link.is-active,
html[data-design-theme="manifest"][data-theme="dark"]
    .sidebar .nav-link.is-active {
    color: var(--manifest-ink);
    background: var(--manifest-paper);
    border: 0;
}

html[data-design-theme="manifest"][data-theme="light"]
    .sidebar .nav-link.is-active svg,
html[data-design-theme="manifest"][data-theme="dark"]
    .sidebar .nav-link.is-active svg {
    color: var(--manifest-ink);
}

/* Top bar */

html[data-design-theme="manifest"] .topbar {
    height: 52px;
    min-height: 52px;
    gap: 16px;
    padding: 0 24px;
    color: var(--manifest-ink);
    background: var(--manifest-paper);
    border-bottom: 1px solid var(--manifest-ink);
    box-shadow: none;
    transform: translateY(0);
    transition:
        transform 160ms ease,
        visibility 160ms ease;
    will-change: transform;
}

html[data-design-theme="manifest"][data-topbar-visible="false"]
    .topbar {
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
}

html[data-design-theme="manifest"] .global-search {
    width: min(400px, 44vw);
    height: 34px;
    min-height: 34px;
    color: var(--manifest-graphite);
    background: var(--manifest-paper);
    border: 1px solid var(--manifest-ink);
    border-radius: 0;
    box-shadow: none;
}

html[data-design-theme="manifest"] .global-search:focus-within {
    border-color: var(--manifest-orange);
    box-shadow: 0 0 0 1px var(--manifest-orange);
}

html[data-design-theme="manifest"] .global-search svg {
    width: 15px;
    height: 15px;
    color: var(--manifest-graphite);
    stroke-width: 1.6;
}

html[data-design-theme="manifest"] .global-search input {
    height: 32px;
    padding:
        0
        42px
        0
        34px;
    color: var(--manifest-ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-family:
        "IBM Plex Mono",
        "Vazirmatn",
        ui-monospace,
        monospace;
    font-size: 12px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

html[data-design-theme="manifest"] .global-search input::placeholder {
    color: var(--manifest-graphite);
    opacity: 1;
}

html[data-design-theme="manifest"] .global-search kbd {
    width: 20px;
    height: 20px;
    color: var(--manifest-graphite);
    background: var(--manifest-paper);
    border: 1px solid var(--manifest-line);
    border-radius: 0;
    font-family:
        "IBM Plex Mono",
        monospace;
    font-size: 10px;
}

html[data-design-theme="manifest"] .topbar-actions {
    gap: 14px;
}

html[data-design-theme="manifest"] .icon-button,
html[data-design-theme="manifest"] .profile-menu-trigger {
    color: var(--manifest-graphite);
    background: transparent;
    border-color: transparent;
    border-radius: 0;
}

html[data-design-theme="manifest"] .icon-button:hover,
html[data-design-theme="manifest"] .profile-menu-trigger:hover,
html[data-design-theme="manifest"]
    .profile-menu-trigger[aria-expanded="true"] {
    color: var(--manifest-ink);
    background: transparent;
    border-color: transparent;
}

html[data-design-theme="manifest"] .profile-menu-trigger {
    inline-size: auto;
    block-size: 42px;
    min-inline-size: 154px;
    min-block-size: 42px;
    gap: 9px;
    padding:
        4px
        0
        4px
        4px;
    font-family:
        "IBM Plex Mono",
        "Vazirmatn",
        ui-monospace,
        monospace;
}

html[data-design-theme="manifest"]
    .profile-menu-trigger
    .user-avatar {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    color: var(--manifest-paper);
    background: var(--manifest-ink);
    border-radius: 0;
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
    font-size: 11px;
    font-weight: 600;
}

html[data-design-theme="manifest"]
    .profile-menu-trigger__identity {
    gap: 0;
}

html[data-design-theme="manifest"]
    .profile-menu-trigger__identity strong {
    color: var(--manifest-ink);
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
    font-size: 12px;
    font-weight: 600;
}

html[data-design-theme="manifest"]
    .profile-menu-trigger__identity small {
    color: var(--manifest-graphite);
    font-size: 10px;
    font-weight: 400;
}

html[data-design-theme="manifest"]
    .profile-menu-trigger
    > svg {
    width: 12px;
    height: 12px;
    margin-left: 2px;
    stroke-width: 1.5;
}

/* Profile menu */

html[data-design-theme="manifest"] .profile-menu {
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    inline-size: 340px;
    block-size: auto;
    min-inline-size: 340px;
    min-block-size: 0;
    max-inline-size: 340px;
    max-block-size: none;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    align-content: start;
    column-gap: 10px;
    padding: 0;
    overflow: visible;
    direction: ltr;
    color: var(--manifest-ink);
    background: var(--manifest-paper-raised);
    border: 1px solid var(--manifest-ink);
    border-radius: 0;
    box-shadow: none;
    font-family:
        "IBM Plex Mono",
        "Vazirmatn",
        ui-monospace,
        monospace;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
}

html[data-design-theme="manifest"] .profile-menu[hidden] {
    display: none;
}

html[data-design-theme="manifest"] .profile-menu,
html[data-design-theme="manifest"] .profile-menu *,
html[data-design-theme="manifest"] .profile-menu *::before,
html[data-design-theme="manifest"] .profile-menu *::after {
    box-sizing: border-box;
}

html[data-design-theme="manifest"] .profile-menu button,
html[data-design-theme="manifest"] .profile-menu input,
html[data-design-theme="manifest"] .profile-menu select {
    font-family:
        "IBM Plex Mono",
        "Vazirmatn",
        ui-monospace,
        monospace !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

/* Account identity */

html[data-design-theme="manifest"] .profile-menu__header {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns:
        36px
        minmax(0, 1fr)
        14px;
    min-height: 84px;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--manifest-ink);
}

html[data-design-theme="manifest"]
    .profile-menu__header
    .user-avatar--large {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    color: var(--manifest-paper);
    background: var(--manifest-ink);
    border-radius: 0;
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
    font-size: 13px;
    font-weight: 700;
}

html[data-design-theme="manifest"]
    .profile-menu__identity {
    gap: 1px;
}

html[data-design-theme="manifest"]
    .profile-menu__identity strong {
    color: var(--manifest-ink);
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

html[data-design-theme="manifest"]
    .profile-menu__identity span {
    color: var(--manifest-graphite);
    font-size: 11px;
    line-height: 1.3;
}

html[data-design-theme="manifest"]
    .profile-menu__identity small {
    color: var(--manifest-graphite);
    font-size: 10.5px;
    font-weight: 400;
    line-height: 1.3;
    opacity: 0.7;
}

html[data-design-theme="manifest"]
    .profile-menu__header
    > svg {
    width: 13px;
    height: 13px;
    justify-self: end;
    color: var(--manifest-graphite);
    stroke-width: 1.5;
}

/* Shared dropdown rows */

html[data-design-theme="manifest"] .profile-menu__link {
    min-height: 45px;
    padding: 12px 20px;
    color: var(--manifest-ink);
    border-radius: 0;
    font-size: 12.5px;
    font-weight: 500;
}

html[data-design-theme="manifest"] .profile-menu__link:hover {
    color: var(--manifest-ink);
    background: var(--manifest-orange-tint);
}

html[data-design-theme="manifest"] .profile-menu__link svg {
    width: 15px;
    height: 15px;
    color: var(--manifest-graphite);
    stroke-width: 1.5;
}

html[data-design-theme="manifest"]
    .profile-menu__header
    + .profile-menu__link {
    grid-column: 1 / -1;
    margin: 0;
    border-bottom: 1px solid var(--manifest-line);
}

/* Workspace database */

html[data-design-theme="manifest"]
    .profile-workspace-selector {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns:
        16px
        minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 0;
    padding:
        39px
        20px
        12px;
    border: 0;
}

html[data-design-theme="manifest"]
    .profile-workspace-selector::before {
    top: 16px;
    left: 20px;
    color: var(--manifest-graphite);
    content: "Workspace database";
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: 0.07em;
    line-height: 1.2;
    text-transform: uppercase;
}

html[data-design-theme="manifest"]
    .profile-workspace-selector__icon {
    grid-column: 1;
    width: 14px;
    height: 14px;
    margin: 0;
    color: var(--manifest-graphite);
    stroke-width: 1.5;
}

html[data-design-theme="manifest"]
    .profile-workspace-selector select {
    grid-column: 2;
    width: 100%;
    height: 36px;
    min-height: 36px;
    padding:
        8px
        30px
        8px
        10px;
    color: var(--manifest-ink);
    background-color: var(--manifest-paper);
    border: 1px solid var(--manifest-line);
    border-radius: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}

/* Database actions */

html[data-design-theme="manifest"]
    .profile-menu__database-action {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin:
        0
        0
        16px;
    padding:
        9px
        10px;
    border: 1px solid var(--manifest-ink);
    border-radius: 0;
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

html[data-design-theme="manifest"]
    .profile-menu__database-action--primary {
    margin-left: 20px;
    color: var(--manifest-paper);
    background: var(--manifest-ink);
}

html[data-design-theme="manifest"]
    .profile-menu__database-action--primary:hover {
    color: var(--manifest-paper);
    background: var(--manifest-graphite);
}

html[data-design-theme="manifest"]
    .profile-menu__database-action--secondary {
    margin-right: 20px;
    color: var(--manifest-ink);
    background: var(--manifest-paper);
}

html[data-design-theme="manifest"]
    .profile-menu__database-action--secondary:hover {
    color: var(--manifest-ink);
    background: var(--manifest-orange-tint);
}

/* Preferences */

html[data-design-theme="manifest"]
    .profile-menu__preferences {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap:
        12px
        14px;
    margin: 0;
    padding:
        31px
        20px
        12px;
    border-top: 1px solid var(--manifest-ink);
    border-bottom: 0;
}

html[data-design-theme="manifest"]
    .profile-menu__section-label {
    position: absolute;
    margin-top: -17px;
    color: var(--manifest-graphite);
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: 0.07em;
    line-height: 1.2;
    text-transform: uppercase;
}

html[data-design-theme="manifest"]
    .profile-menu__preferences
    .profile-preference {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin: 0;
    padding: 0;
    color: var(--manifest-ink);
    font-size: 10.5px;
    font-weight: 600;
}

html[data-design-theme="manifest"]
    .profile-menu__preferences
    .profile-preference:last-child {
    grid-column: 1 / -1;
}

html[data-design-theme="manifest"]
    .profile-preference label,
html[data-design-theme="manifest"]
    .profile-preference
    > span {
    color: var(--manifest-ink);
    font-size: 10.5px;
    font-weight: 600;
}

html[data-design-theme="manifest"]
    .profile-preference select {
    width: 100%;
    height: 36px;
    min-height: 36px;
    padding:
        8px
        30px
        8px
        10px;
    color: var(--manifest-ink);
    background-color: var(--manifest-paper);
    border: 1px solid var(--manifest-line);
    border-radius: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}

html[data-design-theme="manifest"]
    .profile-preference select:focus-visible,
html[data-design-theme="manifest"]
    .profile-workspace-selector select:focus-visible {
    border-color: var(--manifest-orange);
    outline: 1px solid var(--manifest-orange);
    outline-offset: 0;
}

/* Currency and font */

html[data-design-theme="manifest"]
    .profile-preference--currency,
html[data-design-theme="manifest"]
    .profile-preference--font {
    gap: 6px;
    margin: 0;
    padding:
        0
        0
        16px;
}

html[data-design-theme="manifest"]
    .profile-preference--currency {
    grid-column: 1;
    margin-left: 20px;
    margin-right: 7px;
}

html[data-design-theme="manifest"]
    .profile-preference--font {
    grid-column: 2;
    margin-right: 20px;
    margin-left: 7px;
}

/* Data actions */

html[data-design-theme="manifest"]
    .profile-menu__data-link {
    grid-column: 1 / -1;
    min-height: 42px;
    margin: 0;
    padding:
        12px
        20px;
    border-top: 1px solid var(--manifest-line);
}

html[data-design-theme="manifest"]
    .profile-menu__data-link--first {
    margin-top: 0;
    border-top: 1px solid var(--manifest-ink);
}

html[data-design-theme="manifest"]
    .profile-menu__data-link--first::before,
html[data-design-theme="manifest"]
    .profile-menu__data-link--first::after {
    display: none;
}

/* Sign out */

html[data-design-theme="manifest"]
    .profile-menu__signout {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--manifest-ink);
}

html[data-design-theme="manifest"]
    .profile-menu__signout button {
    min-height: 46px;
    gap: 10px;
    padding:
        13px
        20px;
    color: var(--manifest-danger);
    background: transparent;
    border-radius: 0;
    font-family:
        "IBM Plex Mono",
        "Vazirmatn",
        ui-monospace,
        monospace;
    font-size: 12.5px;
    font-weight: 600;
}

html[data-design-theme="manifest"]
    .profile-menu__signout button:hover {
    color: var(--manifest-danger);
    background: var(--manifest-orange-tint);
}

/*
When the utility top bar is hidden, move the always-visible project path and
numbered project navigation to the top of the viewport.
*/

html[data-design-theme="manifest"]
    .project-context-path,
html[data-design-theme="manifest"]
    .detail-nav {
    transition: top 160ms ease;
}

html[data-design-theme="manifest"][data-topbar-visible="false"]
    .project-context-path {
    top: 0;
}

html[data-design-theme="manifest"][data-topbar-visible="false"]
    .detail-nav {
    top: 44px;
}

@media (max-width: 720px) {
    html[data-design-theme="manifest"] .profile-menu {
        right: -8px;
        inline-size: min(340px, calc(100vw - 32px));
        min-inline-size: min(340px, calc(100vw - 32px));
        max-inline-size: min(340px, calc(100vw - 32px));
    }

    html[data-design-theme="manifest"][data-topbar-visible="false"]
        .detail-nav {
        top: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-design-theme="manifest"] .topbar,
    html[data-design-theme="manifest"]
        .project-context-path,
    html[data-design-theme="manifest"] .detail-nav {
        transition: none;
    }
}

/* Shared controls */

html[data-design-theme="manifest"] .button {
    min-height: 38px;
    padding: 9px 18px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 0;
    box-shadow: none;
}

html[data-design-theme="manifest"] .button--primary {
    color: var(--manifest-paper);
    background: var(--manifest-ink);
    border-color: var(--manifest-ink);
}

html[data-design-theme="manifest"] .button--primary:hover {
    color: var(--manifest-paper);
    background: var(--manifest-orange);
    border-color: var(--manifest-orange);
}

html[data-design-theme="manifest"] .button--secondary,
html[data-design-theme="manifest"] .button--ghost {
    color: var(--manifest-ink);
    background: var(--manifest-paper);
    border-color: var(--manifest-ink);
}

html[data-design-theme="manifest"] .button--secondary:hover,
html[data-design-theme="manifest"] .button--ghost:hover {
    color: var(--manifest-orange);
    background: var(--manifest-orange-tint);
    border-color: var(--manifest-orange);
}

html[data-design-theme="manifest"] input,
html[data-design-theme="manifest"] select,
html[data-design-theme="manifest"] textarea {
    color: var(--manifest-ink);
    background: var(--manifest-paper);
    border-color: var(--manifest-ink);
    border-radius: 0;
    box-shadow: none;
}

html[data-design-theme="manifest"] input::placeholder,
html[data-design-theme="manifest"] textarea::placeholder {
    color: #8e8d84;
}

html[data-design-theme="manifest"] input:focus,
html[data-design-theme="manifest"] select:focus,
html[data-design-theme="manifest"] textarea:focus {
    border-color: var(--manifest-orange);
    box-shadow: 0 0 0 1px var(--manifest-orange);
    outline: none;
}

/* Project header and navigation */

html[data-design-theme="manifest"] .project-overview {
    color: var(--manifest-ink);
    background: var(--manifest-paper);
}

html[data-design-theme="manifest"] .project-hero h1 {
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

html[data-design-theme="manifest"] .eyebrow,
html[data-design-theme="manifest"] .section-kicker {
    color: var(--manifest-graphite);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

html[data-design-theme="manifest"] .project-context-path,
html[data-design-theme="manifest"] .back-link {
    color: var(--manifest-graphite);
}

html[data-design-theme="manifest"] .project-context-path a,
html[data-design-theme="manifest"] .back-link:hover {
    color: var(--manifest-orange);
}

html[data-design-theme="manifest"] .project-finance-band {
    background: var(--manifest-paper);
    border: 1px solid var(--manifest-ink);
    border-radius: 0;
    box-shadow: none;
}

html[data-design-theme="manifest"]
    .project-finance-band__item
    + .project-finance-band__item {
    border-inline-start-color: var(--manifest-ink);
}

html[data-design-theme="manifest"] .detail-nav {
    border-bottom: 2px solid var(--manifest-ink);
}

html[data-design-theme="manifest"] .detail-nav a {
    min-height: 50px;
    color: var(--manifest-graphite);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}

html[data-design-theme="manifest"] .detail-nav a:hover {
    color: var(--manifest-orange);
}

html[data-design-theme="manifest"] .detail-nav a.is-active {
    color: var(--manifest-ink);
    border-bottom-color: var(--manifest-orange);
}

/* Installation page */

html[data-design-theme="manifest"] .installation-section {
    --installation-border: var(--manifest-ink);
    --installation-line: var(--manifest-line);
    --installation-accent: var(--manifest-orange);
    --installation-success: var(--manifest-moss);
    color: var(--manifest-ink);
}

html[data-design-theme="manifest"]
    .installation-section
    > .detail-section__heading {
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--manifest-ink);
}

html[data-design-theme="manifest"]
    .installation-section
    > .detail-section__heading h2 {
    margin: 0;
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

html[data-design-theme="manifest"] .installation-edit-toggle {
    width: 32px;
    height: 32px;
    color: var(--manifest-orange);
    background: var(--manifest-paper);
    border: 1px solid var(--manifest-ink);
    border-radius: 0;
    box-shadow: none;
}

html[data-design-theme="manifest"] .installation-edit-toggle:hover,
html[data-design-theme="manifest"]
    .installation-edit-toggle[aria-expanded="true"] {
    color: var(--manifest-paper);
    background: var(--manifest-orange);
    border-color: var(--manifest-orange);
}

html[data-design-theme="manifest"] .installation-summary {
    display: flex;
    margin-bottom: 26px;
    overflow: visible;
    background: var(--manifest-paper);
    border: 1px solid var(--manifest-ink);
    border-radius: 0;
    box-shadow: none;
}

html[data-design-theme="manifest"] .installation-summary__item {
    position: relative;
    display: flex;
    flex: 1 1 0;
    min-height: 76px;
    align-items: center;
    gap: 0;
    padding: 14px 20px;
    border: 0;
}

html[data-design-theme="manifest"]
    .installation-summary__item
    + .installation-summary__item::before {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 1px;
    background: var(--manifest-ink);
    content: "";
}

html[data-design-theme="manifest"] .installation-summary__icon {
    display: none;
}

html[data-design-theme="manifest"] .installation-summary__copy {
    display: grid;
    gap: 5px;
}

html[data-design-theme="manifest"] .installation-summary__copy small {
    color: var(--manifest-graphite);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

html[data-design-theme="manifest"] .installation-summary__copy strong {
    color: var(--manifest-ink);
    font-family:
        "IBM Plex Mono",
        "Vazirmatn",
        monospace;
    font-size: 16px;
    font-weight: 600;
}

html[data-design-theme="manifest"] .installation-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: var(--manifest-graphite);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
}

html[data-design-theme="manifest"] .installation-status::before {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    background: currentColor;
    border-radius: 50%;
    content: "";
}

html[data-design-theme="manifest"] .installation-status--in_progress,
html[data-design-theme="manifest"] .installation-status--completed {
    color: var(--manifest-moss);
}

html[data-design-theme="manifest"] .installation-status--cancelled {
    color: var(--manifest-danger);
}

html[data-design-theme="manifest"] .installation-description {
    color: var(--manifest-graphite);
}

html[data-design-theme="manifest"]
    .installation-dashboard__layout {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns:
        250px
        minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

html[data-design-theme="manifest"]
    .installation-dashboard__sidebar {
    display: grid;
    width: 250px;
    min-width: 0;
    align-content: start;
    gap: 20px;
}

html[data-design-theme="manifest"]
    .installation-dashboard__main {
    width: 100%;
    min-width: 0;
}

html[data-design-theme="manifest"] .installation-panel,
html[data-design-theme="manifest"] .installation-day-card,
html[data-design-theme="manifest"] .installation-ledger {
    color: var(--manifest-ink);
    background: var(--manifest-paper);
    border: 1px solid var(--manifest-ink);
    border-radius: 0;
    box-shadow: none;
}

html[data-design-theme="manifest"] .installation-panel__header,
html[data-design-theme="manifest"] .installation-ledger__heading {
    min-height: 42px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--manifest-ink);
}

html[data-design-theme="manifest"] .installation-panel__header h3,
html[data-design-theme="manifest"] .installation-ledger__heading h3,
html[data-design-theme="manifest"] .installation-day-card__header h3,
html[data-design-theme="manifest"] .installation-work-completed h4 {
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
    font-size: 13px;
    font-weight: 600;
}

html[data-design-theme="manifest"] .installation-team-member {
    min-height: 42px;
    gap: 10px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--manifest-line);
}

html[data-design-theme="manifest"]
    .installation-team-member:last-child {
    border-bottom: 0;
}

html[data-design-theme="manifest"]
    .installation-team-member__icon {
    display: none;
}

html[data-design-theme="manifest"]
    .installation-team-member::before {
    width: 14px;
    flex: 0 0 14px;
    color: var(--manifest-graphite);
    font-size: 10px;
    counter-increment: manifest-member;
    content: counter(manifest-member, decimal-leading-zero);
}

html[data-design-theme="manifest"] .installation-team-list {
    counter-reset: manifest-member;
}

html[data-design-theme="manifest"]
    .installation-team-member__name {
    color: var(--manifest-ink);
    font-size: 12.5px;
}

html[data-design-theme="manifest"]
    .installation-team-member__name--link:hover {
    color: var(--manifest-orange);
    text-decoration-color: var(--manifest-orange);
}

html[data-design-theme="manifest"] .installation-role-badge {
    padding: 2px 7px;
    color: var(--manifest-graphite);
    background: transparent;
    border: 1px solid var(--manifest-line);
    border-radius: 0;
    font-size: 10px;
    font-weight: 500;
}

html[data-design-theme="manifest"] .installation-day-list {
    counter-reset: manifest-day;
}

html[data-design-theme="manifest"] .installation-day-link {
    min-height: 42px;
    gap: 10px;
    padding: 11px 16px;
    color: var(--manifest-ink);
    background: transparent;
    border-bottom: 1px solid var(--manifest-line);
    border-radius: 0;
    font-size: 12.5px;
}

html[data-design-theme="manifest"] .installation-day-link::before {
    width: 14px;
    flex: 0 0 14px;
    color: var(--manifest-graphite);
    font-size: 10px;
    counter-increment: manifest-day;
    content: counter(manifest-day, decimal-leading-zero);
}

html[data-design-theme="manifest"] .installation-day-link svg {
    display: none;
}

html[data-design-theme="manifest"] .installation-day-link:hover {
    color: var(--manifest-orange);
    background: var(--manifest-orange-tint);
}

html[data-design-theme="manifest"] .installation-day-link.is-active {
    color: var(--manifest-ink);
    background: var(--manifest-orange-tint);
    box-shadow: none;
}

html[data-design-theme="manifest"]
    .installation-day-link.is-active::before {
    color: var(--manifest-orange);
    font-weight: 700;
}

html[data-design-theme="manifest"] .installation-action > summary {
    color: var(--manifest-orange);
    font-size: 11px;
    font-weight: 600;
}

html[data-design-theme="manifest"] .installation-action > summary:hover {
    color: var(--manifest-orange-hover);
}

html[data-design-theme="manifest"] .installation-action--day {
    padding: 11px 16px;
    border-top: 1px dashed var(--manifest-line);
}

html[data-design-theme="manifest"] .installation-popover-form {
    color: var(--manifest-ink);
    background: var(--manifest-paper-raised);
    border: 1px solid var(--manifest-ink);
    border-radius: 0;
    box-shadow: 8px 8px 0 rgb(29 33 30 / 12%);
}

html[data-design-theme="manifest"] .installation-day-card {
    overflow: visible;
}

html[data-design-theme="manifest"] .installation-day-card__header {
    align-items: end;
    padding: 16px 20px;
    border-bottom: 1px solid var(--manifest-ink);
}

html[data-design-theme="manifest"] .installation-module-label {
    color: var(--manifest-graphite);
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

html[data-design-theme="manifest"]
    .installation-main-day__title-row h3 {
    font-size: 20px;
    font-weight: 700;
}

html[data-design-theme="manifest"] .installation-work-completed {
    padding: 14px 20px 18px;
    border-bottom: 1px solid var(--manifest-ink);
}

html[data-design-theme="manifest"] .installation-work-completed p,
html[data-design-theme="manifest"] .installation-empty-copy {
    color: var(--manifest-graphite);
    font-size: 12px;
}

html[data-design-theme="manifest"] .installation-attendance-row,
html[data-design-theme="manifest"] .installation-cost-table__row {
    border-bottom-color: var(--manifest-line);
}

html[data-design-theme="manifest"] .installation-attendance-row__indicator {
    background: var(--manifest-moss);
    border-radius: 0;
}

html[data-design-theme="manifest"] .installation-table,
html[data-design-theme="manifest"] .installation-cost-table {
    color: var(--manifest-ink);
    background: var(--manifest-paper);
}

html[data-design-theme="manifest"] .installation-table th,
html[data-design-theme="manifest"]
    .installation-cost-table__header {
    color: var(--manifest-graphite);
    background: var(--manifest-moss-tint);
    border-bottom: 1px solid var(--manifest-ink);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

html[data-design-theme="manifest"] .installation-table td {
    border-bottom-color: var(--manifest-line);
    font-size: 12.5px;
}

html[data-design-theme="manifest"] .installation-table tfoot th,
html[data-design-theme="manifest"] .installation-table tfoot td,
html[data-design-theme="manifest"]
    .installation-cost-table__total {
    color: var(--manifest-ink);
    background: var(--manifest-paper-muted);
    border-top: 1px solid var(--manifest-ink);
}

html[data-design-theme="manifest"]
    .installation-cost-grid {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
}

html[data-design-theme="manifest"]
    .installation-cost-grid
    > * {
    min-width: 0;
}

html[data-design-theme="manifest"] .installation-day-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding: 18px 22px;
    color: var(--manifest-paper);
    background: var(--manifest-ink);
    border: 2px solid var(--manifest-ink);
    border-radius: 0;
}

html[data-design-theme="manifest"]
    .installation-day-total > strong {
    color: var(--manifest-paper);
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
    font-size: 13px;
    letter-spacing: 0.03em;
}

html[data-design-theme="manifest"] .installation-day-total bdi {
    color: var(--manifest-paper);
    font-size: 24px;
    font-weight: 600;
}

html[data-design-theme="manifest"] .installation-day-total small {
    color: #c9c6bb;
    font-size: 11px;
}

/* Installation schedule editor */

html[data-design-theme="manifest"] .installation-summary--setup {
    color: var(--manifest-ink);
    background: var(--manifest-paper);
    border: 1px solid var(--manifest-ink);
    border-radius: 0;
}

html[data-design-theme="manifest"]
    .installation-summary__field input,
html[data-design-theme="manifest"]
    .installation-summary__field select {
    min-height: 40px;
    color: var(--manifest-ink);
    background: var(--manifest-paper);
    border: 1px solid var(--manifest-ink);
    border-radius: 0;
}

html[data-design-theme="manifest"]
    .installation-summary__field input:focus,
html[data-design-theme="manifest"]
    .installation-summary__field select:focus {
    border-color: var(--manifest-orange);
    box-shadow: 0 0 0 1px var(--manifest-orange);
}

/* Installer detail */

html[data-design-theme="manifest"] .installer-detail-page {
    width: min(100%, 1100px);
    margin-inline: auto;
    color: var(--manifest-ink);
}

html[data-design-theme="manifest"] .installer-breadcrumbs {
    margin-bottom: 12px;
    color: var(--manifest-graphite);
    font-size: 11px;
    letter-spacing: 0.02em;
}

html[data-design-theme="manifest"] .installer-breadcrumbs a {
    color: var(--manifest-graphite);
}

html[data-design-theme="manifest"] .installer-breadcrumbs a:hover {
    color: var(--manifest-orange);
}

html[data-design-theme="manifest"] .installer-detail-header {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

html[data-design-theme="manifest"] .installer-detail-heading {
    border-bottom: 2px solid var(--manifest-ink);
    padding-bottom: 18px;
}

html[data-design-theme="manifest"] .installer-detail-title-row {
    gap: 14px;
}

html[data-design-theme="manifest"]
    .installer-detail-title-row h1 {
    margin: 0;
    color: var(--manifest-ink);
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

html[data-design-theme="manifest"] .installer-detail-role {
    padding: 4px 10px;
    color: var(--manifest-graphite);
    background: transparent;
    border: 1px solid var(--manifest-ink);
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
}

html[data-design-theme="manifest"] .installer-back-link {
    width: fit-content;
    color: var(--manifest-orange);
    font-size: 12px;
    font-weight: 600;
}

html[data-design-theme="manifest"] .installer-back-link:hover {
    color: var(--manifest-orange-hover);
}

html[data-design-theme="manifest"] .installer-identity-card {
    display: flex;
    color: var(--manifest-ink);
    background: var(--manifest-paper);
    border: 1px solid var(--manifest-ink);
    border-radius: 0;
    box-shadow: none;
}

html[data-design-theme="manifest"] .installer-identity-item {
    position: relative;
    display: flex;
    flex: 1 1 0;
    min-height: 76px;
    align-items: center;
    padding: 18px 22px;
}

html[data-design-theme="manifest"]
    .installer-identity-item
    + .installer-identity-item::before {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 1px;
    background: var(--manifest-ink);
    content: "";
}

html[data-design-theme="manifest"] .installer-identity-icon {
    display: none;
}

html[data-design-theme="manifest"] .installer-identity-copy {
    display: grid;
    gap: 5px;
}

html[data-design-theme="manifest"] .installer-identity-copy small {
    color: var(--manifest-graphite);
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

html[data-design-theme="manifest"] .installer-identity-copy strong {
    color: var(--manifest-ink);
    font-size: 16px;
    font-weight: 600;
}

html[data-design-theme="manifest"] .installer-status-dot {
    width: 8px;
    height: 8px;
    margin-inline-end: 8px;
    background: var(--manifest-moss);
    border-radius: 0;
}

html[data-design-theme="manifest"]
    .installer-status-dot--inactive {
    background: var(--manifest-graphite);
}

html[data-design-theme="manifest"] .installer-payment-section {
    margin-top: 34px;
}

html[data-design-theme="manifest"] .installer-payment-label {
    margin-bottom: 10px;
    color: var(--manifest-graphite);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[data-design-theme="manifest"] .installer-payment-tabs {
    display: inline-flex;
    width: auto;
    border: 1px solid var(--manifest-ink);
    border-radius: 0;
}

html[data-design-theme="manifest"] .installer-payment-tab {
    min-height: 38px;
    padding: 10px 22px;
    color: var(--manifest-graphite);
    background: var(--manifest-paper);
    border: 0;
    border-radius: 0;
    font-size: 12.5px;
    font-weight: 600;
}

html[data-design-theme="manifest"]
    .installer-payment-tab
    + .installer-payment-tab {
    border-inline-start: 1px solid var(--manifest-ink);
}

html[data-design-theme="manifest"] .installer-payment-tab:hover {
    color: var(--manifest-orange);
    background: var(--manifest-orange-tint);
}

html[data-design-theme="manifest"]
    .installer-payment-tab.is-active {
    color: var(--manifest-paper);
    background: var(--manifest-orange);
}

html[data-design-theme="manifest"] .installer-payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 16px;
    border: 1px solid var(--manifest-ink);
}

html[data-design-theme="manifest"] .installer-payment-card {
    min-height: 170px;
    padding: 22px;
    background: var(--manifest-paper);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

html[data-design-theme="manifest"]
    .installer-payment-card
    + .installer-payment-card {
    border-inline-start: 1px solid var(--manifest-ink);
}

html[data-design-theme="manifest"]
    .installer-payment-card.is-active {
    background: var(--manifest-orange-tint);
    border-color: transparent;
    box-shadow: none;
}

html[data-design-theme="manifest"]
    .installer-payment-card__header h3 {
    color: var(--manifest-ink);
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
    font-size: 15px;
    font-weight: 700;
}

html[data-design-theme="manifest"]
    .installer-payment-radio {
    width: 16px;
    height: 16px;
    border: 2px solid var(--manifest-graphite);
}

html[data-design-theme="manifest"]
    .installer-payment-card.is-active
    .installer-payment-radio {
    border-color: var(--manifest-orange);
}

html[data-design-theme="manifest"]
    .installer-payment-card.is-active
    .installer-payment-radio::after {
    background: var(--manifest-orange);
}

html[data-design-theme="manifest"] .installer-detail-field > span {
    color: var(--manifest-graphite);
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[data-design-theme="manifest"]
    .installer-detail-field input,
html[data-design-theme="manifest"]
    .installer-imprest-entry input {
    min-height: 40px;
    padding: 10px 12px;
    color: var(--manifest-ink);
    background: var(--manifest-paper);
    border: 1px solid var(--manifest-ink);
    border-radius: 0;
    font-size: 13px;
}

html[data-design-theme="manifest"] .installer-save-details {
    margin-top: 16px;
}

html[data-design-theme="manifest"] .installer-imprest-section {
    margin-top: 38px;
    color: var(--manifest-ink);
}

html[data-design-theme="manifest"] .installer-imprest-header {
    margin-bottom: 16px;
}

html[data-design-theme="manifest"] .installer-imprest-header h2 {
    color: var(--manifest-ink);
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
    font-size: 22px;
    font-weight: 700;
}

html[data-design-theme="manifest"] .installer-imprest-header p {
    color: var(--manifest-graphite);
    font-size: 12px;
}

html[data-design-theme="manifest"]
    .installer-imprest-table-wrap {
    overflow: visible;
    background: var(--manifest-paper);
    border: 1px solid var(--manifest-ink);
    border-radius: 0;
    box-shadow: none;
}

html[data-design-theme="manifest"] .installer-imprest-table {
    color: var(--manifest-ink);
    background: var(--manifest-paper);
}

html[data-design-theme="manifest"]
    .installer-imprest-table thead th {
    color: var(--manifest-graphite);
    background: var(--manifest-moss-tint);
    border-bottom: 1px solid var(--manifest-ink);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

html[data-design-theme="manifest"]
    .installer-imprest-table td {
    padding: 14px 16px;
    border-bottom-color: var(--manifest-line);
    font-size: 12.5px;
}

html[data-design-theme="manifest"]
    .installer-imprest-entry td {
    border-top: 1px solid var(--manifest-ink);
}

html[data-design-theme="manifest"]
    .installer-imprest-table tfoot th,
html[data-design-theme="manifest"]
    .installer-imprest-table tfoot td {
    padding: 18px 22px;
    color: var(--manifest-paper);
    background: var(--manifest-ink);
    border: 0;
}

html[data-design-theme="manifest"]
    .installer-imprest-table tfoot strong {
    color: var(--manifest-paper);
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
    font-size: 13px;
    letter-spacing: 0.03em;
}

html[data-design-theme="manifest"]
    .installer-imprest-table tfoot bdi {
    color: #f0c9b7;
    font-size: 19px;
    font-weight: 600;
}

html[data-design-theme="manifest"]
    .installer-imprest-table tfoot small {
    color: #c9c6bb;
}

/* Manifest project list */

html[data-design-theme="manifest"] .page-header {
    width: 100%;
    margin: 0 0 26px;
}

html[data-design-theme="manifest"] .page-header--actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

html[data-design-theme="manifest"] .page-header .eyebrow {
    margin: 0 0 8px;
    color: var(--manifest-graphite);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html[data-design-theme="manifest"] .page-header h1 {
    margin: 0 0 6px;
    color: var(--manifest-ink);
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
}

html[data-design-theme="manifest"] .page-header .page-summary {
    margin: 0;
    color: var(--manifest-graphite);
    font-size: 12px;
    line-height: 1.4;
}

html[data-design-theme="manifest"]
    .page-header
    .button--primary {
    min-height: 42px;
    padding: 10px 18px;
}

html[data-design-theme="manifest"] .project-summary-strip {
    display: flex;
    width: 100%;
    margin: 0 0 22px;
    overflow: visible;
    background: var(--manifest-paper);
    border: 1px solid var(--manifest-ink);
    border-radius: 0;
    box-shadow: none;
}

html[data-design-theme="manifest"]
    .project-summary-strip > div {
    min-width: 0;
    flex: 1 1 0;
    padding: 16px 26px;
    border: 0;
    border-inline-end: 1px solid var(--manifest-ink);
}

html[data-design-theme="manifest"]
    .project-summary-strip > div:last-child {
    border-inline-end: 0;
}

html[data-design-theme="manifest"]
    .project-summary-strip span {
    display: block;
    margin: 0 0 8px;
    color: var(--manifest-graphite);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-transform: uppercase;
}

html[data-design-theme="manifest"]
    .project-summary-strip strong {
    display: block;
    color: var(--manifest-ink);
    font-family:
        "IBM Plex Mono",
        "Vazirmatn",
        monospace;
    font-size: 22px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

html[data-design-theme="manifest"] .project-filter {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 18px 22px;
    background: transparent;
    border: 1px solid var(--manifest-ink);
    border-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}

html[data-design-theme="manifest"]
    .project-filter .filter-search {
    position: relative;
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
}

html[data-design-theme="manifest"]
    .project-filter .filter-search svg {
    position: absolute;
    z-index: 1;
    inset-inline-start: 14px;
    width: 15px;
    height: 15px;
    color: var(--manifest-blue);
    stroke: currentColor;
    stroke-width: 1.8;
    pointer-events: none;
}

html[data-design-theme="manifest"]
    .project-filter .filter-search input {
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding-block: 0;
    padding-inline-start: 42px;
    padding-inline-end: 14px;
    color: var(--manifest-ink);
    background: var(--manifest-paper);
    border: 1px solid var(--manifest-line);
    border-radius: 0;
    font-family:
        "IBM Plex Mono",
        "Vazirmatn",
        monospace;
    font-size: 13px;
    box-shadow: none;
}

html[data-design-theme="manifest"]
    .project-filter .filter-search input:focus {
    border-color: var(--manifest-orange);
    outline: 1px solid var(--manifest-orange);
    outline-offset: -1px;
}

html[data-design-theme="manifest"]
    .project-filter .button--filter {
    min-height: 40px;
    flex: 0 0 auto;
    padding: 9px 20px;
}

html[data-design-theme="manifest"]
    .project-filter .button--secondary {
    color: var(--manifest-ink);
    background: var(--manifest-paper);
    border-color: var(--manifest-ink);
}

html[data-design-theme="manifest"]
    .project-filter .button--secondary:hover {
    color: var(--manifest-paper);
    background: var(--manifest-ink);
}

html[data-design-theme="manifest"] .data-surface {
    width: 100%;
    margin: 0;
    overflow: visible;
    background: var(--manifest-paper);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

html[data-design-theme="manifest"]
    .data-surface .table-wrap {
    width: 100%;
    overflow-x: auto;
    background: transparent;
    border-radius: 0;
}

html[data-design-theme="manifest"] .project-table {
    width: 100%;
    min-width: 1060px;
    table-layout: fixed;
    border-collapse: collapse;
    color: var(--manifest-ink);
    background: transparent;
}

html[data-design-theme="manifest"]
    .project-table th {
    height: 46px;
    padding: 12px 22px;
    color: var(--manifest-blue);
    background: var(--manifest-blue-tint);
    border-top: 1px solid var(--manifest-ink);
    border-bottom: 1px solid var(--manifest-ink);
    border-inline-start: 1px solid var(--manifest-ink);
    border-radius: 0;
    font-family:
        "IBM Plex Mono",
        "Vazirmatn",
        monospace;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.05em;
    text-align: start;
    text-transform: uppercase;
}

html[data-design-theme="manifest"]
    .project-table th:last-child {
    border-inline-end: 1px solid var(--manifest-ink);
}

html[data-design-theme="manifest"]
    .project-table th:nth-child(1) {
    width: 16%;
}

html[data-design-theme="manifest"]
    .project-table th:nth-child(2) {
    width: 34%;
}

html[data-design-theme="manifest"]
    .project-table th:nth-child(3) {
    width: 16%;
    text-align: end;
}

html[data-design-theme="manifest"]
    .project-table th:nth-child(4) {
    width: 17%;
    text-align: end;
}

html[data-design-theme="manifest"]
    .project-table th:nth-child(5) {
    width: 13%;
    text-align: end;
}

html[data-design-theme="manifest"]
    .project-table th:nth-child(6) {
    width: 4%;
}

html[data-design-theme="manifest"]
    .project-table td {
    height: 74px;
    padding: 14px 22px;
    color: var(--manifest-ink);
    background: transparent;
    border-bottom: 1px solid var(--manifest-line);
    border-inline-start: 1px solid var(--manifest-ink);
    font-family:
        "IBM Plex Mono",
        monospace;
    font-size: 13px;
    line-height: 1.45;
    vertical-align: middle;
}

html[data-design-theme="manifest"]
    .project-table td:last-child {
    border-inline-end: 1px solid var(--manifest-ink);
}

html[data-design-theme="manifest"]
    .project-table tbody tr:last-child td {
    border-bottom: 1px solid var(--manifest-ink);
}

html[data-design-theme="manifest"]
    .project-table tbody tr:hover td {
    background: rgb(245 222 212 / 72%);
}

html[data-design-theme="manifest"]
    .project-table td:nth-child(1),
html[data-design-theme="manifest"]
    .project-table td:nth-child(2) {
    direction: rtl;
    text-align: right;
}

html[data-design-theme="manifest"]
    .project-table .primary-cell {
    display: block;
    width: 100%;
    color: var(--manifest-ink);
    font-family:
        "Vazirmatn",
        sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    direction: rtl;
    unicode-bidi: plaintext;
    text-align: right;
    text-decoration: none;
}

html[data-design-theme="manifest"]
    .project-table .primary-cell:hover {
    color: var(--manifest-orange);
    text-decoration: underline;
    text-decoration-color: var(--manifest-orange);
    text-underline-offset: 3px;
}

html[data-design-theme="manifest"]
    .project-table td:nth-child(2) > span:first-child {
    display: block;
    width: 100%;
    color: var(--manifest-ink);
    font-family:
        "Vazirmatn",
        sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.7;
    direction: rtl;
    unicode-bidi: plaintext;
    text-align: right;
}

html[data-design-theme="manifest"]
    .project-table .secondary-cell {
    display: block;
    width: 100%;
    margin-top: 3px;
    color: var(--manifest-blue);
    font-family:
        "Vazirmatn",
        sans-serif;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.7;
    direction: rtl;
    unicode-bidi: plaintext;
    text-align: right;
}

html[data-design-theme="manifest"]
    .project-table .money-cell {
    color: var(--manifest-ink) !important;
    font-family:
        "IBM Plex Mono",
        monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    text-align: end;
}

html[data-design-theme="manifest"]
    .project-table td:nth-child(4),
html[data-design-theme="manifest"]
    .project-table td:nth-child(5) {
    font-variant-numeric: tabular-nums;
    text-align: end;
}

html[data-design-theme="manifest"]
    .project-table .row-actions {
    width: auto;
    padding-inline: 10px;
    text-align: center;
}

html[data-design-theme="manifest"]
    .project-table .row-actions .icon-button {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    color: var(--manifest-orange);
    background: transparent;
    border: 0;
    border-radius: 0;
}

html[data-design-theme="manifest"]
    .project-table .row-actions .icon-button:hover {
    color: var(--manifest-paper);
    background: var(--manifest-orange);
}

html[data-design-theme="manifest"]
    .project-table .row-actions .icon-button svg {
    width: 16px;
    height: 16px;
}

html[data-design-theme="manifest"]
    .data-surface
    .pagination {
    margin-top: 18px;
}

html[data-design-theme="manifest"]
    .project-table .empty-state {
    min-height: 260px;
    color: var(--manifest-graphite);
    background: var(--manifest-paper);
}

html[data-design-theme="manifest"]
    .project-table .empty-state h2 {
    color: var(--manifest-ink);
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
}

/* Responsive Manifest layout */

@media (max-width: 980px) {
    html[data-design-theme="manifest"]
        .installation-dashboard__layout {
        grid-template-columns: 1fr;
    }

    html[data-design-theme="manifest"]
        .installation-dashboard__sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html[data-design-theme="manifest"]
        .installation-cost-grid {
        grid-template-columns: 1fr;
    }

    html[data-design-theme="manifest"] .main-content {
        padding-inline: 24px;
    }

    html[data-design-theme="manifest"]
        .page-header h1 {
        font-size: 36px;
    }

    html[data-design-theme="manifest"]
        .project-summary-strip > div {
        padding-inline: 18px;
    }

    html[data-design-theme="manifest"] .project-filter {
        align-items: stretch;
        flex-wrap: wrap;
    }

    html[data-design-theme="manifest"]
        .project-filter .filter-search {
        flex-basis: 100%;
    }
}

@media (max-width: 720px) {
    html[data-design-theme="manifest"] .main-content {
        background-size: 22px 22px;
    }

    html[data-design-theme="manifest"]
        .installation-section
        > .detail-section__heading h2 {
        font-size: 28px;
    }

    html[data-design-theme="manifest"] .installation-summary,
    html[data-design-theme="manifest"] .installer-identity-card {
        display: grid;
        grid-template-columns: 1fr;
    }

    html[data-design-theme="manifest"]
        .installation-summary__item
        + .installation-summary__item::before,
    html[data-design-theme="manifest"]
        .installer-identity-item
        + .installer-identity-item::before {
        inset-block: 0 auto;
        inset-inline: 0;
        width: auto;
        height: 1px;
    }

    html[data-design-theme="manifest"]
        .installation-dashboard__sidebar,
    html[data-design-theme="manifest"]
        .installer-payment-grid {
        grid-template-columns: 1fr;
    }

    html[data-design-theme="manifest"]
        .installer-payment-card
        + .installer-payment-card {
        border-inline-start: 0;
        border-top: 1px solid var(--manifest-ink);
    }

    html[data-design-theme="manifest"] .installer-payment-tabs {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }

    html[data-design-theme="manifest"]
        .installation-day-total {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    html[data-design-theme="manifest"] .main-content {
        padding: 24px 16px 72px;
    }

    html[data-design-theme="manifest"]
        .page-header--actions {
        align-items: stretch;
        flex-direction: column;
    }

    html[data-design-theme="manifest"]
        .page-header h1 {
        font-size: 32px;
    }

    html[data-design-theme="manifest"]
        .page-header .button--primary {
        width: 100%;
        justify-content: center;
    }

    html[data-design-theme="manifest"]
        .project-summary-strip {
        display: grid;
        grid-template-columns: 1fr;
    }

    html[data-design-theme="manifest"]
        .project-summary-strip > div {
        border-inline-end: 0;
        border-bottom: 1px solid var(--manifest-ink);
    }

    html[data-design-theme="manifest"]
        .project-summary-strip > div:last-child {
        border-bottom: 0;
    }

    html[data-design-theme="manifest"]
        .project-filter .button--filter {
        flex: 1 1 0;
        justify-content: center;
    }
}

/*
Manifest project workspace
The project identity and financial overview are intentionally removed.
The numbered project navigation becomes the permanent top row.
*/

html[data-design-theme="manifest"]
    .project-overview {
    display: none !important;
}

html[data-design-theme="manifest"]
    .project-context-path {
    position: sticky;
    z-index: 17;
    top: var(--topbar-height);
    display: flex;
    width: auto;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    margin:
        -32px
        -32px
        0;
    padding:
        0
        32px;
    color: var(--manifest-graphite);
    background: var(--manifest-paper);
    border-bottom: 1px solid var(--manifest-line);
    font-family:
        "IBM Plex Mono",
        "Vazirmatn",
        monospace;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
}

html[data-design-theme="manifest"]
    .project-context-path a {
    color: var(--manifest-graphite);
    text-decoration: none;
}

html[data-design-theme="manifest"]
    .project-context-path a:first-child {
    color: var(--manifest-orange);
}

html[data-design-theme="manifest"]
    .project-context-path a:hover {
    color: var(--manifest-orange);
}

html[data-design-theme="manifest"]
    .project-context-path > span[aria-hidden="true"] {
    color: var(--manifest-line);
}

html[data-design-theme="manifest"]
    .project-context-path > span[aria-current="page"] {
    color: var(--manifest-ink);
    font-weight: 500;
}

html[data-design-theme="manifest"]
    .project-context-path [dir="auto"] {
    font-family:
        "Vazirmatn",
        sans-serif;
    direction: rtl;
    unicode-bidi: isolate;
}

/*
Numbered project navigation
*/

html[data-design-theme="manifest"] .detail-nav {
    position: sticky;
    z-index: 16;
    top: calc(var(--topbar-height) + 44px);
    display: flex;
    width: auto;
    min-height: 52px;
    align-items: stretch;
    gap: 0;
    margin:
        0
        -32px
        40px;
    padding:
        0
        32px;
    overflow-x: auto;
    overflow-y: hidden;
    color: var(--manifest-ink);
    background: var(--manifest-paper);
    border: 0;
    border-top: 2px solid var(--manifest-ink);
    border-bottom: 2px solid var(--manifest-ink);
    border-radius: 0;
    box-shadow: none;
    counter-reset: manifest-project-tab;
    scrollbar-width: thin;
}

html[data-design-theme="manifest"] .detail-nav a {
    position: relative;
    display: inline-flex;
    min-width: max-content;
    min-height: 50px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding:
        0
        18px;
    color: var(--manifest-graphite);
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-family:
        "IBM Plex Mono",
        monospace;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    counter-increment: manifest-project-tab;
}

html[data-design-theme="manifest"] .detail-nav a::before {
    color: var(--manifest-line);
    font-family:
        "IBM Plex Mono",
        monospace;
    font-size: 11px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    content: counter(
        manifest-project-tab,
        decimal-leading-zero
    );
}

html[data-design-theme="manifest"] .detail-nav a:hover {
    color: var(--manifest-orange);
    background: transparent;
}

html[data-design-theme="manifest"] .detail-nav a:hover::before {
    color: var(--manifest-orange);
}

html[data-design-theme="manifest"] .detail-nav a.is-active {
    color: var(--manifest-ink);
    background: transparent;
    border-bottom-color: var(--manifest-orange);
}

html[data-design-theme="manifest"]
    .detail-nav a.is-active::before {
    color: var(--manifest-orange);
}

/*
Every project tab uses the same transparent ledger section.
*/

html[data-design-theme="manifest"] .detail-section {
    width: 100%;
    max-width: none;
    margin:
        0
        0
        32px;
    padding: 0;
    color: var(--manifest-ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

html[data-design-theme="manifest"]
    .detail-section
    > .detail-section__heading {
    display: flex;
    width: 100%;
    min-height: 80px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin:
        0
        0
        30px;
    padding:
        0
        0
        18px;
    border-bottom: 2px solid var(--manifest-ink);
}

html[data-design-theme="manifest"]
    .detail-section
    > .detail-section__heading
    > div {
    min-width: 0;
}

html[data-design-theme="manifest"]
    .detail-section
    .section-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin:
        0
        0
        10px;
    color: var(--manifest-graphite);
    font-family:
        "IBM Plex Mono",
        monospace;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[data-design-theme="manifest"]
    .detail-section
    .section-kicker::before {
    width: 20px;
    height: 1px;
    flex: 0 0 20px;
    background: var(--manifest-graphite);
    content: "";
}

html[data-design-theme="manifest"]
    .detail-section
    > .detail-section__heading h2 {
    margin: 0;
    color: var(--manifest-ink);
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

/*
The Installation heading already has a theme-specific rule.
These declarations make it identical to every other project tab.
*/

html[data-design-theme="manifest"]
    .installation-section
    > .detail-section__heading {
    min-height: 80px;
    align-items: flex-end;
    margin:
        0
        0
        30px;
    padding:
        0
        0
        18px;
    border-bottom: 2px solid var(--manifest-ink);
}

html[data-design-theme="manifest"]
    .installation-section
    > .detail-section__heading h2 {
    margin: 0;
    color: var(--manifest-ink);
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

/*
Project-detail surfaces are opaque.

Graph-paper transparency remains exclusive to the project-list page.
*/

html[data-design-theme="manifest"]
    .detail-section .data-surface,
html[data-design-theme="manifest"]
    .detail-section .filter-bar,
html[data-design-theme="manifest"]
    .detail-section .summary-strip,
html[data-design-theme="manifest"]
    .detail-section .project-summary-strip,
html[data-design-theme="manifest"]
    .detail-section .installation-summary,
html[data-design-theme="manifest"]
    .detail-section .installation-panel,
html[data-design-theme="manifest"]
    .detail-section .installation-day-card,
html[data-design-theme="manifest"]
    .detail-section .installation-ledger {
    color: var(--manifest-ink);
    background: var(--manifest-paper);
    border-color: var(--manifest-ink);
    border-radius: 0;
    box-shadow: none;
}

/*
Shared labels
*/

html[data-design-theme="manifest"]
    .detail-section label,
html[data-design-theme="manifest"]
    .detail-section th,
html[data-design-theme="manifest"]
    .detail-section small,
html[data-design-theme="manifest"]
    .detail-section .field-label,
html[data-design-theme="manifest"]
    .detail-section .installation-summary__copy small {
    font-family:
        "IBM Plex Mono",
        monospace;
}

html[data-design-theme="manifest"]
    .detail-section label,
html[data-design-theme="manifest"]
    .detail-section .field-label,
html[data-design-theme="manifest"]
    .detail-section .installation-summary__copy small {
    color: var(--manifest-graphite);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/*
Shared values and numbers
*/

html[data-design-theme="manifest"]
    .detail-section strong,
html[data-design-theme="manifest"]
    .detail-section bdi,
html[data-design-theme="manifest"]
    .detail-section input,
html[data-design-theme="manifest"]
    .detail-section select,
html[data-design-theme="manifest"]
    .detail-section .money-cell,
html[data-design-theme="manifest"]
    .detail-section .installation-summary__copy strong {
    font-family:
        "IBM Plex Mono",
        "Vazirmatn",
        monospace;
    font-variant-numeric: tabular-nums;
}

html[data-design-theme="manifest"]
    .detail-section .installation-summary__copy strong {
    color: var(--manifest-ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

html[data-design-theme="manifest"]
    .detail-section input,
html[data-design-theme="manifest"]
    .detail-section select,
html[data-design-theme="manifest"]
    .detail-section textarea {
    color: var(--manifest-ink);
    background: transparent;
    border: 1px solid var(--manifest-ink);
    border-radius: 0;
    box-shadow: none;
}

html[data-design-theme="manifest"]
    .detail-section input,
html[data-design-theme="manifest"]
    .detail-section select {
    min-height: 40px;
    font-size: 13px;
}

html[data-design-theme="manifest"]
    .detail-section textarea {
    font-family:
        "IBM Plex Mono",
        "Vazirmatn",
        monospace;
    font-size: 13px;
}

html[data-design-theme="manifest"]
    .detail-section input:focus,
html[data-design-theme="manifest"]
    .detail-section select:focus,
html[data-design-theme="manifest"]
    .detail-section textarea:focus {
    border-color: var(--manifest-orange);
    outline: 1px solid var(--manifest-orange);
    outline-offset: -1px;
    box-shadow: none;
}

/*
Shared tables
*/

html[data-design-theme="manifest"]
    .detail-section table {
    width: 100%;
    border-collapse: collapse;
    color: var(--manifest-ink);
    background: transparent;
}

html[data-design-theme="manifest"]
    .detail-section table th {
    height: 42px;
    padding:
        10px
        16px;
    color: var(--manifest-graphite);
    background: var(--manifest-moss-tint);
    border-bottom: 1px solid var(--manifest-ink);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-align: start;
    text-transform: none;
}

html[data-design-theme="manifest"]
    .detail-section table td {
    height: 44px;
    padding:
        11px
        16px;
    color: var(--manifest-ink);
    background: transparent;
    border-bottom: 1px solid var(--manifest-line);
    font-family:
        "IBM Plex Mono",
        "Vazirmatn",
        monospace;
    font-size: 12.5px;
    line-height: 1.45;
}

html[data-design-theme="manifest"]
    .detail-section table tbody tr:hover td {
    background: rgb(245 222 212 / 60%);
}

/*
Shared actions
*/

html[data-design-theme="manifest"]
    .detail-section .button {
    min-height: 38px;
    padding:
        9px
        18px;
    border-radius: 0;
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
}

html[data-design-theme="manifest"]
    .detail-section .button--primary {
    color: var(--manifest-paper);
    background: var(--manifest-ink);
    border-color: var(--manifest-ink);
}

html[data-design-theme="manifest"]
    .detail-section .button--primary:hover {
    color: var(--manifest-paper);
    background: var(--manifest-orange);
    border-color: var(--manifest-orange);
}

html[data-design-theme="manifest"]
    .detail-section .button--secondary,
html[data-design-theme="manifest"]
    .detail-section .button--ghost {
    color: var(--manifest-ink);
    background: transparent;
    border-color: var(--manifest-ink);
}

html[data-design-theme="manifest"]
    .detail-section .button--secondary:hover,
html[data-design-theme="manifest"]
    .detail-section .button--ghost:hover {
    color: var(--manifest-orange);
    background: var(--manifest-orange-tint);
    border-color: var(--manifest-orange);
}

/*
Persian content remains RTL without changing the global page direction.
*/

html[data-design-theme="manifest"]
    .detail-section [dir="rtl"],
html[data-design-theme="manifest"]
    .detail-section [dir="auto"]:lang(fa),
html[data-design-theme="manifest"]
    .detail-section .xtx-data-rtl {
    font-family:
        "Vazirmatn",
        sans-serif;
    direction: rtl;
    unicode-bidi: plaintext;
    text-align: right;
}

/*
Manifest project workspace responsive layout
*/

@media (max-width: 980px) {
    html[data-design-theme="manifest"]
        .project-context-path {
        margin:
            -32px
            -24px
            0;
        padding:
            0
            24px;
    }

    html[data-design-theme="manifest"] .detail-nav {
        margin:
            0
            -24px
            32px;
        padding:
            0
            24px;
    }

    html[data-design-theme="manifest"]
        .detail-section
        > .detail-section__heading {
        min-height: 72px;
    }
}

@media (max-width: 720px) {
    html[data-design-theme="manifest"]
        .project-context-path {
        min-height: 40px;
        margin:
            -24px
            -16px
            0;
        padding:
            0
            16px;
        overflow-x: auto;
        white-space: nowrap;
    }

    html[data-design-theme="manifest"] .detail-nav {
        top: calc(var(--topbar-height) + 40px);
        margin:
            0
            -16px
            28px;
        padding:
            0
            16px;
    }

    html[data-design-theme="manifest"] .detail-nav a {
        min-height: 46px;
        padding:
            0
            13px;
        font-size: 12px;
    }

    html[data-design-theme="manifest"]
        .detail-nav a::before {
        font-size: 10px;
    }

    html[data-design-theme="manifest"]
        .detail-section
        > .detail-section__heading {
        min-height: 64px;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    html[data-design-theme="manifest"]
        .detail-section
        > .detail-section__heading h2,
    html[data-design-theme="manifest"]
        .installation-section
        > .detail-section__heading h2 {
        font-size: 28px;
    }
}

/*
Manifest Expense ledger

Image 1 is the authoritative geometry:
- compact heading
- title and total grouped together
- Export PDF on the right
- one continuous bordered form and table
- compact fields and rows
- stable Date / Cost / Name columns
- compact left-side record number
*/

html[data-design-theme="manifest"]
    #expenses {
    width: 100%;
    min-width: 0;
}

/* Expense heading */

html[data-design-theme="manifest"]
    #expenses
    > .detail-section__heading {
    display: grid;
    min-height: 78px;
    grid-template-columns:
        auto
        auto
        minmax(0, 1fr)
        auto;
    align-items: end;
    gap: 16px;
    margin:
        0
        0
        24px;
    padding:
        0
        0
        18px;
    border-bottom: 2px solid var(--manifest-ink);
}

html[data-design-theme="manifest"]
    #expenses
    > .detail-section__heading
    > div:first-child {
    display: grid;
    align-self: stretch;
    align-content: end;
}

html[data-design-theme="manifest"]
    #expenses
    > .detail-section__heading
    .section-kicker {
    margin:
        0
        0
        10px;
}

html[data-design-theme="manifest"]
    #expenses
    > .detail-section__heading
    h2 {
    margin: 0;
    color: var(--manifest-ink);
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
}

/* Place the total directly beside the heading */

html[data-design-theme="manifest"]
    #expenses
    .expense-totals {
    display: flex;
    align-self: end;
    justify-self: start;
    align-items: baseline;
    gap: 16px;
    margin:
        0
        0
        1px;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-total {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-total span {
    color: var(--manifest-graphite);
    font-family:
        "IBM Plex Mono",
        monospace;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-total strong {
    color: var(--manifest-ink);
    font-family:
        "IBM Plex Mono",
        monospace;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* Keep Export PDF at the far right */

html[data-design-theme="manifest"]
    #expenses
    > .detail-section__heading
    > .button {
    grid-column: 4;
    align-self: end;
    justify-self: end;
    min-height: 40px;
    padding:
        9px
        16px;
    color: var(--manifest-ink);
    background: var(--manifest-paper);
    border: 1px solid var(--manifest-ink);
    border-radius: 0;
    font-size: 11.5px;
}

html[data-design-theme="manifest"]
    #expenses
    > .detail-section__heading
    > .button:hover {
    color: var(--manifest-orange);
    background: var(--manifest-orange-tint);
    border-color: var(--manifest-orange);
}

/* Expense entry form */

html[data-design-theme="manifest"]
    #expenses
    .expense-quick-form {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns:
        minmax(280px, 1fr)
        220px
        220px
        133px;
    align-items: start;
    gap: 14px;
    margin: 0;
    padding:
        21px
        22px
        19px;
    color: var(--manifest-ink);
    background: var(--manifest-paper);
    border: 1px solid var(--manifest-ink);
    border-radius: 0;
    box-shadow: none;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-quick-form
    .form-field {
    min-width: 0;
    margin: 0;
    grid-template-rows:
        auto
        40px
        minmax(0, auto);
}

html[data-design-theme="manifest"]
    #expenses
    .expense-cost-fields {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-name-heading {
    min-height: 15px;
    align-items: center;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-quick-form label {
    margin:
        0
        0
        7px;
    color: var(--manifest-graphite);
    font-family:
        "IBM Plex Mono",
        monospace;
    font-size: 9.5px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-supplier-toggle {
    width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    color: var(--manifest-graphite);
    background: transparent;
    border: 0;
    border-radius: 0;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-supplier-toggle svg {
    width: 12px;
    height: 12px;
}

/* All three fields use the source's 40px height */

html[data-design-theme="manifest"]
    #expenses
    .expense-quick-form input,
html[data-design-theme="manifest"]
    #expenses
    .expense-quick-form select,
html[data-design-theme="manifest"]
    #expenses
    .expense-quick-form
    .expense-name-field
    > input[name="name"] {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding:
        0
        12px;
    color: var(--manifest-ink);
    background: var(--manifest-paper);
    border: 1px solid var(--manifest-line);
    border-radius: 0;
    box-shadow: none;
    font-family:
        "IBM Plex Mono",
        "Vazirmatn",
        monospace !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-quick-form input::placeholder {
    color: #aaa596;
    font-family:
        "IBM Plex Mono",
        monospace;
    font-size: 12.5px;
    font-weight: 400;
    opacity: 1;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-quick-form
    input[name="name"] {
    direction: auto;
    unicode-bidi: plaintext;
    text-align: start;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-quick-form
    input[name="name"]::placeholder {
    direction: ltr;
    text-align: left;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-quick-form
    input[name="cost_toman"],
html[data-design-theme="manifest"]
    #expenses
    .expense-quick-form
    input[name="date"] {
    direction: ltr;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-quick-form input:focus,
html[data-design-theme="manifest"]
    #expenses
    .expense-quick-form select:focus {
    border-color: var(--manifest-orange);
    outline: 1px solid var(--manifest-orange);
    outline-offset: -1px;
    box-shadow: none;
}

/* Compact source-style Add expense button */

html[data-design-theme="manifest"]
    #expenses
    .expense-quick-form
    > .button[type="submit"] {
    width: 133px;
    min-width: 133px;
    min-height: 38px;
    align-self: start;
    justify-self: end;
    margin-top: 22px;
    padding:
        9px
        14px;
    color: var(--manifest-paper);
    background: var(--manifest-orange);
    border: 1px solid var(--manifest-orange);
    border-radius: 0;
    font-family:
        "Space Grotesk",
        "Vazirmatn",
        sans-serif;
    font-size: 11.5px;
    font-weight: 600;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-quick-form
    > .button[type="submit"]:hover {
    color: var(--manifest-paper);
    background: var(--manifest-orange-hover);
    border-color: var(--manifest-orange-hover);
}

/* Optional supplier fields remain inside the same ledger panel */

html[data-design-theme="manifest"]
    #expenses
    .expense-supplier-fields {
    grid-column: 1 / -1;
    margin-top: 2px;
    padding-top: 16px;
    border-top: 1px dashed var(--manifest-line);
}

/* Join the records table directly to the entry form */

html[data-design-theme="manifest"]
    #expenses
    .expense-quick-form
    + .inline-table {
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow: visible;
    background: var(--manifest-paper);
    border: 1px solid var(--manifest-ink);
    border-top: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Stable source column geometry */

html[data-design-theme="manifest"]
    #expenses
    .expense-records {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    direction: rtl;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-records--standard
    .expense-col-name {
    width: 34%;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-records--standard
    .expense-col-money {
    width: 31%;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-records--standard
    .expense-col-date {
    width: calc(35% - 64px);
    transform: none;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-col-actions {
    width: 64px;
}

/* Remove the old manually translated columns */

html[data-design-theme="manifest"]
    #expenses
    .expense-column--name,
html[data-design-theme="manifest"]
    #expenses
    .expense-column--money,
html[data-design-theme="manifest"]
    #expenses
    .expense-column--date,
html[data-design-theme="manifest"]
    #expenses
    .expense-cell--name,
html[data-design-theme="manifest"]
    #expenses
    .expense-cell--money,
html[data-design-theme="manifest"]
    #expenses
    .expense-cell--date {
    transform: none;
}

/* Compact blue-grey source header */

html[data-design-theme="manifest"]
    #expenses
    .expense-records thead th {
    height: 38px;
    padding:
        9px
        16px;
    color: var(--manifest-blue);
    background: var(--manifest-blue-tint);
    border-bottom: 1px solid var(--manifest-ink);
    font-family:
        "IBM Plex Mono",
        monospace;
    font-size: 9.5px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: none;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-heading-sort {
    color: inherit;
    font: inherit;
}

/* Source alignment */

html[data-design-theme="manifest"]
    #expenses
    .expense-column--name,
html[data-design-theme="manifest"]
    #expenses
    .expense-cell--name {
    direction: rtl;
    text-align: right;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-column--money,
html[data-design-theme="manifest"]
    #expenses
    .expense-cell--money {
    direction: ltr;
    text-align: center;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-column--date,
html[data-design-theme="manifest"]
    #expenses
    .expense-cell--date {
    direction: ltr;
    text-align: left;
}

/* Compact source rows */

html[data-design-theme="manifest"]
    #expenses
    .expense-records tbody td {
    height: 54px;
    padding:
        11px
        22px;
    color: var(--manifest-ink);
    background: var(--manifest-paper);
    border-bottom: 1px solid var(--manifest-line);
    font-family:
        "IBM Plex Mono",
        "Vazirmatn",
        monospace;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.35;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-records tbody tr:last-child td {
    border-bottom: 0;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-records tbody tr:hover td {
    background: var(--manifest-orange-tint);
}

/* Override the current oversized Persian and numeric text */

html[data-design-theme="manifest"]
    #expenses
    .expense-records
    .xtx-content-auto {
    color: var(--manifest-ink);
    font-family:
        "Vazirmatn",
        sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    direction: rtl;
    unicode-bidi: plaintext;
    text-align: right;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-records
    .xtx-data-ltr {
    font-family:
        "IBM Plex Mono",
        monospace;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.35;
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
}

/* Compact left record-number/action column */

html[data-design-theme="manifest"]
    #expenses
    .expense-actions-heading,
html[data-design-theme="manifest"]
    #expenses
    .expense-actions-cell {
    position: relative;
    width: 64px;
    min-width: 64px;
    padding:
        0
        10px !important;
    direction: ltr;
    text-align: center;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-heading-controls {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

/*
Only the three-dot actions control is visible in the compact header.
Delete-all still appears after opening the actions.
*/
html[data-design-theme="manifest"]
    #expenses
    .expense-number-toggle {
    display: none;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-actions-toggle {
    width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    color: var(--manifest-graphite);
    background: transparent;
    border: 0;
    border-radius: 0;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-bulk-delete-trigger {
    width: 24px;
    height: 24px;
    min-height: 24px;
}

/* Record numbers are always visible as 01, 02, 03... */

html[data-design-theme="manifest"]
    #expenses
    .expense-action-content {
    position: relative;
    display: grid;
    min-height: 32px;
    grid-template-columns: 1fr;
    place-items: center;
    gap: 0;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-row-number {
    display: block;
    width: auto;
    color: var(--manifest-graphite);
    font-family:
        "IBM Plex Mono",
        monospace;
    font-size: 0;
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-row-number::before {
    content: "0";
    font-size: 10px;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-row-number::after {
    content: attr(aria-label);
    display: none;
}

/*
The existing number remains after the zero prefix.
Restore its visible size through a nested text rendering rule.
*/
html[data-design-theme="manifest"]
    #expenses
    .expense-row-number {
    font-size: 10px;
}

/*
Hide the 0 prefix once the sequence reaches two digits.
The current source screenshot uses single-digit records.
*/
html[data-design-theme="manifest"]
    #expenses
    .expense-row-number:nth-last-child(n + 10)::before {
    content: "";
}

/* Existing edit/delete actions remain available */

html[data-design-theme="manifest"]
    #expenses
    .expense-row-actions {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-records.expense-actions-visible
    .expense-row-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-records.expense-actions-visible
    .expense-row-number {
    opacity: 0;
}

/* Client-paid mode remains aligned if it is enabled */

html[data-design-theme="manifest"]
    #expenses
    .expense-records--client-paid
    .expense-col-name {
    width: 28%;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-records--client-paid
    .expense-col-money {
    width: 17%;
}

html[data-design-theme="manifest"]
    #expenses
    .expense-records--client-paid
    .expense-col-date {
    width: calc(21% - 64px);
    transform: none;
}

/* Responsive preservation */

@media (max-width: 1100px) {
    html[data-design-theme="manifest"]
        #expenses
        .expense-quick-form {
        grid-template-columns:
            minmax(220px, 1fr)
            180px
            190px
            126px;
    }

    html[data-design-theme="manifest"]
        #expenses
        .expense-quick-form
        > .button[type="submit"] {
        width: 126px;
        min-width: 126px;
    }
}

@media (max-width: 900px) {
    html[data-design-theme="manifest"]
        #expenses
        > .detail-section__heading {
        grid-template-columns:
            minmax(0, 1fr)
            auto;
    }

    html[data-design-theme="manifest"]
        #expenses
        .expense-totals {
        grid-column: 1;
        justify-self: start;
    }

    html[data-design-theme="manifest"]
        #expenses
        > .detail-section__heading
        > .button {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    html[data-design-theme="manifest"]
        #expenses
        .expense-quick-form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    html[data-design-theme="manifest"]
        #expenses
        .expense-quick-form
        > .button[type="submit"] {
        width: auto;
        min-width: 126px;
        align-self: end;
        justify-self: end;
    }

    html[data-design-theme="manifest"]
        #expenses
        .expense-quick-form
        + .inline-table {
        overflow-x: auto;
    }

    html[data-design-theme="manifest"]
        #expenses
        .expense-records {
        min-width: 760px;
    }
}

@media (max-width: 560px) {
    html[data-design-theme="manifest"]
        #expenses
        > .detail-section__heading {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
    }

    html[data-design-theme="manifest"]
        #expenses
        .expense-quick-form {
        grid-template-columns: 1fr;
    }

    html[data-design-theme="manifest"]
        #expenses
        .expense-quick-form
        > .button[type="submit"] {
        width: 100%;
        min-width: 0;
        margin-top: 0;
    }
}